@fractalpay/fractalpay-next-dev 0.0.221 → 0.0.222

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-dev",
42
- version: "0.0.221",
42
+ version: "0.0.222",
43
43
  private: false,
44
44
  type: "module",
45
45
  scripts: {
@@ -8573,7 +8573,6 @@ function SkyChargewidgetstyles() {
8573
8573
  font-family: 'Inter', sans-serif !important;
8574
8574
  }
8575
8575
  .frac-form .form-group-frac{
8576
- margin:0 !important;
8577
8576
  padding: 5px 0;
8578
8577
  }
8579
8578
  .frac-form .mb-4{
@@ -8897,7 +8896,6 @@ function SkyChargewidgetstyles() {
8897
8896
  .form-control-frac{box-sizing: border-box ;}
8898
8897
  #PaymentForm .form-group-frac{
8899
8898
  padding:5px 0 ;
8900
- matgin: 0 !important
8901
8899
  }
8902
8900
 
8903
8901
  .toggle-label {
@@ -10126,6 +10124,7 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
10126
10124
  setActive("card");
10127
10125
  setActiveinCard("list");
10128
10126
  setCardList(cardlists);
10127
+ setLoadingIframe(false);
10129
10128
  } else {
10130
10129
  setActive("card");
10131
10130
  setCardList([]);
@@ -10475,6 +10474,7 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
10475
10474
  styles: {}
10476
10475
  });
10477
10476
  }, []);
10477
+ console.log(activeinCard === "list", "activeinCard", activeList);
10478
10478
  return /* @__PURE__ */ jsxs19(Fragment18, { children: [
10479
10479
  initialLoader && /* @__PURE__ */ jsx32(Loader_default, { loading: initialLoader }),
10480
10480
  error && /* @__PURE__ */ jsx32("div", { style: { maxHeight: "606px", minHeight: "60vh", padding: "40px" }, children: /* @__PURE__ */ jsx32(ErrorCardMessage_default, { error, onClose: handleClose }) }),
@@ -10680,7 +10680,7 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
10680
10680
  {
10681
10681
  isOpen: show,
10682
10682
  tokenKey: dcToken,
10683
- setLoader: setLoadingIframe
10683
+ setLoader: activeinCard === "form" ? setLoadingIframe : null
10684
10684
  }
10685
10685
  ) }),
