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 | Metform Elementor Contact Form Builder – Flexible and Design-Friendly Contact Form builder plugin for WordPress |
Version | 3.1.0 |
Comparing to | |
See all releases |
Code changes from version 3.0.1 to 3.1.0
- core/forms/action.php +12 -1
- core/forms/api.php +17 -3
- core/forms/views/modal-editor.php +3 -7
- languages/metform.pot +91 -91
- metform.php +3 -3
- plugin.php +88 -86
- public/assets/css/style.css +1 -1
- public/assets/js/admin-script.js +1 -1
- public/assets/js/app.js +1 -1
- readme.txt +8 -4
- utils/pro-awareness/pro-awareness.php +1 -1
core/forms/action.php
CHANGED
@@ -244,8 +244,19 @@ Class Action {
|
|
244 |
}
|
245 |
}
|
246 |
|
247 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
248 |
|
|
|
249 |
}
|
250 |
|
251 |
public function get_count_views($form_id) {
|
244 |
}
|
245 |
}
|
246 |
|
247 |
+
// Attach Aweber custom fields settings with the form settings
|
248 |
+
$aweber_custom_field_settings = get_option( 'mf_aweber_form_data_' . $post_id );
|
249 |
+
if(!empty($aweber_custom_field_settings)){
|
250 |
+
foreach($aweber_custom_field_settings as $aweber_field_setting){
|
251 |
+
if(is_array($aweber_field_setting)){
|
252 |
+
foreach($aweber_field_setting as $kay => $value){
|
253 |
+
$all_settings[$kay] = $value;
|
254 |
+
}
|
255 |
+
}
|
256 |
+
}
|
257 |
+
}
|
258 |
|
259 |
+
return $all_settings;
|
260 |
}
|
261 |
|
262 |
public function get_count_views($form_id) {
|
core/forms/api.php
CHANGED
@@ -26,7 +26,7 @@ class Api extends \MetForm\Base\Api
|
|
26 |
|
27 |
// Push the for type settings inside the form setting array
|
28 |
$existing_form_setting = \MetForm\Core\Forms\Action::instance()->get_all_data($form_id);
|
29 |
-
|
30 |
if(isset($existing_form_setting['form_type'])){
|
31 |
$form_setting['form_type'] = $existing_form_setting['form_type'];
|
32 |
}
|
@@ -48,9 +48,23 @@ class Api extends \MetForm\Base\Api
|
|
48 |
update_option('mf_hubspot_form_portalId_' . $form_id, $form_setting['mf_hubspot_form_portalId']);
|
49 |
update_option('mf_hubspot_form_data_' . $form_id, $fields);
|
50 |
}
|
51 |
-
|
52 |
-
|
53 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
|
55 |
/**
|
56 |
* Mailster form settings
|
26 |
|
27 |
// Push the for type settings inside the form setting array
|
28 |
$existing_form_setting = \MetForm\Core\Forms\Action::instance()->get_all_data($form_id);
|
29 |
+
|
30 |
if(isset($existing_form_setting['form_type'])){
|
31 |
$form_setting['form_type'] = $existing_form_setting['form_type'];
|
32 |
}
|
48 |
update_option('mf_hubspot_form_portalId_' . $form_id, $form_setting['mf_hubspot_form_portalId']);
|
49 |
update_option('mf_hubspot_form_data_' . $form_id, $fields);
|
50 |
}
|
|
|
|
|
51 |
|
52 |
+
if( !empty( $form_setting['mf_mail_aweber'] ) ){
|
53 |
+
$fields = [];
|
54 |
+
foreach ($form_setting as $key => $value) {
|
55 |
+
|
56 |
+
if (strpos($key, 'mf_aweber_custom_field_name_') !== false) {
|
57 |
+
|
58 |
+
$label_key = str_replace('mf_aweber_custom_field_name_', '', $key);
|
59 |
+
array_push($fields, [$key => [
|
60 |
+
'field_key' => $value,
|
61 |
+
'custom_field_key' => $form_setting['mf_aweber_custom_field_label_' . $label_key]
|
62 |
+
]]);
|
63 |
+
}
|
64 |
+
}
|
65 |
+
|
66 |
+
update_option('mf_aweber_form_data_' . $form_id, $fields);
|
67 |
+
}
|
68 |
|
69 |
/**
|
70 |
* Mailster form settings
|
core/forms/views/modal-editor.php
CHANGED
@@ -252,12 +252,6 @@
|
|
252 |
|
253 |
<div id="mf-hubsopt-fileds"></div>
|
254 |
|
255 |
-
<!-- <label class="attr-input-label">
|
256 |
-
<input type="checkbox" value="1" name="mf_hubspot" class="mf-admin-control-input mf-hubsopt">
|
257 |
-
<span><?php // esc_html_e('Add Entries To Contact:', 'metform');
|
258 |
-
?></span>
|
259 |
-
</label> -->
|
260 |
-
|
261 |
</div>
|
262 |
|
263 |
|
@@ -378,13 +372,15 @@
|
|
378 |
<label for="attr-input-label" class="attr-input-label"><?php esc_html_e('Aweber List ID:', 'metform'); ?></label>
|
379 |
|
380 |
<select name="mf_aweber_list_id" class="mf-aweber-list-id attr-form-control">
|
381 |
-
<option value=""> None</option>
|
382 |
</select>
|
383 |
|
384 |
<span class='mf-input-help'><?php esc_html_e('Enter here aweber list id. ', 'metform'); ?>
|
385 |
<a id="met_form_aweber_get_list" href="#"><?php esc_html_e('Refresh List', 'metform'); ?></a>
|
386 |
<span id="mf_aweber_info"></span>
|
387 |
</span>
|
|
|
|
|
388 |
</div>
|
389 |
|
390 |
|
252 |
|
253 |
<div id="mf-hubsopt-fileds"></div>
|
254 |
|
|
|
|
|
|
|
|
|
|
|
|
|
255 |
</div>
|
256 |
|
257 |
|
372 |
<label for="attr-input-label" class="attr-input-label"><?php esc_html_e('Aweber List ID:', 'metform'); ?></label>
|
373 |
|
374 |
<select name="mf_aweber_list_id" class="mf-aweber-list-id attr-form-control">
|
375 |
+
<option class="mf_aweber_default_option" value=""> None</option>
|
376 |
</select>
|
377 |
|
378 |
<span class='mf-input-help'><?php esc_html_e('Enter here aweber list id. ', 'metform'); ?>
|
379 |
<a id="met_form_aweber_get_list" href="#"><?php esc_html_e('Refresh List', 'metform'); ?></a>
|
380 |
<span id="mf_aweber_info"></span>
|
381 |
</span>
|
382 |
+
|
383 |
+
<div id="mf-aweber-fields"></div>
|
384 |
</div>
|
385 |
|
386 |
|
languages/metform.pot
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
# This file is distributed under the GPL-2.0+.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: MetForm 3.0
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/metform\n"
|
7 |
-
"POT-Creation-Date: 2022-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -1101,7 +1101,7 @@ msgstr ""
|
|
1101 |
msgid "You must enable \"store entries\" for integrating payment method."
|
1102 |
msgstr ""
|
1103 |
|
1104 |
-
#: core/forms/api.php:
|
1105 |
msgid "Not Authorized"
|
1106 |
msgstr ""
|
1107 |
|
@@ -1331,7 +1331,7 @@ msgstr ""
|
|
1331 |
msgid "Want to send a submission copy to user by email? Active this one."
|
1332 |
msgstr ""
|
1333 |
|
1334 |
-
#: core/forms/views/modal-editor.php:144 core/forms/views/modal-editor.php:
|
1335 |
msgid "The form must have at least one Email widget and it should be required."
|
1336 |
msgstr ""
|
1337 |
|
@@ -1457,312 +1457,312 @@ msgstr ""
|
|
1457 |
msgid "Fetch HubSpot Forms"
|
1458 |
msgstr ""
|
1459 |
|
1460 |
-
#: core/forms/views/modal-editor.php:
|
1461 |
msgid "HubSpot Contact:"
|
1462 |
msgstr ""
|
1463 |
|
1464 |
-
#: core/forms/views/modal-editor.php:
|
1465 |
msgid "REST API:"
|
1466 |
msgstr ""
|
1467 |
|
1468 |
-
#: core/forms/views/modal-editor.php:
|
1469 |
msgid "Send entry data to third party api/webhook"
|
1470 |
msgstr ""
|
1471 |
|
1472 |
-
#: core/forms/views/modal-editor.php:
|
1473 |
msgid "URL/Webhook:"
|
1474 |
msgstr ""
|
1475 |
|
1476 |
-
#: core/forms/views/modal-editor.php:
|
1477 |
msgid "Rest api url/webhook"
|
1478 |
msgstr ""
|
1479 |
|
1480 |
-
#: core/forms/views/modal-editor.php:
|
1481 |
msgid "Enter rest api url/webhook here."
|
1482 |
msgstr ""
|
1483 |
|
1484 |
-
#: core/forms/views/modal-editor.php:
|
1485 |
msgid "POST"
|
1486 |
msgstr ""
|
1487 |
|
1488 |
-
#: core/forms/views/modal-editor.php:
|
1489 |
msgid "GET"
|
1490 |
msgstr ""
|
1491 |
|
1492 |
-
#: core/forms/views/modal-editor.php:
|
1493 |
msgid "Mail Chimp:"
|
1494 |
msgstr ""
|
1495 |
|
1496 |
-
#: core/forms/views/modal-editor.php:
|
1497 |
msgid "Integrate mailchimp with this form."
|
1498 |
msgstr ""
|
1499 |
|
1500 |
-
#: core/forms/views/modal-editor.php:
|
1501 |
-
#: core/forms/views/modal-editor.php:
|
1502 |
-
#: core/forms/views/modal-editor.php:
|
1503 |
-
#: core/forms/views/modal-editor.php:
|
1504 |
msgid "The form must have at least one Email widget and it should be required. "
|
1505 |
msgstr ""
|
1506 |
|
1507 |
-
#: core/forms/views/modal-editor.php:
|
1508 |
msgid "Configure Mail Chimp."
|
1509 |
msgstr ""
|
1510 |
|
1511 |
-
#: core/forms/views/modal-editor.php:
|
1512 |
msgid "MailChimp List ID:"
|
1513 |
msgstr ""
|
1514 |
|
1515 |
-
#: core/forms/views/modal-editor.php:
|
1516 |
msgid "Mailchimp contact list id"
|
1517 |
msgstr ""
|
1518 |
|
1519 |
-
#: core/forms/views/modal-editor.php:
|
1520 |
msgid "Google Sheet:"
|
1521 |
msgstr ""
|
1522 |
|
1523 |
-
#: core/forms/views/modal-editor.php:
|
1524 |
msgid "Integrate google sheet with this form."
|
1525 |
msgstr ""
|
1526 |
|
1527 |
-
#: core/forms/views/modal-editor.php:
|
1528 |
msgid "Configure Google Sheet."
|
1529 |
msgstr ""
|
1530 |
|
1531 |
-
#: core/forms/views/modal-editor.php:
|
1532 |
msgid "MailPoet:"
|
1533 |
msgstr ""
|
1534 |
|
1535 |
-
#: core/forms/views/modal-editor.php:
|
1536 |
msgid "Integrate MailPoet with this form."
|
1537 |
msgstr ""
|
1538 |
|
1539 |
-
#: core/forms/views/modal-editor.php:
|
1540 |
msgid "Configure MailPoet."
|
1541 |
msgstr ""
|
1542 |
|
1543 |
-
#: core/forms/views/modal-editor.php:
|
1544 |
msgid "MailPoet List ID:"
|
1545 |
msgstr ""
|
1546 |
|
1547 |
-
#: core/forms/views/modal-editor.php:
|
1548 |
msgid "Enter here MailPoet list id. "
|
1549 |
msgstr ""
|
1550 |
|
1551 |
-
#: core/forms/views/modal-editor.php:
|
1552 |
-
#: core/forms/views/modal-editor.php:
|
1553 |
-
#: core/forms/views/modal-editor.php:
|
1554 |
msgid "Refresh List"
|
1555 |
msgstr ""
|
1556 |
|
1557 |
-
#: core/forms/views/modal-editor.php:
|
1558 |
msgid "Aweber:"
|
1559 |
msgstr ""
|
1560 |
|
1561 |
-
#: core/forms/views/modal-editor.php:
|
1562 |
msgid "Integrate aweber with this form."
|
1563 |
msgstr ""
|
1564 |
|
1565 |
-
#: core/forms/views/modal-editor.php:
|
1566 |
msgid "Configure aweber."
|
1567 |
msgstr ""
|
1568 |
|
1569 |
-
#: core/forms/views/modal-editor.php:
|
1570 |
msgid "Aweber List ID:"
|
1571 |
msgstr ""
|
1572 |
|
1573 |
-
#: core/forms/views/modal-editor.php:
|
1574 |
msgid "Enter here aweber list id. "
|
1575 |
msgstr ""
|
1576 |
|
1577 |
-
#: core/forms/views/modal-editor.php:
|
1578 |
msgid "ConvertKit:"
|
1579 |
msgstr ""
|
1580 |
|
1581 |
-
#: core/forms/views/modal-editor.php:
|
1582 |
msgid "Integrate convertKit with this form."
|
1583 |
msgstr ""
|
1584 |
|
1585 |
-
#: core/forms/views/modal-editor.php:
|
1586 |
msgid "Configure ConvertKit."
|
1587 |
msgstr ""
|
1588 |
|
1589 |
-
#: core/forms/views/modal-editor.php:
|
1590 |
msgid "ConvertKit Forms ID:"
|
1591 |
msgstr ""
|
1592 |
|
1593 |
-
#: core/forms/views/modal-editor.php:
|
1594 |
msgid "Enter here ConvertKit form id. "
|
1595 |
msgstr ""
|
1596 |
|
1597 |
-
#: core/forms/views/modal-editor.php:
|
1598 |
msgid "GetResponse:"
|
1599 |
msgstr ""
|
1600 |
|
1601 |
-
#: core/forms/views/modal-editor.php:
|
1602 |
msgid "Integrate GetResponse with this form."
|
1603 |
msgstr ""
|
1604 |
|
1605 |
-
#: core/forms/views/modal-editor.php:
|
1606 |
msgid "Configure GetResponse."
|
1607 |
msgstr ""
|
1608 |
|
1609 |
-
#: core/forms/views/modal-editor.php:
|
1610 |
msgid "GetResponse List ID:"
|
1611 |
msgstr ""
|
1612 |
|
1613 |
-
#: core/forms/views/modal-editor.php:
|
1614 |
msgid "GetResponse contact list id"
|
1615 |
msgstr ""
|
1616 |
|
1617 |
-
#: core/forms/views/modal-editor.php:
|
1618 |
msgid "Enter here GetResponse list id. "
|
1619 |
msgstr ""
|
1620 |
|
1621 |
-
#: core/forms/views/modal-editor.php:
|
1622 |
msgid "ActiveCampaign:"
|
1623 |
msgstr ""
|
1624 |
|
1625 |
-
#: core/forms/views/modal-editor.php:
|
1626 |
msgid "Integrate ActiveCampaign with this form."
|
1627 |
msgstr ""
|
1628 |
|
1629 |
-
#: core/forms/views/modal-editor.php:
|
1630 |
msgid "Configure ActiveCampaign."
|
1631 |
msgstr ""
|
1632 |
|
1633 |
-
#: core/forms/views/modal-editor.php:
|
1634 |
msgid "Active campaign List ID:"
|
1635 |
msgstr ""
|
1636 |
|
1637 |
-
#: core/forms/views/modal-editor.php:
|
1638 |
msgid "Enter here list id. "
|
1639 |
msgstr ""
|
1640 |
|
1641 |
-
#: core/forms/views/modal-editor.php:
|
1642 |
msgid "Active campaign Tag ID:"
|
1643 |
msgstr ""
|
1644 |
|
1645 |
-
#: core/forms/views/modal-editor.php:
|
1646 |
msgid "Enter here tag id. "
|
1647 |
msgstr ""
|
1648 |
|
1649 |
-
#: core/forms/views/modal-editor.php:
|
1650 |
msgid "Mailster:"
|
1651 |
msgstr ""
|
1652 |
|
1653 |
-
#: core/forms/views/modal-editor.php:
|
1654 |
msgid "Integrate Mailster with this form."
|
1655 |
msgstr ""
|
1656 |
|
1657 |
-
#: core/forms/views/modal-editor.php:
|
1658 |
msgid "Mailster Forms"
|
1659 |
msgstr ""
|
1660 |
|
1661 |
-
#: core/forms/views/modal-editor.php:
|
1662 |
msgid "Zapier:"
|
1663 |
msgstr ""
|
1664 |
|
1665 |
-
#: core/forms/views/modal-editor.php:
|
1666 |
msgid "Integrate zapier with this form."
|
1667 |
msgstr ""
|
1668 |
|
1669 |
-
#: core/forms/views/modal-editor.php:
|
1670 |
msgid "Zapier webhook:"
|
1671 |
msgstr ""
|
1672 |
|
1673 |
-
#: core/forms/views/modal-editor.php:
|
1674 |
msgid "Zapier webhook"
|
1675 |
msgstr ""
|
1676 |
|
1677 |
-
#: core/forms/views/modal-editor.php:
|
1678 |
msgid "Enter here zapier web hook."
|
1679 |
msgstr ""
|
1680 |
|
1681 |
-
#: core/forms/views/modal-editor.php:
|
1682 |
msgid "Slack:"
|
1683 |
msgstr ""
|
1684 |
|
1685 |
-
#: core/forms/views/modal-editor.php:
|
1686 |
msgid "Integrate slack with this form."
|
1687 |
msgstr ""
|
1688 |
|
1689 |
-
#: core/forms/views/modal-editor.php:
|
1690 |
msgid "slack info."
|
1691 |
msgstr ""
|
1692 |
|
1693 |
-
#: core/forms/views/modal-editor.php:
|
1694 |
msgid "Slack webhook:"
|
1695 |
msgstr ""
|
1696 |
|
1697 |
-
#: core/forms/views/modal-editor.php:
|
1698 |
msgid "Slack webhook"
|
1699 |
msgstr ""
|
1700 |
|
1701 |
-
#: core/forms/views/modal-editor.php:
|
1702 |
msgid "Enter here slack web hook."
|
1703 |
msgstr ""
|
1704 |
|
1705 |
-
#: core/forms/views/modal-editor.php:
|
1706 |
msgid "create from here"
|
1707 |
msgstr ""
|
1708 |
|
1709 |
-
#: core/forms/views/modal-editor.php:
|
1710 |
msgid "Paypal:"
|
1711 |
msgstr ""
|
1712 |
|
1713 |
-
#: core/forms/views/modal-editor.php:
|
1714 |
msgid "Integrate paypal payment with this form."
|
1715 |
msgstr ""
|
1716 |
|
1717 |
-
#: core/forms/views/modal-editor.php:
|
1718 |
msgid "Configure paypal payment."
|
1719 |
msgstr ""
|
1720 |
|
1721 |
-
#: core/forms/views/modal-editor.php:
|
1722 |
msgid "Stripe:"
|
1723 |
msgstr ""
|
1724 |
|
1725 |
-
#: core/forms/views/modal-editor.php:
|
1726 |
msgid "Integrate stripe payment with this form. "
|
1727 |
msgstr ""
|
1728 |
|
1729 |
-
#: core/forms/views/modal-editor.php:
|
1730 |
msgid "Configure stripe payment."
|
1731 |
msgstr ""
|
1732 |
|
1733 |
-
#: core/forms/views/modal-editor.php:
|
1734 |
msgid "Zoho Contact:"
|
1735 |
msgstr ""
|
1736 |
|
1737 |
-
#: core/forms/views/modal-editor.php:
|
1738 |
msgid "Integrate Zoho contacts with this form. "
|
1739 |
msgstr ""
|
1740 |
|
1741 |
-
#: core/forms/views/modal-editor.php:
|
1742 |
msgid "Configure Zoho."
|
1743 |
msgstr ""
|
1744 |
|
1745 |
-
#: core/forms/views/modal-editor.php:
|
1746 |
msgid "Helpscout"
|
1747 |
msgstr ""
|
1748 |
|
1749 |
-
#: core/forms/views/modal-editor.php:
|
1750 |
msgid "Integrate Helpscout with this form. "
|
1751 |
msgstr ""
|
1752 |
|
1753 |
-
#: core/forms/views/modal-editor.php:
|
1754 |
msgid "Configure Helpscout."
|
1755 |
msgstr ""
|
1756 |
|
1757 |
-
#: core/forms/views/modal-editor.php:
|
1758 |
msgid "Available Mailboxes"
|
1759 |
msgstr ""
|
1760 |
|
1761 |
-
#: core/forms/views/modal-editor.php:
|
1762 |
msgid "Edit content"
|
1763 |
msgstr ""
|
1764 |
|
1765 |
-
#: core/forms/views/modal-editor.php:
|
1766 |
msgid "Save changes"
|
1767 |
msgstr ""
|
1768 |
|
@@ -2341,27 +2341,27 @@ msgstr ""
|
|
2341 |
msgid "Your data inserted on slack."
|
2342 |
msgstr ""
|
2343 |
|
2344 |
-
#: plugin.php:
|
2345 |
msgid "Activate Elementor"
|
2346 |
msgstr ""
|
2347 |
|
2348 |
-
#: plugin.php:
|
2349 |
msgid "Install Elementor"
|
2350 |
msgstr ""
|
2351 |
|
2352 |
-
#: plugin.php:
|
2353 |
msgid "MetForm requires Elementor version %1$s+, which is currently NOT RUNNING."
|
2354 |
msgstr ""
|
2355 |
|
2356 |
-
#: plugin.php:
|
2357 |
msgid "MetForm Pro"
|
2358 |
msgstr ""
|
2359 |
|
2360 |
-
#: plugin.php:
|
2361 |
msgid "We have MetForm Pro version. Check out our pro feature."
|
2362 |
msgstr ""
|
2363 |
|
2364 |
-
#: plugin.php:
|
2365 |
msgid "Update Elementor"
|
2366 |
msgstr ""
|
2367 |
|
2 |
# This file is distributed under the GPL-2.0+.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: MetForm 3.1.0\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/metform\n"
|
7 |
+
"POT-Creation-Date: 2022-11-20 10:43:45+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
1101 |
msgid "You must enable \"store entries\" for integrating payment method."
|
1102 |
msgstr ""
|
1103 |
|
1104 |
+
#: core/forms/api.php:317
|
1105 |
msgid "Not Authorized"
|
1106 |
msgstr ""
|
1107 |
|
1331 |
msgid "Want to send a submission copy to user by email? Active this one."
|
1332 |
msgstr ""
|
1333 |
|
1334 |
+
#: core/forms/views/modal-editor.php:144 core/forms/views/modal-editor.php:564
|
1335 |
msgid "The form must have at least one Email widget and it should be required."
|
1336 |
msgstr ""
|
1337 |
|
1457 |
msgid "Fetch HubSpot Forms"
|
1458 |
msgstr ""
|
1459 |
|
1460 |
+
#: core/forms/views/modal-editor.php:263
|
1461 |
msgid "HubSpot Contact:"
|
1462 |
msgstr ""
|
1463 |
|
1464 |
+
#: core/forms/views/modal-editor.php:271
|
1465 |
msgid "REST API:"
|
1466 |
msgstr ""
|
1467 |
|
1468 |
+
#: core/forms/views/modal-editor.php:273
|
1469 |
msgid "Send entry data to third party api/webhook"
|
1470 |
msgstr ""
|
1471 |
|
1472 |
+
#: core/forms/views/modal-editor.php:278
|
1473 |
msgid "URL/Webhook:"
|
1474 |
msgstr ""
|
1475 |
|
1476 |
+
#: core/forms/views/modal-editor.php:279
|
1477 |
msgid "Rest api url/webhook"
|
1478 |
msgstr ""
|
1479 |
|
1480 |
+
#: core/forms/views/modal-editor.php:280
|
1481 |
msgid "Enter rest api url/webhook here."
|
1482 |
msgstr ""
|
1483 |
|
1484 |
+
#: core/forms/views/modal-editor.php:285
|
1485 |
msgid "POST"
|
1486 |
msgstr ""
|
1487 |
|
1488 |
+
#: core/forms/views/modal-editor.php:286
|
1489 |
msgid "GET"
|
1490 |
msgstr ""
|
1491 |
|
1492 |
+
#: core/forms/views/modal-editor.php:299
|
1493 |
msgid "Mail Chimp:"
|
1494 |
msgstr ""
|
1495 |
|
1496 |
+
#: core/forms/views/modal-editor.php:301
|
1497 |
msgid "Integrate mailchimp with this form."
|
1498 |
msgstr ""
|
1499 |
|
1500 |
+
#: core/forms/views/modal-editor.php:301 core/forms/views/modal-editor.php:339
|
1501 |
+
#: core/forms/views/modal-editor.php:368 core/forms/views/modal-editor.php:392
|
1502 |
+
#: core/forms/views/modal-editor.php:422 core/forms/views/modal-editor.php:457
|
1503 |
+
#: core/forms/views/modal-editor.php:524
|
1504 |
msgid "The form must have at least one Email widget and it should be required. "
|
1505 |
msgstr ""
|
1506 |
|
1507 |
+
#: core/forms/views/modal-editor.php:301
|
1508 |
msgid "Configure Mail Chimp."
|
1509 |
msgstr ""
|
1510 |
|
1511 |
+
#: core/forms/views/modal-editor.php:305
|
1512 |
msgid "MailChimp List ID:"
|
1513 |
msgstr ""
|
1514 |
|
1515 |
+
#: core/forms/views/modal-editor.php:312
|
1516 |
msgid "Mailchimp contact list id"
|
1517 |
msgstr ""
|
1518 |
|
1519 |
+
#: core/forms/views/modal-editor.php:322
|
1520 |
msgid "Google Sheet:"
|
1521 |
msgstr ""
|
1522 |
|
1523 |
+
#: core/forms/views/modal-editor.php:324
|
1524 |
msgid "Integrate google sheet with this form."
|
1525 |
msgstr ""
|
1526 |
|
1527 |
+
#: core/forms/views/modal-editor.php:324
|
1528 |
msgid "Configure Google Sheet."
|
1529 |
msgstr ""
|
1530 |
|
1531 |
+
#: core/forms/views/modal-editor.php:335
|
1532 |
msgid "MailPoet:"
|
1533 |
msgstr ""
|
1534 |
|
1535 |
+
#: core/forms/views/modal-editor.php:338
|
1536 |
msgid "Integrate MailPoet with this form."
|
1537 |
msgstr ""
|
1538 |
|
1539 |
+
#: core/forms/views/modal-editor.php:341
|
1540 |
msgid "Configure MailPoet."
|
1541 |
msgstr ""
|
1542 |
|
1543 |
+
#: core/forms/views/modal-editor.php:348
|
1544 |
msgid "MailPoet List ID:"
|
1545 |
msgstr ""
|
1546 |
|
1547 |
+
#: core/forms/views/modal-editor.php:354
|
1548 |
msgid "Enter here MailPoet list id. "
|
1549 |
msgstr ""
|
1550 |
|
1551 |
+
#: core/forms/views/modal-editor.php:355 core/forms/views/modal-editor.php:379
|
1552 |
+
#: core/forms/views/modal-editor.php:404 core/forms/views/modal-editor.php:479
|
1553 |
+
#: core/forms/views/modal-editor.php:503
|
1554 |
msgid "Refresh List"
|
1555 |
msgstr ""
|
1556 |
|
1557 |
+
#: core/forms/views/modal-editor.php:366
|
1558 |
msgid "Aweber:"
|
1559 |
msgstr ""
|
1560 |
|
1561 |
+
#: core/forms/views/modal-editor.php:368
|
1562 |
msgid "Integrate aweber with this form."
|
1563 |
msgstr ""
|
1564 |
|
1565 |
+
#: core/forms/views/modal-editor.php:368
|
1566 |
msgid "Configure aweber."
|
1567 |
msgstr ""
|
1568 |
|
1569 |
+
#: core/forms/views/modal-editor.php:372
|
1570 |
msgid "Aweber List ID:"
|
1571 |
msgstr ""
|
1572 |
|
1573 |
+
#: core/forms/views/modal-editor.php:378
|
1574 |
msgid "Enter here aweber list id. "
|
1575 |
msgstr ""
|
1576 |
|
1577 |
+
#: core/forms/views/modal-editor.php:390
|
1578 |
msgid "ConvertKit:"
|
1579 |
msgstr ""
|
1580 |
|
1581 |
+
#: core/forms/views/modal-editor.php:392
|
1582 |
msgid "Integrate convertKit with this form."
|
1583 |
msgstr ""
|
1584 |
|
1585 |
+
#: core/forms/views/modal-editor.php:392
|
1586 |
msgid "Configure ConvertKit."
|
1587 |
msgstr ""
|
1588 |
|
1589 |
+
#: core/forms/views/modal-editor.php:396
|
1590 |
msgid "ConvertKit Forms ID:"
|
1591 |
msgstr ""
|
1592 |
|
1593 |
+
#: core/forms/views/modal-editor.php:402
|
1594 |
msgid "Enter here ConvertKit form id. "
|
1595 |
msgstr ""
|
1596 |
|
1597 |
+
#: core/forms/views/modal-editor.php:419
|
1598 |
msgid "GetResponse:"
|
1599 |
msgstr ""
|
1600 |
|
1601 |
+
#: core/forms/views/modal-editor.php:422
|
1602 |
msgid "Integrate GetResponse with this form."
|
1603 |
msgstr ""
|
1604 |
|
1605 |
+
#: core/forms/views/modal-editor.php:422
|
1606 |
msgid "Configure GetResponse."
|
1607 |
msgstr ""
|
1608 |
|
1609 |
+
#: core/forms/views/modal-editor.php:428
|
1610 |
msgid "GetResponse List ID:"
|
1611 |
msgstr ""
|
1612 |
|
1613 |
+
#: core/forms/views/modal-editor.php:436
|
1614 |
msgid "GetResponse contact list id"
|
1615 |
msgstr ""
|
1616 |
|
1617 |
+
#: core/forms/views/modal-editor.php:437
|
1618 |
msgid "Enter here GetResponse list id. "
|
1619 |
msgstr ""
|
1620 |
|
1621 |
+
#: core/forms/views/modal-editor.php:454
|
1622 |
msgid "ActiveCampaign:"
|
1623 |
msgstr ""
|
1624 |
|
1625 |
+
#: core/forms/views/modal-editor.php:457
|
1626 |
msgid "Integrate ActiveCampaign with this form."
|
1627 |
msgstr ""
|
1628 |
|
1629 |
+
#: core/forms/views/modal-editor.php:457
|
1630 |
msgid "Configure ActiveCampaign."
|
1631 |
msgstr ""
|
1632 |
|
1633 |
+
#: core/forms/views/modal-editor.php:462
|
1634 |
msgid "Active campaign List ID:"
|
1635 |
msgstr ""
|
1636 |
|
1637 |
+
#: core/forms/views/modal-editor.php:478
|
1638 |
msgid "Enter here list id. "
|
1639 |
msgstr ""
|
1640 |
|
1641 |
+
#: core/forms/views/modal-editor.php:486
|
1642 |
msgid "Active campaign Tag ID:"
|
1643 |
msgstr ""
|
1644 |
|
1645 |
+
#: core/forms/views/modal-editor.php:502
|
1646 |
msgid "Enter here tag id. "
|
1647 |
msgstr ""
|
1648 |
|
1649 |
+
#: core/forms/views/modal-editor.php:521
|
1650 |
msgid "Mailster:"
|
1651 |
msgstr ""
|
1652 |
|
1653 |
+
#: core/forms/views/modal-editor.php:524
|
1654 |
msgid "Integrate Mailster with this form."
|
1655 |
msgstr ""
|
1656 |
|
1657 |
+
#: core/forms/views/modal-editor.php:530
|
1658 |
msgid "Mailster Forms"
|
1659 |
msgstr ""
|
1660 |
|
1661 |
+
#: core/forms/views/modal-editor.php:562
|
1662 |
msgid "Zapier:"
|
1663 |
msgstr ""
|
1664 |
|
1665 |
+
#: core/forms/views/modal-editor.php:564
|
1666 |
msgid "Integrate zapier with this form."
|
1667 |
msgstr ""
|
1668 |
|
1669 |
+
#: core/forms/views/modal-editor.php:568
|
1670 |
msgid "Zapier webhook:"
|
1671 |
msgstr ""
|
1672 |
|
1673 |
+
#: core/forms/views/modal-editor.php:569
|
1674 |
msgid "Zapier webhook"
|
1675 |
msgstr ""
|
1676 |
|
1677 |
+
#: core/forms/views/modal-editor.php:570
|
1678 |
msgid "Enter here zapier web hook."
|
1679 |
msgstr ""
|
1680 |
|
1681 |
+
#: core/forms/views/modal-editor.php:579
|
1682 |
msgid "Slack:"
|
1683 |
msgstr ""
|
1684 |
|
1685 |
+
#: core/forms/views/modal-editor.php:581
|
1686 |
msgid "Integrate slack with this form."
|
1687 |
msgstr ""
|
1688 |
|
1689 |
+
#: core/forms/views/modal-editor.php:581
|
1690 |
msgid "slack info."
|
1691 |
msgstr ""
|
1692 |
|
1693 |
+
#: core/forms/views/modal-editor.php:585
|
1694 |
msgid "Slack webhook:"
|
1695 |
msgstr ""
|
1696 |
|
1697 |
+
#: core/forms/views/modal-editor.php:586
|
1698 |
msgid "Slack webhook"
|
1699 |
msgstr ""
|
1700 |
|
1701 |
+
#: core/forms/views/modal-editor.php:587
|
1702 |
msgid "Enter here slack web hook."
|
1703 |
msgstr ""
|
1704 |
|
1705 |
+
#: core/forms/views/modal-editor.php:587
|
1706 |
msgid "create from here"
|
1707 |
msgstr ""
|
1708 |
|
1709 |
+
#: core/forms/views/modal-editor.php:647
|
1710 |
msgid "Paypal:"
|
1711 |
msgstr ""
|
1712 |
|
1713 |
+
#: core/forms/views/modal-editor.php:649
|
1714 |
msgid "Integrate paypal payment with this form."
|
1715 |
msgstr ""
|
1716 |
|
1717 |
+
#: core/forms/views/modal-editor.php:649
|
1718 |
msgid "Configure paypal payment."
|
1719 |
msgstr ""
|
1720 |
|
1721 |
+
#: core/forms/views/modal-editor.php:658
|
1722 |
msgid "Stripe:"
|
1723 |
msgstr ""
|
1724 |
|
1725 |
+
#: core/forms/views/modal-editor.php:660
|
1726 |
msgid "Integrate stripe payment with this form. "
|
1727 |
msgstr ""
|
1728 |
|
1729 |
+
#: core/forms/views/modal-editor.php:660
|
1730 |
msgid "Configure stripe payment."
|
1731 |
msgstr ""
|
1732 |
|
1733 |
+
#: core/forms/views/modal-editor.php:680
|
1734 |
msgid "Zoho Contact:"
|
1735 |
msgstr ""
|
1736 |
|
1737 |
+
#: core/forms/views/modal-editor.php:682
|
1738 |
msgid "Integrate Zoho contacts with this form. "
|
1739 |
msgstr ""
|
1740 |
|
1741 |
+
#: core/forms/views/modal-editor.php:682
|
1742 |
msgid "Configure Zoho."
|
1743 |
msgstr ""
|
1744 |
|
1745 |
+
#: core/forms/views/modal-editor.php:693
|
1746 |
msgid "Helpscout"
|
1747 |
msgstr ""
|
1748 |
|
1749 |
+
#: core/forms/views/modal-editor.php:695
|
1750 |
msgid "Integrate Helpscout with this form. "
|
1751 |
msgstr ""
|
1752 |
|
1753 |
+
#: core/forms/views/modal-editor.php:695
|
1754 |
msgid "Configure Helpscout."
|
1755 |
msgstr ""
|
1756 |
|
1757 |
+
#: core/forms/views/modal-editor.php:700
|
1758 |
msgid "Available Mailboxes"
|
1759 |
msgstr ""
|
1760 |
|
1761 |
+
#: core/forms/views/modal-editor.php:738
|
1762 |
msgid "Edit content"
|
1763 |
msgstr ""
|
1764 |
|
1765 |
+
#: core/forms/views/modal-editor.php:740
|
1766 |
msgid "Save changes"
|
1767 |
msgstr ""
|
1768 |
|
2341 |
msgid "Your data inserted on slack."
|
2342 |
msgstr ""
|
2343 |
|
2344 |
+
#: plugin.php:470
|
2345 |
msgid "Activate Elementor"
|
2346 |
msgstr ""
|
2347 |
|
2348 |
+
#: plugin.php:477
|
2349 |
msgid "Install Elementor"
|
2350 |
msgstr ""
|
2351 |
|
2352 |
+
#: plugin.php:481 plugin.php:513
|
2353 |
msgid "MetForm requires Elementor version %1$s+, which is currently NOT RUNNING."
|
2354 |
msgstr ""
|
2355 |
|
2356 |
+
#: plugin.php:496
|
2357 |
msgid "MetForm Pro"
|
2358 |
msgstr ""
|
2359 |
|
2360 |
+
#: plugin.php:500 plugin.php:516
|
2361 |
msgid "We have MetForm Pro version. Check out our pro feature."
|
2362 |
msgstr ""
|
2363 |
|
2364 |
+
#: plugin.php:512
|
2365 |
msgid "Update Elementor"
|
2366 |
msgstr ""
|
2367 |
|
metform.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: MetForm
|
4 |
* Plugin URI: http://products.wpmet.com/metform/
|
5 |
* Description: Most flexible and design friendly form builder for Elementor
|
6 |
-
* Version: 3.0
|
7 |
* Author: Wpmet
|
8 |
* Author URI: https://wpmet.com
|
9 |
* Text Domain: metform
|
@@ -18,7 +18,7 @@ require_once plugin_dir_path( __FILE__ ) . 'utils/notice/notice.php';
|
|
18 |
require_once plugin_dir_path( __FILE__ ) . 'utils/banner/banner.php';
|
19 |
|
20 |
require_once plugin_dir_path( __FILE__ ) . 'utils/stories/stories.php';
|
21 |
-
|
22 |
require_once plugin_dir_path( __FILE__ ) . 'utils/rating/rating.php';
|
23 |
|
24 |
require plugin_dir_path( __FILE__ ) .'autoloader.php';
|
@@ -27,7 +27,7 @@ require plugin_dir_path( __FILE__ ) .'plugin.php';
|
|
27 |
// init notice class
|
28 |
\Oxaim\Libs\Notice::init();
|
29 |
// \Wpmet\Rating\Rating::init();
|
30 |
-
|
31 |
|
32 |
|
33 |
register_activation_hook( __FILE__, [ MetForm\Plugin::instance(), 'flush_rewrites'] );
|
3 |
* Plugin Name: MetForm
|
4 |
* Plugin URI: http://products.wpmet.com/metform/
|
5 |
* Description: Most flexible and design friendly form builder for Elementor
|
6 |
+
* Version: 3.1.0
|
7 |
* Author: Wpmet
|
8 |
* Author URI: https://wpmet.com
|
9 |
* Text Domain: metform
|
18 |
require_once plugin_dir_path( __FILE__ ) . 'utils/banner/banner.php';
|
19 |
|
20 |
require_once plugin_dir_path( __FILE__ ) . 'utils/stories/stories.php';
|
21 |
+
require_once plugin_dir_path( __FILE__ ) . 'utils/pro-awareness/pro-awareness.php';
|
22 |
require_once plugin_dir_path( __FILE__ ) . 'utils/rating/rating.php';
|
23 |
|
24 |
require plugin_dir_path( __FILE__ ) .'autoloader.php';
|
27 |
// init notice class
|
28 |
\Oxaim\Libs\Notice::init();
|
29 |
// \Wpmet\Rating\Rating::init();
|
30 |
+
\Wpmet\Libs\Pro_Awareness::init();
|
31 |
|
32 |
|
33 |
register_activation_hook( __FILE__, [ MetForm\Plugin::instance(), 'flush_rewrites'] );
|
plugin.php
CHANGED
@@ -22,7 +22,7 @@ final class Plugin {
|
|
22 |
|
23 |
public function version()
|
24 |
{
|
25 |
-
return '3.0
|
26 |
}
|
27 |
|
28 |
public function package_type()
|
@@ -162,91 +162,93 @@ final class Plugin {
|
|
162 |
$is_pro_active = 'Go Premium';
|
163 |
}
|
164 |
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
|
|
|
|
250 |
|
251 |
|
252 |
|
22 |
|
23 |
public function version()
|
24 |
{
|
25 |
+
return '3.1.0';
|
26 |
}
|
27 |
|
28 |
public function package_type()
|
162 |
$is_pro_active = 'Go Premium';
|
163 |
}
|
164 |
|
165 |
+
$pro_awareness = \Wpmet\Libs\Pro_Awareness::instance('metform');
|
166 |
+
if(version_compare($pro_awareness->get_version(), '1.2.0', '>=')) {
|
167 |
+
$pro_awareness
|
168 |
+
->set_parent_menu_slug('metform-menu')
|
169 |
+
->set_pro_link(
|
170 |
+
(in_array('metform-pro/metform-pro.php', apply_filters('active_plugins', get_option('active_plugins')))) ? '' :
|
171 |
+
'https://wpmet.com/metform-pricing'
|
172 |
+
)
|
173 |
+
->set_plugin_file('metform/metform.php')
|
174 |
+
->set_default_grid_thumbnail($this->utils_url() . '/pro-awareness/assets/images/support.png')
|
175 |
+
->set_page_grid([
|
176 |
+
'url' => 'https://wpmet.com/fb-group',
|
177 |
+
'title' => 'Join the Community',
|
178 |
+
'thumbnail' => $this->utils_url() . '/pro-awareness/assets/images/community.png',
|
179 |
+
'description' => 'Join our Facebook group to get 20% discount coupon on premium products. Follow us to get more exciting offers.'
|
180 |
+
|
181 |
+
])
|
182 |
+
->set_page_grid([
|
183 |
+
'url' => 'https://www.youtube.com/playlist?list=PL3t2OjZ6gY8NoB_48DwWKUDRtBEuBOxSc',
|
184 |
+
'title' => 'Video Tutorials',
|
185 |
+
'thumbnail' => $this->utils_url() . '/pro-awareness/assets/images/videos.png',
|
186 |
+
'description' => 'Learn the step by step process for developing your site easily from video tutorials.'
|
187 |
+
])
|
188 |
+
->set_page_grid([
|
189 |
+
'url' => 'https://wpmet.com/plugin/metform/roadmaps#ideas',
|
190 |
+
'title' => 'Request a feature',
|
191 |
+
'thumbnail' => $this->utils_url() . '/pro-awareness/assets/images/request.png',
|
192 |
+
'description' => 'Have any special feature in mind? Let us know through the feature request.'
|
193 |
+
])
|
194 |
+
->set_page_grid([
|
195 |
+
'url' => 'https://wpmet.com/doc/metform/',
|
196 |
+
'title' => 'Documentation',
|
197 |
+
'thumbnail' => $this->utils_url() . 'pro-awareness/assets/images/documentation.png',
|
198 |
+
'description' => 'Detailed documentation to help you understand the functionality of each feature.'
|
199 |
+
])
|
200 |
+
->set_page_grid([
|
201 |
+
'url' => 'https://wpmet.com/plugin/metform/roadmaps/',
|
202 |
+
'title' => 'Public Roadmap',
|
203 |
+
'thumbnail' => $this->utils_url() . 'pro-awareness/assets/images/roadmaps.png',
|
204 |
+
'description' => 'Check our upcoming new features, detailed development stories and tasks'
|
205 |
+
])
|
206 |
+
|
207 |
+
// set wpmet products
|
208 |
+
->set_products([
|
209 |
+
'url' => 'https://getgenie.ai/',
|
210 |
+
'title' => 'GetGenie',
|
211 |
+
'thumbnail' => $this->core_url() . 'integrations/onboard/assets/images/products/getgenie-logo.svg',
|
212 |
+
'description' => 'Your AI-Powered Content & SEO Assistant for WordPress',
|
213 |
+
])
|
214 |
+
->set_products([
|
215 |
+
'url' => 'https://wpmet.com/plugin/shopengine/',
|
216 |
+
'title' => 'ShopEngine',
|
217 |
+
'thumbnail' => $this->core_url() . 'integrations/onboard/assets/images/products/shopengine-logo.svg',
|
218 |
+
'description' => 'Complete WooCommerce Solution for Elementor',
|
219 |
+
])
|
220 |
+
->set_products([
|
221 |
+
'url' => 'https://wpmet.com/plugin/metform/',
|
222 |
+
'title' => 'MetForm',
|
223 |
+
'thumbnail' => $this->core_url() . 'integrations/onboard/assets/images/products/metform-logo.svg',
|
224 |
+
'description' => 'Most flexible drag-and-drop form builder'
|
225 |
+
])
|
226 |
+
->set_products([
|
227 |
+
'url' => 'https://wpmet.com/plugin/wp-social/',
|
228 |
+
'title' => 'WP Social',
|
229 |
+
'thumbnail' => $this->core_url() . 'integrations/onboard/assets/images/products/wp-social-logo.svg',
|
230 |
+
'description' => 'Integrate all your social media to your website'
|
231 |
+
])
|
232 |
+
->set_products([
|
233 |
+
'url' => 'https://wpmet.com/plugin/wp-ultimate-review/?ref=wpmet',
|
234 |
+
'title' => 'Ultimate Review',
|
235 |
+
'thumbnail' => $this->core_url() . 'integrations/onboard/assets/images/products/ultimate-review-logo.svg',
|
236 |
+
'description' => 'Integrate various styled review system in your website'
|
237 |
+
])
|
238 |
+
->set_products([
|
239 |
+
'url' => 'https://products.wpmet.com/crowdfunding/?ref=wpmet',
|
240 |
+
'title' => 'Fundraising & Donation Platform',
|
241 |
+
'thumbnail' => $this->core_url() . 'integrations/onboard/assets/images/products/wp-fundraising-logo.svg',
|
242 |
+
'description' => 'Enable donation system in your website'
|
243 |
+
])
|
244 |
+
|
245 |
+
->set_plugin_row_meta('Documentation', 'https://help.wpmet.com/docs-cat/metform/', ['target' => '_blank'])
|
246 |
+
->set_plugin_row_meta('Facebook Community', 'https://wpmet.com/fb-group', ['target' => '_blank'])
|
247 |
+
->set_plugin_row_meta('Rate the plugin ★★★★★', 'https://wordpress.org/support/plugin/metform/reviews/#new-post', ['target' => '_blank'])
|
248 |
+
->set_plugin_action_link('Settings', admin_url() . 'admin.php?page=metform-menu-settings')
|
249 |
+
->set_plugin_action_link($is_pro_active, 'https://wpmet.com/plugin/metform', ['target' => '_blank', 'style' => 'color: #FCB214; font-weight: bold;'])
|
250 |
+
->call();
|
251 |
+
}
|
252 |
|
253 |
|
254 |
|
public/assets/css/style.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
@-webkit-keyframes metform-responseOpen{from{-webkit-transform:scaleY(0);transform:scaleY(0);opacity:0;-webkit-transform-origin:top center;transform-origin:top center}to{-webkit-transform:scaley(1);transform:scaley(1);opacity:1;-webkit-transform-origin:top center;transform-origin:top center}}@keyframes metform-responseOpen{from{-webkit-transform:scaleY(0);transform:scaleY(0);opacity:0;-webkit-transform-origin:top center;transform-origin:top center}to{-webkit-transform:scaley(1);transform:scaley(1);opacity:1;-webkit-transform-origin:top center;transform-origin:top center}}@-webkit-keyframes metform-responseClose{from{-webkit-transform:scaley(1);transform:scaley(1);-webkit-transform-origin:top center;transform-origin:top center}to{-webkit-transform:scaley(0);transform:scaley(0);-webkit-transform-origin:top center;transform-origin:top center}}@keyframes metform-responseClose{from{-webkit-transform:scaley(1);transform:scaley(1);-webkit-transform-origin:top center;transform-origin:top center}to{-webkit-transform:scaley(0);transform:scaley(0);-webkit-transform-origin:top center;transform-origin:top center}}@-webkit-keyframes metform-zoom-out-zero{from{opacity:1;-webkit-transform:scale(1);transform:scale(1)}to{opacity:0;-webkit-transform:scale(0);transform:scale(0)}}@keyframes metform-zoom-out-zero{from{opacity:1;-webkit-transform:scale(1);transform:scale(1)}to{opacity:0;-webkit-transform:scale(0);transform:scale(0)}}@-webkit-keyframes metform-zoom-in-full{from{opacity:0;-webkit-transform:scale(0);transform:scale(0)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes metform-zoom-in-full{from{opacity:0;-webkit-transform:scale(0);transform:scale(0)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}#elementor .mf-btn-wraper a.metform-btn{background:#337ab7;color:#fff;border-radius:5px;height:20%;font-size:16px;padding:10px}.mf-form-wrapper section,.single-metform-form section{padding-top:0;padding-bottom:0}.mf-input-switch-control{position:relative;display:inline-block}.mf-input-switch-control>input[type=checkbox]{display:none!important}.mf-input-control{position:absolute;z-index:-1;opacity:0}.mf-input-switch .mf-input-control-label::before{content:attr(data-disable);width:55px;height:25px;background-color:#ededed;left:0;border-radius:15px;text-align:right;color:#fff;text-transform:uppercase;font-weight:700;font-size:10px;padding:3px;-webkit-box-sizing:border-box;box-sizing:border-box;padding-right:10px;-webkit-transition:all .4s;transition:all .4s;float:right;line-height:18px;cursor:pointer;display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex-align:center;-webkit-box-align:center;align-items:center;-ms-flex-pack:end;-webkit-box-pack:end;justify-content:flex-end}.metform-form-content{position:relative;z-index:0;overflow-x:clip}.metform-form-content .metform-form-main-wrapper .e-container{isolation:unset}.mf-multistep-container .elementor-top-section .elementor-inner-section{padding:0!important;margin:0!important}.mf-multistep-container .e-container--column .elementor-inner-section{padding:0!important;margin:0!important}.mf-multistep-container .elementor-top-section .elementor-inner-column{min-height:inherit}.mf-multistep-container .e-container--column .elementor-inner-column{min-height:inherit}.mf-multistep-container .elementor-top-section .elementor-inner-column .elementor-element-populated{padding-top:0!important;padding-bottom:0!important}.mf-multistep-container .e-container--column .elementor-inner-column .elementor-element-populated{padding-top:0!important;padding-bottom:0!important}.mf-multistep-container .elementor-top-section .elementor-inner-column .elementor-widget-container{margin:10px 0}.mf-multistep-container .e-container--column .elementor-inner-column .elementor-widget-container{margin:10px 0}.mf-response-msg-wrap{-webkit-transition:height .45s,opacity .45s,visibility .45s;transition:height .45s,opacity .45s,visibility .45s;background-color:#fff}.mf-response-msg-wrap[data-show="0"]{height:0!important;opacity:0;visibility:hidden}.mf-response-msg-wrap[data-show="1"]{height:auto;opacity:1;visibility:visible;margin-bottom:20px}.mf-response-msg{border-radius:5px;text-align:center;padding:15px 34px;height:100%}.wf-error-res{background-color:#f8d7da;border-color:#f5c6cb}.mf-success-icon,.wf-error-res .mf-alert-icon{color:#721c24;font-size:30px;margin-bottom:5px}.mf-success-icon{color:#101010}.mf-response-msg p{font-size:17px;line-height:20px;color:#101010;margin-bottom:0}.wf-error-res p{color:#721c24}.custom-file-label,.custom-select,.mf-input-control-label::before{-webkit-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;-webkit-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out,-webkit-box-shadow .15s ease-in-out}.mf-input-control-label::after{position:absolute;top:2px;left:2px;display:block;width:14px;height:14px;content:"";background-color:#adb5bd;border-radius:100px;-webkit-transition:all .4s;transition:all .4s;cursor:pointer}.mf-input-switch label.mf-input-control-label{display:inline-block;vertical-align:middle;position:relative;margin:0}.mf-input-control:checked~.mf-input-control-label::before{color:#fff;border-color:#007bff;background-color:#007bff;content:attr(data-enable);text-align:left;padding-left:10px;-ms-flex-pack:start;-webkit-box-pack:start;justify-content:flex-start}.mf-input-switch .mf-input-control:checked~.mf-input-control-label::after{background-color:#fff}.mf-input-wrapper .mf-input-help{display:block;font-size:.9em;margin-top:5px;opacity:.7;clear:both;font-weight:400}.mf-input-wrapper .mf-input{width:100%;max-width:100%;padding:12px;height:auto;border-width:1px;border-style:solid;border-color:#eaeaea;border-radius:2px;background:0 0;background-color:#fafafa;-webkit-box-shadow:none;box-shadow:none;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-transition:all .2s linear;transition:all .2s linear;font-size:14px;line-height:21px;text-align:left}.mf-input-wrapper .mf-input:focus,.mf-input-wrapper.mf-field-error .mf-input,.mf-input-wrapper.mf-field-error .mf-input:focus{outline:0}.mf-input-wrapper .mf-input:focus{border-color:#4285f478}.mf-input-wrapper .mf-input:-ms-input-placeholder{color:#c9c1c1;font-weight:400;font-size:14px}.mf-input-wrapper .mf-input::-webkit-input-placeholder{color:#c9c1c1;font-weight:400;font-size:14px}.mf-input-wrapper .mf-input::-moz-placeholder{color:#c9c1c1;font-weight:400;font-size:14px}.mf-input-wrapper .mf-input::-ms-input-placeholder{color:#c9c1c1;font-weight:400;font-size:14px}.mf-input-wrapper .mf-input::placeholder{color:#c9c1c1;font-weight:400;font-size:14px}.mf-input-wrapper .mf-input::-webkit-input-placeholder{color:#c9c1c1;font-weight:400;font-size:14px}.mf-input-wrapper .mf-input:-moz-placeholder{color:#c9c1c1;font-weight:400;font-size:14px}@media (max-width:767px){.attr-form-group>.attr-control-label,.attr-form-group>.mf-input,.mf-input-wrapper>.mf-captcha-input-wrapper,.mf-input-wrapper>.mf-checkbox,.mf-input-wrapper>.mf-image-select,.mf-input-wrapper>.mf-input-label,.mf-input-wrapper>.mf-input:not(.mf-left-parent),.mf-input-wrapper>.mf-payment-method,.mf-input-wrapper>.mf-radio,.mf-input-wrapper>.mf-repeater-field-label,.mf-input-wrapper>.mf-signature{width:100%;min-width:100%}}.mf-input-wrapper .mf-input-label,.mf-repeater-field-label{font-family:Roboto,sans-serif;font-weight:600;font-size:14px;display:block;color:#000;font-size:14px;line-height:16px;margin-bottom:5px}.mf-input-wrapper .mf-input,.mf-input-wrapper .mf-input-label{vertical-align:middle}div.mf-input-wrapper>textarea.mf-input{padding:15px}.irs--round .irs-max,.irs--round .irs-min{display:none}.irs--round .irs-handle{cursor:pointer}.multi-option-input-type{vertical-align:middle}.mf-checkbox-option input[type=checkbox]{display:none!important}.mf-checkbox-option:not(.disabled) label{cursor:pointer}.mf-checkbox-option input[type=checkbox]+span::before{position:relative;content:"\f0c8";font-family:"Font Awesome 5 Free"!important;font-weight:500!important;display:inline-block;border:none;font-size:18px;color:#5f7bff;font-weight:400;width:25px;line-height:1;top:2px}.mf-checkbox-option input[type=checkbox]+span{font-weight:400;font-size:14px;cursor:pointer}.mf-checkbox-option input[type=checkbox]:checked+span::before{content:"\f14a";font-family:"Font Awesome 5 Free"!important;display:inline-block;border:none;font-size:18px;color:#5f7bff}.mf-radio-option input[type=radio]{display:none!important}.mf-checkbox-option,.mf-radio-option{padding-right:15px}.mf-radio-option input[type=radio]+span::before{content:"\f111";font-family:"Font Awesome 5 Free"!important;font-weight:500!important;display:inline-block;border:none;font-size:18px;color:#5f7bff;font-weight:400;width:25px;line-height:1;top:2px;position:relative}.mf-radio-option input[type=radio]+span{font-weight:400;font-size:14px;cursor:pointer}.mf-radio-option input[type=radio]:checked+span::before{content:"\f058";font-family:"Font Awesome 5 Free"!important;display:inline-block;border:none;font-size:18px;color:#5f7bff}.mf-input-wrapper .mf-input-select{padding:0!important}.mf-input-select .mf_select__control{min-height:0;padding:12px;border-width:0;border-radius:0;-webkit-box-shadow:none;box-shadow:none;cursor:pointer;border-radius:none!important;border:1px solid #eaeaea;background-color:transparent}.mf-input-select .mf_select__control:hover{border:1px solid #eaeaea}.mf-input-select .mf_select__indicator-separator{display:none}.mf-input-select .mf_select__value-container,.mf-input-select .mf_select__value-container input{padding:0}.mf-input-select .mf_select__placeholder{margin-left:0;margin-right:0;color:inherit}.mf-input-select .mf_select__indicators{margin-right:2px}.mf-input-multiselect .mf_multiselect__indicators{margin-right:15px}.mf-input-multiselect .mf_multiselect__dropdown-indicator,.mf-input-select .mf_select__indicator{padding:0;border-style:solid;border-width:5px 4px 0;border-color:currentColor transparent transparent}.mf-input-multiselect .mf_multiselect__control--menu-is-open .mf_multiselect__dropdown-indicator,.mf-input-select .mf_select__control--menu-is-open .mf_select__indicator{border-width:0 4px 5px;border-color:transparent transparent currentColor}.mf-input-multiselect .mf_multiselect__dropdown-indicator>svg,.mf-input-select .mf_select__indicator>svg{display:none}.mf-input-select .mf_select__menu{width:100%;margin:0;border-radius:0;-webkit-box-shadow:none;box-shadow:none;background-color:#fff}.mf-input-select .mf_select__menu>div{overflow-x:hidden}.mf-input-select .mf_select__menu-list{padding:0}.mf-input-select .mf_select__option{cursor:pointer;border:1px solid #eaeaea}.mf-input-select .mf_select__option.mf_select__option--is-focused,.mf-input-select .mf_select__option.mf_select__option--is-selected,.mf-input-select .mf_select__option:hover{background-color:#f0f0f0}.mf-input-select .mf_select__control.mf_select__control--is-focused{border-color:#4285f478;background-color:inherit}.mf-input.mf-input-select{border:none!important;background-color:#fafafa}.mf-input-select .mf_select__single-value{position:relative;top:0;width:100%;max-width:calc(100% - 22px);margin-left:0;margin-right:0;-webkit-transform:none;transform:none}.mf-input-wrapper select.mf-input-dropdown{border:none;padding:15px 25px;font-size:15px;font-weight:500!important;-webkit-appearance:none;-o-appearance:none;-moz-appearance:none;appearance:none;border-width:1px;border-style:solid;border-color:#eaeaea}.mf-input-wrapper select.mf-input-dropdown option{background-color:#fff;color:#222;font-size:15px}.mf-input-switch-control.mf-input-switch.mf-input{-webkit-box-shadow:none!important;box-shadow:none!important;vertical-align:-webkit-baseline-middle;border:none;padding:0}.mf-input-wrapper .range-slider{display:inline-block;width:100%}.mf-input-wrapper .asRange{width:100%;background-color:#f1f4f9}.mf-input-wrapper .asRange .asRange-pointer .asRange-tip::before,.mf-input-wrapper .asRange .asRange-pointer::before,.mf-input-wrapper .asRange .asRange-selected{background-color:#1fb787}.mf-input-wrapper .asRange .asRange-pointer .asRange-tip{background-color:#1fb787;border:1px solid #1fb787;top:inherit;bottom:18px;left:-50%;margin-left:8px;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.metform-btn{background-color:#4285f4;border:none;-webkit-box-shadow:none;box-shadow:none;display:inline-block;max-width:100%;padding:16px 40px;font-size:16px;border-radius:2px;cursor:pointer;-webkit-box-shadow:0 5px 5px 0 rgba(66,133,244,.3);box-shadow:0 5px 5px 0 rgba(66,133,244,.3);line-height:18px;-webkit-transition:all .4s;transition:all .4s;font-weight:500;text-decoration:none}.metform-btn:focus,.metform-btn:hover{background-color:#4285f4;text-decoration:none;outline:0}button.metform-btn,button.metform-btn:not(.toggle){background-color:#4285f4}button.metform-btn:focus,button.metform-btn:hover{background-color:#4285f4}@media (max-width:767px){.mf-btn--mobile-justify .metform-btn{width:100%}}@media (min-width:768px) and (max-width:1024px){.mf-btn--tablet-justify .metform-btn{width:100%}}@media (min-width:1025px){.mf-btn--justify .metform-btn{width:100%}}.metform-submit-btn{position:relative;z-index:0}.metform-submit-btn::after,.metform-submit-btn::before{content:" ";position:absolute;top:50%;left:50%;width:22px;height:22px;margin:-11px 0 0 -11px;border-style:solid;border-color:currentColor;border-width:0;border-radius:50%;opacity:0;-webkit-transition:opacity .3s ease;transition:opacity .3s ease}.metform-submit-btn[disabled]::after,.metform-submit-btn[disabled]::before{opacity:1;-webkit-transition-delay:.15s;transition-delay:.15s}.metform-submit-btn::before{border-width:2px}.metform-submit-btn[disabled]::before{opacity:.25}.metform-submit-btn::after{border-top-width:2px;-webkit-animation:submitspin .55s linear infinite;animation:submitSpin .55s linear infinite}.metform-submit-btn>span{-webkit-transition:opacity .15s ease .15s;transition:opacity .15s ease .15s}.metform-submit-btn[disabled]>span{opacity:0;-webkit-transition-delay:0;transition-delay:0}@-webkit-keyframes submitSpin{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes submitSpin{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.mf-input-wrapper .iti{display:block}.mf-input-wrapper>.iti{display:inline-block;width:100%}.mf-input-wrapper .iti .mf-input{width:100%!important}.mf-input-wrapper .iti--separate-dial-code .iti__selected-flag{background-color:#f7f6f6}.mf-input-wrapper .iti .iti__flag-container{display:none}.mf-input-wrapper .iti>.iti__flag-container{display:block}.flatpickr-calendar{margin-top:8px}.flatpickr-month{margin-top:3px;margin-bottom:5px}.mf-input-wrapper>.flatpickr-wrapper{display:block}.flatpickr-wrapper select{display:inline-block}.elementor-widget-mf-date.elementor-element-edit-mode .flatpickr-calendar,.elementor-widget-mf-time.elementor-element-edit-mode .flatpickr-calendar{top:100%!important;left:0!important}.mf-ratings{display:-ms-inline-flexbox;display:-webkit-inline-box;display:inline-flex;-ms-flex-wrap:wrap;flex-wrap:wrap;cursor:pointer}.mf-ratings>input{display:none!important}.mf-ratings>label{cursor:pointer}.mf-ratings>label:not(:last-child){padding-right:5px}.mf-ratings.is-selected>label,.mf-ratings:not(.is-selected):hover>label{color:#ffdb72}.mf-ratings.is-selected:not(:hover)>input:checked+label~label,.mf-ratings.is-selected>label:hover~label,.mf-ratings:not(.is-selected),.mf-ratings:not(.is-selected)>label:hover~label{color:#ccc}.mf-input-file-upload{width:.1px;height:.1px;opacity:0;visibility:hidden;position:absolute}.mf-input-file-upload-label{color:#fff;margin-right:10px;padding:5px 15px;display:-ms-inline-flexbox;display:-webkit-inline-box;display:inline-flex;-ms-flex-align:center;-webkit-box-align:center;align-items:center;-webkit-box-shadow:none;box-shadow:none;font-size:16px;font-weight:400;line-height:28px}.mf-input-file-upload-label i{font-size:18px}.mf-input-file-upload-label svg{max-width:18px;height:auto;vertical-align:middle}.mf-file-name span{display:inline-block;font-size:15px}.mf-input-wrapper .error{display:block;font-size:14px}.mf-input-multiselect,.mf-input-select{padding:0;cursor:pointer}.mf-input.mf-input-multiselect{padding:0!important;-webkit-box-shadow:none!important;box-shadow:none!important;border:none!important}.mf-input-multiselect .mf_multiselect__control{border:1px solid #eaeaea;border-radius:0;background-color:#fafafa;cursor:pointer}.mf-input-multiselect .mf_multiselect__control:focus,.mf-input-multiselect .mf_multiselect__control:hover{border:1px solid #eaeaea;outline:0;-webkit-box-shadow:none;box-shadow:none}.mf_multiselect__indicator-separator{display:none}.mf_multiselect__option.mf_multiselect__option--is-focused,.mf_multiselect__option:hover{background-color:#f0f0f0}.mf_multiselect__option.mf_multiselect__option--is-focused{background-color:#fff}.mf_multiselect__option{border:1px solid #eaeaea;background-color:#fff;padding:10px 15px;font-size:15px}.mf-input-multiselect .mf_multiselect__menu{margin:0;border-radius:0;-webkit-box-shadow:none;box-shadow:none;cursor:pointer}.mf-input-multiselect .mf_multiselect__menu-list{padding:0}.mf-input-multiselect .mf_multiselect__placeholder{color:#c9c1c1}.mf_multiselect__menu-notice--no-options{border:1px solid #eaeaea;color:#c9c1c1}.mf_multiselect__control .mf_multiselect__value-container{padding:8px 12px}.mf_multiselect__control .mf_multiselect__value-container>div:last-child{height:25px}.mf-input-multiselect .mf_multiselect__multi-value{margin:0 5px 0 0}.mf_multiselect__multi-value__remove{border-top-left-radius:0!important;border-bottom-left-radius:0!important}.mf_multiselect__multi-value__label{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.mf-input-multiselect .mf_multiselect__input>input{min-height:0}.mf-input.mf-input-summary{padding:0;background-color:#fff;border-width:0}.mf-entry-data{margin:0;padding:0;list-style:none;word-break:break-word}.mf-entry-data>li{border:1px solid rgba(0,0,0,.1)}.mf-entry-data>li:not(:last-child){border-bottom-width:0}.mf-entry-data>li>strong{display:block;padding:8px;background-color:#eaf2fa;border-bottom:1px solid rgba(0,0,0,.1)}.mf-entry-data>li>span{display:block;padding:8px 28px;min-height:42px}.elementor-widget-mf-range .mf-field-error .error{display:none!important}.g-recaptcha>div{position:relative;z-index:0}.g-recaptcha>div::after,.g-recaptcha>div::before,.g-recaptcha>div>div::after,.g-recaptcha>div>div::before{content:" ";position:absolute;border-style:solid;border-color:#d3d3d3;border-width:0;z-index:0}.g-recaptcha>div::before{top:0;left:0;bottom:2px;border-left-width:1px}.g-recaptcha>div::after{top:0;right:2px;bottom:2px;border-right-width:1px}.g-recaptcha>div>div::before{top:0;left:0;right:2px;border-top-width:1px}.g-recaptcha>div>div::after{left:0;right:2px;bottom:2px;border-bottom-width:1px}.g-recaptcha+.attr-alert{display:none}.g-recaptcha:empty+.attr-alert{display:block!important}.mf-captcha-input-wrapper.mf-captcha-block>i{padding-left:25px}img.mf-input.mf-captcha-image{max-width:200px;border:none;-webkit-box-sizing:unset;box-sizing:unset;background:0 0;padding:0;display:inline-block}.mf-captcha-block>img.mf-input.mf-captcha-image{margin:5px 0 5px 0}.mf-captcha-inline>img.mf-input.mf-captcha-image{margin:0 5px 0 0}.mf-captcha-input-wrapper.mf-captcha-inline{display:-ms-inline-flexbox!important;display:-webkit-inline-box!important;display:inline-flex!important;-ms-flex-align:center;-webkit-box-align:center;align-items:center;width:100%}.mf-captcha-input-wrapper.mf-captcha-inline>i{margin-left:25px!important;-ms-flex-order:1;-webkit-box-ordinal-group:2;order:1}.mf-refresh-captcha::before{content:"\f01e";font-family:"Font Awesome 5 Free";font-weight:700;font-style:normal;cursor:pointer}.mf-error-message{display:block}.mf-input-wrapper .input-range__slider{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border:4px solid #000;border-radius:100%;cursor:pointer;display:block;height:15px;margin-left:-7.5px;margin-top:-11px;outline:0;position:absolute;top:50%;-webkit-transition:-webkit-transform .3s ease-out,box-shadow .3s ease-out;-webkit-transition:-webkit-transform .3s ease-out,-webkit-box-shadow .3s ease-out;transition:-webkit-transform .3s ease-out,-webkit-box-shadow .3s ease-out;transition:transform .3s ease-out,box-shadow .3s ease-out;transition:transform .3s ease-out,box-shadow .3s ease-out,-webkit-transform .3s ease-out,-webkit-box-shadow .3s ease-out;-webkit-transition:-webkit-transform .3s ease-out,box-shadow .3s ease-out,-webkit-transform .3s ease-out;transition:transform .3s ease-out,box-shadow .3s ease-out,-webkit-transform .3s ease-out;width:15px}.mf-input-wrapper .input-range__slider:focus{-webkit-box-shadow:0 0 0 5px rgba(63,81,181,.2);box-shadow:0 0 0 5px rgba(63,81,181,.2)}.input-range--disabled .input-range__slider{background:#ccc;border:1px solid #ccc;-webkit-box-shadow:none;box-shadow:none;-webkit-transform:none;transform:none}.mf-input-wrapper .input-range__slider-container{-webkit-transition:left .3s ease-out;transition:left .3s ease-out}.mf-input-wrapper .input-range__label{color:#aaa;font-family:"Helvetica Neue",san-serif;font-size:.8rem;-webkit-transform:translateZ(0);transform:translateZ(0);white-space:nowrap}.mf-input-wrapper .input-range__label--max,.mf-input-wrapper .input-range__label--min{bottom:-1.4rem;position:absolute;display:none}.mf-input-wrapper .input-range__label--min{left:0}.mf-input-wrapper .input-range__label--max{right:0}.mf-input-wrapper .input-range__label--value{position:absolute;bottom:20px}.mf-input-wrapper .input-range__label-container{left:-50%;position:relative;background-color:#000;width:36px;height:20px;display:inline-block;color:#fff;font-size:12px;text-align:center;border-radius:3px}.mf-input-wrapper .input-range__label-container::before{position:absolute;bottom:-3px;left:50%;display:inline-block;width:6px;height:6px;margin-left:-3px;content:"";background-color:#000;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.mf-input-wrapper .input-range__label--max .input-range__label-container{left:50%}.mf-input-wrapper .input-range__track{background:#f1f4f9;border-radius:.3rem;cursor:pointer;display:block;height:8px;position:relative;-webkit-transition:left .3s ease-out,width .3s ease-out;transition:left .3s ease-out,width .3s ease-out}.mf-input-wrapper .input-range--disabled .input-range__track{background:#f1f4f9}.mf-input-wrapper .input-range__track--background{left:0;margin-top:-.15rem;position:absolute;right:0;top:50%}.mf-input-wrapper .input-range__track--active{background:#000}.mf-input-wrapper .input-range{height:1rem;position:relative;width:100%}.mf-condition--hidden,[mf-condition-hidden=true]{display:none!important;visibility:hidden}.mf-main-response-wrap[data-show="1"] .mf-response-msg{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-name:metform-responseOpen;animation-name:metform-responseOpen}.mf-main-response-wrap[data-show="0"] .mf-response-msg{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-name:metform-responseClose;animation-name:metform-responseClose}.mf-main-response-wrap .mf-response-msg{border-radius:10px;border:1px solid #c3c2c2}.mf-main-response-wrap:not(.mf_pro_activated) .mf-response-msg{background-color:#fff}.mf-close-this-form{-webkit-animation-duration:.6s;animation-duration:.6s;-webkit-animation-name:metform-zoom-out-zero;animation-name:metform-zoom-out-zero}.mf-close-this-form>h2{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-name:metform-zoom-in-full;animation-name:metform-zoom-in-full}.mf-input-wrapper .mf-time-input[type=time]:not(.value-found):before{content:attr(placeholder);padding-right:2px}.mf-input-wrapper .mf-time-input[type=time]:focus:before{content:''!important}@supports (-webkit-touch-callout:none){.mf-input-wrapper .mf-time-input{min-width:100%;min-height:45px;height:45px!important}}
|
1 |
+
@-webkit-keyframes metform-responseOpen{from{-webkit-transform:scaleY(0);transform:scaleY(0);opacity:0;-webkit-transform-origin:top center;transform-origin:top center}to{-webkit-transform:scaley(1);transform:scaley(1);opacity:1;-webkit-transform-origin:top center;transform-origin:top center}}@keyframes metform-responseOpen{from{-webkit-transform:scaleY(0);transform:scaleY(0);opacity:0;-webkit-transform-origin:top center;transform-origin:top center}to{-webkit-transform:scaley(1);transform:scaley(1);opacity:1;-webkit-transform-origin:top center;transform-origin:top center}}@-webkit-keyframes metform-responseClose{from{-webkit-transform:scaley(1);transform:scaley(1);-webkit-transform-origin:top center;transform-origin:top center}to{-webkit-transform:scaley(0);transform:scaley(0);-webkit-transform-origin:top center;transform-origin:top center}}@keyframes metform-responseClose{from{-webkit-transform:scaley(1);transform:scaley(1);-webkit-transform-origin:top center;transform-origin:top center}to{-webkit-transform:scaley(0);transform:scaley(0);-webkit-transform-origin:top center;transform-origin:top center}}@-webkit-keyframes metform-zoom-out-zero{from{opacity:1;-webkit-transform:scale(1);transform:scale(1)}to{opacity:0;-webkit-transform:scale(0);transform:scale(0)}}@keyframes metform-zoom-out-zero{from{opacity:1;-webkit-transform:scale(1);transform:scale(1)}to{opacity:0;-webkit-transform:scale(0);transform:scale(0)}}@-webkit-keyframes metform-zoom-in-full{from{opacity:0;-webkit-transform:scale(0);transform:scale(0)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes metform-zoom-in-full{from{opacity:0;-webkit-transform:scale(0);transform:scale(0)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}#elementor .mf-btn-wraper a.metform-btn{background:#337ab7;color:#fff;border-radius:5px;height:20%;font-size:16px;padding:10px}.mf-form-wrapper section,.single-metform-form section{padding-top:0;padding-bottom:0}.mf-input-switch-control{position:relative;display:inline-block}.mf-input-switch-control>input[type=checkbox]{display:none!important}.mf-input-control{position:absolute;z-index:-1;opacity:0}.mf-input-switch .mf-input-control-label::before{content:attr(data-disable);width:55px;height:25px;background-color:#ededed;left:0;border-radius:15px;text-align:right;color:#fff;text-transform:uppercase;font-weight:700;font-size:10px;padding:3px;-webkit-box-sizing:border-box;box-sizing:border-box;padding-right:10px;-webkit-transition:all .4s;transition:all .4s;float:right;line-height:18px;cursor:pointer;display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex-align:center;-webkit-box-align:center;align-items:center;-ms-flex-pack:end;-webkit-box-pack:end;justify-content:flex-end}.metform-form-content{position:relative;z-index:0;overflow-x:clip}.metform-form-content .metform-form-main-wrapper .e-container{isolation:unset}.mf-multistep-container .elementor-top-section .elementor-inner-section{padding:0!important;margin:0!important;min-height:inherit}.mf-multistep-container .elementor-top-section .elementor-inner-column .elementor-element-populated{padding-top:0!important;padding-bottom:0!important}.mf-multistep-container .elementor-top-section .elementor-inner-column .elementor-widget-container{margin:10px 0}.mf-multistep-container .e-con .e-con-inner,.mf-multistep-container .e-con .e-container--row,.mf-multistep-container .e-container--column .e-con-inner,.mf-multistep-container .e-container--column .e-container--row{padding:0!important;margin:0!important;min-height:inherit}.mf-response-msg-wrap{-webkit-transition:height .45s,opacity .45s,visibility .45s;transition:height .45s,opacity .45s,visibility .45s;background-color:#fff}.mf-response-msg-wrap[data-show="0"]{height:0!important;opacity:0;visibility:hidden}.mf-response-msg-wrap[data-show="1"]{height:auto;opacity:1;visibility:visible;margin-bottom:20px}.mf-response-msg{border-radius:5px;text-align:center;padding:15px 34px;height:100%}.wf-error-res{background-color:#f8d7da;border-color:#f5c6cb}.mf-success-icon,.wf-error-res .mf-alert-icon{color:#721c24;font-size:30px;margin-bottom:5px}.mf-success-icon{color:#101010}.mf-response-msg p{font-size:17px;line-height:20px;color:#101010;margin-bottom:0}.wf-error-res p{color:#721c24}.custom-file-label,.custom-select,.mf-input-control-label::before{-webkit-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;-webkit-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out,-webkit-box-shadow .15s ease-in-out}.mf-input-control-label::after{position:absolute;top:2px;left:2px;display:block;width:14px;height:14px;content:"";background-color:#adb5bd;border-radius:100px;-webkit-transition:all .4s;transition:all .4s;cursor:pointer}.mf-input-switch label.mf-input-control-label{display:inline-block;vertical-align:middle;position:relative;margin:0}.mf-input-control:checked~.mf-input-control-label::before{color:#fff;border-color:#007bff;background-color:#007bff;content:attr(data-enable);text-align:left;padding-left:10px;-ms-flex-pack:start;-webkit-box-pack:start;justify-content:flex-start}.mf-input-switch .mf-input-control:checked~.mf-input-control-label::after{background-color:#fff}.mf-input-wrapper .mf-input-help{display:block;font-size:.9em;margin-top:5px;opacity:.7;clear:both;font-weight:400}.mf-input-wrapper .mf-input{width:100%;max-width:100%;padding:12px;height:auto;border-width:1px;border-style:solid;border-color:#eaeaea;border-radius:2px;background:0 0;background-color:#fafafa;-webkit-box-shadow:none;box-shadow:none;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-transition:all .2s linear;transition:all .2s linear;font-size:14px;line-height:21px;text-align:left}.mf-input-wrapper .mf-input:focus,.mf-input-wrapper.mf-field-error .mf-input,.mf-input-wrapper.mf-field-error .mf-input:focus{outline:0}.mf-input-wrapper .mf-input:focus{border-color:#4285f478}.mf-input-wrapper .mf-input:-ms-input-placeholder{color:#c9c1c1;font-weight:400;font-size:14px}.mf-input-wrapper .mf-input::-webkit-input-placeholder{color:#c9c1c1;font-weight:400;font-size:14px}.mf-input-wrapper .mf-input::-moz-placeholder{color:#c9c1c1;font-weight:400;font-size:14px}.mf-input-wrapper .mf-input::-ms-input-placeholder{color:#c9c1c1;font-weight:400;font-size:14px}.mf-input-wrapper .mf-input::placeholder{color:#c9c1c1;font-weight:400;font-size:14px}.mf-input-wrapper .mf-input::-webkit-input-placeholder{color:#c9c1c1;font-weight:400;font-size:14px}.mf-input-wrapper .mf-input:-moz-placeholder{color:#c9c1c1;font-weight:400;font-size:14px}@media (max-width:767px){.attr-form-group>.attr-control-label,.attr-form-group>.mf-input,.mf-input-wrapper>.mf-captcha-input-wrapper,.mf-input-wrapper>.mf-checkbox,.mf-input-wrapper>.mf-image-select,.mf-input-wrapper>.mf-input-label,.mf-input-wrapper>.mf-input:not(.mf-left-parent),.mf-input-wrapper>.mf-payment-method,.mf-input-wrapper>.mf-radio,.mf-input-wrapper>.mf-repeater-field-label,.mf-input-wrapper>.mf-signature{width:100%;min-width:100%}}.mf-input-wrapper .mf-input-label,.mf-repeater-field-label{font-family:Roboto,sans-serif;font-weight:600;font-size:14px;display:block;color:#000;font-size:14px;line-height:16px;margin-bottom:5px}.mf-input-wrapper .mf-input,.mf-input-wrapper .mf-input-label{vertical-align:middle}div.mf-input-wrapper>textarea.mf-input{padding:15px}.irs--round .irs-max,.irs--round .irs-min{display:none}.irs--round .irs-handle{cursor:pointer}.multi-option-input-type{vertical-align:middle}.mf-checkbox-option input[type=checkbox]{display:none!important}.mf-checkbox-option:not(.disabled) label{cursor:pointer}.mf-checkbox-option input[type=checkbox]+span::before{position:relative;content:"\f0c8";font-family:"Font Awesome 5 Free"!important;font-weight:500!important;display:inline-block;border:none;font-size:18px;color:#5f7bff;font-weight:400;width:25px;line-height:1;top:2px}.mf-checkbox-option input[type=checkbox]+span{font-weight:400;font-size:14px;cursor:pointer}.mf-checkbox-option input[type=checkbox]:checked+span::before{content:"\f14a";font-family:"Font Awesome 5 Free"!important;display:inline-block;border:none;font-size:18px;color:#5f7bff}.mf-radio-option input[type=radio]{display:none!important}.mf-checkbox-option,.mf-radio-option{padding-right:15px}.mf-radio-option input[type=radio]+span::before{content:"\f111";font-family:"Font Awesome 5 Free"!important;font-weight:500!important;display:inline-block;border:none;font-size:18px;color:#5f7bff;font-weight:400;width:25px;line-height:1;top:2px;position:relative}.mf-radio-option input[type=radio]+span{font-weight:400;font-size:14px;cursor:pointer}.mf-radio-option input[type=radio]:checked+span::before{content:"\f058";font-family:"Font Awesome 5 Free"!important;display:inline-block;border:none;font-size:18px;color:#5f7bff}.mf-input-wrapper .mf-input-select{padding:0!important}.mf-input-select .mf_select__control{min-height:0;padding:12px;border-width:0;border-radius:0;-webkit-box-shadow:none;box-shadow:none;cursor:pointer;border-radius:none!important;border:1px solid #eaeaea;background-color:transparent}.mf-input-select .mf_select__control:hover{border:1px solid #eaeaea}.mf-input-select .mf_select__indicator-separator{display:none}.mf-input-select .mf_select__value-container,.mf-input-select .mf_select__value-container input{padding:0}.mf-input-select .mf_select__placeholder{margin-left:0;margin-right:0;color:inherit}.mf-input-select .mf_select__indicators{margin-right:2px}.mf-input-multiselect .mf_multiselect__indicators{margin-right:15px}.mf-input-multiselect .mf_multiselect__dropdown-indicator,.mf-input-select .mf_select__indicator{padding:0;border-style:solid;border-width:5px 4px 0;border-color:currentColor transparent transparent}.mf-input-multiselect .mf_multiselect__control--menu-is-open .mf_multiselect__dropdown-indicator,.mf-input-select .mf_select__control--menu-is-open .mf_select__indicator{border-width:0 4px 5px;border-color:transparent transparent currentColor}.mf-input-multiselect .mf_multiselect__dropdown-indicator>svg,.mf-input-select .mf_select__indicator>svg{display:none}.mf-input-select .mf_select__menu{width:100%;margin:0;border-radius:0;-webkit-box-shadow:none;box-shadow:none;background-color:#fff}.mf-input-select .mf_select__menu>div{overflow-x:hidden}.mf-input-select .mf_select__menu-list{padding:0}.mf-input-select .mf_select__option{cursor:pointer;border:1px solid #eaeaea}.mf-input-select .mf_select__option.mf_select__option--is-focused,.mf-input-select .mf_select__option.mf_select__option--is-selected,.mf-input-select .mf_select__option:hover{background-color:#f0f0f0}.mf-input-select .mf_select__control.mf_select__control--is-focused{border-color:#4285f478;background-color:inherit}.mf-input.mf-input-select{border:none!important;background-color:#fafafa}.mf-input-select .mf_select__single-value{position:relative;top:0;width:100%;max-width:calc(100% - 22px);margin-left:0;margin-right:0;-webkit-transform:none;transform:none}.mf-input-wrapper select.mf-input-dropdown{border:none;padding:15px 25px;font-size:15px;font-weight:500!important;-webkit-appearance:none;-o-appearance:none;-moz-appearance:none;appearance:none;border-width:1px;border-style:solid;border-color:#eaeaea}.mf-input-wrapper select.mf-input-dropdown option{background-color:#fff;color:#222;font-size:15px}.mf-input-switch-control.mf-input-switch.mf-input{-webkit-box-shadow:none!important;box-shadow:none!important;vertical-align:-webkit-baseline-middle;border:none;padding:0}.mf-input-wrapper .range-slider{display:inline-block;width:100%}.mf-input-wrapper .asRange{width:100%;background-color:#f1f4f9}.mf-input-wrapper .asRange .asRange-pointer .asRange-tip::before,.mf-input-wrapper .asRange .asRange-pointer::before,.mf-input-wrapper .asRange .asRange-selected{background-color:#1fb787}.mf-input-wrapper .asRange .asRange-pointer .asRange-tip{background-color:#1fb787;border:1px solid #1fb787;top:inherit;bottom:18px;left:-50%;margin-left:8px;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.metform-btn{background-color:#4285f4;border:none;-webkit-box-shadow:none;box-shadow:none;display:inline-block;max-width:100%;padding:16px 40px;font-size:16px;border-radius:2px;cursor:pointer;-webkit-box-shadow:0 5px 5px 0 rgba(66,133,244,.3);box-shadow:0 5px 5px 0 rgba(66,133,244,.3);line-height:18px;-webkit-transition:all .4s;transition:all .4s;font-weight:500;text-decoration:none}.metform-btn:focus,.metform-btn:hover{background-color:#4285f4;text-decoration:none;outline:0}button.metform-btn,button.metform-btn:not(.toggle){background-color:#4285f4}button.metform-btn:focus,button.metform-btn:hover{background-color:#4285f4}@media (max-width:767px){.mf-btn--mobile-justify .metform-btn{width:100%}}@media (min-width:768px) and (max-width:1024px){.mf-btn--tablet-justify .metform-btn{width:100%}}@media (min-width:1025px){.mf-btn--justify .metform-btn{width:100%}}.metform-submit-btn{position:relative;z-index:0}.metform-submit-btn::after,.metform-submit-btn::before{content:" ";position:absolute;top:50%;left:50%;width:22px;height:22px;margin:-11px 0 0 -11px;border-style:solid;border-color:currentColor;border-width:0;border-radius:50%;opacity:0;-webkit-transition:opacity .3s ease;transition:opacity .3s ease}.metform-submit-btn[disabled]::after,.metform-submit-btn[disabled]::before{opacity:1;-webkit-transition-delay:.15s;transition-delay:.15s}.metform-submit-btn::before{border-width:2px}.metform-submit-btn[disabled]::before{opacity:.25}.metform-submit-btn::after{border-top-width:2px;-webkit-animation:submitspin .55s linear infinite;animation:submitSpin .55s linear infinite}.metform-submit-btn>span{-webkit-transition:opacity .15s ease .15s;transition:opacity .15s ease .15s}.metform-submit-btn[disabled]>span{opacity:0;-webkit-transition-delay:0;transition-delay:0}@-webkit-keyframes submitSpin{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes submitSpin{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.mf-input-wrapper .iti{display:block}.mf-input-wrapper>.iti{display:inline-block;width:100%}.mf-input-wrapper .iti .mf-input{width:100%!important}.mf-input-wrapper .iti--separate-dial-code .iti__selected-flag{background-color:#f7f6f6}.mf-input-wrapper .iti .iti__flag-container{display:none}.mf-input-wrapper .iti>.iti__flag-container{display:block}.flatpickr-calendar{margin-top:8px}.flatpickr-month{margin-top:3px;margin-bottom:5px}.mf-input-wrapper>.flatpickr-wrapper{display:block}.flatpickr-wrapper select{display:inline-block}.elementor-widget-mf-date.elementor-element-edit-mode .flatpickr-calendar,.elementor-widget-mf-time.elementor-element-edit-mode .flatpickr-calendar{top:100%!important;left:0!important}.mf-ratings{display:-ms-inline-flexbox;display:-webkit-inline-box;display:inline-flex;-ms-flex-wrap:wrap;flex-wrap:wrap;cursor:pointer}.mf-ratings>input{display:none!important}.mf-ratings>label{cursor:pointer}.mf-ratings>label:not(:last-child){padding-right:5px}.mf-ratings.is-selected>label,.mf-ratings:not(.is-selected):hover>label{color:#ffdb72}.mf-ratings.is-selected:not(:hover)>input:checked+label~label,.mf-ratings.is-selected>label:hover~label,.mf-ratings:not(.is-selected),.mf-ratings:not(.is-selected)>label:hover~label{color:#ccc}.mf-input-file-upload{width:.1px;height:.1px;opacity:0;visibility:hidden;position:absolute}.mf-input-file-upload-label{color:#fff;margin-right:10px;padding:5px 15px;display:-ms-inline-flexbox;display:-webkit-inline-box;display:inline-flex;-ms-flex-align:center;-webkit-box-align:center;align-items:center;-webkit-box-shadow:none;box-shadow:none;font-size:16px;font-weight:400;line-height:28px}.mf-input-file-upload-label i{font-size:18px}.mf-input-file-upload-label svg{max-width:18px;height:auto;vertical-align:middle}.mf-file-name span{display:inline-block;font-size:15px}.mf-input-wrapper .error{display:block;font-size:14px}.mf-input-multiselect,.mf-input-select{padding:0;cursor:pointer}.mf-input.mf-input-multiselect{padding:0!important;-webkit-box-shadow:none!important;box-shadow:none!important;border:none!important}.mf-input-multiselect .mf_multiselect__control{border:1px solid #eaeaea;border-radius:0;background-color:#fafafa;cursor:pointer}.mf-input-multiselect .mf_multiselect__control:focus,.mf-input-multiselect .mf_multiselect__control:hover{border:1px solid #eaeaea;outline:0;-webkit-box-shadow:none;box-shadow:none}.mf_multiselect__indicator-separator{display:none}.mf_multiselect__option.mf_multiselect__option--is-focused,.mf_multiselect__option:hover{background-color:#f0f0f0}.mf_multiselect__option.mf_multiselect__option--is-focused{background-color:#fff}.mf_multiselect__option{border:1px solid #eaeaea;background-color:#fff;padding:10px 15px;font-size:15px}.mf-input-multiselect .mf_multiselect__menu{margin:0;border-radius:0;-webkit-box-shadow:none;box-shadow:none;cursor:pointer}.mf-input-multiselect .mf_multiselect__menu-list{padding:0}.mf-input-multiselect .mf_multiselect__placeholder{color:#c9c1c1}.mf_multiselect__menu-notice--no-options{border:1px solid #eaeaea;color:#c9c1c1}.mf_multiselect__control .mf_multiselect__value-container{padding:8px 12px}.mf_multiselect__control .mf_multiselect__value-container>div:last-child{height:25px}.mf-input-multiselect .mf_multiselect__multi-value{margin:0 5px 0 0}.mf_multiselect__multi-value__remove{border-top-left-radius:0!important;border-bottom-left-radius:0!important}.mf_multiselect__multi-value__label{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.mf-input-multiselect .mf_multiselect__input>input{min-height:0}.mf-input.mf-input-summary{padding:0;background-color:#fff;border-width:0}.mf-entry-data{margin:0;padding:0;list-style:none;word-break:break-word}.mf-entry-data>li{border:1px solid rgba(0,0,0,.1)}.mf-entry-data>li:not(:last-child){border-bottom-width:0}.mf-entry-data>li>strong{display:block;padding:8px;background-color:#eaf2fa;border-bottom:1px solid rgba(0,0,0,.1)}.mf-entry-data>li>span{display:block;padding:8px 28px;min-height:42px}.elementor-widget-mf-range .mf-field-error .error{display:none!important}.g-recaptcha>div{position:relative;z-index:0}.g-recaptcha>div::after,.g-recaptcha>div::before,.g-recaptcha>div>div::after,.g-recaptcha>div>div::before{content:" ";position:absolute;border-style:solid;border-color:#d3d3d3;border-width:0;z-index:0}.g-recaptcha>div::before{top:0;left:0;bottom:2px;border-left-width:1px}.g-recaptcha>div::after{top:0;right:2px;bottom:2px;border-right-width:1px}.g-recaptcha>div>div::before{top:0;left:0;right:2px;border-top-width:1px}.g-recaptcha>div>div::after{left:0;right:2px;bottom:2px;border-bottom-width:1px}.g-recaptcha+.attr-alert{display:none}.g-recaptcha:empty+.attr-alert{display:block!important}.mf-captcha-input-wrapper.mf-captcha-block>i{padding-left:25px}img.mf-input.mf-captcha-image{max-width:200px;border:none;-webkit-box-sizing:unset;box-sizing:unset;background:0 0;padding:0;display:inline-block}.mf-captcha-block>img.mf-input.mf-captcha-image{margin:5px 0 5px 0}.mf-captcha-inline>img.mf-input.mf-captcha-image{margin:0 5px 0 0}.mf-captcha-input-wrapper.mf-captcha-inline{display:-ms-inline-flexbox!important;display:-webkit-inline-box!important;display:inline-flex!important;-ms-flex-align:center;-webkit-box-align:center;align-items:center;width:100%}.mf-captcha-input-wrapper.mf-captcha-inline>i{margin-left:25px!important;-ms-flex-order:1;-webkit-box-ordinal-group:2;order:1}.mf-refresh-captcha::before{content:"\f01e";font-family:"Font Awesome 5 Free";font-weight:700;font-style:normal;cursor:pointer}.mf-error-message{display:block}.mf-input-wrapper .input-range__slider{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border:4px solid #000;border-radius:100%;cursor:pointer;display:block;height:15px;margin-left:-7.5px;margin-top:-11px;outline:0;position:absolute;top:50%;-webkit-transition:-webkit-transform .3s ease-out,box-shadow .3s ease-out;-webkit-transition:-webkit-transform .3s ease-out,-webkit-box-shadow .3s ease-out;transition:-webkit-transform .3s ease-out,-webkit-box-shadow .3s ease-out;transition:transform .3s ease-out,box-shadow .3s ease-out;transition:transform .3s ease-out,box-shadow .3s ease-out,-webkit-transform .3s ease-out,-webkit-box-shadow .3s ease-out;-webkit-transition:-webkit-transform .3s ease-out,box-shadow .3s ease-out,-webkit-transform .3s ease-out;transition:transform .3s ease-out,box-shadow .3s ease-out,-webkit-transform .3s ease-out;width:15px}.mf-input-wrapper .input-range__slider:focus{-webkit-box-shadow:0 0 0 5px rgba(63,81,181,.2);box-shadow:0 0 0 5px rgba(63,81,181,.2)}.input-range--disabled .input-range__slider{background:#ccc;border:1px solid #ccc;-webkit-box-shadow:none;box-shadow:none;-webkit-transform:none;transform:none}.mf-input-wrapper .input-range__slider-container{-webkit-transition:left .3s ease-out;transition:left .3s ease-out}.mf-input-wrapper .input-range__label{color:#aaa;font-family:"Helvetica Neue",san-serif;font-size:.8rem;-webkit-transform:translateZ(0);transform:translateZ(0);white-space:nowrap}.mf-input-wrapper .input-range__label--max,.mf-input-wrapper .input-range__label--min{bottom:-1.4rem;position:absolute;display:none}.mf-input-wrapper .input-range__label--min{left:0}.mf-input-wrapper .input-range__label--max{right:0}.mf-input-wrapper .input-range__label--value{position:absolute;bottom:20px}.mf-input-wrapper .input-range__label-container{left:-50%;position:relative;background-color:#000;width:36px;height:20px;display:inline-block;color:#fff;font-size:12px;text-align:center;border-radius:3px}.mf-input-wrapper .input-range__label-container::before{position:absolute;bottom:-3px;left:50%;display:inline-block;width:6px;height:6px;margin-left:-3px;content:"";background-color:#000;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.mf-input-wrapper .input-range__label--max .input-range__label-container{left:50%}.mf-input-wrapper .input-range__track{background:#f1f4f9;border-radius:.3rem;cursor:pointer;display:block;height:8px;position:relative;-webkit-transition:left .3s ease-out,width .3s ease-out;transition:left .3s ease-out,width .3s ease-out}.mf-input-wrapper .input-range--disabled .input-range__track{background:#f1f4f9}.mf-input-wrapper .input-range__track--background{left:0;margin-top:-.15rem;position:absolute;right:0;top:50%}.mf-input-wrapper .input-range__track--active{background:#000}.mf-input-wrapper .input-range{height:1rem;position:relative;width:100%}.mf-condition--hidden,[mf-condition-hidden=true]{display:none!important;visibility:hidden}.mf-main-response-wrap[data-show="1"] .mf-response-msg{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-name:metform-responseOpen;animation-name:metform-responseOpen}.mf-main-response-wrap[data-show="0"] .mf-response-msg{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-name:metform-responseClose;animation-name:metform-responseClose}.mf-main-response-wrap .mf-response-msg{border-radius:10px;border:1px solid #c3c2c2}.mf-main-response-wrap:not(.mf_pro_activated) .mf-response-msg{background-color:#fff}.mf-close-this-form{-webkit-animation-duration:.6s;animation-duration:.6s;-webkit-animation-name:metform-zoom-out-zero;animation-name:metform-zoom-out-zero}.mf-close-this-form>h2{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-name:metform-zoom-in-full;animation-name:metform-zoom-in-full}.mf-input-wrapper .mf-time-input[type=time]:not(.value-found):before{content:attr(placeholder);padding-right:2px}.mf-input-wrapper .mf-time-input[type=time]:focus:before{content:''!important}@supports (-webkit-touch-callout:none){.mf-input-wrapper .mf-time-input{min-width:100%;min-height:45px;height:45px!important}}
|
public/assets/js/admin-script.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
jQuery(document).ready((function(e){"use strict";var t,i,o;e(".metfrom-btn-refresh-get-response-list").click((function(){var t=e(this);t.addClass("mf-setting-spin");var i,o=e("#metform_form_modal"),s=e("#metform-form-modalinput-settings").attr("data-nonce"),a=e(".get-response-campaign-list");i=o.find("form").attr("data-mf-id"),e.ajax({url:window.metform_api.resturl+"metform/v1/entries/store_get_response_list/"+i,type:"get",headers:{"X-WP-Nonce":s},dataType:"json",success:function(e){a.empty(),e.forEach((e=>{a.append('<option value="'+e.campaignId+'">'+e.description+"</option>")})),t.removeClass("mf-setting-spin")},error:function(e){t.removeClass("mf-setting-spin")}})})),e(".metfrom-btn-refresh-mailchimp-list").on("click",(function(){var t=e(this);t.addClass("mf-setting-spin");var i,o=e("#metform_form_modal"),s=e("#metform-form-modalinput-settings").attr("data-nonce"),n=e(".mailchimp_list");i=o.find("form").attr("data-mf-id"),e.ajax({url:window.metform_api.resturl+"metform/v1/entries/store_mailchimp_list/"+i,type:"get",headers:{"X-WP-Nonce":s},dataType:"json",success:function(i){try{n.empty(),i.lists.forEach((e=>{n.append("<option value="+e.id+">"+e.name+"</option>")})),1===i.lists.length?e(".mf-mailchimp-list-id").attr("value",i.lists[0].id):(a(),e(".mailchimp_list").on("change",(t=>{e(".mf-mailchimp-list-id").attr("value",t.target.value)})))}catch(o){}t.removeClass("mf-setting-spin")},error:function(e){t.removeClass("mf-setting-spin")}})})),e(".metfrom-btn-refresh-hubsopt-list").click((function(){var t=e(this);t.addClass("mf-setting-spin");var i,o=e("#metform_form_modal"),s=e("#metform-form-modalinput-settings").attr("data-nonce"),a=e(".hubspot_forms");i=o.find("form").attr("data-mf-id"),e.ajax({url:window.metform_api.resturl+"metform/v1/forms/hubspot_forms/"+i,type:"get",headers:{"X-WP-Nonce":s},dataType:"json",success:function(e){try{a.empty(),a.append('<option value="select">Select a form</option>'),e.forEach((e=>{a.append("<option value="+e.portalId+" guid="+e.guid+">"+e.name+"</option>")}))}catch(i){}t.removeClass("mf-setting-spin")},error:function(e){t.removeClass("mf-setting-spin")}})}));var s=!0;function a(){var t=e(".mf-mailchimp-list-id").val();e(".mailchimp_list option").each(((i,o)=>{e(o).attr("selected",!1),o.value===t&&e(o).attr("selected",!0)}))}e(".hubspot_forms").on("change",(function(){var t=e("option:selected",this).attr("guid"),i=e("option:selected",this).val();e(".mf_hubspot_form_guid").val(t),e(".mf_hubspot_form_portalId").val(i);var o,s=e("#metform_form_modal"),a=e("#metform-form-modalinput-settings").attr("data-nonce");o=s.find("form").attr("data-mf-id"),e("#mf-hubsopt-fileds").html("Please wait....");var n="";e.ajax({url:window.metform_api.resturl+"metform/v1/forms/get_fields_data/"+o,type:"get",headers:{"X-WP-Nonce":a},dataType:"json",success:function(i){n=i,e.ajax({url:window.metform_api.resturl+"metform/v1/forms/hubspot_form_fields/"+o,type:"post",headers:{"X-WP-Nonce":a},dataType:"json",data:{guid:t},success:function(t){var i="",o="";Object.keys(n).map((function(e){return[n[e]]})).map((e=>{o+="<option value="+e[0].mf_input_name+">"+e[0].mf_input_label+"</option>"}));t.forEach((e=>{i+="<tr><td>"+e.label+"</td><td><select name=mf_hubspot_form_field_name_"+e.name+' class="attr-form-control">'+o+"</select></td></tr>"})),e("#mf-hubsopt-fileds").html('<table width="100%">'+i+"</table>")},error:function(t){e("#mf-hubsopt-fileds").html("<span class='mf-input-warning'>Please select a form.</span>")}})},error:function(t){e("#mf-hubsopt-fileds").html("Sorry ! Something went wrong")}})})),e("#mf-remove-hubspot-access").on("click",(function(t){t.preventDefault();var i=e(this).attr("data-nonce");e.ajax({url:window.metform_api.resturl+"metform/v1/forms/disconnect_hubspot/1",type:"get",headers:{"X-WP-Nonce":i},dataType:"json",success:function(e){window.location.reload()},error:function(e){console.log("Sorry ! Something went wrong",e)}})})),e(".mf-mailchimp-list-id").attr("value",""),e(".page-title-action").on("click",(function(t){t.preventDefault(),e("#metform_new_form_modal").modal("show")}));let n=window.parent;function r(e){e.jQuery("body").attr("data-metform-template-load","true"),e.jQuery(".metform-dynamic-content-modal").hide(),e.jQuery("#metform-open-content-editor").hide()}function m(){e(".mf-btn-del-singl-field").click((function(){e(this).parent(".mf-cf-single-field").remove()}))}function l(e,t="",i=""){return'<div id="mf-cf-single-field" class="mf-cf-single-field"">\n <div class="mf-cf-single-field-input">\n <label>Name</label>\n <input type="text" name="mf_post_submission_custom_fields_name[]" class="attr-form-control" value="'+t+'">\n </div>\n <div class="mf-cf-single-field-input">\n <label>Select Field</label>\n <select data-selected="'+i+'" name="mf_post_submission_mf_field_name[]" class="attr-form-control">'+e+'</select>\n </div>\n <a href="#" class="mf-btn-del-singl-field">Delete</a>\n </div>'}e(".metform-open-new-form-editor-modal").on("click",(function(t){t.preventDefault();var i,o,s=n.jQuery(".metform-dynamic-content-modal"),a=s.find("#formpicker-control-iframe"),r=s.find(".dialog-lightbox-loading"),m=s.find(".dialog-type-lightbox"),l=jQuery(this).parents(".add-new-model__footer-button-group").siblings(".metform-add-new-form-model-contents"),c=l.find("#metform-add-new-form-model__form-type option:selected").val(),f=l.find(".metform-template-radio:checked").val(),d=l.find(".metform-template-input-con input").val(),p=n.jQuery("#metform-form-modalinput-settings").data("nonce");jQuery.ajax({url:jQuery(this).attr("resturl")+"builder_form_id/"+f+"?title="+d+"&form_type="+c,type:"GET",headers:{"X-WP-Nonce":p},success:function(t){n.jQuery("body").attr("data-metform-template-key",t),l.find(".metform-template-input-con input").val(""),l.find(".metform-template-radio").removeAttr("checked").first().attr("checked","checked"),o=t;var i=e("#metform_new_form_modal"),s=e(".modal-backdrop");i.hide(),s.hide()},async:!1}),i=jQuery(this).attr("resturl")+"builder/"+o,n.jQuery("body").attr("data-metform-template-load","false"),m.show(),s.show(),r.show(),a.contents().find("#elementor-loading").show(),a.css("z-index","-1"),a.attr("src",i),a.on("load",(function(){r.hide(),a.show(),a.contents().find("#elementor-loading").hide(),a.css("z-index","1")}))})),n.jQuery(".metform-form-update-close-btn").on("click",(function(t){if(t.preventDefault(),n.jQuery("body").hasClass("wp-admin")){var i,o=n.jQuery(".metform-dynamic-content-modal").find("#formpicker-control-iframe"),s=o[0].contentWindow||o[0].contentDocument;s.jQuery("#elementor-panel-saver-button-publish:not([disabled])").hasClass("elementor-disabled")?(n.jQuery(".metform-close-editor-modals").trigger("click"),window.location.reload()):e(s.jQuery("#elementor-panel-saver-button-publish")).length>0&&!e(s.jQuery("#elementor-panel-saver-button-publish"))[0].classList.contains("elementor-button-state")&&(s.jQuery("#elementor-panel-saver-button-publish:not([disabled])").trigger("click"),i=setInterval((function(){s.jQuery("#elementor-panel-saver-button-publish:not([disabled])").hasClass("elementor-disabled")&&(n.jQuery(".metform-close-editor-modals").trigger("click"),clearInterval(i),window.location.reload())}),100))}})),n.jQuery(".metform-close-editor-modals").on("click",(function(e){if(e.preventDefault(),jQuery(this).hasClass("metform-editor-close")){var s=n.jQuery(".metform-dynamic-content-modal").find("#formpicker-control-iframe"),a=s[0].contentWindow||s[0].contentDocument;a.jQuery("#elementor-panel-saver-button-publish").hasClass("elementor-disabled")?r(n):confirm("Leaving? Changes you made may not be saved.")?(a.jQuery(a).off("beforeunload"),r(n)):a.jQuery(a).off("beforeunload")}else jQuery(this).hasClass("metform-picker-close")?(r(n),t=n.jQuery("#metform-open-content-editor"),i=t.find(".metform-content-editor-radio:checked").val(),o=t.find(".metform-open-content-editor-templates").val(),"saved"===i&&n.jQuery("body").attr("data-metform-template-key",o),r(n)):r(n);n.jQuery("#metform-open-content-editor").find(".metform-picker-close").hide(),n.jQuery("#metform-open-content-editor").find(".metform-template-radio").removeAttr("checked").first().attr("checked","checked")})),e(".row-actions .edit a, .metform-form-edit-btn, body.post-type-metform-form a.row-title").on("click",(async function(t){t.preventDefault();var i,o=0,n=e("#metform_form_modal"),r=e(this).parents(".column-title"),c=e("body").attr("data-metform-template-key");if(n.addClass("loading"),n.modal("show"),r.length>0){o=e(this).attr("data-metform-form-id"),"undefined"!==c&&(o=c),o=o!==undefined?o:r.find(".hidden").attr("id").split("_")[1];var f=e("#metform-form-modalinput-settings").attr("data-nonce");const t=await fetch(window.metform_api.resturl+"metform/v1/forms/get/"+o,{method:"GET",headers:{"X-WP-Nonce":f}}),s=await t.json();i=s,E(s),n.removeClass("loading");const a=new CustomEvent("metform-integration-settings-event",{detail:{data:s},bubbles:!0,cancelable:!0,composed:!1});document.querySelector("#metform-form-modalinput-settings").dispatchEvent(a),function(t,i,o){e(".mf-helpscout").length&&e.ajax({url:window.metform_api.resturl+"metform/v1/forms/get_fields_data/"+t,type:"get",headers:{"X-WP-Nonce":i},dataType:"json",success:function(t){var i=t,s="";Object.keys(i).map((function(e){return[i[e]]})).map((e=>{s+="<option value="+e[0].mf_input_name+">"+e[0].mf_input_label+"</option>"}));var a='<div class="mf-input-group mf-input-group-inline">'+('<label class="attr-input-label">Subject*</label><div class="mf-inputs"><select class="attr-form-control" id="mf_helpscout_conversation_subject" name="mf_helpscout_conversation_subject">'+s+"</select></div>")+'</div><div class="mf-input-group mf-input-group-inline">'+('<label class="attr-input-label">Customer Email*</label><div class="mf-inputs"><select class="attr-form-control" id="mf_helpscout_conversation_customer_email" name="mf_helpscout_conversation_customer_email">'+s+"</select></div>")+'</div><div class="mf-input-group mf-input-group-inline">'+('<label class="attr-input-label">Customer First Name*</label><div class="mf-inputs"><select class="attr-form-control" id="mf_helpscout_conversation_customer_first_name" name="mf_helpscout_conversation_customer_first_name">'+s+"</select></div>")+'</div><div class="mf-input-group mf-input-group-inline">'+('<label class="attr-input-label">Customer Last Name*</label><div class="mf-inputs"><select class="attr-form-control" id="mf_helpscout_conversation_customer_last_name" name="mf_helpscout_conversation_customer_last_name">'+s+"</select></div>")+'</div><div class="mf-input-group mf-input-group-inline">'+('<label class="attr-input-label">Message*</label><div class="mf-inputs"><select class="attr-form-control" id="mf_helpscout_conversation_customer_message" name="mf_helpscout_conversation_customer_message">'+s+"</select></div>")+"</div>";e("#mf-helpscout-fileds").html(a),o.mf_helpscout_conversation_subject&&(e('#mf_helpscout_conversation_subject option[value="'+o.mf_helpscout_conversation_subject+'"]').prop("selected",!0),e('#mf_helpscout_conversation_customer_email option[value="'+o.mf_helpscout_conversation_customer_email+'"]').prop("selected",!0),e('#mf_helpscout_conversation_customer_first_name option[value="'+o.mf_helpscout_conversation_customer_first_name+'"]').prop("selected",!0),e('#mf_helpscout_conversation_customer_last_name option[value="'+o.mf_helpscout_conversation_customer_last_name+'"]').prop("selected",!0),e('#mf_helpscout_conversation_customer_message option[value="'+o.mf_helpscout_conversation_customer_message+'"]').prop("selected",!0))},error:function(e){}})}(o,f,s)}else{E({form_title:e(".mf-form-modalinput-title").attr("data-default-value"),admin_email_body:"",admin_email_from:"",admin_email_reply_to:"",admin_email_subject:"",capture_user_browser_data:"",enable_admin_notification:"",limit_total_entries_status:"",limit_total_entries:"0",redirect_to:"",success_url:"",failed_cancel_url:"",quiz_summery:"",require_login:"",store_entries:"1",user_email_attach_submission_copy:"1",entry_title:"",success_message:e(".mf-form-modalinput-success_message").attr("data-default-value"),user_email_body:"",user_email_from:"",user_email_reply_to:"",user_email_subject:"",input_names:"Example: [mf-inputname]"}),n.removeClass("loading")}function d(e,t=""){let i="";return Array.isArray(e)&&e.map((e=>{const o=t===e[0].mf_input_name?" selected":"";i+="<option value="+e[0].mf_input_name+o+">"+e[0].mf_input_label+"</option>"})),i}e(".mf-register").length&&e.ajax({url:window.metform_api.resturl+"metform/v1/forms/get_fields_data/"+o,type:"get",headers:{"X-WP-Nonce":f},dataType:"json",success:function(t){var i=t,s="";e.ajax({url:window.metform_api.resturl+"xs/register/settings/"+o,type:"get",headers:{"X-WP-Nonce":f},dataType:"json",success:function(t){Object.keys(i).map((function(e){return[i[e]]})).map((e=>{s+="<option value="+e[0].mf_input_name+">"+e[0].mf_input_label+"</option>"}));var o='<div class="mf-input-group mf-input-group-inline">'+('<label class="attr-input-label">User Name</label><div class="mf-inputs"><select class="attr-form-control" id="mf_auth_reg_user_name" name="mf_auth_reg_user_name">'+s+"</select></div>")+'</div><div class="mf-input-group mf-input-group-inline">'+('<label class="attr-input-label">User Email</label><div class="mf-inputs"><select class="attr-form-control" id="mf_auth_reg_user_email" name="mf_auth_reg_user_email">'+s+"</select></div>")+'</div><div class="mf-input-group mf-input-group-inline"><label class="attr-input-label">Role</label><div class="mf-inputs"><select class="attr-form-control" id="mf_auth_reg_role" name="mf_auth_reg_role"><option value="administrator">Administrator</option><option value="editor">Editor</option><option value="author">Author</option><option value="contributor">Contributor</option><option selected="selected" value="subscriber">Subscriber</option></select></div></div>';e(".mf_register_form_fields").html(o),0!=t&&(e('#mf_auth_reg_user_name option[value="'+t.mf_auth_reg_user_name+'"]').prop("selected",!0),e('#mf_auth_reg_user_email option[value="'+t.mf_auth_reg_user_email+'"]').prop("selected",!0),e('#mf_auth_reg_role option[value="'+t.mf_auth_reg_role+'"]').prop("selected",!0))},error:function(e){}})},error:function(e){}}),e(".mf-login").length&&e.ajax({url:window.metform_api.resturl+"metform/v1/forms/get_fields_data/"+o,type:"get",headers:{"X-WP-Nonce":f},dataType:"json",success:function(t){var i=t,s="";e.ajax({url:window.metform_api.resturl+"xs/login/settings/"+o,type:"get",headers:{"X-WP-Nonce":f},dataType:"json",success:function(t){Object.keys(i).map((function(e){return[i[e]]})).map((e=>{s+="<option value="+e[0].mf_input_name+">"+e[0].mf_input_label+"</option>"}));var o='<div class="mf-input-group mf-input-group-inline">'+('<label class="attr-input-label">User Name</label><div class="mf-inputs"><select class="attr-form-control" id="mf_auth_login_user_name" name="mf_auth_login_user_name">'+s+"</select></div>")+'</div><div class="mf-input-group mf-input-group-inline">'+('<label class="attr-input-label">User Password</label><div class="mf-inputs"><select class="attr-form-control" id="mf_auth_login_user_password" name="mf_auth_login_user_password">'+s+"</select></div>")+"</div>";e(".mf_login_form_fields").html(o),0!=t&&(e('#mf_auth_login_user_name option[value="'+t.mf_auth_login_user_name+'"]').prop("selected",!0),e('#mf_auth_login_user_password option[value="'+t.mf_auth_login_user_password+'"]').prop("selected",!0))},error:function(e){}})},error:function(e){}}),e(".mf-form-to-post").length&&e.ajax({url:window.metform_api.resturl+"metform/v1/forms/get_fields_data/"+o,type:"get",headers:{"X-WP-Nonce":f},dataType:"json",success:function(t){var i=t,s="";e.ajax({url:window.metform_api.resturl+"xs/post/settings/"+o,type:"get",headers:{"X-WP-Nonce":f},dataType:"json",success:function(t){var o=Object.keys(i).map((function(e){return[i[e]]}));o.map((e=>{s+="<option value="+e[0].mf_input_name+">"+e[0].mf_input_label+"</option>"}));var a='<label class="attr-input-label">Title</label><div class="mf-inputs"><select class="attr-form-control mf_post_submission_title" id="mf_post_submission_title" name="mf_post_submission_title">'+s+"</select></div>",n='<label class="attr-input-label">Content</label><div class="mf-inputs"><select class="attr-form-control mf_post_submission_content" id="mf_post_submission_content" name="mf_post_submission_content">'+s+"</select></div>",r='<label class="attr-input-label">Featured Image</label><div class="mf-inputs"><select class="attr-form-control mf_post_submission_featured_image" id="mf_post_submission_featured_image" name="mf_post_submission_featured_image">'+s+"</select></div>",c=l(s);if(0!=t.custom_fields_settings){c="";var f=Object.entries(t.custom_fields_settings);for(const[e,t]of f)c+=l(d(o,t),e,t)}var p='<div class="mf-input-group mf-input-group-inline">'+a+'</div><div class="mf-input-group mf-input-group-inline">'+n+'</div></div><div class="mf-input-group mf-input-group-inline">'+r+'</div><div class="mf-input-group mf-input-group-inline">'+function(e,t){return'<label class="attr-input-label">Custom Fields</label>\n <div class="mf-inputs mf-cf-fields">\n <div style="display:none">\n <div id="mf-cf-single-field" class="mf-cf-single-field"">\n <div class="mf-cf-single-field-input">\n <label>Name</label>\n <input type="text" name="mf_post_submission_custom_fields_name[]" class="attr-form-control" >\n </div>\n <div class="mf-cf-single-field-input">\n <label>Select Field</label>\n <select name="mf_post_submission_mf_field_name[]" class="attr-form-control">'+t+'</select>\n </div>\n <a href="#" class="mf-btn-del-singl-field">Delete</a>\n </div>\n </div>\n <div class="repeaterResult">'+e+'</div>\n <button class="mf-add-cf" type="button"><span>+</span></button>\n </div>'}(c,s)+"</div>";e(".mf-post-submission-fields-section").html(p);var u=0;e(".mf-add-cf").click((function(){var t=e("#mf-cf-single-field").clone();u++,t.attr("id","mf-repeater-field-"+u),e(".mf-btn-del-singl-field",t).attr("data-id",u),t.appendTo(e(".repeaterResult")),m()})),m(),0!=t.fields_settings&&(e('.mf_post_submission_post_type option[value="'+t.fields_settings.mf_post_submission_post_type+'"]').prop("selected",!0),e('.mf_post_submission_title option[value="'+t.fields_settings.mf_post_submission_title+'"]').prop("selected",!0),e('.mf_post_submission_content option[value="'+t.fields_settings.mf_post_submission_content+'"]').prop("selected",!0),e('.mf_post_submission_featured_image option[value="'+t.fields_settings.mf_post_submission_featured_image+'"]').prop("selected",!0),e('.mf_post_submission_author option[value="'+t.fields_settings.mf_post_submission_author+'"]').prop("selected",!0))},error:function(e){}})},error:function(e){}}),function(t){var i=e("#metform-form-modalinput-settings").attr("data-nonce"),o=e(".get-response-campaign-list");e.ajax({url:window.metform_api.resturl+"metform/v1/entries/get_response_list/"+t,type:"get",headers:{"X-WP-Nonce":i},dataType:"json",success:function(e){o.empty(),e.length&&e.forEach((e=>{o.append("<option value="+e.campaignId+">"+e.description+"</option>")}))},error:function(e){}})}(o),function(t){var i=e(".metfrom-btn-refresh-hubsopt-list");i.addClass("mf-setting-spin");var o=e("#metform-form-modalinput-settings").attr("data-nonce"),s=e(".hubspot_forms"),a=t;e.ajax({url:window.metform_api.resturl+"metform/v1/forms/get_hubspot_forms/"+a,type:"get",headers:{"X-WP-Nonce":o},dataType:"json",success:function(t){var o=e(".mf_hubspot_form_guid").val();try{s.empty(),s.append('<option value="select">Select a form</option>'),t.forEach((e=>{var t="";e.guid===o&&(t='selected="selected"'),s.append("<option "+t+" value="+e.portalId+" guid="+e.guid+">"+e.name+"</option>")}))}catch(a){}i.removeClass("mf-setting-spin")},error:function(e){i.removeClass("mf-setting-spin")}})}(o),function(t,i){if(s){s=!1;var o=e(".mf_hubspot_form_guid").val(),a=e("#metform-form-modalinput-settings").attr("data-nonce");e("#mf-hubsopt-fileds").html("Please wait...."),e.ajax({url:window.metform_api.resturl+"metform/v1/forms/get_fields_data/"+t,type:"get",headers:{"X-WP-Nonce":a},dataType:"json",success:function(s){e.ajax({url:window.metform_api.resturl+"metform/v1/forms/hubspot_form_fields/"+t,type:"post",headers:{"X-WP-Nonce":a},dataType:"json",data:{guid:o},success:function(t){var o="",a="mf_hubspot_form_field_name_";t.forEach((e=>{var t=a+e.name;if(t in i){var n="";for(const e in s){var r="";i[t]===s[e].mf_input_name&&(r='selected="selected"'),n+=`<option ${r} value="${e}">${s[e].mf_input_label}</option>`}o+="<tr><td>"+e.label+"</td><td><select name="+a+e.name+' class="attr-form-control">'+n+"</select></td></tr>"}})),e("#mf-hubsopt-fileds").html('<table width="100%">'+o+"</table>")},error:function(t){401===t?.responseJSON?.code?(e("#mf-hubsopt-fileds").html("<span class='mf-input-warning'>Please connect your HubSpot account.</span>"),e(".hubspot_forms").empty()):e("#mf-hubsopt-fileds").html("<span class='mf-input-warning'>Please click the <span class='dashicons dashicons-update'></span> button to fetch forms and then select a form from the list.</span>")}})},error:function(t){e("#mf-hubsopt-fileds").html("Sorry ! Something went wrong")}})}}(o,i),function(t){e("#metform_form_modal");var i,o=e("#metform-form-modalinput-settings").attr("data-nonce"),s=e(".mailchimp_list");i=t,e.ajax({url:window.metform_api.resturl+"metform/v1/entries/get_mailchimp_list/"+i,type:"get",headers:{"X-WP-Nonce":o},dataType:"json",success:function(t){try{s.empty(),t.lists.forEach((e=>{s.append("<option value="+e.id+">"+e.name+"</option>")})),1===t.lists.length?e(".mf-mailchimp-list-id").attr("value",t.lists[0].id):(a(),e(".mailchimp_list").on("change",(t=>{e(".mf-mailchimp-list-id").attr("value",t.target.value)})))}catch(i){}},error:function(e){}})}(o),n.find("form").attr("data-mf-id",o),n.find(".get-response-campaign-list").attr("get-response-list-id",o)})),e("#metform-add-new-form-model__form-type").on("change",(function(){var t=this.value,i=e(this).attr("data-nonce"),o=e(this).parent(".metform-template-form-type").siblings(".metform-templates-list");e.ajax({url:window.metform_api.resturl+"metform/v1/forms/gel_form_templates/new?formtype="+t,type:"get",headers:{"X-WP-Nonce":i},dataType:"json",beforeSend:function(){o.css({opacity:"0.3","pointer-events":"none"})},success:function(e){o.find("li").not(":first").remove(),o.find("li").after(e),o.css({opacity:"1","pointer-events":"auto"})},error:function(e){console.log(e)}})})),e(".metform-form-save-btn-editor").on("click",(function(){e(".metform-form-save-btn-editor").attr("disabled",!0);var t=e("#metform-form-modalinput-settings");t.attr("data-open-editor","1"),t.trigger("submit")})),e("#metform-form-modalinput-settings").on("submit",(function(t){t.preventDefault();var i=e("#metform-form-modal"),o=e(this);i.addClass("loading"),e(".metform-form-save-btn-editor").attr("disabled",!0),e(".metform-form-save-btn").attr("disabled",!0);var s=e(this).serialize(),a=e(this).attr("data-mf-id"),n=e(this).attr("data-open-editor"),r=e(this).attr("data-editor-url"),m=e(this).attr("data-nonce");e.ajax({url:window.metform_api.resturl+"metform/v1/forms/update/"+a,type:"post",data:s,headers:{"X-WP-Nonce":m},dataType:"json",success:function(t){e("#message").css("display","block"),1==t.saved?(e("#post-"+t.data.id).find(".row-title").html(t.data.title),e("#message").removeClass("attr-alert-warning").addClass("attr-alert-success").html(t.status)):e("#message").removeClass("attr-alert-success").addClass("attr-alert-warning").html(t.status),setTimeout((function(){e("#message").css("display","none"),o.find(".attr-close").trigger("click")}),1e3),i.removeClass("loading"),"1"==n&&1==t.saved?setTimeout((function(){window.location.href=r+"?post="+t.data.id+"&action=elementor"}),1e3):"0"!=a?(e(".metform-form-save-btn-editor").removeAttr("disabled"),e(".metform-form-save-btn").removeAttr("disabled")):"0"==a&&setTimeout((function(){location.reload()}),1e3)}})}));var c=e(".mf-entry-title"),f=e(".mf-form-user-confirmation"),d=e(".mf-form-admin-notification"),p=e(".mf-input-rest-api-group"),u=e(".mf-mailchimp"),_=e(".mf-get_response"),h=e(".mf-zapier"),v=e(".mf-slack"),g=e(".mf-fluent"),b=e(".mf-sms"),k=e(".mf-sms-user"),y=e(".mf-sms-admin"),w=e(".mf-form-modalinput-sms"),j=e(".mf-form-modalinput-sms-user"),x=e(".mf-form-modalinput-sms-admin"),A=e(".mf-paypal"),C=e(".mf-stripe"),T=e(".mf-ckit"),P=e(".mf-aweber"),N=e(".mf-mail-poet"),W=e(".mf-form-email-verification");let Q=".mf-active-campaign",X=e("input"+Q),z=e("div"+Q);function S(t,i=null){var o=e("#metform-form-modalinput-settings").attr("data-nonce");e('.mf-mailster-list-id option[value="'+t+'"]').prop("selected",!0),e.ajax({url:window.metform_api.resturl+"metform/v1/forms/get_fields_data/"+i,type:"get",headers:{"X-WP-Nonce":o},dataType:"json",success:function(o){var s=o,a="";Object.keys(s).map((function(e){return[s[e]]})).map((e=>{a+="<option value="+e[0].mf_input_name+">"+e[0].mf_input_label+"</option>"})),function(t,i,o){var s=e("#metform-form-modalinput-settings").attr("data-nonce");e.ajax({url:window.metform_api.resturl+"metform/v1/forms/get_mailster_form/"+t,type:"get",headers:{"X-WP-Nonce":s},dataType:"json",success:function(t){var s="";for(const[e,o]of Object.entries(t))if("fields"==e)for(const[e,t]of Object.entries(o))s+='<div class="mf-input-group mf-input-group-inline"><label class="attr-input-label">'+t.name+'</label><div class="mf-inputs"><select class="attr-form-control" id="mailster_field_'+e+'" name="mailster_field_'+e+'">'+i+"</select></div></div>";e(".mf-mailster-settings-section").html(s),function(t,i){var o=window.mf_mailster_list_id;if(e(".mf-mailster-list-id").val()==o){var s=e("#metform-form-modalinput-settings").attr("data-nonce");e.ajax({url:window.metform_api.resturl+"metform/v1/forms/get_mailster_form_data/"+i,type:"get",headers:{"X-WP-Nonce":s},dataType:"json",success:function(t){for(const[i,o]of Object.entries(t))for(const[t,i]of Object.entries(o))e("#"+t+' option[value="'+i+'"]').prop("selected",!0)},error:function(e){}})}}(0,o)},error:function(e){}})}(t,a,i)},error:function(e){}})}function E(t){if(c.hide(),f.hide(),d.hide(),p.hide(),u.hide(),h.hide(),v.hide(),A.hide(),C.hide(),T.hide(),P.hide(),N.hide(),""!=t.form_title){e(".mf-form-modalinput-title").val(t.form_title),e(".mf-form-modalinput-success_message").val(t.success_message),e(".mf-entry-title-input").val("undefined"!=typeof t.entry_title&&""!=t.entry_title?t.entry_title:"undefined"==typeof t.entry_title||""==t.entry_title?"Entry # [mf_id]":""),e(".mf-form-modalinput-redirect_to").val(t.redirect_to),e(".mf-form-modalinput-success_url").val(t.success_url),e(".mf-form-modalinput-failed_cancel_url").val(t.failed_cancel_url),e(".mf-form-modalinput-limit_total_entries").val(t.limit_total_entries),e(".mf-form-email-verification-email-subject").val(t.email_verification_email_subject),e(".mf-form-email-verification-email-redirect").val(t.email_verification_confirm_redirect),e(".mf-form-email-verification-heading").val(t.email_verification_heading),e(".mf-form-email-verification-paragraph").val(t.email_verification_paragraph);let p=e(".mf-form-email-verification-enable");"1"==t.email_verification_enable?(p.attr("checked",!0),W.show()):(p.removeAttr("checked"),W.hide());let S=e(".mf_automizy_list_id");S&&S.val(t.mf_automizy_list_id);var i=e(".mf-form-modalinput-store_entries");"1"==t.store_entries?(i.attr("checked",!0),c.show()):(i.removeAttr("checked"),c.hide());var o=e(".mf-form-modalinput-hide_form_after_submission");"1"==t.hide_form_after_submission?o.attr("checked",!0):o.removeAttr("checked");var s=e(".mf-form-modalinput-require_login");"1"==t.require_login?s.attr("checked",!0):s.removeAttr("checked");var n=e(".mf-form-modalinput-quiz_result_show");"1"==t.quiz_summery?n.attr("checked",!0):n.removeAttr("checked");var r=e(".mf-form-modalinput-limit_status");"1"==t.limit_total_entries_status?r.attr("checked",!0):r.removeAttr("checked");var m=e(".mf-form-modalinput-count_views");"1"==t.count_views?m.attr("checked",!0):m.removeAttr("checked");var l=e(".mf-form-modalinput-stop_vertical_scrolling");"1"==t.mf_stop_vertical_scrolling?l.attr("checked",!0):l.removeAttr("checked");var _=e(".mf-form-modalinput-multiple_submission");"1"==t.multiple_submission?_.attr("checked",!0):_.removeAttr("checked");var Q=e(".mf-form-modalinput-enable_recaptcha");"1"==t.enable_recaptcha?Q.attr("checked",!0):Q.removeAttr("checked");var E=e(".mf-form-modalinput-capture_user_browser_data");"1"==t.capture_user_browser_data?(E.attr("checked",!0),e("#multiple_submission").removeClass("hide_input"),e("#multiple_submission").addClass("show_input")):E.removeAttr("checked"),e(".mf-form-user-email-subject").val(t.user_email_subject),e(".mf-form-user-email-from").val(t.user_email_from),e(".mf-form-user-reply-to").val(t.user_email_reply_to),e(".mf-form-user-email-body").val(t.user_email_body);var D=e(".mf-form-user-enable");"1"==t.enable_user_notification?(D.attr("checked",!0),f.show()):(D.removeAttr("checked"),f.hide());var O=e(".mf-form-user-submission-copy");"1"==t.user_email_attach_submission_copy?O.attr("checked",!0):O.removeAttr("checked"),e(".mf-form-admin-email-subject").val(t.admin_email_subject),e(".mf-form-admin-email-from").val(t.admin_email_from),e(".mf-form-admin-email-to").val(t.admin_email_to),e(".mf-form-admin-reply-to").val(t.admin_email_reply_to),e(".mf-form-admin-email-body").val(t.admin_email_body);var I=e(".mf-form-admin-enable");"1"==t.enable_admin_notification?(I.attr("checked",!0),d.show()):(I.removeAttr("checked"),d.hide());var q=e(".mf-form-admin-submission-copy");"1"==t.admin_email_attach_submission_copy?q.attr("checked",!0):q.removeAttr("checked");var U=e(".mf-form-modalinput-rest_api");"1"==t.mf_rest_api?(U.attr("checked",!0),e(".mf-rest-api").show()):(U.removeAttr("checked"),e(".mf-rest-api").hide());var F=e(".mf-form-modalinput-mail_chimp");"1"==t.mf_mail_chimp?(F.attr("checked",!0),u.show()):(F.removeAttr("checked"),u.hide());var G=e(".mf-form-modal_input-google_sheet");"1"==t.mf_google_sheet?G.attr("checked",!0):G.removeAttr("checked");let me=e(".mf-form-modalinput-ckit"),le=e(".mf-form-modalinput-mail_aweber"),ce=e(".mf-form-modalinput-mail_poet");if("1"==t.mf_convert_kit?(me.attr("checked",!0),T.show()):(me.removeAttr("checked"),T.hide()),"1"==t.mf_mail_aweber?(le.attr("checked",!0),P.show()):(le.removeAttr("checked"),P.hide()),"1"==t.mf_mail_poet?(ce.attr("checked",!0),N.show()):(ce.removeAttr("checked"),N.hide()),t.ckit_opt){let i=e("select.mf-ckit-list-id").first(),o=t.mf_ckit_list_id||"";i.html(),t.ckit_opt.forEach((function(e){i.append('<option value="'+e.id+'">'+e.name+"</option>")})),i.val(o)}if(t.aweber_opt){let i=e("select.mf-aweber-list-id").first(),o=t.mf_aweber_list_id||"";i.html();for(let e in t.aweber_opt)i.append('<option value="'+t.aweber_opt[e].id+'">'+t.aweber_opt[e].name+"</option>");i.val(o)}if(t.mp_opt){let i=e("select.mf-mail-poet-list-id").first(),o=t.mf_mail_poet_list_id||"";i.html();for(let e in t.mp_opt)i.append('<option value="'+t.mp_opt[e].id+'">'+t.mp_opt[e].name+"</option>");i.val(o)}if("1"===t.mf_active_campaign){X.attr("checked",!0),z.show();let i=t.mf_active_campaign_list_id||"",o=t.mf_active_campaign_tag_id||"";e("select[name=mf_active_campaign_list_id]").val(i),e("select[name=mf_active_campaign_tag_id]").val(o)}else X.removeAttr("checked"),z.hide();var R=e(".mf-form-modalinput-get_response");"1"==t.mf_get_response?(R.attr("checked",!0),e(".mf-get_response").show()):(R.removeAttr("checked"),e(".mf-get_response").hide());var L=e(".mf-hubsopt");"1"==t.mf_hubspot?L.attr("checked",!0):L.removeAttr("checked");var $=e(".mf-hubspot-forms"),H=e(".hubspot_forms_section");"1"==t.mf_hubspot_forms?($.attr("checked",!0),H.show()):($.removeAttr("checked"),H.hide()),e(".mf_hubspot_form_portalId").val(t.mf_hubspot_form_portalId),e(".mf_hubspot_form_guid").val(t.mf_hubspot_form_guid);var J=e(".mf-zoho");"1"==t.mf_zoho?J.attr("checked",!0):J.removeAttr("checked");var K=e(".mf-helpscout");"1"==t.mf_helpscout?(K.attr("checked",!0),e(".helpscout_forms_section").show()):(K.removeAttr("chekced"),e(".helpscout_forms_section").hide()),t.mf_helpscout_mailbox&&e('#mf_helpscout_mailbox option[value="'+t.mf_helpscout_mailbox+'"]').prop("selected",!0);var M=e(".mf-form-modalinput-mailster"),B=e(".mf-mailster-settings-section");"1"==t.mf_mailster?(M.attr("checked",!0),B.show(),e(".mf-mailster-forms").show()):(M.removeAttr("checked"),B.hide(),e(".mf-mailster-forms").hide());var V=e(".mf-register");1==t.mf_registration?(V.attr("checked",!0),e(".mf_register_form_fields").show()):(V.removeAttr("checked"),e(".mf_register_form_fields").hide());var Y=e(".mf-login");1==t.mf_login?(Y.attr("checked",!0),e(".mf_login_form_fields").show()):(e(".mf_login_form_fields").hide(),Y.removeAttr("checked"));var Z=e(".mf-form-to-post"),ee=e(".mf-form-to-post-fields");1==t.mf_form_to_post?(Z.attr("checked",!0),ee.show()):(Z.removeAttr("checked"),ee.hide());var te=e(".mf-form-modalinput-zapier");"1"==t.mf_zapier?(te.attr("checked",!0),h.show()):(te.removeAttr("checked",!0),h.hide());var ie=e(".mf-form-modalinput-slack");"1"==t.mf_slack?(ie.attr("checked",!0),v.show()):(ie.removeAttr("checked",!0),v.hide());var oe=e(".mf-form-modalinput-fluent");if("1"==t.mf_fluent?(oe.attr("checked",!0),g.show()):(oe.removeAttr("checked",!0),g.hide()),"1"==t.mf_sms_user_status?(j.attr("checked",!0),k.show()):(j.removeAttr("checked",!0),k.hide()),"1"==t.mf_sms_admin_status?(x.attr("checked",!0),y.show()):(x.removeAttr("checked",!0),y.hide()),"1"==t.mf_sms_status?(w.attr("checked",!0),b.show()):(w.removeAttr("checked",!0),b.hide(),j.removeAttr("checked",!0),k.hide(),x.removeAttr("checked",!0),y.hide()),t.mf_payment_currency){e("select.mf_payment_currency").val(t.mf_payment_currency)}let fe=e(".mf-form-modalinput-paypal");"1"==t.mf_paypal?(fe.attr("checked",!0),A.show()):(fe.removeAttr("checked",!0),A.hide());var se=e(".mf-form-modalinput-stripe");"1"==t.mf_stripe?(se.attr("checked",!0),C.show()):(se.removeAttr("checked",!0),C.hide());se=e(".mf-form-modalinput-stripe");"1"==t.mf_stripe?(se.attr("checked",!0),C.show()):(se.removeAttr("checked",!0),C.hide());var ae=e(".mf-form-modalinput-paypal_sandbox");"1"==t.mf_paypal_sandbox?ae.attr("checked",!0):ae.removeAttr("checked",!0);var ne=e(".mf-form-modalinput-stripe_sandbox");"1"==t.mf_stripe_sandbox?ne.attr("checked",!0):ne.removeAttr("checked",!0);var re=t.mf_rest_api_method&&t.mf_rest_api_method.length?t.mf_rest_api_method:"POST";e('.mf-rest-api-method option[value="'+re+'"]').prop("selected",!0),e(".mf-rest-api-url").val(t.mf_rest_api_url),e(".mf-mailchimp-api-key").val(t.mf_mailchimp_api_key),e(".mf-mailchimp-list-id").val(t.mf_mailchimp_list_id),""==t.mf_mailchimp_list_id&&e(".mf-mailchimp-list-id").val(e(".mailchimp_list").find(":selected").val()),0!=t.mf_mailchimp_list_id&&e('.mailchimp_list option[value="'+t.mf_get_response_list_id+'"]').prop("selected",!0),a(),e(".mf-get_response-list-id").val(t.mf_get_response_list_id),0!=t.mf_get_response_list_id&&e('.get-response-campaign-list option[value="'+t.mf_get_response_list_id+'"]').prop("selected",!0),e(".mf-zapier-web-hook").val(t.mf_zapier_webhook),e(".mf-slack-web-hook").val(t.mf_slack_webhook),e(".mf-fluent-web-hook").val(t.mf_fluent_webhook),e(".mf-sms-from").val(t.mf_sms_from),e(".mf-sms-twilio-account-sid").val(t.mf_sms_twilio_account_sid),e(".mf-sms-twilio-auth-token").val(t.mf_sms_twilio_auth_token),e(".mf-sms-user-body").val(t.mf_sms_user_body),e(".mf-sms-admin-body").val(t.mf_sms_admin_body),e(".mf-sms-admin-to").val(t.mf_sms_admin_to),e(".mf-paypal-email").val(t.mf_paypal_email),e(".mf-paypal-token").val(t.mf_paypal_token),e(".mf-stripe-image-url").val(t.mf_stripe_image_url),e(".mf-stripe-live-publishiable-key").val(t.mf_stripe_live_publishiable_key),e(".mf-stripe-live-secret-key").val(t.mf_stripe_live_secret_key),e(".mf-stripe-test-publishiable-key").val(t.mf_stripe_test_publishiable_key),e(".mf-stripe-test-secret-key").val(t.mf_stripe_test_secret_key),e(".mf-recaptcha-site-key").val(t.mf_recaptcha_site_key),e(".mf-recaptcha-secret-key").val(t.mf_recaptcha_secret_key),e("input.mf-form-modalinput-limit_status, .mf-form-modalinput-rest_api").trigger("change")}(window.mf_mailster_list_id=t.mf_mailster_list_id,e('.mf-mailster-list-id option[value="'+t.mf_mailster_list_id+'"]').prop("selected",!0),e(".mf-form-modalinput-mailster").length)&&S(e(".mf-mailster-list-id").find(":selected").val(),e("#metform_form_modal").find("form").attr("data-mf-id"))}e("input.mf-form-modalinput-store_entries").on("change",(function(){e(this).is(":checked")?c.show():e(this).is(":not(:checked)")&&c.hide()})),e("input.mf-form-modalinput-limit_status").on("change",(function(){e(this).is(":checked")?e("#limit_status").find("input").removeAttr("disabled"):e(this).is(":not(:checked)")&&e("#limit_status").find("input").attr("disabled","disabled")})),e("input.mf-form-user-enable").on("change",(function(){e(this).is(":checked")?f.show():e(this).is(":not(:checked)")&&f.hide()})),e("input.mf-form-admin-enable").on("change",(function(){e(this).is(":checked")?d.show():e(this).is(":not(:checked)")&&d.hide()})),e("input.mf-form-modalinput-rest_api").on("change",(function(){e(this).is(":checked")?p.show():e(this).is(":not(:checked)")&&p.hide()})),e("input.mf-form-modalinput-mail_chimp").on("change",(function(){e(this).is(":checked")?u.show():e(this).is(":not(:checked)")&&u.hide()})),e(".mf-form-modalinput-get_response").on("change",(function(){e(this).is(":checked")?_.show():_.hide()})),e("input.mf-form-email-verification-enable").on("change",(function(){e(this).is(":checked")?W.show():e(this).is(":not(:checked)")&&W.hide()})),X.on("change",(function(){e(this).is(":checked")?z.show():z.hide()})),e("input.mf-form-modalinput-mail_aweber").on("change",(function(){e(this).is(":checked")?P.show():e(this).is(":not(:checked)")&&P.hide()})),e("input.mf-form-modalinput-mail_poet").on("change",(function(){e(this).is(":checked")?N.show():e(this).is(":not(:checked)")&&N.hide()})),e("input.mf-form-modalinput-ckit").on("change",(function(){e(this).is(":checked")?T.show():e(this).is(":not(:checked)")&&T.hide()})),e("input.mf-form-modalinput-zapier").on("change",(function(){e(this).is(":checked")?h.show():e(this).is(":not(:checked)")&&h.hide()})),e("input.mf-form-modalinput-slack").on("change",(function(){e(this).is(":checked")?v.show():e(this).is(":not(:checked)")&&v.hide()})),e("input.mf-form-modalinput-fluent").on("change",(function(){e(this).is(":checked")?g.show():e(this).is(":not(:checked)")&&g.hide()})),e("input.mf-form-modalinput-sms-user").on("change",(function(){e(this).is(":checked")?k.show():e(this).is(":not(:checked)")&&k.hide()})),e("input.mf-form-modalinput-sms-admin").on("change",(function(){e(this).is(":checked")?y.show():e(this).is(":not(:checked)")&&y.hide()})),e("input.mf-form-modalinput-sms").on("change",(function(){e(this).is(":checked")?b.show():e(this).is(":not(:checked)")&&(b.hide(),j.removeAttr("checked",!0),k.hide(),x.removeAttr("checked",!0),y.hide())})),e("input.mf-form-modalinput-paypal").on("change",(function(){e(this).is(":checked")?A.show():e(this).is(":not(:checked)")&&A.hide()})),e("input.mf-form-modalinput-stripe").on("change",(function(){e(this).is(":checked")?stripe.show():e(this).is(":not(:checked)")&&stripe.hide()})),e("input.mf-form-modalinput-stripe_sandbox").on("change",(function(){e(this).is(":checked")?e(".mf_stripe_sandbox").show():e(this).is(":not(:checked)")&&e(".mf_stripe_sandbox").hide()})),e(".mf-hubspot-forms").on("change",(function(){e(this).is(":checked")?e(".hubspot_forms_section").show():e(".hubspot_forms_section").hide()})),e(".mf-register").on("change",(function(){e(this).is(":checked")?e(".mf_register_form_fields").show():e(".mf_register_form_fields").hide()})),e(".mf-login").on("change",(function(){e(this).is(":checked")?e(".mf_login_form_fields").show():e(".mf_login_form_fields").hide()})),e(".mf-form-to-post").on("change",(function(){e(this).is(":checked")?e(".mf-form-to-post-fields").show():e(".mf-form-to-post-fields").hide()})),e(".mf-helpscout").on("change",(function(){e(this).is(":checked")?e(".helpscout_forms_section").show():e(".helpscout_forms_section").hide()})),e(".mf-form-modalinput-mailster").on("change",(function(){e(this).is(":checked")?(e(".mf-mailster-settings-section").show(),e(".mf-mailster-forms").show()):(e(".mf-mailster-settings-section").hide(),e(".mf-mailster-forms").hide())})),e(".mf-mailster-list-id").on("change",(function(){e(this).val(),e("#metform-form-modalinput-settings").attr("data-mf-id")})),e(".get-response-campaign-list").on("change",(function(){e(".mf-get_response-list-id ").val(e(this).val())})),e("input.mf-form-modalinput-capture_user_browser_data").click((function(){e(this).is(":checked")?(e("#multiple_submission").removeClass("hide_input"),e("#multiple_submission").addClass("show_input")):e(this).is(":not(:checked)")&&(e("#multiple_submission").removeClass("show_input"),e("#multiple_submission").addClass("hide_input"))})),e(".mf-settings-tab .mf-setting-nav-link").on("click",(function(t){if(!e(this).hasClass("mf-setting-nav-hidden")){t.preventDefault();var i=e(this).attr("href");window.location.hash=i,e(this).parent().addClass("nav-tab-active").siblings().removeClass("nav-tab-active"),e(i).addClass("active").siblings().removeClass("active")}})),e(".mf-setting-nav-link").on("click",(function(t){e(this).hasClass("mf-setting-nav-hidden")?t.preventDefault():(e(this).parents(".nav-tab-wrapper").find("a").removeClass("top").removeClass("bottom"),e(this).parents("li").prev().find("a").addClass("top"),e(this).parents("li").next().find("a").addClass("bottom"))}));var D=e(".mf-settings-tab .mf-setting-nav-link").eq(1).attr("href");if(window.location.hash&&(D=window.location.hash),e('.mf-settings-tab .mf-setting-nav-link[href="'+D+'"]').trigger("click"),e(window).on("resize.mfSettings",(function(){e(".mf-setting-sidebar").css("width",e(".mf-setting-sidebar-column").width())})).trigger("resize.mfSettings"),e(".mf-setting-header").length>0){var O=e(".mf-setting-header").offset().top;e(window).scroll((function(){var t=e(".mf-setting-header");e(window).scrollTop()>=O?t.addClass("fixed").css({width:jQuery(".metform-admin-container").width()}):t.removeClass("fixed").css({width:"auto"})}))}function I(){return e("#metform-form-modalinput-settings").attr("data-nonce")}function q(){return e("#mf_wp_rest_nonce").val()}e(".mf-admin-single-accordion").on("click",".mf-admin-single-accordion--heading",(function(){e(this).next().slideToggle().parent().toggleClass("active").siblings().removeClass("active").find(".mf-admin-single-accordion--body").slideUp()})),e(".mf-admin-single-accordion:first-child .mf-admin-single-accordion--heading").trigger("click"),e(".mf-recaptcha-version").on("change",(function(){var t=e(this).val();e("#mf-"+t).fadeIn().siblings().hide()})),e(".mf-recaptcha-version").trigger("change"),e(".mf-form-modalinput-stripe_sandbox").on("change",(function(){var t=e(this).parents(".attr-form-group").eq(0).next(".mf-form-modalinput-stripe_sandbox_keys");e(this).is(":checked")?t.fadeIn():t.fadeOut()})),e(".mf-form-modalinput-stripe_sandbox").trigger("change"),e(document).on("click","#met_pro_aweber_authorize",(function(t){t.preventDefault();let i=e(this).closest("p.description");i.html("<span>Wait....</span>");var o=metform_api.admin_url+"admin-ajax.php",s={action:"get_aweber_authorization_url",api_key:e("#mf_aweber_dev_api_key").val(),api_sec:e("#mf_aweber_dev_api_sec").val()};e.ajax({url:o,method:"POST",data:s,headers:{"X-WP-Nonce":q()},dataType:"json",success:function(e){if(!0===e.success){let t='<a class=" button mf-setting-btn-link" href="'+e.data.url+'">Authorize The App </a>';i.html(t)}else if(e.data){let t=e.data;i.html('<span style="background-color: red; padding: 1px 5px;">'+t.msg+"</span>")}},error:function(e){i.html('<span style="color: red"> ajax error occurred, please check your internet connection..</span>')},complete:function(){}})})),e(document).on("click","#met_pro_aweber_propmpt_re_auth",(function(t){t.preventDefault(),e("#mf_aweber_dev_api_key").val("").prop("disabled",!1),e("#mf_aweber_dev_api_sec").val("").prop("disabled",!1),e(this).closest("p.description").html('<a class="button mf-setting-btn-link" id="met_pro_aweber_re_authorize"> Get Re - Authorization URL </a>')})),e(document).on("click","#met_pro_aweber_re_authorize",(function(t){t.preventDefault();let i=e(this).closest("p.description");i.html("<span>Wait....</span>");let o=e("#mf_aweber_dev_api_key").val();if(!o||o.length<1)return i.html('<span style="color: red">API Key can not be empty..</span>'),!1;var s=metform_api.admin_url+"admin-ajax.php",a={action:"get_aweber_re_authorization_url",api_key:o,api_sec:e("#mf_aweber_dev_api_sec").val()};e.ajax({url:s,method:"POST",data:a,headers:{"X-WP-Nonce":q()},dataType:"json",success:function(e){if(!0===e.success){let t=e.data;if("ok"==t.result){let e='<a class="mf-setting-btn-link" href="'+t.url+'">Authorize The App </a>';i.html(e)}else i.html("<span>"+t.msg+"</span>")}else if(e.data){let t=e.data;i.html('<span style="background-color: red; padding: 1px 5px;">'+t.msg+"</span>")}},error:function(e){i.html('<span style="color: red"> ajax error occurred, please check your internet connection..</span>')},complete:function(){}})})),e(document).on("click","#met_form_aweber_get_list",(function(t){t.preventDefault();let i=e(this),o=e("#mf_aweber_info"),s=metform_api.admin_url+"admin-ajax.php";e.ajax({url:s,method:"POST",data:{action:"get_list_lists"},headers:{"X-WP-Nonce":I()},dataType:"json",success:function(e){if(!0===e.success){let t=e.data,s=i.closest("div.mf-aweber").find("select");if(s.html(""),t.lists)for(let e in t.lists)s.append('<option value="'+t.lists[e].id+'">'+t.lists[e].name+"</option>");o.html("")}else if(e.data){let t=e.data;o.html('<span style="background-color: red; padding: 1px 5px;">'+t.msg+"</span>")}},error:function(e){o.html('<span style="color: red"> ajax error occurred, please check your internet connection..</span>')},complete:function(){}})})),e(document).on("click","#met_form_mail_poet_get_list",(function(t){t.preventDefault();let i=e(this),o=e("#mf_mail_poet_info"),s=metform_api.admin_url+"admin-ajax.php";e.ajax({url:s,method:"POST",data:{action:"mail_poet_get_email_list_lists"},headers:{"X-WP-Nonce":I()},dataType:"json",success:function(e){if(!0===e.success){let t=e.data,s=i.closest("div.mf-mail-poet").find("select");if(s.html(""),t.lists)for(let e in t.lists)s.append('<option value="'+t.lists[e].id+'">'+t.lists[e].name+"</option>");o.html("")}else if(e.data){let t=e.data;o.html('<span style="background-color: red; padding: 1px 5px;">'+t.msg+"</span>")}},error:function(e){o.html('<span style="color: red"> ajax error occurred, please check your internet connection..</span>')},complete:function(){}})})),e(document).on("click","#met_form_ckit_get_list",(function(t){t.preventDefault();var i=metform_api.admin_url+"admin-ajax.php";let o=e(this);e.ajax({url:i,method:"POST",data:{action:"get_form_lists"},headers:{"X-WP-Nonce":I()},dataType:"json",success:function(e){if(!0===e.success){let t=e.data,i=o.closest("div.mf-ckit").find("select");i.html(""),t.forms&&t.forms.forEach((function(e){i.append('<option value="'+e.id+'">'+e.name+"</option>")}))}else alert("Error occurred when trying to check for aweber authorization.")},error:function(e){},complete:function(){}})})),e(document).on("click","#met_form_act_camp_get_list",(function(t){t.preventDefault();let i=window.metform_api.resturl+"metform-pro/v1/active-campaign/email_lists",o=I(),s=e(this),a=e("#mf_act_camp_info");e.ajax({url:i,method:"GET",data:[],headers:{"X-WP-Nonce":o},dataType:"json",success:function(e){if(!0===e.success){let t=e.data,i=s.closest("div.mf-input-group").find("select");i.html(""),t.list&&t.list.forEach((function(e){i.append('<option value="'+e.sid+'">'+e.name+"</option>")})),a.html(e.data.msg)}else a.html(e.data.msg)},error:function(e){a.html('<span style="color: red"> ajax error occurred, please check your internet connection..</span>')},complete:function(){}})})),e(document).on("click","#met_form_act_camp_get_tags",(function(t){t.preventDefault();let i=window.metform_api.resturl+"metform-pro/v1/active-campaign/tag_lists",o=I(),s=e(this),a=e("#mf_act_camp_tag_info");e.ajax({url:i,method:"GET",data:[],headers:{"X-WP-Nonce":o},dataType:"json",success:function(e){if(!0===e.success){let t=e.data,i=s.closest("div.mf-input-group").find("select");i.html(""),t.list&&t.list.forEach((function(e){i.append('<option value="'+e.sid+'">'+e.name+"</option>")})),a.html(e.data.msg)}else a.html(e.data.msg)},error:function(e){a.html('<span style="color: red"> ajax error occurred, please check your internet connection..</span>')},complete:function(){}})})),e("#mf-helpscout-btn-token").click((function(){let t=window.metform_api.resturl+"metform/v1/forms/get_helpscout_access_token/123";e.ajax({url:t,type:"get",headers:{"X-WP-Nonce":q()},success:function(e){200==e.status&&location.reload()},error:function(e){alert("Something went wrong")}})}))}));
|
1 |
+
jQuery(document).ready((function(e){"use strict";var t,i,o;let a;e(".metfrom-btn-refresh-get-response-list").click((function(){var t=e(this);t.addClass("mf-setting-spin");var i,o=e("#metform_form_modal"),a=e("#metform-form-modalinput-settings").attr("data-nonce"),s=e(".get-response-campaign-list");i=o.find("form").attr("data-mf-id"),e.ajax({url:window.metform_api.resturl+"metform/v1/entries/store_get_response_list/"+i,type:"get",headers:{"X-WP-Nonce":a},dataType:"json",success:function(e){s.empty(),e.forEach((e=>{s.append('<option value="'+e.campaignId+'">'+e.description+"</option>")})),t.removeClass("mf-setting-spin")},error:function(e){t.removeClass("mf-setting-spin")}})})),e(".metfrom-btn-refresh-mailchimp-list").on("click",(function(){var t=e(this);t.addClass("mf-setting-spin");var i,o=e("#metform_form_modal"),a=e("#metform-form-modalinput-settings").attr("data-nonce"),s=e(".mailchimp_list");i=o.find("form").attr("data-mf-id"),e.ajax({url:window.metform_api.resturl+"metform/v1/entries/store_mailchimp_list/"+i,type:"get",headers:{"X-WP-Nonce":a},dataType:"json",success:function(i){try{s.empty(),i.lists.forEach((e=>{s.append("<option value="+e.id+">"+e.name+"</option>")})),1===i.lists.length?e(".mf-mailchimp-list-id").attr("value",i.lists[0].id):(n(),e(".mailchimp_list").on("change",(t=>{e(".mf-mailchimp-list-id").attr("value",t.target.value)})))}catch(o){}t.removeClass("mf-setting-spin")},error:function(e){t.removeClass("mf-setting-spin")}})})),e(".metfrom-btn-refresh-hubsopt-list").click((function(){var t=e(this);t.addClass("mf-setting-spin");var i,o=e("#metform_form_modal"),a=e("#metform-form-modalinput-settings").attr("data-nonce"),s=e(".hubspot_forms");i=o.find("form").attr("data-mf-id"),e.ajax({url:window.metform_api.resturl+"metform/v1/forms/hubspot_forms/"+i,type:"get",headers:{"X-WP-Nonce":a},dataType:"json",success:function(e){try{s.empty(),s.append('<option value="select">Select a form</option>'),e.forEach((e=>{s.append("<option value="+e.portalId+" guid="+e.guid+">"+e.name+"</option>")}))}catch(i){}t.removeClass("mf-setting-spin")},error:function(e){t.removeClass("mf-setting-spin")}})}));var s=!0;function n(){var t=e(".mf-mailchimp-list-id").val();e(".mailchimp_list option").each(((i,o)=>{e(o).attr("selected",!1),o.value===t&&e(o).attr("selected",!0)}))}e(".hubspot_forms").on("change",(function(){var t=e("option:selected",this).attr("guid"),i=e("option:selected",this).val();e(".mf_hubspot_form_guid").val(t),e(".mf_hubspot_form_portalId").val(i);var o,a=e("#metform_form_modal"),s=e("#metform-form-modalinput-settings").attr("data-nonce");o=a.find("form").attr("data-mf-id"),e("#mf-hubsopt-fileds").html("Please wait....");var n="";e.ajax({url:window.metform_api.resturl+"metform/v1/forms/get_fields_data/"+o,type:"get",headers:{"X-WP-Nonce":s},dataType:"json",success:function(i){n=i,e.ajax({url:window.metform_api.resturl+"metform/v1/forms/hubspot_form_fields/"+o,type:"post",headers:{"X-WP-Nonce":s},dataType:"json",data:{guid:t},success:function(t){var i="",o="";Object.keys(n).map((function(e){return[n[e]]})).map((e=>{o+="<option value="+e[0].mf_input_name+">"+e[0].mf_input_label+"</option>"}));t.forEach((e=>{i+="<tr><td>"+e.label+"</td><td><select name=mf_hubspot_form_field_name_"+e.name+' class="attr-form-control">'+o+"</select></td></tr>"})),e("#mf-hubsopt-fileds").html('<table width="100%">'+i+"</table>")},error:function(t){e("#mf-hubsopt-fileds").html("<span class='mf-input-warning'>Please select a form.</span>")}})},error:function(t){e("#mf-hubsopt-fileds").html("Sorry ! Something went wrong")}})})),e("#mf-remove-hubspot-access").on("click",(function(t){t.preventDefault();var i=e(this).attr("data-nonce");e.ajax({url:window.metform_api.resturl+"metform/v1/forms/disconnect_hubspot/1",type:"get",headers:{"X-WP-Nonce":i},dataType:"json",success:function(e){window.location.reload()},error:function(e){console.log("Sorry ! Something went wrong",e)}})})),e(".mf-mailchimp-list-id").attr("value",""),e(".page-title-action").on("click",(function(t){t.preventDefault(),e("#metform_new_form_modal").modal("show")}));let r=window.parent;function m(e){e.jQuery("body").attr("data-metform-template-load","true"),e.jQuery(".metform-dynamic-content-modal").hide(),e.jQuery("#metform-open-content-editor").hide()}function l(){e(".mf-btn-del-singl-field").click((function(){e(this).parent(".mf-cf-single-field").remove()}))}function c(e,t="",i=""){return'<div id="mf-cf-single-field" class="mf-cf-single-field"">\n <div class="mf-cf-single-field-input">\n <label>Name</label>\n <input type="text" name="mf_post_submission_custom_fields_name[]" class="attr-form-control" value="'+t+'">\n </div>\n <div class="mf-cf-single-field-input">\n <label>Select Field</label>\n <select data-selected="'+i+'" name="mf_post_submission_mf_field_name[]" class="attr-form-control">'+e+'</select>\n </div>\n <a href="#" class="mf-btn-del-singl-field">Delete</a>\n </div>'}e(".metform-open-new-form-editor-modal").on("click",(function(t){t.preventDefault();var i,o,a=r.jQuery(".metform-dynamic-content-modal"),s=a.find("#formpicker-control-iframe"),n=a.find(".dialog-lightbox-loading"),m=a.find(".dialog-type-lightbox"),l=jQuery(this).parents(".add-new-model__footer-button-group").siblings(".metform-add-new-form-model-contents"),c=l.find("#metform-add-new-form-model__form-type option:selected").val(),f=l.find(".metform-template-radio:checked").val(),d=l.find(".metform-template-input-con input").val(),p=r.jQuery("#metform-form-modalinput-settings").data("nonce");jQuery.ajax({url:jQuery(this).attr("resturl")+"builder_form_id/"+f+"?title="+d+"&form_type="+c,type:"GET",headers:{"X-WP-Nonce":p},success:function(t){r.jQuery("body").attr("data-metform-template-key",t),l.find(".metform-template-input-con input").val(""),l.find(".metform-template-radio").removeAttr("checked").first().attr("checked","checked"),o=t;var i=e("#metform_new_form_modal"),a=e(".modal-backdrop");i.hide(),a.hide()},async:!1}),i=jQuery(this).attr("resturl")+"builder/"+o,r.jQuery("body").attr("data-metform-template-load","false"),m.show(),a.show(),n.show(),s.contents().find("#elementor-loading").show(),s.css("z-index","-1"),s.attr("src",i),s.on("load",(function(){n.hide(),s.show(),s.contents().find("#elementor-loading").hide(),s.css("z-index","1")}))})),r.jQuery(".metform-form-update-close-btn").on("click",(function(t){if(t.preventDefault(),r.jQuery("body").hasClass("wp-admin")){var i,o=r.jQuery(".metform-dynamic-content-modal").find("#formpicker-control-iframe"),a=o[0].contentWindow||o[0].contentDocument;a.jQuery("#elementor-panel-saver-button-publish:not([disabled])").hasClass("elementor-disabled")?(r.jQuery(".metform-close-editor-modals").trigger("click"),window.location.reload()):e(a.jQuery("#elementor-panel-saver-button-publish")).length>0&&!e(a.jQuery("#elementor-panel-saver-button-publish"))[0].classList.contains("elementor-button-state")&&(a.jQuery("#elementor-panel-saver-button-publish:not([disabled])").trigger("click"),i=setInterval((function(){a.jQuery("#elementor-panel-saver-button-publish:not([disabled])").hasClass("elementor-disabled")&&(r.jQuery(".metform-close-editor-modals").trigger("click"),clearInterval(i),window.location.reload())}),100))}})),r.jQuery(".metform-close-editor-modals").on("click",(function(e){if(e.preventDefault(),jQuery(this).hasClass("metform-editor-close")){var a=r.jQuery(".metform-dynamic-content-modal").find("#formpicker-control-iframe"),s=a[0].contentWindow||a[0].contentDocument;s.jQuery("#elementor-panel-saver-button-publish").hasClass("elementor-disabled")?m(r):confirm("Leaving? Changes you made may not be saved.")?(s.jQuery(s).off("beforeunload"),m(r)):s.jQuery(s).off("beforeunload")}else jQuery(this).hasClass("metform-picker-close")?(m(r),t=r.jQuery("#metform-open-content-editor"),i=t.find(".metform-content-editor-radio:checked").val(),o=t.find(".metform-open-content-editor-templates").val(),"saved"===i&&r.jQuery("body").attr("data-metform-template-key",o),m(r)):m(r);r.jQuery("#metform-open-content-editor").find(".metform-picker-close").hide(),r.jQuery("#metform-open-content-editor").find(".metform-template-radio").removeAttr("checked").first().attr("checked","checked")})),e(".row-actions .edit a, .metform-form-edit-btn, body.post-type-metform-form a.row-title").on("click",(async function(t){t.preventDefault();var i,o=0,r=e("#metform_form_modal"),m=e(this).parents(".column-title"),f=e("body").attr("data-metform-template-key");if(r.addClass("loading"),r.modal("show"),m.length>0){o=e(this).attr("data-metform-form-id"),"undefined"!==f&&(o=f),o=o!==undefined?o:m.find(".hidden").attr("id").split("_")[1];var d=e("#metform-form-modalinput-settings").attr("data-nonce");const t=await fetch(window.metform_api.resturl+"metform/v1/forms/get/"+o,{method:"GET",headers:{"X-WP-Nonce":d}}),s=await t.json();i=s,a=s,D(s,o),r.removeClass("loading");const n=new CustomEvent("metform-integration-settings-event",{detail:{data:s},bubbles:!0,cancelable:!0,composed:!1});document.querySelector("#metform-form-modalinput-settings").dispatchEvent(n),function(t,i,o){e(".mf-helpscout").length&&e.ajax({url:window.metform_api.resturl+"metform/v1/forms/get_fields_data/"+t,type:"get",headers:{"X-WP-Nonce":i},dataType:"json",success:function(t){var i=t,a="";Object.keys(i).map((function(e){return[i[e]]})).map((e=>{a+="<option value="+e[0].mf_input_name+">"+e[0].mf_input_label+"</option>"}));var s='<div class="mf-input-group mf-input-group-inline">'+('<label class="attr-input-label">Subject*</label><div class="mf-inputs"><select class="attr-form-control" id="mf_helpscout_conversation_subject" name="mf_helpscout_conversation_subject">'+a+"</select></div>")+'</div><div class="mf-input-group mf-input-group-inline">'+('<label class="attr-input-label">Customer Email*</label><div class="mf-inputs"><select class="attr-form-control" id="mf_helpscout_conversation_customer_email" name="mf_helpscout_conversation_customer_email">'+a+"</select></div>")+'</div><div class="mf-input-group mf-input-group-inline">'+('<label class="attr-input-label">Customer First Name*</label><div class="mf-inputs"><select class="attr-form-control" id="mf_helpscout_conversation_customer_first_name" name="mf_helpscout_conversation_customer_first_name">'+a+"</select></div>")+'</div><div class="mf-input-group mf-input-group-inline">'+('<label class="attr-input-label">Customer Last Name*</label><div class="mf-inputs"><select class="attr-form-control" id="mf_helpscout_conversation_customer_last_name" name="mf_helpscout_conversation_customer_last_name">'+a+"</select></div>")+'</div><div class="mf-input-group mf-input-group-inline">'+('<label class="attr-input-label">Message*</label><div class="mf-inputs"><select class="attr-form-control" id="mf_helpscout_conversation_customer_message" name="mf_helpscout_conversation_customer_message">'+a+"</select></div>")+"</div>";e("#mf-helpscout-fileds").html(s),o.mf_helpscout_conversation_subject&&(e('#mf_helpscout_conversation_subject option[value="'+o.mf_helpscout_conversation_subject+'"]').prop("selected",!0),e('#mf_helpscout_conversation_customer_email option[value="'+o.mf_helpscout_conversation_customer_email+'"]').prop("selected",!0),e('#mf_helpscout_conversation_customer_first_name option[value="'+o.mf_helpscout_conversation_customer_first_name+'"]').prop("selected",!0),e('#mf_helpscout_conversation_customer_last_name option[value="'+o.mf_helpscout_conversation_customer_last_name+'"]').prop("selected",!0),e('#mf_helpscout_conversation_customer_message option[value="'+o.mf_helpscout_conversation_customer_message+'"]').prop("selected",!0))},error:function(e){}})}(o,d,s)}else{D({form_title:e(".mf-form-modalinput-title").attr("data-default-value"),admin_email_body:"",admin_email_from:"",admin_email_reply_to:"",admin_email_subject:"",capture_user_browser_data:"",enable_admin_notification:"",limit_total_entries_status:"",limit_total_entries:"0",redirect_to:"",success_url:"",failed_cancel_url:"",quiz_summery:"",require_login:"",store_entries:"1",user_email_attach_submission_copy:"1",entry_title:"",success_message:e(".mf-form-modalinput-success_message").attr("data-default-value"),user_email_body:"",user_email_from:"",user_email_reply_to:"",user_email_subject:"",input_names:"Example: [mf-inputname]"},o),r.removeClass("loading")}function p(e,t=""){let i="";return Array.isArray(e)&&e.map((e=>{const o=t===e[0].mf_input_name?" selected":"";i+="<option value="+e[0].mf_input_name+o+">"+e[0].mf_input_label+"</option>"})),i}e(".mf-register").length&&e.ajax({url:window.metform_api.resturl+"metform/v1/forms/get_fields_data/"+o,type:"get",headers:{"X-WP-Nonce":d},dataType:"json",success:function(t){var i=t,a="";e.ajax({url:window.metform_api.resturl+"xs/register/settings/"+o,type:"get",headers:{"X-WP-Nonce":d},dataType:"json",success:function(t){Object.keys(i).map((function(e){return[i[e]]})).map((e=>{a+="<option value="+e[0].mf_input_name+">"+e[0].mf_input_label+"</option>"}));var o='<div class="mf-input-group mf-input-group-inline">'+('<label class="attr-input-label">User Name</label><div class="mf-inputs"><select class="attr-form-control" id="mf_auth_reg_user_name" name="mf_auth_reg_user_name">'+a+"</select></div>")+'</div><div class="mf-input-group mf-input-group-inline">'+('<label class="attr-input-label">User Email</label><div class="mf-inputs"><select class="attr-form-control" id="mf_auth_reg_user_email" name="mf_auth_reg_user_email">'+a+"</select></div>")+'</div><div class="mf-input-group mf-input-group-inline"><label class="attr-input-label">Role</label><div class="mf-inputs"><select class="attr-form-control" id="mf_auth_reg_role" name="mf_auth_reg_role"><option value="administrator">Administrator</option><option value="editor">Editor</option><option value="author">Author</option><option value="contributor">Contributor</option><option selected="selected" value="subscriber">Subscriber</option></select></div></div>';e(".mf_register_form_fields").html(o),0!=t&&(e('#mf_auth_reg_user_name option[value="'+t.mf_auth_reg_user_name+'"]').prop("selected",!0),e('#mf_auth_reg_user_email option[value="'+t.mf_auth_reg_user_email+'"]').prop("selected",!0),e('#mf_auth_reg_role option[value="'+t.mf_auth_reg_role+'"]').prop("selected",!0))},error:function(e){}})},error:function(e){}}),e(".mf-login").length&&e.ajax({url:window.metform_api.resturl+"metform/v1/forms/get_fields_data/"+o,type:"get",headers:{"X-WP-Nonce":d},dataType:"json",success:function(t){var i=t,a="";e.ajax({url:window.metform_api.resturl+"xs/login/settings/"+o,type:"get",headers:{"X-WP-Nonce":d},dataType:"json",success:function(t){Object.keys(i).map((function(e){return[i[e]]})).map((e=>{a+="<option value="+e[0].mf_input_name+">"+e[0].mf_input_label+"</option>"}));var o='<div class="mf-input-group mf-input-group-inline">'+('<label class="attr-input-label">User Name</label><div class="mf-inputs"><select class="attr-form-control" id="mf_auth_login_user_name" name="mf_auth_login_user_name">'+a+"</select></div>")+'</div><div class="mf-input-group mf-input-group-inline">'+('<label class="attr-input-label">User Password</label><div class="mf-inputs"><select class="attr-form-control" id="mf_auth_login_user_password" name="mf_auth_login_user_password">'+a+"</select></div>")+"</div>";e(".mf_login_form_fields").html(o),0!=t&&(e('#mf_auth_login_user_name option[value="'+t.mf_auth_login_user_name+'"]').prop("selected",!0),e('#mf_auth_login_user_password option[value="'+t.mf_auth_login_user_password+'"]').prop("selected",!0))},error:function(e){}})},error:function(e){}}),e(".mf-form-to-post").length&&e.ajax({url:window.metform_api.resturl+"metform/v1/forms/get_fields_data/"+o,type:"get",headers:{"X-WP-Nonce":d},dataType:"json",success:function(t){var i=t,a="";e.ajax({url:window.metform_api.resturl+"xs/post/settings/"+o,type:"get",headers:{"X-WP-Nonce":d},dataType:"json",success:function(t){var o=Object.keys(i).map((function(e){return[i[e]]}));o.map((e=>{a+="<option value="+e[0].mf_input_name+">"+e[0].mf_input_label+"</option>"}));var s='<label class="attr-input-label">Title</label><div class="mf-inputs"><select class="attr-form-control mf_post_submission_title" id="mf_post_submission_title" name="mf_post_submission_title">'+a+"</select></div>",n='<label class="attr-input-label">Content</label><div class="mf-inputs"><select class="attr-form-control mf_post_submission_content" id="mf_post_submission_content" name="mf_post_submission_content">'+a+"</select></div>",r='<label class="attr-input-label">Featured Image</label><div class="mf-inputs"><select class="attr-form-control mf_post_submission_featured_image" id="mf_post_submission_featured_image" name="mf_post_submission_featured_image">'+a+"</select></div>",m=c(a);if(0!=t.custom_fields_settings){m="";var f=Object.entries(t.custom_fields_settings);for(const[e,t]of f)m+=c(p(o,t),e,t)}var d='<div class="mf-input-group mf-input-group-inline">'+s+'</div><div class="mf-input-group mf-input-group-inline">'+n+'</div></div><div class="mf-input-group mf-input-group-inline">'+r+'</div><div class="mf-input-group mf-input-group-inline">'+function(e,t){return'<label class="attr-input-label">Custom Fields</label>\n <div class="mf-inputs mf-cf-fields">\n <div style="display:none">\n <div id="mf-cf-single-field" class="mf-cf-single-field"">\n <div class="mf-cf-single-field-input">\n <label>Name</label>\n <input type="text" name="mf_post_submission_custom_fields_name[]" class="attr-form-control" >\n </div>\n <div class="mf-cf-single-field-input">\n <label>Select Field</label>\n <select name="mf_post_submission_mf_field_name[]" class="attr-form-control">'+t+'</select>\n </div>\n <a href="#" class="mf-btn-del-singl-field">Delete</a>\n </div>\n </div>\n <div class="repeaterResult">'+e+'</div>\n <button class="mf-add-cf" type="button"><span>+</span></button>\n </div>'}(m,a)+"</div>";e(".mf-post-submission-fields-section").html(d);var u=0;e(".mf-add-cf").click((function(){var t=e("#mf-cf-single-field").clone();u++,t.attr("id","mf-repeater-field-"+u),e(".mf-btn-del-singl-field",t).attr("data-id",u),t.appendTo(e(".repeaterResult")),l()})),l(),0!=t.fields_settings&&(e('.mf_post_submission_post_type option[value="'+t.fields_settings.mf_post_submission_post_type+'"]').prop("selected",!0),e('.mf_post_submission_title option[value="'+t.fields_settings.mf_post_submission_title+'"]').prop("selected",!0),e('.mf_post_submission_content option[value="'+t.fields_settings.mf_post_submission_content+'"]').prop("selected",!0),e('.mf_post_submission_featured_image option[value="'+t.fields_settings.mf_post_submission_featured_image+'"]').prop("selected",!0),e('.mf_post_submission_author option[value="'+t.fields_settings.mf_post_submission_author+'"]').prop("selected",!0))},error:function(e){}})},error:function(e){}}),function(t){var i=e("#metform-form-modalinput-settings").attr("data-nonce"),o=e(".get-response-campaign-list");e.ajax({url:window.metform_api.resturl+"metform/v1/entries/get_response_list/"+t,type:"get",headers:{"X-WP-Nonce":i},dataType:"json",success:function(e){o.empty(),e.length&&e.forEach((e=>{o.append("<option value="+e.campaignId+">"+e.description+"</option>")}))},error:function(e){}})}(o),function(t){var i=e(".metfrom-btn-refresh-hubsopt-list");i.addClass("mf-setting-spin");var o=e("#metform-form-modalinput-settings").attr("data-nonce"),a=e(".hubspot_forms"),s=t;e.ajax({url:window.metform_api.resturl+"metform/v1/forms/get_hubspot_forms/"+s,type:"get",headers:{"X-WP-Nonce":o},dataType:"json",success:function(t){var o=e(".mf_hubspot_form_guid").val();try{a.empty(),a.append('<option value="select">Select a form</option>'),t.forEach((e=>{var t="";e.guid===o&&(t='selected="selected"'),a.append("<option "+t+" value="+e.portalId+" guid="+e.guid+">"+e.name+"</option>")}))}catch(s){}i.removeClass("mf-setting-spin")},error:function(e){i.removeClass("mf-setting-spin")}})}(o),function(t,i){if(s){s=!1;var o=e(".mf_hubspot_form_guid").val(),a=e("#metform-form-modalinput-settings").attr("data-nonce");e("#mf-hubsopt-fileds").html("Please wait...."),e.ajax({url:window.metform_api.resturl+"metform/v1/forms/get_fields_data/"+t,type:"get",headers:{"X-WP-Nonce":a},dataType:"json",success:function(s){e.ajax({url:window.metform_api.resturl+"metform/v1/forms/hubspot_form_fields/"+t,type:"post",headers:{"X-WP-Nonce":a},dataType:"json",data:{guid:o},success:function(t){var o="",a="mf_hubspot_form_field_name_";t.forEach((e=>{var t=a+e.name;if(t in i){var n="";for(const e in s){var r="";i[t]===s[e].mf_input_name&&(r='selected="selected"'),n+=`<option ${r} value="${e}">${s[e].mf_input_label}</option>`}o+="<tr><td>"+e.label+"</td><td><select name="+a+e.name+' class="attr-form-control">'+n+"</select></td></tr>"}})),e("#mf-hubsopt-fileds").html('<table width="100%">'+o+"</table>")},error:function(t){401===t?.responseJSON?.code?(e("#mf-hubsopt-fileds").html("<span class='mf-input-warning'>Please connect your HubSpot account.</span>"),e(".hubspot_forms").empty()):e("#mf-hubsopt-fileds").html("<span class='mf-input-warning'>Please click the <span class='dashicons dashicons-update'></span> button to fetch forms and then select a form from the list.</span>")}})},error:function(t){e("#mf-hubsopt-fileds").html("Sorry ! Something went wrong")}})}}(o,i),function(t){e("#metform_form_modal");var i,o=e("#metform-form-modalinput-settings").attr("data-nonce"),a=e(".mailchimp_list");i=t,e.ajax({url:window.metform_api.resturl+"metform/v1/entries/get_mailchimp_list/"+i,type:"get",headers:{"X-WP-Nonce":o},dataType:"json",success:function(t){try{a.empty(),t.lists.forEach((e=>{a.append("<option value="+e.id+">"+e.name+"</option>")})),1===t.lists.length?e(".mf-mailchimp-list-id").attr("value",t.lists[0].id):(n(),e(".mailchimp_list").on("change",(t=>{e(".mf-mailchimp-list-id").attr("value",t.target.value)})))}catch(i){}},error:function(e){}})}(o),function(t,i){let o=e("#mf-aweber-fields"),a=e("option:selected",this).val();if(!a)return void o.html("");o.html("Please wait....");let s=e("#metform-form-modalinput-settings").attr("data-nonce"),n="";e.ajax({url:window.metform_api.resturl+"metform/v1/forms/get_fields_data/"+t,type:"get",headers:{"X-WP-Nonce":s},dataType:"json",success:function(r){n=r;let m=metform_api.admin_url+"admin-ajax.php",l={action:"get_aweber_custom_fields",selectedValue:a,formId:t,nonce:s};e.ajax({url:m,type:"post",data:l,headers:{"X-WP-Nonce":s},dataType:"json",success:function(e){let t=e.data;if("ok"===t.result)if(t.custom_fields.error)o.html("");else{let e,a="",s=Object.keys(n).map((function(e){return[n[e]]})),r="mf_aweber_custom_field_name_",m="mf_aweber_custom_field_label_";t.custom_fields.entries.forEach((t=>{let o;e="",s.map((a=>{o="";let s=i[r+t.id];s&&a[0].mf_input_name===s.field_key&&(o='selected="selected"'),e+="<option value="+a[0].mf_input_name+" "+o+" >"+a[0].mf_input_label+"</option>"})),a+="<tr><td>"+t.name+'</td><td><input type="hidden" name="'+m+t.id+'" value="'+t.name+'" /><select name='+r+t.id+' class="attr-form-control">'+e+"</select></td></tr>"})),o.html('<table width="100%">'+a+"</table>")}else o.html("")},error:function(e){o.html(""),console.log("Error: "+e)}})},error:function(t){e("#mf-aweber-fields").html("Sorry ! Something went wrong")}})}(o,i),r.find("form").attr("data-mf-id",o),r.find(".get-response-campaign-list").attr("get-response-list-id",o)})),e("#metform-add-new-form-model__form-type").on("change",(function(){var t=this.value,i=e(this).attr("data-nonce"),o=e(this).parent(".metform-template-form-type").siblings(".metform-templates-list");e.ajax({url:window.metform_api.resturl+"metform/v1/forms/gel_form_templates/new?formtype="+t,type:"get",headers:{"X-WP-Nonce":i},dataType:"json",beforeSend:function(){o.css({opacity:"0.3","pointer-events":"none"})},success:function(e){o.find("li").not(":first").remove(),o.find("li").after(e),o.css({opacity:"1","pointer-events":"auto"})},error:function(e){console.log(e)}})})),e(".metform-form-save-btn-editor").on("click",(function(){e(".metform-form-save-btn-editor").attr("disabled",!0);var t=e("#metform-form-modalinput-settings");t.attr("data-open-editor","1"),t.trigger("submit")})),e("#metform-form-modalinput-settings").on("submit",(function(t){t.preventDefault();var i=e("#metform-form-modal"),o=e(this);i.addClass("loading"),e(".metform-form-save-btn-editor").attr("disabled",!0),e(".metform-form-save-btn").attr("disabled",!0);var a=e(this).serialize(),s=e(this).attr("data-mf-id"),n=e(this).attr("data-open-editor"),r=e(this).attr("data-editor-url"),m=e(this).attr("data-nonce");e.ajax({url:window.metform_api.resturl+"metform/v1/forms/update/"+s,type:"post",data:a,headers:{"X-WP-Nonce":m},dataType:"json",success:function(t){e("#message").css("display","block"),1==t.saved?(e("#post-"+t.data.id).find(".row-title").html(t.data.title),e("#message").removeClass("attr-alert-warning").addClass("attr-alert-success").html(t.status)):e("#message").removeClass("attr-alert-success").addClass("attr-alert-warning").html(t.status),setTimeout((function(){e("#message").css("display","none"),o.find(".attr-close").trigger("click")}),1e3),i.removeClass("loading"),"1"==n&&1==t.saved?setTimeout((function(){window.location.href=r+"?post="+t.data.id+"&action=elementor"}),1e3):"0"!=s?(e(".metform-form-save-btn-editor").removeAttr("disabled"),e(".metform-form-save-btn").removeAttr("disabled")):"0"==s&&setTimeout((function(){location.reload()}),1e3)}})}));var f=e(".mf-entry-title"),d=e(".mf-form-user-confirmation"),p=e(".mf-form-admin-notification"),u=e(".mf-input-rest-api-group"),_=e(".mf-mailchimp"),h=e(".mf-get_response"),v=e(".mf-zapier"),g=e(".mf-slack"),b=e(".mf-fluent"),k=e(".mf-sms"),w=e(".mf-sms-user"),y=e(".mf-sms-admin"),j=e(".mf-form-modalinput-sms"),x=e(".mf-form-modalinput-sms-user"),A=e(".mf-form-modalinput-sms-admin"),C=e(".mf-paypal"),T=e(".mf-stripe"),P=e(".mf-ckit"),N=e(".mf-aweber"),W=e(".mf-mail-poet"),X=e(".mf-form-email-verification");let Q=".mf-active-campaign",S=e("input"+Q),E=e("div"+Q);function z(t,i=null){var o=e("#metform-form-modalinput-settings").attr("data-nonce");e('.mf-mailster-list-id option[value="'+t+'"]').prop("selected",!0),e.ajax({url:window.metform_api.resturl+"metform/v1/forms/get_fields_data/"+i,type:"get",headers:{"X-WP-Nonce":o},dataType:"json",success:function(o){var a=o,s="";Object.keys(a).map((function(e){return[a[e]]})).map((e=>{s+="<option value="+e[0].mf_input_name+">"+e[0].mf_input_label+"</option>"})),function(t,i,o){var a=e("#metform-form-modalinput-settings").attr("data-nonce");e.ajax({url:window.metform_api.resturl+"metform/v1/forms/get_mailster_form/"+t,type:"get",headers:{"X-WP-Nonce":a},dataType:"json",success:function(t){var a="";for(const[e,o]of Object.entries(t))if("fields"==e)for(const[e,t]of Object.entries(o))a+='<div class="mf-input-group mf-input-group-inline"><label class="attr-input-label">'+t.name+'</label><div class="mf-inputs"><select class="attr-form-control" id="mailster_field_'+e+'" name="mailster_field_'+e+'">'+i+"</select></div></div>";e(".mf-mailster-settings-section").html(a),function(t,i){var o=window.mf_mailster_list_id;if(e(".mf-mailster-list-id").val()==o){var a=e("#metform-form-modalinput-settings").attr("data-nonce");e.ajax({url:window.metform_api.resturl+"metform/v1/forms/get_mailster_form_data/"+i,type:"get",headers:{"X-WP-Nonce":a},dataType:"json",success:function(t){for(const[i,o]of Object.entries(t))for(const[t,i]of Object.entries(o))e("#"+t+' option[value="'+i+'"]').prop("selected",!0)},error:function(e){}})}}(0,o)},error:function(e){}})}(t,s,i)},error:function(e){}})}function D(t,i){if(f.hide(),d.hide(),p.hide(),u.hide(),_.hide(),v.hide(),g.hide(),C.hide(),T.hide(),P.hide(),N.hide(),W.hide(),""!=t.form_title){e(".mf-form-modalinput-title").val(t.form_title),e(".mf-form-modalinput-success_message").val(t.success_message),e(".mf-entry-title-input").val("undefined"!=typeof t.entry_title&&""!=t.entry_title?t.entry_title:"undefined"==typeof t.entry_title||""==t.entry_title?"Entry # [mf_id]":""),e(".mf-form-modalinput-redirect_to").val(t.redirect_to),e(".mf-form-modalinput-success_url").val(t.success_url),e(".mf-form-modalinput-failed_cancel_url").val(t.failed_cancel_url),e(".mf-form-modalinput-limit_total_entries").val(t.limit_total_entries),e(".mf-form-email-verification-email-subject").val(t.email_verification_email_subject),e(".mf-form-email-verification-email-redirect").val(t.email_verification_confirm_redirect),e(".mf-form-email-verification-heading").val(t.email_verification_heading),e(".mf-form-email-verification-paragraph").val(t.email_verification_paragraph);let i=e(".mf-form-email-verification-enable");"1"==t.email_verification_enable?(i.attr("checked",!0),X.show()):(i.removeAttr("checked"),X.hide());let u=e(".mf_automizy_list_id");u&&u.val(t.mf_automizy_list_id);var o=e(".mf-form-modalinput-store_entries");"1"==t.store_entries?(o.attr("checked",!0),f.show()):(o.removeAttr("checked"),f.hide());var a=e(".mf-form-modalinput-hide_form_after_submission");"1"==t.hide_form_after_submission?a.attr("checked",!0):a.removeAttr("checked");var s=e(".mf-form-modalinput-require_login");"1"==t.require_login?s.attr("checked",!0):s.removeAttr("checked");var r=e(".mf-form-modalinput-quiz_result_show");"1"==t.quiz_summery?r.attr("checked",!0):r.removeAttr("checked");var m=e(".mf-form-modalinput-limit_status");"1"==t.limit_total_entries_status?m.attr("checked",!0):m.removeAttr("checked");var l=e(".mf-form-modalinput-count_views");"1"==t.count_views?l.attr("checked",!0):l.removeAttr("checked");var c=e(".mf-form-modalinput-stop_vertical_scrolling");"1"==t.mf_stop_vertical_scrolling?c.attr("checked",!0):c.removeAttr("checked");var h=e(".mf-form-modalinput-multiple_submission");"1"==t.multiple_submission?h.attr("checked",!0):h.removeAttr("checked");var Q=e(".mf-form-modalinput-enable_recaptcha");"1"==t.enable_recaptcha?Q.attr("checked",!0):Q.removeAttr("checked");var D=e(".mf-form-modalinput-capture_user_browser_data");"1"==t.capture_user_browser_data?(D.attr("checked",!0),e("#multiple_submission").removeClass("hide_input"),e("#multiple_submission").addClass("show_input")):D.removeAttr("checked"),e(".mf-form-user-email-subject").val(t.user_email_subject),e(".mf-form-user-email-from").val(t.user_email_from),e(".mf-form-user-reply-to").val(t.user_email_reply_to),e(".mf-form-user-email-body").val(t.user_email_body);var O=e(".mf-form-user-enable");"1"==t.enable_user_notification?(O.attr("checked",!0),d.show()):(O.removeAttr("checked"),d.hide());var I=e(".mf-form-user-submission-copy");"1"==t.user_email_attach_submission_copy?I.attr("checked",!0):I.removeAttr("checked"),e(".mf-form-admin-email-subject").val(t.admin_email_subject),e(".mf-form-admin-email-from").val(t.admin_email_from),e(".mf-form-admin-email-to").val(t.admin_email_to),e(".mf-form-admin-reply-to").val(t.admin_email_reply_to),e(".mf-form-admin-email-body").val(t.admin_email_body);var q=e(".mf-form-admin-enable");"1"==t.enable_admin_notification?(q.attr("checked",!0),p.show()):(q.removeAttr("checked"),p.hide());var U=e(".mf-form-admin-submission-copy");"1"==t.admin_email_attach_submission_copy?U.attr("checked",!0):U.removeAttr("checked");var F=e(".mf-form-modalinput-rest_api");"1"==t.mf_rest_api?(F.attr("checked",!0),e(".mf-rest-api").show()):(F.removeAttr("checked"),e(".mf-rest-api").hide());var G=e(".mf-form-modalinput-mail_chimp");"1"==t.mf_mail_chimp?(G.attr("checked",!0),_.show()):(G.removeAttr("checked"),_.hide());var L=e(".mf-form-modal_input-google_sheet");"1"==t.mf_google_sheet?L.attr("checked",!0):L.removeAttr("checked");let z=e(".mf-form-modalinput-ckit"),le=e(".mf-form-modalinput-mail_aweber"),ce=e(".mf-form-modalinput-mail_poet");if("1"==t.mf_convert_kit?(z.attr("checked",!0),P.show()):(z.removeAttr("checked"),P.hide()),"1"==t.mf_mail_aweber?(le.attr("checked",!0),N.show()):(le.removeAttr("checked"),N.hide()),"1"==t.mf_mail_poet?(ce.attr("checked",!0),W.show()):(ce.removeAttr("checked"),W.hide()),t.ckit_opt){let i=e("select.mf-ckit-list-id").first(),o=t.mf_ckit_list_id||"";i.html(),t.ckit_opt.forEach((function(e){i.append('<option value="'+e.id+'">'+e.name+"</option>")})),i.val(o)}if(t.aweber_opt){let i=e("select.mf-aweber-list-id").first(),o=t.mf_aweber_list_id||"";i.html(i.find("option.mf_aweber_default_option").clone());for(let e in t.aweber_opt)i.append('<option value="'+t.aweber_opt[e].id+'">'+t.aweber_opt[e].name+"</option>");i.val(o)}if(t.mp_opt){let i=e("select.mf-mail-poet-list-id").first(),o=t.mf_mail_poet_list_id||"";i.html();for(let e in t.mp_opt)i.append('<option value="'+t.mp_opt[e].id+'">'+t.mp_opt[e].name+"</option>");i.val(o)}if("1"===t.mf_active_campaign){S.attr("checked",!0),E.show();let i=t.mf_active_campaign_list_id||"",o=t.mf_active_campaign_tag_id||"";e("select[name=mf_active_campaign_list_id]").val(i),e("select[name=mf_active_campaign_tag_id]").val(o)}else S.removeAttr("checked"),E.hide();var R=e(".mf-form-modalinput-get_response");"1"==t.mf_get_response?(R.attr("checked",!0),e(".mf-get_response").show()):(R.removeAttr("checked"),e(".mf-get_response").hide());var $=e(".mf-hubsopt");"1"==t.mf_hubspot?$.attr("checked",!0):$.removeAttr("checked");var V=e(".mf-hubspot-forms"),H=e(".hubspot_forms_section");"1"==t.mf_hubspot_forms?(V.attr("checked",!0),H.show()):(V.removeAttr("checked"),H.hide()),e(".mf_hubspot_form_portalId").val(t.mf_hubspot_form_portalId),e(".mf_hubspot_form_guid").val(t.mf_hubspot_form_guid);var J=e(".mf-zoho");"1"==t.mf_zoho?J.attr("checked",!0):J.removeAttr("checked");var K=e(".mf-helpscout");"1"==t.mf_helpscout?(K.attr("checked",!0),e(".helpscout_forms_section").show()):(K.removeAttr("chekced"),e(".helpscout_forms_section").hide()),t.mf_helpscout_mailbox&&e('#mf_helpscout_mailbox option[value="'+t.mf_helpscout_mailbox+'"]').prop("selected",!0);var M=e(".mf-form-modalinput-mailster"),B=e(".mf-mailster-settings-section");"1"==t.mf_mailster?(M.attr("checked",!0),B.show(),e(".mf-mailster-forms").show()):(M.removeAttr("checked"),B.hide(),e(".mf-mailster-forms").hide());var Y=e(".mf-register");1==t.mf_registration?(Y.attr("checked",!0),e(".mf_register_form_fields").show()):(Y.removeAttr("checked"),e(".mf_register_form_fields").hide());var Z=e(".mf-login");1==t.mf_login?(Z.attr("checked",!0),e(".mf_login_form_fields").show()):(e(".mf_login_form_fields").hide(),Z.removeAttr("checked"));var ee=e(".mf-form-to-post"),te=e(".mf-form-to-post-fields");1==t.mf_form_to_post?(ee.attr("checked",!0),te.show()):(ee.removeAttr("checked"),te.hide());var ie=e(".mf-form-modalinput-zapier");"1"==t.mf_zapier?(ie.attr("checked",!0),v.show()):(ie.removeAttr("checked",!0),v.hide());var oe=e(".mf-form-modalinput-slack");"1"==t.mf_slack?(oe.attr("checked",!0),g.show()):(oe.removeAttr("checked",!0),g.hide());var ae=e(".mf-form-modalinput-fluent");if("1"==t.mf_fluent?(ae.attr("checked",!0),b.show()):(ae.removeAttr("checked",!0),b.hide()),"1"==t.mf_sms_user_status?(x.attr("checked",!0),w.show()):(x.removeAttr("checked",!0),w.hide()),"1"==t.mf_sms_admin_status?(A.attr("checked",!0),y.show()):(A.removeAttr("checked",!0),y.hide()),"1"==t.mf_sms_status?(j.attr("checked",!0),k.show()):(j.removeAttr("checked",!0),k.hide(),x.removeAttr("checked",!0),w.hide(),A.removeAttr("checked",!0),y.hide()),t.mf_payment_currency){e("select.mf_payment_currency").val(t.mf_payment_currency)}let fe=e(".mf-form-modalinput-paypal");"1"==t.mf_paypal?(fe.attr("checked",!0),C.show()):(fe.removeAttr("checked",!0),C.hide());var se=e(".mf-form-modalinput-stripe");"1"==t.mf_stripe?(se.attr("checked",!0),T.show()):(se.removeAttr("checked",!0),T.hide());se=e(".mf-form-modalinput-stripe");"1"==t.mf_stripe?(se.attr("checked",!0),T.show()):(se.removeAttr("checked",!0),T.hide());var ne=e(".mf-form-modalinput-paypal_sandbox");"1"==t.mf_paypal_sandbox?ne.attr("checked",!0):ne.removeAttr("checked",!0);var re=e(".mf-form-modalinput-stripe_sandbox");"1"==t.mf_stripe_sandbox?re.attr("checked",!0):re.removeAttr("checked",!0);var me=t.mf_rest_api_method&&t.mf_rest_api_method.length?t.mf_rest_api_method:"POST";e('.mf-rest-api-method option[value="'+me+'"]').prop("selected",!0),e(".mf-rest-api-url").val(t.mf_rest_api_url),e(".mf-mailchimp-api-key").val(t.mf_mailchimp_api_key),e(".mf-mailchimp-list-id").val(t.mf_mailchimp_list_id),""==t.mf_mailchimp_list_id&&e(".mf-mailchimp-list-id").val(e(".mailchimp_list").find(":selected").val()),0!=t.mf_mailchimp_list_id&&e('.mailchimp_list option[value="'+t.mf_get_response_list_id+'"]').prop("selected",!0),n(),e(".mf-get_response-list-id").val(t.mf_get_response_list_id),0!=t.mf_get_response_list_id&&e('.get-response-campaign-list option[value="'+t.mf_get_response_list_id+'"]').prop("selected",!0),e(".mf-zapier-web-hook").val(t.mf_zapier_webhook),e(".mf-slack-web-hook").val(t.mf_slack_webhook),e(".mf-fluent-web-hook").val(t.mf_fluent_webhook),e(".mf-sms-from").val(t.mf_sms_from),e(".mf-sms-twilio-account-sid").val(t.mf_sms_twilio_account_sid),e(".mf-sms-twilio-auth-token").val(t.mf_sms_twilio_auth_token),e(".mf-sms-user-body").val(t.mf_sms_user_body),e(".mf-sms-admin-body").val(t.mf_sms_admin_body),e(".mf-sms-admin-to").val(t.mf_sms_admin_to),e(".mf-paypal-email").val(t.mf_paypal_email),e(".mf-paypal-token").val(t.mf_paypal_token),e(".mf-stripe-image-url").val(t.mf_stripe_image_url),e(".mf-stripe-live-publishiable-key").val(t.mf_stripe_live_publishiable_key),e(".mf-stripe-live-secret-key").val(t.mf_stripe_live_secret_key),e(".mf-stripe-test-publishiable-key").val(t.mf_stripe_test_publishiable_key),e(".mf-stripe-test-secret-key").val(t.mf_stripe_test_secret_key),e(".mf-recaptcha-site-key").val(t.mf_recaptcha_site_key),e(".mf-recaptcha-secret-key").val(t.mf_recaptcha_secret_key),e("input.mf-form-modalinput-limit_status, .mf-form-modalinput-rest_api").trigger("change")}(window.mf_mailster_list_id=t.mf_mailster_list_id,e('.mf-mailster-list-id option[value="'+t.mf_mailster_list_id+'"]').prop("selected",!0),e(".mf-form-modalinput-mailster").length)&&z(e(".mf-mailster-list-id").find(":selected").val(),e("#metform_form_modal").find("form").attr("data-mf-id"))}e("input.mf-form-modalinput-store_entries").on("change",(function(){e(this).is(":checked")?f.show():e(this).is(":not(:checked)")&&f.hide()})),e("input.mf-form-modalinput-limit_status").on("change",(function(){e(this).is(":checked")?e("#limit_status").find("input").removeAttr("disabled"):e(this).is(":not(:checked)")&&e("#limit_status").find("input").attr("disabled","disabled")})),e("input.mf-form-user-enable").on("change",(function(){e(this).is(":checked")?d.show():e(this).is(":not(:checked)")&&d.hide()})),e("input.mf-form-admin-enable").on("change",(function(){e(this).is(":checked")?p.show():e(this).is(":not(:checked)")&&p.hide()})),e("input.mf-form-modalinput-rest_api").on("change",(function(){e(this).is(":checked")?u.show():e(this).is(":not(:checked)")&&u.hide()})),e("input.mf-form-modalinput-mail_chimp").on("change",(function(){e(this).is(":checked")?_.show():e(this).is(":not(:checked)")&&_.hide()})),e(".mf-form-modalinput-get_response").on("change",(function(){e(this).is(":checked")?h.show():h.hide()})),e("input.mf-form-email-verification-enable").on("change",(function(){e(this).is(":checked")?X.show():e(this).is(":not(:checked)")&&X.hide()})),S.on("change",(function(){e(this).is(":checked")?E.show():E.hide()})),e("input.mf-form-modalinput-mail_aweber").on("change",(function(){e(this).is(":checked")?N.show():e(this).is(":not(:checked)")&&N.hide()})),e("input.mf-form-modalinput-mail_poet").on("change",(function(){e(this).is(":checked")?W.show():e(this).is(":not(:checked)")&&W.hide()})),e("input.mf-form-modalinput-ckit").on("change",(function(){e(this).is(":checked")?P.show():e(this).is(":not(:checked)")&&P.hide()})),e("input.mf-form-modalinput-zapier").on("change",(function(){e(this).is(":checked")?v.show():e(this).is(":not(:checked)")&&v.hide()})),e("input.mf-form-modalinput-slack").on("change",(function(){e(this).is(":checked")?g.show():e(this).is(":not(:checked)")&&g.hide()})),e("input.mf-form-modalinput-fluent").on("change",(function(){e(this).is(":checked")?b.show():e(this).is(":not(:checked)")&&b.hide()})),e("input.mf-form-modalinput-sms-user").on("change",(function(){e(this).is(":checked")?w.show():e(this).is(":not(:checked)")&&w.hide()})),e("input.mf-form-modalinput-sms-admin").on("change",(function(){e(this).is(":checked")?y.show():e(this).is(":not(:checked)")&&y.hide()})),e("input.mf-form-modalinput-sms").on("change",(function(){e(this).is(":checked")?k.show():e(this).is(":not(:checked)")&&(k.hide(),x.removeAttr("checked",!0),w.hide(),A.removeAttr("checked",!0),y.hide())})),e("input.mf-form-modalinput-paypal").on("change",(function(){e(this).is(":checked")?C.show():e(this).is(":not(:checked)")&&C.hide()})),e("input.mf-form-modalinput-stripe").on("change",(function(){e(this).is(":checked")?stripe.show():e(this).is(":not(:checked)")&&stripe.hide()})),e("input.mf-form-modalinput-stripe_sandbox").on("change",(function(){e(this).is(":checked")?e(".mf_stripe_sandbox").show():e(this).is(":not(:checked)")&&e(".mf_stripe_sandbox").hide()})),e(".mf-hubspot-forms").on("change",(function(){e(this).is(":checked")?e(".hubspot_forms_section").show():e(".hubspot_forms_section").hide()})),e(".mf-register").on("change",(function(){e(this).is(":checked")?e(".mf_register_form_fields").show():e(".mf_register_form_fields").hide()})),e(".mf-login").on("change",(function(){e(this).is(":checked")?e(".mf_login_form_fields").show():e(".mf_login_form_fields").hide()})),e(".mf-form-to-post").on("change",(function(){e(this).is(":checked")?e(".mf-form-to-post-fields").show():e(".mf-form-to-post-fields").hide()})),e(".mf-helpscout").on("change",(function(){e(this).is(":checked")?e(".helpscout_forms_section").show():e(".helpscout_forms_section").hide()})),e(".mf-form-modalinput-mailster").on("change",(function(){e(this).is(":checked")?(e(".mf-mailster-settings-section").show(),e(".mf-mailster-forms").show()):(e(".mf-mailster-settings-section").hide(),e(".mf-mailster-forms").hide())})),e(".mf-mailster-list-id").on("change",(function(){e(this).val(),e("#metform-form-modalinput-settings").attr("data-mf-id")})),e(".get-response-campaign-list").on("change",(function(){e(".mf-get_response-list-id ").val(e(this).val())})),e("input.mf-form-modalinput-capture_user_browser_data").click((function(){e(this).is(":checked")?(e("#multiple_submission").removeClass("hide_input"),e("#multiple_submission").addClass("show_input")):e(this).is(":not(:checked)")&&(e("#multiple_submission").removeClass("show_input"),e("#multiple_submission").addClass("hide_input"))})),e(".mf-settings-tab .mf-setting-nav-link").on("click",(function(t){if(!e(this).hasClass("mf-setting-nav-hidden")){t.preventDefault();var i=e(this).attr("href");window.location.hash=i,e(this).parent().addClass("nav-tab-active").siblings().removeClass("nav-tab-active"),e(i).addClass("active").siblings().removeClass("active")}})),e(".mf-setting-nav-link").on("click",(function(t){e(this).hasClass("mf-setting-nav-hidden")?t.preventDefault():(e(this).parents(".nav-tab-wrapper").find("a").removeClass("top").removeClass("bottom"),e(this).parents("li").prev().find("a").addClass("top"),e(this).parents("li").next().find("a").addClass("bottom"))}));var O=e(".mf-settings-tab .mf-setting-nav-link").eq(1).attr("href");if(window.location.hash&&(O=window.location.hash),e('.mf-settings-tab .mf-setting-nav-link[href="'+O+'"]').trigger("click"),e(window).on("resize.mfSettings",(function(){e(".mf-setting-sidebar").css("width",e(".mf-setting-sidebar-column").width())})).trigger("resize.mfSettings"),e(".mf-setting-header").length>0){var I=e(".mf-setting-header").offset().top;e(window).scroll((function(){var t=e(".mf-setting-header");e(window).scrollTop()>=I?t.addClass("fixed").css({width:jQuery(".metform-admin-container").width()}):t.removeClass("fixed").css({width:"auto"})}))}function q(){return e("#metform-form-modalinput-settings").attr("data-nonce")}function U(){return e("#mf_wp_rest_nonce").val()}e(".mf-admin-single-accordion").on("click",".mf-admin-single-accordion--heading",(function(){e(this).next().slideToggle().parent().toggleClass("active").siblings().removeClass("active").find(".mf-admin-single-accordion--body").slideUp()})),e(".mf-admin-single-accordion:first-child .mf-admin-single-accordion--heading").trigger("click"),e(".mf-recaptcha-version").on("change",(function(){var t=e(this).val();e("#mf-"+t).fadeIn().siblings().hide()})),e(".mf-recaptcha-version").trigger("change"),e(".mf-form-modalinput-stripe_sandbox").on("change",(function(){var t=e(this).parents(".attr-form-group").eq(0).next(".mf-form-modalinput-stripe_sandbox_keys");e(this).is(":checked")?t.fadeIn():t.fadeOut()})),e(".mf-form-modalinput-stripe_sandbox").trigger("change"),e(document).on("click","#met_pro_aweber_authorize",(function(t){t.preventDefault();let i=e(this).closest("p.description");i.html("<span>Wait....</span>");var o=metform_api.admin_url+"admin-ajax.php",a={action:"get_aweber_authorization_url",api_key:e("#mf_aweber_dev_api_key").val(),api_sec:e("#mf_aweber_dev_api_sec").val()};e.ajax({url:o,method:"POST",data:a,headers:{"X-WP-Nonce":U()},dataType:"json",success:function(e){if(!0===e.success){let t='<a class=" button mf-setting-btn-link" href="'+e.data.url+'">Authorize The App </a>';i.html(t)}else if(e.data){let t=e.data;i.html('<span style="background-color: red; padding: 1px 5px;">'+t.msg+"</span>")}},error:function(e){i.html('<span style="color: red"> ajax error occurred, please check your internet connection..</span>')},complete:function(){}})})),e(document).on("click","#met_pro_aweber_propmpt_re_auth",(function(t){t.preventDefault(),e("#mf_aweber_dev_api_key").val("").prop("disabled",!1),e("#mf_aweber_dev_api_sec").val("").prop("disabled",!1),e(this).closest("p.description").html('<a class="button mf-setting-btn-link" id="met_pro_aweber_re_authorize"> Get Re - Authorization URL </a>')})),e(document).on("click","#met_pro_aweber_re_authorize",(function(t){t.preventDefault();let i=e(this).closest("p.description");i.html("<span>Wait....</span>");let o=e("#mf_aweber_dev_api_key").val();if(!o||o.length<1)return i.html('<span style="color: red">API Key can not be empty..</span>'),!1;var a=metform_api.admin_url+"admin-ajax.php",s={action:"get_aweber_re_authorization_url",api_key:o,api_sec:e("#mf_aweber_dev_api_sec").val()};e.ajax({url:a,method:"POST",data:s,headers:{"X-WP-Nonce":U()},dataType:"json",success:function(e){if(!0===e.success){let t=e.data;if("ok"==t.result){let e='<a class="mf-setting-btn-link" href="'+t.url+'">Authorize The App </a>';i.html(e)}else i.html("<span>"+t.msg+"</span>")}else if(e.data){let t=e.data;i.html('<span style="background-color: red; padding: 1px 5px;">'+t.msg+"</span>")}},error:function(e){i.html('<span style="color: red"> ajax error occurred, please check your internet connection..</span>')},complete:function(){}})})),e(document).on("click","#met_form_aweber_get_list",(function(t){t.preventDefault();let i=e(this),o=e("#mf_aweber_info"),a=metform_api.admin_url+"admin-ajax.php";e.ajax({url:a,method:"POST",data:{action:"get_list_lists"},headers:{"X-WP-Nonce":q()},dataType:"json",beforeSend:function(){o.html('<span style="background-color: #e5e5e5; padding: 1px 5px;">Loading</span>')},success:function(e){if(!0===e.success){let t=e.data,a=i.parent(".mf-input-help").siblings("select.mf-aweber-list-id"),s=a.find("option.mf_aweber_default_option").clone();if(a.html(s),t.lists)for(let e in t.lists)a.append('<option value="'+t.lists[e].id+'">'+t.lists[e].name+"</option>");o.html(""),i.parent(".mf-input-help").siblings("#mf-aweber-fields").html("")}else if(e.data){let t=e.data;o.html('<span style="background-color: red; padding: 1px 5px;">'+t.msg+"</span>")}},error:function(e){o.html('<span style="color: red"> ajax error occurred, please check your internet connection..</span>')},complete:function(){}})})),e(".mf-aweber-list-id").on("change",(function(){let t=e("#mf-aweber-fields"),i=e("option:selected",this).val();if(!i)return void t.html("");t.html("Please wait....");let o=e("#metform-form-modalinput-settings").attr("data-nonce"),s=e("#metform_form_modal").find("form").attr("data-mf-id"),n="";e.ajax({url:window.metform_api.resturl+"metform/v1/forms/get_fields_data/"+s,type:"get",headers:{"X-WP-Nonce":o},dataType:"json",success:function(r){n=r;let m=metform_api.admin_url+"admin-ajax.php",l={action:"get_aweber_custom_fields",selectedValue:i,formId:s,nonce:o};e.ajax({url:m,type:"post",data:l,headers:{"X-WP-Nonce":o},dataType:"json",success:function(e){let i=e.data;if("ok"===i.result&&i.custom_fields){let e,o="",s=Object.keys(n).map((function(e){return[n[e]]})),r="mf_aweber_custom_field_name_",m="mf_aweber_custom_field_label_";i.custom_fields.entries.forEach((t=>{let i;e="",s.map((o=>{i="",o[0].mf_input_name===a[r+t.id]&&(i='selected="selected"'),e+="<option value="+o[0].mf_input_name+" "+i+" >"+o[0].mf_input_label+"</option>"})),o+="<tr><td>"+t.name+'</td><td><input type="hidden" name="'+m+t.id+'" value="'+t.name+'" /><select name='+r+t.id+' class="attr-form-control">'+e+"</select></td></tr>"})),t.html('<table width="100%">'+o+"</table>")}},error:function(e){console.log("Error: "+e)}})},error:function(t){e("#mf-aweber-fields").html("Sorry ! Something went wrong")}})})),e(document).on("click","#met_form_mail_poet_get_list",(function(t){t.preventDefault();let i=e(this),o=e("#mf_mail_poet_info"),a=metform_api.admin_url+"admin-ajax.php";e.ajax({url:a,method:"POST",data:{action:"mail_poet_get_email_list_lists"},headers:{"X-WP-Nonce":q()},dataType:"json",success:function(e){if(!0===e.success){let t=e.data,a=i.closest("div.mf-mail-poet").find("select");if(a.html(""),t.lists)for(let e in t.lists)a.append('<option value="'+t.lists[e].id+'">'+t.lists[e].name+"</option>");o.html("")}else if(e.data){let t=e.data;o.html('<span style="background-color: red; padding: 1px 5px;">'+t.msg+"</span>")}},error:function(e){o.html('<span style="color: red"> ajax error occurred, please check your internet connection..</span>')},complete:function(){}})})),e(document).on("click","#met_form_ckit_get_list",(function(t){t.preventDefault();var i=metform_api.admin_url+"admin-ajax.php";let o=e(this);e.ajax({url:i,method:"POST",data:{action:"get_form_lists"},headers:{"X-WP-Nonce":q()},dataType:"json",success:function(e){if(!0===e.success){let t=e.data,i=o.closest("div.mf-ckit").find("select");i.html(""),t.forms&&t.forms.forEach((function(e){i.append('<option value="'+e.id+'">'+e.name+"</option>")}))}else alert("Error occurred when trying to check for aweber authorization.")},error:function(e){},complete:function(){}})})),e(document).on("click","#met_form_act_camp_get_list",(function(t){t.preventDefault();let i=window.metform_api.resturl+"metform-pro/v1/active-campaign/email_lists",o=q(),a=e(this),s=e("#mf_act_camp_info");e.ajax({url:i,method:"GET",data:[],headers:{"X-WP-Nonce":o},dataType:"json",success:function(e){if(!0===e.success){let t=e.data,i=a.closest("div.mf-input-group").find("select");i.html(""),t.list&&t.list.forEach((function(e){i.append('<option value="'+e.sid+'">'+e.name+"</option>")})),s.html(e.data.msg)}else s.html(e.data.msg)},error:function(e){s.html('<span style="color: red"> ajax error occurred, please check your internet connection..</span>')},complete:function(){}})})),e(document).on("click","#met_form_act_camp_get_tags",(function(t){t.preventDefault();let i=window.metform_api.resturl+"metform-pro/v1/active-campaign/tag_lists",o=q(),a=e(this),s=e("#mf_act_camp_tag_info");e.ajax({url:i,method:"GET",data:[],headers:{"X-WP-Nonce":o},dataType:"json",success:function(e){if(!0===e.success){let t=e.data,i=a.closest("div.mf-input-group").find("select");i.html(""),t.list&&t.list.forEach((function(e){i.append('<option value="'+e.sid+'">'+e.name+"</option>")})),s.html(e.data.msg)}else s.html(e.data.msg)},error:function(e){s.html('<span style="color: red"> ajax error occurred, please check your internet connection..</span>')},complete:function(){}})})),e("#mf-helpscout-btn-token").click((function(){let t=window.metform_api.resturl+"metform/v1/forms/get_helpscout_access_token/123";e.ajax({url:t,type:"get",headers:{"X-WP-Nonce":U()},success:function(e){200==e.status&&location.reload()},error:function(e){alert("Something went wrong")}})}))}));
|
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 ft="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,pt=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(ft&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var mt=ft&&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()}),pt))}};function ht(e){return e&&"[object Function]"==={}.toString.call(e)}function gt(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function bt(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function yt(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=gt(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:yt(bt(e))}function vt(e){return e&&e.referenceNode?e.referenceNode:e}var wt=ft&&!(!window.MSInputMethodContext||!document.documentMode),Ct=ft&&/MSIE 10/.test(navigator.userAgent);function xt(e){return 11===e?wt:10===e?Ct:wt||Ct}function kt(e){if(!e)return document.documentElement;for(var t=xt(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"===gt(n,"position")?kt(n):n:e?e.ownerDocument.documentElement:document.documentElement}function Ot(e){return null!==e.parentNode?Ot(e.parentNode):e}function Dt(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,l=a.commonAncestorContainer;if(e!==l&&t!==l||r.contains(o))return"BODY"===(s=(i=l).nodeName)||"HTML"!==s&&kt(i.firstElementChild)!==i?kt(l):l;var c=Ot(e);return c.host?Dt(c.host,t):Dt(e,Ot(t).host)}function St(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 Et(e,t){var n=arguments.length>2&&arguments[2]!==undefined&&arguments[2],r=St(t,"top"),o=St(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 Mt(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 Pt(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],xt(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function _t(e){var t=e.body,n=e.documentElement,r=xt(10)&&getComputedStyle(n);return{height:Pt("Height",t,n,r),width:Pt("Width",t,n,r)}}var jt=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Tt=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}}(),At=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},It=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 Lt(e){return It({},e,{right:e.left+e.width,bottom:e.top+e.height})}function Nt(e){var t={};try{if(xt(10)){t=e.getBoundingClientRect();var n=St(e,"top"),r=St(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(d){}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},a="HTML"===e.nodeName?_t(e.ownerDocument):{},i=a.width||e.clientWidth||o.width,s=a.height||e.clientHeight||o.height,l=e.offsetWidth-i,c=e.offsetHeight-s;if(l||c){var u=gt(e);l-=Mt(u,"x"),c-=Mt(u,"y"),o.width-=l,o.height-=c}return Lt(o)}function Rt(e,t){var n=arguments.length>2&&arguments[2]!==undefined&&arguments[2],r=xt(10),o="HTML"===t.nodeName,a=Nt(e),i=Nt(t),s=yt(e),l=gt(t),c=parseFloat(l.borderTopWidth),u=parseFloat(l.borderLeftWidth);n&&o&&(i.top=Math.max(i.top,0),i.left=Math.max(i.left,0));var d=Lt({top:a.top-i.top-c,left:a.left-i.left-u,width:a.width,height:a.height});if(d.marginTop=0,d.marginLeft=0,!r&&o){var f=parseFloat(l.marginTop),p=parseFloat(l.marginLeft);d.top-=c-f,d.bottom-=c-f,d.left-=u-p,d.right-=u-p,d.marginTop=f,d.marginLeft=p}return(r&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(d=Et(d,t)),d}function Vt(e){var t=arguments.length>1&&arguments[1]!==undefined&&arguments[1],n=e.ownerDocument.documentElement,r=Rt(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),a=Math.max(n.clientHeight,window.innerHeight||0),i=t?0:St(n),s=t?0:St(n,"left"),l={top:i-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:o,height:a};return Lt(l)}function Ft(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===gt(e,"position"))return!0;var n=bt(e);return!!n&&Ft(n)}function Bt(e){if(!e||!e.parentElement||xt())return document.documentElement;for(var t=e.parentElement;t&&"none"===gt(t,"transform");)t=t.parentElement;return t||document.documentElement}function zt(e,t,n,r){var o=arguments.length>4&&arguments[4]!==undefined&&arguments[4],a={top:0,left:0},i=o?Bt(e):Dt(e,vt(t));if("viewport"===r)a=Vt(i,o);else{var s=void 0;"scrollParent"===r?"BODY"===(s=yt(bt(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===r?e.ownerDocument.documentElement:r;var l=Rt(s,i,o);if("HTML"!==s.nodeName||Ft(i))a=l;else{var c=_t(e.ownerDocument),u=c.height,d=c.width;a.top+=l.top-l.marginTop,a.bottom=u+l.top,a.left+=l.left-l.marginLeft,a.right=d+l.left}}var f="number"==typeof(n=n||0);return a.left+=f?n:n.left||0,a.top+=f?n:n.top||0,a.right-=f?n:n.right||0,a.bottom-=f?n:n.bottom||0,a}function Ht(e){return e.width*e.height}function Ut(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=zt(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}},l=Object.keys(s).map((function(e){return It({key:e},s[e],{area:Ht(s[e])})})).sort((function(e,t){return t.area-e.area})),c=l.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),u=c.length>0?c[0].key:l[0].key,d=e.split("-")[1];return u+(d?"-"+d:"")}function Wt(e,t,n){var r=arguments.length>3&&arguments[3]!==undefined?arguments[3]:null,o=r?Bt(t):Dt(t,vt(n));return Rt(n,o,r)}function qt(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 Yt(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 $t(e,t,n){n=n.split("-")[0];var r=qt(e),o={width:r.width,height:r.height},a=-1!==["right","left"].indexOf(n),i=a?"top":"left",s=a?"left":"top",l=a?"height":"width",c=a?"width":"height";return o[i]=t[i]+t[l]/2-r[l]/2,o[s]=n===s?t[s]-r[c]:t[Yt(s)],o}function Kt(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function Gt(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=Kt(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&&ht(n)&&(t.offsets.popper=Lt(t.offsets.popper),t.offsets.reference=Lt(t.offsets.reference),t=n(t,e))})),t}function Qt(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=Wt(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=Ut(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=$t(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=Gt(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function Zt(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function Jt(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 Xt(){return this.state.isDestroyed=!0,Zt(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[Jt("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function en(e){var t=e.ownerDocument;return t?t.defaultView:window}function tn(e,t,n,r){var o="BODY"===e.nodeName,a=o?e.ownerDocument.defaultView:e;a.addEventListener(t,n,{passive:!0}),o||tn(yt(a.parentNode),t,n,r),r.push(a)}function nn(e,t,n,r){n.updateBound=r,en(e).addEventListener("resize",n.updateBound,{passive:!0});var o=yt(e);return tn(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function rn(){this.state.eventsEnabled||(this.state=nn(this.reference,this.options,this.state,this.scheduleUpdate))}function on(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,en(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 an(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function sn(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&an(t[n])&&(r="px"),e.style[n]=t[n]+r}))}var ln=ft&&/Firefox/i.test(navigator.userAgent);function cn(e,t,n){var r=Kt(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 un=["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"],dn=un.slice(3);function fn(e){var t=arguments.length>1&&arguments[1]!==undefined&&arguments[1],n=dn.indexOf(e),r=dn.slice(n+1).concat(dn.slice(0,n));return t?r.reverse():r}var pn="flip",mn="clockwise",hn="counterclockwise";function gn(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(Kt(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 l=/\s*,\s*|\s+/,c=-1!==s?[i.slice(0,s).concat([i[s].split(l)[0]]),[i[s].split(l)[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 Lt(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){an(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))}))})),o}var bn={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),l=s?"left":"top",c=s?"width":"height",u={start:At({},l,a[l]),end:At({},l,a[l]+a[c]-i[c])};e.offsets.popper=It({},i,u[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],l=void 0;return l=an(+n)?[+n,0]:gn(n,a,i,s),"left"===s?(a.top+=l[0],a.left-=l[1]):"right"===s?(a.top+=l[0],a.left+=l[1]):"top"===s?(a.left+=l[0],a.top-=l[1]):"bottom"===s&&(a.left+=l[0],a.top+=l[1]),e.popper=a,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||kt(e.instance.popper);e.instance.reference===n&&(n=kt(n));var r=Jt("transform"),o=e.instance.popper.style,a=o.top,i=o.left,s=o[r];o.top="",o.left="",o[r]="";var l=zt(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=a,o.left=i,o[r]=s,t.boundaries=l;var c=t.priority,u=e.offsets.popper,d={primary:function(e){var n=u[e];return u[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(u[e],l[e])),At({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=u[n];return u[e]>l[e]&&!t.escapeWithReference&&(r=Math.min(u[n],l[e]-("right"===e?u.width:u.height))),At({},n,r)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=It({},u,d[t](e))})),e.offsets.popper=u,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",l=i?"left":"top",c=i?"width":"height";return n[s]<a(r[l])&&(e.offsets.popper[l]=a(r[l])-n[c]),n[l]>a(r[s])&&(e.offsets.popper[l]=a(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!cn(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,l=-1!==["left","right"].indexOf(o),c=l?"height":"width",u=l?"Top":"Left",d=u.toLowerCase(),f=l?"left":"top",p=l?"bottom":"right",m=qt(r)[c];s[p]-m<i[d]&&(e.offsets.popper[d]-=i[d]-(s[p]-m)),s[d]+m>i[p]&&(e.offsets.popper[d]+=s[d]+m-i[p]),e.offsets.popper=Lt(e.offsets.popper);var h=s[d]+s[c]/2-m/2,g=gt(e.instance.popper),b=parseFloat(g["margin"+u]),y=parseFloat(g["border"+u+"Width"]),v=h-e.offsets.popper[d]-b-y;return v=Math.max(Math.min(i[c]-m,v),0),e.arrowElement=r,e.offsets.arrow=(At(n={},d,Math.round(v)),At(n,f,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(Zt(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=zt(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=Yt(r),a=e.placement.split("-")[1]||"",i=[];switch(t.behavior){case pn:i=[r,o];break;case mn:i=fn(r);break;case hn:i=fn(r,!0);break;default:i=t.behavior}return i.forEach((function(s,l){if(r!==s||i.length===l+1)return e;r=e.placement.split("-")[0],o=Yt(r);var c=e.offsets.popper,u=e.offsets.reference,d=Math.floor,f="left"===r&&d(c.right)>d(u.left)||"right"===r&&d(c.left)<d(u.right)||"top"===r&&d(c.bottom)>d(u.top)||"bottom"===r&&d(c.top)<d(u.bottom),p=d(c.left)<d(n.left),m=d(c.right)>d(n.right),h=d(c.top)<d(n.top),g=d(c.bottom)>d(n.bottom),b="left"===r&&p||"right"===r&&m||"top"===r&&h||"bottom"===r&&g,y=-1!==["top","bottom"].indexOf(r),v=!!t.flipVariations&&(y&&"start"===a&&p||y&&"end"===a&&m||!y&&"start"===a&&h||!y&&"end"===a&&g),w=!!t.flipVariationsByContent&&(y&&"start"===a&&m||y&&"end"===a&&p||!y&&"start"===a&&g||!y&&"end"===a&&h),C=v||w;(f||b||C)&&(e.flipped=!0,(f||b)&&(r=i[l+1]),C&&(a=function(e){return"end"===e?"start":"start"===e?"end":e}(a)),e.placement=r+(a?"-"+a:""),e.offsets.popper=It({},e.offsets.popper,$t(e.instance.popper,e.offsets.reference,e.placement)),e=Gt(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=Yt(t),e.offsets.popper=Lt(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!cn(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=Kt(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=Kt(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=kt(e.instance.popper),l=Nt(s),c={position:o.position},u=function(e,t){var n=e.offsets,r=n.popper,o=n.reference,a=Math.round,i=Math.floor,s=function(e){return e},l=a(o.width),c=a(r.width),u=-1!==["left","right"].indexOf(e.placement),d=-1!==e.placement.indexOf("-"),f=t?u||d||l%2==c%2?a:i:s,p=t?a:s;return{left:f(l%2==1&&c%2==1&&!d&&t?r.left-1:r.left),top:p(r.top),bottom:p(r.bottom),right:f(r.right)}}(e,window.devicePixelRatio<2||!ln),d="bottom"===n?"top":"bottom",f="right"===r?"left":"right",p=Jt("transform"),m=void 0,h=void 0;if(h="bottom"===d?"HTML"===s.nodeName?-s.clientHeight+u.bottom:-l.height+u.bottom:u.top,m="right"===f?"HTML"===s.nodeName?-s.clientWidth+u.right:-l.width+u.right:u.left,i&&p)c[p]="translate3d("+m+"px, "+h+"px, 0)",c[d]=0,c[f]=0,c.willChange="transform";else{var g="bottom"===d?-1:1,b="right"===f?-1:1;c[d]=h*g,c[f]=m*b,c.willChange=d+", "+f}var y={"x-placement":e.placement};return e.attributes=It({},y,e.attributes),e.styles=It({},c,e.styles),e.arrowStyles=It({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return sn(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&&sn(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,o){var a=Wt(o,t,e,n.positionFixed),i=Ut(n.placement,a,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",i),sn(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:undefined}}},yn=function(){function e(t,n){var r=this,o=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};jt(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=mt(this.update.bind(this)),this.options=It({},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(It({},e.Defaults.modifiers,o.modifiers)).forEach((function(t){r.options.modifiers[t]=It({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return It({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&ht(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 Tt(e,[{key:"update",value:function(){return Qt.call(this)}},{key:"destroy",value:function(){return Xt.call(this)}},{key:"enableEventListeners",value:function(){return rn.call(this)}},{key:"disableEventListeners",value:function(){return on.call(this)}}]),e}();yn.Utils=("undefined"!=typeof window?window:n.g).PopperUtils,yn.placements=un,yn.Defaults=bn;var vn=yn,wn=(n(353),function(e){do{e+=~~(1e6*Math.random())}while("undefined"!=typeof document&&document.getElementById(e));return e}),Cn=("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;}"}),xn=function(t){t.placement;var n=Se(t,["placement"]);return at(e.Fragment,null,at(it,{styles:kn}),at("div",De({},n,{"data-arrow":"true",css:Cn})))},kn={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;}}"},On=function(n){var r,o,a,i=n.header,s=n.body,l=n.children,c=n.placement,u=n.trigger,d=n.styles,f=Se(n,["header","body","children","placement","trigger","styles"]),p=t().Children.only(l),m=(0,e.useRef)(null),h=(0,e.useState)(!1),g=h[0],b=h[1],y=(0,e.useState)(!1),v=y[0],w=y[1],C=(0,e.useState)({popoverId:null,referenceId:null,arrowId:null}),x=C[0],k=C[1],O=x.popoverId,D=x.referenceId,S=x.arrowId;r=m,o=function(e){e.target.id===D||document.getElementById(D).contains(e.target)||b(!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 dt.forEach((function(t){document.addEventListener(t,e,{passive:!0})})),function(){dt.forEach((function(t){document.removeEventListener(t,e,{passive:!0})}))}}),[r,o]),(0,e.useEffect)((function(){if(!O)return k({popoverId:wn("popover"),referenceId:wn("reference"),arrowId:wn("arrow")});var e=document.getElementById(O),t=document.getElementById(D),n=document.getElementById(S);e&&t&&n&&(new vn(t,e,{placement:c,modifiers:{arrow:{element:n}}}),w(g))}),[g]);var E={content:[Dn.content,d.content],header:[Dn.header,d.header],body:[Dn.body,d.body]};return at(e.Fragment,null,O?at("div",De({},f,{id:O,ref:m,css:E.content,style:v?{display:"block"}:{}}),at(xn,{id:S}),i?at("div",{css:E.header},i):null,at("div",{css:E.body},s)):null,t().cloneElement(p,De({},p.props,{id:D,onClick:function(){"click"===u&&b(!g)}})))};On.defaultProps={placement:"right",trigger:"click",styles:{}};var Dn={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;"}},Sn=On;function En(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 Mn={position:"relative",display:"inline-block",backgroundColor:"#ddd",borderRadius:5,userSelect:"none",boxSizing:"border-box"},Pn={position:"absolute",backgroundColor:"#5e72e4",borderRadius:5,userSelect:"none",boxSizing:"border-box"},_n={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"},jn={x:{track:De({},Mn,{width:200,height:10}),active:De({},Pn,{top:0,height:"100%"}),thumb:De({},_n)},y:{track:De({},Mn,{width:10,height:200}),active:De({},Pn,{left:0,width:"100%"}),thumb:De({},_n)},xy:{track:{position:"relative",overflow:"hidden",width:200,height:200,backgroundColor:"#5e72e4",borderRadius:0},active:{},thumb:De({},_n)},disabled:{opacity:.5}},Tn=function(t){var n=t.disabled,r=t.axis,o=t.x,a=t.y,i=t.xmin,s=t.xmax,l=t.ymin,c=t.ymax,u=t.xstep,d=t.ystep,f=t.onChange,p=t.onDragStart,m=t.onDragEnd,h=t.onClick,g=t.xreverse,b=t.yreverse,y=t.styles,v=Se(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),x=(0,e.useRef)({}),k=(0,e.useRef)({});function O(e){var t=e.top,n=e.left;if(f){var o=w.current.getBoundingClientRect(),a=o.width,p=o.height,m=0,h=0;n<0&&(n=0),n>a&&(n=a),t<0&&(t=0),t>p&&(t=p),"x"!==r&&"xy"!==r||(m=n/a*(s-i)),"y"!==r&&"xy"!==r||(h=t/p*(c-l));var y=(0!==m?parseInt(m/u,10)*u:0)+i,v=(0!==h?parseInt(h/d,10)*d:0)+l;f({x:g?s-y+i:y,y:b?c-v+l:v})}}function D(e){if(!n){e.preventDefault();var t=C.current,r=En(e);x.current={x:t.offsetLeft,y:t.offsetTop},k.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(),O(function(e){var t=En(e);return{left:t.x+x.current.x-k.current.x,top:t.y+x.current.y-k.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),m&&m(e))}var M,P,_=((M=(a-l)/(c-l)*100)>100&&(M=100),M<0&&(M=0),"x"===r&&(M=0),(P=(o-i)/(s-i)*100)>100&&(P=100),P<0&&(P=0),"y"===r&&(P=0),{top:M,left:P}),j={};"x"===r&&(j.width=_.left+"%"),"y"===r&&(j.height=_.top+"%"),g&&(j.left=100-_.left+"%"),b&&(j.top=100-_.top+"%");var T={position:"absolute",transform:"translate(-50%, -50%)",left:g?100-_.left+"%":_.left+"%",top:b?100-_.top+"%":_.top+"%"};"x"===r?T.top="50%":"y"===r&&(T.left="50%");var A={track:De({},jn[r].track,{},y.track),active:De({},jn[r].active,{},y.active),thumb:De({},jn[r].thumb,{},y.thumb),disabled:De({},jn.disabled,{},y.disabled)};return at("div",De({},v,{ref:w,css:ot([A.track,n&&A.disabled],";label:Slider;"),onClick:function(e){if(!n){var t=En(e),r=w.current.getBoundingClientRect();O({left:t.x-r.left,top:t.y-r.top}),h&&h(e)}}}),at("div",{css:A.active,style:j}),at("div",{ref:C,style:T,onTouchStart:D,onMouseDown:D,onClick:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}},at("div",{css:A.thumb})))};Tn.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 An=Tn,In=n(654),Ln=n.n(In),Nn=n(763),Rn=n.n(Nn),Vn=n(37),Fn=n.n(Vn),Bn="undefined"!=typeof navigator&&navigator.userAgent.match(/iPhone|iPad|iPod/i),zn=function(t){var n=t.step,r=t.min,o=t.max,a=t.value,i=t.onChange,s=t.onKeyDown,l=t.enableMobileNumericKeyboard,c=t.component,u=Se(t,["step","min","max","value","onChange","onKeyDown","enableMobileNumericKeyboard","component"]),d=(0,e.useState)(a),f=d[0],p=d[1];(0,e.useEffect)((function(){p(a)}),[a]);var m={value:f,onChange:function(e){var t=function(e){if(Rn()(e))return e;if(Fn()(e)){if(!(e=e.trim()))return"";var t=parseFloat(e);if(!Ln()(t))return t}return""}(e);p(e),i&&i(t)},onKeyDown:function(e){38===e.keyCode?i&&i(Un("+",a,o,r,n)):40===e.keyCode&&i&&i(Un("-",a,o,r,n)),s&&s(e)},onWheel:function(e){e.target.blur()}};return at(c,De({},u,m,l?{css:Hn,type:"number",inputMode:"numeric",pattern:Bn?"[0-9]*":"",step:n,min:r,max:o}:{css:Hn,type:"text"}))};zn.defaultProps={autoComplete:"off",enableMobileNumericKeyboard:!1,value:"",component:function(e){var t=e.onChange,n=Se(e,["onChange"]);return at("input",De({},n,{onChange:function(e){t&&t(e.target.value)}}))},step:1};var Hn={MozAppearance:"textfield","&::-webkit-inner-spin-button, &::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0}};function Un(e,t,n,r,o){if(""===t)return Rn()(r)?r:"";if(t="+"===e?t+o:t-o,Rn()(n)&&t>n)return n;if(Rn()(r)&&t<r)return r;var a=(o.toString().split(".")[1]||[]).length;return a?parseFloat(t.toFixed(a)):t}var Wn=zn;function qn(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 Yn(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 $n(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function Kn(e,t,n){return"#"+[$n(e),$n(t),$n(n)].join("")}function Gn(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 Qn(e,t,n,r){return"rgba("+[e,t,n,r/100].join(",")+")"}var Zn={name:"bzk4lp",styles:"width:100%;margin-top:10px;margin-bottom:10px;display:flex;"},Jn={name:"lwa3hx",styles:"flex:1;margin-right:10px;"},Xn=function(e){var t=e.color,n=e.onChange,r=t.r,o=t.g,a=t.b,i=t.a,s=t.h,l=t.s,c=t.v;function u(e){n&&n(De({},e,{rgba:Qn(e.r,e.g,e.b,e.a)}))}function d(e,n,r){var o=Yn(e,n,r),a=o.r,i=o.g,s=o.b,l=Kn(a,i,s);u(De({},t,{h:e,s:n,v:r,r:a,g:i,b:s,hex:l}))}function f(e,n,r){var o=Kn(e,n,r),a=Gn(e,n,r),i=a.h,s=a.s,l=a.v;u(De({},t,{r:e,g:n,b:r,h:i,s:s,v:l,hex:o}))}function p(e){u(De({},t,{a:e}))}var m=Qn(r,o,a,i),h="linear-gradient(to right, "+Qn(r,o,a,0)+", "+Qn(r,o,a,100)+")",g=function(e,t,n){var r=Yn(e,t,n);return Kn(r.r,r.g,r.b)}(s,100,100);return at("div",{css:er.picker,onClick:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}},at("div",{css:er.selector,style:{backgroundColor:g}},at("div",{css:er.gradientWhite}),at("div",{css:er.gradientDark}),at(An,{axis:"xy",x:l,xmax:100,y:100-c,ymax:100,onChange:function(e){var t=e.x,n=e.y;return d(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%"}}})),at("div",{css:Zn},at("div",{css:Jn},at(An,{axis:"x",x:s,xmax:359,onChange:function(e){return d(e.x,l,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"}}}),at(An,{axis:"x",x:i,xmax:100,styles:{track:{width:"100%",height:12,borderRadius:0,background:h},active:{background:"none"},thumb:{width:5,height:14,borderRadius:0,backgroundColor:"#eee"}},onChange:function(e){return p(e.x)}})),at("div",{style:{backgroundColor:m,width:30,height:30}})),at("div",{css:er.inputs},at("div",{css:er.input},at("input",{style:{width:70,textAlign:"left"},type:"text",value:t.hex,onChange:function(e){return function(e){var n=qn(e),r=n.r,o=n.g,a=n.b,i=Gn(r,o,a),s=i.h,l=i.s,c=i.v;u(De({},t,{r:r,g:o,b:a,h:s,s:l,v:c,hex:e}))}(e.target.value)},onKeyUp:function(e){if(13===e.keyCode){var n=e.target.value.trim(),r=qn(n),o=r.r,a=r.g,s=r.b;u(De({},t,{r:o,g:a,b:s,a:i,hex:n}))}}}),at("div",null,"Hex")),at("div",{css:er.input},at(Wn,{min:0,max:255,value:r,onChange:function(e){return f(e,o,a)}}),at("div",null,"R")),at("div",{css:er.input},at(Wn,{min:0,max:255,value:o,onChange:function(e){return f(r,e,a)}}),at("div",null,"G")),at("div",{css:er.input},at(Wn,{min:0,max:255,value:a,onChange:function(e){return f(r,o,e)}}),at("div",null,"B")),at("div",{css:er.input},at(Wn,{min:0,max:100,value:i,onChange:function(e){return p(e)}}),at("div",null,"A"))))};Xn.defaultProps={initialValue:"#5e72e4"};var er={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 tr(e){var t,n=(e=e.toLowerCase()).substr(0,7),r=qn(n),o=r.r,a=r.g,i=r.b,s=Gn(o,a,i),l=e.length>7?(t=e.substr(7),Math.round(parseInt("0x"+t,16)/255*100)):100;return De({},s,{r:o,g:a,b:i,a:l,hex:n,rgba:Qn(o,a,i,l)})}var nr={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;"},rr={name:"trkpwz",styles:"display:block;width:100%;height:100%;cursor:pointer;"},or=function(t){var n=t.initialValue,r=t.onChange,o=t.placement,a=Se(t,["initialValue","onChange","placement"]),i=(0,e.useState)(tr(n)),s=i[0],l=i[1];function c(e){r&&(l(e),r(e))}return(0,e.useEffect)((function(){c(tr(n))}),[n]),at(Sn,{placement:o,body:at(Xn,{color:s,onChange:c})},at("span",De({},a,{css:nr}),at("span",{css:rr,style:{backgroundColor:s.rgba}})))};or.defaultProps={placement:"bottom"};var ar=or,ir=n(322),sr=n.n(ir),lr=n(555),cr=n.n(lr);function ur(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dr(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 fr(e,t,n){return t&&dr(e.prototype,t),n&&dr(e,n),e}function pr(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&&Ee(e,t)}function mr(e){return(mr="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 hr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gr(e,t){if(t&&("object"===mr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return hr(e)}function br(e){return(br=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var yr=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function vr(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||yr(r)&&yr(o)))return!1;var r,o;return!0}var wr=function(e,t){var n;void 0===t&&(t=vr);var r,o=[],a=!1;return function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return a&&n===this&&t(i,o)||(r=e.apply(this,i),a=!0,n=this,o=i),r}},Cr=ReactDOM;function xr(e,t){if(null==e)return{};var n,r,o=Se(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function kr(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 Or(e,t){if(e){if("string"==typeof e)return kr(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)?kr(e,t):void 0}}function Dr(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){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(l){s=!0,o=l}finally{try{i||null==n["return"]||n["return"]()}finally{if(s)throw o}}return a}}(e,t)||Or(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 Sr(e){return function(e){if(Array.isArray(e))return kr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Or(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 Er(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Mr=n(639),Pr=function(){};function _r(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function jr(e,t,n){var r=[n];if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&r.push("".concat(_r(e,o)));return r.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Tr=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===mr(e)&&null!==e?[e]:[]};function Ar(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Ir(e){return Ar(e)?window.pageYOffset:e.scrollTop}function Lr(e,t){Ar(e)?window.scrollTo(0,t):e.scrollTop=t}function Nr(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function Rr(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:200,r=arguments.length>3&&arguments[3]!==undefined?arguments[3]:Pr,o=Ir(e),a=t-o,i=10,s=0;function l(){var t=Nr(s+=i,o,a,n);Lr(e,t),s<n?window.requestAnimationFrame(l):r(e)}l()}function Vr(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}function Fr(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 Br(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fr(Object(n),!0).forEach((function(t){Er(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zr(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=br(e);if(t){var o=br(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return gr(this,n)}}function Hr(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,a=e.shouldScroll,i=e.isFixedPosition,s=e.theme.spacing,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/,o=document.documentElement;if("fixed"===t.position)return o;for(var a=e;a=a.parentElement;)if(t=getComputedStyle(a),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return a;return o}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var u=l.getBoundingClientRect().height,d=n.getBoundingClientRect(),f=d.bottom,p=d.height,m=d.top,h=n.offsetParent.getBoundingClientRect().top,g=window.innerHeight,b=Ir(l),y=parseInt(getComputedStyle(n).marginBottom,10),v=parseInt(getComputedStyle(n).marginTop,10),w=h-v,C=g-m,x=w+b,k=u-b-m,O=f-g+b+y,D=b+m-v,S=160;switch(o){case"auto":case"bottom":if(C>=p)return{placement:"bottom",maxHeight:t};if(k>=p&&!i)return a&&Rr(l,O,S),{placement:"bottom",maxHeight:t};if(!i&&k>=r||i&&C>=r)return a&&Rr(l,O,S),{placement:"bottom",maxHeight:i?C-y:k-y};if("auto"===o||i){var E=t,M=i?w:x;return M>=r&&(E=Math.min(M-y-s.controlHeight,t)),{placement:"top",maxHeight:E}}if("bottom"===o)return Lr(l,O),{placement:"bottom",maxHeight:t};break;case"top":if(w>=p)return{placement:"top",maxHeight:t};if(x>=p&&!i)return a&&Rr(l,D,S),{placement:"top",maxHeight:t};if(!i&&x>=r||i&&w>=r){var P=t;return(!i&&x>=r||i&&w>=r)&&(P=i?w-v:x-v),a&&Rr(l,D,S),{placement:"top",maxHeight:P}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return c}var Ur=function(e){return"auto"===e?"bottom":e},Wr=(0,e.createContext)({getPortalPlacement:null}),qr=function(e){pr(n,e);var t=zr(n);function n(){var e;ur(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).state={maxHeight:e.props.maxMenuHeight,placement:null},e.getPlacement=function(t){var n=e.props,r=n.minMenuHeight,o=n.maxMenuHeight,a=n.menuPlacement,i=n.menuPosition,s=n.menuShouldScrollIntoView,l=n.theme;if(t){var c="fixed"===i,u=Hr({maxHeight:o,menuEl:t,minHeight:r,placement:a,shouldScroll:s&&!c,isFixedPosition:c,theme:l}),d=e.context.getPortalPlacement;d&&d(u),e.setState(u)}},e.getUpdatedProps=function(){var t=e.props.menuPlacement,n=e.state.placement||Ur(t);return Br(Br({},e.props),{},{placement:n,maxHeight:e.state.maxHeight})},e}return fr(n,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),n}(e.Component);qr.contextType=Wr;var Yr=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px"),textAlign:"center"}},$r=Yr,Kr=Yr,Gr=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return at("div",De({css:o("noOptionsMessage",e),className:r({"menu-notice":!0,"menu-notice--no-options":!0},n)},a),t)};Gr.defaultProps={children:"No options"};var Qr=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return at("div",De({css:o("loadingMessage",e),className:r({"menu-notice":!0,"menu-notice--loading":!0},n)},a),t)};Qr.defaultProps={children:"Loading..."};var Zr=function(e){pr(n,e);var t=zr(n);function n(){var e;ur(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).state={placement:null},e.getPortalPlacement=function(t){var n=t.placement;n!==Ur(e.props.menuPlacement)&&e.setState({placement:n})},e}return fr(n,[{key:"render",value:function(){var e=this.props,t=e.appendTo,n=e.children,r=e.controlElement,o=e.menuPlacement,a=e.menuPosition,i=e.getStyles,s="fixed"===a;if(!t&&!s||!r)return null;var l=this.state.placement||Ur(o),c=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),u=s?0:window.pageYOffset,d=c[l]+u,f=at("div",{css:i("menuPortal",{offset:d,position:a,rect:c})},n);return at(Wr.Provider,{value:{getPortalPlacement:this.getPortalPlacement}},t?(0,Cr.createPortal)(f,t):f)}}]),n}(e.Component),Jr=Array.isArray,Xr=Object.keys,eo=Object.prototype.hasOwnProperty;function to(e,t){if(e===t)return!0;if(e&&t&&"object"==mr(e)&&"object"==mr(t)){var n,r,o,a=Jr(e),i=Jr(t);if(a&&i){if((r=e.length)!=t.length)return!1;for(n=r;0!=n--;)if(!to(e[n],t[n]))return!1;return!0}if(a!=i)return!1;var s=e instanceof Date,l=t instanceof Date;if(s!=l)return!1;if(s&&l)return e.getTime()==t.getTime();var c=e instanceof RegExp,u=t instanceof RegExp;if(c!=u)return!1;if(c&&u)return e.toString()==t.toString();var d=Xr(e);if((r=d.length)!==Xr(t).length)return!1;for(n=r;0!=n--;)if(!eo.call(t,d[n]))return!1;for(n=r;0!=n--;)if(!("_owner"===(o=d[n])&&e.$$typeof||to(e[o],t[o])))return!1;return!0}return e!=e&&t!=t}function no(e,t){try{return to(e,t)}catch(n){if(n.message&&n.message.match(/stack|recursion/i))return console.warn("Warning: react-fast-compare does not handle circular references.",n.name,n.message),!1;throw n}}function ro(){var e,t,n=(e=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return ro=function(){return n},n}var oo={name:"19bqh2r",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;"},ao=function(e){var t=e.size,n=xr(e,["size"]);return at("svg",De({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:oo},n))},io=function(e){return at(ao,De({size:20},e),at("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},so=function(e){return at(ao,De({size:20},e),at("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},lo=function(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorContainer",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?o.neutral80:o.neutral40}}},co=lo,uo=lo,fo=function(){var e=ot.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(ro()),po=function(e){var t=e.delay,n=e.offset;return at("span",{css:ot({animation:"".concat(fo," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":null,height:"1em",verticalAlign:"top",width:"1em"},"")})},mo=function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps,a=e.isRtl;return at("div",De({},o,{css:r("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)}),at(po,{delay:0,offset:a}),at(po,{delay:160,offset:!0}),at(po,{delay:320,offset:!a}))};mo.defaultProps={size:4};function ho(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 go(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ho(Object(n),!0).forEach((function(t){Er(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ho(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bo(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 yo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bo(Object(n),!0).forEach((function(t){Er(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var vo=function(e){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:e?0:1,outline:0,padding:0,color:"inherit"}};function wo(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 Co(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wo(Object(n),!0).forEach((function(t){Er(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var xo=function(e){var t=e.children,n=e.innerProps;return at("div",n,t)},ko=xo,Oo=xo;var Do=function(e){var t=e.children,n=e.className,r=e.components,o=e.cx,a=e.data,i=e.getStyles,s=e.innerProps,l=e.isDisabled,c=e.removeProps,u=e.selectProps,d=r.Container,f=r.Label,p=r.Remove;return at(ut,null,(function(r){var m=r.css,h=r.cx;return at(d,{data:a,innerProps:Co(Co({},s),{},{className:h(m(i("multiValue",e)),o({"multi-value":!0,"multi-value--is-disabled":l},n))}),selectProps:u},at(f,{data:a,innerProps:{className:h(m(i("multiValueLabel",e)),o({"multi-value__label":!0},n))},selectProps:u},t),at(p,{data:a,innerProps:Co({className:h(m(i("multiValueRemove",e)),o({"multi-value__remove":!0},n))},c),selectProps:u}))}))};Do.defaultProps={cropWithEllipsis:!0};function So(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 Eo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?So(Object(n),!0).forEach((function(t){Er(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):So(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}for(var Mo={ClearIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return at("div",De({},a,{css:o("clearIndicator",e),className:r({indicator:!0,"clear-indicator":!0},n)}),t||at(io,null))},Control:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.className,a=e.isDisabled,i=e.isFocused,s=e.innerRef,l=e.innerProps,c=e.menuIsOpen;return at("div",De({ref:s,css:r("control",e),className:n({control:!0,"control--is-disabled":a,"control--is-focused":i,"control--menu-is-open":c},o)},l),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return at("div",De({},a,{css:o("dropdownIndicator",e),className:r({indicator:!0,"dropdown-indicator":!0},n)}),t||at(so,null))},DownChevron:so,CrossIcon:io,Group:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.Heading,i=e.headingProps,s=e.label,l=e.theme,c=e.selectProps;return at("div",{css:o("group",e),className:r({group:!0},n)},at(a,De({},i,{selectProps:c,theme:l,getStyles:o,cx:r}),s),at("div",null,t))},GroupHeading:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.theme,a=(e.selectProps,xr(e,["className","cx","getStyles","theme","selectProps"]));return at("div",De({css:r("groupHeading",go({theme:o},a)),className:n({"group-heading":!0},t)},a))},IndicatorsContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles;return at("div",{css:o("indicatorsContainer",e),className:r({indicators:!0},n)},t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps;return at("span",De({},o,{css:r("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerRef,a=e.isHidden,i=e.isDisabled,s=e.theme,l=(e.selectProps,xr(e,["className","cx","getStyles","innerRef","isHidden","isDisabled","theme","selectProps"]));return at("div",{css:r("input",yo({theme:s},l))},at(Mr.Z,De({className:n({input:!0},t),inputRef:o,inputStyle:vo(a),disabled:i},l)))},LoadingIndicator:mo,Menu:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerRef,i=e.innerProps;return at("div",De({css:o("menu",e),className:r({menu:!0},n)},i,{ref:a}),t)},MenuList:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.isMulti,i=e.innerRef,s=e.innerProps;return at("div",De({css:o("menuList",e),className:r({"menu-list":!0,"menu-list--is-multi":a},n),ref:i},s),t)},MenuPortal:Zr,LoadingMessage:Qr,NoOptionsMessage:Gr,MultiValue:Do,MultiValueContainer:ko,MultiValueLabel:Oo,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return at("div",n,t||at(io,{size:14}))},Option:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.isDisabled,i=e.isFocused,s=e.isSelected,l=e.innerRef,c=e.innerProps;return at("div",De({css:o("option",e),className:r({option:!0,"option--is-disabled":a,"option--is-focused":i,"option--is-selected":s},n),ref:l},c),t)},Placeholder:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return at("div",De({css:o("placeholder",e),className:r({placeholder:!0},n)},a),t)},SelectContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps,i=e.isDisabled,s=e.isRtl;return at("div",De({css:o("container",e),className:r({"--is-disabled":i,"--is-rtl":s},n)},a),t)},SingleValue:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.isDisabled,i=e.innerProps;return at("div",De({css:o("singleValue",e),className:r({"single-value":!0,"single-value--is-disabled":a},n)},i),t)},ValueContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.isMulti,a=e.getStyles,i=e.hasValue;return at("div",{css:a("valueContainer",e),className:r({"value-container":!0,"value-container--is-multi":o,"value-container--has-value":i},n)},t)}},Po=function(e){return Eo(Eo({},Mo),e.components)},_o=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],jo=new RegExp("["+_o.map((function(e){return e.letters})).join("")+"]","g"),To={},Ao=0;Ao<_o.length;Ao++)for(var Io=_o[Ao],Lo=0;Lo<Io.letters.length;Lo++)To[Io.letters[Lo]]=Io.base;var No=function(e){return e.replace(jo,(function(e){return To[e]}))};function Ro(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}var Vo=function(e){return e.replace(/^\s+|\s+$/g,"")},Fo=function(e){return"".concat(e.label," ").concat(e.value)};var Bo={name:"1laao21-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;"},zo=function(e){return at("span",De({css:Bo},e))};function Ho(e){e["in"],e.out,e.onExited,e.appear,e.enter,e.exit;var t=e.innerRef,n=(e.emotion,xr(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]));return at("input",De({ref:t},n,{css:ot({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"},"")}))}function Uo(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=br(e);if(t){var o=br(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return gr(this,n)}}var Wo=function(e){pr(n,e);var t=Uo(n);function n(){return ur(this,n),t.apply(this,arguments)}return fr(n,[{key:"componentDidMount",value:function(){this.props.innerRef((0,Cr.findDOMNode)(this))}},{key:"componentWillUnmount",value:function(){this.props.innerRef(null)}},{key:"render",value:function(){return this.props.children}}]),n}(e.Component),qo=["boxSizing","height","overflow","paddingRight","position"],Yo={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function $o(e){e.preventDefault()}function Ko(e){e.stopPropagation()}function Go(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Qo(){return"ontouchstart"in window||navigator.maxTouchPoints}function Zo(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=br(e);if(t){var o=br(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return gr(this,n)}}var Jo=!(!window.document||!window.document.createElement),Xo=0,ea=function(e){pr(n,e);var t=Zo(n);function n(){var e;ur(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).originalStyles={},e.listenerOptions={capture:!1,passive:!1},e}return fr(n,[{key:"componentDidMount",value:function(){var e=this;if(Jo){var t=this.props,n=t.accountForScrollbars,r=t.touchScrollTarget,o=document.body,a=o&&o.style;if(n&&qo.forEach((function(t){var n=a&&a[t];e.originalStyles[t]=n})),n&&Xo<1){var i=parseInt(this.originalStyles.paddingRight,10)||0,s=document.body?document.body.clientWidth:0,l=window.innerWidth-s+i||0;Object.keys(Yo).forEach((function(e){var t=Yo[e];a&&(a[e]=t)})),a&&(a.paddingRight="".concat(l,"px"))}o&&Qo()&&(o.addEventListener("touchmove",$o,this.listenerOptions),r&&(r.addEventListener("touchstart",Go,this.listenerOptions),r.addEventListener("touchmove",Ko,this.listenerOptions))),Xo+=1}}},{key:"componentWillUnmount",value:function(){var e=this;if(Jo){var t=this.props,n=t.accountForScrollbars,r=t.touchScrollTarget,o=document.body,a=o&&o.style;Xo=Math.max(Xo-1,0),n&&Xo<1&&qo.forEach((function(t){var n=e.originalStyles[t];a&&(a[t]=n)})),o&&Qo()&&(o.removeEventListener("touchmove",$o,this.listenerOptions),r&&(r.removeEventListener("touchstart",Go,this.listenerOptions),r.removeEventListener("touchmove",Ko,this.listenerOptions)))}}},{key:"render",value:function(){return null}}]),n}(e.Component);function ta(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=br(e);if(t){var o=br(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return gr(this,n)}}ea.defaultProps={accountForScrollbars:!0};var na={name:"1dsbpcp",styles:"position:fixed;left:0;bottom:0;right:0;top:0;"},ra=function(e){pr(n,e);var t=ta(n);function n(){var e;ur(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).state={touchScrollTarget:null},e.getScrollTarget=function(t){t!==e.state.touchScrollTarget&&e.setState({touchScrollTarget:t})},e.blurSelectInput=function(){document.activeElement&&document.activeElement.blur()},e}return fr(n,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.isEnabled,r=this.state.touchScrollTarget;return n?at("div",null,at("div",{onClick:this.blurSelectInput,css:na}),at(Wo,{innerRef:this.getScrollTarget},t),r?at(ea,{touchScrollTarget:r}):null):t}}]),n}(e.PureComponent);function oa(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=br(e);if(t){var o=br(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return gr(this,n)}}var aa=function(e){pr(r,e);var n=oa(r);function r(){var e;ur(this,r);for(var t=arguments.length,o=new Array(t),a=0;a<t;a++)o[a]=arguments[a];return(e=n.call.apply(n,[this].concat(o))).isBottom=!1,e.isTop=!1,e.scrollTarget=void 0,e.touchStart=void 0,e.cancelScroll=function(e){e.preventDefault(),e.stopPropagation()},e.handleEventDelta=function(t,n){var r=e.props,o=r.onBottomArrive,a=r.onBottomLeave,i=r.onTopArrive,s=r.onTopLeave,l=e.scrollTarget,c=l.scrollTop,u=l.scrollHeight,d=l.clientHeight,f=e.scrollTarget,p=n>0,m=u-d-c,h=!1;m>n&&e.isBottom&&(a&&a(t),e.isBottom=!1),p&&e.isTop&&(s&&s(t),e.isTop=!1),p&&n>m?(o&&!e.isBottom&&o(t),f.scrollTop=u,h=!0,e.isBottom=!0):!p&&-n>c&&(i&&!e.isTop&&i(t),f.scrollTop=0,h=!0,e.isTop=!0),h&&e.cancelScroll(t)},e.onWheel=function(t){e.handleEventDelta(t,t.deltaY)},e.onTouchStart=function(t){e.touchStart=t.changedTouches[0].clientY},e.onTouchMove=function(t){var n=e.touchStart-t.changedTouches[0].clientY;e.handleEventDelta(t,n)},e.getScrollTarget=function(t){e.scrollTarget=t},e}return fr(r,[{key:"componentDidMount",value:function(){this.startListening(this.scrollTarget)}},{key:"componentWillUnmount",value:function(){this.stopListening(this.scrollTarget)}},{key:"startListening",value:function(e){e&&("function"==typeof e.addEventListener&&e.addEventListener("wheel",this.onWheel,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchmove",this.onTouchMove,!1))}},{key:"stopListening",value:function(e){e&&("function"==typeof e.removeEventListener&&e.removeEventListener("wheel",this.onWheel,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchmove",this.onTouchMove,!1))}},{key:"render",value:function(){return t().createElement(Wo,{innerRef:this.getScrollTarget},this.props.children)}}]),r}(e.Component);function ia(e){var n=e.isEnabled,r=void 0===n||n,o=xr(e,["isEnabled"]);return r?t().createElement(aa,o):o.children}var sa=function(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},n=t.isSearchable,r=t.isMulti,o=t.label,a=t.isDisabled,i=t.tabSelectsValue;switch(e){case"menu":return"Use Up and Down to choose options".concat(a?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(i?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(o||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value"}},la=function(e,t){var n=t.value,r=t.isDisabled;if(n)switch(e){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(n,", deselected.");case"select-option":return"option ".concat(n,r?" is disabled. Select another option.":", selected.")}},ca=function(e){return!!e.isDisabled};var ua={clearIndicator:uo,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":null,pointerEvents:t?"none":null,position:"relative"}},control:function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,o=r.colors,a=r.borderRadius,i=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?o.neutral5:o.neutral0,borderColor:t?o.neutral10:n?o.primary:o.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(o.primary):null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?o.primary:o.neutral30}}},dropdownIndicator:co,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?o.neutral10:o.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},input:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,visibility:t?"hidden":"visible",color:o.neutral80}},loadingIndicator:function(e){var t=e.isFocused,n=e.size,r=e.theme,o=r.colors,a=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*a,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:Kr,menu:function(e){var t,n=e.placement,r=e.theme,o=r.borderRadius,a=r.spacing,i=r.colors;return Er(t={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),Er(t,"backgroundColor",i.neutral0),Er(t,"borderRadius",o),Er(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),Er(t,"marginBottom",a.menuGutter),Er(t,"marginTop",a.menuGutter),Er(t,"position","absolute"),Er(t,"width","100%"),Er(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,n=t.borderRadius,r=t.colors,o=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:o?"ellipsis":null,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,o=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused&&o.dangerLight,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}}},noOptionsMessage:$r,option:function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,o=e.theme,a=o.spacing,i=o.colors;return{label:"option",backgroundColor:r?i.primary:n?i.primary25:"transparent",color:t?i.neutral20:r?i.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:!t&&(r?i.primary:i.primary50)}}},placeholder:function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},singleValue:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{label:"singleValue",color:t?o.neutral40:o.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"calc(100% - ".concat(2*r.baseUnit,"px)"),overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},valueContainer:function(e){var t=e.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}};var da={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}};function fa(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 pa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fa(Object(n),!0).forEach((function(t){Er(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ma(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=br(e);if(t){var o=br(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return gr(this,n)}}var ha,ga={backspaceRemovesValue:!0,blurInputOnSelect:Vr(),captureMenuScroll:!Vr(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ro(Object(n),!0).forEach((function(t){Er(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ro(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({ignoreCase:!0,ignoreAccents:!0,stringify:Fo,trim:!0,matchFrom:"any"},ha),r=n.ignoreCase,o=n.ignoreAccents,a=n.stringify,i=n.trim,s=n.matchFrom,l=i?Vo(t):t,c=i?Vo(a(e)):a(e);return r&&(l=l.toLowerCase(),c=c.toLowerCase()),o&&(l=No(l),c=No(c)),"start"===s?c.substr(0,l.length)===l:c.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:ca,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:"0",tabSelectsValue:!0},ba=1,ya=function(e){pr(r,e);var n=ma(r);function r(e){var t;ur(this,r),(t=n.call(this,e)).state={ariaLiveSelection:"",ariaLiveContext:"",focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,menuOptions:{render:[],focusable:[]},selectValue:[]},t.blockOptionHover=!1,t.isComposing=!1,t.clearFocusValueOnUpdate=!1,t.commonProps=void 0,t.components=void 0,t.hasGroups=!1,t.initialTouchX=0,t.initialTouchY=0,t.inputIsHiddenAfterUpdate=void 0,t.instancePrefix="",t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.cacheComponents=function(e){t.components=Po({components:e})},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,o=r.onChange,a=r.name;o(e,pa(pa({},n),{},{name:a}))},t.setValue=function(e){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"set-value",r=arguments.length>2?arguments[2]:undefined,o=t.props,a=o.closeMenuOnSelect,i=o.isMulti;t.onInputChange("",{action:"set-value"}),a&&(t.inputIsHiddenAfterUpdate=!i,t.onMenuClose()),t.clearFocusValueOnUpdate=!0,t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,o=n.isMulti,a=t.state.selectValue;if(o)if(t.isOptionSelected(e,a)){var i=t.getOptionValue(e);t.setValue(a.filter((function(e){return t.getOptionValue(e)!==i})),"deselect-option",e),t.announceAriaLiveSelection({event:"deselect-option",context:{value:t.getOptionLabel(e)}})}else t.isOptionDisabled(e,a)?t.announceAriaLiveSelection({event:"select-option",context:{value:t.getOptionLabel(e),isDisabled:!0}}):(t.setValue([].concat(Sr(a),[e]),"select-option",e),t.announceAriaLiveSelection({event:"select-option",context:{value:t.getOptionLabel(e)}}));else t.isOptionDisabled(e,a)?t.announceAriaLiveSelection({event:"select-option",context:{value:t.getOptionLabel(e),isDisabled:!0}}):(t.setValue(e,"select-option"),t.announceAriaLiveSelection({event:"select-option",context:{value:t.getOptionLabel(e)}}));r&&t.blurInput()},t.removeValue=function(e){var n=t.state.selectValue,r=t.getOptionValue(e),o=n.filter((function(e){return t.getOptionValue(e)!==r}));t.onChange(o.length?o:null,{action:"remove-value",removedValue:e}),t.announceAriaLiveSelection({event:"remove-value",context:{value:e?t.getOptionLabel(e):""}}),t.focusInput()},t.clearValue=function(){t.onChange(null,{action:"clear"})},t.popValue=function(){var e=t.state.selectValue,n=e[e.length-1],r=e.slice(0,e.length-1);t.announceAriaLiveSelection({event:"pop-value",context:{value:n?t.getOptionLabel(n):""}}),t.onChange(r.length?r:null,{action:"pop-value",removedValue:n})},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return jr.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return t.props.getOptionLabel(e)},t.getOptionValue=function(e){return t.props.getOptionValue(e)},t.getStyles=function(e,n){var r=ua[e](n);r.boxSizing="border-box";var o=t.props.styles[e];return o?o(r,n):r},t.getElementId=function(e){return"".concat(t.instancePrefix,"-").concat(e)},t.getActiveDescendentId=function(){var e=t.props.menuIsOpen,n=t.state,r=n.menuOptions,o=n.focusedOption;if(!o||!e)return undefined;var a=r.focusable.indexOf(o),i=r.render[a];return i&&i.key},t.announceAriaLiveSelection=function(e){var n=e.event,r=e.context;t.setState({ariaLiveSelection:la(n,r)})},t.announceAriaLiveContext=function(e){var n=e.event,r=e.context;t.setState({ariaLiveContext:sa(n,pa(pa({},r),{},{label:t.props["aria-label"]}))})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var n=t.props,r=n.isMulti,o=n.menuIsOpen;t.focusInput(),o?(t.inputIsHiddenAfterUpdate=!r,t.onMenuClose()):t.openMenu("first"),e.preventDefault(),e.stopPropagation()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.stopPropagation(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Ar(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var o=Math.abs(r.clientX-t.initialTouchX),a=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=o>5||a>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=e.currentTarget.value;t.inputIsHiddenAfterUpdate=!1,t.onInputChange(n,{action:"input-change"}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){var n=t.props,r=n.isSearchable,o=n.isMulti;t.props.onFocus&&t.props.onFocus(e),t.inputIsHiddenAfterUpdate=!1,t.announceAriaLiveContext({event:"input",context:{isSearchable:r,isMulti:o}}),t.setState({isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur"}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){t.blockOptionHover||t.state.focusedOption===e||t.setState({focusedOption:e})},t.shouldHideSelectedOptions=function(){var e=t.props,n=e.hideSelectedOptions,r=e.isMulti;return n===undefined?r:n},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,o=n.backspaceRemovesValue,a=n.escapeClearsValue,i=n.inputValue,s=n.isClearable,l=n.isDisabled,c=n.menuIsOpen,u=n.onKeyDown,d=n.tabSelectsValue,f=n.openMenuOnFocus,p=t.state,m=p.focusedOption,h=p.focusedValue,g=p.selectValue;if(!(l||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||i)return;t.focusValue("previous");break;case"ArrowRight":if(!r||i)return;t.focusValue("next");break;case"Delete":case"Backspace":if(i)return;if(h)t.removeValue(h);else{if(!o)return;r?t.popValue():s&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!c||!d||!m||f&&t.isOptionSelected(m,g))return;t.selectOption(m);break;case"Enter":if(229===e.keyCode)break;if(c){if(!m)return;if(t.isComposing)return;t.selectOption(m);break}return;case"Escape":c?(t.inputIsHiddenAfterUpdate=!1,t.onInputChange("",{action:"menu-close"}),t.onMenuClose()):s&&a&&t.clearValue();break;case" ":if(i)return;if(!c){t.openMenu("first");break}if(!m)return;t.selectOption(m);break;case"ArrowUp":c?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":c?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!c)return;t.focusOption("pageup");break;case"PageDown":if(!c)return;t.focusOption("pagedown");break;case"Home":if(!c)return;t.focusOption("first");break;case"End":if(!c)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.buildMenuOptions=function(e,n){var r=e.inputValue,o=void 0===r?"":r,a=e.options,i=function(e,r){var a=t.isOptionDisabled(e,n),i=t.isOptionSelected(e,n),s=t.getOptionLabel(e),l=t.getOptionValue(e);if(!(t.shouldHideSelectedOptions()&&i||!t.filterOption({label:s,value:l,data:e},o))){var c=a?undefined:function(){return t.onOptionHover(e)},u=a?undefined:function(){return t.selectOption(e)},d="".concat(t.getElementId("option"),"-").concat(r);return{innerProps:{id:d,onClick:u,onMouseMove:c,onMouseOver:c,tabIndex:-1},data:e,isDisabled:a,isSelected:i,key:d,label:s,type:"option",value:l}}};return a.reduce((function(e,n,r){if(n.options){t.hasGroups||(t.hasGroups=!0);var o=n.options.map((function(t,n){var o=i(t,"".concat(r,"-").concat(n));return o&&e.focusable.push(t),o})).filter(Boolean);if(o.length){var a="".concat(t.getElementId("group"),"-").concat(r);e.render.push({type:"group",key:a,data:n,options:o})}}else{var s=i(n,"".concat(r));s&&(e.render.push(s),e.focusable.push(n))}return e}),{render:[],focusable:[]})};var o=e.value;t.cacheComponents=wr(t.cacheComponents,no).bind(hr(t)),t.cacheComponents(e.components),t.instancePrefix="react-select-"+(t.props.instanceId||++ba);var a=Tr(o);t.buildMenuOptions=wr(t.buildMenuOptions,(function(e,t){var n=Dr(e,2),r=n[0],o=n[1],a=Dr(t,2),i=a[0];return o===a[1]&&r.inputValue===i.inputValue&&r.options===i.options})).bind(hr(t));var i=e.menuIsOpen?t.buildMenuOptions(e,a):{render:[],focusable:[]};return t.state.menuOptions=i,t.state.selectValue=a,t}return fr(r,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this.props,n=t.options,r=t.value,o=t.menuIsOpen,a=t.inputValue;if(this.cacheComponents(e.components),e.value!==r||e.options!==n||e.menuIsOpen!==o||e.inputValue!==a){var i=Tr(e.value),s=e.menuIsOpen?this.buildMenuOptions(e,i):{render:[],focusable:[]},l=this.getNextFocusedValue(i),c=this.getNextFocusedOption(s.focusable);this.setState({menuOptions:s,selectValue:i,focusedOption:c,focusedValue:l})}null!=this.inputIsHiddenAfterUpdate&&(this.setState({inputIsHidden:this.inputIsHiddenAfterUpdate}),delete this.inputIsHiddenAfterUpdate)}},{key:"componentDidUpdate",value:function(e){var t,n,r,o,a,i=this.props,s=i.isDisabled,l=i.menuIsOpen,c=this.state.isFocused;(c&&!s&&e.isDisabled||c&&l&&!e.menuIsOpen)&&this.focusInput(),c&&s&&!e.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,n=this.focusedOptionRef,r=t.getBoundingClientRect(),o=n.getBoundingClientRect(),a=n.offsetHeight/3,o.bottom+a>r.bottom?Lr(t,Math.min(n.offsetTop+n.clientHeight-t.offsetHeight+a,t.scrollHeight)):o.top-a<r.top&&Lr(t,Math.max(n.offsetTop-a,0)),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){var e=this.props,t=e.isSearchable,n=e.isMulti;this.announceAriaLiveContext({event:"input",context:{isSearchable:t,isMulti:n}}),this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,a=this.buildMenuOptions(this.props,r),i=this.props,s=i.isMulti,l=i.tabSelectsValue,c="first"===e?0:a.focusable.length-1;if(!s){var u=a.focusable.indexOf(r[0]);u>-1&&(c=u)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.inputIsHiddenAfterUpdate=!1,this.setState({menuOptions:a,focusedValue:null,focusedOption:a.focusable[c]},(function(){t.onMenuOpen(),t.announceAriaLiveContext({event:"menu",context:{tabSelectsValue:l}})}))}},{key:"focusValue",value:function(e){var t=this.props,n=t.isMulti,r=t.isSearchable,o=this.state,a=o.selectValue,i=o.focusedValue;if(n){this.setState({focusedOption:null});var s=a.indexOf(i);i||(s=-1,this.announceAriaLiveContext({event:"value"}));var l=a.length-1,c=-1;if(a.length){switch(e){case"previous":c=0===s?0:-1===s?l:s-1;break;case"next":s>-1&&s<l&&(c=s+1)}-1===c&&this.announceAriaLiveContext({event:"input",context:{isSearchable:r,isMulti:n}}),this.setState({inputIsHidden:-1!==c,focusedValue:a[c]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"first",t=this.props,n=t.pageSize,r=t.tabSelectsValue,o=this.state,a=o.focusedOption,i=o.menuOptions,s=i.focusable;if(s.length){var l=0,c=s.indexOf(a);a||(c=-1,this.announceAriaLiveContext({event:"menu",context:{tabSelectsValue:r}})),"up"===e?l=c>0?c-1:s.length-1:"down"===e?l=(c+1)%s.length:"pageup"===e?(l=c-n)<0&&(l=0):"pagedown"===e?(l=c+n)>s.length-1&&(l=s.length-1):"last"===e&&(l=s.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:s[l],focusedValue:null}),this.announceAriaLiveContext({event:"menu",context:{isDisabled:ca(s[l]),tabSelectsValue:r}})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(da):pa(pa({},da),this.props.theme):da}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getValue,o=this.setValue,a=this.selectOption,i=this.props,s=i.isMulti,l=i.isRtl,c=i.options;return{cx:t,clearValue:e,getStyles:n,getValue:r,hasValue:this.hasValue(),isMulti:s,isRtl:l,options:c,selectOption:a,setValue:o,selectProps:i,theme:this.getTheme()}}},{key:"getNextFocusedValue",value:function(e){if(this.clearFocusValueOnUpdate)return this.clearFocusValueOnUpdate=!1,null;var t=this.state,n=t.focusedValue,r=t.selectValue.indexOf(n);if(r>-1){if(e.indexOf(n)>-1)return n;if(r<e.length)return e[r]}return null}},{key:"getNextFocusedOption",value:function(e){var t=this.state.focusedOption;return t&&e.indexOf(t)>-1?t:e[0]}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.state.menuOptions.render.length}},{key:"countOptions",value:function(){return this.state.menuOptions.focusable.length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return t===undefined?n:t}},{key:"isOptionDisabled",value:function(e,t){return"function"==typeof this.props.isOptionDisabled&&this.props.isOptionDisabled(e,t)}},{key:"isOptionSelected",value:function(e,t){var n=this;if(t.indexOf(e)>-1)return!0;if("function"==typeof this.props.isOptionSelected)return this.props.isOptionSelected(e,t);var r=this.getOptionValue(e);return t.some((function(e){return n.getOptionValue(e)===r}))}},{key:"filterOption",value:function(e,t){return!this.props.filterOption||this.props.filterOption(e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"constructAriaLiveMessage",value:function(){var e=this.state,t=e.ariaLiveContext,n=e.selectValue,r=e.focusedValue,o=e.focusedOption,a=this.props,i=a.options,s=a.menuIsOpen,l=a.inputValue,c=a.screenReaderStatus,u=r?function(e){var t=e.focusedValue,n=e.getOptionLabel,r=e.selectValue;return"value ".concat(n(t)," focused, ").concat(r.indexOf(t)+1," of ").concat(r.length,".")}({focusedValue:r,getOptionLabel:this.getOptionLabel,selectValue:n}):"",d=o&&s?function(e){var t=e.focusedOption,n=e.getOptionLabel,r=e.options;return"option ".concat(n(t)," focused").concat(t.isDisabled?" disabled":"",", ").concat(r.indexOf(t)+1," of ").concat(r.length,".")}({focusedOption:o,getOptionLabel:this.getOptionLabel,options:i}):"",f=function(e){var t=e.inputValue,n=e.screenReaderMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}({inputValue:l,screenReaderMessage:c({count:this.countOptions()})});return"".concat(u," ").concat(d," ").concat(f," ").concat(t)}},{key:"renderInput",value:function(){var e=this.props,n=e.isDisabled,r=e.isSearchable,o=e.inputId,a=e.inputValue,i=e.tabIndex,s=e.form,l=this.components.Input,c=this.state.inputIsHidden,u=o||this.getElementId("input"),d={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]};if(!r)return t().createElement(Ho,De({id:u,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Pr,onFocus:this.onInputFocus,readOnly:!0,disabled:n,tabIndex:i,form:s,value:""},d));var f=this.commonProps,p=f.cx,m=f.theme,h=f.selectProps;return t().createElement(l,De({autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",cx:p,getStyles:this.getStyles,id:u,innerRef:this.getInputRef,isDisabled:n,isHidden:c,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,selectProps:h,spellCheck:"false",tabIndex:i,form:s,theme:m,type:"text",value:a},d))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,n=this.components,r=n.MultiValue,o=n.MultiValueContainer,a=n.MultiValueLabel,i=n.MultiValueRemove,s=n.SingleValue,l=n.Placeholder,c=this.commonProps,u=this.props,d=u.controlShouldRenderValue,f=u.isDisabled,p=u.isMulti,m=u.inputValue,h=u.placeholder,g=this.state,b=g.selectValue,y=g.focusedValue,v=g.isFocused;if(!this.hasValue()||!d)return m?null:t().createElement(l,De({},c,{key:"placeholder",isDisabled:f,isFocused:v}),h);if(p)return b.map((function(n,s){var l=n===y;return t().createElement(r,De({},c,{components:{Container:o,Label:a,Remove:i},isFocused:l,isDisabled:f,key:"".concat(e.getOptionValue(n)).concat(s),index:s,removeProps:{onClick:function(){return e.removeValue(n)},onTouchEnd:function(){return e.removeValue(n)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:n}),e.formatOptionLabel(n,"value"))}));if(m)return null;var w=b[0];return t().createElement(s,De({},c,{data:w,isDisabled:f}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.components.ClearIndicator,n=this.commonProps,r=this.props,o=r.isDisabled,a=r.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||o||!this.hasValue()||a)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return t().createElement(e,De({},n,{innerProps:s,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.components.LoadingIndicator,n=this.commonProps,r=this.props,o=r.isDisabled,a=r.isLoading,i=this.state.isFocused;if(!e||!a)return null;return t().createElement(e,De({},n,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:i}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.components,n=e.DropdownIndicator,r=e.IndicatorSeparator;if(!n||!r)return null;var o=this.commonProps,a=this.props.isDisabled,i=this.state.isFocused;return t().createElement(r,De({},o,{isDisabled:a,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.components.DropdownIndicator;if(!e)return null;var n=this.commonProps,r=this.props.isDisabled,o=this.state.isFocused,a={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return t().createElement(e,De({},n,{innerProps:a,isDisabled:r,isFocused:o}))}},{key:"renderMenu",value:function(){var e=this,n=this.components,r=n.Group,o=n.GroupHeading,a=n.Menu,i=n.MenuList,s=n.MenuPortal,l=n.LoadingMessage,c=n.NoOptionsMessage,u=n.Option,d=this.commonProps,f=this.state,p=f.focusedOption,m=f.menuOptions,h=this.props,g=h.captureMenuScroll,b=h.inputValue,y=h.isLoading,v=h.loadingMessage,w=h.minMenuHeight,C=h.maxMenuHeight,x=h.menuIsOpen,k=h.menuPlacement,O=h.menuPosition,D=h.menuPortalTarget,S=h.menuShouldBlockScroll,E=h.menuShouldScrollIntoView,M=h.noOptionsMessage,P=h.onMenuScrollToTop,_=h.onMenuScrollToBottom;if(!x)return null;var j,T=function(n){var r=p===n.data;return n.innerRef=r?e.getFocusedOptionRef:undefined,t().createElement(u,De({},d,n,{isFocused:r}),e.formatOptionLabel(n.data,"menu"))};if(this.hasOptions())j=m.render.map((function(n){if("group"===n.type){n.type;var a=xr(n,["type"]),i="".concat(n.key,"-heading");return t().createElement(r,De({},d,a,{Heading:o,headingProps:{id:i,data:n.data},label:e.formatGroupLabel(n.data)}),n.options.map((function(e){return T(e)})))}if("option"===n.type)return T(n)}));else if(y){var A=v({inputValue:b});if(null===A)return null;j=t().createElement(l,d,A)}else{var I=M({inputValue:b});if(null===I)return null;j=t().createElement(c,d,I)}var L={minMenuHeight:w,maxMenuHeight:C,menuPlacement:k,menuPosition:O,menuShouldScrollIntoView:E},N=t().createElement(qr,De({},d,L),(function(n){var r=n.ref,o=n.placerProps,s=o.placement,l=o.maxHeight;return t().createElement(a,De({},d,L,{innerRef:r,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:y,placement:s}),t().createElement(ia,{isEnabled:g,onTopArrive:P,onBottomArrive:_},t().createElement(ra,{isEnabled:S},t().createElement(i,De({},d,{innerRef:e.getMenuListRef,isLoading:y,maxHeight:l}),j))))}));return D||"fixed"===O?t().createElement(s,De({},d,{appendTo:D,controlElement:this.controlRef,menuPlacement:k,menuPosition:O}),N):N}},{key:"renderFormField",value:function(){var e=this,n=this.props,r=n.delimiter,o=n.isDisabled,a=n.isMulti,i=n.name,s=this.state.selectValue;if(i&&!o){if(a){if(r){var l=s.map((function(t){return e.getOptionValue(t)})).join(r);return t().createElement("input",{name:i,type:"hidden",value:l})}var c=s.length>0?s.map((function(n,r){return t().createElement("input",{key:"i-".concat(r),name:i,type:"hidden",value:e.getOptionValue(n)})})):t().createElement("input",{name:i,type:"hidden"});return t().createElement("div",null,c)}var u=s[0]?this.getOptionValue(s[0]):"";return t().createElement("input",{name:i,type:"hidden",value:u})}}},{key:"renderLiveRegion",value:function(){return this.state.isFocused?t().createElement(zo,{"aria-live":"polite"},t().createElement("span",{id:"aria-selection-event"}," ",this.state.ariaLiveSelection),t().createElement("span",{id:"aria-context"}," ",this.constructAriaLiveMessage())):null}},{key:"render",value:function(){var e=this.components,n=e.Control,r=e.IndicatorsContainer,o=e.SelectContainer,a=e.ValueContainer,i=this.props,s=i.className,l=i.id,c=i.isDisabled,u=i.menuIsOpen,d=this.state.isFocused,f=this.commonProps=this.getCommonProps();return t().createElement(o,De({},f,{className:s,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:d}),this.renderLiveRegion(),t().createElement(n,De({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:d,menuIsOpen:u}),t().createElement(a,De({},f,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),t().createElement(r,De({},f,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}]),r}(e.Component);function va(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=br(e);if(t){var o=br(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return gr(this,n)}}ya.defaultProps=ga;var wa={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null};function Ca(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=br(e);if(t){var o=br(this).constructor;Reflect.construct(r,arguments,o)}else r.apply(this,arguments);return gr(this,n)}}e.Component;var xa,ka,Oa,Da=(xa=ya,Oa=ka=function(e){pr(r,e);var n=va(r);function r(){var e;ur(this,r);for(var t=arguments.length,o=new Array(t),a=0;a<t;a++)o[a]=arguments[a];return(e=n.call.apply(n,[this].concat(o))).select=void 0,e.state={inputValue:e.props.inputValue!==undefined?e.props.inputValue:e.props.defaultInputValue,menuIsOpen:e.props.menuIsOpen!==undefined?e.props.menuIsOpen:e.props.defaultMenuIsOpen,value:e.props.value!==undefined?e.props.value:e.props.defaultValue},e.onChange=function(t,n){e.callProp("onChange",t,n),e.setState({value:t})},e.onInputChange=function(t,n){var r=e.callProp("onInputChange",t,n);e.setState({inputValue:r!==undefined?r:t})},e.onMenuOpen=function(){e.callProp("onMenuOpen"),e.setState({menuIsOpen:!0})},e.onMenuClose=function(){e.callProp("onMenuClose"),e.setState({menuIsOpen:!1})},e}return fr(r,[{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"getProp",value:function(e){return this.props[e]!==undefined?this.props[e]:this.state[e]}},{key:"callProp",value:function(e){if("function"==typeof this.props[e]){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return(t=this.props)[e].apply(t,r)}}},{key:"render",value:function(){var e=this,n=this.props,r=(n.defaultInputValue,n.defaultMenuIsOpen,n.defaultValue,xr(n,["defaultInputValue","defaultMenuIsOpen","defaultValue"]));return t().createElement(xa,De({},r,{ref:function(t){e.select=t},inputValue:this.getProp("inputValue"),menuIsOpen:this.getProp("menuIsOpen"),onChange:this.onChange,onInputChange:this.onInputChange,onMenuClose:this.onMenuClose,onMenuOpen:this.onMenuOpen,value:this.getProp("value")}))}}]),r}(e.Component),ka.defaultProps=wa,Oa),Sa=n(73),Ea=n.n(Sa),Ma=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))}},Pa=n(455),_a=n.n(Pa),ja=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!!.")))},Ta=function(){for(var e,t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];var a=[].concat(r)[2],i=[].concat(r)[3],s=[].concat(r)[4],l=[].concat(r)[5],c=a.errors,u=a.success,d=a.form_res,f=null!==(e=document.querySelector("#mf-response-props-id-"+a.formId))&&void 0!==e&&e.dataset.response_type?null===(t=document.querySelector("#mf-response-props-id-"+a.formId))||void 0===t?void 0:t.dataset.response_type:"alert";if("sweet_alert"==f){var p=function(){_a().fire(u,"","success"),r[2].success=""},m=function(){_a().fire(c[0],c[1],"error"),r[2].errors=[]};(c.length||u)&&(c.length?m():p())}if("alert"==f){var h=function(){return React.createElement(React.Fragment,null,React.createElement("i",{className:"mf-alert-icon ".concat(s)}),React.createElement("p",null,c.map((function(e){return e+" "}))," "))},g=function(){return React.createElement(React.Fragment,null,React.createElement("i",{className:"mf-success-icon ".concat(i)}),React.createElement("p",null,u))};return React.createElement("div",{className:"mf-main-response-wrap ".concat(l," mf-response-msg-wrap").concat(c.length>0?" mf-error-res":""),"data-show":d},React.createElement("div",{className:"mf-response-msg"},c.length?h():g()))}};function Aa(e){return(Aa="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 Ia=function(e,t,n){if("mf-captcha-challenge"!==e&&"g-recaptcha-response"!==e&&"right-answer"!==e&&"wrong-answer"!==e&&"quiz-marks"!==e&&"total-question"!==e){var r=n.getValue(e);Array.isArray(r)&&(r=r.join(", ")),"object"===Aa(r)&&r.name&&(r=r.name);if(function(e){return"File"in window&&e instanceof File}(r[0])&&"object"===Aa(r)&&(r=Object.keys(r).map((function(e){return r[e].name})).join(", ")),"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,o=null==n||null===(r=n.formContainerRef)||void 0===r?void 0:r.current,a=null==o?void 0:o.querySelector('[name="'+e+'"]'),i=a?a.closest(".mf-input-wrapper").querySelector("label"):null;return i?i.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(){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}))}))}}))};function Na(e){return(Na="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)}window.mfMapLocation=La;var Ra,Va=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"===Na(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 l=new a(e);return l.parent=u,l}function l(n){if(n!==undefined)switch(n.id){case"Expr":case"Tuple":return l(n.expr);case"OpenTuple":return n.expr?d(n.expr):d(n.left,n.right);case"Assign":return n.expr?l(n.expr):(s=n.left,u=l(u=n.right),function(e){return e.set(s.value,u.apply(null,arguments))});case"Sums":case"Prod":case"Power":return n.expr?l(n.expr):function(t,n,o){n=l(n),o=l(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?l(n.expr):function(t,n){switch(n=l(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=l(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 l(n.expr);case"Value":return l(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,u;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 d(e,t){if(e===undefined)return function(){return[]};var n="OpenTuple"===e.id;return e=l(e),t===undefined?function(){return[e.apply(null,arguments)]}:(t=l(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=D(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],l=(s?s.id:"(empty)")+":"+(i?i.id:"(eof)");switch(f[l]){case 1:e.debug("shift %s %o",l,m(n.stack)),n=h(n,i),r++;break;case 2:e.debug("reduce %s %o",l,m(n.stack)),n=b(n,i);break;case 0:e.debug("done %s %o",l,m(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,l)}else{c={text:"Unexpected EOF",pos:n.pos+1};n.error=c,e.warn("%s (%s)",c.text,l)}a=!0}}if(!n.error&&n.stack.length>1){var u=y(n,1);c={pos:u.pos||0,text:"LParen"===u.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,u=(a=l(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 u(s(c,o.vars,arguments))},set scope(e){c=e||{}},get scope(){return c}}};var f={};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];f[s]=e}}function m(t){return e.level>=o.DEBUG?t.map((function(e){return e.id})):""}function h(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 b(t,n){switch(y(t,0).id){case"Tuple":return function(e){var t=y(e,0);return g(e,1,{id:"Expr",expr:t})}(t);case"OpenTuple":case"Comma":return v(t,n);case"Assign":case"Sums":return function(e,t){var n=y(e,1),r=y(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 v(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=y(e,1),n=y(e,0);if(n!==undefined&&"Unary"===n.id){var r=x(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 x(t);case"Value":case"RParen":return function(t){var n=y(t,3),r=y(t,2),o=y(t,1),a=y(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=y(e,0);e=g(e,1,{id:"Value",token:t}),"Var"===t.id&&(e.scope[t.value]=t);return e}(t)}return t}function y(e,t){return t===undefined&&(t=0),e.stack[e.stack.length-(t+1)]}function v(e,t){var n=y(e,2),r=y(e,1),o=y(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=y(e,2),o=y(e,1),a=y(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 x(e,t){var n=y(e,2),r=y(e,1),o=y(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 k=/^(?:(\s+)|((?:\d+e[-+]?\d+|\d+(?:\.\d*)?|\d*\.\d+))|(\+)|(\-)|(\*)|(\/)|(%)|(\^)|(\()|(\))|(=)|(,)|([a-zA-Z]\w*))/i,O=["Space","Number","Plus","Minus","Mul","Div","Mod","Pow","LParen","RParen","Eq","Comma","Var"];function D(t,n){var r=t.slice(n);if(0!==r.length){var o=k.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!==k.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,l=O.length;s<l;s++){var c=o[s+1];if(c!==undefined)return{id:O[s],string:c,pos:n,end:n+c.length,value:E(O[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 l,c,u=((c=new a).set("pi",Math.PI),c.set("e",Math.E),c.set("inf",Number.POSITIVE_INFINITY),l=Math,Object.getOwnPropertyNames(Math).forEach((function(e){c.set(e,l[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}(),Fa="";Ra=jQuery,Element.prototype.getElSettings=function(e){if("settings"in this.dataset)return JSON.parse(this.dataset.settings.replace(/("\;)/g,'"'))[e]||""},Fa=function(e,t){var n=e.find(".mf-multistep-container");0===n.find(".elementor-section-wrap").length&&n.find('div[data-elementor-type="wp-post"]').addClass("elementor-section-wrap");var r=n.find(".e-container--column").length>0?".e-container--column":".elementor-top-section";if(n.length){var o=[];n.find(r).each((function(e){var t=this.getElSettings("metform_multistep_settings_title")||"Step-"+Ra(this).data("id"),r=this.getElSettings("metform_multistep_settings_icon"),a="",i="";r&&(a="svg"===r.library?'<img class="metform-step-svg-icon" src="'+r.value.url+'" alt="SVG Icon" />':r.value.length?'<i class="metform-step-icon '+r.value+'"></i>':""),0===e?(i="active",n.hasClass("mf_slide_direction_vertical")&&Ra(this).parents(".elementor-section-wrap").css("height",Ra(this).height())):1===e&&(i="next"),t&&o.push("<li class='metform-step-item "+i+"' id='metform-step-item-"+Ra(this).attr("data-id")+"' data-value='"+Ra(this).attr("data-id")+"'>"+a+'<span class="metform-step-title">'+t+"</span></li>")})),o&&(n.find(".metform-form-content .metform-form-main-wrapper > .elementor").before("<ul class='metform-steps'>"+o.join("")+"</ul>"),n.find("".concat(r,":first-of-type")).addClass("active"),n.find(".mf-progress-step-bar span").attr("data-portion",100/o.length).css("width",100/o.length+"%"))}n.find("".concat(r," .metform-btn")).attr("type","button"),n.find(".mf-input").on("keypress",(function(e){13!==e.which||Ra(this).hasClass("mf-textarea")||n.find(".metform-step-item.next").trigger("click")})),n.find(r).on("keydown",(function(e){var t=Ra(this),n=Ra(":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,o=this,a=Ra(this).parents(".mf-form-wrapper").eq(0),i=a.find("".concat(r,".active .mf-input")),s=(Ra("body").hasClass("rtl")?100:-100)*Ra(this).index()+"%",l=(a.find(".mf-progress-step-bar").attr("data-total"),Ra(this.nextElementSibling).hasClass("active")),c=[];Ra(this).hasClass("prev","progress")&&Ra(this).removeClass("progress"),i.each((function(){var e=Ra(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&&c.push(t)})),e=function(e){e&&(a.find("".concat(r,".active .metform-btn")).attr("type","button"),(Ra(o).hasClass("prev")||Ra(o).hasClass("next"))&&(Ra(o).addClass("active").removeClass("next prev").prev().addClass("prev").siblings().removeClass("prev").end().end().next().addClass("next").siblings().removeClass("next").end().end().siblings().removeClass("active"),a.find("".concat(r,'[data-id="')+Ra(o).data("value")+'"]').addClass("active").siblings().removeClass("active"),n.hasClass("mf_slide_direction_vertical")?(a.find(".elementor-section-wrap ".concat(r)).css({transform:"translateY("+s+")"}),a.find(".elementor-section-wrap").css("height","calc("+a.find("".concat(r,'[data-id="')+Ra(o).data("value")+'"]').height()+"px)")):a.find(".elementor-section-wrap").css({transform:"translateX("+s+")"})),a.find(".mf-progress-step-bar span").css("width",(Ra(o).index()+1)*a.find(".mf-progress-step-bar span").attr("data-portion")+"%"),a.find("".concat(r,".active")).find(".metform-submit-btn").length&&setTimeout((function(){a.find("".concat(r,".active")).find(".metform-submit-btn").attr("type","submit")}),0))},l?e(!0):(t.doValidate(c).then(e),"yes"===Ra(this).closest("div[data-previous-steps-style]").attr("data-previous-steps-style")&&setTimeout((function(){Ra(o).hasClass("active")&&Ra(o).prevAll().addClass("progress")}),0))}))};function Ba(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(l){s=!0,o=l}finally{try{i||null==n["return"]||n["return"]()}finally{if(s)throw o}}return a}(e,t)||Ha(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 za(e){return function(e){if(Array.isArray(e))return Ua(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ha(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 Ha(e,t){if(e){if("string"==typeof e)return Ua(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)?Ua(e,t):void 0}}function Ua(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 Wa(e){return(Wa="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 qa(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 Ya(e,t){return(Ya=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function $a(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=Qa(e);if(t){var o=Qa(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ka(this,n)}}function Ka(e,t){if(t&&("object"===Wa(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ga(e)}function Ga(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qa(e){return(Qa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Za(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?Za(Object(n),!0).forEach((function(t){Xa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Za(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ei=new(ke())({tolerance:200}),ti=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&&Ya(e,t)}(a,React.Component);var t,n,r,o=$a(a);function a(e){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),Xa(Ga(n=o.call(this,e)),"handleFormSubmit",(function(e,t){var r;t.preventDefault();var o=n.state,a=o.formData,i=o.defaultData,s=n.props,l=s.action,c=s.wpNonce,u=s.validation,d=u.reset,f=new FormData,p=Ja(Ja({},i),a);for(var m in jQuery(n.mfRefs.mainForm.parentElement).trigger("metform/before_submit",p),jQuery(n.mfRefs.mainForm).find(".metform-submit-btn").attr("disabled",!0),p)if("object"==Wa(p[m])){var h=p[m][0];if(Blob&&h instanceof Blob)for(var g=p[m].length,b=0;b<g;b++)f.append(m+"[]",p[m][b]);else f.append(m,p[m])}else f.append(m,p[m]);r="mf_success_duration"in n.props.widgetSettings?n.props.widgetSettings.mf_success_duration:5,r*=1e3,fetch(l,{method:"POST",headers:{"X-WP-Nonce":c},body:f}).then((function(e){return e.json()})).then((function(e){var t,o;(n.formSubmitResponse=e,e.status)?(n.setState({success:"true"===n.props.quizSummery&&Object.keys(n.state.answers).length&&e.data.message?"".concat(e.data.message," You have got ").concat(n.state.formData["quiz-marks"]," Marks. Right Answer ").concat(null===(t=n.state.formData)||void 0===t?void 0:t["right-answer"].length,".\n\t\t\t\t\tWrong Answer ").concat(null===(o=n.state.formData)||void 0===o?void 0:o["wrong-answer"].length,"."):e.data.message?e.data.message:"",form_res:1},(function(){n.resetReCAPTCHA(),u.clearErrors("g-recaptcha-response")})),e.status&&e.data.hide_form&&(n.formRef.current.setAttribute("class","mf-close-this-form"),setTimeout((function(){n.formRef.current.innerHTML=""}),600))):n.setState({errors:za(e.error),form_res:1},(function(){n.resetReCAPTCHA(),n.setValue("mf-captcha-challenge","",!0),u.clearErrors("g-recaptcha-response")}));if(e.data.store&&"stripe"===e.data.store["mf-payment-method"]&&n.stripePayment(e),jQuery(n.mfRefs.mainForm.parentElement).trigger("metform/after_submit",{data:p,response:e}),e.data.store&&"stripe"!==e.data.store["mf-payment-method"]&&e.status&&e.data.redirect_to){var a=e.data.entry_id,i=e.data.redirect_to;a&&""!==a&&(i+=(i.includes("?")?"&":"?")+"mf_entry_id="+a),setTimeout((function(){window.location.href=i}),1500)}setTimeout((function(){e.data.hide_form||e.data.store&&"stripe"!==e.data.store["mf-payment-method"]&&n.setState({success:"",errors:[],form_res:0})}),r)}))["catch"]((function(e){n.setState({errors:["Something went wrong"],form_res:1},(function(){n.resetReCAPTCHA(),n.setValue("mf-captcha-challenge","",!0),u.clearErrors("g-recaptcha-response")})),console.error(e.message),setTimeout((function(){n.setState({errors:[],form_res:0})}),r)}))["finally"]((function(){if(n.state.submitted=!0,jQuery(n.mfRefs.mainForm).find(".metform-submit-btn").attr("disabled",!1),!n.props.stopVerticalEffect){var e=n.mfRefs.mainForm.querySelector(".mf-main-response-wrap");ei.move(e)}setTimeout((function(){n.setState({formData:{},mobileWidget:{}}),localStorage.removeItem("metform-".concat(n.props.formId)),jQuery(n.mfRefs.mainForm).find(".mf-toggle-select-input").each((function(){jQuery(this).removeAttr("checked")})),n.state.hasOwnProperty(["QuizInfo"])&&(n.state.formData["total-question"]=n.state.QuizInfo.totalQuestion,n.state.formData["right-answer"]=n.state.QuizInfo.rightAnswer,n.state.formData["wrong-answer"]=n.state.QuizInfo.wrongAnswer,n.state.formData["quiz-marks"]=n.state.QuizInfo.marks)}),350),jQuery(n.mfRefs.mainForm).find(".btn.clear").click(),d()}))})),Xa(Ga(n),"handleCalculations",(function(e,t){var r=e.target.calc_behavior,o=ReactDOM.findDOMNode(Ga(n)),a=o.length?o.querySelectorAll(".mf-input-calculation"):[];for(var i in t)if(Array.isArray(t[i])){var s=t[i].map((function(e){return isNaN(e)?e:Number(e)}));t[i]=s}for(var l in a.forEach((function(e){var o=parseInt(e.dataset.fraction);o=o<0||o>99?2:o;var a=n.MfMathCalc.parse(e.dataset.equation,t,r)||0;if("NaN"!==a){var i=a.toString().split(".");i.length>1&&(i[1]=i[1].slice(0,o),i[1].length||i.pop()),t[e.name]=i.join(".")}})),t)if(Array.isArray(t[l]))for(var c=0;c<t[l].length;c++)"number"==typeof t[l][c]&&(t[l][c]=t[l][c]+"")})),Xa(Ga(n),"handleConditionals",(function(e){var t=n.state,r=t.formData,o=t.defaultData,a=n.props,i=a.widgets,s=a.conditionalRefs,l=a.validation,c=l.getValues,u=l.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(t){t.name=t.mf_conditional_logic_form_if,t.value=r[t.name]||o[t.name]||"",t.match=t.mf_conditional_logic_form_value,t.operator=n.decodeEntities(t.mf_conditional_logic_form_comparison_operators),Array.isArray(t.value)&&-1!==t.value.indexOf(t.match)&&(t.value=t.value[t.value.indexOf(t.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}}(t.value,t.match,t.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 t=e.settings.mf_input_name;if(e.isValidated&&"show"===e.action){var a,s;e.el.setAttribute("mf-condition-hidden",!1),e.el.classList.remove("mf-condition--hidden"),null===(a=e.el.closest(".elementor-top-section"))||void 0===a||a.classList.remove("mf-condition--hidden"),null===(s=e.el.closest(".e-container"))||void 0===s||s.classList.remove("mf-condition--hidden"),"noval"===c(t)&&u(t,undefined)}else{var l,d,f;if(e.el.setAttribute("mf-condition-hidden",!0),!e.el.closest(".elementor-inner-section")&&!e.el.closest(".e-container"))Array.isArray(null===(l=Object.values(e.el.closest(".elementor-widget-wrap"))[1])||void 0===l?void 0:l.children)||e.el.closest(".elementor-top-section").classList.add("mf-condition--hidden");if(e.el.closest(".e-container"))(null===(d=Object.values(e.el.closest(".e-container"))[1])||void 0===d||null===(f=d.children)||void 0===f?void 0:f.length)<=2&&e.el.closest(".e-container").classList.add("mf-condition--hidden");e.el.classList.add("mf-condition--hidden"),Object.values(e.el.classList).indexOf("elementor-widget-mf-select")>-1&&u(t,"noval")}}))})),Xa(Ga(n),"getValue",(function(e){return e in n.state.formData?n.state.formData[e]:""})),Xa(Ga(n),"getFileLabel",(function(e,t){var r=n.state.formData[e],o="";if(r&&(null==r?void 0:r.length)>1){for(var a=0;a<(null==r?void 0:r.length);a++)o+=r[a].name+",";o=o.slice(0,-1)}else 1==(null==r?void 0:r.length)&&(o=r?r[0].name:"");return r?o:n.decodeEntities(t)})),Xa(Ga(n),"getInputLabel",(function(e,t){var r=ReactDOM.findDOMNode(Ga(n)).querySelector('[name="'+e+'"]'),o=r?r.closest(".mf-input-wrapper").querySelector("label"):null;return o?o.innerText.replace(/\*/g,"").trim():t})),Xa(Ga(n),"decodeEntities",(function(e){var t=document.createElement("textarea");return t.innerHTML=e,t.value})),Xa(Ga(n),"setDefault",(function(e){if(null!==e){var t=e.name,r=e.value,o=n.state.defaultData;o[t]=r,n.setState({defaultData:o})}})),Xa(Ga(n),"isNumeric",(function(e){return!isNaN(parseFloat(e))&&isFinite(e)})),Xa(Ga(n),"setStateValue",(function(e,t){n.setState({name:e,value:t})})),Xa(Ga(n),"handleCardNumber",(function(e){var t=e.target,r=t.name,o=t.value,a=n.state.formData,i=a[r+"--type"],s=o.replace(/\s+/g,"").replace(/[^0-9]/gi,""),l=a[r],c="amex"===i?5:4,u="amex"===i?15:16;if(new RegExp("^[0-9]*$").test(s)&&s.length<=u){for(var d=s.match(/\d{4,16}/g),f=d&&d[0]||"",p=[],m=0,h=f.length;m<h;m+=c)p.push(f.substring(m,m+c));p.length&&(s=p.join(" ").trim()),l=s}n.setValue(r,l,!0),n.handleChange(e),e.target.value=l,n.handleCardType(s,e.target.name)})),Xa(Ga(n),"handleCardType",(function(e,t){var r="blank",o=t+"--type";r=e.startsWith("34")||e.startsWith("37")?"amex":e.startsWith("4")?"visa":e.startsWith("5")?"master":e.startsWith("6")?"discover":"custom";var a=n.state.formData;a[o]=r,n.setState({formData:a})})),Xa(Ga(n),"handleCardMonth",(function(e){var t=e.target,r=t.name,o=t.value,a=parseInt(o.replace(/-/g,""))||"",i=parseInt(a.toString().substring(0,1))||"";1<i&&i<10?n.setValue(r,i,!0):n.setValue(r,a>12?12:a,!0),n.handleChange(e)})),Xa(Ga(n),"handleSubVal",(function(e,t){var r=e.target,o=r.name,a=r.value,i=parseInt(a.replace(/-/g,"").substring(0,t))||"";n.setValue(o,i,!0),e.target.value=i,n.handleChange(e)})),Xa(Ga(n),"handleSaveProgress",(function(e,t){if(!elementorFrontend.isEditMode()&&"true"===n.props.saveProgress&&!(document.getElementsByName(e)[0].className.includes("mf-captcha-input")||document.getElementsByName(e)[0].className.includes("g-recaptcha-response")||document.getElementsByName(e)[0].className.includes("g-recaptcha-response-v3")||"password"==document.getElementsByName(e)[0].type||document.getElementsByName(e)[0].closest(".mf-credit-card-wrapper")||"file"===document.getElementsByName(e)[0].type)){var r=new Date;r.setMinutes(r.getMinutes()+120),null===localStorage.getItem("metform-".concat(n.props.formId))&&localStorage.setItem("metform-".concat(n.props.formId),JSON.stringify({expireTime:r.getTime()})),setTimeout((function(){var r,o,a=null===(r=document.getElementsByClassName("mf-input-calculation")[0])||void 0===r?void 0:r.value,i=null===(o=document.getElementsByClassName("mf-input-calculation")[0])||void 0===o?void 0:o.name,s=JSON.parse(localStorage.getItem("metform-".concat(n.props.formId)));for(var l in a&&(s[i]=a),s[e]=t,s)""===s[l]&&delete s[l];localStorage.setItem("metform-".concat(n.props.formId),JSON.stringify(s))}),0)}})),Xa(Ga(n),"compareArrays",(function(e,t){if(!e||!t)return!1;if(e.length!==t.length)return!1;var n=e.sort(),r=t.sort();return n.map((function(e,t){return r[t]===e})).every((function(e){return e}))})),Xa(Ga(n),"handleIncorrectAnswer",(function(e,t,n,r,o,a){var i,s,l;null!==(i=e.formData["wrong-answer"])&&void 0!==i&&i.includes(n)||(t["wrong-answer"]=t["wrong-answer"]?[].concat(za(t["wrong-answer"]),[n]):[n],t["quiz-marks"]=(t["quiz-marks"]?t["quiz-marks"]:0)-(!(null!==(l=t["right-answer"])&&void 0!==l&&l.includes(n))&&(a||0)));if(null!==(s=t["right-answer"])&&void 0!==s&&s.includes(n)){var c=t["right-answer"].indexOf(n);t["quiz-marks"]=t["quiz-marks"]-o,t["quiz-marks"]=t["quiz-marks"]-(a||0),t["right-answer"].splice(c,1)}return t})),Xa(Ga(n),"handleCorrectAnswer",(function(e,t,r,o){var a,i;e["quiz-marks"]=(e["quiz-marks"]?e["quiz-marks"]:0)+r,e["quiz-marks"]=(e["quiz-marks"]?e["quiz-marks"]:0)+(o||0),e["right-answer"]=e["right-answer"]?[].concat(za(e["right-answer"]),[t]):[t];var s=null===(a=e["wrong-answer"])||void 0===a?void 0:a.indexOf(t);null===(i=e["wrong-answer"])||void 0===i||i.splice(s,1),n.setState({formData:e})})),Xa(Ga(n),"handleChange",(function(e){var t=e.target,r=t.name,o=t.value,a=t.type,i=n.state.formData;i[r]="number"===a&&"mobile"!==a?Number(o):o,n.handleCalculations(e,i),n.setState({formData:i});var s=e.target;if(s.className!==undefined&&-1!==s.className.indexOf("mf-repeater-type-simple")||n.trigger(r),n.handleSaveProgress(r,o),"quiz-form"===n.props.formType&&Object.keys(n.state.answers).includes(r)){var l=parseFloat(n.state.answers[r].correctPoint),c=parseFloat(n.state.answers[r].incorrectPoint);if("multiselect"===a||"checkbox"===a){var u=n.handleIncorrectAnswer(n.state,i,r,o,l,c);n.compareArrays(o,n.state.answers[r].answer)&&n.handleCorrectAnswer(u,r,l,c)}else if("text"===a||"radio"===a){var d=n.handleIncorrectAnswer(n.state,i,r,o,l,c);(null==o?void 0:o.toLowerCase())===n.state.answers[r].answer.toLowerCase()&&n.handleCorrectAnswer(d,r,l,c)}else if("select"===a){var f=n.handleIncorrectAnswer(n.state,i,r,o,l,c);o===n.state.answers[r].answer&&n.handleCorrectAnswer(f,r,l,c)}}})),Xa(Ga(n),"handleDateTime",(function(e){var t=e.target,r=t.name,o=t.value;n.setValue(r,o,!0),n.handleChange(e)})),Xa(Ga(n),"handleSelect",(function(e,t){var r=e.value;e.target={name:t,value:r,type:"select"},n.setValue(t,r,!0),n.handleChange(e)})),Xa(Ga(n),"handleRadioDefault",(function(e){var t=n.state.formData;if(e&&e.dataset.checked){var r=e.name;e.setAttribute("checked",!0),r in t||n.handleChange({target:{name:r,value:e.value}})}})),Xa(Ga(n),"handleCheckbox",(function(e,t){if(!e)return!1;var r=n.state.formData,o=!1;if("onLoad"===t){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&&n.handleChange({target:{name:o,value:i}})}if("onClick"===t){o||(o=e.name);var s=new Set(r[o]);e.checked&&s.add(e.value),e.checked||s["delete"](e.value),n.handleChange({target:{name:o,value:Array.from(s),type:"checkbox"}})}})),Xa(Ga(n),"handleSwitch",(function(e){e.target.value=e.target.nextElementSibling.getAttribute("data-disable"),e.target.checked&&(e.target.value=e.target.nextElementSibling.getAttribute("data-enable")),n.handleChange(e)})),Xa(Ga(n),"handleOptin",(function(e){e.target.checked||(e.target.value="off"),e.target.checked&&(e.target.value="on"),n.handleChange(e)})),Xa(Ga(n),"handleFileUpload",(function(e){n.handleChange({target:{name:e.target.name,value:e.target.files}})})),Xa(Ga(n),"handleMultiStepBtns",(function(e){var t=jQuery(e.currentTarget).parents(".elementor-top-section.active").length>0?".elementor-top-section":".e-container--column",r=jQuery(e.currentTarget).parents("".concat(t,".active")),o=e.currentTarget.dataset.direction,a=r.prev()[0]?r.prev()[0].dataset:"",i=r.next()[0]?r.next()[0].dataset:"",s=("next"===o?i:a).id;if(!s)return!1;var l=jQuery(e.currentTarget).parents(".metform-form-content").find('.metform-step-item[data-value="'+s+'"]'),c=[];r.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&&c.push(t)})),jQuery(e.currentTarget).parents(".mf-scroll-top-yes").length&&ei.move(n.mfRefs.mainForm),"next"===o?n.trigger(c).then((function(e){e&&l.trigger("click")})):l.trigger("click")})),Xa(Ga(n),"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"}})),Xa(Ga(n),"handleSignature",(function(e){e.target={name:e.props.name,value:e.toDataURL()},n.handleChange(e),n.setValue(e.target.name,e.target.value,!0)})),Xa(Ga(n),"refreshCaptcha",(function(e){n.setState({captcha_img:n.state.captcha_path+Date.now()})})),Xa(Ga(n),"resetReCAPTCHA",(function(){n.getValue("mf-captcha-challenge")&&n.refreshCaptcha(),n.getValue("g-recaptcha-response")&&n.handleReCAPTCHA("reset")})),Xa(Ga(n),"handleReCAPTCHA",(function(e){"reset"===e&&(e="",grecaptcha.reset());var t={target:{name:"g-recaptcha-response",value:(e=e||"")||""}};n.handleChange(t)})),Xa(Ga(n),"activateValidation",(function(e,t,r){var o,a,i=n.state.formData,s=n.props.validation.register,l=e.type,c=e.required,u=e.message,d=e.minLength,f=e.maxLength,p=e.expression,m={};if(t&&c&&t.closest(".elementor-element")&&"true"===t.closest(".elementor-element").getAttribute("mf-condition-hidden"))m.required=!1;else{if((l&&"none"!==l||c)&&(m.required=!!c&&u),t&&t.classList&&t.classList.contains("mf-credit-card-number")&&(i[t.name]&&"amex"===i[t.name+"--type"]?m.minLength=m.maxLength={value:17,message:u}:m.minLength=m.maxLength={value:19,message:u}),e.inputType&&"credit_card_date"===e.inputType&&(d&&(m.min={value:d,message:u}),f&&(m.max={value:f,message:u})),t&&"file"===t.type&&t.files.length>0){var h=e.file_types,g=e.size_limit,b=t.files[0].name.substr(t.files[0].name.lastIndexOf(".")+1);m.validate={fileType:function(){return b=b.toLowerCase(),!(h!==[]&&!h.includes("."+b))||e.type_message},fileSize:function(){return!(-1!==g&&t.files[0].size>1024*parseInt(g))||e.limit_message}}}t&&"email"===t.type?m.pattern={value:/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,message:e.emailMessage}:t&&"url"===t.type&&(m.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"===l?(o=t&&"number"===t.type?"min":"minLength",a=t&&"number"===t.type?"max":"maxLength",d&&(m[o]={value:d,message:u}),f&&(m[a]={value:f,message:u})):"by_word_length"===l?m.validate={wordLength:function(e){return n.handleWordValidate(e,d,f,u)}}:"by_expresssion_based"===l&&(m.validate={expression:function(e){return n.handleExpressionValidate(e,p,u)}})}return"function"==typeof r&&r(),t?s(t,m):m})),Xa(Ga(n),"handleWordValidate",(function(e,t,n,r){var o=e.trim().split(/\s+/).length;return!!(n?o>=t&&o<=n:o>=t)||r})),Xa(Ga(n),"handleExpressionValidate",(function(e,t,n){if(t)return!!new RegExp(t).test(e)||n})),Xa(Ga(n),"colorChange",(function(e,t){n.handleChange({target:{name:t,value:e.hex}})})),Xa(Ga(n),"colorChangeInput",(function(e){n.handleChange({target:{name:e.target.name,value:e.target.value}})})),Xa(Ga(n),"multiSelectChange",(function(e,t){if("string"==typeof e)try{e=JSON.parse(e)}catch(o){return}var r=[];if(null!==e)try{e.filter((function(e){return r.push(e.value?e.value:e.mf_input_option_value)}))}catch(a){return}n.handleChange({target:{name:t,value:r,type:"multiselect"}})})),Xa(Ga(n),"handleRangeChange",(function(e,t){n.handleChange({target:{name:t,value:Number(e.toFixed(2))}}),n.props.validation.setValue(t,Number(e.toFixed(2)))})),Xa(Ga(n),"handleMultipileRangeChange",(function(e,t){n.handleChange({target:{name:t,value:[e.min,e.max],calc_behavior:"decrease_first_value"}})})),Xa(Ga(n),"handleOnChangePhoneInput",(function(e,t,r){var o="";r&&e!==r.dialCode&&(o=e),n.setState({mobileWidget:Ja(Ja({},n.state.mobileWidget),{},Xa({},t,e))}),n.handleChange({target:{name:t,value:o,type:"mobile"}})})),Xa(Ga(n),"setFormData",(function(e,t){n.state.formData[e]=t})),Xa(Ga(n),"getParams",(function(){for(var e,t=window.location.search,n={},r=/[?&]?([^=]+)=([^&]*)/g;e=r.exec(t);)n[decodeURIComponent(e[1])]=decodeURIComponent(e[2]);return n})),Xa(Ga(n),"setParamValueState",(function(){var e=n.state.formData,t=n.getParams(),r=n.props.widgets,o=function(o){var a=t[o].split(","),i=function(t){var i=r[t].el,s=jQuery(i),l=s.data().settings,c=l.mf_input_list,u=[];function d(e){return s.find(e).length>0}function f(){var t=a.filter((function(e){return e.length>0&&u.length>0&&u.includes(e)})),n=za(new Set(t));n.length>0&&(e[o]=n)}function p(t){e[o]=t}if(l.mf_input_name===o&&"yes"===l.mf_input_get_params_enable){if(c&&c.length>0){for(var m=0;m<c.length;m++)u.push(c[m].mf_input_option_value||c[m].value);if((d(".mf-input-select")||d("input.mf-radio-input:radio")||d("input.mf-image-select-input:radio")||d("input.mf-toggle-select-input:radio"))&&(function(){var t=a.filter((function(e){return e.length>0&&u.length>0&&u.includes(e)}))[0];t&&(e[o]=t)}(),d("input.mf-toggle-select-input:radio"))){var h=a.filter((function(e){return e.length>0&&u.length>0&&u.includes(e)}))[0];h&&s.find("input.mf-toggle-select-input:radio").each((function(){jQuery(this).prop("checked",!1),h.includes(jQuery(this).val())&&jQuery(this).prop("checked",!0)}))}if(d("input.mf-checkbox-input:checkbox")||d("input.mf-image-select-input:checkbox")||d("input.mf-toggle-select-input:checkbox"))f(),a.filter((function(e){return e.length>0&&u.length>0&&u.includes(e)})).length>0&&(s.find("input.mf-checkbox-input:checkbox").each((function(){jQuery(this).prop("checked",!1),a.includes(jQuery(this).val())&&jQuery(this).prop("checked",!0)})),s.find("input.mf-toggle-select-input:checkbox").each((function(){jQuery(this).prop("checked",!1),a.includes(jQuery(this).val())&&jQuery(this).prop("checked",!0)})));d(".mf-input-multiselect")&&f()}else{var g=a[0];if(d("input[type=email]")&&(p(g),s.find("input[type=email]").val(g)),d("input[type=checkbox]")&&"on"===g&&(p(g),s.find("input[type=checkbox]")[0].checked=!0),d("input[type=number]")){p(Number(g)),s.find("input[type=number]").val(Number(g));var b=s.find("input[type=number]")[0];b.addEventListener("click",(function(t){n.handleCalculations(t,e)})),b.click()}if(d(".range-slider")){var y=l.mf_input_min_length_range;l.mf_input_max_length_range>=Number(g)&&y<=Number(g)&&p(Number(g))}if(d(".mf-ratings"))l.mf_input_rating_number>=Number(g)&&0<=Number(g)&&p(Number(g));if(d("input.mf-input-switch-box:checkbox")){var v=l.mf_swtich_enable_text;v===g&&(p(v),s.find("input.mf-input-switch-box:checkbox")[0].checked=!0)}if(d("input.mf-payment-method-input:radio")){var w=["paypal","stripe"],C=a.filter((function(e){return e.length>0&&w.includes(e)}))[0];C&&p(C),C&&s.find("input.mf-payment-method-input:radio").each((function(){jQuery(this).prop("checked",!1),a.includes(jQuery(this).val())&&jQuery(this).prop("checked",!0)}))}if(d("input[type=text]")||d("input[type=password]")||d("input[type=tel")||d("textarea.mf-input")||d("input[type=url]")){var x=n.getParams()[o];if(d("input.flatpickr-input")){(g.match(/^[0-3]?[0-9].[0-3]?[0-9].(?:[0-9]{2})?[0-9]{2}$/)||g.match(/^(?:[0-9]{2})?[0-9]{2}.[0-3]?[0-9].[0-3]?[0-9]$/))&&p(x)}else p(x),s.find("input[type=text").val(x),s.find("input[type=password").val(x),s.find("input[type=tel").val(x),s.find("textarea.mf-input").val(x),s.find("input[type=url]").val(x)}}n.setState({formData:e})}};for(var s in r)i(s)};for(var a in t)o(a)})),n.storageData=JSON.parse(localStorage.getItem("metform-".concat(e.formId)))||{},(null===(t=n.storageData)||void 0===t?void 0:t.expireTime)<new Date&&(localStorage.removeItem("metform-".concat(e.formId)),n.storageData={}),n.state={formData:"true"===n.props.saveProgress?n.storageData:{},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:{},formId:e.formId,answers:{},submitted:!1},n.formSubmitResponse,n.MfMathCalc=new Va,n.setValue=e.validation.setValue,n.trigger=e.validation.trigger,n.formRef=React.createRef(),n.formContainerRef=React.createRef(),n.mfRefs={},setTimeout((function(){if(!elementorFrontend.isEditMode()&&"true"===e.saveProgress){var t,r=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,o=n.state.formData,a=document.getElementsByClassName("mf-input-repeater")[0],i=null===(t=document.getElementsByClassName("mf-input-repeater-items attr-items")[0])||void 0===t?void 0:t.outerHTML;for(var s in o)if("string"==typeof o[s]&&r.test(o[s].split(",")[1])&&function(){var e,t=(null===(e=document.getElementsByName("".concat(s))[0])||void 0===e?void 0:e.parentElement.getElementsByTagName("canvas")[0]).getContext("2d"),n=new Image;n.onload=function(){t.drawImage(n,0,0)},n.src=o[s]}(),s.match(/\[[^\]]*\]/g)&&2===s.match(/\[[^\]]*\]/g).length){var l=s.match(/\d+/)[0];if(document.getElementsByName(s)[0]!==undefined)document.getElementsByName(s)[0].value=o[s];else{var c,u=(new DOMParser).parseFromString(i,"text/html");u.getElementsByClassName("mf-input-repeater-items")[0].dataset.index=l,u.getElementsByClassName("mf-input-repeater-items")[0].removeAttribute("style"),u.getElementsByClassName("mf-input attr-form-control")[0].name=s;var d=null===(c=u.getElementsByClassName("mf-input-repeater-items")[0])||void 0===c?void 0:c.outerHTML;a.insertAdjacentHTML("beforeend",d),document.getElementsByName(s)[0].value=o[s]}}}}),1e3),window["handleReCAPTCHA_"+n.state.recaptcha_uid]=n.handleReCAPTCHA;var r=e.templateEl.innerHTML,i=n.replaceWith([["‘","'"],["’","'"],["“",'"'],["”",'"'],["–","--"]],r);return n.jsx=new Function("parent","props","state","validation","register","setValue","html",i),e.templateEl.remove(),jQuery(document).on("click",".remove-btn",(function(e){var t=jQuery(e.target).parent().siblings(".mf-input-repeater-content").find(".mf-repeater-field")[0].name;n.state.formData[t]!==undefined&&(delete n.state.formData[t],n.setState({formData:n.state.formData}))})),n}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=Ha(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=Ba(n.value,2),i=a[0],s=a[1];r=r.replaceAll(i,s)}}catch(l){o.e(l)}finally{o.f()}return r}},{key:"stripePayment",value:function(e){var t,n=e.data.payment_data,r=this;if(n.keys&&""!==n.keys)return(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?e.redirect_url?window.location.href=e.redirect_url:"success"===e.status?r.setState({success:"Payment Successful!",errors:[],form_res:1}):r.setState({success:"",errors:[e.message],form_res:1}):alert(e.message)}))):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()})),{type:"error",redirect_url:"",message:"Payment Unsuccessful!"};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"))&&ei.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=this.state.formData,a=n.getElementsByTagName("input");for(var i in a)"email"===a[i].type&&""!==a[i].value&&this.setDefault(a[i]);if(r.forEach((function(e){var n=e.getAttribute("data-element_type"),r=e.getAttribute("data-widget_type"),o=null===r?n:r;e.dataset&&e.dataset.settings&&(e.dataset.settings=e.dataset.settings.replace(/"/g,'"'));var a=window.elementorFrontend.hooks;if(a?a.doAction("frontend/element_ready/"+o,jQuery(e)):jQuery(window).on("elementor/frontend/init",(function(){(a=window.elementorFrontend.hooks).doAction("frontend/element_ready/"+o,jQuery(e))})),e.className.search("elementor-widget-mf-")>0&&e.dataset.settings){var i=JSON.parse(e.dataset.settings),s=i.mf_input_name+"-"+e.getAttribute("data-id");t.props.widgets[s]={el:e,settings:i},i.mf_conditional_logic_form_enable&&t.props.conditionalRefs.push(s)}})),Object.keys(this.state.answers).length&&"quiz-form"===this.props.formType){var s=this.state.answers,l=this.state;o["right-answer"]=[],o["wrong-answer"]=[],o["quiz-marks"]=0,l.QuizInfo={totalQuestion:0,rightAnswer:[],wrongAnswer:[],marks:0},Object.keys(s).forEach((function(e){"string"==typeof s[e].answer&&""===s[e].answer||"object"===Wa(s[e].answer)&&0===s[e].answer.length?(o["right-answer"]=[].concat(za(t.state.formData["right-answer"]),[e]),o["quiz-marks"]=o["quiz-marks"]+parseFloat(s[e].correctPoint)):(o["wrong-answer"]=[].concat(za(t.state.formData["wrong-answer"]),[e]),o["quiz-marks"]=o["quiz-marks"]-parseFloat(s[e].incorrectPoint))})),o["total-question"]=Object.keys(s).length,l.QuizInfo.rightAnswer=o["right-answer"],l.QuizInfo.wrongAnswer=o["wrong-answer"],l.QuizInfo.marks=o["quiz-marks"],l.QuizInfo.totalQuestion=Object.keys(s).length}for(var c in 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}}),La(),Fa(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),jQuery(n).trigger("metform/after_form_load",o),o)this.setValue(c,o[c]);this.setParamValueState()}},{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))}}])&&qa(t.prototype,n),r&&qa(t,r),a}(),ni=function(e){var t=Ba(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,l=r.stopVerticalEffect,c=r.saveProgress,u=r.formType,d=r.quizSummery,f=Ba(e.find(".mf-template"),1)[0];if(f)ReactDOM.render(React.createElement((n=ti,function(e){var t=Ja(Ja({},ye()),{},{ErrorMessage:Ce});return React.createElement(n,Ja({validation:t},e))}),{formId:s,templateEl:f,action:o,wpNonce:a,formNonce:i,saveProgress:c,formType:u,quizSummery:d,widgets:{},conditionalRefs:[],stopVerticalEffect:l,widgetSettings:e.data("settings")||{},Select:Da,InputColor:ar,Flatpickr:Oe.Z,InputRange:sr(),ReactPhoneInput:cr(),SignaturePad:Ea(),moveTo:ei,ResponseDummyMarkup:ja,SubmitResponseMarkup:Ta,SummaryWidget:Ia,DateWidget:Ma}),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",ni)}))):ni(elementorFrontend.elements.$body)})).on("load",(function(){document.querySelectorAll(".mf-form-shortcode").forEach((function(e){ni(jQuery(e))}))}))}()}();
|
48 |
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
49 |
* SOFTWARE.
|
50 |
*/
|
51 |
+
var ft="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,pt=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(ft&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var mt=ft&&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()}),pt))}};function ht(e){return e&&"[object Function]"==={}.toString.call(e)}function gt(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function bt(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function yt(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=gt(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:yt(bt(e))}function vt(e){return e&&e.referenceNode?e.referenceNode:e}var wt=ft&&!(!window.MSInputMethodContext||!document.documentMode),Ct=ft&&/MSIE 10/.test(navigator.userAgent);function xt(e){return 11===e?wt:10===e?Ct:wt||Ct}function kt(e){if(!e)return document.documentElement;for(var t=xt(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"===gt(n,"position")?kt(n):n:e?e.ownerDocument.documentElement:document.documentElement}function Ot(e){return null!==e.parentNode?Ot(e.parentNode):e}function Dt(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,l=a.commonAncestorContainer;if(e!==l&&t!==l||r.contains(o))return"BODY"===(s=(i=l).nodeName)||"HTML"!==s&&kt(i.firstElementChild)!==i?kt(l):l;var c=Ot(e);return c.host?Dt(c.host,t):Dt(e,Ot(t).host)}function St(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 Et(e,t){var n=arguments.length>2&&arguments[2]!==undefined&&arguments[2],r=St(t,"top"),o=St(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 Mt(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 Pt(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],xt(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function _t(e){var t=e.body,n=e.documentElement,r=xt(10)&&getComputedStyle(n);return{height:Pt("Height",t,n,r),width:Pt("Width",t,n,r)}}var jt=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Tt=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}}(),At=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},It=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 Lt(e){return It({},e,{right:e.left+e.width,bottom:e.top+e.height})}function Nt(e){var t={};try{if(xt(10)){t=e.getBoundingClientRect();var n=St(e,"top"),r=St(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(d){}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},a="HTML"===e.nodeName?_t(e.ownerDocument):{},i=a.width||e.clientWidth||o.width,s=a.height||e.clientHeight||o.height,l=e.offsetWidth-i,c=e.offsetHeight-s;if(l||c){var u=gt(e);l-=Mt(u,"x"),c-=Mt(u,"y"),o.width-=l,o.height-=c}return Lt(o)}function Rt(e,t){var n=arguments.length>2&&arguments[2]!==undefined&&arguments[2],r=xt(10),o="HTML"===t.nodeName,a=Nt(e),i=Nt(t),s=yt(e),l=gt(t),c=parseFloat(l.borderTopWidth),u=parseFloat(l.borderLeftWidth);n&&o&&(i.top=Math.max(i.top,0),i.left=Math.max(i.left,0));var d=Lt({top:a.top-i.top-c,left:a.left-i.left-u,width:a.width,height:a.height});if(d.marginTop=0,d.marginLeft=0,!r&&o){var f=parseFloat(l.marginTop),p=parseFloat(l.marginLeft);d.top-=c-f,d.bottom-=c-f,d.left-=u-p,d.right-=u-p,d.marginTop=f,d.marginLeft=p}return(r&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(d=Et(d,t)),d}function Vt(e){var t=arguments.length>1&&arguments[1]!==undefined&&arguments[1],n=e.ownerDocument.documentElement,r=Rt(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),a=Math.max(n.clientHeight,window.innerHeight||0),i=t?0:St(n),s=t?0:St(n,"left"),l={top:i-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:o,height:a};return Lt(l)}function Ft(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===gt(e,"position"))return!0;var n=bt(e);return!!n&&Ft(n)}function Bt(e){if(!e||!e.parentElement||xt())return document.documentElement;for(var t=e.parentElement;t&&"none"===gt(t,"transform");)t=t.parentElement;return t||document.documentElement}function zt(e,t,n,r){var o=arguments.length>4&&arguments[4]!==undefined&&arguments[4],a={top:0,left:0},i=o?Bt(e):Dt(e,vt(t));if("viewport"===r)a=Vt(i,o);else{var s=void 0;"scrollParent"===r?"BODY"===(s=yt(bt(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===r?e.ownerDocument.documentElement:r;var l=Rt(s,i,o);if("HTML"!==s.nodeName||Ft(i))a=l;else{var c=_t(e.ownerDocument),u=c.height,d=c.width;a.top+=l.top-l.marginTop,a.bottom=u+l.top,a.left+=l.left-l.marginLeft,a.right=d+l.left}}var f="number"==typeof(n=n||0);return a.left+=f?n:n.left||0,a.top+=f?n:n.top||0,a.right-=f?n:n.right||0,a.bottom-=f?n:n.bottom||0,a}function Ht(e){return e.width*e.height}function Ut(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=zt(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}},l=Object.keys(s).map((function(e){return It({key:e},s[e],{area:Ht(s[e])})})).sort((function(e,t){return t.area-e.area})),c=l.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),u=c.length>0?c[0].key:l[0].key,d=e.split("-")[1];return u+(d?"-"+d:"")}function Wt(e,t,n){var r=arguments.length>3&&arguments[3]!==undefined?arguments[3]:null,o=r?Bt(t):Dt(t,vt(n));return Rt(n,o,r)}function qt(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 Yt(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 $t(e,t,n){n=n.split("-")[0];var r=qt(e),o={width:r.width,height:r.height},a=-1!==["right","left"].indexOf(n),i=a?"top":"left",s=a?"left":"top",l=a?"height":"width",c=a?"width":"height";return o[i]=t[i]+t[l]/2-r[l]/2,o[s]=n===s?t[s]-r[c]:t[Yt(s)],o}function Kt(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function Gt(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=Kt(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&&ht(n)&&(t.offsets.popper=Lt(t.offsets.popper),t.offsets.reference=Lt(t.offsets.reference),t=n(t,e))})),t}function Qt(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=Wt(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=Ut(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=$t(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=Gt(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function Zt(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function Jt(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 Xt(){return this.state.isDestroyed=!0,Zt(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[Jt("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function en(e){var t=e.ownerDocument;return t?t.defaultView:window}function tn(e,t,n,r){var o="BODY"===e.nodeName,a=o?e.ownerDocument.defaultView:e;a.addEventListener(t,n,{passive:!0}),o||tn(yt(a.parentNode),t,n,r),r.push(a)}function nn(e,t,n,r){n.updateBound=r,en(e).addEventListener("resize",n.updateBound,{passive:!0});var o=yt(e);return tn(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function rn(){this.state.eventsEnabled||(this.state=nn(this.reference,this.options,this.state,this.scheduleUpdate))}function on(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,en(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 an(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function sn(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&an(t[n])&&(r="px"),e.style[n]=t[n]+r}))}var ln=ft&&/Firefox/i.test(navigator.userAgent);function cn(e,t,n){var r=Kt(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 un=["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"],dn=un.slice(3);function fn(e){var t=arguments.length>1&&arguments[1]!==undefined&&arguments[1],n=dn.indexOf(e),r=dn.slice(n+1).concat(dn.slice(0,n));return t?r.reverse():r}var pn="flip",mn="clockwise",hn="counterclockwise";function gn(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(Kt(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 l=/\s*,\s*|\s+/,c=-1!==s?[i.slice(0,s).concat([i[s].split(l)[0]]),[i[s].split(l)[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 Lt(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){an(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))}))})),o}var bn={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),l=s?"left":"top",c=s?"width":"height",u={start:At({},l,a[l]),end:At({},l,a[l]+a[c]-i[c])};e.offsets.popper=It({},i,u[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],l=void 0;return l=an(+n)?[+n,0]:gn(n,a,i,s),"left"===s?(a.top+=l[0],a.left-=l[1]):"right"===s?(a.top+=l[0],a.left+=l[1]):"top"===s?(a.left+=l[0],a.top-=l[1]):"bottom"===s&&(a.left+=l[0],a.top+=l[1]),e.popper=a,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||kt(e.instance.popper);e.instance.reference===n&&(n=kt(n));var r=Jt("transform"),o=e.instance.popper.style,a=o.top,i=o.left,s=o[r];o.top="",o.left="",o[r]="";var l=zt(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=a,o.left=i,o[r]=s,t.boundaries=l;var c=t.priority,u=e.offsets.popper,d={primary:function(e){var n=u[e];return u[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(u[e],l[e])),At({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=u[n];return u[e]>l[e]&&!t.escapeWithReference&&(r=Math.min(u[n],l[e]-("right"===e?u.width:u.height))),At({},n,r)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=It({},u,d[t](e))})),e.offsets.popper=u,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",l=i?"left":"top",c=i?"width":"height";return n[s]<a(r[l])&&(e.offsets.popper[l]=a(r[l])-n[c]),n[l]>a(r[s])&&(e.offsets.popper[l]=a(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!cn(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,l=-1!==["left","right"].indexOf(o),c=l?"height":"width",u=l?"Top":"Left",d=u.toLowerCase(),f=l?"left":"top",p=l?"bottom":"right",m=qt(r)[c];s[p]-m<i[d]&&(e.offsets.popper[d]-=i[d]-(s[p]-m)),s[d]+m>i[p]&&(e.offsets.popper[d]+=s[d]+m-i[p]),e.offsets.popper=Lt(e.offsets.popper);var h=s[d]+s[c]/2-m/2,g=gt(e.instance.popper),b=parseFloat(g["margin"+u]),y=parseFloat(g["border"+u+"Width"]),v=h-e.offsets.popper[d]-b-y;return v=Math.max(Math.min(i[c]-m,v),0),e.arrowElement=r,e.offsets.arrow=(At(n={},d,Math.round(v)),At(n,f,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(Zt(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=zt(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=Yt(r),a=e.placement.split("-")[1]||"",i=[];switch(t.behavior){case pn:i=[r,o];break;case mn:i=fn(r);break;case hn:i=fn(r,!0);break;default:i=t.behavior}return i.forEach((function(s,l){if(r!==s||i.length===l+1)return e;r=e.placement.split("-")[0],o=Yt(r);var c=e.offsets.popper,u=e.offsets.reference,d=Math.floor,f="left"===r&&d(c.right)>d(u.left)||"right"===r&&d(c.left)<d(u.right)||"top"===r&&d(c.bottom)>d(u.top)||"bottom"===r&&d(c.top)<d(u.bottom),p=d(c.left)<d(n.left),m=d(c.right)>d(n.right),h=d(c.top)<d(n.top),g=d(c.bottom)>d(n.bottom),b="left"===r&&p||"right"===r&&m||"top"===r&&h||"bottom"===r&&g,y=-1!==["top","bottom"].indexOf(r),v=!!t.flipVariations&&(y&&"start"===a&&p||y&&"end"===a&&m||!y&&"start"===a&&h||!y&&"end"===a&&g),w=!!t.flipVariationsByContent&&(y&&"start"===a&&m||y&&"end"===a&&p||!y&&"start"===a&&g||!y&&"end"===a&&h),C=v||w;(f||b||C)&&(e.flipped=!0,(f||b)&&(r=i[l+1]),C&&(a=function(e){return"end"===e?"start":"start"===e?"end":e}(a)),e.placement=r+(a?"-"+a:""),e.offsets.popper=It({},e.offsets.popper,$t(e.instance.popper,e.offsets.reference,e.placement)),e=Gt(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=Yt(t),e.offsets.popper=Lt(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!cn(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=Kt(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=Kt(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=kt(e.instance.popper),l=Nt(s),c={position:o.position},u=function(e,t){var n=e.offsets,r=n.popper,o=n.reference,a=Math.round,i=Math.floor,s=function(e){return e},l=a(o.width),c=a(r.width),u=-1!==["left","right"].indexOf(e.placement),d=-1!==e.placement.indexOf("-"),f=t?u||d||l%2==c%2?a:i:s,p=t?a:s;return{left:f(l%2==1&&c%2==1&&!d&&t?r.left-1:r.left),top:p(r.top),bottom:p(r.bottom),right:f(r.right)}}(e,window.devicePixelRatio<2||!ln),d="bottom"===n?"top":"bottom",f="right"===r?"left":"right",p=Jt("transform"),m=void 0,h=void 0;if(h="bottom"===d?"HTML"===s.nodeName?-s.clientHeight+u.bottom:-l.height+u.bottom:u.top,m="right"===f?"HTML"===s.nodeName?-s.clientWidth+u.right:-l.width+u.right:u.left,i&&p)c[p]="translate3d("+m+"px, "+h+"px, 0)",c[d]=0,c[f]=0,c.willChange="transform";else{var g="bottom"===d?-1:1,b="right"===f?-1:1;c[d]=h*g,c[f]=m*b,c.willChange=d+", "+f}var y={"x-placement":e.placement};return e.attributes=It({},y,e.attributes),e.styles=It({},c,e.styles),e.arrowStyles=It({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return sn(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&&sn(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,o){var a=Wt(o,t,e,n.positionFixed),i=Ut(n.placement,a,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",i),sn(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:undefined}}},yn=function(){function e(t,n){var r=this,o=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};jt(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=mt(this.update.bind(this)),this.options=It({},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(It({},e.Defaults.modifiers,o.modifiers)).forEach((function(t){r.options.modifiers[t]=It({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return It({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&ht(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 Tt(e,[{key:"update",value:function(){return Qt.call(this)}},{key:"destroy",value:function(){return Xt.call(this)}},{key:"enableEventListeners",value:function(){return rn.call(this)}},{key:"disableEventListeners",value:function(){return on.call(this)}}]),e}();yn.Utils=("undefined"!=typeof window?window:n.g).PopperUtils,yn.placements=un,yn.Defaults=bn;var vn=yn,wn=(n(353),function(e){do{e+=~~(1e6*Math.random())}while("undefined"!=typeof document&&document.getElementById(e));return e}),Cn=("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;}"}),xn=function(t){t.placement;var n=Se(t,["placement"]);return at(e.Fragment,null,at(it,{styles:kn}),at("div",De({},n,{"data-arrow":"true",css:Cn})))},kn={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;}}"},On=function(n){var r,o,a,i=n.header,s=n.body,l=n.children,c=n.placement,u=n.trigger,d=n.styles,f=Se(n,["header","body","children","placement","trigger","styles"]),p=t().Children.only(l),m=(0,e.useRef)(null),h=(0,e.useState)(!1),g=h[0],b=h[1],y=(0,e.useState)(!1),v=y[0],w=y[1],C=(0,e.useState)({popoverId:null,referenceId:null,arrowId:null}),x=C[0],k=C[1],O=x.popoverId,D=x.referenceId,S=x.arrowId;r=m,o=function(e){e.target.id===D||document.getElementById(D).contains(e.target)||b(!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 dt.forEach((function(t){document.addEventListener(t,e,{passive:!0})})),function(){dt.forEach((function(t){document.removeEventListener(t,e,{passive:!0})}))}}),[r,o]),(0,e.useEffect)((function(){if(!O)return k({popoverId:wn("popover"),referenceId:wn("reference"),arrowId:wn("arrow")});var e=document.getElementById(O),t=document.getElementById(D),n=document.getElementById(S);e&&t&&n&&(new vn(t,e,{placement:c,modifiers:{arrow:{element:n}}}),w(g))}),[g]);var E={content:[Dn.content,d.content],header:[Dn.header,d.header],body:[Dn.body,d.body]};return at(e.Fragment,null,O?at("div",De({},f,{id:O,ref:m,css:E.content,style:v?{display:"block"}:{}}),at(xn,{id:S}),i?at("div",{css:E.header},i):null,at("div",{css:E.body},s)):null,t().cloneElement(p,De({},p.props,{id:D,onClick:function(){"click"===u&&b(!g)}})))};On.defaultProps={placement:"right",trigger:"click",styles:{}};var Dn={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;"}},Sn=On;function En(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 Mn={position:"relative",display:"inline-block",backgroundColor:"#ddd",borderRadius:5,userSelect:"none",boxSizing:"border-box"},Pn={position:"absolute",backgroundColor:"#5e72e4",borderRadius:5,userSelect:"none",boxSizing:"border-box"},_n={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"},jn={x:{track:De({},Mn,{width:200,height:10}),active:De({},Pn,{top:0,height:"100%"}),thumb:De({},_n)},y:{track:De({},Mn,{width:10,height:200}),active:De({},Pn,{left:0,width:"100%"}),thumb:De({},_n)},xy:{track:{position:"relative",overflow:"hidden",width:200,height:200,backgroundColor:"#5e72e4",borderRadius:0},active:{},thumb:De({},_n)},disabled:{opacity:.5}},Tn=function(t){var n=t.disabled,r=t.axis,o=t.x,a=t.y,i=t.xmin,s=t.xmax,l=t.ymin,c=t.ymax,u=t.xstep,d=t.ystep,f=t.onChange,p=t.onDragStart,m=t.onDragEnd,h=t.onClick,g=t.xreverse,b=t.yreverse,y=t.styles,v=Se(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),x=(0,e.useRef)({}),k=(0,e.useRef)({});function O(e){var t=e.top,n=e.left;if(f){var o=w.current.getBoundingClientRect(),a=o.width,p=o.height,m=0,h=0;n<0&&(n=0),n>a&&(n=a),t<0&&(t=0),t>p&&(t=p),"x"!==r&&"xy"!==r||(m=n/a*(s-i)),"y"!==r&&"xy"!==r||(h=t/p*(c-l));var y=(0!==m?parseInt(m/u,10)*u:0)+i,v=(0!==h?parseInt(h/d,10)*d:0)+l;f({x:g?s-y+i:y,y:b?c-v+l:v})}}function D(e){if(!n){e.preventDefault();var t=C.current,r=En(e);x.current={x:t.offsetLeft,y:t.offsetTop},k.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(),O(function(e){var t=En(e);return{left:t.x+x.current.x-k.current.x,top:t.y+x.current.y-k.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),m&&m(e))}var M,P,_=((M=(a-l)/(c-l)*100)>100&&(M=100),M<0&&(M=0),"x"===r&&(M=0),(P=(o-i)/(s-i)*100)>100&&(P=100),P<0&&(P=0),"y"===r&&(P=0),{top:M,left:P}),j={};"x"===r&&(j.width=_.left+"%"),"y"===r&&(j.height=_.top+"%"),g&&(j.left=100-_.left+"%"),b&&(j.top=100-_.top+"%");var T={position:"absolute",transform:"translate(-50%, -50%)",left:g?100-_.left+"%":_.left+"%",top:b?100-_.top+"%":_.top+"%"};"x"===r?T.top="50%":"y"===r&&(T.left="50%");var A={track:De({},jn[r].track,{},y.track),active:De({},jn[r].active,{},y.active),thumb:De({},jn[r].thumb,{},y.thumb),disabled:De({},jn.disabled,{},y.disabled)};return at("div",De({},v,{ref:w,css:ot([A.track,n&&A.disabled],";label:Slider;"),onClick:function(e){if(!n){var t=En(e),r=w.current.getBoundingClientRect();O({left:t.x-r.left,top:t.y-r.top}),h&&h(e)}}}),at("div",{css:A.active,style:j}),at("div",{ref:C,style:T,onTouchStart:D,onMouseDown:D,onClick:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}},at("div",{css:A.thumb})))};Tn.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 An=Tn,In=n(654),Ln=n.n(In),Nn=n(763),Rn=n.n(Nn),Vn=n(37),Fn=n.n(Vn),Bn="undefined"!=typeof navigator&&navigator.userAgent.match(/iPhone|iPad|iPod/i),zn=function(t){var n=t.step,r=t.min,o=t.max,a=t.value,i=t.onChange,s=t.onKeyDown,l=t.enableMobileNumericKeyboard,c=t.component,u=Se(t,["step","min","max","value","onChange","onKeyDown","enableMobileNumericKeyboard","component"]),d=(0,e.useState)(a),f=d[0],p=d[1];(0,e.useEffect)((function(){p(a)}),[a]);var m={value:f,onChange:function(e){var t=function(e){if(Rn()(e))return e;if(Fn()(e)){if(!(e=e.trim()))return"";var t=parseFloat(e);if(!Ln()(t))return t}return""}(e);p(e),i&&i(t)},onKeyDown:function(e){38===e.keyCode?i&&i(Un("+",a,o,r,n)):40===e.keyCode&&i&&i(Un("-",a,o,r,n)),s&&s(e)},onWheel:function(e){e.target.blur()}};return at(c,De({},u,m,l?{css:Hn,type:"number",inputMode:"numeric",pattern:Bn?"[0-9]*":"",step:n,min:r,max:o}:{css:Hn,type:"text"}))};zn.defaultProps={autoComplete:"off",enableMobileNumericKeyboard:!1,value:"",component:function(e){var t=e.onChange,n=Se(e,["onChange"]);return at("input",De({},n,{onChange:function(e){t&&t(e.target.value)}}))},step:1};var Hn={MozAppearance:"textfield","&::-webkit-inner-spin-button, &::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0}};function Un(e,t,n,r,o){if(""===t)return Rn()(r)?r:"";if(t="+"===e?t+o:t-o,Rn()(n)&&t>n)return n;if(Rn()(r)&&t<r)return r;var a=(o.toString().split(".")[1]||[]).length;return a?parseFloat(t.toFixed(a)):t}var Wn=zn;function qn(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 Yn(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 $n(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function Kn(e,t,n){return"#"+[$n(e),$n(t),$n(n)].join("")}function Gn(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 Qn(e,t,n,r){return"rgba("+[e,t,n,r/100].join(",")+")"}var Zn={name:"bzk4lp",styles:"width:100%;margin-top:10px;margin-bottom:10px;display:flex;"},Jn={name:"lwa3hx",styles:"flex:1;margin-right:10px;"},Xn=function(e){var t=e.color,n=e.onChange,r=t.r,o=t.g,a=t.b,i=t.a,s=t.h,l=t.s,c=t.v;function u(e){n&&n(De({},e,{rgba:Qn(e.r,e.g,e.b,e.a)}))}function d(e,n,r){var o=Yn(e,n,r),a=o.r,i=o.g,s=o.b,l=Kn(a,i,s);u(De({},t,{h:e,s:n,v:r,r:a,g:i,b:s,hex:l}))}function f(e,n,r){var o=Kn(e,n,r),a=Gn(e,n,r),i=a.h,s=a.s,l=a.v;u(De({},t,{r:e,g:n,b:r,h:i,s:s,v:l,hex:o}))}function p(e){u(De({},t,{a:e}))}var m=Qn(r,o,a,i),h="linear-gradient(to right, "+Qn(r,o,a,0)+", "+Qn(r,o,a,100)+")",g=function(e,t,n){var r=Yn(e,t,n);return Kn(r.r,r.g,r.b)}(s,100,100);return at("div",{css:er.picker,onClick:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}},at("div",{css:er.selector,style:{backgroundColor:g}},at("div",{css:er.gradientWhite}),at("div",{css:er.gradientDark}),at(An,{axis:"xy",x:l,xmax:100,y:100-c,ymax:100,onChange:function(e){var t=e.x,n=e.y;return d(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%"}}})),at("div",{css:Zn},at("div",{css:Jn},at(An,{axis:"x",x:s,xmax:359,onChange:function(e){return d(e.x,l,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"}}}),at(An,{axis:"x",x:i,xmax:100,styles:{track:{width:"100%",height:12,borderRadius:0,background:h},active:{background:"none"},thumb:{width:5,height:14,borderRadius:0,backgroundColor:"#eee"}},onChange:function(e){return p(e.x)}})),at("div",{style:{backgroundColor:m,width:30,height:30}})),at("div",{css:er.inputs},at("div",{css:er.input},at("input",{style:{width:70,textAlign:"left"},type:"text",value:t.hex,onChange:function(e){return function(e){var n=qn(e),r=n.r,o=n.g,a=n.b,i=Gn(r,o,a),s=i.h,l=i.s,c=i.v;u(De({},t,{r:r,g:o,b:a,h:s,s:l,v:c,hex:e}))}(e.target.value)},onKeyUp:function(e){if(13===e.keyCode){var n=e.target.value.trim(),r=qn(n),o=r.r,a=r.g,s=r.b;u(De({},t,{r:o,g:a,b:s,a:i,hex:n}))}}}),at("div",null,"Hex")),at("div",{css:er.input},at(Wn,{min:0,max:255,value:r,onChange:function(e){return f(e,o,a)}}),at("div",null,"R")),at("div",{css:er.input},at(Wn,{min:0,max:255,value:o,onChange:function(e){return f(r,e,a)}}),at("div",null,"G")),at("div",{css:er.input},at(Wn,{min:0,max:255,value:a,onChange:function(e){return f(r,o,e)}}),at("div",null,"B")),at("div",{css:er.input},at(Wn,{min:0,max:100,value:i,onChange:function(e){return p(e)}}),at("div",null,"A"))))};Xn.defaultProps={initialValue:"#5e72e4"};var er={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 tr(e){var t,n=(e=e.toLowerCase()).substr(0,7),r=qn(n),o=r.r,a=r.g,i=r.b,s=Gn(o,a,i),l=e.length>7?(t=e.substr(7),Math.round(parseInt("0x"+t,16)/255*100)):100;return De({},s,{r:o,g:a,b:i,a:l,hex:n,rgba:Qn(o,a,i,l)})}var nr={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;"},rr={name:"trkpwz",styles:"display:block;width:100%;height:100%;cursor:pointer;"},or=function(t){var n=t.initialValue,r=t.onChange,o=t.placement,a=Se(t,["initialValue","onChange","placement"]),i=(0,e.useState)(tr(n)),s=i[0],l=i[1];function c(e){r&&(l(e),r(e))}return(0,e.useEffect)((function(){c(tr(n))}),[n]),at(Sn,{placement:o,body:at(Xn,{color:s,onChange:c})},at("span",De({},a,{css:nr}),at("span",{css:rr,style:{backgroundColor:s.rgba}})))};or.defaultProps={placement:"bottom"};var ar=or,ir=n(322),sr=n.n(ir),lr=n(555),cr=n.n(lr);function ur(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dr(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 fr(e,t,n){return t&&dr(e.prototype,t),n&&dr(e,n),e}function pr(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&&Ee(e,t)}function mr(e){return(mr="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 hr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gr(e,t){if(t&&("object"===mr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return hr(e)}function br(e){return(br=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var yr=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function vr(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||yr(r)&&yr(o)))return!1;var r,o;return!0}var wr=function(e,t){var n;void 0===t&&(t=vr);var r,o=[],a=!1;return function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return a&&n===this&&t(i,o)||(r=e.apply(this,i),a=!0,n=this,o=i),r}},Cr=ReactDOM;function xr(e,t){if(null==e)return{};var n,r,o=Se(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function kr(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 Or(e,t){if(e){if("string"==typeof e)return kr(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)?kr(e,t):void 0}}function Dr(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){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(l){s=!0,o=l}finally{try{i||null==n["return"]||n["return"]()}finally{if(s)throw o}}return a}}(e,t)||Or(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 Sr(e){return function(e){if(Array.isArray(e))return kr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Or(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 Er(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Mr=n(639),Pr=function(){};function _r(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function jr(e,t,n){var r=[n];if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&r.push("".concat(_r(e,o)));return r.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Tr=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===mr(e)&&null!==e?[e]:[]};function Ar(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Ir(e){return Ar(e)?window.pageYOffset:e.scrollTop}function Lr(e,t){Ar(e)?window.scrollTo(0,t):e.scrollTop=t}function Nr(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function Rr(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:200,r=arguments.length>3&&arguments[3]!==undefined?arguments[3]:Pr,o=Ir(e),a=t-o,i=10,s=0;function l(){var t=Nr(s+=i,o,a,n);Lr(e,t),s<n?window.requestAnimationFrame(l):r(e)}l()}function Vr(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}function Fr(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 Br(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fr(Object(n),!0).forEach((function(t){Er(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zr(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=br(e);if(t){var o=br(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return gr(this,n)}}function Hr(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,a=e.shouldScroll,i=e.isFixedPosition,s=e.theme.spacing,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/,o=document.documentElement;if("fixed"===t.position)return o;for(var a=e;a=a.parentElement;)if(t=getComputedStyle(a),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return a;return o}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var u=l.getBoundingClientRect().height,d=n.getBoundingClientRect(),f=d.bottom,p=d.height,m=d.top,h=n.offsetParent.getBoundingClientRect().top,g=window.innerHeight,b=Ir(l),y=parseInt(getComputedStyle(n).marginBottom,10),v=parseInt(getComputedStyle(n).marginTop,10),w=h-v,C=g-m,x=w+b,k=u-b-m,O=f-g+b+y,D=b+m-v,S=160;switch(o){case"auto":case"bottom":if(C>=p)return{placement:"bottom",maxHeight:t};if(k>=p&&!i)return a&&Rr(l,O,S),{placement:"bottom",maxHeight:t};if(!i&&k>=r||i&&C>=r)return a&&Rr(l,O,S),{placement:"bottom",maxHeight:i?C-y:k-y};if("auto"===o||i){var E=t,M=i?w:x;return M>=r&&(E=Math.min(M-y-s.controlHeight,t)),{placement:"top",maxHeight:E}}if("bottom"===o)return Lr(l,O),{placement:"bottom",maxHeight:t};break;case"top":if(w>=p)return{placement:"top",maxHeight:t};if(x>=p&&!i)return a&&Rr(l,D,S),{placement:"top",maxHeight:t};if(!i&&x>=r||i&&w>=r){var P=t;return(!i&&x>=r||i&&w>=r)&&(P=i?w-v:x-v),a&&Rr(l,D,S),{placement:"top",maxHeight:P}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return c}var Ur=function(e){return"auto"===e?"bottom":e},Wr=(0,e.createContext)({getPortalPlacement:null}),qr=function(e){pr(n,e);var t=zr(n);function n(){var e;ur(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).state={maxHeight:e.props.maxMenuHeight,placement:null},e.getPlacement=function(t){var n=e.props,r=n.minMenuHeight,o=n.maxMenuHeight,a=n.menuPlacement,i=n.menuPosition,s=n.menuShouldScrollIntoView,l=n.theme;if(t){var c="fixed"===i,u=Hr({maxHeight:o,menuEl:t,minHeight:r,placement:a,shouldScroll:s&&!c,isFixedPosition:c,theme:l}),d=e.context.getPortalPlacement;d&&d(u),e.setState(u)}},e.getUpdatedProps=function(){var t=e.props.menuPlacement,n=e.state.placement||Ur(t);return Br(Br({},e.props),{},{placement:n,maxHeight:e.state.maxHeight})},e}return fr(n,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),n}(e.Component);qr.contextType=Wr;var Yr=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px"),textAlign:"center"}},$r=Yr,Kr=Yr,Gr=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return at("div",De({css:o("noOptionsMessage",e),className:r({"menu-notice":!0,"menu-notice--no-options":!0},n)},a),t)};Gr.defaultProps={children:"No options"};var Qr=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return at("div",De({css:o("loadingMessage",e),className:r({"menu-notice":!0,"menu-notice--loading":!0},n)},a),t)};Qr.defaultProps={children:"Loading..."};var Zr=function(e){pr(n,e);var t=zr(n);function n(){var e;ur(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).state={placement:null},e.getPortalPlacement=function(t){var n=t.placement;n!==Ur(e.props.menuPlacement)&&e.setState({placement:n})},e}return fr(n,[{key:"render",value:function(){var e=this.props,t=e.appendTo,n=e.children,r=e.controlElement,o=e.menuPlacement,a=e.menuPosition,i=e.getStyles,s="fixed"===a;if(!t&&!s||!r)return null;var l=this.state.placement||Ur(o),c=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),u=s?0:window.pageYOffset,d=c[l]+u,f=at("div",{css:i("menuPortal",{offset:d,position:a,rect:c})},n);return at(Wr.Provider,{value:{getPortalPlacement:this.getPortalPlacement}},t?(0,Cr.createPortal)(f,t):f)}}]),n}(e.Component),Jr=Array.isArray,Xr=Object.keys,eo=Object.prototype.hasOwnProperty;function to(e,t){if(e===t)return!0;if(e&&t&&"object"==mr(e)&&"object"==mr(t)){var n,r,o,a=Jr(e),i=Jr(t);if(a&&i){if((r=e.length)!=t.length)return!1;for(n=r;0!=n--;)if(!to(e[n],t[n]))return!1;return!0}if(a!=i)return!1;var s=e instanceof Date,l=t instanceof Date;if(s!=l)return!1;if(s&&l)return e.getTime()==t.getTime();var c=e instanceof RegExp,u=t instanceof RegExp;if(c!=u)return!1;if(c&&u)return e.toString()==t.toString();var d=Xr(e);if((r=d.length)!==Xr(t).length)return!1;for(n=r;0!=n--;)if(!eo.call(t,d[n]))return!1;for(n=r;0!=n--;)if(!("_owner"===(o=d[n])&&e.$$typeof||to(e[o],t[o])))return!1;return!0}return e!=e&&t!=t}function no(e,t){try{return to(e,t)}catch(n){if(n.message&&n.message.match(/stack|recursion/i))return console.warn("Warning: react-fast-compare does not handle circular references.",n.name,n.message),!1;throw n}}function ro(){var e,t,n=(e=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return ro=function(){return n},n}var oo={name:"19bqh2r",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;"},ao=function(e){var t=e.size,n=xr(e,["size"]);return at("svg",De({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:oo},n))},io=function(e){return at(ao,De({size:20},e),at("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},so=function(e){return at(ao,De({size:20},e),at("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},lo=function(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorContainer",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?o.neutral80:o.neutral40}}},co=lo,uo=lo,fo=function(){var e=ot.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(ro()),po=function(e){var t=e.delay,n=e.offset;return at("span",{css:ot({animation:"".concat(fo," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":null,height:"1em",verticalAlign:"top",width:"1em"},"")})},mo=function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps,a=e.isRtl;return at("div",De({},o,{css:r("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)}),at(po,{delay:0,offset:a}),at(po,{delay:160,offset:!0}),at(po,{delay:320,offset:!a}))};mo.defaultProps={size:4};function ho(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 go(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ho(Object(n),!0).forEach((function(t){Er(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ho(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bo(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 yo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bo(Object(n),!0).forEach((function(t){Er(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var vo=function(e){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:e?0:1,outline:0,padding:0,color:"inherit"}};function wo(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 Co(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wo(Object(n),!0).forEach((function(t){Er(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var xo=function(e){var t=e.children,n=e.innerProps;return at("div",n,t)},ko=xo,Oo=xo;var Do=function(e){var t=e.children,n=e.className,r=e.components,o=e.cx,a=e.data,i=e.getStyles,s=e.innerProps,l=e.isDisabled,c=e.removeProps,u=e.selectProps,d=r.Container,f=r.Label,p=r.Remove;return at(ut,null,(function(r){var m=r.css,h=r.cx;return at(d,{data:a,innerProps:Co(Co({},s),{},{className:h(m(i("multiValue",e)),o({"multi-value":!0,"multi-value--is-disabled":l},n))}),selectProps:u},at(f,{data:a,innerProps:{className:h(m(i("multiValueLabel",e)),o({"multi-value__label":!0},n))},selectProps:u},t),at(p,{data:a,innerProps:Co({className:h(m(i("multiValueRemove",e)),o({"multi-value__remove":!0},n))},c),selectProps:u}))}))};Do.defaultProps={cropWithEllipsis:!0};function So(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 Eo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?So(Object(n),!0).forEach((function(t){Er(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):So(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}for(var Mo={ClearIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return at("div",De({},a,{css:o("clearIndicator",e),className:r({indicator:!0,"clear-indicator":!0},n)}),t||at(io,null))},Control:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.className,a=e.isDisabled,i=e.isFocused,s=e.innerRef,l=e.innerProps,c=e.menuIsOpen;return at("div",De({ref:s,css:r("control",e),className:n({control:!0,"control--is-disabled":a,"control--is-focused":i,"control--menu-is-open":c},o)},l),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return at("div",De({},a,{css:o("dropdownIndicator",e),className:r({indicator:!0,"dropdown-indicator":!0},n)}),t||at(so,null))},DownChevron:so,CrossIcon:io,Group:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.Heading,i=e.headingProps,s=e.label,l=e.theme,c=e.selectProps;return at("div",{css:o("group",e),className:r({group:!0},n)},at(a,De({},i,{selectProps:c,theme:l,getStyles:o,cx:r}),s),at("div",null,t))},GroupHeading:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.theme,a=(e.selectProps,xr(e,["className","cx","getStyles","theme","selectProps"]));return at("div",De({css:r("groupHeading",go({theme:o},a)),className:n({"group-heading":!0},t)},a))},IndicatorsContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles;return at("div",{css:o("indicatorsContainer",e),className:r({indicators:!0},n)},t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps;return at("span",De({},o,{css:r("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerRef,a=e.isHidden,i=e.isDisabled,s=e.theme,l=(e.selectProps,xr(e,["className","cx","getStyles","innerRef","isHidden","isDisabled","theme","selectProps"]));return at("div",{css:r("input",yo({theme:s},l))},at(Mr.Z,De({className:n({input:!0},t),inputRef:o,inputStyle:vo(a),disabled:i},l)))},LoadingIndicator:mo,Menu:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerRef,i=e.innerProps;return at("div",De({css:o("menu",e),className:r({menu:!0},n)},i,{ref:a}),t)},MenuList:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.isMulti,i=e.innerRef,s=e.innerProps;return at("div",De({css:o("menuList",e),className:r({"menu-list":!0,"menu-list--is-multi":a},n),ref:i},s),t)},MenuPortal:Zr,LoadingMessage:Qr,NoOptionsMessage:Gr,MultiValue:Do,MultiValueContainer:ko,MultiValueLabel:Oo,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return at("div",n,t||at(io,{size:14}))},Option:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.isDisabled,i=e.isFocused,s=e.isSelected,l=e.innerRef,c=e.innerProps;return at("div",De({css:o("option",e),className:r({option:!0,"option--is-disabled":a,"option--is-focused":i,"option--is-selected":s},n),ref:l},c),t)},Placeholder:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return at("div",De({css:o("placeholder",e),className:r({placeholder:!0},n)},a),t)},SelectContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps,i=e.isDisabled,s=e.isRtl;return at("div",De({css:o("container",e),className:r({"--is-disabled":i,"--is-rtl":s},n)},a),t)},SingleValue:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.isDisabled,i=e.innerProps;return at("div",De({css:o("singleValue",e),className:r({"single-value":!0,"single-value--is-disabled":a},n)},i),t)},ValueContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.isMulti,a=e.getStyles,i=e.hasValue;return at("div",{css:a("valueContainer",e),className:r({"value-container":!0,"value-container--is-multi":o,"value-container--has-value":i},n)},t)}},Po=function(e){return Eo(Eo({},Mo),e.components)},_o=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],jo=new RegExp("["+_o.map((function(e){return e.letters})).join("")+"]","g"),To={},Ao=0;Ao<_o.length;Ao++)for(var Io=_o[Ao],Lo=0;Lo<Io.letters.length;Lo++)To[Io.letters[Lo]]=Io.base;var No=function(e){return e.replace(jo,(function(e){return To[e]}))};function Ro(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}var Vo=function(e){return e.replace(/^\s+|\s+$/g,"")},Fo=function(e){return"".concat(e.label," ").concat(e.value)};var Bo={name:"1laao21-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;"},zo=function(e){return at("span",De({css:Bo},e))};function Ho(e){e["in"],e.out,e.onExited,e.appear,e.enter,e.exit;var t=e.innerRef,n=(e.emotion,xr(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]));return at("input",De({ref:t},n,{css:ot({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"},"")}))}function Uo(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=br(e);if(t){var o=br(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return gr(this,n)}}var Wo=function(e){pr(n,e);var t=Uo(n);function n(){return ur(this,n),t.apply(this,arguments)}return fr(n,[{key:"componentDidMount",value:function(){this.props.innerRef((0,Cr.findDOMNode)(this))}},{key:"componentWillUnmount",value:function(){this.props.innerRef(null)}},{key:"render",value:function(){return this.props.children}}]),n}(e.Component),qo=["boxSizing","height","overflow","paddingRight","position"],Yo={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function $o(e){e.preventDefault()}function Ko(e){e.stopPropagation()}function Go(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Qo(){return"ontouchstart"in window||navigator.maxTouchPoints}function Zo(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=br(e);if(t){var o=br(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return gr(this,n)}}var Jo=!(!window.document||!window.document.createElement),Xo=0,ea=function(e){pr(n,e);var t=Zo(n);function n(){var e;ur(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).originalStyles={},e.listenerOptions={capture:!1,passive:!1},e}return fr(n,[{key:"componentDidMount",value:function(){var e=this;if(Jo){var t=this.props,n=t.accountForScrollbars,r=t.touchScrollTarget,o=document.body,a=o&&o.style;if(n&&qo.forEach((function(t){var n=a&&a[t];e.originalStyles[t]=n})),n&&Xo<1){var i=parseInt(this.originalStyles.paddingRight,10)||0,s=document.body?document.body.clientWidth:0,l=window.innerWidth-s+i||0;Object.keys(Yo).forEach((function(e){var t=Yo[e];a&&(a[e]=t)})),a&&(a.paddingRight="".concat(l,"px"))}o&&Qo()&&(o.addEventListener("touchmove",$o,this.listenerOptions),r&&(r.addEventListener("touchstart",Go,this.listenerOptions),r.addEventListener("touchmove",Ko,this.listenerOptions))),Xo+=1}}},{key:"componentWillUnmount",value:function(){var e=this;if(Jo){var t=this.props,n=t.accountForScrollbars,r=t.touchScrollTarget,o=document.body,a=o&&o.style;Xo=Math.max(Xo-1,0),n&&Xo<1&&qo.forEach((function(t){var n=e.originalStyles[t];a&&(a[t]=n)})),o&&Qo()&&(o.removeEventListener("touchmove",$o,this.listenerOptions),r&&(r.removeEventListener("touchstart",Go,this.listenerOptions),r.removeEventListener("touchmove",Ko,this.listenerOptions)))}}},{key:"render",value:function(){return null}}]),n}(e.Component);function ta(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=br(e);if(t){var o=br(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return gr(this,n)}}ea.defaultProps={accountForScrollbars:!0};var na={name:"1dsbpcp",styles:"position:fixed;left:0;bottom:0;right:0;top:0;"},ra=function(e){pr(n,e);var t=ta(n);function n(){var e;ur(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).state={touchScrollTarget:null},e.getScrollTarget=function(t){t!==e.state.touchScrollTarget&&e.setState({touchScrollTarget:t})},e.blurSelectInput=function(){document.activeElement&&document.activeElement.blur()},e}return fr(n,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.isEnabled,r=this.state.touchScrollTarget;return n?at("div",null,at("div",{onClick:this.blurSelectInput,css:na}),at(Wo,{innerRef:this.getScrollTarget},t),r?at(ea,{touchScrollTarget:r}):null):t}}]),n}(e.PureComponent);function oa(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=br(e);if(t){var o=br(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return gr(this,n)}}var aa=function(e){pr(r,e);var n=oa(r);function r(){var e;ur(this,r);for(var t=arguments.length,o=new Array(t),a=0;a<t;a++)o[a]=arguments[a];return(e=n.call.apply(n,[this].concat(o))).isBottom=!1,e.isTop=!1,e.scrollTarget=void 0,e.touchStart=void 0,e.cancelScroll=function(e){e.preventDefault(),e.stopPropagation()},e.handleEventDelta=function(t,n){var r=e.props,o=r.onBottomArrive,a=r.onBottomLeave,i=r.onTopArrive,s=r.onTopLeave,l=e.scrollTarget,c=l.scrollTop,u=l.scrollHeight,d=l.clientHeight,f=e.scrollTarget,p=n>0,m=u-d-c,h=!1;m>n&&e.isBottom&&(a&&a(t),e.isBottom=!1),p&&e.isTop&&(s&&s(t),e.isTop=!1),p&&n>m?(o&&!e.isBottom&&o(t),f.scrollTop=u,h=!0,e.isBottom=!0):!p&&-n>c&&(i&&!e.isTop&&i(t),f.scrollTop=0,h=!0,e.isTop=!0),h&&e.cancelScroll(t)},e.onWheel=function(t){e.handleEventDelta(t,t.deltaY)},e.onTouchStart=function(t){e.touchStart=t.changedTouches[0].clientY},e.onTouchMove=function(t){var n=e.touchStart-t.changedTouches[0].clientY;e.handleEventDelta(t,n)},e.getScrollTarget=function(t){e.scrollTarget=t},e}return fr(r,[{key:"componentDidMount",value:function(){this.startListening(this.scrollTarget)}},{key:"componentWillUnmount",value:function(){this.stopListening(this.scrollTarget)}},{key:"startListening",value:function(e){e&&("function"==typeof e.addEventListener&&e.addEventListener("wheel",this.onWheel,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchmove",this.onTouchMove,!1))}},{key:"stopListening",value:function(e){e&&("function"==typeof e.removeEventListener&&e.removeEventListener("wheel",this.onWheel,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchmove",this.onTouchMove,!1))}},{key:"render",value:function(){return t().createElement(Wo,{innerRef:this.getScrollTarget},this.props.children)}}]),r}(e.Component);function ia(e){var n=e.isEnabled,r=void 0===n||n,o=xr(e,["isEnabled"]);return r?t().createElement(aa,o):o.children}var sa=function(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},n=t.isSearchable,r=t.isMulti,o=t.label,a=t.isDisabled,i=t.tabSelectsValue;switch(e){case"menu":return"Use Up and Down to choose options".concat(a?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(i?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(o||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value"}},la=function(e,t){var n=t.value,r=t.isDisabled;if(n)switch(e){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(n,", deselected.");case"select-option":return"option ".concat(n,r?" is disabled. Select another option.":", selected.")}},ca=function(e){return!!e.isDisabled};var ua={clearIndicator:uo,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":null,pointerEvents:t?"none":null,position:"relative"}},control:function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,o=r.colors,a=r.borderRadius,i=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?o.neutral5:o.neutral0,borderColor:t?o.neutral10:n?o.primary:o.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(o.primary):null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?o.primary:o.neutral30}}},dropdownIndicator:co,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?o.neutral10:o.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},input:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,visibility:t?"hidden":"visible",color:o.neutral80}},loadingIndicator:function(e){var t=e.isFocused,n=e.size,r=e.theme,o=r.colors,a=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*a,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:Kr,menu:function(e){var t,n=e.placement,r=e.theme,o=r.borderRadius,a=r.spacing,i=r.colors;return Er(t={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),Er(t,"backgroundColor",i.neutral0),Er(t,"borderRadius",o),Er(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),Er(t,"marginBottom",a.menuGutter),Er(t,"marginTop",a.menuGutter),Er(t,"position","absolute"),Er(t,"width","100%"),Er(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,n=t.borderRadius,r=t.colors,o=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:o?"ellipsis":null,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,o=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused&&o.dangerLight,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}}},noOptionsMessage:$r,option:function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,o=e.theme,a=o.spacing,i=o.colors;return{label:"option",backgroundColor:r?i.primary:n?i.primary25:"transparent",color:t?i.neutral20:r?i.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:!t&&(r?i.primary:i.primary50)}}},placeholder:function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},singleValue:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{label:"singleValue",color:t?o.neutral40:o.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"calc(100% - ".concat(2*r.baseUnit,"px)"),overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},valueContainer:function(e){var t=e.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}};var da={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}};function fa(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 pa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fa(Object(n),!0).forEach((function(t){Er(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ma(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=br(e);if(t){var o=br(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return gr(this,n)}}var ha,ga={backspaceRemovesValue:!0,blurInputOnSelect:Vr(),captureMenuScroll:!Vr(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ro(Object(n),!0).forEach((function(t){Er(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ro(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({ignoreCase:!0,ignoreAccents:!0,stringify:Fo,trim:!0,matchFrom:"any"},ha),r=n.ignoreCase,o=n.ignoreAccents,a=n.stringify,i=n.trim,s=n.matchFrom,l=i?Vo(t):t,c=i?Vo(a(e)):a(e);return r&&(l=l.toLowerCase(),c=c.toLowerCase()),o&&(l=No(l),c=No(c)),"start"===s?c.substr(0,l.length)===l:c.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:ca,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:"0",tabSelectsValue:!0},ba=1,ya=function(e){pr(r,e);var n=ma(r);function r(e){var t;ur(this,r),(t=n.call(this,e)).state={ariaLiveSelection:"",ariaLiveContext:"",focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,menuOptions:{render:[],focusable:[]},selectValue:[]},t.blockOptionHover=!1,t.isComposing=!1,t.clearFocusValueOnUpdate=!1,t.commonProps=void 0,t.components=void 0,t.hasGroups=!1,t.initialTouchX=0,t.initialTouchY=0,t.inputIsHiddenAfterUpdate=void 0,t.instancePrefix="",t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.cacheComponents=function(e){t.components=Po({components:e})},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,o=r.onChange,a=r.name;o(e,pa(pa({},n),{},{name:a}))},t.setValue=function(e){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"set-value",r=arguments.length>2?arguments[2]:undefined,o=t.props,a=o.closeMenuOnSelect,i=o.isMulti;t.onInputChange("",{action:"set-value"}),a&&(t.inputIsHiddenAfterUpdate=!i,t.onMenuClose()),t.clearFocusValueOnUpdate=!0,t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,o=n.isMulti,a=t.state.selectValue;if(o)if(t.isOptionSelected(e,a)){var i=t.getOptionValue(e);t.setValue(a.filter((function(e){return t.getOptionValue(e)!==i})),"deselect-option",e),t.announceAriaLiveSelection({event:"deselect-option",context:{value:t.getOptionLabel(e)}})}else t.isOptionDisabled(e,a)?t.announceAriaLiveSelection({event:"select-option",context:{value:t.getOptionLabel(e),isDisabled:!0}}):(t.setValue([].concat(Sr(a),[e]),"select-option",e),t.announceAriaLiveSelection({event:"select-option",context:{value:t.getOptionLabel(e)}}));else t.isOptionDisabled(e,a)?t.announceAriaLiveSelection({event:"select-option",context:{value:t.getOptionLabel(e),isDisabled:!0}}):(t.setValue(e,"select-option"),t.announceAriaLiveSelection({event:"select-option",context:{value:t.getOptionLabel(e)}}));r&&t.blurInput()},t.removeValue=function(e){var n=t.state.selectValue,r=t.getOptionValue(e),o=n.filter((function(e){return t.getOptionValue(e)!==r}));t.onChange(o.length?o:null,{action:"remove-value",removedValue:e}),t.announceAriaLiveSelection({event:"remove-value",context:{value:e?t.getOptionLabel(e):""}}),t.focusInput()},t.clearValue=function(){t.onChange(null,{action:"clear"})},t.popValue=function(){var e=t.state.selectValue,n=e[e.length-1],r=e.slice(0,e.length-1);t.announceAriaLiveSelection({event:"pop-value",context:{value:n?t.getOptionLabel(n):""}}),t.onChange(r.length?r:null,{action:"pop-value",removedValue:n})},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return jr.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return t.props.getOptionLabel(e)},t.getOptionValue=function(e){return t.props.getOptionValue(e)},t.getStyles=function(e,n){var r=ua[e](n);r.boxSizing="border-box";var o=t.props.styles[e];return o?o(r,n):r},t.getElementId=function(e){return"".concat(t.instancePrefix,"-").concat(e)},t.getActiveDescendentId=function(){var e=t.props.menuIsOpen,n=t.state,r=n.menuOptions,o=n.focusedOption;if(!o||!e)return undefined;var a=r.focusable.indexOf(o),i=r.render[a];return i&&i.key},t.announceAriaLiveSelection=function(e){var n=e.event,r=e.context;t.setState({ariaLiveSelection:la(n,r)})},t.announceAriaLiveContext=function(e){var n=e.event,r=e.context;t.setState({ariaLiveContext:sa(n,pa(pa({},r),{},{label:t.props["aria-label"]}))})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var n=t.props,r=n.isMulti,o=n.menuIsOpen;t.focusInput(),o?(t.inputIsHiddenAfterUpdate=!r,t.onMenuClose()):t.openMenu("first"),e.preventDefault(),e.stopPropagation()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.stopPropagation(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Ar(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var o=Math.abs(r.clientX-t.initialTouchX),a=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=o>5||a>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=e.currentTarget.value;t.inputIsHiddenAfterUpdate=!1,t.onInputChange(n,{action:"input-change"}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){var n=t.props,r=n.isSearchable,o=n.isMulti;t.props.onFocus&&t.props.onFocus(e),t.inputIsHiddenAfterUpdate=!1,t.announceAriaLiveContext({event:"input",context:{isSearchable:r,isMulti:o}}),t.setState({isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur"}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){t.blockOptionHover||t.state.focusedOption===e||t.setState({focusedOption:e})},t.shouldHideSelectedOptions=function(){var e=t.props,n=e.hideSelectedOptions,r=e.isMulti;return n===undefined?r:n},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,o=n.backspaceRemovesValue,a=n.escapeClearsValue,i=n.inputValue,s=n.isClearable,l=n.isDisabled,c=n.menuIsOpen,u=n.onKeyDown,d=n.tabSelectsValue,f=n.openMenuOnFocus,p=t.state,m=p.focusedOption,h=p.focusedValue,g=p.selectValue;if(!(l||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||i)return;t.focusValue("previous");break;case"ArrowRight":if(!r||i)return;t.focusValue("next");break;case"Delete":case"Backspace":if(i)return;if(h)t.removeValue(h);else{if(!o)return;r?t.popValue():s&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!c||!d||!m||f&&t.isOptionSelected(m,g))return;t.selectOption(m);break;case"Enter":if(229===e.keyCode)break;if(c){if(!m)return;if(t.isComposing)return;t.selectOption(m);break}return;case"Escape":c?(t.inputIsHiddenAfterUpdate=!1,t.onInputChange("",{action:"menu-close"}),t.onMenuClose()):s&&a&&t.clearValue();break;case" ":if(i)return;if(!c){t.openMenu("first");break}if(!m)return;t.selectOption(m);break;case"ArrowUp":c?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":c?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!c)return;t.focusOption("pageup");break;case"PageDown":if(!c)return;t.focusOption("pagedown");break;case"Home":if(!c)return;t.focusOption("first");break;case"End":if(!c)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.buildMenuOptions=function(e,n){var r=e.inputValue,o=void 0===r?"":r,a=e.options,i=function(e,r){var a=t.isOptionDisabled(e,n),i=t.isOptionSelected(e,n),s=t.getOptionLabel(e),l=t.getOptionValue(e);if(!(t.shouldHideSelectedOptions()&&i||!t.filterOption({label:s,value:l,data:e},o))){var c=a?undefined:function(){return t.onOptionHover(e)},u=a?undefined:function(){return t.selectOption(e)},d="".concat(t.getElementId("option"),"-").concat(r);return{innerProps:{id:d,onClick:u,onMouseMove:c,onMouseOver:c,tabIndex:-1},data:e,isDisabled:a,isSelected:i,key:d,label:s,type:"option",value:l}}};return a.reduce((function(e,n,r){if(n.options){t.hasGroups||(t.hasGroups=!0);var o=n.options.map((function(t,n){var o=i(t,"".concat(r,"-").concat(n));return o&&e.focusable.push(t),o})).filter(Boolean);if(o.length){var a="".concat(t.getElementId("group"),"-").concat(r);e.render.push({type:"group",key:a,data:n,options:o})}}else{var s=i(n,"".concat(r));s&&(e.render.push(s),e.focusable.push(n))}return e}),{render:[],focusable:[]})};var o=e.value;t.cacheComponents=wr(t.cacheComponents,no).bind(hr(t)),t.cacheComponents(e.components),t.instancePrefix="react-select-"+(t.props.instanceId||++ba);var a=Tr(o);t.buildMenuOptions=wr(t.buildMenuOptions,(function(e,t){var n=Dr(e,2),r=n[0],o=n[1],a=Dr(t,2),i=a[0];return o===a[1]&&r.inputValue===i.inputValue&&r.options===i.options})).bind(hr(t));var i=e.menuIsOpen?t.buildMenuOptions(e,a):{render:[],focusable:[]};return t.state.menuOptions=i,t.state.selectValue=a,t}return fr(r,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this.props,n=t.options,r=t.value,o=t.menuIsOpen,a=t.inputValue;if(this.cacheComponents(e.components),e.value!==r||e.options!==n||e.menuIsOpen!==o||e.inputValue!==a){var i=Tr(e.value),s=e.menuIsOpen?this.buildMenuOptions(e,i):{render:[],focusable:[]},l=this.getNextFocusedValue(i),c=this.getNextFocusedOption(s.focusable);this.setState({menuOptions:s,selectValue:i,focusedOption:c,focusedValue:l})}null!=this.inputIsHiddenAfterUpdate&&(this.setState({inputIsHidden:this.inputIsHiddenAfterUpdate}),delete this.inputIsHiddenAfterUpdate)}},{key:"componentDidUpdate",value:function(e){var t,n,r,o,a,i=this.props,s=i.isDisabled,l=i.menuIsOpen,c=this.state.isFocused;(c&&!s&&e.isDisabled||c&&l&&!e.menuIsOpen)&&this.focusInput(),c&&s&&!e.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,n=this.focusedOptionRef,r=t.getBoundingClientRect(),o=n.getBoundingClientRect(),a=n.offsetHeight/3,o.bottom+a>r.bottom?Lr(t,Math.min(n.offsetTop+n.clientHeight-t.offsetHeight+a,t.scrollHeight)):o.top-a<r.top&&Lr(t,Math.max(n.offsetTop-a,0)),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){var e=this.props,t=e.isSearchable,n=e.isMulti;this.announceAriaLiveContext({event:"input",context:{isSearchable:t,isMulti:n}}),this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,a=this.buildMenuOptions(this.props,r),i=this.props,s=i.isMulti,l=i.tabSelectsValue,c="first"===e?0:a.focusable.length-1;if(!s){var u=a.focusable.indexOf(r[0]);u>-1&&(c=u)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.inputIsHiddenAfterUpdate=!1,this.setState({menuOptions:a,focusedValue:null,focusedOption:a.focusable[c]},(function(){t.onMenuOpen(),t.announceAriaLiveContext({event:"menu",context:{tabSelectsValue:l}})}))}},{key:"focusValue",value:function(e){var t=this.props,n=t.isMulti,r=t.isSearchable,o=this.state,a=o.selectValue,i=o.focusedValue;if(n){this.setState({focusedOption:null});var s=a.indexOf(i);i||(s=-1,this.announceAriaLiveContext({event:"value"}));var l=a.length-1,c=-1;if(a.length){switch(e){case"previous":c=0===s?0:-1===s?l:s-1;break;case"next":s>-1&&s<l&&(c=s+1)}-1===c&&this.announceAriaLiveContext({event:"input",context:{isSearchable:r,isMulti:n}}),this.setState({inputIsHidden:-1!==c,focusedValue:a[c]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"first",t=this.props,n=t.pageSize,r=t.tabSelectsValue,o=this.state,a=o.focusedOption,i=o.menuOptions,s=i.focusable;if(s.length){var l=0,c=s.indexOf(a);a||(c=-1,this.announceAriaLiveContext({event:"menu",context:{tabSelectsValue:r}})),"up"===e?l=c>0?c-1:s.length-1:"down"===e?l=(c+1)%s.length:"pageup"===e?(l=c-n)<0&&(l=0):"pagedown"===e?(l=c+n)>s.length-1&&(l=s.length-1):"last"===e&&(l=s.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:s[l],focusedValue:null}),this.announceAriaLiveContext({event:"menu",context:{isDisabled:ca(s[l]),tabSelectsValue:r}})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(da):pa(pa({},da),this.props.theme):da}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getValue,o=this.setValue,a=this.selectOption,i=this.props,s=i.isMulti,l=i.isRtl,c=i.options;return{cx:t,clearValue:e,getStyles:n,getValue:r,hasValue:this.hasValue(),isMulti:s,isRtl:l,options:c,selectOption:a,setValue:o,selectProps:i,theme:this.getTheme()}}},{key:"getNextFocusedValue",value:function(e){if(this.clearFocusValueOnUpdate)return this.clearFocusValueOnUpdate=!1,null;var t=this.state,n=t.focusedValue,r=t.selectValue.indexOf(n);if(r>-1){if(e.indexOf(n)>-1)return n;if(r<e.length)return e[r]}return null}},{key:"getNextFocusedOption",value:function(e){var t=this.state.focusedOption;return t&&e.indexOf(t)>-1?t:e[0]}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.state.menuOptions.render.length}},{key:"countOptions",value:function(){return this.state.menuOptions.focusable.length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return t===undefined?n:t}},{key:"isOptionDisabled",value:function(e,t){return"function"==typeof this.props.isOptionDisabled&&this.props.isOptionDisabled(e,t)}},{key:"isOptionSelected",value:function(e,t){var n=this;if(t.indexOf(e)>-1)return!0;if("function"==typeof this.props.isOptionSelected)return this.props.isOptionSelected(e,t);var r=this.getOptionValue(e);return t.some((function(e){return n.getOptionValue(e)===r}))}},{key:"filterOption",value:function(e,t){return!this.props.filterOption||this.props.filterOption(e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"constructAriaLiveMessage",value:function(){var e=this.state,t=e.ariaLiveContext,n=e.selectValue,r=e.focusedValue,o=e.focusedOption,a=this.props,i=a.options,s=a.menuIsOpen,l=a.inputValue,c=a.screenReaderStatus,u=r?function(e){var t=e.focusedValue,n=e.getOptionLabel,r=e.selectValue;return"value ".concat(n(t)," focused, ").concat(r.indexOf(t)+1," of ").concat(r.length,".")}({focusedValue:r,getOptionLabel:this.getOptionLabel,selectValue:n}):"",d=o&&s?function(e){var t=e.focusedOption,n=e.getOptionLabel,r=e.options;return"option ".concat(n(t)," focused").concat(t.isDisabled?" disabled":"",", ").concat(r.indexOf(t)+1," of ").concat(r.length,".")}({focusedOption:o,getOptionLabel:this.getOptionLabel,options:i}):"",f=function(e){var t=e.inputValue,n=e.screenReaderMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}({inputValue:l,screenReaderMessage:c({count:this.countOptions()})});return"".concat(u," ").concat(d," ").concat(f," ").concat(t)}},{key:"renderInput",value:function(){var e=this.props,n=e.isDisabled,r=e.isSearchable,o=e.inputId,a=e.inputValue,i=e.tabIndex,s=e.form,l=this.components.Input,c=this.state.inputIsHidden,u=o||this.getElementId("input"),d={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]};if(!r)return t().createElement(Ho,De({id:u,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Pr,onFocus:this.onInputFocus,readOnly:!0,disabled:n,tabIndex:i,form:s,value:""},d));var f=this.commonProps,p=f.cx,m=f.theme,h=f.selectProps;return t().createElement(l,De({autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",cx:p,getStyles:this.getStyles,id:u,innerRef:this.getInputRef,isDisabled:n,isHidden:c,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,selectProps:h,spellCheck:"false",tabIndex:i,form:s,theme:m,type:"text",value:a},d))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,n=this.components,r=n.MultiValue,o=n.MultiValueContainer,a=n.MultiValueLabel,i=n.MultiValueRemove,s=n.SingleValue,l=n.Placeholder,c=this.commonProps,u=this.props,d=u.controlShouldRenderValue,f=u.isDisabled,p=u.isMulti,m=u.inputValue,h=u.placeholder,g=this.state,b=g.selectValue,y=g.focusedValue,v=g.isFocused;if(!this.hasValue()||!d)return m?null:t().createElement(l,De({},c,{key:"placeholder",isDisabled:f,isFocused:v}),h);if(p)return b.map((function(n,s){var l=n===y;return t().createElement(r,De({},c,{components:{Container:o,Label:a,Remove:i},isFocused:l,isDisabled:f,key:"".concat(e.getOptionValue(n)).concat(s),index:s,removeProps:{onClick:function(){return e.removeValue(n)},onTouchEnd:function(){return e.removeValue(n)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:n}),e.formatOptionLabel(n,"value"))}));if(m)return null;var w=b[0];return t().createElement(s,De({},c,{data:w,isDisabled:f}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.components.ClearIndicator,n=this.commonProps,r=this.props,o=r.isDisabled,a=r.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||o||!this.hasValue()||a)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return t().createElement(e,De({},n,{innerProps:s,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.components.LoadingIndicator,n=this.commonProps,r=this.props,o=r.isDisabled,a=r.isLoading,i=this.state.isFocused;if(!e||!a)return null;return t().createElement(e,De({},n,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:i}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.components,n=e.DropdownIndicator,r=e.IndicatorSeparator;if(!n||!r)return null;var o=this.commonProps,a=this.props.isDisabled,i=this.state.isFocused;return t().createElement(r,De({},o,{isDisabled:a,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.components.DropdownIndicator;if(!e)return null;var n=this.commonProps,r=this.props.isDisabled,o=this.state.isFocused,a={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return t().createElement(e,De({},n,{innerProps:a,isDisabled:r,isFocused:o}))}},{key:"renderMenu",value:function(){var e=this,n=this.components,r=n.Group,o=n.GroupHeading,a=n.Menu,i=n.MenuList,s=n.MenuPortal,l=n.LoadingMessage,c=n.NoOptionsMessage,u=n.Option,d=this.commonProps,f=this.state,p=f.focusedOption,m=f.menuOptions,h=this.props,g=h.captureMenuScroll,b=h.inputValue,y=h.isLoading,v=h.loadingMessage,w=h.minMenuHeight,C=h.maxMenuHeight,x=h.menuIsOpen,k=h.menuPlacement,O=h.menuPosition,D=h.menuPortalTarget,S=h.menuShouldBlockScroll,E=h.menuShouldScrollIntoView,M=h.noOptionsMessage,P=h.onMenuScrollToTop,_=h.onMenuScrollToBottom;if(!x)return null;var j,T=function(n){var r=p===n.data;return n.innerRef=r?e.getFocusedOptionRef:undefined,t().createElement(u,De({},d,n,{isFocused:r}),e.formatOptionLabel(n.data,"menu"))};if(this.hasOptions())j=m.render.map((function(n){if("group"===n.type){n.type;var a=xr(n,["type"]),i="".concat(n.key,"-heading");return t().createElement(r,De({},d,a,{Heading:o,headingProps:{id:i,data:n.data},label:e.formatGroupLabel(n.data)}),n.options.map((function(e){return T(e)})))}if("option"===n.type)return T(n)}));else if(y){var A=v({inputValue:b});if(null===A)return null;j=t().createElement(l,d,A)}else{var I=M({inputValue:b});if(null===I)return null;j=t().createElement(c,d,I)}var L={minMenuHeight:w,maxMenuHeight:C,menuPlacement:k,menuPosition:O,menuShouldScrollIntoView:E},N=t().createElement(qr,De({},d,L),(function(n){var r=n.ref,o=n.placerProps,s=o.placement,l=o.maxHeight;return t().createElement(a,De({},d,L,{innerRef:r,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:y,placement:s}),t().createElement(ia,{isEnabled:g,onTopArrive:P,onBottomArrive:_},t().createElement(ra,{isEnabled:S},t().createElement(i,De({},d,{innerRef:e.getMenuListRef,isLoading:y,maxHeight:l}),j))))}));return D||"fixed"===O?t().createElement(s,De({},d,{appendTo:D,controlElement:this.controlRef,menuPlacement:k,menuPosition:O}),N):N}},{key:"renderFormField",value:function(){var e=this,n=this.props,r=n.delimiter,o=n.isDisabled,a=n.isMulti,i=n.name,s=this.state.selectValue;if(i&&!o){if(a){if(r){var l=s.map((function(t){return e.getOptionValue(t)})).join(r);return t().createElement("input",{name:i,type:"hidden",value:l})}var c=s.length>0?s.map((function(n,r){return t().createElement("input",{key:"i-".concat(r),name:i,type:"hidden",value:e.getOptionValue(n)})})):t().createElement("input",{name:i,type:"hidden"});return t().createElement("div",null,c)}var u=s[0]?this.getOptionValue(s[0]):"";return t().createElement("input",{name:i,type:"hidden",value:u})}}},{key:"renderLiveRegion",value:function(){return this.state.isFocused?t().createElement(zo,{"aria-live":"polite"},t().createElement("span",{id:"aria-selection-event"}," ",this.state.ariaLiveSelection),t().createElement("span",{id:"aria-context"}," ",this.constructAriaLiveMessage())):null}},{key:"render",value:function(){var e=this.components,n=e.Control,r=e.IndicatorsContainer,o=e.SelectContainer,a=e.ValueContainer,i=this.props,s=i.className,l=i.id,c=i.isDisabled,u=i.menuIsOpen,d=this.state.isFocused,f=this.commonProps=this.getCommonProps();return t().createElement(o,De({},f,{className:s,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:d}),this.renderLiveRegion(),t().createElement(n,De({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:d,menuIsOpen:u}),t().createElement(a,De({},f,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),t().createElement(r,De({},f,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}]),r}(e.Component);function va(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=br(e);if(t){var o=br(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return gr(this,n)}}ya.defaultProps=ga;var wa={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null};function Ca(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=br(e);if(t){var o=br(this).constructor;Reflect.construct(r,arguments,o)}else r.apply(this,arguments);return gr(this,n)}}e.Component;var xa,ka,Oa,Da=(xa=ya,Oa=ka=function(e){pr(r,e);var n=va(r);function r(){var e;ur(this,r);for(var t=arguments.length,o=new Array(t),a=0;a<t;a++)o[a]=arguments[a];return(e=n.call.apply(n,[this].concat(o))).select=void 0,e.state={inputValue:e.props.inputValue!==undefined?e.props.inputValue:e.props.defaultInputValue,menuIsOpen:e.props.menuIsOpen!==undefined?e.props.menuIsOpen:e.props.defaultMenuIsOpen,value:e.props.value!==undefined?e.props.value:e.props.defaultValue},e.onChange=function(t,n){e.callProp("onChange",t,n),e.setState({value:t})},e.onInputChange=function(t,n){var r=e.callProp("onInputChange",t,n);e.setState({inputValue:r!==undefined?r:t})},e.onMenuOpen=function(){e.callProp("onMenuOpen"),e.setState({menuIsOpen:!0})},e.onMenuClose=function(){e.callProp("onMenuClose"),e.setState({menuIsOpen:!1})},e}return fr(r,[{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"getProp",value:function(e){return this.props[e]!==undefined?this.props[e]:this.state[e]}},{key:"callProp",value:function(e){if("function"==typeof this.props[e]){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return(t=this.props)[e].apply(t,r)}}},{key:"render",value:function(){var e=this,n=this.props,r=(n.defaultInputValue,n.defaultMenuIsOpen,n.defaultValue,xr(n,["defaultInputValue","defaultMenuIsOpen","defaultValue"]));return t().createElement(xa,De({},r,{ref:function(t){e.select=t},inputValue:this.getProp("inputValue"),menuIsOpen:this.getProp("menuIsOpen"),onChange:this.onChange,onInputChange:this.onInputChange,onMenuClose:this.onMenuClose,onMenuOpen:this.onMenuOpen,value:this.getProp("value")}))}}]),r}(e.Component),ka.defaultProps=wa,Oa),Sa=n(73),Ea=n.n(Sa),Ma=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))}},Pa=n(455),_a=n.n(Pa),ja=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!!.")))},Ta=function(){for(var e,t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];var a=[].concat(r)[2],i=[].concat(r)[3],s=[].concat(r)[4],l=[].concat(r)[5],c=a.errors,u=a.success,d=a.form_res,f=null!==(e=document.querySelector("#mf-response-props-id-"+a.formId))&&void 0!==e&&e.dataset.response_type?null===(t=document.querySelector("#mf-response-props-id-"+a.formId))||void 0===t?void 0:t.dataset.response_type:"alert";if("sweet_alert"==f){var p=function(){_a().fire(u,"","success"),r[2].success=""},m=function(){_a().fire(c[0],c[1],"error"),r[2].errors=[]};(c.length||u)&&(c.length?m():p())}if("alert"==f){var h=function(){return React.createElement(React.Fragment,null,React.createElement("i",{className:"mf-alert-icon ".concat(s)}),React.createElement("p",null,c.map((function(e){return e+" "}))," "))},g=function(){return React.createElement(React.Fragment,null,React.createElement("i",{className:"mf-success-icon ".concat(i)}),React.createElement("p",null,u))};return React.createElement("div",{className:"mf-main-response-wrap ".concat(l," mf-response-msg-wrap").concat(c.length>0?" mf-error-res":""),"data-show":d},React.createElement("div",{className:"mf-response-msg"},c.length?h():g()))}};function Aa(e){return(Aa="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 Ia=function(e,t,n){if("mf-captcha-challenge"!==e&&"g-recaptcha-response"!==e&&"right-answer"!==e&&"wrong-answer"!==e&&"quiz-marks"!==e&&"total-question"!==e){var r=n.getValue(e);Array.isArray(r)&&(r=r.join(", ")),"object"===Aa(r)&&r.name&&(r=r.name);if(function(e){return"File"in window&&e instanceof File}(r[0])&&"object"===Aa(r)&&(r=Object.keys(r).map((function(e){return r[e].name})).join(", ")),"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,o=null==n||null===(r=n.formContainerRef)||void 0===r?void 0:r.current,a=null==o?void 0:o.querySelector('[name="'+e+'"]'),i=a?a.closest(".mf-input-wrapper").querySelector("label"):null;return i?i.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(){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}))}))}}))};function Na(e){return(Na="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)}window.mfMapLocation=La;var Ra,Va=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"===Na(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 l=new a(e);return l.parent=u,l}function l(n){if(n!==undefined)switch(n.id){case"Expr":case"Tuple":return l(n.expr);case"OpenTuple":return n.expr?d(n.expr):d(n.left,n.right);case"Assign":return n.expr?l(n.expr):(s=n.left,u=l(u=n.right),function(e){return e.set(s.value,u.apply(null,arguments))});case"Sums":case"Prod":case"Power":return n.expr?l(n.expr):function(t,n,o){n=l(n),o=l(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?l(n.expr):function(t,n){switch(n=l(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=l(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 l(n.expr);case"Value":return l(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,u;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 d(e,t){if(e===undefined)return function(){return[]};var n="OpenTuple"===e.id;return e=l(e),t===undefined?function(){return[e.apply(null,arguments)]}:(t=l(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=D(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],l=(s?s.id:"(empty)")+":"+(i?i.id:"(eof)");switch(f[l]){case 1:e.debug("shift %s %o",l,m(n.stack)),n=h(n,i),r++;break;case 2:e.debug("reduce %s %o",l,m(n.stack)),n=b(n,i);break;case 0:e.debug("done %s %o",l,m(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,l)}else{c={text:"Unexpected EOF",pos:n.pos+1};n.error=c,e.warn("%s (%s)",c.text,l)}a=!0}}if(!n.error&&n.stack.length>1){var u=y(n,1);c={pos:u.pos||0,text:"LParen"===u.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,u=(a=l(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 u(s(c,o.vars,arguments))},set scope(e){c=e||{}},get scope(){return c}}};var f={};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];f[s]=e}}function m(t){return e.level>=o.DEBUG?t.map((function(e){return e.id})):""}function h(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 b(t,n){switch(y(t,0).id){case"Tuple":return function(e){var t=y(e,0);return g(e,1,{id:"Expr",expr:t})}(t);case"OpenTuple":case"Comma":return v(t,n);case"Assign":case"Sums":return function(e,t){var n=y(e,1),r=y(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 v(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=y(e,1),n=y(e,0);if(n!==undefined&&"Unary"===n.id){var r=x(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 x(t);case"Value":case"RParen":return function(t){var n=y(t,3),r=y(t,2),o=y(t,1),a=y(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=y(e,0);e=g(e,1,{id:"Value",token:t}),"Var"===t.id&&(e.scope[t.value]=t);return e}(t)}return t}function y(e,t){return t===undefined&&(t=0),e.stack[e.stack.length-(t+1)]}function v(e,t){var n=y(e,2),r=y(e,1),o=y(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=y(e,2),o=y(e,1),a=y(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 x(e,t){var n=y(e,2),r=y(e,1),o=y(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 k=/^(?:(\s+)|((?:\d+e[-+]?\d+|\d+(?:\.\d*)?|\d*\.\d+))|(\+)|(\-)|(\*)|(\/)|(%)|(\^)|(\()|(\))|(=)|(,)|([a-zA-Z]\w*))/i,O=["Space","Number","Plus","Minus","Mul","Div","Mod","Pow","LParen","RParen","Eq","Comma","Var"];function D(t,n){var r=t.slice(n);if(0!==r.length){var o=k.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!==k.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,l=O.length;s<l;s++){var c=o[s+1];if(c!==undefined)return{id:O[s],string:c,pos:n,end:n+c.length,value:E(O[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 l,c,u=((c=new a).set("pi",Math.PI),c.set("e",Math.E),c.set("inf",Number.POSITIVE_INFINITY),l=Math,Object.getOwnPropertyNames(Math).forEach((function(e){c.set(e,l[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}(),Fa="";Ra=jQuery,Element.prototype.getElSettings=function(e){if("settings"in this.dataset)return JSON.parse(this.dataset.settings.replace(/("\;)/g,'"'))[e]||""},Fa=function(e,t){var n=e.find(".mf-multistep-container");0===n.find(".elementor-section-wrap").length&&n.find('div[data-elementor-type="wp-post"]').addClass("elementor-section-wrap");var r=n.find(".e-container--column").length>0?".e-container--column":n.find(".e-con").length>0?".e-con":".elementor-top-section";if(n.length){var o=[];jQuery('div[data-elementor-type="wp-post"] > '.concat(r)).each((function(e){var t=this.getElSettings("metform_multistep_settings_title")||"Step-"+Ra(this).data("id"),r=this.getElSettings("metform_multistep_settings_icon"),a="",i="";r&&(a="svg"===r.library?'<img class="metform-step-svg-icon" src="'+r.value.url+'" alt="SVG Icon" />':r.value.length?'<i class="metform-step-icon '+r.value+'"></i>':""),0===e?(i="active",n.hasClass("mf_slide_direction_vertical")&&Ra(this).parents(".elementor-section-wrap").css("height",Ra(this).height())):1===e&&(i="next"),t&&o.push("<li class='metform-step-item "+i+"' id='metform-step-item-"+Ra(this).attr("data-id")+"' data-value='"+Ra(this).attr("data-id")+"'>"+a+'<span class="metform-step-title">'+t+"</span></li>")})),o&&(n.find(".metform-form-content .metform-form-main-wrapper > .elementor").before("<ul class='metform-steps'>"+o.join("")+"</ul>"),n.find("".concat(r,":first-of-type")).addClass("active"),n.find(".mf-progress-step-bar span").attr("data-portion",100/o.length).css("width",100/o.length+"%"))}n.find("".concat(r," .metform-btn")).attr("type","button"),n.find(".mf-input").on("keypress",(function(e){13!==e.which||Ra(this).hasClass("mf-textarea")||n.find(".metform-step-item.next").trigger("click")})),n.find(r).on("keydown",(function(e){var t=Ra(this),n=Ra(":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,o=this,a=Ra(this).parents(".mf-form-wrapper").eq(0),i=a.find("".concat(r,".active .mf-input")),s=(Ra("body").hasClass("rtl")?100:-100)*Ra(this).index()+"%",l=(a.find(".mf-progress-step-bar").attr("data-total"),Ra(this.nextElementSibling).hasClass("active")),c=[];Ra(this).hasClass("prev","progress")&&Ra(this).removeClass("progress"),i.each((function(){var e=Ra(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&&c.push(t)})),e=function(e){e&&(a.find("".concat(r,".active .metform-btn")).attr("type","button"),(Ra(o).hasClass("prev")||Ra(o).hasClass("next"))&&(Ra(o).addClass("active").removeClass("next prev").prev().addClass("prev").siblings().removeClass("prev").end().end().next().addClass("next").siblings().removeClass("next").end().end().siblings().removeClass("active"),a.find("".concat(r,'[data-id="')+Ra(o).data("value")+'"]').addClass("active").siblings().removeClass("active"),n.hasClass("mf_slide_direction_vertical")?(a.find(".elementor-section-wrap ".concat(r)).css({transform:"translateY("+s+")"}),a.find(".elementor-section-wrap").css("height","calc("+a.find("".concat(r,'[data-id="')+Ra(o).data("value")+'"]').height()+"px)")):a.find(".elementor-section-wrap").css({transform:"translateX("+s+")"})),a.find(".mf-progress-step-bar span").css("width",(Ra(o).index()+1)*a.find(".mf-progress-step-bar span").attr("data-portion")+"%"),a.find("".concat(r,".active")).find(".metform-submit-btn").length&&setTimeout((function(){a.find("".concat(r,".active")).find(".metform-submit-btn").attr("type","submit")}),0))},l?e(!0):(t.doValidate(c).then(e),"yes"===Ra(this).closest("div[data-previous-steps-style]").attr("data-previous-steps-style")&&setTimeout((function(){Ra(o).hasClass("active")&&Ra(o).prevAll().addClass("progress")}),0))}))};function Ba(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(l){s=!0,o=l}finally{try{i||null==n["return"]||n["return"]()}finally{if(s)throw o}}return a}(e,t)||Ha(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 za(e){return function(e){if(Array.isArray(e))return Ua(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ha(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 Ha(e,t){if(e){if("string"==typeof e)return Ua(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)?Ua(e,t):void 0}}function Ua(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 Wa(e){return(Wa="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 qa(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 Ya(e,t){return(Ya=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function $a(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=Qa(e);if(t){var o=Qa(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ka(this,n)}}function Ka(e,t){if(t&&("object"===Wa(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ga(e)}function Ga(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qa(e){return(Qa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Za(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?Za(Object(n),!0).forEach((function(t){Xa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Za(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ei=new(ke())({tolerance:200}),ti=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&&Ya(e,t)}(a,React.Component);var t,n,r,o=$a(a);function a(e){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),Xa(Ga(n=o.call(this,e)),"handleFormSubmit",(function(e,t){var r;t.preventDefault();var o=n.state,a=o.formData,i=o.defaultData,s=n.props,l=s.action,c=s.wpNonce,u=s.validation,d=u.reset,f=new FormData,p=Ja(Ja({},i),a);for(var m in jQuery(n.mfRefs.mainForm.parentElement).trigger("metform/before_submit",p),jQuery(n.mfRefs.mainForm).find(".metform-submit-btn").attr("disabled",!0),p)if("object"==Wa(p[m])){var h=p[m][0];if(Blob&&h instanceof Blob)for(var g=p[m].length,b=0;b<g;b++)f.append(m+"[]",p[m][b]);else f.append(m,p[m])}else f.append(m,p[m]);r="mf_success_duration"in n.props.widgetSettings?n.props.widgetSettings.mf_success_duration:5,r*=1e3,fetch(l,{method:"POST",headers:{"X-WP-Nonce":c},body:f}).then((function(e){return e.json()})).then((function(e){var t,o;(n.formSubmitResponse=e,e.status)?(n.setState({success:"true"===n.props.quizSummery&&Object.keys(n.state.answers).length&&e.data.message?"".concat(e.data.message," You have got ").concat(n.state.formData["quiz-marks"]," Marks. Right Answer ").concat(null===(t=n.state.formData)||void 0===t?void 0:t["right-answer"].length,".\n\t\t\t\t\tWrong Answer ").concat(null===(o=n.state.formData)||void 0===o?void 0:o["wrong-answer"].length,"."):e.data.message?e.data.message:"",form_res:1},(function(){n.resetReCAPTCHA(),u.clearErrors("g-recaptcha-response")})),e.status&&e.data.hide_form&&(n.formRef.current.setAttribute("class","mf-close-this-form"),setTimeout((function(){n.formRef.current.innerHTML=""}),600))):n.setState({errors:za(e.error),form_res:1},(function(){n.resetReCAPTCHA(),n.setValue("mf-captcha-challenge","",!0),u.clearErrors("g-recaptcha-response")}));if(e.data.store&&"stripe"===e.data.store["mf-payment-method"]&&n.stripePayment(e),jQuery(n.mfRefs.mainForm.parentElement).trigger("metform/after_submit",{data:p,response:e}),e.data.store&&"stripe"!==e.data.store["mf-payment-method"]&&e.status&&e.data.redirect_to){var a=e.data.entry_id,i=e.data.redirect_to;a&&""!==a&&(i+=(i.includes("?")?"&":"?")+"mf_entry_id="+a),setTimeout((function(){window.location.href=i}),1500)}setTimeout((function(){e.data.hide_form||e.data.store&&"stripe"!==e.data.store["mf-payment-method"]&&n.setState({success:"",errors:[],form_res:0})}),r)}))["catch"]((function(e){n.setState({errors:["Something went wrong"],form_res:1},(function(){n.resetReCAPTCHA(),n.setValue("mf-captcha-challenge","",!0),u.clearErrors("g-recaptcha-response")})),console.error(e.message),setTimeout((function(){n.setState({errors:[],form_res:0})}),r)}))["finally"]((function(){if(n.state.submitted=!0,jQuery(n.mfRefs.mainForm).find(".metform-submit-btn").attr("disabled",!1),!n.props.stopVerticalEffect){var e=n.mfRefs.mainForm.querySelector(".mf-main-response-wrap");ei.move(e)}setTimeout((function(){n.setState({formData:{},mobileWidget:{}}),localStorage.removeItem("metform-".concat(n.props.formId)),jQuery(n.mfRefs.mainForm).find(".mf-toggle-select-input").each((function(){jQuery(this).removeAttr("checked")})),n.state.hasOwnProperty(["QuizInfo"])&&(n.state.formData["total-question"]=n.state.QuizInfo.totalQuestion,n.state.formData["right-answer"]=n.state.QuizInfo.rightAnswer,n.state.formData["wrong-answer"]=n.state.QuizInfo.wrongAnswer,n.state.formData["quiz-marks"]=n.state.QuizInfo.marks)}),350),jQuery(n.mfRefs.mainForm).find(".btn.clear").click(),d()}))})),Xa(Ga(n),"handleCalculations",(function(e,t){var r=e.target.calc_behavior,o=ReactDOM.findDOMNode(Ga(n)),a=o.length?o.querySelectorAll(".mf-input-calculation"):[];for(var i in t)if(Array.isArray(t[i])){var s=t[i].map((function(e){return isNaN(e)?e:Number(e)}));t[i]=s}for(var l in a.forEach((function(e){var o=parseInt(e.dataset.fraction);o=o<0||o>99?2:o;var a=n.MfMathCalc.parse(e.dataset.equation,t,r)||0;if("NaN"!==a){var i=a.toString().split(".");i.length>1&&(i[1]=i[1].slice(0,o),i[1].length||i.pop()),t[e.name]=i.join(".")}})),t)if(Array.isArray(t[l]))for(var c=0;c<t[l].length;c++)"number"==typeof t[l][c]&&(t[l][c]=t[l][c]+"")})),Xa(Ga(n),"handleConditionals",(function(e){var t=n.state,r=t.formData,o=t.defaultData,a=n.props,i=a.widgets,s=a.conditionalRefs,l=a.validation,c=l.getValues,u=l.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(t){t.name=t.mf_conditional_logic_form_if,t.value=r[t.name]||o[t.name]||"",t.match=t.mf_conditional_logic_form_value,t.operator=n.decodeEntities(t.mf_conditional_logic_form_comparison_operators),Array.isArray(t.value)&&-1!==t.value.indexOf(t.match)&&(t.value=t.value[t.value.indexOf(t.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}}(t.value,t.match,t.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 t=e.settings.mf_input_name;if(e.isValidated&&"show"===e.action){var a;e.el.setAttribute("mf-condition-hidden",!1),e.el.classList.remove("mf-condition--hidden"),null===(a=e.el.closest(".e-container, .e-con, .elementor-top-section"))||void 0===a||a.classList.remove("mf-condition--hidden"),"noval"===c(t)&&u(t,undefined)}else{var s,l,d;if(e.el.setAttribute("mf-condition-hidden",!0),!e.el.closest(".elementor-inner-section")&&!e.el.closest(".e-container")&&!e.el.closest(".e-con"))Array.isArray(null===(s=Object.values(e.el.closest(".elementor-widget-wrap"))[1])||void 0===s?void 0:s.children)||e.el.closest(".elementor-top-section").classList.add("mf-condition--hidden");if(e.el.closest(".e-container"))(null===(l=Object.values(e.el.closest(".e-container"))[1])||void 0===l||null===(d=l.children)||void 0===d?void 0:d.length)<=2&&e.el.closest(".e-container").classList.add("mf-condition--hidden");e.el.classList.add("mf-condition--hidden"),Object.values(e.el.classList).indexOf("elementor-widget-mf-select")>-1&&u(t,"noval")}}))})),Xa(Ga(n),"getValue",(function(e){return e in n.state.formData?n.state.formData[e]:""})),Xa(Ga(n),"getFileLabel",(function(e,t){var r=n.state.formData[e],o="";if(r&&(null==r?void 0:r.length)>1){for(var a=0;a<(null==r?void 0:r.length);a++)o+=r[a].name+",";o=o.slice(0,-1)}else 1==(null==r?void 0:r.length)&&(o=r?r[0].name:"");return r?o:n.decodeEntities(t)})),Xa(Ga(n),"getInputLabel",(function(e,t){var r=ReactDOM.findDOMNode(Ga(n)).querySelector('[name="'+e+'"]'),o=r?r.closest(".mf-input-wrapper").querySelector("label"):null;return o?o.innerText.replace(/\*/g,"").trim():t})),Xa(Ga(n),"decodeEntities",(function(e){var t=document.createElement("textarea");return t.innerHTML=e,t.value})),Xa(Ga(n),"setDefault",(function(e){if(null!==e){var t=e.name,r=e.value,o=n.state.defaultData;o[t]=r,n.setState({defaultData:o})}})),Xa(Ga(n),"isNumeric",(function(e){return!isNaN(parseFloat(e))&&isFinite(e)})),Xa(Ga(n),"setStateValue",(function(e,t){n.setState({name:e,value:t})})),Xa(Ga(n),"handleCardNumber",(function(e){var t=e.target,r=t.name,o=t.value,a=n.state.formData,i=a[r+"--type"],s=o.replace(/\s+/g,"").replace(/[^0-9]/gi,""),l=a[r],c="amex"===i?5:4,u="amex"===i?15:16;if(new RegExp("^[0-9]*$").test(s)&&s.length<=u){for(var d=s.match(/\d{4,16}/g),f=d&&d[0]||"",p=[],m=0,h=f.length;m<h;m+=c)p.push(f.substring(m,m+c));p.length&&(s=p.join(" ").trim()),l=s}n.setValue(r,l,!0),n.handleChange(e),e.target.value=l,n.handleCardType(s,e.target.name)})),Xa(Ga(n),"handleCardType",(function(e,t){var r="blank",o=t+"--type";r=e.startsWith("34")||e.startsWith("37")?"amex":e.startsWith("4")?"visa":e.startsWith("5")?"master":e.startsWith("6")?"discover":"custom";var a=n.state.formData;a[o]=r,n.setState({formData:a})})),Xa(Ga(n),"handleCardMonth",(function(e){var t=e.target,r=t.name,o=t.value,a=parseInt(o.replace(/-/g,""))||"",i=parseInt(a.toString().substring(0,1))||"";1<i&&i<10?n.setValue(r,i,!0):n.setValue(r,a>12?12:a,!0),n.handleChange(e)})),Xa(Ga(n),"handleSubVal",(function(e,t){var r=e.target,o=r.name,a=r.value,i=parseInt(a.replace(/-/g,"").substring(0,t))||"";n.setValue(o,i,!0),e.target.value=i,n.handleChange(e)})),Xa(Ga(n),"handleSaveProgress",(function(e,t){if(!elementorFrontend.isEditMode()&&"true"===n.props.saveProgress&&!(document.getElementsByName(e)[0].className.includes("mf-captcha-input")||document.getElementsByName(e)[0].className.includes("g-recaptcha-response")||document.getElementsByName(e)[0].className.includes("g-recaptcha-response-v3")||"password"==document.getElementsByName(e)[0].type||document.getElementsByName(e)[0].closest(".mf-credit-card-wrapper")||"file"===document.getElementsByName(e)[0].type)){var r=new Date;r.setMinutes(r.getMinutes()+120),null===localStorage.getItem("metform-".concat(n.props.formId))&&localStorage.setItem("metform-".concat(n.props.formId),JSON.stringify({expireTime:r.getTime()})),setTimeout((function(){var r,o,a=null===(r=document.getElementsByClassName("mf-input-calculation")[0])||void 0===r?void 0:r.value,i=null===(o=document.getElementsByClassName("mf-input-calculation")[0])||void 0===o?void 0:o.name,s=JSON.parse(localStorage.getItem("metform-".concat(n.props.formId)));for(var l in a&&(s[i]=a),s[e]=t,s)""===s[l]&&delete s[l];localStorage.setItem("metform-".concat(n.props.formId),JSON.stringify(s))}),0)}})),Xa(Ga(n),"compareArrays",(function(e,t){if(!e||!t)return!1;if(e.length!==t.length)return!1;var n=e.sort(),r=t.sort();return n.map((function(e,t){return r[t]===e})).every((function(e){return e}))})),Xa(Ga(n),"handleIncorrectAnswer",(function(e,t,n,r,o,a){var i,s,l;null!==(i=e.formData["wrong-answer"])&&void 0!==i&&i.includes(n)||(t["wrong-answer"]=t["wrong-answer"]?[].concat(za(t["wrong-answer"]),[n]):[n],t["quiz-marks"]=(t["quiz-marks"]?t["quiz-marks"]:0)-(!(null!==(l=t["right-answer"])&&void 0!==l&&l.includes(n))&&(a||0)));if(null!==(s=t["right-answer"])&&void 0!==s&&s.includes(n)){var c=t["right-answer"].indexOf(n);t["quiz-marks"]=t["quiz-marks"]-o,t["quiz-marks"]=t["quiz-marks"]-(a||0),t["right-answer"].splice(c,1)}return t})),Xa(Ga(n),"handleCorrectAnswer",(function(e,t,r,o){var a,i;e["quiz-marks"]=(e["quiz-marks"]?e["quiz-marks"]:0)+r,e["quiz-marks"]=(e["quiz-marks"]?e["quiz-marks"]:0)+(o||0),e["right-answer"]=e["right-answer"]?[].concat(za(e["right-answer"]),[t]):[t];var s=null===(a=e["wrong-answer"])||void 0===a?void 0:a.indexOf(t);null===(i=e["wrong-answer"])||void 0===i||i.splice(s,1),n.setState({formData:e})})),Xa(Ga(n),"handleChange",(function(e){var t=e.target,r=t.name,o=t.value,a=t.type,i=n.state.formData;i[r]="number"===a&&"mobile"!==a?Number(o):o,n.handleCalculations(e,i),n.setState({formData:i});var s=e.target;if(s.className!==undefined&&-1!==s.className.indexOf("mf-repeater-type-simple")||n.trigger(r),n.handleSaveProgress(r,o),"quiz-form"===n.props.formType&&Object.keys(n.state.answers).includes(r)){var l=parseFloat(n.state.answers[r].correctPoint),c=parseFloat(n.state.answers[r].incorrectPoint);if("multiselect"===a||"checkbox"===a){var u=n.handleIncorrectAnswer(n.state,i,r,o,l,c);n.compareArrays(o,n.state.answers[r].answer)&&n.handleCorrectAnswer(u,r,l,c)}else if("text"===a||"radio"===a){var d=n.handleIncorrectAnswer(n.state,i,r,o,l,c);(null==o?void 0:o.toLowerCase())===n.state.answers[r].answer.toLowerCase()&&n.handleCorrectAnswer(d,r,l,c)}else if("select"===a){var f=n.handleIncorrectAnswer(n.state,i,r,o,l,c);o===n.state.answers[r].answer&&n.handleCorrectAnswer(f,r,l,c)}}})),Xa(Ga(n),"handleDateTime",(function(e){var t=e.target,r=t.name,o=t.value;n.setValue(r,o,!0),n.handleChange(e)})),Xa(Ga(n),"handleSelect",(function(e,t){var r=e.value;e.target={name:t,value:r,type:"select"},n.setValue(t,r,!0),n.handleChange(e)})),Xa(Ga(n),"handleRadioDefault",(function(e){var t=n.state.formData;if(e&&e.dataset.checked){var r=e.name;e.setAttribute("checked",!0),r in t||n.handleChange({target:{name:r,value:e.value}})}})),Xa(Ga(n),"handleCheckbox",(function(e,t){if(!e)return!1;var r=n.state.formData,o=!1;if("onLoad"===t){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&&n.handleChange({target:{name:o,value:i}})}if("onClick"===t){o||(o=e.name);var s=new Set(r[o]);e.checked&&s.add(e.value),e.checked||s["delete"](e.value),n.handleChange({target:{name:o,value:Array.from(s),type:"checkbox"}})}})),Xa(Ga(n),"handleSwitch",(function(e){e.target.value=e.target.nextElementSibling.getAttribute("data-disable"),e.target.checked&&(e.target.value=e.target.nextElementSibling.getAttribute("data-enable")),n.handleChange(e)})),Xa(Ga(n),"handleOptin",(function(e){e.target.checked||(e.target.value="off"),e.target.checked&&(e.target.value="on"),n.handleChange(e)})),Xa(Ga(n),"handleFileUpload",(function(e){n.handleChange({target:{name:e.target.name,value:e.target.files}})})),Xa(Ga(n),"handleMultiStepBtns",(function(e){var t=jQuery(e.currentTarget).parents(".elementor-top-section.active").length>0?".elementor-top-section":jQuery(e.currentTarget).parents(".e-container--column.active").length>0?".e-container--column":".e-con",r=jQuery(e.currentTarget).parents("".concat(t,".active")),o=e.currentTarget.dataset.direction,a=r.prev()[0]?r.prev()[0].dataset:"",i=r.next()[0]?r.next()[0].dataset:"",s=("next"===o?i:a).id;if(!s)return!1;var l=jQuery(e.currentTarget).parents(".metform-form-content").find('.metform-step-item[data-value="'+s+'"]'),c=[];r.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&&c.push(t)})),jQuery(e.currentTarget).parents(".mf-scroll-top-yes").length&&ei.move(n.mfRefs.mainForm),"next"===o?n.trigger(c).then((function(e){e&&l.trigger("click")})):l.trigger("click")})),Xa(Ga(n),"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"}})),Xa(Ga(n),"handleSignature",(function(e){e.target={name:e.props.name,value:e.toDataURL()},n.handleChange(e),n.setValue(e.target.name,e.target.value,!0)})),Xa(Ga(n),"refreshCaptcha",(function(e){n.setState({captcha_img:n.state.captcha_path+Date.now()})})),Xa(Ga(n),"resetReCAPTCHA",(function(){n.getValue("mf-captcha-challenge")&&n.refreshCaptcha(),n.getValue("g-recaptcha-response")&&n.handleReCAPTCHA("reset")})),Xa(Ga(n),"handleReCAPTCHA",(function(e){"reset"===e&&(e="",grecaptcha.reset());var t={target:{name:"g-recaptcha-response",value:(e=e||"")||""}};n.handleChange(t)})),Xa(Ga(n),"activateValidation",(function(e,t,r){var o,a,i=n.state.formData,s=n.props.validation.register,l=e.type,c=e.required,u=e.message,d=e.minLength,f=e.maxLength,p=e.expression,m={};if(t&&c&&t.closest(".elementor-element")&&"true"===t.closest(".elementor-element").getAttribute("mf-condition-hidden"))m.required=!1;else{if((l&&"none"!==l||c)&&(m.required=!!c&&u),t&&t.classList&&t.classList.contains("mf-credit-card-number")&&(i[t.name]&&"amex"===i[t.name+"--type"]?m.minLength=m.maxLength={value:17,message:u}:m.minLength=m.maxLength={value:19,message:u}),e.inputType&&"credit_card_date"===e.inputType&&(d&&(m.min={value:d,message:u}),f&&(m.max={value:f,message:u})),t&&"file"===t.type&&t.files.length>0){var h=e.file_types,g=e.size_limit,b=t.files[0].name.substr(t.files[0].name.lastIndexOf(".")+1);m.validate={fileType:function(){return b=b.toLowerCase(),!(h!==[]&&!h.includes("."+b))||e.type_message},fileSize:function(){return!(-1!==g&&t.files[0].size>1024*parseInt(g))||e.limit_message}}}t&&"email"===t.type?m.pattern={value:/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,message:e.emailMessage}:t&&"url"===t.type&&(m.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"===l?(o=t&&"number"===t.type?"min":"minLength",a=t&&"number"===t.type?"max":"maxLength",d&&(m[o]={value:d,message:u}),f&&(m[a]={value:f,message:u})):"by_word_length"===l?m.validate={wordLength:function(e){return n.handleWordValidate(e,d,f,u)}}:"by_expresssion_based"===l&&(m.validate={expression:function(e){return n.handleExpressionValidate(e,p,u)}})}return"function"==typeof r&&r(),t?s(t,m):m})),Xa(Ga(n),"handleWordValidate",(function(e,t,n,r){var o=e.trim().split(/\s+/).length;return!!(n?o>=t&&o<=n:o>=t)||r})),Xa(Ga(n),"handleExpressionValidate",(function(e,t,n){if(t)return!!new RegExp(t).test(e)||n})),Xa(Ga(n),"colorChange",(function(e,t){n.handleChange({target:{name:t,value:e.hex}})})),Xa(Ga(n),"colorChangeInput",(function(e){n.handleChange({target:{name:e.target.name,value:e.target.value}})})),Xa(Ga(n),"multiSelectChange",(function(e,t){if("string"==typeof e)try{e=JSON.parse(e)}catch(o){return}var r=[];if(null!==e)try{e.filter((function(e){return r.push(e.value?e.value:e.mf_input_option_value)}))}catch(a){return}n.handleChange({target:{name:t,value:r,type:"multiselect"}})})),Xa(Ga(n),"handleRangeChange",(function(e,t){n.handleChange({target:{name:t,value:Number(e.toFixed(2))}}),n.props.validation.setValue(t,Number(e.toFixed(2)))})),Xa(Ga(n),"handleMultipileRangeChange",(function(e,t){n.handleChange({target:{name:t,value:[e.min,e.max],calc_behavior:"decrease_first_value"}})})),Xa(Ga(n),"handleOnChangePhoneInput",(function(e,t,r){var o="";r&&e!==r.dialCode&&(o=e),n.setState({mobileWidget:Ja(Ja({},n.state.mobileWidget),{},Xa({},t,e))}),n.handleChange({target:{name:t,value:o,type:"mobile"}})})),Xa(Ga(n),"setFormData",(function(e,t){n.state.formData[e]=t})),Xa(Ga(n),"getParams",(function(){for(var e,t=window.location.search,n={},r=/[?&]?([^=]+)=([^&]*)/g;e=r.exec(t);)n[decodeURIComponent(e[1])]=decodeURIComponent(e[2]);return n})),Xa(Ga(n),"setParamValueState",(function(){var e=n.state.formData,t=n.getParams(),r=n.props.widgets,o=function(o){var a=t[o].split(","),i=function(t){var i=r[t].el,s=jQuery(i),l=s.data().settings,c=l.mf_input_list,u=[];function d(e){return s.find(e).length>0}function f(){var t=a.filter((function(e){return e.length>0&&u.length>0&&u.includes(e)})),n=za(new Set(t));n.length>0&&(e[o]=n)}function p(t){e[o]=t}if(l.mf_input_name===o&&"yes"===l.mf_input_get_params_enable){if(c&&c.length>0){for(var m=0;m<c.length;m++)u.push(c[m].mf_input_option_value||c[m].value);if((d(".mf-input-select")||d("input.mf-radio-input:radio")||d("input.mf-image-select-input:radio")||d("input.mf-toggle-select-input:radio"))&&(function(){var t=a.filter((function(e){return e.length>0&&u.length>0&&u.includes(e)}))[0];t&&(e[o]=t)}(),d("input.mf-toggle-select-input:radio"))){var h=a.filter((function(e){return e.length>0&&u.length>0&&u.includes(e)}))[0];h&&s.find("input.mf-toggle-select-input:radio").each((function(){jQuery(this).prop("checked",!1),h.includes(jQuery(this).val())&&jQuery(this).prop("checked",!0)}))}if(d("input.mf-checkbox-input:checkbox")||d("input.mf-image-select-input:checkbox")||d("input.mf-toggle-select-input:checkbox"))f(),a.filter((function(e){return e.length>0&&u.length>0&&u.includes(e)})).length>0&&(s.find("input.mf-checkbox-input:checkbox").each((function(){jQuery(this).prop("checked",!1),a.includes(jQuery(this).val())&&jQuery(this).prop("checked",!0)})),s.find("input.mf-toggle-select-input:checkbox").each((function(){jQuery(this).prop("checked",!1),a.includes(jQuery(this).val())&&jQuery(this).prop("checked",!0)})));d(".mf-input-multiselect")&&f()}else{var g=a[0];if(d("input[type=email]")&&(p(g),s.find("input[type=email]").val(g)),d("input[type=checkbox]")&&"on"===g&&(p(g),s.find("input[type=checkbox]")[0].checked=!0),d("input[type=number]")){p(Number(g)),s.find("input[type=number]").val(Number(g));var b=s.find("input[type=number]")[0];b.addEventListener("click",(function(t){n.handleCalculations(t,e)})),b.click()}if(d(".range-slider")){var y=l.mf_input_min_length_range;l.mf_input_max_length_range>=Number(g)&&y<=Number(g)&&p(Number(g))}if(d(".mf-ratings"))l.mf_input_rating_number>=Number(g)&&0<=Number(g)&&p(Number(g));if(d("input.mf-input-switch-box:checkbox")){var v=l.mf_swtich_enable_text;v===g&&(p(v),s.find("input.mf-input-switch-box:checkbox")[0].checked=!0)}if(d("input.mf-payment-method-input:radio")){var w=["paypal","stripe"],C=a.filter((function(e){return e.length>0&&w.includes(e)}))[0];C&&p(C),C&&s.find("input.mf-payment-method-input:radio").each((function(){jQuery(this).prop("checked",!1),a.includes(jQuery(this).val())&&jQuery(this).prop("checked",!0)}))}if(d("input[type=text]")||d("input[type=password]")||d("input[type=tel")||d("textarea.mf-input")||d("input[type=url]")){var x=n.getParams()[o];if(d("input.flatpickr-input")){(g.match(/^[0-3]?[0-9].[0-3]?[0-9].(?:[0-9]{2})?[0-9]{2}$/)||g.match(/^(?:[0-9]{2})?[0-9]{2}.[0-3]?[0-9].[0-3]?[0-9]$/))&&p(x)}else p(x),s.find("input[type=text").val(x),s.find("input[type=password").val(x),s.find("input[type=tel").val(x),s.find("textarea.mf-input").val(x),s.find("input[type=url]").val(x)}}n.setState({formData:e})}};for(var s in r)i(s)};for(var a in t)o(a)})),n.storageData=JSON.parse(localStorage.getItem("metform-".concat(e.formId)))||{},(null===(t=n.storageData)||void 0===t?void 0:t.expireTime)<new Date&&(localStorage.removeItem("metform-".concat(e.formId)),n.storageData={}),n.state={formData:"true"===n.props.saveProgress?n.storageData:{},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:{},formId:e.formId,answers:{},submitted:!1},n.formSubmitResponse,n.MfMathCalc=new Va,n.setValue=e.validation.setValue,n.trigger=e.validation.trigger,n.formRef=React.createRef(),n.formContainerRef=React.createRef(),n.mfRefs={},setTimeout((function(){if(!elementorFrontend.isEditMode()&&"true"===e.saveProgress){var t,r=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,o=n.state.formData,a=document.getElementsByClassName("mf-input-repeater")[0],i=null===(t=document.getElementsByClassName("mf-input-repeater-items attr-items")[0])||void 0===t?void 0:t.outerHTML;for(var s in o)if("string"==typeof o[s]&&r.test(o[s].split(",")[1])&&function(){var e,t=(null===(e=document.getElementsByName("".concat(s))[0])||void 0===e?void 0:e.parentElement.getElementsByTagName("canvas")[0]).getContext("2d"),n=new Image;n.onload=function(){t.drawImage(n,0,0)},n.src=o[s]}(),s.match(/\[[^\]]*\]/g)&&2===s.match(/\[[^\]]*\]/g).length){var l=s.match(/\d+/)[0];if(document.getElementsByName(s)[0]!==undefined)document.getElementsByName(s)[0].value=o[s];else{var c,u=(new DOMParser).parseFromString(i,"text/html");u.getElementsByClassName("mf-input-repeater-items")[0].dataset.index=l,u.getElementsByClassName("mf-input-repeater-items")[0].removeAttribute("style"),u.getElementsByClassName("mf-input attr-form-control")[0].name=s;var d=null===(c=u.getElementsByClassName("mf-input-repeater-items")[0])||void 0===c?void 0:c.outerHTML;a.insertAdjacentHTML("beforeend",d),document.getElementsByName(s)[0].value=o[s]}}}}),1e3),window["handleReCAPTCHA_"+n.state.recaptcha_uid]=n.handleReCAPTCHA;var r=e.templateEl.innerHTML,i=n.replaceWith([["‘","'"],["’","'"],["“",'"'],["”",'"'],["–","--"]],r);return n.jsx=new Function("parent","props","state","validation","register","setValue","html",i),e.templateEl.remove(),jQuery(document).on("click",".remove-btn",(function(e){var t=jQuery(e.target).parent().siblings(".mf-input-repeater-content").find(".mf-repeater-field")[0].name;n.state.formData[t]!==undefined&&(delete n.state.formData[t],n.setState({formData:n.state.formData}))})),n}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=Ha(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=Ba(n.value,2),i=a[0],s=a[1];r=r.replaceAll(i,s)}}catch(l){o.e(l)}finally{o.f()}return r}},{key:"stripePayment",value:function(e){var t,n=e.data.payment_data,r=this;if(n.keys&&""!==n.keys)return(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?e.redirect_url?window.location.href=e.redirect_url:"success"===e.status?r.setState({success:"Payment Successful!",errors:[],form_res:1}):r.setState({success:"",errors:[e.message],form_res:1}):alert(e.message)}))):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()})),{type:"error",redirect_url:"",message:"Payment Unsuccessful!"};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"))&&ei.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=this.state.formData,a=n.getElementsByTagName("input");for(var i in a)"email"===a[i].type&&""!==a[i].value&&this.setDefault(a[i]);if(r.forEach((function(e){var n=e.getAttribute("data-element_type"),r=e.getAttribute("data-widget_type"),o=null===r?n:r;e.dataset&&e.dataset.settings&&(e.dataset.settings=e.dataset.settings.replace(/"/g,'"'));var a=window.elementorFrontend.hooks;if(a?a.doAction("frontend/element_ready/"+o,jQuery(e)):jQuery(window).on("elementor/frontend/init",(function(){(a=window.elementorFrontend.hooks).doAction("frontend/element_ready/"+o,jQuery(e))})),e.className.search("elementor-widget-mf-")>0&&e.dataset.settings){var i=JSON.parse(e.dataset.settings),s=i.mf_input_name+"-"+e.getAttribute("data-id");t.props.widgets[s]={el:e,settings:i},i.mf_conditional_logic_form_enable&&t.props.conditionalRefs.push(s)}})),Object.keys(this.state.answers).length&&"quiz-form"===this.props.formType){var s=this.state.answers,l=this.state;o["right-answer"]=[],o["wrong-answer"]=[],o["quiz-marks"]=0,l.QuizInfo={totalQuestion:0,rightAnswer:[],wrongAnswer:[],marks:0},Object.keys(s).forEach((function(e){"string"==typeof s[e].answer&&""===s[e].answer||"object"===Wa(s[e].answer)&&0===s[e].answer.length?(o["right-answer"]=[].concat(za(t.state.formData["right-answer"]),[e]),o["quiz-marks"]=o["quiz-marks"]+parseFloat(s[e].correctPoint)):(o["wrong-answer"]=[].concat(za(t.state.formData["wrong-answer"]),[e]),o["quiz-marks"]=o["quiz-marks"]-parseFloat(s[e].incorrectPoint))})),o["total-question"]=Object.keys(s).length,l.QuizInfo.rightAnswer=o["right-answer"],l.QuizInfo.wrongAnswer=o["wrong-answer"],l.QuizInfo.marks=o["quiz-marks"],l.QuizInfo.totalQuestion=Object.keys(s).length}for(var c in 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}}),La(),Fa(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),jQuery(n).trigger("metform/after_form_load",o),o)this.setValue(c,o[c]);this.setParamValueState()}},{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))}}])&&qa(t.prototype,n),r&&qa(t,r),a}(),ni=function(e){var t=Ba(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,l=r.stopVerticalEffect,c=r.saveProgress,u=r.formType,d=r.quizSummery,f=Ba(e.find(".mf-template"),1)[0];if(f)ReactDOM.render(React.createElement((n=ti,function(e){var t=Ja(Ja({},ye()),{},{ErrorMessage:Ce});return React.createElement(n,Ja({validation:t},e))}),{formId:s,templateEl:f,action:o,wpNonce:a,formNonce:i,saveProgress:c,formType:u,quizSummery:d,widgets:{},conditionalRefs:[],stopVerticalEffect:l,widgetSettings:e.data("settings")||{},Select:Da,InputColor:ar,Flatpickr:Oe.Z,InputRange:sr(),ReactPhoneInput:cr(),SignaturePad:Ea(),moveTo:ei,ResponseDummyMarkup:ja,SubmitResponseMarkup:Ta,SummaryWidget:Ia,DateWidget:Ma}),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",ni)}))):ni(elementorFrontend.elements.$body)})).on("load",(function(){document.querySelectorAll(".mf-form-shortcode").forEach((function(e){ni(jQuery(e))}))}))}()}();
|
readme.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
=== Metform Elementor Contact Form Builder - Flexible and Design-Friendly Contact Form builder plugin for WordPress===
|
2 |
-
Contributors:
|
3 |
Tags: Form builder, contact form, Elementor contact form, contact form builder, elementor forms builder, drag and drop builder
|
4 |
Requires at least: 4.8
|
5 |
-
Tested up to: 6.
|
6 |
-
Stable tag: 3.0
|
7 |
Requires PHP: 7.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
@@ -299,7 +299,11 @@ Connect with Gmail, Slack, Mailchimp, and many more. It helps to post Trello car
|
|
299 |
**Migrations are coming soon in these forms. Contact Form 7, Caldera Forms, Ninja Forms, Gravity Forms, fluent forms, wp forms, Forminator & Formidable Form Builder, Everest Forms**
|
300 |
|
301 |
== Changelog ==
|
302 |
-
Version 3.
|
|
|
|
|
|
|
|
|
303 |
Fixed: Fixed php method not found.
|
304 |
|
305 |
Version 3.0.0 // 2022-10-26
|
1 |
=== Metform Elementor Contact Form Builder - Flexible and Design-Friendly Contact Form builder plugin for WordPress===
|
2 |
+
Contributors: xpeedstudio, ataurr, emranio
|
3 |
Tags: Form builder, contact form, Elementor contact form, contact form builder, elementor forms builder, drag and drop builder
|
4 |
Requires at least: 4.8
|
5 |
+
Tested up to: 6.1
|
6 |
+
Stable tag: 3.1.0
|
7 |
Requires PHP: 7.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
299 |
**Migrations are coming soon in these forms. Contact Form 7, Caldera Forms, Ninja Forms, Gravity Forms, fluent forms, wp forms, Forminator & Formidable Form Builder, Everest Forms**
|
300 |
|
301 |
== Changelog ==
|
302 |
+
Version 3.1.0 // 2022-11-17
|
303 |
+
Tweaked: CSS and JS.
|
304 |
+
Compatibility: Wordpress version 6.1
|
305 |
+
|
306 |
+
Version 3.0.1 // 2022-10-27
|
307 |
Fixed: Fixed php method not found.
|
308 |
|
309 |
Version 3.0.0 // 2022-10-26
|
utils/pro-awareness/pro-awareness.php
CHANGED
@@ -30,7 +30,7 @@ if(!class_exists('\Wpmet\Libs\Pro_Awareness')) :
|
|
30 |
private $products = [];
|
31 |
|
32 |
|
33 |
-
protected $script_version = '1.0
|
34 |
|
35 |
/**
|
36 |
* Get version of this script
|
30 |
private $products = [];
|
31 |
|
32 |
|
33 |
+
protected $script_version = '1.2.0';
|
34 |
|
35 |
/**
|
36 |
* Get version of this script
|