@fractalpay/fractalpay-next-test 0.0.41 → 0.0.42

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 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-test",
42
- version: "0.0.41",
42
+ version: "0.0.42",
43
43
  private: false,
44
44
  type: "module",
45
45
  scripts: {
@@ -8800,7 +8800,7 @@ function PartialPayment(props) {
8800
8800
  }
8801
8801
 
8802
8802
  // src/app/components/Skysystemz/PayButtonWithForm.tsx
8803
- import { useEffect as useEffect18, useState as useState12, useMemo } from "react";
8803
+ import { useEffect as useEffect16, useState as useState11, useMemo } from "react";
8804
8804
 
8805
8805
  // src/app/components/Skysystemz/SkyChargewidgetstyles.tsx
8806
8806
  import { jsx as jsx29 } from "react/jsx-runtime";
@@ -9646,7 +9646,7 @@ padding:0px !important;
9646
9646
  }
9647
9647
 
9648
9648
  // src/app/components/Atoms/ModelContentSky/ModelContentSky.tsx
9649
- import { useCallback, useEffect as useEffect17, useRef as useRef11, useState as useState11 } from "react";
9649
+ import { useCallback, useEffect as useEffect15, useRef as useRef10, useState as useState10 } from "react";
9650
9650
  import axios9 from "axios";
9651
9651
  import Swal5 from "sweetalert2";
9652
9652
 
@@ -9932,247 +9932,56 @@ var ErrorCardOverlay = ({ onClose, error, autoTrigger = false }) => {
9932
9932
  };
9933
9933
  var ErrorCardOverlay_default = ErrorCardOverlay;
9934
9934
 
9935
- // src/app/components/Atoms/Googlepay/Googlepay.tsx
9936
- import { useRef as useRef10 } from "react";
9937
-
9938
- // src/app/components/Atoms/Googlepay/GooglePayScriptLoader.tsx
9939
- import { useEffect as useEffect15 } from "react";
9940
- var googlePayScriptLoaded = false;
9941
- var GooglePayScriptLoader = ({
9942
- onLoad
9943
- }) => {
9944
- useEffect15(() => {
9945
- if (googlePayScriptLoaded) {
9946
- onLoad == null ? void 0 : onLoad();
9947
- return;
9948
- }
9949
- const existingScript = document.querySelector(
9950
- `script[src="https://pay.google.com/gp/p/js/pay.js"]`
9951
- );
9952
- if (!existingScript) {
9953
- const script2 = document.createElement("script");
9954
- script2.src = "https://pay.google.com/gp/p/js/pay.js";
9955
- script2.async = true;
9956
- script2.onload = () => {
9957
- console.log("\u2705 Google Pay script loaded");
9958
- googlePayScriptLoaded = true;
9959
- console.log("google:", window.google);
9960
- onLoad == null ? void 0 : onLoad();
9961
- };
9962
- script2.onerror = (err) => {
9963
- console.error("\u274C Google Pay script failed", err);
9964
- };
9965
- document.head.appendChild(script2);
9966
- } else {
9967
- googlePayScriptLoaded = true;
9968
- onLoad == null ? void 0 : onLoad();
9969
- }
9970
- }, []);
9971
- return null;
9972
- };
9973
-
9974
- // src/app/components/Atoms/Googlepay/Googlepay.tsx
9975
- import { Fragment as Fragment19, jsx as jsx34, jsxs as jsxs20 } from "react/jsx-runtime";
9976
- function GooglePayComponent({
9977
- amount,
9978
- googlePayEnvironment: googlePayEnvironment2,
9979
- googlePayGatewayMerchantId: googlePayGatewayMerchantId2,
9980
- googlePayMerchantId: googlePayMerchantId2,
9981
- googlePayMerchantName,
9982
- require3ds = false,
9983
- completeFractalFlow,
9984
- setLoading
9985
- }) {
9986
- const containerRef = useRef10(null);
9987
- const paymentsClientRef = useRef10(null);
9988
- const baseRequest = {
9989
- apiVersion: 2,
9990
- apiVersionMinor: 0
9991
- };
9992
- const allowedCardNetworks = ["AMEX", "DISCOVER", "MASTERCARD", "VISA"];
9993
- const allowedCardAuthMethods = require3ds ? ["CRYPTOGRAM_3DS"] : ["PAN_ONLY", "CRYPTOGRAM_3DS"];
9994
- const baseCardPaymentMethod = {
9995
- type: "CARD",
9996
- parameters: {
9997
- allowedAuthMethods: allowedCardAuthMethods,
9998
- allowedCardNetworks
9999
- }
10000
- };
10001
- const cardPaymentMethod = __spreadProps(__spreadValues({}, baseCardPaymentMethod), {
10002
- tokenizationSpecification: {
10003
- type: "PAYMENT_GATEWAY",
10004
- parameters: {
10005
- gateway: googlePayGatewayMerchantId2,
10006
- gatewayMerchantId: googlePayGatewayMerchantId2
10007
- }
10008
- }
10009
- });
10010
- const handlePaymentAuthorization = async (paymentData) => {
10011
- var _a, _b;
10012
- try {
10013
- const token = (_b = (_a = paymentData == null ? void 0 : paymentData.paymentMethodData) == null ? void 0 : _a.tokenizationData) == null ? void 0 : _b.token;
10014
- if (!token) throw new Error("Missing token");
10015
- const parsed = JSON.parse(token);
10016
- console.log(parsed, "parsed token");
10017
- setLoading(true);
10018
- completeFractalFlow(parsed, null, "google_pay");
10019
- return {
10020
- transactionState: "SUCCESS"
10021
- // ✅ CLOSES GOOGLE PAY POPUP
10022
- };
10023
- } catch (err) {
10024
- console.error("Payment failed:", err);
10025
- return {
10026
- transactionState: "ERROR",
10027
- // ❌ CLOSES WITH ERROR UI
10028
- error: {
10029
- intent: "PAYMENT_AUTHORIZATION",
10030
- message: "Payment failed",
10031
- reason: "PAYMENT_DATA_INVALID"
10032
- }
10033
- };
10034
- }
10035
- };
10036
- const getPaymentsClient = () => {
10037
- if (!paymentsClientRef.current && typeof window !== "undefined") {
10038
- const google = window.google;
10039
- if (!google) return null;
10040
- paymentsClientRef.current = new google.payments.api.PaymentsClient({
10041
- environment: googlePayEnvironment2,
10042
- // ✅ ADD THIS
10043
- paymentDataCallbacks: {
10044
- onPaymentAuthorized: handlePaymentAuthorization
10045
- }
10046
- });
10047
- }
10048
- return paymentsClientRef.current;
10049
- };
10050
- const getIsReadyToPayRequest = () => __spreadProps(__spreadValues({}, baseRequest), {
10051
- allowedPaymentMethods: [baseCardPaymentMethod]
10052
- });
10053
- const getTransactionInfo = () => ({
10054
- countryCode: "US",
10055
- currencyCode: "USD",
10056
- totalPriceStatus: "FINAL",
10057
- totalPrice: amount,
10058
- checkoutOption: "COMPLETE_IMMEDIATE_PURCHASE"
10059
- });
10060
- const getPaymentDataRequest = () => __spreadProps(__spreadValues({}, baseRequest), {
10061
- allowedPaymentMethods: [cardPaymentMethod],
10062
- transactionInfo: getTransactionInfo(),
10063
- merchantInfo: {
10064
- merchantId: googlePayMerchantId2,
10065
- merchantName: googlePayMerchantName
10066
- },
10067
- // ✅ ADD THIS
10068
- callbackIntents: ["PAYMENT_AUTHORIZATION"]
10069
- });
10070
- const initializeGooglePay = async () => {
10071
- try {
10072
- const client = getPaymentsClient();
10073
- if (!client) {
10074
- console.error("Google Pay client not ready");
10075
- return;
10076
- }
10077
- const response = await client.isReadyToPay(
10078
- getIsReadyToPayRequest()
10079
- );
10080
- if (response.result && containerRef.current) {
10081
- const button = client.createButton({
10082
- onClick: onGooglePayClick,
10083
- allowedPaymentMethods: [baseCardPaymentMethod],
10084
- buttonType: "pay",
10085
- buttonColor: "black",
10086
- buttonRadius: 8
10087
- });
10088
- if (containerRef.current) {
10089
- containerRef.current.innerHTML = "";
10090
- }
10091
- containerRef.current.appendChild(button);
10092
- }
10093
- } catch (err) {
10094
- console.error("Google Pay init error:", err);
10095
- }
10096
- };
10097
- const onGooglePayClick = async () => {
10098
- const client = getPaymentsClient();
10099
- if (!client) {
10100
- console.error("Google Pay client not ready");
10101
- return;
10102
- }
10103
- try {
10104
- await client.loadPaymentData(getPaymentDataRequest());
10105
- } catch (err) {
10106
- if ((err == null ? void 0 : err.statusCode) !== "CANCELED") {
10107
- console.error(err);
10108
- }
10109
- }
10110
- };
10111
- const onScriptLoad = () => {
10112
- if (!googlePayEnvironment2 || !googlePayGatewayMerchantId2 || !amount || !googlePayMerchantId2) {
10113
- console.error("Missing Google Pay config");
10114
- return;
10115
- }
10116
- setTimeout(() => {
10117
- initializeGooglePay();
10118
- }, 0);
10119
- };
10120
- return /* @__PURE__ */ jsxs20(Fragment19, { children: [
10121
- /* @__PURE__ */ jsx34("div", { ref: containerRef, className: "text-center" }),
10122
- /* @__PURE__ */ jsx34(GooglePayScriptLoader, { onLoad: onScriptLoad })
10123
- ] });
10124
- }
10125
-
10126
9935
  // src/app/components/Atoms/ModelContentSky/ModelContentSky.tsx