10686
10686
  /* @__PURE__ */ jsxs19("div", { className: "form-group-frac", children: [
@@ -10756,12 +10756,12 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
10756
10756
  minHeight: "444px",
10757
10757
  maxHeight: "444px"
10758
10758
  }, children: [
10759
- /* @__PURE__ */ jsxs19("div", { className: "form-group-frac mb-4", children: [
10759
+ /* @__PURE__ */ jsxs19("div", { className: "form-group-frac", children: [
10760
10760
  /* @__PURE__ */ jsx32("label", { htmlFor: "nameonaccount", children: "Name on account" }),
10761
10761
  /* @__PURE__ */ jsx32("input", { type: "text", id: "nameonaccount", className: "form-control-frac", maxLength: 100, placeholder: "John Doe", name: "name", value: (_l = achData == null ? void 0 : achData.name) != null ? _l : "", onChange: handleChangeAch }),
10762
10762
  (achError == null ? void 0 : achError.name) && /* @__PURE__ */ jsx32("span", { className: "error-span", children: achError == null ? void 0 : achError.name })
10763
10763
  ] }),
10764
- /* @__PURE__ */ jsxs19("div", { className: "form-group-frac mb-4", children: [
10764
+ /* @__PURE__ */ jsxs19("div", { className: "form-group-frac", children: [
10765
10765
  /* @__PURE__ */ jsx32("label", { htmlFor: "routingnumber", children: "Routing number" }),
10766
10766
  /* @__PURE__ */ jsx32(
10767
10767
  "input",
@@ -10778,7 +10778,7 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
10778
10778
  ),
10779
10779
  (achError == null ? void 0 : achError.routingNumber) && /* @__PURE__ */ jsx32("span", { className: "error-span", children: achError == null ? void 0 : achError.routingNumber })
10780
10780
  ] }),
10781
- /* @__PURE__ */ jsxs19("div", { className: "form-group-frac mb-4", children: [
10781
+ /* @__PURE__ */ jsxs19("div", { className: "form-group-frac", children: [
10782
10782
  /* @__PURE__ */ jsx32("label", { htmlFor: "accountnumber", children: "Account number" }),
10783
10783
  /* @__PURE__ */ jsx32(
10784
10784
  "input",
@@ -10795,7 +10795,7 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
10795
10795
  ),
10796
10796
  (achError == null ? void 0 : achError.accountNumber) && /* @__PURE__ */ jsx32("span", { className: "error-span", children: achError == null ? void 0 : achError.accountNumber })
10797
10797
  ] }),
10798
- /* @__PURE__ */ jsxs19("div", { className: "form-group-frac mb-4", children: [
10798
+ /* @__PURE__ */ jsxs19("div", { className: "form-group-frac", children: [
10799
10799
  /* @__PURE__ */ jsx32("label", { htmlFor: "confirmaccountnumber", children: "Confirm account number" }),
10800
10800
  /* @__PURE__ */ jsx32(
10801
10801
  "input",
@@ -10812,7 +10812,7 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
10812
10812
  ),
10813
10813
  (achError == null ? void 0 : achError.confirmAccountNumber) && /* @__PURE__ */ jsx32("span", { className: "error-span", children: achError == null ? void 0 : achError.confirmAccountNumber })
10814
10814
  ] }),
10815
- /* @__PURE__ */ jsxs19("div", { className: "form-group-frac mb-4", children: [
10815
+ /* @__PURE__ */ jsxs19("div", { className: "form-group-frac", children: [
10816
10816
  /* @__PURE__ */ jsx32("label", { htmlFor: "bankname", children: "Bank name" }),
10817
10817
  /* @__PURE__ */ jsx32(
10818
10818
  "input",
@@ -10829,7 +10829,7 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
10829
10829
  ),
10830
10830
  (achError == null ? void 0 : achError.bankName) && /* @__PURE__ */ jsx32("span", { className: "error-span", children: achError == null ? void 0 : achError.bankName })
10831
10831
  ] }),
10832
- ((achData == null ? void 0 : achData.accountType) === "business saving" || (achData == null ? void 0 : achData.accountType) === "business checking") && /* @__PURE__ */ jsxs19("div", { className: "form-group-frac mb-4", children: [
10832
+ ((achData == null ? void 0 : achData.accountType) === "business saving" || (achData == null ? void 0 : achData.accountType) === "business checking") && /* @__PURE__ */ jsxs19("div", { className: "form-group-frac", children: [
10833
10833
  /* @__PURE__ */ jsx32("label", { htmlFor: "companyName", children: "Company name" }),
10834
10834
  /* @__PURE__ */ jsx32(
10835
10835
  "input",
@@ -10846,18 +10846,18 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
10846
10846
  ),
10847
10847
  (achError == null ? void 0 : achError.companyName) && /* @__PURE__ */ jsx32("span", { className: "error-span", children: achError == null ? void 0 : achError.companyName })
10848
10848
  ] }),
10849
- /* @__PURE__ */ jsxs19("div", { className: "form-group-frac mb-4", children: [
10849
+ /* @__PURE__ */ jsxs19("div", { className: "form-group-frac", children: [
10850
10850
  /* @__PURE__ */ jsx32("label", { htmlFor: "accounttype", children: "Select account type" }),
10851
10851
  /* @__PURE__ */ jsxs19("select", { name: "accountType", id: "accounttype", className: "form-control-frac", value: (_r = achData == null ? void 0 : achData.accountType) != null ? _r : "", onChange: handleChangeAch, children: [
10852
10852
  /* @__PURE__ */ jsx32("option", { value: "", children: "Select account" }),
10853
10853
  accountTypes.map((type) => /* @__PURE__ */ jsx32("option", { value: type.value, children: type.label }, type.value))
10854
10854
  ] })
10855
10855
  ] }),
10856
- customerId && /* @__PURE__ */ jsxs19("div", { className: "form-group-frac mb-4 save-ach-div", style: { paddingTop: "5px" }, children: [
10856
+ customerId && /* @__PURE__ */ jsxs19("div", { className: "form-group-frac save-ach-div", style: { paddingTop: "5px" }, children: [
10857
10857
  /* @__PURE__ */ jsx32("input", { type: "checkbox", id: "saveACH", className: "", maxLength: 100, placeholder: "My Bank", checked: saveACHinfo, onChange: (e) => setSaveACHinfo(e.target.checked) }),
10858
10858
  /* @__PURE__ */ jsx32("label", { className: "saveachlabel", htmlFor: "saveACH", children: "Save ACH" })
10859
10859
  ] }),
10860
- saveACHinfo && /* @__PURE__ */ jsx32("div", { className: "form-group-frac mb-4 saveachtext", children: /* @__PURE__ */ jsxs19("p", { children: [
10860
+ saveACHinfo && /* @__PURE__ */ jsx32("div", { className: "form-group-frac saveachtext", children: /* @__PURE__ */ jsxs19("p", { children: [
10861
10861
  "If checked, I agree to give the ",
10862
10862
  /* @__PURE__ */ jsx32("b", { children: merchantName || "merchant" }),
10863
10863
  " permission to charge this bank account for agreed-upon purchases in the future."