@fractalpay/fractalpay-next-dev 0.0.122 → 0.0.123
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/PayButtonWithForm-453N3ZKD.mjs +729 -0
- package/dist/{chunk-SZFZJKGZ.mjs → chunk-JZL7H4SN.mjs} +160 -160
- package/dist/index.js +25 -25
- package/dist/index.mjs +13 -13
- package/package.json +1 -1
- package/dist/PayButtonWithForm-UOYZ3USY.mjs +0 -729
|
@@ -1,87 +1,4 @@
|
|
|
1
|
-
var
|
|
2
|
-
|
|
3
|
-
.loader {
|
|
4
|
-
position: fixed; /* Fixed position to cover the viewport */
|
|
5
|
-
top: 0;
|
|
6
|
-
left: 0;
|
|
7
|
-
width: 100%;
|
|
8
|
-
height: 100%;
|
|
9
|
-
display: flex;
|
|
10
|
-
justify-content: center;
|
|
11
|
-
align-items: center;
|
|
12
|
-
/* background: rgba(255, 255, 0, 0.01); Adjust the blur effect */
|
|
13
|
-
background-color: rgba(31, 29, 29, 0.52); /* Semi-transparent black background */
|
|
14
|
-
|
|
15
|
-
backdrop-filter: blur(.5px); /* Blur effect */
|
|
16
|
-
z-index: 999999999999 !important; /* Ensure it's on top of other elements */
|
|
17
|
-
transform: translate(0%, 0%) !important
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.lds-ellipsis {
|
|
21
|
-
display: inline-block;
|
|
22
|
-
position: relative;
|
|
23
|
-
width: 80px;
|
|
24
|
-
height: 80px;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.lds-ellipsis div {
|
|
28
|
-
position: absolute;
|
|
29
|
-
top: 33px;
|
|
30
|
-
width: 13px;
|
|
31
|
-
height: 13px;
|
|
32
|
-
border-radius: 50%;
|
|
33
|
-
background: #000;
|
|
34
|
-
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.lds-ellipsis div:nth-child(1) {
|
|
38
|
-
left: 8px;
|
|
39
|
-
animation: lds-ellipsis1 0.6s infinite;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.lds-ellipsis div:nth-child(2) {
|
|
43
|
-
left: 8px;
|
|
44
|
-
animation: lds-ellipsis2 0.6s infinite;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.lds-ellipsis div:nth-child(3) {
|
|
48
|
-
left: 32px;
|
|
49
|
-
animation: lds-ellipsis2 0.6s infinite;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.lds-ellipsis div:nth-child(4) {
|
|
53
|
-
left: 56px;
|
|
54
|
-
animation: lds-ellipsis3 0.6s infinite;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
@keyframes lds-ellipsis1 {
|
|
58
|
-
0% {
|
|
59
|
-
transform: scale(0);
|
|
60
|
-
}
|
|
61
|
-
100% {
|
|
62
|
-
transform: scale(1);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
@keyframes lds-ellipsis2 {
|
|
67
|
-
0% {
|
|
68
|
-
transform: translate(0, 0);
|
|
69
|
-
}
|
|
70
|
-
100% {
|
|
71
|
-
transform: translate(24px, 0);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
@keyframes lds-ellipsis3 {
|
|
76
|
-
0% {
|
|
77
|
-
transform: scale(1);
|
|
78
|
-
}
|
|
79
|
-
100% {
|
|
80
|
-
transform: scale(0);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
`),S=M;var Q=e=>c.createElement(c.Fragment,null,c.createElement(S,null),(e==null?void 0:e.loading)&&c.createElement("div",{className:"loader"},c.createElement("div",{className:"lds-ellipsis"},c.createElement("div",null),c.createElement("div",null),c.createElement("div",null),c.createElement("div",null)))),ue=Q;var{name:h}=j();console.log(h,"dgijiisdfhg");var o="https://fractal-userdata-upload.s3.us-east-1.amazonaws.com/";h==="@fractalpay/fractalpay-next-dev"?(f="https://dev-sky-node.fractalpay.com/",g="https://dev-widget.fractalpay.com/",x="https://api-dev.merchant-trends.com/",m="https://token-cert.dcap.com/v1/client",u="pk_test_51RH5Wc2SlJvyNZ80hpUDy88r4rVdpijfKbNaWaUyQEE6rOrPmG2JQyAj7G5amBD5z5daC56WaeT4jfNhrrPcGOEP00UyKu6AOw"):h==="@fractalpay/fractalpay-next-test"?(f="https://testapi.fractalpay.com/",g="https://staging-widget.fractalpay.com/",x="https://api-dev.merchant-trends.com/",m="https://token-cert.dcap.com/v1/client",u="pk_test_51RH5Wc2SlJvyNZ80hpUDy88r4rVdpijfKbNaWaUyQEE6rOrPmG2JQyAj7G5amBD5z5daC56WaeT4jfNhrrPcGOEP00UyKu6AOw"):h==="@fractalpay/fractalpay-next-testprod"?(f="https://sky-node-prod.fractalpay.com/",g="https://widget-prod.fractalpay.com/",x="https://api.merchant-trends.com/",m="https://token.dcap.com/v1/client",u="pk_live_51RH5WXCZ90rBGeaYwqmjWqgUmudTgxL6uKOE1keu617jvRx9OvW2ke6zGf6SKgv4ixsBLcIPQ4sQIEhp8MgBX39500CqULxOPB"):h==="@fractalpay/fractalpay-next"?(f="https://api.fractalpay.com/",g="https://widget.fractalpay.com/",x="https://api.merchant-trends.com/",m="https://token.dcap.com/v1/client",u="pk_live_51RH5WXCZ90rBGeaYwqmjWqgUmudTgxL6uKOE1keu617jvRx9OvW2ke6zGf6SKgv4ixsBLcIPQ4sQIEhp8MgBX39500CqULxOPB"):(g="http://localhost:8082/",f="http://localhost:8081/",x="https://api-dev.merchant-trends.com/",m="https://token-cert.dcap.com/v1/client",u="pk_test_51RH5Wc2SlJvyNZ80hpUDy88r4rVdpijfKbNaWaUyQEE6rOrPmG2JQyAj7G5amBD5z5daC56WaeT4jfNhrrPcGOEP00UyKu6AOw");var f,g,x,m,u;import J from"react";var H=e=>J.createElement("style",null,`
|
|
1
|
+
var M=Object.defineProperty,G=Object.defineProperties;var Y=Object.getOwnPropertyDescriptors;var v=Object.getOwnPropertySymbols;var E=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable;var N=(e,t,a)=>t in e?M(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,pe=(e,t)=>{for(var a in t||(t={}))E.call(t,a)&&N(e,a,t[a]);if(v)for(var a of v(t))P.call(t,a)&&N(e,a,t[a]);return e},de=(e,t)=>G(e,Y(t));var ce=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(t,a)=>(typeof require!="undefined"?require:t)[a]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var me=(e,t)=>{var a={};for(var o in e)E.call(e,o)&&t.indexOf(o)<0&&(a[o]=e[o]);if(e!=null&&v)for(var o of v(e))t.indexOf(o)<0&&P.call(e,o)&&(a[o]=e[o]);return a};var I=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var j=I((ke,H)=>{H.exports={name:"@fractalpay/fractalpay-next-dev",version:"0.0.123",private:!1,scripts:{dev:"next dev -p 4001",build:"next build",start:"next start",lint:"next lint",bundle:"tsup src/app/index.ts"},dependencies:{"@stripe/react-stripe-js":"^5.3.0","@stripe/stripe-js":"^8.3.0","@types/yup":"^0.29.14",axios:"^1.8.1",bootstrap:"^5.3.3","credit-card-type":"^10.0.1",formik:"^2.4.6","node-forge":"^1.3.1","react-bootstrap":"^2.10.5","react-bs-datatable":"^3.15.0","react-datepicker":"^7.5.0","react-icons":"^5.5.0","react-number-format":"^5.4.3","react-toastify":"^10.0.6","socket.io-client":"^4.8.1","styled-components":"^6.1.15",sweetalert2:"^11.22.0",yup:"^1.6.1"},peerdependencies:{next:"15.0.3",react:">=18.0.0 <20.0.0","react-dom":">=18.0.0 <20.0.0"},devDependencies:{"@types/estree":"^1.0.8","@types/node":"^20","@types/node-forge":"^1.3.11","@types/react":"^18","@types/react-dom":"^18",autoprefixer:"^10.4.20","credit-card-type":"^10.0.1",eslint:"^8","eslint-config-next":"15.0.3",next:"^15.0.3",react:"^18.3.1","react-bs-datatable":"^3.15.0","react-datepicker":"^7.5.0","react-dom":"^18.3.1","react-toastify":"^10.0.6",tsup:"^8.4.0",typescript:"^5"},author:"Mukul",license:"MIT",keywords:["nextjs","next","typescript","tailwindcss"],main:"dist/index.js",publishConfig:{access:"public"}}});import q from"react";var Q=e=>q.createElement("style",null,`
|
|
85
2
|
.fractal-input::placeholder {
|
|
86
3
|
color: #35254D;
|
|
87
4
|
opacity: 1;
|
|
@@ -334,7 +251,164 @@ var O=Object.defineProperty,A=Object.defineProperties;var G=Object.getOwnPropert
|
|
|
334
251
|
padding: 0px !important;
|
|
335
252
|
border-radius: 12px !important;
|
|
336
253
|
}
|
|
337
|
-
`),
|
|
254
|
+
`),S=Q;import f from"react";var J=({open:e,onClose:t,children:a,maxWidth:o})=>e?f.createElement(f.Fragment,null,f.createElement(S,null),f.createElement("div",{className:"fractal-popup"},f.createElement("div",{className:"fractal-popup-content request-payment-popup-container",style:{maxWidth:`${o!=null?o:"auto"}`}},a))):null,be=J;import{useEffect as z}from"react";var{name:y}=j();console.log(y,"dgijiisdfhg");var n="https://fractal-userdata-upload.s3.us-east-1.amazonaws.com/";y==="@fractalpay/fractalpay-next-dev"?(u="https://dev-sky-node.fractalpay.com/",g="https://dev-widget.fractalpay.com/",x="https://api-dev.merchant-trends.com/",m="https://token-cert.dcap.com/v1/client",h="pk_test_51RH5Wc2SlJvyNZ80hpUDy88r4rVdpijfKbNaWaUyQEE6rOrPmG2JQyAj7G5amBD5z5daC56WaeT4jfNhrrPcGOEP00UyKu6AOw"):y==="@fractalpay/fractalpay-next-test"?(u="https://testapi.fractalpay.com/",g="https://staging-widget.fractalpay.com/",x="https://api-dev.merchant-trends.com/",m="https://token-cert.dcap.com/v1/client",h="pk_test_51RH5Wc2SlJvyNZ80hpUDy88r4rVdpijfKbNaWaUyQEE6rOrPmG2JQyAj7G5amBD5z5daC56WaeT4jfNhrrPcGOEP00UyKu6AOw"):y==="@fractalpay/fractalpay-next-testprod"?(u="https://sky-node-prod.fractalpay.com/",g="https://widget-prod.fractalpay.com/",x="https://api.merchant-trends.com/",m="https://token.dcap.com/v1/client",h="pk_live_51RH5WXCZ90rBGeaYwqmjWqgUmudTgxL6uKOE1keu617jvRx9OvW2ke6zGf6SKgv4ixsBLcIPQ4sQIEhp8MgBX39500CqULxOPB"):y==="@fractalpay/fractalpay-next"?(u="https://api.fractalpay.com/",g="https://widget.fractalpay.com/",x="https://api.merchant-trends.com/",m="https://token.dcap.com/v1/client",h="pk_live_51RH5WXCZ90rBGeaYwqmjWqgUmudTgxL6uKOE1keu617jvRx9OvW2ke6zGf6SKgv4ixsBLcIPQ4sQIEhp8MgBX39500CqULxOPB"):(g="http://localhost:8082/",u="http://localhost:8081/",x="https://api-dev.merchant-trends.com/",m="https://token-cert.dcap.com/v1/client",h="pk_test_51RH5Wc2SlJvyNZ80hpUDy88r4rVdpijfKbNaWaUyQEE6rOrPmG2JQyAj7G5amBD5z5daC56WaeT4jfNhrrPcGOEP00UyKu6AOw");var u,g,x,m,h;function L(){return z(()=>{let e=m;if(typeof window!="undefined"){if(window.DatacapWebToken){console.log("\u2705 Datacap already available");return}if(document.querySelector(`script[src="${e}"]`))console.log("\u2139\uFE0F Script already in DOM, waiting for Datacap...");else{let t=document.createElement("script");t.src=e,t.async=!0,t.onload=()=>{console.log("\u2705 Datacap script loaded"),window.DatacapWebToken?console.log("\u2705 DatacapWebToken is ready:",window.DatacapWebToken):console.warn("\u26A0\uFE0F Script loaded, but DatacapWebToken not found")},t.onerror=a=>{console.error("\u274C Failed to load Datacap script",a)},document.head.appendChild(t)}}},[]),z(()=>{let e="forge-cdn-script";if(!document.getElementById(e)){let t=document.createElement("script");t.src="https://cdn.jsdelivr.net/npm/node-forge@1.0.0/dist/forge.min.js",t.id=e,t.async=!0,document.head.appendChild(t)}return()=>{let t=document.getElementById(e);t&&document.head.removeChild(t)}},[]),null}import X from"react";function Z({}){return X.createElement("style",null,`
|
|
255
|
+
.frac-card-bank-radio-main{
|
|
256
|
+
display: flex;
|
|
257
|
+
flex-direction: column;
|
|
258
|
+
align-items: flex-start;
|
|
259
|
+
align-self: stretch;
|
|
260
|
+
border-radius: 14px;
|
|
261
|
+
border: 1px solid #E0DFE2;
|
|
262
|
+
overflow: hidden;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.frac-card-bank-radio{
|
|
266
|
+
display: flex;
|
|
267
|
+
padding: 12px 16px;
|
|
268
|
+
justify-content: space-between;
|
|
269
|
+
align-items: center;
|
|
270
|
+
align-self: stretch;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
input[type="radio"] {
|
|
274
|
+
accent-color: #000;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.frac-card-title-main{
|
|
278
|
+
display: flex;
|
|
279
|
+
align-items: center;
|
|
280
|
+
gap: 12px;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.frac-card-label{
|
|
284
|
+
display: flex;
|
|
285
|
+
flex-direction: column;
|
|
286
|
+
align-items: flex-start;
|
|
287
|
+
gap: 2px;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.frac-card-label-text{
|
|
291
|
+
color: #727272;
|
|
292
|
+
font-family: Inter;
|
|
293
|
+
font-size: 12px;
|
|
294
|
+
font-style: normal;
|
|
295
|
+
font-weight: 500;
|
|
296
|
+
line-height: 18px;
|
|
297
|
+
letter-spacing: -0.24px;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.frac-card-label-amount{
|
|
301
|
+
color: #161616;
|
|
302
|
+
text-align: center;
|
|
303
|
+
font-family: Inter;
|
|
304
|
+
font-size: 16px;
|
|
305
|
+
font-style: normal;
|
|
306
|
+
font-weight: 500;
|
|
307
|
+
line-height: 140%;
|
|
308
|
+
letter-spacing: -0.32px;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.frac-payment-type-logo{
|
|
312
|
+
width: 24px;
|
|
313
|
+
height: 24px;
|
|
314
|
+
aspect-ratio: 1/1;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.frac-card-bank-radio-main .frac-card-bank-radio:nth-child(2) {
|
|
318
|
+
border-top: 1px solid #E0DFE2;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.frac-card-bank-radio-main .frac-card-bank-radio:nth-child(3) {
|
|
322
|
+
border-top: 1px solid #E0DFE2;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.frac-card-bank-radio.frac-active {
|
|
326
|
+
background: #F6F6F7;
|
|
327
|
+
}
|
|
328
|
+
`)}import c from"react";import $ from"react";var V=e=>$.createElement("style",null,`
|
|
329
|
+
|
|
330
|
+
.loader {
|
|
331
|
+
position: fixed; /* Fixed position to cover the viewport */
|
|
332
|
+
top: 0;
|
|
333
|
+
left: 0;
|
|
334
|
+
width: 100%;
|
|
335
|
+
height: 100%;
|
|
336
|
+
display: flex;
|
|
337
|
+
justify-content: center;
|
|
338
|
+
align-items: center;
|
|
339
|
+
/* background: rgba(255, 255, 0, 0.01); Adjust the blur effect */
|
|
340
|
+
background-color: rgba(31, 29, 29, 0.52); /* Semi-transparent black background */
|
|
341
|
+
|
|
342
|
+
backdrop-filter: blur(.5px); /* Blur effect */
|
|
343
|
+
z-index: 999999999999 !important; /* Ensure it's on top of other elements */
|
|
344
|
+
transform: translate(0%, 0%) !important
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
.lds-ellipsis {
|
|
348
|
+
display: inline-block;
|
|
349
|
+
position: relative;
|
|
350
|
+
width: 80px;
|
|
351
|
+
height: 80px;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.lds-ellipsis div {
|
|
355
|
+
position: absolute;
|
|
356
|
+
top: 33px;
|
|
357
|
+
width: 13px;
|
|
358
|
+
height: 13px;
|
|
359
|
+
border-radius: 50%;
|
|
360
|
+
background: #000;
|
|
361
|
+
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
.lds-ellipsis div:nth-child(1) {
|
|
365
|
+
left: 8px;
|
|
366
|
+
animation: lds-ellipsis1 0.6s infinite;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
.lds-ellipsis div:nth-child(2) {
|
|
370
|
+
left: 8px;
|
|
371
|
+
animation: lds-ellipsis2 0.6s infinite;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
.lds-ellipsis div:nth-child(3) {
|
|
375
|
+
left: 32px;
|
|
376
|
+
animation: lds-ellipsis2 0.6s infinite;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
.lds-ellipsis div:nth-child(4) {
|
|
380
|
+
left: 56px;
|
|
381
|
+
animation: lds-ellipsis3 0.6s infinite;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
@keyframes lds-ellipsis1 {
|
|
385
|
+
0% {
|
|
386
|
+
transform: scale(0);
|
|
387
|
+
}
|
|
388
|
+
100% {
|
|
389
|
+
transform: scale(1);
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
@keyframes lds-ellipsis2 {
|
|
394
|
+
0% {
|
|
395
|
+
transform: translate(0, 0);
|
|
396
|
+
}
|
|
397
|
+
100% {
|
|
398
|
+
transform: translate(24px, 0);
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
@keyframes lds-ellipsis3 {
|
|
403
|
+
0% {
|
|
404
|
+
transform: scale(1);
|
|
405
|
+
}
|
|
406
|
+
100% {
|
|
407
|
+
transform: scale(0);
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
`),D=V;var R=e=>c.createElement(c.Fragment,null,c.createElement(D,null),(e==null?void 0:e.loading)&&c.createElement("div",{className:"loader"},c.createElement("div",{className:"lds-ellipsis"},c.createElement("div",null),c.createElement("div",null),c.createElement("div",null),c.createElement("div",null)))),We=R;var Ge=e=>{try{let t=JSON.parse(e);return typeof t=="object"&&t!==null}catch(t){return!1}},Ye=[{value:"personal saving",label:"Personal Saving"},{value:"business saving",label:"Business Saving"},{value:"personal checking",label:"Personal Checking"},{value:"business checking",label:"Business Checking"}];function U(e){let t=Number(e);return isNaN(t)?`$${e}`:new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:2,maximumFractionDigits:2}).format(t)}var ee=n+"widget/mc-img.svg",te=n+"widget/visa-img.svg",re=n+"widget/ae-img.svg",ae=n+"widget/discover-img.svg",b=n+"widget/card.svg",ie=n+"widget/bank.svg",Ie=n+"widget/Trash.svg",qe=n+"widget/secure-img.png",Qe=n+"widget/pov-by.png",B=n+"widget/pax.svg",F=n+"widget/Bank _New.svg",T=e=>{switch(e==null?void 0:e.toLowerCase()){case"visa":return te;case"mastercard":case"mc":case"m/c":return ee;case"amex":case"american express":case"ae":return re;case"discover":case"dcvr":return ae;case"bank":return ie;default:return b}};import s from"react";import oe from"react";function w(){return oe.createElement("style",null,`
|
|
338
412
|
.card-error .logo-container {
|
|
339
413
|
display: flex;
|
|
340
414
|
justify-content: center;
|
|
@@ -439,78 +513,4 @@ var O=Object.defineProperty,A=Object.defineProperties;var G=Object.getOwnPropert
|
|
|
439
513
|
padding:10px 17px;
|
|
440
514
|
cursor:pointer;
|
|
441
515
|
}
|
|
442
|
-
`)}var
|
|
443
|
-
.frac-card-bank-radio-main{
|
|
444
|
-
display: flex;
|
|
445
|
-
flex-direction: column;
|
|
446
|
-
align-items: flex-start;
|
|
447
|
-
align-self: stretch;
|
|
448
|
-
border-radius: 14px;
|
|
449
|
-
border: 1px solid #E0DFE2;
|
|
450
|
-
overflow: hidden;
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
.frac-card-bank-radio{
|
|
454
|
-
display: flex;
|
|
455
|
-
padding: 12px 16px;
|
|
456
|
-
justify-content: space-between;
|
|
457
|
-
align-items: center;
|
|
458
|
-
align-self: stretch;
|
|
459
|
-
}
|
|
460
|
-
|
|
461
|
-
input[type="radio"] {
|
|
462
|
-
accent-color: #000;
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
.frac-card-title-main{
|
|
466
|
-
display: flex;
|
|
467
|
-
align-items: center;
|
|
468
|
-
gap: 12px;
|
|
469
|
-
}
|
|
470
|
-
|
|
471
|
-
.frac-card-label{
|
|
472
|
-
display: flex;
|
|
473
|
-
flex-direction: column;
|
|
474
|
-
align-items: flex-start;
|
|
475
|
-
gap: 2px;
|
|
476
|
-
}
|
|
477
|
-
|
|
478
|
-
.frac-card-label-text{
|
|
479
|
-
color: #727272;
|
|
480
|
-
font-family: Inter;
|
|
481
|
-
font-size: 12px;
|
|
482
|
-
font-style: normal;
|
|
483
|
-
font-weight: 500;
|
|
484
|
-
line-height: 18px;
|
|
485
|
-
letter-spacing: -0.24px;
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
.frac-card-label-amount{
|
|
489
|
-
color: #161616;
|
|
490
|
-
text-align: center;
|
|
491
|
-
font-family: Inter;
|
|
492
|
-
font-size: 16px;
|
|
493
|
-
font-style: normal;
|
|
494
|
-
font-weight: 500;
|
|
495
|
-
line-height: 140%;
|
|
496
|
-
letter-spacing: -0.32px;
|
|
497
|
-
}
|
|
498
|
-
|
|
499
|
-
.frac-payment-type-logo{
|
|
500
|
-
width: 24px;
|
|
501
|
-
height: 24px;
|
|
502
|
-
aspect-ratio: 1/1;
|
|
503
|
-
}
|
|
504
|
-
|
|
505
|
-
.frac-card-bank-radio-main .frac-card-bank-radio:nth-child(2) {
|
|
506
|
-
border-top: 1px solid #E0DFE2;
|
|
507
|
-
}
|
|
508
|
-
|
|
509
|
-
.frac-card-bank-radio-main .frac-card-bank-radio:nth-child(3) {
|
|
510
|
-
border-top: 1px solid #E0DFE2;
|
|
511
|
-
}
|
|
512
|
-
|
|
513
|
-
.frac-card-bank-radio.frac-active {
|
|
514
|
-
background: #F6F6F7;
|
|
515
|
-
}
|
|
516
|
-
`)}import i from"react";var at=({listHeading:e="Card",ListItems:t,selectedCard:a,setSelectedCard:s,paymentGateway:w,handleDeleteCard:F,otherButtonAction:W,otherButtonLabel:_,headingClass:K})=>{let T=o+"widget/Trash.svg";return console.log(a,"selectedCard another",t),i.createElement(i.Fragment,null,i.createElement("h6",{className:K||"card-ach-heading",style:{marginBottom:"10px !important"}},e),i.createElement("div",{className:"card-lint-div-in"},i.createElement("div",{className:"card-list-div"},t&&(t==null?void 0:t.length)>0&&(t==null?void 0:t.map((r,ie)=>{let k=!1;return w&&(k=w!=(r==null?void 0:r.payment_method_type)&&(r==null?void 0:r.card_type)!="Bank"),i.createElement("div",{key:r==null?void 0:r.id,className:"card-list-single-div"},i.createElement("div",{className:"card-number-radio"},i.createElement("input",{disabled:k,type:"radio",className:"cardRadio",name:"selected_card",id:"",checked:(a==null?void 0:a.id)===(r==null?void 0:r.id),onChange:oe=>s(r)}),i.createElement("label",{htmlFor:"",className:"card-number-last-four"},"**** ",r==null?void 0:r.cardlastfourdigit),(r==null?void 0:r.card_type)!="Bank"&&i.createElement("h6",{className:"card-expiry-date"},r==null?void 0:r.expmonth,"/",r==null?void 0:r.expyear)),i.createElement("div",{className:"card-number-radio"},i.createElement("span",{className:"visa-card"},i.createElement("img",{src:U(r==null?void 0:r.card_type),alt:""})),i.createElement("span",{className:"visa-card",style:{cursor:"pointer"},onClick:()=>F(r==null?void 0:r.id)},i.createElement("img",{src:T,alt:""}))))}))),i.createElement("div",{className:"pay-with-other-card",onClick:W},_,i.createElement("img",{src:y,alt:""}))))};var nt={PROPAYKEY:"25",PAYARCKEY:"26",STRIPEKEYCC:"27",PAYRIXKEY:"28",SKYFIACHKEY:"29",JUSTIFIKEY:"30",INFINICEPTKEY:"31",FRACTALKEY:"32"};export{ne as a,se as b,le as c,pe as d,ue as e,o as f,f as g,g as h,x as i,u as j,Ce as k,je as l,Pe as m,P as n,z as o,R as p,Me as q,Le as r,ae as s,at as t,nt as u};
|
|
516
|
+
`)}var ne=({onClose:e,error:t})=>s.createElement(s.Fragment,null,s.createElement(w,null),s.createElement("div",{className:"card-error"},s.createElement("div",{className:"payment-error-container"},s.createElement("div",{className:"error-icon"},s.createElement("div",{className:"circle"},s.createElement("i",{className:"fa fa-times","aria-hidden":"true"})),s.createElement("div",{className:"error-text"},s.createElement("div",{className:"payment-error-text"},t),s.createElement("div",{className:"thank-you-text"},"Try again later ")),s.createElement("div",{className:"error-btn-div"},s.createElement("button",{onClick:e},"OK")))))),Re=ne;import d from"react";var it=e=>d.createElement(d.Fragment,null,d.createElement("div",{className:`frac-card-bank-radio ${e.activetab===e.value?"frac-active":""}`,onClick:()=>e.onChange(e.value),role:"radio"},d.createElement("div",{className:"frac-card-title-main"},d.createElement("img",{src:e.label.toLowerCase()==="card"?b:e.label.toLowerCase()==="reader"?B:F,className:"frac-payment-type-logo",alt:""}),d.createElement("div",{className:"frac-card-label"},d.createElement("div",{className:"frac-card-label-text"},e.label),d.createElement("div",{className:"frac-card-label-amount"},U(e.amount)))),d.createElement("div",null,d.createElement("input",{name:"paymenttype",checked:e.activetab===e.value,type:"radio",value:e.value,onChange:t=>{e.onChange(t.target.value)}}))));import i from"react";var dt=({listHeading:e="Card",ListItems:t,selectedCard:a,setSelectedCard:o,paymentGateway:k,handleDeleteCard:_,otherButtonAction:K,otherButtonLabel:W,headingClass:O})=>{let A=n+"widget/Trash.svg";return console.log(a,"selectedCard another",t),i.createElement(i.Fragment,null,i.createElement("h6",{className:O||"card-ach-heading",style:{marginBottom:"10px !important"}},e),i.createElement("div",{className:"card-lint-div-in"},i.createElement("div",{className:"card-list-div"},t&&(t==null?void 0:t.length)>0&&(t==null?void 0:t.map((r,se)=>{let C=!1;return k&&(C=k!=(r==null?void 0:r.payment_method_type)&&(r==null?void 0:r.card_type)!="Bank"),i.createElement("div",{key:r==null?void 0:r.id,className:"card-list-single-div"},i.createElement("div",{className:"card-number-radio"},i.createElement("input",{disabled:C,type:"radio",className:"cardRadio",name:"selected_card",id:"",checked:(a==null?void 0:a.id)===(r==null?void 0:r.id),onChange:le=>o(r)}),i.createElement("label",{htmlFor:"",className:"card-number-last-four"},"**** ",r==null?void 0:r.cardlastfourdigit),(r==null?void 0:r.card_type)!="Bank"&&i.createElement("h6",{className:"card-expiry-date"},r==null?void 0:r.expmonth,"/",r==null?void 0:r.expyear)),i.createElement("div",{className:"card-number-radio"},i.createElement("span",{className:"visa-card"},i.createElement("img",{src:T(r==null?void 0:r.card_type),alt:""})),i.createElement("span",{className:"visa-card",style:{cursor:"pointer"},onClick:()=>_(r==null?void 0:r.id)},i.createElement("img",{src:A,alt:""}))))}))),i.createElement("div",{className:"pay-with-other-card",onClick:K},W,i.createElement("img",{src:b,alt:""}))))};var ft={PROPAYKEY:"25",PAYARCKEY:"26",STRIPEKEYCC:"27",PAYRIXKEY:"28",SKYFIACHKEY:"29",JUSTIFIKEY:"30",INFINICEPTKEY:"31",FRACTALKEY:"32"};export{pe as a,de as b,ce as c,me as d,We as e,n as f,u as g,g as h,x as i,h as j,S as k,be as l,Ge as m,Ye as n,U as o,B as p,L as q,Re as r,it as s,Z as t,dt as u,ft as v};
|