finance-shared 0.0.17 → 0.0.19
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.
|
@@ -81,12 +81,13 @@ const locale$3 = {
|
|
|
81
81
|
DOCUMENTS_REMARKS: "Documents Remarks",
|
|
82
82
|
LOAN_AMOUNT: "Loan Amount",
|
|
83
83
|
INTEREST_RATE: "Interest Rate",
|
|
84
|
-
INTEREST_FEES: "Interest
|
|
85
|
-
REPAYMENT_AMOUNT: "
|
|
84
|
+
INTEREST_FEES: "Total Interest",
|
|
85
|
+
REPAYMENT_AMOUNT: "Monthly Installment",
|
|
86
|
+
PRINCIPLE_PLUS_INTEREST: "Principal + Interest",
|
|
86
87
|
DISBURSEMENT: "Disbursement",
|
|
87
88
|
CONFIRM_INFORMATION_READ: "I confirm that I have read, understood, and agree to the loan amount, interest rate, repayment terms, deductions, tenure, and all related loan details.",
|
|
88
89
|
PDF_PREVIEW_TITLE: "Summary of loan application",
|
|
89
|
-
TOTAL_INTEREST_RATE: "
|
|
90
|
+
TOTAL_INTEREST_RATE: "Interest Rate",
|
|
90
91
|
DURATION: "Duration",
|
|
91
92
|
STAMP_DUTY: "Stamp Duty",
|
|
92
93
|
LEGAL_FEES: "Legal Fees",
|
|
@@ -149,12 +150,13 @@ const locale$2 = {
|
|
|
149
150
|
DOCUMENTS_REMARKS: "Documents Remarks",
|
|
150
151
|
LOAN_AMOUNT: "Jumlah Pinjaman",
|
|
151
152
|
INTEREST_RATE: "Kadar Faedah",
|
|
152
|
-
INTEREST_FEES: "
|
|
153
|
-
REPAYMENT_AMOUNT: "
|
|
153
|
+
INTEREST_FEES: "Jumlah Faedah",
|
|
154
|
+
REPAYMENT_AMOUNT: "Ansuran Bulanan",
|
|
155
|
+
PRINCIPLE_PLUS_INTEREST: "Prinsipal + Faedah",
|
|
154
156
|
DISBURSEMENT: "Pengeluaran",
|
|
155
157
|
CONFIRM_INFORMATION_READ: "Saya mengesahkan bahawa saya telah membaca, memahami, dan bersetuju dengan jumlah pinjaman, kadar faedah, terma pembayaran balik, potongan, tempoh pinjaman, serta semua butiran pinjaman yang berkaitan.",
|
|
156
158
|
PDF_PREVIEW_TITLE: "Ringkasan permohonan pinjaman",
|
|
157
|
-
TOTAL_INTEREST_RATE: "
|
|
159
|
+
TOTAL_INTEREST_RATE: "Kadar Faedah",
|
|
158
160
|
DURATION: "Tempoh",
|
|
159
161
|
STAMP_DUTY: "Duti Setem",
|
|
160
162
|
LEGAL_FEES: "Yuran Guaman",
|
|
@@ -17747,12 +17749,6 @@ function formatDate(dateString, outputFormat = "DD/MMM/YYYY", inputFormat) {
|
|
|
17747
17749
|
}
|
|
17748
17750
|
return date2.format(outputFormat);
|
|
17749
17751
|
}
|
|
17750
|
-
function setLocalStorageItem(key, value) {
|
|
17751
|
-
localStorage.setItem(key, value);
|
|
17752
|
-
}
|
|
17753
|
-
function removeLocalStorageItem(key) {
|
|
17754
|
-
localStorage.removeItem(key);
|
|
17755
|
-
}
|
|
17756
17752
|
function formatAmount(num, showCurrency = true) {
|
|
17757
17753
|
if (num === null || num === void 0 || typeof num !== "number" && isNaN(Number(num))) {
|
|
17758
17754
|
return showCurrency ? "RM 00.00" : "00.00";
|
|
@@ -25941,7 +25937,7 @@ const PDFPreviewForTheSignature = ({
|
|
|
25941
25937
|
": "
|
|
25942
25938
|
] }),
|
|
25943
25939
|
financeCalculation.totalInterestRate,
|
|
25944
|
-
"
|
|
25940
|
+
"% p.a."
|
|
25945
25941
|
] }) }),
|
|
25946
25942
|
financeCalculation.interestFees !== void 0 && /* @__PURE__ */ jsx(Grid2, { size: { xs: 12, sm: 4 }, children: /* @__PURE__ */ jsxs(Typography$1, { variant: "body2", children: [
|
|
25947
25943
|
/* @__PURE__ */ jsxs("strong", { children: [
|
|
@@ -25950,6 +25946,13 @@ const PDFPreviewForTheSignature = ({
|
|
|
25950
25946
|
] }),
|
|
25951
25947
|
formatAmount(financeCalculation.interestFees)
|
|
25952
25948
|
] }) }),
|
|
25949
|
+
financeCalculation.principalPlusInterest !== void 0 && /* @__PURE__ */ jsx(Grid2, { size: { xs: 12, sm: 4 }, children: /* @__PURE__ */ jsxs(Typography$1, { variant: "body2", children: [
|
|
25950
|
+
/* @__PURE__ */ jsxs("strong", { children: [
|
|
25951
|
+
t2("PRINCIPLE_PLUS_INTEREST"),
|
|
25952
|
+
": "
|
|
25953
|
+
] }),
|
|
25954
|
+
formatAmount(financeCalculation.principalPlusInterest)
|
|
25955
|
+
] }) }),
|
|
25953
25956
|
financeCalculation.repaymentAmount !== void 0 && /* @__PURE__ */ jsx(Grid2, { size: { xs: 12, sm: 4 }, children: /* @__PURE__ */ jsxs(Typography$1, { variant: "body2", children: [
|
|
25954
25957
|
/* @__PURE__ */ jsxs("strong", { children: [
|
|
25955
25958
|
t2("REPAYMENT_AMOUNT"),
|
|
@@ -26069,14 +26072,6 @@ function DocumentSigningDialog({
|
|
|
26069
26072
|
if (reason && reason === "backdropClick") return;
|
|
26070
26073
|
onClose();
|
|
26071
26074
|
};
|
|
26072
|
-
const handleCheckboxChange = (event) => {
|
|
26073
|
-
if (event) {
|
|
26074
|
-
const today = (/* @__PURE__ */ new Date()).toLocaleDateString();
|
|
26075
|
-
setLocalStorageItem("pendingKYCDialogDate", today);
|
|
26076
|
-
} else {
|
|
26077
|
-
removeLocalStorageItem("pendingKYCDialogDate");
|
|
26078
|
-
}
|
|
26079
|
-
};
|
|
26080
26075
|
const handleDocumentSignJPDFGenerate = () => {
|
|
26081
26076
|
var _a, _b;
|
|
26082
26077
|
if (!lodashExports.isEmpty(financeDetail == null ? void 0 : financeDetail.digitalSignatureDetails) && ((_a = financeDetail == null ? void 0 : financeDetail.digitalSignatureDetails) == null ? void 0 : _a.formJPdfPath)) {
|
|
@@ -26136,16 +26131,9 @@ function DocumentSigningDialog({
|
|
|
26136
26131
|
"DD/MMM/YYYY HH:mm:ss"
|
|
26137
26132
|
)
|
|
26138
26133
|
] }) })
|
|
26139
|
-
] })
|
|
26140
|
-
/* @__PURE__ */ jsx("div", { className: "flex justify-start items-center", children: /* @__PURE__ */ jsx(
|
|
26141
|
-
CustomCheckbox,
|
|
26142
|
-
{
|
|
26143
|
-
label: t2("DONT_SHOW_AGAIN"),
|
|
26144
|
-
onChange: handleCheckboxChange
|
|
26145
|
-
}
|
|
26146
|
-
) })
|
|
26134
|
+
] })
|
|
26147
26135
|
] }),
|
|
26148
|
-
/* @__PURE__ */ jsxs("div", { className: "flex justify-end items-center gap-10", children: [
|
|
26136
|
+
/* @__PURE__ */ jsxs("div", { className: "flex justify-end items-center gap-10 pt-16", children: [
|
|
26149
26137
|
/* @__PURE__ */ jsx(
|
|
26150
26138
|
ColoredSubmitButton,
|
|
26151
26139
|
{
|