finance-shared 0.0.18 → 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.
|
@@ -17749,12 +17749,6 @@ function formatDate(dateString, outputFormat = "DD/MMM/YYYY", inputFormat) {
|
|
|
17749
17749
|
}
|
|
17750
17750
|
return date2.format(outputFormat);
|
|
17751
17751
|
}
|
|
17752
|
-
function setLocalStorageItem(key, value) {
|
|
17753
|
-
localStorage.setItem(key, value);
|
|
17754
|
-
}
|
|
17755
|
-
function removeLocalStorageItem(key) {
|
|
17756
|
-
localStorage.removeItem(key);
|
|
17757
|
-
}
|
|
17758
17752
|
function formatAmount(num, showCurrency = true) {
|
|
17759
17753
|
if (num === null || num === void 0 || typeof num !== "number" && isNaN(Number(num))) {
|
|
17760
17754
|
return showCurrency ? "RM 00.00" : "00.00";
|
|
@@ -26078,14 +26072,6 @@ function DocumentSigningDialog({
|
|
|
26078
26072
|
if (reason && reason === "backdropClick") return;
|
|
26079
26073
|
onClose();
|
|
26080
26074
|
};
|
|
26081
|
-
const handleCheckboxChange = (event) => {
|
|
26082
|
-
if (event) {
|
|
26083
|
-
const today = (/* @__PURE__ */ new Date()).toLocaleDateString();
|
|
26084
|
-
setLocalStorageItem("pendingKYCDialogDate", today);
|
|
26085
|
-
} else {
|
|
26086
|
-
removeLocalStorageItem("pendingKYCDialogDate");
|
|
26087
|
-
}
|
|
26088
|
-
};
|
|
26089
26075
|
const handleDocumentSignJPDFGenerate = () => {
|
|
26090
26076
|
var _a, _b;
|
|
26091
26077
|
if (!lodashExports.isEmpty(financeDetail == null ? void 0 : financeDetail.digitalSignatureDetails) && ((_a = financeDetail == null ? void 0 : financeDetail.digitalSignatureDetails) == null ? void 0 : _a.formJPdfPath)) {
|
|
@@ -26145,16 +26131,9 @@ function DocumentSigningDialog({
|
|
|
26145
26131
|
"DD/MMM/YYYY HH:mm:ss"
|
|
26146
26132
|
)
|
|
26147
26133
|
] }) })
|
|
26148
|
-
] })
|
|
26149
|
-
/* @__PURE__ */ jsx("div", { className: "flex justify-start items-center", children: /* @__PURE__ */ jsx(
|
|
26150
|
-
CustomCheckbox,
|
|
26151
|
-
{
|
|
26152
|
-
label: t2("DONT_SHOW_AGAIN"),
|
|
26153
|
-
onChange: handleCheckboxChange
|
|
26154
|
-
}
|
|
26155
|
-
) })
|
|
26134
|
+
] })
|
|
26156
26135
|
] }),
|
|
26157
|
-
/* @__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: [
|
|
26158
26137
|
/* @__PURE__ */ jsx(
|
|
26159
26138
|
ColoredSubmitButton,
|
|
26160
26139
|
{
|