@fractalpay/fractalpay-next-test 0.0.25 → 0.0.26

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.25",
42
+ version: "0.0.26",
43
43
  private: false,
44
44
  type: "module",
45
45
  scripts: {
@@ -97,7 +97,12 @@ var require_package = __commonJS({
97
97
  },
98
98
  author: "Mukul",
99
99
  license: "MIT",
100
- keywords: ["nextjs", "next", "typescript", "tailwindcss"],
100
+ keywords: [
101
+ "nextjs",
102
+ "next",
103
+ "typescript",
104
+ "tailwindcss"
105
+ ],
101
106
  publishConfig: {
102
107
  access: "public"
103
108
  }
@@ -5221,7 +5226,7 @@ function PreAuthPayment(_a) {
5221
5226
  setErrorIframe("");
5222
5227
  } }) }),
5223
5228
  success && /* @__PURE__ */ jsx20(SuccessMsz, { onClose: handleClose, tranId }),
5224
- !error && !success && /* @__PURE__ */ jsxs12(Fragment12, { children: [
5229
+ !error && !success && !errorIframe && /* @__PURE__ */ jsxs12(Fragment12, { children: [
5225
5230
  (loading || loading2 || loadingIframe) && /* @__PURE__ */ jsx20(Loader_default, { loading: loading || loading2 || loadingIframe }),
5226
5231
  /* @__PURE__ */ jsx20("div", { children: /* @__PURE__ */ jsx20("div", { className: "frac-card-payment-page frac-form", children: /* @__PURE__ */ jsxs12("div", { className: "parent-pay-container", children: [
5227
5232
  /* @__PURE__ */ jsx20("span", { className: "request-payment-close-popup", onClick: handleClose, children: /* @__PURE__ */ jsxs12("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", children: [
@@ -6226,7 +6231,7 @@ function AddCardEasyPay(props) {
6226
6231
  setErrorIframe("");
6227
6232
  } }) }),
6228
6233
  success && /* @__PURE__ */ jsx24(SuccessCardMsz_default, { onClose: handleCloseSeccess }),
6229
- !error && !success && /* @__PURE__ */ jsx24(Fragment14, { children: /* @__PURE__ */ jsx24(
6234
+ !error && !success && !errorIframe && /* @__PURE__ */ jsx24(Fragment14, { children: /* @__PURE__ */ jsx24(
6230
6235
  "div",
6231
6236
  {
6232
6237
  className: "container-creditcard add-card modal-content",
@@ -6968,7 +6973,7 @@ function CardOnFile({ session_token, callback, isloading, onCancel, showChecks,
6968
6973
  errorIframe && /* @__PURE__ */ jsx27("div", { style: { maxHeight: "606px", minHeight: "60vh", padding: "40px" }, children: /* @__PURE__ */ jsx27(ErrorCardMessage_default, { error: errorIframe, onClose: () => {
6969
6974
  setErrorIframe("");
6970
6975
  } }) }),
6971
- !error && /* @__PURE__ */ jsx27("div", { className: "creditformbox", children: paymentGateway == 32 ? /* @__PURE__ */ jsxs16("form", { id: "paymentForm", onSubmit: handleCardAdd, onKeyDown: (e) => {
6976
+ !error && !errorIframe && /* @__PURE__ */ jsx27("div", { className: "creditformbox", children: paymentGateway == 32 ? /* @__PURE__ */ jsxs16("form", { id: "paymentForm", onSubmit: handleCardAdd, onKeyDown: (e) => {
6972
6977
  if (e.key === "Enter" && loading) {
6973
6978
  e.preventDefault();
6974
6979
  e.stopPropagation();
@@ -8073,9 +8078,12 @@ function PartialPayment(props) {
8073
8078
  onClose: handleClose,
8074
8079
  children: [
8075
8080
  error && /* @__PURE__ */ jsx28("div", { style: { maxHeight: "606px", minHeight: "60vh", padding: "40px" }, children: /* @__PURE__ */ jsx28(ErrorCardMessage_default, { error, onClose: handleClose }) }),
8081
+ errorIframe && /* @__PURE__ */ jsx28("div", { style: { maxHeight: "606px", minHeight: "60vh", padding: "40px" }, children: /* @__PURE__ */ jsx28(ErrorCardMessage_default, { error: errorIframe, onClose: () => {
8082
+ setErrorIframe("");
8083
+ } }) }),
8076
8084
  success && /* @__PURE__ */ jsx28(SuccessMsz, { onClose: handleClose, tranId }),
8077
- !error && !success && /* @__PURE__ */ jsxs17(Fragment17, { children: [
8078
- (loading || loading2) && /* @__PURE__ */ jsx28(Loader_default, { loading: loading || loading2 }),
8085
+ !error && !success && !errorIframe && /* @__PURE__ */ jsxs17(Fragment17, { children: [
8086
+ (loading || loading2 || loadingIframe) && /* @__PURE__ */ jsx28(Loader_default, { loading: loading || loading2 || loadingIframe }),
8079
8087
  /* @__PURE__ */ jsx28("div", { className: "frac-card-payment-page frac-form", children: /* @__PURE__ */ jsxs17("div", { className: "parent-pay-container", children: [
8080
8088
  /* @__PURE__ */ jsx28("span", { className: "request-payment-close-popup", onClick: handleClose, children: /* @__PURE__ */ jsxs17("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", children: [
8081
8089
  /* @__PURE__ */ jsx28("g", { clipPath: "url(#clip0_12425_52336)", children: /* @__PURE__ */ jsx28("path", { d: "M9.46585 8.01168L15.6959 1.7814C16.1014 1.37615 16.1014 0.720912 15.6959 0.315659C15.2907 -0.0895946 14.6354 -0.0895946 14.2302 0.315659L7.99991 6.54593L1.76983 0.315659C1.36438 -0.0895946 0.709336 -0.0895946 0.304082 0.315659C-0.101361 0.720912 -0.101361 1.37615 0.304082 1.7814L6.53416 8.01168L0.304082 14.2419C-0.101361 14.6472 -0.101361 15.3024 0.304082 15.7077C0.506045 15.9098 0.771595 16.0114 1.03695 16.0114C1.30232 16.0114 1.56768 15.9098 1.76983 15.7077L7.99991 9.47742L14.2302 15.7077C14.4323 15.9098 14.6977 16.0114 14.9631 16.0114C15.2284 16.0114 15.4938 15.9098 15.6959 15.7077C16.1014 15.3024 16.1014 14.6472 15.6959 14.2419L9.46585 8.01168Z", fill: "#727272" }) }),
@@ -10510,7 +10518,10 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
10510
10518
  return /* @__PURE__ */ jsxs19(Fragment18, { children: [
10511
10519
  initialLoader && /* @__PURE__ */ jsx32(Loader_default, { loading: initialLoader }),
10512
10520
  error && /* @__PURE__ */ jsx32("div", { style: { maxHeight: "606px", minHeight: "60vh", padding: "40px" }, children: /* @__PURE__ */ jsx32(ErrorCardMessage_default, { error, onClose: handleClose }) }),
10513
- !error && /* @__PURE__ */ jsxs19(Fragment18, { children: [
10521
+ errorIframe && /* @__PURE__ */ jsx32("div", { style: { maxHeight: "606px", minHeight: "60vh", padding: "40px" }, children: /* @__PURE__ */ jsx32(ErrorCardMessage_default, { error: errorIframe, onClose: () => {
10522
+ setErrorIframe("");
10523
+ } }) }),
10524
+ !error && !errorIframe && /* @__PURE__ */ jsxs19(Fragment18, { children: [
10514
10525
  (loading || loading2 || loadingIframe) && /* @__PURE__ */ jsx32(Loader_default, { loading: loading || loading2 || loadingPrev || orderLoader || loadingIframe }),
10515
10526
  /* @__PURE__ */ jsxs19("div", { className: "frac-card-payment-page frac-form frac-new-form", children: [
10516
10527
  /* @__PURE__ */ jsx32("div", { ref: threeDSContainerRef, style: { width: "100%", height: "100%" } }),