@tesouro/embedded-components-react 0.7.56 → 0.7.58
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/README.md +0 -3
- package/dist/experimental/RemoteCheckCapture.d.ts +1 -32
- package/dist/experimental/index.d.ts +1 -32
- package/dist/index.css +0 -28
- package/dist/index.d.ts +12 -44
- package/dist/index.js +47 -48
- package/dist/lib/AcceptDisclosuresWidget.d.ts +1 -32
- package/dist/lib/BalancesWidget.d.ts +0 -31
- package/dist/lib/BankAccountOnboardingWidget.d.ts +1 -32
- package/dist/lib/BankAccountsWidget.d.ts +1 -32
- package/dist/lib/BankingComplianceBannerWidget.d.ts +0 -31
- package/dist/lib/BillPayWidget.d.ts +0 -31
- package/dist/lib/CardDetailsWidget.d.ts +1 -32
- package/dist/lib/CounterpartsWidget.d.ts +0 -31
- package/dist/lib/CounterpartsWidgetPublic.d.ts +0 -31
- package/dist/lib/CreditCardsWidget.d.ts +0 -31
- package/dist/lib/CustomersWidget.d.ts +1 -33
- package/dist/lib/DebitCardsWidget.d.ts +0 -31
- package/dist/lib/ExpenseManagementWidget.d.ts +0 -31
- package/dist/lib/InsightsWidget.d.ts +0 -31
- package/dist/lib/LinkedAccountsWidget.d.ts +1 -32
- package/dist/lib/OfferWidget.d.ts +1 -32
- package/dist/lib/ProductsWidget.d.ts +1 -32
- package/dist/lib/ReceivablesWidget.d.ts +1 -32
- package/dist/lib/SettingsWidget.d.ts +0 -31
- package/dist/lib/TransfersWidget.d.ts +0 -31
- package/dist/lib/WidgetProvider.d.ts +2 -33
- package/dist/lib/WidgetProvider.js +9 -10
- package/dist/lib/WidgetProviderPublic.d.ts +0 -31
- package/dist/lib/WidgetSuite.d.ts +1 -32
- package/dist/lib/monite-sdk.d.ts +2376 -4041
- package/dist/lib/monite-sdk.js +53 -76
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/lib/AcceptDisclosuresWidget/AcceptDisclosuresWidget.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BankAccountOnboardingWidget.js +395 -396
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/BankAccountsWidget/BankAccountsWidget.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index48.js +16 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index8.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index20.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillPayWidget.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index14.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/lib/CardDetailsWidget.js +83 -84
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/feature/dist/index8.js +15 -16
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/lib/CardsWidget.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/CounterpartsWidget.js +9 -10
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +25 -26
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/LinkedAccountsWidget.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index.js +58 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index100.js +1 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index101.js +55 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index102.js +0 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +153 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index104.js +1222 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index105.js +176 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index106.js +5 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index107.js +17 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index108.js +5 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js +55 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index110.js +2 -153
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index111.js +3 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index112.js +1 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +1 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index114.js +10 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js +56 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index116.js +38 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +68 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +38 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +11 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index12.js +50 -1222
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +9 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +65 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +167 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +6 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +2 -172
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +76 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +75 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +32 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index13.js +2 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +56 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +44 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +0 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +564 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +1 -569
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +159 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +22 -155
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index14.js +18 -173
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +10 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +16 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +19 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +27 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +1 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +23 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +19 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index15.js +162 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +68 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +24 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +6 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +39 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +48 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +58 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +1 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +27 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +43 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +78 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index16.js +3 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +4 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +2 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +52 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +81 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +109 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +4 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +10 -123
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +10 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +18 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +75 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index17.js +59 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +1 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +122 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +11 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +56 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +5 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +16 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +62 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +122 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index18.js +20 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +22 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +6 -120
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +35 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +7 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +54 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +73 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +25 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +1 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +58 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +21 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index19.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index190.js +19 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +182 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +1 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +27 -180
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +1 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +38 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +1 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +17 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +17 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index20.js +8 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +5 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +15 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +20 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +20 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +4 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +14 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +9 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +23 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index21.js +15 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +10 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +8 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +23 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +14 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +81 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +14 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +97 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +46 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +28 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +1 -114
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index22.js +96 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +102 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +39 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +166 -193
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +14 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +4 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +67 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +24 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +209 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +89 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +20 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index23.js +23 -164
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +1 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +17 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +153 -354
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +104 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +43 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +4 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +19 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +73 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +17 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +20 -182
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index24.js +6 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +5 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +10 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +129 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +5 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +5 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +221 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +34 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +11 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index25.js +12 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +36 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +19 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +76 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +175 -153
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +16 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +204 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +93 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +63 -90
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +54 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +92 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index26.js +7 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +37 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +77 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +80 -300
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +14 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +23 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +16 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +5 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +23 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +1 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +21 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index27.js +10 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +28 -156
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +4 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +33 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +15 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +30 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +28 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +2 -189
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index28.js +5 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index29.js +156 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index30.js +1 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index31.js +9 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index32.js +10 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index33.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index34.js +57 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index35.js +929 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index36.js +29 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index37.js +67 -154
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index38.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +7 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index40.js +6 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index41.js +6 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index42.js +11 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +14 -930
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index44.js +43 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index45.js +22 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +5 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index48.js +2 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index49.js +32 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index50.js +6 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index51.js +8 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.js +5 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index53.js +12 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +7 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index56.js +1 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index57.js +4 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index58.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index59.js +1 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index60.js +19 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index61.js +32 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index62.js +9 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index63.js +70 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index64.js +54 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index65.js +1 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index66.js +19 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index67.js +49 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index68.js +11 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index69.js +15 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index70.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index71.js +45 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index72.js +37 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index73.js +66 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index74.js +31 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index75.js +40 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index76.js +21 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index77.js +14 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index78.js +12 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index79.js +53 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index80.js +12 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index81.js +23 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index82.js +69 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index83.js +78 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index84.js +1 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index85.js +8 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index86.js +25 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index87.js +4 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +16 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +3 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index90.js +2 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index91.js +57 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index92.js +10 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index93.js +35 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index94.js +1 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index95.js +103 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index96.js +1 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index97.js +56 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index98.js +0 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index99.js +53 -10
- package/dist/libs/tesouro-embedded-components-react/offer-widget/feature/dist/lib/OfferWidget/OfferWidget.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/lib/ProductsWidget/ProductsWidget.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/feature/dist/lib/RemoteCheckCaptureWidget/RemoteCheckCaptureWidget.js +9 -10
- package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/feature/dist/index8.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/settings-widget/help/feature/dist/index3.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/feature/dist/index10.js +9 -10
- package/dist/libs/tesouro-embedded-components-react/settings-widget/profile/feature/dist/index4.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index17.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/shared/bank-disclosures/feature/dist/lib/BankDisclosuresWidget/BankDisclosuresWidget.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/index.js +16 -17
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RootWidgetProvider.js +45 -49
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetProvider.js +91 -95
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/hooks.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/index.js +0 -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/widget-suite/feature/dist/lib/WidgetSuite/WidgetSuite.js +120 -121
- package/package.json +1 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +0 -134
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +0 -211
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +0 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +0 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +0 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +0 -242
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +0 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +0 -142
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +0 -167
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +0 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +0 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +0 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +0 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +0 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +0 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +0 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +0 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +0 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +0 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +0 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +0 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +0 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +0 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +0 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +0 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +0 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +0 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +0 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +0 -106
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +0 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +0 -173
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +0 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +0 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +0 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +0 -212
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +0 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +0 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +0 -160
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +0 -104
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +0 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +0 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +0 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +0 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +0 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +0 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +0 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +0 -133
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +0 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +0 -222
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +0 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +0 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +0 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +0 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +0 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +0 -184
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +0 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +0 -206
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +0 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +0 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +0 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +0 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +0 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +0 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +0 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +0 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +0 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +0 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +0 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +0 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +0 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +0 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +0 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +0 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +0 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +0 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +0 -97
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/types.js +0 -8
|
@@ -16,175 +16,174 @@ import { useOrganizationApplicationStatus as d } from "../../../../../shared/dat
|
|
|
16
16
|
import "../../../../../shared/data-access/dist/index.js";
|
|
17
17
|
import { ErrorState as f } from "../../../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
|
|
18
18
|
import "../../../../../shared/ui/dist/index.js";
|
|
19
|
-
import { useAnalyticsTrack as
|
|
20
|
-
import { WidgetProvider as
|
|
21
|
-
import { useRefetchWidget as
|
|
22
|
-
import { deniedNoticeExpiresAt as
|
|
19
|
+
import { useAnalyticsTrack as ee } from "../../../../../shared/feature/dist/lib/analytics/hooks.js";
|
|
20
|
+
import { WidgetProvider as p } from "../../../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
|
|
21
|
+
import { useRefetchWidget as m, useWidgetConfig as te, useWidgetError as h, useWidgetInitStaleForToken as g, useWidgetLoading as _ } from "../../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
22
|
+
import { deniedNoticeExpiresAt as ne, selectBankAccountApplication as re } from "../../../../../shared/feature/dist/lib/application/bankAccountApplication.js";
|
|
23
23
|
import "../../../../../shared/feature/dist/index.js";
|
|
24
|
-
import { WIDGET_SUITE_SECTIONS as
|
|
25
|
-
import { WIDGET_NAME as
|
|
26
|
-
import { needsDisclosureAcceptance as
|
|
27
|
-
import { AcceptDisclosuresWidget as
|
|
24
|
+
import { WIDGET_SUITE_SECTIONS as ie } from "./sections/index.js";
|
|
25
|
+
import { WIDGET_NAME as v, WidgetSuiteAnalyticsEvent as y } from "../analytics/events.js";
|
|
26
|
+
import { needsDisclosureAcceptance as b } from "./disclosureGate.js";
|
|
27
|
+
import { AcceptDisclosuresWidget as ae } from "../../../../../accept-disclosures-widget/feature/dist/lib/AcceptDisclosuresWidget/AcceptDisclosuresWidget.js";
|
|
28
28
|
import "../../../../../accept-disclosures-widget/feature/dist/index.js";
|
|
29
|
-
import { OnboardingApplicationView as
|
|
30
|
-
import { BankAccountOnboardingWidget as
|
|
29
|
+
import { OnboardingApplicationView as x, onboardingApplicationViewFor as S } from "../../../../../bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/applicationStatusView.js";
|
|
30
|
+
import { BankAccountOnboardingWidget as oe } from "../../../../../bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BankAccountOnboardingWidget.js";
|
|
31
31
|
import "../../../../../bank-account-onboarding-widget/feature/dist/index.js";
|
|
32
|
-
import { useCallback as
|
|
33
|
-
import { Fragment as
|
|
32
|
+
import { useCallback as C, useEffect as w, useMemo as se, useReducer as T, useRef as E, useState as D } from "react";
|
|
33
|
+
import { Fragment as ce, jsx as O, jsxs as le } from "react/jsx-runtime";
|
|
34
34
|
//#region ../../libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/WidgetSuite.js
|
|
35
|
-
var
|
|
35
|
+
var k = {
|
|
36
36
|
initFailed: "widget-suite-init-failed",
|
|
37
37
|
disclosuresRefreshFailed: "widget-suite-disclosures-refresh-failed",
|
|
38
38
|
applicationUnavailable: "widget-suite-application-unavailable"
|
|
39
|
-
},
|
|
40
|
-
function
|
|
41
|
-
let { availableSections: c, activeSection:
|
|
42
|
-
|
|
43
|
-
let
|
|
44
|
-
|
|
45
|
-
if (
|
|
46
|
-
let e =
|
|
39
|
+
}, A = 2 ** 31 - 1;
|
|
40
|
+
function j({ showSectionTitle: n = !0, onboardingDisclosureLinks: r, onApplicantLatchChange: a, onResultScreenHeldChange: s }) {
|
|
41
|
+
let { availableSections: c, activeSection: ee, labels: p, navigate: v } = o(), { initResponse: y } = te(), j = h(), M = g(), N = _(), P = m(), F = u(), I = d(), L = se(() => re(I.applications), [I.applications]), R = E(null);
|
|
42
|
+
I.isResolved && (R.current = { application: L });
|
|
43
|
+
let z = I.isResolved ? L : R.current?.application ?? null, [ue, de] = T((e) => e + 1, 0), B = ne(z);
|
|
44
|
+
w(() => {
|
|
45
|
+
if (B === null) return;
|
|
46
|
+
let e = B - Date.now();
|
|
47
47
|
if (e < 0) return;
|
|
48
|
-
let t = setTimeout(
|
|
48
|
+
let t = setTimeout(de, Math.min(e + 1, A));
|
|
49
49
|
return () => clearTimeout(t);
|
|
50
|
-
}, [
|
|
51
|
-
let
|
|
52
|
-
|
|
53
|
-
a(
|
|
54
|
-
}, [
|
|
55
|
-
let [
|
|
56
|
-
|
|
57
|
-
s(
|
|
58
|
-
}, [
|
|
59
|
-
let
|
|
60
|
-
|
|
61
|
-
!
|
|
62
|
-
}, [
|
|
63
|
-
|
|
64
|
-
}, [
|
|
65
|
-
Z ? Q.current || (Q.current = !0, De(!0),
|
|
66
|
-
}, [Z,
|
|
67
|
-
let $ = () => /* @__PURE__ */
|
|
50
|
+
}, [B, ue]);
|
|
51
|
+
let V = S(z), [H, fe] = D(!1), [U, pe] = D(!1), me = F.isResolved || U, he = C((e) => v(e), [v]), [W, ge] = D(!1), _e = C(() => ge(!0), []), [G, ve] = D(!1), ye = G || H;
|
|
52
|
+
w(() => {
|
|
53
|
+
a(ye);
|
|
54
|
+
}, [ye, a]);
|
|
55
|
+
let [be, xe] = D(!1), Se = H && !be;
|
|
56
|
+
w(() => {
|
|
57
|
+
s(Se);
|
|
58
|
+
}, [Se, s]);
|
|
59
|
+
let K = b(y), q = p.disclosure, J = p.onboardingGate, Y = y?.status === "INVITED", X = y?.status === "ACTIVE" || y?.status === "INACTIVE", Ce = !!(y && M), we = Ce && (Y || X), Te = !y && !j || we && !j, Z = !!y && !Te && !Ce && !Y && !X && me && F.reason === l.OrganizationApplicationComplete && !G, Q = E(!1), [Ee, De] = D(!1);
|
|
60
|
+
w(() => {
|
|
61
|
+
!K && W && ge(!1);
|
|
62
|
+
}, [W, K]), w(() => {
|
|
63
|
+
F.isResolved && !U && pe(!0);
|
|
64
|
+
}, [F.isResolved, U]), w(() => {
|
|
65
|
+
Z ? Q.current || (Q.current = !0, De(!0), P()) : (Q.current = !1, De(!1));
|
|
66
|
+
}, [Z, P]);
|
|
67
|
+
let $ = () => /* @__PURE__ */ O(e, {
|
|
68
68
|
isLoading: !0,
|
|
69
69
|
sections: [],
|
|
70
70
|
selectedSectionId: "",
|
|
71
|
-
onSectionChange:
|
|
72
|
-
labels:
|
|
71
|
+
onSectionChange: he,
|
|
72
|
+
labels: p.shell
|
|
73
73
|
});
|
|
74
74
|
if (Te) return $();
|
|
75
|
-
if ((!
|
|
76
|
-
title:
|
|
77
|
-
description:
|
|
78
|
-
retryLabel:
|
|
79
|
-
onRetry:
|
|
80
|
-
testId:
|
|
75
|
+
if ((!y || we) && j) return /* @__PURE__ */ O(f, {
|
|
76
|
+
title: q.initFailedState.title,
|
|
77
|
+
description: q.initFailedState.body,
|
|
78
|
+
retryLabel: q.initFailedState.retryButton,
|
|
79
|
+
onRetry: P,
|
|
80
|
+
testId: k.initFailed
|
|
81
81
|
});
|
|
82
|
-
let Oe = () =>
|
|
83
|
-
title:
|
|
84
|
-
description:
|
|
85
|
-
retryLabel:
|
|
86
|
-
onRetry:
|
|
87
|
-
testId:
|
|
88
|
-
}) : /* @__PURE__ */
|
|
89
|
-
if (
|
|
90
|
-
if (
|
|
91
|
-
} else return
|
|
92
|
-
title:
|
|
93
|
-
description:
|
|
94
|
-
retryLabel:
|
|
95
|
-
onRetry:
|
|
96
|
-
testId:
|
|
97
|
-
}) : $() : !
|
|
98
|
-
title:
|
|
99
|
-
description:
|
|
100
|
-
retryLabel:
|
|
101
|
-
onRetry:
|
|
102
|
-
testId:
|
|
103
|
-
}) : /* @__PURE__ */
|
|
82
|
+
let Oe = () => W && j ? /* @__PURE__ */ O(f, {
|
|
83
|
+
title: q.refreshFailedState.title,
|
|
84
|
+
description: q.refreshFailedState.body,
|
|
85
|
+
retryLabel: q.refreshFailedState.retryButton,
|
|
86
|
+
onRetry: P,
|
|
87
|
+
testId: k.disclosuresRefreshFailed
|
|
88
|
+
}) : /* @__PURE__ */ O(ae, { onAccepted: _e });
|
|
89
|
+
if (Y || X) {
|
|
90
|
+
if (K) return Oe();
|
|
91
|
+
} else return me ? Z ? j || Ee && !N ? /* @__PURE__ */ O(f, {
|
|
92
|
+
title: q.initFailedState.title,
|
|
93
|
+
description: q.initFailedState.body,
|
|
94
|
+
retryLabel: q.initFailedState.retryButton,
|
|
95
|
+
onRetry: P,
|
|
96
|
+
testId: k.initFailed
|
|
97
|
+
}) : $() : !I.isResolved && V !== x.Form && !H ? $() : (V === x.Hidden || V === x.Form && F.isSuppressed) && z?.status !== "COMPLETE" && !H && !G ? /* @__PURE__ */ O(f, {
|
|
98
|
+
title: J.applicationUnavailableState.title,
|
|
99
|
+
description: J.applicationUnavailableState.body,
|
|
100
|
+
retryLabel: J.applicationUnavailableState.retryButton,
|
|
101
|
+
onRetry: F.refetch,
|
|
102
|
+
testId: k.applicationUnavailable
|
|
103
|
+
}) : /* @__PURE__ */ O(oe, {
|
|
104
104
|
isFullScreenInline: !0,
|
|
105
105
|
showApplicationStatusRefresh: !0,
|
|
106
|
-
onResultPhaseChange:
|
|
107
|
-
onEmbeddedOnboardingCompletedSuccessfully: () =>
|
|
106
|
+
onResultPhaseChange: fe,
|
|
107
|
+
onEmbeddedOnboardingCompletedSuccessfully: () => ve(!0),
|
|
108
108
|
onNavigateToDashboard: () => {
|
|
109
|
-
|
|
109
|
+
xe(!0), c.includes(i.Dashboard) && v(i.Dashboard), P();
|
|
110
110
|
},
|
|
111
111
|
disclosureLinks: r,
|
|
112
|
-
...
|
|
112
|
+
...p.onboarding
|
|
113
113
|
}) : $();
|
|
114
|
-
let ke =
|
|
115
|
-
let { Content: r, placesOwnTitle: a } =
|
|
114
|
+
let ke = y?.bankName?.trim(), Ae = ke ? p.sectionTitle.bankTagline.replaceAll("{bankName}", ke) : void 0, je = c.map((e) => {
|
|
115
|
+
let { Content: r, placesOwnTitle: a } = ie[e], o = p.menu[e], s = e === i.Accounts ? void 0 : Ae, c = (e) => /* @__PURE__ */ O(t, {
|
|
116
116
|
title: o,
|
|
117
117
|
bankTagline: s,
|
|
118
118
|
children: e
|
|
119
|
-
}), l = /* @__PURE__ */
|
|
120
|
-
return n && (l = a ? /* @__PURE__ */
|
|
119
|
+
}), l = /* @__PURE__ */ O(r, {});
|
|
120
|
+
return n && (l = a ? /* @__PURE__ */ O(r, { renderTitle: c }) : /* @__PURE__ */ le(ce, { children: [c(), /* @__PURE__ */ O(r, {})] })), {
|
|
121
121
|
id: e,
|
|
122
122
|
label: o,
|
|
123
123
|
content: l
|
|
124
124
|
};
|
|
125
125
|
});
|
|
126
|
-
return /* @__PURE__ */
|
|
126
|
+
return /* @__PURE__ */ O(e, {
|
|
127
127
|
sections: je,
|
|
128
|
-
selectedSectionId:
|
|
129
|
-
onSectionChange:
|
|
130
|
-
labels:
|
|
128
|
+
selectedSectionId: ee ?? "",
|
|
129
|
+
onSectionChange: he,
|
|
130
|
+
labels: p.shell
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
|
-
function
|
|
134
|
-
let f =
|
|
135
|
-
|
|
136
|
-
f(
|
|
133
|
+
function M({ sections: e = r, section: t, defaultSection: i, onSectionChange: o, labels: l, cardArtSrc: u, ...d }) {
|
|
134
|
+
let f = ee();
|
|
135
|
+
w(() => {
|
|
136
|
+
f(y.Mounted);
|
|
137
137
|
}, [f]);
|
|
138
|
-
let { initResponse:
|
|
139
|
-
|
|
140
|
-
let [
|
|
141
|
-
|
|
142
|
-
let
|
|
143
|
-
|
|
144
|
-
let
|
|
145
|
-
|
|
146
|
-
let [
|
|
147
|
-
|
|
148
|
-
}, [
|
|
149
|
-
|
|
150
|
-
let
|
|
151
|
-
let t =
|
|
152
|
-
return !!t && (!t.anyOfScopes || c(
|
|
138
|
+
let { initResponse: p } = te(), m = p?.scopes, { client: h, widgetToken: g } = s(), _ = p?.userId ?? null, [ne, re] = D(_), [v, b] = D(0);
|
|
139
|
+
_ !== ne && (re(_), ne !== null && b((e) => e + 1));
|
|
140
|
+
let [ae, x] = D(h);
|
|
141
|
+
h !== ae && (x(h), b((e) => e + 1));
|
|
142
|
+
let S = !!g, [oe, C] = D(S);
|
|
143
|
+
S !== oe && (C(S), b((e) => e + 1));
|
|
144
|
+
let T = p?.organizationId ?? null, [E, ce] = D(T);
|
|
145
|
+
T !== E && (ce(T), E !== null && b((e) => e + 1));
|
|
146
|
+
let [le, k] = D(!1), [A, M] = D(!1), [N, P] = D(null), F = () => {
|
|
147
|
+
k(!1), b((e) => e + 1);
|
|
148
|
+
}, [I, L] = D(g);
|
|
149
|
+
g !== I && (L(g), le && _ === null && T === null && S === !!I && (A ? P(v) : F())), N !== null && !A && (P(null), N === v && _ === null && T === null && F());
|
|
150
|
+
let R = se(() => n(l), [l]), z = e.filter((e) => {
|
|
151
|
+
let t = ie[e];
|
|
152
|
+
return !!t && (!t.anyOfScopes || c(m, t.anyOfScopes));
|
|
153
153
|
});
|
|
154
|
-
return /* @__PURE__ */
|
|
154
|
+
return /* @__PURE__ */ O(a, {
|
|
155
155
|
sections: e,
|
|
156
|
-
availableSections:
|
|
157
|
-
grantedScopes:
|
|
158
|
-
labels:
|
|
156
|
+
availableSections: z,
|
|
157
|
+
grantedScopes: m,
|
|
158
|
+
labels: R,
|
|
159
159
|
section: t,
|
|
160
160
|
defaultSection: i,
|
|
161
161
|
onSectionChange: o,
|
|
162
162
|
cardArtSrc: u,
|
|
163
|
-
children: /* @__PURE__ */
|
|
164
|
-
onApplicantLatchChange:
|
|
165
|
-
onResultScreenHeldChange:
|
|
163
|
+
children: /* @__PURE__ */ O(j, {
|
|
164
|
+
onApplicantLatchChange: k,
|
|
165
|
+
onResultScreenHeldChange: M,
|
|
166
166
|
...d
|
|
167
|
-
},
|
|
167
|
+
}, v)
|
|
168
168
|
});
|
|
169
169
|
}
|
|
170
|
-
function
|
|
171
|
-
return /* @__PURE__ */
|
|
172
|
-
widgetName:
|
|
170
|
+
function N({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: i, linkComponent: a, uiFramework: o, errorFallback: s, onError: c, analytics: l, disclosuresAcceptance: u, providerLabels: d, ...f }) {
|
|
171
|
+
return /* @__PURE__ */ O(p, {
|
|
172
|
+
widgetName: v,
|
|
173
173
|
baseUrl: e,
|
|
174
174
|
widgetToken: t,
|
|
175
175
|
organizationId: n,
|
|
176
176
|
configClient: r,
|
|
177
177
|
gatewayRouting: i,
|
|
178
178
|
linkComponent: a,
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
children: /* @__PURE__ */ k(N, { ...p })
|
|
179
|
+
uiFramework: o,
|
|
180
|
+
errorFallback: s,
|
|
181
|
+
onError: c,
|
|
182
|
+
analytics: l,
|
|
183
|
+
disclosuresAcceptance: u,
|
|
184
|
+
providerLabels: d,
|
|
185
|
+
children: /* @__PURE__ */ O(M, { ...f })
|
|
187
186
|
});
|
|
188
187
|
}
|
|
189
188
|
//#endregion
|
|
190
|
-
export {
|
|
189
|
+
export { k as WIDGET_SUITE_TEST_IDS, N as WidgetSuite, N as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tesouro/embedded-components-react",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.58",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -248,7 +248,6 @@
|
|
|
248
248
|
"@radix-ui/react-dialog": "^1.1.23",
|
|
249
249
|
"@radix-ui/react-dropdown-menu": "^2.1.24",
|
|
250
250
|
"@radix-ui/react-label": "^2.1.15",
|
|
251
|
-
"@radix-ui/react-popover": "^1.1.23",
|
|
252
251
|
"@radix-ui/react-radio-group": "^1.4.7",
|
|
253
252
|
"@radix-ui/react-select": "^2.3.7",
|
|
254
253
|
"@radix-ui/react-slot": "^1.3.3",
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
import { endOfDay as e, endOfMonth as t, endOfQuarter as n, endOfWeek as r, endOfYear as i, startOfDay as a, startOfMonth as o, startOfQuarter as s, startOfWeek as c, startOfYear as l, subDays as u, subMonths as d, subQuarters as f, subWeeks as p, subYears as m } from "date-fns";
|
|
2
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js
|
|
3
|
-
var h = [
|
|
4
|
-
{
|
|
5
|
-
value: "today",
|
|
6
|
-
label: "Today",
|
|
7
|
-
group: "Current"
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
value: "this_week",
|
|
11
|
-
label: "This week",
|
|
12
|
-
group: "Current"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
value: "this_month",
|
|
16
|
-
label: "This month",
|
|
17
|
-
group: "Current"
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
value: "this_quarter",
|
|
21
|
-
label: "This quarter",
|
|
22
|
-
group: "Current"
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
value: "this_year",
|
|
26
|
-
label: "This year",
|
|
27
|
-
group: "Current"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
value: "yesterday",
|
|
31
|
-
label: "Yesterday",
|
|
32
|
-
group: "Past"
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
value: "last_week",
|
|
36
|
-
label: "Last week",
|
|
37
|
-
group: "Past"
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
value: "last_month",
|
|
41
|
-
label: "Last month",
|
|
42
|
-
group: "Past"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
value: "last_30_days",
|
|
46
|
-
label: "Last 30 days",
|
|
47
|
-
group: "Past"
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
value: "last_90_days",
|
|
51
|
-
label: "Last 90 days",
|
|
52
|
-
group: "Past"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
value: "last_quarter",
|
|
56
|
-
label: "Last quarter",
|
|
57
|
-
group: "Past"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
value: "last_year",
|
|
61
|
-
label: "Last year",
|
|
62
|
-
group: "Past"
|
|
63
|
-
}
|
|
64
|
-
];
|
|
65
|
-
function g(h) {
|
|
66
|
-
let g = a(/* @__PURE__ */ new Date());
|
|
67
|
-
switch (h) {
|
|
68
|
-
case "today": return {
|
|
69
|
-
from: g,
|
|
70
|
-
to: e(g)
|
|
71
|
-
};
|
|
72
|
-
case "this_week": return {
|
|
73
|
-
from: c(g),
|
|
74
|
-
to: r(g)
|
|
75
|
-
};
|
|
76
|
-
case "this_month": return {
|
|
77
|
-
from: o(g),
|
|
78
|
-
to: t(g)
|
|
79
|
-
};
|
|
80
|
-
case "this_quarter": return {
|
|
81
|
-
from: s(g),
|
|
82
|
-
to: n(g)
|
|
83
|
-
};
|
|
84
|
-
case "this_year": return {
|
|
85
|
-
from: l(g),
|
|
86
|
-
to: i(g)
|
|
87
|
-
};
|
|
88
|
-
case "yesterday": {
|
|
89
|
-
let t = u(g, 1);
|
|
90
|
-
return {
|
|
91
|
-
from: t,
|
|
92
|
-
to: e(t)
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
|
-
case "last_week": {
|
|
96
|
-
let e = c(p(g, 1));
|
|
97
|
-
return {
|
|
98
|
-
from: e,
|
|
99
|
-
to: r(e)
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
case "last_month": {
|
|
103
|
-
let e = o(d(g, 1));
|
|
104
|
-
return {
|
|
105
|
-
from: e,
|
|
106
|
-
to: t(e)
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
case "last_30_days": return {
|
|
110
|
-
from: u(g, 30),
|
|
111
|
-
to: g
|
|
112
|
-
};
|
|
113
|
-
case "last_90_days": return {
|
|
114
|
-
from: u(g, 90),
|
|
115
|
-
to: g
|
|
116
|
-
};
|
|
117
|
-
case "last_quarter": {
|
|
118
|
-
let e = s(f(g, 1));
|
|
119
|
-
return {
|
|
120
|
-
from: e,
|
|
121
|
-
to: n(e)
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
case "last_year": {
|
|
125
|
-
let e = l(m(g, 1));
|
|
126
|
-
return {
|
|
127
|
-
from: e,
|
|
128
|
-
to: i(e)
|
|
129
|
-
};
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
//#endregion
|
|
134
|
-
export { h as DATE_PRESETS, g as resolveDatePreset };
|
|
@@ -1,211 +0,0 @@
|
|
|
1
|
-
import { toMinorUnits as e } from "./index13.js";
|
|
2
|
-
import { formatDateRangeFilterChip as t, formatFilterChipMultiSelectValueSegment as n } from "./index17.js";
|
|
3
|
-
import { useMoniteContext as r } from "./index45.js";
|
|
4
|
-
import { useCounterpartById as i } from "./index46.js";
|
|
5
|
-
import { getCounterpartName as a } from "./index50.js";
|
|
6
|
-
import "./index61.js";
|
|
7
|
-
import { useCurrencies as o } from "./index74.js";
|
|
8
|
-
import { DATE_PRESETS as s, resolveDatePreset as c } from "./index277.js";
|
|
9
|
-
import { useCallback as l, useMemo as u, useState as d } from "react";
|
|
10
|
-
import { formatISO as f } from "date-fns";
|
|
11
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js
|
|
12
|
-
var p = [
|
|
13
|
-
{
|
|
14
|
-
value: "draft",
|
|
15
|
-
label: "New"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
value: "pending_approval",
|
|
19
|
-
label: "Pending approval"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
value: "ready_to_pay",
|
|
23
|
-
label: "Ready to pay"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
value: "paid",
|
|
27
|
-
label: "Paid"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
value: "cancelled",
|
|
31
|
-
label: "Cancelled"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
value: "rejected",
|
|
35
|
-
label: "Rejected"
|
|
36
|
-
}
|
|
37
|
-
], m = {
|
|
38
|
-
draft: ["draft", "new"],
|
|
39
|
-
pending_approval: ["approve_in_progress"],
|
|
40
|
-
ready_to_pay: ["waiting_to_be_paid", "partially_paid"],
|
|
41
|
-
paid: ["paid"],
|
|
42
|
-
cancelled: ["canceled"],
|
|
43
|
-
rejected: ["rejected"]
|
|
44
|
-
}, h = [
|
|
45
|
-
"draft",
|
|
46
|
-
"new",
|
|
47
|
-
"approve_in_progress",
|
|
48
|
-
"rejected",
|
|
49
|
-
"waiting_to_be_paid",
|
|
50
|
-
"partially_paid",
|
|
51
|
-
"paid"
|
|
52
|
-
];
|
|
53
|
-
function g() {
|
|
54
|
-
return {
|
|
55
|
-
search: "",
|
|
56
|
-
activeDateField: "due_date",
|
|
57
|
-
datePreset: void 0,
|
|
58
|
-
dateFrom: void 0,
|
|
59
|
-
dateTo: void 0,
|
|
60
|
-
status: [],
|
|
61
|
-
amountMode: "any",
|
|
62
|
-
amountMin: "",
|
|
63
|
-
amountMax: "",
|
|
64
|
-
vendorName: "",
|
|
65
|
-
hasFile: void 0
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
function _({ initialCounterpartId: _ } = {}) {
|
|
69
|
-
let [v, y] = d(() => ({
|
|
70
|
-
...g(),
|
|
71
|
-
counterpartId: _
|
|
72
|
-
})), { formatToMinorUnits: b } = o(), { componentSettings: x } = r(), { data: S } = i(v.counterpartId), C = a(S), w = x.onboarding.allowedCurrencies?.[0] ?? "USD", T = u(() => {
|
|
73
|
-
let t = {}, n = v.activeDateField;
|
|
74
|
-
if (v.dateFrom && (t[`${n}__gte`] = f(v.dateFrom, { representation: "date" })), v.dateTo && (t[`${n}__lte`] = f(v.dateTo, { representation: "date" })), t.status__in = v.status.length ? v.status.flatMap((e) => m[e] ?? [e]) : h, v.vendorName && (t.counterpart_name__icontains = v.vendorName), v.counterpartId && (t.counterpart_id = v.counterpartId), v.hasFile !== void 0 && (t.has_file = v.hasFile), v.search && (t.search_text = v.search), v.amountMode !== "any") {
|
|
75
|
-
let n = parseFloat(v.amountMin), r = parseFloat(v.amountMax), i = (t) => b(t, w) ?? e(t, 2);
|
|
76
|
-
if (v.amountMode === "exact") {
|
|
77
|
-
if (!isNaN(n)) {
|
|
78
|
-
let e = i(n);
|
|
79
|
-
t.total_amount__gte = e, t.total_amount__lte = e;
|
|
80
|
-
}
|
|
81
|
-
} else isNaN(n) || (t.total_amount__gte = i(n)), isNaN(r) || (t.total_amount__lte = i(r));
|
|
82
|
-
}
|
|
83
|
-
return t;
|
|
84
|
-
}, [
|
|
85
|
-
v,
|
|
86
|
-
w,
|
|
87
|
-
b
|
|
88
|
-
]), E = u(() => {
|
|
89
|
-
let e = 0;
|
|
90
|
-
return v.status.length && e++, v.vendorName && e++, v.counterpartId && e++, v.hasFile !== void 0 && e++, v.amountMode !== "any" && e++, v.search && e++, e;
|
|
91
|
-
}, [v]), D = u(() => {
|
|
92
|
-
let e = [];
|
|
93
|
-
if (v.dateFrom || v.dateTo) {
|
|
94
|
-
let n = (v.datePreset ? s.find((e) => e.value === v.datePreset)?.label : void 0) ?? t(v.dateFrom, v.dateTo), r = v.activeDateField === "due_date" ? "Due date" : v.activeDateField === "created_at" ? "Created on" : "Issue date";
|
|
95
|
-
e.push({
|
|
96
|
-
key: "date",
|
|
97
|
-
label: `${r}: ${n}`
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
if (v.status.length) {
|
|
101
|
-
let t = v.status.map((e) => p.find((t) => t.value === e)?.label ?? e);
|
|
102
|
-
e.push({
|
|
103
|
-
key: "status",
|
|
104
|
-
label: `Status: ${n(t)}`
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
return v.vendorName && e.push({
|
|
108
|
-
key: "vendor",
|
|
109
|
-
label: `Vendor: ${v.vendorName}`
|
|
110
|
-
}), v.counterpartId && e.push({
|
|
111
|
-
key: "counterpart",
|
|
112
|
-
label: `Vendor: ${C || v.counterpartId}`
|
|
113
|
-
}), v.hasFile === !0 && e.push({
|
|
114
|
-
key: "attachment",
|
|
115
|
-
label: "Has attachment"
|
|
116
|
-
}), v.hasFile === !1 && e.push({
|
|
117
|
-
key: "attachment",
|
|
118
|
-
label: "No attachment"
|
|
119
|
-
}), v.amountMode !== "any" && e.push({
|
|
120
|
-
key: "amount",
|
|
121
|
-
label: "Amount"
|
|
122
|
-
}), v.search && e.push({
|
|
123
|
-
key: "search",
|
|
124
|
-
label: `Search: ${v.search}`
|
|
125
|
-
}), e;
|
|
126
|
-
}, [v, C]), O = l((e) => {
|
|
127
|
-
let { from: t, to: n } = c(e);
|
|
128
|
-
y((r) => ({
|
|
129
|
-
...r,
|
|
130
|
-
datePreset: e,
|
|
131
|
-
dateFrom: t,
|
|
132
|
-
dateTo: n
|
|
133
|
-
}));
|
|
134
|
-
}, []), k = l((e, t) => {
|
|
135
|
-
y((n) => ({
|
|
136
|
-
...n,
|
|
137
|
-
datePreset: void 0,
|
|
138
|
-
dateFrom: e,
|
|
139
|
-
dateTo: t
|
|
140
|
-
}));
|
|
141
|
-
}, []), A = l((e) => {
|
|
142
|
-
y((t) => ({
|
|
143
|
-
...t,
|
|
144
|
-
activeDateField: e
|
|
145
|
-
}));
|
|
146
|
-
}, []), j = l((e) => {
|
|
147
|
-
switch (e) {
|
|
148
|
-
case "date":
|
|
149
|
-
y((e) => ({
|
|
150
|
-
...e,
|
|
151
|
-
datePreset: void 0,
|
|
152
|
-
dateFrom: void 0,
|
|
153
|
-
dateTo: void 0,
|
|
154
|
-
activeDateField: "due_date"
|
|
155
|
-
}));
|
|
156
|
-
break;
|
|
157
|
-
case "status":
|
|
158
|
-
y((e) => ({
|
|
159
|
-
...e,
|
|
160
|
-
status: []
|
|
161
|
-
}));
|
|
162
|
-
break;
|
|
163
|
-
case "vendor":
|
|
164
|
-
y((e) => ({
|
|
165
|
-
...e,
|
|
166
|
-
vendorName: ""
|
|
167
|
-
}));
|
|
168
|
-
break;
|
|
169
|
-
case "counterpart":
|
|
170
|
-
y((e) => ({
|
|
171
|
-
...e,
|
|
172
|
-
counterpartId: void 0
|
|
173
|
-
}));
|
|
174
|
-
break;
|
|
175
|
-
case "attachment":
|
|
176
|
-
y((e) => ({
|
|
177
|
-
...e,
|
|
178
|
-
hasFile: void 0
|
|
179
|
-
}));
|
|
180
|
-
break;
|
|
181
|
-
case "amount":
|
|
182
|
-
y((e) => ({
|
|
183
|
-
...e,
|
|
184
|
-
amountMode: "any",
|
|
185
|
-
amountMin: "",
|
|
186
|
-
amountMax: ""
|
|
187
|
-
}));
|
|
188
|
-
break;
|
|
189
|
-
case "search": y((e) => ({
|
|
190
|
-
...e,
|
|
191
|
-
search: ""
|
|
192
|
-
}));
|
|
193
|
-
}
|
|
194
|
-
}, []), M = l(() => y(g()), []);
|
|
195
|
-
return {
|
|
196
|
-
state: v,
|
|
197
|
-
setState: y,
|
|
198
|
-
queryParams: T,
|
|
199
|
-
activeFilterCount: E,
|
|
200
|
-
activeChips: D,
|
|
201
|
-
datePresets: s,
|
|
202
|
-
statusOptions: p,
|
|
203
|
-
setDatePreset: O,
|
|
204
|
-
setDateRange: k,
|
|
205
|
-
setActiveDateField: A,
|
|
206
|
-
clearFilter: j,
|
|
207
|
-
clearAll: M
|
|
208
|
-
};
|
|
209
|
-
}
|
|
210
|
-
//#endregion
|
|
211
|
-
export { h as AP_DEFAULT_STATUSES, p as AP_STATUS_OPTIONS, _ as usePayablesFilter };
|