@tesouro/embedded-components-react 0.5.230 → 0.5.231
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +10 -0
- package/dist/index.d.ts +22 -21
- package/dist/index.js +2 -2
- package/dist/lib/ExpenseManagementWidget.d.ts +22 -21
- package/dist/lib/ExpenseManagementWidget.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/{index6.js → lib/useOrganizationLocationsQuery.js} +6 -6
- 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/settings-widget/feature/dist/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/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/index22.js +0 -1
- 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
|
@@ -2,259 +2,258 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { Alert as e, AlertDescription as t, Button as n, Dialog as r, DialogClose as
|
|
6
|
-
import { ExpenseStatusBadge as
|
|
7
|
-
import { FileViewer as
|
|
8
|
-
import { AccordionItemCard as
|
|
9
|
-
import { TRANSACTION_DETAILS_LABELS_EN as
|
|
10
|
-
import { Fragment as
|
|
11
|
-
import { CloudUpload as
|
|
5
|
+
import { Alert as e, AlertDescription as t, Button as n, Dialog as r, DialogClose as ee, DialogContent as te, DialogDescription as ne, DialogFooter as i, DialogHeader as a, DialogTitle as o, Separator as s, Skeleton as c, Typography as l } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
|
+
import { ExpenseStatusBadge as u } from "../ExpenseStatusBadge/ExpenseStatusBadge.js";
|
|
7
|
+
import { FileViewer as d } from "../FileViewer/FileViewer.js";
|
|
8
|
+
import { AccordionItemCard as f } from "../AccordionItemCard/AccordionItemCard.js";
|
|
9
|
+
import { TRANSACTION_DETAILS_LABELS_EN as p } from "./labels.js";
|
|
10
|
+
import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
11
|
+
import { CloudUpload as re, DollarSign as ie, Loader as ae, Receipt as oe, X as se } from "lucide-react";
|
|
12
12
|
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/TransactionDetails/TransactionDetails.js
|
|
13
|
-
var
|
|
14
|
-
function
|
|
13
|
+
var _ = 3, v = () => void 0;
|
|
14
|
+
function y({ open: y, onClose: b, transactionId: x, transactionDate: S, statusLabel: C, statusTone: w, isRejected: T, isPendingReview: E, amount: D, merchant: O, receiptUrl: k, isLoading: A, isError: j, isClosingDisabled: M, cardLabel: N, cardName: P, cardholder: F, showCardholder: I, showPhysicalPill: L, isDescriptionRequired: R, isReceiptRequired: z, isReceiptAutoMatched: B, isReceiptActionDisabled: V, receiptButtonLabel: H, receiptButtonIcon: U, receiptButtonVariant: W, showNoReceiptWarning: G, onDeleteReceiptClick: K, onUploadClick: q, onOpenReceiptInbox: J, onSubmitWithoutReceipt: ce, onFileDrop: Y, isUploading: X, descriptionValue: Z, initialDescriptionValue: le, onDescriptionChange: ue, onSaveDescription: de, onCancelDescription: fe, isSavingDescription: pe, isMemoEditable: me, memoBadgeLabel: he, showApprovalCard: ge, hasAppliedPolicy: _e, greaterThanValue: ve, lessThanValue: ye, ruleLabel: be, rejectionReason: xe, approverName: Se, isAutoApproved: Ce, isManuallyApproved: we, showAccountingCard: Te, glCategory: Ee = "", initialGlCategory: De = "", glCategoryOptions: Oe = [], onGlCategoryChange: ke, department: Ae = "", initialDepartment: je = "", departmentOptions: Me = [], onDepartmentChange: Ne, location: Pe = "", initialLocation: Fe = "", locationOptions: Ie = [], onLocationChange: Le, onSaveAccounting: Re, onCancelAccounting: ze, isSavingAccounting: Be, isGlCategoryDisabled: Ve, glCategoryHighlight: He, departmentHighlight: Ue, locationHighlight: We, showAuditHistoryCard: Ge, auditHistoryRows: Ke, isLoadingAuditHistory: qe, isAuditHistoryError: Je, children: Ye, labels: Xe, cardLabels: Q, fileViewerLabels: Ze, historyLabels: Qe }) {
|
|
15
15
|
let $ = {
|
|
16
|
-
...
|
|
17
|
-
...
|
|
16
|
+
...p,
|
|
17
|
+
...Xe
|
|
18
18
|
};
|
|
19
|
-
return /* @__PURE__ */
|
|
20
|
-
open:
|
|
19
|
+
return /* @__PURE__ */ h(r, {
|
|
20
|
+
open: y,
|
|
21
21
|
onOpenChange: (e) => {
|
|
22
|
-
!e && !
|
|
22
|
+
!e && !M && b();
|
|
23
23
|
},
|
|
24
|
-
children: /* @__PURE__ */
|
|
24
|
+
children: /* @__PURE__ */ g(te, {
|
|
25
25
|
fullScreen: !0,
|
|
26
26
|
showCloseButton: !1,
|
|
27
27
|
className: "ttw:flex ttw:p-0",
|
|
28
|
-
children: [/* @__PURE__ */
|
|
28
|
+
children: [/* @__PURE__ */ g("div", {
|
|
29
29
|
className: "ttw:flex ttw:flex-1/2 ttw:flex-col ttw:overflow-hidden ttw:border-r ttw:border-border",
|
|
30
30
|
children: [
|
|
31
|
-
/* @__PURE__ */
|
|
31
|
+
/* @__PURE__ */ g(a, {
|
|
32
32
|
className: "ttw:h-20 ttw:flex-row ttw:items-center ttw:gap-3 ttw:px-8 ttw:py-6",
|
|
33
33
|
children: [
|
|
34
|
-
/* @__PURE__ */
|
|
34
|
+
/* @__PURE__ */ h(o, {
|
|
35
35
|
className: "ttw:sr-only",
|
|
36
36
|
children: $.screenReaderTitle
|
|
37
37
|
}),
|
|
38
|
-
/* @__PURE__ */
|
|
38
|
+
/* @__PURE__ */ h(ne, {
|
|
39
39
|
className: "ttw:sr-only",
|
|
40
40
|
children: $.screenReaderDescription
|
|
41
41
|
}),
|
|
42
|
-
/* @__PURE__ */
|
|
42
|
+
/* @__PURE__ */ h("div", {
|
|
43
43
|
className: "ttw:mr-3 ttw:flex ttw:size-15 ttw:items-center ttw:justify-center ttw:rounded-full ttw:bg-emerald-700/25 ttw:shadow-[0_0_40px_8px] ttw:shadow-emerald-700/25",
|
|
44
|
-
children: /* @__PURE__ */
|
|
44
|
+
children: /* @__PURE__ */ h("div", {
|
|
45
45
|
className: "ttw:flex ttw:size-11 ttw:items-center ttw:justify-center ttw:rounded-full ttw:bg-emerald-700 ttw:text-white",
|
|
46
|
-
children: /* @__PURE__ */
|
|
46
|
+
children: /* @__PURE__ */ h(ie, {
|
|
47
47
|
className: "ttw:size-5",
|
|
48
48
|
"aria-hidden": !0
|
|
49
49
|
})
|
|
50
50
|
})
|
|
51
51
|
}),
|
|
52
|
-
/* @__PURE__ */
|
|
52
|
+
/* @__PURE__ */ h(l, {
|
|
53
53
|
variant: "h4",
|
|
54
54
|
children: $.contentTitle
|
|
55
55
|
}),
|
|
56
|
-
/* @__PURE__ */
|
|
57
|
-
!
|
|
56
|
+
/* @__PURE__ */ h(s, { orientation: "vertical" }),
|
|
57
|
+
!A && /* @__PURE__ */ h(l, {
|
|
58
58
|
variant: "h5",
|
|
59
59
|
className: "ttw:whitespace-nowrap",
|
|
60
|
-
children:
|
|
60
|
+
children: S
|
|
61
61
|
}),
|
|
62
|
-
!
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
labels: Ye
|
|
62
|
+
!A && /* @__PURE__ */ h(u, {
|
|
63
|
+
label: C,
|
|
64
|
+
tone: w
|
|
66
65
|
})
|
|
67
66
|
]
|
|
68
67
|
}),
|
|
69
|
-
/* @__PURE__ */
|
|
68
|
+
/* @__PURE__ */ h("div", {
|
|
70
69
|
className: "ttw:mx-auto ttw:flex ttw:w-140 ttw:flex-1 ttw:flex-col ttw:gap-4 ttw:overflow-y-auto ttw:px-6 ttw:py-12",
|
|
71
|
-
children:
|
|
70
|
+
children: j ? /* @__PURE__ */ h(e, {
|
|
72
71
|
variant: "destructive",
|
|
73
|
-
children: /* @__PURE__ */
|
|
74
|
-
}) :
|
|
72
|
+
children: /* @__PURE__ */ h(t, { children: $.loadFailed })
|
|
73
|
+
}) : A ? Array.from({ length: _ }, (e, t) => /* @__PURE__ */ h(c, {
|
|
75
74
|
width: "100%",
|
|
76
75
|
height: 290
|
|
77
|
-
}, t)) : /* @__PURE__ */
|
|
78
|
-
/* @__PURE__ */
|
|
76
|
+
}, t)) : /* @__PURE__ */ g(m, { children: [
|
|
77
|
+
/* @__PURE__ */ h(l, {
|
|
79
78
|
variant: "h2",
|
|
80
79
|
className: "ttw:font-bold",
|
|
81
|
-
children: $.amountAtMerchant(
|
|
80
|
+
children: $.amountAtMerchant(D, O)
|
|
82
81
|
}),
|
|
83
|
-
/* @__PURE__ */
|
|
82
|
+
/* @__PURE__ */ h(f, {
|
|
84
83
|
type: "requirements",
|
|
85
84
|
title: $.requirementsCardTitle,
|
|
86
|
-
cardLabel:
|
|
87
|
-
cardName:
|
|
88
|
-
cardholder:
|
|
89
|
-
showCardholder:
|
|
90
|
-
showPhysicalPill:
|
|
91
|
-
receiptFileUrl:
|
|
92
|
-
hasMissingInfo: !!(
|
|
93
|
-
showNoReceiptWarning: !!
|
|
94
|
-
isDescriptionRequired:
|
|
95
|
-
isReceiptRequired:
|
|
96
|
-
isReceiptAutoMatched:
|
|
97
|
-
isReceiptActionDisabled:
|
|
98
|
-
receiptButtonLabel:
|
|
99
|
-
receiptButtonIcon:
|
|
100
|
-
receiptButtonVariant:
|
|
101
|
-
onUploadClick:
|
|
102
|
-
onOpenReceiptInbox:
|
|
103
|
-
onSubmitWithoutReceipt:
|
|
104
|
-
onDeleteReceipt:
|
|
105
|
-
descriptionValue:
|
|
106
|
-
initialDescriptionValue:
|
|
107
|
-
onDescriptionChange:
|
|
108
|
-
onSaveDescription:
|
|
109
|
-
onCancelDescription:
|
|
110
|
-
isSavingDescription:
|
|
111
|
-
isMemoEditable:
|
|
112
|
-
memoBadgeLabel:
|
|
85
|
+
cardLabel: N,
|
|
86
|
+
cardName: P,
|
|
87
|
+
cardholder: F,
|
|
88
|
+
showCardholder: I,
|
|
89
|
+
showPhysicalPill: L,
|
|
90
|
+
receiptFileUrl: k,
|
|
91
|
+
hasMissingInfo: !!(R && !Z || z && !k),
|
|
92
|
+
showNoReceiptWarning: !!G,
|
|
93
|
+
isDescriptionRequired: R,
|
|
94
|
+
isReceiptRequired: z,
|
|
95
|
+
isReceiptAutoMatched: B,
|
|
96
|
+
isReceiptActionDisabled: V,
|
|
97
|
+
receiptButtonLabel: H,
|
|
98
|
+
receiptButtonIcon: U,
|
|
99
|
+
receiptButtonVariant: W,
|
|
100
|
+
onUploadClick: q,
|
|
101
|
+
onOpenReceiptInbox: J,
|
|
102
|
+
onSubmitWithoutReceipt: ce,
|
|
103
|
+
onDeleteReceipt: K,
|
|
104
|
+
descriptionValue: Z,
|
|
105
|
+
initialDescriptionValue: le,
|
|
106
|
+
onDescriptionChange: ue,
|
|
107
|
+
onSaveDescription: de,
|
|
108
|
+
onCancelDescription: fe,
|
|
109
|
+
isSavingDescription: pe,
|
|
110
|
+
isMemoEditable: me,
|
|
111
|
+
memoBadgeLabel: he,
|
|
113
112
|
labels: Q
|
|
114
|
-
}, `requirements-${
|
|
115
|
-
|
|
113
|
+
}, `requirements-${x}`),
|
|
114
|
+
ge && /* @__PURE__ */ h(f, {
|
|
116
115
|
type: "approvals",
|
|
117
116
|
title: $.approvalsCardTitle,
|
|
118
|
-
hasAppliedPolicy: !!
|
|
119
|
-
isRejected:
|
|
120
|
-
isAutoApproved: !!
|
|
121
|
-
isManuallyApproved: !!
|
|
122
|
-
isPendingReview:
|
|
123
|
-
rejectionReason:
|
|
124
|
-
greaterThanValue:
|
|
125
|
-
lessThanValue:
|
|
126
|
-
ruleLabel:
|
|
127
|
-
approverName:
|
|
117
|
+
hasAppliedPolicy: !!_e,
|
|
118
|
+
isRejected: T,
|
|
119
|
+
isAutoApproved: !!Ce,
|
|
120
|
+
isManuallyApproved: !!we,
|
|
121
|
+
isPendingReview: E,
|
|
122
|
+
rejectionReason: xe,
|
|
123
|
+
greaterThanValue: ve,
|
|
124
|
+
lessThanValue: ye,
|
|
125
|
+
ruleLabel: be,
|
|
126
|
+
approverName: Se,
|
|
128
127
|
labels: Q
|
|
129
|
-
}, `approvals-${
|
|
130
|
-
|
|
128
|
+
}, `approvals-${x}`),
|
|
129
|
+
Te && /* @__PURE__ */ h(f, {
|
|
131
130
|
type: "accounting",
|
|
132
131
|
title: $.accountingCardTitle,
|
|
133
|
-
glCategory:
|
|
134
|
-
initialGlCategory:
|
|
135
|
-
glCategoryOptions:
|
|
136
|
-
onGlCategoryChange:
|
|
137
|
-
department:
|
|
138
|
-
initialDepartment:
|
|
139
|
-
departmentOptions:
|
|
140
|
-
onDepartmentChange:
|
|
141
|
-
location:
|
|
142
|
-
initialLocation:
|
|
143
|
-
locationOptions:
|
|
144
|
-
onLocationChange:
|
|
145
|
-
onSave:
|
|
146
|
-
onCancel:
|
|
147
|
-
isSaving: !!
|
|
148
|
-
isGlCategoryDisabled:
|
|
149
|
-
glCategoryHighlight:
|
|
150
|
-
departmentHighlight:
|
|
151
|
-
locationHighlight:
|
|
132
|
+
glCategory: Ee,
|
|
133
|
+
initialGlCategory: De,
|
|
134
|
+
glCategoryOptions: Oe,
|
|
135
|
+
onGlCategoryChange: ke ?? v,
|
|
136
|
+
department: Ae,
|
|
137
|
+
initialDepartment: je,
|
|
138
|
+
departmentOptions: Me,
|
|
139
|
+
onDepartmentChange: Ne ?? v,
|
|
140
|
+
location: Pe,
|
|
141
|
+
initialLocation: Fe,
|
|
142
|
+
locationOptions: Ie,
|
|
143
|
+
onLocationChange: Le ?? v,
|
|
144
|
+
onSave: Re ?? v,
|
|
145
|
+
onCancel: ze ?? v,
|
|
146
|
+
isSaving: !!Be,
|
|
147
|
+
isGlCategoryDisabled: Ve,
|
|
148
|
+
glCategoryHighlight: He,
|
|
149
|
+
departmentHighlight: Ue,
|
|
150
|
+
locationHighlight: We,
|
|
152
151
|
labels: Q
|
|
153
|
-
}, `accounting-${
|
|
154
|
-
|
|
152
|
+
}, `accounting-${x}`),
|
|
153
|
+
Ge && /* @__PURE__ */ h(f, {
|
|
155
154
|
type: "auditHistory",
|
|
156
155
|
title: $.auditHistoryCardTitle,
|
|
157
|
-
rows:
|
|
158
|
-
isLoading:
|
|
159
|
-
isError:
|
|
160
|
-
historyLabels:
|
|
161
|
-
}, `auditHistory-${
|
|
156
|
+
rows: Ke ?? [],
|
|
157
|
+
isLoading: qe,
|
|
158
|
+
isError: Je,
|
|
159
|
+
historyLabels: Qe
|
|
160
|
+
}, `auditHistory-${x}`)
|
|
162
161
|
] })
|
|
163
162
|
}),
|
|
164
|
-
/* @__PURE__ */
|
|
163
|
+
/* @__PURE__ */ h(i, {
|
|
165
164
|
className: "ttw:flex-row ttw:items-center ttw:justify-center ttw:border-t ttw:border-border ttw:p-6 ttw:sm:justify-center",
|
|
166
|
-
children:
|
|
165
|
+
children: A || j ? null : Ye
|
|
167
166
|
})
|
|
168
167
|
]
|
|
169
|
-
}), /* @__PURE__ */
|
|
168
|
+
}), /* @__PURE__ */ g("div", {
|
|
170
169
|
className: "ttw:relative ttw:flex ttw:flex-1/2 ttw:bg-muted ttw:px-6 ttw:py-20",
|
|
171
|
-
children: [/* @__PURE__ */
|
|
170
|
+
children: [/* @__PURE__ */ h(ee, {
|
|
172
171
|
asChild: !0,
|
|
173
172
|
className: "ttw:absolute ttw:right-4 ttw:top-4",
|
|
174
|
-
children: /* @__PURE__ */
|
|
173
|
+
children: /* @__PURE__ */ h(n, {
|
|
175
174
|
type: "button",
|
|
176
175
|
variant: "outline",
|
|
177
176
|
size: "icon",
|
|
178
177
|
"aria-label": $.closeDialog,
|
|
179
|
-
disabled:
|
|
180
|
-
children: /* @__PURE__ */
|
|
178
|
+
disabled: M,
|
|
179
|
+
children: /* @__PURE__ */ h(se, {
|
|
181
180
|
className: "ttw:size-4",
|
|
182
181
|
"aria-hidden": !0
|
|
183
182
|
})
|
|
184
183
|
})
|
|
185
|
-
}),
|
|
186
|
-
url:
|
|
184
|
+
}), k ? /* @__PURE__ */ h(d, {
|
|
185
|
+
url: k,
|
|
187
186
|
className: "ttw:h-full ttw:min-h-0 ttw:w-full",
|
|
188
|
-
showDeleteOption: !!
|
|
189
|
-
onDeleteClick:
|
|
190
|
-
labels:
|
|
191
|
-
}) :
|
|
187
|
+
showDeleteOption: !!K,
|
|
188
|
+
onDeleteClick: K,
|
|
189
|
+
labels: Ze
|
|
190
|
+
}) : q || Y ? /* @__PURE__ */ h("button", {
|
|
192
191
|
type: "button",
|
|
193
|
-
disabled:
|
|
194
|
-
"aria-label":
|
|
192
|
+
disabled: A || X,
|
|
193
|
+
"aria-label": X ? $.uploadingReceipt : `${$.dropFilesHere} ${$.clickToBrowse}`,
|
|
195
194
|
onClick: () => {
|
|
196
|
-
|
|
195
|
+
A || X || q?.();
|
|
197
196
|
},
|
|
198
197
|
onDragOver: (e) => e.preventDefault(),
|
|
199
198
|
onDrop: (e) => {
|
|
200
|
-
if (
|
|
199
|
+
if (A || X) return;
|
|
201
200
|
e.preventDefault();
|
|
202
201
|
let t = e.dataTransfer.files[0];
|
|
203
|
-
t &&
|
|
202
|
+
t && Y?.(t);
|
|
204
203
|
},
|
|
205
204
|
className: "ttw:flex ttw:h-full ttw:w-full ttw:cursor-pointer ttw:flex-col ttw:items-center ttw:justify-center ttw:gap-2 ttw:rounded-md ttw:border ttw:border-dashed ttw:border-border ttw:bg-background ttw:px-6 ttw:disabled:cursor-default",
|
|
206
|
-
children:
|
|
207
|
-
/* @__PURE__ */
|
|
205
|
+
children: X ? /* @__PURE__ */ g(m, { children: [
|
|
206
|
+
/* @__PURE__ */ h(ae, {
|
|
208
207
|
className: "ttw:size-5 ttw:animate-spin ttw:text-primary",
|
|
209
208
|
"aria-hidden": !0
|
|
210
209
|
}),
|
|
211
|
-
/* @__PURE__ */
|
|
210
|
+
/* @__PURE__ */ h(l, {
|
|
212
211
|
variant: "body2",
|
|
213
212
|
component: "span",
|
|
214
213
|
className: "ttw:font-semibold",
|
|
215
214
|
children: $.uploadingReceipt
|
|
216
215
|
}),
|
|
217
|
-
/* @__PURE__ */
|
|
216
|
+
/* @__PURE__ */ h(l, {
|
|
218
217
|
variant: "body2",
|
|
219
218
|
component: "span",
|
|
220
219
|
color: "muted",
|
|
221
220
|
children: $.uploadingReceiptBody
|
|
222
221
|
})
|
|
223
|
-
] }) : !
|
|
224
|
-
/* @__PURE__ */
|
|
222
|
+
] }) : !A && /* @__PURE__ */ g(m, { children: [
|
|
223
|
+
/* @__PURE__ */ h("div", {
|
|
225
224
|
className: "ttw:flex ttw:size-11 ttw:items-center ttw:justify-center ttw:rounded-full ttw:bg-primary",
|
|
226
|
-
children: /* @__PURE__ */
|
|
225
|
+
children: /* @__PURE__ */ h(re, {
|
|
227
226
|
className: "ttw:size-5 ttw:text-primary-foreground",
|
|
228
227
|
"aria-hidden": !0
|
|
229
228
|
})
|
|
230
229
|
}),
|
|
231
|
-
/* @__PURE__ */
|
|
230
|
+
/* @__PURE__ */ g(l, {
|
|
232
231
|
variant: "body2",
|
|
233
232
|
component: "span",
|
|
234
233
|
children: [
|
|
235
234
|
$.dropFilesHere,
|
|
236
235
|
" ",
|
|
237
|
-
/* @__PURE__ */
|
|
236
|
+
/* @__PURE__ */ h("span", {
|
|
238
237
|
className: "ttw:text-primary ttw:underline",
|
|
239
238
|
children: $.clickToBrowse
|
|
240
239
|
})
|
|
241
240
|
]
|
|
242
241
|
}),
|
|
243
|
-
/* @__PURE__ */
|
|
242
|
+
/* @__PURE__ */ h(l, {
|
|
244
243
|
variant: "caption",
|
|
245
244
|
color: "muted",
|
|
246
245
|
children: $.acceptedFileTypes
|
|
247
246
|
})
|
|
248
247
|
] })
|
|
249
|
-
}) : /* @__PURE__ */
|
|
248
|
+
}) : /* @__PURE__ */ h("div", {
|
|
250
249
|
className: "ttw:flex ttw:size-full ttw:flex-col ttw:items-center ttw:justify-center ttw:gap-2 ttw:rounded-md ttw:border ttw:border-dashed ttw:border-border ttw:bg-background",
|
|
251
|
-
children: !
|
|
250
|
+
children: !A && /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("div", {
|
|
252
251
|
className: "ttw:flex ttw:size-11 ttw:items-center ttw:justify-center ttw:rounded-full ttw:bg-muted",
|
|
253
|
-
children: /* @__PURE__ */
|
|
252
|
+
children: /* @__PURE__ */ h(oe, {
|
|
254
253
|
className: "ttw:size-5 ttw:text-muted-foreground",
|
|
255
254
|
"aria-hidden": !0
|
|
256
255
|
})
|
|
257
|
-
}), /* @__PURE__ */
|
|
256
|
+
}), /* @__PURE__ */ h(l, {
|
|
258
257
|
variant: "body2",
|
|
259
258
|
color: "muted",
|
|
260
259
|
children: $.noReceiptAttached
|
|
@@ -265,4 +264,4 @@ function b({ open: b, onClose: x, transactionId: S, transactionDate: C, status:
|
|
|
265
264
|
});
|
|
266
265
|
}
|
|
267
266
|
//#endregion
|
|
268
|
-
export {
|
|
267
|
+
export { y as TransactionDetails, y as default };
|
|
@@ -8,53 +8,53 @@ import { BulkProgress as c } from "./BulkProgress.js";
|
|
|
8
8
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
9
9
|
import { ArrowLeft as d, ArrowRight as f, Check as p, Loader2 as m, Send as h, X as g } from "lucide-react";
|
|
10
10
|
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/TransactionDetailsActions/TransactionDetailsActions.js
|
|
11
|
-
function _({
|
|
12
|
-
let
|
|
11
|
+
function _({ actions: _, onClose: v, isLoading: y, isRejectMode: b, reasonValue: x, onReasonChange: S, isSubmitDisabled: C, isConfirmRejectionDisabled: w, showNoReceiptField: T, showNoReceiptRequiredMarker: E, isBulkMode: D, currentItem: O, totalItems: k, percentComplete: A, hasActionError: j, labels: M }) {
|
|
12
|
+
let N = {
|
|
13
13
|
...s,
|
|
14
|
-
...
|
|
15
|
-
},
|
|
16
|
-
progressLabel:
|
|
17
|
-
ariaLabel:
|
|
18
|
-
percentComplete:
|
|
19
|
-
}) : null,
|
|
14
|
+
...M
|
|
15
|
+
}, P = D ? "ttw:w-fit" : "ttw:flex-1/2", F = D ? /* @__PURE__ */ l(c, {
|
|
16
|
+
progressLabel: N.bulkProgress(O, k),
|
|
17
|
+
ariaLabel: N.bulkProgressAriaLabel,
|
|
18
|
+
percentComplete: A
|
|
19
|
+
}) : null, I = /* @__PURE__ */ u(n, {
|
|
20
20
|
type: "button",
|
|
21
21
|
variant: "outline",
|
|
22
22
|
className: "ttw:w-full",
|
|
23
|
-
onClick:
|
|
23
|
+
onClick: v,
|
|
24
24
|
children: [/* @__PURE__ */ l(d, {
|
|
25
25
|
className: "ttw:size-4",
|
|
26
26
|
"aria-hidden": !0
|
|
27
|
-
}),
|
|
28
|
-
}),
|
|
27
|
+
}), N.returnToExpenses]
|
|
28
|
+
}), L = (e, t, n) => /* @__PURE__ */ u(r, { children: [/* @__PURE__ */ u(i, {
|
|
29
29
|
htmlFor: e,
|
|
30
30
|
className: "ttw:gap-0",
|
|
31
31
|
children: [t, n && /* @__PURE__ */ l("span", {
|
|
32
32
|
className: "ttw:inline-block ttw:-translate-y-0.5 ttw:text-sm ttw:font-normal ttw:text-destructive",
|
|
33
|
-
children:
|
|
33
|
+
children: N.requiredMarker
|
|
34
34
|
})]
|
|
35
35
|
}), /* @__PURE__ */ l(a, {
|
|
36
36
|
id: e,
|
|
37
37
|
name: e,
|
|
38
|
-
value:
|
|
39
|
-
onChange:
|
|
40
|
-
})] }),
|
|
38
|
+
value: x,
|
|
39
|
+
onChange: S
|
|
40
|
+
})] }), R = (e, t) => /* @__PURE__ */ u("div", {
|
|
41
41
|
className: "ttw:flex ttw:w-full ttw:flex-col ttw:gap-2",
|
|
42
|
-
children: [
|
|
42
|
+
children: [T && L("submitReason", N.noReceiptReasonLabel, E), /* @__PURE__ */ u("div", {
|
|
43
43
|
className: "ttw:flex ttw:w-full ttw:items-center ttw:justify-between ttw:gap-2",
|
|
44
|
-
children: [
|
|
45
|
-
className: o("ttw:flex ttw:items-center ttw:gap-2",
|
|
44
|
+
children: [F, /* @__PURE__ */ u("div", {
|
|
45
|
+
className: o("ttw:flex ttw:items-center ttw:gap-2", D ? "ttw:w-fit" : "ttw:w-full"),
|
|
46
46
|
children: [/* @__PURE__ */ l(n, {
|
|
47
47
|
type: "button",
|
|
48
48
|
variant: "outline",
|
|
49
|
-
className:
|
|
50
|
-
onClick:
|
|
51
|
-
children:
|
|
49
|
+
className: P,
|
|
50
|
+
onClick: v,
|
|
51
|
+
children: N.cancel
|
|
52
52
|
}), /* @__PURE__ */ u(n, {
|
|
53
53
|
type: "button",
|
|
54
|
-
className:
|
|
55
|
-
disabled:
|
|
56
|
-
onClick:
|
|
57
|
-
children: [
|
|
54
|
+
className: P,
|
|
55
|
+
disabled: C,
|
|
56
|
+
onClick: t,
|
|
57
|
+
children: [e, y ? /* @__PURE__ */ l(m, {
|
|
58
58
|
className: "ttw:size-4 ttw:animate-spin",
|
|
59
59
|
"aria-hidden": !0
|
|
60
60
|
}) : /* @__PURE__ */ l(h, {
|
|
@@ -66,74 +66,76 @@ function _({ status: _, onApprove: v, onReject: y, onSubmit: b, onReopen: x, onC
|
|
|
66
66
|
})]
|
|
67
67
|
});
|
|
68
68
|
return /* @__PURE__ */ u("div", {
|
|
69
|
-
className: o("ttw:flex ttw:flex-col ttw:items-center ttw:justify-center ttw:gap-2",
|
|
70
|
-
children: [
|
|
69
|
+
className: o("ttw:flex ttw:flex-col ttw:items-center ttw:justify-center ttw:gap-2", D ? "ttw:w-full ttw:px-0" : "ttw:w-140 ttw:px-6"),
|
|
70
|
+
children: [j && /* @__PURE__ */ l(e, {
|
|
71
71
|
variant: "destructive",
|
|
72
72
|
className: "ttw:w-full",
|
|
73
|
-
children: /* @__PURE__ */ l(t, { children:
|
|
74
|
-
}),
|
|
75
|
-
switch (_) {
|
|
76
|
-
case "
|
|
77
|
-
case "
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
73
|
+
children: /* @__PURE__ */ l(t, { children: N.actionFailed })
|
|
74
|
+
}), (() => {
|
|
75
|
+
switch (_.kind) {
|
|
76
|
+
case "submit": return R(_.submitLabel, _.onSubmit);
|
|
77
|
+
case "review": {
|
|
78
|
+
let { approveLabel: e, confirmRejectionLabel: t, onApprove: r, onReject: i, onToggleRejectMode: a } = _;
|
|
79
|
+
return b ? /* @__PURE__ */ u("div", {
|
|
80
|
+
className: "ttw:flex ttw:w-full ttw:flex-col ttw:gap-2",
|
|
81
|
+
children: [L("rejectionReason", N.rejectionReasonLabel, !0), /* @__PURE__ */ u("div", {
|
|
82
|
+
className: "ttw:flex ttw:w-full ttw:items-center ttw:justify-between ttw:gap-2",
|
|
83
|
+
children: [F, /* @__PURE__ */ u("div", {
|
|
84
|
+
className: o("ttw:flex ttw:items-center ttw:gap-2", D ? "ttw:w-fit" : "ttw:w-full"),
|
|
85
|
+
children: [/* @__PURE__ */ l(n, {
|
|
86
|
+
type: "button",
|
|
87
|
+
variant: "outline",
|
|
88
|
+
className: P,
|
|
89
|
+
disabled: y,
|
|
90
|
+
onClick: a,
|
|
91
|
+
children: N.cancel
|
|
92
|
+
}), /* @__PURE__ */ u(n, {
|
|
93
|
+
type: "button",
|
|
94
|
+
variant: "destructive",
|
|
95
|
+
className: P,
|
|
96
|
+
disabled: w,
|
|
97
|
+
onClick: i,
|
|
98
|
+
children: [t, y ? /* @__PURE__ */ l(m, {
|
|
99
|
+
className: "ttw:size-4 ttw:animate-spin",
|
|
100
|
+
"aria-hidden": !0
|
|
101
|
+
}) : /* @__PURE__ */ l(f, {
|
|
102
|
+
className: "ttw:size-4",
|
|
103
|
+
"aria-hidden": !0
|
|
104
|
+
})]
|
|
105
|
+
})]
|
|
106
|
+
})]
|
|
107
|
+
})]
|
|
108
|
+
}) : /* @__PURE__ */ u("div", {
|
|
81
109
|
className: "ttw:flex ttw:w-full ttw:items-center ttw:justify-between ttw:gap-2",
|
|
82
|
-
children: [
|
|
83
|
-
className: o("ttw:flex ttw:items-center ttw:gap-2",
|
|
84
|
-
children: [/* @__PURE__ */
|
|
110
|
+
children: [F, /* @__PURE__ */ u("div", {
|
|
111
|
+
className: o("ttw:flex ttw:items-center ttw:gap-2", D ? "ttw:w-fit" : "ttw:w-full"),
|
|
112
|
+
children: [/* @__PURE__ */ u(n, {
|
|
85
113
|
type: "button",
|
|
86
114
|
variant: "outline",
|
|
87
|
-
className:
|
|
88
|
-
disabled:
|
|
89
|
-
onClick:
|
|
90
|
-
children:
|
|
115
|
+
className: o(P, "ttw:border-destructive ttw:text-destructive"),
|
|
116
|
+
disabled: y,
|
|
117
|
+
onClick: a,
|
|
118
|
+
children: [/* @__PURE__ */ l(g, {
|
|
119
|
+
className: "ttw:size-4",
|
|
120
|
+
"aria-hidden": !0
|
|
121
|
+
}), N.reject]
|
|
91
122
|
}), /* @__PURE__ */ u(n, {
|
|
92
123
|
type: "button",
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
children: [F ? H.confirmRejectionReviewNext : H.confirmRejection, w ? /* @__PURE__ */ l(m, {
|
|
124
|
+
className: o(P, "ttw:bg-emerald-600 ttw:text-white ttw:hover:bg-emerald-700"),
|
|
125
|
+
disabled: y,
|
|
126
|
+
onClick: r,
|
|
127
|
+
children: [y ? /* @__PURE__ */ l(m, {
|
|
98
128
|
className: "ttw:size-4 ttw:animate-spin",
|
|
99
129
|
"aria-hidden": !0
|
|
100
|
-
}) : /* @__PURE__ */ l(
|
|
130
|
+
}) : /* @__PURE__ */ l(p, {
|
|
101
131
|
className: "ttw:size-4",
|
|
102
132
|
"aria-hidden": !0
|
|
103
|
-
})]
|
|
133
|
+
}), e]
|
|
104
134
|
})]
|
|
105
135
|
})]
|
|
106
|
-
})
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
children: [W, /* @__PURE__ */ u("div", {
|
|
110
|
-
className: o("ttw:flex ttw:items-center ttw:gap-2", I ? "ttw:w-fit" : "ttw:w-full"),
|
|
111
|
-
children: [/* @__PURE__ */ u(n, {
|
|
112
|
-
type: "button",
|
|
113
|
-
variant: "outline",
|
|
114
|
-
className: o(U, "ttw:border-destructive ttw:text-destructive"),
|
|
115
|
-
disabled: w,
|
|
116
|
-
onClick: C,
|
|
117
|
-
children: [/* @__PURE__ */ l(g, {
|
|
118
|
-
className: "ttw:size-4",
|
|
119
|
-
"aria-hidden": !0
|
|
120
|
-
}), H.reject]
|
|
121
|
-
}), /* @__PURE__ */ u(n, {
|
|
122
|
-
type: "button",
|
|
123
|
-
className: o(U, "ttw:bg-emerald-600 ttw:text-white ttw:hover:bg-emerald-700"),
|
|
124
|
-
disabled: w,
|
|
125
|
-
onClick: v,
|
|
126
|
-
children: [w ? /* @__PURE__ */ l(m, {
|
|
127
|
-
className: "ttw:size-4 ttw:animate-spin",
|
|
128
|
-
"aria-hidden": !0
|
|
129
|
-
}) : /* @__PURE__ */ l(p, {
|
|
130
|
-
className: "ttw:size-4",
|
|
131
|
-
"aria-hidden": !0
|
|
132
|
-
}), F ? H.approveReviewNext : H.approve]
|
|
133
|
-
})]
|
|
134
|
-
})]
|
|
135
|
-
}) : G;
|
|
136
|
-
default: return G;
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
default: return I;
|
|
137
139
|
}
|
|
138
140
|
})()]
|
|
139
141
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/
|
|
1
|
+
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/util/dist/lib/isPdf.js
|
|
2
2
|
function e(e, t) {
|
|
3
3
|
let n = t ?? e.split(/[?#]/)[0];
|
|
4
4
|
return /\.pdf$/i.test(n);
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
5
|
import { Tabs as e, TabsContent as t, TabsList as n, TabsTrigger as r } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
|
-
import { ExpenseApprovalPoliciesWidget as i } from "../../../expense-management-widget/feature/dist/
|
|
6
|
+
import { ExpenseApprovalPoliciesWidget as i } from "../../../expense-management-widget/approval-policies/feature/dist/index6.js";
|
|
7
7
|
import "../../../expense-management-widget/feature/dist/index.js";
|
|
8
8
|
import { ExpenseRequirementsWidget as a } from "../../../shared/expense-requirements/feature/dist/lib/ExpenseRequirementsWidget.js";
|
|
9
9
|
import "../../../shared/expense-requirements/feature/dist/index.js";
|