@fractalpay/fractalpay-next-dev 0.0.112 → 0.0.114

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.
@@ -1,512 +0,0 @@
1
- var A=Object.defineProperty,M=Object.defineProperties;var G=Object.getOwnPropertyDescriptors;var v=Object.getOwnPropertySymbols;var E=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable;var N=(e,t,a)=>t in e?A(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,le=(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},pe=(e,t)=>M(e,G(t));var de=(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 ce=(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 Y=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var j=Y((we,J)=>{J.exports={name:"@fractalpay/fractalpay-next-dev",version:"0.0.112",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 c from"react";import I from"react";var q=e=>I.createElement("style",null,`
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=q;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)))),ye=Q;var{name:h}=j();console.log(h,"dgijiisdfhg");var n="https://fractal-userdata-upload.s3.us-east-1.amazonaws.com/";h==="@fractalpay/fractalpay-next-dev"?(f="https://dev-sky-node.fractalpay.com/",u="https://dev-widget.fractalpay.com/",g="https://api-dev.merchant-trends.com/",m="https://token-cert.dcap.com/v1/client",x="pk_test_51RH5Wc2SlJvyNZ80hpUDy88r4rVdpijfKbNaWaUyQEE6rOrPmG2JQyAj7G5amBD5z5daC56WaeT4jfNhrrPcGOEP00UyKu6AOw"):h==="@fractalpay/fractalpay-next-test"?(f="https://testapi.fractalpay.com/",u="https://staging-widget.fractalpay.com/",g="https://api-dev.merchant-trends.com/",m="https://token-cert.dcap.com/v1/client",x="pk_test_51RH5Wc2SlJvyNZ80hpUDy88r4rVdpijfKbNaWaUyQEE6rOrPmG2JQyAj7G5amBD5z5daC56WaeT4jfNhrrPcGOEP00UyKu6AOw"):h==="@fractalpay/fractalpay-next-testprod"?(f="https://sky-node-prod.fractalpay.com/",u="https://widget-prod.fractalpay.com/",g="https://api.merchant-trends.com/",m="https://token.dcap.com/v1/client",x="pk_live_51RH5WXCZ90rBGeaYwqmjWqgUmudTgxL6uKOE1keu617jvRx9OvW2ke6zGf6SKgv4ixsBLcIPQ4sQIEhp8MgBX39500CqULxOPB"):h==="@fractalpay/fractalpay-next"?(f="https://api.fractalpay.com/",u="https://widget.fractalpay.com/",g="https://api.merchant-trends.com/",m="https://token.dcap.com/v1/client",x="pk_live_51RH5WXCZ90rBGeaYwqmjWqgUmudTgxL6uKOE1keu617jvRx9OvW2ke6zGf6SKgv4ixsBLcIPQ4sQIEhp8MgBX39500CqULxOPB"):(u="http://localhost:8082/",f="http://localhost:8081/",g="https://api-dev.merchant-trends.com/",m="https://token-cert.dcap.com/v1/client",x="pk_test_51RH5Wc2SlJvyNZ80hpUDy88r4rVdpijfKbNaWaUyQEE6rOrPmG2JQyAj7G5amBD5z5daC56WaeT4jfNhrrPcGOEP00UyKu6AOw");var f,u,g,m,x;import y from"react";import H from"react";var X=e=>H.createElement("style",null,`
85
- .fractal-input::placeholder {
86
- color: #35254D;
87
- opacity: 1;
88
- font-size: 15px;
89
- }
90
-
91
- .fractal-input::-ms-input-placeholder {
92
- color: #35254D;
93
- font-size: 15px;
94
- }
95
-
96
- .trigger{
97
- text-align: center;
98
- padding: 7px 13px;
99
- background: #3e3e3e;
100
- color: #fff;
101
- font-size: 15px;
102
- outline: none;
103
- border: none;
104
- border-radius: 5px;
105
- font-family: cursive;
106
- }
107
-
108
- // .fractal-popup {
109
- // position: fixed;
110
- // z-index: 9999;
111
- // top: 0;
112
- // right: 0;
113
- // bottom: 0;
114
- // left: 0;
115
- // width: 100%;
116
- // // max-width:810px;
117
- // height: 100%;
118
- // background-color: rgba(0, 0, 0, 0.5);
119
- // transition: visibility 0s linear 0.25s, opacity 0.25s 0s, transform 0.25s;
120
- // display: flex;
121
- // justify-content: center;
122
- // align-items: center;
123
- // overflow:auto;
124
- // }
125
-
126
- .fractal-popup {
127
- position: fixed;
128
- z-index: 1050;
129
- left: 0;
130
- top: 0;
131
- width: 100%;
132
- height: 100%;
133
- overflow: auto;
134
- background-color: rgba(0, 0, 0, 0.8);
135
- // padding:20px
136
- }
137
-
138
- .fractal-popup-content {
139
- margin:20px auto !important;
140
- transform :none;
141
- background-color: white;
142
- padding:20px;
143
- border-radius: 0.5rem;
144
- box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
145
- box-sizing: border-box;
146
- position: relative;
147
- // min-height : 585px;
148
- max-width:810px;
149
- width:90vw
150
-
151
- }
152
-
153
-
154
- // @media only screen and (min-width: 600px){
155
- // .fractal-popup-content {
156
- // max-width:810px;
157
- // }
158
- // }
159
- // @media only screen and (max-width: 600px){
160
- // .fractal-popup-content {
161
- // width: 350px;
162
- // }
163
- // }
164
- // @media only screen and (max-width: 450px){
165
- // .fractal-popup-content {
166
- // width: 300px;
167
- // }
168
- // }
169
- .close-popup {
170
- max-height:25px;
171
- width:25px;
172
- height: 25px;
173
- color: #999;
174
- position: absolute;
175
- top: 2px;
176
- right: 4px;
177
- z-index: 7;
178
- text-align: center;
179
- cursor: pointer;
180
- border-radius: 0.25rem;
181
- font-size: 30px;
182
- line-height: 30px;
183
- display: flex;
184
- align-items: center;
185
- justify-content: center;
186
- }
187
-
188
- .close-popup:hover {
189
- color: #000;
190
- }
191
-
192
- .fractal-inpt-list {
193
- margin-bottom: 15px;
194
- }
195
-
196
- .fractal-label {
197
- color: #727272;
198
- margin-bottom: 3px;
199
- font-family: "Inter", sans-serif;
200
- font-weight: 500;
201
- font-size: 12px;
202
- display: block;
203
- text-align: left;
204
- }
205
-
206
- .fractal-input {
207
- display: block;
208
- width: 100%;
209
- padding: .320rem .75rem;
210
- font-size: 1rem;
211
- font-weight: 400;
212
- line-height: 1.5;
213
- color: #35254D;
214
- appearance: none;
215
- background-color:#ffffff;
216
- background-clip: padding-box;
217
- border:1px solid #dee2e6;
218
- border-radius: 0.375rem;
219
- transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
220
- }
221
-
222
- .fractal-input:focus {border:#86b7fe 1px solid; outline: none;}
223
-
224
- .fractal-group {
225
- position: relative;
226
- display: flex;
227
- align-items: stretch;
228
- width: 100%;
229
- }
230
-
231
- .fractal-group-icons {
232
- display: flex;
233
- align-items: center;
234
- padding: 0.375rem 0.75rem;
235
- font-size: 1rem;
236
- font-weight: 400;
237
- line-height: 1.5;
238
- color: #212529;
239
- text-align: center;
240
- white-space: nowrap;
241
- background-color: #f8f9fa;
242
- border:#dee2e6 1px solid;
243
- border-radius: 0.375rem 0 0 0.375rem ;
244
- }
245
-
246
- .fractal-group .fractal-input{
247
- border-radius:0 0.375rem 0.375rem 0;
248
- }
249
-
250
-
251
- .pay-button {
252
- outline: 0;
253
- height: 46px;
254
- font-size: 16px;
255
- background: #727272;
256
- border: none;
257
- display: block;
258
- color: #fff;
259
- width: 100%;
260
- border-radius: 180px;
261
- margin: 10px 0;
262
- text-decoration: none;
263
- cursor:pointer,
264
- font-family:
265
- }
266
-
267
- .pay-button:hover, .pay-button:focus {background: #222; color: #fff; cursor:pointer}
268
-
269
- .fractal-powerd-by {
270
- display: flex;
271
- font-size: 12px;
272
- text-align: center;
273
- align-items: center;
274
- justify-content: center;
275
- margin: 5px 0 20px 0;
276
- }
277
-
278
-
279
-
280
-
281
-
282
-
283
-
284
- /* ................................................................ */
285
-
286
- .fractal-pay-popup {
287
- position: fixed;
288
- z-index: 9999;
289
- top: 0;
290
- right: 0;
291
- bottom: 0;
292
- left: 0;
293
- width: 100%;
294
- height: 100%;
295
- background-color: rgba(0, 0, 0, 0.5);
296
- transition: visibility 0s linear 0.25s, opacity 0.25s 0s, transform 0.25s;
297
- display: flex;
298
- justify-content: center;
299
- align-items: center;
300
- }
301
-
302
- .fractal-pay-popup-content {
303
- background-color: white;
304
- padding:0px;
305
- border-radius: 0.5rem;
306
- box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
307
- box-sizing: border-box;
308
- position: relative;
309
- height: 100%;
310
- max-height:90%;
311
- overflow: hidden;
312
- }
313
- .fractal-pay-popup-content iframe{height: 100% !important; }
314
- .fractal-pay-popup-content iframe body{overflow: hidden;}
315
- @media only screen and (min-width: 768px){
316
- .fractal-pay-popup-content iframe{width: 768px;}
317
- .fractal-pay-popup-content {
318
- width: 750px;
319
-
320
- }
321
- }
322
- @media only screen and (max-width: 600px){
323
- .fractal-pay-popup-content {
324
- width: 350px;
325
- }
326
- }
327
- @media only screen and (max-width: 450px){
328
- .fractal-pay-popup-content {
329
- width: 300px;
330
- }
331
- }
332
-
333
- .request-payment-popup-container {
334
- padding: 0px !important;
335
- border-radius: 12px !important;
336
- }
337
- `),z=X;var Z=({open:e,onClose:t,children:a,maxWidth:o})=>e?y.createElement(y.Fragment,null,y.createElement(z,null),y.createElement("div",{className:"fractal-popup"},y.createElement("div",{className:"fractal-popup-content request-payment-popup-container",style:{maxWidth:`${o!=null?o:"auto"}`}},a))):null,ze=Z;var Fe=e=>{try{let t=JSON.parse(e);return typeof t=="object"&&t!==null}catch(t){return!1}},Te=[{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 D(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 $=n+"widget/mc-img.svg",L=n+"widget/visa-img.svg",V=n+"widget/ae-img.svg",R=n+"widget/discover-img.svg",b=n+"widget/card.svg",ee=n+"widget/bank.svg",_e=n+"widget/Trash.svg",Ke=n+"widget/secure-img.png",We=n+"widget/pov-by.png",Oe=n+"widget/pax.svg",U=n+"widget/Bank _New.svg",B=e=>{switch(e==null?void 0:e.toLowerCase()){case"visa":return L;case"mastercard":case"mc":case"m/c":return $;case"amex":case"american express":case"ae":return V;case"discover":case"dcvr":return R;case"bank":return ee;default:return b}};import{useEffect as F}from"react";function te(){return F(()=>{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)}}},[]),F(()=>{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 s from"react";import re from"react";function w(){return re.createElement("style",null,`
338
- .card-error .logo-container {
339
- display: flex;
340
- justify-content: center;
341
- align-items: center;
342
- margin-bottom: -50px; /* Adjust this to overlap the content */
343
- z-index: 10;
344
- }
345
-
346
- .card-error .client-logo {
347
- max-width: 100px;
348
- height: auto;
349
- object-fit: contain;
350
- display: block;
351
- }
352
-
353
- .card-error .payment-error-container {
354
- display: flex;
355
- flex-direction: column;
356
- align-items: center;
357
- padding: 18px 20px 24px;
358
- // width: 335px;
359
- min-height: 250px; /* Fixed height */
360
- background: #FFFFFF;
361
- border-radius: 12px;
362
- position: relative;
363
- box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
364
- border: 1px solid #e3e3e3;
365
- justify-content: center;
366
- text-align: center;
367
- // margin-top: 50px; /* Adjust this to move the content down */
368
- margin: 50px auto 0 auto !important;
369
- }
370
-
371
- .card-error .error-icon {
372
- display: flex;
373
- flex-direction: column;
374
- align-items: center;
375
- gap: 12px;
376
- min-height: 116px;
377
- z-index: 2;
378
- }
379
-
380
- .card-error .circle {
381
- width: 50px;
382
- height: 50px;
383
- border: 1px solid red;
384
- border-radius: 50%;
385
- display: flex;
386
- justify-content: center;
387
- align-items: center;
388
- margin-bottom:20px
389
- }
390
-
391
- .card-error .circle .fa-times {
392
- font-size: 30px;
393
- color: red;
394
- }
395
-
396
- .card-error .error-text {
397
- display: flex;
398
- flex-direction: column;
399
- justify-content: center;
400
- align-items: center;
401
- gap: 4px;
402
- // width: 227px;
403
- }
404
-
405
- .card-error .payment-error-text {
406
- font-family: 'Inter', sans-serif;
407
- font-weight: 500;
408
- font-size: 18px;
409
- line-height: 21px;
410
- text-align: center;
411
- letter-spacing: -0.02em;
412
- color: #161616;
413
- }
414
-
415
- .card-error .thank-you-text {
416
- font-family: 'Inter', sans-serif;
417
- font-weight: 500;
418
- font-size: 16px;
419
- line-height: 18px;
420
- text-align: center;
421
- letter-spacing: -0.02em;
422
- color: #161616 !important;
423
- opacity: 0.5;
424
- padding-top:10px
425
- }
426
-
427
- .card-error .error-btn-div{
428
- padding-top:30px;
429
-
430
- }
431
- .card-error .error-btn-div button{
432
- border-radius: 0.25em;
433
- border:none;
434
- background: initial;
435
- background-color: #7066e0;
436
- box-shadow: var(--swal2-confirm-button-box-shadow);
437
- color: white;
438
- font-size: 1em;
439
- padding:10px 17px;
440
- cursor:pointer;
441
- }
442
- `)}var ae=({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")))))),$e=ae;import d from"react";var tt=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:U,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"},D(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 ie from"react";function oe({}){return ie.createElement("style",null,`
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.frac-active {
510
- background: #F6F6F7;
511
- }
512
- `)}import i from"react";var dt=({listHeading:e="Card",ListItems:t,selectedCard:a,setSelectedCard:o,paymentGateway:k,handleDeleteCard:T,otherButtonAction:_,otherButtonLabel:K,headingClass:W})=>{let O=n+"widget/Trash.svg";return console.log(a,"selectedCard another",t),i.createElement(i.Fragment,null,i.createElement("h6",{className:W||"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,ne)=>{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:se=>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:B(r==null?void 0:r.card_type),alt:""})),i.createElement("span",{className:"visa-card",style:{cursor:"pointer"},onClick:()=>T(r==null?void 0:r.id)},i.createElement("img",{src:O,alt:""}))))}))),i.createElement("div",{className:"pay-with-other-card",onClick:_},K,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{le as a,pe as b,de as c,ce as d,ye as e,n as f,f as g,u as h,g as i,x as j,ze as k,Fe as l,Te as m,D as n,te as o,$e as p,tt as q,oe as r,dt as s,ft as t};