@pinerohit11/testwidget 0.1.61 → 0.1.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.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 React4, { useState, useEffect as useEffect2 } from "react";
23
+ import React6, { useState, useEffect } from "react";
30
24
 
31
25
  // src/app/components/Loader/Loader.tsx
32
26
  import React2 from "react";
@@ -157,926 +151,596 @@ var Loader = (props) => {
157
151
  };
158
152
  var Loader_default = Loader;
159
153
 
160
- // src/app/components/RequestPayment/RequestPayment.tsx
161
- import { Button, Form, Modal, Stack } from "react-bootstrap";
162
-
163
154
  // src/app/components/RequestPayment/RequestPaymentstyles.tsx
164
155
  import React3 from "react";
165
156
  var RequestPaymentstyles = (props) => {
166
157
  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
- }
158
+ .paymentBtn {
159
+ background-color: black;
160
+ border: none;
161
+ color: white;
162
+ padding: 15px 32px;
163
+ text-align: center;
164
+ text-decoration: none;
165
+ display: inline-block;
166
+ font-size: 16px;
167
+ margin: 4px 2px;
168
+ cursor: pointer;
169
+ border-radius: 180px;
170
+ /* width: auto; */
171
+ }
172
+ /*****************************************REDESIGNING STYLES **************************************/
210
173
 
