@tesouro/embedded-components-react 0.5.230 → 0.5.232
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 +1 -0
- package/dist/index.css +14 -0
- package/dist/index.d.ts +125 -22
- package/dist/index.js +3 -3
- package/dist/lib/ExpenseManagementWidget.d.ts +22 -21
- package/dist/lib/ExpenseManagementWidget.js +1 -1
- package/dist/lib/ReceivablesWidget.d.ts +104 -2
- package/dist/lib/ReceivablesWidget.js +1 -1
- package/dist/lib/UploadReceiptWidget.d.ts +2 -2
- package/dist/lib/UploadReceiptWidget.js +2 -2
- package/dist/lib/WidgetSuite.d.ts +17 -15
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/feature/dist/index.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/feature/dist/index2.js +5 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{feature/dist/index24.js → approval-policies/feature/dist/index3.js} +7 -7
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{feature/dist/index25.js → approval-policies/feature/dist/index4.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{feature/dist/index26.js → approval-policies/feature/dist/index5.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{feature/dist/index27.js → approval-policies/feature/dist/index6.js} +53 -53
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/ui/dist/index.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui/dist/lib/ExpenseApprovalPoliciesWidget/lib/types.js → approval-policies/ui/dist/index2.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui/dist/lib/ExpenseApprovalPoliciesWidget/lib/labels.js → approval-policies/ui/dist/index3.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui/dist/lib/ExpenseApprovalPoliciesWidget/lib/conditionLabel.js → approval-policies/ui/dist/index4.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui/dist/lib/ExpenseApprovalPoliciesWidget/lib/EmptyApprovalRules.js → approval-policies/ui/dist/index5.js} +3 -3
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui/dist/lib/ExpenseApprovalPoliciesWidget/lib/ApprovalRuleCard.js → approval-policies/ui/dist/index6.js} +5 -5
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui/dist/lib/ExpenseApprovalPoliciesWidget/lib/ApprovalRuleForm.js → approval-policies/ui/dist/index7.js} +4 -4
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui/dist/lib/ExpenseApprovalPoliciesWidget/lib/ExpenseApprovalsPage.js → approval-policies/ui/dist/index8.js} +7 -7
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index.js +18 -19
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/invalidation.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index20.js → lib/invalidateTransactionViews.js} +4 -4
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index10.js → lib/queryKeys.js} +4 -4
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index5.js → lib/useEntityUsersByIdsQuery.js} +6 -6
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index8.js → lib/useExpenseHistoryQuery.js} +6 -6
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index7.js → lib/useExpenseLedgerAccountsQuery.js} +3 -3
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index17.js → lib/useExpenseReceiptsCountQuery.js} +5 -5
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index16.js → lib/useExpenseTransactionIdsQuery.js} +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index15.js → lib/useExpenseTransactionsCountQuery.js} +5 -5
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index19.js → lib/useGetApprovalRequestsQuery.js} +5 -5
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index9.js → lib/useGetTransactionQuery.js} +5 -5
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index3.js → lib/useGetTransactionsQuery.js} +5 -5
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/lib/useHasDirectReportsQuery.js +34 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index4.js → lib/useOrganizationDepartmentsQuery.js} +6 -6
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/lib/useOrganizationLocationsQuery.js +28 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index11.js → lib/usePatchReceiptMutation.js} +7 -7
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index14.js → lib/useTrackReceiptMatching.js} +7 -7
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index21.js → lib/useTransactionReviewMutations.js} +6 -6
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index18.js → lib/useTransactionValidationsQuery.js} +5 -5
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/{index13.js → lib/useUploadReceiptMutation.js} +7 -7
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index10.js +77 -160
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index11.js +356 -63
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index12.js +36 -71
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index13.js +130 -344
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index14.js +223 -36
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index15.js +192 -137
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index16.js +11 -227
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index17.js +81 -186
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index18.js +37 -11
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index19.js +309 -82
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index2.js +30 -87
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index20.js +1 -39
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index3.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index5.js +23 -257
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index6.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index7.js +160 -59
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index8.js +62 -28
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index9.js +28 -18
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/data-access/dist/index.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{data-access → receipt-match/data-access}/dist/index2.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/data-access/dist/index3.js +40 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/feature/dist/index.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/feature/dist/index2.js +256 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/feature/dist/index3.js +5 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/feature/dist/index4.js +65 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/ui/dist/index.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui/dist/lib/ReceiptMatchWidget/lib/labels.js → receipt-match/ui/dist/index2.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui/dist/lib/ReceiptMatchWidget/lib/ReceiptInboxItem.js → receipt-match/ui/dist/index3.js} +3 -3
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui/dist/lib/ReceiptMatchWidget/lib/ReceiptInboxStep.js → receipt-match/ui/dist/index4.js} +6 -6
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui/dist/lib/ReceiptMatchWidget/lib/TransactionsMatchStep.js → receipt-match/ui/dist/index5.js} +27 -27
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui/dist/lib/ReceiptMatchWidget/lib/MatchConfirmationStep.js → receipt-match/ui/dist/index6.js} +3 -3
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui/dist/lib/ReceiptMatchWidget/lib/ReceiptMatchSidebar.js → receipt-match/ui/dist/index7.js} +6 -6
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui/dist/lib/ReceiptMatchWidget/lib/ReceiptMatchLauncher.js → receipt-match/ui/dist/index8.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/index.js +9 -28
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpenseStatusBadge/ExpenseStatusBadge.js +7 -12
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpenseStatusBadge/badgeTones.js +1 -7
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpensesScreen/ExpensesScreen.js +61 -55
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpensesScreen/labels.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpensesTransactionsTable/ExpensesTransactionsTable.js +42 -44
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/FileViewer/FileViewer.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/TransactionDetails/TransactionDetails.js +137 -138
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/TransactionDetailsActions/TransactionDetailsActions.js +82 -80
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/{ui → util}/dist/lib/isPdf.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/util/dist/lib/widgetName.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js +11 -10
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index10.js +92 -55
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index11.js +64 -142
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index12.js +186 -17
- package/dist/libs/tesouro-embedded-components-react/{expense-management-widget/data-access/dist/index6.js → invoicing-widget/data-access/dist/index13.js} +8 -9
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index3.js +45 -74
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index4.js +68 -53
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index5.js +66 -32
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index6.js +32 -34
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index7.js +24 -166
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index8.js +175 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index9.js +42 -95
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index13.js +36 -33
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index14.js +38 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index16.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index17.js +206 -147
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index18.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index19.js +39 -58
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index20.js +53 -227
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index21.js +216 -287
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index22.js +453 -43
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index23.js +103 -126
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index24.js +122 -146
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index25.js +145 -41
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index26.js +39 -115
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index27.js +113 -90
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index28.js +81 -98
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index29.js +111 -27
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index30.js +26 -633
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index31.js +639 -39
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index32.js +41 -40
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index33.js +35 -74
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index34.js +73 -130
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index35.js +133 -329
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index36.js +345 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +13 -12
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index10.js +15 -12
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index19.js +35 -24
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index21.js +8 -71
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index22.js +70 -17
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index23.js +31 -12
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index24.js +18 -30
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +12 -301
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js +33 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +14 -46
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +23 -67
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js +76 -485
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js +392 -95
- package/dist/libs/tesouro-embedded-components-react/{expense-management-widget/feature/dist/index22.js → invoicing-widget/ui/dist/index31.js} +1 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +48 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +72 -4
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js +496 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js +97 -91
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js +2 -236
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index39.js +1 -249
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index40.js +89 -82
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index41.js +23 -54
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index42.js +223 -340
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index43.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index44.js +249 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index45.js +93 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index46.js +59 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index47.js +353 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index9.js +17 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +41 -41
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +75 -43
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/formatTimestampDate.js +13 -0
- package/dist/libs/tesouro-embedded-components-react/upload-receipt-widget/feature/dist/index.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/upload-receipt-widget/feature/dist/index2.js +91 -0
- package/dist/libs/tesouro-embedded-components-react/upload-receipt-widget/ui/dist/index.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/{expense-management-widget/ui/dist/lib/UploadReceiptWidget/labels.js → upload-receipt-widget/ui/dist/index2.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/{expense-management-widget/ui/dist/lib/UploadReceiptWidget/UploadReceiptButton.js → upload-receipt-widget/ui/dist/index3.js} +3 -3
- package/dist/libs/tesouro-embedded-components-react/{expense-management-widget/ui/dist/lib/UploadReceiptWidget/UploadReceiptModal.js → upload-receipt-widget/ui/dist/index4.js} +3 -3
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index11.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index12.js +0 -39
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index21.js +0 -297
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index23.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpenseStatusBadge/labels.js +0 -13
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js +0 -28
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { getTransactionsOptions as e } from "
|
|
6
|
-
import { withAuthEpoch as t } from "
|
|
7
|
-
import { useEmbedApi as n } from "
|
|
8
|
-
import "
|
|
5
|
+
import { getTransactionsOptions as e } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
6
|
+
import { withAuthEpoch as t } from "../../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
7
|
+
import { useEmbedApi as n } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
8
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
9
9
|
import { useQuery as r } from "@tanstack/react-query";
|
|
10
|
-
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/
|
|
10
|
+
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/lib/useGetTransactionsQuery.js
|
|
11
11
|
function i({ enabled: i, ...a } = {}) {
|
|
12
12
|
let { client: o, organizationId: s, widgetToken: c, authEpoch: l, organizationStatus: u } = n(), d = !!(s && c) && (i === !0 || i === void 0), f = e({
|
|
13
13
|
query: a,
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { getUsersOptions as e } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
6
|
+
import { withAuthEpoch as t } from "../../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
7
|
+
import { useEmbedApi as n } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
8
|
+
import { organizationHeaders as r } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
9
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
10
|
+
import { useQuery as i } from "@tanstack/react-query";
|
|
11
|
+
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/lib/useHasDirectReportsQuery.js
|
|
12
|
+
function a({ userId: a, enabled: o = !0 }) {
|
|
13
|
+
let { client: s, organizationId: c, widgetToken: l, authEpoch: u, organizationStatus: d } = n(), f = e({
|
|
14
|
+
client: s,
|
|
15
|
+
headers: r(c),
|
|
16
|
+
query: {
|
|
17
|
+
Status: "ACTIVE",
|
|
18
|
+
Limit: 1,
|
|
19
|
+
ReportingManagerUserId: a
|
|
20
|
+
}
|
|
21
|
+
}), p = i({
|
|
22
|
+
...t(f, {
|
|
23
|
+
authEpoch: u,
|
|
24
|
+
organizationStatus: d
|
|
25
|
+
}),
|
|
26
|
+
enabled: !!(c && l && a) && o === !0
|
|
27
|
+
});
|
|
28
|
+
return {
|
|
29
|
+
...p,
|
|
30
|
+
hasDirectReports: (p.data?.data?.length ?? 0) > 0
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
//#endregion
|
|
34
|
+
export { a as useHasDirectReportsQuery };
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { listDepartmentsOptions as e } from "
|
|
6
|
-
import { withAuthEpoch as t } from "
|
|
7
|
-
import { useEmbedApi as n } from "
|
|
8
|
-
import { organizationHeaders as r } from "
|
|
9
|
-
import "
|
|
5
|
+
import { listDepartmentsOptions as e } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
6
|
+
import { withAuthEpoch as t } from "../../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
7
|
+
import { useEmbedApi as n } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
8
|
+
import { organizationHeaders as r } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
9
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
10
10
|
import { useQuery as i } from "@tanstack/react-query";
|
|
11
|
-
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/
|
|
11
|
+
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/lib/useOrganizationDepartmentsQuery.js
|
|
12
12
|
var a = 100;
|
|
13
13
|
function o({ enabled: o = !0 } = {}) {
|
|
14
14
|
let { client: s, organizationId: c, widgetToken: l, authEpoch: u, organizationStatus: d } = n(), f = e({
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { listLocationsOptions as e } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
6
|
+
import { withAuthEpoch as t } from "../../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
7
|
+
import { useEmbedApi as n } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
8
|
+
import { organizationHeaders as r } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
9
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
10
|
+
import { useQuery as i } from "@tanstack/react-query";
|
|
11
|
+
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/lib/useOrganizationLocationsQuery.js
|
|
12
|
+
var a = 100;
|
|
13
|
+
function o({ enabled: o = !0 } = {}) {
|
|
14
|
+
let { client: s, organizationId: c, widgetToken: l, authEpoch: u, organizationStatus: d } = n(), f = e({
|
|
15
|
+
client: s,
|
|
16
|
+
headers: r(c),
|
|
17
|
+
query: { limit: a }
|
|
18
|
+
});
|
|
19
|
+
return i({
|
|
20
|
+
...t(f, {
|
|
21
|
+
authEpoch: u,
|
|
22
|
+
organizationStatus: d
|
|
23
|
+
}),
|
|
24
|
+
enabled: !!(c && l) && o
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
//#endregion
|
|
28
|
+
export { o as useOrganizationLocationsQuery };
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { patchReceiptsIdMutation as e } from "
|
|
6
|
-
import { invalidateAllClients as t } from "
|
|
7
|
-
import { useEmbedApi as n } from "
|
|
8
|
-
import { organizationHeaders as r } from "
|
|
9
|
-
import "
|
|
10
|
-
import { analyticsReceiptsInvalidationKey as i, analyticsTransactionsInvalidationKey as a, receiptsIdInvalidationKey as o, receiptsInvalidationKey as s, transactionsIdExpenseHistoryInvalidationKey as c, transactionsIdInvalidationKey as l, transactionsInvalidationKey as u } from "./
|
|
5
|
+
import { patchReceiptsIdMutation as e } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
6
|
+
import { invalidateAllClients as t } from "../../../../shared/data-access/dist/lib/clientRegistry.js";
|
|
7
|
+
import { useEmbedApi as n } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
8
|
+
import { organizationHeaders as r } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
9
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
10
|
+
import { analyticsReceiptsInvalidationKey as i, analyticsTransactionsInvalidationKey as a, receiptsIdInvalidationKey as o, receiptsInvalidationKey as s, transactionsIdExpenseHistoryInvalidationKey as c, transactionsIdInvalidationKey as l, transactionsInvalidationKey as u } from "./queryKeys.js";
|
|
11
11
|
import { useMutation as d } from "@tanstack/react-query";
|
|
12
|
-
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/
|
|
12
|
+
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/lib/usePatchReceiptMutation.js
|
|
13
13
|
function f() {
|
|
14
14
|
let { client: f, organizationId: p } = n(), m = e({
|
|
15
15
|
client: f,
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { getReceipts as e } from "
|
|
6
|
-
import { invalidateAllClients as t } from "
|
|
7
|
-
import { useEmbedApi as n } from "
|
|
8
|
-
import { organizationHeaders as r } from "
|
|
9
|
-
import "
|
|
10
|
-
import { analyticsReceiptsInvalidationKey as i, analyticsTransactionsInvalidationKey as a, receiptsIdInvalidationKey as o, receiptsInvalidationKey as s, transactionsIdInvalidationKey as c, transactionsInvalidationKey as l } from "./
|
|
5
|
+
import { getReceipts as e } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
6
|
+
import { invalidateAllClients as t } from "../../../../shared/data-access/dist/lib/clientRegistry.js";
|
|
7
|
+
import { useEmbedApi as n } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
8
|
+
import { organizationHeaders as r } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
9
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
10
|
+
import { analyticsReceiptsInvalidationKey as i, analyticsTransactionsInvalidationKey as a, receiptsIdInvalidationKey as o, receiptsInvalidationKey as s, transactionsIdInvalidationKey as c, transactionsInvalidationKey as l } from "./queryKeys.js";
|
|
11
11
|
import { useCallback as u, useEffect as d, useRef as f } from "react";
|
|
12
|
-
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/
|
|
12
|
+
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/lib/useTrackReceiptMatching.js
|
|
13
13
|
var p = 3e3, m = 30, h = 10;
|
|
14
14
|
function g(e) {
|
|
15
15
|
return e.transaction_id ? "matched" : e.ocr_status === "processing" ? null : e.ocr_status === "error" ? "unreadable" : "unmatched";
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { patchTransactionsId as e, postApprovalRequestsIdApprove as t, postApprovalRequestsIdReject as n, postTransactionsIdApprove as r, postTransactionsIdReject as i, postTransactionsIdReopen as a, postTransactionsIdSubmit as o } from "
|
|
6
|
-
import { useEmbedApi as s } from "
|
|
7
|
-
import { organizationHeaders as c } from "
|
|
8
|
-
import "
|
|
9
|
-
import { invalidateTransactionViews as l } from "./
|
|
5
|
+
import { patchTransactionsId as e, postApprovalRequestsIdApprove as t, postApprovalRequestsIdReject as n, postTransactionsIdApprove as r, postTransactionsIdReject as i, postTransactionsIdReopen as a, postTransactionsIdSubmit as o } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
6
|
+
import { useEmbedApi as s } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
7
|
+
import { organizationHeaders as c } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
8
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
9
|
+
import { invalidateTransactionViews as l } from "./invalidateTransactionViews.js";
|
|
10
10
|
import { useMutation as u } from "@tanstack/react-query";
|
|
11
|
-
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/
|
|
11
|
+
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/lib/useTransactionReviewMutations.js
|
|
12
12
|
function d() {
|
|
13
13
|
let { client: e, organizationId: t } = s();
|
|
14
14
|
return u({
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { getTransactionsValidationsOptions as e } from "
|
|
6
|
-
import { withAuthEpoch as t } from "
|
|
7
|
-
import { useEmbedApi as n } from "
|
|
8
|
-
import "
|
|
5
|
+
import { getTransactionsValidationsOptions as e } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
6
|
+
import { withAuthEpoch as t } from "../../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
7
|
+
import { useEmbedApi as n } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
8
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
9
9
|
import { useQuery as r } from "@tanstack/react-query";
|
|
10
|
-
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/
|
|
10
|
+
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/lib/useTransactionValidationsQuery.js
|
|
11
11
|
function i({ enabled: i } = {}) {
|
|
12
12
|
let { client: a, organizationId: o, widgetToken: s, authEpoch: c, organizationStatus: l } = n(), u = !!(o && s) && (i === !0 || i === void 0), d = e({
|
|
13
13
|
client: a,
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { postReceiptsUploadFromFileMutation as e } from "
|
|
6
|
-
import { invalidateAllClients as t } from "
|
|
7
|
-
import { useEmbedApi as n } from "
|
|
8
|
-
import { organizationHeaders as r } from "
|
|
9
|
-
import "
|
|
10
|
-
import { analyticsReceiptsInvalidationKey as i, receiptsInvalidationKey as a } from "./
|
|
5
|
+
import { postReceiptsUploadFromFileMutation as e } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
6
|
+
import { invalidateAllClients as t } from "../../../../shared/data-access/dist/lib/clientRegistry.js";
|
|
7
|
+
import { useEmbedApi as n } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
8
|
+
import { organizationHeaders as r } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
9
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
10
|
+
import { analyticsReceiptsInvalidationKey as i, receiptsInvalidationKey as a } from "./queryKeys.js";
|
|
11
11
|
import { useMutation as o } from "@tanstack/react-query";
|
|
12
|
-
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/
|
|
12
|
+
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/lib/useUploadReceiptMutation.js
|
|
13
13
|
function s() {
|
|
14
14
|
let { client: s, organizationId: c } = n();
|
|
15
15
|
return o({
|
package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "./
|
|
3
|
-
import "./
|
|
4
|
-
import "./
|
|
5
|
-
import "./
|
|
6
|
-
import
|
|
7
|
-
import "
|
|
8
|
-
import "
|
|
9
|
-
import
|
|
10
|
-
export {
|
|
1
|
+
import "./index2.js";
|
|
2
|
+
import "./index6.js";
|
|
3
|
+
import "./index10.js";
|
|
4
|
+
import "./index11.js";
|
|
5
|
+
import { ExpenseManagementWidget as e } from "./index19.js";
|
|
6
|
+
import "./index20.js";
|
|
7
|
+
import "../../approval-policies/feature/dist/index4.js";
|
|
8
|
+
import { ExpenseApprovalPoliciesWidget as t } from "../../approval-policies/feature/dist/index6.js";
|
|
9
|
+
import "../../approval-policies/feature/dist/index.js";
|
|
10
|
+
export { t as ExpenseApprovalPoliciesWidget, e as ExpenseManagementWidget };
|
|
@@ -1,166 +1,83 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { buildFooterActions as e } from "./index9.js";
|
|
6
|
+
import { TRANSACTION_DETAILS_ACTIONS_LABELS_EN as t } from "../../ui/dist/lib/TransactionDetailsActions/labels.js";
|
|
7
|
+
import { TransactionDetailsActions as n } from "../../ui/dist/lib/TransactionDetailsActions/TransactionDetailsActions.js";
|
|
8
|
+
import "../../ui/dist/index.js";
|
|
9
|
+
import { useApproveApprovalRequestMutation as r, useApproveTransactionMutation as i, useRejectApprovalRequestMutation as a, useRejectTransactionMutation as o, useReopenTransactionMutation as s, useSubmitTransactionMutation as c } from "../../data-access/dist/lib/useTransactionReviewMutations.js";
|
|
10
|
+
import "../../data-access/dist/index.js";
|
|
11
|
+
import { useState as l } from "react";
|
|
12
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
1
13
|
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index10.js
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
function a(e, t) {
|
|
13
|
-
let r = n(e.no_receipt_reason);
|
|
14
|
-
return r ? t.quotedReason(r) : e.bypass_receipt_validation ? t.submittedWithoutReceipt : void 0;
|
|
15
|
-
}
|
|
16
|
-
function o(e, t, r) {
|
|
17
|
-
let i = d(e);
|
|
18
|
-
if (!i) return;
|
|
19
|
-
let a = t.approval_source === "force", o;
|
|
20
|
-
o = i === "approved" ? a ? r.policyOverrideApproved : r.approved : a ? r.policyOverrideRejected : r.rejected;
|
|
21
|
-
let s = n(t.reject_reason);
|
|
22
|
-
return {
|
|
23
|
-
title: o,
|
|
24
|
-
meta: s ? r.quotedReason(s) : void 0
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
function s(e, t) {
|
|
28
|
-
let r = n(e.new_status);
|
|
29
|
-
if (!r) return;
|
|
30
|
-
let i = n(e.old_status), a = t.paymentStatusLabel(r);
|
|
31
|
-
return i ? t.changedFromTo(t.paymentStatusLabel(i), a) : t.changedTo(a);
|
|
32
|
-
}
|
|
33
|
-
function c(e, t) {
|
|
34
|
-
let i = e.event_data ?? {};
|
|
35
|
-
switch (e.event_type) {
|
|
36
|
-
case "expense_created": {
|
|
37
|
-
let e = n(i.created_via);
|
|
38
|
-
return {
|
|
39
|
-
title: t.expenseCreated,
|
|
40
|
-
meta: e ? e === "feed" ? t.createdFromFeed : t.createdManually : void 0
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
case "expense_updated": return { title: t.expenseUpdated };
|
|
44
|
-
case "status_changed": {
|
|
45
|
-
let e = n(i.new_status);
|
|
46
|
-
if (!e) return { title: t.statusUpdated };
|
|
47
|
-
let r = t.statusLabel(e), a = n(i.reject_reason);
|
|
48
|
-
return {
|
|
49
|
-
title: t.statusUpdated,
|
|
50
|
-
meta: a ? t.withReason(t.changedTo(r), a) : t.changedTo(r)
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
case "submitted": return {
|
|
54
|
-
title: t.submittedForApproval,
|
|
55
|
-
meta: a(i, t)
|
|
56
|
-
};
|
|
57
|
-
case "approval_requested": return { title: t.approvalRequested };
|
|
58
|
-
case "approval_action": return o(e, i, t);
|
|
59
|
-
case "auto_approved": return {
|
|
60
|
-
title: t.approvedAutomatically,
|
|
61
|
-
titleActor: "none"
|
|
62
|
-
};
|
|
63
|
-
case "reopened": return { title: t.reopened };
|
|
64
|
-
case "canceled": return { title: t.cancelled };
|
|
65
|
-
case "deleted": return { title: t.deleted };
|
|
66
|
-
case "receipt_matched": {
|
|
67
|
-
let e = r(n(i.link_source));
|
|
68
|
-
return {
|
|
69
|
-
title: t.receiptMatched,
|
|
70
|
-
meta: e ? t.matchedAutomatically : t.matchedManually,
|
|
71
|
-
titleActor: e ? "none" : void 0
|
|
72
|
-
};
|
|
14
|
+
function d({ transactionId: d, status: f, approvalRequestId: p, canUseApprovalRequestActions: m, canUseForceActions: h, canWrite: g, hasOnlyViewPermission: _, isDisabled: v, showNoReceiptField: y, isBulkMode: b, currentItem: x, totalItems: S, onCompleted: C, onClose: w, onPendingChange: T, labels: E }) {
|
|
15
|
+
let [D, O] = l(!1), [k, A] = l(""), [j, M] = l(!1), N = i(), P = o(), F = r(), I = a(), L = c(), R = s(), z = N.isPending || P.isPending || F.isPending || I.isPending || L.isPending || R.isPending, B = async (e) => {
|
|
16
|
+
M(!1), T?.(!0);
|
|
17
|
+
try {
|
|
18
|
+
await e(), C();
|
|
19
|
+
} catch {
|
|
20
|
+
M(!0);
|
|
21
|
+
} finally {
|
|
22
|
+
T?.(!1);
|
|
73
23
|
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
}
|
|
95
|
-
function f(e) {
|
|
96
|
-
let t = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set();
|
|
97
|
-
for (let t of e) {
|
|
98
|
-
if (t.event_type !== "auto_approved") continue;
|
|
99
|
-
let e = u(t);
|
|
100
|
-
e && r.add(e);
|
|
101
|
-
}
|
|
102
|
-
let i = e.filter((e) => e.event_type === "reopened").map((e) => Date.parse(e.timestamp)).sort((e, t) => e - t), a = (e) => i.filter((t) => t <= e).length, o = [], s = [];
|
|
103
|
-
for (let i of e) {
|
|
104
|
-
let e = Date.parse(i.timestamp), c = a(e);
|
|
105
|
-
if (i.event_type === "auto_approved") {
|
|
106
|
-
o.push({
|
|
107
|
-
id: i.id,
|
|
108
|
-
outcome: "approved",
|
|
109
|
-
at: e,
|
|
110
|
-
round: c
|
|
111
|
-
});
|
|
112
|
-
continue;
|
|
113
|
-
}
|
|
114
|
-
if (i.event_type === "approval_action") {
|
|
115
|
-
let n = d(i);
|
|
116
|
-
if (!n) continue;
|
|
117
|
-
let a = u(i);
|
|
118
|
-
if (n === "approved" && !i.entity_user_id && a && r.has(a)) {
|
|
119
|
-
t.add(i.id);
|
|
120
|
-
continue;
|
|
121
|
-
}
|
|
122
|
-
o.push({
|
|
123
|
-
id: i.id,
|
|
124
|
-
outcome: n,
|
|
125
|
-
at: e,
|
|
126
|
-
round: c
|
|
127
|
-
});
|
|
128
|
-
continue;
|
|
129
|
-
}
|
|
130
|
-
if (i.event_type !== "status_changed") continue;
|
|
131
|
-
let l = i.event_data ?? {};
|
|
132
|
-
if (n(l.migrated_action)) continue;
|
|
133
|
-
let f = n(l.new_status);
|
|
134
|
-
(f === "approved" || f === "rejected") && s.push({
|
|
135
|
-
id: i.id,
|
|
136
|
-
outcome: f,
|
|
137
|
-
at: e,
|
|
138
|
-
round: c
|
|
24
|
+
}, V = y ? {
|
|
25
|
+
bypass_receipt_validation: !0,
|
|
26
|
+
no_receipt_reason: k
|
|
27
|
+
} : void 0, H = () => B(() => m && p ? F.mutateAsync({
|
|
28
|
+
transactionId: d,
|
|
29
|
+
approvalRequestId: p
|
|
30
|
+
}) : N.mutateAsync({ transactionId: d })), U = () => B(() => m && p ? I.mutateAsync({
|
|
31
|
+
transactionId: d,
|
|
32
|
+
approvalRequestId: p,
|
|
33
|
+
rejectReason: k
|
|
34
|
+
}) : P.mutateAsync({
|
|
35
|
+
transactionId: d,
|
|
36
|
+
rejectReason: k
|
|
37
|
+
})), W = () => B(() => L.mutateAsync({
|
|
38
|
+
transactionId: d,
|
|
39
|
+
body: V
|
|
40
|
+
})), G = () => B(async () => {
|
|
41
|
+
await R.mutateAsync({ transactionId: d }), await L.mutateAsync({
|
|
42
|
+
transactionId: d,
|
|
43
|
+
body: V
|
|
139
44
|
});
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
45
|
+
}), K = e({
|
|
46
|
+
status: f,
|
|
47
|
+
canWrite: g,
|
|
48
|
+
canApprove: m || h,
|
|
49
|
+
hasOnlyViewPermission: _,
|
|
50
|
+
showReviewNextLabels: b && x < S,
|
|
51
|
+
labels: {
|
|
52
|
+
...t,
|
|
53
|
+
...E
|
|
54
|
+
},
|
|
55
|
+
onSubmit: W,
|
|
56
|
+
onReopen: G,
|
|
57
|
+
onApprove: H,
|
|
58
|
+
onReject: U,
|
|
59
|
+
onToggleRejectMode: () => {
|
|
60
|
+
O((e) => !e), A("");
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
return /* @__PURE__ */ u(n, {
|
|
64
|
+
actions: K,
|
|
65
|
+
onClose: w,
|
|
66
|
+
isLoading: z,
|
|
67
|
+
isRejectMode: D,
|
|
68
|
+
reasonValue: k,
|
|
69
|
+
onReasonChange: (e) => A(e.target.value),
|
|
70
|
+
isSubmitDisabled: z || v || y && !k,
|
|
71
|
+
isConfirmRejectionDisabled: z || !k,
|
|
72
|
+
showNoReceiptField: y,
|
|
73
|
+
showNoReceiptRequiredMarker: y,
|
|
74
|
+
isBulkMode: b,
|
|
75
|
+
currentItem: x,
|
|
76
|
+
totalItems: S,
|
|
77
|
+
percentComplete: S > 0 ? Math.round(x / S * 100) : 0,
|
|
78
|
+
hasActionError: j,
|
|
79
|
+
labels: E
|
|
163
80
|
});
|
|
164
81
|
}
|
|
165
82
|
//#endregion
|
|
166
|
-
export {
|
|
83
|
+
export { d as TransactionDetailsActionsFeature, d as default };
|