@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
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js
|
|
2
|
-
var e = {
|
|
3
|
-
due_date: "due_date",
|
|
4
|
-
status: "status",
|
|
5
|
-
document_id: "document_id",
|
|
6
|
-
issued_at: "issued_at",
|
|
7
|
-
amount: "amount"
|
|
8
|
-
}, t = [{
|
|
9
|
-
id: "due_date",
|
|
10
|
-
desc: !0
|
|
11
|
-
}];
|
|
12
|
-
//#endregion
|
|
13
|
-
export { t as DEFAULT_SORTING, e as SORT_FIELD_BY_COLUMN_ID };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js
|
|
2
|
-
var e = [
|
|
3
|
-
"draft",
|
|
4
|
-
"new",
|
|
5
|
-
"waiting_to_be_paid",
|
|
6
|
-
"approve_in_progress"
|
|
7
|
-
], t = 864e5, n = (n) => {
|
|
8
|
-
if (!n.due_date) return 0;
|
|
9
|
-
let r = /* @__PURE__ */ new Date();
|
|
10
|
-
r.setUTCHours(0, 0, 0, 0);
|
|
11
|
-
let i = new Date(n.due_date);
|
|
12
|
-
if (i.setUTCHours(0, 0, 0, 0), i.getTime() === r.getTime()) return 0;
|
|
13
|
-
let a = e.includes(n.status), o = i.getTime() < r.getTime();
|
|
14
|
-
return !a || !o ? 0 : Math.floor((r.getTime() - i.getTime()) / t);
|
|
15
|
-
};
|
|
16
|
-
//#endregion
|
|
17
|
-
export { n as getInvoiceOverdueDays };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { dateStringToLocalDate as e } from "./index16.js";
|
|
2
|
-
import { useMoniteContext as t } from "./index45.js";
|
|
3
|
-
import { getInvoiceOverdueDays as n } from "./index280.js";
|
|
4
|
-
import { twMerge as r } from "tailwind-merge";
|
|
5
|
-
import { jsx as i, jsxs as a } from "@emotion/react/jsx-runtime";
|
|
6
|
-
import { useLingui as o } from "@lingui/react";
|
|
7
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js
|
|
8
|
-
var s = ({ data: s, emptyLabel: c }) => {
|
|
9
|
-
let { i18n: l } = o(), { locale: u } = t();
|
|
10
|
-
if (!s.due_date) return c ? /* @__PURE__ */ i("span", { children: c }) : /* @__PURE__ */ i("span", {
|
|
11
|
-
className: "ttw:opacity-40",
|
|
12
|
-
children: "-"
|
|
13
|
-
});
|
|
14
|
-
let d = l.date(e(s.due_date), u.dateFormat), f = n(s), p = f > 0;
|
|
15
|
-
return /* @__PURE__ */ a("div", {
|
|
16
|
-
className: "ttw:flex ttw:flex-col ttw:h-full ttw:justify-center ttw:gap-1",
|
|
17
|
-
children: [/* @__PURE__ */ i("span", {
|
|
18
|
-
className: r("ttw:text-sm ttw:font-normal ttw:leading-5", p && "ttw:text-rose-700"),
|
|
19
|
-
children: d
|
|
20
|
-
}), p && /* @__PURE__ */ a("span", {
|
|
21
|
-
className: "ttw:text-xs ttw:font-normal ttw:leading-4.5 ttw:text-rose-700",
|
|
22
|
-
children: [
|
|
23
|
-
f,
|
|
24
|
-
" ",
|
|
25
|
-
f === 1 ? l._("day overdue") : l._("days overdue")
|
|
26
|
-
]
|
|
27
|
-
})]
|
|
28
|
-
});
|
|
29
|
-
};
|
|
30
|
-
//#endregion
|
|
31
|
-
export { s as DueDateCell };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./index281.js";
|
|
@@ -1,242 +0,0 @@
|
|
|
1
|
-
import { Scope as e } from "../../shared/data-access/dist/lib/scopes.js";
|
|
2
|
-
import "../../shared/data-access/dist/index.js";
|
|
3
|
-
import { dateStringToLocalDate as t } from "./index16.js";
|
|
4
|
-
import { useMoniteContext as n } from "./index45.js";
|
|
5
|
-
import { usePayablePaymentIntentsAndRecords as ee } from "./index57.js";
|
|
6
|
-
import { useCurrencies as r } from "./index74.js";
|
|
7
|
-
import { MoniteScopedProviders as i } from "./index153.js";
|
|
8
|
-
import { useUserPermissions as a } from "./index154.js";
|
|
9
|
-
import { GetNoRowsOverlay as o } from "./index159.js";
|
|
10
|
-
import { AccessRestriction as te } from "./index160.js";
|
|
11
|
-
import "./index163.js";
|
|
12
|
-
import { DataTable as s, SortableHeader as c } from "./index166.js";
|
|
13
|
-
import { hasSelectedText as l } from "./index167.js";
|
|
14
|
-
import { CounterpartNameCellById as u } from "./index178.js";
|
|
15
|
-
import "./index179.js";
|
|
16
|
-
import { isPayableInOCRProcessing as d } from "./index238.js";
|
|
17
|
-
import { PayableStatusChip as f } from "./index243.js";
|
|
18
|
-
import "./index244.js";
|
|
19
|
-
import { SummaryCardsFilters as p } from "./index275.js";
|
|
20
|
-
import { PayablesFilterBar as m } from "./index276.js";
|
|
21
|
-
import { usePayablesFilter as h } from "./index278.js";
|
|
22
|
-
import { DEFAULT_SORTING as g, SORT_FIELD_BY_COLUMN_ID as _ } from "./index279.js";
|
|
23
|
-
import { DueDateCell as v } from "./index281.js";
|
|
24
|
-
import "./index282.js";
|
|
25
|
-
import { useEffect as y, useMemo as b, useState as x } from "react";
|
|
26
|
-
import { Loader2 as S } from "lucide-react";
|
|
27
|
-
import { Fragment as C, jsx as w, jsxs as T } from "@emotion/react/jsx-runtime";
|
|
28
|
-
import { useLingui as ne } from "@lingui/react";
|
|
29
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js
|
|
30
|
-
var E = (e) => /* @__PURE__ */ w(i, { children: /* @__PURE__ */ w(D, { ...e }) }), D = ({ initialCounterpartId: i, onRowClick: E, onPay: D, openFileInput: O, setIsCreateInvoiceDialogOpen: k, openEditDialog: A, onSubmitted: j, onApproved: M, onCanceled: N }) => {
|
|
31
|
-
let { i18n: P } = ne(), { api: F, locale: I, queryClient: L, componentSettings: R } = n(), [z, B] = x(null), [V, H] = x(R.payables.pageSizeOptions?.[0] ?? 10), [U, W] = x(g), G = h({ initialCounterpartId: i }), [K, q] = x("");
|
|
32
|
-
y(() => {
|
|
33
|
-
let e = setTimeout(() => q(G.state.search), 300);
|
|
34
|
-
return () => clearTimeout(e);
|
|
35
|
-
}, [G.state.search]);
|
|
36
|
-
let { formatCurrencyToDisplay: J } = r(), Y = a().has(e.PayableReadOrg), X = U[0], Z = F.finops.getPayables.getQueryKey({ query: {
|
|
37
|
-
sort: X ? _[X.id] : void 0,
|
|
38
|
-
order: X?.desc ? "desc" : "asc",
|
|
39
|
-
limit: V,
|
|
40
|
-
pagination_token: z || void 0,
|
|
41
|
-
...G.queryParams,
|
|
42
|
-
search_text: K || G.queryParams.search_text || void 0
|
|
43
|
-
} }), { data: Q, isLoading: re, isError: ie, refetch: $ } = F.finops.getPayables.useQuery(Z, {
|
|
44
|
-
enabled: !!Y,
|
|
45
|
-
refetchInterval: F.finops.getPayables.getQueryData(Z, L)?.data.filter(d).length ? 2e3 : 3e4
|
|
46
|
-
}), ae = b(() => Q?.data?.filter((e) => e.status === "waiting_to_be_paid" || e.status === "partially_paid").map((e) => e.id), [Q?.data]), { payablesPaymentIntentsRecord: oe, refetch: se } = ee(ae || []), ce = (e) => {
|
|
47
|
-
let t = typeof e == "function" ? e(U) : e;
|
|
48
|
-
W(t[0] && _[t[0].id] ? t : g), B(null);
|
|
49
|
-
}, le = b(() => [
|
|
50
|
-
{
|
|
51
|
-
accessorKey: "due_date",
|
|
52
|
-
header: ({ column: e }) => /* @__PURE__ */ w(c, {
|
|
53
|
-
column: e,
|
|
54
|
-
title: P._("Due date"),
|
|
55
|
-
ariaLabel: P._("Sort by due date")
|
|
56
|
-
}),
|
|
57
|
-
cell: ({ row: e }) => /* @__PURE__ */ w(v, { data: e.original })
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
accessorKey: "status",
|
|
61
|
-
header: ({ column: e }) => /* @__PURE__ */ w(c, {
|
|
62
|
-
column: e,
|
|
63
|
-
title: P._("Status"),
|
|
64
|
-
ariaLabel: P._("Sort by status")
|
|
65
|
-
}),
|
|
66
|
-
cell: ({ row: e }) => /* @__PURE__ */ w(f, {
|
|
67
|
-
status: e.original.status,
|
|
68
|
-
dueDate: e.original.due_date
|
|
69
|
-
})
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
accessorKey: "document_id",
|
|
73
|
-
header: ({ column: e }) => /* @__PURE__ */ w(c, {
|
|
74
|
-
column: e,
|
|
75
|
-
title: P._("Number"),
|
|
76
|
-
ariaLabel: P._("Sort by number")
|
|
77
|
-
}),
|
|
78
|
-
cell: ({ row: e }) => {
|
|
79
|
-
let t = e.original;
|
|
80
|
-
return d(t) ? /* @__PURE__ */ T("div", {
|
|
81
|
-
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
82
|
-
children: [/* @__PURE__ */ w(S, { className: "ttw:animate-spin ttw:size-5 ttw:shrink-0" }), /* @__PURE__ */ w("span", { children: t.document_id ? t.document_id : /* @__PURE__ */ T(C, { children: [
|
|
83
|
-
P._("Processing file"),
|
|
84
|
-
" '",
|
|
85
|
-
t.file?.name,
|
|
86
|
-
"'"
|
|
87
|
-
] }) })]
|
|
88
|
-
}) : /* @__PURE__ */ w("span", { children: t.document_id });
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
accessorKey: "counterpart_id",
|
|
93
|
-
header: P._("Vendor"),
|
|
94
|
-
cell: ({ row: e }) => {
|
|
95
|
-
let t = e.original;
|
|
96
|
-
return t.counterpart?.name ? /* @__PURE__ */ w("span", { children: t.counterpart.name }) : t.counterpart_id ? /* @__PURE__ */ w(u, { counterpartId: t.counterpart_id }) : t.counterpart_raw_data?.name ? /* @__PURE__ */ w("span", { children: t.counterpart_raw_data.name }) : /* @__PURE__ */ w("span", {
|
|
97
|
-
style: { opacity: .4 },
|
|
98
|
-
children: "-"
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
accessorKey: "issued_at",
|
|
104
|
-
header: ({ column: e }) => /* @__PURE__ */ w(c, {
|
|
105
|
-
column: e,
|
|
106
|
-
title: P._("Issued on"),
|
|
107
|
-
ariaLabel: P._("Sort by issue date")
|
|
108
|
-
}),
|
|
109
|
-
cell: ({ row: e }) => {
|
|
110
|
-
let n = e.original.issued_at;
|
|
111
|
-
return n ? P.date(t(n), I.dateFormat) : "—";
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
accessorKey: "amount",
|
|
116
|
-
header: ({ column: e }) => /* @__PURE__ */ w("div", {
|
|
117
|
-
className: "ttw:flex ttw:justify-end",
|
|
118
|
-
children: /* @__PURE__ */ w(c, {
|
|
119
|
-
column: e,
|
|
120
|
-
title: P._("Total"),
|
|
121
|
-
ariaLabel: P._("Sort by total")
|
|
122
|
-
})
|
|
123
|
-
}),
|
|
124
|
-
cell: ({ row: e }) => {
|
|
125
|
-
let t = e.original.total_amount;
|
|
126
|
-
return /* @__PURE__ */ w("div", {
|
|
127
|
-
className: "ttw:text-right",
|
|
128
|
-
children: t ? J(t, e.original.currency ?? "USD") : ""
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
], [
|
|
133
|
-
P,
|
|
134
|
-
I.dateFormat,
|
|
135
|
-
J,
|
|
136
|
-
oe,
|
|
137
|
-
se,
|
|
138
|
-
D,
|
|
139
|
-
j,
|
|
140
|
-
M,
|
|
141
|
-
N,
|
|
142
|
-
$,
|
|
143
|
-
A
|
|
144
|
-
]);
|
|
145
|
-
if (y(() => {
|
|
146
|
-
B(null);
|
|
147
|
-
}, [G.queryParams]), !Y) return /* @__PURE__ */ w(te, {});
|
|
148
|
-
let ue = G.activeFilterCount > 0, de = !!K;
|
|
149
|
-
return /* @__PURE__ */ T("div", {
|
|
150
|
-
className: "ttw:flex ttw:flex-col ttw:overflow-hidden ttw:min-h-125",
|
|
151
|
-
children: [/* @__PURE__ */ w(p, {
|
|
152
|
-
selectedStatus: G.state.status.length === 0 ? "all" : G.state.status[0],
|
|
153
|
-
onChangeFilter: (e, t) => G.setState((e) => ({
|
|
154
|
-
...e,
|
|
155
|
-
status: t ? [t] : []
|
|
156
|
-
}))
|
|
157
|
-
}), /* @__PURE__ */ w(s, {
|
|
158
|
-
columns: le,
|
|
159
|
-
data: Q?.data ?? [],
|
|
160
|
-
sorting: U,
|
|
161
|
-
onSortingChange: ce,
|
|
162
|
-
pageSize: V,
|
|
163
|
-
onPageSizeChange: (e) => {
|
|
164
|
-
H(e), B(null);
|
|
165
|
-
},
|
|
166
|
-
nextPaginationToken: Q?.next_pagination_token ?? void 0,
|
|
167
|
-
prevPaginationToken: Q?.prev_pagination_token ?? void 0,
|
|
168
|
-
onPaginationTokenChange: (e) => B(e ?? null),
|
|
169
|
-
onRowClick: (e) => {
|
|
170
|
-
!l() && e.ocr_status !== "processing" && E?.(e.id);
|
|
171
|
-
},
|
|
172
|
-
filterComponent: /* @__PURE__ */ w(m, {
|
|
173
|
-
searchValue: G.state.search,
|
|
174
|
-
onSearchChange: (e) => G.setState((t) => ({
|
|
175
|
-
...t,
|
|
176
|
-
search: e
|
|
177
|
-
})),
|
|
178
|
-
activeFilterCount: G.activeFilterCount,
|
|
179
|
-
activeChips: G.activeChips,
|
|
180
|
-
onDismissChip: G.clearFilter,
|
|
181
|
-
onClearAll: G.clearAll,
|
|
182
|
-
activeDateField: G.state.activeDateField,
|
|
183
|
-
onActiveDateFieldChange: G.setActiveDateField,
|
|
184
|
-
allPresets: G.datePresets,
|
|
185
|
-
selectedDatePreset: G.state.datePreset,
|
|
186
|
-
dateFrom: G.state.dateFrom,
|
|
187
|
-
dateTo: G.state.dateTo,
|
|
188
|
-
onDateRangeChange: ({ from: e, to: t }) => G.setDateRange(e, t),
|
|
189
|
-
onDatePresetChange: G.setDatePreset,
|
|
190
|
-
statusOptions: G.statusOptions,
|
|
191
|
-
selectedStatus: G.state.status,
|
|
192
|
-
onStatusChange: (e) => G.setState((t) => ({
|
|
193
|
-
...t,
|
|
194
|
-
status: e
|
|
195
|
-
})),
|
|
196
|
-
amountMode: G.state.amountMode,
|
|
197
|
-
onAmountModeChange: (e) => G.setState((t) => ({
|
|
198
|
-
...t,
|
|
199
|
-
amountMode: e
|
|
200
|
-
})),
|
|
201
|
-
amountMin: G.state.amountMin,
|
|
202
|
-
amountMax: G.state.amountMax,
|
|
203
|
-
onAmountMinChange: (e) => G.setState((t) => ({
|
|
204
|
-
...t,
|
|
205
|
-
amountMin: e
|
|
206
|
-
})),
|
|
207
|
-
onAmountMaxChange: (e) => G.setState((t) => ({
|
|
208
|
-
...t,
|
|
209
|
-
amountMax: e
|
|
210
|
-
})),
|
|
211
|
-
vendorName: G.state.vendorName,
|
|
212
|
-
onVendorNameChange: (e) => G.setState((t) => ({
|
|
213
|
-
...t,
|
|
214
|
-
vendorName: e
|
|
215
|
-
})),
|
|
216
|
-
hasFile: G.state.hasFile,
|
|
217
|
-
onHasFileChange: (e) => G.setState((t) => ({
|
|
218
|
-
...t,
|
|
219
|
-
hasFile: e
|
|
220
|
-
}))
|
|
221
|
-
}),
|
|
222
|
-
children: /* @__PURE__ */ w(o, {
|
|
223
|
-
noDataTitle: P._("No bills yet"),
|
|
224
|
-
noDataDescription1: P._("You don't have any bills yet"),
|
|
225
|
-
filterTitle: P._("No bills found"),
|
|
226
|
-
isLoading: re,
|
|
227
|
-
isFiltering: ue,
|
|
228
|
-
isSearching: de,
|
|
229
|
-
isError: ie,
|
|
230
|
-
dataLength: Q?.data.length || 0,
|
|
231
|
-
onCreate: (e) => {
|
|
232
|
-
e === "New Invoice" ? k?.(!0) : e === "Upload File" && O?.();
|
|
233
|
-
},
|
|
234
|
-
refetch: $,
|
|
235
|
-
entityName: P._("Payable"),
|
|
236
|
-
type: "no-data=payables"
|
|
237
|
-
})
|
|
238
|
-
})]
|
|
239
|
-
});
|
|
240
|
-
};
|
|
241
|
-
//#endregion
|
|
242
|
-
export { E as PayablesTable };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./index283.js";
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { useRootElements as e } from "./index76.js";
|
|
2
|
-
import "./index77.js";
|
|
3
|
-
import { cn as t } from "./index62.js";
|
|
4
|
-
import "react";
|
|
5
|
-
import { jsx as n } from "@emotion/react/jsx-runtime";
|
|
6
|
-
import * as r from "@radix-ui/react-popover";
|
|
7
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js
|
|
8
|
-
function i({ ...e }) {
|
|
9
|
-
return /* @__PURE__ */ n(r.Root, {
|
|
10
|
-
"data-slot": "popover",
|
|
11
|
-
...e
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
function a({ ref: e, ...t }) {
|
|
15
|
-
return /* @__PURE__ */ n(r.Trigger, {
|
|
16
|
-
"data-slot": "popover-trigger",
|
|
17
|
-
ref: e,
|
|
18
|
-
...t
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
a.displayName = r.Trigger.displayName;
|
|
22
|
-
function o({ className: i, align: a = "center", sideOffset: o = 4, ...s }) {
|
|
23
|
-
let { root: c } = e();
|
|
24
|
-
return /* @__PURE__ */ n(r.Portal, {
|
|
25
|
-
container: c,
|
|
26
|
-
children: /* @__PURE__ */ n(r.Content, {
|
|
27
|
-
"data-slot": "popover-content",
|
|
28
|
-
align: a,
|
|
29
|
-
sideOffset: o,
|
|
30
|
-
className: t("ttw:bg-popover ttw:text-popover-foreground ttw:data-[state=open]:animate-in ttw:data-[state=closed]:animate-out ttw:data-[state=closed]:fade-out-0 ttw:data-[state=open]:fade-in-0 ttw:data-[state=closed]:zoom-out-95 ttw:data-[state=open]:zoom-in-95 ttw:data-[side=bottom]:slide-in-from-top-2 ttw:data-[side=left]:slide-in-from-right-2 ttw:data-[side=right]:slide-in-from-left-2 ttw:data-[side=top]:slide-in-from-bottom-2 ttw:z-1300 ttw:w-72 ttw:origin-(--radix-popover-content-transform-origin) ttw:rounded-md ttw:border ttw:p-4 ttw:shadow-md ttw:outline-hidden", i),
|
|
31
|
-
...s
|
|
32
|
-
})
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
//#endregion
|
|
36
|
-
export { i as Popover, o as PopoverContent, a as PopoverTrigger };
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
import { useFileInput as e } from "./index79.js";
|
|
2
|
-
import "./index87.js";
|
|
3
|
-
import { cn as t } from "./index62.js";
|
|
4
|
-
import { Button as n } from "./index120.js";
|
|
5
|
-
import { Popover as r, PopoverContent as i, PopoverTrigger as a } from "./index285.js";
|
|
6
|
-
import { useState as o } from "react";
|
|
7
|
-
import { ChevronDownIcon as s, ChevronUpIcon as c, CloudUpload as l, Copy as u, Plus as d } from "lucide-react";
|
|
8
|
-
import { jsx as f, jsxs as p } from "@emotion/react/jsx-runtime";
|
|
9
|
-
import { toast as m } from "react-hot-toast";
|
|
10
|
-
import { useLingui as h } from "@lingui/react";
|
|
11
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js
|
|
12
|
-
var g = ({ isCreateAllowed: g, onCreateInvoice: _, handleFileUpload: v }) => {
|
|
13
|
-
let { i18n: y } = h(), [b, x] = o(!1), { FileInput: S, openFileInput: C, checkFileError: w } = e(), [T, E] = o(!1);
|
|
14
|
-
return /* @__PURE__ */ f("div", {
|
|
15
|
-
className: "Monite-Payables",
|
|
16
|
-
children: /* @__PURE__ */ p(r, {
|
|
17
|
-
open: b,
|
|
18
|
-
onOpenChange: x,
|
|
19
|
-
children: [/* @__PURE__ */ f(a, {
|
|
20
|
-
asChild: !0,
|
|
21
|
-
children: /* @__PURE__ */ p(n, {
|
|
22
|
-
size: "lg",
|
|
23
|
-
disabled: !g,
|
|
24
|
-
children: [y._("Add new bill"), f(b ? c : s, {})]
|
|
25
|
-
})
|
|
26
|
-
}), /* @__PURE__ */ p(i, {
|
|
27
|
-
align: "end",
|
|
28
|
-
className: "ttw:w-auto ttw:min-w-110 ttw:border-none ttw:p-6",
|
|
29
|
-
children: [/* @__PURE__ */ p("div", {
|
|
30
|
-
className: "ttw:w-110 ttw:flex ttw:flex-col ttw:gap-4",
|
|
31
|
-
onClick: (e) => {
|
|
32
|
-
e.preventDefault(), e.stopPropagation();
|
|
33
|
-
},
|
|
34
|
-
children: [
|
|
35
|
-
/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("h3", {
|
|
36
|
-
className: "ttw:text-xl ttw:font-semibold ttw:text-zinc-950",
|
|
37
|
-
children: y._("Upload bills")
|
|
38
|
-
}), /* @__PURE__ */ f("p", {
|
|
39
|
-
className: "ttw:text-sm ttw:font-normal ttw:text-zinc-500",
|
|
40
|
-
children: y._("Upload your bills and we'll automatically pull the details so you can review and approve.")
|
|
41
|
-
})] }),
|
|
42
|
-
/* @__PURE__ */ f("div", {
|
|
43
|
-
className: t("ttw:box-border ttw:cursor-pointer ttw:w-full ttw:h-36.5 ttw:flex ttw:flex-col ttw:items-center ttw:justify-center ttw:text-center ttw:border ttw:rounded-lg ttw:border-dashed ttw:border-zinc-200 ttw:bg-zinc-50", T && "ttw:bg-transparent"),
|
|
44
|
-
onDragOver: (e) => {
|
|
45
|
-
e.preventDefault(), E(!0);
|
|
46
|
-
},
|
|
47
|
-
onDragLeave: (e) => {
|
|
48
|
-
e.preventDefault(), E(!1);
|
|
49
|
-
},
|
|
50
|
-
onDrop: (e) => {
|
|
51
|
-
e.preventDefault(), E(!1);
|
|
52
|
-
let t = Array.from(e.dataTransfer.files);
|
|
53
|
-
if (t.length > 10) {
|
|
54
|
-
m.error(y._("You can only upload up to {fileCount} files at a time", { fileCount: 10 })), x(!1);
|
|
55
|
-
return;
|
|
56
|
-
}
|
|
57
|
-
t.forEach((e) => {
|
|
58
|
-
let t = w(e);
|
|
59
|
-
if (t) {
|
|
60
|
-
m.error(t);
|
|
61
|
-
return;
|
|
62
|
-
}
|
|
63
|
-
v(e);
|
|
64
|
-
}), x(!1);
|
|
65
|
-
},
|
|
66
|
-
onClick: C,
|
|
67
|
-
children: /* @__PURE__ */ p("div", {
|
|
68
|
-
className: "ttw:mx-auto ttw:flex ttw:flex-col ttw:items-center ttw:gap-2",
|
|
69
|
-
children: [
|
|
70
|
-
/* @__PURE__ */ f("div", {
|
|
71
|
-
className: "ttw:w-11 ttw:h-11 ttw:rounded-full ttw:bg-primary ttw:flex ttw:items-center ttw:justify-center",
|
|
72
|
-
children: /* @__PURE__ */ f(l, { className: "ttw:text-white ttw:size-5" })
|
|
73
|
-
}),
|
|
74
|
-
/* @__PURE__ */ p("p", {
|
|
75
|
-
className: "ttw:text-sm ttw:font-medium ttw:text-zinc-950",
|
|
76
|
-
children: [
|
|
77
|
-
y._("Drop your files here, or"),
|
|
78
|
-
" ",
|
|
79
|
-
/* @__PURE__ */ f("span", {
|
|
80
|
-
className: "ttw:text-primary ttw:underline",
|
|
81
|
-
children: y._("click to browse")
|
|
82
|
-
})
|
|
83
|
-
]
|
|
84
|
-
}),
|
|
85
|
-
/* @__PURE__ */ f("p", {
|
|
86
|
-
className: "ttw:text-xs ttw:font-normal ttw:text-zinc-500",
|
|
87
|
-
children: y._("PDF, PNG or JPG (max. 20MB)")
|
|
88
|
-
})
|
|
89
|
-
]
|
|
90
|
-
})
|
|
91
|
-
}),
|
|
92
|
-
/* @__PURE__ */ p("div", {
|
|
93
|
-
className: "ttw:flex ttw:flex-col",
|
|
94
|
-
children: [/* @__PURE__ */ f("h3", {
|
|
95
|
-
className: "ttw:text-primary ttw:text-sm ttw:font-semibold",
|
|
96
|
-
children: y._("Send via email")
|
|
97
|
-
}), /* @__PURE__ */ f("p", {
|
|
98
|
-
className: "ttw:text-zinc-500 ttw:font-normal ttw:text-sm",
|
|
99
|
-
children: y._("Email your bills here and they'll appear in your bill pay inbox, ready to review and pay.")
|
|
100
|
-
})]
|
|
101
|
-
}),
|
|
102
|
-
/* @__PURE__ */ p("div", {
|
|
103
|
-
className: "ttw:px-3 ttw:h-14 ttw:border ttw:border-zinc-200 ttw:rounded-lg ttw:flex ttw:items-center ttw:justify-between ttw:gap-6",
|
|
104
|
-
children: [/* @__PURE__ */ f("span", { children: y._("bills@business-banking.com") }), /* @__PURE__ */ p(n, {
|
|
105
|
-
type: "button",
|
|
106
|
-
variant: "ghost",
|
|
107
|
-
size: "sm",
|
|
108
|
-
className: "ttw:text-primary ttw:hover:bg-primary-foreground ttw:hover:text-primary",
|
|
109
|
-
onClick: () => {
|
|
110
|
-
navigator.clipboard.writeText("bills@business-banking.com"), m.success(y._("Email address copied to clipboard"));
|
|
111
|
-
},
|
|
112
|
-
children: [/* @__PURE__ */ f(u, {}), y._("Copy")]
|
|
113
|
-
})]
|
|
114
|
-
}),
|
|
115
|
-
/* @__PURE__ */ p("div", {
|
|
116
|
-
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
117
|
-
children: [/* @__PURE__ */ f("h3", {
|
|
118
|
-
className: "ttw:text-sm ttw:font-semibold ttw:text-primary",
|
|
119
|
-
children: y._("Or add bill manually")
|
|
120
|
-
}), /* @__PURE__ */ p(n, {
|
|
121
|
-
onClick: () => {
|
|
122
|
-
x(!1), _();
|
|
123
|
-
},
|
|
124
|
-
className: "ttw:w-fit ttw:bg-primary-foreground ttw:hover:bg-primary-foreground ttw:text-primary",
|
|
125
|
-
children: [/* @__PURE__ */ f(d, {}), y._("Add new bill")]
|
|
126
|
-
})]
|
|
127
|
-
})
|
|
128
|
-
]
|
|
129
|
-
}), /* @__PURE__ */ f(S, {
|
|
130
|
-
"aria-label": y._("Upload payable files"),
|
|
131
|
-
multiple: !0,
|
|
132
|
-
onChange: (e) => {
|
|
133
|
-
let t = e.target.files;
|
|
134
|
-
t && v(t), x(!1);
|
|
135
|
-
}
|
|
136
|
-
})]
|
|
137
|
-
})]
|
|
138
|
-
})
|
|
139
|
-
});
|
|
140
|
-
};
|
|
141
|
-
//#endregion
|
|
142
|
-
export { g as CreatePayableMenu };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./index286.js";
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
import { Scope as e } from "../../shared/data-access/dist/lib/scopes.js";
|
|
2
|
-
import "../../shared/data-access/dist/index.js";
|
|
3
|
-
import { getAPIErrorMessage as t } from "./index26.js";
|
|
4
|
-
import { generatePayablesButtonCssVars as n } from "./index42.js";
|
|
5
|
-
import { useMoniteContext as r } from "./index45.js";
|
|
6
|
-
import { useRootElements as i } from "./index76.js";
|
|
7
|
-
import "./index77.js";
|
|
8
|
-
import { useFileInput as a } from "./index79.js";
|
|
9
|
-
import { useComponentSettings as ee } from "./index85.js";
|
|
10
|
-
import "./index87.js";
|
|
11
|
-
import { Dialog as o } from "./index127.js";
|
|
12
|
-
import "./index128.js";
|
|
13
|
-
import { MoniteScopedProviders as s } from "./index153.js";
|
|
14
|
-
import { useUserPermissions as te } from "./index154.js";
|
|
15
|
-
import { AccessRestriction as c } from "./index160.js";
|
|
16
|
-
import "./index163.js";
|
|
17
|
-
import { usePayableCallbacks as l } from "./index200.js";
|
|
18
|
-
import { PayableDetails as u } from "./index270.js";
|
|
19
|
-
import { PayablesTable as ne } from "./index283.js";
|
|
20
|
-
import "./index271.js";
|
|
21
|
-
import "./index284.js";
|
|
22
|
-
import { CreatePayableMenu as d } from "./index286.js";
|
|
23
|
-
import "./index287.js";
|
|
24
|
-
import { useEffect as re, useMemo as ie, useRef as ae, useState as f } from "react";
|
|
25
|
-
import { jsx as p, jsxs as m } from "@emotion/react/jsx-runtime";
|
|
26
|
-
import { toast as h } from "react-hot-toast";
|
|
27
|
-
import { useLingui as g } from "@lingui/react";
|
|
28
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js
|
|
29
|
-
var _ = (e) => /* @__PURE__ */ p(s, { children: /* @__PURE__ */ p(v, { ...e }) }), v = ({ pageTitleComponent: s, enableGLCodes: _, initialView: v, initialCounterpartId: y, onSaved: b, onCanceled: x, onSubmitted: S, onRejected: C, onApproved: oe, onReopened: se, onDeleted: ce, onPay: le }) => {
|
|
30
|
-
let { i18n: w } = g(), { api: T, queryClient: E, theme: D } = r(), { componentSettings: O } = ee(), { handleSaved: k, handleCanceled: A, handleSubmitted: j, handleRejected: M, handleApproved: N, handleReopened: P, handleDeleted: F, handlePay: I } = l({
|
|
31
|
-
onSaved: b,
|
|
32
|
-
onCanceled: x,
|
|
33
|
-
onSubmitted: S,
|
|
34
|
-
onRejected: C,
|
|
35
|
-
onApproved: oe,
|
|
36
|
-
onReopened: se,
|
|
37
|
-
onDeleted: ce,
|
|
38
|
-
onPay: le
|
|
39
|
-
}), [L, R] = f({
|
|
40
|
-
invoiceId: void 0,
|
|
41
|
-
open: !1,
|
|
42
|
-
shouldOpenEditMode: !1
|
|
43
|
-
}), z = () => {
|
|
44
|
-
R((e) => ({
|
|
45
|
-
...e,
|
|
46
|
-
open: !1,
|
|
47
|
-
shouldOpenEditMode: !1,
|
|
48
|
-
invoiceId: void 0
|
|
49
|
-
}));
|
|
50
|
-
}, [B, V] = f(!1), [H, U] = f(void 0), W = ae(!1), G = () => {
|
|
51
|
-
V(!1), U(void 0);
|
|
52
|
-
}, { FileInput: ue, openFileInput: de, checkFileError: fe } = a(), K = T.finops.postPayablesUploadFromFile.useMutation({}, {
|
|
53
|
-
onSuccess: () => T.finops.getPayables.invalidateQueries(E),
|
|
54
|
-
onError: () => {}
|
|
55
|
-
}), q = (e) => {
|
|
56
|
-
let n = e instanceof File ? [e] : Array.from(e);
|
|
57
|
-
if (n.length > 10) {
|
|
58
|
-
h.error(w._("You can only upload up to {fileCount} files at a time", { fileCount: 10 }));
|
|
59
|
-
return;
|
|
60
|
-
}
|
|
61
|
-
n.forEach((e) => {
|
|
62
|
-
let n = fe(e);
|
|
63
|
-
if (n) {
|
|
64
|
-
h.error(n);
|
|
65
|
-
return;
|
|
66
|
-
}
|
|
67
|
-
h.promise(K.mutateAsync({ file: e }), {
|
|
68
|
-
loading: w._("Uploading {fileName}", { fileName: e.name }),
|
|
69
|
-
success: w._("Payable {fileName} uploaded successfully", { fileName: e.name }),
|
|
70
|
-
error: (e) => t(w, e)
|
|
71
|
-
});
|
|
72
|
-
});
|
|
73
|
-
}, J = te(), Y = J.has(e.PayableWriteOrg), X = J.has(e.PayableReadOrg);
|
|
74
|
-
re(() => {
|
|
75
|
-
W.current || v === "create" && Y && (W.current = !0, U(y), V(!0));
|
|
76
|
-
}, [
|
|
77
|
-
v,
|
|
78
|
-
Y,
|
|
79
|
-
y
|
|
80
|
-
]);
|
|
81
|
-
let { root: Z } = i(), Q = "Monite-Payables-Header", $ = _ ?? O?.payables?.enableGLCodes ?? !1, pe = ie(() => n(D.components?.styles?.payables?.button), [D.components?.styles?.payables?.button]);
|
|
82
|
-
return /* @__PURE__ */ m("div", {
|
|
83
|
-
className: "Monite-Payables",
|
|
84
|
-
style: pe,
|
|
85
|
-
children: [
|
|
86
|
-
s(/* @__PURE__ */ p(d, {
|
|
87
|
-
isCreateAllowed: Y,
|
|
88
|
-
onCreateInvoice: () => {
|
|
89
|
-
U(void 0), V(!0);
|
|
90
|
-
},
|
|
91
|
-
handleFileUpload: q
|
|
92
|
-
})),
|
|
93
|
-
!X && /* @__PURE__ */ p(c, {}),
|
|
94
|
-
X && /* @__PURE__ */ p(ne, {
|
|
95
|
-
initialCounterpartId: v === "create" ? void 0 : y,
|
|
96
|
-
onRowClick: (e) => R({
|
|
97
|
-
open: !0,
|
|
98
|
-
invoiceId: e
|
|
99
|
-
}),
|
|
100
|
-
onPay: I,
|
|
101
|
-
onApproved: N,
|
|
102
|
-
onCanceled: A,
|
|
103
|
-
onSubmitted: j,
|
|
104
|
-
openFileInput: de,
|
|
105
|
-
setIsCreateInvoiceDialogOpen: V,
|
|
106
|
-
openEditDialog: (e) => R({
|
|
107
|
-
open: !0,
|
|
108
|
-
invoiceId: e,
|
|
109
|
-
shouldOpenEditMode: !0
|
|
110
|
-
})
|
|
111
|
-
}),
|
|
112
|
-
/* @__PURE__ */ p(ue, {
|
|
113
|
-
"aria-label": w._("Upload payable files"),
|
|
114
|
-
multiple: !0,
|
|
115
|
-
onChange: (e) => {
|
|
116
|
-
let t = e.target.files;
|
|
117
|
-
t && q(t);
|
|
118
|
-
}
|
|
119
|
-
}),
|
|
120
|
-
/* @__PURE__ */ p(o, {
|
|
121
|
-
className: Q + "-Dialog-PayableDetails",
|
|
122
|
-
open: L.open,
|
|
123
|
-
container: Z,
|
|
124
|
-
onClose: z,
|
|
125
|
-
onClosed: z,
|
|
126
|
-
fullScreen: !0,
|
|
127
|
-
children: /* @__PURE__ */ p(u, {
|
|
128
|
-
id: L.invoiceId,
|
|
129
|
-
shouldOpenInEditMode: L.shouldOpenEditMode,
|
|
130
|
-
enableGLCodes: $,
|
|
131
|
-
onClose: z,
|
|
132
|
-
onSaved: k,
|
|
133
|
-
onCanceled: A,
|
|
134
|
-
onSubmitted: j,
|
|
135
|
-
onRejected: M,
|
|
136
|
-
onApproved: N,
|
|
137
|
-
onReopened: P,
|
|
138
|
-
onDeleted: (e) => {
|
|
139
|
-
F?.(e), z(), h(w._("Bill #{payableId} has been deleted", { payableId: e }), { duration: 5e3 });
|
|
140
|
-
},
|
|
141
|
-
onPay: I
|
|
142
|
-
})
|
|
143
|
-
}),
|
|
144
|
-
/* @__PURE__ */ p(o, {
|
|
145
|
-
className: Q + "-Dialog-CreatePayable",
|
|
146
|
-
open: B,
|
|
147
|
-
container: Z,
|
|
148
|
-
onClose: G,
|
|
149
|
-
fullScreen: !0,
|
|
150
|
-
children: /* @__PURE__ */ p(u, {
|
|
151
|
-
shouldOpenInEditMode: !0,
|
|
152
|
-
initialCounterpartId: H,
|
|
153
|
-
enableGLCodes: $,
|
|
154
|
-
onClose: G,
|
|
155
|
-
onSaved: (e) => {
|
|
156
|
-
R({
|
|
157
|
-
open: !0,
|
|
158
|
-
invoiceId: e
|
|
159
|
-
}), G(), k?.(e);
|
|
160
|
-
}
|
|
161
|
-
})
|
|
162
|
-
})
|
|
163
|
-
]
|
|
164
|
-
});
|
|
165
|
-
};
|
|
166
|
-
//#endregion
|
|
167
|
-
export { _ as Payables };
|