@tesouro/embedded-components-react 0.4.5 → 0.4.6
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 +37 -37
- package/dist/index.d.ts +14 -8
- package/dist/lib/CreditCardsWidget.d.ts +4 -2
- package/dist/lib/DebitCardsWidget.d.ts +4 -2
- package/dist/lib/WidgetSuite.d.ts +14 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +72 -56
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +77 -48
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +47 -91
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +91 -33
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +33 -167
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +168 -75
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +75 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +23 -210
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +199 -203
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +198 -89
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +105 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +12 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +47 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +27 -198
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +198 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +30 -234
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +240 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +19 -342
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +344 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +4 -33
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +32 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +24 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +28 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +152 -131
- package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardsList.js +84 -87
- package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/labels.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/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index9.js +12 -10
- package/package.json +1 -1
|
@@ -1,96 +1,52 @@
|
|
|
1
|
+
import { derivePayableStatus as e } from "./index4.js";
|
|
2
|
+
import { BILL_STATUS_BADGE_LABELS_EN as t } from "../../ui/dist/index18.js";
|
|
3
|
+
import "../../ui/dist/index.js";
|
|
1
4
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
},
|
|
34
|
-
forceApprove: {
|
|
35
|
-
title: "Override approval policy?",
|
|
36
|
-
description: "The below people haven't approved this bill yet. Approving now will bypass their required review. This will be recorded in the audit history and can't be undone.",
|
|
37
|
-
confirmButton: "Override and approve"
|
|
38
|
-
},
|
|
39
|
-
forceReject: {
|
|
40
|
-
title: "Override approval policy?",
|
|
41
|
-
description: "The below people haven't approved this bill yet. Rejecting now will bypass their required review. This will be recorded in the audit history and can't be undone.",
|
|
42
|
-
confirmButton: "Override and reject"
|
|
43
|
-
},
|
|
44
|
-
cancelButton: "Cancel"
|
|
45
|
-
},
|
|
46
|
-
actionError: "Couldn't update this bill. Try again.",
|
|
47
|
-
actionSuccess: {
|
|
48
|
-
approve: "Bill approved.",
|
|
49
|
-
reject: "Bill rejected.",
|
|
50
|
-
markAsPaid: "Bill marked as paid.",
|
|
51
|
-
cancel: "Bill canceled.",
|
|
52
|
-
cancelScheduledPayment: "Scheduled payment canceled.",
|
|
53
|
-
reopen: "Bill reopened.",
|
|
54
|
-
forceApprove: "Bill approved, overriding the approval policy.",
|
|
55
|
-
forceReject: "Bill rejected, overriding the approval policy."
|
|
5
|
+
var n = /* @__PURE__ */ new Set([
|
|
6
|
+
"credit_note_linked",
|
|
7
|
+
"credit_note_unlinked",
|
|
8
|
+
"line_item_added",
|
|
9
|
+
"line_item_updated",
|
|
10
|
+
"line_item_removed",
|
|
11
|
+
"deleted"
|
|
12
|
+
]);
|
|
13
|
+
function r(n, r, i) {
|
|
14
|
+
switch (n) {
|
|
15
|
+
case "payable_created": return r?.source_of_payable_data === "ocr" ? i.billUploaded : i.billAdded;
|
|
16
|
+
case "payable_updated": return i.billUpdated;
|
|
17
|
+
case "file_attached": return i.attachmentAdded;
|
|
18
|
+
case "submitted_for_approval": return i.submittedForApproval;
|
|
19
|
+
case "approval_requested": return i.approvalRequested;
|
|
20
|
+
case "approval_action": {
|
|
21
|
+
let e = r?.action, t = r?.reject_reason;
|
|
22
|
+
return e === "approve" ? i.approved : e === "reject" ? typeof t == "string" && t ? i.rejectedWithReason(t) : i.rejected : void 0;
|
|
23
|
+
}
|
|
24
|
+
case "auto_approved": return i.autoApproved;
|
|
25
|
+
case "reopened": return i.reopened;
|
|
26
|
+
case "marked_as_paid": return i.markedAsPaid;
|
|
27
|
+
case "marked_as_partially_paid": return i.markedAsPartiallyPaid;
|
|
28
|
+
case "payment_reverted": return i.paymentReverted;
|
|
29
|
+
case "status_changed": {
|
|
30
|
+
let n = r?.new_status;
|
|
31
|
+
if (typeof n != "string") return;
|
|
32
|
+
let a = e({ apiStatus: n }).status;
|
|
33
|
+
return i.statusChanged(t[a] ?? t.unknown);
|
|
34
|
+
}
|
|
35
|
+
default: return;
|
|
56
36
|
}
|
|
57
|
-
}, t = (e) => `Payment scheduled for ${e}`, n = [
|
|
58
|
-
"reject",
|
|
59
|
-
"cancel",
|
|
60
|
-
"cancelScheduledPayment",
|
|
61
|
-
"forceApprove",
|
|
62
|
-
"forceReject"
|
|
63
|
-
];
|
|
64
|
-
function r(e, t) {
|
|
65
|
-
let n = e.reason ? {
|
|
66
|
-
...e.reason,
|
|
67
|
-
...t?.reason
|
|
68
|
-
} : void 0, r = {
|
|
69
|
-
...e,
|
|
70
|
-
...t,
|
|
71
|
-
reason: n
|
|
72
|
-
};
|
|
73
|
-
return n || delete r.reason, r;
|
|
74
37
|
}
|
|
75
|
-
function i(e, t) {
|
|
76
|
-
let
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
...t,
|
|
88
|
-
decisionDialog: i(n.decisionDialog, t?.decisionDialog),
|
|
89
|
-
actionSuccess: {
|
|
90
|
-
...n.actionSuccess,
|
|
91
|
-
...t?.actionSuccess
|
|
92
|
-
}
|
|
93
|
-
};
|
|
38
|
+
function i(e, t, i) {
|
|
39
|
+
let a = new Map(t.map((e) => [e.id, e.name]));
|
|
40
|
+
return e.filter((e) => !n.has(e.event_type)).map((e) => {
|
|
41
|
+
let t = r(e.event_type, e.event_data, i);
|
|
42
|
+
if (!t) return;
|
|
43
|
+
let n = e.entity_user_id ? a.get(e.entity_user_id) : void 0;
|
|
44
|
+
return {
|
|
45
|
+
id: e.id,
|
|
46
|
+
dateLabel: i.dateLabel(e.timestamp),
|
|
47
|
+
description: n ? i.byActor(t, n) : t
|
|
48
|
+
};
|
|
49
|
+
}).filter((e) => !!e);
|
|
94
50
|
}
|
|
95
51
|
//#endregion
|
|
96
|
-
export {
|
|
52
|
+
export { i as buildBillHistory };
|
|
@@ -1,38 +1,96 @@
|
|
|
1
|
-
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
1
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
2
|
+
var e = {
|
|
3
|
+
payBill: "Pay bill",
|
|
4
|
+
markAsPaid: "Mark as paid",
|
|
5
|
+
reject: "Reject",
|
|
6
|
+
approve: "Approve",
|
|
7
|
+
cancel: "Cancel bill",
|
|
8
|
+
cancelScheduledPayment: "Cancel scheduled payment",
|
|
9
|
+
reopen: "Reopen bill",
|
|
10
|
+
forceApprove: "Approve",
|
|
11
|
+
forceReject: "Reject",
|
|
12
|
+
policyOverridesHeading: "Policy overrides",
|
|
13
|
+
decisionDialog: {
|
|
14
|
+
reject: {
|
|
15
|
+
title: "Reject this bill?",
|
|
16
|
+
description: "The bill goes back as rejected and nobody else is asked to approve it.",
|
|
17
|
+
confirmButton: "Reject bill",
|
|
18
|
+
reason: {
|
|
19
|
+
label: "Reason",
|
|
20
|
+
placeholder: "Tell the submitter what needs to change",
|
|
21
|
+
optionalHint: "Optional"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
cancel: {
|
|
25
|
+
title: "Cancel this bill?",
|
|
26
|
+
description: "Cancelling is permanent. The bill can't be reopened, edited, or paid afterwards.",
|
|
27
|
+
confirmButton: "Cancel bill"
|
|
28
|
+
},
|
|
29
|
+
cancelScheduledPayment: {
|
|
30
|
+
title: "Cancel this scheduled payment?",
|
|
31
|
+
description: "The payment will not be sent. The bill stays ready to pay, so you can schedule it again for another date.",
|
|
32
|
+
confirmButton: "Cancel payment"
|
|
33
|
+
},
|
|
34
|
+
forceApprove: {
|
|
35
|
+
title: "Override approval policy?",
|
|
36
|
+
description: "The below people haven't approved this bill yet. Approving now will bypass their required review. This will be recorded in the audit history and can't be undone.",
|
|
37
|
+
confirmButton: "Override and approve"
|
|
38
|
+
},
|
|
39
|
+
forceReject: {
|
|
40
|
+
title: "Override approval policy?",
|
|
41
|
+
description: "The below people haven't approved this bill yet. Rejecting now will bypass their required review. This will be recorded in the audit history and can't be undone.",
|
|
42
|
+
confirmButton: "Override and reject"
|
|
43
|
+
},
|
|
44
|
+
cancelButton: "Cancel"
|
|
45
|
+
},
|
|
46
|
+
actionError: "Couldn't update this bill. Try again.",
|
|
47
|
+
actionSuccess: {
|
|
48
|
+
approve: "Bill approved.",
|
|
49
|
+
reject: "Bill rejected.",
|
|
50
|
+
markAsPaid: "Bill marked as paid.",
|
|
51
|
+
cancel: "Bill canceled.",
|
|
52
|
+
cancelScheduledPayment: "Scheduled payment canceled.",
|
|
53
|
+
reopen: "Bill reopened.",
|
|
54
|
+
forceApprove: "Bill approved, overriding the approval policy.",
|
|
55
|
+
forceReject: "Bill rejected, overriding the approval policy."
|
|
56
|
+
}
|
|
57
|
+
}, t = (e) => `Payment scheduled for ${e}`, n = [
|
|
58
|
+
"reject",
|
|
59
|
+
"cancel",
|
|
60
|
+
"cancelScheduledPayment",
|
|
61
|
+
"forceApprove",
|
|
62
|
+
"forceReject"
|
|
63
|
+
];
|
|
64
|
+
function r(e, t) {
|
|
65
|
+
let n = e.reason ? {
|
|
66
|
+
...e.reason,
|
|
67
|
+
...t?.reason
|
|
68
|
+
} : void 0, r = {
|
|
69
|
+
...e,
|
|
70
|
+
...t,
|
|
71
|
+
reason: n
|
|
72
|
+
};
|
|
73
|
+
return n || delete r.reason, r;
|
|
74
|
+
}
|
|
75
|
+
function i(e, t) {
|
|
76
|
+
let i = {
|
|
77
|
+
...e,
|
|
78
|
+
...t
|
|
79
|
+
};
|
|
80
|
+
for (let a of n) i[a] = r(e[a], t?.[a]);
|
|
81
|
+
return i;
|
|
82
|
+
}
|
|
83
|
+
function a(t) {
|
|
84
|
+
let n = e;
|
|
85
|
+
return {
|
|
20
86
|
...n,
|
|
21
|
-
...
|
|
87
|
+
...t,
|
|
88
|
+
decisionDialog: i(n.decisionDialog, t?.decisionDialog),
|
|
89
|
+
actionSuccess: {
|
|
90
|
+
...n.actionSuccess,
|
|
91
|
+
...t?.actionSuccess
|
|
92
|
+
}
|
|
22
93
|
};
|
|
23
|
-
return /* @__PURE__ */ t("div", {
|
|
24
|
-
className: "ttw:flex ttw:h-full ttw:w-full ttw:flex-col ttw:items-center ttw:justify-center ttw:gap-2 ttw:p-4 ttw:text-center",
|
|
25
|
-
children: [/* @__PURE__ */ e("p", {
|
|
26
|
-
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
27
|
-
children: a.previewUnavailable
|
|
28
|
-
}), /* @__PURE__ */ e("a", {
|
|
29
|
-
href: r.url,
|
|
30
|
-
target: "_blank",
|
|
31
|
-
rel: "noreferrer",
|
|
32
|
-
className: "ttw:text-sm ttw:font-medium ttw:text-primary ttw:underline ttw:underline-offset-2",
|
|
33
|
-
children: a.openFile
|
|
34
|
-
})]
|
|
35
|
-
});
|
|
36
94
|
}
|
|
37
95
|
//#endregion
|
|
38
|
-
export {
|
|
96
|
+
export { e as BILL_DETAIL_ACTIONS_LABELS_EN, t as SCHEDULED_SUMMARY_LABEL_EN, a as mergeBillDetailActionsLabels, i as mergeDecisionDialogCopy };
|
|
@@ -1,172 +1,38 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../../ui/dist/index.js";
|
|
3
|
-
import { PAY_BILL_FLOW_LABELS_EN as t, mergePayBillFlowLabels as n } from "./index21.js";
|
|
4
|
-
import { MARK_AS_PAID_FLOW_LABELS_EN as r, mergeMarkAsPaidFlowLabels as i } from "./index12.js";
|
|
5
|
-
import "./index15.js";
|
|
6
|
-
import { APPROVAL_POLICY_RULE_COPY_EN as a } from "./index25.js";
|
|
7
|
-
import { BILL_DETAIL_ACTIONS_LABELS_EN as o, SCHEDULED_SUMMARY_LABEL_EN as s, mergeBillDetailActionsLabels as c } from "./index39.js";
|
|
8
|
-
import { SOURCE_DOCUMENT_PREVIEW_LABELS_EN as l } from "./index40.js";
|
|
1
|
+
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
9
2
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
requiredField: "This field is required.",
|
|
14
|
-
saveFailed: "We could not save this bill. Try again.",
|
|
15
|
-
discountTaxBlockedByLineItems: "Discount and Tax can't be saved on a bill with line items. Remove them, then save again.",
|
|
16
|
-
finalizeFailed: "We could not submit this bill. Try again.",
|
|
17
|
-
draftSaved: "Bill saved as a draft.",
|
|
18
|
-
submittedSaved: "Bill updated.",
|
|
19
|
-
submittedDemoted: "Bill updated. It moved back to Drafts because some required details are missing.",
|
|
20
|
-
billFinalized: "Bill submitted for approval.",
|
|
21
|
-
numbersOnly: "Enter numbers only.",
|
|
22
|
-
unreadableMoney: "Enter a valid amount.",
|
|
23
|
-
unusableQuantity: "Enter a quantity greater than 0.",
|
|
24
|
-
lineItemsNeedAttention: "Check the highlighted line items before saving.",
|
|
25
|
-
unreadableDiscount: "Enter a valid discount amount.",
|
|
26
|
-
unreadableTax: "Enter a valid tax amount.",
|
|
27
|
-
unreadableTotal: "Enter a valid total amount."
|
|
28
|
-
}, d = {
|
|
29
|
-
achMethod: "via ACH bank transfer",
|
|
30
|
-
noMethod: "No payment method on file",
|
|
31
|
-
accountHolder: "Account holder",
|
|
32
|
-
routingNumber: "Routing number",
|
|
33
|
-
accountNumber: "Account number",
|
|
34
|
-
paymentMethodLoading: "Loading payment method...",
|
|
35
|
-
paymentMethodUnavailable: "We could not load payment methods. Try again.",
|
|
36
|
-
searchFailed: "We could not load vendors. Try again.",
|
|
37
|
-
vendorDetailsFailed: "We could not load this vendor. Try again."
|
|
38
|
-
}, f = {
|
|
39
|
-
attachFailed: "We could not attach that file. Try again.",
|
|
40
|
-
deleteFailed: "We could not remove that document. Try again.",
|
|
41
|
-
noDocument: "No document attached to this bill.",
|
|
42
|
-
pendingDeletionNotice: "This document will be removed when you save this bill.",
|
|
43
|
-
preview: l
|
|
44
|
-
}, p = {
|
|
45
|
-
notProvided: "Not provided",
|
|
46
|
-
paymentInstructionsValue: (e) => `Account ending in ${e}`,
|
|
47
|
-
invoiceDateRow: "Invoice date",
|
|
48
|
-
dueDateRow: "Due date",
|
|
49
|
-
invoiceNumberRow: "Invoice number",
|
|
50
|
-
glCodeMissing: "GL code not specified",
|
|
51
|
-
glCodeUnavailable: "GL code unavailable",
|
|
52
|
-
qtyPriceValue: (e, t) => `${e} x ${t}`,
|
|
53
|
-
subtotalRow: "Subtotal",
|
|
54
|
-
taxRow: "Tax",
|
|
55
|
-
discountRow: "Discounts",
|
|
56
|
-
totalRow: "Total",
|
|
57
|
-
paymentInstructionsSaveError: "Couldn't save payment instructions. Try again.",
|
|
58
|
-
paymentInstructionsLinkError: "Payment instructions were saved to the vendor, but couldn't be added to this bill. Try again."
|
|
59
|
-
}, m = {
|
|
60
|
-
dateLabel: (e) => new Date(e).toLocaleString("en-US", {
|
|
61
|
-
month: "short",
|
|
62
|
-
day: "numeric",
|
|
63
|
-
year: "numeric",
|
|
64
|
-
hour: "numeric",
|
|
65
|
-
minute: "2-digit"
|
|
66
|
-
}),
|
|
67
|
-
byActor: (e, t) => `${e} by ${t}`,
|
|
68
|
-
billAdded: "Bill added",
|
|
69
|
-
billUploaded: "Bill uploaded",
|
|
70
|
-
billUpdated: "Bill updated",
|
|
71
|
-
attachmentAdded: "Attachment added",
|
|
72
|
-
submittedForApproval: "Submitted for approval",
|
|
73
|
-
approvalRequested: "Approval requested",
|
|
74
|
-
approved: "Approved",
|
|
75
|
-
autoApproved: "Approved automatically",
|
|
76
|
-
rejected: "Rejected",
|
|
77
|
-
rejectedWithReason: (e) => `Rejected: ${e}`,
|
|
78
|
-
reopened: "Reopened",
|
|
79
|
-
markedAsPaid: "Marked as paid",
|
|
80
|
-
markedAsPartiallyPaid: "Marked as partially paid",
|
|
81
|
-
paymentReverted: "Payment reverted",
|
|
82
|
-
statusChanged: (e) => `Status changed to ${e}`
|
|
83
|
-
}, h = {
|
|
84
|
-
newTitle: "New bill",
|
|
85
|
-
extractedTitle: (e) => `Bill from ${e}`,
|
|
86
|
-
viewTitle: (e) => `Bill from ${e}`,
|
|
87
|
-
readOnlyTitle: "Bill details",
|
|
88
|
-
addedOn: (e) => `Added on ${e}`,
|
|
89
|
-
submittedSaveButton: "Save changes",
|
|
90
|
-
unsavedChanges: e,
|
|
91
|
-
scheduledSummary: s,
|
|
92
|
-
actions: o,
|
|
93
|
-
detail: p,
|
|
94
|
-
history: m,
|
|
95
|
-
payBill: t,
|
|
96
|
-
markAsPaid: r,
|
|
97
|
-
approvalPolicyCopy: a,
|
|
98
|
-
deleteDraft: {
|
|
99
|
-
menuItem: "Delete draft",
|
|
100
|
-
dialog: {
|
|
101
|
-
title: "Delete this draft?",
|
|
102
|
-
description: "The draft and anything entered on it are removed. This can't be undone.",
|
|
103
|
-
confirmButton: "Delete draft"
|
|
104
|
-
},
|
|
105
|
-
error: "Couldn't delete this draft. Try again."
|
|
106
|
-
},
|
|
107
|
-
lineItemsGlCodeUnavailable: {
|
|
108
|
-
loadError: "Couldn't load GL codes",
|
|
109
|
-
noAccess: "You don't have access to GL codes",
|
|
110
|
-
empty: "No GL codes set up yet"
|
|
111
|
-
}
|
|
3
|
+
var n = {
|
|
4
|
+
previewUnavailable: "Preview not available for this file type.",
|
|
5
|
+
openFile: "Open file"
|
|
112
6
|
};
|
|
113
|
-
function
|
|
114
|
-
return {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
lineItemsGlCodeUnavailable: {
|
|
129
|
-
...h.lineItemsGlCodeUnavailable,
|
|
130
|
-
...e?.lineItemsGlCodeUnavailable
|
|
131
|
-
},
|
|
132
|
-
unsavedChanges: {
|
|
133
|
-
...h.unsavedChanges,
|
|
134
|
-
...e?.unsavedChanges
|
|
135
|
-
},
|
|
136
|
-
approvalPolicyCopy: {
|
|
137
|
-
...h.approvalPolicyCopy,
|
|
138
|
-
...e?.approvalPolicyCopy
|
|
139
|
-
},
|
|
140
|
-
deleteDraft: {
|
|
141
|
-
...h.deleteDraft,
|
|
142
|
-
...e?.deleteDraft,
|
|
143
|
-
dialog: (() => {
|
|
144
|
-
let t = {
|
|
145
|
-
...h.deleteDraft.dialog,
|
|
146
|
-
...e?.deleteDraft?.dialog
|
|
147
|
-
};
|
|
148
|
-
return delete t.reason, t;
|
|
149
|
-
})()
|
|
150
|
-
}
|
|
7
|
+
function r(r, i = {}) {
|
|
8
|
+
if (r.mimetype === "application/pdf") return /* @__PURE__ */ e("iframe", {
|
|
9
|
+
src: `${r.url}#toolbar=0&navpanes=0`,
|
|
10
|
+
title: r.name,
|
|
11
|
+
referrerPolicy: "no-referrer",
|
|
12
|
+
className: "ttw:h-full ttw:w-full ttw:border-0"
|
|
13
|
+
});
|
|
14
|
+
if (r.mimetype.startsWith("image/")) return /* @__PURE__ */ e("img", {
|
|
15
|
+
src: r.url,
|
|
16
|
+
alt: r.name,
|
|
17
|
+
className: "ttw:max-h-full ttw:max-w-full ttw:object-contain"
|
|
18
|
+
});
|
|
19
|
+
let a = {
|
|
20
|
+
...n,
|
|
21
|
+
...i
|
|
151
22
|
};
|
|
23
|
+
return /* @__PURE__ */ t("div", {
|
|
24
|
+
className: "ttw:flex ttw:h-full ttw:w-full ttw:flex-col ttw:items-center ttw:justify-center ttw:gap-2 ttw:p-4 ttw:text-center",
|
|
25
|
+
children: [/* @__PURE__ */ e("p", {
|
|
26
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
27
|
+
children: a.previewUnavailable
|
|
28
|
+
}), /* @__PURE__ */ e("a", {
|
|
29
|
+
href: r.url,
|
|
30
|
+
target: "_blank",
|
|
31
|
+
rel: "noreferrer",
|
|
32
|
+
className: "ttw:text-sm ttw:font-medium ttw:text-primary ttw:underline ttw:underline-offset-2",
|
|
33
|
+
children: a.openFile
|
|
34
|
+
})]
|
|
35
|
+
});
|
|
152
36
|
}
|
|
153
|
-
var _ = {
|
|
154
|
-
createTitle: "New vendor",
|
|
155
|
-
editTitle: "Edit vendor",
|
|
156
|
-
close: "Close the vendor form",
|
|
157
|
-
nameLabel: "Name",
|
|
158
|
-
addAddress: "Add address (optional)",
|
|
159
|
-
paymentMethodsHeading: "Accepted payment methods",
|
|
160
|
-
paymentMethodsDescription: "How and where will the money be sent. Don't have these yet? No problem. You can save this vendor and add their payment details later — you just won't be able to send payments until you do.",
|
|
161
|
-
achTitle: "ACH bank transfer",
|
|
162
|
-
achDescription: "Fast, direct deposit to the vendor's bank. Arrives in 1–3 business days.",
|
|
163
|
-
addBankAccount: "Add bank account",
|
|
164
|
-
accountHolderNameLabel: "Account holder name",
|
|
165
|
-
routingNumberLabel: "Routing number",
|
|
166
|
-
accountNumberLabel: "Account number",
|
|
167
|
-
achHelp: "Ask your vendor for this — it's usually on their invoice, W-9, or a payment instructions email they send you.",
|
|
168
|
-
cancel: "Cancel",
|
|
169
|
-
save: "Save vendor"
|
|
170
|
-
};
|
|
171
37
|
//#endregion
|
|
172
|
-
export {
|
|
38
|
+
export { n as SOURCE_DOCUMENT_PREVIEW_LABELS_EN, r as createSourceDocumentPreview };
|