@pinerohit11/testwidget 0.1.61 → 0.1.62
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.d.mts +8 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.js +673 -1092
- package/dist/index.mjs +626 -1051
- package/package.json +7 -2
package/dist/index.js
CHANGED
@@ -61,7 +61,7 @@ module.exports = __toCommonJS(index_exports);
|
|
61
61
|
|
62
62
|
// src/app/components/RequestPayment/RequestPayment.tsx
|
63
63
|
var import_bootstrap_bundle_min = require("bootstrap/dist/js/bootstrap.bundle.min.js");
|
64
|
-
var
|
64
|
+
var import_react6 = __toESM(require("react"));
|
65
65
|
|
66
66
|
// src/app/components/Loader/Loader.tsx
|
67
67
|
var import_react2 = __toESM(require("react"));
|
@@ -192,926 +192,596 @@ var Loader = (props) => {
|
|
192
192
|
};
|
193
193
|
var Loader_default = Loader;
|
194
194
|
|
195
|
-
// src/app/components/RequestPayment/RequestPayment.tsx
|
196
|
-
var import_react_bootstrap = require("react-bootstrap");
|
197
|
-
|
198
195
|
// src/app/components/RequestPayment/RequestPaymentstyles.tsx
|
199
196
|
var import_react3 = __toESM(require("react"));
|
200
197
|
var RequestPaymentstyles = (props) => {
|
201
198
|
return /* @__PURE__ */ import_react3.default.createElement("style", null, `
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
}
|
216
|
-
|
217
|
-
display: none !important;
|
218
|
-
}
|
219
|
-
/* CSS for modal */
|
220
|
-
.modal {
|
221
|
-
/* display: none; */
|
222
|
-
position: fixed;
|
223
|
-
z-index: 5555;
|
224
|
-
left: 0;
|
225
|
-
top: 0;
|
226
|
-
width: 100%;
|
227
|
-
height: 100%;
|
228
|
-
overflow: auto;
|
229
|
-
background-color: rgba(0, 0, 0, 0.4);
|
230
|
-
}
|
231
|
-
|
232
|
-
.input-container {
|
233
|
-
position: relative;
|
234
|
-
}
|
235
|
-
.error {
|
236
|
-
border: 1px solid red;
|
237
|
-
background-color: #ffe6e6; /* light red background color */
|
238
|
-
}
|
239
|
-
.form-group {
|
240
|
-
margin-bottom: 15px;
|
241
|
-
}
|
242
|
-
.input-container input {
|
243
|
-
padding-right: 25px;
|
244
|
-
}
|
199
|
+
.paymentBtn {
|
200
|
+
background-color: black;
|
201
|
+
border: none;
|
202
|
+
color: white;
|
203
|
+
padding: 15px 32px;
|
204
|
+
text-align: center;
|
205
|
+
text-decoration: none;
|
206
|
+
display: inline-block;
|
207
|
+
font-size: 16px;
|
208
|
+
margin: 4px 2px;
|
209
|
+
cursor: pointer;
|
210
|
+
border-radius: 180px;
|
211
|
+
/* width: auto; */
|
212
|
+
}
|
213
|
+
/*****************************************REDESIGNING STYLES **************************************/
|
245
214
|
|
246
|
-
.
|
247
|
-
|
248
|
-
|
215
|
+
.request-payment-amount {
|
216
|
+
color: #161616;
|
217
|
+
text-align: center;
|
218
|
+
font-family: Inter;
|
219
|
+
font-size: 42px;
|
220
|
+
font-style: normal;
|
221
|
+
font-weight: 600;
|
222
|
+
text-transform: uppercase;
|
223
|
+
margin: 8px 0px !important;
|
249
224
|
}
|
250
225
|
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
width: 100%;
|
260
|
-
max-width: 100%;
|
261
|
-
margin: 30px auto;
|
262
|
-
overflow: inherit !important;
|
263
|
-
}
|
264
|
-
.input-container {
|
265
|
-
display: flex;
|
266
|
-
align-items: baseline;
|
226
|
+
.request-payment-orderid {
|
227
|
+
color: #727272;
|
228
|
+
text-align: center;
|
229
|
+
font-family: Inter;
|
230
|
+
font-size: 14px;
|
231
|
+
font-style: normal;
|
232
|
+
font-weight: 500;
|
233
|
+
margin: 0px;
|
267
234
|
}
|
268
235
|
|
269
|
-
.
|
270
|
-
|
236
|
+
.request-payment-pre-auth-merchantname {
|
237
|
+
color: #727272;
|
238
|
+
text-align: center;
|
239
|
+
font-family: Inter;
|
240
|
+
font-size: 14px;
|
241
|
+
font-style: normal;
|
242
|
+
font-weight: 500;
|
243
|
+
margin-top: 10px !important;
|
244
|
+
margin-bottom: 0px !important;
|
271
245
|
}
|
272
246
|
|
273
|
-
.
|
274
|
-
|
247
|
+
.request-payment-merchantname {
|
248
|
+
color: #727272;
|
249
|
+
text-align: center;
|
250
|
+
font-family: Inter;
|
251
|
+
font-size: 14px;
|
252
|
+
font-style: normal;
|
253
|
+
font-weight: 500;
|
254
|
+
margin-top: 20px !important;
|
255
|
+
margin-bottom: 0px !important;
|
275
256
|
}
|
276
257
|
|
277
|
-
.
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
border: none;
|
283
|
-
display: block;
|
284
|
-
width: 100%;
|
285
|
-
border-radius: 180px;
|
286
|
-
margin: 10px 0;
|
258
|
+
.request-payment-close-popup {
|
259
|
+
position: absolute;
|
260
|
+
right: 20px;
|
261
|
+
top: 20px;
|
262
|
+
cursor: pointer;
|
287
263
|
}
|
288
264
|
|
289
|
-
|
290
|
-
|
265
|
+
.request-payment-amount-detail {
|
266
|
+
padding: 32px 0px;
|
267
|
+
border-bottom: 1px solid #E0DFE2;
|
291
268
|
}
|
292
269
|
|
293
|
-
|
294
|
-
|
270
|
+
.request-payment-popup-container {
|
271
|
+
padding: 0px !important;
|
272
|
+
border-radius: 12px !important;
|
295
273
|
}
|
296
274
|
|
297
|
-
|
298
|
-
|
299
|
-
color: #fff !important;
|
275
|
+
.request-payment-input-form {
|
276
|
+
padding: 24px 48px 32px 48px;
|
300
277
|
}
|
301
278
|
|
302
|
-
label {
|
303
|
-
color:
|
304
|
-
|
305
|
-
text-transform: uppercase;
|
306
|
-
font-family: "IBM Plex Mono", monospace;
|
307
|
-
font-weight: 500;
|
279
|
+
.request-payment-input-label {
|
280
|
+
color: #727272;
|
281
|
+
font-family: Inter;
|
308
282
|
font-size: 12px;
|
283
|
+
font-style: normal;
|
284
|
+
font-weight: 500;
|
285
|
+
margin-bottom: 6px !important;
|
286
|
+
text-align: start !important;
|
287
|
+
width: 100% !important;
|
288
|
+
margin-bottom: 6px !important;
|
289
|
+
text-transform: uppercase;
|
309
290
|
}
|
310
291
|
|
311
|
-
.input-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
.input-container input {
|
316
|
-
padding-right: 25px;
|
317
|
-
}
|
318
|
-
|
319
|
-
#Checkout {
|
320
|
-
/* z-index: 100001; */
|
321
|
-
width: 100%;
|
322
|
-
/* height: 100%; */
|
323
|
-
/* background: 0 0 #ffffff; */
|
324
|
-
border-radius: 24px;
|
325
|
-
border: 1px solid #e0dfe2;
|
292
|
+
.request-payment-input-box {
|
293
|
+
border-radius: 8px;
|
294
|
+
border: 1px solid #E0DFE2;
|
295
|
+
padding: 11px;
|
326
296
|
display: block;
|
297
|
+
width: 100%;
|
298
|
+
color: #161616;
|
299
|
+
margin-top: 6px !important;
|
300
|
+
font-family: Inter;
|
301
|
+
font-size: 14px;
|
302
|
+
font-style: normal;
|
303
|
+
font-weight: 500;
|
327
304
|
}
|
328
305
|
|
329
|
-
.
|
330
|
-
margin-
|
306
|
+
.request-payment-list-div {
|
307
|
+
margin-bottom: 12px;
|
331
308
|
}
|
332
309
|
|
333
|
-
.
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
padding:
|
338
|
-
|
339
|
-
|
340
|
-
|
310
|
+
.request-payment-submit-button {
|
311
|
+
border-radius: 80px;
|
312
|
+
background: #161616;
|
313
|
+
height: 48px;
|
314
|
+
padding: 12px 24px;
|
315
|
+
margin-top: 20px;
|
316
|
+
color: #fff;
|
317
|
+
width: 100% !important;
|
318
|
+
border: none !important;
|
319
|
+
font-family: Inter;
|
320
|
+
font-size: 16px;
|
321
|
+
font-style: normal;
|
322
|
+
font-weight: 500;
|
323
|
+
cursor: pointer;
|
341
324
|
}
|
342
325
|
|
343
|
-
.
|
344
|
-
|
326
|
+
.request-payment-submit-button:disabled {
|
327
|
+
cursor: not-allowed;
|
345
328
|
}
|
346
329
|
|
347
|
-
.powerd-by
|
330
|
+
.request-payment-fractal-powerd-by {
|
331
|
+
color: #727272;
|
332
|
+
font-family: Inter;
|
333
|
+
font-size: 14px;
|
334
|
+
font-style: normal;
|
335
|
+
font-weight: 500;
|
336
|
+
margin-top: 16px;
|
348
337
|
display: flex;
|
349
|
-
|
338
|
+
text-align: center;
|
350
339
|
align-items: center;
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
.errorText {
|
355
|
-
color: red;
|
356
|
-
}
|
357
|
-
|
358
|
-
.input-group {
|
359
|
-
position: relative;
|
360
|
-
}
|
361
|
-
|
362
|
-
.paynowbtn {
|
363
|
-
outline: 0 !important;
|
364
|
-
padding: 7px 25px !important;
|
365
|
-
font-size: 13px;
|
366
|
-
background-color: #161616 !important;
|
367
|
-
border: #161616 1px solid !important;
|
368
|
-
color: #fff !important;
|
369
|
-
display: inline-block !important;
|
370
|
-
border-radius: 180px !important;
|
371
|
-
}
|
372
|
-
|
373
|
-
.paynowbtn:hover {
|
374
|
-
background-color: #fff !important;
|
375
|
-
border: #161616 1px solid !important;
|
376
|
-
color: #161616 !important;
|
377
|
-
}
|
378
|
-
|
379
|
-
.ButtonGroup__root.btn-group {
|
380
|
-
margin: 10px 0 20px 0;
|
381
|
-
}
|
382
|
-
|
383
|
-
.ButtonGroup__root.btn-group button {
|
384
|
-
background: #000;
|
385
|
-
border: 0;
|
386
|
-
margin: 0 5px;
|
387
|
-
border-radius: 4px !important;
|
340
|
+
justify-content: center;
|
341
|
+
gap: 6px;
|
388
342
|
}
|
389
343
|
|
390
|
-
.
|
391
|
-
|
392
|
-
background: #333 !important;
|
344
|
+
.request-payment-fractal-powerd-by span {
|
345
|
+
color: #61C699;
|
393
346
|
}
|
394
347
|
|
395
|
-
.
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
348
|
+
.request-payment-success-container {
|
349
|
+
display: flex;
|
350
|
+
padding: 120px 48px 32px 48px;
|
351
|
+
flex-direction: column;
|
352
|
+
justify-content: center;
|
353
|
+
align-items: center;
|
400
354
|
}
|
401
355
|
|
402
|
-
.
|
403
|
-
|
404
|
-
background:
|
356
|
+
.request-payment-success-tick {
|
357
|
+
border-radius: 1000px;
|
358
|
+
background: rgba(97, 198, 153, 0.14);
|
359
|
+
display: flex;
|
360
|
+
width: 60px;
|
361
|
+
height: 60px;
|
362
|
+
justify-content: center;
|
363
|
+
align-items: center;
|
405
364
|
}
|
406
365
|
|
407
|
-
.payment-
|
366
|
+
.request-payment-success-text {
|
367
|
+
color: #161616;
|
408
368
|
text-align: center;
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
min-width: 600px;
|
413
|
-
padding: 50px 0;
|
414
|
-
}
|
415
|
-
|
416
|
-
.payment-suc h2 {
|
417
|
-
font-size: 24px;
|
418
|
-
color: #35254d;
|
369
|
+
font-family: Inter;
|
370
|
+
font-size: 32px;
|
371
|
+
font-style: normal;
|
419
372
|
font-weight: 500;
|
420
|
-
|
373
|
+
line-height: 36px;
|
374
|
+
/* 112.5% */
|
375
|
+
letter-spacing: -0.64px;
|
376
|
+
margin-top: 20px;
|
377
|
+
margin-bottom: 5px !important;
|
421
378
|
}
|
422
379
|
|
423
|
-
.payment-
|
380
|
+
.request-payment-success-subtext {
|
381
|
+
color: #727272;
|
382
|
+
text-align: center;
|
383
|
+
font-family: Inter;
|
424
384
|
font-size: 14px;
|
425
|
-
|
385
|
+
font-style: normal;
|
426
386
|
font-weight: 500;
|
387
|
+
line-height: 18px;
|
388
|
+
letter-spacing: -0.28px;
|
389
|
+
margin-bottom: 6rem !important;
|
390
|
+
margin-top: 8px !important;
|
427
391
|
}
|
428
392
|
|
429
|
-
.payment-
|
430
|
-
position: absolute;
|
431
|
-
right: 20px;
|
432
|
-
}
|
433
|
-
|
434
|
-
.Checkout.container iframe {
|
435
|
-
width: 100%;
|
436
|
-
overflow: hidden !important;
|
437
|
-
}
|
438
|
-
|
439
|
-
.responsive-tbl {
|
440
|
-
overflow-x: auto;
|
441
|
-
}
|
442
|
-
body {
|
443
|
-
position: relative !important;
|
444
|
-
}
|
445
|
-
thead,
|
446
|
-
tbody,
|
447
|
-
tfoot,
|
448
|
-
tr,
|
449
|
-
td,
|
450
|
-
th {
|
451
|
-
white-space: nowrap;
|
452
|
-
}
|
453
|
-
|
454
|
-
.button-group {
|
393
|
+
.request-payment-success-btn-div {
|
455
394
|
display: flex;
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
color: #fff;
|
460
|
-
background-color: #337ab7;
|
461
|
-
border-color: #2e6da4;
|
462
|
-
}
|
463
|
-
.loading-animation {
|
464
|
-
position: absolute;
|
465
|
-
top: 50%;
|
466
|
-
left: 50%;
|
467
|
-
transform: translate(-50%, -50%);
|
468
|
-
}
|
469
|
-
|
470
|
-
.spinner {
|
471
|
-
width: 40px;
|
472
|
-
height: 40px;
|
473
|
-
border-radius: 50%;
|
474
|
-
border: 4px solid #f3f3f3;
|
475
|
-
border-top: 4px solid black;
|
476
|
-
animation: spin 1s linear infinite;
|
395
|
+
align-items: flex-start;
|
396
|
+
justify-content: center;
|
397
|
+
gap: 8px;
|
477
398
|
}
|
478
399
|
|
479
|
-
|
480
|
-
0% {
|
481
|
-
transform: rotate(0deg);
|
482
|
-
}
|
483
|
-
100% {
|
484
|
-
transform: rotate(360deg);
|
485
|
-
}
|
486
|
-
}
|
487
|
-
/* .border-container {
|
488
|
-
display: flex;
|
489
|
-
flex-direction: column;
|
490
|
-
border: 0px solid #ccc;
|
491
|
-
padding: 20px;
|
492
|
-
border-radius: 10px;
|
493
|
-
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
494
|
-
align-items: baseline;
|
495
|
-
}
|
496
|
-
.payment-container {
|
497
|
-
border: 0px solid #ccc;
|
498
|
-
padding: 20px;
|
499
|
-
border-radius: 10px;
|
500
|
-
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
501
|
-
} */
|
502
|
-
|
503
|
-
.payment-row {
|
400
|
+
.request-payment-success-tick-div {
|
504
401
|
display: flex;
|
402
|
+
justify-content: center;
|
505
403
|
align-items: center;
|
506
|
-
margin-
|
404
|
+
margin-top: 32px;
|
507
405
|
}
|
508
406
|
|
509
|
-
.payment-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
}
|
514
|
-
|
515
|
-
.payment-row input {
|
516
|
-
flex-grow: 1;
|
517
|
-
margin-right: 10px;
|
518
|
-
}
|
519
|
-
|
520
|
-
.payment-row button {
|
521
|
-
flex-grow: 1;
|
522
|
-
}
|
523
|
-
.payment-row {
|
407
|
+
.request-payment-success-btn1 {
|
408
|
+
cursor: pointer;
|
409
|
+
border-radius: 80px;
|
410
|
+
border: 1px solid #E0DFE2;
|
524
411
|
display: flex;
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
.input-wrapper {
|
531
|
-
flex: 1;
|
412
|
+
padding: 12px 32px;
|
413
|
+
justify-content: center;
|
414
|
+
align-items: center;
|
415
|
+
gap: 6px;
|
416
|
+
background-color: #fff;
|
532
417
|
}
|
533
418
|
|
534
|
-
.
|
535
|
-
|
536
|
-
|
537
|
-
|
419
|
+
.request-payment-success-btn2 {
|
420
|
+
border-radius: 80px;
|
421
|
+
cursor: pointer;
|
422
|
+
border: 1px solid #E0DFE2;
|
538
423
|
display: flex;
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
background:
|
544
|
-
color:
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
}
|
550
|
-
|
551
|
-
.export-btn {
|
552
|
-
background: black;
|
553
|
-
color: white;
|
554
|
-
height: 35px;
|
555
|
-
width: 68px;
|
556
|
-
border-radius: 5px;
|
557
|
-
margin-left: 14px;
|
558
|
-
}
|
559
|
-
|
560
|
-
.payment-popup {
|
561
|
-
padding: 12px 20px;
|
562
|
-
background: #fff;
|
563
|
-
border-radius: 20px;
|
564
|
-
position: relative;
|
565
|
-
width: 100%;
|
566
|
-
margin: 0 auto;
|
567
|
-
}
|
568
|
-
|
569
|
-
// .modal-content {
|
570
|
-
// max-width: 420px;
|
571
|
-
// margin-top: 5%;
|
572
|
-
// }
|
573
|
-
@media (max-width: 460px) {
|
574
|
-
.payment-popup {
|
575
|
-
padding: 35px 25px;
|
576
|
-
width: 98%;
|
577
|
-
}
|
578
|
-
}
|
579
|
-
|
580
|
-
.close-pop {
|
581
|
-
position: absolute;
|
582
|
-
right: 8px;
|
583
|
-
top: 8px;
|
584
|
-
border: 0;
|
585
|
-
padding: 0;
|
586
|
-
background: none !important;
|
587
|
-
}
|
588
|
-
|
589
|
-
.amex {
|
590
|
-
background-image: url("../amex.svg");
|
591
|
-
}
|
592
|
-
|
593
|
-
.visa {
|
594
|
-
background-image: url("../visa.svg");
|
595
|
-
}
|
596
|
-
|
597
|
-
.mastercard {
|
598
|
-
background-image: url("../mastercard.svg");
|
599
|
-
}
|
600
|
-
|
601
|
-
.discover {
|
602
|
-
background-image: url("../discover.svg");
|
424
|
+
padding: 12px 32px;
|
425
|
+
justify-content: center;
|
426
|
+
align-items: center;
|
427
|
+
gap: 6px;
|
428
|
+
background-color: #161616;
|
429
|
+
color: #fff;
|
430
|
+
font-family: Inter;
|
431
|
+
font-size: 14px;
|
432
|
+
font-style: normal;
|
433
|
+
font-weight: 500;
|
603
434
|
}
|
604
435
|
|
605
|
-
.
|
606
|
-
|
607
|
-
|
436
|
+
.request-payment-error-msg{
|
437
|
+
color: #dc3545;
|
438
|
+
font-family: Inter;
|
439
|
+
font-size: 12px;
|
608
440
|
}
|
441
|
+
`);
|
442
|
+
};
|
443
|
+
var RequestPaymentstyles_default = RequestPaymentstyles;
|
609
444
|
|
610
|
-
.
|
611
|
-
|
612
|
-
border-top-right-radius: 0;
|
613
|
-
border-bottom-right-radius: 0;
|
614
|
-
}
|
445
|
+
// src/app/components/baseurl.ts
|
446
|
+
var baseUrl = "https://staging-widget.fractalpay.com/";
|
615
447
|
|
616
|
-
.
|
617
|
-
|
618
|
-
|
619
|
-
|
448
|
+
// src/app/components/Errortext.ts
|
449
|
+
var ErrorText = {
|
450
|
+
namerequired: "Full Name is required",
|
451
|
+
amountrequired: "Amount is required",
|
452
|
+
amountpositive: "Amount should be positive",
|
453
|
+
amountzero: "Amount should not be zero",
|
454
|
+
amountenter: "Please enter an amount",
|
455
|
+
amountvalid: "Please enter a valid amount",
|
456
|
+
phoneoremailrequired: "Phone or Email is required",
|
457
|
+
invalidemail: "Please enter a valid email",
|
458
|
+
invalidemailformat: "Invalid email format",
|
459
|
+
onlylettersallowed: "Only letters are allowed",
|
460
|
+
phonenumberlength: "Phone number should be 10 digits",
|
461
|
+
phonenumberrequired: "Please enter a phone number",
|
462
|
+
// phonenumbervalid:'Please enter a valid 10-digit phone number',
|
463
|
+
phonenumbervalid: "Please enter a valid phone number",
|
464
|
+
phonenumbervalidnumberonly: "Please enter a valid phone number (numbers only)",
|
465
|
+
orderidenter: "Please enter an order ID",
|
466
|
+
orderidrequired: "Order ID is required",
|
467
|
+
networkresponseerror: "Network response was not ok",
|
468
|
+
anerroroccured: "An error occurred. Please try again.",
|
469
|
+
montherror: "Please write month only 1 to 12",
|
470
|
+
fieldrequired: "This field is required",
|
471
|
+
fractalpayclientidrequired: "Fractalpay client key is missing or empty."
|
472
|
+
};
|
620
473
|
|
621
|
-
.
|
622
|
-
|
623
|
-
width: 40%;
|
624
|
-
position: relative;
|
625
|
-
}
|
474
|
+
// src/app/components/CustomModal/CustomModal2.tsx
|
475
|
+
var import_react5 = __toESM(require("react"));
|
626
476
|
|
627
|
-
.
|
628
|
-
|
629
|
-
|
477
|
+
// src/app/components/CustomModal/CustomModal2styles.tsx
|
478
|
+
var import_react4 = __toESM(require("react"));
|
479
|
+
var CustomModal2styles = (props) => {
|
480
|
+
return /* @__PURE__ */ import_react4.default.createElement("style", null, `
|
481
|
+
.fractal-input::placeholder {
|
482
|
+
color: #35254D;
|
483
|
+
opacity: 1;
|
484
|
+
font-size: 15px;
|
630
485
|
}
|
631
486
|
|
632
|
-
.
|
633
|
-
|
487
|
+
.fractal-input::-ms-input-placeholder {
|
488
|
+
color: #35254D;
|
489
|
+
font-size: 15px;
|
634
490
|
}
|
635
491
|
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
width: 100%;
|
644
|
-
border-radius: 180px;
|
645
|
-
}
|
646
|
-
#submitRequestButton {
|
647
|
-
outline: 0 !important;
|
648
|
-
height: 46px;
|
649
|
-
font-size: 16px;
|
650
|
-
background-color: #161616 !important;
|
651
|
-
border: none;
|
652
|
-
display: block;
|
653
|
-
width: 100%;
|
654
|
-
border-radius: 180px;
|
655
|
-
}
|
656
|
-
#PayButton {
|
657
|
-
outline: 0 !important;
|
658
|
-
height: 46px;
|
659
|
-
font-size: 16px;
|
660
|
-
background-color: #161616 !important;
|
492
|
+
.trigger{
|
493
|
+
text-align: center;
|
494
|
+
padding: 7px 13px;
|
495
|
+
background: #3e3e3e;
|
496
|
+
color: #fff;
|
497
|
+
font-size: 15px;
|
498
|
+
outline: none;
|
661
499
|
border: none;
|
662
|
-
|
663
|
-
|
664
|
-
border-radius: 180px;
|
665
|
-
}
|
666
|
-
|
667
|
-
#PayButton:hover {
|
668
|
-
background-color: #61c699 !important;
|
669
|
-
}
|
670
|
-
|
671
|
-
#PayButton:active {
|
672
|
-
background-color: #61c699 !important;
|
673
|
-
}
|
674
|
-
|
675
|
-
#PayButton:disabled {
|
676
|
-
background: rgb(172, 44, 170) !important;
|
677
|
-
color: #fff !important;
|
678
|
-
}
|
679
|
-
|
680
|
-
.form-control {
|
681
|
-
color: #35254d;
|
500
|
+
border-radius: 5px;
|
501
|
+
font-family: cursive;
|
682
502
|
}
|
683
503
|
|
684
|
-
.
|
685
|
-
|
686
|
-
|
504
|
+
.fractal-popup {
|
505
|
+
position: fixed;
|
506
|
+
z-index: 9999;
|
507
|
+
top: 0;
|
508
|
+
right: 0;
|
509
|
+
bottom: 0;
|
510
|
+
left: 0;
|
687
511
|
|
688
|
-
#Checkout {
|
689
|
-
z-index: 100001;
|
690
512
|
width: 100%;
|
691
513
|
height: 100%;
|
692
|
-
|
693
|
-
|
694
|
-
border-radius: 24px;
|
695
|
-
border: 1px solid #e0dfe2;
|
696
|
-
margin-left: auto;
|
697
|
-
margin-right: auto;
|
698
|
-
display: block;
|
699
|
-
}
|
700
|
-
|
701
|
-
#Checkout .header {
|
514
|
+
background-color: rgba(0, 0, 0, 0.5);
|
515
|
+
transition: visibility 0s linear 0.25s, opacity 0.25s 0s, transform 0.25s;
|
702
516
|
display: flex;
|
703
|
-
/* Enables Flexbox */
|
704
517
|
justify-content: center;
|
705
|
-
/* Centers content horizontally */
|
706
518
|
align-items: center;
|
707
|
-
/* Centers content vertically */
|
708
|
-
text-align: center;
|
709
|
-
padding: 8px;
|
710
|
-
border-bottom: 1px solid #dedede;
|
711
|
-
margin: 0 10px 20px 10px;
|
712
|
-
}
|
713
|
-
|
714
|
-
#Checkout .header button {
|
715
|
-
border: 0;
|
716
|
-
background: none;
|
717
|
-
padding: 0;
|
718
|
-
}
|
719
|
-
|
720
|
-
#Checkout h1 {
|
721
|
-
margin: 0;
|
722
|
-
flex: 1;
|
723
|
-
padding: 10px;
|
724
|
-
/* Allows the title to grow and fill the space for centering */
|
725
|
-
font-size: 23px;
|
726
|
-
font-weight: 500;
|
727
|
-
color: #35254d;
|
728
|
-
align-items: start;
|
729
|
-
display: flex;
|
730
|
-
}
|
731
|
-
|
732
|
-
#Checkout > form {
|
733
|
-
margin: 0 25px 10px 25px;
|
734
|
-
}
|
735
|
-
|
736
|
-
label {
|
737
|
-
color: rgba(53, 37, 77, 0.6);
|
738
|
-
margin-bottom: 2px;
|
739
|
-
text-transform: uppercase;
|
740
|
-
font-family: "IBM Plex Mono", monospace;
|
741
|
-
font-weight: 500;
|
742
|
-
font-size: 12px;
|
743
519
|
}
|
744
520
|
|
745
|
-
.
|
521
|
+
.fractal-popup-content {
|
522
|
+
background-color: white;
|
523
|
+
padding:20px;
|
524
|
+
border-radius: 0.5rem;
|
525
|
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
526
|
+
box-sizing: border-box;
|
746
527
|
position: relative;
|
747
528
|
}
|
748
529
|
|
749
|
-
|
750
|
-
|
751
|
-
|
530
|
+
@media only screen and (min-width: 600px){
|
531
|
+
.fractal-popup-content {
|
532
|
+
width: 500px;
|
752
533
|
|
753
|
-
|
754
|
-
text-transform: capitalize !important;
|
755
|
-
}
|
756
|
-
|
757
|
-
#zipcode {
|
758
|
-
width: 18px;
|
759
|
-
position: absolute;
|
760
|
-
right: 8px;
|
761
|
-
top: 9px;
|
762
|
-
}
|
763
|
-
|
764
|
-
#zipcode .zip-tip {
|
765
|
-
display: none;
|
766
|
-
background-color: rgb(0, 0, 0, 0.4);
|
767
|
-
padding: 5px 8px;
|
768
|
-
border-radius: 6px;
|
769
|
-
position: absolute;
|
770
|
-
right: 26px;
|
771
|
-
top: -9px;
|
772
|
-
font-size: 12.5px;
|
773
|
-
text-transform: capitalize !important;
|
774
|
-
color: #fff;
|
775
|
-
width: 240px;
|
776
|
-
line-height: 16px;
|
534
|
+
}
|
777
535
|
}
|
778
|
-
|
779
|
-
|
780
|
-
|
781
|
-
|
782
|
-
border-top: 7px solid transparent;
|
783
|
-
border-bottom: 7px solid transparent;
|
784
|
-
border-left: 7px solid #000;
|
785
|
-
opacity: 0.4;
|
786
|
-
position: absolute;
|
787
|
-
right: -7px;
|
788
|
-
top: 50%;
|
789
|
-
transform: translateY(-50%);
|
790
|
-
content: "";
|
536
|
+
@media only screen and (max-width: 600px){
|
537
|
+
.fractal-popup-content {
|
538
|
+
width: 350px;
|
539
|
+
}
|
791
540
|
}
|
792
|
-
|
793
|
-
|
794
|
-
|
541
|
+
@media only screen and (max-width: 450px){
|
542
|
+
.fractal-popup-content {
|
543
|
+
width: 300px;
|
544
|
+
}
|
795
545
|
}
|
796
|
-
|
797
|
-
|
798
|
-
|
799
|
-
|
800
|
-
|
801
|
-
height: 30px;
|
802
|
-
line-height: 30px;
|
803
|
-
font-size: 16px;
|
546
|
+
.close-popup {
|
547
|
+
max-height:25px;
|
548
|
+
width:25px;
|
549
|
+
height: 25px;
|
550
|
+
color: #999;
|
804
551
|
position: absolute;
|
805
|
-
top:
|
806
|
-
right:
|
807
|
-
|
552
|
+
top: 2px;
|
553
|
+
right: 4px;
|
554
|
+
z-index: 7;
|
808
555
|
text-align: center;
|
809
|
-
|
810
|
-
|
811
|
-
|
812
|
-
|
813
|
-
color: #777;
|
814
|
-
}
|
815
|
-
|
816
|
-
.amount-placeholder {
|
817
|
-
white-space: nowrap;
|
818
|
-
font-size: 44px;
|
819
|
-
/* height: 35px; */
|
820
|
-
font-weight: 600;
|
821
|
-
line-height: 40px;
|
822
|
-
}
|
823
|
-
|
824
|
-
.amount-placeholder > button {
|
825
|
-
float: right;
|
826
|
-
width: 60px;
|
827
|
-
}
|
828
|
-
|
829
|
-
.amount-placeholder > span {
|
830
|
-
line-height: 34px;
|
831
|
-
}
|
832
|
-
|
833
|
-
.top-amnt {
|
556
|
+
cursor: pointer;
|
557
|
+
border-radius: 0.25rem;
|
558
|
+
font-size: 30px;
|
559
|
+
line-height: 30px;
|
834
560
|
display: flex;
|
835
|
-
margin-bottom: 10px;
|
836
561
|
align-items: center;
|
837
|
-
justify-content:
|
838
|
-
}
|
839
|
-
|
840
|
-
.amtleft {
|
841
|
-
text-align: center;
|
842
|
-
}
|
843
|
-
|
844
|
-
.amtleft span {
|
845
|
-
color: #35254d;
|
846
|
-
margin: 0 -5px;
|
847
|
-
}
|
848
|
-
|
849
|
-
.card-row {
|
850
|
-
text-align: right;
|
851
|
-
margin: 22px 0 0 0;
|
852
|
-
max-width: 85px;
|
853
|
-
line-height: 20px;
|
854
|
-
}
|
855
|
-
|
856
|
-
.yer {
|
857
|
-
border-radius: 0;
|
562
|
+
justify-content: center;
|
858
563
|
}
|
859
564
|
|
860
|
-
.
|
861
|
-
|
862
|
-
height: 21px;
|
863
|
-
margin: 0 2px;
|
864
|
-
background-repeat: no-repeat;
|
865
|
-
display: inline-block;
|
866
|
-
background-size: contain;
|
565
|
+
.close-popup:hover {
|
566
|
+
color: #000;
|
867
567
|
}
|
868
568
|
|
869
|
-
.
|
870
|
-
|
871
|
-
padding-right: 50px;
|
872
|
-
background-position: right 2px center;
|
873
|
-
background-size: auto 90%;
|
569
|
+
.fractal-inpt-list {
|
570
|
+
margin-bottom: 15px;
|
874
571
|
}
|
875
572
|
|
876
|
-
|
877
|
-
|
878
|
-
|
879
|
-
|
880
|
-
|
881
|
-
|
882
|
-
|
883
|
-
|
884
|
-
right: -71px;
|
885
|
-
top: -54px;
|
886
|
-
width: 165px;
|
887
|
-
border-radius: 5px;
|
888
|
-
padding: 5px;
|
889
|
-
background-color: rgb(0, 0, 0, 0.3);
|
890
|
-
display: none;
|
573
|
+
.fractal-label {
|
574
|
+
color: #727272;
|
575
|
+
margin-bottom: 3px;
|
576
|
+
font-family: "Inter", sans-serif;
|
577
|
+
font-weight: 500;
|
578
|
+
font-size: 12px;
|
579
|
+
display: block;
|
580
|
+
text-align: left;
|
891
581
|
}
|
892
582
|
|
893
|
-
.
|
894
|
-
|
895
|
-
|
896
|
-
|
897
|
-
|
898
|
-
|
899
|
-
|
900
|
-
|
901
|
-
|
902
|
-
|
903
|
-
|
904
|
-
|
583
|
+
.fractal-input {
|
584
|
+
display: block;
|
585
|
+
width: 100%;
|
586
|
+
padding: .320rem .75rem;
|
587
|
+
font-size: 1rem;
|
588
|
+
font-weight: 400;
|
589
|
+
line-height: 1.5;
|
590
|
+
color: #35254D;
|
591
|
+
appearance: none;
|
592
|
+
background-color:#ffffff;
|
593
|
+
background-clip: padding-box;
|
594
|
+
border:1px solid #dee2e6;
|
595
|
+
border-radius: 0.375rem;
|
596
|
+
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
|
597
|
+
}
|
598
|
+
|
599
|
+
.fractal-input:focus {border:#86b7fe 1px solid; outline: none;}
|
600
|
+
|
601
|
+
.fractal-group {
|
602
|
+
position: relative;
|
603
|
+
display: flex;
|
604
|
+
align-items: stretch;
|
605
|
+
width: 100%;
|
905
606
|
}
|
906
607
|
|
907
|
-
.
|
908
|
-
|
608
|
+
.fractal-group-icons {
|
609
|
+
display: flex;
|
610
|
+
align-items: center;
|
611
|
+
padding: 0.375rem 0.75rem;
|
612
|
+
font-size: 1rem;
|
613
|
+
font-weight: 400;
|
614
|
+
line-height: 1.5;
|
615
|
+
color: #212529;
|
616
|
+
text-align: center;
|
617
|
+
white-space: nowrap;
|
618
|
+
background-color: #f8f9fa;
|
619
|
+
border:#dee2e6 1px solid;
|
620
|
+
border-radius: 0.375rem 0 0 0.375rem ;
|
909
621
|
}
|
910
622
|
|
911
|
-
.
|
912
|
-
|
913
|
-
height: 45px;
|
623
|
+
.fractal-group .fractal-input{
|
624
|
+
border-radius:0 0.375rem 0.375rem 0;
|
914
625
|
}
|
915
626
|
|
916
|
-
.cvc-preview-container.two-card div.amex-cvc-preview {
|
917
|
-
float: right;
|
918
|
-
}
|
919
627
|
|
920
|
-
.
|
921
|
-
|
628
|
+
.pay-button {
|
629
|
+
outline: 0;
|
630
|
+
height: 46px;
|
631
|
+
font-size: 16px;
|
632
|
+
background: #ddd;
|
633
|
+
border: none;
|
634
|
+
display: block;
|
635
|
+
color: #fff;
|
636
|
+
width: 100%;
|
637
|
+
border-radius: 180px;
|
638
|
+
margin: 10px 0;
|
639
|
+
text-decoration: none;
|
922
640
|
}
|
923
641
|
|
924
|
-
|
925
|
-
height: 160px;
|
926
|
-
} */
|
642
|
+
.pay-button:hover, .pay-button:focus {background: #333; color: #fff;}
|
927
643
|
|
928
|
-
.
|
929
|
-
|
930
|
-
|
644
|
+
.fractal-powerd-by {
|
645
|
+
display: flex;
|
646
|
+
font-size: 12px;
|
647
|
+
text-align: center;
|
648
|
+
align-items: center;
|
649
|
+
justify-content: center;
|
650
|
+
margin: 5px 0 20px 0;
|
931
651
|
}
|
932
652
|
|
933
|
-
.visa-mc-dis-cvc-preview {
|
934
|
-
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOYAAACOCAMAAAASE4S+AAAAAXNSR0IArs4c6QAAAadQTFRFAAAAzbFj+NyAyLNg+N2DzbRk+96CzrVj+96AzrNj+92By7Rl+92AzbRl/eCDzrRl/t+DzrVl/t+CzbVm/t+C3MFt3MFv/N2B/N6CzrRm/uCDzrRm/uCC7M93/N6CAAAAAQEBAgIBBAQCBQUDBwcECQgFDAsGDg0HEA4IEQ8JFRMLFxUMIBwQIR0RJSETKyYWLikYLyoYMCsZMSsZNC4bNzEcOTIdQDkhQTkhQzsiRT0jRj4kSkEmTEMnWE4tWU8uWk8uXFEvXVIwXlMwX1QxaV02bWA4bmE5cWQ6eGo+eWs+fW5Afm9Bi3pHjHtIkH9KmIZOmYdPnIlQnYpRo5BUppJVqJRWqpZXq5dYrJdYrZhZuaNfvaZhvqdiwKljwapjxK1lybFnyrJoy7NozrVm1Ltq171u2L5v2b9s2b9t2sBt3cNy3zEx3zIx38Rz4MVz4cZ04kI552NI6GVJ6Mx36s5368957dF674xb79J78NN78dV78tV789Z99Nd99dh+9rZv9th+9tl+99l/+duA+sx5+sx6+t2B+92B/N6B/d+C/uCD////AikOogAAAB90Uk5TACQkJSU9PT4+Q0NERJqav7/AwNjY4uLi4u7u8/P6+u6knPAAAAJkSURBVHja7d3pTxNBGMfxQbwAW06Pcj0tntQT8b7v+0JFxaserQcuKlQUFbFUaqvjH+1uG0lMfEETie4z39+bJ/tik/1kjt3MbDLGBFkWbeu0CtPZFq03v7KwxSpO04KKcmm7VZ32xeW2VK70nUF7tlj1afJnH+tA6k3UBWbUrHKBudJ0u8DsNtaJwIQJEyZMmDBhwoQJEyZMmPPCFCcCEyZMmDBhwoQJEyZMmDBhwoQJEyZMmDBhwoQJ010m+5swYcKECRMmTJgwYcKECRMmTJgwYcIMFfPHP8/vz5PLjnpzzmg2F07mxIhXVUYmwsjMVan0nbkQMrOeN1aY+zAsjHleNoRMf1x+rWa6KfjjM4RMvxdWN63+4QaYMGHC/EvM6b0HgpI6tvtoyq9vz+4/clcf89sJ2eiXIZGEyJD9sEl6RAa1MVPbpczsk8vT52SHHZCDUxelXxtzW/x4wPx+6cxn+0A2208PX9pB2aONef7xk3JrBjkth4Jysnf9fX1T0Czzmqx+6pcvcel/pJd5RRLXg1p6d0vWvdHKHJCeG2XljLVb5aZS5r2E3A6uTiUu2Km1klLK3CXxZDK5xd6RNYd3St+MTuaryr94G6y92iuy77X+b9rSi/d8usOEyZIXC5gsR7O5MN9bRexvwoQJEyZMmDBhwoQJEyZMmDBhwoT5vzNLLihLJu8CM2+6XGB2meUuMFeYyEf9ysmIqcsUtSuLmQZjGp8pdxafNxtjamIZ1f12MhOrDQ6uXhRLD4/nVb4/S/nx4XRsSeUY8prGtOI0186eKl8Xae3QSOxojTSUgT8BEvkXyqDHONgAAAAASUVORK5CYII=")
|
935
|
-
center center/contain no-repeat;
|
936
|
-
}
|
937
653
|
|
938
|
-
.submit-button-lock {
|
939
|
-
height: 15px;
|
940
|
-
margin-top: -2px;
|
941
|
-
margin-right: 7px;
|
942
|
-
vertical-align: middle;
|
943
|
-
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAgCAMAAAA7dZg3AAAKQWlDQ1BJQ0MgUHJvZmlsZQAASA2dlndUU9kWh8+9N73QEiIgJfQaegkg0jtIFQRRiUmAUAKGhCZ2RAVGFBEpVmRUwAFHhyJjRRQLg4Ji1wnyEFDGwVFEReXdjGsJ7601896a/cdZ39nnt9fZZ+9917oAUPyCBMJ0WAGANKFYFO7rwVwSE8vE9wIYEAEOWAHA4WZmBEf4RALU/L09mZmoSMaz9u4ugGS72yy/UCZz1v9/kSI3QyQGAApF1TY8fiYX5QKUU7PFGTL/BMr0lSkyhjEyFqEJoqwi48SvbPan5iu7yZiXJuShGlnOGbw0noy7UN6aJeGjjAShXJgl4GejfAdlvVRJmgDl9yjT0/icTAAwFJlfzOcmoWyJMkUUGe6J8gIACJTEObxyDov5OWieAHimZ+SKBIlJYqYR15hp5ejIZvrxs1P5YjErlMNN4Yh4TM/0tAyOMBeAr2+WRQElWW2ZaJHtrRzt7VnW5mj5v9nfHn5T/T3IevtV8Sbsz55BjJ5Z32zsrC+9FgD2JFqbHbO+lVUAtG0GQOXhrE/vIADyBQC03pzzHoZsXpLE4gwnC4vs7GxzAZ9rLivoN/ufgm/Kv4Y595nL7vtWO6YXP4EjSRUzZUXlpqemS0TMzAwOl89k/fcQ/+PAOWnNycMsnJ/AF/GF6FVR6JQJhIlou4U8gViQLmQKhH/V4X8YNicHGX6daxRodV8AfYU5ULhJB8hvPQBDIwMkbj96An3rWxAxCsi+vGitka9zjzJ6/uf6Hwtcim7hTEEiU+b2DI9kciWiLBmj34RswQISkAd0oAo0gS4wAixgDRyAM3AD3iAAhIBIEAOWAy5IAmlABLJBPtgACkEx2AF2g2pwANSBetAEToI2cAZcBFfADXALDIBHQAqGwUswAd6BaQiC8BAVokGqkBakD5lC1hAbWgh5Q0FQOBQDxUOJkBCSQPnQJqgYKoOqoUNQPfQjdBq6CF2D+qAH0CA0Bv0BfYQRmALTYQ3YALaA2bA7HAhHwsvgRHgVnAcXwNvhSrgWPg63whfhG/AALIVfwpMIQMgIA9FGWAgb8URCkFgkAREha5EipAKpRZqQDqQbuY1IkXHkAwaHoWGYGBbGGeOHWYzhYlZh1mJKMNWYY5hWTBfmNmYQM4H5gqVi1bGmWCesP3YJNhGbjS3EVmCPYFuwl7ED2GHsOxwOx8AZ4hxwfrgYXDJuNa4Etw/XjLuA68MN4SbxeLwq3hTvgg/Bc/BifCG+Cn8cfx7fjx/GvyeQCVoEa4IPIZYgJGwkVBAaCOcI/YQRwjRRgahPdCKGEHnEXGIpsY7YQbxJHCZOkxRJhiQXUiQpmbSBVElqIl0mPSa9IZPJOmRHchhZQF5PriSfIF8lD5I/UJQoJhRPShxFQtlOOUq5QHlAeUOlUg2obtRYqpi6nVpPvUR9Sn0vR5Mzl/OX48mtk6uRa5Xrl3slT5TXl3eXXy6fJ18hf0r+pvy4AlHBQMFTgaOwVqFG4bTCPYVJRZqilWKIYppiiWKD4jXFUSW8koGStxJPqUDpsNIlpSEaQtOledK4tE20Otpl2jAdRzek+9OT6cX0H+i99AllJWVb5SjlHOUa5bPKUgbCMGD4M1IZpYyTjLuMj/M05rnP48/bNq9pXv+8KZX5Km4qfJUilWaVAZWPqkxVb9UU1Z2qbapP1DBqJmphatlq+9Uuq43Pp893ns+dXzT/5PyH6rC6iXq4+mr1w+o96pMamhq+GhkaVRqXNMY1GZpumsma5ZrnNMe0aFoLtQRa5VrntV4wlZnuzFRmJbOLOaGtru2nLdE+pN2rPa1jqLNYZ6NOs84TXZIuWzdBt1y3U3dCT0svWC9fr1HvoT5Rn62fpL9Hv1t/ysDQINpgi0GbwaihiqG/YZ5ho+FjI6qRq9Eqo1qjO8Y4Y7ZxivE+41smsImdSZJJjclNU9jU3lRgus+0zwxr5mgmNKs1u8eisNxZWaxG1qA5wzzIfKN5m/krCz2LWIudFt0WXyztLFMt6ywfWSlZBVhttOqw+sPaxJprXWN9x4Zq42Ozzqbd5rWtqS3fdr/tfTuaXbDdFrtOu8/2DvYi+yb7MQc9h3iHvQ732HR2KLuEfdUR6+jhuM7xjOMHJ3snsdNJp9+dWc4pzg3OowsMF/AX1C0YctFx4bgccpEuZC6MX3hwodRV25XjWuv6zE3Xjed2xG3E3dg92f24+ysPSw+RR4vHlKeT5xrPC16Il69XkVevt5L3Yu9q76c+Oj6JPo0+E752vqt9L/hh/QL9dvrd89fw5/rX+08EOASsCegKpARGBFYHPgsyCRIFdQTDwQHBu4IfL9JfJFzUFgJC/EN2hTwJNQxdFfpzGC4sNKwm7Hm4VXh+eHcELWJFREPEu0iPyNLIR4uNFksWd0bJR8VF1UdNRXtFl0VLl1gsWbPkRoxajCCmPRYfGxV7JHZyqffS3UuH4+ziCuPuLjNclrPs2nK15anLz66QX8FZcSoeGx8d3xD/iRPCqeVMrvRfuXflBNeTu4f7kufGK+eN8V34ZfyRBJeEsoTRRJfEXYljSa5JFUnjAk9BteB1sl/ygeSplJCUoykzqdGpzWmEtPi000IlYYqwK10zPSe9L8M0ozBDuspp1e5VE6JA0ZFMKHNZZruYjv5M9UiMJJslg1kLs2qy3mdHZZ/KUcwR5vTkmuRuyx3J88n7fjVmNXd1Z752/ob8wTXuaw6thdauXNu5Tnddwbrh9b7rj20gbUjZ8MtGy41lG99uit7UUaBRsL5gaLPv5sZCuUJR4b0tzlsObMVsFWzt3WazrWrblyJe0fViy+KK4k8l3JLr31l9V/ndzPaE7b2l9qX7d+B2CHfc3em681iZYlle2dCu4F2t5czyovK3u1fsvlZhW3FgD2mPZI+0MqiyvUqvakfVp+qk6oEaj5rmvep7t+2d2sfb17/fbX/TAY0DxQc+HhQcvH/I91BrrUFtxWHc4azDz+ui6rq/Z39ff0TtSPGRz0eFR6XHwo911TvU1zeoN5Q2wo2SxrHjccdv/eD1Q3sTq+lQM6O5+AQ4ITnx4sf4H++eDDzZeYp9qukn/Z/2ttBailqh1tzWibakNml7THvf6YDTnR3OHS0/m/989Iz2mZqzymdLz5HOFZybOZ93fvJCxoXxi4kXhzpXdD66tOTSna6wrt7LgZevXvG5cqnbvfv8VZerZ645XTt9nX297Yb9jdYeu56WX+x+aem172296XCz/ZbjrY6+BX3n+l37L972un3ljv+dGwOLBvruLr57/17cPel93v3RB6kPXj/Mejj9aP1j7OOiJwpPKp6qP6391fjXZqm99Oyg12DPs4hnj4a4Qy//lfmvT8MFz6nPK0a0RupHrUfPjPmM3Xqx9MXwy4yX0+OFvyn+tveV0auffnf7vWdiycTwa9HrmT9K3qi+OfrW9m3nZOjk03dp76anit6rvj/2gf2h+2P0x5Hp7E/4T5WfjT93fAn88ngmbWbm3/eE8/syOll+AAAAYFBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////98JRy6AAAAH3RSTlMAAgYMEyIzOUpTVFViY3N2gJmcnaipq7fX3ebx+Pn8eTEuDQAAAI9JREFUKM/N0UkOglAQRdFHDyK90n64+9+lAyQgookjuaNKTlJJpaQlO2n6sW8SW/uCjrku2EloWDLhi3gDa4O3pTtA5Tt+BXDbiDsBmSQpAyZ3pRhoLUmS1QLxSilQPOcCSFfKgfxgPgfZ9ch7Y21LCcdd5wVH5SckEzkXc0ylpPJnMpETmX/d9eUpH1/5AKrsQVrz7YPBAAAAAElFTkSuQmCC")
|
944
|
-
center center/contain no-repeat;
|
945
|
-
width: 14px;
|
946
|
-
display: inline-block;
|
947
|
-
}
|
948
654
|
|
949
|
-
.align-middle {
|
950
|
-
vertical-align: middle;
|
951
|
-
}
|
952
655
|
|
953
|
-
input {
|
954
|
-
box-shadow: none !important;
|
955
|
-
}
|
956
656
|
|
957
|
-
.powerd-by-part {
|
958
|
-
display: flex;
|
959
|
-
font-size: 12px;
|
960
|
-
text-align: center;
|
961
|
-
align-items: center;
|
962
|
-
justify-content: center;
|
963
|
-
margin: 5px 0 20px 0;
|
964
|
-
}
|
965
657
|
|
966
|
-
.powered-logo {
|
967
|
-
width: 18px;
|
968
|
-
height: auto;
|
969
|
-
float: right;
|
970
|
-
padding: 2px;
|
971
|
-
background: #000000;
|
972
|
-
border-radius: 4px;
|
973
|
-
margin-left: 5px;
|
974
|
-
}
|
975
658
|
|
976
|
-
|
977
|
-
display: block;
|
978
|
-
margin-bottom: 8px;
|
979
|
-
}
|
659
|
+
/* ................................................................ */
|
980
660
|
|
981
|
-
.
|
982
|
-
|
983
|
-
|
984
|
-
|
985
|
-
|
661
|
+
.fractal-pay-popup {
|
662
|
+
position: fixed;
|
663
|
+
z-index: 9999;
|
664
|
+
top: 0;
|
665
|
+
right: 0;
|
666
|
+
bottom: 0;
|
667
|
+
left: 0;
|
668
|
+
width: 100%;
|
669
|
+
height: 100%;
|
670
|
+
background-color: rgba(0, 0, 0, 0.5);
|
671
|
+
transition: visibility 0s linear 0.25s, opacity 0.25s 0s, transform 0.25s;
|
672
|
+
display: flex;
|
673
|
+
justify-content: center;
|
674
|
+
align-items: center;
|
986
675
|
}
|
987
676
|
|
988
|
-
|
989
|
-
|
677
|
+
.fractal-pay-popup-content {
|
678
|
+
background-color: white;
|
679
|
+
padding:0px;
|
680
|
+
border-radius: 0.5rem;
|
681
|
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
682
|
+
box-sizing: border-box;
|
683
|
+
position: relative;
|
684
|
+
height: 100%;
|
685
|
+
max-height:90%;
|
686
|
+
overflow: hidden;
|
990
687
|
}
|
688
|
+
.fractal-pay-popup-content iframe{height: 100% !important; }
|
689
|
+
.fractal-pay-popup-content iframe body{overflow: hidden;}
|
690
|
+
@media only screen and (min-width: 768px){
|
691
|
+
.fractal-pay-popup-content iframe{width: 768px;}
|
692
|
+
.fractal-pay-popup-content {
|
693
|
+
width: 750px;
|
991
694
|
|
992
|
-
|
993
|
-
cursor: pointer;
|
994
|
-
border: 1px solid rgb(252, 252, 252);
|
995
|
-
padding: 10px;
|
996
|
-
border-radius: 5px;
|
997
|
-
background: #ffffff;
|
695
|
+
}
|
998
696
|
}
|
999
|
-
|
1000
|
-
|
1001
|
-
|
1002
|
-
|
1003
|
-
transition: all 5s;
|
1004
|
-
padding: 5px;
|
1005
|
-
transition: max-height 0.5s, overflow 0.5s 0.5s;
|
697
|
+
@media only screen and (max-width: 600px){
|
698
|
+
.fractal-pay-popup-content {
|
699
|
+
width: 350px;
|
700
|
+
}
|
1006
701
|
}
|
1007
|
-
|
1008
|
-
|
1009
|
-
|
1010
|
-
|
1011
|
-
} */
|
1012
|
-
|
1013
|
-
input[type="number"]::-webkit-outer-spin-button,
|
1014
|
-
input[type="number"]::-webkit-inner-spin-button {
|
1015
|
-
-webkit-appearance: none;
|
1016
|
-
margin: 0;
|
702
|
+
@media only screen and (max-width: 450px){
|
703
|
+
.fractal-pay-popup-content {
|
704
|
+
width: 300px;
|
705
|
+
}
|
1017
706
|
}
|
1018
707
|
|
1019
|
-
|
1020
|
-
|
708
|
+
.request-payment-popup-container {
|
709
|
+
padding: 0px !important;
|
710
|
+
border-radius: 12px !important;
|
1021
711
|
}
|
1022
|
-
|
1023
|
-
`);
|
712
|
+
`);
|
1024
713
|
};
|
1025
|
-
var
|
1026
|
-
|
1027
|
-
// src/app/components/
|
1028
|
-
var
|
1029
|
-
|
1030
|
-
|
1031
|
-
|
1032
|
-
|
1033
|
-
|
1034
|
-
|
1035
|
-
amountzero: "Amount should not be zero",
|
1036
|
-
amountenter: "Please enter an amount",
|
1037
|
-
amountvalid: "Please enter a valid amount",
|
1038
|
-
phoneoremailrequired: "Phone or Email is required",
|
1039
|
-
invalidemail: "Invalid email",
|
1040
|
-
invalidemailformat: "Invalid email format",
|
1041
|
-
onlylettersallowed: "Only letters are allowed",
|
1042
|
-
phonenumberlength: "Phone number should be 10 digits",
|
1043
|
-
phonenumberrequired: "Please enter a phone number",
|
1044
|
-
// phonenumbervalid:'Please enter a valid 10-digit phone number',
|
1045
|
-
phonenumbervalid: "Please enter a valid phone number (max 10 digits)",
|
1046
|
-
phonenumbervalidnumberonly: "Please enter a valid phone number (numbers only)",
|
1047
|
-
orderidenter: "Please enter an order ID",
|
1048
|
-
networkresponseerror: "Network response was not ok",
|
1049
|
-
anerroroccured: "An error occurred. Please try again.",
|
1050
|
-
montherror: "Please write month only 1 to 12",
|
1051
|
-
fieldrequired: "This field is required",
|
1052
|
-
fractalpayclientidrequired: "Fractalpay client key is missing or empty."
|
714
|
+
var CustomModal2styles_default = CustomModal2styles;
|
715
|
+
|
716
|
+
// src/app/components/CustomModal/CustomModal2.tsx
|
717
|
+
var CustomModal2 = ({
|
718
|
+
open,
|
719
|
+
onClose,
|
720
|
+
children
|
721
|
+
}) => {
|
722
|
+
if (!open) return null;
|
723
|
+
return /* @__PURE__ */ import_react5.default.createElement(import_react5.default.Fragment, null, /* @__PURE__ */ import_react5.default.createElement(CustomModal2styles_default, null), /* @__PURE__ */ import_react5.default.createElement("div", { className: "fractal-popup" }, /* @__PURE__ */ import_react5.default.createElement("div", { className: "fractal-popup-content request-payment-popup-container" }, children)));
|
1053
724
|
};
|
1054
|
-
|
1055
|
-
// src/app/components/Bootstrapclient.ts
|
1056
|
-
var import_react4 = require("react");
|
1057
|
-
function BootstrapClient() {
|
1058
|
-
(0, import_react4.useEffect)(() => {
|
1059
|
-
require("bootstrap/dist/js/bootstrap.bundle.min.js");
|
1060
|
-
}, []);
|
1061
|
-
return null;
|
1062
|
-
}
|
1063
|
-
var Bootstrapclient_default = BootstrapClient;
|
725
|
+
var CustomModal2_default = CustomModal2;
|
1064
726
|
|
1065
727
|
// src/app/components/RequestPayment/RequestPayment.tsx
|
728
|
+
var import_axios = __toESM(require("axios"));
|
729
|
+
var import_react_number_format = require("react-number-format");
|
1066
730
|
function RequestPayment(props) {
|
1067
731
|
const fractalpayClientKey = props.fractalpayClientKey;
|
1068
|
-
const [show, setShow] = (0,
|
1069
|
-
const [loading, setLoading] = (0,
|
1070
|
-
const [errors, setErrors] = (0,
|
1071
|
-
const [
|
732
|
+
const [show, setShow] = (0, import_react6.useState)(false);
|
733
|
+
const [loading, setLoading] = (0, import_react6.useState)(false);
|
734
|
+
const [errors, setErrors] = (0, import_react6.useState)({});
|
735
|
+
const [phone, setPhone] = (0, import_react6.useState)(null);
|
736
|
+
const [requestDetails, setRequestDetails] = (0, import_react6.useState)({
|
1072
737
|
email: "",
|
1073
|
-
amount: "",
|
1074
738
|
phone_number: "",
|
1075
739
|
order_id: "",
|
1076
740
|
name: "",
|
1077
741
|
fractalpayPublicKey: fractalpayClientKey
|
1078
742
|
});
|
1079
|
-
const [
|
743
|
+
const [amount, setAmount] = (0, import_react6.useState)("");
|
744
|
+
const [showConfirmationModal, setShowConfirmationModal] = (0, import_react6.useState)(true);
|
745
|
+
const [apiResponse, setApiResponse] = (0, import_react6.useState)(null);
|
1080
746
|
const phoneNumberRegex = (value) => /^\(?\d{3}\)?[-.\s]?\d{3}[-.\s]?\d{4}$/.test(value);
|
1081
747
|
const amoutRegex = /[+-]?([0-9]*[.])?[0-9]+/;
|
1082
|
-
const positiveAmountRegex = /^[+]?\d+(\.\d+)?$/;
|
1083
748
|
const isValidEmail = (value) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(value);
|
1084
749
|
const isAlpha = (value) => /^[A-Za-z\s]*$/.test(value);
|
1085
750
|
const handleClose = () => {
|
1086
751
|
setShow(false);
|
1087
|
-
emptyFields();
|
1088
752
|
setErrors({});
|
1089
753
|
};
|
1090
754
|
const handleShow = () => setShow(true);
|
1091
|
-
const handleCloseConfirmationModal = () =>
|
1092
|
-
|
755
|
+
const handleCloseConfirmationModal = () => {
|
756
|
+
console.log(apiResponse, "apiresponse");
|
757
|
+
handleSubmit(apiResponse);
|
758
|
+
setShowConfirmationModal(false);
|
759
|
+
};
|
760
|
+
function emptyFields() {
|
1093
761
|
setRequestDetails({
|
1094
762
|
email: "",
|
1095
|
-
amount: "",
|
1096
763
|
phone_number: "",
|
1097
764
|
order_id: "",
|
1098
765
|
name: "",
|
1099
766
|
fractalpayPublicKey: fractalpayClientKey
|
1100
767
|
});
|
1101
|
-
|
1102
|
-
|
768
|
+
setAmount("");
|
769
|
+
}
|
770
|
+
function handleSubmit(event) {
|
1103
771
|
let message = {
|
1104
772
|
type: "preview.compiledcheck",
|
1105
773
|
other: __spreadProps(__spreadValues({}, event), { status: true })
|
1106
774
|
};
|
1107
|
-
console.log("message: ", message);
|
1108
775
|
window.parent.postMessage(message, "*");
|
1109
|
-
}
|
776
|
+
}
|
1110
777
|
const sendRequestPayment = async () => {
|
778
|
+
if (Object.keys(errors).length > 0) {
|
779
|
+
return;
|
780
|
+
}
|
1111
781
|
setErrors({});
|
1112
|
-
if (!(requestDetails == null ? void 0 : requestDetails.email) &&
|
782
|
+
if (!(requestDetails == null ? void 0 : requestDetails.email) && phone && !phoneNumberRegex(phone)) {
|
1113
783
|
setErrors((prevErrors) => __spreadProps(__spreadValues({}, prevErrors), {
|
1114
|
-
|
784
|
+
phone: ErrorText.phonenumbervalid
|
1115
785
|
}));
|
1116
786
|
return;
|
1117
787
|
}
|
@@ -1122,39 +792,28 @@ function RequestPayment(props) {
|
|
1122
792
|
setLoading(true);
|
1123
793
|
const formData = {
|
1124
794
|
fractalpayPublicKey: fractalpayClientKey,
|
1125
|
-
amount
|
1126
|
-
phone_number:
|
795
|
+
amount,
|
796
|
+
phone_number: phone,
|
1127
797
|
order_id: requestDetails.order_id,
|
1128
798
|
action: "request",
|
1129
799
|
name: requestDetails.name,
|
1130
|
-
email: requestDetails.email
|
800
|
+
email: requestDetails.email,
|
801
|
+
customer_id: (props == null ? void 0 : props.customerId) ? props == null ? void 0 : props.customerId : ""
|
1131
802
|
};
|
1132
|
-
|
1133
|
-
|
1134
|
-
headers: {
|
1135
|
-
"Content-Type": "application/json"
|
1136
|
-
},
|
1137
|
-
body: JSON.stringify(formData)
|
1138
|
-
});
|
1139
|
-
if (!response.ok) {
|
1140
|
-
throw new Error("Failed to create widget order");
|
1141
|
-
}
|
1142
|
-
const data = await response.json();
|
1143
|
-
if (data) {
|
803
|
+
let response = await import_axios.default.post(`${baseUrl}create-widget-order`, formData);
|
804
|
+
if ((response == null ? void 0 : response.status) === 200) {
|
1144
805
|
setShowConfirmationModal(true);
|
1145
806
|
setShow(false);
|
1146
807
|
emptyFields();
|
1147
|
-
|
808
|
+
setApiResponse(response == null ? void 0 : response.data);
|
1148
809
|
}
|
1149
|
-
console.log(data);
|
1150
810
|
setLoading(false);
|
1151
811
|
} catch (error) {
|
1152
812
|
console.log(error);
|
1153
813
|
setLoading(false);
|
1154
814
|
}
|
1155
815
|
};
|
1156
|
-
|
1157
|
-
const PositiveAmount = (amount) => positiveAmountRegex.test(amount);
|
816
|
+
let favicon_logo = baseUrl + "images/logo-img.png";
|
1158
817
|
const handleChange = (e) => {
|
1159
818
|
const { value } = e.target;
|
1160
819
|
const token = e.target.dataset.token;
|
@@ -1165,231 +824,153 @@ function RequestPayment(props) {
|
|
1165
824
|
}));
|
1166
825
|
return;
|
1167
826
|
}
|
1168
|
-
|
1169
|
-
|
1170
|
-
|
1171
|
-
|
1172
|
-
return;
|
1173
|
-
}
|
1174
|
-
if (token === "email" && !isValidEmail(value)) {
|
1175
|
-
setErrors((prevErrors) => __spreadProps(__spreadValues({}, prevErrors), {
|
1176
|
-
email: ErrorText.invalidemailformat
|
1177
|
-
}));
|
1178
|
-
return;
|
1179
|
-
}
|
1180
|
-
if (token === "amount" && !value) {
|
1181
|
-
setErrors((prevErrors) => __spreadProps(__spreadValues({}, prevErrors), {
|
1182
|
-
amount: ErrorText.amountrequired
|
1183
|
-
}));
|
1184
|
-
return;
|
1185
|
-
}
|
1186
|
-
if (token === "amount" && !PositiveAmount(value)) {
|
1187
|
-
setErrors((prevErrors) => __spreadProps(__spreadValues({}, prevErrors), {
|
1188
|
-
amount: ErrorText.amountpositive
|
1189
|
-
}));
|
1190
|
-
return;
|
1191
|
-
}
|
1192
|
-
if (token === "amount" && parseFloat(value) === 0) {
|
1193
|
-
setErrors((prevErrors) => __spreadProps(__spreadValues({}, prevErrors), {
|
1194
|
-
amount: ErrorText.amountzero
|
1195
|
-
}));
|
1196
|
-
return;
|
827
|
+
let errorobj = errors;
|
828
|
+
if (token === "email" && !phone) {
|
829
|
+
delete errorobj.phone;
|
830
|
+
setErrors(errorobj);
|
1197
831
|
}
|
1198
832
|
if (value) {
|
1199
|
-
|
833
|
+
delete errorobj[token];
|
834
|
+
setErrors(errorobj);
|
1200
835
|
}
|
1201
|
-
|
1202
|
-
|
1203
|
-
|
1204
|
-
if (value && !value.includes(".")) {
|
1205
|
-
setRequestDetails((prev) => __spreadProps(__spreadValues({}, prev), {
|
1206
|
-
amount: `${value}.00`
|
1207
|
-
}));
|
836
|
+
if (token === "email" && !value) {
|
837
|
+
delete errorobj[token];
|
838
|
+
setErrors(errorobj);
|
1208
839
|
}
|
1209
840
|
};
|
841
|
+
const handleAmountChange = (data) => {
|
842
|
+
const { value } = data;
|
843
|
+
if (Number(value) > 0) {
|
844
|
+
let errorobj = errors;
|
845
|
+
delete errorobj.amount;
|
846
|
+
setErrors(errorobj);
|
847
|
+
}
|
848
|
+
setAmount(value);
|
849
|
+
};
|
1210
850
|
const validateForm = () => {
|
1211
851
|
let newErrors = {};
|
1212
|
-
if (!
|
1213
|
-
if (!requestDetails.
|
1214
|
-
if (!
|
1215
|
-
if (!
|
1216
|
-
if (!
|
852
|
+
if (!amount) newErrors.amount = ErrorText.amountrequired;
|
853
|
+
if (requestDetails.email && !isValidEmail(requestDetails == null ? void 0 : requestDetails.email)) newErrors.email = ErrorText.invalidemail;
|
854
|
+
if (!phone && !(requestDetails == null ? void 0 : requestDetails.email)) newErrors.phone = ErrorText.phoneoremailrequired;
|
855
|
+
if (!phone && !(requestDetails == null ? void 0 : requestDetails.email)) newErrors.email = ErrorText.phoneoremailrequired;
|
856
|
+
if (!phone && requestDetails.email && !isValidEmail(requestDetails == null ? void 0 : requestDetails.email)) newErrors.email = ErrorText.invalidemail;
|
857
|
+
if (props.from === "merchant" && !requestDetails.order_id) newErrors.order_id = ErrorText.orderidrequired;
|
1217
858
|
setErrors(newErrors);
|
1218
859
|
return Object.keys(newErrors).length === 0;
|
1219
860
|
};
|
1220
|
-
(0,
|
1221
|
-
if (props
|
1222
|
-
setRequestDetails((prev) => __spreadProps(__spreadValues({}, prev), {
|
861
|
+
(0, import_react6.useEffect)(() => {
|
862
|
+
if (props) {
|
863
|
+
setRequestDetails((prev) => __spreadProps(__spreadValues({}, prev), {
|
864
|
+
order_id: props.orderID ? props.orderID : "",
|
865
|
+
name: (props == null ? void 0 : props.name) ? props == null ? void 0 : props.name : "",
|
866
|
+
email: (props == null ? void 0 : props.email) ? props == null ? void 0 : props.email : ""
|
867
|
+
}));
|
868
|
+
setAmount(props.amount ? props.amount : "");
|
869
|
+
setPhone(props.phone ? `${props.phone}` : null);
|
870
|
+
}
|
871
|
+
}, [props]);
|
872
|
+
const handlePhoneChange = (e) => {
|
873
|
+
let value = e == null ? void 0 : e.value;
|
874
|
+
if (value && (value == null ? void 0 : value.length) > 0 && (value == null ? void 0 : value.length) !== 10) {
|
875
|
+
setErrors((prevErrors) => __spreadProps(__spreadValues({}, prevErrors), {
|
876
|
+
phone: ErrorText.phonenumberlength
|
877
|
+
}));
|
878
|
+
setPhone(value);
|
879
|
+
return;
|
880
|
+
} else {
|
881
|
+
setPhone(value);
|
1223
882
|
}
|
1224
|
-
|
1225
|
-
|
1226
|
-
if (
|
1227
|
-
|
883
|
+
let errorobj = errors;
|
884
|
+
delete errorobj.phone;
|
885
|
+
if (value && !(requestDetails == null ? void 0 : requestDetails.email)) {
|
886
|
+
delete errorobj.email;
|
1228
887
|
}
|
888
|
+
setErrors(errorobj);
|
1229
889
|
};
|
1230
|
-
|
1231
|
-
|
890
|
+
function formatAmount(amount2) {
|
891
|
+
return new Intl.NumberFormat("en-US", {
|
892
|
+
style: "currency",
|
893
|
+
currency: "USD",
|
894
|
+
minimumFractionDigits: 2,
|
895
|
+
maximumFractionDigits: 2
|
896
|
+
}).format(Number(amount2));
|
897
|
+
}
|
898
|
+
return /* @__PURE__ */ import_react6.default.createElement(import_react6.default.Fragment, null, /* @__PURE__ */ import_react6.default.createElement(RequestPaymentstyles_default, null), /* @__PURE__ */ import_react6.default.createElement(Loader_default, { loading }), /* @__PURE__ */ import_react6.default.createElement(import_react6.default.Fragment, null, /* @__PURE__ */ import_react6.default.createElement("button", { className: "paymentBtn", onClick: handleShow }, "Request Payment"), /* @__PURE__ */ import_react6.default.createElement(
|
899
|
+
CustomModal2_default,
|
1232
900
|
{
|
1233
|
-
show,
|
1234
|
-
|
1235
|
-
size: "lg",
|
1236
|
-
backdrop: "static",
|
1237
|
-
keyboard: false
|
901
|
+
open: show,
|
902
|
+
onClose: () => setShow(false)
|
1238
903
|
},
|
1239
|
-
/* @__PURE__ */
|
1240
|
-
/* @__PURE__ */
|
904
|
+
/* @__PURE__ */ import_react6.default.createElement("div", { className: "request-payment-amount-detail" }, /* @__PURE__ */ import_react6.default.createElement("p", { className: "request-payment-merchantname" }, "Pay ", props == null ? void 0 : props.webname), /* @__PURE__ */ import_react6.default.createElement("p", { className: "request-payment-amount" }, formatAmount(props == null ? void 0 : props.amount)), (props == null ? void 0 : props.from) === "merchant" && /* @__PURE__ */ import_react6.default.createElement("p", { className: "request-payment-orderid" }, requestDetails == null ? void 0 : requestDetails.order_id), /* @__PURE__ */ import_react6.default.createElement("span", { className: "request-payment-close-popup", onClick: handleClose }, /* @__PURE__ */ import_react6.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, /* @__PURE__ */ import_react6.default.createElement("g", { "clip-path": "url(#clip0_12425_52336)" }, /* @__PURE__ */ import_react6.default.createElement("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" })), /* @__PURE__ */ import_react6.default.createElement("defs", null, /* @__PURE__ */ import_react6.default.createElement("clipPath", { id: "clip0_12425_52336" }, /* @__PURE__ */ import_react6.default.createElement("rect", { width: "16", height: "16", fill: "white" })))))),
|
905
|
+
/* @__PURE__ */ import_react6.default.createElement("form", { className: "request-payment-input-form" }, /* @__PURE__ */ import_react6.default.createElement("div", { className: "request-payment-list-div" }, /* @__PURE__ */ import_react6.default.createElement("label", { htmlFor: "exampleFormControlInput2", className: "request-payment-input-label" }, "FULL NAME"), /* @__PURE__ */ import_react6.default.createElement(
|
1241
906
|
"input",
|
1242
907
|
{
|
1243
|
-
className: "
|
908
|
+
className: "request-payment-input-box",
|
1244
909
|
type: "text",
|
1245
910
|
placeholder: "Full Name",
|
1246
911
|
"data-token": "name",
|
1247
|
-
onChange: handleChange
|
1248
|
-
}
|
1249
|
-
), errors.name && /* @__PURE__ */ import_react5.default.createElement("small", { className: "text-danger" }, errors.name)), /* @__PURE__ */ import_react5.default.createElement("div", { className: "mb-3" }, /* @__PURE__ */ import_react5.default.createElement("label", { htmlFor: "requestPhoneNumber", className: "form-label" }, "Phone Number"), /* @__PURE__ */ import_react5.default.createElement(
|
1250
|
-
"input",
|
1251
|
-
{
|
1252
|
-
maxLength: 10,
|
1253
|
-
className: "form-control",
|
1254
|
-
onChange: (e) => {
|
1255
|
-
handleChange(e);
|
1256
|
-
},
|
1257
|
-
placeholder: "Phone Number",
|
1258
|
-
type: "text",
|
1259
|
-
"data-token": "phone_number"
|
1260
|
-
}
|
1261
|
-
), errors.phone_number && /* @__PURE__ */ import_react5.default.createElement("small", { className: "text-danger" }, errors.phone_number))), /* @__PURE__ */ import_react5.default.createElement("div", { className: "mb-3" }, /* @__PURE__ */ import_react5.default.createElement("label", { htmlFor: "exampleFormControlInput2", className: "form-label" }, "EMAIL"), /* @__PURE__ */ import_react5.default.createElement(
|
1262
|
-
"input",
|
1263
|
-
{
|
1264
|
-
className: "form-control",
|
1265
|
-
type: "text",
|
1266
|
-
placeholder: "Email",
|
1267
912
|
onChange: handleChange,
|
1268
|
-
|
913
|
+
value: requestDetails == null ? void 0 : requestDetails.name
|
1269
914
|
}
|
1270
|
-
), errors.
|
1271
|
-
|
915
|
+
), errors.name && /* @__PURE__ */ import_react6.default.createElement("small", { className: "request-payment-error-msg" }, errors.name)), /* @__PURE__ */ import_react6.default.createElement("div", { className: "request-payment-list-div" }, /* @__PURE__ */ import_react6.default.createElement("label", { htmlFor: "requestPhoneNumber", className: "request-payment-input-label" }, "Phone Number"), /* @__PURE__ */ import_react6.default.createElement(
|
916
|
+
import_react_number_format.PatternFormat,
|
1272
917
|
{
|
1273
|
-
|
1274
|
-
placeholder: "
|
1275
|
-
|
1276
|
-
|
1277
|
-
|
1278
|
-
|
1279
|
-
|
1280
|
-
onBlur: handleAmountBlur,
|
1281
|
-
onKeyDown: handleKeyDown,
|
1282
|
-
onFocus: (e) => e.target.addEventListener("wheel", function(e2) {
|
1283
|
-
e2.preventDefault();
|
1284
|
-
}, { passive: false })
|
918
|
+
className: "request-payment-input-box",
|
919
|
+
placeholder: "Mobile number",
|
920
|
+
format: "+1 (###) ###-####",
|
921
|
+
value: phone,
|
922
|
+
onValueChange: (e) => {
|
923
|
+
handlePhoneChange(e);
|
924
|
+
}
|
1285
925
|
}
|
1286
|
-
)
|
926
|
+
), errors.phone && /* @__PURE__ */ import_react6.default.createElement("small", { className: "request-payment-error-msg" }, errors.phone)), /* @__PURE__ */ import_react6.default.createElement("div", { className: "request-payment-list-div" }, /* @__PURE__ */ import_react6.default.createElement("label", { htmlFor: "exampleFormControlInput2", className: "request-payment-input-label" }, "EMAIL"), /* @__PURE__ */ import_react6.default.createElement(
|
1287
927
|
"input",
|
1288
928
|
{
|
1289
|
-
className: "
|
929
|
+
className: "request-payment-input-box",
|
1290
930
|
type: "text",
|
1291
|
-
placeholder: "
|
931
|
+
placeholder: "Email",
|
1292
932
|
onChange: handleChange,
|
1293
|
-
"data-token": "
|
933
|
+
"data-token": "email",
|
934
|
+
value: requestDetails == null ? void 0 : requestDetails.email
|
1294
935
|
}
|
1295
|
-
), errors.
|
1296
|
-
|
936
|
+
), errors.email && /* @__PURE__ */ import_react6.default.createElement("small", { className: "request-payment-error-msg" }, errors.email)), /* @__PURE__ */ import_react6.default.createElement(
|
937
|
+
"button",
|
1297
938
|
{
|
1298
939
|
type: "button",
|
1299
|
-
className: "
|
940
|
+
className: "request-payment-submit-button",
|
1300
941
|
onClick: sendRequestPayment,
|
1301
942
|
disabled: loading
|
1302
943
|
},
|
1303
944
|
loading ? "Loading..." : "Send Request"
|
1304
|
-
)
|
1305
|
-
|
1306
|
-
|
1307
|
-
xmlns: "http://www.w3.org/2000/svg",
|
1308
|
-
width: "20",
|
1309
|
-
height: "20",
|
1310
|
-
viewBox: "0 0 26 26"
|
1311
|
-
},
|
1312
|
-
/* @__PURE__ */ import_react5.default.createElement(
|
1313
|
-
"path",
|
1314
|
-
{
|
1315
|
-
fill: "currentColor",
|
1316
|
-
d: "M23.633 5.028a1.074 1.074 0 0 0-.777-.366c-2.295-.06-5.199-2.514-7.119-3.477C14.551.592 13.768.201 13.18.098a1.225 1.225 0 0 0-.36.001c-.588.103-1.371.494-2.556 1.087c-1.92.962-4.824 3.416-7.119 3.476a1.08 1.08 0 0 0-.778.366a1.167 1.167 0 0 0-.291.834c.493 10.023 4.088 16.226 10.396 19.831c.164.093.346.141.527.141s.363-.048.528-.141c6.308-3.605 9.902-9.808 10.396-19.831a1.161 1.161 0 0 0-.29-.834zM18.617 8.97l-5.323 7.855c-.191.282-.491.469-.788.469c-.298 0-.629-.163-.838-.372l-3.752-3.753a.656.656 0 0 1 0-.926l.927-.929a.658.658 0 0 1 .926 0l2.44 2.44l4.239-6.257a.657.657 0 0 1 .91-.173l1.085.736a.657.657 0 0 1 .174.91z"
|
1317
|
-
}
|
1318
|
-
)
|
1319
|
-
), "Secure payments powered by Fractal", /* @__PURE__ */ import_react5.default.createElement(
|
1320
|
-
"img",
|
1321
|
-
{
|
1322
|
-
src: "https://ui.fractalpay.com/favicon.ico",
|
1323
|
-
alt: "Fractal logo",
|
1324
|
-
className: "powered-logo"
|
1325
|
-
}
|
1326
|
-
)))
|
1327
|
-
), /* @__PURE__ */ import_react5.default.createElement(
|
1328
|
-
import_react_bootstrap.Modal,
|
945
|
+
), /* @__PURE__ */ import_react6.default.createElement("div", { className: "request-payment-fractal-powerd-by" }, /* @__PURE__ */ import_react6.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "17", height: "16", viewBox: "0 0 17 16", fill: "none" }, /* @__PURE__ */ import_react6.default.createElement("path", { d: "M15.2165 4.11839C15.1973 3.69746 15.1973 3.29567 15.1973 2.89387C15.1973 2.56861 14.9486 2.31988 14.6234 2.31988C12.2317 2.31988 10.4141 1.63109 8.90257 0.157848C8.67298 -0.0526158 8.32858 -0.0526158 8.09898 0.157848C6.58748 1.63109 4.76984 2.31988 2.37821 2.31988C2.05295 2.31988 1.80422 2.56861 1.80422 2.89387C1.80422 3.29567 1.80422 3.69746 1.78508 4.11839C1.70855 8.13632 1.59375 13.6466 8.30945 15.9617L8.50078 16L8.69211 15.9617C15.3887 13.6466 15.293 8.15546 15.2165 4.11839ZM8.04159 9.6861C7.92679 9.78176 7.79286 9.83916 7.63979 9.83916H7.62066C7.46759 9.83916 7.31453 9.76263 7.21887 9.64783L5.43949 7.67713L6.30048 6.91181L7.69719 8.46158L10.7967 5.5151L11.5812 6.35695L8.04159 9.6861Z", fill: "#727272" })), "Secure payments powered by ", /* @__PURE__ */ import_react6.default.createElement("span", null, "Fractal"), /* @__PURE__ */ import_react6.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "18", height: "18", viewBox: "0 0 18 18", fill: "none" }, /* @__PURE__ */ import_react6.default.createElement("path", { d: "M17.4999 5.49758V7.01156C17.4999 7.05924 17.4595 7.09898 17.411 7.09898H12.3516C12.9169 6.54266 13.4781 5.99032 14.0434 5.434C14.0596 5.4181 14.0838 5.41016 14.104 5.41016H17.411C17.4595 5.41016 17.4999 5.44989 17.4999 5.49758Z", fill: "#61C699" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "M12.3462 10.9037V9.29836C12.3462 9.25067 12.3866 9.21094 12.435 9.21094H13.8523C13.929 9.21094 13.9694 9.30631 13.9129 9.35796C13.392 9.87455 12.8711 10.3911 12.3462 10.9037Z", fill: "#61C699" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "M12.4404 9.00523H15.6949C15.7434 9.00523 15.7838 8.96549 15.7838 8.91781V7.40383C15.7838 7.35614 15.7434 7.31641 15.6949 7.31641H12.4404C12.3919 7.31641 12.3516 7.35614 12.3516 7.40383V8.91781C12.3516 8.96549 12.3919 9.00523 12.4404 9.00523Z", fill: "#61C699" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "M10.1581 0.0120725L11.4906 0.77105C11.531 0.794892 11.5471 0.84655 11.5229 0.890261L8.99114 5.20173C8.78521 4.44275 8.57927 3.68775 8.37334 2.92877C8.36527 2.90493 8.3693 2.88109 8.38142 2.86122L10.0329 0.0438621C10.0612 0.000151419 10.1177 -0.0117697 10.1581 0.0120725Z", fill: "#61C699" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "M12.3382 7.10006L10.9289 6.29737C10.8886 6.27353 10.8724 6.22187 10.8966 6.17816L11.6033 4.97015C11.6436 4.9026 11.7446 4.91452 11.7648 4.99002C11.9546 5.69734 12.1484 6.40068 12.3382 7.10006Z", fill: "#61C699" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "M10.7107 6.0771L12.338 3.30345C12.3622 3.26372 12.346 3.20808 12.3057 3.18424L10.9732 2.42526C10.9328 2.40142 10.8763 2.41732 10.852 2.45705L9.22476 5.2307C9.20053 5.27044 9.21669 5.32607 9.25706 5.34991L10.5896 6.10889C10.634 6.13273 10.6865 6.11683 10.7107 6.0771Z", fill: "#61C699" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "M1.66713 3.51237L2.99963 2.75339C3.04001 2.72955 3.09654 2.74544 3.12077 2.78518L5.65251 7.09665C4.88128 6.89399 4.11408 6.69133 3.34285 6.48867C3.31862 6.4847 3.30247 6.4688 3.29036 6.44893L1.63483 3.63158C1.6106 3.58787 1.62271 3.53621 1.66713 3.51237Z", fill: "#61C699" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "M8.99793 5.20018L7.58871 5.99889C7.54833 6.02274 7.4918 6.00684 7.46757 5.9671L6.76095 4.76307C6.72057 4.69552 6.78517 4.61605 6.86189 4.63591C7.57256 4.82268 8.28726 5.00944 8.99793 5.20018Z", fill: "#61C699" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "M7.27986 6.07054L5.6526 3.2969C5.62837 3.25716 5.57588 3.24127 5.53146 3.26511L4.19896 4.02409C4.15858 4.04793 4.14243 4.09959 4.16666 4.1433L5.79392 6.91694C5.81815 6.95668 5.87064 6.97257 5.91506 6.94873L7.24756 6.18975C7.28794 6.16591 7.30409 6.11425 7.27986 6.07054Z", fill: "#61C699" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "M0.5 12.4998V10.9859C0.5 10.9382 0.540379 10.8984 0.588833 10.8984H5.64829C5.08299 11.4548 4.52172 12.0071 3.95642 12.5634C3.94027 12.5793 3.91604 12.5873 3.89585 12.5873H0.588833C0.540379 12.5873 0.5 12.5475 0.5 12.4998Z", fill: "#61C699" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "M5.65129 7.09766V8.70303C5.65129 8.75072 5.61091 8.79045 5.56246 8.79045H4.14516C4.06844 8.79045 4.02806 8.69508 4.08459 8.64343C4.60548 8.12685 5.12637 7.61424 5.65129 7.09766Z", fill: "#61C699" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "M5.55967 8.99609H2.30514C2.25669 8.99609 2.21631 9.03583 2.21631 9.08352V10.5975C2.21631 10.6452 2.25669 10.6849 2.30514 10.6849H5.55967C5.60813 10.6849 5.6485 10.6452 5.6485 10.5975V9.08352C5.6485 9.03583 5.60813 8.99609 5.55967 8.99609Z", fill: "#61C699" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "M7.82638 17.9865L6.49388 17.2276C6.4535 17.2037 6.43735 17.1521 6.46158 17.1083L8.99333 12.7969C9.19926 13.5559 9.40519 14.3109 9.61112 15.0698C9.6192 15.0937 9.61516 15.1175 9.60305 15.1374L7.95155 17.9547C7.91925 17.9985 7.86676 18.0104 7.82638 17.9865Z", fill: "#61C699" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "M5.64795 10.8984L7.05717 11.7011C7.09755 11.725 7.1137 11.7766 7.08947 11.8203L6.38284 13.0283C6.34246 13.0959 6.24152 13.084 6.22133 13.0085C6.02751 12.3012 5.83773 11.5978 5.64795 10.8984Z", fill: "#61C699" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "M7.2739 11.9258L5.64664 14.6994C5.62241 14.7392 5.63856 14.7948 5.67894 14.8187L7.01144 15.5776C7.05182 15.6015 7.10835 15.5856 7.13258 15.5458L8.75984 12.7722C8.78407 12.7325 8.76792 12.6768 8.72754 12.653L7.39504 11.894C7.35062 11.8702 7.29813 11.8861 7.2739 11.9258Z", fill: "#61C699" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "M16.3199 14.4866L14.9874 15.2456C14.947 15.2694 14.8904 15.2535 14.8662 15.2138L12.3345 10.9023C13.1057 11.105 13.8729 11.3077 14.6441 11.5103C14.6684 11.5143 14.6845 11.5302 14.6966 11.5501L16.3481 14.3674C16.3764 14.4111 16.3643 14.4628 16.3199 14.4866Z", fill: "#61C699" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "M8.99121 12.7983L10.4004 11.9956C10.4408 11.9717 10.4973 11.9876 10.5216 12.0274L11.2282 13.2354C11.2686 13.3029 11.204 13.3824 11.1272 13.3625C10.4166 13.1758 9.70188 12.989 8.99121 12.7983Z", fill: "#61C699" }), /* @__PURE__ */ import_react6.default.createElement("path", { d: "M10.7077 11.9285L12.3349 14.7021C12.3592 14.7418 12.4117 14.7577 12.4561 14.7339L13.7886 13.9749C13.829 13.9511 13.8451 13.8994 13.8209 13.8557L12.1936 11.0821C12.1694 11.0423 12.1169 11.0264 12.0725 11.0503L10.74 11.8092C10.6996 11.8331 10.6834 11.8847 10.7077 11.9285Z", fill: "#61C699" }))))
|
946
|
+
), /* @__PURE__ */ import_react6.default.createElement(
|
947
|
+
CustomModal2_default,
|
1329
948
|
{
|
1330
|
-
|
1331
|
-
|
1332
|
-
onHide: handleCloseConfirmationModal
|
949
|
+
open: showConfirmationModal,
|
950
|
+
onClose: handleCloseConfirmationModal
|
1333
951
|
},
|
1334
|
-
/* @__PURE__ */
|
1335
|
-
/* @__PURE__ */ import_react5.default.createElement(import_react_bootstrap.Modal.Body, null, /* @__PURE__ */ import_react5.default.createElement(
|
1336
|
-
"svg",
|
1337
|
-
{
|
1338
|
-
width: "60",
|
1339
|
-
height: "60",
|
1340
|
-
viewBox: "0 0 60 60",
|
1341
|
-
fill: "none",
|
1342
|
-
xmlns: "http://www.w3.org/2000/svg"
|
1343
|
-
},
|
1344
|
-
/* @__PURE__ */ import_react5.default.createElement(
|
1345
|
-
"rect",
|
1346
|
-
{
|
1347
|
-
x: "0.5",
|
1348
|
-
y: "0.5",
|
1349
|
-
width: "59",
|
1350
|
-
height: "59",
|
1351
|
-
rx: "29.5",
|
1352
|
-
stroke: "#31B379"
|
1353
|
-
}
|
1354
|
-
),
|
1355
|
-
/* @__PURE__ */ import_react5.default.createElement("g", { clipPath: "url(#clip0_2659_5018)" }, /* @__PURE__ */ import_react5.default.createElement(
|
1356
|
-
"path",
|
1357
|
-
{
|
1358
|
-
d: "M41.1778 22.248C40.7483 21.8184 40.0518 21.8184 39.6222 22.248L26.4435 35.4268L21.3778 30.3611C20.9483 29.9315 20.2518 29.9316 19.8222 30.3611C19.3926 30.7907 19.3926 31.4871 19.8222 31.9167L25.6657 37.7601C26.0951 38.1897 26.7921 38.1894 27.2213 37.7601L41.1778 23.8036C41.6074 23.3741 41.6074 22.6776 41.1778 22.248Z",
|
1359
|
-
fill: "#31B379"
|
1360
|
-
}
|
1361
|
-
)),
|
1362
|
-
/* @__PURE__ */ import_react5.default.createElement("defs", null, /* @__PURE__ */ import_react5.default.createElement("clipPath", { id: "clip0_2659_5018" }, /* @__PURE__ */ import_react5.default.createElement(
|
1363
|
-
"rect",
|
1364
|
-
{
|
1365
|
-
width: "22",
|
1366
|
-
height: "22",
|
1367
|
-
fill: "white",
|
1368
|
-
transform: "translate(19.5 19.0039)"
|
1369
|
-
}
|
1370
|
-
)))
|
1371
|
-
), /* @__PURE__ */ import_react5.default.createElement("h2", null, "Payment link has been ", /* @__PURE__ */ import_react5.default.createElement("br", null), " sent successfully"))
|
952
|
+
/* @__PURE__ */ import_react6.default.createElement("div", { className: "fractal-popup-content", style: { padding: "0px" } }, /* @__PURE__ */ import_react6.default.createElement("div", { className: "request-payment-success-container" }, /* @__PURE__ */ import_react6.default.createElement("span", { className: "request-payment-close-popup", onClick: handleCloseConfirmationModal }, /* @__PURE__ */ import_react6.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, /* @__PURE__ */ import_react6.default.createElement("g", { "clip-path": "url(#clip0_12425_52336)" }, /* @__PURE__ */ import_react6.default.createElement("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" })), /* @__PURE__ */ import_react6.default.createElement("defs", null, /* @__PURE__ */ import_react6.default.createElement("clipPath", { id: "clip0_12425_52336" }, /* @__PURE__ */ import_react6.default.createElement("rect", { width: "16", height: "16", fill: "white" }))))), /* @__PURE__ */ import_react6.default.createElement("div", { className: "request-payment-success-tick-div" }, /* @__PURE__ */ import_react6.default.createElement("div", { className: "request-payment-success-tick" }, /* @__PURE__ */ import_react6.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, /* @__PURE__ */ import_react6.default.createElement("path", { d: "M6.12669 13.9774C5.97396 14.131 5.76558 14.2167 5.54913 14.2167C5.33267 14.2167 5.1243 14.131 4.97157 13.9774L0.359012 9.36408C-0.119671 8.8854 -0.119671 8.10919 0.359012 7.6314L0.936573 7.05369C1.4154 6.57501 2.19072 6.57501 2.6694 7.05369L5.54913 9.93357L13.3306 2.15198C13.8094 1.6733 14.5855 1.6733 15.0634 2.15198L15.641 2.72969C16.1196 3.20837 16.1196 3.98444 15.641 4.46237L6.12669 13.9774Z", fill: "#61C699" })))), /* @__PURE__ */ import_react6.default.createElement("h6", { className: "request-payment-success-text" }, "The request ", /* @__PURE__ */ import_react6.default.createElement("br", null), "was sent"), /* @__PURE__ */ import_react6.default.createElement("h6", { className: "request-payment-success-subtext" }, "Please wait for the customer to pay"), /* @__PURE__ */ import_react6.default.createElement("div", { className: "request-payment-success-btn-div" }, /* @__PURE__ */ import_react6.default.createElement("button", { onClick: handleCloseConfirmationModal, className: "request-payment-success-btn2" }, "Close"))))
|
1372
953
|
)));
|
1373
954
|
}
|
1374
955
|
|
1375
956
|
// src/app/components/RequestPayment/RequestPaymentAllInput.tsx
|
1376
|
-
var
|
1377
|
-
var
|
957
|
+
var import_react7 = __toESM(require("react"));
|
958
|
+
var import_react_bootstrap = require("react-bootstrap");
|
1378
959
|
var import_react_toastify = require("react-toastify");
|
1379
960
|
var import_ReactToastify = require("react-toastify/dist/ReactToastify.css");
|
1380
961
|
function RequestPaymentAllInput({ fractalpayClientKey }) {
|
1381
|
-
const [isLoading, setIsLoading] = (0,
|
1382
|
-
const [show, setShow] = (0,
|
1383
|
-
const [phoneNumber, setPhoneNumber] = (0,
|
1384
|
-
const [amount, setAmount] = (0,
|
1385
|
-
const [orderId, setOrderId] = (0,
|
1386
|
-
const [isValidNumber, setIsValidNumber] = (0,
|
1387
|
-
const [isValidAmount, setIsValidAmount] = (0,
|
1388
|
-
const [isValidOrderId, setIsValidOrderId] = (0,
|
1389
|
-
const [errorMessagephone, setErrorMessagephone] = (0,
|
1390
|
-
const [errorMessageamount, setErrorMessageamount] = (0,
|
1391
|
-
const [errorMessageorderid, setErrorMessageorderid] = (0,
|
1392
|
-
const [submitClicked, setSubmitClicked] = (0,
|
962
|
+
const [isLoading, setIsLoading] = (0, import_react7.useState)(false);
|
963
|
+
const [show, setShow] = (0, import_react7.useState)(false);
|
964
|
+
const [phoneNumber, setPhoneNumber] = (0, import_react7.useState)("");
|
965
|
+
const [amount, setAmount] = (0, import_react7.useState)("");
|
966
|
+
const [orderId, setOrderId] = (0, import_react7.useState)("");
|
967
|
+
const [isValidNumber, setIsValidNumber] = (0, import_react7.useState)(true);
|
968
|
+
const [isValidAmount, setIsValidAmount] = (0, import_react7.useState)(true);
|
969
|
+
const [isValidOrderId, setIsValidOrderId] = (0, import_react7.useState)(true);
|
970
|
+
const [errorMessagephone, setErrorMessagephone] = (0, import_react7.useState)("");
|
971
|
+
const [errorMessageamount, setErrorMessageamount] = (0, import_react7.useState)("");
|
972
|
+
const [errorMessageorderid, setErrorMessageorderid] = (0, import_react7.useState)("");
|
973
|
+
const [submitClicked, setSubmitClicked] = (0, import_react7.useState)(false);
|
1393
974
|
const handleClose = () => setShow(false);
|
1394
975
|
const handleShow = () => setShow(true);
|
1395
976
|
const sendRequestPayment = () => {
|
@@ -1491,7 +1072,7 @@ function RequestPaymentAllInput({ fractalpayClientKey }) {
|
|
1491
1072
|
setIsValidOrderId(false);
|
1492
1073
|
}
|
1493
1074
|
};
|
1494
|
-
return /* @__PURE__ */
|
1075
|
+
return /* @__PURE__ */ import_react7.default.createElement(import_react7.default.Fragment, null, /* @__PURE__ */ import_react7.default.createElement(RequestPaymentstyles_default, null), /* @__PURE__ */ import_react7.default.createElement("div", { className: " border-container" }, /* @__PURE__ */ import_react7.default.createElement("div", { className: "payment-column" }, /* @__PURE__ */ import_react7.default.createElement("label", null, "Enter Phone Number:"), /* @__PURE__ */ import_react7.default.createElement("div", { className: "input-container" }, /* @__PURE__ */ import_react7.default.createElement(
|
1495
1076
|
"input",
|
1496
1077
|
{
|
1497
1078
|
type: "text",
|
@@ -1501,7 +1082,7 @@ function RequestPaymentAllInput({ fractalpayClientKey }) {
|
|
1501
1082
|
maxLength: 10,
|
1502
1083
|
className: submitClicked && (!phoneNumber || !isValidNumber) ? "error" : ""
|
1503
1084
|
}
|
1504
|
-
), errorMessagephone && /* @__PURE__ */
|
1085
|
+
), errorMessagephone && /* @__PURE__ */ import_react7.default.createElement("div", { className: "error-message text-danger" }, errorMessagephone))), /* @__PURE__ */ import_react7.default.createElement("div", { className: "payment-column" }, /* @__PURE__ */ import_react7.default.createElement("label", null, "Enter Amount:"), /* @__PURE__ */ import_react7.default.createElement("div", { className: "input-container" }, /* @__PURE__ */ import_react7.default.createElement(
|
1505
1086
|
"input",
|
1506
1087
|
{
|
1507
1088
|
type: "text",
|
@@ -1510,7 +1091,7 @@ function RequestPaymentAllInput({ fractalpayClientKey }) {
|
|
1510
1091
|
placeholder: "Enter amount",
|
1511
1092
|
className: submitClicked && (!amount || !isValidAmount) ? "error" : ""
|
1512
1093
|
}
|
1513
|
-
), errorMessageamount && /* @__PURE__ */
|
1094
|
+
), errorMessageamount && /* @__PURE__ */ import_react7.default.createElement("div", { className: "error-message text-danger" }, errorMessageamount))), /* @__PURE__ */ import_react7.default.createElement("div", { className: "payment-column" }, /* @__PURE__ */ import_react7.default.createElement("label", null, "Enter Order ID:"), /* @__PURE__ */ import_react7.default.createElement("div", { className: "input-container" }, /* @__PURE__ */ import_react7.default.createElement(
|
1514
1095
|
"input",
|
1515
1096
|
{
|
1516
1097
|
type: "text",
|
@@ -1519,7 +1100,7 @@ function RequestPaymentAllInput({ fractalpayClientKey }) {
|
|
1519
1100
|
placeholder: "Enter order ID",
|
1520
1101
|
className: submitClicked && (!orderId || !isValidOrderId) ? "error" : ""
|
1521
1102
|
}
|
1522
|
-
), errorMessageorderid && /* @__PURE__ */
|
1103
|
+
), errorMessageorderid && /* @__PURE__ */ import_react7.default.createElement("div", { className: "error-message text-danger" }, errorMessageorderid))), /* @__PURE__ */ import_react7.default.createElement(
|
1523
1104
|
"button",
|
1524
1105
|
{
|
1525
1106
|
onClick: sendRequestPayment,
|
@@ -1527,7 +1108,7 @@ function RequestPaymentAllInput({ fractalpayClientKey }) {
|
|
1527
1108
|
className: "paymentBtn"
|
1528
1109
|
},
|
1529
1110
|
isLoading ? "Loading..." : "Request Payment"
|
1530
|
-
)), /* @__PURE__ */
|
1111
|
+
)), /* @__PURE__ */ import_react7.default.createElement(import_react_bootstrap.Modal, { className: "payment-suc", show, onHide: handleClose }, /* @__PURE__ */ import_react7.default.createElement(import_react_bootstrap.Modal.Header, { closeButton: true }), /* @__PURE__ */ import_react7.default.createElement(import_react_bootstrap.Modal.Body, null, /* @__PURE__ */ import_react7.default.createElement(
|
1531
1112
|
"svg",
|
1532
1113
|
{
|
1533
1114
|
width: "60",
|
@@ -1536,7 +1117,7 @@ function RequestPaymentAllInput({ fractalpayClientKey }) {
|
|
1536
1117
|
fill: "none",
|
1537
1118
|
xmlns: "http://www.w3.org/2000/svg"
|
1538
1119
|
},
|
1539
|
-
/* @__PURE__ */
|
1120
|
+
/* @__PURE__ */ import_react7.default.createElement(
|
1540
1121
|
"rect",
|
1541
1122
|
{
|
1542
1123
|
x: "0.5",
|
@@ -1547,14 +1128,14 @@ function RequestPaymentAllInput({ fractalpayClientKey }) {
|
|
1547
1128
|
stroke: "#31B379"
|
1548
1129
|
}
|
1549
1130
|
),
|
1550
|
-
/* @__PURE__ */
|
1131
|
+
/* @__PURE__ */ import_react7.default.createElement("g", { clipPath: "url(#clip0_2659_5018)" }, /* @__PURE__ */ import_react7.default.createElement(
|
1551
1132
|
"path",
|
1552
1133
|
{
|
1553
1134
|
d: "M41.1778 22.248C40.7483 21.8184 40.0518 21.8184 39.6222 22.248L26.4435 35.4268L21.3778 30.3611C20.9483 29.9315 20.2518 29.9316 19.8222 30.3611C19.3926 30.7907 19.3926 31.4871 19.8222 31.9167L25.6657 37.7601C26.0951 38.1897 26.7921 38.1894 27.2213 37.7601L41.1778 23.8036C41.6074 23.3741 41.6074 22.6776 41.1778 22.248Z",
|
1554
1135
|
fill: "#31B379"
|
1555
1136
|
}
|
1556
1137
|
)),
|
1557
|
-
/* @__PURE__ */
|
1138
|
+
/* @__PURE__ */ import_react7.default.createElement("defs", null, /* @__PURE__ */ import_react7.default.createElement("clipPath", { id: "clip0_2659_5018" }, /* @__PURE__ */ import_react7.default.createElement(
|
1558
1139
|
"rect",
|
1559
1140
|
{
|
1560
1141
|
width: "22",
|
@@ -1563,12 +1144,12 @@ function RequestPaymentAllInput({ fractalpayClientKey }) {
|
|
1563
1144
|
transform: "translate(19.5 19.0039)"
|
1564
1145
|
}
|
1565
1146
|
)))
|
1566
|
-
), /* @__PURE__ */
|
1147
|
+
), /* @__PURE__ */ import_react7.default.createElement("h1", null, "Success!"), /* @__PURE__ */ import_react7.default.createElement("h4", null, "Payment link created successfully.")), /* @__PURE__ */ import_react7.default.createElement(import_react_bootstrap.Modal.Footer, null, /* @__PURE__ */ import_react7.default.createElement("button", { className: "paymentBtn", onClick: handleClose }, "Ok"))), /* @__PURE__ */ import_react7.default.createElement(import_react_toastify.ToastContainer, null));
|
1567
1148
|
}
|
1568
1149
|
|
1569
1150
|
// src/app/components/RequestPayment/RequestPaymentDynamic.tsx
|
1570
|
-
var
|
1571
|
-
var
|
1151
|
+
var import_react8 = __toESM(require("react"));
|
1152
|
+
var import_react_bootstrap2 = require("react-bootstrap");
|
1572
1153
|
|
1573
1154
|
// src/app/components/Api/createWidgetOrder.ts
|
1574
1155
|
var createWidgetOrder = (formData) => {
|
@@ -1591,8 +1172,8 @@ var createWidgetOrder = (formData) => {
|
|
1591
1172
|
|
1592
1173
|
// src/app/components/RequestPayment/RequestPaymentDynamic.tsx
|
1593
1174
|
function RequestPaymentDynamic({ fractalpayClientKey, amount, phone_number, orderID }) {
|
1594
|
-
const [isLoading, setIsLoading] = (0,
|
1595
|
-
const [show, setShow] = (0,
|
1175
|
+
const [isLoading, setIsLoading] = (0, import_react8.useState)(false);
|
1176
|
+
const [show, setShow] = (0, import_react8.useState)(false);
|
1596
1177
|
const handleClose = () => setShow(false);
|
1597
1178
|
const handleShow = () => setShow(true);
|
1598
1179
|
const sendRequestPayment = () => {
|
@@ -1615,7 +1196,7 @@ function RequestPaymentDynamic({ fractalpayClientKey, amount, phone_number, orde
|
|
1615
1196
|
console.error("Error:", error);
|
1616
1197
|
});
|
1617
1198
|
};
|
1618
|
-
return /* @__PURE__ */
|
1199
|
+
return /* @__PURE__ */ import_react8.default.createElement(import_react8.default.Fragment, null, /* @__PURE__ */ import_react8.default.createElement(
|
1619
1200
|
"button",
|
1620
1201
|
{
|
1621
1202
|
onClick: sendRequestPayment,
|
@@ -1623,7 +1204,7 @@ function RequestPaymentDynamic({ fractalpayClientKey, amount, phone_number, orde
|
|
1623
1204
|
className: "paymentBtn"
|
1624
1205
|
},
|
1625
1206
|
isLoading ? "Loading..." : "Request Payment"
|
1626
|
-
), /* @__PURE__ */
|
1207
|
+
), /* @__PURE__ */ import_react8.default.createElement(import_react_bootstrap2.Modal, { className: "payment-suc", show, onHide: handleClose }, /* @__PURE__ */ import_react8.default.createElement(import_react_bootstrap2.Modal.Header, { closeButton: true }), /* @__PURE__ */ import_react8.default.createElement(import_react_bootstrap2.Modal.Body, null, /* @__PURE__ */ import_react8.default.createElement(
|
1627
1208
|
"svg",
|
1628
1209
|
{
|
1629
1210
|
width: "60",
|
@@ -1632,7 +1213,7 @@ function RequestPaymentDynamic({ fractalpayClientKey, amount, phone_number, orde
|
|
1632
1213
|
fill: "none",
|
1633
1214
|
xmlns: "http://www.w3.org/2000/svg"
|
1634
1215
|
},
|
1635
|
-
/* @__PURE__ */
|
1216
|
+
/* @__PURE__ */ import_react8.default.createElement(
|
1636
1217
|
"rect",
|
1637
1218
|
{
|
1638
1219
|
x: "0.5",
|
@@ -1643,14 +1224,14 @@ function RequestPaymentDynamic({ fractalpayClientKey, amount, phone_number, orde
|
|
1643
1224
|
stroke: "#31B379"
|
1644
1225
|
}
|
1645
1226
|
),
|
1646
|
-
/* @__PURE__ */
|
1227
|
+
/* @__PURE__ */ import_react8.default.createElement("g", { "clip-path": "url(#clip0_2659_5018)" }, /* @__PURE__ */ import_react8.default.createElement(
|
1647
1228
|
"path",
|
1648
1229
|
{
|
1649
1230
|
d: "M41.1778 22.248C40.7483 21.8184 40.0518 21.8184 39.6222 22.248L26.4435 35.4268L21.3778 30.3611C20.9483 29.9315 20.2518 29.9316 19.8222 30.3611C19.3926 30.7907 19.3926 31.4871 19.8222 31.9167L25.6657 37.7601C26.0951 38.1897 26.7921 38.1894 27.2213 37.7601L41.1778 23.8036C41.6074 23.3741 41.6074 22.6776 41.1778 22.248Z",
|
1650
1231
|
fill: "#31B379"
|
1651
1232
|
}
|
1652
1233
|
)),
|
1653
|
-
/* @__PURE__ */
|
1234
|
+
/* @__PURE__ */ import_react8.default.createElement("defs", null, /* @__PURE__ */ import_react8.default.createElement("clipPath", { id: "clip0_2659_5018" }, /* @__PURE__ */ import_react8.default.createElement(
|
1654
1235
|
"rect",
|
1655
1236
|
{
|
1656
1237
|
width: "22",
|
@@ -1659,15 +1240,15 @@ function RequestPaymentDynamic({ fractalpayClientKey, amount, phone_number, orde
|
|
1659
1240
|
transform: "translate(19.5 19.0039)"
|
1660
1241
|
}
|
1661
1242
|
)))
|
1662
|
-
), /* @__PURE__ */
|
1243
|
+
), /* @__PURE__ */ import_react8.default.createElement("h1", null, "Success!"), /* @__PURE__ */ import_react8.default.createElement("h4", null, "Payment link created successfully.")), /* @__PURE__ */ import_react8.default.createElement(import_react_bootstrap2.Modal.Footer, null, /* @__PURE__ */ import_react8.default.createElement("button", { className: "paymentBtn", onClick: handleClose }, "Ok"))));
|
1663
1244
|
}
|
1664
1245
|
|
1665
1246
|
// src/app/components/RequestPayment/RequestPaymentonClick.tsx
|
1666
|
-
var
|
1667
|
-
var
|
1247
|
+
var import_react9 = __toESM(require("react"));
|
1248
|
+
var import_react_bootstrap3 = require("react-bootstrap");
|
1668
1249
|
function RequestPaymentonClick(props) {
|
1669
|
-
const [isLoading, setIsLoading] = (0,
|
1670
|
-
const [show, setShow] = (0,
|
1250
|
+
const [isLoading, setIsLoading] = (0, import_react9.useState)(false);
|
1251
|
+
const [show, setShow] = (0, import_react9.useState)(false);
|
1671
1252
|
const handleClose = () => setShow(false);
|
1672
1253
|
const handleShow = () => setShow(true);
|
1673
1254
|
const { fractalpayClientKey, amount, phone_number, orderID, onSuccess, onError } = props;
|
@@ -1701,7 +1282,7 @@ function RequestPaymentonClick(props) {
|
|
1701
1282
|
console.error("Error:", error);
|
1702
1283
|
});
|
1703
1284
|
};
|
1704
|
-
return /* @__PURE__ */
|
1285
|
+
return /* @__PURE__ */ import_react9.default.createElement(import_react9.default.Fragment, null, /* @__PURE__ */ import_react9.default.createElement(RequestPaymentstyles_default, null), /* @__PURE__ */ import_react9.default.createElement(
|
1705
1286
|
"button",
|
1706
1287
|
{
|
1707
1288
|
onClick: sendRequestPayment,
|
@@ -1709,7 +1290,7 @@ function RequestPaymentonClick(props) {
|
|
1709
1290
|
className: "paymentBtn"
|
1710
1291
|
},
|
1711
1292
|
isLoading ? "Loading..." : "Request Payment"
|
1712
|
-
), /* @__PURE__ */
|
1293
|
+
), /* @__PURE__ */ import_react9.default.createElement(import_react_bootstrap3.Modal, { className: "payment-suc", show, onHide: handleClose }, /* @__PURE__ */ import_react9.default.createElement(import_react_bootstrap3.Modal.Header, { closeButton: true }), /* @__PURE__ */ import_react9.default.createElement(import_react_bootstrap3.Modal.Body, null, onSuccess && /* @__PURE__ */ import_react9.default.createElement(
|
1713
1294
|
"svg",
|
1714
1295
|
{
|
1715
1296
|
width: "60",
|
@@ -1718,7 +1299,7 @@ function RequestPaymentonClick(props) {
|
|
1718
1299
|
fill: "none",
|
1719
1300
|
xmlns: "http://www.w3.org/2000/svg"
|
1720
1301
|
},
|
1721
|
-
/* @__PURE__ */
|
1302
|
+
/* @__PURE__ */ import_react9.default.createElement(
|
1722
1303
|
"rect",
|
1723
1304
|
{
|
1724
1305
|
x: "0.5",
|
@@ -1729,14 +1310,14 @@ function RequestPaymentonClick(props) {
|
|
1729
1310
|
stroke: "#31B379"
|
1730
1311
|
}
|
1731
1312
|
),
|
1732
|
-
/* @__PURE__ */
|
1313
|
+
/* @__PURE__ */ import_react9.default.createElement("g", { clipPath: "url(#clip0_2659_5018)" }, /* @__PURE__ */ import_react9.default.createElement(
|
1733
1314
|
"path",
|
1734
1315
|
{
|
1735
1316
|
d: "M41.1778 22.248C40.7483 21.8184 40.0518 21.8184 39.6222 22.248L26.4435 35.4268L21.3778 30.3611C20.9483 29.9315 20.2518 29.9316 19.8222 30.3611C19.3926 30.7907 19.3926 31.4871 19.8222 31.9167L25.6657 37.7601C26.0951 38.1897 26.7921 38.1894 27.2213 37.7601L41.1778 23.8036C41.6074 23.3741 41.6074 22.6776 41.1778 22.248Z",
|
1736
1317
|
fill: "#31B379"
|
1737
1318
|
}
|
1738
1319
|
)),
|
1739
|
-
/* @__PURE__ */
|
1320
|
+
/* @__PURE__ */ import_react9.default.createElement("defs", null, /* @__PURE__ */ import_react9.default.createElement("clipPath", { id: "clip0_2659_5018" }, /* @__PURE__ */ import_react9.default.createElement(
|
1740
1321
|
"rect",
|
1741
1322
|
{
|
1742
1323
|
width: "22",
|
@@ -1745,21 +1326,21 @@ function RequestPaymentonClick(props) {
|
|
1745
1326
|
transform: "translate(19.5 19.0039)"
|
1746
1327
|
}
|
1747
1328
|
)))
|
1748
|
-
), onSuccess ? /* @__PURE__ */
|
1329
|
+
), onSuccess ? /* @__PURE__ */ import_react9.default.createElement(import_react9.default.Fragment, null, /* @__PURE__ */ import_react9.default.createElement("h1", null, "Success!"), /* @__PURE__ */ import_react9.default.createElement("h4", null, onSuccess)) : /* @__PURE__ */ import_react9.default.createElement(import_react9.default.Fragment, null, /* @__PURE__ */ import_react9.default.createElement("h1", null, "Error!"), /* @__PURE__ */ import_react9.default.createElement("h4", null, onError))), /* @__PURE__ */ import_react9.default.createElement(import_react_bootstrap3.Modal.Footer, null, /* @__PURE__ */ import_react9.default.createElement("button", { className: "paymentBtn", onClick: handleClose }, "Ok"))));
|
1749
1330
|
}
|
1750
1331
|
|
1751
1332
|
// src/app/components/RequestPayment/RqstPaymntInputField.tsx
|
1752
|
-
var
|
1753
|
-
var
|
1333
|
+
var import_react10 = __toESM(require("react"));
|
1334
|
+
var import_react_bootstrap4 = require("react-bootstrap");
|
1754
1335
|
var import_react_toastify2 = require("react-toastify");
|
1755
1336
|
var import_ReactToastify2 = require("react-toastify/dist/ReactToastify.css");
|
1756
1337
|
function RqstPaymntInputField({ fractalpayClientKey, amount, orderID }) {
|
1757
|
-
const [isLoading, setIsLoading] = (0,
|
1758
|
-
const [show, setShow] = (0,
|
1759
|
-
const [phoneNumber, setPhoneNumber] = (0,
|
1760
|
-
const [isValidNumber, setIsValidNumber] = (0,
|
1761
|
-
const [errorMessage, setErrorMessage] = (0,
|
1762
|
-
const [submitClicked, setSubmitClicked] = (0,
|
1338
|
+
const [isLoading, setIsLoading] = (0, import_react10.useState)(false);
|
1339
|
+
const [show, setShow] = (0, import_react10.useState)(false);
|
1340
|
+
const [phoneNumber, setPhoneNumber] = (0, import_react10.useState)("");
|
1341
|
+
const [isValidNumber, setIsValidNumber] = (0, import_react10.useState)(true);
|
1342
|
+
const [errorMessage, setErrorMessage] = (0, import_react10.useState)("");
|
1343
|
+
const [submitClicked, setSubmitClicked] = (0, import_react10.useState)(false);
|
1763
1344
|
const handleClose = () => setShow(false);
|
1764
1345
|
const handleShow = () => setShow(true);
|
1765
1346
|
const sendRequestPayment = () => {
|
@@ -1822,7 +1403,7 @@ function RqstPaymntInputField({ fractalpayClientKey, amount, orderID }) {
|
|
1822
1403
|
setErrorMessage(ErrorText.phonenumbervalid);
|
1823
1404
|
}
|
1824
1405
|
};
|
1825
|
-
return /* @__PURE__ */
|
1406
|
+
return /* @__PURE__ */ import_react10.default.createElement(import_react10.default.Fragment, null, /* @__PURE__ */ import_react10.default.createElement("div", { className: "payment-container" }, /* @__PURE__ */ import_react10.default.createElement("div", { className: "input-wrapper" }, /* @__PURE__ */ import_react10.default.createElement("div", { className: "input-container" }, /* @__PURE__ */ import_react10.default.createElement(
|
1826
1407
|
"input",
|
1827
1408
|
{
|
1828
1409
|
type: "text",
|
@@ -1832,7 +1413,7 @@ function RqstPaymntInputField({ fractalpayClientKey, amount, orderID }) {
|
|
1832
1413
|
maxLength: 10,
|
1833
1414
|
className: submitClicked && (!phoneNumber || !isValidNumber) ? "error" : ""
|
1834
1415
|
}
|
1835
|
-
), errorMessage && /* @__PURE__ */
|
1416
|
+
), errorMessage && /* @__PURE__ */ import_react10.default.createElement("div", { className: "error-message text-danger" }, errorMessage))), /* @__PURE__ */ import_react10.default.createElement("div", { className: "button-wrapper" }, /* @__PURE__ */ import_react10.default.createElement(
|
1836
1417
|
"button",
|
1837
1418
|
{
|
1838
1419
|
onClick: sendRequestPayment,
|
@@ -1840,7 +1421,7 @@ function RqstPaymntInputField({ fractalpayClientKey, amount, orderID }) {
|
|
1840
1421
|
className: "paymentBtn"
|
1841
1422
|
},
|
1842
1423
|
isLoading ? "Loading..." : "Request Payment"
|
1843
|
-
))), /* @__PURE__ */
|
1424
|
+
))), /* @__PURE__ */ import_react10.default.createElement(import_react_bootstrap4.Modal, { className: "payment-suc", show, onHide: handleClose }, /* @__PURE__ */ import_react10.default.createElement(import_react_bootstrap4.Modal.Header, { closeButton: true }), /* @__PURE__ */ import_react10.default.createElement(import_react_bootstrap4.Modal.Body, null, /* @__PURE__ */ import_react10.default.createElement(
|
1844
1425
|
"svg",
|
1845
1426
|
{
|
1846
1427
|
width: "60",
|
@@ -1849,7 +1430,7 @@ function RqstPaymntInputField({ fractalpayClientKey, amount, orderID }) {
|
|
1849
1430
|
fill: "none",
|
1850
1431
|
xmlns: "http://www.w3.org/2000/svg"
|
1851
1432
|
},
|
1852
|
-
/* @__PURE__ */
|
1433
|
+
/* @__PURE__ */ import_react10.default.createElement(
|
1853
1434
|
"rect",
|
1854
1435
|
{
|
1855
1436
|
x: "0.5",
|
@@ -1860,14 +1441,14 @@ function RqstPaymntInputField({ fractalpayClientKey, amount, orderID }) {
|
|
1860
1441
|
stroke: "#31B379"
|
1861
1442
|
}
|
1862
1443
|
),
|
1863
|
-
/* @__PURE__ */
|
1444
|
+
/* @__PURE__ */ import_react10.default.createElement("g", { clipPath: "url(#clip0_2659_5018)" }, /* @__PURE__ */ import_react10.default.createElement(
|
1864
1445
|
"path",
|
1865
1446
|
{
|
1866
1447
|
d: "M41.1778 22.248C40.7483 21.8184 40.0518 21.8184 39.6222 22.248L26.4435 35.4268L21.3778 30.3611C20.9483 29.9315 20.2518 29.9316 19.8222 30.3611C19.3926 30.7907 19.3926 31.4871 19.8222 31.9167L25.6657 37.7601C26.0951 38.1897 26.7921 38.1894 27.2213 37.7601L41.1778 23.8036C41.6074 23.3741 41.6074 22.6776 41.1778 22.248Z",
|
1867
1448
|
fill: "#31B379"
|
1868
1449
|
}
|
1869
1450
|
)),
|
1870
|
-
/* @__PURE__ */
|
1451
|
+
/* @__PURE__ */ import_react10.default.createElement("defs", null, /* @__PURE__ */ import_react10.default.createElement("clipPath", { id: "clip0_2659_5018" }, /* @__PURE__ */ import_react10.default.createElement(
|
1871
1452
|
"rect",
|
1872
1453
|
{
|
1873
1454
|
width: "22",
|
@@ -1876,19 +1457,19 @@ function RqstPaymntInputField({ fractalpayClientKey, amount, orderID }) {
|
|
1876
1457
|
transform: "translate(19.5 19.0039)"
|
1877
1458
|
}
|
1878
1459
|
)))
|
1879
|
-
), /* @__PURE__ */
|
1460
|
+
), /* @__PURE__ */ import_react10.default.createElement("h1", null, "Success!"), /* @__PURE__ */ import_react10.default.createElement("h4", null, "Payment link created successfully.")), /* @__PURE__ */ import_react10.default.createElement(import_react_bootstrap4.Modal.Footer, null, /* @__PURE__ */ import_react10.default.createElement("button", { className: "paymentBtn", onClick: handleClose }, "Ok"))), /* @__PURE__ */ import_react10.default.createElement(import_react_toastify2.ToastContainer, null));
|
1880
1461
|
}
|
1881
1462
|
|
1882
1463
|
// src/app/components/Payment/Payment.tsx
|
1883
|
-
var
|
1464
|
+
var import_react12 = __toESM(require("react"));
|
1884
1465
|
var import_node_forge = __toESM(require("node-forge"));
|
1885
1466
|
var import_react_toastify3 = require("react-toastify");
|
1886
|
-
var
|
1467
|
+
var import_react_bootstrap5 = require("react-bootstrap");
|
1887
1468
|
|
1888
1469
|
// src/app/components/Payment/Paymentstyles.tsx
|
1889
|
-
var
|
1470
|
+
var import_react11 = __toESM(require("react"));
|
1890
1471
|
function Paymentstyles() {
|
1891
|
-
return /* @__PURE__ */
|
1472
|
+
return /* @__PURE__ */ import_react11.default.createElement("style", null, `
|
1892
1473
|
.paymentBtn {
|
1893
1474
|
background-color: black;
|
1894
1475
|
border: none;
|
@@ -2814,7 +2395,7 @@ input {
|
|
2814
2395
|
// src/app/components/Payment/Payment.tsx
|
2815
2396
|
function Payment() {
|
2816
2397
|
var _a;
|
2817
|
-
const [state, setState] = (0,
|
2398
|
+
const [state, setState] = (0, import_react12.useState)({
|
2818
2399
|
show: false,
|
2819
2400
|
publicKey: "",
|
2820
2401
|
sessionKey: "",
|
@@ -2825,9 +2406,9 @@ function Payment() {
|
|
2825
2406
|
zip: "",
|
2826
2407
|
amount: ""
|
2827
2408
|
});
|
2828
|
-
const [isValid, setIsValid] = (0,
|
2829
|
-
const [isValidMonth, setIsValidMonth] = (0,
|
2830
|
-
const [data, setData] = (0,
|
2409
|
+
const [isValid, setIsValid] = (0, import_react12.useState)(false);
|
2410
|
+
const [isValidMonth, setIsValidMonth] = (0, import_react12.useState)(false);
|
2411
|
+
const [data, setData] = (0, import_react12.useState)(null);
|
2831
2412
|
const handlePaymentClick = async () => {
|
2832
2413
|
try {
|
2833
2414
|
const response = await fetch(`${baseUrl}generate-session`, {
|
@@ -2991,7 +2572,7 @@ function Payment() {
|
|
2991
2572
|
}
|
2992
2573
|
return "";
|
2993
2574
|
}
|
2994
|
-
return /* @__PURE__ */
|
2575
|
+
return /* @__PURE__ */ import_react12.default.createElement(import_react12.default.Fragment, null, /* @__PURE__ */ import_react12.default.createElement(Paymentstyles, null), /* @__PURE__ */ import_react12.default.createElement("div", { className: "" }, /* @__PURE__ */ import_react12.default.createElement(
|
2995
2576
|
"button",
|
2996
2577
|
{
|
2997
2578
|
className: "export-btn",
|
@@ -2999,8 +2580,8 @@ function Payment() {
|
|
2999
2580
|
onClick: () => handlePaymentClick()
|
3000
2581
|
},
|
3001
2582
|
"Payment"
|
3002
|
-
), /* @__PURE__ */
|
3003
|
-
|
2583
|
+
), /* @__PURE__ */ import_react12.default.createElement(
|
2584
|
+
import_react_bootstrap5.Modal,
|
3004
2585
|
{
|
3005
2586
|
show: state.show,
|
3006
2587
|
onHide: () => setState((prev) => __spreadProps(__spreadValues({}, prev), {
|
@@ -3008,8 +2589,8 @@ function Payment() {
|
|
3008
2589
|
})),
|
3009
2590
|
centered: true
|
3010
2591
|
},
|
3011
|
-
/* @__PURE__ */
|
3012
|
-
/* @__PURE__ */
|
2592
|
+
/* @__PURE__ */ import_react12.default.createElement(import_react_bootstrap5.Modal.Header, { closeButton: true }),
|
2593
|
+
/* @__PURE__ */ import_react12.default.createElement(import_react_bootstrap5.Modal.Body, null, /* @__PURE__ */ import_react12.default.createElement("div", { className: "payment-popup" }, /* @__PURE__ */ import_react12.default.createElement("div", { className: "row" }, /* @__PURE__ */ import_react12.default.createElement("div", { className: "" }, /* @__PURE__ */ import_react12.default.createElement("div", { id: "Checkout", className: "inline" }, /* @__PURE__ */ import_react12.default.createElement("div", { className: "header" }, /* @__PURE__ */ import_react12.default.createElement("h1", null, "Pay")), /* @__PURE__ */ import_react12.default.createElement("form", { id: "PaymentForm", className: "payment-form" }, /* @__PURE__ */ import_react12.default.createElement("div", { className: "form-group", style: { display: "none" } }, /* @__PURE__ */ import_react12.default.createElement("label", null, "Payment amount"), /* @__PURE__ */ import_react12.default.createElement("div", { className: "input-group" }, /* @__PURE__ */ import_react12.default.createElement("span", { className: "input-group-addon" }, "$"), /* @__PURE__ */ import_react12.default.createElement(
|
3013
2594
|
"input",
|
3014
2595
|
{
|
3015
2596
|
type: "text",
|
@@ -3018,13 +2599,13 @@ function Payment() {
|
|
3018
2599
|
className: "form-control",
|
3019
2600
|
id: ""
|
3020
2601
|
}
|
3021
|
-
)), /* @__PURE__ */
|
2602
|
+
)), /* @__PURE__ */ import_react12.default.createElement(
|
3022
2603
|
"span",
|
3023
2604
|
{
|
3024
2605
|
id: "amount-error",
|
3025
2606
|
style: { color: "red", display: "none" }
|
3026
2607
|
}
|
3027
|
-
)), /* @__PURE__ */
|
2608
|
+
)), /* @__PURE__ */ import_react12.default.createElement("div", { className: "form-group" }, /* @__PURE__ */ import_react12.default.createElement("label", null, "Name on card"), /* @__PURE__ */ import_react12.default.createElement(
|
3028
2609
|
"input",
|
3029
2610
|
{
|
3030
2611
|
id: "NameOnCard",
|
@@ -3033,13 +2614,13 @@ function Payment() {
|
|
3033
2614
|
maxLength: 100,
|
3034
2615
|
placeholder: "Name"
|
3035
2616
|
}
|
3036
|
-
), /* @__PURE__ */
|
2617
|
+
), /* @__PURE__ */ import_react12.default.createElement(
|
3037
2618
|
"span",
|
3038
2619
|
{
|
3039
2620
|
id: "NameOnCard-error",
|
3040
2621
|
style: { color: "red", display: "none" }
|
3041
2622
|
}
|
3042
|
-
)), /* @__PURE__ */
|
2623
|
+
)), /* @__PURE__ */ import_react12.default.createElement("div", { className: "form-group" }, /* @__PURE__ */ import_react12.default.createElement(
|
3043
2624
|
"input",
|
3044
2625
|
{
|
3045
2626
|
"data-token": "card_number",
|
@@ -3050,7 +2631,7 @@ function Payment() {
|
|
3050
2631
|
placeholder: "0000 0000 0000 0000",
|
3051
2632
|
onChange: handleCardNumberChange
|
3052
2633
|
}
|
3053
|
-
), state.error && /* @__PURE__ */
|
2634
|
+
), state.error && /* @__PURE__ */ import_react12.default.createElement("div", { style: { color: "red" } }, state.error)), /* @__PURE__ */ import_react12.default.createElement("div", { className: "expiry-date-group form-group" }, /* @__PURE__ */ import_react12.default.createElement(
|
3054
2635
|
"input",
|
3055
2636
|
{
|
3056
2637
|
"data-token": "exp_month",
|
@@ -3061,14 +2642,14 @@ function Payment() {
|
|
3061
2642
|
maxLength: 2,
|
3062
2643
|
onChange: (e) => handleMonthChange(e)
|
3063
2644
|
}
|
3064
|
-
), isValidMonth && /* @__PURE__ */
|
2645
|
+
), isValidMonth && /* @__PURE__ */ import_react12.default.createElement(
|
3065
2646
|
"span",
|
3066
2647
|
{
|
3067
2648
|
id: "card_number-error",
|
3068
2649
|
style: { color: "red", fontSize: "15px" }
|
3069
2650
|
},
|
3070
2651
|
(_a = ErrorText) == null ? void 0 : _a.montherror
|
3071
|
-
)), /* @__PURE__ */
|
2652
|
+
)), /* @__PURE__ */ import_react12.default.createElement("div", { className: "expiry-date-group form-group" }, /* @__PURE__ */ import_react12.default.createElement(
|
3072
2653
|
"input",
|
3073
2654
|
{
|
3074
2655
|
"data-token": "exp_year",
|
@@ -3079,7 +2660,7 @@ function Payment() {
|
|
3079
2660
|
value: state.year,
|
3080
2661
|
onChange: (e) => handleYearChange(e)
|
3081
2662
|
}
|
3082
|
-
), state.yearError && /* @__PURE__ */
|
2663
|
+
), state.yearError && /* @__PURE__ */ import_react12.default.createElement("span", { id: "exp_year-error", style: { color: "red" } }, state.yearError)), /* @__PURE__ */ import_react12.default.createElement("div", { className: "security-code-group form-group" }, /* @__PURE__ */ import_react12.default.createElement("div", { className: "input-container" }, /* @__PURE__ */ import_react12.default.createElement(
|
3083
2664
|
"input",
|
3084
2665
|
{
|
3085
2666
|
"data-token": "cvv",
|
@@ -3090,7 +2671,7 @@ function Payment() {
|
|
3090
2671
|
placeholder: "CVV",
|
3091
2672
|
onChange: (e) => handleCVVChange(e)
|
3092
2673
|
}
|
3093
|
-
), /* @__PURE__ */
|
2674
|
+
), /* @__PURE__ */ import_react12.default.createElement("i", { id: "cvc", className: "fa fa-question-circle" }), state.cvvError && /* @__PURE__ */ import_react12.default.createElement("span", { id: "cvv-error", style: { color: "red" } }, state.cvvError)), /* @__PURE__ */ import_react12.default.createElement("div", { className: "cvc-preview-container two-card hide" }, /* @__PURE__ */ import_react12.default.createElement("div", { className: "amex-cvc-preview" }), /* @__PURE__ */ import_react12.default.createElement("div", { className: "visa-mc-dis-cvc-preview" }))), /* @__PURE__ */ import_react12.default.createElement("div", { className: "zip-code-group form-group" }, /* @__PURE__ */ import_react12.default.createElement("label", null, "Postal code"), /* @__PURE__ */ import_react12.default.createElement("div", { className: "input-container" }, /* @__PURE__ */ import_react12.default.createElement(
|
3094
2675
|
"input",
|
3095
2676
|
{
|
3096
2677
|
id: "ZIPCode",
|
@@ -3102,7 +2683,7 @@ function Payment() {
|
|
3102
2683
|
value: state.zip,
|
3103
2684
|
onChange: (e) => handleZIP(e)
|
3104
2685
|
}
|
3105
|
-
), /* @__PURE__ */
|
2686
|
+
), /* @__PURE__ */ import_react12.default.createElement(
|
3106
2687
|
"a",
|
3107
2688
|
{
|
3108
2689
|
tabIndex: 0,
|
@@ -3112,15 +2693,15 @@ function Payment() {
|
|
3112
2693
|
"data-placement": "left",
|
3113
2694
|
"data-content": "Enter the ZIP/Postal code for your credit card billing address."
|
3114
2695
|
},
|
3115
|
-
/* @__PURE__ */
|
3116
|
-
), /* @__PURE__ */
|
2696
|
+
/* @__PURE__ */ import_react12.default.createElement("i", { className: "fa fa-question-circle" })
|
2697
|
+
), /* @__PURE__ */ import_react12.default.createElement(
|
3117
2698
|
"span",
|
3118
2699
|
{
|
3119
2700
|
id: "ZIPCode-error",
|
3120
2701
|
style: { color: "red", display: "none" }
|
3121
2702
|
},
|
3122
2703
|
ErrorText.fieldrequired
|
3123
|
-
))), /* @__PURE__ */
|
2704
|
+
))), /* @__PURE__ */ import_react12.default.createElement("div", { className: "form-group top-amnt" }, /* @__PURE__ */ import_react12.default.createElement("div", null, /* @__PURE__ */ import_react12.default.createElement("label", null, "Payment amount"), /* @__PURE__ */ import_react12.default.createElement("div", { className: "amount-placeholder" }, /* @__PURE__ */ import_react12.default.createElement(
|
3124
2705
|
"input",
|
3125
2706
|
{
|
3126
2707
|
id: "Amount",
|
@@ -3132,7 +2713,7 @@ function Payment() {
|
|
3132
2713
|
onChange: (e) => handleAmount(e),
|
3133
2714
|
onBlur: handleAmountBlur
|
3134
2715
|
}
|
3135
|
-
))), /* @__PURE__ */
|
2716
|
+
))), /* @__PURE__ */ import_react12.default.createElement("div", { className: "card-row" }, /* @__PURE__ */ import_react12.default.createElement("span", { className: "visa" }), /* @__PURE__ */ import_react12.default.createElement("span", { className: "mastercard" }), /* @__PURE__ */ import_react12.default.createElement("span", { className: "amex" }), /* @__PURE__ */ import_react12.default.createElement("span", { className: "discover" }))), /* @__PURE__ */ import_react12.default.createElement(
|
3136
2717
|
"button",
|
3137
2718
|
{
|
3138
2719
|
type: "button",
|
@@ -3141,7 +2722,7 @@ function Payment() {
|
|
3141
2722
|
className: "btn btn-block btn-success submit-button"
|
3142
2723
|
},
|
3143
2724
|
"Pay"
|
3144
|
-
)), /* @__PURE__ */
|
2725
|
+
)), /* @__PURE__ */ import_react12.default.createElement("div", { className: "powerd-by-part" }, /* @__PURE__ */ import_react12.default.createElement(
|
3145
2726
|
"svg",
|
3146
2727
|
{
|
3147
2728
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -3149,14 +2730,14 @@ function Payment() {
|
|
3149
2730
|
height: "20",
|
3150
2731
|
viewBox: "0 0 26 26"
|
3151
2732
|
},
|
3152
|
-
/* @__PURE__ */
|
2733
|
+
/* @__PURE__ */ import_react12.default.createElement(
|
3153
2734
|
"path",
|
3154
2735
|
{
|
3155
2736
|
fill: "currentColor",
|
3156
2737
|
d: "M23.633 5.028a1.074 1.074 0 0 0-.777-.366c-2.295-.06-5.199-2.514-7.119-3.477C14.551.592 13.768.201 13.18.098a1.225 1.225 0 0 0-.36.001c-.588.103-1.371.494-2.556 1.087c-1.92.962-4.824 3.416-7.119 3.476a1.08 1.08 0 0 0-.778.366a1.167 1.167 0 0 0-.291.834c.493 10.023 4.088 16.226 10.396 19.831c.164.093.346.141.527.141s.363-.048.528-.141c6.308-3.605 9.902-9.808 10.396-19.831a1.161 1.161 0 0 0-.29-.834zM18.617 8.97l-5.323 7.855c-.191.282-.491.469-.788.469c-.298 0-.629-.163-.838-.372l-3.752-3.753a.656.656 0 0 1 0-.926l.927-.929a.658.658 0 0 1 .926 0l2.44 2.44l4.239-6.257a.657.657 0 0 1 .91-.173l1.085.736a.657.657 0 0 1 .174.91z"
|
3157
2738
|
}
|
3158
2739
|
)
|
3159
|
-
), "Secure payments powered by Fractal", /* @__PURE__ */
|
2740
|
+
), "Secure payments powered by Fractal", /* @__PURE__ */ import_react12.default.createElement(
|
3160
2741
|
"img",
|
3161
2742
|
{
|
3162
2743
|
src: "https://ui.fractalpay.com/favicon.ico",
|
@@ -3168,22 +2749,22 @@ function Payment() {
|
|
3168
2749
|
}
|
3169
2750
|
|
3170
2751
|
// src/app/components/Transaction/CompletedTransactions.tsx
|
3171
|
-
var
|
3172
|
-
var
|
2752
|
+
var import_react14 = __toESM(require("react"));
|
2753
|
+
var import_react_bootstrap6 = require("react-bootstrap");
|
3173
2754
|
var import_react_bs_datatable = require("react-bs-datatable");
|
3174
2755
|
var import_react_datepicker = __toESM(require("react-datepicker"));
|
3175
2756
|
var import_react_datepicker2 = require("react-datepicker/dist/react-datepicker.css");
|
3176
2757
|
var import_react_toastify4 = require("react-toastify");
|
3177
2758
|
|
3178
2759
|
// src/app/components/Pagination/Pagination.tsx
|
3179
|
-
var
|
2760
|
+
var import_react13 = __toESM(require("react"));
|
3180
2761
|
function PaginationPg({ totalPages, onPageChange, current }) {
|
3181
|
-
const [currentPage, setCurrentPage] = (0,
|
3182
|
-
const [showPages, setShowPages] = (0,
|
3183
|
-
(0,
|
2762
|
+
const [currentPage, setCurrentPage] = (0, import_react13.useState)(current);
|
2763
|
+
const [showPages, setShowPages] = (0, import_react13.useState)(false);
|
2764
|
+
(0, import_react13.useEffect)(() => {
|
3184
2765
|
setCurrentPage(current);
|
3185
2766
|
}, [current]);
|
3186
|
-
(0,
|
2767
|
+
(0, import_react13.useEffect)(() => {
|
3187
2768
|
setTimeout(() => {
|
3188
2769
|
setShowPages(true);
|
3189
2770
|
}, 1e3);
|
@@ -3219,7 +2800,7 @@ function PaginationPg({ totalPages, onPageChange, current }) {
|
|
3219
2800
|
if (currentPage > 3) {
|
3220
2801
|
pageNumbers.push(renderPageNumber(1));
|
3221
2802
|
if (currentPage > 4) {
|
3222
|
-
pageNumbers.push(/* @__PURE__ */
|
2803
|
+
pageNumbers.push(/* @__PURE__ */ import_react13.default.createElement("li", { key: "start-break", className: "page-item disabled" }, /* @__PURE__ */ import_react13.default.createElement("span", { className: "page-link" }, "...")));
|
3223
2804
|
}
|
3224
2805
|
}
|
3225
2806
|
const startPage = Math.max(currentPage - 1, 1);
|
@@ -3229,15 +2810,15 @@ function PaginationPg({ totalPages, onPageChange, current }) {
|
|
3229
2810
|
}
|
3230
2811
|
if (currentPage < totalPages - 2) {
|
3231
2812
|
if (currentPage < totalPages - 3) {
|
3232
|
-
pageNumbers.push(/* @__PURE__ */
|
2813
|
+
pageNumbers.push(/* @__PURE__ */ import_react13.default.createElement("li", { key: "end-break", className: "page-item disabled" }, /* @__PURE__ */ import_react13.default.createElement("span", { className: "page-link" }, "...")));
|
3233
2814
|
}
|
3234
2815
|
pageNumbers.push(renderPageNumber(totalPages));
|
3235
2816
|
}
|
3236
2817
|
}
|
3237
2818
|
return pageNumbers;
|
3238
2819
|
};
|
3239
|
-
const renderPageNumber = (pageNumber) => /* @__PURE__ */
|
3240
|
-
return /* @__PURE__ */
|
2820
|
+
const renderPageNumber = (pageNumber) => /* @__PURE__ */ import_react13.default.createElement("li", { key: pageNumber, className: `page-item ${currentPage === pageNumber ? "active" : ""}` }, /* @__PURE__ */ import_react13.default.createElement("a", { className: "page-link cursor-pointer", onClick: (e) => handlePageClick(e, pageNumber) }, pageNumber));
|
2821
|
+
return /* @__PURE__ */ import_react13.default.createElement(import_react13.default.Fragment, null, /* @__PURE__ */ import_react13.default.createElement("nav", { className: "app-pagination py-2" }, /* @__PURE__ */ import_react13.default.createElement("ul", { className: "pagination justify-content-center" }, /* @__PURE__ */ import_react13.default.createElement("li", { className: `page-item ${currentPage === 1 ? "disabled" : ""}` }, /* @__PURE__ */ import_react13.default.createElement("a", { className: "page-link cursor-pointer", onClick: handlePrevious }, /* @__PURE__ */ import_react13.default.createElement("span", null, "\u2B9C"))), showPages && getPageNumbers(), /* @__PURE__ */ import_react13.default.createElement("li", { className: `page-item ${currentPage === totalPages ? "disabled" : ""}` }, /* @__PURE__ */ import_react13.default.createElement("a", { className: "page-link cursor-pointer", onClick: handleNext }, /* @__PURE__ */ import_react13.default.createElement("span", null, "\u2B9E"))))));
|
3241
2822
|
}
|
3242
2823
|
|
3243
2824
|
// src/app/components/Transaction/CompletedTransactions.tsx
|
@@ -3275,10 +2856,10 @@ var STORY_HEADERS = [
|
|
3275
2856
|
}
|
3276
2857
|
];
|
3277
2858
|
function CompletedTransactions(props) {
|
3278
|
-
const [dataList, setDataList] = (0,
|
3279
|
-
const [startDate, setStartDate] = (0,
|
3280
|
-
const [endDate, setEndDate] = (0,
|
3281
|
-
const [state, setState] = (0,
|
2859
|
+
const [dataList, setDataList] = (0, import_react14.useState)([]);
|
2860
|
+
const [startDate, setStartDate] = (0, import_react14.useState)(null);
|
2861
|
+
const [endDate, setEndDate] = (0, import_react14.useState)(null);
|
2862
|
+
const [state, setState] = (0, import_react14.useState)({
|
3282
2863
|
page: 1,
|
3283
2864
|
totalPage: 0,
|
3284
2865
|
data: [],
|
@@ -3401,18 +2982,18 @@ function CompletedTransactions(props) {
|
|
3401
2982
|
}
|
3402
2983
|
}
|
3403
2984
|
};
|
3404
|
-
(0,
|
2985
|
+
(0, import_react14.useEffect)(() => {
|
3405
2986
|
fetchData(state.page, startDate, endDate);
|
3406
2987
|
}, [state.page]);
|
3407
2988
|
const handlePageChange = (pageNumber) => {
|
3408
2989
|
setState((prev) => __spreadProps(__spreadValues({}, prev), { page: pageNumber }));
|
3409
2990
|
fetchData(pageNumber, startDate, endDate);
|
3410
2991
|
};
|
3411
|
-
return /* @__PURE__ */
|
2992
|
+
return /* @__PURE__ */ import_react14.default.createElement(import_react14.default.Fragment, null, /* @__PURE__ */ import_react14.default.createElement("style", null, `
|
3412
2993
|
.react-datepicker-wrapper:first-child {
|
3413
2994
|
margin-right: 10px;
|
3414
2995
|
}
|
3415
|
-
`), /* @__PURE__ */
|
2996
|
+
`), /* @__PURE__ */ import_react14.default.createElement("div", { className: "mb-5" }, /* @__PURE__ */ import_react14.default.createElement("div", null, /* @__PURE__ */ import_react14.default.createElement("div", { style: { display: "flex" } }, /* @__PURE__ */ import_react14.default.createElement("div", { style: { display: "flex", marginRight: "10px", marginTop: "25px" } }, /* @__PURE__ */ import_react14.default.createElement(
|
3416
2997
|
import_react_datepicker.default,
|
3417
2998
|
{
|
3418
2999
|
selected: startDate,
|
@@ -3423,7 +3004,7 @@ function CompletedTransactions(props) {
|
|
3423
3004
|
placeholderText: "Start Date",
|
3424
3005
|
required: true
|
3425
3006
|
}
|
3426
|
-
), /* @__PURE__ */
|
3007
|
+
), /* @__PURE__ */ import_react14.default.createElement(
|
3427
3008
|
import_react_datepicker.default,
|
3428
3009
|
{
|
3429
3010
|
selected: endDate,
|
@@ -3434,7 +3015,7 @@ function CompletedTransactions(props) {
|
|
3434
3015
|
minDate: startDate,
|
3435
3016
|
placeholderText: "End Date"
|
3436
3017
|
}
|
3437
|
-
)), /* @__PURE__ */
|
3018
|
+
)), /* @__PURE__ */ import_react14.default.createElement("button", { className: "export-btn1", onClick: handleExport }, "Export")), /* @__PURE__ */ import_react14.default.createElement(
|
3438
3019
|
import_react_bs_datatable.DatatableWrapper,
|
3439
3020
|
{
|
3440
3021
|
body: dataList,
|
@@ -3446,20 +3027,20 @@ function CompletedTransactions(props) {
|
|
3446
3027
|
}
|
3447
3028
|
}
|
3448
3029
|
},
|
3449
|
-
/* @__PURE__ */
|
3450
|
-
/* @__PURE__ */
|
3451
|
-
/* @__PURE__ */
|
3030
|
+
/* @__PURE__ */ import_react14.default.createElement(import_react_bootstrap6.Row, { className: "mb-4 p-2" }, /* @__PURE__ */ import_react14.default.createElement(import_react_bootstrap6.Col, { xs: 12, sm: 6, lg: 4, className: "d-flex flex-col justify-content-lg-start align-items-center justify-content-sm-start mb-2 mb-sm-0" }, /* @__PURE__ */ import_react14.default.createElement(import_react_bs_datatable.PaginationOptions, null)), /* @__PURE__ */ import_react14.default.createElement(import_react_bootstrap6.Col, { xs: 12, lg: 4, className: "d-flex flex-col justify-content-end align-items-end" }), /* @__PURE__ */ import_react14.default.createElement(import_react_bootstrap6.Col, { xs: 12, sm: 6, lg: 4, className: "d-flex flex-col justify-content-end align-items-end" }, /* @__PURE__ */ import_react14.default.createElement(import_react_bs_datatable.Filter, null))),
|
3031
|
+
/* @__PURE__ */ import_react14.default.createElement(import_react_bootstrap6.Row, null, /* @__PURE__ */ import_react14.default.createElement("div", { className: "responsive-tbl" }, /* @__PURE__ */ import_react14.default.createElement(import_react_bootstrap6.Table, null, /* @__PURE__ */ import_react14.default.createElement(import_react_bs_datatable.TableHeader, null), /* @__PURE__ */ import_react14.default.createElement(import_react_bs_datatable.TableBody, null)))),
|
3032
|
+
/* @__PURE__ */ import_react14.default.createElement(PaginationPg, { totalPages: state.totalPage, onPageChange: handlePageChange, current: state.page })
|
3452
3033
|
))));
|
3453
3034
|
}
|
3454
3035
|
|
3455
3036
|
// src/app/components/Payment/TockenizPay.tsx
|
3456
|
-
var
|
3457
|
-
var
|
3037
|
+
var import_react15 = __toESM(require("react"));
|
3038
|
+
var import_react_bootstrap7 = require("react-bootstrap");
|
3458
3039
|
var import_react_toastify5 = require("react-toastify");
|
3459
3040
|
var import_node_forge2 = __toESM(require("node-forge"));
|
3460
3041
|
var import_credit_card_type = __toESM(require("credit-card-type"));
|
3461
3042
|
function TockenizPay() {
|
3462
|
-
const [state, setState] = (0,
|
3043
|
+
const [state, setState] = (0, import_react15.useState)({
|
3463
3044
|
show: false,
|
3464
3045
|
publicKey: "",
|
3465
3046
|
sessionKey: "",
|
@@ -3470,10 +3051,10 @@ function TockenizPay() {
|
|
3470
3051
|
zip: "",
|
3471
3052
|
amount: ""
|
3472
3053
|
});
|
3473
|
-
const [cardTypeDetail, setCardTypeDetail] = (0,
|
3474
|
-
const [isValid, setIsValid] = (0,
|
3475
|
-
const [isValidMonth, setIsValidMonth] = (0,
|
3476
|
-
const [data, setData] = (0,
|
3054
|
+
const [cardTypeDetail, setCardTypeDetail] = (0, import_react15.useState)(null);
|
3055
|
+
const [isValid, setIsValid] = (0, import_react15.useState)(false);
|
3056
|
+
const [isValidMonth, setIsValidMonth] = (0, import_react15.useState)(false);
|
3057
|
+
const [data, setData] = (0, import_react15.useState)(null);
|
3477
3058
|
const handlePaymentClick = async () => {
|
3478
3059
|
try {
|
3479
3060
|
const response = await fetch(`${baseUrl}/generate-session`, {
|
@@ -3685,7 +3266,7 @@ function TockenizPay() {
|
|
3685
3266
|
}
|
3686
3267
|
return "";
|
3687
3268
|
}
|
3688
|
-
return /* @__PURE__ */
|
3269
|
+
return /* @__PURE__ */ import_react15.default.createElement("div", null, /* @__PURE__ */ import_react15.default.createElement(import_react_toastify5.ToastContainer, null), /* @__PURE__ */ import_react15.default.createElement(
|
3689
3270
|
"button",
|
3690
3271
|
{
|
3691
3272
|
className: "export-btn mt-4",
|
@@ -3693,8 +3274,8 @@ function TockenizPay() {
|
|
3693
3274
|
onClick: () => handlePaymentClick()
|
3694
3275
|
},
|
3695
3276
|
"TokenizePay"
|
3696
|
-
), /* @__PURE__ */
|
3697
|
-
|
3277
|
+
), /* @__PURE__ */ import_react15.default.createElement(
|
3278
|
+
import_react_bootstrap7.Modal,
|
3698
3279
|
{
|
3699
3280
|
show: state.show,
|
3700
3281
|
onHide: () => setState((prev) => __spreadProps(__spreadValues({}, prev), {
|
@@ -3702,8 +3283,8 @@ function TockenizPay() {
|
|
3702
3283
|
})),
|
3703
3284
|
centered: true
|
3704
3285
|
},
|
3705
|
-
/* @__PURE__ */
|
3706
|
-
/* @__PURE__ */
|
3286
|
+
/* @__PURE__ */ import_react15.default.createElement(import_react_bootstrap7.Modal.Header, { closeButton: true }),
|
3287
|
+
/* @__PURE__ */ import_react15.default.createElement(import_react_bootstrap7.Modal.Body, null, /* @__PURE__ */ import_react15.default.createElement("div", { className: "payment-popup" }, /* @__PURE__ */ import_react15.default.createElement("div", { className: "row" }, /* @__PURE__ */ import_react15.default.createElement("div", { className: "" }, /* @__PURE__ */ import_react15.default.createElement("div", { id: "Checkout", className: "inline" }, /* @__PURE__ */ import_react15.default.createElement("div", { className: "header" }, /* @__PURE__ */ import_react15.default.createElement("h1", null, "Pay")), /* @__PURE__ */ import_react15.default.createElement("form", { id: "PaymentForm", className: "payment-form" }, /* @__PURE__ */ import_react15.default.createElement("div", { className: "form-group" }, /* @__PURE__ */ import_react15.default.createElement("label", null, "Name on card"), /* @__PURE__ */ import_react15.default.createElement(
|
3707
3288
|
"input",
|
3708
3289
|
{
|
3709
3290
|
id: "NameOnCard",
|
@@ -3712,13 +3293,13 @@ function TockenizPay() {
|
|
3712
3293
|
maxLength: 100,
|
3713
3294
|
placeholder: "Name"
|
3714
3295
|
}
|
3715
|
-
), /* @__PURE__ */
|
3296
|
+
), /* @__PURE__ */ import_react15.default.createElement(
|
3716
3297
|
"span",
|
3717
3298
|
{
|
3718
3299
|
id: "NameOnCard-error",
|
3719
3300
|
style: { color: "red", display: "none" }
|
3720
3301
|
}
|
3721
|
-
)), /* @__PURE__ */
|
3302
|
+
)), /* @__PURE__ */ import_react15.default.createElement("div", { className: "form-group" }, /* @__PURE__ */ import_react15.default.createElement(
|
3722
3303
|
"input",
|
3723
3304
|
{
|
3724
3305
|
"data-token": "card_number",
|
@@ -3729,7 +3310,7 @@ function TockenizPay() {
|
|
3729
3310
|
placeholder: "0000 0000 0000 0000",
|
3730
3311
|
onChange: handleCardNumberChange
|
3731
3312
|
}
|
3732
|
-
), state.error && /* @__PURE__ */
|
3313
|
+
), state.error && /* @__PURE__ */ import_react15.default.createElement("div", { style: { color: "red" } }, state.error)), /* @__PURE__ */ import_react15.default.createElement("div", { className: "expiry-date-group form-group" }, /* @__PURE__ */ import_react15.default.createElement(
|
3733
3314
|
"input",
|
3734
3315
|
{
|
3735
3316
|
"data-token": "exp_month",
|
@@ -3740,14 +3321,14 @@ function TockenizPay() {
|
|
3740
3321
|
maxLength: 2,
|
3741
3322
|
onChange: (e) => handleMonthChange(e)
|
3742
3323
|
}
|
3743
|
-
), isValidMonth && /* @__PURE__ */
|
3324
|
+
), isValidMonth && /* @__PURE__ */ import_react15.default.createElement(
|
3744
3325
|
"span",
|
3745
3326
|
{
|
3746
3327
|
id: "card_number-error",
|
3747
3328
|
style: { color: "red", fontSize: "15px" }
|
3748
3329
|
},
|
3749
3330
|
"Please write month only 1 to 12"
|
3750
|
-
)), /* @__PURE__ */
|
3331
|
+
)), /* @__PURE__ */ import_react15.default.createElement("div", { className: "expiry-date-group form-group" }, /* @__PURE__ */ import_react15.default.createElement(
|
3751
3332
|
"input",
|
3752
3333
|
{
|
3753
3334
|
"data-token": "exp_year",
|
@@ -3758,7 +3339,7 @@ function TockenizPay() {
|
|
3758
3339
|
value: state.year,
|
3759
3340
|
onChange: (e) => handleYearChange(e)
|
3760
3341
|
}
|
3761
|
-
), state.yearError && /* @__PURE__ */
|
3342
|
+
), state.yearError && /* @__PURE__ */ import_react15.default.createElement("span", { id: "exp_year-error", style: { color: "red" } }, state.yearError)), /* @__PURE__ */ import_react15.default.createElement("div", { className: "security-code-group form-group" }, /* @__PURE__ */ import_react15.default.createElement("div", { className: "input-container" }, /* @__PURE__ */ import_react15.default.createElement(
|
3762
3343
|
"input",
|
3763
3344
|
{
|
3764
3345
|
"data-token": "cvv",
|
@@ -3769,7 +3350,7 @@ function TockenizPay() {
|
|
3769
3350
|
placeholder: "CVV",
|
3770
3351
|
onChange: (e) => handleCVVChange(e)
|
3771
3352
|
}
|
3772
|
-
), /* @__PURE__ */
|
3353
|
+
), /* @__PURE__ */ import_react15.default.createElement("i", { id: "cvc", className: "fa fa-question-circle" }), state.cvvError && /* @__PURE__ */ import_react15.default.createElement("span", { id: "cvv-error", style: { color: "red" } }, state.cvvError)), /* @__PURE__ */ import_react15.default.createElement("div", { className: "cvc-preview-container two-card hide" }, /* @__PURE__ */ import_react15.default.createElement("div", { className: "amex-cvc-preview" }), /* @__PURE__ */ import_react15.default.createElement("div", { className: "visa-mc-dis-cvc-preview" }))), /* @__PURE__ */ import_react15.default.createElement("div", { className: "zip-code-group form-group" }, /* @__PURE__ */ import_react15.default.createElement("label", null, "Postal code"), /* @__PURE__ */ import_react15.default.createElement("div", { className: "input-container" }, /* @__PURE__ */ import_react15.default.createElement(
|
3773
3354
|
"input",
|
3774
3355
|
{
|
3775
3356
|
id: "ZIPCode",
|
@@ -3781,7 +3362,7 @@ function TockenizPay() {
|
|
3781
3362
|
value: state.zip,
|
3782
3363
|
onChange: (e) => handleZIP(e)
|
3783
3364
|
}
|
3784
|
-
), /* @__PURE__ */
|
3365
|
+
), /* @__PURE__ */ import_react15.default.createElement(
|
3785
3366
|
"a",
|
3786
3367
|
{
|
3787
3368
|
tabIndex: 0,
|
@@ -3791,15 +3372,15 @@ function TockenizPay() {
|
|
3791
3372
|
"data-placement": "left",
|
3792
3373
|
"data-content": "Enter the ZIP/Postal code for your credit card billing address."
|
3793
3374
|
},
|
3794
|
-
/* @__PURE__ */
|
3795
|
-
), /* @__PURE__ */
|
3375
|
+
/* @__PURE__ */ import_react15.default.createElement("i", { className: "fa fa-question-circle" })
|
3376
|
+
), /* @__PURE__ */ import_react15.default.createElement(
|
3796
3377
|
"span",
|
3797
3378
|
{
|
3798
3379
|
id: "ZIPCode-error",
|
3799
3380
|
style: { color: "red", display: "none" }
|
3800
3381
|
},
|
3801
3382
|
"This field is required"
|
3802
|
-
))), /* @__PURE__ */
|
3383
|
+
))), /* @__PURE__ */ import_react15.default.createElement("div", { className: "form-group top-amnt" }, /* @__PURE__ */ import_react15.default.createElement("div", null, /* @__PURE__ */ import_react15.default.createElement("label", null, "Payment amount"), /* @__PURE__ */ import_react15.default.createElement("div", { className: "amount-placeholder" }, /* @__PURE__ */ import_react15.default.createElement(
|
3803
3384
|
"input",
|
3804
3385
|
{
|
3805
3386
|
id: "Amount",
|
@@ -3811,7 +3392,7 @@ function TockenizPay() {
|
|
3811
3392
|
onChange: (e) => handleAmount(e),
|
3812
3393
|
onBlur: handleAmountBlur
|
3813
3394
|
}
|
3814
|
-
))), /* @__PURE__ */
|
3395
|
+
))), /* @__PURE__ */ import_react15.default.createElement("div", { className: "card-row" }, /* @__PURE__ */ import_react15.default.createElement("span", { className: "visa" }), /* @__PURE__ */ import_react15.default.createElement("span", { className: "mastercard" }), /* @__PURE__ */ import_react15.default.createElement("span", { className: "amex" }), /* @__PURE__ */ import_react15.default.createElement("span", { className: "discover" }))), /* @__PURE__ */ import_react15.default.createElement(
|
3815
3396
|
"button",
|
3816
3397
|
{
|
3817
3398
|
type: "button",
|
@@ -3820,7 +3401,7 @@ function TockenizPay() {
|
|
3820
3401
|
className: "btn btn-block btn-success submit-button"
|
3821
3402
|
},
|
3822
3403
|
"Submit"
|
3823
|
-
)), /* @__PURE__ */
|
3404
|
+
)), /* @__PURE__ */ import_react15.default.createElement("div", { className: "powerd-by-part" }, /* @__PURE__ */ import_react15.default.createElement(
|
3824
3405
|
"svg",
|
3825
3406
|
{
|
3826
3407
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -3828,14 +3409,14 @@ function TockenizPay() {
|
|
3828
3409
|
height: "20",
|
3829
3410
|
viewBox: "0 0 26 26"
|
3830
3411
|
},
|
3831
|
-
/* @__PURE__ */
|
3412
|
+
/* @__PURE__ */ import_react15.default.createElement(
|
3832
3413
|
"path",
|
3833
3414
|
{
|
3834
3415
|
fill: "currentColor",
|
3835
3416
|
d: "M23.633 5.028a1.074 1.074 0 0 0-.777-.366c-2.295-.06-5.199-2.514-7.119-3.477C14.551.592 13.768.201 13.18.098a1.225 1.225 0 0 0-.36.001c-.588.103-1.371.494-2.556 1.087c-1.92.962-4.824 3.416-7.119 3.476a1.08 1.08 0 0 0-.778.366a1.167 1.167 0 0 0-.291.834c.493 10.023 4.088 16.226 10.396 19.831c.164.093.346.141.527.141s.363-.048.528-.141c6.308-3.605 9.902-9.808 10.396-19.831a1.161 1.161 0 0 0-.29-.834zM18.617 8.97l-5.323 7.855c-.191.282-.491.469-.788.469c-.298 0-.629-.163-.838-.372l-3.752-3.753a.656.656 0 0 1 0-.926l.927-.929a.658.658 0 0 1 .926 0l2.44 2.44l4.239-6.257a.657.657 0 0 1 .91-.173l1.085.736a.657.657 0 0 1 .174.91z"
|
3836
3417
|
}
|
3837
3418
|
)
|
3838
|
-
), "Secure payments powered by Fractal", /* @__PURE__ */
|
3419
|
+
), "Secure payments powered by Fractal", /* @__PURE__ */ import_react15.default.createElement(
|
3839
3420
|
"img",
|
3840
3421
|
{
|
3841
3422
|
src: "https://ui.fractalpay.com/favicon.ico",
|
@@ -3847,25 +3428,25 @@ function TockenizPay() {
|
|
3847
3428
|
}
|
3848
3429
|
|
3849
3430
|
// src/app/components/Payment/GetPaymentDynamic.tsx
|
3850
|
-
var
|
3851
|
-
var
|
3431
|
+
var import_react17 = __toESM(require("react"));
|
3432
|
+
var import_react_bootstrap8 = require("react-bootstrap");
|
3852
3433
|
|
3853
3434
|
// src/app/components/Loader/MyLoadingAnimation.tsx
|
3854
|
-
var
|
3435
|
+
var import_react16 = __toESM(require("react"));
|
3855
3436
|
function MyLoadingAnimation() {
|
3856
|
-
return /* @__PURE__ */
|
3437
|
+
return /* @__PURE__ */ import_react16.default.createElement(import_react16.default.Fragment, null, /* @__PURE__ */ import_react16.default.createElement(LoaderStyle_default, null), /* @__PURE__ */ import_react16.default.createElement("div", { className: "loading-animation" }, /* @__PURE__ */ import_react16.default.createElement("div", { className: "spinner" })));
|
3857
3438
|
}
|
3858
3439
|
|
3859
3440
|
// src/app/components/Payment/GetPaymentDynamic.tsx
|
3860
3441
|
function GetPaymentDynamic(props) {
|
3861
3442
|
const { amount, fractalpayClientKey, orderID } = props;
|
3862
|
-
const [loading, setLoading] = (0,
|
3863
|
-
const [show, setShow] = (0,
|
3864
|
-
const [iframeLoaded, setIframeLoaded] = (0,
|
3865
|
-
const [phoneNumber, setPhoneNumber] = (0,
|
3866
|
-
const [errorMessage, setErrorMessage] = (0,
|
3867
|
-
const [submitClicked, setSubmitClicked] = (0,
|
3868
|
-
const [isValidNumber, setIsValidNumber] = (0,
|
3443
|
+
const [loading, setLoading] = (0, import_react17.useState)(false);
|
3444
|
+
const [show, setShow] = (0, import_react17.useState)(false);
|
3445
|
+
const [iframeLoaded, setIframeLoaded] = (0, import_react17.useState)(false);
|
3446
|
+
const [phoneNumber, setPhoneNumber] = (0, import_react17.useState)("");
|
3447
|
+
const [errorMessage, setErrorMessage] = (0, import_react17.useState)("");
|
3448
|
+
const [submitClicked, setSubmitClicked] = (0, import_react17.useState)(false);
|
3449
|
+
const [isValidNumber, setIsValidNumber] = (0, import_react17.useState)(true);
|
3869
3450
|
const handleClose = () => {
|
3870
3451
|
setIframeLoaded(false);
|
3871
3452
|
setTimeout(() => {
|
@@ -3880,7 +3461,7 @@ function GetPaymentDynamic(props) {
|
|
3880
3461
|
console.error(ErrorText.fractalpayclientidrequired);
|
3881
3462
|
}
|
3882
3463
|
};
|
3883
|
-
(0,
|
3464
|
+
(0, import_react17.useEffect)(() => {
|
3884
3465
|
if (!fractalpayClientKey) {
|
3885
3466
|
console.error(ErrorText.fractalpayclientidrequired);
|
3886
3467
|
}
|
@@ -3903,7 +3484,7 @@ function GetPaymentDynamic(props) {
|
|
3903
3484
|
const handleLoad = () => {
|
3904
3485
|
setLoading(false);
|
3905
3486
|
};
|
3906
|
-
(0,
|
3487
|
+
(0, import_react17.useEffect)(() => {
|
3907
3488
|
const messageListener = (event) => {
|
3908
3489
|
var _a, _b;
|
3909
3490
|
const response = (_b = (_a = event == null ? void 0 : event.data) == null ? void 0 : _a.other) == null ? void 0 : _b.data;
|
@@ -3918,7 +3499,7 @@ function GetPaymentDynamic(props) {
|
|
3918
3499
|
window.removeEventListener("message", messageListener);
|
3919
3500
|
};
|
3920
3501
|
}, []);
|
3921
|
-
return /* @__PURE__ */
|
3502
|
+
return /* @__PURE__ */ import_react17.default.createElement("div", null, /* @__PURE__ */ import_react17.default.createElement("button", { className: "paymentBtn", onClick: handleShow }, "Pay"), /* @__PURE__ */ import_react17.default.createElement(import_react_bootstrap8.Modal, { show: show && iframeLoaded, id: "modal-pay", className: "modal-lg", onHide: handleClose }, /* @__PURE__ */ import_react17.default.createElement(import_react_bootstrap8.Modal.Header, { closeButton: true }), /* @__PURE__ */ import_react17.default.createElement(import_react_bootstrap8.Modal.Body, null, loading && /* @__PURE__ */ import_react17.default.createElement(MyLoadingAnimation, null), /* @__PURE__ */ import_react17.default.createElement(
|
3922
3503
|
"iframe",
|
3923
3504
|
{
|
3924
3505
|
src: `${baseUrl}widget-form/${amount}?fractalpay_public_key=${fractalpayClientKey}&order_id=${orderID}`,
|