10127
- import { Fragment as Fragment20, jsx as jsx35, jsxs as jsxs21 } from "react/jsx-runtime";
9936
+ import { Fragment as Fragment19, jsx as jsx34, jsxs as jsxs20 } from "react/jsx-runtime";
10128
9937
  var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_token, customerId, callback, merchantName = "merchant", isPreAuth, surcharge = "0", submitBtnClass, submitBtnIcon, isRequest, pass_fee, pass_fee_amount, require3ds = false, autoTrigger = false, show, setShow, setHandleCloseRef, isPartial, bankSurcharge, partialRef, loadingPrev = false, orderGuid: ordGuid, remainingAmount: remAmount, onSubmit, onLoad = true, customCSS: customCSS2 }) => {
10129
9938
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u;
10130
- const hasRunRef = useRef11(false);
10131
- const cardFormRef = useRef11(null);
10132
- const bankFormRef = useRef11(null);
10133
- const expiryYearRef = useRef11(null);
10134
- const expiryMonthRef = useRef11(null);
10135
- const cardListRunRef = useRef11(false);
10136
- const threeDSContainerRef = useRef11(null);
10137
- const [activetab, setActive] = useState11("card");
10138
- const [activeList, setActiveList] = useState11("card");
10139
- const [cardData, setCardData] = useState11();
10140
- const [cardError, setCardError] = useState11({});
10141
- const [achData, setAchData] = useState11();
10142
- const [achError, setAchError] = useState11({});
10143
- const [saveACHinfo, setSaveACHinfo] = useState11(false);
10144
- const [saveACHConsent1, setSaveACHConsent1] = useState11(false);
10145
- const [saveCardInfo, setSaveCardInfo] = useState11(false);
10146
- const [error, setError] = useState11("");
10147
- const [errorIframe, setErrorIframe] = useState11("");
10148
- const [success, setSuccess] = useState11(false);
10149
- let [tranId, setTranId] = useState11("");
10150
- const [loading, setLoading] = useState11(false);
10151
- const [loading2, setLoading2] = useState11(false);
10152
- const [loadingIframe, setLoadingIframe] = useState11(false);
10153
- const [cardList, setCardList] = useState11([]);
10154
- const [bankList, setBankList] = useState11([]);
10155
- const [selectedCard, setSelectedCard] = useState11();
10156
- const [cashDiscount, setCashDiscount] = useState11(Number(amount));
10157
- const [activeinCard, setActiveinCard] = useState11("form");
10158
- const [activeinBank, setActiveinBank] = useState11("form");
10159
- const [isBankActive, setIsBankActive] = useState11(false);
10160
- const [processingFee, setProcessingFee] = useState11(0);
10161
- const [clientSecret, setClientSecret] = useState11("");
10162
- const [errorMessage, setErrorMessage] = useState11(null);
10163
- const [initialLoader, setInitialLoader] = useState11(false);
10164
- const [is3DSEnable, setIs3DSEnable] = useState11(false);
10165
- const [stripeResponse, setStripeResponse] = useState11(null);
10166
- const [orderLoader, setOrderLoader] = useState11(false);
10167
- const [orderGuid, setOrderGuid] = useState11(ordGuid || null);
10168
- const [partialAmount, setPartialAmount] = useState11("");
10169
- const [partialError, setPartialError] = useState11("");
10170
- const [remainingAmount, setRemainingAmount] = useState11("");
10171
- const [paymentGateway, setPaymentGateway] = useState11();
10172
- const [dcToken, setDCToken] = useState11();
10173
- const [isBankConsentChecked, setIsBankConsentChecked] = useState11(false);
10174
- const [errorBankConsent, setErrorBankConsent] = useState11("");
10175
- const [errorBankConsentOther, setErrorBankConsentOther] = useState11("");
9939
+ const hasRunRef = useRef10(false);
9940
+ const cardFormRef = useRef10(null);
9941
+ const bankFormRef = useRef10(null);
9942
+ const expiryYearRef = useRef10(null);
9943
+ const expiryMonthRef = useRef10(null);
9944
+ const cardListRunRef = useRef10(false);
9945
+ const threeDSContainerRef = useRef10(null);
9946
+ const [activetab, setActive] = useState10("card");
9947
+ const [activeList, setActiveList] = useState10("card");
9948
+ const [cardData, setCardData] = useState10();
9949
+ const [cardError, setCardError] = useState10({});
9950
+ const [achData, setAchData] = useState10();
9951
+ const [achError, setAchError] = useState10({});
9952
+ const [saveACHinfo, setSaveACHinfo] = useState10(false);
9953
+ const [saveACHConsent1, setSaveACHConsent1] = useState10(false);
9954
+ const [saveCardInfo, setSaveCardInfo] = useState10(false);
9955
+ const [error, setError] = useState10("");
9956
+ const [errorIframe, setErrorIframe] = useState10("");
9957
+ const [success, setSuccess] = useState10(false);
9958
+ let [tranId, setTranId] = useState10("");
9959
+ const [loading, setLoading] = useState10(false);
9960
+ const [loading2, setLoading2] = useState10(false);
9961
+ const [loadingIframe, setLoadingIframe] = useState10(false);
9962
+ const [cardList, setCardList] = useState10([]);
9963
+ const [bankList, setBankList] = useState10([]);
9964
+ const [selectedCard, setSelectedCard] = useState10();
9965
+ const [cashDiscount, setCashDiscount] = useState10(Number(amount));
9966
+ const [activeinCard, setActiveinCard] = useState10("form");
9967
+ const [activeinBank, setActiveinBank] = useState10("form");
9968
+ const [isBankActive, setIsBankActive] = useState10(false);
9969
+ const [processingFee, setProcessingFee] = useState10(0);
9970
+ const [clientSecret, setClientSecret] = useState10("");
9971
+ const [errorMessage, setErrorMessage] = useState10(null);
9972
+ const [initialLoader, setInitialLoader] = useState10(false);
9973
+ const [is3DSEnable, setIs3DSEnable] = useState10(false);
9974
+ const [stripeResponse, setStripeResponse] = useState10(null);
9975
+ const [orderLoader, setOrderLoader] = useState10(false);
9976
+ const [orderGuid, setOrderGuid] = useState10(ordGuid || null);
9977
+ const [partialAmount, setPartialAmount] = useState10("");
9978
+ const [partialError, setPartialError] = useState10("");
9979
+ const [remainingAmount, setRemainingAmount] = useState10("");
9980
+ const [paymentGateway, setPaymentGateway] = useState10();
9981
+ const [dcToken, setDCToken] = useState10();
9982
+ const [isBankConsentChecked, setIsBankConsentChecked] = useState10(false);
9983
+ const [errorBankConsent, setErrorBankConsent] = useState10("");
9984
+ const [errorBankConsentOther, setErrorBankConsentOther] = useState10("");
10176
9985
  let mastercard2 = S3Url + "widget/mc-img.svg";
10177
9986
  let visa2 = S3Url + "widget/visa-img.svg";
10178
9987
  let americanexp2 = S3Url + "widget/ae-img.svg";
@@ -10200,7 +10009,7 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
10200
10009
  const bankFeeAmount = Number(bankSurcharge || 0);
10201
10010
  const bankSavingsAmount = Math.max(bankFeeAmount > 0 ? cardFeeAmount - bankFeeAmount : cardFeeAmount, 0);
10202
10011
  const bankSavingsText = bankSavingsAmount > 0 ? `Save ${formatUSD(bankSavingsAmount.toFixed(2))}` : "";
10203
- const tokenizerRef = useRef11(null);
10012
+ const tokenizerRef = useRef10(null);
10204
10013
  const fractalStyles = {
10205
10014
  input: {
10206
10015
  "font-family": "'Inter', sans-serif",
@@ -11066,13 +10875,13 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
11066
10875
  setOrderLoader(false);
11067
10876
  }
11068
10877
  };
11069
- useEffect17(() => {
10878
+ useEffect15(() => {
11070
10879
  if (!show && !autoTrigger) {
11071
10880
  hasRunRef.current = false;
11072
10881
  cardListRunRef.current = false;
11073
10882
  }
11074
10883
  }, [show, autoTrigger]);
11075
- useEffect17(() => {
10884
+ useEffect15(() => {
11076
10885
  if (!hasRunRef.current && (show || autoTrigger) && onLoad) {
11077
10886
  getPaymentDetails();
11078
10887
  if (isPartial && !partialRef) {
@@ -11080,7 +10889,7 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
11080
10889
  }
11081
10890
  }
11082
10891
  }, [show, autoTrigger, isPartial, onLoad]);
11083
- useEffect17(() => {
10892
+ useEffect15(() => {
11084
10893
  if ((show || autoTrigger) && pass_fee_amount) {
11085
10894
  let cashdisc = Number(amount) - Number(pass_fee_amount);
11086
10895
  if (cashdisc && !isNaN(cashdisc)) {
@@ -11142,7 +10951,7 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
11142
10951
  console.error("3DS Auth failed \u274C", status);
11143
10952
  setError(`3DS Authentication ${status}`);
11144
10953
  };
11145
- useEffect17(() => {
10954
+ useEffect15(() => {
11146
10955
  if (setHandleCloseRef) {
11147
10956
  setHandleCloseRef(() => handleClose);
11148
10957
  }
@@ -11160,18 +10969,18 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
11160
10969
  setPartialError("");
11161
10970
  }
11162
10971
  };
11163
- useEffect17(() => {
10972
+ useEffect15(() => {
11164
10973
  if (typeof FractalTokenizer === "undefined") return;
11165
10974
  const tokenizer = new FractalTokenizer({
11166
10975
  styles: {}
11167
10976
  });
11168
10977
  }, []);
11169
- const stateRef = useRef11({
10978
+ const stateRef = useRef10({
11170
10979
  activeinBank,
11171
10980
  activeinCard,
11172
10981
  activetab
11173
10982
  });
11174
- useEffect17(() => {
10983
+ useEffect15(() => {
11175
10984
  stateRef.current = {
11176
10985
  activeinBank,
11177
10986
  activeinCard,
@@ -11195,7 +11004,7 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
11195
11004
  }
11196
11005
  }
11197
11006
  }, []);
11198
- useEffect17(() => {
11007
+ useEffect15(() => {
11199
11008
  onSubmit == null ? void 0 : onSubmit(submit);
11200
11009
  }, [onSubmit, submit]);
11201
11010
  function detectCardType(cardinput) {
@@ -11221,34 +11030,34 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
11221
11030
  const cardType = detectCardType(cardInput);
11222
11031
  switch (cardType) {
11223
11032
  case "visa":
11224
- return /* @__PURE__ */ jsx35("img", { src: visa2, alt: "visa", width: 33 });
11033
+ return /* @__PURE__ */ jsx34("img", { src: visa2, alt: "visa", width: 33 });
11225
11034
  case "mastercard":
11226
- return /* @__PURE__ */ jsx35("img", { src: mastercard2, width: 33, alt: "mastercard" });
11035
+ return /* @__PURE__ */ jsx34("img", { src: mastercard2, width: 33, alt: "mastercard" });
11227
11036
  case "amex":
11228
- return /* @__PURE__ */ jsx35("img", { src: americanexp2, alt: "amex", width: 33 });
11037
+ return /* @__PURE__ */ jsx34("img", { src: americanexp2, alt: "amex", width: 33 });
11229
11038
  case "discover":
11230
- return /* @__PURE__ */ jsx35("img", { src: discover2, width: 33, alt: "discover" });
11039
+ return /* @__PURE__ */ jsx34("img", { src: discover2, width: 33, alt: "discover" });
11231
11040
  case "diners":
11232
- return /* @__PURE__ */ jsx35("img", { src: dinersicon, alt: "Diners Club" });
11041
+ return /* @__PURE__ */ jsx34("img", { src: dinersicon, alt: "Diners Club" });
11233
11042
  case "jcb":
11234
- return /* @__PURE__ */ jsx35("img", { src: jcbicon, alt: "JCB" });
11043
+ return /* @__PURE__ */ jsx34("img", { src: jcbicon, alt: "JCB" });
11235
11044
  case "unionpay":
11236
- return /* @__PURE__ */ jsx35("img", { src: unionicon, alt: "UnionPay" });
11045
+ return /* @__PURE__ */ jsx34("img", { src: unionicon, alt: "UnionPay" });
11237
11046
  default:
11238
- return /* @__PURE__ */ jsx35("img", { src: defualtcardborder, alt: "card" });
11047
+ return /* @__PURE__ */ jsx34("img", { src: defualtcardborder, alt: "card" });
11239
11048
  }
11240
11049
  }
11241
- return /* @__PURE__ */ jsxs21(Fragment20, { children: [
11242
- (initialLoader || !onLoad) && /* @__PURE__ */ jsx35(Loader_default, { intensity: "dark", loading: initialLoader || !onLoad }),
11243
- error && /* @__PURE__ */ jsx35("div", { children: /* @__PURE__ */ jsx35(ErrorCardOverlay_default, { error, onClose: handleClose, autoTrigger }) }),
11244
- errorIframe && /* @__PURE__ */ jsx35("div", { children: /* @__PURE__ */ jsx35(ErrorCardOverlay_default, { error: errorIframe, onClose: () => {
11050
+ return /* @__PURE__ */ jsxs20(Fragment19, { children: [
11051
+ (initialLoader || !onLoad) && /* @__PURE__ */ jsx34(Loader_default, { intensity: "dark", loading: initialLoader || !onLoad }),
11052
+ error && /* @__PURE__ */ jsx34("div", { children: /* @__PURE__ */ jsx34(ErrorCardOverlay_default, { error, onClose: handleClose, autoTrigger }) }),
11053
+ errorIframe && /* @__PURE__ */ jsx34("div", { children: /* @__PURE__ */ jsx34(ErrorCardOverlay_default, { error: errorIframe, onClose: () => {
11245
11054
  setErrorIframe("");
11246
11055
  }, autoTrigger: onSubmit ? !onSubmit : autoTrigger }) }),
11247
- /* @__PURE__ */ jsxs21(Fragment20, { children: [
11248
- (loading || loading2 || loadingIframe) && /* @__PURE__ */ jsx35(Loader_default, { intensity: "light", loading: loading || loading2 || loadingPrev || orderLoader || loadingIframe }),
11249
- /* @__PURE__ */ jsxs21("div", { className: "frac-card-payment-page frac-form frac-new-form", children: [
11250
- /* @__PURE__ */ jsx35("div", { ref: threeDSContainerRef, style: { width: "100%", height: "100%" } }),
11251
- (stripeResponse == null ? void 0 : stripeResponse.challenge_url) ? /* @__PURE__ */ jsx35(
11056
+ /* @__PURE__ */ jsxs20(Fragment19, { children: [
11057
+ (loading || loading2 || loadingIframe) && /* @__PURE__ */ jsx34(Loader_default, { intensity: "light", loading: loading || loading2 || loadingPrev || orderLoader || loadingIframe }),
11058
+ /* @__PURE__ */ jsxs20("div", { className: "frac-card-payment-page frac-form frac-new-form", children: [
11059
+ /* @__PURE__ */ jsx34("div", { ref: threeDSContainerRef, style: { width: "100%", height: "100%" } }),
11060
+ (stripeResponse == null ? void 0 : stripeResponse.challenge_url) ? /* @__PURE__ */ jsx34(
11252
11061
  ThreeDSChallenge,
11253
11062
  {
11254
11063
  containerRef: threeDSContainerRef,
@@ -11258,33 +11067,33 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
11258
11067
  onSuccess: handleSuccess,
11259
11068
  onError: handleError
11260
11069
  }
11261
- ) : /* @__PURE__ */ jsxs21("div", { className: "parent-pay-container", children: [
11262
- /* @__PURE__ */ jsx35("span", { style: { display: autoTrigger ? "none" : "block" }, className: "request-payment-close-popup", onClick: handleClose, children: /* @__PURE__ */ jsxs21("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", children: [
11263
- /* @__PURE__ */ jsx35("g", { clipPath: "url(#clip0_12425_52336)", children: /* @__PURE__ */ jsx35("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" }) }),
11264
- /* @__PURE__ */ jsx35("defs", { children: /* @__PURE__ */ jsx35("clipPath", { id: "clip0_12425_52336", children: /* @__PURE__ */ jsx35("rect", { width: "16", height: "16", fill: "white" }) }) })
11070
+ ) : /* @__PURE__ */ jsxs20("div", { className: "parent-pay-container", children: [
11071
+ /* @__PURE__ */ jsx34("span", { style: { display: autoTrigger ? "none" : "block" }, className: "request-payment-close-popup", onClick: handleClose, children: /* @__PURE__ */ jsxs20("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", children: [
11072
+ /* @__PURE__ */ jsx34("g", { clipPath: "url(#clip0_12425_52336)", children: /* @__PURE__ */ jsx34("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" }) }),
11073
+ /* @__PURE__ */ jsx34("defs", { children: /* @__PURE__ */ jsx34("clipPath", { id: "clip0_12425_52336", children: /* @__PURE__ */ jsx34("rect", { width: "16", height: "16", fill: "white" }) }) })
11265
11074
  ] }) }),
11266
- /* @__PURE__ */ jsx35("div", { className: "pay-main-logo-res" }),
11267
- /* @__PURE__ */ jsxs21("div", { className: onSubmit ? "pay-container frac-pay-container " : "pay-container", children: [
11268
- !onSubmit && /* @__PURE__ */ jsxs21("div", { className: "pay-header pay-conatiner-one", children: [
11269
- /* @__PURE__ */ jsxs21("div", { className: "pay-conatiner-one-first", children: [
11270
- /* @__PURE__ */ jsxs21("div", { className: "pay-logo-container", children: [
11271
- /* @__PURE__ */ jsx35("div", { className: "pay-main-logo" }),
11272
- /* @__PURE__ */ jsx35("h1", { className: "pay-heading", children: "Pay" }),
11273
- (cardList == null ? void 0 : cardList.length) > 0 && activetab !== "cardList" && /* @__PURE__ */ jsxs21("button", { className: "res-charge-payment-back-btn ", onClick: () => setActive("cardList"), children: [
11075
+ /* @__PURE__ */ jsx34("div", { className: "pay-main-logo-res" }),
11076
+ /* @__PURE__ */ jsxs20("div", { className: onSubmit ? "pay-container frac-pay-container " : "pay-container", children: [
11077
+ !onSubmit && /* @__PURE__ */ jsxs20("div", { className: "pay-header pay-conatiner-one", children: [
11078
+ /* @__PURE__ */ jsxs20("div", { className: "pay-conatiner-one-first", children: [
11079
+ /* @__PURE__ */ jsxs20("div", { className: "pay-logo-container", children: [
11080
+ /* @__PURE__ */ jsx34("div", { className: "pay-main-logo" }),
11081
+ /* @__PURE__ */ jsx34("h1", { className: "pay-heading", children: "Pay" }),
11082
+ (cardList == null ? void 0 : cardList.length) > 0 && activetab !== "cardList" && /* @__PURE__ */ jsxs20("button", { className: "res-charge-payment-back-btn ", onClick: () => setActive("cardList"), children: [
11274
11083
  " ",
11275
- /* @__PURE__ */ jsx35(IoArrowBack4, {}),
11084
+ /* @__PURE__ */ jsx34(IoArrowBack4, {}),
11276
11085
  " Back"
11277
11086
  ] })
11278
11087
  ] }),
11279
- /* @__PURE__ */ jsx35("div", { className: "amt-pay-con", children: /* @__PURE__ */ jsxs21("div", { className: "pay-amount-conatiner", children: [
11280
- /* @__PURE__ */ jsx35("small", { className: "pay-payment-amount", children: "Select payment type" }),
11281
- /* @__PURE__ */ jsxs21("div", { className: "frac-card-bank-radio-main", children: [
11282
- /* @__PURE__ */ jsx35(CardBankRadio, { label: "Card", amount: (_a = Number(amount)) == null ? void 0 : _a.toFixed(2), value: "card", onChange: handletabchange, activetab }),
11283
- !isPreAuth && isBankActive && !isPartial && /* @__PURE__ */ jsx35(CardBankRadio, { label: "Bank", amount: (_b = Number(bankAmount)) == null ? void 0 : _b.toFixed(2), value: "ach", onChange: handletabchange, activetab, savingsText: bankSavingsText })
11088
+ /* @__PURE__ */ jsx34("div", { className: "amt-pay-con", children: /* @__PURE__ */ jsxs20("div", { className: "pay-amount-conatiner", children: [
11089
+ /* @__PURE__ */ jsx34("small", { className: "pay-payment-amount", children: "Select payment type" }),
11090
+ /* @__PURE__ */ jsxs20("div", { className: "frac-card-bank-radio-main", children: [
11091
+ /* @__PURE__ */ jsx34(CardBankRadio, { label: "Card", amount: (_a = Number(amount)) == null ? void 0 : _a.toFixed(2), value: "card", onChange: handletabchange, activetab }),
11092
+ !isPreAuth && isBankActive && !isPartial && /* @__PURE__ */ jsx34(CardBankRadio, { label: "Bank", amount: (_b = Number(bankAmount)) == null ? void 0 : _b.toFixed(2), value: "ach", onChange: handletabchange, activetab, savingsText: bankSavingsText })
11284
11093
  ] }),
11285
- isPartial && /* @__PURE__ */ jsxs21("div", { className: "frac-partial-payment-input", children: [
11286
- /* @__PURE__ */ jsx35("label", { htmlFor: "partialpayment", children: "Partial Payment" }),
11287
- /* @__PURE__ */ jsx35(
11094
+ isPartial && /* @__PURE__ */ jsxs20("div", { className: "frac-partial-payment-input", children: [
11095
+ /* @__PURE__ */ jsx34("label", { htmlFor: "partialpayment", children: "Partial Payment" }),
11096
+ /* @__PURE__ */ jsx34(
11288
11097
  NumericFormat2,
11289
11098
  {
11290
11099
  prefix: "$",
@@ -11308,25 +11117,25 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
11308
11117
  }
11309
11118
  }
11310
11119
  ),
11311
- partialError && /* @__PURE__ */ jsx35("span", { className: "error-span", children: partialError })
11120
+ partialError && /* @__PURE__ */ jsx34("span", { className: "error-span", children: partialError })
11312
11121
  ] })
11313
11122
  ] }) })
11314
11123
  ] }),
11315
- /* @__PURE__ */ jsxs21("div", { className: "pay-conatiner-one-last", children: [
11316
- /* @__PURE__ */ jsx35("img", { src: secure2, alt: "" }),
11317
- /* @__PURE__ */ jsx35("img", { src: pov2, alt: "" }),
11124
+ /* @__PURE__ */ jsxs20("div", { className: "pay-conatiner-one-last", children: [
11125
+ /* @__PURE__ */ jsx34("img", { src: secure2, alt: "" }),
11126
+ /* @__PURE__ */ jsx34("img", { src: pov2, alt: "" }),
11318
11127
  "Secure payments powered by Fractal"
11319
11128
  ] })
11320
11129
  ] }),
11321
- /* @__PURE__ */ jsx35("div", { className: "pay-tab pay-conatiner-two", children: /* @__PURE__ */ jsx35("div", { className: "col-md-12", children: /* @__PURE__ */ jsxs21("div", { id: "payment-form-div ", className: onSubmit ? "frac-payment-form-div" : "", children: [
11322
- onSubmit && /* @__PURE__ */ jsx35("div", { className: "amt-pay-con", children: /* @__PURE__ */ jsxs21("div", { className: "pay-amount-conatiner", children: [
11323
- /* @__PURE__ */ jsxs21("div", { className: "frac-card-bank-radio-main", children: [
11324
- /* @__PURE__ */ jsx35(CardBankRadio, { skydesign: true, label: "Card", amount: (_c = Number(amount)) == null ? void 0 : _c.toFixed(2), value: "card", onChange: handletabchange, activetab }),
11325
- !isPreAuth && isBankActive && !isPartial && /* @__PURE__ */ jsx35(CardBankRadio, { skydesign: true, label: "Bank", amount: (_d = Number(bankAmount)) == null ? void 0 : _d.toFixed(2), value: "ach", onChange: handletabchange, activetab, savingsText: bankSavingsText })
11130
+ /* @__PURE__ */ jsx34("div", { className: "pay-tab pay-conatiner-two", children: /* @__PURE__ */ jsx34("div", { className: "col-md-12", children: /* @__PURE__ */ jsxs20("div", { id: "payment-form-div ", className: onSubmit ? "frac-payment-form-div" : "", children: [
11131
+ onSubmit && /* @__PURE__ */ jsx34("div", { className: "amt-pay-con", children: /* @__PURE__ */ jsxs20("div", { className: "pay-amount-conatiner", children: [
11132
+ /* @__PURE__ */ jsxs20("div", { className: "frac-card-bank-radio-main", children: [
11133
+ /* @__PURE__ */ jsx34(CardBankRadio, { skydesign: true, label: "Card", amount: (_c = Number(amount)) == null ? void 0 : _c.toFixed(2), value: "card", onChange: handletabchange, activetab }),
11134
+ !isPreAuth && isBankActive && !isPartial && /* @__PURE__ */ jsx34(CardBankRadio, { skydesign: true, label: "Bank", amount: (_d = Number(bankAmount)) == null ? void 0 : _d.toFixed(2), value: "ach", onChange: handletabchange, activetab, savingsText: bankSavingsText })
11326
11135
  ] }),
11327
- isPartial && /* @__PURE__ */ jsxs21("div", { className: "frac-partial-payment-input", children: [
11328
- /* @__PURE__ */ jsx35("label", { htmlFor: "partialpayment", children: "Partial Payment" }),
11329
- /* @__PURE__ */ jsx35(
11136
+ isPartial && /* @__PURE__ */ jsxs20("div", { className: "frac-partial-payment-input", children: [
11137
+ /* @__PURE__ */ jsx34("label", { htmlFor: "partialpayment", children: "Partial Payment" }),
11138
+ /* @__PURE__ */ jsx34(
11330
11139
  NumericFormat2,
11331
11140
  {
11332
11141
  prefix: "$",
@@ -11343,67 +11152,53 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
11343
11152
  fixedDecimalScale: true
11344
11153
  }
11345
11154
  ),
11346
- partialError && /* @__PURE__ */ jsx35("span", { className: "error-span", children: partialError })
11155
+ partialError && /* @__PURE__ */ jsx34("span", { className: "error-span", children: partialError })
11347
11156
  ] })
11348
11157
  ] }) }),
11349
- is3DSEnable ? clientSecret && /* @__PURE__ */ jsx35(CheckoutWrapper, { onSuccess, clientSecret, amount, showLoader, hideLoader, callback, session_token, handleClose, setError, isPreAuth }) : /* @__PURE__ */ jsxs21(Fragment20, { children: [
11350
- /* @__PURE__ */ jsxs21("div", { id: "ach", style: { display: activetab === "card" ? "block" : "none" }, className: "tabcontent", children: [
11351
- !onSubmit && /* @__PURE__ */ jsxs21(Fragment20, { children: [
11352
- /* @__PURE__ */ jsxs21("div", { className: "frac-heading-card-wrap", children: [
11353
- /* @__PURE__ */ jsx35("div", { className: "frac-backarrow", children: (cardList == null ? void 0 : cardList.length) > 0 && activeinCard === "form" && /* @__PURE__ */ jsxs21("button", { className: "charge-payment-back-btn ", onClick: () => setActiveinCard("list"), children: [
11158
+ is3DSEnable ? clientSecret && /* @__PURE__ */ jsx34(CheckoutWrapper, { onSuccess, clientSecret, amount, showLoader, hideLoader, callback, session_token, handleClose, setError, isPreAuth }) : /* @__PURE__ */ jsxs20(Fragment19, { children: [
11159
+ /* @__PURE__ */ jsxs20("div", { id: "ach", style: { display: activetab === "card" ? "block" : "none" }, className: "tabcontent", children: [
11160
+ !onSubmit && /* @__PURE__ */ jsxs20(Fragment19, { children: [
11161
+ /* @__PURE__ */ jsxs20("div", { className: "frac-heading-card-wrap", children: [
11162
+ /* @__PURE__ */ jsx34("div", { className: "frac-backarrow", children: (cardList == null ? void 0 : cardList.length) > 0 && activeinCard === "form" && /* @__PURE__ */ jsxs20("button", { className: "charge-payment-back-btn ", onClick: () => setActiveinCard("list"), children: [
11354
11163
  " ",
11355
- /* @__PURE__ */ jsx35(IoArrowBack4, {})
11164
+ /* @__PURE__ */ jsx34(IoArrowBack4, {})
11356
11165
  ] }) }),
11357
- /* @__PURE__ */ jsx35("h6", { className: "frac-card-payment-heading", children: "Card Payment" })
11166
+ /* @__PURE__ */ jsx34("h6", { className: "frac-card-payment-heading", children: "Card Payment" })
11358
11167
  ] }),
11359
- /* @__PURE__ */ jsxs21("div", { style: { display: "flex", gap: "8px", margin: "8px 0px 19px 0px" }, children: [
11360
- /* @__PURE__ */ jsx35("img", { src: visa2, alt: "", width: 33 }),
11361
- /* @__PURE__ */ jsx35("img", { src: mastercard2, width: 33, alt: "" }),
11362
- /* @__PURE__ */ jsx35("img", { src: americanexp2, alt: "", width: 33 }),
11363
- /* @__PURE__ */ jsx35("img", { src: discover2, width: 33, alt: "" })
11168
+ /* @__PURE__ */ jsxs20("div", { style: { display: "flex", gap: "8px", margin: "8px 0px 19px 0px" }, children: [
11169
+ /* @__PURE__ */ jsx34("img", { src: visa2, alt: "", width: 33 }),
11170
+ /* @__PURE__ */ jsx34("img", { src: mastercard2, width: 33, alt: "" }),
11171
+ /* @__PURE__ */ jsx34("img", { src: americanexp2, alt: "", width: 33 }),
11172
+ /* @__PURE__ */ jsx34("img", { src: discover2, width: 33, alt: "" })
11364
11173
  ] })
11365
11174
  ] }),
11366
- activeinCard === "list" && (cardList == null ? void 0 : cardList.length) > 0 ? /* @__PURE__ */ jsxs21(Fragment20, { children: [
11367
- /* @__PURE__ */ jsx35(CardList, { headingClass: "card-ach-heading-frac", listHeading: "Card", ListItems: cardList, selectedCard, setSelectedCard, handleDeleteCard, otherButtonLabel: "Pay With Other Card", otherButtonAction: () => {
11175
+ activeinCard === "list" && (cardList == null ? void 0 : cardList.length) > 0 ? /* @__PURE__ */ jsxs20(Fragment19, { children: [
11176
+ /* @__PURE__ */ jsx34(CardList, { headingClass: "card-ach-heading-frac", listHeading: "Card", ListItems: cardList, selectedCard, setSelectedCard, handleDeleteCard, otherButtonLabel: "Pay With Other Card", otherButtonAction: () => {
11368
11177
  setActiveinCard("form");
11369
11178
  } }),
11370
- /* @__PURE__ */ jsx35("div", { className: "form-group-frac", style: { padding: "0", display: onSubmit ? "none" : "block" }, children: /* @__PURE__ */ jsx35("button", { className: "pay-button", style: { margin: "0px" }, type: "submit", onClick: handlechargeCustomer, children: partialAmount ? formatUSD((_e = Number(partialAmount)) == null ? void 0 : _e.toFixed(2)) : formatUSD((_f = Number(amount)) == null ? void 0 : _f.toFixed(2)) }) })
11371
- ] }) : paymentGateway == 32 ? /* @__PURE__ */ jsxs21(Fragment20, { children: [
11372
- onSubmit && /* @__PURE__ */ jsxs21(Fragment20, { children: [
11373
- /* @__PURE__ */ jsx35(
11374
- GooglePayComponent,
11375
- {
11376
- amount: partialAmount ? partialAmount : amount,
11377
- googlePayEnvironment,
11378
- googlePayGatewayMerchantId,
11379
- googlePayMerchantId,
11380
- googlePayMerchantName: merchantName,
11381
- completeFractalFlow,
11382
- setLoading
11383
- }
11384
- ),
11385
- /* @__PURE__ */ jsx35("div", { id: "digital-wallet-or", className: "frac-or", children: /* @__PURE__ */ jsx35("span", { children: "or" }) })
11386
- ] }),
11387
- /* @__PURE__ */ jsxs21("form", { id: "paymentForm", style: { textAlign: "start" }, ref: cardFormRef, onSubmit: submitFunc, onKeyDown: (e) => {
11179
+ /* @__PURE__ */ jsx34("div", { className: "form-group-frac", style: { padding: "0", display: onSubmit ? "none" : "block" }, children: /* @__PURE__ */ jsx34("button", { className: "pay-button", style: { margin: "0px" }, type: "submit", onClick: handlechargeCustomer, children: partialAmount ? formatUSD((_e = Number(partialAmount)) == null ? void 0 : _e.toFixed(2)) : formatUSD((_f = Number(amount)) == null ? void 0 : _f.toFixed(2)) }) })
11180
+ ] }) : paymentGateway == 32 ? /* @__PURE__ */ jsxs20(Fragment19, { children: [
11181
+ onSubmit && /* @__PURE__ */ jsx34(Fragment19, {}),
11182
+ /* @__PURE__ */ jsxs20("form", { id: "paymentForm", style: { textAlign: "start" }, ref: cardFormRef, onSubmit: submitFunc, onKeyDown: (e) => {
11388
11183
  if (e.key === "Enter" && loading) {
11389
11184
  e.preventDefault();
11390
11185
  e.stopPropagation();
11391
11186
  }
11392
11187
  }, children: [
11393
- /* @__PURE__ */ jsxs21("div", { className: "ach-scrl", style: { minHeight: "398px", maxHeight: "398px", overflow: "auto", marginRight: "5px" }, children: [
11394
- /* @__PURE__ */ jsxs21("div", { className: "form-group-frac", children: [
11395
- /* @__PURE__ */ jsx35("label", { htmlFor: "cardHolderName", children: "NAME ON CARD " }),
11396
- /* @__PURE__ */ jsx35("input", { type: "text", className: "form-control-frac", maxLength: 100, placeholder: "John Doe", value: (cardData == null ? void 0 : cardData.cardName) || "", onChange: (e) => {
11188
+ /* @__PURE__ */ jsxs20("div", { className: "ach-scrl", style: { minHeight: "398px", maxHeight: "398px", overflow: "auto", marginRight: "5px" }, children: [
11189
+ /* @__PURE__ */ jsxs20("div", { className: "form-group-frac", children: [
11190
+ /* @__PURE__ */ jsx34("label", { htmlFor: "cardHolderName", children: "NAME ON CARD " }),
11191
+ /* @__PURE__ */ jsx34("input", { type: "text", className: "form-control-frac", maxLength: 100, placeholder: "John Doe", value: (cardData == null ? void 0 : cardData.cardName) || "", onChange: (e) => {
11397
11192
  const value = e.target.value;
11398
11193
  if (/^[a-zA-Z\s]*$/.test(value)) {
11399
11194
  handleCardChange("cardName", value);
11400
11195
  }
11401
11196
  } }),
11402
- (cardError == null ? void 0 : cardError.cardName) && /* @__PURE__ */ jsx35("span", { className: "error-span", children: cardError == null ? void 0 : cardError.cardName })
11197
+ (cardError == null ? void 0 : cardError.cardName) && /* @__PURE__ */ jsx34("span", { className: "error-span", children: cardError == null ? void 0 : cardError.cardName })
11403
11198
  ] }),
11404
- /* @__PURE__ */ jsxs21("div", { className: "form-group-frac", children: [
11405
- /* @__PURE__ */ jsx35("label", { htmlFor: "cardNumber", children: "CARD NUMBER" }),
11406
- /* @__PURE__ */ jsx35("div", { className: "toggle-num-wrapper toggle-num-wrapper-new", children: (show || autoTrigger) && paymentGateway === 32 && /* @__PURE__ */ jsx35(
11199
+ /* @__PURE__ */ jsxs20("div", { className: "form-group-frac", children: [
11200
+ /* @__PURE__ */ jsx34("label", { htmlFor: "cardNumber", children: "CARD NUMBER" }),
11201
+ /* @__PURE__ */ jsx34("div", { className: "toggle-num-wrapper toggle-num-wrapper-new", children: (show || autoTrigger) && paymentGateway === 32 && /* @__PURE__ */ jsx34(
11407
11202
  FractalFields_default,
11408
11203
  {
11409
11204
  fractalStyles,
@@ -11412,18 +11207,18 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
11412
11207
  }
11413
11208
  ) })
11414
11209
  ] }),
11415
- /* @__PURE__ */ jsxs21("div", { className: "form-group-frac", children: [
11416
- /* @__PURE__ */ jsx35("label", { htmlFor: "zip", children: "ZIP" }),
11417
- /* @__PURE__ */ jsx35("input", { type: "text", className: "form-control-frac", maxLength: 100, placeholder: "000000", value: (_g = cardData == null ? void 0 : cardData.zipCode) != null ? _g : "", onChange: (e) => handleCardChange("zipCode", e.target.value) }),
11418
- (cardError == null ? void 0 : cardError.zipCode) && /* @__PURE__ */ jsx35("span", { className: "error-span", children: cardError == null ? void 0 : cardError.zipCode }),
11419
- pass_fee && cardFeeAmount > 0 && /* @__PURE__ */ jsxs21("small", { className: "frac-fee-text", children: [
11210
+ /* @__PURE__ */ jsxs20("div", { className: "form-group-frac", children: [
11211
+ /* @__PURE__ */ jsx34("label", { htmlFor: "zip", children: "ZIP" }),
11212
+ /* @__PURE__ */ jsx34("input", { type: "text", className: "form-control-frac", maxLength: 100, placeholder: "000000", value: (_g = cardData == null ? void 0 : cardData.zipCode) != null ? _g : "", onChange: (e) => handleCardChange("zipCode", e.target.value) }),
11213
+ (cardError == null ? void 0 : cardError.zipCode) && /* @__PURE__ */ jsx34("span", { className: "error-span", children: cardError == null ? void 0 : cardError.zipCode }),
11214
+ pass_fee && cardFeeAmount > 0 && /* @__PURE__ */ jsxs20("small", { className: "frac-fee-text", children: [
11420
11215
  "Cards include a fee amount of ",
11421
- /* @__PURE__ */ jsx35("span", { className: "frac-fee-amount", children: formatUSD(cardFeeAmount.toFixed(2)) }),
11216
+ /* @__PURE__ */ jsx34("span", { className: "frac-fee-amount", children: formatUSD(cardFeeAmount.toFixed(2)) }),
11422
11217
  "."
11423
11218
  ] })
11424
11219
  ] }),
11425
- customerId && /* @__PURE__ */ jsx35("div", { className: "form-group-frac", children: /* @__PURE__ */ jsxs21("div", { className: "frac-tooltip-mn", style: { display: "flex", alignItems: "center", gap: "10px", paddingTop: "10px" }, children: [
11426
- /* @__PURE__ */ jsx35(
11220
+ customerId && /* @__PURE__ */ jsx34("div", { className: "form-group-frac", children: /* @__PURE__ */ jsxs20("div", { className: "frac-tooltip-mn", style: { display: "flex", alignItems: "center", gap: "10px", paddingTop: "10px" }, children: [
11221
+ /* @__PURE__ */ jsx34(
11427
11222
  "input",
11428
11223
  {
11429
11224
  type: "checkbox",
@@ -11433,10 +11228,10 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
11433
11228
  onChange: (e) => setSaveCardInfo(e.target.checked)
11434
11229
  }
11435
11230
  ),
11436
- /* @__PURE__ */ jsx35("label", { htmlFor: "save_card", className: "toggle-label" }),
11437
- /* @__PURE__ */ jsx35("label", { htmlFor: "save_card", children: "Save card for future payments " }),
11438
- /* @__PURE__ */ jsxs21("div", { className: "frac-tooltip-wrapper", children: [
11439
- /* @__PURE__ */ jsx35("div", { className: "frac-tooltip-icon", children: /* @__PURE__ */ jsxs21(
11231
+ /* @__PURE__ */ jsx34("label", { htmlFor: "save_card", className: "toggle-label" }),
11232
+ /* @__PURE__ */ jsx34("label", { htmlFor: "save_card", children: "Save card for future payments " }),
11233
+ /* @__PURE__ */ jsxs20("div", { className: "frac-tooltip-wrapper", children: [
11234
+ /* @__PURE__ */ jsx34("div", { className: "frac-tooltip-icon", children: /* @__PURE__ */ jsxs20(
11440
11235
  "svg",
11441
11236
  {
11442
11237
  xmlns: "http://www.w3.org/2000/svg",
@@ -11445,8 +11240,8 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
11445
11240
  viewBox: "0 0 20 20",
11446
11241
  fill: "none",
11447
11242
  children: [
11448
- /* @__PURE__ */ jsx35("circle", { cx: "10", cy: "10", r: "10", fill: "#E0DFE2" }),
11449
- /* @__PURE__ */ jsx35(
11243
+ /* @__PURE__ */ jsx34("circle", { cx: "10", cy: "10", r: "10", fill: "#E0DFE2" }),
11244
+ /* @__PURE__ */ jsx34(
11450
11245
  "path",
11451
11246
  {
11452
11247
  d: "M9.03406 12.0979V12.0072C9.04055 11.4153 9.10057 10.9443 9.21411 10.5943C9.3309 10.2442 9.49635 9.96102 9.71046 9.74463C9.92457 9.52824 10.1825 9.33095 10.4842 9.15274C10.6788 9.03182 10.854 8.89658 11.0097 8.74702C11.1655 8.59745 11.2887 8.42562 11.3796 8.2315C11.4704 8.03739 11.5158 7.82259 11.5158 7.58711C11.5158 7.3039 11.4477 7.05887 11.3114 6.85203C11.1752 6.64519 10.9935 6.48608 10.7664 6.3747C10.5426 6.26014 10.2928 6.20286 10.017 6.20286C9.76723 6.20286 9.52879 6.25378 9.3017 6.35561C9.07461 6.45744 8.88646 6.61655 8.73723 6.83294C8.588 7.04614 8.50203 7.3214 8.47932 7.65871H7C7.02271 7.08592 7.17032 6.60223 7.44282 6.20764C7.71533 5.80986 8.07543 5.50915 8.52311 5.30549C8.97405 5.10183 9.47202 5 10.017 5C10.6139 5 11.1363 5.10979 11.5839 5.32936C12.0316 5.54574 12.3788 5.84964 12.6253 6.24105C12.8751 6.62928 13 7.08274 13 7.60143C13 7.95784 12.9432 8.27924 12.8297 8.56563C12.7161 8.84885 12.5539 9.10183 12.3431 9.32458C12.1354 9.54733 11.8856 9.74463 11.5937 9.91647C11.3179 10.0851 11.0941 10.2601 10.9221 10.4415C10.7534 10.6229 10.6302 10.8377 10.5523 11.0859C10.4745 11.3341 10.4323 11.6412 10.4258 12.0072V12.0979H9.03406ZM9.76886 15C9.50284 15 9.27413 14.9077 9.08273 14.7232C8.89132 14.5354 8.79562 14.3095 8.79562 14.0453C8.79562 13.7844 8.89132 13.5617 9.08273 13.3771C9.27413 13.1893 9.50284 13.0955 9.76886 13.0955C10.0316 13.0955 10.2587 13.1893 10.4501 13.3771C10.6448 13.5617 10.7421 13.7844 10.7421 14.0453C10.7421 14.2204 10.6967 14.3811 10.6058 14.5274C10.5182 14.6706 10.4015 14.7852 10.2555 14.8711C10.1095 14.957 9.94728 15 9.76886 15Z",
@@ -11456,34 +11251,34 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
11456
11251
  ]
11457
11252
  }
11458
11253
  ) }),
11459
- /* @__PURE__ */ jsx35("div", { className: "frac-tooltip-text", children: /* @__PURE__ */ jsxs21("p", { children: [
11254
+ /* @__PURE__ */ jsx34("div", { className: "frac-tooltip-text", children: /* @__PURE__ */ jsxs20("p", { children: [
11460
11255
  "If checked, I agree to give the ",
11461
- /* @__PURE__ */ jsx35("b", { children: merchantName || "merchant" }),
11256
+ /* @__PURE__ */ jsx34("b", { children: merchantName || "merchant" }),
11462
11257
  " permission to charge this credit card for agreed-upon purchases in the future."
11463
11258
  ] }) })
11464
11259
  ] })
11465
11260
  ] }) })
11466
11261
  ] }),
11467
- /* @__PURE__ */ jsx35("div", { className: "form-group-frac", style: { marginTop: "20px", padding: "0" }, children: /* @__PURE__ */ jsx35("button", { type: "submit", style: { margin: 0, display: onSubmit ? "none" : "block" }, className: "pay-button", children: partialAmount ? formatUSD((_h = Number(partialAmount)) == null ? void 0 : _h.toFixed(2)) : formatUSD((_i = Number(amount)) == null ? void 0 : _i.toFixed(2)) }) })
11262
+ /* @__PURE__ */ jsx34("div", { className: "form-group-frac", style: { marginTop: "20px", padding: "0" }, children: /* @__PURE__ */ jsx34("button", { type: "submit", style: { margin: 0, display: onSubmit ? "none" : "block" }, className: "pay-button", children: partialAmount ? formatUSD((_h = Number(partialAmount)) == null ? void 0 : _h.toFixed(2)) : formatUSD((_i = Number(amount)) == null ? void 0 : _i.toFixed(2)) }) })
11468
11263
  ] })
11469
- ] }) : /* @__PURE__ */ jsxs21("form", { id: "PaymentForm", style: { textAlign: "start" }, ref: cardFormRef, onSubmit: submitFunc, onKeyDown: (e) => {
11264
+ ] }) : /* @__PURE__ */ jsxs20("form", { id: "PaymentForm", style: { textAlign: "start" }, ref: cardFormRef, onSubmit: submitFunc, onKeyDown: (e) => {
11470
11265
  if (e.key === "Enter" && loading) {
11471
11266
  e.preventDefault();
11472
11267
  e.stopPropagation();
11473
11268
  }
11474
11269
  }, children: [
11475
- /* @__PURE__ */ jsxs21("div", { className: "ach-scrl", style: { minHeight: "398px", maxHeight: "398px", overflow: "auto", marginRight: "5px" }, children: [
11476
- /* @__PURE__ */ jsxs21("div", { className: "form-group-frac", children: [
11477
- /* @__PURE__ */ jsx35("label", { htmlFor: "cardHolderName", children: "NAME ON CARD " }),
11478
- /* @__PURE__ */ jsx35("input", { type: "text", className: "form-control-frac", maxLength: 100, placeholder: "John Doe", value: (cardData == null ? void 0 : cardData.cardName) || "", onChange: (e) => {
11270
+ /* @__PURE__ */ jsxs20("div", { className: "ach-scrl", style: { minHeight: "398px", maxHeight: "398px", overflow: "auto", marginRight: "5px" }, children: [
11271
+ /* @__PURE__ */ jsxs20("div", { className: "form-group-frac", children: [
11272
+ /* @__PURE__ */ jsx34("label", { htmlFor: "cardHolderName", children: "NAME ON CARD " }),
11273
+ /* @__PURE__ */ jsx34("input", { type: "text", className: "form-control-frac", maxLength: 100, placeholder: "John Doe", value: (cardData == null ? void 0 : cardData.cardName) || "", onChange: (e) => {
11479
11274
  const value = e.target.value;
11480
11275
  if (/^[a-zA-Z\s]*$/.test(value)) {
11481
11276
  handleCardChange("cardName", value);
11482
11277
  }
11483
11278
  } }),
11484
- (cardError == null ? void 0 : cardError.cardName) && /* @__PURE__ */ jsx35("span", { className: "error-span", children: cardError == null ? void 0 : cardError.cardName })
11279
+ (cardError == null ? void 0 : cardError.cardName) && /* @__PURE__ */ jsx34("span", { className: "error-span", children: cardError == null ? void 0 : cardError.cardName })
11485
11280
  ] }),
11486
- /* @__PURE__ */ jsx35("div", { className: "form-group-frac", children: /* @__PURE__ */ jsx35(
11281
+ /* @__PURE__ */ jsx34("div", { className: "form-group-frac", children: /* @__PURE__ */ jsx34(
11487
11282
  DataCapFields,
11488
11283
  {
11489
11284
  isOpen: show || autoTrigger,
@@ -11493,18 +11288,18 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
11493
11288
  customCSS: customCSS2
11494
11289
  }
11495
11290
  ) }),
11496
- /* @__PURE__ */ jsxs21("div", { className: "form-group-frac", children: [
11497
- /* @__PURE__ */ jsx35("label", { htmlFor: "zip", children: "ZIP" }),
11498
- /* @__PURE__ */ jsx35("input", { type: "text", className: "form-control-frac", maxLength: 100, placeholder: "000000", value: (_j = cardData == null ? void 0 : cardData.zipCode) != null ? _j : "", onChange: (e) => handleCardChange("zipCode", e.target.value) }),
11499
- (cardError == null ? void 0 : cardError.zipCode) && /* @__PURE__ */ jsx35("span", { className: "error-span", children: cardError == null ? void 0 : cardError.zipCode }),
11500
- pass_fee && cardFeeAmount > 0 && /* @__PURE__ */ jsxs21("small", { className: "frac-fee-text", children: [
11291
+ /* @__PURE__ */ jsxs20("div", { className: "form-group-frac", children: [
11292
+ /* @__PURE__ */ jsx34("label", { htmlFor: "zip", children: "ZIP" }),
11293
+ /* @__PURE__ */ jsx34("input", { type: "text", className: "form-control-frac", maxLength: 100, placeholder: "000000", value: (_j = cardData == null ? void 0 : cardData.zipCode) != null ? _j : "", onChange: (e) => handleCardChange("zipCode", e.target.value) }),
11294
+ (cardError == null ? void 0 : cardError.zipCode) && /* @__PURE__ */ jsx34("span", { className: "error-span", children: cardError == null ? void 0 : cardError.zipCode }),
11295
+ pass_fee && cardFeeAmount > 0 && /* @__PURE__ */ jsxs20("small", { className: "frac-fee-text", children: [
11501
11296
  "Cards include a fee amount of ",
11502
- /* @__PURE__ */ jsx35("span", { className: "frac-fee-amount", children: formatUSD(cardFeeAmount.toFixed(2)) }),
11297
+ /* @__PURE__ */ jsx34("span", { className: "frac-fee-amount", children: formatUSD(cardFeeAmount.toFixed(2)) }),
11503
11298
  "."
11504
11299
  ] })
11505
11300
  ] }),
11506
- customerId && /* @__PURE__ */ jsx35("div", { className: "form-group-frac", children: /* @__PURE__ */ jsxs21("div", { className: "frac-tooltip-mn", style: { display: "flex", alignItems: "center", gap: "10px", paddingTop: "10px" }, children: [
11507
- /* @__PURE__ */ jsx35(
11301
+ customerId && /* @__PURE__ */ jsx34("div", { className: "form-group-frac", children: /* @__PURE__ */ jsxs20("div", { className: "frac-tooltip-mn", style: { display: "flex", alignItems: "center", gap: "10px", paddingTop: "10px" }, children: [
11302
+ /* @__PURE__ */ jsx34(
11508
11303
  "input",
11509
11304
  {
11510
11305
  type: "checkbox",
@@ -11514,10 +11309,10 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
11514
11309
  onChange: (e) => setSaveCardInfo(e.target.checked)
11515
11310
  }
11516
11311
  ),
11517
- /* @__PURE__ */ jsx35("label", { htmlFor: "save_card", className: "toggle-label" }),
11518
- /* @__PURE__ */ jsx35("label", { htmlFor: "save_card", children: "Save card for future payments " }),
11519
- /* @__PURE__ */ jsxs21("div", { className: "frac-tooltip-wrapper", children: [
11520
- /* @__PURE__ */ jsx35("div", { className: "frac-tooltip-icon", children: /* @__PURE__ */ jsxs21(
11312
+ /* @__PURE__ */ jsx34("label", { htmlFor: "save_card", className: "toggle-label" }),
11313
+ /* @__PURE__ */ jsx34("label", { htmlFor: "save_card", children: "Save card for future payments " }),
11314
+ /* @__PURE__ */ jsxs20("div", { className: "frac-tooltip-wrapper", children: [
11315
+ /* @__PURE__ */ jsx34("div", { className: "frac-tooltip-icon", children: /* @__PURE__ */ jsxs20(
11521
11316
  "svg",
11522
11317
  {
11523
11318
  xmlns: "http://www.w3.org/2000/svg",
@@ -11526,8 +11321,8 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
11526
11321
  viewBox: "0 0 20 20",
11527
11322
  fill: "none",
11528
11323
  children: [
11529
- /* @__PURE__ */ jsx35("circle", { cx: "10", cy: "10", r: "10", fill: "#E0DFE2" }),
11530
- /* @__PURE__ */ jsx35(
11324
+ /* @__PURE__ */ jsx34("circle", { cx: "10", cy: "10", r: "10", fill: "#E0DFE2" }),
11325
+ /* @__PURE__ */ jsx34(
11531
11326
  "path",
11532
11327
  {
11533
11328
  d: "M9.03406 12.0979V12.0072C9.04055 11.4153 9.10057 10.9443 9.21411 10.5943C9.3309 10.2442 9.49635 9.96102 9.71046 9.74463C9.92457 9.52824 10.1825 9.33095 10.4842 9.15274C10.6788 9.03182 10.854 8.89658 11.0097 8.74702C11.1655 8.59745 11.2887 8.42562 11.3796 8.2315C11.4704 8.03739 11.5158 7.82259 11.5158 7.58711C11.5158 7.3039 11.4477 7.05887 11.3114 6.85203C11.1752 6.64519 10.9935 6.48608 10.7664 6.3747C10.5426 6.26014 10.2928 6.20286 10.017 6.20286C9.76723 6.20286 9.52879 6.25378 9.3017 6.35561C9.07461 6.45744 8.88646 6.61655 8.73723 6.83294C8.588 7.04614 8.50203 7.3214 8.47932 7.65871H7C7.02271 7.08592 7.17032 6.60223 7.44282 6.20764C7.71533 5.80986 8.07543 5.50915 8.52311 5.30549C8.97405 5.10183 9.47202 5 10.017 5C10.6139 5 11.1363 5.10979 11.5839 5.32936C12.0316 5.54574 12.3788 5.84964 12.6253 6.24105C12.8751 6.62928 13 7.08274 13 7.60143C13 7.95784 12.9432 8.27924 12.8297 8.56563C12.7161 8.84885 12.5539 9.10183 12.3431 9.32458C12.1354 9.54733 11.8856 9.74463 11.5937 9.91647C11.3179 10.0851 11.0941 10.2601 10.9221 10.4415C10.7534 10.6229 10.6302 10.8377 10.5523 11.0859C10.4745 11.3341 10.4323 11.6412 10.4258 12.0072V12.0979H9.03406ZM9.76886 15C9.50284 15 9.27413 14.9077 9.08273 14.7232C8.89132 14.5354 8.79562 14.3095 8.79562 14.0453C8.79562 13.7844 8.89132 13.5617 9.08273 13.3771C9.27413 13.1893 9.50284 13.0955 9.76886 13.0955C10.0316 13.0955 10.2587 13.1893 10.4501 13.3771C10.6448 13.5617 10.7421 13.7844 10.7421 14.0453C10.7421 14.2204 10.6967 14.3811 10.6058 14.5274C10.5182 14.6706 10.4015 14.7852 10.2555 14.8711C10.1095 14.957 9.94728 15 9.76886 15Z",
@@ -11537,48 +11332,48 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
11537
11332
  ]
11538
11333
  }
11539
11334
  ) }),
11540
- /* @__PURE__ */ jsx35("div", { className: "frac-tooltip-text", children: /* @__PURE__ */ jsxs21("p", { children: [
11335
+ /* @__PURE__ */ jsx34("div", { className: "frac-tooltip-text", children: /* @__PURE__ */ jsxs20("p", { children: [
11541
11336
  "If checked, I agree to give the ",
11542
- /* @__PURE__ */ jsx35("b", { children: merchantName || "merchant" }),
11337
+ /* @__PURE__ */ jsx34("b", { children: merchantName || "merchant" }),
11543
11338
  " permission to charge this credit card for agreed-upon purchases in the future."
11544
11339
  ] }) })
11545
11340
  ] })
11546
11341
  ] }) })
11547
11342
  ] }),
11548
- /* @__PURE__ */ jsx35("div", { className: "form-group-frac", style: { marginTop: "20px", padding: "0" }, children: /* @__PURE__ */ jsx35("button", { type: "submit", style: { margin: 0, display: onSubmit ? "none" : "block" }, className: "pay-button", children: partialAmount ? formatUSD((_k = Number(partialAmount)) == null ? void 0 : _k.toFixed(2)) : formatUSD((_l = Number(amount)) == null ? void 0 : _l.toFixed(2)) }) })
11343
+ /* @__PURE__ */ jsx34("div", { className: "form-group-frac", style: { marginTop: "20px", padding: "0" }, children: /* @__PURE__ */ jsx34("button", { type: "submit", style: { margin: 0, display: onSubmit ? "none" : "block" }, className: "pay-button", children: partialAmount ? formatUSD((_k = Number(partialAmount)) == null ? void 0 : _k.toFixed(2)) : formatUSD((_l = Number(amount)) == null ? void 0 : _l.toFixed(2)) }) })
11549
11344
  ] })
11550
11345
  ] }),
11551
- /* @__PURE__ */ jsx35("div", { id: "ach", style: { display: activetab === "ach" ? "block" : "none" }, className: "tabcontent", children: /* @__PURE__ */ jsxs21(Fragment20, { children: [
11552
- !onSubmit && /* @__PURE__ */ jsxs21("div", { className: "frac-heading-card-wrap", children: [
11553
- /* @__PURE__ */ jsx35("div", { className: "frac-backarrow", children: (bankList == null ? void 0 : bankList.length) > 0 && activeinBank === "form" && /* @__PURE__ */ jsxs21("button", { className: "charge-payment-back-btn ", onClick: () => setActiveinBank("list"), children: [
11346
+ /* @__PURE__ */ jsx34("div", { id: "ach", style: { display: activetab === "ach" ? "block" : "none" }, className: "tabcontent", children: /* @__PURE__ */ jsxs20(Fragment19, { children: [
11347
+ !onSubmit && /* @__PURE__ */ jsxs20("div", { className: "frac-heading-card-wrap", children: [
11348
+ /* @__PURE__ */ jsx34("div", { className: "frac-backarrow", children: (bankList == null ? void 0 : bankList.length) > 0 && activeinBank === "form" && /* @__PURE__ */ jsxs20("button", { className: "charge-payment-back-btn ", onClick: () => setActiveinBank("list"), children: [
11554
11349
  " ",
11555
- /* @__PURE__ */ jsx35(IoArrowBack4, {})
11350
+ /* @__PURE__ */ jsx34(IoArrowBack4, {})
11556
11351
  ] }) }),
11557
- /* @__PURE__ */ jsx35("h6", { className: "frac-card-payment-heading", children: "Bank Payment" })
11352
+ /* @__PURE__ */ jsx34("h6", { className: "frac-card-payment-heading", children: "Bank Payment" })
11558
11353
  ] }),
11559
- activeinBank === "list" && (bankList == null ? void 0 : bankList.length) > 0 ? /* @__PURE__ */ jsxs21(Fragment20, { children: [
11560
- /* @__PURE__ */ jsx35(CardList, { headingClass: "card-ach-heading-frac", listHeading: "Banks", ListItems: bankList, selectedCard, setSelectedCard, handleDeleteCard, otherButtonLabel: "Pay With Other Bank", otherButtonAction: () => {
11354
+ activeinBank === "list" && (bankList == null ? void 0 : bankList.length) > 0 ? /* @__PURE__ */ jsxs20(Fragment19, { children: [
11355
+ /* @__PURE__ */ jsx34(CardList, { headingClass: "card-ach-heading-frac", listHeading: "Banks", ListItems: bankList, selectedCard, setSelectedCard, handleDeleteCard, otherButtonLabel: "Pay With Other Bank", otherButtonAction: () => {
11561
11356
  setActiveinBank("form");
11562
11357
  } }),
11563
- /* @__PURE__ */ jsx35("div", { className: "form-group-frac", style: { padding: "0", display: onSubmit ? "none" : "block" }, children: /* @__PURE__ */ jsx35("button", { className: "pay-button", style: { margin: "0px" }, type: "submit", onClick: handlechargeCustomer, children: formatUSD((_m = Number(bankAmount)) == null ? void 0 : _m.toFixed(2)) }) })
11564
- ] }) : /* @__PURE__ */ jsxs21("form", { id: "ACHPaymentForm", style: { textAlign: "start" }, ref: bankFormRef, onSubmit: submitFunc, autoComplete: "off", onKeyDown: (e) => {
11358
+ /* @__PURE__ */ jsx34("div", { className: "form-group-frac", style: { padding: "0", display: onSubmit ? "none" : "block" }, children: /* @__PURE__ */ jsx34("button", { className: "pay-button", style: { margin: "0px" }, type: "submit", onClick: handlechargeCustomer, children: formatUSD((_m = Number(bankAmount)) == null ? void 0 : _m.toFixed(2)) }) })
11359
+ ] }) : /* @__PURE__ */ jsxs20("form", { id: "ACHPaymentForm", style: { textAlign: "start" }, ref: bankFormRef, onSubmit: submitFunc, autoComplete: "off", onKeyDown: (e) => {
11565
11360
  if (e.key === "Enter" && loading) {
11566
11361
  e.preventDefault();
11567
11362
  e.stopPropagation();
11568
11363
  }
11569
11364
  }, children: [
11570
- /* @__PURE__ */ jsxs21("div", { className: "ach-scrl", style: {
11365
+ /* @__PURE__ */ jsxs20("div", { className: "ach-scrl", style: {
11571
11366
  minHeight: "444px",
11572
11367
  maxHeight: "444px"
11573
11368
  }, children: [
11574
- /* @__PURE__ */ jsxs21("div", { className: "form-group-frac", children: [
11575
- /* @__PURE__ */ jsx35("label", { htmlFor: "nameonaccount", children: "Name on account" }),
11576
- /* @__PURE__ */ jsx35("input", { type: "text", id: "nameonaccount", className: "form-control-frac", maxLength: 100, placeholder: "John Doe", name: "name", value: (_n = achData == null ? void 0 : achData.name) != null ? _n : "", onChange: handleChangeAch }),
11577
- (achError == null ? void 0 : achError.name) && /* @__PURE__ */ jsx35("span", { className: "error-span", children: achError == null ? void 0 : achError.name })
11369
+ /* @__PURE__ */ jsxs20("div", { className: "form-group-frac", children: [
11370
+ /* @__PURE__ */ jsx34("label", { htmlFor: "nameonaccount", children: "Name on account" }),
11371
+ /* @__PURE__ */ jsx34("input", { type: "text", id: "nameonaccount", className: "form-control-frac", maxLength: 100, placeholder: "John Doe", name: "name", value: (_n = achData == null ? void 0 : achData.name) != null ? _n : "", onChange: handleChangeAch }),
11372
+ (achError == null ? void 0 : achError.name) && /* @__PURE__ */ jsx34("span", { className: "error-span", children: achError == null ? void 0 : achError.name })
11578
11373
  ] }),
11579
- /* @__PURE__ */ jsxs21("div", { className: "form-group-frac", children: [
11580
- /* @__PURE__ */ jsx35("label", { htmlFor: "routingnumber", children: "Routing number" }),
11581
- /* @__PURE__ */ jsx35(
11374
+ /* @__PURE__ */ jsxs20("div", { className: "form-group-frac", children: [
11375
+ /* @__PURE__ */ jsx34("label", { htmlFor: "routingnumber", children: "Routing number" }),
11376
+ /* @__PURE__ */ jsx34(
11582
11377
  "input",
11583
11378
  {
11584
11379
  type: "text",
@@ -11591,11 +11386,11 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
11591
11386
  onChange: handleChangeAch
11592
11387
  }
11593
11388
  ),
11594
- (achError == null ? void 0 : achError.routingNumber) && /* @__PURE__ */ jsx35("span", { className: "error-span", children: achError == null ? void 0 : achError.routingNumber })
11389
+ (achError == null ? void 0 : achError.routingNumber) && /* @__PURE__ */ jsx34("span", { className: "error-span", children: achError == null ? void 0 : achError.routingNumber })
11595
11390
  ] }),
11596
- /* @__PURE__ */ jsxs21("div", { className: "form-group-frac", children: [
11597
- /* @__PURE__ */ jsx35("label", { htmlFor: "accountnumber", children: "Account number" }),
11598
- /* @__PURE__ */ jsx35(
11391
+ /* @__PURE__ */ jsxs20("div", { className: "form-group-frac", children: [
11392
+ /* @__PURE__ */ jsx34("label", { htmlFor: "accountnumber", children: "Account number" }),
11393
+ /* @__PURE__ */ jsx34(
11599
11394
  "input",
11600
11395
  {
11601
11396
  type: "text",
@@ -11608,11 +11403,11 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
11608
11403
  onChange: handleChangeAch
11609
11404
  }
11610
11405
  ),
11611
- (achError == null ? void 0 : achError.accountNumber) && /* @__PURE__ */ jsx35("span", { className: "error-span", children: achError == null ? void 0 : achError.accountNumber })
11406
+ (achError == null ? void 0 : achError.accountNumber) && /* @__PURE__ */ jsx34("span", { className: "error-span", children: achError == null ? void 0 : achError.accountNumber })
11612
11407
  ] }),
11613
- /* @__PURE__ */ jsxs21("div", { className: "form-group-frac", children: [
11614
- /* @__PURE__ */ jsx35("label", { htmlFor: "confirmaccountnumber", children: "Confirm account number" }),
11615
- /* @__PURE__ */ jsx35(
11408
+ /* @__PURE__ */ jsxs20("div", { className: "form-group-frac", children: [
11409
+ /* @__PURE__ */ jsx34("label", { htmlFor: "confirmaccountnumber", children: "Confirm account number" }),
11410
+ /* @__PURE__ */ jsx34(
11616
11411
  "input",
11617
11412
  {
11618
11413
  type: "text",
@@ -11625,11 +11420,11 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
11625
11420
  onChange: handleChangeAch
11626
11421
  }
11627
11422
  ),
11628
- (achError == null ? void 0 : achError.confirmAccountNumber) && /* @__PURE__ */ jsx35("span", { className: "error-span", children: achError == null ? void 0 : achError.confirmAccountNumber })
11423
+ (achError == null ? void 0 : achError.confirmAccountNumber) && /* @__PURE__ */ jsx34("span", { className: "error-span", children: achError == null ? void 0 : achError.confirmAccountNumber })
11629
11424
  ] }),
11630
- /* @__PURE__ */ jsxs21("div", { className: "form-group-frac", children: [
11631
- /* @__PURE__ */ jsx35("label", { htmlFor: "bankname", children: "Bank name" }),
11632
- /* @__PURE__ */ jsx35(
11425
+ /* @__PURE__ */ jsxs20("div", { className: "form-group-frac", children: [
11426
+ /* @__PURE__ */ jsx34("label", { htmlFor: "bankname", children: "Bank name" }),
11427
+ /* @__PURE__ */ jsx34(
11633
11428
  "input",
11634
11429
  {
11635
11430
  type: "text",
@@ -11642,11 +11437,11 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
11642
11437
  onChange: handleChangeAch
11643
11438
  }
11644
11439
  ),
11645
- (achError == null ? void 0 : achError.bankName) && /* @__PURE__ */ jsx35("span", { className: "error-span", children: achError == null ? void 0 : achError.bankName })
11440
+ (achError == null ? void 0 : achError.bankName) && /* @__PURE__ */ jsx34("span", { className: "error-span", children: achError == null ? void 0 : achError.bankName })
11646
11441
  ] }),
11647
- ((achData == null ? void 0 : achData.accountType) === "business saving" || (achData == null ? void 0 : achData.accountType) === "business checking") && /* @__PURE__ */ jsxs21("div", { className: "form-group-frac", children: [
11648
- /* @__PURE__ */ jsx35("label", { htmlFor: "companyName", children: "Company name" }),
11649
- /* @__PURE__ */ jsx35(
11442
+ ((achData == null ? void 0 : achData.accountType) === "business saving" || (achData == null ? void 0 : achData.accountType) === "business checking") && /* @__PURE__ */ jsxs20("div", { className: "form-group-frac", children: [
11443
+ /* @__PURE__ */ jsx34("label", { htmlFor: "companyName", children: "Company name" }),
11444
+ /* @__PURE__ */ jsx34(
11650
11445
  "input",
11651
11446
  {
11652
11447
  type: "text",
@@ -11659,60 +11454,60 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
11659
11454
  onChange: handleChangeAch
11660
11455
  }
11661
11456
  ),
11662
- (achError == null ? void 0 : achError.companyName) && /* @__PURE__ */ jsx35("span", { className: "error-span", children: achError == null ? void 0 : achError.companyName })
11457
+ (achError == null ? void 0 : achError.companyName) && /* @__PURE__ */ jsx34("span", { className: "error-span", children: achError == null ? void 0 : achError.companyName })
11663
11458
  ] }),
11664
- /* @__PURE__ */ jsxs21("div", { className: "form-group-frac", children: [
11665
- /* @__PURE__ */ jsx35("label", { htmlFor: "accounttype", children: "Select account type" }),
11666
- /* @__PURE__ */ jsxs21("select", { name: "accountType", id: "accounttype", className: "form-control-frac", value: (_t = achData == null ? void 0 : achData.accountType) != null ? _t : "", onChange: handleChangeAch, children: [
11667
- /* @__PURE__ */ jsx35("option", { value: "", children: "Select account" }),
11668
- accountTypes.map((type) => /* @__PURE__ */ jsx35("option", { value: type.value, children: type.label }, type.value))
11459
+ /* @__PURE__ */ jsxs20("div", { className: "form-group-frac", children: [
11460
+ /* @__PURE__ */ jsx34("label", { htmlFor: "accounttype", children: "Select account type" }),
11461
+ /* @__PURE__ */ jsxs20("select", { name: "accountType", id: "accounttype", className: "form-control-frac", value: (_t = achData == null ? void 0 : achData.accountType) != null ? _t : "", onChange: handleChangeAch, children: [
11462
+ /* @__PURE__ */ jsx34("option", { value: "", children: "Select account" }),
11463
+ accountTypes.map((type) => /* @__PURE__ */ jsx34("option", { value: type.value, children: type.label }, type.value))
11669
11464
  ] }),
11670
- bankFeeAmount > 0 && /* @__PURE__ */ jsxs21("small", { className: "frac-fee-text", children: [
11465
+ bankFeeAmount > 0 && /* @__PURE__ */ jsxs20("small", { className: "frac-fee-text", children: [
11671
11466
  "There is a processing fee of ",
11672
- /* @__PURE__ */ jsx35("span", { className: "frac-fee-amount", children: formatUSD(bankFeeAmount.toFixed(2)) }),
11467
+ /* @__PURE__ */ jsx34("span", { className: "frac-fee-amount", children: formatUSD(bankFeeAmount.toFixed(2)) }),
11673
11468
  "."
11674
11469
  ] }),
11675
- !saveACHinfo && /* @__PURE__ */ jsxs21(Fragment20, { children: [
11676
- /* @__PURE__ */ jsxs21("div", { className: "form-group-frac save-ach-div", style: { paddingTop: "5px" }, children: [
11677
- /* @__PURE__ */ jsx35("input", { type: "checkbox", id: "achconsent", className: "", checked: isBankConsentChecked, onChange: (e) => {
11470
+ !saveACHinfo && /* @__PURE__ */ jsxs20(Fragment19, { children: [
11471
+ /* @__PURE__ */ jsxs20("div", { className: "form-group-frac save-ach-div", style: { paddingTop: "5px" }, children: [
11472
+ /* @__PURE__ */ jsx34("input", { type: "checkbox", id: "achconsent", className: "", checked: isBankConsentChecked, onChange: (e) => {
11678
11473
  setIsBankConsentChecked(e.target.checked);
11679
11474
  if (e.target.checked) {
11680
11475
  setErrorBankConsent("");
11681
11476
  }
11682
11477
  } }),
11683
- /* @__PURE__ */ jsx35("label", { className: "saveachlabel", htmlFor: "achconsent", children: `By selecting this box, I authorize SkyFi, on behalf of ${merchantName || "merchant"}, to initiate a one-time electronic ACH debit from my bank account for the total amount displayed on this screen, including any applicable processing fee. I confirm that I am authorized to use this account and that the bank account information I provided is correct.` })
11478
+ /* @__PURE__ */ jsx34("label", { className: "saveachlabel", htmlFor: "achconsent", children: `By selecting this box, I authorize SkyFi, on behalf of ${merchantName || "merchant"}, to initiate a one-time electronic ACH debit from my bank account for the total amount displayed on this screen, including any applicable processing fee. I confirm that I am authorized to use this account and that the bank account information I provided is correct.` })
11684
11479
  ] }),
11685
- errorBankConsent && /* @__PURE__ */ jsx35("span", { className: "error-span", children: errorBankConsent })
11480
+ errorBankConsent && /* @__PURE__ */ jsx34("span", { className: "error-span", children: errorBankConsent })
11686
11481
  ] }),
11687
- customerId && /* @__PURE__ */ jsxs21("div", { className: "form-group-frac save-ach-div", style: { paddingTop: "5px" }, children: [
11688
- /* @__PURE__ */ jsx35("input", { type: "checkbox", id: "saveACH", className: "", maxLength: 100, placeholder: "My Bank", checked: saveACHinfo, onChange: (e) => {
11482
+ customerId && /* @__PURE__ */ jsxs20("div", { className: "form-group-frac save-ach-div", style: { paddingTop: "5px" }, children: [
11483
+ /* @__PURE__ */ jsx34("input", { type: "checkbox", id: "saveACH", className: "", maxLength: 100, placeholder: "My Bank", checked: saveACHinfo, onChange: (e) => {
11689
11484
  setSaveACHinfo(e.target.checked);
11690
11485
  if (!e.target.checked) {
11691
11486
  setSaveACHConsent1(false);
11692
11487
  setErrorBankConsentOther("");
11693
11488
  }
11694
11489
  } }),
11695
- /* @__PURE__ */ jsx35("label", { className: "saveachlabel", htmlFor: "saveACH", children: "Save for future use" })
11490
+ /* @__PURE__ */ jsx34("label", { className: "saveachlabel", htmlFor: "saveACH", children: "Save for future use" })
11696
11491
  ] }),
11697
- saveACHinfo && /* @__PURE__ */ jsxs21(Fragment20, { children: [
11698
- /* @__PURE__ */ jsxs21("div", { className: "form-group-frac save-ach-div", style: { paddingTop: "5px" }, children: [
11699
- /* @__PURE__ */ jsx35("input", { type: "checkbox", id: "saveACHConsent1", className: "", maxLength: 100, placeholder: "My Bank", checked: saveACHConsent1, onChange: (e) => {
11492
+ saveACHinfo && /* @__PURE__ */ jsxs20(Fragment19, { children: [
11493
+ /* @__PURE__ */ jsxs20("div", { className: "form-group-frac save-ach-div", style: { paddingTop: "5px" }, children: [
11494
+ /* @__PURE__ */ jsx34("input", { type: "checkbox", id: "saveACHConsent1", className: "", maxLength: 100, placeholder: "My Bank", checked: saveACHConsent1, onChange: (e) => {
11700
11495
  setSaveACHConsent1(e.target.checked);
11701
11496
  if (e.target.checked) {
11702
11497
  setErrorBankConsentOther("");
11703
11498
  }
11704
11499
  } }),
11705
- /* @__PURE__ */ jsxs21("label", { className: "saveachlabel", htmlFor: "saveACHConsent1", children: [
11500
+ /* @__PURE__ */ jsxs20("label", { className: "saveachlabel", htmlFor: "saveACHConsent1", children: [
11706
11501
  "By providing my bank account information and selecting \u2018Save for future payments\u2019, I authorize ",
11707
11502
  merchantName || "merchant",
11708
11503
  " to store my bank account details for future ACH payments. I understand that future payments may be initiated using this saved account in accordance with my instructions. I confirm I am authorized to use this bank account."
11709
11504
  ] })
11710
11505
  ] }),
11711
- errorBankConsentOther && /* @__PURE__ */ jsx35("span", { className: "error-span", children: errorBankConsentOther })
11506
+ errorBankConsentOther && /* @__PURE__ */ jsx34("span", { className: "error-span", children: errorBankConsentOther })
11712
11507
  ] })
11713
11508
  ] })
11714
11509
  ] }),
11715
- /* @__PURE__ */ jsx35("div", { className: "form-group-frac ", children: /* @__PURE__ */ jsx35("button", { className: "pay-button", style: { margin: "20px 0 0", display: onSubmit ? "none" : "block" }, type: "submit", children: formatUSD((_u = Number(bankAmount)) == null ? void 0 : _u.toFixed(2)) }) })
11510
+ /* @__PURE__ */ jsx34("div", { className: "form-group-frac ", children: /* @__PURE__ */ jsx34("button", { className: "pay-button", style: { margin: "20px 0 0", display: onSubmit ? "none" : "block" }, type: "submit", children: formatUSD((_u = Number(bankAmount)) == null ? void 0 : _u.toFixed(2)) }) })
11716
11511
  ] })
11717
11512
  ] }) })
11718
11513
  ] })
@@ -11727,7 +11522,7 @@ var ModelContentSky_default = ModelContentSky;
11727
11522
 
11728
11523
  // src/app/components/Skysystemz/PayButtonWithForm.tsx
11729
11524
  import axios10 from "axios";
11730
- import { Fragment as Fragment21, jsx as jsx36, jsxs as jsxs22 } from "react/jsx-runtime";
11525
+ import { Fragment as Fragment20, jsx as jsx35, jsxs as jsxs21 } from "react/jsx-runtime";
11731
11526
  var PaymentWidget = ({
11732
11527
  amount,
11733
11528
  bankAmount,
@@ -11751,12 +11546,12 @@ var PaymentWidget = ({
11751
11546
  customCSS: customCSS2,
11752
11547
  disableSubmitBtn = false
11753
11548
  }) => {
11754
- const [show, setShow] = useState12(autoTrigger || false);
11755
- const [loading, setLoading] = useState12(false);
11756
- const [childHandleClose, setChildHandleClose] = useState12(() => () => {
11549
+ const [show, setShow] = useState11(autoTrigger || false);
11550
+ const [loading, setLoading] = useState11(false);
11551
+ const [childHandleClose, setChildHandleClose] = useState11(() => () => {
11757
11552
  });
11758
- const [orderGuid, setOrderGuid] = useState12(null);
11759
- const [remainingAmount, setRemainingAmount] = useState12(null);
11553
+ const [orderGuid, setOrderGuid] = useState11(null);
11554
+ const [remainingAmount, setRemainingAmount] = useState11(null);
11760
11555
  const initialCommonProps = useMemo(
11761
11556
  () => ({
11762
11557
  amount,
@@ -11806,8 +11601,8 @@ var PaymentWidget = ({
11806
11601
  disableSubmitBtn
11807
11602
  ]
11808
11603
  );
11809
- const [commonProps, setCommonProps] = useState12(initialCommonProps);
11810
- useEffect18(() => {
11604
+ const [commonProps, setCommonProps] = useState11(initialCommonProps);
11605
+ useEffect16(() => {
11811
11606
  if (show) {
11812
11607
  setCommonProps(initialCommonProps);
11813
11608
  }
@@ -11838,35 +11633,35 @@ var PaymentWidget = ({
11838
11633
  setLoading(false);
11839
11634
  }
11840
11635
  };
11841
- useEffect18(() => {
11636
+ useEffect16(() => {
11842
11637
  if (show && isPartial && partialRef) {
11843
11638
  getskyosOrderDetails();
11844
11639
  }
11845
11640
  }, [show, isPartial, partialRef]);
11846
- return /* @__PURE__ */ jsxs22(Fragment21, { children: [
11847
- /* @__PURE__ */ jsx36("link", { href: "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.min.css" }),
11848
- /* @__PURE__ */ jsx36(DataScript, {}),
11849
- /* @__PURE__ */ jsx36(FractalTokenizerScript, {}),
11850
- /* @__PURE__ */ jsx36(SkyChargewidgetstyles, {}),
11851
- /* @__PURE__ */ jsx36(CardBankRadioStyles, {}),
11852
- /* @__PURE__ */ jsx36(CustomModal2styles_default, {}),
11853
- /* @__PURE__ */ jsx36(DataCapScriptLoader, {}),
11854
- !autoTrigger && /* @__PURE__ */ jsxs22("button", { className: submitBtnClass || "paymentBtn", disabled: disableSubmitBtn, onClick: () => setShow(true), children: [
11641
+ return /* @__PURE__ */ jsxs21(Fragment20, { children: [
11642
+ /* @__PURE__ */ jsx35("link", { href: "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.min.css" }),
11643
+ /* @__PURE__ */ jsx35(DataScript, {}),
11644
+ /* @__PURE__ */ jsx35(FractalTokenizerScript, {}),
11645
+ /* @__PURE__ */ jsx35(SkyChargewidgetstyles, {}),
11646
+ /* @__PURE__ */ jsx35(CardBankRadioStyles, {}),
11647
+ /* @__PURE__ */ jsx35(CustomModal2styles_default, {}),
11648
+ /* @__PURE__ */ jsx35(DataCapScriptLoader, {}),
11649
+ !autoTrigger && /* @__PURE__ */ jsxs21("button", { className: submitBtnClass || "paymentBtn", disabled: disableSubmitBtn, onClick: () => setShow(true), children: [
11855
11650
  submitBtnText,
11856
11651
  submitBtnIcon
11857
11652
  ] }),
11858
- !autoTrigger ? /* @__PURE__ */ jsx36(CustomModal2_default, { open: show, onClose: childHandleClose, children: /* @__PURE__ */ jsx36(ModelContentSky_default, __spreadProps(__spreadValues({ show, loadingPrev: loading }, commonProps), { orderGuid, remainingAmount })) }) : /* @__PURE__ */ jsx36(ModelContentSky_default, __spreadProps(__spreadValues({ show, loadingPrev: loading }, commonProps), { orderGuid, remainingAmount }))
11653
+ !autoTrigger ? /* @__PURE__ */ jsx35(CustomModal2_default, { open: show, onClose: childHandleClose, children: /* @__PURE__ */ jsx35(ModelContentSky_default, __spreadProps(__spreadValues({ show, loadingPrev: loading }, commonProps), { orderGuid, remainingAmount })) }) : /* @__PURE__ */ jsx35(ModelContentSky_default, __spreadProps(__spreadValues({ show, loadingPrev: loading }, commonProps), { orderGuid, remainingAmount }))
11859
11654
  ] });
11860
11655
  };
11861
11656
 
11862
11657
  // src/app/components/Skysystemz/EmbeddedCheckout.tsx
11863
- import { useEffect as useEffect20, useState as useState13, useMemo as useMemo2 } from "react";
11658
+ import { useEffect as useEffect18, useState as useState12, useMemo as useMemo2 } from "react";
11864
11659
  import axios11 from "axios";
11865
11660
 
11866
11661
  // src/app/components/Skysystemz/EmbeddedCheckoutStyles.tsx
11867
- import { jsx as jsx37 } from "react/jsx-runtime";
11662
+ import { jsx as jsx36 } from "react/jsx-runtime";
11868
11663
  function EmbeddedCheckoutStyles({ extraCustomCSS }) {
11869
- return /* @__PURE__ */ jsx37("style", { children: `
11664
+ return /* @__PURE__ */ jsx36("style", { children: `
11870
11665
 
11871
11666
  .pay-amount-conatiner{
11872
11667
  margin-top: 20px !important;
@@ -12212,10 +12007,10 @@ padding:0px !important;
12212
12007
  }
12213
12008
 
12214
12009
  // src/app/components/Atoms/Applepay/ApplePayScriptLoader.tsx
12215
- import { useEffect as useEffect19 } from "react";
12010
+ import { useEffect as useEffect17 } from "react";
12216
12011
  var applePayScriptLoaded = false;
12217
12012
  var ApplePayScriptLoader = () => {
12218
- useEffect19(() => {
12013
+ useEffect17(() => {
12219
12014
  if (applePayScriptLoaded) return;
12220
12015
  const existingScript = document.querySelector(
12221
12016
  `script[src="https://applepay.cdn-apple.com/jsapi/v1/apple-pay-sdk.js"]`
@@ -12241,7 +12036,7 @@ var ApplePayScriptLoader = () => {
12241
12036
  };
12242
12037
 
12243
12038
  // src/app/components/Skysystemz/EmbeddedCheckout.tsx
12244
- import { Fragment as Fragment22, jsx as jsx38, jsxs as jsxs23 } from "react/jsx-runtime";
12039
+ import { Fragment as Fragment21, jsx as jsx37, jsxs as jsxs22 } from "react/jsx-runtime";
12245
12040
  var EmbeddedCheckout = ({
12246
12041
  amount,
12247
12042
  bankAmount,
@@ -12266,12 +12061,12 @@ var EmbeddedCheckout = ({
12266
12061
  onLoad,
12267
12062
  customCSS: customCSS2
12268
12063
  }) => {
12269
- const [show, setShow] = useState13(false);
12270
- const [loading, setLoading] = useState13(false);
12271
- const [childHandleClose, setChildHandleClose] = useState13(() => () => {
12064
+ const [show, setShow] = useState12(false);
12065
+ const [loading, setLoading] = useState12(false);
12066
+ const [childHandleClose, setChildHandleClose] = useState12(() => () => {
12272
12067
  });
12273
- const [orderGuid, setOrderGuid] = useState13(null);
12274
- const [remainingAmount, setRemainingAmount] = useState13(null);
12068
+ const [orderGuid, setOrderGuid] = useState12(null);
12069
+ const [remainingAmount, setRemainingAmount] = useState12(null);
12275
12070
  const initialCommonProps = useMemo2(
12276
12071
  () => ({
12277
12072
  amount,
@@ -12318,8 +12113,8 @@ var EmbeddedCheckout = ({
12318
12113
  partialRef
12319
12114
  ]
12320
12115
  );
12321
- const [commonProps, setCommonProps] = useState13(initialCommonProps);
12322
- useEffect20(() => {
12116
+ const [commonProps, setCommonProps] = useState12(initialCommonProps);
12117
+ useEffect18(() => {
12323
12118
  if (show) {
12324
12119
  setCommonProps(initialCommonProps);
12325
12120
  }
@@ -12350,13 +12145,13 @@ var EmbeddedCheckout = ({
12350
12145
  setLoading(false);
12351
12146
  }
12352
12147
  };
12353
- useEffect20(() => {
12148
+ useEffect18(() => {
12354
12149
  if (show && isPartial && partialRef) {
12355
12150
  getskyosOrderDetails();
12356
12151
  }
12357
12152
  }, [show, isPartial, partialRef]);
12358
12153
  console.log(onLoad, "onLoad");
12359
- useEffect20(() => {
12154
+ useEffect18(() => {
12360
12155
  const supported = !!window.ApplePaySession;
12361
12156
  let canPay = false;
12362
12157
  if (supported) {
@@ -12367,21 +12162,21 @@ var EmbeddedCheckout = ({
12367
12162
  }
12368
12163
  console.log(`ApplePaySession: ${supported}, canMakePayments: ${canPay}`);
12369
12164
  }, []);
12370
- return /* @__PURE__ */ jsxs23(Fragment22, { children: [
12371
- /* @__PURE__ */ jsx38("link", { href: "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.min.css" }),
12372
- /* @__PURE__ */ jsx38(DataScript, {}),
12373
- /* @__PURE__ */ jsx38(FractalTokenizerScript, {}),
12374
- /* @__PURE__ */ jsx38(SkyChargewidgetstyles, {}),
12375
- /* @__PURE__ */ jsx38(CardBankRadioStyles, {}),
12376
- /* @__PURE__ */ jsx38(CustomModal2styles_default, {}),
12377
- /* @__PURE__ */ jsx38(DataCapScriptLoader, {}),
12378
- /* @__PURE__ */ jsx38(ApplePayScriptLoader, {}),
12379
- /* @__PURE__ */ jsx38(EmbeddedCheckoutStyles, { extraCustomCSS: customCSS2 }),
12380
- !autoTrigger && /* @__PURE__ */ jsxs23("button", { className: submitBtnClass || "paymentBtn", onClick: () => setShow(true), children: [
12165
+ return /* @__PURE__ */ jsxs22(Fragment21, { children: [
12166
+ /* @__PURE__ */ jsx37("link", { href: "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.min.css" }),
12167
+ /* @__PURE__ */ jsx37(DataScript, {}),
12168
+ /* @__PURE__ */ jsx37(FractalTokenizerScript, {}),
12169
+ /* @__PURE__ */ jsx37(SkyChargewidgetstyles, {}),
12170
+ /* @__PURE__ */ jsx37(CardBankRadioStyles, {}),
12171
+ /* @__PURE__ */ jsx37(CustomModal2styles_default, {}),
12172
+ /* @__PURE__ */ jsx37(DataCapScriptLoader, {}),
12173
+ /* @__PURE__ */ jsx37(ApplePayScriptLoader, {}),
12174
+ /* @__PURE__ */ jsx37(EmbeddedCheckoutStyles, { extraCustomCSS: customCSS2 }),
12175
+ !autoTrigger && /* @__PURE__ */ jsxs22("button", { className: submitBtnClass || "paymentBtn", onClick: () => setShow(true), children: [
12381
12176
  submitBtnText,
12382
12177
  submitBtnIcon
12383
12178
  ] }),
12384
- !autoTrigger ? /* @__PURE__ */ jsx38(CustomModal2_default, { open: show, onClose: childHandleClose, children: /* @__PURE__ */ jsx38(ModelContentSky_default, __spreadProps(__spreadValues({ onLoad, onSubmit, show, loadingPrev: loading }, commonProps), { orderGuid, remainingAmount })) }) : /* @__PURE__ */ jsx38(ModelContentSky_default, __spreadProps(__spreadValues({ onLoad, onSubmit, show, loadingPrev: loading }, commonProps), { orderGuid, remainingAmount }))
12179
+ !autoTrigger ? /* @__PURE__ */ jsx37(CustomModal2_default, { open: show, onClose: childHandleClose, children: /* @__PURE__ */ jsx37(ModelContentSky_default, __spreadProps(__spreadValues({ onLoad, onSubmit, show, loadingPrev: loading }, commonProps), { orderGuid, remainingAmount })) }) : /* @__PURE__ */ jsx37(ModelContentSky_default, __spreadProps(__spreadValues({ onLoad, onSubmit, show, loadingPrev: loading }, commonProps), { orderGuid, remainingAmount }))
12385
12180
  ] });
12386
12181
  };
12387
12182
  export {