Metform Elementor Contact Form Builder – Flexible and Design-Friendly Contact Form builder plugin for WordPress - Version 2.1.0

Version Description

Metform 1.3.0-beta1 is a major update. We have reconstructed the widgets with react and huge optimization for future proof. If you faced any issue please contact our support team from here https://wpmet.com/support-ticket

Download this release

Release Info

Developer ataurr
Plugin Icon 128x128 Metform Elementor Contact Form Builder – Flexible and Design-Friendly Contact Form builder plugin for WordPress
Version 2.1.0
Comparing to
See all releases

Code changes from version 2.0.1 to 2.1.0

core/admin/views/settings.php CHANGED
@@ -439,7 +439,9 @@ $settings = \MetForm\Core\Admin\Base::instance()->get_settings_option();
439
  <?php endif; ?>
440
 
441
  <li>
442
- <a class="attr-nav-item attr-nav-link" data-toggle="tab" href="#mf-thankyou-tab" role="tab"><?php esc_attr_e('Tankyou Page', 'metform'); ?></a>
 
 
443
  </li>
444
  </ul>
445
  </div>
439
  <?php endif; ?>
440
 
441
  <li>
442
+
443
+ <a class="attr-nav-item attr-nav-link" data-toggle="tab" href="#mf-thankyou-tab" role="tab"><?php esc_attr_e('Thank You Page', 'metform'); ?></a>
444
+
445
  </li>
446
  </ul>
447
  </div>
languages/metform.pot CHANGED
@@ -1,14 +1,14 @@
1
- # Copyright (C) 2021 Wpmet
2
  # This file is distributed under the GPL-2.0+.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: MetForm 2.0.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/metform\n"
7
- "POT-Creation-Date: 2021-12-13 06:44:27+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
- "PO-Revision-Date: 2021-MO-DA HO:MI+ZONE\n"
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
  "X-Generator: grunt-wp-i18n 1.0.3\n"
@@ -132,7 +132,7 @@ msgstr ""
132
  msgid "All payment info here"
133
  msgstr ""
134
 
135
- #: core/admin/views/settings.php:50 core/admin/views/settings.php:587
136
  msgid "Newsletter Integration"
137
  msgstr ""
138
 
@@ -140,7 +140,7 @@ msgstr ""
140
  msgid "All newsletter integration info here"
141
  msgstr ""
142
 
143
- #: core/admin/views/settings.php:59 core/admin/views/settings.php:908
144
  msgid "Google Sheet Integration"
145
  msgstr ""
146
 
@@ -149,8 +149,8 @@ msgid "All sheets info here"
149
  msgstr ""
150
 
151
  #: core/admin/views/settings.php:83 core/admin/views/settings.php:305
152
- #: core/admin/views/settings.php:426 core/admin/views/settings.php:589
153
- #: core/admin/views/settings.php:910
154
  #: core/integrations/onboard/views/onboard-steps/step-06.php:5
155
  msgid "Save Changes"
156
  msgstr ""
@@ -355,11 +355,11 @@ msgstr ""
355
 
356
  #: core/admin/views/settings.php:352 core/admin/views/settings.php:360
357
  #: core/admin/views/settings.php:371 core/admin/views/settings.php:379
358
- #: core/admin/views/settings.php:397 core/admin/views/settings.php:456
359
- #: core/admin/views/settings.php:464 core/admin/views/settings.php:496
360
- #: core/admin/views/settings.php:504 core/admin/views/settings.php:523
361
- #: core/admin/views/settings.php:530 core/admin/views/settings.php:929
362
- #: core/admin/views/settings.php:936
363
  msgid "Create from here"
364
  msgstr ""
365
 
@@ -395,311 +395,311 @@ msgstr ""
395
  msgid "Stripe"
396
  msgstr ""
397
 
398
- #: core/admin/views/settings.php:442
399
- msgid "Tankyou Page"
400
  msgstr ""
401
 
402
- #: core/admin/views/settings.php:453
403
  msgid "Paypal email:"
404
  msgstr ""
405
 
406
- #: core/admin/views/settings.php:454
407
  msgid "Paypal email"
408
  msgstr ""
409
 
410
- #: core/admin/views/settings.php:456
411
  msgid "Enter here your paypal email. "
412
  msgstr ""
413
 
414
- #: core/admin/views/settings.php:461
415
  msgid "Paypal token:"
416
  msgstr ""
417
 
418
- #: core/admin/views/settings.php:462
419
  msgid "Paypal token"
420
  msgstr ""
421
 
422
- #: core/admin/views/settings.php:464
423
  msgid "Enter here your paypal token. This is optional. "
424
  msgstr ""
425
 
426
- #: core/admin/views/settings.php:469 core/admin/views/settings.php:510
427
  msgid "Enable sandbox mode:"
428
  msgstr ""
429
 
430
- #: core/admin/views/settings.php:472
431
  msgid "Enable this for testing payment method. "
432
  msgstr ""
433
 
434
- #: core/admin/views/settings.php:485
435
  msgid "Image url:"
436
  msgstr ""
437
 
438
- #: core/admin/views/settings.php:486
439
  msgid "Stripe image url"
440
  msgstr ""
441
 
442
- #: core/admin/views/settings.php:488
443
  msgid ""
444
  "Enter here your stripe image url. This image will show on stripe payment "
445
  "pop up modal. "
446
  msgstr ""
447
 
448
- #: core/admin/views/settings.php:493
449
  msgid "Live publishiable key:"
450
  msgstr ""
451
 
452
- #: core/admin/views/settings.php:494
453
  msgid "Stripe live publishiable key"
454
  msgstr ""
455
 
456
- #: core/admin/views/settings.php:496
457
  msgid "Enter here your stripe live publishiable key. "
458
  msgstr ""
459
 
460
- #: core/admin/views/settings.php:501
461
  msgid "Live secret key:"
462
  msgstr ""
463
 
464
- #: core/admin/views/settings.php:502
465
  msgid "Stripe live secret key"
466
  msgstr ""
467
 
468
- #: core/admin/views/settings.php:504
469
  msgid "Enter here your stripe live secret key. "
470
  msgstr ""
471
 
472
- #: core/admin/views/settings.php:513
473
  msgid "Enable this for testing your payment system. "
474
  msgstr ""
475
 
476
- #: core/admin/views/settings.php:520
477
  msgid "Test publishiable key:"
478
  msgstr ""
479
 
480
- #: core/admin/views/settings.php:521
481
  msgid "Stripe test publishiable key"
482
  msgstr ""
483
 
484
- #: core/admin/views/settings.php:523
485
  msgid "Enter here your test publishiable key. "
486
  msgstr ""
487
 
488
- #: core/admin/views/settings.php:527
489
  msgid "Test secret key:"
490
  msgstr ""
491
 
492
- #: core/admin/views/settings.php:528
493
  msgid "Stripe test secret key"
494
  msgstr ""
495
 
496
- #: core/admin/views/settings.php:530
497
  msgid "Enter here your test secret key. "
498
  msgstr ""
499
 
500
- #: core/admin/views/settings.php:596
501
  msgid "MailChimp"
502
  msgstr ""
503
 
504
- #: core/admin/views/settings.php:601
505
  msgid "Aweber"
506
  msgstr ""
507
 
508
- #: core/admin/views/settings.php:605
509
  msgid "ActiveCampaign"
510
  msgstr ""
511
 
512
- #: core/admin/views/settings.php:609
513
  msgid "Get Response"
514
  msgstr ""
515
 
516
- #: core/admin/views/settings.php:613
517
  msgid "ConvertKit"
518
  msgstr ""
519
 
520
- #: core/admin/views/settings.php:628 core/admin/views/settings.php:725
521
- #: core/admin/views/settings.php:779 core/admin/views/settings.php:806
522
  msgid "API Key:"
523
  msgstr ""
524
 
525
- #: core/admin/views/settings.php:629
526
  msgid "Mailchimp api key"
527
  msgstr ""
528
 
529
- #: core/admin/views/settings.php:631
530
  msgid "Enter here your Mailchimp api key. "
531
  msgstr ""
532
 
533
- #: core/admin/views/settings.php:631 core/admin/views/settings.php:665
534
- #: core/admin/views/settings.php:673 core/admin/views/settings.php:728
535
- #: core/admin/views/settings.php:737 core/admin/views/settings.php:774
536
- #: core/admin/views/settings.php:782 core/admin/views/settings.php:809
537
  msgid "Get API."
538
  msgstr ""
539
 
540
- #: core/admin/views/settings.php:640 core/admin/views/settings.php:705
541
- #: core/admin/views/settings.php:747 core/admin/views/settings.php:790
542
- #: core/admin/views/settings.php:817 core/admin/views/settings.php:850
543
- #: core/admin/views/settings.php:877
544
  msgid "How To"
545
  msgstr ""
546
 
547
- #: core/admin/views/settings.php:641 core/admin/views/settings.php:706
548
- #: core/admin/views/settings.php:748 core/admin/views/settings.php:791
549
- #: core/admin/views/settings.php:818 core/admin/views/settings.php:851
550
- #: core/admin/views/settings.php:878
551
  msgid ""
552
  "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. "
553
  "Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse "
554
  "urna nibh, viverra non, semper suscipit, posuere a, pede."
555
  msgstr ""
556
 
557
- #: core/admin/views/settings.php:644 core/admin/views/settings.php:709
558
- #: core/admin/views/settings.php:751 core/admin/views/settings.php:794
559
- #: core/admin/views/settings.php:821 core/admin/views/settings.php:854
560
- #: core/admin/views/settings.php:881
561
  msgid "Item 1"
562
  msgstr ""
563
 
564
- #: core/admin/views/settings.php:645 core/admin/views/settings.php:710
565
- #: core/admin/views/settings.php:752 core/admin/views/settings.php:795
566
- #: core/admin/views/settings.php:822 core/admin/views/settings.php:855
567
- #: core/admin/views/settings.php:882
568
  msgid "Item 2"
569
  msgstr ""
570
 
571
- #: core/admin/views/settings.php:646 core/admin/views/settings.php:711
572
- #: core/admin/views/settings.php:753 core/admin/views/settings.php:796
573
- #: core/admin/views/settings.php:823 core/admin/views/settings.php:856
574
- #: core/admin/views/settings.php:883
575
  msgid "Item 3"
576
  msgstr ""
577
 
578
- #: core/admin/views/settings.php:649 core/admin/views/settings.php:714
579
- #: core/admin/views/settings.php:756 core/admin/views/settings.php:799
580
- #: core/admin/views/settings.php:826 core/admin/views/settings.php:859
581
- #: core/admin/views/settings.php:886
582
  msgid "View Documentation"
583
  msgstr ""
584
 
585
- #: core/admin/views/settings.php:662
586
  msgid "Developer App ID:"
587
  msgstr ""
588
 
589
- #: core/admin/views/settings.php:663
590
  msgid "Aweber developer clientId key"
591
  msgstr ""
592
 
593
- #: core/admin/views/settings.php:665
594
  msgid "Enter here your Aweber developer app key. "
595
  msgstr ""
596
 
597
- #: core/admin/views/settings.php:670
598
  msgid "Developer App Secret:"
599
  msgstr ""
600
 
601
- #: core/admin/views/settings.php:671
602
  msgid "Aweber developer secret key"
603
  msgstr ""
604
 
605
- #: core/admin/views/settings.php:673
606
  msgid "Enter here your Aweber developer secret key. "
607
  msgstr ""
608
 
609
- #: core/admin/views/settings.php:678
610
  msgid "Redirect url:"
611
  msgstr ""
612
 
613
- #: core/admin/views/settings.php:726 core/admin/views/settings.php:735
614
  msgid "ConvertKit api key"
615
  msgstr ""
616
 
617
- #: core/admin/views/settings.php:728 core/admin/views/settings.php:737
618
  msgid "Enter here your ConvertKit api key. "
619
  msgstr ""
620
 
621
- #: core/admin/views/settings.php:734
622
  msgid "Secret Key:"
623
  msgstr ""
624
 
625
- #: core/admin/views/settings.php:771
626
  msgid "API URL:"
627
  msgstr ""
628
 
629
- #: core/admin/views/settings.php:772
630
  msgid "ActiveCampaign API URL"
631
  msgstr ""
632
 
633
- #: core/admin/views/settings.php:774 core/admin/views/settings.php:782
634
- #: core/admin/views/settings.php:809
635
  msgid "Enter here your ActiveCampaign api key. "
636
  msgstr ""
637
 
638
- #: core/admin/views/settings.php:780 core/admin/views/settings.php:807
639
  msgid "ActiveCampaign api key"
640
  msgstr ""
641
 
642
- #: core/admin/views/settings.php:840 core/admin/views/settings.php:867
643
  msgid "GetResponse API Key:"
644
  msgstr ""
645
 
646
- #: core/admin/views/settings.php:841 core/admin/views/settings.php:868
647
  msgid "GetResponse api key"
648
  msgstr ""
649
 
650
- #: core/admin/views/settings.php:915
651
  msgid "Google Sheet"
652
  msgstr ""
653
 
654
- #: core/admin/views/settings.php:926
655
  msgid "Google Client Id:"
656
  msgstr ""
657
 
658
- #: core/admin/views/settings.php:927
659
  msgid "Google OAuth Client Id"
660
  msgstr ""
661
 
662
- #: core/admin/views/settings.php:929
663
  msgid "Enter here your google client id. "
664
  msgstr ""
665
 
666
- #: core/admin/views/settings.php:933
667
  msgid "Google Client Secret:"
668
  msgstr ""
669
 
670
- #: core/admin/views/settings.php:934
671
  msgid "Google OAuth Client Secret"
672
  msgstr ""
673
 
674
- #: core/admin/views/settings.php:936
675
  msgid "Enter here your google secret id. "
676
  msgstr ""
677
 
678
- #: core/admin/views/settings.php:943
679
  msgid "Check how to create App/Project On Google developer account"
680
  msgstr ""
681
 
682
- #: core/admin/views/settings.php:944
683
  msgid "Must add the following URL to the \"Valid OAuth redirect URIs\" field:"
684
  msgstr ""
685
 
686
- #: core/admin/views/settings.php:945
687
  msgid "After getting the App ID & App Secret, put those information"
688
  msgstr ""
689
 
690
- #: core/admin/views/settings.php:946
691
  msgid "Click on \"Save Changes\""
692
  msgstr ""
693
 
694
- #: core/admin/views/settings.php:947
695
  msgid "Click on \"Genarate Access Token\""
696
  msgstr ""
697
 
698
- #: core/admin/views/settings.php:949
699
  msgid "Genarate Access Token"
700
  msgstr ""
701
 
702
- #: core/admin/views/settings.php:952
703
  msgid ""
704
  "Note:- After 200 days your token will be expired, before the expiry of your "
705
  "token, generate a new token."
1
+ # Copyright (C) 2022 Wpmet
2
  # This file is distributed under the GPL-2.0+.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: MetForm 2.1.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/metform\n"
7
+ "POT-Creation-Date: 2022-01-09 13:59:21+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2022-MO-DA HO:MI+ZONE\n"
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
  "X-Generator: grunt-wp-i18n 1.0.3\n"
132
  msgid "All payment info here"
133
  msgstr ""
134
 
135
+ #: core/admin/views/settings.php:50 core/admin/views/settings.php:589
136
  msgid "Newsletter Integration"
137
  msgstr ""
138
 
140
  msgid "All newsletter integration info here"
141
  msgstr ""
142
 
143
+ #: core/admin/views/settings.php:59 core/admin/views/settings.php:910
144
  msgid "Google Sheet Integration"
145
  msgstr ""
146
 
149
  msgstr ""
150
 
151
  #: core/admin/views/settings.php:83 core/admin/views/settings.php:305
152
+ #: core/admin/views/settings.php:426 core/admin/views/settings.php:591
153
+ #: core/admin/views/settings.php:912
154
  #: core/integrations/onboard/views/onboard-steps/step-06.php:5
155
  msgid "Save Changes"
156
  msgstr ""
355
 
356
  #: core/admin/views/settings.php:352 core/admin/views/settings.php:360
357
  #: core/admin/views/settings.php:371 core/admin/views/settings.php:379
358
+ #: core/admin/views/settings.php:397 core/admin/views/settings.php:458
359
+ #: core/admin/views/settings.php:466 core/admin/views/settings.php:498
360
+ #: core/admin/views/settings.php:506 core/admin/views/settings.php:525
361
+ #: core/admin/views/settings.php:532 core/admin/views/settings.php:931
362
+ #: core/admin/views/settings.php:938
363
  msgid "Create from here"
364
  msgstr ""
365
 
395
  msgid "Stripe"
396
  msgstr ""
397
 
398
+ #: core/admin/views/settings.php:443
399
+ msgid "Thank You Page"
400
  msgstr ""
401
 
402
+ #: core/admin/views/settings.php:455
403
  msgid "Paypal email:"
404
  msgstr ""
405
 
406
+ #: core/admin/views/settings.php:456
407
  msgid "Paypal email"
408
  msgstr ""
409
 
410
+ #: core/admin/views/settings.php:458
411
  msgid "Enter here your paypal email. "
412
  msgstr ""
413
 
414
+ #: core/admin/views/settings.php:463
415
  msgid "Paypal token:"
416
  msgstr ""
417
 
418
+ #: core/admin/views/settings.php:464
419
  msgid "Paypal token"
420
  msgstr ""
421
 
422
+ #: core/admin/views/settings.php:466
423
  msgid "Enter here your paypal token. This is optional. "
424
  msgstr ""
425
 
426
+ #: core/admin/views/settings.php:471 core/admin/views/settings.php:512
427
  msgid "Enable sandbox mode:"
428
  msgstr ""
429
 
430
+ #: core/admin/views/settings.php:474
431
  msgid "Enable this for testing payment method. "
432
  msgstr ""
433
 
434
+ #: core/admin/views/settings.php:487
435
  msgid "Image url:"
436
  msgstr ""
437
 
438
+ #: core/admin/views/settings.php:488
439
  msgid "Stripe image url"
440
  msgstr ""
441
 
442
+ #: core/admin/views/settings.php:490
443
  msgid ""
444
  "Enter here your stripe image url. This image will show on stripe payment "
445
  "pop up modal. "
446
  msgstr ""
447
 
448
+ #: core/admin/views/settings.php:495
449
  msgid "Live publishiable key:"
450
  msgstr ""
451
 
452
+ #: core/admin/views/settings.php:496
453
  msgid "Stripe live publishiable key"
454
  msgstr ""
455
 
456
+ #: core/admin/views/settings.php:498
457
  msgid "Enter here your stripe live publishiable key. "
458
  msgstr ""
459
 
460
+ #: core/admin/views/settings.php:503
461
  msgid "Live secret key:"
462
  msgstr ""
463
 
464
+ #: core/admin/views/settings.php:504
465
  msgid "Stripe live secret key"
466
  msgstr ""
467
 
468
+ #: core/admin/views/settings.php:506
469
  msgid "Enter here your stripe live secret key. "
470
  msgstr ""
471
 
472
+ #: core/admin/views/settings.php:515
473
  msgid "Enable this for testing your payment system. "
474
  msgstr ""
475
 
476
+ #: core/admin/views/settings.php:522
477
  msgid "Test publishiable key:"
478
  msgstr ""
479
 
480
+ #: core/admin/views/settings.php:523
481
  msgid "Stripe test publishiable key"
482
  msgstr ""
483
 
484
+ #: core/admin/views/settings.php:525
485
  msgid "Enter here your test publishiable key. "
486
  msgstr ""
487
 
488
+ #: core/admin/views/settings.php:529
489
  msgid "Test secret key:"
490
  msgstr ""
491
 
492
+ #: core/admin/views/settings.php:530
493
  msgid "Stripe test secret key"
494
  msgstr ""
495
 
496
+ #: core/admin/views/settings.php:532
497
  msgid "Enter here your test secret key. "
498
  msgstr ""
499
 
500
+ #: core/admin/views/settings.php:598
501
  msgid "MailChimp"
502
  msgstr ""
503
 
504
+ #: core/admin/views/settings.php:603
505
  msgid "Aweber"
506
  msgstr ""
507
 
508
+ #: core/admin/views/settings.php:607
509
  msgid "ActiveCampaign"
510
  msgstr ""
511
 
512
+ #: core/admin/views/settings.php:611
513
  msgid "Get Response"
514
  msgstr ""
515
 
516
+ #: core/admin/views/settings.php:615
517
  msgid "ConvertKit"
518
  msgstr ""
519
 
520
+ #: core/admin/views/settings.php:630 core/admin/views/settings.php:727
521
+ #: core/admin/views/settings.php:781 core/admin/views/settings.php:808
522
  msgid "API Key:"
523
  msgstr ""
524
 
525
+ #: core/admin/views/settings.php:631
526
  msgid "Mailchimp api key"
527
  msgstr ""
528
 
529
+ #: core/admin/views/settings.php:633
530
  msgid "Enter here your Mailchimp api key. "
531
  msgstr ""
532
 
533
+ #: core/admin/views/settings.php:633 core/admin/views/settings.php:667
534
+ #: core/admin/views/settings.php:675 core/admin/views/settings.php:730
535
+ #: core/admin/views/settings.php:739 core/admin/views/settings.php:776
536
+ #: core/admin/views/settings.php:784 core/admin/views/settings.php:811
537
  msgid "Get API."
538
  msgstr ""
539
 
540
+ #: core/admin/views/settings.php:642 core/admin/views/settings.php:707
541
+ #: core/admin/views/settings.php:749 core/admin/views/settings.php:792
542
+ #: core/admin/views/settings.php:819 core/admin/views/settings.php:852
543
+ #: core/admin/views/settings.php:879
544
  msgid "How To"
545
  msgstr ""
546
 
547
+ #: core/admin/views/settings.php:643 core/admin/views/settings.php:708
548
+ #: core/admin/views/settings.php:750 core/admin/views/settings.php:793
549
+ #: core/admin/views/settings.php:820 core/admin/views/settings.php:853
550
+ #: core/admin/views/settings.php:880
551
  msgid ""
552
  "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. "
553
  "Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse "
554
  "urna nibh, viverra non, semper suscipit, posuere a, pede."
555
  msgstr ""
556
 
557
+ #: core/admin/views/settings.php:646 core/admin/views/settings.php:711
558
+ #: core/admin/views/settings.php:753 core/admin/views/settings.php:796
559
+ #: core/admin/views/settings.php:823 core/admin/views/settings.php:856
560
+ #: core/admin/views/settings.php:883
561
  msgid "Item 1"
562
  msgstr ""
563
 
564
+ #: core/admin/views/settings.php:647 core/admin/views/settings.php:712
565
+ #: core/admin/views/settings.php:754 core/admin/views/settings.php:797
566
+ #: core/admin/views/settings.php:824 core/admin/views/settings.php:857
567
+ #: core/admin/views/settings.php:884
568
  msgid "Item 2"
569
  msgstr ""
570
 
571
+ #: core/admin/views/settings.php:648 core/admin/views/settings.php:713
572
+ #: core/admin/views/settings.php:755 core/admin/views/settings.php:798
573
+ #: core/admin/views/settings.php:825 core/admin/views/settings.php:858
574
+ #: core/admin/views/settings.php:885
575
  msgid "Item 3"
576
  msgstr ""
577
 
578
+ #: core/admin/views/settings.php:651 core/admin/views/settings.php:716
579
+ #: core/admin/views/settings.php:758 core/admin/views/settings.php:801
580
+ #: core/admin/views/settings.php:828 core/admin/views/settings.php:861
581
+ #: core/admin/views/settings.php:888
582
  msgid "View Documentation"
583
  msgstr ""
584
 
585
+ #: core/admin/views/settings.php:664
586
  msgid "Developer App ID:"
587
  msgstr ""
588
 
589
+ #: core/admin/views/settings.php:665
590
  msgid "Aweber developer clientId key"
591
  msgstr ""
592
 
593
+ #: core/admin/views/settings.php:667
594
  msgid "Enter here your Aweber developer app key. "
595
  msgstr ""
596
 
597
+ #: core/admin/views/settings.php:672
598
  msgid "Developer App Secret:"
599
  msgstr ""
600
 
601
+ #: core/admin/views/settings.php:673
602
  msgid "Aweber developer secret key"
603
  msgstr ""
604
 
605
+ #: core/admin/views/settings.php:675
606
  msgid "Enter here your Aweber developer secret key. "
607
  msgstr ""
608
 
609
+ #: core/admin/views/settings.php:680
610
  msgid "Redirect url:"
611
  msgstr ""
612
 
613
+ #: core/admin/views/settings.php:728 core/admin/views/settings.php:737
614
  msgid "ConvertKit api key"
615
  msgstr ""
616
 
617
+ #: core/admin/views/settings.php:730 core/admin/views/settings.php:739
618
  msgid "Enter here your ConvertKit api key. "
619
  msgstr ""
620
 
621
+ #: core/admin/views/settings.php:736
622
  msgid "Secret Key:"
623
  msgstr ""
624
 
625
+ #: core/admin/views/settings.php:773
626
  msgid "API URL:"
627
  msgstr ""
628
 
629
+ #: core/admin/views/settings.php:774
630
  msgid "ActiveCampaign API URL"
631
  msgstr ""
632
 
633
+ #: core/admin/views/settings.php:776 core/admin/views/settings.php:784
634
+ #: core/admin/views/settings.php:811
635
  msgid "Enter here your ActiveCampaign api key. "
636
  msgstr ""
637
 
638
+ #: core/admin/views/settings.php:782 core/admin/views/settings.php:809
639
  msgid "ActiveCampaign api key"
640
  msgstr ""
641
 
642
+ #: core/admin/views/settings.php:842 core/admin/views/settings.php:869
643
  msgid "GetResponse API Key:"
644
  msgstr ""
645
 
646
+ #: core/admin/views/settings.php:843 core/admin/views/settings.php:870
647
  msgid "GetResponse api key"
648
  msgstr ""
649
 
650
+ #: core/admin/views/settings.php:917
651
  msgid "Google Sheet"
652
  msgstr ""
653
 
654
+ #: core/admin/views/settings.php:928
655
  msgid "Google Client Id:"
656
  msgstr ""
657
 
658
+ #: core/admin/views/settings.php:929
659
  msgid "Google OAuth Client Id"
660
  msgstr ""
661
 
662
+ #: core/admin/views/settings.php:931
663
  msgid "Enter here your google client id. "
664
  msgstr ""
665
 
666
+ #: core/admin/views/settings.php:935
667
  msgid "Google Client Secret:"
668
  msgstr ""
669
 
670
+ #: core/admin/views/settings.php:936
671
  msgid "Google OAuth Client Secret"
672
  msgstr ""
673
 
674
+ #: core/admin/views/settings.php:938
675
  msgid "Enter here your google secret id. "
676
  msgstr ""
677
 
678
+ #: core/admin/views/settings.php:945
679
  msgid "Check how to create App/Project On Google developer account"
680
  msgstr ""
681
 
682
+ #: core/admin/views/settings.php:946
683
  msgid "Must add the following URL to the \"Valid OAuth redirect URIs\" field:"
684
  msgstr ""
685
 
686
+ #: core/admin/views/settings.php:947
687
  msgid "After getting the App ID & App Secret, put those information"
688
  msgstr ""
689
 
690
+ #: core/admin/views/settings.php:948
691
  msgid "Click on \"Save Changes\""
692
  msgstr ""
693
 
694
+ #: core/admin/views/settings.php:949
695
  msgid "Click on \"Genarate Access Token\""
696
  msgstr ""
697
 
698
+ #: core/admin/views/settings.php:951
699
  msgid "Genarate Access Token"
700
  msgstr ""
701
 
702
+ #: core/admin/views/settings.php:954
703
  msgid ""
704
  "Note:- After 200 days your token will be expired, before the expiry of your "
705
  "token, generate a new token."
