@pinerohit11/testwidget 0.1.61 → 0.1.63
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.css +219 -0
- package/dist/index.d.mts +8 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.js +752 -1156
- package/dist/index.mjs +707 -1117
- package/package.json +15 -3
- package/postcss-import.d.ts +5 -0
- package/postcss.config.ts +7 -0
package/dist/index.mjs
CHANGED
@@ -17,16 +17,10 @@ var __spreadValues = (a, b) => {
|
|
17
17
|
return a;
|
18
18
|
};
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
20
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
21
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
22
|
-
}) : x)(function(x) {
|
23
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
24
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
25
|
-
});
|
26
20
|
|
27
21
|
// src/app/components/RequestPayment/RequestPayment.tsx
|
28
22
|
import "bootstrap/dist/js/bootstrap.bundle.min.js";
|
29
|
-
import
|
23
|
+
import React5, { useState, useEffect } from "react";
|
30
24
|
|
31
25
|
// src/app/components/Loader/Loader.tsx
|
32
26
|
import React2 from "react";
|
@@ -157,926 +151,359 @@ var Loader = (props) => {
|
|
157
151
|
};
|
158
152
|
var Loader_default = Loader;
|
159
153
|
|
160
|
-
// src/app/components/
|
161
|
-
|
162
|
-
|
163
|
-
// src/app/components/RequestPayment/RequestPaymentstyles.tsx
|
164
|
-
import React3 from "react";
|
165
|
-
var RequestPaymentstyles = (props) => {
|
166
|
-
return /* @__PURE__ */ React3.createElement("style", null, `
|
167
|
-
.paymentBtn {
|
168
|
-
background-color: black;
|
169
|
-
border: none;
|
170
|
-
color: white;
|
171
|
-
padding: 15px 32px;
|
172
|
-
text-align: center;
|
173
|
-
text-decoration: none;
|
174
|
-
display: inline-block;
|
175
|
-
font-size: 16px;
|
176
|
-
margin: 4px 2px;
|
177
|
-
cursor: pointer;
|
178
|
-
border-radius: 180px;
|
179
|
-
/* width: auto; */
|
180
|
-
}
|
181
|
-
.modal-backdrop {
|
182
|
-
display: none !important;
|
183
|
-
}
|
184
|
-
/* CSS for modal */
|
185
|
-
.modal {
|
186
|
-
/* display: none; */
|
187
|
-
position: fixed;
|
188
|
-
z-index: 5555;
|
189
|
-
left: 0;
|
190
|
-
top: 0;
|
191
|
-
width: 100%;
|
192
|
-
height: 100%;
|
193
|
-
overflow: auto;
|
194
|
-
background-color: rgba(0, 0, 0, 0.4);
|
195
|
-
}
|
196
|
-
|
197
|
-
.input-container {
|
198
|
-
position: relative;
|
199
|
-
}
|
200
|
-
.error {
|
201
|
-
border: 1px solid red;
|
202
|
-
background-color: #ffe6e6; /* light red background color */
|
203
|
-
}
|
204
|
-
.form-group {
|
205
|
-
margin-bottom: 15px;
|
206
|
-
}
|
207
|
-
.input-container input {
|
208
|
-
padding-right: 25px;
|
209
|
-
}
|
210
|
-
|
211
|
-
.modal-header {
|
212
|
-
border-bottom: 0 !important;
|
213
|
-
padding-top: 0 !important;
|
214
|
-
}
|
215
|
-
|
216
|
-
/* CSS for modal content */
|
217
|
-
.modal-content {
|
218
|
-
/* height: 90vh !important; */
|
219
|
-
height: auto;
|
220
|
-
padding: 20px 5px;
|
221
|
-
/* background: #fff; */
|
222
|
-
border-radius: 20px !important;
|
223
|
-
position: relative;
|
224
|
-
width: 100%;
|
225
|
-
max-width: 100%;
|
226
|
-
margin: 30px auto;
|
227
|
-
overflow: inherit !important;
|
228
|
-
}
|
229
|
-
.input-container {
|
230
|
-
display: flex;
|
231
|
-
align-items: baseline;
|
232
|
-
}
|
233
|
-
|
234
|
-
.input-error-container {
|
235
|
-
flex: 1;
|
236
|
-
}
|
237
|
-
|
238
|
-
.paymentBtn {
|
239
|
-
margin-left: 10px;
|
240
|
-
}
|
241
|
-
|
242
|
-
.PayButton {
|
243
|
-
outline: 0 !important;
|
244
|
-
height: 46px;
|
245
|
-
font-size: 16px;
|
246
|
-
background-color: #161616 !important;
|
247
|
-
border: none;
|
248
|
-
display: block;
|
249
|
-
width: 100%;
|
250
|
-
border-radius: 180px;
|
251
|
-
margin: 10px 0;
|
252
|
-
}
|
253
|
-
|
254
|
-
#PayButton:hover {
|
255
|
-
background-color: #61c699 !important;
|
256
|
-
}
|
257
|
-
|
258
|
-
#PayButton:active {
|
259
|
-
background-color: #61c699 !important;
|
260
|
-
}
|
261
|
-
|
262
|
-
#PayButton:disabled {
|
263
|
-
background: rgb(172, 44, 170) !important;
|
264
|
-
color: #fff !important;
|
265
|
-
}
|
266
|
-
|
267
|
-
label {
|
268
|
-
color: rgba(53, 37, 77, 0.6);
|
269
|
-
margin-bottom: 2px;
|
270
|
-
text-transform: uppercase;
|
271
|
-
font-family: "IBM Plex Mono", monospace;
|
272
|
-
font-weight: 500;
|
273
|
-
font-size: 12px;
|
274
|
-
}
|
275
|
-
|
276
|
-
.input-container {
|
277
|
-
position: relative;
|
278
|
-
}
|
279
|
-
|
280
|
-
.input-container input {
|
281
|
-
padding-right: 25px;
|
282
|
-
}
|
283
|
-
|
284
|
-
#Checkout {
|
285
|
-
/* z-index: 100001; */
|
286
|
-
width: 100%;
|
287
|
-
/* height: 100%; */
|
288
|
-
/* background: 0 0 #ffffff; */
|
289
|
-
border-radius: 24px;
|
290
|
-
border: 1px solid #e0dfe2;
|
291
|
-
display: block;
|
292
|
-
}
|
293
|
-
|
294
|
-
.container {
|
295
|
-
margin-top: 10px;
|
296
|
-
}
|
297
|
-
|
298
|
-
.powered-logo {
|
299
|
-
width: 18px;
|
300
|
-
height: 18px;
|
301
|
-
/* float: right; */
|
302
|
-
padding: 2px;
|
303
|
-
background: #000000;
|
304
|
-
border-radius: 4px;
|
305
|
-
/* margin-left: 5px; */
|
306
|
-
}
|
307
|
-
|
308
|
-
.modal-content .container {
|
309
|
-
width: 100%;
|
310
|
-
}
|
311
|
-
|
312
|
-
.powerd-by-part {
|
313
|
-
display: flex;
|
314
|
-
justify-content: center;
|
315
|
-
align-items: center;
|
316
|
-
gap: 5px;
|
317
|
-
}
|
318
|
-
|
319
|
-
.errorText {
|
320
|
-
color: red;
|
321
|
-
}
|
322
|
-
|
323
|
-
.input-group {
|
324
|
-
position: relative;
|
325
|
-
}
|
326
|
-
|
327
|
-
.paynowbtn {
|
328
|
-
outline: 0 !important;
|
329
|
-
padding: 7px 25px !important;
|
330
|
-
font-size: 13px;
|
331
|
-
background-color: #161616 !important;
|
332
|
-
border: #161616 1px solid !important;
|
333
|
-
color: #fff !important;
|
334
|
-
display: inline-block !important;
|
335
|
-
border-radius: 180px !important;
|
336
|
-
}
|
337
|
-
|
338
|
-
.paynowbtn:hover {
|
339
|
-
background-color: #fff !important;
|
340
|
-
border: #161616 1px solid !important;
|
341
|
-
color: #161616 !important;
|
342
|
-
}
|
343
|
-
|
344
|
-
.ButtonGroup__root.btn-group {
|
345
|
-
margin: 10px 0 20px 0;
|
346
|
-
}
|
347
|
-
|
348
|
-
.ButtonGroup__root.btn-group button {
|
349
|
-
background: #000;
|
350
|
-
border: 0;
|
351
|
-
margin: 0 5px;
|
352
|
-
border-radius: 4px !important;
|
353
|
-
}
|
354
|
-
|
355
|
-
.ButtonGroup__root.btn-group button:hover,
|
356
|
-
.ButtonGroup__root.btn-group button:focus {
|
357
|
-
background: #333 !important;
|
358
|
-
}
|
359
|
-
|
360
|
-
.input-group button {
|
361
|
-
background: #000;
|
362
|
-
border: 0;
|
363
|
-
margin: 0 5px;
|
364
|
-
border-radius: 0 4px 4px 0 !important;
|
365
|
-
}
|
366
|
-
|
367
|
-
.input-group button:hover,
|
368
|
-
.input-group button:focus {
|
369
|
-
background: #333 !important;
|
370
|
-
}
|
371
|
-
|
372
|
-
.payment-suc {
|
373
|
-
text-align: center;
|
374
|
-
}
|
375
|
-
|
376
|
-
.payment-suc .modal-dialog {
|
377
|
-
min-width: 600px;
|
378
|
-
padding: 50px 0;
|
379
|
-
}
|
380
|
-
|
381
|
-
.payment-suc h2 {
|
382
|
-
font-size: 24px;
|
383
|
-
color: #35254d;
|
384
|
-
font-weight: 500;
|
385
|
-
padding: 15px 0;
|
386
|
-
}
|
387
|
-
|
388
|
-
.payment-suc p {
|
389
|
-
font-size: 14px;
|
390
|
-
color: #9a92a6;
|
391
|
-
font-weight: 500;
|
392
|
-
}
|
393
|
-
|
394
|
-
.payment-suc .btn-close {
|
395
|
-
position: absolute;
|
396
|
-
right: 20px;
|
397
|
-
}
|
398
|
-
|
399
|
-
.Checkout.container iframe {
|
400
|
-
width: 100%;
|
401
|
-
overflow: hidden !important;
|
402
|
-
}
|
403
|
-
|
404
|
-
.responsive-tbl {
|
405
|
-
overflow-x: auto;
|
406
|
-
}
|
407
|
-
body {
|
408
|
-
position: relative !important;
|
409
|
-
}
|
410
|
-
thead,
|
411
|
-
tbody,
|
412
|
-
tfoot,
|
413
|
-
tr,
|
414
|
-
td,
|
415
|
-
th {
|
416
|
-
white-space: nowrap;
|
417
|
-
}
|
418
|
-
|
419
|
-
.button-group {
|
420
|
-
display: flex;
|
421
|
-
gap: 10px;
|
422
|
-
}
|
423
|
-
.rqstonClickbtn {
|
424
|
-
color: #fff;
|
425
|
-
background-color: #337ab7;
|
426
|
-
border-color: #2e6da4;
|
427
|
-
}
|
428
|
-
.loading-animation {
|
429
|
-
position: absolute;
|
430
|
-
top: 50%;
|
431
|
-
left: 50%;
|
432
|
-
transform: translate(-50%, -50%);
|
433
|
-
}
|
434
|
-
|
435
|
-
.spinner {
|
436
|
-
width: 40px;
|
437
|
-
height: 40px;
|
438
|
-
border-radius: 50%;
|
439
|
-
border: 4px solid #f3f3f3;
|
440
|
-
border-top: 4px solid black;
|
441
|
-
animation: spin 1s linear infinite;
|
442
|
-
}
|
443
|
-
|
444
|
-
@keyframes spin {
|
445
|
-
0% {
|
446
|
-
transform: rotate(0deg);
|
447
|
-
}
|
448
|
-
100% {
|
449
|
-
transform: rotate(360deg);
|
450
|
-
}
|
451
|
-
}
|
452
|
-
/* .border-container {
|
453
|
-
display: flex;
|
454
|
-
flex-direction: column;
|
455
|
-
border: 0px solid #ccc;
|
456
|
-
padding: 20px;
|
457
|
-
border-radius: 10px;
|
458
|
-
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
459
|
-
align-items: baseline;
|
460
|
-
}
|
461
|
-
.payment-container {
|
462
|
-
border: 0px solid #ccc;
|
463
|
-
padding: 20px;
|
464
|
-
border-radius: 10px;
|
465
|
-
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
466
|
-
} */
|
467
|
-
|
468
|
-
.payment-row {
|
469
|
-
display: flex;
|
470
|
-
align-items: center;
|
471
|
-
margin-bottom: 20px;
|
472
|
-
}
|
473
|
-
|
474
|
-
.payment-row label {
|
475
|
-
width: 150px;
|
476
|
-
font-weight: bold;
|
477
|
-
margin-right: 10px;
|
478
|
-
}
|
479
|
-
|
480
|
-
.payment-row input {
|
481
|
-
flex-grow: 1;
|
482
|
-
margin-right: 10px;
|
483
|
-
}
|
484
|
-
|
485
|
-
.payment-row button {
|
486
|
-
flex-grow: 1;
|
487
|
-
}
|
488
|
-
.payment-row {
|
489
|
-
display: flex;
|
490
|
-
flex-direction: column;
|
491
|
-
border-radius: 10px;
|
492
|
-
margin-top: 10px;
|
493
|
-
}
|
494
|
-
|
495
|
-
.input-wrapper {
|
496
|
-
flex: 1;
|
497
|
-
}
|
498
|
-
|
499
|
-
.button-wrapper {
|
500
|
-
margin-left: 10px;
|
501
|
-
}
|
502
|
-
.input-container {
|
503
|
-
display: flex;
|
504
|
-
flex-direction: column;
|
505
|
-
}
|
506
|
-
|
507
|
-
.export-btn1 {
|
508
|
-
background: black;
|
509
|
-
color: white;
|
510
|
-
height: 35px;
|
511
|
-
width: 68px;
|
512
|
-
border-radius: 5px;
|
513
|
-
margin-top: 20px;
|
514
|
-
}
|
515
|
-
|
516
|
-
.export-btn {
|
517
|
-
background: black;
|
518
|
-
color: white;
|
519
|
-
height: 35px;
|
520
|
-
width: 68px;
|
521
|
-
border-radius: 5px;
|
522
|
-
margin-left: 14px;
|
523
|
-
}
|
524
|
-
|
525
|
-
.payment-popup {
|
526
|
-
padding: 12px 20px;
|
527
|
-
background: #fff;
|
528
|
-
border-radius: 20px;
|
529
|
-
position: relative;
|
530
|
-
width: 100%;
|
531
|
-
margin: 0 auto;
|
532
|
-
}
|
533
|
-
|
534
|
-
// .modal-content {
|
535
|
-
// max-width: 420px;
|
536
|
-
// margin-top: 5%;
|
537
|
-
// }
|
538
|
-
@media (max-width: 460px) {
|
539
|
-
.payment-popup {
|
540
|
-
padding: 35px 25px;
|
541
|
-
width: 98%;
|
542
|
-
}
|
543
|
-
}
|
544
|
-
|
545
|
-
.close-pop {
|
546
|
-
position: absolute;
|
547
|
-
right: 8px;
|
548
|
-
top: 8px;
|
549
|
-
border: 0;
|
550
|
-
padding: 0;
|
551
|
-
background: none !important;
|
552
|
-
}
|
553
|
-
|
554
|
-
.amex {
|
555
|
-
background-image: url("../amex.svg");
|
556
|
-
}
|
557
|
-
|
558
|
-
.visa {
|
559
|
-
background-image: url("../visa.svg");
|
560
|
-
}
|
561
|
-
|
562
|
-
.mastercard {
|
563
|
-
background-image: url("../mastercard.svg");
|
564
|
-
}
|
565
|
-
|
566
|
-
.discover {
|
567
|
-
background-image: url("../discover.svg");
|
568
|
-
}
|
569
|
-
|
570
|
-
.expiry-date-group {
|
571
|
-
float: left;
|
572
|
-
width: 30%;
|
573
|
-
}
|
574
|
-
|
575
|
-
.expiry-date-group input {
|
576
|
-
width: calc(100% + 1px);
|
577
|
-
border-top-right-radius: 0;
|
578
|
-
border-bottom-right-radius: 0;
|
579
|
-
}
|
580
|
-
|
581
|
-
.expiry-date-group input:focus {
|
582
|
-
position: relative;
|
583
|
-
z-index: 10;
|
584
|
-
}
|
585
|
-
|
586
|
-
.security-code-group {
|
587
|
-
float: right;
|
588
|
-
width: 40%;
|
589
|
-
position: relative;
|
590
|
-
}
|
591
|
-
|
592
|
-
.security-code-group input {
|
593
|
-
border-top-left-radius: 0;
|
594
|
-
border-bottom-left-radius: 0;
|
595
|
-
}
|
596
|
-
|
597
|
-
.zip-code-group {
|
598
|
-
clear: both;
|
599
|
-
}
|
154
|
+
// src/app/components/baseurl.ts
|
155
|
+
var baseUrl = "https://staging-widget.fractalpay.com/";
|
600
156
|
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
border: none;
|
627
|
-
display: block;
|
628
|
-
width: 100%;
|
629
|
-
border-radius: 180px;
|
630
|
-
}
|
157
|
+
// src/app/components/Errortext.ts
|
158
|
+
var ErrorText = {
|
159
|
+
namerequired: "Full Name is required",
|
160
|
+
amountrequired: "Amount is required",
|
161
|
+
amountpositive: "Amount should be positive",
|
162
|
+
amountzero: "Amount should not be zero",
|
163
|
+
amountenter: "Please enter an amount",
|
164
|
+
amountvalid: "Please enter a valid amount",
|
165
|
+
phoneoremailrequired: "Phone or Email is required",
|
166
|
+
invalidemail: "Please enter a valid email",
|
167
|
+
invalidemailformat: "Invalid email format",
|
168
|
+
onlylettersallowed: "Only letters are allowed",
|
169
|
+
phonenumberlength: "Phone number should be 10 digits",
|
170
|
+
phonenumberrequired: "Please enter a phone number",
|
171
|
+
// phonenumbervalid:'Please enter a valid 10-digit phone number',
|
172
|
+
phonenumbervalid: "Please enter a valid phone number",
|
173
|
+
phonenumbervalidnumberonly: "Please enter a valid phone number (numbers only)",
|
174
|
+
orderidenter: "Please enter an order ID",
|
175
|
+
orderidrequired: "Order ID is required",
|
176
|
+
networkresponseerror: "Network response was not ok",
|
177
|
+
anerroroccured: "An error occurred. Please try again.",
|
178
|
+
montherror: "Please write month only 1 to 12",
|
179
|
+
fieldrequired: "This field is required",
|
180
|
+
fractalpayclientidrequired: "Fractalpay client key is missing or empty."
|
181
|
+
};
|
631
182
|
|
632
|
-
|
633
|
-
|
634
|
-
}
|
183
|
+
// src/app/components/CustomModal/CustomModal2.tsx
|
184
|
+
import React4 from "react";
|
635
185
|
|
636
|
-
|
637
|
-
|
186
|
+
// src/app/components/CustomModal/CustomModal2styles.tsx
|
187
|
+
import React3 from "react";
|
188
|
+
var CustomModal2styles = (props) => {
|
189
|
+
return /* @__PURE__ */ React3.createElement("style", null, `
|
190
|
+
.fractal-input::placeholder {
|
191
|
+
color: #35254D;
|
192
|
+
opacity: 1;
|
193
|
+
font-size: 15px;
|
638
194
|
}
|
639
195
|
|
640
|
-
|
641
|
-
|
642
|
-
|
196
|
+
.fractal-input::-ms-input-placeholder {
|
197
|
+
color: #35254D;
|
198
|
+
font-size: 15px;
|
643
199
|
}
|
644
200
|
|
645
|
-
.
|
646
|
-
|
201
|
+
.trigger{
|
202
|
+
text-align: center;
|
203
|
+
padding: 7px 13px;
|
204
|
+
background: #3e3e3e;
|
205
|
+
color: #fff;
|
206
|
+
font-size: 15px;
|
207
|
+
outline: none;
|
208
|
+
border: none;
|
209
|
+
border-radius: 5px;
|
210
|
+
font-family: cursive;
|
647
211
|
}
|
648
212
|
|
649
|
-
.
|
650
|
-
|
651
|
-
|
213
|
+
.fractal-popup {
|
214
|
+
position: fixed;
|
215
|
+
z-index: 9999;
|
216
|
+
top: 0;
|
217
|
+
right: 0;
|
218
|
+
bottom: 0;
|
219
|
+
left: 0;
|
652
220
|
|
653
|
-
#Checkout {
|
654
|
-
z-index: 100001;
|
655
221
|
width: 100%;
|
656
222
|
height: 100%;
|
657
|
-
|
658
|
-
|
659
|
-
border-radius: 24px;
|
660
|
-
border: 1px solid #e0dfe2;
|
661
|
-
margin-left: auto;
|
662
|
-
margin-right: auto;
|
663
|
-
display: block;
|
664
|
-
}
|
665
|
-
|
666
|
-
#Checkout .header {
|
223
|
+
background-color: rgba(0, 0, 0, 0.5);
|
224
|
+
transition: visibility 0s linear 0.25s, opacity 0.25s 0s, transform 0.25s;
|
667
225
|
display: flex;
|
668
|
-
/* Enables Flexbox */
|
669
226
|
justify-content: center;
|
670
|
-
/* Centers content horizontally */
|
671
227
|
align-items: center;
|
672
|
-
/* Centers content vertically */
|
673
|
-
text-align: center;
|
674
|
-
padding: 8px;
|
675
|
-
border-bottom: 1px solid #dedede;
|
676
|
-
margin: 0 10px 20px 10px;
|
677
|
-
}
|
678
|
-
|
679
|
-
#Checkout .header button {
|
680
|
-
border: 0;
|
681
|
-
background: none;
|
682
|
-
padding: 0;
|
683
|
-
}
|
684
|
-
|
685
|
-
#Checkout h1 {
|
686
|
-
margin: 0;
|
687
|
-
flex: 1;
|
688
|
-
padding: 10px;
|
689
|
-
/* Allows the title to grow and fill the space for centering */
|
690
|
-
font-size: 23px;
|
691
|
-
font-weight: 500;
|
692
|
-
color: #35254d;
|
693
|
-
align-items: start;
|
694
|
-
display: flex;
|
695
|
-
}
|
696
|
-
|
697
|
-
#Checkout > form {
|
698
|
-
margin: 0 25px 10px 25px;
|
699
|
-
}
|
700
|
-
|
701
|
-
label {
|
702
|
-
color: rgba(53, 37, 77, 0.6);
|
703
|
-
margin-bottom: 2px;
|
704
|
-
text-transform: uppercase;
|
705
|
-
font-family: "IBM Plex Mono", monospace;
|
706
|
-
font-weight: 500;
|
707
|
-
font-size: 12px;
|
708
228
|
}
|
709
229
|
|
710
|
-
.
|
230
|
+
.fractal-popup-content {
|
231
|
+
background-color: white;
|
232
|
+
padding:20px;
|
233
|
+
border-radius: 0.5rem;
|
234
|
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
235
|
+
box-sizing: border-box;
|
711
236
|
position: relative;
|
712
237
|
}
|
713
238
|
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
#zipcode {
|
719
|
-
text-transform: capitalize !important;
|
720
|
-
}
|
721
|
-
|
722
|
-
#zipcode {
|
723
|
-
width: 18px;
|
724
|
-
position: absolute;
|
725
|
-
right: 8px;
|
726
|
-
top: 9px;
|
727
|
-
}
|
239
|
+
@media only screen and (min-width: 600px){
|
240
|
+
.fractal-popup-content {
|
241
|
+
width: 500px;
|
728
242
|
|
729
|
-
|
730
|
-
display: none;
|
731
|
-
background-color: rgb(0, 0, 0, 0.4);
|
732
|
-
padding: 5px 8px;
|
733
|
-
border-radius: 6px;
|
734
|
-
position: absolute;
|
735
|
-
right: 26px;
|
736
|
-
top: -9px;
|
737
|
-
font-size: 12.5px;
|
738
|
-
text-transform: capitalize !important;
|
739
|
-
color: #fff;
|
740
|
-
width: 240px;
|
741
|
-
line-height: 16px;
|
243
|
+
}
|
742
244
|
}
|
743
|
-
|
744
|
-
|
745
|
-
|
746
|
-
|
747
|
-
border-top: 7px solid transparent;
|
748
|
-
border-bottom: 7px solid transparent;
|
749
|
-
border-left: 7px solid #000;
|
750
|
-
opacity: 0.4;
|
751
|
-
position: absolute;
|
752
|
-
right: -7px;
|
753
|
-
top: 50%;
|
754
|
-
transform: translateY(-50%);
|
755
|
-
content: "";
|
245
|
+
@media only screen and (max-width: 600px){
|
246
|
+
.fractal-popup-content {
|
247
|
+
width: 350px;
|
248
|
+
}
|
756
249
|
}
|
757
|
-
|
758
|
-
|
759
|
-
|
250
|
+
@media only screen and (max-width: 450px){
|
251
|
+
.fractal-popup-content {
|
252
|
+
width: 300px;
|
253
|
+
}
|
760
254
|
}
|
761
|
-
|
762
|
-
|
763
|
-
|
764
|
-
|
765
|
-
|
766
|
-
height: 30px;
|
767
|
-
line-height: 30px;
|
768
|
-
font-size: 16px;
|
255
|
+
.close-popup {
|
256
|
+
max-height:25px;
|
257
|
+
width:25px;
|
258
|
+
height: 25px;
|
259
|
+
color: #999;
|
769
260
|
position: absolute;
|
770
|
-
top:
|
771
|
-
right:
|
772
|
-
|
261
|
+
top: 2px;
|
262
|
+
right: 4px;
|
263
|
+
z-index: 7;
|
773
264
|
text-align: center;
|
774
|
-
|
775
|
-
|
776
|
-
|
777
|
-
|
778
|
-
color: #777;
|
779
|
-
}
|
780
|
-
|
781
|
-
.amount-placeholder {
|
782
|
-
white-space: nowrap;
|
783
|
-
font-size: 44px;
|
784
|
-
/* height: 35px; */
|
785
|
-
font-weight: 600;
|
786
|
-
line-height: 40px;
|
787
|
-
}
|
788
|
-
|
789
|
-
.amount-placeholder > button {
|
790
|
-
float: right;
|
791
|
-
width: 60px;
|
792
|
-
}
|
793
|
-
|
794
|
-
.amount-placeholder > span {
|
795
|
-
line-height: 34px;
|
796
|
-
}
|
797
|
-
|
798
|
-
.top-amnt {
|
265
|
+
cursor: pointer;
|
266
|
+
border-radius: 0.25rem;
|
267
|
+
font-size: 30px;
|
268
|
+
line-height: 30px;
|
799
269
|
display: flex;
|
800
|
-
margin-bottom: 10px;
|
801
270
|
align-items: center;
|
802
|
-
justify-content:
|
803
|
-
}
|
804
|
-
|
805
|
-
.amtleft {
|
806
|
-
text-align: center;
|
271
|
+
justify-content: center;
|
807
272
|
}
|
808
273
|
|
809
|
-
.
|
810
|
-
color: #
|
811
|
-
margin: 0 -5px;
|
274
|
+
.close-popup:hover {
|
275
|
+
color: #000;
|
812
276
|
}
|
813
277
|
|
814
|
-
.
|
815
|
-
|
816
|
-
margin: 22px 0 0 0;
|
817
|
-
max-width: 85px;
|
818
|
-
line-height: 20px;
|
278
|
+
.fractal-inpt-list {
|
279
|
+
margin-bottom: 15px;
|
819
280
|
}
|
820
281
|
|
821
|
-
.
|
822
|
-
|
282
|
+
.fractal-label {
|
283
|
+
color: #727272;
|
284
|
+
margin-bottom: 3px;
|
285
|
+
font-family: "Inter", sans-serif;
|
286
|
+
font-weight: 500;
|
287
|
+
font-size: 12px;
|
288
|
+
display: block;
|
289
|
+
text-align: left;
|
823
290
|
}
|
824
291
|
|
825
|
-
.
|
826
|
-
|
827
|
-
|
828
|
-
|
829
|
-
|
830
|
-
|
831
|
-
|
292
|
+
.fractal-input {
|
293
|
+
display: block;
|
294
|
+
width: 100%;
|
295
|
+
padding: .320rem .75rem;
|
296
|
+
font-size: 1rem;
|
297
|
+
font-weight: 400;
|
298
|
+
line-height: 1.5;
|
299
|
+
color: #35254D;
|
300
|
+
appearance: none;
|
301
|
+
background-color:#ffffff;
|
302
|
+
background-clip: padding-box;
|
303
|
+
border:1px solid #dee2e6;
|
304
|
+
border-radius: 0.375rem;
|
305
|
+
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
|
306
|
+
}
|
307
|
+
|
308
|
+
.fractal-input:focus {border:#86b7fe 1px solid; outline: none;}
|
309
|
+
|
310
|
+
.fractal-group {
|
311
|
+
position: relative;
|
312
|
+
display: flex;
|
313
|
+
align-items: stretch;
|
314
|
+
width: 100%;
|
832
315
|
}
|
833
316
|
|
834
|
-
.
|
835
|
-
|
836
|
-
|
837
|
-
|
838
|
-
|
317
|
+
.fractal-group-icons {
|
318
|
+
display: flex;
|
319
|
+
align-items: center;
|
320
|
+
padding: 0.375rem 0.75rem;
|
321
|
+
font-size: 1rem;
|
322
|
+
font-weight: 400;
|
323
|
+
line-height: 1.5;
|
324
|
+
color: #212529;
|
325
|
+
text-align: center;
|
326
|
+
white-space: nowrap;
|
327
|
+
background-color: #f8f9fa;
|
328
|
+
border:#dee2e6 1px solid;
|
329
|
+
border-radius: 0.375rem 0 0 0.375rem ;
|
839
330
|
}
|
840
331
|
|
841
|
-
|
842
|
-
|
843
|
-
} */
|
844
|
-
|
845
|
-
.cvc-preview-container {
|
846
|
-
/* overflow: hidden; */
|
847
|
-
position: absolute;
|
848
|
-
z-index: 9999;
|
849
|
-
right: -71px;
|
850
|
-
top: -54px;
|
851
|
-
width: 165px;
|
852
|
-
border-radius: 5px;
|
853
|
-
padding: 5px;
|
854
|
-
background-color: rgb(0, 0, 0, 0.3);
|
855
|
-
display: none;
|
332
|
+
.fractal-group .fractal-input{
|
333
|
+
border-radius:0 0.375rem 0.375rem 0;
|
856
334
|
}
|
857
335
|
|
858
|
-
.cvc-preview-container:before {
|
859
|
-
position: absolute;
|
860
|
-
left: 50%;
|
861
|
-
transform: translate(-50%);
|
862
|
-
bottom: -5px;
|
863
|
-
width: 0;
|
864
|
-
height: 0;
|
865
|
-
border-left: 5px solid transparent;
|
866
|
-
border-right: 5px solid transparent;
|
867
|
-
border-top: 5px solid #000;
|
868
|
-
opacity: 0.3;
|
869
|
-
content: "";
|
870
|
-
}
|
871
336
|
|
872
|
-
.
|
873
|
-
|
337
|
+
.pay-button {
|
338
|
+
outline: 0;
|
339
|
+
height: 46px;
|
340
|
+
font-size: 16px;
|
341
|
+
background: #ddd;
|
342
|
+
border: none;
|
343
|
+
display: block;
|
344
|
+
color: #fff;
|
345
|
+
width: 100%;
|
346
|
+
border-radius: 180px;
|
347
|
+
margin: 10px 0;
|
348
|
+
text-decoration: none;
|
874
349
|
}
|
875
350
|
|
876
|
-
.
|
877
|
-
width: 50%;
|
878
|
-
height: 45px;
|
879
|
-
}
|
351
|
+
.pay-button:hover, .pay-button:focus {background: #333; color: #fff;}
|
880
352
|
|
881
|
-
.
|
882
|
-
|
353
|
+
.fractal-powerd-by {
|
354
|
+
display: flex;
|
355
|
+
font-size: 12px;
|
356
|
+
text-align: center;
|
357
|
+
align-items: center;
|
358
|
+
justify-content: center;
|
359
|
+
margin: 5px 0 20px 0;
|
883
360
|
}
|
884
361
|
|
885
|
-
.cvc-preview-container.two-card div.visa-mc-dis-cvc-preview {
|
886
|
-
float: left;
|
887
|
-
}
|
888
362
|
|
889
|
-
/* .cvc-preview-container div {
|
890
|
-
height: 160px;
|
891
|
-
} */
|
892
363
|
|
893
|
-
.amex-cvc-preview {
|
894
|
-
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOYAAACOCAYAAAAlzXSMAAAAAXNSR0IArs4c6QAAFg9JREFUeNrtnfeTFcXaxw+ZBZacM0oGySBIXECiSBQQAQFhJaclo+SgAsuS2QVBlrCLSl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IbE3gn2A7N+ZbLnE1pcnclpy2WvUch9c1E0ZiwTL0p7UJxcfKBsvNtEVPaiIQibbwx86zlRJQZUWCkB9dO7YOh5oEmYeKRjinv4xYtt88Z/e67SlunTpPmMp25ISxd4SVMtcUcXvbQ08acUd8eXR8xy1So5MoL5p05Icz1x8/Khu8Uptr1GZ2vng886MdxbGar25evWk3m0ZlvlCWuaDHXq35IA3Wg20J8OD5i5nybPWIU2GDImTbyja381OZFUSVM7JyEhmraOwLPp9ZmnrSPNvM+NO41gQpEQML5pg0eLZjSxo5M2CxGt0dgBQ3QaYuRG2+zPE9UFiO6KW0AASK6aAnzym2jnaLn26NdIzry6LTD9dCxBdoGTk8DbxU5Gwk6N8yxa7/S1FbvuF6bbj1dbwq169nXeH9wzHl/IsHSPZmygTufsWKkR+N35gWf8Yoc6thZfgTDXPemanWRuGyt/V1jf5mxs7TzfiJt7O7ljFSjY0Rw0pk2OgPERvjrEkL46xJCCIVJCKEwCaEwCSEUJiEUJiGEwiSEwiSEUJiEUJisBEIoTEIIhUkIhUkIoTAJoTAJIRQmIX9tYR649YAVQUgUAU36sHQDK4OQ6AGa9G0+ffH/WBmERA/QpG/ZZ59nsTIIiR6gSV/Spp2bd164xgohJAqAFqFJ3+wN29su3LFXpF//jRVDyJ8INAgtQpM+/PkVehILGXvtQkwIyWFR+rUHDUKLPvU3c2NqpaSUnf+zYPtese3cj8Yt8AghkQdag+agPWgQWvTpf7OSU1/xn/jvOZtS5Q7GySfOibSLN+RehtiTgRASGaApaAsag9agOWgPGvSZ/makpFTwGxxK2pT6bxgTQnIWaA2ag/Z8wf5mJW9tNGfjjmX+L13w8yApJfUfhJAIAU35tQWNQWsmDf4HqpjHZRJqxUwAAAAASUVORK5CYII=")
|
895
|
-
center center/contain no-repeat;
|
896
|
-
}
|
897
364
|
|
898
|
-
.visa-mc-dis-cvc-preview {
|
899
|
-
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOYAAACOCAMAAAASE4S+AAAA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RAa1MVPbpczsk8vT52SHHZCDUxelXxtzW/x4wPx+6cxn+0A2208PX9pB2aONef7xk3JrBjkth4Jysnf9fX1T0Czzmqx+6pcvcel/pJd5RRLXg1p6d0vWvdHKHJCeG2XljLVb5aZS5r2E3A6uTiUu2Km1klLK3CXxZDK5xd6RNYd3St+MTuaryr94G6y92iuy77X+b9rSi/d8usOEyZIXC5gsR7O5MN9bRexvwoQJEyZMmDBhwoQJEyZMmDBhwoT5vzNLLihLJu8CM2+6XGB2meUuMFeYyEf9ysmIqcsUtSuLmQZjGp8pdxafNxtjamIZ1f12MhOrDQ6uXhRLD4/nVb4/S/nx4XRsSeUY8prGtOI0186eKl8Xae3QSOxojTSUgT8BEvkXyqDHONgAAAAASUVORK5CYII=")
|
900
|
-
center center/contain no-repeat;
|
901
|
-
}
|
902
365
|
|
903
|
-
.submit-button-lock {
|
904
|
-
height: 15px;
|
905
|
-
margin-top: -2px;
|
906
|
-
margin-right: 7px;
|
907
|
-
vertical-align: middle;
|
908
|
-
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAgCAMAAAA7dZg3AAAKQWlDQ1BJQ0MgUHJvZmlsZQAASA2dlndUU9kWh8+9N73QEiIgJfQaegkg0jtIFQRRiUmAUAKGhCZ2RAVGFBEpVmRUwAFHhyJjRRQLg4Ji1wnyEFDGwVFEReXdjGsJ7601896a/cdZ39nnt9fZZ+9917oAUPyCBMJ0WAGANKFYFO7rwVwSE8vE9wIYEAEOWAHA4WZmBEf4RALU/L09mZmoSMaz9u4ugGS72yy/UCZz1v9/kSI3QyQGAApF1TY8fiYX5QKUU7PFGTL/BMr0lSkyhjEyFqEJoqwi48SvbPan5iu7yZiXJuShGlnOGbw0noy7UN6aJeGjjAShXJgl4GejfAdlvVRJmgDl9yjT0/icTAAwFJlfzOcmoWyJMkUUGe6J8gIACJTEObxyDov5OWieAHimZ+SKBIlJYqYR15hp5ejIZvrxs1P5YjErlMNN4Yh4TM/0tAyOMBeAr2+WR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K10zPSe9L8M0ozBDuspp1e5VE6JA0ZFMKHNZZruYjv5M9UiMJJslg1kLs2qy3mdHZZ/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")
|
909
|
-
center center/contain no-repeat;
|
910
|
-
width: 14px;
|
911
|
-
display: inline-block;
|
912
|
-
}
|
913
366
|
|
914
|
-
.align-middle {
|
915
|
-
vertical-align: middle;
|
916
|
-
}
|
917
367
|
|
918
|
-
|
919
|
-
box-shadow: none !important;
|
920
|
-
}
|
368
|
+
/* ................................................................ */
|
921
369
|
|
922
|
-
.
|
370
|
+
.fractal-pay-popup {
|
371
|
+
position: fixed;
|
372
|
+
z-index: 9999;
|
373
|
+
top: 0;
|
374
|
+
right: 0;
|
375
|
+
bottom: 0;
|
376
|
+
left: 0;
|
377
|
+
width: 100%;
|
378
|
+
height: 100%;
|
379
|
+
background-color: rgba(0, 0, 0, 0.5);
|
380
|
+
transition: visibility 0s linear 0.25s, opacity 0.25s 0s, transform 0.25s;
|
923
381
|
display: flex;
|
924
|
-
font-size: 12px;
|
925
|
-
text-align: center;
|
926
|
-
align-items: center;
|
927
382
|
justify-content: center;
|
928
|
-
|
929
|
-
}
|
930
|
-
|
931
|
-
.powered-logo {
|
932
|
-
width: 18px;
|
933
|
-
height: auto;
|
934
|
-
float: right;
|
935
|
-
padding: 2px;
|
936
|
-
background: #000000;
|
937
|
-
border-radius: 4px;
|
938
|
-
margin-left: 5px;
|
939
|
-
}
|
940
|
-
|
941
|
-
.comp-name {
|
942
|
-
display: block;
|
943
|
-
margin-bottom: 8px;
|
944
|
-
}
|
945
|
-
|
946
|
-
.client-logo {
|
947
|
-
max-width: 140px;
|
948
|
-
display: block;
|
949
|
-
margin: auto;
|
950
|
-
padding: 5px;
|
383
|
+
align-items: center;
|
951
384
|
}
|
952
385
|
|
953
|
-
|
954
|
-
|
386
|
+
.fractal-pay-popup-content {
|
387
|
+
background-color: white;
|
388
|
+
padding:0px;
|
389
|
+
border-radius: 0.5rem;
|
390
|
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
391
|
+
box-sizing: border-box;
|
392
|
+
position: relative;
|
393
|
+
height: 100%;
|
394
|
+
max-height:90%;
|
395
|
+
overflow: hidden;
|
955
396
|
}
|
397
|
+
.fractal-pay-popup-content iframe{height: 100% !important; }
|
398
|
+
.fractal-pay-popup-content iframe body{overflow: hidden;}
|
399
|
+
@media only screen and (min-width: 768px){
|
400
|
+
.fractal-pay-popup-content iframe{width: 768px;}
|
401
|
+
.fractal-pay-popup-content {
|
402
|
+
width: 750px;
|
956
403
|
|
957
|
-
|
958
|
-
cursor: pointer;
|
959
|
-
border: 1px solid rgb(252, 252, 252);
|
960
|
-
padding: 10px;
|
961
|
-
border-radius: 5px;
|
962
|
-
background: #ffffff;
|
404
|
+
}
|
963
405
|
}
|
964
|
-
|
965
|
-
|
966
|
-
|
967
|
-
|
968
|
-
transition: all 5s;
|
969
|
-
padding: 5px;
|
970
|
-
transition: max-height 0.5s, overflow 0.5s 0.5s;
|
406
|
+
@media only screen and (max-width: 600px){
|
407
|
+
.fractal-pay-popup-content {
|
408
|
+
width: 350px;
|
409
|
+
}
|
971
410
|
}
|
972
|
-
|
973
|
-
|
974
|
-
|
975
|
-
|
976
|
-
} */
|
977
|
-
|
978
|
-
input[type="number"]::-webkit-outer-spin-button,
|
979
|
-
input[type="number"]::-webkit-inner-spin-button {
|
980
|
-
-webkit-appearance: none;
|
981
|
-
margin: 0;
|
411
|
+
@media only screen and (max-width: 450px){
|
412
|
+
.fractal-pay-popup-content {
|
413
|
+
width: 300px;
|
414
|
+
}
|
982
415
|
}
|
983
416
|
|
984
|
-
|
985
|
-
|
417
|
+
.request-payment-popup-container {
|
418
|
+
padding: 0px !important;
|
419
|
+
border-radius: 12px !important;
|
986
420
|
}
|
987
|
-
|
988
|
-
`);
|
421
|
+
`);
|
989
422
|
};
|
990
|
-
var
|
991
|
-
|
992
|
-
// src/app/components/
|
993
|
-
var
|
994
|
-
|
995
|
-
|
996
|
-
|
997
|
-
|
998
|
-
|
999
|
-
|
1000
|
-
amountzero: "Amount should not be zero",
|
1001
|
-
amountenter: "Please enter an amount",
|
1002
|
-
amountvalid: "Please enter a valid amount",
|
1003
|
-
phoneoremailrequired: "Phone or Email is required",
|
1004
|
-
invalidemail: "Invalid email",
|
1005
|
-
invalidemailformat: "Invalid email format",
|
1006
|
-
onlylettersallowed: "Only letters are allowed",
|
1007
|
-
phonenumberlength: "Phone number should be 10 digits",
|
1008
|
-
phonenumberrequired: "Please enter a phone number",
|
1009
|
-
// phonenumbervalid:'Please enter a valid 10-digit phone number',
|
1010
|
-
phonenumbervalid: "Please enter a valid phone number (max 10 digits)",
|
1011
|
-
phonenumbervalidnumberonly: "Please enter a valid phone number (numbers only)",
|
1012
|
-
orderidenter: "Please enter an order ID",
|
1013
|
-
networkresponseerror: "Network response was not ok",
|
1014
|
-
anerroroccured: "An error occurred. Please try again.",
|
1015
|
-
montherror: "Please write month only 1 to 12",
|
1016
|
-
fieldrequired: "This field is required",
|
1017
|
-
fractalpayclientidrequired: "Fractalpay client key is missing or empty."
|
423
|
+
var CustomModal2styles_default = CustomModal2styles;
|
424
|
+
|
425
|
+
// src/app/components/CustomModal/CustomModal2.tsx
|
426
|
+
var CustomModal2 = ({
|
427
|
+
open,
|
428
|
+
onClose,
|
429
|
+
children
|
430
|
+
}) => {
|
431
|
+
if (!open) return null;
|
432
|
+
return /* @__PURE__ */ React4.createElement(React4.Fragment, null, /* @__PURE__ */ React4.createElement(CustomModal2styles_default, null), /* @__PURE__ */ React4.createElement("div", { className: "fractal-popup" }, /* @__PURE__ */ React4.createElement("div", { className: "fractal-popup-content request-payment-popup-container" }, children)));
|
1018
433
|
};
|
1019
|
-
|
1020
|
-
// src/app/components/Bootstrapclient.ts
|
1021
|
-
import { useEffect } from "react";
|
1022
|
-
function BootstrapClient() {
|
1023
|
-
useEffect(() => {
|
1024
|
-
__require("bootstrap/dist/js/bootstrap.bundle.min.js");
|
1025
|
-
}, []);
|
1026
|
-
return null;
|
1027
|
-
}
|
1028
|
-
var Bootstrapclient_default = BootstrapClient;
|
434
|
+
var CustomModal2_default = CustomModal2;
|
1029
435
|
|
1030
436
|
// src/app/components/RequestPayment/RequestPayment.tsx
|
437
|
+
import axios from "axios";
|
438
|
+
import { PatternFormat } from "react-number-format";
|
439
|
+
import styled from "styled-components";
|
440
|
+
var Label = styled.label`
|
441
|
+
color: #727272;
|
442
|
+
font-family: Inter;
|
443
|
+
font-size: 12px;
|
444
|
+
font-style: normal;
|
445
|
+
font-weight: 500;
|
446
|
+
margin-bottom: 6px !important;
|
447
|
+
text-align: start !important;
|
448
|
+
width: 100% !important;
|
449
|
+
margin-bottom: 6px !important;
|
450
|
+
text-transform: uppercase;
|
451
|
+
`;
|
1031
452
|
function RequestPayment(props) {
|
1032
453
|
const fractalpayClientKey = props.fractalpayClientKey;
|
1033
454
|
const [show, setShow] = useState(false);
|
1034
455
|
const [loading, setLoading] = useState(false);
|
1035
456
|
const [errors, setErrors] = useState({});
|
457
|
+
const [phone, setPhone] = useState(null);
|
1036
458
|
const [requestDetails, setRequestDetails] = useState({
|
1037
459
|
email: "",
|
1038
|
-
amount: "",
|
1039
460
|
phone_number: "",
|
1040
461
|
order_id: "",
|
1041
462
|
name: "",
|
1042
463
|
fractalpayPublicKey: fractalpayClientKey
|
1043
464
|
});
|
465
|
+
const [amount, setAmount] = useState("");
|
1044
466
|
const [showConfirmationModal, setShowConfirmationModal] = useState(false);
|
467
|
+
const [apiResponse, setApiResponse] = useState(null);
|
1045
468
|
const phoneNumberRegex = (value) => /^\(?\d{3}\)?[-.\s]?\d{3}[-.\s]?\d{4}$/.test(value);
|
1046
469
|
const amoutRegex = /[+-]?([0-9]*[.])?[0-9]+/;
|
1047
|
-
const positiveAmountRegex = /^[+]?\d+(\.\d+)?$/;
|
1048
470
|
const isValidEmail = (value) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(value);
|
1049
471
|
const isAlpha = (value) => /^[A-Za-z\s]*$/.test(value);
|
1050
472
|
const handleClose = () => {
|
1051
473
|
setShow(false);
|
1052
|
-
emptyFields();
|
1053
474
|
setErrors({});
|
1054
475
|
};
|
1055
476
|
const handleShow = () => setShow(true);
|
1056
|
-
const handleCloseConfirmationModal = () =>
|
1057
|
-
|
477
|
+
const handleCloseConfirmationModal = () => {
|
478
|
+
console.log(apiResponse, "apiresponse");
|
479
|
+
handleSubmit(apiResponse);
|
480
|
+
setShowConfirmationModal(false);
|
481
|
+
};
|
482
|
+
function emptyFields() {
|
1058
483
|
setRequestDetails({
|
1059
484
|
email: "",
|
1060
|
-
amount: "",
|
1061
485
|
phone_number: "",
|
1062
486
|
order_id: "",
|
1063
487
|
name: "",
|
1064
488
|
fractalpayPublicKey: fractalpayClientKey
|
1065
489
|
});
|
1066
|
-
|
1067
|
-
|
490
|
+
setAmount("");
|
491
|
+
}
|
492
|
+
function handleSubmit(event) {
|
1068
493
|
let message = {
|
1069
494
|
type: "preview.compiledcheck",
|
1070
495
|
other: __spreadProps(__spreadValues({}, event), { status: true })
|
1071
496
|
};
|
1072
|
-
console.log("message: ", message);
|
1073
497
|
window.parent.postMessage(message, "*");
|
1074
|
-
}
|
498
|
+
}
|
1075
499
|
const sendRequestPayment = async () => {
|
500
|
+
if (Object.keys(errors).length > 0) {
|
501
|
+
return;
|
502
|
+
}
|
1076
503
|
setErrors({});
|
1077
|
-
if (!(requestDetails == null ? void 0 : requestDetails.email) &&
|
504
|
+
if (!(requestDetails == null ? void 0 : requestDetails.email) && phone && !phoneNumberRegex(phone)) {
|
1078
505
|
setErrors((prevErrors) => __spreadProps(__spreadValues({}, prevErrors), {
|
1079
|
-
|
506
|
+
phone: ErrorText.phonenumbervalid
|
1080
507
|
}));
|
1081
508
|
return;
|
1082
509
|
}
|
@@ -1087,39 +514,28 @@ function RequestPayment(props) {
|
|
1087
514
|
setLoading(true);
|
1088
515
|
const formData = {
|
1089
516
|
fractalpayPublicKey: fractalpayClientKey,
|
1090
|
-
amount
|
1091
|
-
phone_number:
|
1092
|
-
order_id: requestDetails.order_id,
|
1093
|
-
action: "request",
|
1094
|
-
name: requestDetails.name,
|
1095
|
-
email: requestDetails.email
|
1096
|
-
|
1097
|
-
|
1098
|
-
|
1099
|
-
|
1100
|
-
"Content-Type": "application/json"
|
1101
|
-
},
|
1102
|
-
body: JSON.stringify(formData)
|
1103
|
-
});
|
1104
|
-
if (!response.ok) {
|
1105
|
-
throw new Error("Failed to create widget order");
|
1106
|
-
}
|
1107
|
-
const data = await response.json();
|
1108
|
-
if (data) {
|
517
|
+
amount,
|
518
|
+
phone_number: phone,
|
519
|
+
order_id: requestDetails.order_id,
|
520
|
+
action: "request",
|
521
|
+
name: requestDetails.name,
|
522
|
+
email: requestDetails.email,
|
523
|
+
customer_id: (props == null ? void 0 : props.customerId) ? props == null ? void 0 : props.customerId : ""
|
524
|
+
};
|
525
|
+
let response = await axios.post(`${baseUrl}create-widget-order`, formData);
|
526
|
+
if ((response == null ? void 0 : response.status) === 200) {
|
1109
527
|
setShowConfirmationModal(true);
|
1110
528
|
setShow(false);
|
1111
529
|
emptyFields();
|
1112
|
-
|
530
|
+
setApiResponse(response == null ? void 0 : response.data);
|
1113
531
|
}
|
1114
|
-
console.log(data);
|
1115
532
|
setLoading(false);
|
1116
533
|
} catch (error) {
|
1117
534
|
console.log(error);
|
1118
535
|
setLoading(false);
|
1119
536
|
}
|
1120
537
|
};
|
1121
|
-
|
1122
|
-
const PositiveAmount = (amount) => positiveAmountRegex.test(amount);
|
538
|
+
let favicon_logo = baseUrl + "images/logo-img.png";
|
1123
539
|
const handleChange = (e) => {
|
1124
540
|
const { value } = e.target;
|
1125
541
|
const token = e.target.dataset.token;
|
@@ -1130,218 +546,392 @@ function RequestPayment(props) {
|
|
1130
546
|
}));
|
1131
547
|
return;
|
1132
548
|
}
|
1133
|
-
|
1134
|
-
|
1135
|
-
|
1136
|
-
|
1137
|
-
return;
|
1138
|
-
}
|
1139
|
-
if (token === "email" && !isValidEmail(value)) {
|
1140
|
-
setErrors((prevErrors) => __spreadProps(__spreadValues({}, prevErrors), {
|
1141
|
-
email: ErrorText.invalidemailformat
|
1142
|
-
}));
|
1143
|
-
return;
|
1144
|
-
}
|
1145
|
-
if (token === "amount" && !value) {
|
1146
|
-
setErrors((prevErrors) => __spreadProps(__spreadValues({}, prevErrors), {
|
1147
|
-
amount: ErrorText.amountrequired
|
1148
|
-
}));
|
1149
|
-
return;
|
1150
|
-
}
|
1151
|
-
if (token === "amount" && !PositiveAmount(value)) {
|
1152
|
-
setErrors((prevErrors) => __spreadProps(__spreadValues({}, prevErrors), {
|
1153
|
-
amount: ErrorText.amountpositive
|
1154
|
-
}));
|
1155
|
-
return;
|
1156
|
-
}
|
1157
|
-
if (token === "amount" && parseFloat(value) === 0) {
|
1158
|
-
setErrors((prevErrors) => __spreadProps(__spreadValues({}, prevErrors), {
|
1159
|
-
amount: ErrorText.amountzero
|
1160
|
-
}));
|
1161
|
-
return;
|
549
|
+
let errorobj = errors;
|
550
|
+
if (token === "email" && !phone) {
|
551
|
+
delete errorobj.phone;
|
552
|
+
setErrors(errorobj);
|
1162
553
|
}
|
1163
554
|
if (value) {
|
1164
|
-
|
555
|
+
delete errorobj[token];
|
556
|
+
setErrors(errorobj);
|
1165
557
|
}
|
1166
|
-
|
1167
|
-
|
1168
|
-
|
1169
|
-
if (value && !value.includes(".")) {
|
1170
|
-
setRequestDetails((prev) => __spreadProps(__spreadValues({}, prev), {
|
1171
|
-
amount: `${value}.00`
|
1172
|
-
}));
|
558
|
+
if (token === "email" && !value) {
|
559
|
+
delete errorobj[token];
|
560
|
+
setErrors(errorobj);
|
1173
561
|
}
|
1174
562
|
};
|
563
|
+
const handleAmountChange = (data) => {
|
564
|
+
const { value } = data;
|
565
|
+
if (Number(value) > 0) {
|
566
|
+
let errorobj = errors;
|
567
|
+
delete errorobj.amount;
|
568
|
+
setErrors(errorobj);
|
569
|
+
}
|
570
|
+
setAmount(value);
|
571
|
+
};
|
1175
572
|
const validateForm = () => {
|
1176
573
|
let newErrors = {};
|
1177
|
-
if (!
|
1178
|
-
if (!requestDetails.
|
1179
|
-
if (!
|
1180
|
-
if (!
|
1181
|
-
if (!
|
574
|
+
if (!amount) newErrors.amount = ErrorText.amountrequired;
|
575
|
+
if (requestDetails.email && !isValidEmail(requestDetails == null ? void 0 : requestDetails.email)) newErrors.email = ErrorText.invalidemail;
|
576
|
+
if (!phone && !(requestDetails == null ? void 0 : requestDetails.email)) newErrors.phone = ErrorText.phoneoremailrequired;
|
577
|
+
if (!phone && !(requestDetails == null ? void 0 : requestDetails.email)) newErrors.email = ErrorText.phoneoremailrequired;
|
578
|
+
if (!phone && requestDetails.email && !isValidEmail(requestDetails == null ? void 0 : requestDetails.email)) newErrors.email = ErrorText.invalidemail;
|
579
|
+
if (props.from === "merchant" && !requestDetails.order_id) newErrors.order_id = ErrorText.orderidrequired;
|
1182
580
|
setErrors(newErrors);
|
1183
581
|
return Object.keys(newErrors).length === 0;
|
1184
582
|
};
|
1185
|
-
|
1186
|
-
if (props
|
1187
|
-
setRequestDetails((prev) => __spreadProps(__spreadValues({}, prev), {
|
583
|
+
useEffect(() => {
|
584
|
+
if (props) {
|
585
|
+
setRequestDetails((prev) => __spreadProps(__spreadValues({}, prev), {
|
586
|
+
order_id: props.orderID ? props.orderID : "",
|
587
|
+
name: (props == null ? void 0 : props.name) ? props == null ? void 0 : props.name : "",
|
588
|
+
email: (props == null ? void 0 : props.email) ? props == null ? void 0 : props.email : ""
|
589
|
+
}));
|
590
|
+
setAmount(props.amount ? props.amount : "");
|
591
|
+
setPhone(props.phone ? `${props.phone}` : null);
|
592
|
+
}
|
593
|
+
}, [props]);
|
594
|
+
const handlePhoneChange = (e) => {
|
595
|
+
let value = e == null ? void 0 : e.value;
|
596
|
+
if (value && (value == null ? void 0 : value.length) > 0 && (value == null ? void 0 : value.length) !== 10) {
|
597
|
+
setErrors((prevErrors) => __spreadProps(__spreadValues({}, prevErrors), {
|
598
|
+
phone: ErrorText.phonenumberlength
|
599
|
+
}));
|
600
|
+
setPhone(value);
|
601
|
+
return;
|
602
|
+
} else {
|
603
|
+
setPhone(value);
|
1188
604
|
}
|
1189
|
-
|
1190
|
-
|
1191
|
-
if (
|
1192
|
-
|
605
|
+
let errorobj = errors;
|
606
|
+
delete errorobj.phone;
|
607
|
+
if (value && !(requestDetails == null ? void 0 : requestDetails.email)) {
|
608
|
+
delete errorobj.email;
|
1193
609
|
}
|
610
|
+
setErrors(errorobj);
|
1194
611
|
};
|
1195
|
-
|
1196
|
-
|
612
|
+
function formatAmount(amount2) {
|
613
|
+
return new Intl.NumberFormat("en-US", {
|
614
|
+
style: "currency",
|
615
|
+
currency: "USD",
|
616
|
+
minimumFractionDigits: 2,
|
617
|
+
maximumFractionDigits: 2
|
618
|
+
}).format(Number(amount2));
|
619
|
+
}
|
620
|
+
return /* @__PURE__ */ React5.createElement(React5.Fragment, null, /* @__PURE__ */ React5.createElement(Loader_default, { loading }), /* @__PURE__ */ React5.createElement(React5.Fragment, null, /* @__PURE__ */ React5.createElement("button", { className: "paymentBtn", onClick: handleShow }, "Request Payment"), /* @__PURE__ */ React5.createElement(
|
621
|
+
CustomModal2_default,
|
1197
622
|
{
|
1198
|
-
show,
|
1199
|
-
|
1200
|
-
size: "lg",
|
1201
|
-
backdrop: "static",
|
1202
|
-
keyboard: false
|
623
|
+
open: show,
|
624
|
+
onClose: () => setShow(false)
|
1203
625
|
},
|
1204
|
-
/* @__PURE__ */
|
1205
|
-
/* @__PURE__ */
|
626
|
+
/* @__PURE__ */ React5.createElement("div", { className: "request-payment-amount-detail" }, /* @__PURE__ */ React5.createElement("p", { className: "request-payment-merchantname" }, "Pay ", props == null ? void 0 : props.webname), /* @__PURE__ */ React5.createElement("p", { className: "request-payment-amount" }, formatAmount(props == null ? void 0 : props.amount)), (props == null ? void 0 : props.from) === "merchant" && /* @__PURE__ */ React5.createElement("p", { className: "request-payment-orderid" }, requestDetails == null ? void 0 : requestDetails.order_id), /* @__PURE__ */ React5.createElement("span", { className: "request-payment-close-popup", onClick: handleClose }, /* @__PURE__ */ React5.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, /* @__PURE__ */ React5.createElement("g", { "clip-path": "url(#clip0_12425_52336)" }, /* @__PURE__ */ React5.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__ */ React5.createElement("defs", null, /* @__PURE__ */ React5.createElement("clipPath", { id: "clip0_12425_52336" }, /* @__PURE__ */ React5.createElement("rect", { width: "16", height: "16", fill: "white" })))))),
|
627
|
+
/* @__PURE__ */ React5.createElement("form", { className: "request-payment-input-form" }, /* @__PURE__ */ React5.createElement("div", { className: "request-payment-list-div" }, /* @__PURE__ */ React5.createElement(Label, { htmlFor: "exampleFormControlInput2", className: "request-payment-input-label" }, "FULL NAME"), /* @__PURE__ */ React5.createElement(
|
1206
628
|
"input",
|
1207
629
|
{
|
1208
|
-
className: "
|
630
|
+
className: "request-payment-input-box",
|
1209
631
|
type: "text",
|
1210
632
|
placeholder: "Full Name",
|
1211
633
|
"data-token": "name",
|
1212
|
-
onChange: handleChange
|
1213
|
-
}
|
1214
|
-
), errors.name && /* @__PURE__ */ React4.createElement("small", { className: "text-danger" }, errors.name)), /* @__PURE__ */ React4.createElement("div", { className: "mb-3" }, /* @__PURE__ */ React4.createElement("label", { htmlFor: "requestPhoneNumber", className: "form-label" }, "Phone Number"), /* @__PURE__ */ React4.createElement(
|
1215
|
-
"input",
|
1216
|
-
{
|
1217
|
-
maxLength: 10,
|
1218
|
-
className: "form-control",
|
1219
|
-
onChange: (e) => {
|
1220
|
-
handleChange(e);
|
1221
|
-
},
|
1222
|
-
placeholder: "Phone Number",
|
1223
|
-
type: "text",
|
1224
|
-
"data-token": "phone_number"
|
1225
|
-
}
|
1226
|
-
), errors.phone_number && /* @__PURE__ */ React4.createElement("small", { className: "text-danger" }, errors.phone_number))), /* @__PURE__ */ React4.createElement("div", { className: "mb-3" }, /* @__PURE__ */ React4.createElement("label", { htmlFor: "exampleFormControlInput2", className: "form-label" }, "EMAIL"), /* @__PURE__ */ React4.createElement(
|
1227
|
-
"input",
|
1228
|
-
{
|
1229
|
-
className: "form-control",
|
1230
|
-
type: "text",
|
1231
|
-
placeholder: "Email",
|
1232
634
|
onChange: handleChange,
|
1233
|
-
|
635
|
+
value: requestDetails == null ? void 0 : requestDetails.name
|
1234
636
|
}
|
1235
|
-
), errors.
|
1236
|
-
|
637
|
+
), errors.name && /* @__PURE__ */ React5.createElement("small", { className: "request-payment-error-msg" }, errors.name)), /* @__PURE__ */ React5.createElement("div", { className: "request-payment-list-div" }, /* @__PURE__ */ React5.createElement(Label, { htmlFor: "requestPhoneNumber", className: "request-payment-input-label" }, "Phone Number"), /* @__PURE__ */ React5.createElement(
|
638
|
+
PatternFormat,
|
1237
639
|
{
|
1238
|
-
|
1239
|
-
placeholder: "
|
1240
|
-
|
1241
|
-
|
1242
|
-
|
1243
|
-
|
1244
|
-
|
1245
|
-
onBlur: handleAmountBlur,
|
1246
|
-
onKeyDown: handleKeyDown,
|
1247
|
-
onFocus: (e) => e.target.addEventListener("wheel", function(e2) {
|
1248
|
-
e2.preventDefault();
|
1249
|
-
}, { passive: false })
|
640
|
+
className: "request-payment-input-box",
|
641
|
+
placeholder: "Mobile number",
|
642
|
+
format: "+1 (###) ###-####",
|
643
|
+
value: phone,
|
644
|
+
onValueChange: (e) => {
|
645
|
+
handlePhoneChange(e);
|
646
|
+
}
|
1250
647
|
}
|
1251
|
-
)
|
648
|
+
), errors.phone && /* @__PURE__ */ React5.createElement("small", { className: "request-payment-error-msg" }, errors.phone)), /* @__PURE__ */ React5.createElement("div", { className: "request-payment-list-div" }, /* @__PURE__ */ React5.createElement(Label, { htmlFor: "exampleFormControlInput2", className: "request-payment-input-label" }, "EMAIL"), /* @__PURE__ */ React5.createElement(
|
1252
649
|
"input",
|
1253
650
|
{
|
1254
|
-
className: "
|
651
|
+
className: "request-payment-input-box",
|
1255
652
|
type: "text",
|
1256
|
-
placeholder: "
|
653
|
+
placeholder: "Email",
|
1257
654
|
onChange: handleChange,
|
1258
|
-
"data-token": "
|
655
|
+
"data-token": "email",
|
656
|
+
value: requestDetails == null ? void 0 : requestDetails.email
|
1259
657
|
}
|
1260
|
-
), errors.
|
1261
|
-
|
658
|
+
), errors.email && /* @__PURE__ */ React5.createElement("small", { className: "request-payment-error-msg" }, errors.email)), /* @__PURE__ */ React5.createElement(
|
659
|
+
"button",
|
1262
660
|
{
|
1263
661
|
type: "button",
|
1264
|
-
className: "
|
662
|
+
className: "request-payment-submit-button",
|
1265
663
|
onClick: sendRequestPayment,
|
1266
664
|
disabled: loading
|
1267
665
|
},
|
1268
666
|
loading ? "Loading..." : "Send Request"
|
1269
|
-
)
|
1270
|
-
|
1271
|
-
|
1272
|
-
xmlns: "http://www.w3.org/2000/svg",
|
1273
|
-
width: "20",
|
1274
|
-
height: "20",
|
1275
|
-
viewBox: "0 0 26 26"
|
1276
|
-
},
|
1277
|
-
/* @__PURE__ */ React4.createElement(
|
1278
|
-
"path",
|
1279
|
-
{
|
1280
|
-
fill: "currentColor",
|
1281
|
-
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"
|
1282
|
-
}
|
1283
|
-
)
|
1284
|
-
), "Secure payments powered by Fractal", /* @__PURE__ */ React4.createElement(
|
1285
|
-
"img",
|
1286
|
-
{
|
1287
|
-
src: "https://ui.fractalpay.com/favicon.ico",
|
1288
|
-
alt: "Fractal logo",
|
1289
|
-
className: "powered-logo"
|
1290
|
-
}
|
1291
|
-
)))
|
1292
|
-
), /* @__PURE__ */ React4.createElement(
|
1293
|
-
Modal,
|
667
|
+
), /* @__PURE__ */ React5.createElement("div", { className: "request-payment-fractal-powerd-by" }, /* @__PURE__ */ React5.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "17", height: "16", viewBox: "0 0 17 16", fill: "none" }, /* @__PURE__ */ React5.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__ */ React5.createElement("span", null, "Fractal"), /* @__PURE__ */ React5.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "18", height: "18", viewBox: "0 0 18 18", fill: "none" }, /* @__PURE__ */ React5.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__ */ React5.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__ */ React5.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__ */ React5.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__ */ React5.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__ */ React5.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__ */ React5.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__ */ React5.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__ */ React5.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__ */ React5.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__ */ React5.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__ */ React5.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__ */ React5.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__ */ React5.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__ */ React5.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__ */ React5.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__ */ React5.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__ */ React5.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" }))))
|
668
|
+
), /* @__PURE__ */ React5.createElement(
|
669
|
+
CustomModal2_default,
|
1294
670
|
{
|
1295
|
-
|
1296
|
-
|
1297
|
-
onHide: handleCloseConfirmationModal
|
671
|
+
open: showConfirmationModal,
|
672
|
+
onClose: handleCloseConfirmationModal
|
1298
673
|
},
|
1299
|
-
/* @__PURE__ */
|
1300
|
-
/* @__PURE__ */ React4.createElement(Modal.Body, null, /* @__PURE__ */ React4.createElement(
|
1301
|
-
"svg",
|
1302
|
-
{
|
1303
|
-
width: "60",
|
1304
|
-
height: "60",
|
1305
|
-
viewBox: "0 0 60 60",
|
1306
|
-
fill: "none",
|
1307
|
-
xmlns: "http://www.w3.org/2000/svg"
|
1308
|
-
},
|
1309
|
-
/* @__PURE__ */ React4.createElement(
|
1310
|
-
"rect",
|
1311
|
-
{
|
1312
|
-
x: "0.5",
|
1313
|
-
y: "0.5",
|
1314
|
-
width: "59",
|
1315
|
-
height: "59",
|
1316
|
-
rx: "29.5",
|
1317
|
-
stroke: "#31B379"
|
1318
|
-
}
|
1319
|
-
),
|
1320
|
-
/* @__PURE__ */ React4.createElement("g", { clipPath: "url(#clip0_2659_5018)" }, /* @__PURE__ */ React4.createElement(
|
1321
|
-
"path",
|
1322
|
-
{
|
1323
|
-
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",
|
1324
|
-
fill: "#31B379"
|
1325
|
-
}
|
1326
|
-
)),
|
1327
|
-
/* @__PURE__ */ React4.createElement("defs", null, /* @__PURE__ */ React4.createElement("clipPath", { id: "clip0_2659_5018" }, /* @__PURE__ */ React4.createElement(
|
1328
|
-
"rect",
|
1329
|
-
{
|
1330
|
-
width: "22",
|
1331
|
-
height: "22",
|
1332
|
-
fill: "white",
|
1333
|
-
transform: "translate(19.5 19.0039)"
|
1334
|
-
}
|
1335
|
-
)))
|
1336
|
-
), /* @__PURE__ */ React4.createElement("h2", null, "Payment link has been ", /* @__PURE__ */ React4.createElement("br", null), " sent successfully"))
|
674
|
+
/* @__PURE__ */ React5.createElement("div", { className: "fractal-popup-content", style: { padding: "0px" } }, /* @__PURE__ */ React5.createElement("div", { className: "request-payment-success-container" }, /* @__PURE__ */ React5.createElement("span", { className: "request-payment-close-popup", onClick: handleCloseConfirmationModal }, /* @__PURE__ */ React5.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, /* @__PURE__ */ React5.createElement("g", { "clip-path": "url(#clip0_12425_52336)" }, /* @__PURE__ */ React5.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__ */ React5.createElement("defs", null, /* @__PURE__ */ React5.createElement("clipPath", { id: "clip0_12425_52336" }, /* @__PURE__ */ React5.createElement("rect", { width: "16", height: "16", fill: "white" }))))), /* @__PURE__ */ React5.createElement("div", { className: "request-payment-success-tick-div" }, /* @__PURE__ */ React5.createElement("div", { className: "request-payment-success-tick" }, /* @__PURE__ */ React5.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, /* @__PURE__ */ React5.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__ */ React5.createElement("h6", { className: "request-payment-success-text" }, "The request ", /* @__PURE__ */ React5.createElement("br", null), "was sent"), /* @__PURE__ */ React5.createElement("h6", { className: "request-payment-success-subtext" }, "Please wait for the customer to pay"), /* @__PURE__ */ React5.createElement("div", { className: "request-payment-success-btn-div" }, /* @__PURE__ */ React5.createElement("button", { onClick: handleCloseConfirmationModal, className: "request-payment-success-btn2" }, "Close"))))
|
1337
675
|
)));
|
1338
676
|
}
|
1339
677
|
|
1340
678
|
// src/app/components/RequestPayment/RequestPaymentAllInput.tsx
|
1341
|
-
import
|
1342
|
-
import { Modal
|
679
|
+
import React7, { useState as useState2 } from "react";
|
680
|
+
import { Modal } from "react-bootstrap";
|
1343
681
|
import { toast, ToastContainer } from "react-toastify";
|
1344
682
|
import "react-toastify/dist/ReactToastify.css";
|
683
|
+
|
684
|
+
// src/app/components/RequestPayment/RequestPaymentstyles.tsx
|
685
|
+
import React6 from "react";
|
686
|
+
var RequestPaymentstyles = (props) => {
|
687
|
+
return /* @__PURE__ */ React6.createElement("style", null, `
|
688
|
+
.paymentBtn {
|
689
|
+
background-color: black;
|
690
|
+
border: none;
|
691
|
+
color: white;
|
692
|
+
padding: 15px 32px;
|
693
|
+
text-align: center;
|
694
|
+
text-decoration: none;
|
695
|
+
display: inline-block;
|
696
|
+
font-size: 16px;
|
697
|
+
margin: 4px 2px;
|
698
|
+
cursor: pointer;
|
699
|
+
border-radius: 180px;
|
700
|
+
/* width: auto; */
|
701
|
+
}
|
702
|
+
/*****************************************REDESIGNING STYLES **************************************/
|
703
|
+
|
704
|
+
.request-payment-amount {
|
705
|
+
color: #161616;
|
706
|
+
text-align: center;
|
707
|
+
font-family: Inter;
|
708
|
+
font-size: 42px;
|
709
|
+
font-style: normal;
|
710
|
+
font-weight: 600;
|
711
|
+
text-transform: uppercase;
|
712
|
+
margin: 8px 0px !important;
|
713
|
+
}
|
714
|
+
|
715
|
+
.request-payment-orderid {
|
716
|
+
color: #727272;
|
717
|
+
text-align: center;
|
718
|
+
font-family: Inter;
|
719
|
+
font-size: 14px;
|
720
|
+
font-style: normal;
|
721
|
+
font-weight: 500;
|
722
|
+
margin: 0px;
|
723
|
+
}
|
724
|
+
|
725
|
+
.request-payment-pre-auth-merchantname {
|
726
|
+
color: #727272;
|
727
|
+
text-align: center;
|
728
|
+
font-family: Inter;
|
729
|
+
font-size: 14px;
|
730
|
+
font-style: normal;
|
731
|
+
font-weight: 500;
|
732
|
+
margin-top: 10px !important;
|
733
|
+
margin-bottom: 0px !important;
|
734
|
+
}
|
735
|
+
|
736
|
+
.request-payment-merchantname {
|
737
|
+
color: #727272;
|
738
|
+
text-align: center;
|
739
|
+
font-family: Inter;
|
740
|
+
font-size: 14px;
|
741
|
+
font-style: normal;
|
742
|
+
font-weight: 500;
|
743
|
+
margin-top: 20px !important;
|
744
|
+
margin-bottom: 0px !important;
|
745
|
+
}
|
746
|
+
|
747
|
+
.request-payment-close-popup {
|
748
|
+
position: absolute;
|
749
|
+
right: 20px;
|
750
|
+
top: 20px;
|
751
|
+
cursor: pointer;
|
752
|
+
}
|
753
|
+
|
754
|
+
.request-payment-amount-detail {
|
755
|
+
padding: 32px 0px;
|
756
|
+
border-bottom: 1px solid #E0DFE2;
|
757
|
+
}
|
758
|
+
|
759
|
+
.request-payment-popup-container {
|
760
|
+
padding: 0px !important;
|
761
|
+
border-radius: 12px !important;
|
762
|
+
}
|
763
|
+
|
764
|
+
.request-payment-input-form {
|
765
|
+
padding: 24px 48px 32px 48px;
|
766
|
+
}
|
767
|
+
|
768
|
+
.request-payment-input-label {
|
769
|
+
color: #727272;
|
770
|
+
font-family: Inter;
|
771
|
+
font-size: 12px;
|
772
|
+
font-style: normal;
|
773
|
+
font-weight: 500;
|
774
|
+
margin-bottom: 6px !important;
|
775
|
+
text-align: start !important;
|
776
|
+
width: 100% !important;
|
777
|
+
margin-bottom: 6px !important;
|
778
|
+
text-transform: uppercase;
|
779
|
+
}
|
780
|
+
|
781
|
+
.request-payment-input-box {
|
782
|
+
border-radius: 8px;
|
783
|
+
border: 1px solid #E0DFE2;
|
784
|
+
padding: 11px;
|
785
|
+
display: block;
|
786
|
+
width: 100%;
|
787
|
+
color: #161616;
|
788
|
+
margin-top: 6px !important;
|
789
|
+
font-family: Inter;
|
790
|
+
font-size: 14px;
|
791
|
+
font-style: normal;
|
792
|
+
font-weight: 500;
|
793
|
+
}
|
794
|
+
|
795
|
+
.request-payment-list-div {
|
796
|
+
margin-bottom: 12px;
|
797
|
+
}
|
798
|
+
|
799
|
+
.request-payment-submit-button {
|
800
|
+
border-radius: 80px;
|
801
|
+
background: #161616;
|
802
|
+
height: 48px;
|
803
|
+
padding: 12px 24px;
|
804
|
+
margin-top: 20px;
|
805
|
+
color: #fff;
|
806
|
+
width: 100% !important;
|
807
|
+
border: none !important;
|
808
|
+
font-family: Inter;
|
809
|
+
font-size: 16px;
|
810
|
+
font-style: normal;
|
811
|
+
font-weight: 500;
|
812
|
+
cursor: pointer;
|
813
|
+
}
|
814
|
+
|
815
|
+
.request-payment-submit-button:disabled {
|
816
|
+
cursor: not-allowed;
|
817
|
+
}
|
818
|
+
|
819
|
+
.request-payment-fractal-powerd-by {
|
820
|
+
color: #727272;
|
821
|
+
font-family: Inter;
|
822
|
+
font-size: 14px;
|
823
|
+
font-style: normal;
|
824
|
+
font-weight: 500;
|
825
|
+
margin-top: 16px;
|
826
|
+
display: flex;
|
827
|
+
text-align: center;
|
828
|
+
align-items: center;
|
829
|
+
justify-content: center;
|
830
|
+
gap: 6px;
|
831
|
+
}
|
832
|
+
|
833
|
+
.request-payment-fractal-powerd-by span {
|
834
|
+
color: #61C699;
|
835
|
+
}
|
836
|
+
|
837
|
+
.request-payment-success-container {
|
838
|
+
display: flex;
|
839
|
+
padding: 120px 48px 32px 48px;
|
840
|
+
flex-direction: column;
|
841
|
+
justify-content: center;
|
842
|
+
align-items: center;
|
843
|
+
}
|
844
|
+
|
845
|
+
.request-payment-success-tick {
|
846
|
+
border-radius: 1000px;
|
847
|
+
background: rgba(97, 198, 153, 0.14);
|
848
|
+
display: flex;
|
849
|
+
width: 60px;
|
850
|
+
height: 60px;
|
851
|
+
justify-content: center;
|
852
|
+
align-items: center;
|
853
|
+
}
|
854
|
+
|
855
|
+
.request-payment-success-text {
|
856
|
+
color: #161616;
|
857
|
+
text-align: center;
|
858
|
+
font-family: Inter;
|
859
|
+
font-size: 32px;
|
860
|
+
font-style: normal;
|
861
|
+
font-weight: 500;
|
862
|
+
line-height: 36px;
|
863
|
+
/* 112.5% */
|
864
|
+
letter-spacing: -0.64px;
|
865
|
+
margin-top: 20px;
|
866
|
+
margin-bottom: 5px !important;
|
867
|
+
}
|
868
|
+
|
869
|
+
.request-payment-success-subtext {
|
870
|
+
color: #727272;
|
871
|
+
text-align: center;
|
872
|
+
font-family: Inter;
|
873
|
+
font-size: 14px;
|
874
|
+
font-style: normal;
|
875
|
+
font-weight: 500;
|
876
|
+
line-height: 18px;
|
877
|
+
letter-spacing: -0.28px;
|
878
|
+
margin-bottom: 6rem !important;
|
879
|
+
margin-top: 8px !important;
|
880
|
+
}
|
881
|
+
|
882
|
+
.request-payment-success-btn-div {
|
883
|
+
display: flex;
|
884
|
+
align-items: flex-start;
|
885
|
+
justify-content: center;
|
886
|
+
gap: 8px;
|
887
|
+
}
|
888
|
+
|
889
|
+
.request-payment-success-tick-div {
|
890
|
+
display: flex;
|
891
|
+
justify-content: center;
|
892
|
+
align-items: center;
|
893
|
+
margin-top: 32px;
|
894
|
+
}
|
895
|
+
|
896
|
+
.request-payment-success-btn1 {
|
897
|
+
cursor: pointer;
|
898
|
+
border-radius: 80px;
|
899
|
+
border: 1px solid #E0DFE2;
|
900
|
+
display: flex;
|
901
|
+
padding: 12px 32px;
|
902
|
+
justify-content: center;
|
903
|
+
align-items: center;
|
904
|
+
gap: 6px;
|
905
|
+
background-color: #fff;
|
906
|
+
}
|
907
|
+
|
908
|
+
.request-payment-success-btn2 {
|
909
|
+
border-radius: 80px;
|
910
|
+
cursor: pointer;
|
911
|
+
border: 1px solid #E0DFE2;
|
912
|
+
display: flex;
|
913
|
+
padding: 12px 32px;
|
914
|
+
justify-content: center;
|
915
|
+
align-items: center;
|
916
|
+
gap: 6px;
|
917
|
+
background-color: #161616;
|
918
|
+
color: #fff;
|
919
|
+
font-family: Inter;
|
920
|
+
font-size: 14px;
|
921
|
+
font-style: normal;
|
922
|
+
font-weight: 500;
|
923
|
+
}
|
924
|
+
|
925
|
+
.request-payment-error-msg{
|
926
|
+
color: #dc3545;
|
927
|
+
font-family: Inter;
|
928
|
+
font-size: 12px;
|
929
|
+
}
|
930
|
+
`);
|
931
|
+
};
|
932
|
+
var RequestPaymentstyles_default = RequestPaymentstyles;
|
933
|
+
|
934
|
+
// src/app/components/RequestPayment/RequestPaymentAllInput.tsx
|
1345
935
|
function RequestPaymentAllInput({ fractalpayClientKey }) {
|
1346
936
|
const [isLoading, setIsLoading] = useState2(false);
|
1347
937
|
const [show, setShow] = useState2(false);
|
@@ -1456,7 +1046,7 @@ function RequestPaymentAllInput({ fractalpayClientKey }) {
|
|
1456
1046
|
setIsValidOrderId(false);
|
1457
1047
|
}
|
1458
1048
|
};
|
1459
|
-
return /* @__PURE__ */
|
1049
|
+
return /* @__PURE__ */ React7.createElement(React7.Fragment, null, /* @__PURE__ */ React7.createElement(RequestPaymentstyles_default, null), /* @__PURE__ */ React7.createElement("div", { className: " border-container" }, /* @__PURE__ */ React7.createElement("div", { className: "payment-column" }, /* @__PURE__ */ React7.createElement("label", null, "Enter Phone Number:"), /* @__PURE__ */ React7.createElement("div", { className: "input-container" }, /* @__PURE__ */ React7.createElement(
|
1460
1050
|
"input",
|
1461
1051
|
{
|
1462
1052
|
type: "text",
|
@@ -1466,7 +1056,7 @@ function RequestPaymentAllInput({ fractalpayClientKey }) {
|
|
1466
1056
|
maxLength: 10,
|
1467
1057
|
className: submitClicked && (!phoneNumber || !isValidNumber) ? "error" : ""
|
1468
1058
|
}
|
1469
|
-
), errorMessagephone && /* @__PURE__ */
|
1059
|
+
), errorMessagephone && /* @__PURE__ */ React7.createElement("div", { className: "error-message text-danger" }, errorMessagephone))), /* @__PURE__ */ React7.createElement("div", { className: "payment-column" }, /* @__PURE__ */ React7.createElement("label", null, "Enter Amount:"), /* @__PURE__ */ React7.createElement("div", { className: "input-container" }, /* @__PURE__ */ React7.createElement(
|
1470
1060
|
"input",
|
1471
1061
|
{
|
1472
1062
|
type: "text",
|
@@ -1475,7 +1065,7 @@ function RequestPaymentAllInput({ fractalpayClientKey }) {
|
|
1475
1065
|
placeholder: "Enter amount",
|
1476
1066
|
className: submitClicked && (!amount || !isValidAmount) ? "error" : ""
|
1477
1067
|
}
|
1478
|
-
), errorMessageamount && /* @__PURE__ */
|
1068
|
+
), errorMessageamount && /* @__PURE__ */ React7.createElement("div", { className: "error-message text-danger" }, errorMessageamount))), /* @__PURE__ */ React7.createElement("div", { className: "payment-column" }, /* @__PURE__ */ React7.createElement("label", null, "Enter Order ID:"), /* @__PURE__ */ React7.createElement("div", { className: "input-container" }, /* @__PURE__ */ React7.createElement(
|
1479
1069
|
"input",
|
1480
1070
|
{
|
1481
1071
|
type: "text",
|
@@ -1484,7 +1074,7 @@ function RequestPaymentAllInput({ fractalpayClientKey }) {
|
|
1484
1074
|
placeholder: "Enter order ID",
|
1485
1075
|
className: submitClicked && (!orderId || !isValidOrderId) ? "error" : ""
|
1486
1076
|
}
|
1487
|
-
), errorMessageorderid && /* @__PURE__ */
|
1077
|
+
), errorMessageorderid && /* @__PURE__ */ React7.createElement("div", { className: "error-message text-danger" }, errorMessageorderid))), /* @__PURE__ */ React7.createElement(
|
1488
1078
|
"button",
|
1489
1079
|
{
|
1490
1080
|
onClick: sendRequestPayment,
|
@@ -1492,7 +1082,7 @@ function RequestPaymentAllInput({ fractalpayClientKey }) {
|
|
1492
1082
|
className: "paymentBtn"
|
1493
1083
|
},
|
1494
1084
|
isLoading ? "Loading..." : "Request Payment"
|
1495
|
-
)), /* @__PURE__ */
|
1085
|
+
)), /* @__PURE__ */ React7.createElement(Modal, { className: "payment-suc", show, onHide: handleClose }, /* @__PURE__ */ React7.createElement(Modal.Header, { closeButton: true }), /* @__PURE__ */ React7.createElement(Modal.Body, null, /* @__PURE__ */ React7.createElement(
|
1496
1086
|
"svg",
|
1497
1087
|
{
|
1498
1088
|
width: "60",
|
@@ -1501,7 +1091,7 @@ function RequestPaymentAllInput({ fractalpayClientKey }) {
|
|
1501
1091
|
fill: "none",
|
1502
1092
|
xmlns: "http://www.w3.org/2000/svg"
|
1503
1093
|
},
|
1504
|
-
/* @__PURE__ */
|
1094
|
+
/* @__PURE__ */ React7.createElement(
|
1505
1095
|
"rect",
|
1506
1096
|
{
|
1507
1097
|
x: "0.5",
|
@@ -1512,14 +1102,14 @@ function RequestPaymentAllInput({ fractalpayClientKey }) {
|
|
1512
1102
|
stroke: "#31B379"
|
1513
1103
|
}
|
1514
1104
|
),
|
1515
|
-
/* @__PURE__ */
|
1105
|
+
/* @__PURE__ */ React7.createElement("g", { clipPath: "url(#clip0_2659_5018)" }, /* @__PURE__ */ React7.createElement(
|
1516
1106
|
"path",
|
1517
1107
|
{
|
1518
1108
|
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",
|
1519
1109
|
fill: "#31B379"
|
1520
1110
|
}
|
1521
1111
|
)),
|
1522
|
-
/* @__PURE__ */
|
1112
|
+
/* @__PURE__ */ React7.createElement("defs", null, /* @__PURE__ */ React7.createElement("clipPath", { id: "clip0_2659_5018" }, /* @__PURE__ */ React7.createElement(
|
1523
1113
|
"rect",
|
1524
1114
|
{
|
1525
1115
|
width: "22",
|
@@ -1528,12 +1118,12 @@ function RequestPaymentAllInput({ fractalpayClientKey }) {
|
|
1528
1118
|
transform: "translate(19.5 19.0039)"
|
1529
1119
|
}
|
1530
1120
|
)))
|
1531
|
-
), /* @__PURE__ */
|
1121
|
+
), /* @__PURE__ */ React7.createElement("h1", null, "Success!"), /* @__PURE__ */ React7.createElement("h4", null, "Payment link created successfully.")), /* @__PURE__ */ React7.createElement(Modal.Footer, null, /* @__PURE__ */ React7.createElement("button", { className: "paymentBtn", onClick: handleClose }, "Ok"))), /* @__PURE__ */ React7.createElement(ToastContainer, null));
|
1532
1122
|
}
|
1533
1123
|
|
1534
1124
|
// src/app/components/RequestPayment/RequestPaymentDynamic.tsx
|
1535
|
-
import
|
1536
|
-
import { Modal as
|
1125
|
+
import React8, { useState as useState3 } from "react";
|
1126
|
+
import { Modal as Modal2 } from "react-bootstrap";
|
1537
1127
|
|
1538
1128
|
// src/app/components/Api/createWidgetOrder.ts
|
1539
1129
|
var createWidgetOrder = (formData) => {
|
@@ -1580,7 +1170,7 @@ function RequestPaymentDynamic({ fractalpayClientKey, amount, phone_number, orde
|
|
1580
1170
|
console.error("Error:", error);
|
1581
1171
|
});
|
1582
1172
|
};
|
1583
|
-
return /* @__PURE__ */
|
1173
|
+
return /* @__PURE__ */ React8.createElement(React8.Fragment, null, /* @__PURE__ */ React8.createElement(
|
1584
1174
|
"button",
|
1585
1175
|
{
|
1586
1176
|
onClick: sendRequestPayment,
|
@@ -1588,7 +1178,7 @@ function RequestPaymentDynamic({ fractalpayClientKey, amount, phone_number, orde
|
|
1588
1178
|
className: "paymentBtn"
|
1589
1179
|
},
|
1590
1180
|
isLoading ? "Loading..." : "Request Payment"
|
1591
|
-
), /* @__PURE__ */
|
1181
|
+
), /* @__PURE__ */ React8.createElement(Modal2, { className: "payment-suc", show, onHide: handleClose }, /* @__PURE__ */ React8.createElement(Modal2.Header, { closeButton: true }), /* @__PURE__ */ React8.createElement(Modal2.Body, null, /* @__PURE__ */ React8.createElement(
|
1592
1182
|
"svg",
|
1593
1183
|
{
|
1594
1184
|
width: "60",
|
@@ -1597,7 +1187,7 @@ function RequestPaymentDynamic({ fractalpayClientKey, amount, phone_number, orde
|
|
1597
1187
|
fill: "none",
|
1598
1188
|
xmlns: "http://www.w3.org/2000/svg"
|
1599
1189
|
},
|
1600
|
-
/* @__PURE__ */
|
1190
|
+
/* @__PURE__ */ React8.createElement(
|
1601
1191
|
"rect",
|
1602
1192
|
{
|
1603
1193
|
x: "0.5",
|
@@ -1608,14 +1198,14 @@ function RequestPaymentDynamic({ fractalpayClientKey, amount, phone_number, orde
|
|
1608
1198
|
stroke: "#31B379"
|
1609
1199
|
}
|
1610
1200
|
),
|
1611
|
-
/* @__PURE__ */
|
1201
|
+
/* @__PURE__ */ React8.createElement("g", { "clip-path": "url(#clip0_2659_5018)" }, /* @__PURE__ */ React8.createElement(
|
1612
1202
|
"path",
|
1613
1203
|
{
|
1614
1204
|
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",
|
1615
1205
|
fill: "#31B379"
|
1616
1206
|
}
|
1617
1207
|
)),
|
1618
|
-
/* @__PURE__ */
|
1208
|
+
/* @__PURE__ */ React8.createElement("defs", null, /* @__PURE__ */ React8.createElement("clipPath", { id: "clip0_2659_5018" }, /* @__PURE__ */ React8.createElement(
|
1619
1209
|
"rect",
|
1620
1210
|
{
|
1621
1211
|
width: "22",
|
@@ -1624,12 +1214,12 @@ function RequestPaymentDynamic({ fractalpayClientKey, amount, phone_number, orde
|
|
1624
1214
|
transform: "translate(19.5 19.0039)"
|
1625
1215
|
}
|
1626
1216
|
)))
|
1627
|
-
), /* @__PURE__ */
|
1217
|
+
), /* @__PURE__ */ React8.createElement("h1", null, "Success!"), /* @__PURE__ */ React8.createElement("h4", null, "Payment link created successfully.")), /* @__PURE__ */ React8.createElement(Modal2.Footer, null, /* @__PURE__ */ React8.createElement("button", { className: "paymentBtn", onClick: handleClose }, "Ok"))));
|
1628
1218
|
}
|
1629
1219
|
|
1630
1220
|
// src/app/components/RequestPayment/RequestPaymentonClick.tsx
|
1631
|
-
import
|
1632
|
-
import { Modal as
|
1221
|
+
import React9, { useState as useState4 } from "react";
|
1222
|
+
import { Modal as Modal3 } from "react-bootstrap";
|
1633
1223
|
function RequestPaymentonClick(props) {
|
1634
1224
|
const [isLoading, setIsLoading] = useState4(false);
|
1635
1225
|
const [show, setShow] = useState4(false);
|
@@ -1666,7 +1256,7 @@ function RequestPaymentonClick(props) {
|
|
1666
1256
|
console.error("Error:", error);
|
1667
1257
|
});
|
1668
1258
|
};
|
1669
|
-
return /* @__PURE__ */
|
1259
|
+
return /* @__PURE__ */ React9.createElement(React9.Fragment, null, /* @__PURE__ */ React9.createElement(RequestPaymentstyles_default, null), /* @__PURE__ */ React9.createElement(
|
1670
1260
|
"button",
|
1671
1261
|
{
|
1672
1262
|
onClick: sendRequestPayment,
|
@@ -1674,7 +1264,7 @@ function RequestPaymentonClick(props) {
|
|
1674
1264
|
className: "paymentBtn"
|
1675
1265
|
},
|
1676
1266
|
isLoading ? "Loading..." : "Request Payment"
|
1677
|
-
), /* @__PURE__ */
|
1267
|
+
), /* @__PURE__ */ React9.createElement(Modal3, { className: "payment-suc", show, onHide: handleClose }, /* @__PURE__ */ React9.createElement(Modal3.Header, { closeButton: true }), /* @__PURE__ */ React9.createElement(Modal3.Body, null, onSuccess && /* @__PURE__ */ React9.createElement(
|
1678
1268
|
"svg",
|
1679
1269
|
{
|
1680
1270
|
width: "60",
|
@@ -1683,7 +1273,7 @@ function RequestPaymentonClick(props) {
|
|
1683
1273
|
fill: "none",
|
1684
1274
|
xmlns: "http://www.w3.org/2000/svg"
|
1685
1275
|
},
|
1686
|
-
/* @__PURE__ */
|
1276
|
+
/* @__PURE__ */ React9.createElement(
|
1687
1277
|
"rect",
|
1688
1278
|
{
|
1689
1279
|
x: "0.5",
|
@@ -1694,14 +1284,14 @@ function RequestPaymentonClick(props) {
|
|
1694
1284
|
stroke: "#31B379"
|
1695
1285
|
}
|
1696
1286
|
),
|
1697
|
-
/* @__PURE__ */
|
1287
|
+
/* @__PURE__ */ React9.createElement("g", { clipPath: "url(#clip0_2659_5018)" }, /* @__PURE__ */ React9.createElement(
|
1698
1288
|
"path",
|
1699
1289
|
{
|
1700
1290
|
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",
|
1701
1291
|
fill: "#31B379"
|
1702
1292
|
}
|
1703
1293
|
)),
|
1704
|
-
/* @__PURE__ */
|
1294
|
+
/* @__PURE__ */ React9.createElement("defs", null, /* @__PURE__ */ React9.createElement("clipPath", { id: "clip0_2659_5018" }, /* @__PURE__ */ React9.createElement(
|
1705
1295
|
"rect",
|
1706
1296
|
{
|
1707
1297
|
width: "22",
|
@@ -1710,12 +1300,12 @@ function RequestPaymentonClick(props) {
|
|
1710
1300
|
transform: "translate(19.5 19.0039)"
|
1711
1301
|
}
|
1712
1302
|
)))
|
1713
|
-
), onSuccess ? /* @__PURE__ */
|
1303
|
+
), onSuccess ? /* @__PURE__ */ React9.createElement(React9.Fragment, null, /* @__PURE__ */ React9.createElement("h1", null, "Success!"), /* @__PURE__ */ React9.createElement("h4", null, onSuccess)) : /* @__PURE__ */ React9.createElement(React9.Fragment, null, /* @__PURE__ */ React9.createElement("h1", null, "Error!"), /* @__PURE__ */ React9.createElement("h4", null, onError))), /* @__PURE__ */ React9.createElement(Modal3.Footer, null, /* @__PURE__ */ React9.createElement("button", { className: "paymentBtn", onClick: handleClose }, "Ok"))));
|
1714
1304
|
}
|
1715
1305
|
|
1716
1306
|
// src/app/components/RequestPayment/RqstPaymntInputField.tsx
|
1717
|
-
import
|
1718
|
-
import { Modal as
|
1307
|
+
import React10, { useState as useState5 } from "react";
|
1308
|
+
import { Modal as Modal4 } from "react-bootstrap";
|
1719
1309
|
import { toast as toast2, ToastContainer as ToastContainer2 } from "react-toastify";
|
1720
1310
|
import "react-toastify/dist/ReactToastify.css";
|
1721
1311
|
function RqstPaymntInputField({ fractalpayClientKey, amount, orderID }) {
|
@@ -1787,7 +1377,7 @@ function RqstPaymntInputField({ fractalpayClientKey, amount, orderID }) {
|
|
1787
1377
|
setErrorMessage(ErrorText.phonenumbervalid);
|
1788
1378
|
}
|
1789
1379
|
};
|
1790
|
-
return /* @__PURE__ */
|
1380
|
+
return /* @__PURE__ */ React10.createElement(React10.Fragment, null, /* @__PURE__ */ React10.createElement("div", { className: "payment-container" }, /* @__PURE__ */ React10.createElement("div", { className: "input-wrapper" }, /* @__PURE__ */ React10.createElement("div", { className: "input-container" }, /* @__PURE__ */ React10.createElement(
|
1791
1381
|
"input",
|
1792
1382
|
{
|
1793
1383
|
type: "text",
|
@@ -1797,7 +1387,7 @@ function RqstPaymntInputField({ fractalpayClientKey, amount, orderID }) {
|
|
1797
1387
|
maxLength: 10,
|
1798
1388
|
className: submitClicked && (!phoneNumber || !isValidNumber) ? "error" : ""
|
1799
1389
|
}
|
1800
|
-
), errorMessage && /* @__PURE__ */
|
1390
|
+
), errorMessage && /* @__PURE__ */ React10.createElement("div", { className: "error-message text-danger" }, errorMessage))), /* @__PURE__ */ React10.createElement("div", { className: "button-wrapper" }, /* @__PURE__ */ React10.createElement(
|
1801
1391
|
"button",
|
1802
1392
|
{
|
1803
1393
|
onClick: sendRequestPayment,
|
@@ -1805,7 +1395,7 @@ function RqstPaymntInputField({ fractalpayClientKey, amount, orderID }) {
|
|
1805
1395
|
className: "paymentBtn"
|
1806
1396
|
},
|
1807
1397
|
isLoading ? "Loading..." : "Request Payment"
|
1808
|
-
))), /* @__PURE__ */
|
1398
|
+
))), /* @__PURE__ */ React10.createElement(Modal4, { className: "payment-suc", show, onHide: handleClose }, /* @__PURE__ */ React10.createElement(Modal4.Header, { closeButton: true }), /* @__PURE__ */ React10.createElement(Modal4.Body, null, /* @__PURE__ */ React10.createElement(
|
1809
1399
|
"svg",
|
1810
1400
|
{
|
1811
1401
|
width: "60",
|
@@ -1814,7 +1404,7 @@ function RqstPaymntInputField({ fractalpayClientKey, amount, orderID }) {
|
|
1814
1404
|
fill: "none",
|
1815
1405
|
xmlns: "http://www.w3.org/2000/svg"
|
1816
1406
|
},
|
1817
|
-
/* @__PURE__ */
|
1407
|
+
/* @__PURE__ */ React10.createElement(
|
1818
1408
|
"rect",
|
1819
1409
|
{
|
1820
1410
|
x: "0.5",
|
@@ -1825,14 +1415,14 @@ function RqstPaymntInputField({ fractalpayClientKey, amount, orderID }) {
|
|
1825
1415
|
stroke: "#31B379"
|
1826
1416
|
}
|
1827
1417
|
),
|
1828
|
-
/* @__PURE__ */
|
1418
|
+
/* @__PURE__ */ React10.createElement("g", { clipPath: "url(#clip0_2659_5018)" }, /* @__PURE__ */ React10.createElement(
|
1829
1419
|
"path",
|
1830
1420
|
{
|
1831
1421
|
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",
|
1832
1422
|
fill: "#31B379"
|
1833
1423
|
}
|
1834
1424
|
)),
|
1835
|
-
/* @__PURE__ */
|
1425
|
+
/* @__PURE__ */ React10.createElement("defs", null, /* @__PURE__ */ React10.createElement("clipPath", { id: "clip0_2659_5018" }, /* @__PURE__ */ React10.createElement(
|
1836
1426
|
"rect",
|
1837
1427
|
{
|
1838
1428
|
width: "22",
|
@@ -1841,19 +1431,19 @@ function RqstPaymntInputField({ fractalpayClientKey, amount, orderID }) {
|
|
1841
1431
|
transform: "translate(19.5 19.0039)"
|
1842
1432
|
}
|
1843
1433
|
)))
|
1844
|
-
), /* @__PURE__ */
|
1434
|
+
), /* @__PURE__ */ React10.createElement("h1", null, "Success!"), /* @__PURE__ */ React10.createElement("h4", null, "Payment link created successfully.")), /* @__PURE__ */ React10.createElement(Modal4.Footer, null, /* @__PURE__ */ React10.createElement("button", { className: "paymentBtn", onClick: handleClose }, "Ok"))), /* @__PURE__ */ React10.createElement(ToastContainer2, null));
|
1845
1435
|
}
|
1846
1436
|
|
1847
1437
|
// src/app/components/Payment/Payment.tsx
|
1848
|
-
import
|
1438
|
+
import React12, { useState as useState6 } from "react";
|
1849
1439
|
import forge from "node-forge";
|
1850
1440
|
import { toast as toast3 } from "react-toastify";
|
1851
|
-
import { Modal as
|
1441
|
+
import { Modal as Modal5 } from "react-bootstrap";
|
1852
1442
|
|
1853
1443
|
// src/app/components/Payment/Paymentstyles.tsx
|
1854
|
-
import
|
1444
|
+
import React11 from "react";
|
1855
1445
|
function Paymentstyles() {
|
1856
|
-
return /* @__PURE__ */
|
1446
|
+
return /* @__PURE__ */ React11.createElement("style", null, `
|
1857
1447
|
.paymentBtn {
|
1858
1448
|
background-color: black;
|
1859
1449
|
border: none;
|
@@ -2956,7 +2546,7 @@ function Payment() {
|
|
2956
2546
|
}
|
2957
2547
|
return "";
|
2958
2548
|
}
|
2959
|
-
return /* @__PURE__ */
|
2549
|
+
return /* @__PURE__ */ React12.createElement(React12.Fragment, null, /* @__PURE__ */ React12.createElement(Paymentstyles, null), /* @__PURE__ */ React12.createElement("div", { className: "" }, /* @__PURE__ */ React12.createElement(
|
2960
2550
|
"button",
|
2961
2551
|
{
|
2962
2552
|
className: "export-btn",
|
@@ -2964,8 +2554,8 @@ function Payment() {
|
|
2964
2554
|
onClick: () => handlePaymentClick()
|
2965
2555
|
},
|
2966
2556
|
"Payment"
|
2967
|
-
), /* @__PURE__ */
|
2968
|
-
|
2557
|
+
), /* @__PURE__ */ React12.createElement(
|
2558
|
+
Modal5,
|
2969
2559
|
{
|
2970
2560
|
show: state.show,
|
2971
2561
|
onHide: () => setState((prev) => __spreadProps(__spreadValues({}, prev), {
|
@@ -2973,8 +2563,8 @@ function Payment() {
|
|
2973
2563
|
})),
|
2974
2564
|
centered: true
|
2975
2565
|
},
|
2976
|
-
/* @__PURE__ */
|
2977
|
-
/* @__PURE__ */
|
2566
|
+
/* @__PURE__ */ React12.createElement(Modal5.Header, { closeButton: true }),
|
2567
|
+
/* @__PURE__ */ React12.createElement(Modal5.Body, null, /* @__PURE__ */ React12.createElement("div", { className: "payment-popup" }, /* @__PURE__ */ React12.createElement("div", { className: "row" }, /* @__PURE__ */ React12.createElement("div", { className: "" }, /* @__PURE__ */ React12.createElement("div", { id: "Checkout", className: "inline" }, /* @__PURE__ */ React12.createElement("div", { className: "header" }, /* @__PURE__ */ React12.createElement("h1", null, "Pay")), /* @__PURE__ */ React12.createElement("form", { id: "PaymentForm", className: "payment-form" }, /* @__PURE__ */ React12.createElement("div", { className: "form-group", style: { display: "none" } }, /* @__PURE__ */ React12.createElement("label", null, "Payment amount"), /* @__PURE__ */ React12.createElement("div", { className: "input-group" }, /* @__PURE__ */ React12.createElement("span", { className: "input-group-addon" }, "$"), /* @__PURE__ */ React12.createElement(
|
2978
2568
|
"input",
|
2979
2569
|
{
|
2980
2570
|
type: "text",
|
@@ -2983,13 +2573,13 @@ function Payment() {
|
|
2983
2573
|
className: "form-control",
|
2984
2574
|
id: ""
|
2985
2575
|
}
|
2986
|
-
)), /* @__PURE__ */
|
2576
|
+
)), /* @__PURE__ */ React12.createElement(
|
2987
2577
|
"span",
|
2988
2578
|
{
|
2989
2579
|
id: "amount-error",
|
2990
2580
|
style: { color: "red", display: "none" }
|
2991
2581
|
}
|
2992
|
-
)), /* @__PURE__ */
|
2582
|
+
)), /* @__PURE__ */ React12.createElement("div", { className: "form-group" }, /* @__PURE__ */ React12.createElement("label", null, "Name on card"), /* @__PURE__ */ React12.createElement(
|
2993
2583
|
"input",
|
2994
2584
|
{
|
2995
2585
|
id: "NameOnCard",
|
@@ -2998,13 +2588,13 @@ function Payment() {
|
|
2998
2588
|
maxLength: 100,
|
2999
2589
|
placeholder: "Name"
|
3000
2590
|
}
|
3001
|
-
), /* @__PURE__ */
|
2591
|
+
), /* @__PURE__ */ React12.createElement(
|
3002
2592
|
"span",
|
3003
2593
|
{
|
3004
2594
|
id: "NameOnCard-error",
|
3005
2595
|
style: { color: "red", display: "none" }
|
3006
2596
|
}
|
3007
|
-
)), /* @__PURE__ */
|
2597
|
+
)), /* @__PURE__ */ React12.createElement("div", { className: "form-group" }, /* @__PURE__ */ React12.createElement(
|
3008
2598
|
"input",
|
3009
2599
|
{
|
3010
2600
|
"data-token": "card_number",
|
@@ -3015,7 +2605,7 @@ function Payment() {
|
|
3015
2605
|
placeholder: "0000 0000 0000 0000",
|
3016
2606
|
onChange: handleCardNumberChange
|
3017
2607
|
}
|
3018
|
-
), state.error && /* @__PURE__ */
|
2608
|
+
), state.error && /* @__PURE__ */ React12.createElement("div", { style: { color: "red" } }, state.error)), /* @__PURE__ */ React12.createElement("div", { className: "expiry-date-group form-group" }, /* @__PURE__ */ React12.createElement(
|
3019
2609
|
"input",
|
3020
2610
|
{
|
3021
2611
|
"data-token": "exp_month",
|
@@ -3026,14 +2616,14 @@ function Payment() {
|
|
3026
2616
|
maxLength: 2,
|
3027
2617
|
onChange: (e) => handleMonthChange(e)
|
3028
2618
|
}
|
3029
|
-
), isValidMonth && /* @__PURE__ */
|
2619
|
+
), isValidMonth && /* @__PURE__ */ React12.createElement(
|
3030
2620
|
"span",
|
3031
2621
|
{
|
3032
2622
|
id: "card_number-error",
|
3033
2623
|
style: { color: "red", fontSize: "15px" }
|
3034
2624
|
},
|
3035
2625
|
(_a = ErrorText) == null ? void 0 : _a.montherror
|
3036
|
-
)), /* @__PURE__ */
|
2626
|
+
)), /* @__PURE__ */ React12.createElement("div", { className: "expiry-date-group form-group" }, /* @__PURE__ */ React12.createElement(
|
3037
2627
|
"input",
|
3038
2628
|
{
|
3039
2629
|
"data-token": "exp_year",
|
@@ -3044,7 +2634,7 @@ function Payment() {
|
|
3044
2634
|
value: state.year,
|
3045
2635
|
onChange: (e) => handleYearChange(e)
|
3046
2636
|
}
|
3047
|
-
), state.yearError && /* @__PURE__ */
|
2637
|
+
), state.yearError && /* @__PURE__ */ React12.createElement("span", { id: "exp_year-error", style: { color: "red" } }, state.yearError)), /* @__PURE__ */ React12.createElement("div", { className: "security-code-group form-group" }, /* @__PURE__ */ React12.createElement("div", { className: "input-container" }, /* @__PURE__ */ React12.createElement(
|
3048
2638
|
"input",
|
3049
2639
|
{
|
3050
2640
|
"data-token": "cvv",
|
@@ -3055,7 +2645,7 @@ function Payment() {
|
|
3055
2645
|
placeholder: "CVV",
|
3056
2646
|
onChange: (e) => handleCVVChange(e)
|
3057
2647
|
}
|
3058
|
-
), /* @__PURE__ */
|
2648
|
+
), /* @__PURE__ */ React12.createElement("i", { id: "cvc", className: "fa fa-question-circle" }), state.cvvError && /* @__PURE__ */ React12.createElement("span", { id: "cvv-error", style: { color: "red" } }, state.cvvError)), /* @__PURE__ */ React12.createElement("div", { className: "cvc-preview-container two-card hide" }, /* @__PURE__ */ React12.createElement("div", { className: "amex-cvc-preview" }), /* @__PURE__ */ React12.createElement("div", { className: "visa-mc-dis-cvc-preview" }))), /* @__PURE__ */ React12.createElement("div", { className: "zip-code-group form-group" }, /* @__PURE__ */ React12.createElement("label", null, "Postal code"), /* @__PURE__ */ React12.createElement("div", { className: "input-container" }, /* @__PURE__ */ React12.createElement(
|
3059
2649
|
"input",
|
3060
2650
|
{
|
3061
2651
|
id: "ZIPCode",
|
@@ -3067,7 +2657,7 @@ function Payment() {
|
|
3067
2657
|
value: state.zip,
|
3068
2658
|
onChange: (e) => handleZIP(e)
|
3069
2659
|
}
|
3070
|
-
), /* @__PURE__ */
|
2660
|
+
), /* @__PURE__ */ React12.createElement(
|
3071
2661
|
"a",
|
3072
2662
|
{
|
3073
2663
|
tabIndex: 0,
|
@@ -3077,15 +2667,15 @@ function Payment() {
|
|
3077
2667
|
"data-placement": "left",
|
3078
2668
|
"data-content": "Enter the ZIP/Postal code for your credit card billing address."
|
3079
2669
|
},
|
3080
|
-
/* @__PURE__ */
|
3081
|
-
), /* @__PURE__ */
|
2670
|
+
/* @__PURE__ */ React12.createElement("i", { className: "fa fa-question-circle" })
|
2671
|
+
), /* @__PURE__ */ React12.createElement(
|
3082
2672
|
"span",
|
3083
2673
|
{
|
3084
2674
|
id: "ZIPCode-error",
|
3085
2675
|
style: { color: "red", display: "none" }
|
3086
2676
|
},
|
3087
2677
|
ErrorText.fieldrequired
|
3088
|
-
))), /* @__PURE__ */
|
2678
|
+
))), /* @__PURE__ */ React12.createElement("div", { className: "form-group top-amnt" }, /* @__PURE__ */ React12.createElement("div", null, /* @__PURE__ */ React12.createElement("label", null, "Payment amount"), /* @__PURE__ */ React12.createElement("div", { className: "amount-placeholder" }, /* @__PURE__ */ React12.createElement(
|
3089
2679
|
"input",
|
3090
2680
|
{
|
3091
2681
|
id: "Amount",
|
@@ -3097,7 +2687,7 @@ function Payment() {
|
|
3097
2687
|
onChange: (e) => handleAmount(e),
|
3098
2688
|
onBlur: handleAmountBlur
|
3099
2689
|
}
|
3100
|
-
))), /* @__PURE__ */
|
2690
|
+
))), /* @__PURE__ */ React12.createElement("div", { className: "card-row" }, /* @__PURE__ */ React12.createElement("span", { className: "visa" }), /* @__PURE__ */ React12.createElement("span", { className: "mastercard" }), /* @__PURE__ */ React12.createElement("span", { className: "amex" }), /* @__PURE__ */ React12.createElement("span", { className: "discover" }))), /* @__PURE__ */ React12.createElement(
|
3101
2691
|
"button",
|
3102
2692
|
{
|
3103
2693
|
type: "button",
|
@@ -3106,7 +2696,7 @@ function Payment() {
|
|
3106
2696
|
className: "btn btn-block btn-success submit-button"
|
3107
2697
|
},
|
3108
2698
|
"Pay"
|
3109
|
-
)), /* @__PURE__ */
|
2699
|
+
)), /* @__PURE__ */ React12.createElement("div", { className: "powerd-by-part" }, /* @__PURE__ */ React12.createElement(
|
3110
2700
|
"svg",
|
3111
2701
|
{
|
3112
2702
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -3114,14 +2704,14 @@ function Payment() {
|
|
3114
2704
|
height: "20",
|
3115
2705
|
viewBox: "0 0 26 26"
|
3116
2706
|
},
|
3117
|
-
/* @__PURE__ */
|
2707
|
+
/* @__PURE__ */ React12.createElement(
|
3118
2708
|
"path",
|
3119
2709
|
{
|
3120
2710
|
fill: "currentColor",
|
3121
2711
|
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"
|
3122
2712
|
}
|
3123
2713
|
)
|
3124
|
-
), "Secure payments powered by Fractal", /* @__PURE__ */
|
2714
|
+
), "Secure payments powered by Fractal", /* @__PURE__ */ React12.createElement(
|
3125
2715
|
"img",
|
3126
2716
|
{
|
3127
2717
|
src: "https://ui.fractalpay.com/favicon.ico",
|
@@ -3133,7 +2723,7 @@ function Payment() {
|
|
3133
2723
|
}
|
3134
2724
|
|
3135
2725
|
// src/app/components/Transaction/CompletedTransactions.tsx
|
3136
|
-
import
|
2726
|
+
import React14, { useEffect as useEffect3, useState as useState8 } from "react";
|
3137
2727
|
import { Col, Row, Table } from "react-bootstrap";
|
3138
2728
|
import {
|
3139
2729
|
DatatableWrapper,
|
@@ -3147,14 +2737,14 @@ import "react-datepicker/dist/react-datepicker.css";
|
|
3147
2737
|
import { toast as toast4 } from "react-toastify";
|
3148
2738
|
|
3149
2739
|
// src/app/components/Pagination/Pagination.tsx
|
3150
|
-
import
|
2740
|
+
import React13, { useState as useState7, useEffect as useEffect2 } from "react";
|
3151
2741
|
function PaginationPg({ totalPages, onPageChange, current }) {
|
3152
2742
|
const [currentPage, setCurrentPage] = useState7(current);
|
3153
2743
|
const [showPages, setShowPages] = useState7(false);
|
3154
|
-
|
2744
|
+
useEffect2(() => {
|
3155
2745
|
setCurrentPage(current);
|
3156
2746
|
}, [current]);
|
3157
|
-
|
2747
|
+
useEffect2(() => {
|
3158
2748
|
setTimeout(() => {
|
3159
2749
|
setShowPages(true);
|
3160
2750
|
}, 1e3);
|
@@ -3190,7 +2780,7 @@ function PaginationPg({ totalPages, onPageChange, current }) {
|
|
3190
2780
|
if (currentPage > 3) {
|
3191
2781
|
pageNumbers.push(renderPageNumber(1));
|
3192
2782
|
if (currentPage > 4) {
|
3193
|
-
pageNumbers.push(/* @__PURE__ */
|
2783
|
+
pageNumbers.push(/* @__PURE__ */ React13.createElement("li", { key: "start-break", className: "page-item disabled" }, /* @__PURE__ */ React13.createElement("span", { className: "page-link" }, "...")));
|
3194
2784
|
}
|
3195
2785
|
}
|
3196
2786
|
const startPage = Math.max(currentPage - 1, 1);
|
@@ -3200,15 +2790,15 @@ function PaginationPg({ totalPages, onPageChange, current }) {
|
|
3200
2790
|
}
|
3201
2791
|
if (currentPage < totalPages - 2) {
|
3202
2792
|
if (currentPage < totalPages - 3) {
|
3203
|
-
pageNumbers.push(/* @__PURE__ */
|
2793
|
+
pageNumbers.push(/* @__PURE__ */ React13.createElement("li", { key: "end-break", className: "page-item disabled" }, /* @__PURE__ */ React13.createElement("span", { className: "page-link" }, "...")));
|
3204
2794
|
}
|
3205
2795
|
pageNumbers.push(renderPageNumber(totalPages));
|
3206
2796
|
}
|
3207
2797
|
}
|
3208
2798
|
return pageNumbers;
|
3209
2799
|
};
|
3210
|
-
const renderPageNumber = (pageNumber) => /* @__PURE__ */
|
3211
|
-
return /* @__PURE__ */
|
2800
|
+
const renderPageNumber = (pageNumber) => /* @__PURE__ */ React13.createElement("li", { key: pageNumber, className: `page-item ${currentPage === pageNumber ? "active" : ""}` }, /* @__PURE__ */ React13.createElement("a", { className: "page-link cursor-pointer", onClick: (e) => handlePageClick(e, pageNumber) }, pageNumber));
|
2801
|
+
return /* @__PURE__ */ React13.createElement(React13.Fragment, null, /* @__PURE__ */ React13.createElement("nav", { className: "app-pagination py-2" }, /* @__PURE__ */ React13.createElement("ul", { className: "pagination justify-content-center" }, /* @__PURE__ */ React13.createElement("li", { className: `page-item ${currentPage === 1 ? "disabled" : ""}` }, /* @__PURE__ */ React13.createElement("a", { className: "page-link cursor-pointer", onClick: handlePrevious }, /* @__PURE__ */ React13.createElement("span", null, "\u2B9C"))), showPages && getPageNumbers(), /* @__PURE__ */ React13.createElement("li", { className: `page-item ${currentPage === totalPages ? "disabled" : ""}` }, /* @__PURE__ */ React13.createElement("a", { className: "page-link cursor-pointer", onClick: handleNext }, /* @__PURE__ */ React13.createElement("span", null, "\u2B9E"))))));
|
3212
2802
|
}
|
3213
2803
|
|
3214
2804
|
// src/app/components/Transaction/CompletedTransactions.tsx
|
@@ -3372,18 +2962,18 @@ function CompletedTransactions(props) {
|
|
3372
2962
|
}
|
3373
2963
|
}
|
3374
2964
|
};
|
3375
|
-
|
2965
|
+
useEffect3(() => {
|
3376
2966
|
fetchData(state.page, startDate, endDate);
|
3377
2967
|
}, [state.page]);
|
3378
2968
|
const handlePageChange = (pageNumber) => {
|
3379
2969
|
setState((prev) => __spreadProps(__spreadValues({}, prev), { page: pageNumber }));
|
3380
2970
|
fetchData(pageNumber, startDate, endDate);
|
3381
2971
|
};
|
3382
|
-
return /* @__PURE__ */
|
2972
|
+
return /* @__PURE__ */ React14.createElement(React14.Fragment, null, /* @__PURE__ */ React14.createElement("style", null, `
|
3383
2973
|
.react-datepicker-wrapper:first-child {
|
3384
2974
|
margin-right: 10px;
|
3385
2975
|
}
|
3386
|
-
`), /* @__PURE__ */
|
2976
|
+
`), /* @__PURE__ */ React14.createElement("div", { className: "mb-5" }, /* @__PURE__ */ React14.createElement("div", null, /* @__PURE__ */ React14.createElement("div", { style: { display: "flex" } }, /* @__PURE__ */ React14.createElement("div", { style: { display: "flex", marginRight: "10px", marginTop: "25px" } }, /* @__PURE__ */ React14.createElement(
|
3387
2977
|
DatePicker,
|
3388
2978
|
{
|
3389
2979
|
selected: startDate,
|
@@ -3394,7 +2984,7 @@ function CompletedTransactions(props) {
|
|
3394
2984
|
placeholderText: "Start Date",
|
3395
2985
|
required: true
|
3396
2986
|
}
|
3397
|
-
), /* @__PURE__ */
|
2987
|
+
), /* @__PURE__ */ React14.createElement(
|
3398
2988
|
DatePicker,
|
3399
2989
|
{
|
3400
2990
|
selected: endDate,
|
@@ -3405,7 +2995,7 @@ function CompletedTransactions(props) {
|
|
3405
2995
|
minDate: startDate,
|
3406
2996
|
placeholderText: "End Date"
|
3407
2997
|
}
|
3408
|
-
)), /* @__PURE__ */
|
2998
|
+
)), /* @__PURE__ */ React14.createElement("button", { className: "export-btn1", onClick: handleExport }, "Export")), /* @__PURE__ */ React14.createElement(
|
3409
2999
|
DatatableWrapper,
|
3410
3000
|
{
|
3411
3001
|
body: dataList,
|
@@ -3417,15 +3007,15 @@ function CompletedTransactions(props) {
|
|
3417
3007
|
}
|
3418
3008
|
}
|
3419
3009
|
},
|
3420
|
-
/* @__PURE__ */
|
3421
|
-
/* @__PURE__ */
|
3422
|
-
/* @__PURE__ */
|
3010
|
+
/* @__PURE__ */ React14.createElement(Row, { className: "mb-4 p-2" }, /* @__PURE__ */ React14.createElement(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__ */ React14.createElement(PaginationOptions, null)), /* @__PURE__ */ React14.createElement(Col, { xs: 12, lg: 4, className: "d-flex flex-col justify-content-end align-items-end" }), /* @__PURE__ */ React14.createElement(Col, { xs: 12, sm: 6, lg: 4, className: "d-flex flex-col justify-content-end align-items-end" }, /* @__PURE__ */ React14.createElement(Filter, null))),
|
3011
|
+
/* @__PURE__ */ React14.createElement(Row, null, /* @__PURE__ */ React14.createElement("div", { className: "responsive-tbl" }, /* @__PURE__ */ React14.createElement(Table, null, /* @__PURE__ */ React14.createElement(TableHeader, null), /* @__PURE__ */ React14.createElement(TableBody, null)))),
|
3012
|
+
/* @__PURE__ */ React14.createElement(PaginationPg, { totalPages: state.totalPage, onPageChange: handlePageChange, current: state.page })
|
3423
3013
|
))));
|
3424
3014
|
}
|
3425
3015
|
|
3426
3016
|
// src/app/components/Payment/TockenizPay.tsx
|
3427
|
-
import
|
3428
|
-
import { Modal as
|
3017
|
+
import React15, { useState as useState9 } from "react";
|
3018
|
+
import { Modal as Modal6 } from "react-bootstrap";
|
3429
3019
|
import { toast as toast5, ToastContainer as ToastContainer3 } from "react-toastify";
|
3430
3020
|
import forge2 from "node-forge";
|
3431
3021
|
import creditCardType from "credit-card-type";
|
@@ -3656,7 +3246,7 @@ function TockenizPay() {
|
|
3656
3246
|
}
|
3657
3247
|
return "";
|
3658
3248
|
}
|
3659
|
-
return /* @__PURE__ */
|
3249
|
+
return /* @__PURE__ */ React15.createElement("div", null, /* @__PURE__ */ React15.createElement(ToastContainer3, null), /* @__PURE__ */ React15.createElement(
|
3660
3250
|
"button",
|
3661
3251
|
{
|
3662
3252
|
className: "export-btn mt-4",
|
@@ -3664,8 +3254,8 @@ function TockenizPay() {
|
|
3664
3254
|
onClick: () => handlePaymentClick()
|
3665
3255
|
},
|
3666
3256
|
"TokenizePay"
|
3667
|
-
), /* @__PURE__ */
|
3668
|
-
|
3257
|
+
), /* @__PURE__ */ React15.createElement(
|
3258
|
+
Modal6,
|
3669
3259
|
{
|
3670
3260
|
show: state.show,
|
3671
3261
|
onHide: () => setState((prev) => __spreadProps(__spreadValues({}, prev), {
|
@@ -3673,8 +3263,8 @@ function TockenizPay() {
|
|
3673
3263
|
})),
|
3674
3264
|
centered: true
|
3675
3265
|
},
|
3676
|
-
/* @__PURE__ */
|
3677
|
-
/* @__PURE__ */
|
3266
|
+
/* @__PURE__ */ React15.createElement(Modal6.Header, { closeButton: true }),
|
3267
|
+
/* @__PURE__ */ React15.createElement(Modal6.Body, null, /* @__PURE__ */ React15.createElement("div", { className: "payment-popup" }, /* @__PURE__ */ React15.createElement("div", { className: "row" }, /* @__PURE__ */ React15.createElement("div", { className: "" }, /* @__PURE__ */ React15.createElement("div", { id: "Checkout", className: "inline" }, /* @__PURE__ */ React15.createElement("div", { className: "header" }, /* @__PURE__ */ React15.createElement("h1", null, "Pay")), /* @__PURE__ */ React15.createElement("form", { id: "PaymentForm", className: "payment-form" }, /* @__PURE__ */ React15.createElement("div", { className: "form-group" }, /* @__PURE__ */ React15.createElement("label", null, "Name on card"), /* @__PURE__ */ React15.createElement(
|
3678
3268
|
"input",
|
3679
3269
|
{
|
3680
3270
|
id: "NameOnCard",
|
@@ -3683,13 +3273,13 @@ function TockenizPay() {
|
|
3683
3273
|
maxLength: 100,
|
3684
3274
|
placeholder: "Name"
|
3685
3275
|
}
|
3686
|
-
), /* @__PURE__ */
|
3276
|
+
), /* @__PURE__ */ React15.createElement(
|
3687
3277
|
"span",
|
3688
3278
|
{
|
3689
3279
|
id: "NameOnCard-error",
|
3690
3280
|
style: { color: "red", display: "none" }
|
3691
3281
|
}
|
3692
|
-
)), /* @__PURE__ */
|
3282
|
+
)), /* @__PURE__ */ React15.createElement("div", { className: "form-group" }, /* @__PURE__ */ React15.createElement(
|
3693
3283
|
"input",
|
3694
3284
|
{
|
3695
3285
|
"data-token": "card_number",
|
@@ -3700,7 +3290,7 @@ function TockenizPay() {
|
|
3700
3290
|
placeholder: "0000 0000 0000 0000",
|
3701
3291
|
onChange: handleCardNumberChange
|
3702
3292
|
}
|
3703
|
-
), state.error && /* @__PURE__ */
|
3293
|
+
), state.error && /* @__PURE__ */ React15.createElement("div", { style: { color: "red" } }, state.error)), /* @__PURE__ */ React15.createElement("div", { className: "expiry-date-group form-group" }, /* @__PURE__ */ React15.createElement(
|
3704
3294
|
"input",
|
3705
3295
|
{
|
3706
3296
|
"data-token": "exp_month",
|
@@ -3711,14 +3301,14 @@ function TockenizPay() {
|
|
3711
3301
|
maxLength: 2,
|
3712
3302
|
onChange: (e) => handleMonthChange(e)
|
3713
3303
|
}
|
3714
|
-
), isValidMonth && /* @__PURE__ */
|
3304
|
+
), isValidMonth && /* @__PURE__ */ React15.createElement(
|
3715
3305
|
"span",
|
3716
3306
|
{
|
3717
3307
|
id: "card_number-error",
|
3718
3308
|
style: { color: "red", fontSize: "15px" }
|
3719
3309
|
},
|
3720
3310
|
"Please write month only 1 to 12"
|
3721
|
-
)), /* @__PURE__ */
|
3311
|
+
)), /* @__PURE__ */ React15.createElement("div", { className: "expiry-date-group form-group" }, /* @__PURE__ */ React15.createElement(
|
3722
3312
|
"input",
|
3723
3313
|
{
|
3724
3314
|
"data-token": "exp_year",
|
@@ -3729,7 +3319,7 @@ function TockenizPay() {
|
|
3729
3319
|
value: state.year,
|
3730
3320
|
onChange: (e) => handleYearChange(e)
|
3731
3321
|
}
|
3732
|
-
), state.yearError && /* @__PURE__ */
|
3322
|
+
), state.yearError && /* @__PURE__ */ React15.createElement("span", { id: "exp_year-error", style: { color: "red" } }, state.yearError)), /* @__PURE__ */ React15.createElement("div", { className: "security-code-group form-group" }, /* @__PURE__ */ React15.createElement("div", { className: "input-container" }, /* @__PURE__ */ React15.createElement(
|
3733
3323
|
"input",
|
3734
3324
|
{
|
3735
3325
|
"data-token": "cvv",
|
@@ -3740,7 +3330,7 @@ function TockenizPay() {
|
|
3740
3330
|
placeholder: "CVV",
|
3741
3331
|
onChange: (e) => handleCVVChange(e)
|
3742
3332
|
}
|
3743
|
-
), /* @__PURE__ */
|
3333
|
+
), /* @__PURE__ */ React15.createElement("i", { id: "cvc", className: "fa fa-question-circle" }), state.cvvError && /* @__PURE__ */ React15.createElement("span", { id: "cvv-error", style: { color: "red" } }, state.cvvError)), /* @__PURE__ */ React15.createElement("div", { className: "cvc-preview-container two-card hide" }, /* @__PURE__ */ React15.createElement("div", { className: "amex-cvc-preview" }), /* @__PURE__ */ React15.createElement("div", { className: "visa-mc-dis-cvc-preview" }))), /* @__PURE__ */ React15.createElement("div", { className: "zip-code-group form-group" }, /* @__PURE__ */ React15.createElement("label", null, "Postal code"), /* @__PURE__ */ React15.createElement("div", { className: "input-container" }, /* @__PURE__ */ React15.createElement(
|
3744
3334
|
"input",
|
3745
3335
|
{
|
3746
3336
|
id: "ZIPCode",
|
@@ -3752,7 +3342,7 @@ function TockenizPay() {
|
|
3752
3342
|
value: state.zip,
|
3753
3343
|
onChange: (e) => handleZIP(e)
|
3754
3344
|
}
|
3755
|
-
), /* @__PURE__ */
|
3345
|
+
), /* @__PURE__ */ React15.createElement(
|
3756
3346
|
"a",
|
3757
3347
|
{
|
3758
3348
|
tabIndex: 0,
|
@@ -3762,15 +3352,15 @@ function TockenizPay() {
|
|
3762
3352
|
"data-placement": "left",
|
3763
3353
|
"data-content": "Enter the ZIP/Postal code for your credit card billing address."
|
3764
3354
|
},
|
3765
|
-
/* @__PURE__ */
|
3766
|
-
), /* @__PURE__ */
|
3355
|
+
/* @__PURE__ */ React15.createElement("i", { className: "fa fa-question-circle" })
|
3356
|
+
), /* @__PURE__ */ React15.createElement(
|
3767
3357
|
"span",
|
3768
3358
|
{
|
3769
3359
|
id: "ZIPCode-error",
|
3770
3360
|
style: { color: "red", display: "none" }
|
3771
3361
|
},
|
3772
3362
|
"This field is required"
|
3773
|
-
))), /* @__PURE__ */
|
3363
|
+
))), /* @__PURE__ */ React15.createElement("div", { className: "form-group top-amnt" }, /* @__PURE__ */ React15.createElement("div", null, /* @__PURE__ */ React15.createElement("label", null, "Payment amount"), /* @__PURE__ */ React15.createElement("div", { className: "amount-placeholder" }, /* @__PURE__ */ React15.createElement(
|
3774
3364
|
"input",
|
3775
3365
|
{
|
3776
3366
|
id: "Amount",
|
@@ -3782,7 +3372,7 @@ function TockenizPay() {
|
|
3782
3372
|
onChange: (e) => handleAmount(e),
|
3783
3373
|
onBlur: handleAmountBlur
|
3784
3374
|
}
|
3785
|
-
))), /* @__PURE__ */
|
3375
|
+
))), /* @__PURE__ */ React15.createElement("div", { className: "card-row" }, /* @__PURE__ */ React15.createElement("span", { className: "visa" }), /* @__PURE__ */ React15.createElement("span", { className: "mastercard" }), /* @__PURE__ */ React15.createElement("span", { className: "amex" }), /* @__PURE__ */ React15.createElement("span", { className: "discover" }))), /* @__PURE__ */ React15.createElement(
|
3786
3376
|
"button",
|
3787
3377
|
{
|
3788
3378
|
type: "button",
|
@@ -3791,7 +3381,7 @@ function TockenizPay() {
|
|
3791
3381
|
className: "btn btn-block btn-success submit-button"
|
3792
3382
|
},
|
3793
3383
|
"Submit"
|
3794
|
-
)), /* @__PURE__ */
|
3384
|
+
)), /* @__PURE__ */ React15.createElement("div", { className: "powerd-by-part" }, /* @__PURE__ */ React15.createElement(
|
3795
3385
|
"svg",
|
3796
3386
|
{
|
3797
3387
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -3799,14 +3389,14 @@ function TockenizPay() {
|
|
3799
3389
|
height: "20",
|
3800
3390
|
viewBox: "0 0 26 26"
|
3801
3391
|
},
|
3802
|
-
/* @__PURE__ */
|
3392
|
+
/* @__PURE__ */ React15.createElement(
|
3803
3393
|
"path",
|
3804
3394
|
{
|
3805
3395
|
fill: "currentColor",
|
3806
3396
|
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"
|
3807
3397
|
}
|
3808
3398
|
)
|
3809
|
-
), "Secure payments powered by Fractal", /* @__PURE__ */
|
3399
|
+
), "Secure payments powered by Fractal", /* @__PURE__ */ React15.createElement(
|
3810
3400
|
"img",
|
3811
3401
|
{
|
3812
3402
|
src: "https://ui.fractalpay.com/favicon.ico",
|
@@ -3818,13 +3408,13 @@ function TockenizPay() {
|
|
3818
3408
|
}
|
3819
3409
|
|
3820
3410
|
// src/app/components/Payment/GetPaymentDynamic.tsx
|
3821
|
-
import
|
3822
|
-
import { Modal as
|
3411
|
+
import React17, { useEffect as useEffect4, useState as useState10 } from "react";
|
3412
|
+
import { Modal as Modal7 } from "react-bootstrap";
|
3823
3413
|
|
3824
3414
|
// src/app/components/Loader/MyLoadingAnimation.tsx
|
3825
|
-
import
|
3415
|
+
import React16 from "react";
|
3826
3416
|
function MyLoadingAnimation() {
|
3827
|
-
return /* @__PURE__ */
|
3417
|
+
return /* @__PURE__ */ React16.createElement(React16.Fragment, null, /* @__PURE__ */ React16.createElement(LoaderStyle_default, null), /* @__PURE__ */ React16.createElement("div", { className: "loading-animation" }, /* @__PURE__ */ React16.createElement("div", { className: "spinner" })));
|
3828
3418
|
}
|
3829
3419
|
|
3830
3420
|
// src/app/components/Payment/GetPaymentDynamic.tsx
|
@@ -3851,7 +3441,7 @@ function GetPaymentDynamic(props) {
|
|
3851
3441
|
console.error(ErrorText.fractalpayclientidrequired);
|
3852
3442
|
}
|
3853
3443
|
};
|
3854
|
-
|
3444
|
+
useEffect4(() => {
|
3855
3445
|
if (!fractalpayClientKey) {
|
3856
3446
|
console.error(ErrorText.fractalpayclientidrequired);
|
3857
3447
|
}
|
@@ -3874,7 +3464,7 @@ function GetPaymentDynamic(props) {
|
|
3874
3464
|
const handleLoad = () => {
|
3875
3465
|
setLoading(false);
|
3876
3466
|
};
|
3877
|
-
|
3467
|
+
useEffect4(() => {
|
3878
3468
|
const messageListener = (event) => {
|
3879
3469
|
var _a, _b;
|
3880
3470
|
const response = (_b = (_a = event == null ? void 0 : event.data) == null ? void 0 : _a.other) == null ? void 0 : _b.data;
|
@@ -3889,7 +3479,7 @@ function GetPaymentDynamic(props) {
|
|
3889
3479
|
window.removeEventListener("message", messageListener);
|
3890
3480
|
};
|
3891
3481
|
}, []);
|
3892
|
-
return /* @__PURE__ */
|
3482
|
+
return /* @__PURE__ */ React17.createElement("div", null, /* @__PURE__ */ React17.createElement("button", { className: "paymentBtn", onClick: handleShow }, "Pay"), /* @__PURE__ */ React17.createElement(Modal7, { show: show && iframeLoaded, id: "modal-pay", className: "modal-lg", onHide: handleClose }, /* @__PURE__ */ React17.createElement(Modal7.Header, { closeButton: true }), /* @__PURE__ */ React17.createElement(Modal7.Body, null, loading && /* @__PURE__ */ React17.createElement(MyLoadingAnimation, null), /* @__PURE__ */ React17.createElement(
|
3893
3483
|
"iframe",
|
3894
3484
|
{
|
3895
3485
|
src: `${baseUrl}widget-form/${amount}?fractalpay_public_key=${fractalpayClientKey}&order_id=${orderID}`,
|