211
- .modal-header {
212
- border-bottom: 0 !important;
213
- padding-top: 0 !important;
174
+ .request-payment-amount {
175
+ color: #161616;
176
+ text-align: center;
177
+ font-family: Inter;
178
+ font-size: 42px;
179
+ font-style: normal;
180
+ font-weight: 600;
181
+ text-transform: uppercase;
182
+ margin: 8px 0px !important;
214
183
  }
215
184
 
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;
185
+ .request-payment-orderid {
186
+ color: #727272;
187
+ text-align: center;
188
+ font-family: Inter;
189
+ font-size: 14px;
190
+ font-style: normal;
191
+ font-weight: 500;
192
+ margin: 0px;
232
193
  }
233
194
 
234
- .input-error-container {
235
- flex: 1;
195
+ .request-payment-pre-auth-merchantname {
196
+ color: #727272;
197
+ text-align: center;
198
+ font-family: Inter;
199
+ font-size: 14px;
200
+ font-style: normal;
201
+ font-weight: 500;
202
+ margin-top: 10px !important;
203
+ margin-bottom: 0px !important;
236
204
  }
237
205
 
238
- .paymentBtn {
239
- margin-left: 10px;
206
+ .request-payment-merchantname {
207
+ color: #727272;
208
+ text-align: center;
209
+ font-family: Inter;
210
+ font-size: 14px;
211
+ font-style: normal;
212
+ font-weight: 500;
213
+ margin-top: 20px !important;
214
+ margin-bottom: 0px !important;
240
215
  }
241
216
 
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;
217
+ .request-payment-close-popup {
218
+ position: absolute;
219
+ right: 20px;
220
+ top: 20px;
221
+ cursor: pointer;
252
222
  }
253
223
 
254
- #PayButton:hover {
255
- background-color: #61c699 !important;
224
+ .request-payment-amount-detail {
225
+ padding: 32px 0px;
226
+ border-bottom: 1px solid #E0DFE2;
256
227
  }
257
228
 
258
- #PayButton:active {
259
- background-color: #61c699 !important;
229
+ .request-payment-popup-container {
230
+ padding: 0px !important;
231
+ border-radius: 12px !important;
260
232
  }
261
233
 
262
- #PayButton:disabled {
263
- background: rgb(172, 44, 170) !important;
264
- color: #fff !important;
234
+ .request-payment-input-form {
235
+ padding: 24px 48px 32px 48px;
265
236
  }
266
237
 
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;
238
+ .request-payment-input-label {
239
+ color: #727272;
240
+ font-family: Inter;
273
241
  font-size: 12px;
242
+ font-style: normal;
243
+ font-weight: 500;
244
+ margin-bottom: 6px !important;
245
+ text-align: start !important;
246
+ width: 100% !important;
247
+ margin-bottom: 6px !important;
248
+ text-transform: uppercase;
274
249
  }
275
250
 
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;
251
+ .request-payment-input-box {
252
+ border-radius: 8px;
253
+ border: 1px solid #E0DFE2;
254
+ padding: 11px;
291
255
  display: block;
256
+ width: 100%;
257
+ color: #161616;
258
+ margin-top: 6px !important;
259
+ font-family: Inter;
260
+ font-size: 14px;
261
+ font-style: normal;
262
+ font-weight: 500;
292
263
  }
293
264
 
294
- .container {
295
- margin-top: 10px;
265
+ .request-payment-list-div {
266
+ margin-bottom: 12px;
296
267
  }
297
268
 
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; */
269
+ .request-payment-submit-button {
270
+ border-radius: 80px;
271
+ background: #161616;
272
+ height: 48px;
273
+ padding: 12px 24px;
274
+ margin-top: 20px;
275
+ color: #fff;
276
+ width: 100% !important;
277
+ border: none !important;
278
+ font-family: Inter;
279
+ font-size: 16px;
280
+ font-style: normal;
281
+ font-weight: 500;
282
+ cursor: pointer;
306
283
  }
307
284
 
308
- .modal-content .container {
309
- width: 100%;
285
+ .request-payment-submit-button:disabled {
286
+ cursor: not-allowed;
310
287
  }
311
288
 
312
- .powerd-by-part {
289
+ .request-payment-fractal-powerd-by {
290
+ color: #727272;
291
+ font-family: Inter;
292
+ font-size: 14px;
293
+ font-style: normal;
294
+ font-weight: 500;
295
+ margin-top: 16px;
313
296
  display: flex;
314
- justify-content: center;
297
+ text-align: center;
315
298
  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;
299
+ justify-content: center;
300
+ gap: 6px;
353
301
  }
354
302
 
355
- .ButtonGroup__root.btn-group button:hover,
356
- .ButtonGroup__root.btn-group button:focus {
357
- background: #333 !important;
303
+ .request-payment-fractal-powerd-by span {
304
+ color: #61C699;
358
305
  }
359
306
 
360
- .input-group button {
361
- background: #000;
362
- border: 0;
363
- margin: 0 5px;
364
- border-radius: 0 4px 4px 0 !important;
307
+ .request-payment-success-container {
308
+ display: flex;
309
+ padding: 120px 48px 32px 48px;
310
+ flex-direction: column;
311
+ justify-content: center;
312
+ align-items: center;
365
313
  }
366
314
 
367
- .input-group button:hover,
368
- .input-group button:focus {
369
- background: #333 !important;
315
+ .request-payment-success-tick {
316
+ border-radius: 1000px;
317
+ background: rgba(97, 198, 153, 0.14);
318
+ display: flex;
319
+ width: 60px;
320
+ height: 60px;
321
+ justify-content: center;
322
+ align-items: center;
370
323
  }
371
324
 
372
- .payment-suc {
325
+ .request-payment-success-text {
326
+ color: #161616;
373
327
  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;
328
+ font-family: Inter;
329
+ font-size: 32px;
330
+ font-style: normal;
384
331
  font-weight: 500;
385
- padding: 15px 0;
332
+ line-height: 36px;
333
+ /* 112.5% */
334
+ letter-spacing: -0.64px;
335
+ margin-top: 20px;
336
+ margin-bottom: 5px !important;
386
337
  }
387
338
 
388
- .payment-suc p {
339
+ .request-payment-success-subtext {
340
+ color: #727272;
341
+ text-align: center;
342
+ font-family: Inter;
389
343
  font-size: 14px;
390
- color: #9a92a6;
344
+ font-style: normal;
391
345
  font-weight: 500;
346
+ line-height: 18px;
347
+ letter-spacing: -0.28px;
348
+ margin-bottom: 6rem !important;
349
+ margin-top: 8px !important;
392
350
  }
393
351
 
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 {
352
+ .request-payment-success-btn-div {
420
353
  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
- }
354
+ align-items: flex-start;
355
+ justify-content: center;
356
+ gap: 8px;
451
357
  }
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
358
 
468
- .payment-row {
359
+ .request-payment-success-tick-div {
469
360
  display: flex;
361
+ justify-content: center;
470
362
  align-items: center;
471
- margin-bottom: 20px;
472
- }
473
-
474
- .payment-row label {
475
- width: 150px;
476
- font-weight: bold;
477
- margin-right: 10px;
363
+ margin-top: 32px;
478
364
  }
479
365
 
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 {
366
+ .request-payment-success-btn1 {
367
+ cursor: pointer;
368
+ border-radius: 80px;
369
+ border: 1px solid #E0DFE2;
489
370
  display: flex;
490
- flex-direction: column;
491
- border-radius: 10px;
492
- margin-top: 10px;
493
- }
494
-
495
- .input-wrapper {
496
- flex: 1;
371
+ padding: 12px 32px;
372
+ justify-content: center;
373
+ align-items: center;
374
+ gap: 6px;
375
+ background-color: #fff;
497
376
  }
498
377
 
499
- .button-wrapper {
500
- margin-left: 10px;
501
- }
502
- .input-container {
378
+ .request-payment-success-btn2 {
379
+ border-radius: 80px;
380
+ cursor: pointer;
381
+ border: 1px solid #E0DFE2;
503
382
  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");
383
+ padding: 12px 32px;
384
+ justify-content: center;
385
+ align-items: center;
386
+ gap: 6px;
387
+ background-color: #161616;
388
+ color: #fff;
389
+ font-family: Inter;
390
+ font-size: 14px;
391
+ font-style: normal;
392
+ font-weight: 500;
568
393
  }
569
394
 
570
- .expiry-date-group {
571
- float: left;
572
- width: 30%;
395
+ .request-payment-error-msg{
396
+ color: #dc3545;
397
+ font-family: Inter;
398
+ font-size: 12px;
573
399
  }
400
+ `);
401
+ };
402
+ var RequestPaymentstyles_default = RequestPaymentstyles;
574
403
 
575
- .expiry-date-group input {
576
- width: calc(100% + 1px);
577
- border-top-right-radius: 0;
578
- border-bottom-right-radius: 0;
579
- }
404
+ // src/app/components/baseurl.ts
405
+ var baseUrl = "https://staging-widget.fractalpay.com/";
580
406
 
581
- .expiry-date-group input:focus {
582
- position: relative;
583
- z-index: 10;
584
- }
407
+ // src/app/components/Errortext.ts
408
+ var ErrorText = {
409
+ namerequired: "Full Name is required",
410
+ amountrequired: "Amount is required",
411
+ amountpositive: "Amount should be positive",
412
+ amountzero: "Amount should not be zero",
413
+ amountenter: "Please enter an amount",
414
+ amountvalid: "Please enter a valid amount",
415
+ phoneoremailrequired: "Phone or Email is required",
416
+ invalidemail: "Please enter a valid email",
417
+ invalidemailformat: "Invalid email format",
418
+ onlylettersallowed: "Only letters are allowed",
419
+ phonenumberlength: "Phone number should be 10 digits",
420
+ phonenumberrequired: "Please enter a phone number",
421
+ // phonenumbervalid:'Please enter a valid 10-digit phone number',
422
+ phonenumbervalid: "Please enter a valid phone number",
423
+ phonenumbervalidnumberonly: "Please enter a valid phone number (numbers only)",
424
+ orderidenter: "Please enter an order ID",
425
+ orderidrequired: "Order ID is required",
426
+ networkresponseerror: "Network response was not ok",
427
+ anerroroccured: "An error occurred. Please try again.",
428
+ montherror: "Please write month only 1 to 12",
429
+ fieldrequired: "This field is required",
430
+ fractalpayclientidrequired: "Fractalpay client key is missing or empty."
431
+ };
585
432
 
586
- .security-code-group {
587
- float: right;
588
- width: 40%;
589
- position: relative;
590
- }
433
+ // src/app/components/CustomModal/CustomModal2.tsx
434
+ import React5 from "react";
591
435
 
592
- .security-code-group input {
593
- border-top-left-radius: 0;
594
- border-bottom-left-radius: 0;
436
+ // src/app/components/CustomModal/CustomModal2styles.tsx
437
+ import React4 from "react";
438
+ var CustomModal2styles = (props) => {
439
+ return /* @__PURE__ */ React4.createElement("style", null, `
440
+ .fractal-input::placeholder {
441
+ color: #35254D;
442
+ opacity: 1;
443
+ font-size: 15px;
595
444
  }
596
445
 
597
- .zip-code-group {
598
- clear: both;
446
+ .fractal-input::-ms-input-placeholder {
447
+ color: #35254D;
448
+ font-size: 15px;
599
449
  }
600
450
 
601
- #submitButton {
602
- outline: 0 !important;
603
- height: 46px;
604
- font-size: 16px;
605
- background-color: #161616 !important;
606
- border: none;
607
- display: block;
608
- width: 100%;
609
- border-radius: 180px;
610
- }
611
- #submitRequestButton {
612
- outline: 0 !important;
613
- height: 46px;
614
- font-size: 16px;
615
- background-color: #161616 !important;
616
- border: none;
617
- display: block;
618
- width: 100%;
619
- border-radius: 180px;
620
- }
621
- #PayButton {
622
- outline: 0 !important;
623
- height: 46px;
624
- font-size: 16px;
625
- background-color: #161616 !important;
451
+ .trigger{
452
+ text-align: center;
453
+ padding: 7px 13px;
454
+ background: #3e3e3e;
455
+ color: #fff;
456
+ font-size: 15px;
457
+ outline: none;
626
458
  border: none;
627
- display: block;
628
- width: 100%;
629
- border-radius: 180px;
630
- }
631
-
632
- #PayButton:hover {
633
- background-color: #61c699 !important;
634
- }
635
-
636
- #PayButton:active {
637
- background-color: #61c699 !important;
638
- }
639
-
640
- #PayButton:disabled {
641
- background: rgb(172, 44, 170) !important;
642
- color: #fff !important;
643
- }
644
-
645
- .form-control {
646
- color: #35254d;
459
+ border-radius: 5px;
460
+ font-family: cursive;
647
461
  }
648
462
 
649
- .container {
650
- margin-top: 10px;
651
- }
463
+ .fractal-popup {
464
+ position: fixed;
465
+ z-index: 9999;
466
+ top: 0;
467
+ right: 0;
468
+ bottom: 0;
469
+ left: 0;
652
470
 
653
- #Checkout {
654
- z-index: 100001;
655
471
  width: 100%;
656
472
  height: 100%;
657
- min-height: 100%;
658
- background: 0 0 #ffffff;
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 {
473
+ background-color: rgba(0, 0, 0, 0.5);
474
+ transition: visibility 0s linear 0.25s, opacity 0.25s 0s, transform 0.25s;
667
475
  display: flex;
668
- /* Enables Flexbox */
669
476
  justify-content: center;
670
- /* Centers content horizontally */
671
477
  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
478
  }
700
479
 
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
- }
709
-
710
- .input-container {
480
+ .fractal-popup-content {
481
+ background-color: white;
482
+ padding:20px;
483
+ border-radius: 0.5rem;
484
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
485
+ box-sizing: border-box;
711
486
  position: relative;
712
487
  }
713
488
 
714
- .input-container input {
715
- padding-right: 25px;
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
- }
489
+ @media only screen and (min-width: 600px){
490
+ .fractal-popup-content {
491
+ width: 500px;
728
492
 
729
- #zipcode .zip-tip {
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;
493
+ }
742
494
  }
743
-
744
- #zipcode .zip-tip:before {
745
- width: 0;
746
- height: 0;
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: "";
495
+ @media only screen and (max-width: 600px){
496
+ .fractal-popup-content {
497
+ width: 350px;
498
+ }
756
499
  }
757
-
758
- #zipcode:hover .zip-tip {
759
- display: block;
500
+ @media only screen and (max-width: 450px){
501
+ .fractal-popup-content {
502
+ width: 300px;
503
+ }
760
504
  }
761
-
762
- .input-container > i,
763
- a[role="button"] {
764
- color: #d3d3d3;
765
- width: 25px;
766
- height: 30px;
767
- line-height: 30px;
768
- font-size: 16px;
505
+ .close-popup {
506
+ max-height:25px;
507
+ width:25px;
508
+ height: 25px;
509
+ color: #999;
769
510
  position: absolute;
770
- top: 5px;
771
- right: 6px;
772
- cursor: pointer;
511
+ top: 2px;
512
+ right: 4px;
513
+ z-index: 7;
773
514
  text-align: center;
774
- }
775
-
776
- .input-container > i:hover,
777
- a[role="button"]:hover {
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 {
515
+ cursor: pointer;
516
+ border-radius: 0.25rem;
517
+ font-size: 30px;
518
+ line-height: 30px;
799
519
  display: flex;
800
- margin-bottom: 10px;
801
520
  align-items: center;
802
- justify-content: space-between;
803
- }
804
-
805
- .amtleft {
806
- text-align: center;
807
- }
808
-
809
- .amtleft span {
810
- color: #35254d;
811
- margin: 0 -5px;
812
- }
813
-
814
- .card-row {
815
- text-align: right;
816
- margin: 22px 0 0 0;
817
- max-width: 85px;
818
- line-height: 20px;
819
- }
820
-
821
- .yer {
822
- border-radius: 0;
823
- }
824
-
825
- .card-row span {
826
- width: 33px;
827
- height: 21px;
828
- margin: 0 2px;
829
- background-repeat: no-repeat;
830
- display: inline-block;
831
- background-size: contain;
832
- }
833
-
834
- .card-image {
835
- background-repeat: no-repeat;
836
- padding-right: 50px;
837
- background-position: right 2px center;
838
- background-size: auto 90%;
521
+ justify-content: center;
839
522
  }
840
523
 
841
- /* .cvc-preview-container {
842
- overflow: hidden;
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;
524
+ .close-popup:hover {
525
+ color: #000;
856
526
  }
857
527
 
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: "";
528
+ .fractal-inpt-list {
529
+ margin-bottom: 15px;
870
530
  }
871
531
 
872
- .security-code-group #cvc:hover .cvc-preview-container {
873
- display: block;
532
+ .fractal-label {
533
+ color: #727272;
534
+ margin-bottom: 3px;
535
+ font-family: "Inter", sans-serif;
536
+ font-weight: 500;
537
+ font-size: 12px;
538
+ display: block;
539
+ text-align: left;
874
540
  }
875
541
 
876
- .cvc-preview-container.two-card div {
877
- width: 50%;
878
- height: 45px;
542
+ .fractal-input {
543
+ display: block;
544
+ width: 100%;
545
+ padding: .320rem .75rem;
546
+ font-size: 1rem;
547
+ font-weight: 400;
548
+ line-height: 1.5;
549
+ color: #35254D;
550
+ appearance: none;
551
+ background-color:#ffffff;
552
+ background-clip: padding-box;
553
+ border:1px solid #dee2e6;
554
+ border-radius: 0.375rem;
555
+ transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
556
+ }
557
+
558
+ .fractal-input:focus {border:#86b7fe 1px solid; outline: none;}
559
+
560
+ .fractal-group {
561
+ position: relative;
562
+ display: flex;
563
+ align-items: stretch;
564
+ width: 100%;
879
565
  }
880
566
 
881
- .cvc-preview-container.two-card div.amex-cvc-preview {
882
- float: right;
567
+ .fractal-group-icons {
568
+ display: flex;
569
+ align-items: center;
570
+ padding: 0.375rem 0.75rem;
571
+ font-size: 1rem;
572
+ font-weight: 400;
573
+ line-height: 1.5;
574
+ color: #212529;
575
+ text-align: center;
576
+ white-space: nowrap;
577
+ background-color: #f8f9fa;
578
+ border:#dee2e6 1px solid;
579
+ border-radius: 0.375rem 0 0 0.375rem ;
883
580
  }
884
581
 
885
- .cvc-preview-container.two-card div.visa-mc-dis-cvc-preview {
886
- float: left;
582
+ .fractal-group .fractal-input{
583
+ border-radius:0 0.375rem 0.375rem 0;
887
584
  }
888
585
 
889
- /* .cvc-preview-container div {
890
- height: 160px;
891
- } */
892
586
 
893
- .amex-cvc-preview {
894
- background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOYAAACOCAYAAAAlzXSMAAAAAXNSR0IArs4c6QAAFg9JREFUeNrtnfeTFcXaxw+ZBZacM0oGySBIXECiSBQQAQFhJaclo+SgAsuS2QVBlrCLSlQBAVGCCpK5XiW4vFVvvXX/gPvDe9+qt+r2Pd9eeuiZ6TkBzuI563erPgVn5jk93T397X76mTndPl+Qv0+v3I/PuHW/MiEkMkBTvnD/3vr883wZdx6NyriX9XXmvax/Zt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4SVMtcUcXvbQ08acUd8eXR8xy1So5MoL5p05Icz1x8/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;
587
+ .pay-button {
588
+ outline: 0;
589
+ height: 46px;
590
+ font-size: 16px;
591
+ background: #ddd;
592
+ border: none;
593
+ display: block;
594
+ color: #fff;
595
+ width: 100%;
596
+ border-radius: 180px;
597
+ margin: 10px 0;
598
+ text-decoration: none;
896
599
  }
897
600
 
898
- .visa-mc-dis-cvc-preview {
899
- background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOYAAACOCAMAAAASE4S+AAAAA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Aa1MVPbpczsk8vT52SHHZCDUxelXxtzW/x4wPx+6cxn+0A2208PX9pB2aONef7xk3JrBjkth4Jysnf9fX1T0Czzmqx+6pcvcel/pJd5RRLXg1p6d0vWvdHKHJCeG2XljLVb5aZS5r2E3A6uTiUu2Km1klLK3CXxZDK5xd6RNYd3St+MTuaryr94G6y92iuy77X+b9rSi/d8usOEyZIXC5gsR7O5MN9bRexvwoQJEyZMmDBhwoQJEyZMmDBhwoT5vzNLLihLJu8CM2+6XGB2meUuMFeYyEf9ysmIqcsUtSuLmQZjGp8pdxafNxtjamIZ1f12MhOrDQ6uXhRLD4/nVb4/S/nx4XRsSeUY8prGtOI0186eKl8Xae3QSOxojTSUgT8BEvkXyqDHONgAAAAASUVORK5CYII=")
900
- center center/contain no-repeat;
901
- }
601
+ .pay-button:hover, .pay-button:focus {background: #333; color: #fff;}
902
602
 
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+WRQElWW2Za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8M0ozBDuspp1e5VE6JA0ZFMKHNZZruYjv5M9UiMJJslg1kLs2qy3mdHZZ/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;
603
+ .fractal-powerd-by {
604
+ display: flex;
605
+ font-size: 12px;
606
+ text-align: center;
607
+ align-items: center;
608
+ justify-content: center;
609
+ margin: 5px 0 20px 0;
912
610
  }
913
611
 
914
- .align-middle {
915
- vertical-align: middle;
916
- }
917
612
 
918
- input {
919
- box-shadow: none !important;
920
- }
921
613
 
922
- .powerd-by-part {
923
- display: flex;
924
- font-size: 12px;
925
- text-align: center;
926
- align-items: center;
927
- justify-content: center;
928
- margin: 5px 0 20px 0;
929
- }
930
614
 
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
615
 
941
- .comp-name {
942
- display: block;
943
- margin-bottom: 8px;
944
- }
945
616
 
946
- .client-logo {
947
- max-width: 140px;
948
- display: block;
949
- margin: auto;
950
- padding: 5px;
951
- }
952
617
 
953
- #qrCode {
954
- text-align: center;
955
- }
618
+ /* ................................................................ */
956
619
 
957
- #qrIcon {
958
- cursor: pointer;
959
- border: 1px solid rgb(252, 252, 252);
960
- padding: 10px;
961
- border-radius: 5px;
962
- background: #ffffff;
620
+ .fractal-pay-popup {
621
+ position: fixed;
622
+ z-index: 9999;
623
+ top: 0;
624
+ right: 0;
625
+ bottom: 0;
626
+ left: 0;
627
+ width: 100%;
628
+ height: 100%;
629
+ background-color: rgba(0, 0, 0, 0.5);
630
+ transition: visibility 0s linear 0.25s, opacity 0.25s 0s, transform 0.25s;
631
+ display: flex;
632
+ justify-content: center;
633
+ align-items: center;
963
634
  }
964
635
 
965
- #target {
966
- display: none;
967
- text-align: center;
968
- transition: all 5s;
969
- padding: 5px;
970
- transition: max-height 0.5s, overflow 0.5s 0.5s;
636
+ .fractal-pay-popup-content {
637
+ background-color: white;
638
+ padding:0px;
639
+ border-radius: 0.5rem;
640
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
641
+ box-sizing: border-box;
642
+ position: relative;
643
+ height: 100%;
644
+ max-height:90%;
645
+ overflow: hidden;
971
646
  }
647
+ .fractal-pay-popup-content iframe{height: 100% !important; }
648
+ .fractal-pay-popup-content iframe body{overflow: hidden;}
649
+ @media only screen and (min-width: 768px){
650
+ .fractal-pay-popup-content iframe{width: 768px;}
651
+ .fractal-pay-popup-content {
652
+ width: 750px;
972
653
 
973
- /* input:focus {
974
- border-color: #acc6db !important;
975
- background-color: #acc6db !important;
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;
654
+ }
982
655
  }
983
-
984
- input[type="number"] {
985
- -moz-appearance: textfield;
656
+ @media only screen and (max-width: 600px){
657
+ .fractal-pay-popup-content {
658
+ width: 350px;
659
+ }
660
+ }
661
+ @media only screen and (max-width: 450px){
662
+ .fractal-pay-popup-content {
663
+ width: 300px;
664
+ }
986
665
  }
987
666
 
988
- `);
667
+ .request-payment-popup-container {
668
+ padding: 0px !important;
669
+ border-radius: 12px !important;
670
+ }
671
+ `);
989
672
  };
990
- var RequestPaymentstyles_default = RequestPaymentstyles;
991
-
992
- // src/app/components/baseurl.ts
993
- var baseUrl = "https://staging-widget.fractalpay.com/";
994
-
995
- // src/app/components/Errortext.ts
996
- var ErrorText = {
997
- namerequired: "Full Name is required",
998
- amountrequired: "Amount is required",
999
- amountpositive: "Amount should be positive",
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."
673
+ var CustomModal2styles_default = CustomModal2styles;
674
+
675
+ // src/app/components/CustomModal/CustomModal2.tsx
676
+ var CustomModal2 = ({
677
+ open,
678
+ onClose,
679
+ children
680
+ }) => {
681
+ if (!open) return null;
682
+ return /* @__PURE__ */ React5.createElement(React5.Fragment, null, /* @__PURE__ */ React5.createElement(CustomModal2styles_default, null), /* @__PURE__ */ React5.createElement("div", { className: "fractal-popup" }, /* @__PURE__ */ React5.createElement("div", { className: "fractal-popup-content request-payment-popup-container" }, children)));
1018
683
  };
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;
684
+ var CustomModal2_default = CustomModal2;
1029
685
 
1030
686
  // src/app/components/RequestPayment/RequestPayment.tsx
687
+ import axios from "axios";
688
+ import { PatternFormat } from "react-number-format";
1031
689
  function RequestPayment(props) {
1032
690
  const fractalpayClientKey = props.fractalpayClientKey;
1033
691
  const [show, setShow] = useState(false);
1034
692
  const [loading, setLoading] = useState(false);
1035
693
  const [errors, setErrors] = useState({});
694
+ const [phone, setPhone] = useState(null);
1036
695
  const [requestDetails, setRequestDetails] = useState({
1037
696
  email: "",
1038
- amount: "",
1039
697
  phone_number: "",
1040
698
  order_id: "",
1041
699
  name: "",
1042
700
  fractalpayPublicKey: fractalpayClientKey
1043
701
  });
1044
- const [showConfirmationModal, setShowConfirmationModal] = useState(false);
702
+ const [amount, setAmount] = useState("");
703
+ const [showConfirmationModal, setShowConfirmationModal] = useState(true);
704
+ const [apiResponse, setApiResponse] = useState(null);
1045
705
  const phoneNumberRegex = (value) => /^\(?\d{3}\)?[-.\s]?\d{3}[-.\s]?\d{4}$/.test(value);
1046
706
  const amoutRegex = /[+-]?([0-9]*[.])?[0-9]+/;
1047
- const positiveAmountRegex = /^[+]?\d+(\.\d+)?$/;
1048
707
  const isValidEmail = (value) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(value);
1049
708
  const isAlpha = (value) => /^[A-Za-z\s]*$/.test(value);
1050
709
  const handleClose = () => {
1051
710
  setShow(false);
1052
- emptyFields();
1053
711
  setErrors({});
1054
712
  };
1055
713
  const handleShow = () => setShow(true);
1056
- const handleCloseConfirmationModal = () => setShowConfirmationModal(false);
1057
- const emptyFields = () => {
714
+ const handleCloseConfirmationModal = () => {
715
+ console.log(apiResponse, "apiresponse");
716
+ handleSubmit(apiResponse);
717
+ setShowConfirmationModal(false);
718
+ };
719
+ function emptyFields() {
1058
720
  setRequestDetails({
1059
721
  email: "",
1060
- amount: "",
1061
722
  phone_number: "",
1062
723
  order_id: "",
1063
724
  name: "",
1064
725
  fractalpayPublicKey: fractalpayClientKey
1065
726
  });
1066
- };
1067
- const handleSubmit = (event) => {
727
+ setAmount("");
728
+ }
729
+ function handleSubmit(event) {
1068
730
  let message = {
1069
731
  type: "preview.compiledcheck",
1070
732
  other: __spreadProps(__spreadValues({}, event), { status: true })
1071
733
  };
1072
- console.log("message: ", message);
1073
734
  window.parent.postMessage(message, "*");
1074
- };
735
+ }
1075
736
  const sendRequestPayment = async () => {
737
+ if (Object.keys(errors).length > 0) {
738
+ return;
739
+ }
1076
740
  setErrors({});
1077
- if (!(requestDetails == null ? void 0 : requestDetails.email) && requestDetails.phone_number && !phoneNumberRegex(requestDetails.phone_number)) {
741
+ if (!(requestDetails == null ? void 0 : requestDetails.email) && phone && !phoneNumberRegex(phone)) {
1078
742
  setErrors((prevErrors) => __spreadProps(__spreadValues({}, prevErrors), {
1079
- phone_number: "Phone number should be 10 digits"
743
+ phone: ErrorText.phonenumbervalid
1080
744
  }));
1081
745
  return;
1082
746
  }
@@ -1087,39 +751,28 @@ function RequestPayment(props) {
1087
751
  setLoading(true);
1088
752
  const formData = {
1089
753
  fractalpayPublicKey: fractalpayClientKey,
1090
- amount: requestDetails.amount,
1091
- phone_number: requestDetails.phone_number,
754
+ amount,
755
+ phone_number: phone,
1092
756
  order_id: requestDetails.order_id,
1093
757
  action: "request",
1094
758
  name: requestDetails.name,
1095
- email: requestDetails.email
759
+ email: requestDetails.email,
760
+ customer_id: (props == null ? void 0 : props.customerId) ? props == null ? void 0 : props.customerId : ""
1096
761
  };
1097
- const response = await fetch(`${baseUrl}create-widget-order`, {
1098
- method: "POST",
1099
- headers: {
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) {
762
+ let response = await axios.post(`${baseUrl}create-widget-order`, formData);
763
+ if ((response == null ? void 0 : response.status) === 200) {
1109
764
  setShowConfirmationModal(true);
1110
765
  setShow(false);
1111
766
  emptyFields();
1112
- handleSubmit(data);
767
+ setApiResponse(response == null ? void 0 : response.data);
1113
768
  }
1114
- console.log(data);
1115
769
  setLoading(false);
1116
770
  } catch (error) {
1117
771
  console.log(error);
1118
772
  setLoading(false);
1119
773
  }
1120
774
  };
1121
- const validateAmount = (amount) => amoutRegex.test(amount);
1122
- const PositiveAmount = (amount) => positiveAmountRegex.test(amount);
775
+ let favicon_logo = baseUrl + "images/logo-img.png";
1123
776
  const handleChange = (e) => {
1124
777
  const { value } = e.target;
1125
778
  const token = e.target.dataset.token;
@@ -1130,216 +783,138 @@ function RequestPayment(props) {
1130
783
  }));
1131
784
  return;
1132
785
  }
1133
- if (token === "phone_number" && !phoneNumberRegex(value)) {
1134
- setErrors((prevErrors) => __spreadProps(__spreadValues({}, prevErrors), {
1135
- [token]: ErrorText.phonenumberlength
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;
786
+ let errorobj = errors;
787
+ if (token === "email" && !phone) {
788
+ delete errorobj.phone;
789
+ setErrors(errorobj);
1162
790
  }
1163
791
  if (value) {
1164
- setErrors(__spreadProps(__spreadValues({}, errors), { [token]: "" }));
792
+ delete errorobj[token];
793
+ setErrors(errorobj);
1165
794
  }
1166
- };
1167
- const handleAmountBlur = () => {
1168
- const value = requestDetails.amount;
1169
- if (value && !value.includes(".")) {
1170
- setRequestDetails((prev) => __spreadProps(__spreadValues({}, prev), {
1171
- amount: `${value}.00`
1172
- }));
795
+ if (token === "email" && !value) {
796
+ delete errorobj[token];
797
+ setErrors(errorobj);
1173
798
  }
1174
799
  };
800
+ const handleAmountChange = (data) => {
801
+ const { value } = data;
802
+ if (Number(value) > 0) {
803
+ let errorobj = errors;
804
+ delete errorobj.amount;
805
+ setErrors(errorobj);
806
+ }
807
+ setAmount(value);
808
+ };
1175
809
  const validateForm = () => {
1176
810
  let newErrors = {};
1177
- if (!requestDetails.name) newErrors.name = ErrorText.namerequired;
1178
- if (!requestDetails.amount) newErrors.amount = ErrorText.amountrequired;
1179
- if (!requestDetails.phone_number && !(requestDetails == null ? void 0 : requestDetails.email)) newErrors.phone_number = ErrorText.phoneoremailrequired;
1180
- if (!requestDetails.email && !requestDetails.phone_number) newErrors.email = ErrorText.phoneoremailrequired;
1181
- if (!requestDetails.phone_number && requestDetails.email && !isValidEmail(requestDetails == null ? void 0 : requestDetails.email)) newErrors.email = ErrorText.invalidemail;
811
+ if (!amount) newErrors.amount = ErrorText.amountrequired;
812
+ if (requestDetails.email && !isValidEmail(requestDetails == null ? void 0 : requestDetails.email)) newErrors.email = ErrorText.invalidemail;
813
+ if (!phone && !(requestDetails == null ? void 0 : requestDetails.email)) newErrors.phone = ErrorText.phoneoremailrequired;
814
+ if (!phone && !(requestDetails == null ? void 0 : requestDetails.email)) newErrors.email = ErrorText.phoneoremailrequired;
815
+ if (!phone && requestDetails.email && !isValidEmail(requestDetails == null ? void 0 : requestDetails.email)) newErrors.email = ErrorText.invalidemail;
816
+ if (props.from === "merchant" && !requestDetails.order_id) newErrors.order_id = ErrorText.orderidrequired;
1182
817
  setErrors(newErrors);
1183
818
  return Object.keys(newErrors).length === 0;
1184
819
  };
1185
- useEffect2(() => {
1186
- if (props.amount) {
1187
- setRequestDetails((prev) => __spreadProps(__spreadValues({}, prev), { amount: props.amount }));
820
+ useEffect(() => {
821
+ if (props) {
822
+ setRequestDetails((prev) => __spreadProps(__spreadValues({}, prev), {
823
+ order_id: props.orderID ? props.orderID : "",
824
+ name: (props == null ? void 0 : props.name) ? props == null ? void 0 : props.name : "",
825
+ email: (props == null ? void 0 : props.email) ? props == null ? void 0 : props.email : ""
826
+ }));
827
+ setAmount(props.amount ? props.amount : "");
828
+ setPhone(props.phone ? `${props.phone}` : null);
829
+ }
830
+ }, [props]);
831
+ const handlePhoneChange = (e) => {
832
+ let value = e == null ? void 0 : e.value;
833
+ if (value && (value == null ? void 0 : value.length) > 0 && (value == null ? void 0 : value.length) !== 10) {
834
+ setErrors((prevErrors) => __spreadProps(__spreadValues({}, prevErrors), {
835
+ phone: ErrorText.phonenumberlength
836
+ }));
837
+ setPhone(value);
838
+ return;
839
+ } else {
840
+ setPhone(value);
1188
841
  }
1189
- }, [props.amount]);
1190
- const handleKeyDown = (e) => {
1191
- if (e.key === "ArrowUp" || e.key === "ArrowDown" || e.key === "ArrowLeft" || e.key === "ArrowRight") {
1192
- e.preventDefault();
842
+ let errorobj = errors;
843
+ delete errorobj.phone;
844
+ if (value && !(requestDetails == null ? void 0 : requestDetails.email)) {
845
+ delete errorobj.email;
1193
846
  }
847
+ setErrors(errorobj);
1194
848
  };
1195
- return /* @__PURE__ */ React4.createElement(React4.Fragment, null, /* @__PURE__ */ React4.createElement(Bootstrapclient_default, null), /* @__PURE__ */ React4.createElement(RequestPaymentstyles_default, null), /* @__PURE__ */ React4.createElement(Loader_default, { loading }), /* @__PURE__ */ React4.createElement(React4.Fragment, null, /* @__PURE__ */ React4.createElement(Button, { className: "paymentBtn", onClick: handleShow }, "Request Payment"), /* @__PURE__ */ React4.createElement(
1196
- Modal,
849
+ function formatAmount(amount2) {
850
+ return new Intl.NumberFormat("en-US", {
851
+ style: "currency",
852
+ currency: "USD",
853
+ minimumFractionDigits: 2,
854
+ maximumFractionDigits: 2
855
+ }).format(Number(amount2));
856
+ }
857
+ return /* @__PURE__ */ React6.createElement(React6.Fragment, null, /* @__PURE__ */ React6.createElement(RequestPaymentstyles_default, null), /* @__PURE__ */ React6.createElement(Loader_default, { loading }), /* @__PURE__ */ React6.createElement(React6.Fragment, null, /* @__PURE__ */ React6.createElement("button", { className: "paymentBtn", onClick: handleShow }, "Request Payment"), /* @__PURE__ */ React6.createElement(
858
+ CustomModal2_default,
1197
859
  {
1198
- show,
1199
- onHide: handleClose,
1200
- size: "lg",
1201
- backdrop: "static",
1202
- keyboard: false
860
+ open: show,
861
+ onClose: () => setShow(false)
1203
862
  },
1204
- /* @__PURE__ */ React4.createElement(Modal.Header, { closeButton: true }, /* @__PURE__ */ React4.createElement(Modal.Title, null, "Request Payment")),
1205
- /* @__PURE__ */ React4.createElement(Modal.Body, { id: "Checkout" }, /* @__PURE__ */ React4.createElement(Form, null, /* @__PURE__ */ React4.createElement(Stack, { gap: 3 }, /* @__PURE__ */ React4.createElement("div", null, /* @__PURE__ */ React4.createElement("label", { htmlFor: "exampleFormControlInput2", className: "form-label" }, "FULL NAME *"), /* @__PURE__ */ React4.createElement(
863
+ /* @__PURE__ */ React6.createElement("div", { className: "request-payment-amount-detail" }, /* @__PURE__ */ React6.createElement("p", { className: "request-payment-merchantname" }, "Pay ", props == null ? void 0 : props.webname), /* @__PURE__ */ React6.createElement("p", { className: "request-payment-amount" }, formatAmount(props == null ? void 0 : props.amount)), (props == null ? void 0 : props.from) === "merchant" && /* @__PURE__ */ React6.createElement("p", { className: "request-payment-orderid" }, requestDetails == null ? void 0 : requestDetails.order_id), /* @__PURE__ */ React6.createElement("span", { className: "request-payment-close-popup", onClick: handleClose }, /* @__PURE__ */ React6.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, /* @__PURE__ */ React6.createElement("g", { "clip-path": "url(#clip0_12425_52336)" }, /* @__PURE__ */ React6.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__ */ React6.createElement("defs", null, /* @__PURE__ */ React6.createElement("clipPath", { id: "clip0_12425_52336" }, /* @__PURE__ */ React6.createElement("rect", { width: "16", height: "16", fill: "white" })))))),
864
+ /* @__PURE__ */ React6.createElement("form", { className: "request-payment-input-form" }, /* @__PURE__ */ React6.createElement("div", { className: "request-payment-list-div" }, /* @__PURE__ */ React6.createElement("label", { htmlFor: "exampleFormControlInput2", className: "request-payment-input-label" }, "FULL NAME"), /* @__PURE__ */ React6.createElement(
1206
865
  "input",
1207
866
  {
1208
- className: "form-control",
867
+ className: "request-payment-input-box",
1209
868
  type: "text",
1210
869
  placeholder: "Full Name",
1211
870
  "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
871
  onChange: handleChange,
1233
- "data-token": "email"
872
+ value: requestDetails == null ? void 0 : requestDetails.name
1234
873
  }
1235
- ), errors.email && /* @__PURE__ */ React4.createElement("small", { className: "text-danger" }, errors.email)), /* @__PURE__ */ React4.createElement("div", { className: "mb-3" }, /* @__PURE__ */ React4.createElement("label", { htmlFor: "exampleFormControlInput2", className: "form-label" }, "AMOUNT *"), /* @__PURE__ */ React4.createElement("div", { className: "input-group" }, /* @__PURE__ */ React4.createElement("span", { className: "input-group-text" }, "$"), /* @__PURE__ */ React4.createElement(
1236
- "input",
874
+ ), errors.name && /* @__PURE__ */ React6.createElement("small", { className: "request-payment-error-msg" }, errors.name)), /* @__PURE__ */ React6.createElement("div", { className: "request-payment-list-div" }, /* @__PURE__ */ React6.createElement("label", { htmlFor: "requestPhoneNumber", className: "request-payment-input-label" }, "Phone Number"), /* @__PURE__ */ React6.createElement(
875
+ PatternFormat,
1237
876
  {
1238
- "data-token": "amount",
1239
- placeholder: "Amount",
1240
- min: 0,
1241
- type: "number",
1242
- className: "form-control",
1243
- value: requestDetails.amount,
1244
- onChange: handleChange,
1245
- onBlur: handleAmountBlur,
1246
- onKeyDown: handleKeyDown,
1247
- onFocus: (e) => e.target.addEventListener("wheel", function(e2) {
1248
- e2.preventDefault();
1249
- }, { passive: false })
877
+ className: "request-payment-input-box",
878
+ placeholder: "Mobile number",
879
+ format: "+1 (###) ###-####",
880
+ value: phone,
881
+ onValueChange: (e) => {
882
+ handlePhoneChange(e);
883
+ }
1250
884
  }
1251
- )), errors.amount && /* @__PURE__ */ React4.createElement("small", { className: "text-danger" }, errors.amount)), /* @__PURE__ */ React4.createElement("div", { className: "mb-3" }, /* @__PURE__ */ React4.createElement("label", { htmlFor: "exampleFormControlInput2", className: "form-label" }, "ORDER ID"), /* @__PURE__ */ React4.createElement(
885
+ ), errors.phone && /* @__PURE__ */ React6.createElement("small", { className: "request-payment-error-msg" }, errors.phone)), /* @__PURE__ */ React6.createElement("div", { className: "request-payment-list-div" }, /* @__PURE__ */ React6.createElement("label", { htmlFor: "exampleFormControlInput2", className: "request-payment-input-label" }, "EMAIL"), /* @__PURE__ */ React6.createElement(
1252
886
  "input",
1253
887
  {
1254
- className: "form-control",
888
+ className: "request-payment-input-box",
1255
889
  type: "text",
1256
- placeholder: "Order Id",
890
+ placeholder: "Email",
1257
891
  onChange: handleChange,
1258
- "data-token": "order_id"
892
+ "data-token": "email",
893
+ value: requestDetails == null ? void 0 : requestDetails.email
1259
894
  }
1260
- ), errors.order_id && /* @__PURE__ */ React4.createElement("small", { className: "text-danger" }, errors.order_id)), /* @__PURE__ */ React4.createElement(
1261
- Button,
895
+ ), errors.email && /* @__PURE__ */ React6.createElement("small", { className: "request-payment-error-msg" }, errors.email)), /* @__PURE__ */ React6.createElement(
896
+ "button",
1262
897
  {
1263
898
  type: "button",
1264
- className: "PayButton",
899
+ className: "request-payment-submit-button",
1265
900
  onClick: sendRequestPayment,
1266
901
  disabled: loading
1267
902
  },
1268
903
  loading ? "Loading..." : "Send Request"
1269
- )), /* @__PURE__ */ React4.createElement("div", { className: "powerd-by-part" }, /* @__PURE__ */ React4.createElement(
1270
- "svg",
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,
904
+ ), /* @__PURE__ */ React6.createElement("div", { className: "request-payment-fractal-powerd-by" }, /* @__PURE__ */ React6.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "17", height: "16", viewBox: "0 0 17 16", fill: "none" }, /* @__PURE__ */ React6.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__ */ React6.createElement("span", null, "Fractal"), /* @__PURE__ */ React6.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "18", height: "18", viewBox: "0 0 18 18", fill: "none" }, /* @__PURE__ */ React6.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__ */ React6.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__ */ React6.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__ */ React6.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__ */ React6.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__ */ React6.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__ */ React6.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__ */ React6.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__ */ React6.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__ */ React6.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__ */ React6.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__ */ React6.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__ */ React6.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__ */ React6.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__ */ React6.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__ */ React6.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__ */ React6.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__ */ React6.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" }))))
905
+ ), /* @__PURE__ */ React6.createElement(
906
+ CustomModal2_default,
1294
907
  {
1295
- className: "payment-suc",
1296
- show: showConfirmationModal,
1297
- onHide: handleCloseConfirmationModal
908
+ open: showConfirmationModal,
909
+ onClose: handleCloseConfirmationModal
1298
910
  },
1299
- /* @__PURE__ */ React4.createElement(Modal.Header, { closeButton: true }),
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"))
911
+ /* @__PURE__ */ React6.createElement("div", { className: "fractal-popup-content", style: { padding: "0px" } }, /* @__PURE__ */ React6.createElement("div", { className: "request-payment-success-container" }, /* @__PURE__ */ React6.createElement("span", { className: "request-payment-close-popup", onClick: handleCloseConfirmationModal }, /* @__PURE__ */ React6.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, /* @__PURE__ */ React6.createElement("g", { "clip-path": "url(#clip0_12425_52336)" }, /* @__PURE__ */ React6.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__ */ React6.createElement("defs", null, /* @__PURE__ */ React6.createElement("clipPath", { id: "clip0_12425_52336" }, /* @__PURE__ */ React6.createElement("rect", { width: "16", height: "16", fill: "white" }))))), /* @__PURE__ */ React6.createElement("div", { className: "request-payment-success-tick-div" }, /* @__PURE__ */ React6.createElement("div", { className: "request-payment-success-tick" }, /* @__PURE__ */ React6.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, /* @__PURE__ */ React6.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__ */ React6.createElement("h6", { className: "request-payment-success-text" }, "The request ", /* @__PURE__ */ React6.createElement("br", null), "was sent"), /* @__PURE__ */ React6.createElement("h6", { className: "request-payment-success-subtext" }, "Please wait for the customer to pay"), /* @__PURE__ */ React6.createElement("div", { className: "request-payment-success-btn-div" }, /* @__PURE__ */ React6.createElement("button", { onClick: handleCloseConfirmationModal, className: "request-payment-success-btn2" }, "Close"))))
1337
912
  )));
1338
913
  }
1339
914
 
1340
915
  // src/app/components/RequestPayment/RequestPaymentAllInput.tsx
1341
- import React5, { useState as useState2 } from "react";
1342
- import { Modal as Modal2 } from "react-bootstrap";
916
+ import React7, { useState as useState2 } from "react";
917
+ import { Modal } from "react-bootstrap";
1343
918
  import { toast, ToastContainer } from "react-toastify";
1344
919
  import "react-toastify/dist/ReactToastify.css";
1345
920
  function RequestPaymentAllInput({ fractalpayClientKey }) {
@@ -1456,7 +1031,7 @@ function RequestPaymentAllInput({ fractalpayClientKey }) {
1456
1031
  setIsValidOrderId(false);
1457
1032
  }
1458
1033
  };
1459
- return /* @__PURE__ */ React5.createElement(React5.Fragment, null, /* @__PURE__ */ React5.createElement(RequestPaymentstyles_default, null), /* @__PURE__ */ React5.createElement("div", { className: " border-container" }, /* @__PURE__ */ React5.createElement("div", { className: "payment-column" }, /* @__PURE__ */ React5.createElement("label", null, "Enter Phone Number:"), /* @__PURE__ */ React5.createElement("div", { className: "input-container" }, /* @__PURE__ */ React5.createElement(
1034
+ 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
1035
  "input",
1461
1036
  {
1462
1037
  type: "text",
@@ -1466,7 +1041,7 @@ function RequestPaymentAllInput({ fractalpayClientKey }) {
1466
1041
  maxLength: 10,
1467
1042
  className: submitClicked && (!phoneNumber || !isValidNumber) ? "error" : ""
1468
1043
  }
1469
- ), errorMessagephone && /* @__PURE__ */ React5.createElement("div", { className: "error-message text-danger" }, errorMessagephone))), /* @__PURE__ */ React5.createElement("div", { className: "payment-column" }, /* @__PURE__ */ React5.createElement("label", null, "Enter Amount:"), /* @__PURE__ */ React5.createElement("div", { className: "input-container" }, /* @__PURE__ */ React5.createElement(
1044
+ ), 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
1045
  "input",
1471
1046
  {
1472
1047
  type: "text",
@@ -1475,7 +1050,7 @@ function RequestPaymentAllInput({ fractalpayClientKey }) {
1475
1050
  placeholder: "Enter amount",
1476
1051
  className: submitClicked && (!amount || !isValidAmount) ? "error" : ""
1477
1052
  }
1478
- ), errorMessageamount && /* @__PURE__ */ React5.createElement("div", { className: "error-message text-danger" }, errorMessageamount))), /* @__PURE__ */ React5.createElement("div", { className: "payment-column" }, /* @__PURE__ */ React5.createElement("label", null, "Enter Order ID:"), /* @__PURE__ */ React5.createElement("div", { className: "input-container" }, /* @__PURE__ */ React5.createElement(
1053
+ ), 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
1054
  "input",
1480
1055
  {
1481
1056
  type: "text",
@@ -1484,7 +1059,7 @@ function RequestPaymentAllInput({ fractalpayClientKey }) {
1484
1059
  placeholder: "Enter order ID",
1485
1060
  className: submitClicked && (!orderId || !isValidOrderId) ? "error" : ""
1486
1061
  }
1487
- ), errorMessageorderid && /* @__PURE__ */ React5.createElement("div", { className: "error-message text-danger" }, errorMessageorderid))), /* @__PURE__ */ React5.createElement(
1062
+ ), errorMessageorderid && /* @__PURE__ */ React7.createElement("div", { className: "error-message text-danger" }, errorMessageorderid))), /* @__PURE__ */ React7.createElement(
1488
1063
  "button",
1489
1064
  {
1490
1065
  onClick: sendRequestPayment,
@@ -1492,7 +1067,7 @@ function RequestPaymentAllInput({ fractalpayClientKey }) {
1492
1067
  className: "paymentBtn"
1493
1068
  },
1494
1069
  isLoading ? "Loading..." : "Request Payment"
1495
- )), /* @__PURE__ */ React5.createElement(Modal2, { className: "payment-suc", show, onHide: handleClose }, /* @__PURE__ */ React5.createElement(Modal2.Header, { closeButton: true }), /* @__PURE__ */ React5.createElement(Modal2.Body, null, /* @__PURE__ */ React5.createElement(
1070
+ )), /* @__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
1071
  "svg",
1497
1072
  {
1498
1073
  width: "60",
@@ -1501,7 +1076,7 @@ function RequestPaymentAllInput({ fractalpayClientKey }) {
1501
1076
  fill: "none",
1502
1077
  xmlns: "http://www.w3.org/2000/svg"
1503
1078
  },
1504
- /* @__PURE__ */ React5.createElement(
1079
+ /* @__PURE__ */ React7.createElement(
1505
1080
  "rect",
1506
1081
  {
1507
1082
  x: "0.5",
@@ -1512,14 +1087,14 @@ function RequestPaymentAllInput({ fractalpayClientKey }) {
1512
1087
  stroke: "#31B379"
1513
1088
  }
1514
1089
  ),
1515
- /* @__PURE__ */ React5.createElement("g", { clipPath: "url(#clip0_2659_5018)" }, /* @__PURE__ */ React5.createElement(
1090
+ /* @__PURE__ */ React7.createElement("g", { clipPath: "url(#clip0_2659_5018)" }, /* @__PURE__ */ React7.createElement(
1516
1091
  "path",
1517
1092
  {
1518
1093
  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
1094
  fill: "#31B379"
1520
1095
  }
1521
1096
  )),
1522
- /* @__PURE__ */ React5.createElement("defs", null, /* @__PURE__ */ React5.createElement("clipPath", { id: "clip0_2659_5018" }, /* @__PURE__ */ React5.createElement(
1097
+ /* @__PURE__ */ React7.createElement("defs", null, /* @__PURE__ */ React7.createElement("clipPath", { id: "clip0_2659_5018" }, /* @__PURE__ */ React7.createElement(
1523
1098
  "rect",
1524
1099
  {
1525
1100
  width: "22",
@@ -1528,12 +1103,12 @@ function RequestPaymentAllInput({ fractalpayClientKey }) {
1528
1103
  transform: "translate(19.5 19.0039)"
1529
1104
  }
1530
1105
  )))
1531
- ), /* @__PURE__ */ React5.createElement("h1", null, "Success!"), /* @__PURE__ */ React5.createElement("h4", null, "Payment link created successfully.")), /* @__PURE__ */ React5.createElement(Modal2.Footer, null, /* @__PURE__ */ React5.createElement("button", { className: "paymentBtn", onClick: handleClose }, "Ok"))), /* @__PURE__ */ React5.createElement(ToastContainer, null));
1106
+ ), /* @__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
1107
  }
1533
1108
 
1534
1109
  // src/app/components/RequestPayment/RequestPaymentDynamic.tsx
1535
- import React6, { useState as useState3 } from "react";
1536
- import { Modal as Modal3 } from "react-bootstrap";
1110
+ import React8, { useState as useState3 } from "react";
1111
+ import { Modal as Modal2 } from "react-bootstrap";
1537
1112
 
1538
1113
  // src/app/components/Api/createWidgetOrder.ts
1539
1114
  var createWidgetOrder = (formData) => {
@@ -1580,7 +1155,7 @@ function RequestPaymentDynamic({ fractalpayClientKey, amount, phone_number, orde
1580
1155
  console.error("Error:", error);
1581
1156
  });
1582
1157
  };
1583
- return /* @__PURE__ */ React6.createElement(React6.Fragment, null, /* @__PURE__ */ React6.createElement(
1158
+ return /* @__PURE__ */ React8.createElement(React8.Fragment, null, /* @__PURE__ */ React8.createElement(
1584
1159
  "button",
1585
1160
  {
1586
1161
  onClick: sendRequestPayment,
@@ -1588,7 +1163,7 @@ function RequestPaymentDynamic({ fractalpayClientKey, amount, phone_number, orde
1588
1163
  className: "paymentBtn"
1589
1164
  },
1590
1165
  isLoading ? "Loading..." : "Request Payment"
1591
- ), /* @__PURE__ */ React6.createElement(Modal3, { className: "payment-suc", show, onHide: handleClose }, /* @__PURE__ */ React6.createElement(Modal3.Header, { closeButton: true }), /* @__PURE__ */ React6.createElement(Modal3.Body, null, /* @__PURE__ */ React6.createElement(
1166
+ ), /* @__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
1167
  "svg",
1593
1168
  {
1594
1169
  width: "60",
@@ -1597,7 +1172,7 @@ function RequestPaymentDynamic({ fractalpayClientKey, amount, phone_number, orde
1597
1172
  fill: "none",
1598
1173
  xmlns: "http://www.w3.org/2000/svg"
1599
1174
  },
1600
- /* @__PURE__ */ React6.createElement(
1175
+ /* @__PURE__ */ React8.createElement(
1601
1176
  "rect",
1602
1177
  {
1603
1178
  x: "0.5",
@@ -1608,14 +1183,14 @@ function RequestPaymentDynamic({ fractalpayClientKey, amount, phone_number, orde
1608
1183
  stroke: "#31B379"
1609
1184
  }
1610
1185
  ),
1611
- /* @__PURE__ */ React6.createElement("g", { "clip-path": "url(#clip0_2659_5018)" }, /* @__PURE__ */ React6.createElement(
1186
+ /* @__PURE__ */ React8.createElement("g", { "clip-path": "url(#clip0_2659_5018)" }, /* @__PURE__ */ React8.createElement(
1612
1187
  "path",
1613
1188
  {
1614
1189
  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
1190
  fill: "#31B379"
1616
1191
  }
1617
1192
  )),
1618
- /* @__PURE__ */ React6.createElement("defs", null, /* @__PURE__ */ React6.createElement("clipPath", { id: "clip0_2659_5018" }, /* @__PURE__ */ React6.createElement(
1193
+ /* @__PURE__ */ React8.createElement("defs", null, /* @__PURE__ */ React8.createElement("clipPath", { id: "clip0_2659_5018" }, /* @__PURE__ */ React8.createElement(
1619
1194
  "rect",
1620
1195
  {
1621
1196
  width: "22",
@@ -1624,12 +1199,12 @@ function RequestPaymentDynamic({ fractalpayClientKey, amount, phone_number, orde
1624
1199
  transform: "translate(19.5 19.0039)"
1625
1200
  }
1626
1201
  )))
1627
- ), /* @__PURE__ */ React6.createElement("h1", null, "Success!"), /* @__PURE__ */ React6.createElement("h4", null, "Payment link created successfully.")), /* @__PURE__ */ React6.createElement(Modal3.Footer, null, /* @__PURE__ */ React6.createElement("button", { className: "paymentBtn", onClick: handleClose }, "Ok"))));
1202
+ ), /* @__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
1203
  }
1629
1204
 
1630
1205
  // src/app/components/RequestPayment/RequestPaymentonClick.tsx
1631
- import React7, { useState as useState4 } from "react";
1632
- import { Modal as Modal4 } from "react-bootstrap";
1206
+ import React9, { useState as useState4 } from "react";
1207
+ import { Modal as Modal3 } from "react-bootstrap";
1633
1208
  function RequestPaymentonClick(props) {
1634
1209
  const [isLoading, setIsLoading] = useState4(false);
1635
1210
  const [show, setShow] = useState4(false);
@@ -1666,7 +1241,7 @@ function RequestPaymentonClick(props) {
1666
1241
  console.error("Error:", error);
1667
1242
  });
1668
1243
  };
1669
- return /* @__PURE__ */ React7.createElement(React7.Fragment, null, /* @__PURE__ */ React7.createElement(RequestPaymentstyles_default, null), /* @__PURE__ */ React7.createElement(
1244
+ return /* @__PURE__ */ React9.createElement(React9.Fragment, null, /* @__PURE__ */ React9.createElement(RequestPaymentstyles_default, null), /* @__PURE__ */ React9.createElement(
1670
1245
  "button",
1671
1246
  {
1672
1247
  onClick: sendRequestPayment,
@@ -1674,7 +1249,7 @@ function RequestPaymentonClick(props) {
1674
1249
  className: "paymentBtn"
1675
1250
  },
1676
1251
  isLoading ? "Loading..." : "Request Payment"
1677
- ), /* @__PURE__ */ React7.createElement(Modal4, { className: "payment-suc", show, onHide: handleClose }, /* @__PURE__ */ React7.createElement(Modal4.Header, { closeButton: true }), /* @__PURE__ */ React7.createElement(Modal4.Body, null, onSuccess && /* @__PURE__ */ React7.createElement(
1252
+ ), /* @__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
1253
  "svg",
1679
1254
  {
1680
1255
  width: "60",
@@ -1683,7 +1258,7 @@ function RequestPaymentonClick(props) {
1683
1258
  fill: "none",
1684
1259
  xmlns: "http://www.w3.org/2000/svg"
1685
1260
  },
1686
- /* @__PURE__ */ React7.createElement(
1261
+ /* @__PURE__ */ React9.createElement(
1687
1262
  "rect",
1688
1263
  {
1689
1264
  x: "0.5",
@@ -1694,14 +1269,14 @@ function RequestPaymentonClick(props) {
1694
1269
  stroke: "#31B379"
1695
1270
  }
1696
1271
  ),
1697
- /* @__PURE__ */ React7.createElement("g", { clipPath: "url(#clip0_2659_5018)" }, /* @__PURE__ */ React7.createElement(
1272
+ /* @__PURE__ */ React9.createElement("g", { clipPath: "url(#clip0_2659_5018)" }, /* @__PURE__ */ React9.createElement(
1698
1273
  "path",
1699
1274
  {
1700
1275
  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
1276
  fill: "#31B379"
1702
1277
  }
1703
1278
  )),
1704
- /* @__PURE__ */ React7.createElement("defs", null, /* @__PURE__ */ React7.createElement("clipPath", { id: "clip0_2659_5018" }, /* @__PURE__ */ React7.createElement(
1279
+ /* @__PURE__ */ React9.createElement("defs", null, /* @__PURE__ */ React9.createElement("clipPath", { id: "clip0_2659_5018" }, /* @__PURE__ */ React9.createElement(
1705
1280
  "rect",
1706
1281
  {
1707
1282
  width: "22",
@@ -1710,12 +1285,12 @@ function RequestPaymentonClick(props) {
1710
1285
  transform: "translate(19.5 19.0039)"
1711
1286
  }
1712
1287
  )))
1713
- ), onSuccess ? /* @__PURE__ */ React7.createElement(React7.Fragment, null, /* @__PURE__ */ React7.createElement("h1", null, "Success!"), /* @__PURE__ */ React7.createElement("h4", null, onSuccess)) : /* @__PURE__ */ React7.createElement(React7.Fragment, null, /* @__PURE__ */ React7.createElement("h1", null, "Error!"), /* @__PURE__ */ React7.createElement("h4", null, onError))), /* @__PURE__ */ React7.createElement(Modal4.Footer, null, /* @__PURE__ */ React7.createElement("button", { className: "paymentBtn", onClick: handleClose }, "Ok"))));
1288
+ ), 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
1289
  }
1715
1290
 
1716
1291
  // src/app/components/RequestPayment/RqstPaymntInputField.tsx
1717
- import React8, { useState as useState5 } from "react";
1718
- import { Modal as Modal5 } from "react-bootstrap";
1292
+ import React10, { useState as useState5 } from "react";
1293
+ import { Modal as Modal4 } from "react-bootstrap";
1719
1294
  import { toast as toast2, ToastContainer as ToastContainer2 } from "react-toastify";
1720
1295
  import "react-toastify/dist/ReactToastify.css";
1721
1296
  function RqstPaymntInputField({ fractalpayClientKey, amount, orderID }) {
@@ -1787,7 +1362,7 @@ function RqstPaymntInputField({ fractalpayClientKey, amount, orderID }) {
1787
1362
  setErrorMessage(ErrorText.phonenumbervalid);
1788
1363
  }
1789
1364
  };
1790
- return /* @__PURE__ */ React8.createElement(React8.Fragment, null, /* @__PURE__ */ React8.createElement("div", { className: "payment-container" }, /* @__PURE__ */ React8.createElement("div", { className: "input-wrapper" }, /* @__PURE__ */ React8.createElement("div", { className: "input-container" }, /* @__PURE__ */ React8.createElement(
1365
+ 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
1366
  "input",
1792
1367
  {
1793
1368
  type: "text",
@@ -1797,7 +1372,7 @@ function RqstPaymntInputField({ fractalpayClientKey, amount, orderID }) {
1797
1372
  maxLength: 10,
1798
1373
  className: submitClicked && (!phoneNumber || !isValidNumber) ? "error" : ""
1799
1374
  }
1800
- ), errorMessage && /* @__PURE__ */ React8.createElement("div", { className: "error-message text-danger" }, errorMessage))), /* @__PURE__ */ React8.createElement("div", { className: "button-wrapper" }, /* @__PURE__ */ React8.createElement(
1375
+ ), errorMessage && /* @__PURE__ */ React10.createElement("div", { className: "error-message text-danger" }, errorMessage))), /* @__PURE__ */ React10.createElement("div", { className: "button-wrapper" }, /* @__PURE__ */ React10.createElement(
1801
1376
  "button",
1802
1377
  {
1803
1378
  onClick: sendRequestPayment,
@@ -1805,7 +1380,7 @@ function RqstPaymntInputField({ fractalpayClientKey, amount, orderID }) {
1805
1380
  className: "paymentBtn"
1806
1381
  },
1807
1382
  isLoading ? "Loading..." : "Request Payment"
1808
- ))), /* @__PURE__ */ React8.createElement(Modal5, { className: "payment-suc", show, onHide: handleClose }, /* @__PURE__ */ React8.createElement(Modal5.Header, { closeButton: true }), /* @__PURE__ */ React8.createElement(Modal5.Body, null, /* @__PURE__ */ React8.createElement(
1383
+ ))), /* @__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
1384
  "svg",
1810
1385
  {
1811
1386
  width: "60",
@@ -1814,7 +1389,7 @@ function RqstPaymntInputField({ fractalpayClientKey, amount, orderID }) {
1814
1389
  fill: "none",
1815
1390
  xmlns: "http://www.w3.org/2000/svg"
1816
1391
  },
1817
- /* @__PURE__ */ React8.createElement(
1392
+ /* @__PURE__ */ React10.createElement(
1818
1393
  "rect",
1819
1394
  {
1820
1395
  x: "0.5",
@@ -1825,14 +1400,14 @@ function RqstPaymntInputField({ fractalpayClientKey, amount, orderID }) {
1825
1400
  stroke: "#31B379"
1826
1401
  }
1827
1402
  ),
1828
- /* @__PURE__ */ React8.createElement("g", { clipPath: "url(#clip0_2659_5018)" }, /* @__PURE__ */ React8.createElement(
1403
+ /* @__PURE__ */ React10.createElement("g", { clipPath: "url(#clip0_2659_5018)" }, /* @__PURE__ */ React10.createElement(
1829
1404
  "path",
1830
1405
  {
1831
1406
  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
1407
  fill: "#31B379"
1833
1408
  }
1834
1409
  )),
1835
- /* @__PURE__ */ React8.createElement("defs", null, /* @__PURE__ */ React8.createElement("clipPath", { id: "clip0_2659_5018" }, /* @__PURE__ */ React8.createElement(
1410
+ /* @__PURE__ */ React10.createElement("defs", null, /* @__PURE__ */ React10.createElement("clipPath", { id: "clip0_2659_5018" }, /* @__PURE__ */ React10.createElement(
1836
1411
  "rect",
1837
1412
  {
1838
1413
  width: "22",
@@ -1841,19 +1416,19 @@ function RqstPaymntInputField({ fractalpayClientKey, amount, orderID }) {
1841
1416
  transform: "translate(19.5 19.0039)"
1842
1417
  }
1843
1418
  )))
1844
- ), /* @__PURE__ */ React8.createElement("h1", null, "Success!"), /* @__PURE__ */ React8.createElement("h4", null, "Payment link created successfully.")), /* @__PURE__ */ React8.createElement(Modal5.Footer, null, /* @__PURE__ */ React8.createElement("button", { className: "paymentBtn", onClick: handleClose }, "Ok"))), /* @__PURE__ */ React8.createElement(ToastContainer2, null));
1419
+ ), /* @__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
1420
  }
1846
1421
 
1847
1422
  // src/app/components/Payment/Payment.tsx
1848
- import React10, { useState as useState6 } from "react";
1423
+ import React12, { useState as useState6 } from "react";
1849
1424
  import forge from "node-forge";
1850
1425
  import { toast as toast3 } from "react-toastify";
1851
- import { Modal as Modal6 } from "react-bootstrap";
1426
+ import { Modal as Modal5 } from "react-bootstrap";
1852
1427
 
1853
1428
  // src/app/components/Payment/Paymentstyles.tsx
1854
- import React9 from "react";
1429
+ import React11 from "react";
1855
1430
  function Paymentstyles() {
1856
- return /* @__PURE__ */ React9.createElement("style", null, `
1431
+ return /* @__PURE__ */ React11.createElement("style", null, `
1857
1432
  .paymentBtn {
1858
1433
  background-color: black;
1859
1434
  border: none;
@@ -2956,7 +2531,7 @@ function Payment() {
2956
2531
  }
2957
2532
  return "";
2958
2533
  }
2959
- return /* @__PURE__ */ React10.createElement(React10.Fragment, null, /* @__PURE__ */ React10.createElement(Paymentstyles, null), /* @__PURE__ */ React10.createElement("div", { className: "" }, /* @__PURE__ */ React10.createElement(
2534
+ return /* @__PURE__ */ React12.createElement(React12.Fragment, null, /* @__PURE__ */ React12.createElement(Paymentstyles, null), /* @__PURE__ */ React12.createElement("div", { className: "" }, /* @__PURE__ */ React12.createElement(
2960
2535
  "button",
2961
2536
  {
2962
2537
  className: "export-btn",
@@ -2964,8 +2539,8 @@ function Payment() {
2964
2539
  onClick: () => handlePaymentClick()
2965
2540
  },
2966
2541
  "Payment"
2967
- ), /* @__PURE__ */ React10.createElement(
2968
- Modal6,
2542
+ ), /* @__PURE__ */ React12.createElement(
2543
+ Modal5,
2969
2544
  {
2970
2545
  show: state.show,
2971
2546
  onHide: () => setState((prev) => __spreadProps(__spreadValues({}, prev), {
@@ -2973,8 +2548,8 @@ function Payment() {
2973
2548
  })),
2974
2549
  centered: true
2975
2550
  },
2976
- /* @__PURE__ */ React10.createElement(Modal6.Header, { closeButton: true }),
2977
- /* @__PURE__ */ React10.createElement(Modal6.Body, null, /* @__PURE__ */ React10.createElement("div", { className: "payment-popup" }, /* @__PURE__ */ React10.createElement("div", { className: "row" }, /* @__PURE__ */ React10.createElement("div", { className: "" }, /* @__PURE__ */ React10.createElement("div", { id: "Checkout", className: "inline" }, /* @__PURE__ */ React10.createElement("div", { className: "header" }, /* @__PURE__ */ React10.createElement("h1", null, "Pay")), /* @__PURE__ */ React10.createElement("form", { id: "PaymentForm", className: "payment-form" }, /* @__PURE__ */ React10.createElement("div", { className: "form-group", style: { display: "none" } }, /* @__PURE__ */ React10.createElement("label", null, "Payment amount"), /* @__PURE__ */ React10.createElement("div", { className: "input-group" }, /* @__PURE__ */ React10.createElement("span", { className: "input-group-addon" }, "$"), /* @__PURE__ */ React10.createElement(
2551
+ /* @__PURE__ */ React12.createElement(Modal5.Header, { closeButton: true }),
2552
+ /* @__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
2553
  "input",
2979
2554
  {
2980
2555
  type: "text",
@@ -2983,13 +2558,13 @@ function Payment() {
2983
2558
  className: "form-control",
2984
2559
  id: ""
2985
2560
  }
2986
- )), /* @__PURE__ */ React10.createElement(
2561
+ )), /* @__PURE__ */ React12.createElement(
2987
2562
  "span",
2988
2563
  {
2989
2564
  id: "amount-error",
2990
2565
  style: { color: "red", display: "none" }
2991
2566
  }
2992
- )), /* @__PURE__ */ React10.createElement("div", { className: "form-group" }, /* @__PURE__ */ React10.createElement("label", null, "Name on card"), /* @__PURE__ */ React10.createElement(
2567
+ )), /* @__PURE__ */ React12.createElement("div", { className: "form-group" }, /* @__PURE__ */ React12.createElement("label", null, "Name on card"), /* @__PURE__ */ React12.createElement(
2993
2568
  "input",
2994
2569
  {
2995
2570
  id: "NameOnCard",
@@ -2998,13 +2573,13 @@ function Payment() {
2998
2573
  maxLength: 100,
2999
2574
  placeholder: "Name"
3000
2575
  }
3001
- ), /* @__PURE__ */ React10.createElement(
2576
+ ), /* @__PURE__ */ React12.createElement(
3002
2577
  "span",
3003
2578
  {
3004
2579
  id: "NameOnCard-error",
3005
2580
  style: { color: "red", display: "none" }
3006
2581
  }
3007
- )), /* @__PURE__ */ React10.createElement("div", { className: "form-group" }, /* @__PURE__ */ React10.createElement(
2582
+ )), /* @__PURE__ */ React12.createElement("div", { className: "form-group" }, /* @__PURE__ */ React12.createElement(
3008
2583
  "input",
3009
2584
  {
3010
2585
  "data-token": "card_number",
@@ -3015,7 +2590,7 @@ function Payment() {
3015
2590
  placeholder: "0000 0000 0000 0000",
3016
2591
  onChange: handleCardNumberChange
3017
2592
  }
3018
- ), state.error && /* @__PURE__ */ React10.createElement("div", { style: { color: "red" } }, state.error)), /* @__PURE__ */ React10.createElement("div", { className: "expiry-date-group form-group" }, /* @__PURE__ */ React10.createElement(
2593
+ ), 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
2594
  "input",
3020
2595
  {
3021
2596
  "data-token": "exp_month",
@@ -3026,14 +2601,14 @@ function Payment() {
3026
2601
  maxLength: 2,
3027
2602
  onChange: (e) => handleMonthChange(e)
3028
2603
  }
3029
- ), isValidMonth && /* @__PURE__ */ React10.createElement(
2604
+ ), isValidMonth && /* @__PURE__ */ React12.createElement(
3030
2605
  "span",
3031
2606
  {
3032
2607
  id: "card_number-error",
3033
2608
  style: { color: "red", fontSize: "15px" }
3034
2609
  },
3035
2610
  (_a = ErrorText) == null ? void 0 : _a.montherror
3036
- )), /* @__PURE__ */ React10.createElement("div", { className: "expiry-date-group form-group" }, /* @__PURE__ */ React10.createElement(
2611
+ )), /* @__PURE__ */ React12.createElement("div", { className: "expiry-date-group form-group" }, /* @__PURE__ */ React12.createElement(
3037
2612
  "input",
3038
2613
  {
3039
2614
  "data-token": "exp_year",
@@ -3044,7 +2619,7 @@ function Payment() {
3044
2619
  value: state.year,
3045
2620
  onChange: (e) => handleYearChange(e)
3046
2621
  }
3047
- ), state.yearError && /* @__PURE__ */ React10.createElement("span", { id: "exp_year-error", style: { color: "red" } }, state.yearError)), /* @__PURE__ */ React10.createElement("div", { className: "security-code-group form-group" }, /* @__PURE__ */ React10.createElement("div", { className: "input-container" }, /* @__PURE__ */ React10.createElement(
2622
+ ), 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
2623
  "input",
3049
2624
  {
3050
2625
  "data-token": "cvv",
@@ -3055,7 +2630,7 @@ function Payment() {
3055
2630
  placeholder: "CVV",
3056
2631
  onChange: (e) => handleCVVChange(e)
3057
2632
  }
3058
- ), /* @__PURE__ */ React10.createElement("i", { id: "cvc", className: "fa fa-question-circle" }), state.cvvError && /* @__PURE__ */ React10.createElement("span", { id: "cvv-error", style: { color: "red" } }, state.cvvError)), /* @__PURE__ */ React10.createElement("div", { className: "cvc-preview-container two-card hide" }, /* @__PURE__ */ React10.createElement("div", { className: "amex-cvc-preview" }), /* @__PURE__ */ React10.createElement("div", { className: "visa-mc-dis-cvc-preview" }))), /* @__PURE__ */ React10.createElement("div", { className: "zip-code-group form-group" }, /* @__PURE__ */ React10.createElement("label", null, "Postal code"), /* @__PURE__ */ React10.createElement("div", { className: "input-container" }, /* @__PURE__ */ React10.createElement(
2633
+ ), /* @__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
2634
  "input",
3060
2635
  {
3061
2636
  id: "ZIPCode",
@@ -3067,7 +2642,7 @@ function Payment() {
3067
2642
  value: state.zip,
3068
2643
  onChange: (e) => handleZIP(e)
3069
2644
  }
3070
- ), /* @__PURE__ */ React10.createElement(
2645
+ ), /* @__PURE__ */ React12.createElement(
3071
2646
  "a",
3072
2647
  {
3073
2648
  tabIndex: 0,
@@ -3077,15 +2652,15 @@ function Payment() {
3077
2652
  "data-placement": "left",
3078
2653
  "data-content": "Enter the ZIP/Postal code for your credit card billing address."
3079
2654
  },
3080
- /* @__PURE__ */ React10.createElement("i", { className: "fa fa-question-circle" })
3081
- ), /* @__PURE__ */ React10.createElement(
2655
+ /* @__PURE__ */ React12.createElement("i", { className: "fa fa-question-circle" })
2656
+ ), /* @__PURE__ */ React12.createElement(
3082
2657
  "span",
3083
2658
  {
3084
2659
  id: "ZIPCode-error",
3085
2660
  style: { color: "red", display: "none" }
3086
2661
  },
3087
2662
  ErrorText.fieldrequired
3088
- ))), /* @__PURE__ */ React10.createElement("div", { className: "form-group top-amnt" }, /* @__PURE__ */ React10.createElement("div", null, /* @__PURE__ */ React10.createElement("label", null, "Payment amount"), /* @__PURE__ */ React10.createElement("div", { className: "amount-placeholder" }, /* @__PURE__ */ React10.createElement(
2663
+ ))), /* @__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
2664
  "input",
3090
2665
  {
3091
2666
  id: "Amount",
@@ -3097,7 +2672,7 @@ function Payment() {
3097
2672
  onChange: (e) => handleAmount(e),
3098
2673
  onBlur: handleAmountBlur
3099
2674
  }
3100
- ))), /* @__PURE__ */ React10.createElement("div", { className: "card-row" }, /* @__PURE__ */ React10.createElement("span", { className: "visa" }), /* @__PURE__ */ React10.createElement("span", { className: "mastercard" }), /* @__PURE__ */ React10.createElement("span", { className: "amex" }), /* @__PURE__ */ React10.createElement("span", { className: "discover" }))), /* @__PURE__ */ React10.createElement(
2675
+ ))), /* @__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
2676
  "button",
3102
2677
  {
3103
2678
  type: "button",
@@ -3106,7 +2681,7 @@ function Payment() {
3106
2681
  className: "btn btn-block btn-success submit-button"
3107
2682
  },
3108
2683
  "Pay"
3109
- )), /* @__PURE__ */ React10.createElement("div", { className: "powerd-by-part" }, /* @__PURE__ */ React10.createElement(
2684
+ )), /* @__PURE__ */ React12.createElement("div", { className: "powerd-by-part" }, /* @__PURE__ */ React12.createElement(
3110
2685
  "svg",
3111
2686
  {
3112
2687
  xmlns: "http://www.w3.org/2000/svg",
@@ -3114,14 +2689,14 @@ function Payment() {
3114
2689
  height: "20",
3115
2690
  viewBox: "0 0 26 26"
3116
2691
  },
3117
- /* @__PURE__ */ React10.createElement(
2692
+ /* @__PURE__ */ React12.createElement(
3118
2693
  "path",
3119
2694
  {
3120
2695
  fill: "currentColor",
3121
2696
  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
2697
  }
3123
2698
  )
3124
- ), "Secure payments powered by Fractal", /* @__PURE__ */ React10.createElement(
2699
+ ), "Secure payments powered by Fractal", /* @__PURE__ */ React12.createElement(
3125
2700
  "img",
3126
2701
  {
3127
2702
  src: "https://ui.fractalpay.com/favicon.ico",
@@ -3133,7 +2708,7 @@ function Payment() {
3133
2708
  }
3134
2709
 
3135
2710
  // src/app/components/Transaction/CompletedTransactions.tsx
3136
- import React12, { useEffect as useEffect4, useState as useState8 } from "react";
2711
+ import React14, { useEffect as useEffect3, useState as useState8 } from "react";
3137
2712
  import { Col, Row, Table } from "react-bootstrap";
3138
2713
  import {
3139
2714
  DatatableWrapper,
@@ -3147,14 +2722,14 @@ import "react-datepicker/dist/react-datepicker.css";
3147
2722
  import { toast as toast4 } from "react-toastify";
3148
2723
 
3149
2724
  // src/app/components/Pagination/Pagination.tsx
3150
- import React11, { useState as useState7, useEffect as useEffect3 } from "react";
2725
+ import React13, { useState as useState7, useEffect as useEffect2 } from "react";
3151
2726
  function PaginationPg({ totalPages, onPageChange, current }) {
3152
2727
  const [currentPage, setCurrentPage] = useState7(current);
3153
2728
  const [showPages, setShowPages] = useState7(false);
3154
- useEffect3(() => {
2729
+ useEffect2(() => {
3155
2730
  setCurrentPage(current);
3156
2731
  }, [current]);
3157
- useEffect3(() => {
2732
+ useEffect2(() => {
3158
2733
  setTimeout(() => {
3159
2734
  setShowPages(true);
3160
2735
  }, 1e3);
@@ -3190,7 +2765,7 @@ function PaginationPg({ totalPages, onPageChange, current }) {
3190
2765
  if (currentPage > 3) {
3191
2766
  pageNumbers.push(renderPageNumber(1));
3192
2767
  if (currentPage > 4) {
3193
- pageNumbers.push(/* @__PURE__ */ React11.createElement("li", { key: "start-break", className: "page-item disabled" }, /* @__PURE__ */ React11.createElement("span", { className: "page-link" }, "...")));
2768
+ pageNumbers.push(/* @__PURE__ */ React13.createElement("li", { key: "start-break", className: "page-item disabled" }, /* @__PURE__ */ React13.createElement("span", { className: "page-link" }, "...")));
3194
2769
  }
3195
2770
  }
3196
2771
  const startPage = Math.max(currentPage - 1, 1);
@@ -3200,15 +2775,15 @@ function PaginationPg({ totalPages, onPageChange, current }) {
3200
2775
  }
3201
2776
  if (currentPage < totalPages - 2) {
3202
2777
  if (currentPage < totalPages - 3) {
3203
- pageNumbers.push(/* @__PURE__ */ React11.createElement("li", { key: "end-break", className: "page-item disabled" }, /* @__PURE__ */ React11.createElement("span", { className: "page-link" }, "...")));
2778
+ pageNumbers.push(/* @__PURE__ */ React13.createElement("li", { key: "end-break", className: "page-item disabled" }, /* @__PURE__ */ React13.createElement("span", { className: "page-link" }, "...")));
3204
2779
  }
3205
2780
  pageNumbers.push(renderPageNumber(totalPages));
3206
2781
  }
3207
2782
  }
3208
2783
  return pageNumbers;
3209
2784
  };
3210
- const renderPageNumber = (pageNumber) => /* @__PURE__ */ React11.createElement("li", { key: pageNumber, className: `page-item ${currentPage === pageNumber ? "active" : ""}` }, /* @__PURE__ */ React11.createElement("a", { className: "page-link cursor-pointer", onClick: (e) => handlePageClick(e, pageNumber) }, pageNumber));
3211
- return /* @__PURE__ */ React11.createElement(React11.Fragment, null, /* @__PURE__ */ React11.createElement("nav", { className: "app-pagination py-2" }, /* @__PURE__ */ React11.createElement("ul", { className: "pagination justify-content-center" }, /* @__PURE__ */ React11.createElement("li", { className: `page-item ${currentPage === 1 ? "disabled" : ""}` }, /* @__PURE__ */ React11.createElement("a", { className: "page-link cursor-pointer", onClick: handlePrevious }, /* @__PURE__ */ React11.createElement("span", null, "\u2B9C"))), showPages && getPageNumbers(), /* @__PURE__ */ React11.createElement("li", { className: `page-item ${currentPage === totalPages ? "disabled" : ""}` }, /* @__PURE__ */ React11.createElement("a", { className: "page-link cursor-pointer", onClick: handleNext }, /* @__PURE__ */ React11.createElement("span", null, "\u2B9E"))))));
2785
+ 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));
2786
+ 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
2787
  }
3213
2788
 
3214
2789
  // src/app/components/Transaction/CompletedTransactions.tsx
@@ -3372,18 +2947,18 @@ function CompletedTransactions(props) {
3372
2947
  }
3373
2948
  }
3374
2949
  };
3375
- useEffect4(() => {
2950
+ useEffect3(() => {
3376
2951
  fetchData(state.page, startDate, endDate);
3377
2952
  }, [state.page]);
3378
2953
  const handlePageChange = (pageNumber) => {
3379
2954
  setState((prev) => __spreadProps(__spreadValues({}, prev), { page: pageNumber }));
3380
2955
  fetchData(pageNumber, startDate, endDate);
3381
2956
  };
3382
- return /* @__PURE__ */ React12.createElement(React12.Fragment, null, /* @__PURE__ */ React12.createElement("style", null, `
2957
+ return /* @__PURE__ */ React14.createElement(React14.Fragment, null, /* @__PURE__ */ React14.createElement("style", null, `
3383
2958
  .react-datepicker-wrapper:first-child {
3384
2959
  margin-right: 10px;
3385
2960
  }
3386
- `), /* @__PURE__ */ React12.createElement("div", { className: "mb-5" }, /* @__PURE__ */ React12.createElement("div", null, /* @__PURE__ */ React12.createElement("div", { style: { display: "flex" } }, /* @__PURE__ */ React12.createElement("div", { style: { display: "flex", marginRight: "10px", marginTop: "25px" } }, /* @__PURE__ */ React12.createElement(
2961
+ `), /* @__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
2962
  DatePicker,
3388
2963
  {
3389
2964
  selected: startDate,
@@ -3394,7 +2969,7 @@ function CompletedTransactions(props) {
3394
2969
  placeholderText: "Start Date",
3395
2970
  required: true
3396
2971
  }
3397
- ), /* @__PURE__ */ React12.createElement(
2972
+ ), /* @__PURE__ */ React14.createElement(
3398
2973
  DatePicker,
3399
2974
  {
3400
2975
  selected: endDate,
@@ -3405,7 +2980,7 @@ function CompletedTransactions(props) {
3405
2980
  minDate: startDate,
3406
2981
  placeholderText: "End Date"
3407
2982
  }
3408
- )), /* @__PURE__ */ React12.createElement("button", { className: "export-btn1", onClick: handleExport }, "Export")), /* @__PURE__ */ React12.createElement(
2983
+ )), /* @__PURE__ */ React14.createElement("button", { className: "export-btn1", onClick: handleExport }, "Export")), /* @__PURE__ */ React14.createElement(
3409
2984
  DatatableWrapper,
3410
2985
  {
3411
2986
  body: dataList,
@@ -3417,15 +2992,15 @@ function CompletedTransactions(props) {
3417
2992
  }
3418
2993
  }
3419
2994
  },
3420
- /* @__PURE__ */ React12.createElement(Row, { className: "mb-4 p-2" }, /* @__PURE__ */ React12.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__ */ React12.createElement(PaginationOptions, null)), /* @__PURE__ */ React12.createElement(Col, { xs: 12, lg: 4, className: "d-flex flex-col justify-content-end align-items-end" }), /* @__PURE__ */ React12.createElement(Col, { xs: 12, sm: 6, lg: 4, className: "d-flex flex-col justify-content-end align-items-end" }, /* @__PURE__ */ React12.createElement(Filter, null))),
3421
- /* @__PURE__ */ React12.createElement(Row, null, /* @__PURE__ */ React12.createElement("div", { className: "responsive-tbl" }, /* @__PURE__ */ React12.createElement(Table, null, /* @__PURE__ */ React12.createElement(TableHeader, null), /* @__PURE__ */ React12.createElement(TableBody, null)))),
3422
- /* @__PURE__ */ React12.createElement(PaginationPg, { totalPages: state.totalPage, onPageChange: handlePageChange, current: state.page })
2995
+ /* @__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))),
2996
+ /* @__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)))),
2997
+ /* @__PURE__ */ React14.createElement(PaginationPg, { totalPages: state.totalPage, onPageChange: handlePageChange, current: state.page })
3423
2998
  ))));
3424
2999
  }
3425
3000
 
3426
3001
  // src/app/components/Payment/TockenizPay.tsx
3427
- import React13, { useState as useState9 } from "react";
3428
- import { Modal as Modal7 } from "react-bootstrap";
3002
+ import React15, { useState as useState9 } from "react";
3003
+ import { Modal as Modal6 } from "react-bootstrap";
3429
3004
  import { toast as toast5, ToastContainer as ToastContainer3 } from "react-toastify";
3430
3005
  import forge2 from "node-forge";
3431
3006
  import creditCardType from "credit-card-type";
@@ -3656,7 +3231,7 @@ function TockenizPay() {
3656
3231
  }
3657
3232
  return "";
3658
3233
  }
3659
- return /* @__PURE__ */ React13.createElement("div", null, /* @__PURE__ */ React13.createElement(ToastContainer3, null), /* @__PURE__ */ React13.createElement(
3234
+ return /* @__PURE__ */ React15.createElement("div", null, /* @__PURE__ */ React15.createElement(ToastContainer3, null), /* @__PURE__ */ React15.createElement(
3660
3235
  "button",
3661
3236
  {
3662
3237
  className: "export-btn mt-4",
@@ -3664,8 +3239,8 @@ function TockenizPay() {
3664
3239
  onClick: () => handlePaymentClick()
3665
3240
  },
3666
3241
  "TokenizePay"
3667
- ), /* @__PURE__ */ React13.createElement(
3668
- Modal7,
3242
+ ), /* @__PURE__ */ React15.createElement(
3243
+ Modal6,
3669
3244
  {
3670
3245
  show: state.show,
3671
3246
  onHide: () => setState((prev) => __spreadProps(__spreadValues({}, prev), {
@@ -3673,8 +3248,8 @@ function TockenizPay() {
3673
3248
  })),
3674
3249
  centered: true
3675
3250
  },
3676
- /* @__PURE__ */ React13.createElement(Modal7.Header, { closeButton: true }),
3677
- /* @__PURE__ */ React13.createElement(Modal7.Body, null, /* @__PURE__ */ React13.createElement("div", { className: "payment-popup" }, /* @__PURE__ */ React13.createElement("div", { className: "row" }, /* @__PURE__ */ React13.createElement("div", { className: "" }, /* @__PURE__ */ React13.createElement("div", { id: "Checkout", className: "inline" }, /* @__PURE__ */ React13.createElement("div", { className: "header" }, /* @__PURE__ */ React13.createElement("h1", null, "Pay")), /* @__PURE__ */ React13.createElement("form", { id: "PaymentForm", className: "payment-form" }, /* @__PURE__ */ React13.createElement("div", { className: "form-group" }, /* @__PURE__ */ React13.createElement("label", null, "Name on card"), /* @__PURE__ */ React13.createElement(
3251
+ /* @__PURE__ */ React15.createElement(Modal6.Header, { closeButton: true }),
3252
+ /* @__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
3253
  "input",
3679
3254
  {
3680
3255
  id: "NameOnCard",
@@ -3683,13 +3258,13 @@ function TockenizPay() {
3683
3258
  maxLength: 100,
3684
3259
  placeholder: "Name"
3685
3260
  }
3686
- ), /* @__PURE__ */ React13.createElement(
3261
+ ), /* @__PURE__ */ React15.createElement(
3687
3262
  "span",
3688
3263
  {
3689
3264
  id: "NameOnCard-error",
3690
3265
  style: { color: "red", display: "none" }
3691
3266
  }
3692
- )), /* @__PURE__ */ React13.createElement("div", { className: "form-group" }, /* @__PURE__ */ React13.createElement(
3267
+ )), /* @__PURE__ */ React15.createElement("div", { className: "form-group" }, /* @__PURE__ */ React15.createElement(
3693
3268
  "input",
3694
3269
  {
3695
3270
  "data-token": "card_number",
@@ -3700,7 +3275,7 @@ function TockenizPay() {
3700
3275
  placeholder: "0000 0000 0000 0000",
3701
3276
  onChange: handleCardNumberChange
3702
3277
  }
3703
- ), state.error && /* @__PURE__ */ React13.createElement("div", { style: { color: "red" } }, state.error)), /* @__PURE__ */ React13.createElement("div", { className: "expiry-date-group form-group" }, /* @__PURE__ */ React13.createElement(
3278
+ ), 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
3279
  "input",
3705
3280
  {
3706
3281
  "data-token": "exp_month",
@@ -3711,14 +3286,14 @@ function TockenizPay() {
3711
3286
  maxLength: 2,
3712
3287
  onChange: (e) => handleMonthChange(e)
3713
3288
  }
3714
- ), isValidMonth && /* @__PURE__ */ React13.createElement(
3289
+ ), isValidMonth && /* @__PURE__ */ React15.createElement(
3715
3290
  "span",
3716
3291
  {
3717
3292
  id: "card_number-error",
3718
3293
  style: { color: "red", fontSize: "15px" }
3719
3294
  },
3720
3295
  "Please write month only 1 to 12"
3721
- )), /* @__PURE__ */ React13.createElement("div", { className: "expiry-date-group form-group" }, /* @__PURE__ */ React13.createElement(
3296
+ )), /* @__PURE__ */ React15.createElement("div", { className: "expiry-date-group form-group" }, /* @__PURE__ */ React15.createElement(
3722
3297
  "input",
3723
3298
  {
3724
3299
  "data-token": "exp_year",
@@ -3729,7 +3304,7 @@ function TockenizPay() {
3729
3304
  value: state.year,
3730
3305
  onChange: (e) => handleYearChange(e)
3731
3306
  }
3732
- ), state.yearError && /* @__PURE__ */ React13.createElement("span", { id: "exp_year-error", style: { color: "red" } }, state.yearError)), /* @__PURE__ */ React13.createElement("div", { className: "security-code-group form-group" }, /* @__PURE__ */ React13.createElement("div", { className: "input-container" }, /* @__PURE__ */ React13.createElement(
3307
+ ), 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
3308
  "input",
3734
3309
  {
3735
3310
  "data-token": "cvv",
@@ -3740,7 +3315,7 @@ function TockenizPay() {
3740
3315
  placeholder: "CVV",
3741
3316
  onChange: (e) => handleCVVChange(e)
3742
3317
  }
3743
- ), /* @__PURE__ */ React13.createElement("i", { id: "cvc", className: "fa fa-question-circle" }), state.cvvError && /* @__PURE__ */ React13.createElement("span", { id: "cvv-error", style: { color: "red" } }, state.cvvError)), /* @__PURE__ */ React13.createElement("div", { className: "cvc-preview-container two-card hide" }, /* @__PURE__ */ React13.createElement("div", { className: "amex-cvc-preview" }), /* @__PURE__ */ React13.createElement("div", { className: "visa-mc-dis-cvc-preview" }))), /* @__PURE__ */ React13.createElement("div", { className: "zip-code-group form-group" }, /* @__PURE__ */ React13.createElement("label", null, "Postal code"), /* @__PURE__ */ React13.createElement("div", { className: "input-container" }, /* @__PURE__ */ React13.createElement(
3318
+ ), /* @__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
3319
  "input",
3745
3320
  {
3746
3321
  id: "ZIPCode",
@@ -3752,7 +3327,7 @@ function TockenizPay() {
3752
3327
  value: state.zip,
3753
3328
  onChange: (e) => handleZIP(e)
3754
3329
  }
3755
- ), /* @__PURE__ */ React13.createElement(
3330
+ ), /* @__PURE__ */ React15.createElement(
3756
3331
  "a",
3757
3332
  {
3758
3333
  tabIndex: 0,
@@ -3762,15 +3337,15 @@ function TockenizPay() {
3762
3337
  "data-placement": "left",
3763
3338
  "data-content": "Enter the ZIP/Postal code for your credit card billing address."
3764
3339
  },
3765
- /* @__PURE__ */ React13.createElement("i", { className: "fa fa-question-circle" })
3766
- ), /* @__PURE__ */ React13.createElement(
3340
+ /* @__PURE__ */ React15.createElement("i", { className: "fa fa-question-circle" })
3341
+ ), /* @__PURE__ */ React15.createElement(
3767
3342
  "span",
3768
3343
  {
3769
3344
  id: "ZIPCode-error",
3770
3345
  style: { color: "red", display: "none" }
3771
3346
  },
3772
3347
  "This field is required"
3773
- ))), /* @__PURE__ */ React13.createElement("div", { className: "form-group top-amnt" }, /* @__PURE__ */ React13.createElement("div", null, /* @__PURE__ */ React13.createElement("label", null, "Payment amount"), /* @__PURE__ */ React13.createElement("div", { className: "amount-placeholder" }, /* @__PURE__ */ React13.createElement(
3348
+ ))), /* @__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
3349
  "input",
3775
3350
  {
3776
3351
  id: "Amount",
@@ -3782,7 +3357,7 @@ function TockenizPay() {
3782
3357
  onChange: (e) => handleAmount(e),
3783
3358
  onBlur: handleAmountBlur
3784
3359
  }
3785
- ))), /* @__PURE__ */ React13.createElement("div", { className: "card-row" }, /* @__PURE__ */ React13.createElement("span", { className: "visa" }), /* @__PURE__ */ React13.createElement("span", { className: "mastercard" }), /* @__PURE__ */ React13.createElement("span", { className: "amex" }), /* @__PURE__ */ React13.createElement("span", { className: "discover" }))), /* @__PURE__ */ React13.createElement(
3360
+ ))), /* @__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
3361
  "button",
3787
3362
  {
3788
3363
  type: "button",
@@ -3791,7 +3366,7 @@ function TockenizPay() {
3791
3366
  className: "btn btn-block btn-success submit-button"
3792
3367
  },
3793
3368
  "Submit"
3794
- )), /* @__PURE__ */ React13.createElement("div", { className: "powerd-by-part" }, /* @__PURE__ */ React13.createElement(
3369
+ )), /* @__PURE__ */ React15.createElement("div", { className: "powerd-by-part" }, /* @__PURE__ */ React15.createElement(
3795
3370
  "svg",
3796
3371
  {
3797
3372
  xmlns: "http://www.w3.org/2000/svg",
@@ -3799,14 +3374,14 @@ function TockenizPay() {
3799
3374
  height: "20",
3800
3375
  viewBox: "0 0 26 26"
3801
3376
  },
3802
- /* @__PURE__ */ React13.createElement(
3377
+ /* @__PURE__ */ React15.createElement(
3803
3378
  "path",
3804
3379
  {
3805
3380
  fill: "currentColor",
3806
3381
  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
3382
  }
3808
3383
  )
3809
- ), "Secure payments powered by Fractal", /* @__PURE__ */ React13.createElement(
3384
+ ), "Secure payments powered by Fractal", /* @__PURE__ */ React15.createElement(
3810
3385
  "img",
3811
3386
  {
3812
3387
  src: "https://ui.fractalpay.com/favicon.ico",
@@ -3818,13 +3393,13 @@ function TockenizPay() {
3818
3393
  }
3819
3394
 
3820
3395
  // src/app/components/Payment/GetPaymentDynamic.tsx
3821
- import React15, { useEffect as useEffect5, useState as useState10 } from "react";
3822
- import { Modal as Modal8 } from "react-bootstrap";
3396
+ import React17, { useEffect as useEffect4, useState as useState10 } from "react";
3397
+ import { Modal as Modal7 } from "react-bootstrap";
3823
3398
 
3824
3399
  // src/app/components/Loader/MyLoadingAnimation.tsx
3825
- import React14 from "react";
3400
+ import React16 from "react";
3826
3401
  function MyLoadingAnimation() {
3827
- return /* @__PURE__ */ React14.createElement(React14.Fragment, null, /* @__PURE__ */ React14.createElement(LoaderStyle_default, null), /* @__PURE__ */ React14.createElement("div", { className: "loading-animation" }, /* @__PURE__ */ React14.createElement("div", { className: "spinner" })));
3402
+ 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
3403
  }
3829
3404
 
3830
3405
  // src/app/components/Payment/GetPaymentDynamic.tsx
@@ -3851,7 +3426,7 @@ function GetPaymentDynamic(props) {
3851
3426
  console.error(ErrorText.fractalpayclientidrequired);
3852
3427
  }
3853
3428
  };
3854
- useEffect5(() => {
3429
+ useEffect4(() => {
3855
3430
  if (!fractalpayClientKey) {
3856
3431
  console.error(ErrorText.fractalpayclientidrequired);
3857
3432
  }
@@ -3874,7 +3449,7 @@ function GetPaymentDynamic(props) {
3874
3449
  const handleLoad = () => {
3875
3450
  setLoading(false);
3876
3451
  };
3877
- useEffect5(() => {
3452
+ useEffect4(() => {
3878
3453
  const messageListener = (event) => {
3879
3454
  var _a, _b;
3880
3455
  const response = (_b = (_a = event == null ? void 0 : event.data) == null ? void 0 : _a.other) == null ? void 0 : _b.data;
@@ -3889,7 +3464,7 @@ function GetPaymentDynamic(props) {
3889
3464
  window.removeEventListener("message", messageListener);
3890
3465
  };
3891
3466
  }, []);
3892
- return /* @__PURE__ */ React15.createElement("div", null, /* @__PURE__ */ React15.createElement("button", { className: "paymentBtn", onClick: handleShow }, "Pay"), /* @__PURE__ */ React15.createElement(Modal8, { show: show && iframeLoaded, id: "modal-pay", className: "modal-lg", onHide: handleClose }, /* @__PURE__ */ React15.createElement(Modal8.Header, { closeButton: true }), /* @__PURE__ */ React15.createElement(Modal8.Body, null, loading && /* @__PURE__ */ React15.createElement(MyLoadingAnimation, null), /* @__PURE__ */ React15.createElement(
3467
+ 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
3468
  "iframe",
3894
3469
  {
3895
3470
  src: `${baseUrl}widget-form/${amount}?fractalpay_public_key=${fractalpayClientKey}&order_id=${orderID}`,