metform.php CHANGED
@@ -5,7 +5,7 @@ defined( 'ABSPATH' ) || exit;
5
  * Plugin Name: MetForm
6
  * Plugin URI: http://products.wpmet.com/metform/
7
  * Description: Most flexible and design friendly form builder for Elementor
8
- * Version: 2.0.1
9
  * Author: Wpmet
10
  * Author URI: https://wpmet.com
11
  * Text Domain: metform
5
  * Plugin Name: MetForm
6
  * Plugin URI: http://products.wpmet.com/metform/
7
  * Description: Most flexible and design friendly form builder for Elementor
8
+ * Version: 2.1.0
9
  * Author: Wpmet
10
  * Author URI: https://wpmet.com
11
  * Text Domain: metform
plugin.php CHANGED
@@ -21,7 +21,7 @@ final class Plugin {
21
 
22
  public function version()
23
  {
24
- return '2.0.1';
25
  }
26
 
27
  public function package_type()
@@ -217,7 +217,7 @@ final class Plugin {
217
 
218
  add_action('elementor/editor/before_enqueue_scripts', [$this, 'edit_view_scripts']);
219
 
220
- add_action('init', array($this, 'i18n'));
221
 
222
  add_action('admin_enqueue_scripts', [$this, 'js_css_admin']);
223
  add_action('wp_enqueue_scripts', [$this, 'js_css_public']);
@@ -248,12 +248,12 @@ final class Plugin {
248
 
249
  wp_register_script('htm', $this->public_url() . 'assets/js/htm.js', null, $this->version(), true);
250
 
251
- wp_register_script('metform-app', $this->public_url() . 'assets/js/app.js', array('htm', 'jquery', 'wp-element'), $this->version(), true);
252
 
253
- wp_localize_script('metform-app', 'mf', array(
254
  'postType' => get_post_type(),
255
- 'restURI' => get_rest_url(null, 'metform/v1/forms/views/')
256
- ));
257
 
258
  // Recaptcha Support Script.
259
  wp_register_script( 'recaptcha-support', $this->public_url() . 'assets/js/recaptcha-support.js', ['jquery'], $this->version(), true );
@@ -262,20 +262,20 @@ final class Plugin {
262
  // begins pro feature
263
  // begins for mf-simple-repeater
264
  wp_register_style('asRange', $this->public_url() . 'assets/css/asRange.min.css', false, $this->version());
265
- wp_register_script('asRange', $this->public_url() . 'assets/js/jquery-asRange.min.js', array(), $this->version(), true);
266
 
267
  wp_register_style('mf-select2', $this->public_url() . 'assets/css/select2.min.css', false, $this->version());
268
- wp_register_script('mf-select2', $this->public_url() . 'assets/js/select2.min.js', array(), $this->version(), true);
269
  // ends for mf-simple-repeater
270
 
271
- wp_register_script('recaptcha-v2', 'https://google.com/recaptcha/api.js?render=explicit', array(), null, true);
272
 
273
  if (isset($this->global_settings['mf_recaptcha_version']) && ($this->global_settings['mf_recaptcha_version'] == 'recaptcha-v3') && isset($this->global_settings['mf_recaptcha_site_key_v3']) && ($this->global_settings['mf_recaptcha_site_key_v3'] != '')) {
274
- wp_register_script('recaptcha-v3', 'https://www.google.com/recaptcha/api.js?render=' . $this->global_settings['mf_recaptcha_site_key_v3'], array(), $this->version(), false);
275
  }
276
 
277
  if (isset($this->global_settings['mf_google_map_api_key']) && ($this->global_settings['mf_google_map_api_key'] != '')) {
278
- wp_register_script('maps-api', 'https://maps.googleapis.com/maps/api/js?key=' . $this->global_settings['mf_google_map_api_key'] . '&libraries=places&&callback=mfMapLocation', array(), '', true);
279
  }
280
 
281
  // for date, time, simple repeater
@@ -300,8 +300,8 @@ final class Plugin {
300
  wp_enqueue_style('metform-admin-style', $this->public_url() . 'assets/css/admin-style.css', false, null);
301
 
302
 
303
- wp_enqueue_script('metform-ui', $this->public_url() . 'assets/js/ui.min.js', array(), $this->version(), true);
304
- wp_enqueue_script('metform-admin-script', $this->public_url() . 'assets/js/admin-script.js', array(), null, true);
305
 
306
  wp_add_inline_script('metform-admin-script', "
307
  var metform_api = {
@@ -332,14 +332,14 @@ final class Plugin {
332
  wp_enqueue_style('metform-ui', $this->public_url() . 'assets/css/metform-ui.css', false, $this->version());
333
  wp_enqueue_style('metform-admin-style', $this->public_url() . 'assets/css/admin-style.css', false, null);
334
 
335
- wp_enqueue_script('metform-ui', $this->public_url() . 'assets/js/ui.min.js', array(), $this->version(), true);
336
- wp_enqueue_script('metform-admin-script', $this->public_url() . 'assets/js/admin-script.js', array(), null, true);
337
- wp_localize_script('metform-admin-script', 'metform_api', array('resturl' => get_rest_url(), 'admin_url' => get_admin_url()));
338
  }
339
 
340
  if ($screen->id == 'edit-metform-entry' || $screen->id == 'metform-entry') {
341
  wp_enqueue_style('metform-ui', $this->public_url() . 'assets/css/metform-ui.css', false, $this->version());
342
- wp_enqueue_script('metform-entry-script', $this->public_url() . 'assets/js/admin-entry-script.js', array(), $this->version(), true);
343
  }
344
  }
345
 
@@ -349,10 +349,10 @@ final class Plugin {
349
  $screen = get_current_screen();
350
 
351
  if ($screen->id == 'edit-metform-entry') {
352
- $args = array(
353
  'post_type' => 'metform-form',
354
  'post_status' => 'publish',
355
- );
356
 
357
  $forms = get_posts($args);
358
 
21
 
22
  public function version()
23
  {
24
+ return '2.1.0';
25
  }
26
 
27
  public function package_type()
217
 
218
  add_action('elementor/editor/before_enqueue_scripts', [$this, 'edit_view_scripts']);
219
 
220
+ add_action('init', [$this, 'i18n']);
221
 
222
  add_action('admin_enqueue_scripts', [$this, 'js_css_admin']);
223
  add_action('wp_enqueue_scripts', [$this, 'js_css_public']);
248
 
249
  wp_register_script('htm', $this->public_url() . 'assets/js/htm.js', null, $this->version(), true);
250
 
251
+ wp_register_script('metform-app', $this->public_url() . 'assets/js/app.js', ['htm', 'jquery', 'wp-element'], $this->version(), true);
252
 
253
+ wp_localize_script('metform-app', 'mf', [
254
  'postType' => get_post_type(),
255
+ 'restURI' => get_rest_url(null, 'metform/v1/forms/views/'),
256
+ ]);
257
 
258
  // Recaptcha Support Script.
259
  wp_register_script( 'recaptcha-support', $this->public_url() . 'assets/js/recaptcha-support.js', ['jquery'], $this->version(), true );
262
  // begins pro feature
263
  // begins for mf-simple-repeater
264
  wp_register_style('asRange', $this->public_url() . 'assets/css/asRange.min.css', false, $this->version());
265
+ wp_register_script('asRange', $this->public_url() . 'assets/js/jquery-asRange.min.js', [], $this->version(), true);
266
 
267
  wp_register_style('mf-select2', $this->public_url() . 'assets/css/select2.min.css', false, $this->version());
268
+ wp_register_script('mf-select2', $this->public_url() . 'assets/js/select2.min.js', [], $this->version(), true);
269
  // ends for mf-simple-repeater
270
 
271
+ wp_register_script('recaptcha-v2', 'https://google.com/recaptcha/api.js?render=explicit', [], null, true);
272
 
273
  if (isset($this->global_settings['mf_recaptcha_version']) && ($this->global_settings['mf_recaptcha_version'] == 'recaptcha-v3') && isset($this->global_settings['mf_recaptcha_site_key_v3']) && ($this->global_settings['mf_recaptcha_site_key_v3'] != '')) {
274
+ wp_register_script('recaptcha-v3', 'https://www.google.com/recaptcha/api.js?render=' . $this->global_settings['mf_recaptcha_site_key_v3'], [], $this->version(), false);
275
  }
276
 
277
  if (isset($this->global_settings['mf_google_map_api_key']) && ($this->global_settings['mf_google_map_api_key'] != '')) {
278
+ wp_register_script('maps-api', 'https://maps.googleapis.com/maps/api/js?key=' . $this->global_settings['mf_google_map_api_key'] . '&libraries=places&&callback=mfMapLocation', [], '', true);
279
  }
280
 
281
  // for date, time, simple repeater
300
  wp_enqueue_style('metform-admin-style', $this->public_url() . 'assets/css/admin-style.css', false, null);
301
 
302
 
303
+ wp_enqueue_script('metform-ui', $this->public_url() . 'assets/js/ui.min.js', [], $this->version(), true);
304
+ wp_enqueue_script('metform-admin-script', $this->public_url() . 'assets/js/admin-script.js', [], null, true);
305
 
306
  wp_add_inline_script('metform-admin-script', "
307
  var metform_api = {
332
  wp_enqueue_style('metform-ui', $this->public_url() . 'assets/css/metform-ui.css', false, $this->version());
333
  wp_enqueue_style('metform-admin-style', $this->public_url() . 'assets/css/admin-style.css', false, null);
334
 
335
+ wp_enqueue_script('metform-ui', $this->public_url() . 'assets/js/ui.min.js', [], $this->version(), true);
336
+ wp_enqueue_script('metform-admin-script', $this->public_url() . 'assets/js/admin-script.js', [], null, true);
337
+ wp_localize_script('metform-admin-script', 'metform_api', ['resturl' => get_rest_url(), 'admin_url' => get_admin_url()]);
338
  }
339
 
340
  if ($screen->id == 'edit-metform-entry' || $screen->id == 'metform-entry') {
341
  wp_enqueue_style('metform-ui', $this->public_url() . 'assets/css/metform-ui.css', false, $this->version());
342
+ wp_enqueue_script('metform-entry-script', $this->public_url() . 'assets/js/admin-entry-script.js', [], $this->version(), true);
343
  }
344
  }
345
 
349
  $screen = get_current_screen();
350
 
351
  if ($screen->id == 'edit-metform-entry') {
352
+ $args = [
353
  'post_type' => 'metform-form',
354
  'post_status' => 'publish',
355
+ ];
356
 
357
  $forms = get_posts($args);
358
 
public/assets/js/app.js CHANGED
@@ -48,4 +48,4 @@ PERFORMANCE OF THIS SOFTWARE.
48
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
49
  * SOFTWARE.
50
  */
51
- var _r="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,Pr=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(_r&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var jr=_r&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),Pr))}};function Tr(e){return e&&"[object Function]"==={}.toString.call(e)}function Ar(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function Ir(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function Rr(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=Ar(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:Rr(Ir(e))}function Nr(e){return e&&e.referenceNode?e.referenceNode:e}var Lr=_r&&!(!window.MSInputMethodContext||!document.documentMode),Vr=_r&&/MSIE 10/.test(navigator.userAgent);function Fr(e){return 11===e?Lr:10===e?Vr:Lr||Vr}function Hr(e){if(!e)return document.documentElement;for(var t=Fr(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===Ar(n,"position")?Hr(n):n:e?e.ownerDocument.documentElement:document.documentElement}function Ur(e){return null!==e.parentNode?Ur(e.parentNode):e}function Wr(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,o=n?t:e,a=document.createRange();a.setStart(r,0),a.setEnd(o,0);var i,s,u=a.commonAncestorContainer;if(e!==u&&t!==u||r.contains(o))return"BODY"===(s=(i=u).nodeName)||"HTML"!==s&&Hr(i.firstElementChild)!==i?Hr(u):u;var c=Ur(e);return c.host?Wr(c.host,t):Wr(e,Ur(t).host)}function zr(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var o=e.ownerDocument.documentElement,a=e.ownerDocument.scrollingElement||o;return a[n]}return e[n]}function Br(e,t){var n=arguments.length>2&&arguments[2]!==undefined&&arguments[2],r=zr(t,"top"),o=zr(t,"left"),a=n?-1:1;return e.top+=r*a,e.bottom+=r*a,e.left+=o*a,e.right+=o*a,e}function Yr(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function qr(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],Fr(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function Kr(e){var t=e.body,n=e.documentElement,r=Fr(10)&&getComputedStyle(n);return{height:qr("Height",t,n,r),width:qr("Width",t,n,r)}}var $r=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Gr=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Jr=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},Qr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function Xr(e){return Qr({},e,{right:e.left+e.width,bottom:e.top+e.height})}function Zr(e){var t={};try{if(Fr(10)){t=e.getBoundingClientRect();var n=zr(e,"top"),r=zr(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(f){}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},a="HTML"===e.nodeName?Kr(e.ownerDocument):{},i=a.width||e.clientWidth||o.width,s=a.height||e.clientHeight||o.height,u=e.offsetWidth-i,c=e.offsetHeight-s;if(u||c){var l=Ar(e);u-=Yr(l,"x"),c-=Yr(l,"y"),o.width-=u,o.height-=c}return Xr(o)}function eo(e,t){var n=arguments.length>2&&arguments[2]!==undefined&&arguments[2],r=Fr(10),o="HTML"===t.nodeName,a=Zr(e),i=Zr(t),s=Rr(e),u=Ar(t),c=parseFloat(u.borderTopWidth),l=parseFloat(u.borderLeftWidth);n&&o&&(i.top=Math.max(i.top,0),i.left=Math.max(i.left,0));var f=Xr({top:a.top-i.top-c,left:a.left-i.left-l,width:a.width,height:a.height});if(f.marginTop=0,f.marginLeft=0,!r&&o){var d=parseFloat(u.marginTop),p=parseFloat(u.marginLeft);f.top-=c-d,f.bottom-=c-d,f.left-=l-p,f.right-=l-p,f.marginTop=d,f.marginLeft=p}return(r&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(f=Br(f,t)),f}function to(e){var t=arguments.length>1&&arguments[1]!==undefined&&arguments[1],n=e.ownerDocument.documentElement,r=eo(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),a=Math.max(n.clientHeight,window.innerHeight||0),i=t?0:zr(n),s=t?0:zr(n,"left"),u={top:i-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:o,height:a};return Xr(u)}function no(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===Ar(e,"position"))return!0;var n=Ir(e);return!!n&&no(n)}function ro(e){if(!e||!e.parentElement||Fr())return document.documentElement;for(var t=e.parentElement;t&&"none"===Ar(t,"transform");)t=t.parentElement;return t||document.documentElement}function oo(e,t,n,r){var o=arguments.length>4&&arguments[4]!==undefined&&arguments[4],a={top:0,left:0},i=o?ro(e):Wr(e,Nr(t));if("viewport"===r)a=to(i,o);else{var s=void 0;"scrollParent"===r?"BODY"===(s=Rr(Ir(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===r?e.ownerDocument.documentElement:r;var u=eo(s,i,o);if("HTML"!==s.nodeName||no(i))a=u;else{var c=Kr(e.ownerDocument),l=c.height,f=c.width;a.top+=u.top-u.marginTop,a.bottom=l+u.top,a.left+=u.left-u.marginLeft,a.right=f+u.left}}var d="number"==typeof(n=n||0);return a.left+=d?n:n.left||0,a.top+=d?n:n.top||0,a.right-=d?n:n.right||0,a.bottom-=d?n:n.bottom||0,a}function ao(e){return e.width*e.height}function io(e,t,n,r,o){var a=arguments.length>5&&arguments[5]!==undefined?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var i=oo(n,r,a,o),s={top:{width:i.width,height:t.top-i.top},right:{width:i.right-t.right,height:i.height},bottom:{width:i.width,height:i.bottom-t.bottom},left:{width:t.left-i.left,height:i.height}},u=Object.keys(s).map((function(e){return Qr({key:e},s[e],{area:ao(s[e])})})).sort((function(e,t){return t.area-e.area})),c=u.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),l=c.length>0?c[0].key:u[0].key,f=e.split("-")[1];return l+(f?"-"+f:"")}function so(e,t,n){var r=arguments.length>3&&arguments[3]!==undefined?arguments[3]:null,o=r?ro(t):Wr(t,Nr(n));return eo(n,o,r)}function uo(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function co(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function lo(e,t,n){n=n.split("-")[0];var r=uo(e),o={width:r.width,height:r.height},a=-1!==["right","left"].indexOf(n),i=a?"top":"left",s=a?"left":"top",u=a?"height":"width",c=a?"width":"height";return o[i]=t[i]+t[u]/2-r[u]/2,o[s]=n===s?t[s]-r[c]:t[co(s)],o}function fo(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function po(e,t,n){return(n===undefined?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=fo(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n))).forEach((function(e){e["function"]&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e["function"]||e.fn;e.enabled&&Tr(n)&&(t.offsets.popper=Xr(t.offsets.popper),t.offsets.reference=Xr(t.offsets.reference),t=n(t,e))})),t}function ho(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=so(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=io(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=lo(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=po(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function mo(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function go(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var o=t[r],a=o?""+o+n:e;if("undefined"!=typeof document.body.style[a])return a}return null}function vo(){return this.state.isDestroyed=!0,mo(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[go("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function bo(e){var t=e.ownerDocument;return t?t.defaultView:window}function yo(e,t,n,r){var o="BODY"===e.nodeName,a=o?e.ownerDocument.defaultView:e;a.addEventListener(t,n,{passive:!0}),o||yo(Rr(a.parentNode),t,n,r),r.push(a)}function wo(e,t,n,r){n.updateBound=r,bo(e).addEventListener("resize",n.updateBound,{passive:!0});var o=Rr(e);return yo(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function Co(){this.state.eventsEnabled||(this.state=wo(this.reference,this.options,this.state,this.scheduleUpdate))}function Oo(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,bo(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function xo(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function Do(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&xo(t[n])&&(r="px"),e.style[n]=t[n]+r}))}var ko=_r&&/Firefox/i.test(navigator.userAgent);function So(e,t,n){var r=fo(e,(function(e){return e.name===t})),o=!!r&&e.some((function(e){return e.name===n&&e.enabled&&e.order<r.order}));if(!o){var a="`"+t+"`",i="`"+n+"`";console.warn(i+" modifier is required by "+a+" modifier in order to work, be sure to include it before "+a+"!")}return o}var Eo=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Mo=Eo.slice(3);function _o(e){var t=arguments.length>1&&arguments[1]!==undefined&&arguments[1],n=Mo.indexOf(e),r=Mo.slice(n+1).concat(Mo.slice(0,n));return t?r.reverse():r}var Po="flip",jo="clockwise",To="counterclockwise";function Ao(e,t,n,r){var o=[0,0],a=-1!==["right","left"].indexOf(r),i=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=i.indexOf(fo(i,(function(e){return-1!==e.search(/,|\s/)})));i[s]&&-1===i[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var u=/\s*,\s*|\s+/,c=-1!==s?[i.slice(0,s).concat([i[s].split(u)[0]]),[i[s].split(u)[1]].concat(i.slice(s+1))]:[i];return(c=c.map((function(e,r){var o=(1===r?!a:a)?"height":"width",i=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,i=!0,e):i?(e[e.length-1]+=t,i=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),a=+o[1],i=o[2];if(!a)return e;if(0===i.indexOf("%")){var s=void 0;switch(i){case"%p":s=n;break;case"%":case"%r":default:s=r}return Xr(s)[t]/100*a}if("vh"===i||"vw"===i)return("vh"===i?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*a;return a}(e,o,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,r){xo(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))}))})),o}var Io={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var o=e.offsets,a=o.reference,i=o.popper,s=-1!==["bottom","top"].indexOf(n),u=s?"left":"top",c=s?"width":"height",l={start:Jr({},u,a[u]),end:Jr({},u,a[u]+a[c]-i[c])};e.offsets.popper=Qr({},i,l[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,o=e.offsets,a=o.popper,i=o.reference,s=r.split("-")[0],u=void 0;return u=xo(+n)?[+n,0]:Ao(n,a,i,s),"left"===s?(a.top+=u[0],a.left-=u[1]):"right"===s?(a.top+=u[0],a.left+=u[1]):"top"===s?(a.left+=u[0],a.top-=u[1]):"bottom"===s&&(a.left+=u[0],a.top+=u[1]),e.popper=a,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||Hr(e.instance.popper);e.instance.reference===n&&(n=Hr(n));var r=go("transform"),o=e.instance.popper.style,a=o.top,i=o.left,s=o[r];o.top="",o.left="",o[r]="";var u=oo(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=a,o.left=i,o[r]=s,t.boundaries=u;var c=t.priority,l=e.offsets.popper,f={primary:function(e){var n=l[e];return l[e]<u[e]&&!t.escapeWithReference&&(n=Math.max(l[e],u[e])),Jr({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=l[n];return l[e]>u[e]&&!t.escapeWithReference&&(r=Math.min(l[n],u[e]-("right"===e?l.width:l.height))),Jr({},n,r)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";l=Qr({},l,f[t](e))})),e.offsets.popper=l,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,o=e.placement.split("-")[0],a=Math.floor,i=-1!==["top","bottom"].indexOf(o),s=i?"right":"bottom",u=i?"left":"top",c=i?"width":"height";return n[s]<a(r[u])&&(e.offsets.popper[u]=a(r[u])-n[c]),n[u]>a(r[s])&&(e.offsets.popper[u]=a(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!So(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],a=e.offsets,i=a.popper,s=a.reference,u=-1!==["left","right"].indexOf(o),c=u?"height":"width",l=u?"Top":"Left",f=l.toLowerCase(),d=u?"left":"top",p=u?"bottom":"right",h=uo(r)[c];s[p]-h<i[f]&&(e.offsets.popper[f]-=i[f]-(s[p]-h)),s[f]+h>i[p]&&(e.offsets.popper[f]+=s[f]+h-i[p]),e.offsets.popper=Xr(e.offsets.popper);var m=s[f]+s[c]/2-h/2,g=Ar(e.instance.popper),v=parseFloat(g["margin"+l]),b=parseFloat(g["border"+l+"Width"]),y=m-e.offsets.popper[f]-v-b;return y=Math.max(Math.min(i[c]-h,y),0),e.arrowElement=r,e.offsets.arrow=(Jr(n={},f,Math.round(y)),Jr(n,d,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(mo(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=oo(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=co(r),a=e.placement.split("-")[1]||"",i=[];switch(t.behavior){case Po:i=[r,o];break;case jo:i=_o(r);break;case To:i=_o(r,!0);break;default:i=t.behavior}return i.forEach((function(s,u){if(r!==s||i.length===u+1)return e;r=e.placement.split("-")[0],o=co(r);var c=e.offsets.popper,l=e.offsets.reference,f=Math.floor,d="left"===r&&f(c.right)>f(l.left)||"right"===r&&f(c.left)<f(l.right)||"top"===r&&f(c.bottom)>f(l.top)||"bottom"===r&&f(c.top)<f(l.bottom),p=f(c.left)<f(n.left),h=f(c.right)>f(n.right),m=f(c.top)<f(n.top),g=f(c.bottom)>f(n.bottom),v="left"===r&&p||"right"===r&&h||"top"===r&&m||"bottom"===r&&g,b=-1!==["top","bottom"].indexOf(r),y=!!t.flipVariations&&(b&&"start"===a&&p||b&&"end"===a&&h||!b&&"start"===a&&m||!b&&"end"===a&&g),w=!!t.flipVariationsByContent&&(b&&"start"===a&&h||b&&"end"===a&&p||!b&&"start"===a&&g||!b&&"end"===a&&m),C=y||w;(d||v||C)&&(e.flipped=!0,(d||v)&&(r=i[u+1]),C&&(a=function(e){return"end"===e?"start":"start"===e?"end":e}(a)),e.placement=r+(a?"-"+a:""),e.offsets.popper=Qr({},e.offsets.popper,lo(e.instance.popper,e.offsets.reference,e.placement)),e=po(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,o=r.popper,a=r.reference,i=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return o[i?"left":"top"]=a[n]-(s?o[i?"width":"height"]:0),e.placement=co(t),e.offsets.popper=Xr(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!So(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=fo(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,o=e.offsets.popper,a=fo(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;a!==undefined&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var i=a!==undefined?a:t.gpuAcceleration,s=Hr(e.instance.popper),u=Zr(s),c={position:o.position},l=function(e,t){var n=e.offsets,r=n.popper,o=n.reference,a=Math.round,i=Math.floor,s=function(e){return e},u=a(o.width),c=a(r.width),l=-1!==["left","right"].indexOf(e.placement),f=-1!==e.placement.indexOf("-"),d=t?l||f||u%2==c%2?a:i:s,p=t?a:s;return{left:d(u%2==1&&c%2==1&&!f&&t?r.left-1:r.left),top:p(r.top),bottom:p(r.bottom),right:d(r.right)}}(e,window.devicePixelRatio<2||!ko),f="bottom"===n?"top":"bottom",d="right"===r?"left":"right",p=go("transform"),h=void 0,m=void 0;if(m="bottom"===f?"HTML"===s.nodeName?-s.clientHeight+l.bottom:-u.height+l.bottom:l.top,h="right"===d?"HTML"===s.nodeName?-s.clientWidth+l.right:-u.width+l.right:l.left,i&&p)c[p]="translate3d("+h+"px, "+m+"px, 0)",c[f]=0,c[d]=0,c.willChange="transform";else{var g="bottom"===f?-1:1,v="right"===d?-1:1;c[f]=m*g,c[d]=h*v,c.willChange=f+", "+d}var b={"x-placement":e.placement};return e.attributes=Qr({},b,e.attributes),e.styles=Qr({},c,e.styles),e.arrowStyles=Qr({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return Do(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&Do(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,o){var a=so(o,t,e,n.positionFixed),i=io(n.placement,a,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",i),Do(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:undefined}}},Ro=function(){function e(t,n){var r=this,o=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};$r(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=jr(this.update.bind(this)),this.options=Qr({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(Qr({},e.Defaults.modifiers,o.modifiers)).forEach((function(t){r.options.modifiers[t]=Qr({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return Qr({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&Tr(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return Gr(e,[{key:"update",value:function(){return ho.call(this)}},{key:"destroy",value:function(){return vo.call(this)}},{key:"enableEventListeners",value:function(){return Co.call(this)}},{key:"disableEventListeners",value:function(){return Oo.call(this)}}]),e}();Ro.Utils=("undefined"!=typeof window?window:n.g).PopperUtils,Ro.placements=Eo,Ro.Defaults=Io;var No=Ro,Lo=(n(353),function(e){do{e+=~~(1e6*Math.random())}while("undefined"!=typeof document&&document.getElementById(e));return e}),Vo=("undefined"!=typeof window&&"undefined"!=typeof window.document&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&window.MSStream,{name:"kpm0v2",styles:"position:absolute;display:block;width:16px;height:8px;margin:0 5px;&:before,&:after{position:absolute;display:block;content:'';border-color:transparent;border-style:solid;}"}),Fo=function(t){t.placement;var n=bt(t,["placement"]);return ft(e.Fragment,null,ft(dt,{styles:Ho}),ft("div",wt({},n,{"data-arrow":"true",css:Vo})))},Ho={name:"rvo98s",styles:"[x-placement^='top']{margin-bottom:8px;[data-arrow]{bottom:-9px;}[data-arrow]:before{bottom:0;border-width:8px 8px 0;border-top-color:rgba(0,0,0,0.25);}[data-arrow]:after{bottom:1px;border-width:8px 8px 0;border-top-color:#fff;}}[x-placement^='right']{margin-left:8px;[data-arrow]{left:-9px;width:8px;height:16px;margin:5px 0;}[data-arrow]:before{left:0;border-width:8px 8px 8px 0;border-right-color:rgba(0,0,0,0.25);}[data-arrow]:after{left:1px;border-width:8px 8px 8px 0;border-right-color:#fff;}}[x-placement^='bottom']{margin-top:8px;[data-arrow]{top:-9px;}[data-arrow]:before{top:0;border-width:0 8px 8px 8px;border-bottom-color:rgba(0,0,0,0.25);}[data-arrow]:after{top:1px;border-width:0 8px 8px 8px;border-bottom-color:#fff;}}[x-placement^='left']{margin-right:8px;[data-arrow]{right:-9px;width:8px;height:16px;margin:5px 0;}[data-arrow]:before{right:0;border-width:8px 0 8px 8px;border-left-color:rgba(0,0,0,0.25);}[data-arrow]:after{right:1px;border-width:8px 0 8px 8px;border-left-color:#fff;}}"},Uo=function(n){var r,o,a,i=n.header,s=n.body,u=n.children,c=n.placement,l=n.trigger,f=n.styles,d=bt(n,["header","body","children","placement","trigger","styles"]),p=t().Children.only(u),h=(0,e.useRef)(null),m=(0,e.useState)(!1),g=m[0],v=m[1],b=(0,e.useState)(!1),y=b[0],w=b[1],C=(0,e.useState)({popoverId:null,referenceId:null,arrowId:null}),O=C[0],x=C[1],D=O.popoverId,k=O.referenceId,S=O.arrowId;r=h,o=function(e){e.target.id===k||document.getElementById(k).contains(e.target)||v(!1)},a=(0,e.useRef)(),(0,e.useEffect)((function(){a.current=o}),[o]),(0,e.useEffect)((function(){var e=function(e){r.current&&!r.current.contains(e.target)&&a.current(event)};return Mr.forEach((function(t){document.addEventListener(t,e,{passive:!0})})),function(){Mr.forEach((function(t){document.removeEventListener(t,e,{passive:!0})}))}}),[r,o]),(0,e.useEffect)((function(){if(!D)return x({popoverId:Lo("popover"),referenceId:Lo("reference"),arrowId:Lo("arrow")});var e=document.getElementById(D),t=document.getElementById(k),n=document.getElementById(S);e&&t&&n&&(new No(t,e,{placement:c,modifiers:{arrow:{element:n}}}),w(g))}),[g]);var E={content:[Wo.content,f.content],header:[Wo.header,f.header],body:[Wo.body,f.body]};return ft(e.Fragment,null,D?ft("div",wt({},d,{id:D,ref:h,css:E.content,style:y?{display:"block"}:{}}),ft(Fo,{id:S}),i?ft("div",{css:E.header},i):null,ft("div",{css:E.body},s)):null,t().cloneElement(p,wt({},p.props,{id:k,onClick:function(){"click"===l&&v(!g)}})))};Uo.defaultProps={placement:"right",trigger:"click",styles:{}};var Wo={content:{name:"106ha8s",styles:"display:none;max-width:300px;background-color:#fff;border-radius:4px;border:1px solid rgba(0,0,0,0.2);z-index:1060;"},header:{name:"12koz1z",styles:"padding:8px 12px;background-color:#f7f7f7;font-size:16px;font-weight:bold;border-top-left-radius:4px;border-top-right-radius:4px;"},body:{name:"k7kym8",styles:"padding:8px 12px;font-size:14px;border-bottom-left-radius:4px;border-bottom-right-radius:4px;"}},zo=Uo;function Bo(e){var t=e.touches;if(t&&t.length){var n=t[0];return{x:n.clientX,y:n.clientY}}return{x:e.clientX,y:e.clientY}}var Yo={position:"relative",display:"inline-block",backgroundColor:"#ddd",borderRadius:5,userSelect:"none",boxSizing:"border-box"},qo={position:"absolute",backgroundColor:"#5e72e4",borderRadius:5,userSelect:"none",boxSizing:"border-box"},Ko={position:"relative",display:"block",content:'""',width:18,height:18,backgroundColor:"#fff",borderRadius:"50%",boxShadow:"0 1px 1px rgba(0,0,0,.5)",userSelect:"none",cursor:"pointer",boxSizing:"border-box"},$o={x:{track:wt({},Yo,{width:200,height:10}),active:wt({},qo,{top:0,height:"100%"}),thumb:wt({},Ko)},y:{track:wt({},Yo,{width:10,height:200}),active:wt({},qo,{left:0,width:"100%"}),thumb:wt({},Ko)},xy:{track:{position:"relative",overflow:"hidden",width:200,height:200,backgroundColor:"#5e72e4",borderRadius:0},active:{},thumb:wt({},Ko)},disabled:{opacity:.5}},Go=function(t){var n=t.disabled,r=t.axis,o=t.x,a=t.y,i=t.xmin,s=t.xmax,u=t.ymin,c=t.ymax,l=t.xstep,f=t.ystep,d=t.onChange,p=t.onDragStart,h=t.onDragEnd,m=t.onClick,g=t.xreverse,v=t.yreverse,b=t.styles,y=bt(t,["disabled","axis","x","y","xmin","xmax","ymin","ymax","xstep","ystep","onChange","onDragStart","onDragEnd","onClick","xreverse","yreverse","styles"]),w=(0,e.useRef)(null),C=(0,e.useRef)(null),O=(0,e.useRef)({}),x=(0,e.useRef)({});function D(e){var t=e.top,n=e.left;if(d){var o=w.current.getBoundingClientRect(),a=o.width,p=o.height,h=0,m=0;n<0&&(n=0),n>a&&(n=a),t<0&&(t=0),t>p&&(t=p),"x"!==r&&"xy"!==r||(h=n/a*(s-i)),"y"!==r&&"xy"!==r||(m=t/p*(c-u));var b=(0!==h?parseInt(h/l,10)*l:0)+i,y=(0!==m?parseInt(m/f,10)*f:0)+u;d({x:g?s-b+i:b,y:v?c-y+u:y})}}function k(e){if(!n){e.preventDefault();var t=C.current,r=Bo(e);O.current={x:t.offsetLeft,y:t.offsetTop},x.current={x:r.x,y:r.y},document.addEventListener("mousemove",S),document.addEventListener("mouseup",E),document.addEventListener("touchmove",S,{passive:!1}),document.addEventListener("touchend",E),document.addEventListener("touchcancel",E),p&&p(e)}}function S(e){n||(e.preventDefault(),D(function(e){var t=Bo(e);return{left:t.x+O.current.x-x.current.x,top:t.y+O.current.y-x.current.y}}(e)))}function E(e){n||(e.preventDefault(),document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",E),document.removeEventListener("touchmove",S,{passive:!1}),document.removeEventListener("touchend",E),document.removeEventListener("touchcancel",E),h&&h(e))}var M,_,P=((M=(a-u)/(c-u)*100)>100&&(M=100),M<0&&(M=0),"x"===r&&(M=0),(_=(o-i)/(s-i)*100)>100&&(_=100),_<0&&(_=0),"y"===r&&(_=0),{top:M,left:_}),j={};"x"===r&&(j.width=P.left+"%"),"y"===r&&(j.height=P.top+"%"),g&&(j.left=100-P.left+"%"),v&&(j.top=100-P.top+"%");var T={position:"absolute",transform:"translate(-50%, -50%)",left:g?100-P.left+"%":P.left+"%",top:v?100-P.top+"%":P.top+"%"};"x"===r?T.top="50%":"y"===r&&(T.left="50%");var A={track:wt({},$o[r].track,{},b.track),active:wt({},$o[r].active,{},b.active),thumb:wt({},$o[r].thumb,{},b.thumb),disabled:wt({},$o.disabled,{},b.disabled)};return ft("div",wt({},y,{ref:w,css:lt([A.track,n&&A.disabled],";label:Slider;"),onClick:function(e){if(!n){var t=Bo(e),r=w.current.getBoundingClientRect();D({left:t.x-r.left,top:t.y-r.top}),m&&m(e)}}}),ft("div",{css:A.active,style:j}),ft("div",{ref:C,style:T,onTouchStart:k,onMouseDown:k,onClick:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}},ft("div",{css:A.thumb})))};Go.defaultProps={disabled:!1,axis:"x",x:50,xmin:0,xmax:100,y:50,ymin:0,ymax:100,xstep:1,ystep:1,xreverse:!1,yreverse:!1,styles:{}};var Jo=Go,Qo=n(654),Xo=n.n(Qo),Zo=n(763),ea=n.n(Zo),ta=n(37),na=n.n(ta),ra="undefined"!=typeof navigator&&navigator.userAgent.match(/iPhone|iPad|iPod/i),oa=function(t){var n=t.step,r=t.min,o=t.max,a=t.value,i=t.onChange,s=t.onKeyDown,u=t.enableMobileNumericKeyboard,c=t.component,l=bt(t,["step","min","max","value","onChange","onKeyDown","enableMobileNumericKeyboard","component"]),f=(0,e.useState)(a),d=f[0],p=f[1];(0,e.useEffect)((function(){p(a)}),[a]);var h={value:d,onChange:function(e){var t=function(e){if(ea()(e))return e;if(na()(e)){if(!(e=e.trim()))return"";var t=parseFloat(e);if(!Xo()(t))return t}return""}(e);p(e),i&&i(t)},onKeyDown:function(e){38===e.keyCode?i&&i(ia("+",a,o,r,n)):40===e.keyCode&&i&&i(ia("-",a,o,r,n)),s&&s(e)},onWheel:function(e){e.target.blur()}};return ft(c,wt({},l,h,u?{css:aa,type:"number",inputMode:"numeric",pattern:ra?"[0-9]*":"",step:n,min:r,max:o}:{css:aa,type:"text"}))};oa.defaultProps={autoComplete:"off",enableMobileNumericKeyboard:!1,value:"",component:function(e){var t=e.onChange,n=bt(e,["onChange"]);return ft("input",wt({},n,{onChange:function(e){t&&t(e.target.value)}}))},step:1};var aa={MozAppearance:"textfield","&::-webkit-inner-spin-button, &::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0}};function ia(e,t,n,r,o){if(""===t)return ea()(r)?r:"";if(t="+"===e?t+o:t-o,ea()(n)&&t>n)return n;if(ea()(r)&&t<r)return r;var a=(o.toString().split(".")[1]||[]).length;return a?parseFloat(t.toFixed(a)):t}var sa=oa;function ua(e){return"#"===e[0]&&(e=e.substr(1)),3===e.length?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16)}:{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16)}}function ca(e,t,n){var r=[],o=(n/=100)*(t/=100),a=e/60,i=o*(1-Math.abs(a%2-1)),s=n-o;return r=a>=0&&a<1?[o,i,0]:a>=1&&a<2?[i,o,0]:a>=2&&a<3?[0,o,i]:e>=3&&a<4?[0,i,o]:e>=4&&a<5?[i,0,o]:e>=5&&a<=6?[o,0,i]:[0,0,0],{r:Math.round(255*(r[0]+s)),g:Math.round(255*(r[1]+s)),b:Math.round(255*(r[2]+s))}}function la(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function fa(e,t,n){return"#"+[la(e),la(t),la(n)].join("")}function da(e,t,n){var r,o=Math.max(e,t,n),a=o-Math.min(e,t,n);return r=0===a?0:e===o?(t-n)/a%6:t===o?(n-e)/a+2:(e-t)/a+4,(r=Math.round(60*r))<0&&(r+=360),{h:r,s:Math.round(100*(0===o?0:a/o)),v:Math.round(o/255*100)}}function pa(e,t,n,r){return"rgba("+[e,t,n,r/100].join(",")+")"}var ha={name:"bzk4lp",styles:"width:100%;margin-top:10px;margin-bottom:10px;display:flex;"},ma={name:"lwa3hx",styles:"flex:1;margin-right:10px;"},ga=function(e){var t=e.color,n=e.onChange,r=t.r,o=t.g,a=t.b,i=t.a,s=t.h,u=t.s,c=t.v;function l(e){n&&n(wt({},e,{rgba:pa(e.r,e.g,e.b,e.a)}))}function f(e,n,r){var o=ca(e,n,r),a=o.r,i=o.g,s=o.b,u=fa(a,i,s);l(wt({},t,{h:e,s:n,v:r,r:a,g:i,b:s,hex:u}))}function d(e,n,r){var o=fa(e,n,r),a=da(e,n,r),i=a.h,s=a.s,u=a.v;l(wt({},t,{r:e,g:n,b:r,h:i,s:s,v:u,hex:o}))}function p(e){l(wt({},t,{a:e}))}var h=pa(r,o,a,i),m="linear-gradient(to right, "+pa(r,o,a,0)+", "+pa(r,o,a,100)+")",g=function(e,t,n){var r=ca(e,t,n);return fa(r.r,r.g,r.b)}(s,100,100);return ft("div",{css:va.picker,onClick:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}},ft("div",{css:va.selector,style:{backgroundColor:g}},ft("div",{css:va.gradientWhite}),ft("div",{css:va.gradientDark}),ft(Jo,{axis:"xy",x:u,xmax:100,y:100-c,ymax:100,onChange:function(e){var t=e.x,n=e.y;return f(s,t,100-n)},styles:{track:{width:"100%",height:"100%",background:"none"},thumb:{width:12,height:12,backgroundColor:"rgba(0,0,0,0)",border:"2px solid #fff",borderRadius:"50%"}}})),ft("div",{css:ha},ft("div",{css:ma},ft(Jo,{axis:"x",x:s,xmax:359,onChange:function(e){return f(e.x,u,c)},styles:{track:{width:"100%",height:12,borderRadius:0,background:"linear-gradient(to left, #FF0000 0%, #FF0099 10%, #CD00FF 20%, #3200FF 30%, #0066FF 40%, #00FFFD 50%, #00FF66 60%, #35FF00 70%, #CDFF00 80%, #FF9900 90%, #FF0000 100%)"},active:{background:"none"},thumb:{width:5,height:14,borderRadius:0,backgroundColor:"#eee"}}}),ft(Jo,{axis:"x",x:i,xmax:100,styles:{track:{width:"100%",height:12,borderRadius:0,background:m},active:{background:"none"},thumb:{width:5,height:14,borderRadius:0,backgroundColor:"#eee"}},onChange:function(e){return p(e.x)}})),ft("div",{style:{backgroundColor:h,width:30,height:30}})),ft("div",{css:va.inputs},ft("div",{css:va.input},ft("input",{style:{width:70,textAlign:"left"},type:"text",value:t.hex,onChange:function(e){return function(e){var n=ua(e),r=n.r,o=n.g,a=n.b,i=da(r,o,a),s=i.h,u=i.s,c=i.v;l(wt({},t,{r:r,g:o,b:a,h:s,s:u,v:c,hex:e}))}(e.target.value)},onKeyUp:function(e){if(13===e.keyCode){var n=e.target.value.trim(),r=ua(n),o=r.r,a=r.g,s=r.b;l(wt({},t,{r:o,g:a,b:s,a:i,hex:n}))}}}),ft("div",null,"Hex")),ft("div",{css:va.input},ft(sa,{min:0,max:255,value:r,onChange:function(e){return d(e,o,a)}}),ft("div",null,"R")),ft("div",{css:va.input},ft(sa,{min:0,max:255,value:o,onChange:function(e){return d(r,e,a)}}),ft("div",null,"G")),ft("div",{css:va.input},ft(sa,{min:0,max:255,value:a,onChange:function(e){return d(r,o,e)}}),ft("div",null,"B")),ft("div",{css:va.input},ft(sa,{min:0,max:100,value:i,onChange:function(e){return p(e)}}),ft("div",null,"A"))))};ga.defaultProps={initialValue:"#5e72e4"};var va={picker:{fontFamily:"'Helvetica Neue',Helvetica,Arial,sans-serif",width:230,"*":{userSelect:"none"}},selector:{position:"relative",width:230,height:230},gradientWhite:{position:"absolute",top:0,left:0,right:0,bottom:0,background:"linear-gradient(to right, #ffffff 0%, rgba(255, 255, 255, 0) 100%)"},gradientDark:{position:"absolute",top:0,left:0,right:0,bottom:0,background:"linear-gradient(to bottom, transparent 0%, #000000 100%)"},inputs:{display:"flex",justifyContent:"space-between",width:"100%"},input:{textAlign:"center",fontSize:13,fontWeight:"normal",color:"#000",input:{width:30,textAlign:"center"},div:{marginTop:4}}};function ba(e){var t,n=(e=e.toLowerCase()).substr(0,7),r=ua(n),o=r.r,a=r.g,i=r.b,s=da(o,a,i),u=e.length>7?(t=e.substr(7),Math.round(parseInt("0x"+t,16)/255*100)):100;return wt({},s,{r:o,g:a,b:i,a:u,hex:n,rgba:pa(o,a,i,u)})}var ya={name:"j4ndc3",styles:"position:relative;display:inline-block;box-sizing:border-box;width:49px;height:24px;padding:4px;background-color:#ffffff;border:1px solid #bebebe;border-radius:3px;user-select:none;"},wa={name:"trkpwz",styles:"display:block;width:100%;height:100%;cursor:pointer;"},Ca=function(t){var n=t.initialValue,r=t.onChange,o=t.placement,a=bt(t,["initialValue","onChange","placement"]),i=(0,e.useState)(ba(n)),s=i[0],u=i[1];function c(e){r&&(u(e),r(e))}return(0,e.useEffect)((function(){c(ba(n))}),[n]),ft(zo,{placement:o,body:ft(ga,{color:s,onChange:c})},ft("span",wt({},a,{css:ya}),ft("span",{css:wa,style:{backgroundColor:s.rgba}})))};Ca.defaultProps={placement:"bottom"};var Oa=Ca,xa=n(953),Da=n(73),ka=n.n(Da),Sa=n(251),Ea=n.n(Sa);function Ma(e){return(Ma="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var _a,Pa=function(e){var t=function(){this.parser=new i},n=t.prototype;function r(e,t){for(var n=[],r=t,o=e.length;r<o;r++)n.push(e[r]);return n}var o=function(){var e=function n(e,t,r){this.prefix=(e||"")+":",this.level=t||n.NONE,this.out=r||window.console&&window.console.log.bind(window.console),this.warn=this.log.bind(this,n.WARN),this.info=this.log.bind(this,n.INFO),this.debug=this.log.bind(this,n.DEBUG)},t=e.prototype;return e.DEBUG=1,e.INFO=2,e.WARN=3,e.NONE=4,t.log=function(e,t){if(e>=this.level&&"function"==typeof this.out){var n=r(arguments,2);n=[this.prefix+t].concat(n),this.out.apply(this,n)}},e}(),a=function(){var e=function(e){this.obj=e||{}},t=e.prototype;return t.get=function(e){var t=this.obj[e];return t===undefined&&this.parent&&(t=this.parent.get(e)),t},t.set=function(e,t){return this.obj[e]=t,this.get(e)},e}(),i=function(){var e=new o("PARSER",o.NONE),t=new o("EMIT",o.NONE),n=function(){};function i(e){var t={};return e.forEach((function(e,n){t[e]=n})),t}function s(e,t,n){if(1===n.length&&"object"===Ma(n[0])){var r=n[0];t.forEach((function(t){e[t]=r[t]}))}else for(var o=0,i=t.length,s=n.length;o<i&&o<s;o++)e[t[o]]=n[o];delete e.runtimeError;var u=new a(e);return u.parent=l,u}function u(n){if(n!==undefined)switch(n.id){case"Expr":case"Tuple":return u(n.expr);case"OpenTuple":return n.expr?f(n.expr):f(n.left,n.right);case"Assign":return n.expr?u(n.expr):(s=n.left,l=u(l=n.right),function(e){return e.set(s.value,l.apply(null,arguments))});case"Sums":case"Prod":case"Power":return n.expr?u(n.expr):function(t,n,o){n=u(n),o=u(o);var a=undefined;function i(e){var t=r(arguments,1);return e(n.apply(this,t),o.apply(this,t))}switch(t.id){case"Plus":return i.bind(a,(function(e,t){return+e+t}));case"Minus":return i.bind(a,(function(e,t){return e-t}));case"Mul":return i.bind(a,(function(e,t){return e*t}));case"Div":return i.bind(a,(function(e,t){return e/t}));case"Mod":return i.bind(a,(function(e,t){return e%t}));case"Pow":return i.bind(a,(function(e,t){return Math.pow(e,t)}))}return e.warn("No emitter for %o",t),function(){}}(n.op,n.left,n.right);case"Unary":return n.expr?u(n.expr):function(t,n){switch(n=u(n),t.id){case"Plus":return function(){return n.apply(this,arguments)};case"Minus":return function(){return-n.apply(this,arguments)}}return e.warn("No emitter for %o",t),function(){}}(n.op,n.right);case"Call":return o=n.token,a=n.args,i=c(a),a=u(a),function(e){var t=e.get(o.value);if("function"==typeof t){var n=a.apply(null,arguments);return i||(n=[n]),t.apply(null,n)}e.set("runtimeError",{text:'Call to undefined "'+o.value+'"'})};case"Parens":return u(n.expr);case"Value":return u(n.token);case"Number":return function(){return n.value};case"Var":return function(e){return e.get(n.value)};default:t.warn("No emitter for %o",n)}var o,a,i,s,l;return function(){}}function c(e){if(e!==undefined)switch(e.id){case"Expr":case"Tuple":return c(e.expr);case"OpenTuple":return!0}return!1}function f(e,t){if(e===undefined)return function(){return[]};var n="OpenTuple"===e.id;return e=u(e),t===undefined?function(){return[e.apply(null,arguments)]}:(t=u(t),n?function(){var n=e.apply(null,arguments);return n.push(t.apply(null,arguments)),n}:function(){return[e.apply(null,arguments),t.apply(null,arguments)]})}n.prototype.parse=function(n){this.error=undefined;var r=function(e){var t,n,r=[],o=0;for(;(t=k(e,o))!==undefined;)t.error?n=t.error:"Space"!==t.id&&r.push(t),o=t.end;return{tokens:r,error:n}}(n),o=function(t){for(var n={tokens:t,pos:0,stack:[],scope:{}},r=0,o=t.length,a=!1;!a&&r<=o;){var i=t[r],s=n.stack[n.stack.length-1],u=(s?s.id:"(empty)")+":"+(i?i.id:"(eof)");switch(d[u]){case 1:e.debug("shift %s %o",u,h(n.stack)),n=m(n,i),r++;break;case 2:e.debug("reduce %s %o",u,h(n.stack)),n=v(n,i);break;case 0:e.debug("done %s %o",u,h(n.stack)),a=!0;break;default:if(i!==undefined){var c={pos:i.pos,text:'Unexpected token "'+i.string+'"'};n.error=c,e.warn("%s at %d (%s)",c.text,c.pos,u)}else{c={text:"Unexpected EOF",pos:n.pos+1};n.error=c,e.warn("%s (%s)",c.text,u)}a=!0}}if(!n.error&&n.stack.length>1){var l=b(n,1);c={pos:l.pos||0,text:"LParen"===l.id?"Open paren":"Invalid expression"};n.error=c,e.warn("%s at %d (eof)",c.text,c.pos)}return{root:n.stack.pop(),vars:Object.keys(n.scope),error:n.error}}(r.tokens);t.debug("AST: %o",o);var a,c,l=(a=u(o.root),function(e){try{return a.apply(null,arguments)}catch(t){e.set("runtimeError",{text:""+t})}});return c={},{error:r.error||o.error,args:i(o.vars),eval:function(){return l(s(c,o.vars,arguments))},set scope(e){c=e||{}},get scope(){return c}}};var d={};function p(e,t,n){for(var r=0,o=t.length;r<o;r++)for(var a=0,i=n.length;a<i;a++){var s=t[r]+":"+n[a];d[s]=e}}function h(t){return e.level>=o.DEBUG?t.map((function(e){return e.id})):""}function m(e,t){return g(e,0,t)}function g(e,t,n){var r=e.stack.slice(0,e.stack.length-t),o=e.pos;return n&&(r.push(n),n.pos!==undefined&&(o=n.pos)),{tokens:e.tokens,pos:o,stack:r,scope:e.scope,error:e.error}}function v(t,n){switch(b(t,0).id){case"Tuple":return function(e){var t=b(e,0);return g(e,1,{id:"Expr",expr:t})}(t);case"OpenTuple":case"Comma":return y(t,n);case"Assign":case"Sums":return function(e,t){var n=b(e,1),r=b(e,0);if(r!==undefined&&"Sums"===r.id)return w(e,["Eq"],"Assign");if(n!==undefined&&"Eq"===n.id)return w(e,["Eq"],"Assign");return y(e,t)}(t,n);case"Prod":return function(e){return w(e,["Plus","Minus"],"Sums")}(t);case"Power":case"Unary":return function(e){var t=b(e,1),n=b(e,0);if(n!==undefined&&"Unary"===n.id){var r=O(e,!1);return r||g(e,1,{id:"Power",expr:n})}if(n!==undefined&&"Power"===n.id&&t!==undefined&&"Pow"===t.id)return w(e,["Pow"],"Power");return function(e){return w(e,["Mul","Div","Mod"],"Prod")}(e)}(t);case"Call":case"Parens":return O(t);case"Value":case"RParen":return function(t){var n=b(t,3),r=b(t,2),o=b(t,1),a=b(t,0),i={id:"Parens"};if("RParen"===a.id){if(o!==undefined&&"LParen"===o.id)return r!==undefined&&"Var"===r.id?g(t,3,i={id:"Call",token:r}):g(t,2,i={id:"OpenTuple"});if(r===undefined||"LParen"!==r.id){var s={pos:a.pos,text:"Unmatched paren"};return t.error=s,e.warn("%s at %d",s.text,s.pos),g(t,1)}return n!==undefined&&"Var"===n.id?g(t,4,i={id:"Call",token:n,args:o}):(i.expr=o,g(t,3,i))}return i.expr=a,g(t,1,i)}(t);case"Number":case"Var":return function(e){var t=b(e,0);e=g(e,1,{id:"Value",token:t}),"Var"===t.id&&(e.scope[t.value]=t);return e}(t)}return t}function b(e,t){return t===undefined&&(t=0),e.stack[e.stack.length-(t+1)]}function y(e,t){var n=b(e,2),r=b(e,1),o=b(e,0),a={id:"OpenTuple"};return"Comma"===o.id?g(e,2,r):r!==undefined&&"Comma"===r.id?(a.op=r,a.left=n,a.right=o,g(e,3,a)):t!==undefined&&"Comma"===t.id?(a.expr=o,g(e,1,a)):g(e,1,a={id:"Tuple",expr:o})}function w(e,t,n){var r=b(e,2),o=b(e,1),a=b(e,0),i={id:n};return o!==undefined&&-1!==t.indexOf(o.id)?(i.op=o,i.left=r,i.right=a,g(e,3,i)):(i.expr=a,g(e,1,i))}p(1,["(empty)","Plus","Minus","Mul","Div","Mod","Pow","LParen","Eq","Comma"],["Plus","Minus","LParen","Number","Var"]),p(1,["Var"],["LParen","Eq"]),p(1,["Sums"],["Plus","Minus"]),p(1,["Prod"],["Mul","Div","Mod"]),p(1,["Unary"],["Pow"]),p(1,["OpenTuple","Tuple"],["Comma"]),p(1,["LParen","Expr"],["RParen"]),p(2,["Number","Var","Value","RParen","Parens","Call","Unary","Power","Prod","Sums","Assign"],["Comma"]),p(2,["Number","Var","Value","RParen","Parens","Call","Unary","Power","Prod"],["Plus","Minus"]),p(2,["Number","Var","Value","RParen","Parens","Call","Unary","Power"],["Mul","Div","Mod"]),p(2,["Number","Var","Value","RParen","Parens","Call"],["Pow"]),p(2,["Number","Var","Value","RParen","Parens","Call","Unary","Power","Prod","Sums","Assign","Comma","OpenTuple","Tuple"],["RParen","(eof)"]),p(0,["(empty)","Expr"],["(eof)"]);var C=["Pow","Mul","Div","Mod","Plus","Minus","Eq","Comma","LParen"];function O(e,t){var n=b(e,2),r=b(e,1),o=b(e,0),a={id:"Unary"};return r===undefined||"Minus"!==r.id&&"Plus"!==r.id||n!==undefined&&-1===C.indexOf(n.id)?!1!==t?(a.expr=o,g(e,1,a)):void 0:(a.op=r,a.right=o,g(e,2,a))}var x=/^(?:(\s+)|((?:\d+e[-+]?\d+|\d+(?:\.\d*)?|\d*\.\d+))|(\+)|(\-)|(\*)|(\/)|(%)|(\^)|(\()|(\))|(=)|(,)|([a-zA-Z]\w*))/i,D=["Space","Number","Plus","Minus","Mul","Div","Mod","Pow","LParen","RParen","Eq","Comma","Var"];function k(t,n){var r=t.slice(n);if(0!==r.length){var o=x.exec(r);if(null===o){var a=function(e,t){for(var n=e.length;t<n;t++){var r=e.slice(t);if(0===r.length)break;if(null!==x.exec(r))break}return t}(t,n),i={pos:n,text:'Unexpected symbol "'+t.slice(n,a)+'"'};return e.warn("%s at %d",i.text,i.pos),{error:i,end:a}}for(var s=0,u=D.length;s<u;s++){var c=o[s+1];if(c!==undefined)return{id:D[s],string:c,pos:n,end:n+c.length,value:E(D[s],c)}}}}var S=Number.parseFloat||parseFloat;function E(e,t){switch(e){case"Number":return S(t);default:return t}}return n}(),s=function(e,t){return Array.isArray(e)?function(e,t){return e.length?e.reduce((function(e,n){return"decrease_first_value"===t?Number(n)-Number(e):Number(e)+Number(n)})):NaN}(e,t):Number(e)};var u,c,l=((c=new a).set("pi",Math.PI),c.set("e",Math.E),c.set("inf",Number.POSITIVE_INFINITY),u=Math,Object.getOwnPropertyNames(Math).forEach((function(e){c.set(e,u[e])})),c);return n.parse=function(e,t,n){e=(e=e.replace(/\[|\]|-/g,"__")).replace(/\s+(__|–)\s+/g," - "),t=void 0===t?{}:t;var r=/\[|\]|-/g,o={};for(var a in t)o[a.replace(r,"__")]=s(t[a],n);var i=this.parser.parse(e);return i.scope.numberFormat=function(e){if(!Number.isNaN(e))return(new Intl.NumberFormat).format(e)},i.scope.floor=function(e){return Math.floor(e)},i.scope.round=function(e){return Math.round(e)},i.scope.float=function(e,t){return t=void 0===t?0:t,e.toFixed(t)},i.scope.ceil=function(e){return Math.ceil(e)},i.eval(o)},t}(),ja="";_a=jQuery,Element.prototype.getElSettings=function(e){if("settings"in this.dataset)return JSON.parse(this.dataset.settings.replace(/(&quot\;)/g,'"'))[e]||""},ja=function(e,t){var n=e.find(".mf-multistep-container");if(n.length){var r=[];n.find(".elementor-top-section").each((function(e){var t=this.getElSettings("metform_multistep_settings_title")||"Step-"+_a(this).data("id"),o=this.getElSettings("metform_multistep_settings_icon"),a="",i="";o&&(a="svg"===o.library?'<img class="metform-step-svg-icon" src="'+o.value.url+'" alt="SVG Icon" />':o.value.length?'<i class="metform-step-icon '+o.value+'"></i>':""),0===e?(i="active",n.hasClass("mf_slide_direction_vertical")&&_a(this).parents(".elementor-section-wrap").css("height",_a(this).height())):1===e&&(i="next"),t&&r.push("<li class='metform-step-item "+i+"' id='metform-step-item-"+_a(this).attr("data-id")+"' data-value='"+_a(this).attr("data-id")+"'>"+a+'<span class="metform-step-title">'+t+"</span></li>")})),r&&(n.find(".metform-form-content .metform-form-main-wrapper > .elementor").before("<ul class='metform-steps'>"+r.join("")+"</ul>"),n.find(".elementor-top-section:first-of-type").addClass("active"),n.find(".mf-progress-step-bar span").attr("data-portion",100/r.length).css("width",100/r.length+"%"))}n.find(".elementor-top-section .metform-btn").attr("type","button"),n.find(".mf-input").on("keypress",(function(e){13!==e.which||_a(this).hasClass("mf-textarea")||n.find(".metform-step-item.next").trigger("click")})),n.find(".elementor-top-section").on("keydown",(function(e){var t=_a(this),n=_a(":focus");if(9==e.which)if(t.hasClass("active")){var r=t.find(":focusable"),o=r.index(n),a=r.eq(o),i=r.eq(r.length-1);a.is(i)&&(a.focus(),e.preventDefault())}else n.focus(),e.preventDefault()})),n.find(".metform-steps").on("click",".metform-step-item",(function(){var e,r=this,o=_a(this).parents(".mf-form-wrapper").eq(0),a=o.find(".elementor-top-section.active .mf-input"),i=(_a("body").hasClass("rtl")?100:-100)*_a(this).index()+"%",s=(o.find(".mf-progress-step-bar").attr("data-total"),_a(this.nextElementSibling).hasClass("active")),u=[];a.each((function(){var e=_a(this),t=this.name;(e.hasClass("mf-input-select")||e.hasClass("mf-input-multiselect"))&&(t=e.find('input[type="hidden"]')[0].name),e.parents(".mf-input-repeater").length&&(t=""),t&&u.push(t)})),e=function(e){e&&(o.find(".elementor-top-section.active .metform-btn").attr("type","button"),(_a(r).hasClass("prev")||_a(r).hasClass("next"))&&(_a(r).addClass("active").removeClass("next prev").prev().addClass("prev").siblings().removeClass("prev").end().end().next().addClass("next").siblings().removeClass("next").end().end().siblings().removeClass("active"),o.find('.elementor-top-section[data-id="'+_a(r).data("value")+'"]').addClass("active").siblings().removeClass("active"),n.hasClass("mf_slide_direction_vertical")?(o.find(".elementor-section-wrap .elementor-top-section").css({transform:"translateY("+i+")"}),o.find(".elementor-section-wrap").css("height","calc("+o.find('.elementor-top-section[data-id="'+_a(r).data("value")+'"]').height()+"px)")):o.find(".elementor-section-wrap").css({transform:"translateX("+i+")"})),o.find(".mf-progress-step-bar span").css("width",(_a(r).index()+1)*o.find(".mf-progress-step-bar span").attr("data-portion")+"%"),o.find(".elementor-top-section.active").find(".metform-submit-btn").length&&setTimeout((function(){o.find(".elementor-top-section.active").find(".metform-submit-btn").attr("type","submit")}),0))},s?e(!0):t.doValidate(u).then(e)}))};var Ta=function(){document.querySelectorAll(".mf-input-map-location").forEach((function(e){if("undefined"!=typeof google){var t=new google.maps.places.Autocomplete(e,{types:["geocode"]});google.maps.event.addListener(t,"place_changed",(function(){e.dispatchEvent(new Event("input",{bubbles:!0}))}))}}))};window.mfMapLocation=Ta;var Aa=function(e,t){return React.createElement("div",{className:"mf-main-response-wrap ".concat(t," mf-response-msg-wrap"),"data-show":"1"},React.createElement("div",{className:"mf-response-msg"},React.createElement("i",{className:"mf-success-icon ".concat(e)}),React.createElement("p",null,"This is a dummy success message!!.")))},Ia=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=[].concat(t)[2],o=[].concat(t)[3],a=[].concat(t)[4],i=[].concat(t)[5],s=r.errors,u=r.success,c=r.form_res,l=function(){return s.length>0?React.createElement(React.Fragment,null,React.createElement("i",{className:"mf-alert-icon ".concat(a)}),React.createElement("p",null,s.map((function(e){return e+" "}))," ")):""},f=function(){return u.length>0?React.createElement(React.Fragment,null,React.createElement("i",{className:"mf-success-icon ".concat(o)}),React.createElement("p",null,u)):""};return React.createElement("div",{className:"mf-main-response-wrap ".concat(i," mf-response-msg-wrap").concat(s.length>0?" mf-error-res":""),"data-show":c},React.createElement("div",{className:"mf-response-msg"},l(),f()))};function Ra(e){return(Ra="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Na=function(e,t,n){if("mf-captcha-challenge"!==e&&"g-recaptcha-response"!==e){var r=n.getValue(e);if(Array.isArray(r)&&(r=r.join(", ")),"object"===Ra(r)&&r.name&&(r=r.name),"string"==typeof r&&r.includes("data:image")&&(r=React.createElement("img",{src:r,alt:e})),!r)return"";var o=function(e,t,n){var r=n.formContainerRef.current.querySelector('[name="'+e+'"]'),o=r?r.closest(".mf-input-wrapper").querySelector("label"):null;return o?o.innerText.replace(/\*/g,"").trim():t}(e,e,n);return React.createElement("li",{key:t},React.createElement("strong",null," ",o," ")," ",React.createElement("span",null," ",r," "))}},La=function(e,t,n,r,o){if(e){r(e.props.name,o.activateValidation(n));var a=window[t];t&&a&&(window.flatpickr.prototype.constructor.l10ns[t]=a["default"][t],e.flatpickr.set("locale",t))}};function Va(e){return(Va="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Fa(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(u){s=!0,o=u}finally{try{i||null==n["return"]||n["return"]()}finally{if(s)throw o}}return a}(e,t)||Ua(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ha(e){return function(e){if(Array.isArray(e))return Wa(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ua(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ua(e,t){if(e){if("string"==typeof e)return Wa(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Wa(e,t):void 0}}function Wa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function za(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ba(e,t){return(Ba=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ya(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=$a(e);if(t){var o=$a(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return qa(this,n)}}function qa(e,t){if(t&&("object"===Va(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ka(e)}function Ka(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $a(e){return($a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ga(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ja(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ga(Object(n),!0).forEach((function(t){Qa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ga(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Xa=new(Ea())({tolerance:200}),Za=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ba(e,t)}(a,React.Component);var t,n,r,o=Ya(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),Qa(Ka(t=o.call(this,e)),"handleFormSubmit",(function(e,n){var r;n.preventDefault();var o=t.state,a=o.formData,i=o.defaultData,s=t.props,u=s.action,c=s.wpNonce,l=s.validation,f=l.reset,d=new FormData,p=Ja(Ja({},i),a);for(var h in jQuery(t.mfRefs.mainForm.parentElement).trigger("metform/before_submit",p),jQuery(t.mfRefs.mainForm).find(".metform-submit-btn").attr("disabled",!0),p)d.append(h,p[h]);r="mf_success_duration"in t.props.widgetSettings?t.props.widgetSettings.mf_success_duration:5,r*=1e3,fetch(u,{method:"POST",headers:{"X-WP-Nonce":c},body:d}).then((function(e){return e.json()})).then((function(e){if(e.status?(t.setState({success:e.data.message?e.data.message:"",form_res:1},(function(){t.resetReCAPTCHA(),l.clearErrors("g-recaptcha-response")})),e.status&&e.data.hide_form&&(t.formRef.current.setAttribute("class","mf-close-this-form"),setTimeout((function(){t.formRef.current.innerHTML=""}),600))):t.setState({errors:Ha(e.error),form_res:1},(function(){t.resetReCAPTCHA(),t.setValue("mf-captcha-challenge","",!0),l.clearErrors("g-recaptcha-response")})),e.data.store&&"stripe"===e.data.store["mf-payment-method"]&&t.stripePayment(e),jQuery(t.mfRefs.mainForm.parentElement).trigger("metform/after_submit",{data:p,response:e}),e.status&&e.data.redirect_to){var n=e.data.entry_id,o=e.data.redirect_to;n&&""!==n&&(o+=(o.includes("?")?"&":"?")+"mf_entry_id="+n),setTimeout((function(){window.location.href=o}),1500)}setTimeout((function(){e.data.hide_form||t.setState({success:"",errors:[],form_res:0})}),r)}))["catch"]((function(e){t.setState({errors:["Something went wrong"],form_res:1},(function(){t.resetReCAPTCHA(),t.setValue("mf-captcha-challenge","",!0),l.clearErrors("g-recaptcha-response")})),console.error(e.message),setTimeout((function(){t.setState({errors:[],form_res:0})}),r)}))["finally"]((function(){if(jQuery(t.mfRefs.mainForm).find(".metform-submit-btn").attr("disabled",!1),!t.props.stopVerticalEffect){var e=t.mfRefs.mainForm.querySelector(".mf-main-response-wrap");Xa.move(e)}setTimeout((function(){t.setState({formData:{},mobileWidget:{}})}),350),f()}))})),Qa(Ka(t),"handleCalculations",(function(e,n){var r=e.target.calc_behavior,o=ReactDOM.findDOMNode(Ka(t)),a=o.length?o.querySelectorAll(".mf-input-calculation"):[],i=Ja({},n);for(var s in i)if(Array.isArray(i[s])){var u=i[s].map((function(e){return isNaN(e)?e:Number(e)}));i[s]=u}a.forEach((function(e){var o=parseInt(e.dataset.fraction);o=o<0||o>99?2:o;var a=t.MfMathCalc.parse(e.dataset.equation,i,r)||0;if("NaN"!==a){var s=a.toString().split(".");s.length>1&&(s[1]=s[1].slice(0,o),s[1].length||s.pop()),n[e.name]=s.join(".")}}))})),Qa(Ka(t),"handleConditionals",(function(e){var n=t.state,r=n.formData,o=n.defaultData,a=t.props,i=a.widgets,s=a.conditionalRefs,u=a.validation,c=u.getValues,l=u.setValue;s.forEach((function(e){(e=i[e]).list=e.settings.mf_conditional_logic_form_list,e.operator=e.settings.mf_conditional_logic_form_and_or_operators,e.action=e.settings.mf_conditional_logic_form_action,e.validatedValues=[],e.isValidated=!1,e.list.forEach((function(n){n.name=n.mf_conditional_logic_form_if,n.value=r[n.name]||o[n.name]||"",n.match=n.mf_conditional_logic_form_value,n.operator=t.decodeEntities(n.mf_conditional_logic_form_comparison_operators),Array.isArray(n.value)&&-1!==n.value.indexOf(n.match)&&(n.value=n.value[n.value.indexOf(n.match)]),e.validatedValues.push(function(e,t,n){switch(n){case"+":return e+t;case"-":return e-t;case"*":return e*t;case"/":return e/t;case"<":return e<t;case"<=":return e<=t;case">":return e>t;case">=":return e>=t;case"==":return e==t;case"!=":return e!=t;case"not-empty":return void 0!==e&&String(e).length>0;case"empty":return void 0!==e&&0==String(e).length;default:return!1}}(n.value,n.match,n.operator))})),e.isValidated=e.validatedValues.some((function(e){return!0===e})),"and"===e.operator&&(e.isValidated=e.validatedValues.every((function(e){return!0===e})));var n=e.settings.mf_input_name;e.isValidated&&"show"===e.action?(e.el.setAttribute("mf-condition-hidden",!1),e.el.classList.remove("mf-condition--hidden"),"noval"===c(n)&&l(n,undefined)):(e.el.setAttribute("mf-condition-hidden",!0),e.el.classList.add("mf-condition--hidden"),Object.values(e.el.classList).indexOf("elementor-widget-mf-select")>-1&&l(n,"noval"))}))})),Qa(Ka(t),"getValue",(function(e){return e in t.state.formData?t.state.formData[e]:""})),Qa(Ka(t),"getFileLabel",(function(e,n){var r=t.state.formData[e];return r?r.name:t.decodeEntities(n)})),Qa(Ka(t),"getInputLabel",(function(e,n){var r=ReactDOM.findDOMNode(Ka(t)).querySelector('[name="'+e+'"]'),o=r?r.closest(".mf-input-wrapper").querySelector("label"):null;return o?o.innerText.replace(/\*/g,"").trim():n})),Qa(Ka(t),"decodeEntities",(function(e){var t=document.createElement("textarea");return t.innerHTML=e,t.value})),Qa(Ka(t),"setDefault",(function(e){if(null!==e){var n=e.name,r=e.value,o=t.state.defaultData;o[n]=r,t.setState({defaultData:o})}})),Qa(Ka(t),"isNumeric",(function(e){return!isNaN(parseFloat(e))&&isFinite(e)})),Qa(Ka(t),"setStateValue",(function(e,n){t.setState({name:e,value:n})})),Qa(Ka(t),"handleCardNumber",(function(e){var n=e.target,r=n.name,o=n.value,a=t.state.formData,i=a[r+"--type"],s=o.replace(/\s+/g,"").replace(/[^0-9]/gi,""),u=a[r],c="amex"===i?5:4,l="amex"===i?15:16;if(new RegExp("^[0-9]*$").test(s)&&s.length<=l){for(var f=s.match(/\d{4,16}/g),d=f&&f[0]||"",p=[],h=0,m=d.length;h<m;h+=c)p.push(d.substring(h,h+c));p.length&&(s=p.join(" ").trim()),u=s}t.setValue(r,u,!0),t.handleChange(e),e.target.value=u,t.handleCardType(s,e.target.name)})),Qa(Ka(t),"handleCardType",(function(e,n){var r="blank",o=n+"--type";r=e.startsWith("34")||e.startsWith("37")?"amex":e.startsWith("4")?"visa":e.startsWith("5")?"master":e.startsWith("6")?"discover":"custom";var a=t.state.formData;a[o]=r,t.setState({formData:a})})),Qa(Ka(t),"handleCardMonth",(function(e){var n=e.target,r=n.name,o=n.value,a=parseInt(o.replace(/-/g,""))||"",i=parseInt(a.toString().substring(0,1))||"";1<i&&i<10?t.setValue(r,i,!0):t.setValue(r,a>12?12:a,!0),t.handleChange(e)})),Qa(Ka(t),"handleSubVal",(function(e,n){var r=e.target,o=r.name,a=r.value,i=parseInt(a.replace(/-/g,"").substring(0,n))||"";t.setValue(o,i,!0),e.target.value=i,t.handleChange(e)})),Qa(Ka(t),"handleChange",(function(e){var n=e.target,r=n.name,o=n.value,a=n.type,i=t.state.formData;i[r]="number"===a&&"mobile"!==a?Number(o):o,t.handleCalculations(e,i),t.setState({formData:i});var s=e.target;s.className!==undefined&&-1!==s.className.indexOf("mf-repeater-type-simple")||t.trigger(r)})),Qa(Ka(t),"handleDateTime",(function(e){var n=e.target,r=n.name,o=n.value;t.setValue(r,o,!0),t.handleChange(e)})),Qa(Ka(t),"handleSelect",(function(e,n){var r=n.name,o=e.value;e.target={name:n.name,value:o},t.setValue(r,o,!0),t.handleChange(e)})),Qa(Ka(t),"handleRadioDefault",(function(e){var n=t.state.formData;if(e&&e.dataset.checked){var r=e.name;e.setAttribute("checked",!0),r in n||setTimeout((function(){t.handleChange({target:{name:r,value:e.value}})}),300)}})),Qa(Ka(t),"handleCheckbox",(function(e,n){if(!e)return!1;var r=t.state.formData,o=!1;if("onLoad"===n){var a=e.querySelectorAll(".mf-checkbox-input"),i=[];a.forEach((function(e){o||(o=e.name),e.checked&&i.push(e.value)})),r[o]||t.handleChange({target:{name:o,value:i}})}if("onClick"===n){o||(o=e.name);var s=new Set(r[o]);e.checked&&s.add(e.value),e.checked||s["delete"](e.value),t.handleChange({target:{name:o,value:Array.from(s)}})}})),Qa(Ka(t),"handleSwitch",(function(e){e.target.value=e.target.nextElementSibling.getAttribute("data-disable"),e.target.checked&&(e.target.value=e.target.nextElementSibling.getAttribute("data-enable")),t.handleChange(e)})),Qa(Ka(t),"handleOptin",(function(e){e.target.checked||(e.target.value=""),t.handleChange(e)})),Qa(Ka(t),"handleFileUpload",(function(e){t.handleChange({target:{name:e.target.name,value:e.target.files[0]}})})),Qa(Ka(t),"handleMultiStepBtns",(function(e){var n=jQuery(e.currentTarget).parents(".elementor-top-section.active"),r=e.currentTarget.dataset.direction,o=n.prev()[0]?n.prev()[0].dataset:"",a=n.next()[0]?n.next()[0].dataset:"",i=("next"===r?a:o).id;if(!i)return!1;var s=jQuery(e.currentTarget).parents(".metform-form-content").find('.metform-step-item[data-value="'+i+'"]'),u=[];n.find(".mf-input").each((function(){var e=jQuery(this),t=this.name;(e.hasClass("mf-input-select")||e.hasClass("mf-input-multiselect"))&&(t=e.find('input[type="hidden"]')[0].name),e.parents(".mf-input-repeater").length&&(t=""),t&&u.push(t)})),jQuery(e.currentTarget).parents(".mf-scroll-top-yes").length&&Xa.move(t.mfRefs.mainForm),"next"===r?t.trigger(u).then((function(e){e&&s.trigger("click")})):s.trigger("click")})),Qa(Ka(t),"handleImagePreview",(function(e){var t=e.target,n=e.clientX,r=e.clientY,o=e.type,a=t.nextElementSibling;if(a){if("mouseleave"===o)return a.style.opacity="",void(a.style.visibility="hidden");a.style.opacity||(a.style.opacity="1",a.style.visibility="visible"),a.offsetHeight+r>window.innerHeight?(a.className="mf-select-hover-image mf-preview-top",r-=45):a.className="mf-select-hover-image",a.style.top=r+30+"px",a.style.left=n-28+"px"}})),Qa(Ka(t),"handleSignature",(function(e){e.target={name:e.props.name,value:e.toDataURL()},t.handleChange(e),t.setValue(e.target.name,e.target.value,!0)})),Qa(Ka(t),"refreshCaptcha",(function(e){t.setState({captcha_img:t.state.captcha_path+Date.now()})})),Qa(Ka(t),"resetReCAPTCHA",(function(){t.getValue("mf-captcha-challenge")&&t.refreshCaptcha(),t.getValue("g-recaptcha-response")&&t.handleReCAPTCHA("reset")})),Qa(Ka(t),"handleReCAPTCHA",(function(e){"reset"===e&&(e="",grecaptcha.reset());var n={target:{name:"g-recaptcha-response",value:(e=e||"")||""}};t.handleChange(n)})),Qa(Ka(t),"activateValidation",(function(e,n,r){var o,a,i=t.state.formData,s=t.props.validation.register,u=e.type,c=e.required,l=e.message,f=e.minLength,d=e.maxLength,p=e.expression,h={};if(n&&c&&n.closest(".elementor-element")&&"true"===n.closest(".elementor-element").getAttribute("mf-condition-hidden"))h.required=!1;else{if((u&&"none"!==u||c)&&(h.required=!!c&&l),n&&n.classList&&n.classList.contains("mf-credit-card-number")&&(i[n.name]&&"amex"===i[n.name+"--type"]?h.minLength=h.maxLength={value:17,message:l}:h.minLength=h.maxLength={value:19,message:l}),e.inputType&&"credit_card_date"===e.inputType&&(f&&(h.min={value:f,message:l}),d&&(h.max={value:d,message:l})),n&&"file"===n.type&&n.files.length>0){var m=e.file_types,g=e.size_limit,v=n.files[0].name.substr(n.files[0].name.lastIndexOf(".")+1);h.validate={fileType:function(){return v=v.toLowerCase(),!(m!==[]&&!m.includes("."+v))||e.type_message},fileSize:function(){return!(-1!==g&&n.files[0].size>1024*parseInt(g))||e.limit_message}}}n&&"email"===n.type?h.pattern={value:/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,message:e.emailMessage}:n&&"url"===n.type&&(h.pattern={value:/^(http[s]?:\/\/(www\.)?|ftp:\/\/(www\.)?|www\.){1}([0-9A-Za-z-\.@:%_\+~#=]+)+((\.[a-zA-Z]{2,3})+)(\/(.)*)?(\?(.)*)?/g,message:e.urlMessage}),"by_character_length"===u?(o=n&&"number"===n.type?"min":"minLength",a=n&&"number"===n.type?"max":"maxLength",f&&(h[o]={value:f,message:l}),d&&(h[a]={value:d,message:l})):"by_word_length"===u?h.validate={wordLength:function(e){return t.handleWordValidate(e,f,d,l)}}:"by_expresssion_based"===u&&(h.validate={expression:function(e){return t.handleExpressionValidate(e,p,l)}})}return"function"==typeof r&&r(),n?s(n,h):h})),Qa(Ka(t),"handleWordValidate",(function(e,t,n,r){var o=e.trim().split(/\s+/).length;return!!(n?o>=t&&o<=n:o>=t)||r})),Qa(Ka(t),"handleExpressionValidate",(function(e,t,n){if(t)return!!new RegExp(t).test(e)||n})),Qa(Ka(t),"colorChange",(function(e,n){t.handleChange({target:{name:n,value:e.hex}})})),Qa(Ka(t),"colorChangeInput",(function(e){t.handleChange({target:{name:e.target.name,value:e.target.value}})})),Qa(Ka(t),"multiSelectChange",(function(e,n){var r=[];null!==e&&e.filter((function(e){return r.push(e.value)})),t.handleChange({target:{name:n,value:r}})})),Qa(Ka(t),"handleRangeChange",(function(e,n){t.handleChange({target:{name:n,value:Number(e.toFixed(2))}}),t.props.validation.setValue(n,Number(e.toFixed(2)))})),Qa(Ka(t),"handleMultipileRangeChange",(function(e,n){t.handleChange({target:{name:n,value:[e.min,e.max],calc_behavior:"decrease_first_value"}})})),Qa(Ka(t),"handleOnChangePhoneInput",(function(e,n,r){var o="";r&&e!==r.dialCode&&(o=e),t.setState({mobileWidget:Ja(Ja({},t.state.mobileWidget),{},Qa({},n,e))}),t.handleChange({target:{name:n,value:o,type:"mobile"}})})),t.state={formData:{},defaultData:{form_nonce:e.formNonce},recaptcha_uid:e.formId+"_"+Math.random().toString(36).substring(5,10),result_not_foud:"",total_result:0,form_res:0,errors:[],success:"",config:{},mobileWidget:{}},t.MfMathCalc=new Pa,t.setValue=e.validation.setValue,t.trigger=e.validation.trigger,t.formRef=React.createRef(),t.formContainerRef=React.createRef(),t.mfRefs={},window["handleReCAPTCHA_"+t.state.recaptcha_uid]=t.handleReCAPTCHA;var n=e.templateEl.innerHTML,r=t.replaceWith([["&#8216;","'"],["&#8217;","'"],["&#8220;",'"'],["&#8221;",'"'],["&#8211;","--"]],n);return t.jsx=new Function("parent","props","state","validation","register","setValue","html",r),e.templateEl.remove(),t}return t=a,(n=[{key:"replaceWith",value:function(e,t){var n,r=t,o=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Ua(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,a=e},f:function(){try{i||null==n["return"]||n["return"]()}finally{if(s)throw a}}}}(e);try{for(o.s();!(n=o.n()).done;){var a=Fa(n.value,2),i=a[0],s=a[1];r=r.replaceAll(i,s)}}catch(u){o.e(u)}finally{o.f()}return r}},{key:"stripePayment",value:function(e){var t,n=e.data.payment_data,r=this;n.keys&&""!==n.keys?((t=StripeCheckout.configure({key:n.keys,image:n.image_url,locale:"auto",token:function(t){var o;t.id?(n.stripe_token=t.id,o={sandbox:n.sandbox},fetch(e.data.ajax_stripe+"&token="+t.id,{headers:{"X-WP-Nonce":r.props.wpNonce},data:o}).then((function(e){return e.json()})).then((function(e){e.status?window.location.href=e.redirect_url:alert(e)}))):alert("Sorry!! Payment token invalid")}})).open({name:String(n.name_post),description:" Form No.: "+String(n.description),amount:100*Number(n.amount),currency:n.currency_code}),window.addEventListener("popstate",(function(){t.close()}))):alert("Please set your Stripe Keys in form settings.")}},{key:"renderReCaptcha",value:function(e,t){var n=window.grecaptcha,r=document.querySelectorAll(".g-recaptcha");r.length&&n.render("g-recaptcha",{sitekey:r[0].dataset.sitekey})}},{key:"componentDidUpdate",value:function(){var e,t=this.props.validation.formState.isValid;this.handleConditionals(),t||this.props.stopVerticalEffect||(e=this.mfRefs.mainForm.querySelector(".mf-error-message"))&&Xa.move(e.parentElement.parentElement)}},{key:"componentDidMount",value:function(e){var t=this,n=ReactDOM.findDOMNode(this),r=n.length?n.querySelectorAll(".elementor-element"):[];this.mfRefs.mainForm=n;var o=n.getElementsByTagName("input");for(var a in o)"email"===o[a].type&&""!==o[a].value&&this.setDefault(o[a]);r.forEach((function(e){var n=e.getAttribute("data-element_type"),r=e.getAttribute("data-widget_type"),o=null===r?n:r;if(jQuery(window).on("elementor/frontend/init",(function(){window.elementorFrontend.hooks.doAction("frontend/element_ready/"+o,jQuery(e))})),e.className.search("elementor-widget-mf-")>0&&e.dataset.settings){var a=JSON.parse(e.dataset.settings.replace(/&quot;/g,'"')),i=a.mf_input_name+"-"+e.getAttribute("data-id");t.props.widgets[i]={el:e,settings:a},a.mf_conditional_logic_form_enable&&t.props.conditionalRefs.push(i)}})),window.onload=function(e){t.renderReCaptcha(n,e)},this.handleConditionals(),this.props.formId&&fetch(mf.restURI+this.props.formId,{method:"POST",headers:{"X-WP-Nonce":this.props.wpNonce}}),Ta(),ja(jQuery(n).parents(".mf-multistep-container").parent(),{doValidate:this.trigger}),jQuery(n).on("change",".mf-repeater-field, .mf-repater-range-input, .mf-repeater-checkbox",this.handleChange);var i=this.state.formData;for(var s in jQuery(n).trigger("metform/after_form_load",i),i)this.setValue(s,i[s])}},{key:"render",value:function(){var e=this,t=e.props,n=e.state,r=t.validation,o=r.register,a=r.setValue,i=htm.bind(React.createElement);return React.createElement(React.Fragment,null,this.jsx(e,t,n,r,o,a,i))}}])&&za(t.prototype,n),r&&za(t,r),a}(),ei=function(e){var t=Fa(e.find(".mf-form-wrapper"),1)[0];if(t){var n,r=t.dataset,o=r.action,a=r.wpNonce,i=r.formNonce,s=r.formId,u=r.stopVerticalEffect,c=Fa(e.find(".mf-template"),1)[0];if(c)ReactDOM.render(React.createElement((n=Za,function(e){var t=Ja(Ja({},be()),{},{ErrorMessage:Ce});return React.createElement(n,Ja({validation:t},e))}),{formId:s,templateEl:c,action:o,wpNonce:a,formNonce:i,widgets:{},conditionalRefs:[],stopVerticalEffect:u,widgetSettings:e.data("settings")||{},Select:xr,InputColor:Oa,Flatpickr:xa.Z,InputRange:kr(),ReactPhoneInput:Er(),SignaturePad:ka(),moveTo:Xa,ResponseDummyMarkup:Aa,SubmitResponseMarkup:Ia,SummaryWidget:Na,DateWidget:La}),t)}};jQuery(window).on("elementor/frontend/init",(function(){var e=["metform","shortcode","text-editor"];"metform-form"!==mf.postType||elementorFrontend.isEditMode()?("metform-form"===mf.postType&&elementorFrontend.isEditMode()&&(e=["mf-date","mf-time","mf-select","mf-multi-select","mf-range","mf-file-upload","mf-mobile","mf-image-select","mf-map-location","mf-color-picker","mf-signature"]),e.forEach((function(e){elementorFrontend.hooks.addAction("frontend/element_ready/"+e+".default",ei)}))):ei(elementorFrontend.elements.$body)})).on("load",(function(){document.querySelectorAll(".mf-form-shortcode").forEach((function(e){ei(jQuery(e))}))}))}()}();
48
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
49
  * SOFTWARE.
50
  */
51
+ var _r="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,Pr=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(_r&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var jr=_r&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),Pr))}};function Tr(e){return e&&"[object Function]"==={}.toString.call(e)}function Ar(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function Ir(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function Rr(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=Ar(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:Rr(Ir(e))}function Nr(e){return e&&e.referenceNode?e.referenceNode:e}var Lr=_r&&!(!window.MSInputMethodContext||!document.documentMode),Vr=_r&&/MSIE 10/.test(navigator.userAgent);function Fr(e){return 11===e?Lr:10===e?Vr:Lr||Vr}function Hr(e){if(!e)return document.documentElement;for(var t=Fr(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===Ar(n,"position")?Hr(n):n:e?e.ownerDocument.documentElement:document.documentElement}function Ur(e){return null!==e.parentNode?Ur(e.parentNode):e}function Wr(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,o=n?t:e,a=document.createRange();a.setStart(r,0),a.setEnd(o,0);var i,s,u=a.commonAncestorContainer;if(e!==u&&t!==u||r.contains(o))return"BODY"===(s=(i=u).nodeName)||"HTML"!==s&&Hr(i.firstElementChild)!==i?Hr(u):u;var c=Ur(e);return c.host?Wr(c.host,t):Wr(e,Ur(t).host)}function zr(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var o=e.ownerDocument.documentElement,a=e.ownerDocument.scrollingElement||o;return a[n]}return e[n]}function Br(e,t){var n=arguments.length>2&&arguments[2]!==undefined&&arguments[2],r=zr(t,"top"),o=zr(t,"left"),a=n?-1:1;return e.top+=r*a,e.bottom+=r*a,e.left+=o*a,e.right+=o*a,e}function Yr(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function qr(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],Fr(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function Kr(e){var t=e.body,n=e.documentElement,r=Fr(10)&&getComputedStyle(n);return{height:qr("Height",t,n,r),width:qr("Width",t,n,r)}}var $r=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Gr=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Jr=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},Qr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function Xr(e){return Qr({},e,{right:e.left+e.width,bottom:e.top+e.height})}function Zr(e){var t={};try{if(Fr(10)){t=e.getBoundingClientRect();var n=zr(e,"top"),r=zr(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(f){}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},a="HTML"===e.nodeName?Kr(e.ownerDocument):{},i=a.width||e.clientWidth||o.width,s=a.height||e.clientHeight||o.height,u=e.offsetWidth-i,c=e.offsetHeight-s;if(u||c){var l=Ar(e);u-=Yr(l,"x"),c-=Yr(l,"y"),o.width-=u,o.height-=c}return Xr(o)}function eo(e,t){var n=arguments.length>2&&arguments[2]!==undefined&&arguments[2],r=Fr(10),o="HTML"===t.nodeName,a=Zr(e),i=Zr(t),s=Rr(e),u=Ar(t),c=parseFloat(u.borderTopWidth),l=parseFloat(u.borderLeftWidth);n&&o&&(i.top=Math.max(i.top,0),i.left=Math.max(i.left,0));var f=Xr({top:a.top-i.top-c,left:a.left-i.left-l,width:a.width,height:a.height});if(f.marginTop=0,f.marginLeft=0,!r&&o){var d=parseFloat(u.marginTop),p=parseFloat(u.marginLeft);f.top-=c-d,f.bottom-=c-d,f.left-=l-p,f.right-=l-p,f.marginTop=d,f.marginLeft=p}return(r&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(f=Br(f,t)),f}function to(e){var t=arguments.length>1&&arguments[1]!==undefined&&arguments[1],n=e.ownerDocument.documentElement,r=eo(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),a=Math.max(n.clientHeight,window.innerHeight||0),i=t?0:zr(n),s=t?0:zr(n,"left"),u={top:i-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:o,height:a};return Xr(u)}function no(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===Ar(e,"position"))return!0;var n=Ir(e);return!!n&&no(n)}function ro(e){if(!e||!e.parentElement||Fr())return document.documentElement;for(var t=e.parentElement;t&&"none"===Ar(t,"transform");)t=t.parentElement;return t||document.documentElement}function oo(e,t,n,r){var o=arguments.length>4&&arguments[4]!==undefined&&arguments[4],a={top:0,left:0},i=o?ro(e):Wr(e,Nr(t));if("viewport"===r)a=to(i,o);else{var s=void 0;"scrollParent"===r?"BODY"===(s=Rr(Ir(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===r?e.ownerDocument.documentElement:r;var u=eo(s,i,o);if("HTML"!==s.nodeName||no(i))a=u;else{var c=Kr(e.ownerDocument),l=c.height,f=c.width;a.top+=u.top-u.marginTop,a.bottom=l+u.top,a.left+=u.left-u.marginLeft,a.right=f+u.left}}var d="number"==typeof(n=n||0);return a.left+=d?n:n.left||0,a.top+=d?n:n.top||0,a.right-=d?n:n.right||0,a.bottom-=d?n:n.bottom||0,a}function ao(e){return e.width*e.height}function io(e,t,n,r,o){var a=arguments.length>5&&arguments[5]!==undefined?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var i=oo(n,r,a,o),s={top:{width:i.width,height:t.top-i.top},right:{width:i.right-t.right,height:i.height},bottom:{width:i.width,height:i.bottom-t.bottom},left:{width:t.left-i.left,height:i.height}},u=Object.keys(s).map((function(e){return Qr({key:e},s[e],{area:ao(s[e])})})).sort((function(e,t){return t.area-e.area})),c=u.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),l=c.length>0?c[0].key:u[0].key,f=e.split("-")[1];return l+(f?"-"+f:"")}function so(e,t,n){var r=arguments.length>3&&arguments[3]!==undefined?arguments[3]:null,o=r?ro(t):Wr(t,Nr(n));return eo(n,o,r)}function uo(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function co(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function lo(e,t,n){n=n.split("-")[0];var r=uo(e),o={width:r.width,height:r.height},a=-1!==["right","left"].indexOf(n),i=a?"top":"left",s=a?"left":"top",u=a?"height":"width",c=a?"width":"height";return o[i]=t[i]+t[u]/2-r[u]/2,o[s]=n===s?t[s]-r[c]:t[co(s)],o}function fo(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function po(e,t,n){return(n===undefined?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=fo(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n))).forEach((function(e){e["function"]&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e["function"]||e.fn;e.enabled&&Tr(n)&&(t.offsets.popper=Xr(t.offsets.popper),t.offsets.reference=Xr(t.offsets.reference),t=n(t,e))})),t}function ho(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=so(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=io(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=lo(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=po(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function mo(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function go(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var o=t[r],a=o?""+o+n:e;if("undefined"!=typeof document.body.style[a])return a}return null}function vo(){return this.state.isDestroyed=!0,mo(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[go("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function bo(e){var t=e.ownerDocument;return t?t.defaultView:window}function yo(e,t,n,r){var o="BODY"===e.nodeName,a=o?e.ownerDocument.defaultView:e;a.addEventListener(t,n,{passive:!0}),o||yo(Rr(a.parentNode),t,n,r),r.push(a)}function wo(e,t,n,r){n.updateBound=r,bo(e).addEventListener("resize",n.updateBound,{passive:!0});var o=Rr(e);return yo(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function Co(){this.state.eventsEnabled||(this.state=wo(this.reference,this.options,this.state,this.scheduleUpdate))}function Oo(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,bo(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function xo(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function Do(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&xo(t[n])&&(r="px"),e.style[n]=t[n]+r}))}var ko=_r&&/Firefox/i.test(navigator.userAgent);function So(e,t,n){var r=fo(e,(function(e){return e.name===t})),o=!!r&&e.some((function(e){return e.name===n&&e.enabled&&e.order<r.order}));if(!o){var a="`"+t+"`",i="`"+n+"`";console.warn(i+" modifier is required by "+a+" modifier in order to work, be sure to include it before "+a+"!")}return o}var Eo=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Mo=Eo.slice(3);function _o(e){var t=arguments.length>1&&arguments[1]!==undefined&&arguments[1],n=Mo.indexOf(e),r=Mo.slice(n+1).concat(Mo.slice(0,n));return t?r.reverse():r}var Po="flip",jo="clockwise",To="counterclockwise";function Ao(e,t,n,r){var o=[0,0],a=-1!==["right","left"].indexOf(r),i=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=i.indexOf(fo(i,(function(e){return-1!==e.search(/,|\s/)})));i[s]&&-1===i[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var u=/\s*,\s*|\s+/,c=-1!==s?[i.slice(0,s).concat([i[s].split(u)[0]]),[i[s].split(u)[1]].concat(i.slice(s+1))]:[i];return(c=c.map((function(e,r){var o=(1===r?!a:a)?"height":"width",i=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,i=!0,e):i?(e[e.length-1]+=t,i=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),a=+o[1],i=o[2];if(!a)return e;if(0===i.indexOf("%")){var s=void 0;switch(i){case"%p":s=n;break;case"%":case"%r":default:s=r}return Xr(s)[t]/100*a}if("vh"===i||"vw"===i)return("vh"===i?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*a;return a}(e,o,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,r){xo(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))}))})),o}var Io={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var o=e.offsets,a=o.reference,i=o.popper,s=-1!==["bottom","top"].indexOf(n),u=s?"left":"top",c=s?"width":"height",l={start:Jr({},u,a[u]),end:Jr({},u,a[u]+a[c]-i[c])};e.offsets.popper=Qr({},i,l[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,o=e.offsets,a=o.popper,i=o.reference,s=r.split("-")[0],u=void 0;return u=xo(+n)?[+n,0]:Ao(n,a,i,s),"left"===s?(a.top+=u[0],a.left-=u[1]):"right"===s?(a.top+=u[0],a.left+=u[1]):"top"===s?(a.left+=u[0],a.top-=u[1]):"bottom"===s&&(a.left+=u[0],a.top+=u[1]),e.popper=a,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||Hr(e.instance.popper);e.instance.reference===n&&(n=Hr(n));var r=go("transform"),o=e.instance.popper.style,a=o.top,i=o.left,s=o[r];o.top="",o.left="",o[r]="";var u=oo(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=a,o.left=i,o[r]=s,t.boundaries=u;var c=t.priority,l=e.offsets.popper,f={primary:function(e){var n=l[e];return l[e]<u[e]&&!t.escapeWithReference&&(n=Math.max(l[e],u[e])),Jr({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=l[n];return l[e]>u[e]&&!t.escapeWithReference&&(r=Math.min(l[n],u[e]-("right"===e?l.width:l.height))),Jr({},n,r)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";l=Qr({},l,f[t](e))})),e.offsets.popper=l,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,o=e.placement.split("-")[0],a=Math.floor,i=-1!==["top","bottom"].indexOf(o),s=i?"right":"bottom",u=i?"left":"top",c=i?"width":"height";return n[s]<a(r[u])&&(e.offsets.popper[u]=a(r[u])-n[c]),n[u]>a(r[s])&&(e.offsets.popper[u]=a(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!So(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],a=e.offsets,i=a.popper,s=a.reference,u=-1!==["left","right"].indexOf(o),c=u?"height":"width",l=u?"Top":"Left",f=l.toLowerCase(),d=u?"left":"top",p=u?"bottom":"right",h=uo(r)[c];s[p]-h<i[f]&&(e.offsets.popper[f]-=i[f]-(s[p]-h)),s[f]+h>i[p]&&(e.offsets.popper[f]+=s[f]+h-i[p]),e.offsets.popper=Xr(e.offsets.popper);var m=s[f]+s[c]/2-h/2,g=Ar(e.instance.popper),v=parseFloat(g["margin"+l]),b=parseFloat(g["border"+l+"Width"]),y=m-e.offsets.popper[f]-v-b;return y=Math.max(Math.min(i[c]-h,y),0),e.arrowElement=r,e.offsets.arrow=(Jr(n={},f,Math.round(y)),Jr(n,d,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(mo(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=oo(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=co(r),a=e.placement.split("-")[1]||"",i=[];switch(t.behavior){case Po:i=[r,o];break;case jo:i=_o(r);break;case To:i=_o(r,!0);break;default:i=t.behavior}return i.forEach((function(s,u){if(r!==s||i.length===u+1)return e;r=e.placement.split("-")[0],o=co(r);var c=e.offsets.popper,l=e.offsets.reference,f=Math.floor,d="left"===r&&f(c.right)>f(l.left)||"right"===r&&f(c.left)<f(l.right)||"top"===r&&f(c.bottom)>f(l.top)||"bottom"===r&&f(c.top)<f(l.bottom),p=f(c.left)<f(n.left),h=f(c.right)>f(n.right),m=f(c.top)<f(n.top),g=f(c.bottom)>f(n.bottom),v="left"===r&&p||"right"===r&&h||"top"===r&&m||"bottom"===r&&g,b=-1!==["top","bottom"].indexOf(r),y=!!t.flipVariations&&(b&&"start"===a&&p||b&&"end"===a&&h||!b&&"start"===a&&m||!b&&"end"===a&&g),w=!!t.flipVariationsByContent&&(b&&"start"===a&&h||b&&"end"===a&&p||!b&&"start"===a&&g||!b&&"end"===a&&m),C=y||w;(d||v||C)&&(e.flipped=!0,(d||v)&&(r=i[u+1]),C&&(a=function(e){return"end"===e?"start":"start"===e?"end":e}(a)),e.placement=r+(a?"-"+a:""),e.offsets.popper=Qr({},e.offsets.popper,lo(e.instance.popper,e.offsets.reference,e.placement)),e=po(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,o=r.popper,a=r.reference,i=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return o[i?"left":"top"]=a[n]-(s?o[i?"width":"height"]:0),e.placement=co(t),e.offsets.popper=Xr(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!So(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=fo(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,o=e.offsets.popper,a=fo(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;a!==undefined&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var i=a!==undefined?a:t.gpuAcceleration,s=Hr(e.instance.popper),u=Zr(s),c={position:o.position},l=function(e,t){var n=e.offsets,r=n.popper,o=n.reference,a=Math.round,i=Math.floor,s=function(e){return e},u=a(o.width),c=a(r.width),l=-1!==["left","right"].indexOf(e.placement),f=-1!==e.placement.indexOf("-"),d=t?l||f||u%2==c%2?a:i:s,p=t?a:s;return{left:d(u%2==1&&c%2==1&&!f&&t?r.left-1:r.left),top:p(r.top),bottom:p(r.bottom),right:d(r.right)}}(e,window.devicePixelRatio<2||!ko),f="bottom"===n?"top":"bottom",d="right"===r?"left":"right",p=go("transform"),h=void 0,m=void 0;if(m="bottom"===f?"HTML"===s.nodeName?-s.clientHeight+l.bottom:-u.height+l.bottom:l.top,h="right"===d?"HTML"===s.nodeName?-s.clientWidth+l.right:-u.width+l.right:l.left,i&&p)c[p]="translate3d("+h+"px, "+m+"px, 0)",c[f]=0,c[d]=0,c.willChange="transform";else{var g="bottom"===f?-1:1,v="right"===d?-1:1;c[f]=m*g,c[d]=h*v,c.willChange=f+", "+d}var b={"x-placement":e.placement};return e.attributes=Qr({},b,e.attributes),e.styles=Qr({},c,e.styles),e.arrowStyles=Qr({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return Do(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&Do(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,o){var a=so(o,t,e,n.positionFixed),i=io(n.placement,a,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",i),Do(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:undefined}}},Ro=function(){function e(t,n){var r=this,o=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};$r(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=jr(this.update.bind(this)),this.options=Qr({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(Qr({},e.Defaults.modifiers,o.modifiers)).forEach((function(t){r.options.modifiers[t]=Qr({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return Qr({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&Tr(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return Gr(e,[{key:"update",value:function(){return ho.call(this)}},{key:"destroy",value:function(){return vo.call(this)}},{key:"enableEventListeners",value:function(){return Co.call(this)}},{key:"disableEventListeners",value:function(){return Oo.call(this)}}]),e}();Ro.Utils=("undefined"!=typeof window?window:n.g).PopperUtils,Ro.placements=Eo,Ro.Defaults=Io;var No=Ro,Lo=(n(353),function(e){do{e+=~~(1e6*Math.random())}while("undefined"!=typeof document&&document.getElementById(e));return e}),Vo=("undefined"!=typeof window&&"undefined"!=typeof window.document&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&window.MSStream,{name:"kpm0v2",styles:"position:absolute;display:block;width:16px;height:8px;margin:0 5px;&:before,&:after{position:absolute;display:block;content:'';border-color:transparent;border-style:solid;}"}),Fo=function(t){t.placement;var n=bt(t,["placement"]);return ft(e.Fragment,null,ft(dt,{styles:Ho}),ft("div",wt({},n,{"data-arrow":"true",css:Vo})))},Ho={name:"rvo98s",styles:"[x-placement^='top']{margin-bottom:8px;[data-arrow]{bottom:-9px;}[data-arrow]:before{bottom:0;border-width:8px 8px 0;border-top-color:rgba(0,0,0,0.25);}[data-arrow]:after{bottom:1px;border-width:8px 8px 0;border-top-color:#fff;}}[x-placement^='right']{margin-left:8px;[data-arrow]{left:-9px;width:8px;height:16px;margin:5px 0;}[data-arrow]:before{left:0;border-width:8px 8px 8px 0;border-right-color:rgba(0,0,0,0.25);}[data-arrow]:after{left:1px;border-width:8px 8px 8px 0;border-right-color:#fff;}}[x-placement^='bottom']{margin-top:8px;[data-arrow]{top:-9px;}[data-arrow]:before{top:0;border-width:0 8px 8px 8px;border-bottom-color:rgba(0,0,0,0.25);}[data-arrow]:after{top:1px;border-width:0 8px 8px 8px;border-bottom-color:#fff;}}[x-placement^='left']{margin-right:8px;[data-arrow]{right:-9px;width:8px;height:16px;margin:5px 0;}[data-arrow]:before{right:0;border-width:8px 0 8px 8px;border-left-color:rgba(0,0,0,0.25);}[data-arrow]:after{right:1px;border-width:8px 0 8px 8px;border-left-color:#fff;}}"},Uo=function(n){var r,o,a,i=n.header,s=n.body,u=n.children,c=n.placement,l=n.trigger,f=n.styles,d=bt(n,["header","body","children","placement","trigger","styles"]),p=t().Children.only(u),h=(0,e.useRef)(null),m=(0,e.useState)(!1),g=m[0],v=m[1],b=(0,e.useState)(!1),y=b[0],w=b[1],C=(0,e.useState)({popoverId:null,referenceId:null,arrowId:null}),O=C[0],x=C[1],D=O.popoverId,k=O.referenceId,S=O.arrowId;r=h,o=function(e){e.target.id===k||document.getElementById(k).contains(e.target)||v(!1)},a=(0,e.useRef)(),(0,e.useEffect)((function(){a.current=o}),[o]),(0,e.useEffect)((function(){var e=function(e){r.current&&!r.current.contains(e.target)&&a.current(event)};return Mr.forEach((function(t){document.addEventListener(t,e,{passive:!0})})),function(){Mr.forEach((function(t){document.removeEventListener(t,e,{passive:!0})}))}}),[r,o]),(0,e.useEffect)((function(){if(!D)return x({popoverId:Lo("popover"),referenceId:Lo("reference"),arrowId:Lo("arrow")});var e=document.getElementById(D),t=document.getElementById(k),n=document.getElementById(S);e&&t&&n&&(new No(t,e,{placement:c,modifiers:{arrow:{element:n}}}),w(g))}),[g]);var E={content:[Wo.content,f.content],header:[Wo.header,f.header],body:[Wo.body,f.body]};return ft(e.Fragment,null,D?ft("div",wt({},d,{id:D,ref:h,css:E.content,style:y?{display:"block"}:{}}),ft(Fo,{id:S}),i?ft("div",{css:E.header},i):null,ft("div",{css:E.body},s)):null,t().cloneElement(p,wt({},p.props,{id:k,onClick:function(){"click"===l&&v(!g)}})))};Uo.defaultProps={placement:"right",trigger:"click",styles:{}};var Wo={content:{name:"106ha8s",styles:"display:none;max-width:300px;background-color:#fff;border-radius:4px;border:1px solid rgba(0,0,0,0.2);z-index:1060;"},header:{name:"12koz1z",styles:"padding:8px 12px;background-color:#f7f7f7;font-size:16px;font-weight:bold;border-top-left-radius:4px;border-top-right-radius:4px;"},body:{name:"k7kym8",styles:"padding:8px 12px;font-size:14px;border-bottom-left-radius:4px;border-bottom-right-radius:4px;"}},zo=Uo;function Bo(e){var t=e.touches;if(t&&t.length){var n=t[0];return{x:n.clientX,y:n.clientY}}return{x:e.clientX,y:e.clientY}}var Yo={position:"relative",display:"inline-block",backgroundColor:"#ddd",borderRadius:5,userSelect:"none",boxSizing:"border-box"},qo={position:"absolute",backgroundColor:"#5e72e4",borderRadius:5,userSelect:"none",boxSizing:"border-box"},Ko={position:"relative",display:"block",content:'""',width:18,height:18,backgroundColor:"#fff",borderRadius:"50%",boxShadow:"0 1px 1px rgba(0,0,0,.5)",userSelect:"none",cursor:"pointer",boxSizing:"border-box"},$o={x:{track:wt({},Yo,{width:200,height:10}),active:wt({},qo,{top:0,height:"100%"}),thumb:wt({},Ko)},y:{track:wt({},Yo,{width:10,height:200}),active:wt({},qo,{left:0,width:"100%"}),thumb:wt({},Ko)},xy:{track:{position:"relative",overflow:"hidden",width:200,height:200,backgroundColor:"#5e72e4",borderRadius:0},active:{},thumb:wt({},Ko)},disabled:{opacity:.5}},Go=function(t){var n=t.disabled,r=t.axis,o=t.x,a=t.y,i=t.xmin,s=t.xmax,u=t.ymin,c=t.ymax,l=t.xstep,f=t.ystep,d=t.onChange,p=t.onDragStart,h=t.onDragEnd,m=t.onClick,g=t.xreverse,v=t.yreverse,b=t.styles,y=bt(t,["disabled","axis","x","y","xmin","xmax","ymin","ymax","xstep","ystep","onChange","onDragStart","onDragEnd","onClick","xreverse","yreverse","styles"]),w=(0,e.useRef)(null),C=(0,e.useRef)(null),O=(0,e.useRef)({}),x=(0,e.useRef)({});function D(e){var t=e.top,n=e.left;if(d){var o=w.current.getBoundingClientRect(),a=o.width,p=o.height,h=0,m=0;n<0&&(n=0),n>a&&(n=a),t<0&&(t=0),t>p&&(t=p),"x"!==r&&"xy"!==r||(h=n/a*(s-i)),"y"!==r&&"xy"!==r||(m=t/p*(c-u));var b=(0!==h?parseInt(h/l,10)*l:0)+i,y=(0!==m?parseInt(m/f,10)*f:0)+u;d({x:g?s-b+i:b,y:v?c-y+u:y})}}function k(e){if(!n){e.preventDefault();var t=C.current,r=Bo(e);O.current={x:t.offsetLeft,y:t.offsetTop},x.current={x:r.x,y:r.y},document.addEventListener("mousemove",S),document.addEventListener("mouseup",E),document.addEventListener("touchmove",S,{passive:!1}),document.addEventListener("touchend",E),document.addEventListener("touchcancel",E),p&&p(e)}}function S(e){n||(e.preventDefault(),D(function(e){var t=Bo(e);return{left:t.x+O.current.x-x.current.x,top:t.y+O.current.y-x.current.y}}(e)))}function E(e){n||(e.preventDefault(),document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",E),document.removeEventListener("touchmove",S,{passive:!1}),document.removeEventListener("touchend",E),document.removeEventListener("touchcancel",E),h&&h(e))}var M,_,P=((M=(a-u)/(c-u)*100)>100&&(M=100),M<0&&(M=0),"x"===r&&(M=0),(_=(o-i)/(s-i)*100)>100&&(_=100),_<0&&(_=0),"y"===r&&(_=0),{top:M,left:_}),j={};"x"===r&&(j.width=P.left+"%"),"y"===r&&(j.height=P.top+"%"),g&&(j.left=100-P.left+"%"),v&&(j.top=100-P.top+"%");var T={position:"absolute",transform:"translate(-50%, -50%)",left:g?100-P.left+"%":P.left+"%",top:v?100-P.top+"%":P.top+"%"};"x"===r?T.top="50%":"y"===r&&(T.left="50%");var A={track:wt({},$o[r].track,{},b.track),active:wt({},$o[r].active,{},b.active),thumb:wt({},$o[r].thumb,{},b.thumb),disabled:wt({},$o.disabled,{},b.disabled)};return ft("div",wt({},y,{ref:w,css:lt([A.track,n&&A.disabled],";label:Slider;"),onClick:function(e){if(!n){var t=Bo(e),r=w.current.getBoundingClientRect();D({left:t.x-r.left,top:t.y-r.top}),m&&m(e)}}}),ft("div",{css:A.active,style:j}),ft("div",{ref:C,style:T,onTouchStart:k,onMouseDown:k,onClick:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}},ft("div",{css:A.thumb})))};Go.defaultProps={disabled:!1,axis:"x",x:50,xmin:0,xmax:100,y:50,ymin:0,ymax:100,xstep:1,ystep:1,xreverse:!1,yreverse:!1,styles:{}};var Jo=Go,Qo=n(654),Xo=n.n(Qo),Zo=n(763),ea=n.n(Zo),ta=n(37),na=n.n(ta),ra="undefined"!=typeof navigator&&navigator.userAgent.match(/iPhone|iPad|iPod/i),oa=function(t){var n=t.step,r=t.min,o=t.max,a=t.value,i=t.onChange,s=t.onKeyDown,u=t.enableMobileNumericKeyboard,c=t.component,l=bt(t,["step","min","max","value","onChange","onKeyDown","enableMobileNumericKeyboard","component"]),f=(0,e.useState)(a),d=f[0],p=f[1];(0,e.useEffect)((function(){p(a)}),[a]);var h={value:d,onChange:function(e){var t=function(e){if(ea()(e))return e;if(na()(e)){if(!(e=e.trim()))return"";var t=parseFloat(e);if(!Xo()(t))return t}return""}(e);p(e),i&&i(t)},onKeyDown:function(e){38===e.keyCode?i&&i(ia("+",a,o,r,n)):40===e.keyCode&&i&&i(ia("-",a,o,r,n)),s&&s(e)},onWheel:function(e){e.target.blur()}};return ft(c,wt({},l,h,u?{css:aa,type:"number",inputMode:"numeric",pattern:ra?"[0-9]*":"",step:n,min:r,max:o}:{css:aa,type:"text"}))};oa.defaultProps={autoComplete:"off",enableMobileNumericKeyboard:!1,value:"",component:function(e){var t=e.onChange,n=bt(e,["onChange"]);return ft("input",wt({},n,{onChange:function(e){t&&t(e.target.value)}}))},step:1};var aa={MozAppearance:"textfield","&::-webkit-inner-spin-button, &::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0}};function ia(e,t,n,r,o){if(""===t)return ea()(r)?r:"";if(t="+"===e?t+o:t-o,ea()(n)&&t>n)return n;if(ea()(r)&&t<r)return r;var a=(o.toString().split(".")[1]||[]).length;return a?parseFloat(t.toFixed(a)):t}var sa=oa;function ua(e){return"#"===e[0]&&(e=e.substr(1)),3===e.length?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16)}:{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16)}}function ca(e,t,n){var r=[],o=(n/=100)*(t/=100),a=e/60,i=o*(1-Math.abs(a%2-1)),s=n-o;return r=a>=0&&a<1?[o,i,0]:a>=1&&a<2?[i,o,0]:a>=2&&a<3?[0,o,i]:e>=3&&a<4?[0,i,o]:e>=4&&a<5?[i,0,o]:e>=5&&a<=6?[o,0,i]:[0,0,0],{r:Math.round(255*(r[0]+s)),g:Math.round(255*(r[1]+s)),b:Math.round(255*(r[2]+s))}}function la(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function fa(e,t,n){return"#"+[la(e),la(t),la(n)].join("")}function da(e,t,n){var r,o=Math.max(e,t,n),a=o-Math.min(e,t,n);return r=0===a?0:e===o?(t-n)/a%6:t===o?(n-e)/a+2:(e-t)/a+4,(r=Math.round(60*r))<0&&(r+=360),{h:r,s:Math.round(100*(0===o?0:a/o)),v:Math.round(o/255*100)}}function pa(e,t,n,r){return"rgba("+[e,t,n,r/100].join(",")+")"}var ha={name:"bzk4lp",styles:"width:100%;margin-top:10px;margin-bottom:10px;display:flex;"},ma={name:"lwa3hx",styles:"flex:1;margin-right:10px;"},ga=function(e){var t=e.color,n=e.onChange,r=t.r,o=t.g,a=t.b,i=t.a,s=t.h,u=t.s,c=t.v;function l(e){n&&n(wt({},e,{rgba:pa(e.r,e.g,e.b,e.a)}))}function f(e,n,r){var o=ca(e,n,r),a=o.r,i=o.g,s=o.b,u=fa(a,i,s);l(wt({},t,{h:e,s:n,v:r,r:a,g:i,b:s,hex:u}))}function d(e,n,r){var o=fa(e,n,r),a=da(e,n,r),i=a.h,s=a.s,u=a.v;l(wt({},t,{r:e,g:n,b:r,h:i,s:s,v:u,hex:o}))}function p(e){l(wt({},t,{a:e}))}var h=pa(r,o,a,i),m="linear-gradient(to right, "+pa(r,o,a,0)+", "+pa(r,o,a,100)+")",g=function(e,t,n){var r=ca(e,t,n);return fa(r.r,r.g,r.b)}(s,100,100);return ft("div",{css:va.picker,onClick:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}},ft("div",{css:va.selector,style:{backgroundColor:g}},ft("div",{css:va.gradientWhite}),ft("div",{css:va.gradientDark}),ft(Jo,{axis:"xy",x:u,xmax:100,y:100-c,ymax:100,onChange:function(e){var t=e.x,n=e.y;return f(s,t,100-n)},styles:{track:{width:"100%",height:"100%",background:"none"},thumb:{width:12,height:12,backgroundColor:"rgba(0,0,0,0)",border:"2px solid #fff",borderRadius:"50%"}}})),ft("div",{css:ha},ft("div",{css:ma},ft(Jo,{axis:"x",x:s,xmax:359,onChange:function(e){return f(e.x,u,c)},styles:{track:{width:"100%",height:12,borderRadius:0,background:"linear-gradient(to left, #FF0000 0%, #FF0099 10%, #CD00FF 20%, #3200FF 30%, #0066FF 40%, #00FFFD 50%, #00FF66 60%, #35FF00 70%, #CDFF00 80%, #FF9900 90%, #FF0000 100%)"},active:{background:"none"},thumb:{width:5,height:14,borderRadius:0,backgroundColor:"#eee"}}}),ft(Jo,{axis:"x",x:i,xmax:100,styles:{track:{width:"100%",height:12,borderRadius:0,background:m},active:{background:"none"},thumb:{width:5,height:14,borderRadius:0,backgroundColor:"#eee"}},onChange:function(e){return p(e.x)}})),ft("div",{style:{backgroundColor:h,width:30,height:30}})),ft("div",{css:va.inputs},ft("div",{css:va.input},ft("input",{style:{width:70,textAlign:"left"},type:"text",value:t.hex,onChange:function(e){return function(e){var n=ua(e),r=n.r,o=n.g,a=n.b,i=da(r,o,a),s=i.h,u=i.s,c=i.v;l(wt({},t,{r:r,g:o,b:a,h:s,s:u,v:c,hex:e}))}(e.target.value)},onKeyUp:function(e){if(13===e.keyCode){var n=e.target.value.trim(),r=ua(n),o=r.r,a=r.g,s=r.b;l(wt({},t,{r:o,g:a,b:s,a:i,hex:n}))}}}),ft("div",null,"Hex")),ft("div",{css:va.input},ft(sa,{min:0,max:255,value:r,onChange:function(e){return d(e,o,a)}}),ft("div",null,"R")),ft("div",{css:va.input},ft(sa,{min:0,max:255,value:o,onChange:function(e){return d(r,e,a)}}),ft("div",null,"G")),ft("div",{css:va.input},ft(sa,{min:0,max:255,value:a,onChange:function(e){return d(r,o,e)}}),ft("div",null,"B")),ft("div",{css:va.input},ft(sa,{min:0,max:100,value:i,onChange:function(e){return p(e)}}),ft("div",null,"A"))))};ga.defaultProps={initialValue:"#5e72e4"};var va={picker:{fontFamily:"'Helvetica Neue',Helvetica,Arial,sans-serif",width:230,"*":{userSelect:"none"}},selector:{position:"relative",width:230,height:230},gradientWhite:{position:"absolute",top:0,left:0,right:0,bottom:0,background:"linear-gradient(to right, #ffffff 0%, rgba(255, 255, 255, 0) 100%)"},gradientDark:{position:"absolute",top:0,left:0,right:0,bottom:0,background:"linear-gradient(to bottom, transparent 0%, #000000 100%)"},inputs:{display:"flex",justifyContent:"space-between",width:"100%"},input:{textAlign:"center",fontSize:13,fontWeight:"normal",color:"#000",input:{width:30,textAlign:"center"},div:{marginTop:4}}};function ba(e){var t,n=(e=e.toLowerCase()).substr(0,7),r=ua(n),o=r.r,a=r.g,i=r.b,s=da(o,a,i),u=e.length>7?(t=e.substr(7),Math.round(parseInt("0x"+t,16)/255*100)):100;return wt({},s,{r:o,g:a,b:i,a:u,hex:n,rgba:pa(o,a,i,u)})}var ya={name:"j4ndc3",styles:"position:relative;display:inline-block;box-sizing:border-box;width:49px;height:24px;padding:4px;background-color:#ffffff;border:1px solid #bebebe;border-radius:3px;user-select:none;"},wa={name:"trkpwz",styles:"display:block;width:100%;height:100%;cursor:pointer;"},Ca=function(t){var n=t.initialValue,r=t.onChange,o=t.placement,a=bt(t,["initialValue","onChange","placement"]),i=(0,e.useState)(ba(n)),s=i[0],u=i[1];function c(e){r&&(u(e),r(e))}return(0,e.useEffect)((function(){c(ba(n))}),[n]),ft(zo,{placement:o,body:ft(ga,{color:s,onChange:c})},ft("span",wt({},a,{css:ya}),ft("span",{css:wa,style:{backgroundColor:s.rgba}})))};Ca.defaultProps={placement:"bottom"};var Oa=Ca,xa=n(953),Da=n(73),ka=n.n(Da),Sa=n(251),Ea=n.n(Sa);function Ma(e){return(Ma="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var _a,Pa=function(e){var t=function(){this.parser=new i},n=t.prototype;function r(e,t){for(var n=[],r=t,o=e.length;r<o;r++)n.push(e[r]);return n}var o=function(){var e=function n(e,t,r){this.prefix=(e||"")+":",this.level=t||n.NONE,this.out=r||window.console&&window.console.log.bind(window.console),this.warn=this.log.bind(this,n.WARN),this.info=this.log.bind(this,n.INFO),this.debug=this.log.bind(this,n.DEBUG)},t=e.prototype;return e.DEBUG=1,e.INFO=2,e.WARN=3,e.NONE=4,t.log=function(e,t){if(e>=this.level&&"function"==typeof this.out){var n=r(arguments,2);n=[this.prefix+t].concat(n),this.out.apply(this,n)}},e}(),a=function(){var e=function(e){this.obj=e||{}},t=e.prototype;return t.get=function(e){var t=this.obj[e];return t===undefined&&this.parent&&(t=this.parent.get(e)),t},t.set=function(e,t){return this.obj[e]=t,this.get(e)},e}(),i=function(){var e=new o("PARSER",o.NONE),t=new o("EMIT",o.NONE),n=function(){};function i(e){var t={};return e.forEach((function(e,n){t[e]=n})),t}function s(e,t,n){if(1===n.length&&"object"===Ma(n[0])){var r=n[0];t.forEach((function(t){e[t]=r[t]}))}else for(var o=0,i=t.length,s=n.length;o<i&&o<s;o++)e[t[o]]=n[o];delete e.runtimeError;var u=new a(e);return u.parent=l,u}function u(n){if(n!==undefined)switch(n.id){case"Expr":case"Tuple":return u(n.expr);case"OpenTuple":return n.expr?f(n.expr):f(n.left,n.right);case"Assign":return n.expr?u(n.expr):(s=n.left,l=u(l=n.right),function(e){return e.set(s.value,l.apply(null,arguments))});case"Sums":case"Prod":case"Power":return n.expr?u(n.expr):function(t,n,o){n=u(n),o=u(o);var a=undefined;function i(e){var t=r(arguments,1);return e(n.apply(this,t),o.apply(this,t))}switch(t.id){case"Plus":return i.bind(a,(function(e,t){return+e+t}));case"Minus":return i.bind(a,(function(e,t){return e-t}));case"Mul":return i.bind(a,(function(e,t){return e*t}));case"Div":return i.bind(a,(function(e,t){return e/t}));case"Mod":return i.bind(a,(function(e,t){return e%t}));case"Pow":return i.bind(a,(function(e,t){return Math.pow(e,t)}))}return e.warn("No emitter for %o",t),function(){}}(n.op,n.left,n.right);case"Unary":return n.expr?u(n.expr):function(t,n){switch(n=u(n),t.id){case"Plus":return function(){return n.apply(this,arguments)};case"Minus":return function(){return-n.apply(this,arguments)}}return e.warn("No emitter for %o",t),function(){}}(n.op,n.right);case"Call":return o=n.token,a=n.args,i=c(a),a=u(a),function(e){var t=e.get(o.value);if("function"==typeof t){var n=a.apply(null,arguments);return i||(n=[n]),t.apply(null,n)}e.set("runtimeError",{text:'Call to undefined "'+o.value+'"'})};case"Parens":return u(n.expr);case"Value":return u(n.token);case"Number":return function(){return n.value};case"Var":return function(e){return e.get(n.value)};default:t.warn("No emitter for %o",n)}var o,a,i,s,l;return function(){}}function c(e){if(e!==undefined)switch(e.id){case"Expr":case"Tuple":return c(e.expr);case"OpenTuple":return!0}return!1}function f(e,t){if(e===undefined)return function(){return[]};var n="OpenTuple"===e.id;return e=u(e),t===undefined?function(){return[e.apply(null,arguments)]}:(t=u(t),n?function(){var n=e.apply(null,arguments);return n.push(t.apply(null,arguments)),n}:function(){return[e.apply(null,arguments),t.apply(null,arguments)]})}n.prototype.parse=function(n){this.error=undefined;var r=function(e){var t,n,r=[],o=0;for(;(t=k(e,o))!==undefined;)t.error?n=t.error:"Space"!==t.id&&r.push(t),o=t.end;return{tokens:r,error:n}}(n),o=function(t){for(var n={tokens:t,pos:0,stack:[],scope:{}},r=0,o=t.length,a=!1;!a&&r<=o;){var i=t[r],s=n.stack[n.stack.length-1],u=(s?s.id:"(empty)")+":"+(i?i.id:"(eof)");switch(d[u]){case 1:e.debug("shift %s %o",u,h(n.stack)),n=m(n,i),r++;break;case 2:e.debug("reduce %s %o",u,h(n.stack)),n=v(n,i);break;case 0:e.debug("done %s %o",u,h(n.stack)),a=!0;break;default:if(i!==undefined){var c={pos:i.pos,text:'Unexpected token "'+i.string+'"'};n.error=c,e.warn("%s at %d (%s)",c.text,c.pos,u)}else{c={text:"Unexpected EOF",pos:n.pos+1};n.error=c,e.warn("%s (%s)",c.text,u)}a=!0}}if(!n.error&&n.stack.length>1){var l=b(n,1);c={pos:l.pos||0,text:"LParen"===l.id?"Open paren":"Invalid expression"};n.error=c,e.warn("%s at %d (eof)",c.text,c.pos)}return{root:n.stack.pop(),vars:Object.keys(n.scope),error:n.error}}(r.tokens);t.debug("AST: %o",o);var a,c,l=(a=u(o.root),function(e){try{return a.apply(null,arguments)}catch(t){e.set("runtimeError",{text:""+t})}});return c={},{error:r.error||o.error,args:i(o.vars),eval:function(){return l(s(c,o.vars,arguments))},set scope(e){c=e||{}},get scope(){return c}}};var d={};function p(e,t,n){for(var r=0,o=t.length;r<o;r++)for(var a=0,i=n.length;a<i;a++){var s=t[r]+":"+n[a];d[s]=e}}function h(t){return e.level>=o.DEBUG?t.map((function(e){return e.id})):""}function m(e,t){return g(e,0,t)}function g(e,t,n){var r=e.stack.slice(0,e.stack.length-t),o=e.pos;return n&&(r.push(n),n.pos!==undefined&&(o=n.pos)),{tokens:e.tokens,pos:o,stack:r,scope:e.scope,error:e.error}}function v(t,n){switch(b(t,0).id){case"Tuple":return function(e){var t=b(e,0);return g(e,1,{id:"Expr",expr:t})}(t);case"OpenTuple":case"Comma":return y(t,n);case"Assign":case"Sums":return function(e,t){var n=b(e,1),r=b(e,0);if(r!==undefined&&"Sums"===r.id)return w(e,["Eq"],"Assign");if(n!==undefined&&"Eq"===n.id)return w(e,["Eq"],"Assign");return y(e,t)}(t,n);case"Prod":return function(e){return w(e,["Plus","Minus"],"Sums")}(t);case"Power":case"Unary":return function(e){var t=b(e,1),n=b(e,0);if(n!==undefined&&"Unary"===n.id){var r=O(e,!1);return r||g(e,1,{id:"Power",expr:n})}if(n!==undefined&&"Power"===n.id&&t!==undefined&&"Pow"===t.id)return w(e,["Pow"],"Power");return function(e){return w(e,["Mul","Div","Mod"],"Prod")}(e)}(t);case"Call":case"Parens":return O(t);case"Value":case"RParen":return function(t){var n=b(t,3),r=b(t,2),o=b(t,1),a=b(t,0),i={id:"Parens"};if("RParen"===a.id){if(o!==undefined&&"LParen"===o.id)return r!==undefined&&"Var"===r.id?g(t,3,i={id:"Call",token:r}):g(t,2,i={id:"OpenTuple"});if(r===undefined||"LParen"!==r.id){var s={pos:a.pos,text:"Unmatched paren"};return t.error=s,e.warn("%s at %d",s.text,s.pos),g(t,1)}return n!==undefined&&"Var"===n.id?g(t,4,i={id:"Call",token:n,args:o}):(i.expr=o,g(t,3,i))}return i.expr=a,g(t,1,i)}(t);case"Number":case"Var":return function(e){var t=b(e,0);e=g(e,1,{id:"Value",token:t}),"Var"===t.id&&(e.scope[t.value]=t);return e}(t)}return t}function b(e,t){return t===undefined&&(t=0),e.stack[e.stack.length-(t+1)]}function y(e,t){var n=b(e,2),r=b(e,1),o=b(e,0),a={id:"OpenTuple"};return"Comma"===o.id?g(e,2,r):r!==undefined&&"Comma"===r.id?(a.op=r,a.left=n,a.right=o,g(e,3,a)):t!==undefined&&"Comma"===t.id?(a.expr=o,g(e,1,a)):g(e,1,a={id:"Tuple",expr:o})}function w(e,t,n){var r=b(e,2),o=b(e,1),a=b(e,0),i={id:n};return o!==undefined&&-1!==t.indexOf(o.id)?(i.op=o,i.left=r,i.right=a,g(e,3,i)):(i.expr=a,g(e,1,i))}p(1,["(empty)","Plus","Minus","Mul","Div","Mod","Pow","LParen","Eq","Comma"],["Plus","Minus","LParen","Number","Var"]),p(1,["Var"],["LParen","Eq"]),p(1,["Sums"],["Plus","Minus"]),p(1,["Prod"],["Mul","Div","Mod"]),p(1,["Unary"],["Pow"]),p(1,["OpenTuple","Tuple"],["Comma"]),p(1,["LParen","Expr"],["RParen"]),p(2,["Number","Var","Value","RParen","Parens","Call","Unary","Power","Prod","Sums","Assign"],["Comma"]),p(2,["Number","Var","Value","RParen","Parens","Call","Unary","Power","Prod"],["Plus","Minus"]),p(2,["Number","Var","Value","RParen","Parens","Call","Unary","Power"],["Mul","Div","Mod"]),p(2,["Number","Var","Value","RParen","Parens","Call"],["Pow"]),p(2,["Number","Var","Value","RParen","Parens","Call","Unary","Power","Prod","Sums","Assign","Comma","OpenTuple","Tuple"],["RParen","(eof)"]),p(0,["(empty)","Expr"],["(eof)"]);var C=["Pow","Mul","Div","Mod","Plus","Minus","Eq","Comma","LParen"];function O(e,t){var n=b(e,2),r=b(e,1),o=b(e,0),a={id:"Unary"};return r===undefined||"Minus"!==r.id&&"Plus"!==r.id||n!==undefined&&-1===C.indexOf(n.id)?!1!==t?(a.expr=o,g(e,1,a)):void 0:(a.op=r,a.right=o,g(e,2,a))}var x=/^(?:(\s+)|((?:\d+e[-+]?\d+|\d+(?:\.\d*)?|\d*\.\d+))|(\+)|(\-)|(\*)|(\/)|(%)|(\^)|(\()|(\))|(=)|(,)|([a-zA-Z]\w*))/i,D=["Space","Number","Plus","Minus","Mul","Div","Mod","Pow","LParen","RParen","Eq","Comma","Var"];function k(t,n){var r=t.slice(n);if(0!==r.length){var o=x.exec(r);if(null===o){var a=function(e,t){for(var n=e.length;t<n;t++){var r=e.slice(t);if(0===r.length)break;if(null!==x.exec(r))break}return t}(t,n),i={pos:n,text:'Unexpected symbol "'+t.slice(n,a)+'"'};return e.warn("%s at %d",i.text,i.pos),{error:i,end:a}}for(var s=0,u=D.length;s<u;s++){var c=o[s+1];if(c!==undefined)return{id:D[s],string:c,pos:n,end:n+c.length,value:E(D[s],c)}}}}var S=Number.parseFloat||parseFloat;function E(e,t){switch(e){case"Number":return S(t);default:return t}}return n}(),s=function(e,t){return Array.isArray(e)?function(e,t){return e.length?e.reduce((function(e,n){return"decrease_first_value"===t?Number(n)-Number(e):Number(e)+Number(n)})):NaN}(e,t):Number(e)};var u,c,l=((c=new a).set("pi",Math.PI),c.set("e",Math.E),c.set("inf",Number.POSITIVE_INFINITY),u=Math,Object.getOwnPropertyNames(Math).forEach((function(e){c.set(e,u[e])})),c);return n.parse=function(e,t,n){e=(e=e.replace(/\[|\]|-/g,"__")).replace(/\s+(__|–)\s+/g," - "),t=void 0===t?{}:t;var r=/\[|\]|-/g,o={};for(var a in t)o[a.replace(r,"__")]=s(t[a],n);var i=this.parser.parse(e);return i.scope.numberFormat=function(e){if(!Number.isNaN(e))return(new Intl.NumberFormat).format(e)},i.scope.floor=function(e){return Math.floor(e)},i.scope.round=function(e){return Math.round(e)},i.scope.float=function(e,t){return t=void 0===t?0:t,e.toFixed(t)},i.scope.ceil=function(e){return Math.ceil(e)},i.eval(o)},t}(),ja="";_a=jQuery,Element.prototype.getElSettings=function(e){if("settings"in this.dataset)return JSON.parse(this.dataset.settings.replace(/(&quot\;)/g,'"'))[e]||""},ja=function(e,t){var n=e.find(".mf-multistep-container");if(n.length){var r=[];n.find(".elementor-top-section").each((function(e){var t=this.getElSettings("metform_multistep_settings_title")||"Step-"+_a(this).data("id"),o=this.getElSettings("metform_multistep_settings_icon"),a="",i="";o&&(a="svg"===o.library?'<img class="metform-step-svg-icon" src="'+o.value.url+'" alt="SVG Icon" />':o.value.length?'<i class="metform-step-icon '+o.value+'"></i>':""),0===e?(i="active",n.hasClass("mf_slide_direction_vertical")&&_a(this).parents(".elementor-section-wrap").css("height",_a(this).height())):1===e&&(i="next"),t&&r.push("<li class='metform-step-item "+i+"' id='metform-step-item-"+_a(this).attr("data-id")+"' data-value='"+_a(this).attr("data-id")+"'>"+a+'<span class="metform-step-title">'+t+"</span></li>")})),r&&(n.find(".metform-form-content .metform-form-main-wrapper > .elementor").before("<ul class='metform-steps'>"+r.join("")+"</ul>"),n.find(".elementor-top-section:first-of-type").addClass("active"),n.find(".mf-progress-step-bar span").attr("data-portion",100/r.length).css("width",100/r.length+"%"))}n.find(".elementor-top-section .metform-btn").attr("type","button"),n.find(".mf-input").on("keypress",(function(e){13!==e.which||_a(this).hasClass("mf-textarea")||n.find(".metform-step-item.next").trigger("click")})),n.find(".elementor-top-section").on("keydown",(function(e){var t=_a(this),n=_a(":focus");if(9==e.which)if(t.hasClass("active")){var r=t.find(":focusable"),o=r.index(n),a=r.eq(o),i=r.eq(r.length-1);a.is(i)&&(a.focus(),e.preventDefault())}else n.focus(),e.preventDefault()})),n.find(".metform-steps").on("click",".metform-step-item",(function(){var e,r=this,o=_a(this).parents(".mf-form-wrapper").eq(0),a=o.find(".elementor-top-section.active .mf-input"),i=(_a("body").hasClass("rtl")?100:-100)*_a(this).index()+"%",s=(o.find(".mf-progress-step-bar").attr("data-total"),_a(this.nextElementSibling).hasClass("active")),u=[];a.each((function(){var e=_a(this),t=this.name;(e.hasClass("mf-input-select")||e.hasClass("mf-input-multiselect"))&&(t=e.find('input[type="hidden"]')[0].name),e.parents(".mf-input-repeater").length&&(t=""),t&&u.push(t)})),e=function(e){e&&(o.find(".elementor-top-section.active .metform-btn").attr("type","button"),(_a(r).hasClass("prev")||_a(r).hasClass("next"))&&(_a(r).addClass("active").removeClass("next prev").prev().addClass("prev").siblings().removeClass("prev").end().end().next().addClass("next").siblings().removeClass("next").end().end().siblings().removeClass("active"),o.find('.elementor-top-section[data-id="'+_a(r).data("value")+'"]').addClass("active").siblings().removeClass("active"),n.hasClass("mf_slide_direction_vertical")?(o.find(".elementor-section-wrap .elementor-top-section").css({transform:"translateY("+i+")"}),o.find(".elementor-section-wrap").css("height","calc("+o.find('.elementor-top-section[data-id="'+_a(r).data("value")+'"]').height()+"px)")):o.find(".elementor-section-wrap").css({transform:"translateX("+i+")"})),o.find(".mf-progress-step-bar span").css("width",(_a(r).index()+1)*o.find(".mf-progress-step-bar span").attr("data-portion")+"%"),o.find(".elementor-top-section.active").find(".metform-submit-btn").length&&setTimeout((function(){o.find(".elementor-top-section.active").find(".metform-submit-btn").attr("type","submit")}),0))},s?e(!0):t.doValidate(u).then(e)}))};var Ta=function(){document.querySelectorAll(".mf-input-map-location").forEach((function(e){if("undefined"!=typeof google){var t=new google.maps.places.Autocomplete(e,{types:["geocode"]});google.maps.event.addListener(t,"place_changed",(function(){e.dispatchEvent(new Event("input",{bubbles:!0}))}))}}))};window.mfMapLocation=Ta;var Aa=function(e,t){return React.createElement("div",{className:"mf-main-response-wrap ".concat(t," mf-response-msg-wrap"),"data-show":"1"},React.createElement("div",{className:"mf-response-msg"},React.createElement("i",{className:"mf-success-icon ".concat(e)}),React.createElement("p",null,"This is a dummy success message!!.")))},Ia=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=[].concat(t)[2],o=[].concat(t)[3],a=[].concat(t)[4],i=[].concat(t)[5],s=r.errors,u=r.success,c=r.form_res,l=function(){return s.length>0?React.createElement(React.Fragment,null,React.createElement("i",{className:"mf-alert-icon ".concat(a)}),React.createElement("p",null,s.map((function(e){return e+" "}))," ")):""},f=function(){return u.length>0?React.createElement(React.Fragment,null,React.createElement("i",{className:"mf-success-icon ".concat(o)}),React.createElement("p",null,u)):""};return React.createElement("div",{className:"mf-main-response-wrap ".concat(i," mf-response-msg-wrap").concat(s.length>0?" mf-error-res":""),"data-show":c},React.createElement("div",{className:"mf-response-msg"},l(),f()))};function Ra(e){return(Ra="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Na=function(e,t,n){if("mf-captcha-challenge"!==e&&"g-recaptcha-response"!==e){var r=n.getValue(e);if(Array.isArray(r)&&(r=r.join(", ")),"object"===Ra(r)&&r.name&&(r=r.name),"string"==typeof r&&r.includes("data:image")&&(r=React.createElement("img",{src:r,alt:e})),!r)return"";var o=function(e,t,n){var r=n.formContainerRef.current.querySelector('[name="'+e+'"]'),o=r?r.closest(".mf-input-wrapper").querySelector("label"):null;return o?o.innerText.replace(/\*/g,"").trim():t}(e,e,n);return React.createElement("li",{key:t},React.createElement("strong",null," ",o," ")," ",React.createElement("span",null," ",r," "))}},La=function(e,t,n,r,o){if(e){r(e.props.name,o.activateValidation(n));var a=window[t];t&&a&&(window.flatpickr.prototype.constructor.l10ns[t]=a["default"][t],e.flatpickr.set("locale",t))}};function Va(e){return(Va="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Fa(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(u){s=!0,o=u}finally{try{i||null==n["return"]||n["return"]()}finally{if(s)throw o}}return a}(e,t)||Ua(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ha(e){return function(e){if(Array.isArray(e))return Wa(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ua(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ua(e,t){if(e){if("string"==typeof e)return Wa(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Wa(e,t):void 0}}function Wa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function za(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ba(e,t){return(Ba=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ya(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=$a(e);if(t){var o=$a(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return qa(this,n)}}function qa(e,t){if(t&&("object"===Va(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ka(e)}function Ka(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $a(e){return($a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ga(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ja(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ga(Object(n),!0).forEach((function(t){Qa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ga(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Xa=new(Ea())({tolerance:200}),Za=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ba(e,t)}(a,React.Component);var t,n,r,o=Ya(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),Qa(Ka(t=o.call(this,e)),"handleFormSubmit",(function(e,n){var r;n.preventDefault();var o=t.state,a=o.formData,i=o.defaultData,s=t.props,u=s.action,c=s.wpNonce,l=s.validation,f=l.reset,d=new FormData,p=Ja(Ja({},i),a);for(var h in jQuery(t.mfRefs.mainForm.parentElement).trigger("metform/before_submit",p),jQuery(t.mfRefs.mainForm).find(".metform-submit-btn").attr("disabled",!0),p)d.append(h,p[h]);r="mf_success_duration"in t.props.widgetSettings?t.props.widgetSettings.mf_success_duration:5,r*=1e3,fetch(u,{method:"POST",headers:{"X-WP-Nonce":c},body:d}).then((function(e){return e.json()})).then((function(e){if(e.status?(t.setState({success:e.data.message?e.data.message:"",form_res:1},(function(){t.resetReCAPTCHA(),l.clearErrors("g-recaptcha-response")})),e.status&&e.data.hide_form&&(t.formRef.current.setAttribute("class","mf-close-this-form"),setTimeout((function(){t.formRef.current.innerHTML=""}),600))):t.setState({errors:Ha(e.error),form_res:1},(function(){t.resetReCAPTCHA(),t.setValue("mf-captcha-challenge","",!0),l.clearErrors("g-recaptcha-response")})),e.data.store&&"stripe"===e.data.store["mf-payment-method"]&&t.stripePayment(e),jQuery(t.mfRefs.mainForm.parentElement).trigger("metform/after_submit",{data:p,response:e}),e.status&&e.data.redirect_to){var n=e.data.entry_id,o=e.data.redirect_to;n&&""!==n&&(o+=(o.includes("?")?"&":"?")+"mf_entry_id="+n),setTimeout((function(){window.location.href=o}),1500)}setTimeout((function(){e.data.hide_form||t.setState({success:"",errors:[],form_res:0})}),r)}))["catch"]((function(e){t.setState({errors:["Something went wrong"],form_res:1},(function(){t.resetReCAPTCHA(),t.setValue("mf-captcha-challenge","",!0),l.clearErrors("g-recaptcha-response")})),console.error(e.message),setTimeout((function(){t.setState({errors:[],form_res:0})}),r)}))["finally"]((function(){if(jQuery(t.mfRefs.mainForm).find(".metform-submit-btn").attr("disabled",!1),!t.props.stopVerticalEffect){var e=t.mfRefs.mainForm.querySelector(".mf-main-response-wrap");Xa.move(e)}setTimeout((function(){t.setState({formData:{},mobileWidget:{}})}),350),f()}))})),Qa(Ka(t),"handleCalculations",(function(e,n){var r=e.target.calc_behavior,o=ReactDOM.findDOMNode(Ka(t)),a=o.length?o.querySelectorAll(".mf-input-calculation"):[],i=Ja({},n);for(var s in i)if(Array.isArray(i[s])){var u=i[s].map((function(e){return isNaN(e)?e:Number(e)}));i[s]=u}a.forEach((function(e){var o=parseInt(e.dataset.fraction);o=o<0||o>99?2:o;var a=t.MfMathCalc.parse(e.dataset.equation,i,r)||0;if("NaN"!==a){var s=a.toString().split(".");s.length>1&&(s[1]=s[1].slice(0,o),s[1].length||s.pop()),n[e.name]=s.join(".")}}))})),Qa(Ka(t),"handleConditionals",(function(e){var n=t.state,r=n.formData,o=n.defaultData,a=t.props,i=a.widgets,s=a.conditionalRefs,u=a.validation,c=u.getValues,l=u.setValue;s.forEach((function(e){(e=i[e]).list=e.settings.mf_conditional_logic_form_list,e.operator=e.settings.mf_conditional_logic_form_and_or_operators,e.action=e.settings.mf_conditional_logic_form_action,e.validatedValues=[],e.isValidated=!1,e.list.forEach((function(n){n.name=n.mf_conditional_logic_form_if,n.value=r[n.name]||o[n.name]||"",n.match=n.mf_conditional_logic_form_value,n.operator=t.decodeEntities(n.mf_conditional_logic_form_comparison_operators),Array.isArray(n.value)&&-1!==n.value.indexOf(n.match)&&(n.value=n.value[n.value.indexOf(n.match)]),e.validatedValues.push(function(e,t,n){switch(n){case"+":return e+t;case"-":return e-t;case"*":return e*t;case"/":return e/t;case"<":return e<t;case"<=":return e<=t;case">":return e>t;case">=":return e>=t;case"==":return e==t;case"!=":return e!=t;case"not-empty":return void 0!==e&&String(e).length>0;case"empty":return void 0!==e&&0==String(e).length;default:return!1}}(n.value,n.match,n.operator))})),e.isValidated=e.validatedValues.some((function(e){return!0===e})),"and"===e.operator&&(e.isValidated=e.validatedValues.every((function(e){return!0===e})));var n=e.settings.mf_input_name;e.isValidated&&"show"===e.action?(e.el.setAttribute("mf-condition-hidden",!1),e.el.classList.remove("mf-condition--hidden"),"noval"===c(n)&&l(n,undefined)):(e.el.setAttribute("mf-condition-hidden",!0),e.el.classList.add("mf-condition--hidden"),Object.values(e.el.classList).indexOf("elementor-widget-mf-select")>-1&&l(n,"noval"))}))})),Qa(Ka(t),"getValue",(function(e){return e in t.state.formData?t.state.formData[e]:""})),Qa(Ka(t),"getFileLabel",(function(e,n){var r=t.state.formData[e];return r?r.name:t.decodeEntities(n)})),Qa(Ka(t),"getInputLabel",(function(e,n){var r=ReactDOM.findDOMNode(Ka(t)).querySelector('[name="'+e+'"]'),o=r?r.closest(".mf-input-wrapper").querySelector("label"):null;return o?o.innerText.replace(/\*/g,"").trim():n})),Qa(Ka(t),"decodeEntities",(function(e){var t=document.createElement("textarea");return t.innerHTML=e,t.value})),Qa(Ka(t),"setDefault",(function(e){if(null!==e){var n=e.name,r=e.value,o=t.state.defaultData;o[n]=r,t.setState({defaultData:o})}})),Qa(Ka(t),"isNumeric",(function(e){return!isNaN(parseFloat(e))&&isFinite(e)})),Qa(Ka(t),"setStateValue",(function(e,n){t.setState({name:e,value:n})})),Qa(Ka(t),"handleCardNumber",(function(e){var n=e.target,r=n.name,o=n.value,a=t.state.formData,i=a[r+"--type"],s=o.replace(/\s+/g,"").replace(/[^0-9]/gi,""),u=a[r],c="amex"===i?5:4,l="amex"===i?15:16;if(new RegExp("^[0-9]*$").test(s)&&s.length<=l){for(var f=s.match(/\d{4,16}/g),d=f&&f[0]||"",p=[],h=0,m=d.length;h<m;h+=c)p.push(d.substring(h,h+c));p.length&&(s=p.join(" ").trim()),u=s}t.setValue(r,u,!0),t.handleChange(e),e.target.value=u,t.handleCardType(s,e.target.name)})),Qa(Ka(t),"handleCardType",(function(e,n){var r="blank",o=n+"--type";r=e.startsWith("34")||e.startsWith("37")?"amex":e.startsWith("4")?"visa":e.startsWith("5")?"master":e.startsWith("6")?"discover":"custom";var a=t.state.formData;a[o]=r,t.setState({formData:a})})),Qa(Ka(t),"handleCardMonth",(function(e){var n=e.target,r=n.name,o=n.value,a=parseInt(o.replace(/-/g,""))||"",i=parseInt(a.toString().substring(0,1))||"";1<i&&i<10?t.setValue(r,i,!0):t.setValue(r,a>12?12:a,!0),t.handleChange(e)})),Qa(Ka(t),"handleSubVal",(function(e,n){var r=e.target,o=r.name,a=r.value,i=parseInt(a.replace(/-/g,"").substring(0,n))||"";t.setValue(o,i,!0),e.target.value=i,t.handleChange(e)})),Qa(Ka(t),"handleChange",(function(e){var n=e.target,r=n.name,o=n.value,a=n.type,i=t.state.formData;i[r]="number"===a&&"mobile"!==a?Number(o):o,t.handleCalculations(e,i),t.setState({formData:i});var s=e.target;s.className!==undefined&&-1!==s.className.indexOf("mf-repeater-type-simple")||t.trigger(r)})),Qa(Ka(t),"handleDateTime",(function(e){var n=e.target,r=n.name,o=n.value;t.setValue(r,o,!0),t.handleChange(e)})),Qa(Ka(t),"handleSelect",(function(e,n){var r=n.name,o=e.value;e.target={name:n.name,value:o},t.setValue(r,o,!0),t.handleChange(e)})),Qa(Ka(t),"handleRadioDefault",(function(e){var n=t.state.formData;if(e&&e.dataset.checked){var r=e.name;e.setAttribute("checked",!0),r in n||setTimeout((function(){t.handleChange({target:{name:r,value:e.value}})}),300)}})),Qa(Ka(t),"handleCheckbox",(function(e,n){if(!e)return!1;var r=t.state.formData,o=!1;if("onLoad"===n){var a=e.querySelectorAll(".mf-checkbox-input"),i=[];a.forEach((function(e){o||(o=e.name),e.checked&&i.push(e.value)})),!r[o]&&i.length&&t.handleChange({target:{name:o,value:i}})}if("onClick"===n){o||(o=e.name);var s=new Set(r[o]);e.checked&&s.add(e.value),e.checked||s["delete"](e.value),t.handleChange({target:{name:o,value:Array.from(s)}})}})),Qa(Ka(t),"handleSwitch",(function(e){e.target.value=e.target.nextElementSibling.getAttribute("data-disable"),e.target.checked&&(e.target.value=e.target.nextElementSibling.getAttribute("data-enable")),t.handleChange(e)})),Qa(Ka(t),"handleOptin",(function(e){e.target.checked||(e.target.value=""),t.handleChange(e)})),Qa(Ka(t),"handleFileUpload",(function(e){t.handleChange({target:{name:e.target.name,value:e.target.files[0]}})})),Qa(Ka(t),"handleMultiStepBtns",(function(e){var n=jQuery(e.currentTarget).parents(".elementor-top-section.active"),r=e.currentTarget.dataset.direction,o=n.prev()[0]?n.prev()[0].dataset:"",a=n.next()[0]?n.next()[0].dataset:"",i=("next"===r?a:o).id;if(!i)return!1;var s=jQuery(e.currentTarget).parents(".metform-form-content").find('.metform-step-item[data-value="'+i+'"]'),u=[];n.find(".mf-input").each((function(){var e=jQuery(this),t=this.name;(e.hasClass("mf-input-select")||e.hasClass("mf-input-multiselect"))&&(t=e.find('input[type="hidden"]')[0].name),e.parents(".mf-input-repeater").length&&(t=""),t&&u.push(t)})),jQuery(e.currentTarget).parents(".mf-scroll-top-yes").length&&Xa.move(t.mfRefs.mainForm),"next"===r?t.trigger(u).then((function(e){e&&s.trigger("click")})):s.trigger("click")})),Qa(Ka(t),"handleImagePreview",(function(e){var t=e.target,n=e.clientX,r=e.clientY,o=e.type,a=t.nextElementSibling;if(a){if("mouseleave"===o)return a.style.opacity="",void(a.style.visibility="hidden");a.style.opacity||(a.style.opacity="1",a.style.visibility="visible"),a.offsetHeight+r>window.innerHeight?(a.className="mf-select-hover-image mf-preview-top",r-=45):a.className="mf-select-hover-image",a.style.top=r+30+"px",a.style.left=n-28+"px"}})),Qa(Ka(t),"handleSignature",(function(e){e.target={name:e.props.name,value:e.toDataURL()},t.handleChange(e),t.setValue(e.target.name,e.target.value,!0)})),Qa(Ka(t),"refreshCaptcha",(function(e){t.setState({captcha_img:t.state.captcha_path+Date.now()})})),Qa(Ka(t),"resetReCAPTCHA",(function(){t.getValue("mf-captcha-challenge")&&t.refreshCaptcha(),t.getValue("g-recaptcha-response")&&t.handleReCAPTCHA("reset")})),Qa(Ka(t),"handleReCAPTCHA",(function(e){"reset"===e&&(e="",grecaptcha.reset());var n={target:{name:"g-recaptcha-response",value:(e=e||"")||""}};t.handleChange(n)})),Qa(Ka(t),"activateValidation",(function(e,n,r){var o,a,i=t.state.formData,s=t.props.validation.register,u=e.type,c=e.required,l=e.message,f=e.minLength,d=e.maxLength,p=e.expression,h={};if(n&&c&&n.closest(".elementor-element")&&"true"===n.closest(".elementor-element").getAttribute("mf-condition-hidden"))h.required=!1;else{if((u&&"none"!==u||c)&&(h.required=!!c&&l),n&&n.classList&&n.classList.contains("mf-credit-card-number")&&(i[n.name]&&"amex"===i[n.name+"--type"]?h.minLength=h.maxLength={value:17,message:l}:h.minLength=h.maxLength={value:19,message:l}),e.inputType&&"credit_card_date"===e.inputType&&(f&&(h.min={value:f,message:l}),d&&(h.max={value:d,message:l})),n&&"file"===n.type&&n.files.length>0){var m=e.file_types,g=e.size_limit,v=n.files[0].name.substr(n.files[0].name.lastIndexOf(".")+1);h.validate={fileType:function(){return v=v.toLowerCase(),!(m!==[]&&!m.includes("."+v))||e.type_message},fileSize:function(){return!(-1!==g&&n.files[0].size>1024*parseInt(g))||e.limit_message}}}n&&"email"===n.type?h.pattern={value:/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,message:e.emailMessage}:n&&"url"===n.type&&(h.pattern={value:/^(http[s]?:\/\/(www\.)?|ftp:\/\/(www\.)?|www\.){1}([0-9A-Za-z-\.@:%_\+~#=]+)+((\.[a-zA-Z]{2,3})+)(\/(.)*)?(\?(.)*)?/g,message:e.urlMessage}),"by_character_length"===u?(o=n&&"number"===n.type?"min":"minLength",a=n&&"number"===n.type?"max":"maxLength",f&&(h[o]={value:f,message:l}),d&&(h[a]={value:d,message:l})):"by_word_length"===u?h.validate={wordLength:function(e){return t.handleWordValidate(e,f,d,l)}}:"by_expresssion_based"===u&&(h.validate={expression:function(e){return t.handleExpressionValidate(e,p,l)}})}return"function"==typeof r&&r(),n?s(n,h):h})),Qa(Ka(t),"handleWordValidate",(function(e,t,n,r){var o=e.trim().split(/\s+/).length;return!!(n?o>=t&&o<=n:o>=t)||r})),Qa(Ka(t),"handleExpressionValidate",(function(e,t,n){if(t)return!!new RegExp(t).test(e)||n})),Qa(Ka(t),"colorChange",(function(e,n){t.handleChange({target:{name:n,value:e.hex}})})),Qa(Ka(t),"colorChangeInput",(function(e){t.handleChange({target:{name:e.target.name,value:e.target.value}})})),Qa(Ka(t),"multiSelectChange",(function(e,n){var r=[];null!==e&&e.filter((function(e){return r.push(e.value)})),t.handleChange({target:{name:n,value:r}})})),Qa(Ka(t),"handleRangeChange",(function(e,n){t.handleChange({target:{name:n,value:Number(e.toFixed(2))}}),t.props.validation.setValue(n,Number(e.toFixed(2)))})),Qa(Ka(t),"handleMultipileRangeChange",(function(e,n){t.handleChange({target:{name:n,value:[e.min,e.max],calc_behavior:"decrease_first_value"}})})),Qa(Ka(t),"handleOnChangePhoneInput",(function(e,n,r){var o="";r&&e!==r.dialCode&&(o=e),t.setState({mobileWidget:Ja(Ja({},t.state.mobileWidget),{},Qa({},n,e))}),t.handleChange({target:{name:n,value:o,type:"mobile"}})})),t.state={formData:{},defaultData:{form_nonce:e.formNonce},recaptcha_uid:e.formId+"_"+Math.random().toString(36).substring(5,10),result_not_foud:"",total_result:0,form_res:0,errors:[],success:"",config:{},mobileWidget:{}},t.MfMathCalc=new Pa,t.setValue=e.validation.setValue,t.trigger=e.validation.trigger,t.formRef=React.createRef(),t.formContainerRef=React.createRef(),t.mfRefs={},window["handleReCAPTCHA_"+t.state.recaptcha_uid]=t.handleReCAPTCHA;var n=e.templateEl.innerHTML,r=t.replaceWith([["&#8216;","'"],["&#8217;","'"],["&#8220;",'"'],["&#8221;",'"'],["&#8211;","--"]],n);return t.jsx=new Function("parent","props","state","validation","register","setValue","html",r),e.templateEl.remove(),t}return t=a,(n=[{key:"replaceWith",value:function(e,t){var n,r=t,o=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Ua(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,a=e},f:function(){try{i||null==n["return"]||n["return"]()}finally{if(s)throw a}}}}(e);try{for(o.s();!(n=o.n()).done;){var a=Fa(n.value,2),i=a[0],s=a[1];r=r.replaceAll(i,s)}}catch(u){o.e(u)}finally{o.f()}return r}},{key:"stripePayment",value:function(e){var t,n=e.data.payment_data,r=this;n.keys&&""!==n.keys?((t=StripeCheckout.configure({key:n.keys,image:n.image_url,locale:"auto",token:function(t){var o;t.id?(n.stripe_token=t.id,o={sandbox:n.sandbox},fetch(e.data.ajax_stripe+"&token="+t.id,{headers:{"X-WP-Nonce":r.props.wpNonce},data:o}).then((function(e){return e.json()})).then((function(e){e.status?window.location.href=e.redirect_url:alert(e)}))):alert("Sorry!! Payment token invalid")}})).open({name:String(n.name_post),description:" Form No.: "+String(n.description),amount:100*Number(n.amount),currency:n.currency_code}),window.addEventListener("popstate",(function(){t.close()}))):alert("Please set your Stripe Keys in form settings.")}},{key:"renderReCaptcha",value:function(e,t){var n=window.grecaptcha,r=document.querySelectorAll(".g-recaptcha");r.length&&n.render("g-recaptcha",{sitekey:r[0].dataset.sitekey})}},{key:"componentDidUpdate",value:function(){var e,t=this.props.validation.formState.isValid;this.handleConditionals(),t||this.props.stopVerticalEffect||(e=this.mfRefs.mainForm.querySelector(".mf-error-message"))&&Xa.move(e.parentElement.parentElement)}},{key:"componentDidMount",value:function(e){var t=this,n=ReactDOM.findDOMNode(this),r=n.length?n.querySelectorAll(".elementor-element"):[];this.mfRefs.mainForm=n;var o=n.getElementsByTagName("input");for(var a in o)"email"===o[a].type&&""!==o[a].value&&this.setDefault(o[a]);r.forEach((function(e){var n=e.getAttribute("data-element_type"),r=e.getAttribute("data-widget_type"),o=null===r?n:r;if(jQuery(window).on("elementor/frontend/init",(function(){window.elementorFrontend.hooks.doAction("frontend/element_ready/"+o,jQuery(e))})),e.className.search("elementor-widget-mf-")>0&&e.dataset.settings){var a=JSON.parse(e.dataset.settings.replace(/&quot;/g,'"')),i=a.mf_input_name+"-"+e.getAttribute("data-id");t.props.widgets[i]={el:e,settings:a},a.mf_conditional_logic_form_enable&&t.props.conditionalRefs.push(i)}})),window.onload=function(e){t.renderReCaptcha(n,e)},this.handleConditionals(),this.props.formId&&fetch(mf.restURI+this.props.formId,{method:"POST",headers:{"X-WP-Nonce":this.props.wpNonce}}),Ta(),ja(jQuery(n).parents(".mf-multistep-container").parent(),{doValidate:this.trigger}),jQuery(n).on("change",".mf-repeater-field, .mf-repater-range-input, .mf-repeater-checkbox",this.handleChange);var i=this.state.formData;for(var s in jQuery(n).trigger("metform/after_form_load",i),i)this.setValue(s,i[s])}},{key:"render",value:function(){var e=this,t=e.props,n=e.state,r=t.validation,o=r.register,a=r.setValue,i=htm.bind(React.createElement);return React.createElement(React.Fragment,null,this.jsx(e,t,n,r,o,a,i))}}])&&za(t.prototype,n),r&&za(t,r),a}(),ei=function(e){var t=Fa(e.find(".mf-form-wrapper"),1)[0];if(t){var n,r=t.dataset,o=r.action,a=r.wpNonce,i=r.formNonce,s=r.formId,u=r.stopVerticalEffect,c=Fa(e.find(".mf-template"),1)[0];if(c)ReactDOM.render(React.createElement((n=Za,function(e){var t=Ja(Ja({},be()),{},{ErrorMessage:Ce});return React.createElement(n,Ja({validation:t},e))}),{formId:s,templateEl:c,action:o,wpNonce:a,formNonce:i,widgets:{},conditionalRefs:[],stopVerticalEffect:u,widgetSettings:e.data("settings")||{},Select:xr,InputColor:Oa,Flatpickr:xa.Z,InputRange:kr(),ReactPhoneInput:Er(),SignaturePad:ka(),moveTo:Xa,ResponseDummyMarkup:Aa,SubmitResponseMarkup:Ia,SummaryWidget:Na,DateWidget:La}),t)}};jQuery(window).on("elementor/frontend/init",(function(){var e=["metform","shortcode","text-editor"];"metform-form"!==mf.postType||elementorFrontend.isEditMode()?("metform-form"===mf.postType&&elementorFrontend.isEditMode()&&(e=["mf-date","mf-time","mf-select","mf-multi-select","mf-range","mf-file-upload","mf-mobile","mf-image-select","mf-map-location","mf-color-picker","mf-signature"]),e.forEach((function(e){elementorFrontend.hooks.addAction("frontend/element_ready/"+e+".default",ei)}))):ei(elementorFrontend.elements.$body)})).on("load",(function(){document.querySelectorAll(".mf-form-shortcode").forEach((function(e){ei(jQuery(e))}))}))}()}();
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: ataurr, wpmet, emranio, atiqsu, easin55474, enamulhoquemohon, ashrafulmollah
3
  Tags: Form builder, Elementor form builder, contact form, custom form, forms, drag & drop form builder
4
  Requires at least: 4.8
5
- Tested up to: 5.8
6
- Stable tag: 2.0.1
7
  Requires PHP: 7.0
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -227,6 +227,14 @@ Connect with Gmail, Slack, Mailchimp, and many more.
227
 
228
 
229
  == Changelog ==
 
 
 
 
 
 
 
 
230
  Version 2.0.1 // 2021-12-12
231
  Added: File upload widget uppercase extension support
232
  Fixed: Multiple checkbox default select issue
2
  Contributors: ataurr, wpmet, emranio, atiqsu, easin55474, enamulhoquemohon, ashrafulmollah
3
  Tags: Form builder, Elementor form builder, contact form, custom form, forms, drag & drop form builder
4
  Requires at least: 4.8
5
+ Tested up to: 5.9
6
+ Stable tag: 2.1.0
7
  Requires PHP: 7.0
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
227
 
228
 
229
  == Changelog ==
230
+ Version 2.1.0 // 2022-01-06
231
+ Added: New button added for ask for rating library
232
+ Improved: Added icon for rating
233
+ Fixed: Some spelling issue
234
+ Fixed: Checkbox Option is getting marked by default
235
+ Fixed: Checkbox not saved issue
236
+ Tweaked: CSS and JS improved
237
+
238
  Version 2.0.1 // 2021-12-12
239
  Added: File upload widget uppercase extension support
240
  Fixed: Multiple checkbox default select issue
utils/rating/rating.php CHANGED
@@ -7,441 +7,420 @@ defined('ABSPATH') || exit;
7
  use DateTime;
8
  use Oxaim\Libs\Notice as LibsNotice;
9
 
10
- if (!class_exists('Wpmet\Libs\Rating')) {
11
-
12
- /**
13
- * Asking client for rating and
14
- * other stuffs
15
- * Class Rating
16
- * @package MetForm\Utils
17
- */
18
- class Rating
19
- {
20
- private $plugin_name;
21
- private $priority = 10;
22
- private $days;
23
- private $rating_url;
24
- private $version;
25
- private $condition_status = true;
26
- private $text_domain;
27
- private $plugin_logo;
28
- private $plugin_screens;
29
- private $duplication = false;
30
- private $never_show_triggered = false;
31
-
32
- /**
33
- * scripts version
34
- *
35
- * @var string
36
- */
37
- protected $script_version = '2.0.0';
38
-
39
- private static $instance;
40
-
41
- /**
42
- * Method: instance -> Return Notice module class instance
43
- *
44
- * @param string|null $text_domain
45
- * @param string|null $unique_id
46
- * @return mixed
47
- */
48
- public static function instance($text_domain = null, $unique_id = null)
49
- {
50
- if ($text_domain == null) {
51
- return false;
52
- }
53
-
54
- self::$instance = new self();
55
- self::$instance->config($text_domain, (is_null($unique_id) ? uniqid() : $unique_id));
56
- return self::$instance;
57
- }
58
-
59
- /**
60
- * Set Text domain
61
- *
62
- * @param string $text_domain
63
- * @param string $unique_id
64
- */
65
- public function config($text_domain, $unique_id)
66
- {
67
- $this->text_domain = $text_domain;
68
- }
69
-
70
- /**
71
- * Get vesrion of $this
72
- *
73
- * @return \Wpmet\Rating\Rating
74
- */
75
- public function get_version()
76
- {
77
- return $this->script_version;
78
- }
79
-
80
- /**
81
- * @return $this file location for debugging 🐛 purpose
82
- */
83
- public function get_script_location()
84
- {
85
- return __FILE__;
86
- }
87
-
88
- /**
89
- * @param
90
- */
91
- public function set_plugin($plugin_name, $plugin_url)
92
- {
93
- $this->plugin_name = $plugin_name;
94
- $this->rating_url = $plugin_url;
95
- return $this;
96
- }
97
-
98
- /**
99
- * @param
100
- */
101
- public function set_priority($priority)
102
- {
103
- $this->priority = $priority;
104
- return $this;
105
- }
106
-
107
- public function set_first_appear_day($days = 7)
108
- {
109
- $this->days = $days;
110
- return $this;
111
- }
112
-
113
- public function set_rating_url($url)
114
- {
115
- $this->rating_url = $url;
116
- return $this;
117
- }
118
-
119
- public function set_plugin_logo($logo_url)
120
- {
121
- $this->plugin_logo = $logo_url;
122
- return $this;
123
- }
124
-
125
- public function set_allowed_screens($screen)
126
- {
127
-
128
- $this->plugin_screens[] = $screen;
129
-
130
- return $this;
131
- }
132
-
133
- public function set_condition($result)
134
- {
135
- switch (gettype($result)) {
136
- case 'boolean':
137
- $this->condition_status = $result;
138
- break;
139
- case 'object':
140
- $this->condition_status = $result();
141
- break;
142
- default:
143
- $this->condition_status = false;
144
- }
145
-
146
- return $this;
147
- }
148
-
149
- public static function init()
150
- {
151
- add_action("wp_ajax_wpmet_rating_never_show_message", [__CLASS__, "never_show_message"]);
152
- add_action("wp_ajax_wpmet_rating_ask_me_later_message", [__CLASS__, "ask_me_later_message"]);
153
- }
154
-
155
- protected function is_current_screen_allowed($current_screen_id)
156
- {
157
- if (in_array($current_screen_id, array_merge($this->plugin_screens, ['dashboard', 'plugins']))) {
158
- return true;
159
- }
160
-
161
- return false;
162
- }
163
-
164
- /**
165
- * ------------------------------------------
166
- * 🚀 Rating class execution point
167
- * ------------------------------------------
168
- */
169
- public function call()
170
- {
171
-
172
- $this->init();
173
- add_action('admin_head', [$this, 'fire'], $this->priority);
174
- }
175
-
176
- /**
177
- * -------------------------------------------
178
- * 🔥 fire the rating functionality
179
- * -------------------------------------------
180
- */
181
- public function fire()
182
- {
183
-
184
- if (current_user_can('update_plugins')) {
185
-
186
- $current_screen = get_current_screen();
187
-
188
- if (!$this->is_current_screen_allowed($current_screen->id)) {
189
- return;
190
- }
191
-
192
- if ($this->condition_status === false) {
193
- return;
194
- }
195
-
196
- add_action('admin_footer', [$this, 'scripts'], 9999);
197
-
198
-
199
- if ($this->action_on_fire()) {
200
- if (!$this->is_installation_date_exists()) {
201
- $this->set_installation_date();
202
- }
203
-
204
-
205
- if (get_option($this->text_domain . '_never_show') == 'yes') {
206
-
207
- return;
208
- }
209
-
210
-
211
- // $this->display_message_box();
212
-
213
-
214
- if (get_option($this->text_domain . '_ask_me_later') == 'yes') {
215
-
216
- $this->days = '30';
217
- $this->duplication = true;
218
- $this->never_show_triggered = true;
219
- if($this->get_remaining_days() >= $this->days){
220
- $this->duplication = false;
221
- }
222
- }
223
-
224
- $this->display_message_box();
225
 
226
-
227
-
228
- }
229
- }
230
- }
231
-
232
-
233
-
234
- private function action_on_fire()
235
- {
236
- return true;
237
- }
238
-
239
-
240
- public function set_installation_date()
241
- {
242
- add_option($this->text_domain . '_install_date', date('Y-m-d h:i:s'));
243
- }
244
-
245
- public function is_installation_date_exists()
246
- {
247
- return (get_option($this->text_domain . '_install_date') == false) ? false : true;
248
- }
249
-
250
- public function get_installation_date()
251
- {
252
- return get_option($this->text_domain . '_install_date');
253
- }
254
-
255
- public function set_first_action_date()
256
- {
257
- add_option($this->text_domain . '_first_action_Date', date('Y-m-d h:i:s'));
258
- add_option($this->text_domain . '_first_action', 'yes');
259
- }
260
-
261
- public function get_days($from_date, $to_date)
262
- {
263
- return round(($to_date->format('U') - $from_date->format('U')) / (60 * 60 * 24));
264
- }
265
-
266
- public function is_first_use($in_days)
267
- {
268
- $install_date = get_option($this->text_domain . '_install_date');
269
- $display_date = date('Y-m-d h:i:s');
270
- $datetime1 = new DateTime($install_date);
271
- $datetime2 = new DateTime($display_date);
272
- $diff_interval = $this->get_days($datetime1, $datetime2);
273
-
274
- if (abs($diff_interval) >= $in_days && get_option($this->text_domain . '_first_action_Date') == "yes") {
275
-
276
- // action implementation here
277
-
278
- }
279
- }
280
-
281
- /**
282
- * ---------------------------------------------
283
- * Change the status of Rating notification
284
- * not to show the message again
285
- * ---------------------------------------------
286
- */
287
- public static function never_show_message()
288
- {
289
- $plugin_name = $_POST['plugin_name'];
290
- add_option($plugin_name . '_never_show', 'yes');
291
- }
292
-
293
- public function get_remaining_days(){
294
- $install_date = get_option($this->text_domain . '_install_date');
295
- $display_date = date('Y-m-d h:i:s');
296
- $datetime1 = new DateTime($install_date);
297
- $datetime2 = new DateTime($display_date);
298
- $diff_interval = $this->get_days($datetime1, $datetime2);
299
- return abs($diff_interval);
300
- }
301
-
302
- /**
303
- *----------------------------------
304
- * Ask me later functionality
305
- *----------------------------------
306
- */
307
- public function display_message_box()
308
- {
309
-
310
- if(!$this->duplication){
311
- global $wpmet_libs_execution_container;
312
-
313
- if(isset($wpmet_libs_execution_container['rating'])){
314
- return;
315
- }
316
-
317
- }
318
-
319
-
320
- $wpmet_libs_execution_container['rating'] = __FILE__;
321
-
322
- $install_date = get_option($this->text_domain . '_install_date');
323
- $display_date = date('Y-m-d h:i:s');
324
- $datetime1 = new DateTime($install_date);
325
- $datetime2 = new DateTime($display_date);
326
- $diff_interval = $this->get_days($datetime1, $datetime2);
327
- if (abs($diff_interval) >= $this->days) {
328
-
329
- $not_good_enough_btn_id = ($this->never_show_triggered) ? '_btn_never_show' : '_btn_not_good';
330
-
331
- $message = "Hello! Seems like you have used {$this->plugin_name} to build this website — Thanks a lot! <br>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
332
  Could you please do us a <b>big favor</b> and give it a <b>5-star</b> rating on WordPress?
333
  This would boost our motivation and help other users make a comfortable decision while choosing the {$this->plugin_name}";
334
 
335
- LibsNotice::instance($this->text_domain, '_plugin_rating_msg_used_in_day')
336
- ->set_message($message)
337
- ->set_logo($this->plugin_logo, "max-height: 100px !important")
338
- ->set_button([
339
- 'url' => $this->rating_url,
340
- 'text' => 'Ok, you deserved it',
341
- 'class' => 'button-primary',
342
- 'id' => $this->text_domain . '_btn_deserved',
343
- ])
344
- ->set_button([
345
- 'url' => '#',
346
- 'text' => 'I already did',
347
- 'class' => 'button-default',
348
- 'id' => $this->text_domain. '_btn_already_did',
349
- 'icon' => 'dashicons-before dashicons-smiley'
350
- ])
351
- ->set_button([
352
- 'url' => 'https://wpmet.com/support-ticket',
353
- 'text' => 'I need support',
354
- 'class' => 'button-default',
355
- 'id' => '#',
356
- 'icon' => 'dashicons-before dashicons-sos',
357
- ])
358
- ->set_button([
359
- 'url' => '#',
360
- 'text' => 'No, not good enough',
361
- 'class' => 'button-default',
362
- 'id' => $this->text_domain . $not_good_enough_btn_id ,
363
- 'icon' => 'dashicons-before dashicons-thumbs-down',
364
- ])
365
- ->call();
366
- }
367
- }
368
-
369
-
370
- /**
371
- *---------------------------------------------------------
372
- * When user will click @notGoodEnough button
373
- * Then it will fire this function to change the status
374
- * for next asking time
375
- *---------------------------------------------------------
376
- */
377
-
378
-
379
- public static function ask_me_later_message()
380
- {
381
- $plugin_name = $_POST['plugin_name'];
382
- if (get_option($plugin_name . '_ask_me_later') == false) {
383
- add_option($plugin_name . '_ask_me_later', 'yes');
384
- } else {
385
- add_option($plugin_name . '_never_show', 'yes');
386
- }
387
- }
388
-
389
- /**
390
- *--------------------------------------
391
- * Get current version of the plugin
392
- *--------------------------------------
393
- */
394
-
395
- public function get_current_version()
396
- {
397
-
398
- return $this->version;
399
- }
400
-
401
- /**
402
- *-------------------------------------------
403
- * Get previous version of the plugin
404
- * that have been stored in database
405
- *-------------------------------------------
406
- */
407
-
408
-
409
- public function get_previous_version()
410
- {
411
-
412
- return get_option($this->text_domain . '_version');
413
- }
414
-
415
- /**
416
- *----------------------------------------
417
- * Set current version of the plugin
418
- *----------------------------------------
419
- */
420
-
421
- public function set_version($version)
422
- {
423
- if (!get_option($this->text_domain . '_version')) {
424
- add_option($this->text_domain . '_version');
425
- } else {
426
- update_option($this->text_domain . '_version', $version);
427
- }
428
- }
429
-
430
- /**
431
- *
432
- * JS Ajax script for updating
433
- * rating status from users
434
- *
435
- */
436
-
437
- public function scripts()
438
- {
439
-
440
- echo "
 
 
441
  <script>
442
  jQuery(document).ready(function ($) {
443
 
444
- $( '#".$this->text_domain."_btn_already_did' ).on( 'click', function() {
445
 
446
  $.ajax({
447
  url: ajaxurl,
@@ -459,7 +438,7 @@ if (!class_exists('Wpmet\Libs\Rating')) {
459
 
460
  });
461
 
462
- $('#".$this->text_domain."_btn_deserved').click(function(){
463
  $.ajax({
464
  url: ajaxurl,
465
  type: 'POST',
@@ -475,7 +454,7 @@ if (!class_exists('Wpmet\Libs\Rating')) {
475
  });
476
  });
477
 
478
- $('#".$this->text_domain."_btn_not_good').click(function(){
479
  $.ajax({
480
  url: ajaxurl,
481
  type: 'POST',
@@ -491,7 +470,7 @@ if (!class_exists('Wpmet\Libs\Rating')) {
491
  });
492
  });
493
 
494
- $('#".$this->text_domain."_btn_never_show').click(function(){
495
  $.ajax({
496
  url: ajaxurl,
497
  type: 'POST',
@@ -510,6 +489,6 @@ if (!class_exists('Wpmet\Libs\Rating')) {
510
  });
511
  </script>
512
  ";
513
- }
514
- }
515
  }
7
  use DateTime;
8
  use Oxaim\Libs\Notice as LibsNotice;
9
 
10
+ if(!class_exists('Wpmet\Libs\Rating')) {
11
+
12
+ /**
13
+ * Asking client for rating and
14
+ * other stuffs
15
+ * Class Rating
16
+ * @package MetForm\Utils
17
+ */
18
+ class Rating {
19
+ private $plugin_name;
20
+ private $priority = 10;
21
+ private $days;
22
+ private $rating_url;
23
+ private $version;
24
+ private $condition_status = true;
25
+ private $text_domain;
26
+ private $plugin_logo;
27
+ private $plugin_screens;
28
+ private $duplication = false;
29
+ private $never_show_triggered = false;
30
+
31
+ /**
32
+ * scripts version
33
+ *
34
+ * @var string
35
+ */
36
+ protected $script_version = '2.0.1';
37
+
38
+ private static $instance;
39
+
40
+ /**
41
+ * Method: instance -> Return Notice module class instance
42
+ *
43
+ * @param string|null $text_domain
44
+ * @param string|null $unique_id
45
+ * @return mixed
46
+ */
47
+ public static function instance($text_domain = null, $unique_id = null) {
48
+
49
+ if($text_domain == null) {
50
+ return false;
51
+ }
52
+
53
+ self::$instance = new self();
54
+ self::$instance->config($text_domain, (is_null($unique_id) ? uniqid() : $unique_id));
55
+
56
+ return self::$instance;
57
+ }
58
+
59
+ /**
60
+ * Set Text domain
61
+ *
62
+ * @param string $text_domain
63
+ * @param string $unique_id
64
+ */
65
+ public function config($text_domain, $unique_id) {
66
+ $this->text_domain = $text_domain;
67
+ }
68
+
69
+ /**
70
+ * Get vesrion of $this
71
+ *
72
+ * @return \Wpmet\Rating\Rating
73
+ */
74
+ public function get_version() {
75
+ return $this->script_version;
76
+ }
77
+
78
+ /**
79
+ * @return $this file location for debugging 🐛 purpose
80
+ */
81
+ public function get_script_location() {
82
+ return __FILE__;
83
+ }
84
+
85
+ /**
86
+ * @param
87
+ */
88
+ public function set_plugin($plugin_name, $plugin_url) {
89
+ $this->plugin_name = $plugin_name;
90
+ $this->rating_url = $plugin_url;
91
+
92
+ return $this;
93
+ }
94
+
95
+ /**
96
+ * @param
97
+ */
98
+ public function set_priority($priority) {
99
+ $this->priority = $priority;
100
+
101
+ return $this;
102
+ }
103
+
104
+ public function set_first_appear_day($days = 7) {
105
+ $this->days = $days;
106
+
107
+ return $this;
108
+ }
109
+
110
+ public function set_rating_url($url) {
111
+ $this->rating_url = $url;
112
+
113
+ return $this;
114
+ }
115
+
116
+ public function set_plugin_logo($logo_url) {
117
+ $this->plugin_logo = $logo_url;
118
+
119
+ return $this;
120
+ }
121
+
122
+ public function set_allowed_screens($screen) {
123
+
124
+ $this->plugin_screens[] = $screen;
125
+
126
+ return $this;
127
+ }
128
+
129
+ public function set_condition($result) {
130
+ switch(gettype($result)) {
131
+ case 'boolean':
132
+ $this->condition_status = $result;
133
+ break;
134
+ case 'object':
135
+ $this->condition_status = $result();
136
+ break;
137
+ default:
138
+ $this->condition_status = false;
139
+ }
140
+
141
+ return $this;
142
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
143
 
144
+ public static function init() {
145
+ add_action("wp_ajax_wpmet_rating_never_show_message", [__CLASS__, "never_show_message"]);
146
+ add_action("wp_ajax_wpmet_rating_ask_me_later_message", [__CLASS__, "ask_me_later_message"]);
147
+ }
148
+
149
+ protected function is_current_screen_allowed($current_screen_id) {
150
+ if(in_array($current_screen_id, array_merge($this->plugin_screens, ['dashboard', 'plugins']))) {
151
+ return true;
152
+ }
153
+
154
+ return false;
155
+ }
156
+
157
+ /**
158
+ * ------------------------------------------
159
+ * 🚀 Rating class execution point
160
+ * ------------------------------------------
161
+ */
162
+ public function call() {
163
+
164
+ $this->init();
165
+ add_action('admin_head', [$this, 'fire'], $this->priority);
166
+ }
167
+
168
+ /**
169
+ * -------------------------------------------
170
+ * 🔥 fire the rating functionality
171
+ * -------------------------------------------
172
+ */
173
+ public function fire() {
174
+
175
+ if(current_user_can('update_plugins')) {
176
+
177
+ $current_screen = get_current_screen();
178
+
179
+ if(!$this->is_current_screen_allowed($current_screen->id)) {
180
+ return;
181
+ }
182
+
183
+ if($this->condition_status === false) {
184
+ return;
185
+ }
186
+
187
+ add_action('admin_footer', [$this, 'scripts'], 9999);
188
+
189
+
190
+ if($this->action_on_fire()) {
191
+
192
+ if(!$this->is_installation_date_exists()) {
193
+ $this->set_installation_date();
194
+ }
195
+
196
+ if(get_option($this->text_domain . '_never_show') == 'yes') {
197
+
198
+ return;
199
+ }
200
+
201
+
202
+ if(get_option($this->text_domain . '_ask_me_later') == 'yes') {
203
+
204
+ $this->days = '30';
205
+ $this->duplication = true;
206
+ $this->never_show_triggered = true;
207
+ if($this->get_remaining_days() >= $this->days) {
208
+ $this->duplication = false;
209
+ }
210
+ }
211
+
212
+ $this->display_message_box();
213
+ }
214
+ }
215
+ }
216
+
217
+
218
+ private function action_on_fire() {
219
+ return true;
220
+ }
221
+
222
+
223
+ public function set_installation_date() {
224
+ add_option($this->text_domain . '_install_date', date('Y-m-d h:i:s'));
225
+ }
226
+
227
+ public function is_installation_date_exists() {
228
+ return (get_option($this->text_domain . '_install_date') == false) ? false : true;
229
+ }
230
+
231
+ public function get_installation_date() {
232
+ return get_option($this->text_domain . '_install_date');
233
+ }
234
+
235
+ public function set_first_action_date() {
236
+ add_option($this->text_domain . '_first_action_Date', date('Y-m-d h:i:s'));
237
+ add_option($this->text_domain . '_first_action', 'yes');
238
+ }
239
+
240
+ public function get_days($from_date, $to_date) {
241
+ return round(($to_date->format('U') - $from_date->format('U')) / (60 * 60 * 24));
242
+ }
243
+
244
+ public function is_first_use($in_days) {
245
+ $install_date = get_option($this->text_domain . '_install_date');
246
+ $display_date = date('Y-m-d h:i:s');
247
+ $datetime1 = new DateTime($install_date);
248
+ $datetime2 = new DateTime($display_date);
249
+ $diff_interval = $this->get_days($datetime1, $datetime2);
250
+
251
+ if(abs($diff_interval) >= $in_days && get_option($this->text_domain . '_first_action_Date') == "yes") {
252
+
253
+ // action implementation here
254
+
255
+ }
256
+ }
257
+
258
+ /**
259
+ * ---------------------------------------------
260
+ * Change the status of Rating notification
261
+ * not to show the message again
262
+ * ---------------------------------------------
263
+ */
264
+ public static function never_show_message() {
265
+ $plugin_name = $_POST['plugin_name'];
266
+ add_option($plugin_name . '_never_show', 'yes');
267
+ }
268
+
269
+ public function get_remaining_days() {
270
+ $install_date = get_option($this->text_domain . '_install_date');
271
+ $display_date = date('Y-m-d h:i:s');
272
+ $datetime1 = new DateTime($install_date);
273
+ $datetime2 = new DateTime($display_date);
274
+ $diff_interval = $this->get_days($datetime1, $datetime2);
275
+
276
+ return abs($diff_interval);
277
+ }
278
+
279
+ /**
280
+ *----------------------------------
281
+ * Ask me later functionality
282
+ *----------------------------------
283
+ */
284
+ public function display_message_box() {
285
+
286
+ if(!$this->duplication) {
287
+ global $wpmet_libs_execution_container;
288
+
289
+ if(isset($wpmet_libs_execution_container['rating'])) {
290
+ return;
291
+ }
292
+
293
+ }
294
+
295
+
296
+ $wpmet_libs_execution_container['rating'] = __FILE__;
297
+
298
+ $install_date = get_option($this->text_domain . '_install_date');
299
+ $display_date = date('Y-m-d h:i:s');
300
+ $datetime1 = new DateTime($install_date);
301
+ $datetime2 = new DateTime($display_date);
302
+ $diff_interval = $this->get_days($datetime1, $datetime2);
303
+
304
+ if(abs($diff_interval) >= $this->days) {
305
+
306
+ $not_good_enough_btn_id = ($this->never_show_triggered) ? '_btn_never_show' : '_btn_not_good';
307
+
308
+ $message = "Hello! Seems like you have used {$this->plugin_name} to build this website — Thanks a lot! <br>
309
  Could you please do us a <b>big favor</b> and give it a <b>5-star</b> rating on WordPress?
310
  This would boost our motivation and help other users make a comfortable decision while choosing the {$this->plugin_name}";
311
 
312
+ LibsNotice::instance($this->text_domain, '_plugin_rating_msg_used_in_day')
313
+ ->set_message($message)
314
+ ->set_logo($this->plugin_logo, "max-height: 100px !important")
315
+ ->set_button([
316
+ 'url' => $this->rating_url,
317
+ 'text' => 'Ok, you deserved it',
318
+ 'class' => 'button-primary',
319
+ 'id' => $this->text_domain . '_btn_deserved',
320
+ ])
321
+ ->set_button([
322
+ 'url' => '#',
323
+ 'text' => 'I already did',
324
+ 'class' => 'button-default',
325
+ 'id' => $this->text_domain . '_btn_already_did',
326
+ 'icon' => 'dashicons-before dashicons-smiley',
327
+ ])
328
+ ->set_button([
329
+ 'url' => 'https://wpmet.com/support-ticket',
330
+ 'text' => 'I need support',
331
+ 'class' => 'button-default',
332
+ 'id' => '#',
333
+ 'icon' => 'dashicons-before dashicons-sos',
334
+ ])
335
+ ->set_button([
336
+ 'url' => '#',
337
+ 'text' => 'Never ask again',
338
+ 'class' => 'button-default',
339
+ 'id' => $this->text_domain . '_btn_never_show',
340
+ 'icon' => 'dashicons-before dashicons-welcome-comments',
341
+ ])
342
+ ->set_button([
343
+ 'url' => '#',
344
+ 'text' => 'No, not good enough',
345
+ 'class' => 'button-default',
346
+ 'id' => $this->text_domain . $not_good_enough_btn_id,
347
+ 'icon' => 'dashicons-before dashicons-thumbs-down',
348
+ ])
349
+ ->call();
350
+ }
351
+ }
352
+
353
+
354
+ /**
355
+ *---------------------------------------------------------
356
+ * When user will click @notGoodEnough button
357
+ * Then it will fire this function to change the status
358
+ * for next asking time
359
+ *---------------------------------------------------------
360
+ */
361
+
362
+
363
+ public static function ask_me_later_message() {
364
+ $plugin_name = $_POST['plugin_name'];
365
+ if(get_option($plugin_name . '_ask_me_later') == false) {
366
+ add_option($plugin_name . '_ask_me_later', 'yes');
367
+ } else {
368
+ add_option($plugin_name . '_never_show', 'yes');
369
+ }
370
+ }
371
+
372
+ /**
373
+ *--------------------------------------
374
+ * Get current version of the plugin
375
+ *--------------------------------------
376
+ */
377
+
378
+ public function get_current_version() {
379
+
380
+ return $this->version;
381
+ }
382
+
383
+ /**
384
+ *-------------------------------------------
385
+ * Get previous version of the plugin
386
+ * that have been stored in database
387
+ *-------------------------------------------
388
+ */
389
+
390
+
391
+ public function get_previous_version() {
392
+
393
+ return get_option($this->text_domain . '_version');
394
+ }
395
+
396
+ /**
397
+ *----------------------------------------
398
+ * Set current version of the plugin
399
+ *----------------------------------------
400
+ */
401
+
402
+ public function set_version($version) {
403
+ if(!get_option($this->text_domain . '_version')) {
404
+ add_option($this->text_domain . '_version');
405
+ } else {
406
+ update_option($this->text_domain . '_version', $version);
407
+ }
408
+ }
409
+
410
+ /**
411
+ *
412
+ * JS Ajax script for updating
413
+ * rating status from users
414
+ *
415
+ */
416
+
417
+ public function scripts() {
418
+
419
+ echo "
420
  <script>
421
  jQuery(document).ready(function ($) {
422
 
423
+ $( '#" . $this->text_domain . "_btn_already_did' ).on( 'click', function() {
424
 
425
  $.ajax({
426
  url: ajaxurl,
438
 
439
  });
440
 
441
+ $('#" . $this->text_domain . "_btn_deserved').click(function(){
442
  $.ajax({
443
  url: ajaxurl,
444
  type: 'POST',
454
  });
455
  });
456
 
457
+ $('#" . $this->text_domain . "_btn_not_good').click(function(){
458
  $.ajax({
459
  url: ajaxurl,
460
  type: 'POST',
470
  });
471
  });
472
 
473
+ $('#" . $this->text_domain . "_btn_never_show').click(function(){
474
  $.ajax({
475
  url: ajaxurl,
476
  type: 'POST',
489
  });
490
  </script>
491
  ";
492
+ }
493
+ }
494
  }