@fractalpay/fractalpay-next-dev 0.0.281 → 0.0.283
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.js +42 -116
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -39,7 +39,7 @@ var require_package = __commonJS({
|
|
|
39
39
|
"package.json"(exports, module) {
|
|
40
40
|
module.exports = {
|
|
41
41
|
name: "@fractalpay/fractalpay-next-dev",
|
|
42
|
-
version: "0.0.
|
|
42
|
+
version: "0.0.283",
|
|
43
43
|
private: false,
|
|
44
44
|
type: "module",
|
|
45
45
|
scripts: {
|
|
@@ -212,17 +212,6 @@ var LoaderStyle = (props) => {
|
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
214
|
|
|
215
|
-
|
|
216
|
-
.loader-text {
|
|
217
|
-
margin-top: 8px;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
.loader-content {
|
|
221
|
-
display: flex;
|
|
222
|
-
flex-direction: column;
|
|
223
|
-
align-items: center;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
215
|
` });
|
|
227
216
|
};
|
|
228
217
|
var LoaderStyle_default = LoaderStyle;
|
|
@@ -230,17 +219,14 @@ var LoaderStyle_default = LoaderStyle;
|
|
|
230
219
|
// src/app/components/Loader/Loader.tsx
|
|
231
220
|
import { Fragment, jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
232
221
|
var Loader = (_a) => {
|
|
233
|
-
var _b = _a, { intensity = "light"
|
|
222
|
+
var _b = _a, { intensity = "light" } = _b, props = __objRest(_b, ["intensity"]);
|
|
234
223
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
235
224
|
/* @__PURE__ */ jsx2(LoaderStyle_default, {}),
|
|
236
|
-
(props == null ? void 0 : props.loading) && /* @__PURE__ */ jsx2("div", { className: `loader-${intensity}`, children: /* @__PURE__ */ jsxs("div", { className: "
|
|
237
|
-
/* @__PURE__ */
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
/* @__PURE__ */ jsx2("div", {})
|
|
242
|
-
] }),
|
|
243
|
-
loaderText && /* @__PURE__ */ jsx2("div", { className: "loader-text", children: loaderText })
|
|
225
|
+
(props == null ? void 0 : props.loading) && /* @__PURE__ */ jsx2("div", { className: `loader-${intensity}`, children: /* @__PURE__ */ jsxs("div", { className: "lds-ellipsis", children: [
|
|
226
|
+
/* @__PURE__ */ jsx2("div", {}),
|
|
227
|
+
/* @__PURE__ */ jsx2("div", {}),
|
|
228
|
+
/* @__PURE__ */ jsx2("div", {}),
|
|
229
|
+
/* @__PURE__ */ jsx2("div", {})
|
|
244
230
|
] }) })
|
|
245
231
|
] });
|
|
246
232
|
};
|
|
@@ -250,8 +236,8 @@ var Loader_default = Loader;
|
|
|
250
236
|
var { name } = require_package();
|
|
251
237
|
var S3Url = "https://fractal-userdata-upload.s3.us-east-1.amazonaws.com/";
|
|
252
238
|
if (name === "@fractalpay/fractalpay-next-dev") {
|
|
253
|
-
|
|
254
|
-
|
|
239
|
+
masterBaseUrl = "https://api.dev.fractalpay.com/";
|
|
240
|
+
baseUrl = "https://widget.dev.fractalpay.com/";
|
|
255
241
|
fractalGatewayUrl = "https://api-dev.merchant-trends.com/";
|
|
256
242
|
datacapUrl = "https://token-cert.dcap.com/v1/client";
|
|
257
243
|
threedsSecurePublicKey = "pk_test_51RH5Wc2SlJvyNZ80hpUDy88r4rVdpijfKbNaWaUyQEE6rOrPmG2JQyAj7G5amBD5z5daC56WaeT4jfNhrrPcGOEP00UyKu6AOw";
|
|
@@ -2487,22 +2473,6 @@ position:relative;
|
|
|
2487
2473
|
color: #c62828 !important;
|
|
2488
2474
|
}
|
|
2489
2475
|
|
|
2490
|
-
.surcharge-program-notice-text{
|
|
2491
|
-
margin: 10px 0 4px;
|
|
2492
|
-
padding: 8px 12px;
|
|
2493
|
-
background: #f6f6f7;
|
|
2494
|
-
border-radius: 8px;
|
|
2495
|
-
font-family: 'Inter', sans-serif;
|
|
2496
|
-
font-size: 12px;
|
|
2497
|
-
color: #727272;
|
|
2498
|
-
line-height: 1.5;
|
|
2499
|
-
}
|
|
2500
|
-
|
|
2501
|
-
.surcharge-program-notice-text-att {
|
|
2502
|
-
font-weight: 700;
|
|
2503
|
-
color: #161616;
|
|
2504
|
-
}
|
|
2505
|
-
|
|
2506
2476
|
` });
|
|
2507
2477
|
}
|
|
2508
2478
|
|
|
@@ -3620,7 +3590,6 @@ function GetPaymentPage(props) {
|
|
|
3620
3590
|
const [errorBankConsent, setErrorBankConsent] = useState4("");
|
|
3621
3591
|
const [saveACHConsent1, setSaveACHConsent1] = useState4(false);
|
|
3622
3592
|
const [errorBankConsentOther, setErrorBankConsentOther] = useState4("");
|
|
3623
|
-
const [loaderText, setLoderText] = useState4("");
|
|
3624
3593
|
const fractalpayClientKey = props.merchantPublicKey;
|
|
3625
3594
|
let mastercard2 = S3Url + "widget/mc-img.svg";
|
|
3626
3595
|
let visa2 = S3Url + "widget/visa-img.svg";
|
|
@@ -3764,7 +3733,6 @@ function GetPaymentPage(props) {
|
|
|
3764
3733
|
setErrorBankConsent("");
|
|
3765
3734
|
setSaveACHConsent1(false);
|
|
3766
3735
|
setErrorBankConsentOther("");
|
|
3767
|
-
setLoderText("");
|
|
3768
3736
|
};
|
|
3769
3737
|
const handleShow = () => setShow(true);
|
|
3770
3738
|
const handletabchange = (id) => {
|
|
@@ -3874,7 +3842,7 @@ function GetPaymentPage(props) {
|
|
|
3874
3842
|
return Object.keys(errors).length > 0;
|
|
3875
3843
|
};
|
|
3876
3844
|
const submitFunc = async (e) => {
|
|
3877
|
-
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2, _l2, _m2, _n2, _o2, _p2
|
|
3845
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2, _l2, _m2, _n2, _o2, _p2;
|
|
3878
3846
|
e.preventDefault();
|
|
3879
3847
|
const el = document.activeElement;
|
|
3880
3848
|
if (el instanceof HTMLElement) {
|
|
@@ -3962,20 +3930,15 @@ function GetPaymentPage(props) {
|
|
|
3962
3930
|
setErrorIframe(((_h2 = (_g2 = err == null ? void 0 : err.response) == null ? void 0 : _g2.data) == null ? void 0 : _h2.message) || (err == null ? void 0 : err.message) || "Something went wrong.");
|
|
3963
3931
|
setLoading2(false);
|
|
3964
3932
|
}
|
|
3965
|
-
const card_issue_type = ((_i2 = tokenizeData == null ? void 0 : tokenizeData.bin_lookup_result) == null ? void 0 : _i2.card_issue_type) || null;
|
|
3966
|
-
if (card_issue_type === "Debit") {
|
|
3967
|
-
setLoderText("Processing Debit card without fee");
|
|
3968
|
-
}
|
|
3969
3933
|
console.log(tokenizeData, "tokenizeData");
|
|
3970
3934
|
const reqData = JSON.stringify(__spreadProps(__spreadValues({}, tokenizeData), {
|
|
3971
3935
|
isSaveCardChecked: saveCardInfo,
|
|
3972
3936
|
name: cardData == null ? void 0 : cardData.cardName,
|
|
3973
3937
|
postal_code: cardData == null ? void 0 : cardData.zipCode,
|
|
3974
|
-
customer_id: props == null ? void 0 : props.customerId
|
|
3975
|
-
card_issue_type
|
|
3938
|
+
customer_id: props == null ? void 0 : props.customerId
|
|
3976
3939
|
}));
|
|
3977
3940
|
const reqData2 = JSON.stringify({
|
|
3978
|
-
"pre_sales_id": `${(
|
|
3941
|
+
"pre_sales_id": `${(_j2 = (_i2 = result == null ? void 0 : result.data) == null ? void 0 : _i2.data) == null ? void 0 : _j2.posSalesIdEncode}`,
|
|
3979
3942
|
"token": `${tokenizeData == null ? void 0 : tokenizeData.token}`,
|
|
3980
3943
|
"json_response": `${reqData}`
|
|
3981
3944
|
});
|
|
@@ -4008,11 +3971,11 @@ function GetPaymentPage(props) {
|
|
|
4008
3971
|
});
|
|
4009
3972
|
} catch (err) {
|
|
4010
3973
|
setLoading2(false);
|
|
4011
|
-
setError(((
|
|
3974
|
+
setError(((_l2 = (_k2 = err == null ? void 0 : err.response) == null ? void 0 : _k2.data) == null ? void 0 : _l2.message) || (err == null ? void 0 : err.message) || "Something went wrong.");
|
|
4012
3975
|
}
|
|
4013
3976
|
} catch (err) {
|
|
4014
3977
|
setLoading2(false);
|
|
4015
|
-
setError(((
|
|
3978
|
+
setError(((_n2 = (_m2 = err == null ? void 0 : err.response) == null ? void 0 : _m2.data) == null ? void 0 : _n2.message) || (err == null ? void 0 : err.message) || "Something went wrong.");
|
|
4016
3979
|
}
|
|
4017
3980
|
} else {
|
|
4018
3981
|
try {
|
|
@@ -4030,7 +3993,7 @@ function GetPaymentPage(props) {
|
|
|
4030
3993
|
}
|
|
4031
3994
|
} catch (err) {
|
|
4032
3995
|
setLoading2(false);
|
|
4033
|
-
setError(((
|
|
3996
|
+
setError(((_p2 = (_o2 = err == null ? void 0 : err.response) == null ? void 0 : _o2.data) == null ? void 0 : _p2.message) || (err == null ? void 0 : err.message) || "Something went wrong.");
|
|
4034
3997
|
}
|
|
4035
3998
|
}
|
|
4036
3999
|
}
|
|
@@ -4355,7 +4318,7 @@ function GetPaymentPage(props) {
|
|
|
4355
4318
|
} }) }),
|
|
4356
4319
|
success && /* @__PURE__ */ jsx19(SuccessMsz, { onClose: handleClose, tranId }),
|
|
4357
4320
|
!error && !errorIframe && !success && /* @__PURE__ */ jsxs11(Fragment11, { children: [
|
|
4358
|
-
(loading || loading2 || loadingIframe) && /* @__PURE__ */ jsx19(Loader_default, { loading: loading || loading2 || loadingIframe
|
|
4321
|
+
(loading || loading2 || loadingIframe) && /* @__PURE__ */ jsx19(Loader_default, { loading: loading || loading2 || loadingIframe }),
|
|
4359
4322
|
/* @__PURE__ */ jsx19("div", { className: "frac-card-payment-page frac-form", children: /* @__PURE__ */ jsxs11("div", { className: "parent-pay-container", children: [
|
|
4360
4323
|
/* @__PURE__ */ jsx19("span", { className: "request-payment-close-popup", onClick: handleClose, children: /* @__PURE__ */ jsxs11("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", children: [
|
|
4361
4324
|
/* @__PURE__ */ jsx19("g", { clipPath: "url(#clip0_12425_52336)", children: /* @__PURE__ */ jsx19("path", { d: "M9.46585 8.01168L15.6959 1.7814C16.1014 1.37615 16.1014 0.720912 15.6959 0.315659C15.2907 -0.0895946 14.6354 -0.0895946 14.2302 0.315659L7.99991 6.54593L1.76983 0.315659C1.36438 -0.0895946 0.709336 -0.0895946 0.304082 0.315659C-0.101361 0.720912 -0.101361 1.37615 0.304082 1.7814L6.53416 8.01168L0.304082 14.2419C-0.101361 14.6472 -0.101361 15.3024 0.304082 15.7077C0.506045 15.9098 0.771595 16.0114 1.03695 16.0114C1.30232 16.0114 1.56768 15.9098 1.76983 15.7077L7.99991 9.47742L14.2302 15.7077C14.4323 15.9098 14.6977 16.0114 14.9631 16.0114C15.2284 16.0114 15.4938 15.9098 15.6959 15.7077C16.1014 15.3024 16.1014 14.6472 15.6959 14.2419L9.46585 8.01168Z", fill: "#727272" }) }),
|
|
@@ -4380,38 +4343,17 @@ function GetPaymentPage(props) {
|
|
|
4380
4343
|
(paymentData == null ? void 0 : paymentData.isSkyFiAccount) && /* @__PURE__ */ jsx19(CardBankRadio, { label: "Bank", amount: (_b = Number(bankAmount)) == null ? void 0 : _b.toFixed(2), value: "ach", onChange: handletabchange, activetab }),
|
|
4381
4344
|
(props == null ? void 0 : props.isReader) && (paymentData == null ? void 0 : paymentData.paymentDeviceList) && ((_c = paymentData == null ? void 0 : paymentData.paymentDeviceList) == null ? void 0 : _c.length) > 0 && /* @__PURE__ */ jsx19(CardBankRadio, { label: "Reader", amount: (_d = Number(props == null ? void 0 : props.amount)) == null ? void 0 : _d.toFixed(2), value: "reader", onChange: handletabchange, activetab })
|
|
4382
4345
|
] }),
|
|
4383
|
-
!loading &&
|
|
4384
|
-
/* @__PURE__ */ jsx19("small", { children: (paymentData == null ? void 0 : paymentData.surchargeProgram) == 1 ? "Surcharge" : (paymentData == null ? void 0 : paymentData.showSurcharge) ? "3% Card Fee" : "Cash Discount" }),
|
|
4385
|
-
/* @__PURE__ */ jsx19("p", { children: formatUSD((Number(props.amount) - cashDiscount).toFixed(2)) })
|
|
4386
|
-
] }),
|
|
4387
|
-
!loading && activetab === "ach" && (props == null ? void 0 : props.pass_fee) && cashDiscount && cashDiscount > 0 && /* @__PURE__ */ jsxs11("div", { className: "frac-cash-discount-fee", children: [
|
|
4388
|
-
/* @__PURE__ */ jsx19("small", { children: (paymentData == null ? void 0 : paymentData.surchargeProgram) == 1 ? "Savings" : "Cash Discount Savings" }),
|
|
4389
|
-
/* @__PURE__ */ jsx19("p", { children: formatUSD((Number(props.amount) - cashDiscount).toFixed(2)) })
|
|
4390
|
-
] }),
|
|
4391
|
-
!loading && (props == null ? void 0 : props.pass_fee) && /* @__PURE__ */ jsxs11("div", { className: "", children: [
|
|
4346
|
+
!loading && /* @__PURE__ */ jsxs11("div", { className: "", children: [
|
|
4392
4347
|
activetab == "ach" && bankFeeAmount > 0 && /* @__PURE__ */ jsxs11("small", { className: "frac-fee-text", children: [
|
|
4393
4348
|
"There is a processing fee of ",
|
|
4394
4349
|
/* @__PURE__ */ jsx19("span", { className: "frac-fee-amount", children: formatUSD(bankFeeAmount.toFixed(2)) }),
|
|
4395
4350
|
"."
|
|
4396
4351
|
] }),
|
|
4397
|
-
(activetab === "card" || activetab === "reader") && (props == null ? void 0 : props.pass_fee) && cashDiscount && cashDiscount > 0 && /* @__PURE__ */ jsxs11(
|
|
4398
|
-
"
|
|
4399
|
-
{
|
|
4400
|
-
|
|
4401
|
-
|
|
4402
|
-
children: [
|
|
4403
|
-
"A 3% processing surcharge is applied to all credit card transactions. Debit card payments are processed for",
|
|
4404
|
-
" ",
|
|
4405
|
-
/* @__PURE__ */ jsxs11("span", { className: "surcharge-program-notice-text-att", children: [
|
|
4406
|
-
"$",
|
|
4407
|
-
Number(cashDiscount).toLocaleString("en-US", {
|
|
4408
|
-
minimumFractionDigits: 2,
|
|
4409
|
-
maximumFractionDigits: 2
|
|
4410
|
-
})
|
|
4411
|
-
] })
|
|
4412
|
-
]
|
|
4413
|
-
}
|
|
4414
|
-
)
|
|
4352
|
+
(activetab === "card" || activetab === "reader") && (props == null ? void 0 : props.pass_fee) && cashDiscount && cashDiscount > 0 && /* @__PURE__ */ jsxs11("small", { className: "frac-fee-text", children: [
|
|
4353
|
+
"Cards include a fee amount of ",
|
|
4354
|
+
/* @__PURE__ */ jsx19("span", { className: "frac-fee-amount", children: formatUSD((Number(props.amount) - cashDiscount).toFixed(2)) }),
|
|
4355
|
+
"."
|
|
4356
|
+
] })
|
|
4415
4357
|
] })
|
|
4416
4358
|
] })
|
|
4417
4359
|
] }),
|
|
@@ -7624,7 +7566,6 @@ function PartialPayment(props) {
|
|
|
7624
7566
|
const [errorBankConsent, setErrorBankConsent] = useState8("");
|
|
7625
7567
|
const [saveACHConsent1, setSaveACHConsent1] = useState8(false);
|
|
7626
7568
|
const [errorBankConsentOther, setErrorBankConsentOther] = useState8("");
|
|
7627
|
-
const [loaderText, setLoderText] = useState8("");
|
|
7628
7569
|
const tokenizerRef = useRef8(null);
|
|
7629
7570
|
const fractalStyles = {
|
|
7630
7571
|
input: {
|
|
@@ -7740,7 +7681,6 @@ function PartialPayment(props) {
|
|
|
7740
7681
|
setErrorBankConsent("");
|
|
7741
7682
|
setSaveACHConsent1(false);
|
|
7742
7683
|
setErrorBankConsentOther("");
|
|
7743
|
-
setLoderText("");
|
|
7744
7684
|
};
|
|
7745
7685
|
const handleShow = () => setShow(true);
|
|
7746
7686
|
const handletabchange = (id) => {
|
|
@@ -7851,7 +7791,7 @@ function PartialPayment(props) {
|
|
|
7851
7791
|
return Object.keys(errors).length > 0;
|
|
7852
7792
|
};
|
|
7853
7793
|
const submitFunc = async (e) => {
|
|
7854
|
-
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2, _l2, _m2
|
|
7794
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2, _l2, _m2;
|
|
7855
7795
|
e.preventDefault();
|
|
7856
7796
|
const el = document.activeElement;
|
|
7857
7797
|
if (el instanceof HTMLElement) {
|
|
@@ -7926,20 +7866,15 @@ function PartialPayment(props) {
|
|
|
7926
7866
|
public_key_pem: ((_b2 = (_a2 = sesionResult == null ? void 0 : sesionResult.data) == null ? void 0 : _a2.data) == null ? void 0 : _b2.publicKeyPem) || ((_d2 = (_c2 = sesionResult == null ? void 0 : sesionResult.data) == null ? void 0 : _c2.data) == null ? void 0 : _d2.public_key_pem),
|
|
7927
7867
|
session_key: (_f2 = (_e2 = sesionResult == null ? void 0 : sesionResult.data) == null ? void 0 : _e2.data) == null ? void 0 : _f2.session_key
|
|
7928
7868
|
});
|
|
7929
|
-
const card_issue_type = ((_g2 = tokenizeData == null ? void 0 : tokenizeData.bin_lookup_result) == null ? void 0 : _g2.card_issue_type) || null;
|
|
7930
|
-
if (card_issue_type === "Debit") {
|
|
7931
|
-
setLoderText("Processing Debit card without fee");
|
|
7932
|
-
}
|
|
7933
7869
|
const reqData = JSON.stringify(__spreadProps(__spreadValues({}, tokenizeData), {
|
|
7934
7870
|
isSaveCardChecked: saveCardInfo,
|
|
7935
7871
|
name: cardData == null ? void 0 : cardData.cardName,
|
|
7936
7872
|
postal_code: cardData == null ? void 0 : cardData.zipCode,
|
|
7937
7873
|
customer_id: props == null ? void 0 : props.customerId,
|
|
7938
|
-
partial_amount: partialAmount && !partialError ? partialAmount : aftertaxAmount
|
|
7939
|
-
card_issue_type
|
|
7874
|
+
partial_amount: partialAmount && !partialError ? partialAmount : aftertaxAmount
|
|
7940
7875
|
}));
|
|
7941
7876
|
const reqData2 = JSON.stringify({
|
|
7942
|
-
"pre_sales_id": `${(
|
|
7877
|
+
"pre_sales_id": `${(_g2 = paymentData == null ? void 0 : paymentData.orderDetails) == null ? void 0 : _g2.orderId}`,
|
|
7943
7878
|
"token": `${tokenizeData == null ? void 0 : tokenizeData.token}`,
|
|
7944
7879
|
"json_response": `${reqData}`
|
|
7945
7880
|
});
|
|
@@ -7972,11 +7907,11 @@ function PartialPayment(props) {
|
|
|
7972
7907
|
});
|
|
7973
7908
|
} catch (err) {
|
|
7974
7909
|
setLoading2(false);
|
|
7975
|
-
setError(((
|
|
7910
|
+
setError(((_i2 = (_h2 = err == null ? void 0 : err.response) == null ? void 0 : _h2.data) == null ? void 0 : _i2.message) || (err == null ? void 0 : err.message) || "Something went wrong.");
|
|
7976
7911
|
}
|
|
7977
7912
|
} catch (err) {
|
|
7978
7913
|
setLoading2(false);
|
|
7979
|
-
setError(((
|
|
7914
|
+
setError(((_k2 = (_j2 = err == null ? void 0 : err.response) == null ? void 0 : _j2.data) == null ? void 0 : _k2.message) || (err == null ? void 0 : err.message) || "Something went wrong.");
|
|
7980
7915
|
}
|
|
7981
7916
|
} else {
|
|
7982
7917
|
try {
|
|
@@ -7993,7 +7928,7 @@ function PartialPayment(props) {
|
|
|
7993
7928
|
}
|
|
7994
7929
|
} catch (err) {
|
|
7995
7930
|
setLoading2(false);
|
|
7996
|
-
setError(((
|
|
7931
|
+
setError(((_m2 = (_l2 = err == null ? void 0 : err.response) == null ? void 0 : _l2.data) == null ? void 0 : _m2.message) || (err == null ? void 0 : err.message) || "Something went wrong.");
|
|
7997
7932
|
}
|
|
7998
7933
|
}
|
|
7999
7934
|
}
|
|
@@ -8360,7 +8295,7 @@ function PartialPayment(props) {
|
|
|
8360
8295
|
} }) }),
|
|
8361
8296
|
success && /* @__PURE__ */ jsx28(SuccessMsz, { onClose: handleClose, tranId }),
|
|
8362
8297
|
!error && !success && !errorIframe && /* @__PURE__ */ jsxs17(Fragment17, { children: [
|
|
8363
|
-
(loading || loading2 || loadingIframe) && /* @__PURE__ */ jsx28(Loader_default, { loading: loading || loading2 || loadingIframe
|
|
8298
|
+
(loading || loading2 || loadingIframe) && /* @__PURE__ */ jsx28(Loader_default, { loading: loading || loading2 || loadingIframe }),
|
|
8364
8299
|
/* @__PURE__ */ jsx28("div", { className: "frac-card-payment-page frac-form", children: /* @__PURE__ */ jsxs17("div", { className: "parent-pay-container", children: [
|
|
8365
8300
|
/* @__PURE__ */ jsx28("span", { className: "request-payment-close-popup", onClick: handleClose, children: /* @__PURE__ */ jsxs17("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", children: [
|
|
8366
8301
|
/* @__PURE__ */ jsx28("g", { clipPath: "url(#clip0_12425_52336)", children: /* @__PURE__ */ jsx28("path", { d: "M9.46585 8.01168L15.6959 1.7814C16.1014 1.37615 16.1014 0.720912 15.6959 0.315659C15.2907 -0.0895946 14.6354 -0.0895946 14.2302 0.315659L7.99991 6.54593L1.76983 0.315659C1.36438 -0.0895946 0.709336 -0.0895946 0.304082 0.315659C-0.101361 0.720912 -0.101361 1.37615 0.304082 1.7814L6.53416 8.01168L0.304082 14.2419C-0.101361 14.6472 -0.101361 15.3024 0.304082 15.7077C0.506045 15.9098 0.771595 16.0114 1.03695 16.0114C1.30232 16.0114 1.56768 15.9098 1.76983 15.7077L7.99991 9.47742L14.2302 15.7077C14.4323 15.9098 14.6977 16.0114 14.9631 16.0114C15.2284 16.0114 15.4938 15.9098 15.6959 15.7077C16.1014 15.3024 16.1014 14.6472 15.6959 14.2419L9.46585 8.01168Z", fill: "#727272" }) }),
|
|
@@ -8381,28 +8316,19 @@ function PartialPayment(props) {
|
|
|
8381
8316
|
/* @__PURE__ */ jsxs17("div", { className: "amt-pay-con", children: [
|
|
8382
8317
|
/* @__PURE__ */ jsx28("div", { className: "pay-amount-conatiner", children: /* @__PURE__ */ jsx28("small", { className: "pay-payment-amount", children: "Select payment type" }) }),
|
|
8383
8318
|
/* @__PURE__ */ jsx28("div", { className: "frac-card-bank-radio-main", children: /* @__PURE__ */ jsx28(CardBankRadio, { label: "Card", amount: (_a = Number(aftertaxAmount)) == null ? void 0 : _a.toFixed(2), value: "card", onChange: handletabchange, activetab }) }),
|
|
8384
|
-
|
|
8385
|
-
/* @__PURE__ */
|
|
8386
|
-
|
|
8387
|
-
|
|
8388
|
-
|
|
8389
|
-
"
|
|
8390
|
-
|
|
8391
|
-
|
|
8392
|
-
|
|
8393
|
-
|
|
8394
|
-
|
|
8395
|
-
|
|
8396
|
-
|
|
8397
|
-
"$",
|
|
8398
|
-
Number(cashDiscount).toLocaleString("en-US", {
|
|
8399
|
-
minimumFractionDigits: 2,
|
|
8400
|
-
maximumFractionDigits: 2
|
|
8401
|
-
})
|
|
8402
|
-
] })
|
|
8403
|
-
]
|
|
8404
|
-
}
|
|
8405
|
-
) }),
|
|
8319
|
+
numberToBoolean(paymentData == null ? void 0 : paymentData.showSurcharge) ? cashDiscount && cashDiscount > 0 && (props == null ? void 0 : props.pass_fee) ? /* @__PURE__ */ jsxs17("div", { className: "frac-cash-discount-fee", children: [
|
|
8320
|
+
/* @__PURE__ */ jsxs17("small", { children: [
|
|
8321
|
+
activetab === "card" ? "Cash Discount" : "Cash Discount Savings",
|
|
8322
|
+
" "
|
|
8323
|
+
] }),
|
|
8324
|
+
/* @__PURE__ */ jsx28("p", { children: formatUSD((Number(aftertaxAmount) - cashDiscount).toFixed(2)) })
|
|
8325
|
+
] }) : null : cashDiscount && cashDiscount > 0 && (props == null ? void 0 : props.pass_fee) && activetab === "card" ? /* @__PURE__ */ jsxs17("div", { className: "frac-cash-discount-fee", children: [
|
|
8326
|
+
/* @__PURE__ */ jsxs17("small", { children: [
|
|
8327
|
+
activetab === "card" ? "Surcharge" : null,
|
|
8328
|
+
" "
|
|
8329
|
+
] }),
|
|
8330
|
+
/* @__PURE__ */ jsx28("p", { children: formatUSD((Number(aftertaxAmount) - cashDiscount).toFixed(2)) })
|
|
8331
|
+
] }) : null,
|
|
8406
8332
|
(props == null ? void 0 : props.allowPartial) && /* @__PURE__ */ jsxs17("div", { className: "frac-partial-payment-input", children: [
|
|
8407
8333
|
/* @__PURE__ */ jsx28("label", { htmlFor: "partialpayment", children: "Partial Payment" }),
|
|
8408
8334
|
/* @__PURE__ */ jsx28(
|