@fractalpay/fractalpay-next-test 0.0.40 → 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.40",
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
 
@@ -9893,9 +9893,7 @@ width: fit-content;
9893
9893
  top: 50%;
9894
9894
  left: 50%;
9895
9895
  transform: translate(-50%, -50%);
9896
- background: rgba(255, 255, 255, 0.15);
9897
- backdrop-filter: blur(12px);
9898
- -webkit-backdrop-filter: blur(12px);
9896
+ background: #fff;
9899
9897
  border-radius: 12px;
9900
9898
  z-index: 11111;
9901
9899
  max-width: 240px;
@@ -9934,247 +9932,56 @@ var ErrorCardOverlay = ({ onClose, error, autoTrigger = false }) => {
9934
9932
  };
9935
9933
  var ErrorCardOverlay_default = ErrorCardOverlay;
9936
9934
 
9937
- // src/app/components/Atoms/Googlepay/Googlepay.tsx
9938
- import { useRef as useRef10 } from "react";
9939
-
9940
- // src/app/components/Atoms/Googlepay/GooglePayScriptLoader.tsx
9941
- import { useEffect as useEffect15 } from "react";
9942
- var googlePayScriptLoaded = false;
9943
- var GooglePayScriptLoader = ({
9944
- onLoad
9945
- }) => {
9946
- useEffect15(() => {
9947
- if (googlePayScriptLoaded) {
9948
- onLoad == null ? void 0 : onLoad();
9949
- return;
9950
- }
9951
- const existingScript = document.querySelector(
9952
- `script[src="https://pay.google.com/gp/p/js/pay.js"]`
9953
- );
9954
- if (!existingScript) {
9955
- const script2 = document.createElement("script");
9956
- script2.src = "https://pay.google.com/gp/p/js/pay.js";
9957
- script2.async = true;
9958
- script2.onload = () => {
9959
- console.log("\u2705 Google Pay script loaded");
9960
- googlePayScriptLoaded = true;
9961
- console.log("google:", window.google);
9962
- onLoad == null ? void 0 : onLoad();
9963
- };
9964
- script2.onerror = (err) => {
9965
- console.error("\u274C Google Pay script failed", err);
9966
- };
9967
- document.head.appendChild(script2);
9968
- } else {
9969
- googlePayScriptLoaded = true;
9970
- onLoad == null ? void 0 : onLoad();
9971
- }
9972
- }, []);
9973
- return null;
9974
- };
9975
-
9976
- // src/app/components/Atoms/Googlepay/Googlepay.tsx
9977
- import { Fragment as Fragment19, jsx as jsx34, jsxs as jsxs20 } from "react/jsx-runtime";
9978
- function GooglePayComponent({
9979
- amount,
9980
- googlePayEnvironment: googlePayEnvironment2,
9981
- googlePayGatewayMerchantId: googlePayGatewayMerchantId2,
9982
- googlePayMerchantId: googlePayMerchantId2,
9983
- googlePayMerchantName,
9984
- require3ds = false,
9985
- completeFractalFlow,
9986
- setLoading
9987
- }) {
9988
- const containerRef = useRef10(null);
9989
- const paymentsClientRef = useRef10(null);
9990
- const baseRequest = {
9991
- apiVersion: 2,
9992
- apiVersionMinor: 0
9993
- };
9994
- const allowedCardNetworks = ["AMEX", "DISCOVER", "MASTERCARD", "VISA"];
9995
- const allowedCardAuthMethods = require3ds ? ["CRYPTOGRAM_3DS"] : ["PAN_ONLY", "CRYPTOGRAM_3DS"];
9996
- const baseCardPaymentMethod = {
9997
- type: "CARD",
9998
- parameters: {
9999
- allowedAuthMethods: allowedCardAuthMethods,
10000
- allowedCardNetworks
10001
- }
10002
- };
10003
- const cardPaymentMethod = __spreadProps(__spreadValues({}, baseCardPaymentMethod), {
10004
- tokenizationSpecification: {
10005
- type: "PAYMENT_GATEWAY",
10006
- parameters: {
10007
- gateway: googlePayGatewayMerchantId2,
10008
- gatewayMerchantId: googlePayGatewayMerchantId2
10009
- }
10010
- }
10011
- });
10012
- const handlePaymentAuthorization = async (paymentData) => {
10013
- var _a, _b;
10014
- try {
10015
- const token = (_b = (_a = paymentData == null ? void 0 : paymentData.paymentMethodData) == null ? void 0 : _a.tokenizationData) == null ? void 0 : _b.token;
10016
- if (!token) throw new Error("Missing token");
10017
- const parsed = JSON.parse(token);
10018
- console.log(parsed, "parsed token");
10019
- setLoading(true);
10020
- completeFractalFlow(parsed, null, "google_pay");
10021
- return {
10022
- transactionState: "SUCCESS"
10023
- // ✅ CLOSES GOOGLE PAY POPUP
10024
- };
10025
- } catch (err) {
10026
- console.error("Payment failed:", err);
10027
- return {
10028
- transactionState: "ERROR",
10029
- // ❌ CLOSES WITH ERROR UI
10030
- error: {
10031
- intent: "PAYMENT_AUTHORIZATION",
10032
- message: "Payment failed",
10033
- reason: "PAYMENT_DATA_INVALID"
10034
- }
10035
- };
10036
- }
10037
- };
10038
- const getPaymentsClient = () => {
10039
- if (!paymentsClientRef.current && typeof window !== "undefined") {
10040
- const google = window.google;
10041
- if (!google) return null;
10042
- paymentsClientRef.current = new google.payments.api.PaymentsClient({
10043
- environment: googlePayEnvironment2,
10044
- // ✅ ADD THIS
10045
- paymentDataCallbacks: {
10046
- onPaymentAuthorized: handlePaymentAuthorization
10047
- }
10048
- });
10049
- }
10050
- return paymentsClientRef.current;
10051
- };
10052
- const getIsReadyToPayRequest = () => __spreadProps(__spreadValues({}, baseRequest), {
10053
- allowedPaymentMethods: [baseCardPaymentMethod]
10054
- });
10055
- const getTransactionInfo = () => ({
10056
- countryCode: "US",
10057
- currencyCode: "USD",
10058
- totalPriceStatus: "FINAL",
10059
- totalPrice: amount,
10060
- checkoutOption: "COMPLETE_IMMEDIATE_PURCHASE"
10061
- });
10062
- const getPaymentDataRequest = () => __spreadProps(__spreadValues({}, baseRequest), {
10063
- allowedPaymentMethods: [cardPaymentMethod],
10064
- transactionInfo: getTransactionInfo(),
10065
- merchantInfo: {
10066
- merchantId: googlePayMerchantId2,
10067
- merchantName: googlePayMerchantName
10068
- },
10069
- // ✅ ADD THIS
10070
- callbackIntents: ["PAYMENT_AUTHORIZATION"]
10071
- });
10072
- const initializeGooglePay = async () => {
10073
- try {
10074
- const client = getPaymentsClient();
10075
- if (!client) {
10076
- console.error("Google Pay client not ready");
10077
- return;
10078
- }
10079
- const response = await client.isReadyToPay(
10080
- getIsReadyToPayRequest()
10081
- );
10082
- if (response.result && containerRef.current) {
10083
- const button = client.createButton({
10084
- onClick: onGooglePayClick,
10085
- allowedPaymentMethods: [baseCardPaymentMethod],
10086
- buttonType: "pay",
10087
- buttonColor: "black",
10088
- buttonRadius: 8
10089
- });
10090
- if (containerRef.current) {
10091
- containerRef.current.innerHTML = "";
10092
- }
10093
- containerRef.current.appendChild(button);
10094
- }
10095
- } catch (err) {
10096
- console.error("Google Pay init error:", err);
10097
- }
10098
- };
10099
- const onGooglePayClick = async () => {
10100
- const client = getPaymentsClient();
10101
- if (!client) {
10102
- console.error("Google Pay client not ready");
10103
- return;
10104
- }
10105
- try {
10106
- await client.loadPaymentData(getPaymentDataRequest());
10107
- } catch (err) {
10108
- if ((err == null ? void 0 : err.statusCode) !== "CANCELED") {
10109
- console.error(err);
10110
- }
10111
- }
10112
- };
10113
- const onScriptLoad = () => {
10114
- if (!googlePayEnvironment2 || !googlePayGatewayMerchantId2 || !amount || !googlePayMerchantId2) {
10115
- console.error("Missing Google Pay config");
10116
- return;
10117
- }
10118
- setTimeout(() => {
10119
- initializeGooglePay();
10120
- }, 0);
10121
- };
10122
- return /* @__PURE__ */ jsxs20(Fragment19, { children: [
10123
- /* @__PURE__ */ jsx34("div", { ref: containerRef, className: "text-center" }),
10124
- /* @__PURE__ */ jsx34(GooglePayScriptLoader, { onLoad: onScriptLoad })
10125
- ] });
10126
- }
10127
-
10128
9935
  // src/app/components/Atoms/ModelContentSky/ModelContentSky.tsx
10129
- 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";
10130
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 }) => {
10131
9938
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u;
10132
- const hasRunRef = useRef11(false);
10133
- const cardFormRef = useRef11(null);
10134
- const bankFormRef = useRef11(null);
10135
- const expiryYearRef = useRef11(null);
10136
- const expiryMonthRef = useRef11(null);
10137
- const cardListRunRef = useRef11(false);
10138
- const threeDSContainerRef = useRef11(null);
10139
- const [activetab, setActive] = useState11("card");
10140
- const [activeList, setActiveList] = useState11("card");
10141
- const [cardData, setCardData] = useState11();
10142
- const [cardError, setCardError] = useState11({});
10143
- const [achData, setAchData] = useState11();
10144
- const [achError, setAchError] = useState11({});
10145
- const [saveACHinfo, setSaveACHinfo] = useState11(false);
10146
- const [saveACHConsent1, setSaveACHConsent1] = useState11(false);
10147
- const [saveCardInfo, setSaveCardInfo] = useState11(false);
10148
- const [error, setError] = useState11("");
10149
- const [errorIframe, setErrorIframe] = useState11("");
10150
- const [success, setSuccess] = useState11(false);
10151
- let [tranId, setTranId] = useState11("");
10152
- const [loading, setLoading] = useState11(false);
10153
- const [loading2, setLoading2] = useState11(false);
10154
- const [loadingIframe, setLoadingIframe] = useState11(false);
10155
- const [cardList, setCardList] = useState11([]);
10156
- const [bankList, setBankList] = useState11([]);
10157
- const [selectedCard, setSelectedCard] = useState11();
10158
- const [cashDiscount, setCashDiscount] = useState11(Number(amount));
10159
- const [activeinCard, setActiveinCard] = useState11("form");
10160
- const [activeinBank, setActiveinBank] = useState11("form");
10161
- const [isBankActive, setIsBankActive] = useState11(false);
10162
- const [processingFee, setProcessingFee] = useState11(0);
10163
- const [clientSecret, setClientSecret] = useState11("");
10164
- const [errorMessage, setErrorMessage] = useState11(null);
10165
- const [initialLoader, setInitialLoader] = useState11(false);
10166
- const [is3DSEnable, setIs3DSEnable] = useState11(false);
10167
- const [stripeResponse, setStripeResponse] = useState11(null);
10168
- const [orderLoader, setOrderLoader] = useState11(false);
10169
- const [orderGuid, setOrderGuid] = useState11(ordGuid || null);
10170
- const [partialAmount, setPartialAmount] = useState11("");
10171
- const [partialError, setPartialError] = useState11("");
10172
- const [remainingAmount, setRemainingAmount] = useState11("");
10173
- const [paymentGateway, setPaymentGateway] = useState11();
10174
- const [dcToken, setDCToken] = useState11();
10175
- const [isBankConsentChecked, setIsBankConsentChecked] = useState11(false);
10176
- const [errorBankConsent, setErrorBankConsent] = useState11("");
10177
- 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("");
10178
9985
  let mastercard2 = S3Url + "widget/mc-img.svg";
10179
9986
  let visa2 = S3Url + "widget/visa-img.svg";
10180
9987
  let americanexp2 = S3Url + "widget/ae-img.svg";
@@ -10202,7 +10009,7 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
10202
10009
  const bankFeeAmount = Number(bankSurcharge || 0);
10203
10010
  const bankSavingsAmount = Math.max(bankFeeAmount > 0 ? cardFeeAmount - bankFeeAmount : cardFeeAmount, 0);
10204
10011
  const bankSavingsText = bankSavingsAmount > 0 ? `Save ${formatUSD(bankSavingsAmount.toFixed(2))}` : "";
10205
- const tokenizerRef = useRef11(null);
10012
+ const tokenizerRef = useRef10(null);
10206
10013
  const fractalStyles = {
10207
10014
  input: {
10208
10015
  "font-family": "'Inter', sans-serif",
@@ -10275,7 +10082,8 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
10275
10082
  let dataObj = __spreadValues({
10276
10083
  Token: data == null ? void 0 : data.Token,
10277
10084
  amount,
10278
- postal_code: data == null ? void 0 : data.postalCode
10085
+ postal_code: data == null ? void 0 : data.postalCode,
10086
+ require3ds
10279
10087
  }, saveCardInfo ? {
10280
10088
  card: {
10281
10089
  postal_code: cardData == null ? void 0 : cardData.zipCode,
@@ -10284,6 +10092,9 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
10284
10092
  name: cardData == null ? void 0 : cardData.cardName
10285
10093
  }
10286
10094
  } : null);
10095
+ if (require3ds && (data == null ? void 0 : data.stripe_3ds_auth_id)) {
10096
+ dataObj.stripe_3ds_auth_id = data == null ? void 0 : data.stripe_3ds_auth_id;
10097
+ }
10287
10098
  const preAuthResponse = await axios9.post(`${masterBaseUrl}api/v1/gateway/preauth/${session_token}`, dataObj);
10288
10099
  if ((_a2 = preAuthResponse == null ? void 0 : preAuthResponse.data) == null ? void 0 : _a2.result) {
10289
10100
  let addCard;
@@ -11064,13 +10875,13 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
11064
10875
  setOrderLoader(false);
11065
10876
  }
11066
10877
  };
11067
- useEffect17(() => {
10878
+ useEffect15(() => {
11068
10879
  if (!show && !autoTrigger) {
11069
10880
  hasRunRef.current = false;
11070
10881
  cardListRunRef.current = false;
11071
10882
  }
11072
10883
  }, [show, autoTrigger]);
11073
- useEffect17(() => {
10884
+ useEffect15(() => {
11074
10885
  if (!hasRunRef.current && (show || autoTrigger) && onLoad) {
11075
10886
  getPaymentDetails();
11076
10887
  if (isPartial && !partialRef) {
@@ -11078,7 +10889,7 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
11078
10889
  }
11079
10890
  }
11080
10891
  }, [show, autoTrigger, isPartial, onLoad]);
11081
- useEffect17(() => {
10892
+ useEffect15(() => {
11082
10893
  if ((show || autoTrigger) && pass_fee_amount) {
11083
10894
  let cashdisc = Number(amount) - Number(pass_fee_amount);
11084
10895
  if (cashdisc && !isNaN(cashdisc)) {
@@ -11140,7 +10951,7 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
11140
10951
  console.error("3DS Auth failed \u274C", status);
11141
10952
  setError(`3DS Authentication ${status}`);
11142
10953
  };
11143
- useEffect17(() => {
10954
+ useEffect15(() => {
11144
10955
  if (setHandleCloseRef) {
11145
10956
  setHandleCloseRef(() => handleClose);
11146
10957
  }
@@ -11158,18 +10969,18 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
11158
10969
  setPartialError("");
11159
10970
  }
11160
10971
  };
11161
- useEffect17(() => {
10972
+ useEffect15(() => {
11162
10973
  if (typeof FractalTokenizer === "undefined") return;
11163
10974
  const tokenizer = new FractalTokenizer({
11164
10975
  styles: {}
11165
10976
  });
11166
10977
  }, []);
11167
- const stateRef = useRef11({
10978
+ const stateRef = useRef10({
11168
10979
  activeinBank,
11169
10980
  activeinCard,
11170
10981
  activetab
11171
10982
  });
11172
- useEffect17(() => {
10983
+ useEffect15(() => {
11173
10984
  stateRef.current = {
11174
10985
  activeinBank,
11175
10986
  activeinCard,
@@ -11193,7 +11004,7 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
11193
11004
  }
11194
11005
  }
11195
11006
  }, []);
11196
- useEffect17(() => {
11007
+ useEffect15(() => {
11197
11008
  onSubmit == null ? void 0 : onSubmit(submit);
11198
11009
  }, [onSubmit, submit]);
11199
11010
  function detectCardType(cardinput) {
@@ -11219,34 +11030,34 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
11219
11030
  const cardType = detectCardType(cardInput);
11220
11031
  switch (cardType) {
11221
11032
  case "visa":
11222
- return /* @__PURE__ */ jsx35("img", { src: visa2, alt: "visa", width: 33 });
11033
+ return /* @__PURE__ */ jsx34("img", { src: visa2, alt: "visa", width: 33 });
11223
11034
  case "mastercard":
11224
- return /* @__PURE__ */ jsx35("img", { src: mastercard2, width: 33, alt: "mastercard" });
11035
+ return /* @__PURE__ */ jsx34("img", { src: mastercard2, width: 33, alt: "mastercard" });
11225
11036
  case "amex":
11226
- return /* @__PURE__ */ jsx35("img", { src: americanexp2, alt: "amex", width: 33 });
11037
+ return /* @__PURE__ */ jsx34("img", { src: americanexp2, alt: "amex", width: 33 });
11227
11038
  case "discover":
11228
- return /* @__PURE__ */ jsx35("img", { src: discover2, width: 33, alt: "discover" });
11039
+ return /* @__PURE__ */ jsx34("img", { src: discover2, width: 33, alt: "discover" });
11229
11040
  case "diners":
11230
- return /* @__PURE__ */ jsx35("img", { src: dinersicon, alt: "Diners Club" });
11041
+ return /* @__PURE__ */ jsx34("img", { src: dinersicon, alt: "Diners Club" });
11231
11042
  case "jcb":
11232
- return /* @__PURE__ */ jsx35("img", { src: jcbicon, alt: "JCB" });
11043
+ return /* @__PURE__ */ jsx34("img", { src: jcbicon, alt: "JCB" });
11233
11044
  case "unionpay":
11234
- return /* @__PURE__ */ jsx35("img", { src: unionicon, alt: "UnionPay" });
11045
+ return /* @__PURE__ */ jsx34("img", { src: unionicon, alt: "UnionPay" });
11235
11046
  default:
11236
- return /* @__PURE__ */ jsx35("img", { src: defualtcardborder, alt: "card" });
11047
+ return /* @__PURE__ */ jsx34("img", { src: defualtcardborder, alt: "card" });
11237
11048
  }
11238
11049
  }
11239
- return /* @__PURE__ */ jsxs21(Fragment20, { children: [
11240
- (initialLoader || !onLoad) && /* @__PURE__ */ jsx35(Loader_default, { intensity: "dark", loading: initialLoader || !onLoad }),
11241
- error && /* @__PURE__ */ jsx35("div", { children: /* @__PURE__ */ jsx35(ErrorCardOverlay_default, { error, onClose: handleClose, autoTrigger }) }),
11242
- 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: () => {
11243
11054
  setErrorIframe("");
11244
11055
  }, autoTrigger: onSubmit ? !onSubmit : autoTrigger }) }),
11245
- /* @__PURE__ */ jsxs21(Fragment20, { children: [
11246
- (loading || loading2 || loadingIframe) && /* @__PURE__ */ jsx35(Loader_default, { intensity: "light", loading: loading || loading2 || loadingPrev || orderLoader || loadingIframe }),
11247
- /* @__PURE__ */ jsxs21("div", { className: "frac-card-payment-page frac-form frac-new-form", children: [
11248
- /* @__PURE__ */ jsx35("div", { ref: threeDSContainerRef, style: { width: "100%", height: "100%" } }),
11249
- (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(
11250
11061
  ThreeDSChallenge,
11251
11062
  {
11252
11063
  containerRef: threeDSContainerRef,
@@ -11256,33 +11067,33 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
11256
11067
  onSuccess: handleSuccess,
11257
11068
  onError: handleError
11258
11069
  }
11259
- ) : /* @__PURE__ */ jsxs21("div", { className: "parent-pay-container", children: [
11260
- /* @__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: [
11261
- /* @__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" }) }),
11262
- /* @__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" }) }) })
11263
11074
  ] }) }),
11264
- /* @__PURE__ */ jsx35("div", { className: "pay-main-logo-res" }),
11265
- /* @__PURE__ */ jsxs21("div", { className: onSubmit ? "pay-container frac-pay-container " : "pay-container", children: [
11266
- !onSubmit && /* @__PURE__ */ jsxs21("div", { className: "pay-header pay-conatiner-one", children: [
11267
- /* @__PURE__ */ jsxs21("div", { className: "pay-conatiner-one-first", children: [
11268
- /* @__PURE__ */ jsxs21("div", { className: "pay-logo-container", children: [
11269
- /* @__PURE__ */ jsx35("div", { className: "pay-main-logo" }),
11270
- /* @__PURE__ */ jsx35("h1", { className: "pay-heading", children: "Pay" }),
11271
- (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: [
11272
11083
  " ",
11273
- /* @__PURE__ */ jsx35(IoArrowBack4, {}),
11084
+ /* @__PURE__ */ jsx34(IoArrowBack4, {}),
11274
11085
  " Back"
11275
11086
  ] })
11276
11087
  ] }),
11277
- /* @__PURE__ */ jsx35("div", { className: "amt-pay-con", children: /* @__PURE__ */ jsxs21("div", { className: "pay-amount-conatiner", children: [
11278
- /* @__PURE__ */ jsx35("small", { className: "pay-payment-amount", children: "Select payment type" }),
11279
- /* @__PURE__ */ jsxs21("div", { className: "frac-card-bank-radio-main", children: [
11280
- /* @__PURE__ */ jsx35(CardBankRadio, { label: "Card", amount: (_a = Number(amount)) == null ? void 0 : _a.toFixed(2), value: "card", onChange: handletabchange, activetab }),
11281
- !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 })
11282
11093
  ] }),
11283
- isPartial && /* @__PURE__ */ jsxs21("div", { className: "frac-partial-payment-input", children: [
11284
- /* @__PURE__ */ jsx35("label", { htmlFor: "partialpayment", children: "Partial Payment" }),
11285
- /* @__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(
11286
11097
  NumericFormat2,
11287
11098
  {
11288
11099
  prefix: "$",
@@ -11306,25 +11117,25 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
11306
11117
  }
11307
11118
  }
11308
11119
  ),
11309
- partialError && /* @__PURE__ */ jsx35("span", { className: "error-span", children: partialError })
11120
+ partialError && /* @__PURE__ */ jsx34("span", { className: "error-span", children: partialError })
11310
11121
  ] })
11311
11122
  ] }) })
11312
11123
  ] }),
11313
- /* @__PURE__ */ jsxs21("div", { className: "pay-conatiner-one-last", children: [
11314
- /* @__PURE__ */ jsx35("img", { src: secure2, alt: "" }),
11315
- /* @__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: "" }),
11316
11127
  "Secure payments powered by Fractal"
11317
11128
  ] })
11318
11129
  ] }),
11319
- /* @__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: [
11320
- onSubmit && /* @__PURE__ */ jsx35("div", { className: "amt-pay-con", children: /* @__PURE__ */ jsxs21("div", { className: "pay-amount-conatiner", children: [
11321
- /* @__PURE__ */ jsxs21("div", { className: "frac-card-bank-radio-main", children: [
11322
- /* @__PURE__ */ jsx35(CardBankRadio, { skydesign: true, label: "Card", amount: (_c = Number(amount)) == null ? void 0 : _c.toFixed(2), value: "card", onChange: handletabchange, activetab }),
11323
- !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 })
11324
11135
  ] }),
11325
- isPartial && /* @__PURE__ */ jsxs21("div", { className: "frac-partial-payment-input", children: [
11326
- /* @__PURE__ */ jsx35("label", { htmlFor: "partialpayment", children: "Partial Payment" }),
11327
- /* @__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(
11328
11139
  NumericFormat2,
11329
11140
  {
11330
11141
  prefix: "$",
@@ -11341,67 +11152,53 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
11341
11152
  fixedDecimalScale: true
11342
11153
  }
11343
11154
  ),
11344
- partialError && /* @__PURE__ */ jsx35("span", { className: "error-span", children: partialError })
11155
+ partialError && /* @__PURE__ */ jsx34("span", { className: "error-span", children: partialError })
11345
11156
  ] })
11346
11157
  ] }) }),
11347
- is3DSEnable ? clientSecret && /* @__PURE__ */ jsx35(CheckoutWrapper, { onSuccess, clientSecret, amount, showLoader, hideLoader, callback, session_token, handleClose, setError, isPreAuth }) : /* @__PURE__ */ jsxs21(Fragment20, { children: [
11348
- /* @__PURE__ */ jsxs21("div", { id: "ach", style: { display: activetab === "card" ? "block" : "none" }, className: "tabcontent", children: [
11349
- !onSubmit && /* @__PURE__ */ jsxs21(Fragment20, { children: [
11350
- /* @__PURE__ */ jsxs21("div", { className: "frac-heading-card-wrap", children: [
11351
- /* @__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: [
11352
11163
  " ",
11353
- /* @__PURE__ */ jsx35(IoArrowBack4, {})
11164
+ /* @__PURE__ */ jsx34(IoArrowBack4, {})
11354
11165
  ] }) }),
11355
- /* @__PURE__ */ jsx35("h6", { className: "frac-card-payment-heading", children: "Card Payment" })
11166
+ /* @__PURE__ */ jsx34("h6", { className: "frac-card-payment-heading", children: "Card Payment" })
11356
11167
  ] }),
11357
- /* @__PURE__ */ jsxs21("div", { style: { display: "flex", gap: "8px", margin: "8px 0px 19px 0px" }, children: [
11358
- /* @__PURE__ */ jsx35("img", { src: visa2, alt: "", width: 33 }),
11359
- /* @__PURE__ */ jsx35("img", { src: mastercard2, width: 33, alt: "" }),
11360
- /* @__PURE__ */ jsx35("img", { src: americanexp2, alt: "", width: 33 }),
11361
- /* @__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: "" })
11362
11173
  ] })
11363
11174
  ] }),
11364
- activeinCard === "list" && (cardList == null ? void 0 : cardList.length) > 0 ? /* @__PURE__ */ jsxs21(Fragment20, { children: [
11365
- /* @__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: () => {
11366
11177
  setActiveinCard("form");
11367
11178
  } }),
11368
- /* @__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)) }) })
11369
- ] }) : paymentGateway == 32 ? /* @__PURE__ */ jsxs21(Fragment20, { children: [
11370
- onSubmit && /* @__PURE__ */ jsxs21(Fragment20, { children: [
11371
- /* @__PURE__ */ jsx35(
11372
- GooglePayComponent,
11373
- {
11374
- amount: partialAmount ? partialAmount : amount,
11375
- googlePayEnvironment,
11376
- googlePayGatewayMerchantId,
11377
- googlePayMerchantId,
11378
- googlePayMerchantName: merchantName,
11379
- completeFractalFlow,
11380
- setLoading
11381
- }
11382
- ),
11383
- /* @__PURE__ */ jsx35("div", { id: "digital-wallet-or", className: "frac-or", children: /* @__PURE__ */ jsx35("span", { children: "or" }) })
11384
- ] }),
11385
- /* @__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) => {
11386
11183
  if (e.key === "Enter" && loading) {
11387
11184
  e.preventDefault();
11388
11185
  e.stopPropagation();
11389
11186
  }
11390
11187
  }, children: [
11391
- /* @__PURE__ */ jsxs21("div", { className: "ach-scrl", style: { minHeight: "398px", maxHeight: "398px", overflow: "auto", marginRight: "5px" }, children: [
11392
- /* @__PURE__ */ jsxs21("div", { className: "form-group-frac", children: [
11393
- /* @__PURE__ */ jsx35("label", { htmlFor: "cardHolderName", children: "NAME ON CARD " }),
11394
- /* @__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) => {
11395
11192
  const value = e.target.value;
11396
11193
  if (/^[a-zA-Z\s]*$/.test(value)) {
11397
11194
  handleCardChange("cardName", value);
11398
11195
  }
11399
11196
  } }),
11400
- (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 })
11401
11198
  ] }),
11402
- /* @__PURE__ */ jsxs21("div", { className: "form-group-frac", children: [
11403
- /* @__PURE__ */ jsx35("label", { htmlFor: "cardNumber", children: "CARD NUMBER" }),
11404
- /* @__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(
11405
11202
  FractalFields_default,
11406
11203
  {
11407
11204
  fractalStyles,
@@ -11410,18 +11207,18 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
11410
11207
  }
11411
11208
  ) })
11412
11209
  ] }),
11413
- /* @__PURE__ */ jsxs21("div", { className: "form-group-frac", children: [
11414
- /* @__PURE__ */ jsx35("label", { htmlFor: "zip", children: "ZIP" }),
11415
- /* @__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) }),
11416
- (cardError == null ? void 0 : cardError.zipCode) && /* @__PURE__ */ jsx35("span", { className: "error-span", children: cardError == null ? void 0 : cardError.zipCode }),
11417
- 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: [
11418
11215
  "Cards include a fee amount of ",
11419
- /* @__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)) }),
11420
11217
  "."
11421
11218
  ] })
11422
11219
  ] }),
11423
- 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: [
11424
- /* @__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(
11425
11222
  "input",
11426
11223
  {
11427
11224
  type: "checkbox",
@@ -11431,10 +11228,10 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
11431
11228
  onChange: (e) => setSaveCardInfo(e.target.checked)
11432
11229
  }
11433
11230
  ),
11434
- /* @__PURE__ */ jsx35("label", { htmlFor: "save_card", className: "toggle-label" }),
11435
- /* @__PURE__ */ jsx35("label", { htmlFor: "save_card", children: "Save card for future payments " }),
11436
- /* @__PURE__ */ jsxs21("div", { className: "frac-tooltip-wrapper", children: [
11437
- /* @__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(
11438
11235
  "svg",
11439
11236
  {
11440
11237
  xmlns: "http://www.w3.org/2000/svg",
@@ -11443,8 +11240,8 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
11443
11240
  viewBox: "0 0 20 20",
11444
11241
  fill: "none",
11445
11242
  children: [
11446
- /* @__PURE__ */ jsx35("circle", { cx: "10", cy: "10", r: "10", fill: "#E0DFE2" }),
11447
- /* @__PURE__ */ jsx35(
11243
+ /* @__PURE__ */ jsx34("circle", { cx: "10", cy: "10", r: "10", fill: "#E0DFE2" }),
11244
+ /* @__PURE__ */ jsx34(
11448
11245
  "path",
11449
11246
  {
11450
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",
@@ -11454,34 +11251,34 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
11454
11251
  ]
11455
11252
  }
11456
11253
  ) }),
11457
- /* @__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: [
11458
11255
  "If checked, I agree to give the ",
11459
- /* @__PURE__ */ jsx35("b", { children: merchantName || "merchant" }),
11256
+ /* @__PURE__ */ jsx34("b", { children: merchantName || "merchant" }),
11460
11257
  " permission to charge this credit card for agreed-upon purchases in the future."
11461
11258
  ] }) })
11462
11259
  ] })
11463
11260
  ] }) })
11464
11261
  ] }),
11465
- /* @__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)) }) })
11466
11263
  ] })
11467
- ] }) : /* @__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) => {
11468
11265
  if (e.key === "Enter" && loading) {
11469
11266
  e.preventDefault();
11470
11267
  e.stopPropagation();
11471
11268
  }
11472
11269
  }, children: [
11473
- /* @__PURE__ */ jsxs21("div", { className: "ach-scrl", style: { minHeight: "398px", maxHeight: "398px", overflow: "auto", marginRight: "5px" }, children: [
11474
- /* @__PURE__ */ jsxs21("div", { className: "form-group-frac", children: [
11475
- /* @__PURE__ */ jsx35("label", { htmlFor: "cardHolderName", children: "NAME ON CARD " }),
11476
- /* @__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) => {
11477
11274
  const value = e.target.value;
11478
11275
  if (/^[a-zA-Z\s]*$/.test(value)) {
11479
11276
  handleCardChange("cardName", value);
11480
11277
  }
11481
11278
  } }),
11482
- (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 })
11483
11280
  ] }),
11484
- /* @__PURE__ */ jsx35("div", { className: "form-group-frac", children: /* @__PURE__ */ jsx35(
11281
+ /* @__PURE__ */ jsx34("div", { className: "form-group-frac", children: /* @__PURE__ */ jsx34(
11485
11282
  DataCapFields,
11486
11283
  {
11487
11284
  isOpen: show || autoTrigger,
@@ -11491,18 +11288,18 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
11491
11288
  customCSS: customCSS2
11492
11289
  }
11493
11290
  ) }),
11494
- /* @__PURE__ */ jsxs21("div", { className: "form-group-frac", children: [
11495
- /* @__PURE__ */ jsx35("label", { htmlFor: "zip", children: "ZIP" }),
11496
- /* @__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) }),
11497
- (cardError == null ? void 0 : cardError.zipCode) && /* @__PURE__ */ jsx35("span", { className: "error-span", children: cardError == null ? void 0 : cardError.zipCode }),
11498
- 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: [
11499
11296
  "Cards include a fee amount of ",
11500
- /* @__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)) }),
11501
11298
  "."
11502
11299
  ] })
11503
11300
  ] }),
11504
- 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: [
11505
- /* @__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(
11506
11303
  "input",
11507
11304
  {
11508
11305
  type: "checkbox",
@@ -11512,10 +11309,10 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
11512
11309
  onChange: (e) => setSaveCardInfo(e.target.checked)
11513
11310
  }
11514
11311
  ),
11515
- /* @__PURE__ */ jsx35("label", { htmlFor: "save_card", className: "toggle-label" }),
11516
- /* @__PURE__ */ jsx35("label", { htmlFor: "save_card", children: "Save card for future payments " }),
11517
- /* @__PURE__ */ jsxs21("div", { className: "frac-tooltip-wrapper", children: [
11518
- /* @__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(
11519
11316
  "svg",
11520
11317
  {
11521
11318
  xmlns: "http://www.w3.org/2000/svg",
@@ -11524,8 +11321,8 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
11524
11321
  viewBox: "0 0 20 20",
11525
11322
  fill: "none",
11526
11323
  children: [
11527
- /* @__PURE__ */ jsx35("circle", { cx: "10", cy: "10", r: "10", fill: "#E0DFE2" }),
11528
- /* @__PURE__ */ jsx35(
11324
+ /* @__PURE__ */ jsx34("circle", { cx: "10", cy: "10", r: "10", fill: "#E0DFE2" }),
11325
+ /* @__PURE__ */ jsx34(
11529
11326
  "path",
11530
11327
  {
11531
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",
@@ -11535,48 +11332,48 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
11535
11332
  ]
11536
11333
  }
11537
11334
  ) }),
11538
- /* @__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: [
11539
11336
  "If checked, I agree to give the ",
11540
- /* @__PURE__ */ jsx35("b", { children: merchantName || "merchant" }),
11337
+ /* @__PURE__ */ jsx34("b", { children: merchantName || "merchant" }),
11541
11338
  " permission to charge this credit card for agreed-upon purchases in the future."
11542
11339
  ] }) })
11543
11340
  ] })
11544
11341
  ] }) })
11545
11342
  ] }),
11546
- /* @__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)) }) })
11547
11344
  ] })
11548
11345
  ] }),
11549
- /* @__PURE__ */ jsx35("div", { id: "ach", style: { display: activetab === "ach" ? "block" : "none" }, className: "tabcontent", children: /* @__PURE__ */ jsxs21(Fragment20, { children: [
11550
- !onSubmit && /* @__PURE__ */ jsxs21("div", { className: "frac-heading-card-wrap", children: [
11551
- /* @__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: [
11552
11349
  " ",
11553
- /* @__PURE__ */ jsx35(IoArrowBack4, {})
11350
+ /* @__PURE__ */ jsx34(IoArrowBack4, {})
11554
11351
  ] }) }),
11555
- /* @__PURE__ */ jsx35("h6", { className: "frac-card-payment-heading", children: "Bank Payment" })
11352
+ /* @__PURE__ */ jsx34("h6", { className: "frac-card-payment-heading", children: "Bank Payment" })
11556
11353
  ] }),
11557
- activeinBank === "list" && (bankList == null ? void 0 : bankList.length) > 0 ? /* @__PURE__ */ jsxs21(Fragment20, { children: [
11558
- /* @__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: () => {
11559
11356
  setActiveinBank("form");
11560
11357
  } }),
11561
- /* @__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)) }) })
11562
- ] }) : /* @__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) => {
11563
11360
  if (e.key === "Enter" && loading) {
11564
11361
  e.preventDefault();
11565
11362
  e.stopPropagation();
11566
11363
  }
11567
11364
  }, children: [
11568
- /* @__PURE__ */ jsxs21("div", { className: "ach-scrl", style: {
11365
+ /* @__PURE__ */ jsxs20("div", { className: "ach-scrl", style: {
11569
11366
  minHeight: "444px",
11570
11367
  maxHeight: "444px"
11571
11368
  }, children: [
11572
- /* @__PURE__ */ jsxs21("div", { className: "form-group-frac", children: [
11573
- /* @__PURE__ */ jsx35("label", { htmlFor: "nameonaccount", children: "Name on account" }),
11574
- /* @__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 }),
11575
- (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 })
11576
11373
  ] }),
11577
- /* @__PURE__ */ jsxs21("div", { className: "form-group-frac", children: [
11578
- /* @__PURE__ */ jsx35("label", { htmlFor: "routingnumber", children: "Routing number" }),
11579
- /* @__PURE__ */ jsx35(
11374
+ /* @__PURE__ */ jsxs20("div", { className: "form-group-frac", children: [
11375
+ /* @__PURE__ */ jsx34("label", { htmlFor: "routingnumber", children: "Routing number" }),
11376
+ /* @__PURE__ */ jsx34(
11580
11377
  "input",
11581
11378
  {
11582
11379
  type: "text",
@@ -11589,11 +11386,11 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
11589
11386
  onChange: handleChangeAch
11590
11387
  }
11591
11388
  ),
11592
- (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 })
11593
11390
  ] }),
11594
- /* @__PURE__ */ jsxs21("div", { className: "form-group-frac", children: [
11595
- /* @__PURE__ */ jsx35("label", { htmlFor: "accountnumber", children: "Account number" }),
11596
- /* @__PURE__ */ jsx35(
11391
+ /* @__PURE__ */ jsxs20("div", { className: "form-group-frac", children: [
11392
+ /* @__PURE__ */ jsx34("label", { htmlFor: "accountnumber", children: "Account number" }),
11393
+ /* @__PURE__ */ jsx34(
11597
11394
  "input",
11598
11395
  {
11599
11396
  type: "text",
@@ -11606,11 +11403,11 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
11606
11403
  onChange: handleChangeAch
11607
11404
  }
11608
11405
  ),
11609
- (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 })
11610
11407
  ] }),
11611
- /* @__PURE__ */ jsxs21("div", { className: "form-group-frac", children: [
11612
- /* @__PURE__ */ jsx35("label", { htmlFor: "confirmaccountnumber", children: "Confirm account number" }),
11613
- /* @__PURE__ */ jsx35(
11408
+ /* @__PURE__ */ jsxs20("div", { className: "form-group-frac", children: [
11409
+ /* @__PURE__ */ jsx34("label", { htmlFor: "confirmaccountnumber", children: "Confirm account number" }),
11410
+ /* @__PURE__ */ jsx34(
11614
11411
  "input",
11615
11412
  {
11616
11413
  type: "text",
@@ -11623,11 +11420,11 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
11623
11420
  onChange: handleChangeAch
11624
11421
  }
11625
11422
  ),
11626
- (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 })
11627
11424
  ] }),
11628
- /* @__PURE__ */ jsxs21("div", { className: "form-group-frac", children: [
11629
- /* @__PURE__ */ jsx35("label", { htmlFor: "bankname", children: "Bank name" }),
11630
- /* @__PURE__ */ jsx35(
11425
+ /* @__PURE__ */ jsxs20("div", { className: "form-group-frac", children: [
11426
+ /* @__PURE__ */ jsx34("label", { htmlFor: "bankname", children: "Bank name" }),
11427
+ /* @__PURE__ */ jsx34(
11631
11428
  "input",
11632
11429
  {
11633
11430
  type: "text",
@@ -11640,11 +11437,11 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
11640
11437
  onChange: handleChangeAch
11641
11438
  }
11642
11439
  ),
11643
- (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 })
11644
11441
  ] }),
11645
- ((achData == null ? void 0 : achData.accountType) === "business saving" || (achData == null ? void 0 : achData.accountType) === "business checking") && /* @__PURE__ */ jsxs21("div", { className: "form-group-frac", children: [
11646
- /* @__PURE__ */ jsx35("label", { htmlFor: "companyName", children: "Company name" }),
11647
- /* @__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(
11648
11445
  "input",
11649
11446
  {
11650
11447
  type: "text",
@@ -11657,60 +11454,60 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
11657
11454
  onChange: handleChangeAch
11658
11455
  }
11659
11456
  ),
11660
- (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 })
11661
11458
  ] }),
11662
- /* @__PURE__ */ jsxs21("div", { className: "form-group-frac", children: [
11663
- /* @__PURE__ */ jsx35("label", { htmlFor: "accounttype", children: "Select account type" }),
11664
- /* @__PURE__ */ jsxs21("select", { name: "accountType", id: "accounttype", className: "form-control-frac", value: (_t = achData == null ? void 0 : achData.accountType) != null ? _t : "", onChange: handleChangeAch, children: [
11665
- /* @__PURE__ */ jsx35("option", { value: "", children: "Select account" }),
11666
- 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))
11667
11464
  ] }),
11668
- bankFeeAmount > 0 && /* @__PURE__ */ jsxs21("small", { className: "frac-fee-text", children: [
11465
+ bankFeeAmount > 0 && /* @__PURE__ */ jsxs20("small", { className: "frac-fee-text", children: [
11669
11466
  "There is a processing fee of ",
11670
- /* @__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)) }),
11671
11468
  "."
11672
11469
  ] }),
11673
- !saveACHinfo && /* @__PURE__ */ jsxs21(Fragment20, { children: [
11674
- /* @__PURE__ */ jsxs21("div", { className: "form-group-frac save-ach-div", style: { paddingTop: "5px" }, children: [
11675
- /* @__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) => {
11676
11473
  setIsBankConsentChecked(e.target.checked);
11677
11474
  if (e.target.checked) {
11678
11475
  setErrorBankConsent("");
11679
11476
  }
11680
11477
  } }),
11681
- /* @__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.` })
11682
11479
  ] }),
11683
- errorBankConsent && /* @__PURE__ */ jsx35("span", { className: "error-span", children: errorBankConsent })
11480
+ errorBankConsent && /* @__PURE__ */ jsx34("span", { className: "error-span", children: errorBankConsent })
11684
11481
  ] }),
11685
- customerId && /* @__PURE__ */ jsxs21("div", { className: "form-group-frac save-ach-div", style: { paddingTop: "5px" }, children: [
11686
- /* @__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) => {
11687
11484
  setSaveACHinfo(e.target.checked);
11688
11485
  if (!e.target.checked) {
11689
11486
  setSaveACHConsent1(false);
11690
11487
  setErrorBankConsentOther("");
11691
11488
  }
11692
11489
  } }),
11693
- /* @__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" })
11694
11491
  ] }),
11695
- saveACHinfo && /* @__PURE__ */ jsxs21(Fragment20, { children: [
11696
- /* @__PURE__ */ jsxs21("div", { className: "form-group-frac save-ach-div", style: { paddingTop: "5px" }, children: [
11697
- /* @__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) => {
11698
11495
  setSaveACHConsent1(e.target.checked);
11699
11496
  if (e.target.checked) {
11700
11497
  setErrorBankConsentOther("");
11701
11498
  }
11702
11499
  } }),
11703
- /* @__PURE__ */ jsxs21("label", { className: "saveachlabel", htmlFor: "saveACHConsent1", children: [
11500
+ /* @__PURE__ */ jsxs20("label", { className: "saveachlabel", htmlFor: "saveACHConsent1", children: [
11704
11501
  "By providing my bank account information and selecting \u2018Save for future payments\u2019, I authorize ",
11705
11502
  merchantName || "merchant",
11706
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."
11707
11504
  ] })
11708
11505
  ] }),
11709
- errorBankConsentOther && /* @__PURE__ */ jsx35("span", { className: "error-span", children: errorBankConsentOther })
11506
+ errorBankConsentOther && /* @__PURE__ */ jsx34("span", { className: "error-span", children: errorBankConsentOther })
11710
11507
  ] })
11711
11508
  ] })
11712
11509
  ] }),
11713
- /* @__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)) }) })
11714
11511
  ] })
11715
11512
  ] }) })
11716
11513
  ] })
@@ -11725,7 +11522,7 @@ var ModelContentSky_default = ModelContentSky;
11725
11522
 
11726
11523
  // src/app/components/Skysystemz/PayButtonWithForm.tsx
11727
11524
  import axios10 from "axios";
11728
- 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";
11729
11526
  var PaymentWidget = ({
11730
11527
  amount,
11731
11528
  bankAmount,
@@ -11749,12 +11546,12 @@ var PaymentWidget = ({
11749
11546
  customCSS: customCSS2,
11750
11547
  disableSubmitBtn = false
11751
11548
  }) => {
11752
- const [show, setShow] = useState12(autoTrigger || false);
11753
- const [loading, setLoading] = useState12(false);
11754
- const [childHandleClose, setChildHandleClose] = useState12(() => () => {
11549
+ const [show, setShow] = useState11(autoTrigger || false);
11550
+ const [loading, setLoading] = useState11(false);
11551
+ const [childHandleClose, setChildHandleClose] = useState11(() => () => {
11755
11552
  });
11756
- const [orderGuid, setOrderGuid] = useState12(null);
11757
- const [remainingAmount, setRemainingAmount] = useState12(null);
11553
+ const [orderGuid, setOrderGuid] = useState11(null);
11554
+ const [remainingAmount, setRemainingAmount] = useState11(null);
11758
11555
  const initialCommonProps = useMemo(
11759
11556
  () => ({
11760
11557
  amount,
@@ -11804,8 +11601,8 @@ var PaymentWidget = ({
11804
11601
  disableSubmitBtn
11805
11602
  ]
11806
11603
  );
11807
- const [commonProps, setCommonProps] = useState12(initialCommonProps);
11808
- useEffect18(() => {
11604
+ const [commonProps, setCommonProps] = useState11(initialCommonProps);
11605
+ useEffect16(() => {
11809
11606
  if (show) {
11810
11607
  setCommonProps(initialCommonProps);
11811
11608
  }
@@ -11836,35 +11633,35 @@ var PaymentWidget = ({
11836
11633
  setLoading(false);
11837
11634
  }
11838
11635
  };
11839
- useEffect18(() => {
11636
+ useEffect16(() => {
11840
11637
  if (show && isPartial && partialRef) {
11841
11638
  getskyosOrderDetails();
11842
11639
  }
11843
11640
  }, [show, isPartial, partialRef]);
11844
- return /* @__PURE__ */ jsxs22(Fragment21, { children: [
11845
- /* @__PURE__ */ jsx36("link", { href: "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.min.css" }),
11846
- /* @__PURE__ */ jsx36(DataScript, {}),
11847
- /* @__PURE__ */ jsx36(FractalTokenizerScript, {}),
11848
- /* @__PURE__ */ jsx36(SkyChargewidgetstyles, {}),
11849
- /* @__PURE__ */ jsx36(CardBankRadioStyles, {}),
11850
- /* @__PURE__ */ jsx36(CustomModal2styles_default, {}),
11851
- /* @__PURE__ */ jsx36(DataCapScriptLoader, {}),
11852
- !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: [
11853
11650
  submitBtnText,
11854
11651
  submitBtnIcon
11855
11652
  ] }),
11856
- !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 }))
11857
11654
  ] });
11858
11655
  };
11859
11656
 
11860
11657
  // src/app/components/Skysystemz/EmbeddedCheckout.tsx
11861
- 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";
11862
11659
  import axios11 from "axios";
11863
11660
 
11864
11661
  // src/app/components/Skysystemz/EmbeddedCheckoutStyles.tsx
11865
- import { jsx as jsx37 } from "react/jsx-runtime";
11662
+ import { jsx as jsx36 } from "react/jsx-runtime";
11866
11663
  function EmbeddedCheckoutStyles({ extraCustomCSS }) {
11867
- return /* @__PURE__ */ jsx37("style", { children: `
11664
+ return /* @__PURE__ */ jsx36("style", { children: `
11868
11665
 
11869
11666
  .pay-amount-conatiner{
11870
11667
  margin-top: 20px !important;
@@ -12210,10 +12007,10 @@ padding:0px !important;
12210
12007
  }
12211
12008
 
12212
12009
  // src/app/components/Atoms/Applepay/ApplePayScriptLoader.tsx
12213
- import { useEffect as useEffect19 } from "react";
12010
+ import { useEffect as useEffect17 } from "react";
12214
12011
  var applePayScriptLoaded = false;
12215
12012
  var ApplePayScriptLoader = () => {
12216
- useEffect19(() => {
12013
+ useEffect17(() => {
12217
12014
  if (applePayScriptLoaded) return;
12218
12015
  const existingScript = document.querySelector(
12219
12016
  `script[src="https://applepay.cdn-apple.com/jsapi/v1/apple-pay-sdk.js"]`
@@ -12239,7 +12036,7 @@ var ApplePayScriptLoader = () => {
12239
12036
  };
12240
12037
 
12241
12038
  // src/app/components/Skysystemz/EmbeddedCheckout.tsx
12242
- 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";
12243
12040
  var EmbeddedCheckout = ({
12244
12041
  amount,
12245
12042
  bankAmount,
@@ -12264,12 +12061,12 @@ var EmbeddedCheckout = ({
12264
12061
  onLoad,
12265
12062
  customCSS: customCSS2
12266
12063
  }) => {
12267
- const [show, setShow] = useState13(false);
12268
- const [loading, setLoading] = useState13(false);
12269
- const [childHandleClose, setChildHandleClose] = useState13(() => () => {
12064
+ const [show, setShow] = useState12(false);
12065
+ const [loading, setLoading] = useState12(false);
12066
+ const [childHandleClose, setChildHandleClose] = useState12(() => () => {
12270
12067
  });
12271
- const [orderGuid, setOrderGuid] = useState13(null);
12272
- const [remainingAmount, setRemainingAmount] = useState13(null);
12068
+ const [orderGuid, setOrderGuid] = useState12(null);
12069
+ const [remainingAmount, setRemainingAmount] = useState12(null);
12273
12070
  const initialCommonProps = useMemo2(
12274
12071
  () => ({
12275
12072
  amount,
@@ -12316,8 +12113,8 @@ var EmbeddedCheckout = ({
12316
12113
  partialRef
12317
12114
  ]
12318
12115
  );
12319
- const [commonProps, setCommonProps] = useState13(initialCommonProps);
12320
- useEffect20(() => {
12116
+ const [commonProps, setCommonProps] = useState12(initialCommonProps);
12117
+ useEffect18(() => {
12321
12118
  if (show) {
12322
12119
  setCommonProps(initialCommonProps);
12323
12120
  }
@@ -12348,13 +12145,13 @@ var EmbeddedCheckout = ({
12348
12145
  setLoading(false);
12349
12146
  }
12350
12147
  };
12351
- useEffect20(() => {
12148
+ useEffect18(() => {
12352
12149
  if (show && isPartial && partialRef) {
12353
12150
  getskyosOrderDetails();
12354
12151
  }
12355
12152
  }, [show, isPartial, partialRef]);
12356
12153
  console.log(onLoad, "onLoad");
12357
- useEffect20(() => {
12154
+ useEffect18(() => {
12358
12155
  const supported = !!window.ApplePaySession;
12359
12156
  let canPay = false;
12360
12157
  if (supported) {
@@ -12365,21 +12162,21 @@ var EmbeddedCheckout = ({
12365
12162
  }
12366
12163
  console.log(`ApplePaySession: ${supported}, canMakePayments: ${canPay}`);
12367
12164
  }, []);
12368
- return /* @__PURE__ */ jsxs23(Fragment22, { children: [
12369
- /* @__PURE__ */ jsx38("link", { href: "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.min.css" }),
12370
- /* @__PURE__ */ jsx38(DataScript, {}),
12371
- /* @__PURE__ */ jsx38(FractalTokenizerScript, {}),
12372
- /* @__PURE__ */ jsx38(SkyChargewidgetstyles, {}),
12373
- /* @__PURE__ */ jsx38(CardBankRadioStyles, {}),
12374
- /* @__PURE__ */ jsx38(CustomModal2styles_default, {}),
12375
- /* @__PURE__ */ jsx38(DataCapScriptLoader, {}),
12376
- /* @__PURE__ */ jsx38(ApplePayScriptLoader, {}),
12377
- /* @__PURE__ */ jsx38(EmbeddedCheckoutStyles, { extraCustomCSS: customCSS2 }),
12378
- !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: [
12379
12176
  submitBtnText,
12380
12177
  submitBtnIcon
12381
12178
  ] }),
12382
- !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 }))
12383
12180
  ] });
12384
12181
  };
12385
12182
  export {