Version Description
- February, 27, 2020 =
- Important security release.
Download this release
Release Info
Developer | fmixell |
Plugin | Easy Forms for MailChimp |
Version | 6.6.3 |
Comparing to | |
See all releases |
Code changes from version 6.6.2 to 6.6.3
- .scrutinizer.yml +0 -115
- .travis.yml +0 -65
- admin/class-yikes-inc-easy-mailchimp-extender-admin.php +3 -216
- blocks/components/api.js +0 -51
- blocks/components/class.MailChimpForms.js +0 -871
- blocks/components/constants.js +0 -390
- blocks/components/enable-submit-button-editing.js +0 -17
- blocks/components/slugify.js +0 -19
- blocks/easy-forms-block/dev-easy-forms-block.js +0 -219
- blocks/easy-forms-block/easy-forms-block.js +0 -4718
- blocks/easy-forms-block/easy-forms-block.js.map +0 -1
- blocks/easy-forms-block/easy-forms-block.scss +0 -11
- blocks/index.js +0 -1
- composer.json +0 -32
- composer.lock +0 -2060
- includes/images/{Mailchimp_Assets → MailChimp_Assets}/Freddie_60px.png +0 -0
- includes/images/{Mailchimp_Assets → MailChimp_Assets}/Freddie_original.png +0 -0
- includes/images/{Mailchimp_Assets → MailChimp_Assets}/Freddie_wink_icon.png +0 -0
- includes/images/{Mailchimp_Assets → MailChimp_Assets}/mailchimp-logo.png +0 -0
- includes/images/{Mailchimp_Assets → MailChimp_Assets}/yikes-mailchimp-welcome-logo.png +0 -0
- readme.md +0 -262
- readme.txt +5 -2
- yikes-inc-easy-mailchimp-extender.php +2 -2
.scrutinizer.yml
DELETED
@@ -1,115 +0,0 @@
|
|
1 |
-
tools:
|
2 |
-
php_sim: true
|
3 |
-
php_pdepend: true
|
4 |
-
php_analyzer: true
|
5 |
-
php_code_sniffer:
|
6 |
-
config:
|
7 |
-
standard: "WordPress" # Other Values: PSR2, PEAR, Zend, WordPress, Drupal, TYPO3CMS
|
8 |
-
external_code_coverage:
|
9 |
-
timeout: 900 # Timeout in seconds (15 mins for slow/throttled reports).
|
10 |
-
|
11 |
-
filter:
|
12 |
-
excluded_paths: [tests/*, bin/*, includes/error_log/yikes-easy-mailchimp-error-log.php, includes/images/* ]
|
13 |
-
|
14 |
-
checks:
|
15 |
-
php:
|
16 |
-
code_rating: true
|
17 |
-
duplication: true
|
18 |
-
|
19 |
-
coding_style:
|
20 |
-
php:
|
21 |
-
indentation:
|
22 |
-
general:
|
23 |
-
use_tabs: true
|
24 |
-
size: 3
|
25 |
-
switch:
|
26 |
-
indent_case: true
|
27 |
-
spaces:
|
28 |
-
before_parentheses:
|
29 |
-
function_declaration: false
|
30 |
-
closure_definition: false
|
31 |
-
function_call: false
|
32 |
-
if: true
|
33 |
-
for: true
|
34 |
-
while: true
|
35 |
-
switch: true
|
36 |
-
catch: true
|
37 |
-
array_initializer: false
|
38 |
-
around_operators:
|
39 |
-
assignment: true
|
40 |
-
logical: true
|
41 |
-
equality: true
|
42 |
-
relational: true
|
43 |
-
bitwise: true
|
44 |
-
additive: true
|
45 |
-
multiplicative: true
|
46 |
-
shift: true
|
47 |
-
unary_additive: false
|
48 |
-
concatenation: true
|
49 |
-
negation: true
|
50 |
-
before_left_brace:
|
51 |
-
class: true
|
52 |
-
function: true
|
53 |
-
if: true
|
54 |
-
else: true
|
55 |
-
for: true
|
56 |
-
while: true
|
57 |
-
do: true
|
58 |
-
switch: true
|
59 |
-
try: true
|
60 |
-
catch: true
|
61 |
-
finally: true
|
62 |
-
before_keywords:
|
63 |
-
else: true
|
64 |
-
while: true
|
65 |
-
catch: true
|
66 |
-
finally: true
|
67 |
-
within:
|
68 |
-
brackets: true
|
69 |
-
array_initializer: true
|
70 |
-
grouping: true
|
71 |
-
function_call: true
|
72 |
-
function_declaration: true
|
73 |
-
if: true
|
74 |
-
for: true
|
75 |
-
while: true
|
76 |
-
switch: true
|
77 |
-
catch: true
|
78 |
-
type_cast: false
|
79 |
-
ternary_operator:
|
80 |
-
before_condition: true
|
81 |
-
after_condition: true
|
82 |
-
before_alternative: true
|
83 |
-
after_alternative: true
|
84 |
-
in_short_version: true
|
85 |
-
other:
|
86 |
-
before_comma: false
|
87 |
-
after_comma: true
|
88 |
-
before_semicolon: false
|
89 |
-
after_semicolon: true
|
90 |
-
after_type_cast: true
|
91 |
-
braces:
|
92 |
-
classes_functions:
|
93 |
-
class: end-of-line
|
94 |
-
function: end-of-line
|
95 |
-
closure: end-of-line
|
96 |
-
if:
|
97 |
-
opening: end-of-line
|
98 |
-
always: true
|
99 |
-
else_on_new_line: false
|
100 |
-
for:
|
101 |
-
opening: end-of-line
|
102 |
-
always: true
|
103 |
-
while:
|
104 |
-
opening: end-of-line
|
105 |
-
always: true
|
106 |
-
do_while:
|
107 |
-
opening: end-of-line
|
108 |
-
always: true
|
109 |
-
while_on_new_line: false
|
110 |
-
switch:
|
111 |
-
opening: end-of-line
|
112 |
-
try:
|
113 |
-
opening: end-of-line
|
114 |
-
catch_on_new_line: false
|
115 |
-
finally_on_new_line: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.travis.yml
DELETED
@@ -1,65 +0,0 @@
|
|
1 |
-
language: php
|
2 |
-
|
3 |
-
sudo: false
|
4 |
-
|
5 |
-
php:
|
6 |
-
- 5.4
|
7 |
-
- 5.5
|
8 |
-
- 5.6
|
9 |
-
- 7.0
|
10 |
-
# https://hhvm.com/blog/2018/09/12/end-of-php-support-future-of-hack.html
|
11 |
-
#- hhvm
|
12 |
-
|
13 |
-
env:
|
14 |
-
- WP_VERSION=latest WP_MULTISITE=0
|
15 |
-
- WP_VERSION=4.9 WP_MULTISITE=0
|
16 |
-
- WP_VERSION=4.6 WP_MULTISITE=0
|
17 |
-
- WP_VERSION=4.3 WP_MULTISITE=0
|
18 |
-
- WP_VERSION=4.0 WP_MULTISITE=0
|
19 |
-
|
20 |
-
matrix:
|
21 |
-
include:
|
22 |
-
- php: 5.3
|
23 |
-
dist: precise
|
24 |
-
env: WP_VERSION=4.9 WP_MULTISITE=0
|
25 |
-
- php: 5.4
|
26 |
-
env: WP_VERSION=latest WP_MULTISITE=1
|
27 |
-
exclude:
|
28 |
-
# https://github.com/WordPress/wordpress-develop/commit/ce8a915c06c42ef4e65e26ce39c20e5029e80293
|
29 |
-
- php: 7.0
|
30 |
-
env: WP_VERSION=4.6 WP_MULTISITE=0
|
31 |
-
- php: 7.0
|
32 |
-
env: WP_VERSION=4.3 WP_MULTISITE=0
|
33 |
-
- php: 7.0
|
34 |
-
env: WP_VERSION=4.0 WP_MULTISITE=0
|
35 |
-
|
36 |
-
before_script:
|
37 |
-
- |
|
38 |
-
phpunit --version
|
39 |
-
- |
|
40 |
-
bash bin/install-wp-tests.sh wordpress_test root '' localhost "$WP_VERSION"
|
41 |
-
|
42 |
-
script:
|
43 |
-
- |
|
44 |
-
if [[ "$TRAVIS_PHP_VERSION" == 5.5 && "$WP_VERSION" == latest && "$WP_MULTISITE" == 0 ]]; then
|
45 |
-
phpunit --coverage-clover=coverage.clover
|
46 |
-
else
|
47 |
-
phpunit
|
48 |
-
fi
|
49 |
-
|
50 |
-
after_script:
|
51 |
-
- |
|
52 |
-
if [[ "$TRAVIS_PHP_VERSION" == 5.5 && "$WP_VERSION" == latest && "$WP_MULTISITE" == 0 ]]; then
|
53 |
-
wget "https://scrutinizer-ci.com/ocular.phar"
|
54 |
-
fi
|
55 |
-
- |
|
56 |
-
if [[ "$TRAVIS_PHP_VERSION" == 5.5 && "$WP_VERSION" == latest && "$WP_MULTISITE" == 0 ]]; then
|
57 |
-
php ocular.phar code-coverage:upload --format=php-clover coverage.clover
|
58 |
-
fi
|
59 |
-
|
60 |
-
notifications:
|
61 |
-
email:
|
62 |
-
on_success: change
|
63 |
-
on_failure: change
|
64 |
-
slack:
|
65 |
-
secure: Vl+EtMXcpx8JowBmLNrWhAyvebu/VF7hXVFX5BFMl/6vA5GBE6hnw3vI/TlB6PAso4Mv6yMVY4xUzzBYWow3ClwaTCYNlCTxQEUon2H7FIqGV3Wrir28zxGcSAX7VHGf3w6acHP7LnPIQrIctRjKqcbYVbjR36ha9gJgUU/OUeI=
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/class-yikes-inc-easy-mailchimp-extender-admin.php
CHANGED
@@ -62,18 +62,9 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
62 |
*/
|
63 |
public function hooks() {
|
64 |
|
65 |
-
//
|
66 |
add_action( 'admin_menu', array( $this, 'register_admin_pages' ), 11 );
|
67 |
|
68 |
-
// check for old plugin options and migrate if exist.
|
69 |
-
add_action( 'admin_init', array( $this, 'check_for_old_yks_mc_options' ) );
|
70 |
-
|
71 |
-
// Ajax function to update new options...
|
72 |
-
add_action( 'wp_ajax_migrate_old_plugin_settings', array( $this, 'migrate_archived_options' ) );
|
73 |
-
|
74 |
-
// Ajax function to migrate our forms.
|
75 |
-
add_action( 'wp_ajax_migrate_prevoious_forms', array( $this, 'migrate_previously_setup_forms' ) );
|
76 |
-
|
77 |
// fix menu icon spacing.
|
78 |
add_action( 'admin_head', array( $this, 'fix_menu_icon_spacing' ) );
|
79 |
|
@@ -238,15 +229,6 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
238 |
|
239 |
}
|
240 |
|
241 |
-
/****************************************/
|
242 |
-
/** Dismiss Options Migrations **/
|
243 |
-
/****************************************/
|
244 |
-
if ( isset( $_REQUEST['dismiss_migration_nonce'] ) ) {
|
245 |
-
|
246 |
-
add_action( 'init', array( $this, 'yikes_easy_mailchimp_dismiss_option_migrate' ) );
|
247 |
-
|
248 |
-
}
|
249 |
-
|
250 |
/** Parse default value into usable dynamic data **/
|
251 |
add_filter( 'yikes-mailchimp-process-default-tag', array( $this, 'parse_mailchimp_default_tag' ) );
|
252 |
|
@@ -266,9 +248,6 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
266 |
// after upgrading f rom 6.0.3.7 users need to upgrade the database as well
|
267 |
add_action( 'plugins_loaded', array( $this, 'check_yikes_mc_table_version' ) );
|
268 |
|
269 |
-
// Run a check to see if we need to convert the custom DB table to options.
|
270 |
-
add_action( 'plugins_loaded', array( $this, 'check_db_version' ) );
|
271 |
-
|
272 |
}
|
273 |
|
274 |
/**
|
@@ -509,22 +488,6 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
509 |
}
|
510 |
}
|
511 |
|
512 |
-
/**
|
513 |
-
* Dismiss the migrate options notice (incase the user wants to do things manually)
|
514 |
-
*
|
515 |
-
* @since 6.0.0
|
516 |
-
**/
|
517 |
-
public function yikes_easy_mailchimp_dismiss_option_migrate() {
|
518 |
-
// delete the options and allow the user to manually update things.
|
519 |
-
|
520 |
-
// Verify the NONCE is valid.
|
521 |
-
check_admin_referer( 'yikes-mc-dismiss-migration', 'dismiss_migration_nonce' );
|
522 |
-
|
523 |
-
// re-direct the user back to the page.
|
524 |
-
wp_redirect( esc_url_raw( admin_url( 'index.php?yikes-mc-options-migration-dismissed="true"' ) ) );
|
525 |
-
die();
|
526 |
-
}
|
527 |
-
|
528 |
/**
|
529 |
* Error logging class
|
530 |
*
|
@@ -1241,81 +1204,9 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
1241 |
}
|
1242 |
|
1243 |
/**
|
1244 |
-
*
|
1245 |
-
*
|
1246 |
-
* the correct WordPress options API (old plugin stored options wierdly)
|
1247 |
-
*
|
1248 |
-
* @since 1.0.0
|
1249 |
-
* @param string $yikes_inc_easy_mailchimp_extender The name of this plugin.
|
1250 |
-
* @param string $version The version of this plugin.
|
1251 |
*/
|
1252 |
-
public function check_for_old_yks_mc_options() {
|
1253 |
-
$old_plugin_options = get_option( 'ykseme_storage' );
|
1254 |
-
// only perform options migrations if the site is not a multi-site setup
|
1255 |
-
if ( !is_multisite() ) {
|
1256 |
-
if ( apply_filters( 'yikes_mc_old_options_filter', $old_plugin_options ) ) {
|
1257 |
-
// display a notice to the user that they should 'migrate'
|
1258 |
-
// from the old plugin settings to the new ones
|
1259 |
-
add_action( 'admin_notices', array( $this , 'display_options_migrate_notice' ) , 11 );
|
1260 |
-
}
|
1261 |
-
}
|
1262 |
-
}
|
1263 |
-
|
1264 |
-
/**
|
1265 |
-
Admin Notices
|
1266 |
-
- Notifications displayed at the top of admin pages, back to the user
|
1267 |
-
**/
|
1268 |
-
|
1269 |
-
/**
|
1270 |
-
* Check for existing plugin options
|
1271 |
-
* if they exist, we need to migrate our options to
|
1272 |
-
* the correct WordPress options API (old plugin stored options wierdly)
|
1273 |
-
*
|
1274 |
-
* @since 1.0.0
|
1275 |
-
* @param string $yikes_inc_easy_mailchimp_extender The name of this plugin.
|
1276 |
-
* @param string $version The version of this plugin.
|
1277 |
-
*/
|
1278 |
-
public function display_options_migrate_notice() {
|
1279 |
-
|
1280 |
-
// Confirm that the necessary forms table in the database exists, else bail
|
1281 |
-
global $wpdb;
|
1282 |
-
if ( $wpdb->get_var("show tables like '" . $wpdb->prefix . "yikes_easy_mc_forms'") != $wpdb->prefix . "yikes_easy_mc_forms" ) {
|
1283 |
-
return;
|
1284 |
-
}
|
1285 |
-
|
1286 |
-
if ( isset( $_GET['yikes-mc-options-migration-dismissed'] ) && $_GET['yikes-mc-options-migration-dismissed'] == 'true' ) {
|
1287 |
-
// Delete the options, start a-new! (this will disable the migration notice altogether)
|
1288 |
-
delete_option( 'widget_yikes_mc_widget' );
|
1289 |
-
delete_option( 'api_validation' );
|
1290 |
-
delete_option( 'ykseme_storage' );
|
1291 |
-
delete_option( 'yikes-mc-lists' );
|
1292 |
-
?>
|
1293 |
-
<div class="yikes-easy-mc-updated migrate-options-notice">
|
1294 |
-
<p><?php printf( __( "The previously stored options for %s have been cleared from the database. You should update the plugin options on the <a href='%s' title='Settings Page'>settings page</a> before continuing. You should also update the shortcodes used to generate your forms, and any widgets you may have previously set-up.", 'yikes-inc-easy-mailchimp-extender' ), '<strong>Us Easy Forms for Mailchimp</strong>', admin_url( 'admin.php?page=yikes-inc-easy-mailchimp-settings' ) ); ?></p>
|
1295 |
-
</div>
|
1296 |
-
<?php
|
1297 |
-
} else {
|
1298 |
-
?>
|
1299 |
-
<div class="yikes-easy-mc-updated migrate-options-notice">
|
1300 |
-
<p><?php printf( __( "It looks like you're upgrading from a previous version of %s.", 'yikes-inc-easy-mailchimp-extender' ), '<strong>Us Easy Forms for Mailchimp</strong>' ); ?> <?php printf( __( "In the newest version of %s, the options data structure has changed. We've also moved the mailing lists into its own database table to allow for some higher level customization. Now you can easily create multiple forms and assign them to the same mailing list." , 'yikes-inc-easy-mailchimp-extender' ), '<strong>Us Easy Forms for Mailchimp</strong>' ); ?></p>
|
1301 |
-
<p><?php _e( "Before you continue, it's strongly recommended you the perform the migration to ensure the plugin continues to function properly.", 'yikes-inc-easy-mailchimp-extender' ); ?></p>
|
1302 |
-
<p><em><?php _e( "It's also strongly recommended that you take a backup of your database.", 'yikes-inc-easy-mailchimp-extender' ); ?></em></p>
|
1303 |
-
<section id="migration-buttons">
|
1304 |
-
<!-- migrate button -->
|
1305 |
-
<form>
|
1306 |
-
<input type="hidden" name="yikes-mc-update-option-structure" value="yikes-mc-update-option-structure" />
|
1307 |
-
<a href="<?php echo wp_nonce_url( esc_url_raw( admin_url( 'admin.php?page=yikes-inc-easy-mailchimp-update' ) ), 'yikes-mc-migrate-options', 'migrate_options_nonce' ); ?>" class="button-secondary"><?php _e( 'Perform Migration', 'yikes-inc-easy-mailchimp-extender' ); ?></a>
|
1308 |
-
</form>
|
1309 |
-
<!-- dismiss button -->
|
1310 |
-
<form>
|
1311 |
-
<a href="<?php echo wp_nonce_url( esc_url_raw( admin_url() ), 'yikes-mc-dismiss-migration', 'dismiss_migration_nonce' ); ?>" class="button-secondary"><?php _e( 'Dismiss Notice', 'yikes-inc-easy-mailchimp-extender' ); ?></a>
|
1312 |
-
</form>
|
1313 |
-
</section>
|
1314 |
-
|
1315 |
-
</div>
|
1316 |
-
<?php
|
1317 |
-
}
|
1318 |
-
}
|
1319 |
|
1320 |
/*
|
1321 |
* Search through multi dimensional array
|
@@ -1331,69 +1222,6 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
1331 |
return null;
|
1332 |
} // end
|
1333 |
|
1334 |
-
/* Ajax Migrate Options */
|
1335 |
-
function migrate_archived_options() {
|
1336 |
-
// all options prefixed with 'yikes-mc-'
|
1337 |
-
$option_name = 'yikes-mc-'.$_POST['option_name'];
|
1338 |
-
$option_value = $_POST['option_value'];
|
1339 |
-
if ( json_decode( $option_value ) ) {
|
1340 |
-
// decode our lists() array, and store it
|
1341 |
-
$opt_value = json_decode( $option_value, true );
|
1342 |
-
} else {
|
1343 |
-
$opt_value = $option_value;
|
1344 |
-
}
|
1345 |
-
update_option( $option_name, $opt_value );
|
1346 |
-
wp_die(); // this is required to terminate immediately and return a proper response
|
1347 |
-
exit;
|
1348 |
-
}
|
1349 |
-
|
1350 |
-
/* Ajax Migrate Forms */
|
1351 |
-
function migrate_previously_setup_forms() {
|
1352 |
-
$option_name = $_POST['option_name'];
|
1353 |
-
$done = $_POST['done_import'];
|
1354 |
-
// Create some starter forms for the user
|
1355 |
-
// based on previously imported lists (to our old version)
|
1356 |
-
if ( $option_name == 'yikes-mc-lists' ) {
|
1357 |
-
$option_value = $_POST['option_value'];
|
1358 |
-
$new_options = json_decode( stripslashes_deep( $option_value ) , true );
|
1359 |
-
|
1360 |
-
$list_id = $new_options['id'];
|
1361 |
-
$form_name = $new_options['name'];
|
1362 |
-
$fields = $new_options['fields']; // our fields array
|
1363 |
-
|
1364 |
-
$custom_styles = isset( $new_options['custom_styles'] ) ? $new_options['custom_styles']: '0'; // store as an array with all of our styles
|
1365 |
-
$custom_template = isset( $new_options['custom_template'] ) ? $new_options['custom_template'] : '0'; // store template data as an array ( active , template used )
|
1366 |
-
$redirect_user_on_submit = isset( $new_options['yks_mailchimp_redirect_'.$list_id] ) ? '1' : '0';
|
1367 |
-
$redirect_page = isset( $new_options['page_id_'.$list_id] ) ? $new_options['page_id_'.$list_id] : '';
|
1368 |
-
|
1369 |
-
/* Insert Forms Function */
|
1370 |
-
$this->form_interface->create_form( array(
|
1371 |
-
'list_id' => $list_id,
|
1372 |
-
'form_name' => $form_name,
|
1373 |
-
'form_description' => '',
|
1374 |
-
'fields' => $fields,
|
1375 |
-
'custom_styles' => $custom_styles,
|
1376 |
-
'custom_template' => $custom_template,
|
1377 |
-
'redirect_user_on_submit' => $redirect_user_on_submit,
|
1378 |
-
'redirect_page' => $redirect_page,
|
1379 |
-
'submission_settings' => '',
|
1380 |
-
'optin_settings' => '',
|
1381 |
-
'error_messages' => '',
|
1382 |
-
'custom_notifications' => '',
|
1383 |
-
'impressions' => '0',
|
1384 |
-
'submissions' => '0',
|
1385 |
-
'custom_fields' => '',
|
1386 |
-
) );
|
1387 |
-
}
|
1388 |
-
if ( $done == 'done' ) {
|
1389 |
-
wp_send_json( array( 'form_name' => $form_name, 'completed_import' => true ) );
|
1390 |
-
} else {
|
1391 |
-
wp_send_json( array( 'form_name' => $form_name, 'completed_import' => false ) );
|
1392 |
-
}
|
1393 |
-
wp_die();
|
1394 |
-
exit;
|
1395 |
-
}
|
1396 |
-
|
1397 |
/*
|
1398 |
* generate_options_pages_sidebar_menu();
|
1399 |
* Render our sidebar menu on all of the setings pages (general, form, checkbox, recaptcha, popup, debug etc. )
|
@@ -3083,47 +2911,6 @@ class Yikes_Inc_Easy_Mailchimp_Forms_Admin {
|
|
3083 |
delete_transient( 'yikes_eme_lists' );
|
3084 |
}
|
3085 |
|
3086 |
-
/**
|
3087 |
-
* Perform a DB version check to see if we need to migrate our forms.
|
3088 |
-
*
|
3089 |
-
* @author Jeremy Pry
|
3090 |
-
*/
|
3091 |
-
public function check_db_version() {
|
3092 |
-
$option = get_option( 'yikes_easy_mailchimp_extender_version', '0.0.0' );
|
3093 |
-
if ( version_compare( $option, '6.2.0', '<' ) ) {
|
3094 |
-
$this->convert_db_to_option();
|
3095 |
-
}
|
3096 |
-
|
3097 |
-
if ( version_compare( $option, YIKES_MC_VERSION, '<' ) ) {
|
3098 |
-
update_option( 'yikes_easy_mailchimp_extender_version', YIKES_MC_VERSION );
|
3099 |
-
}
|
3100 |
-
}
|
3101 |
-
|
3102 |
-
/**
|
3103 |
-
* Handle the conversion from custom table to WP Options.
|
3104 |
-
*
|
3105 |
-
* @author Jeremy Pry
|
3106 |
-
*/
|
3107 |
-
public function convert_db_to_option() {
|
3108 |
-
/** @var wpdb */
|
3109 |
-
global $wpdb;
|
3110 |
-
|
3111 |
-
$db_interface = new Yikes_Inc_Easy_Mailchimp_Extender_Forms( $wpdb );
|
3112 |
-
$option_interface = new Yikes_Inc_Easy_Mailchimp_Extender_Option_Forms();
|
3113 |
-
$form_option = array();
|
3114 |
-
$form_ids = $db_interface->get_form_ids();
|
3115 |
-
|
3116 |
-
if ( empty( $form_ids ) ) {
|
3117 |
-
return;
|
3118 |
-
}
|
3119 |
-
|
3120 |
-
foreach ( $form_ids as $form_id ) {
|
3121 |
-
$form_option[ $form_id ] = $db_interface->get_form( $form_id );
|
3122 |
-
}
|
3123 |
-
|
3124 |
-
$option_interface->import_forms( $form_option, true );
|
3125 |
-
}
|
3126 |
-
|
3127 |
/**
|
3128 |
* Register the Opt-in widget.
|
3129 |
*
|
62 |
*/
|
63 |
public function hooks() {
|
64 |
|
65 |
+
// Register admin pages.
|
66 |
add_action( 'admin_menu', array( $this, 'register_admin_pages' ), 11 );
|
67 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
// fix menu icon spacing.
|
69 |
add_action( 'admin_head', array( $this, 'fix_menu_icon_spacing' ) );
|
70 |
|
229 |
|
230 |
}
|
231 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
232 |
/** Parse default value into usable dynamic data **/
|
233 |
add_filter( 'yikes-mailchimp-process-default-tag', array( $this, 'parse_mailchimp_default_tag' ) );
|
234 |
|
248 |
// after upgrading f rom 6.0.3.7 users need to upgrade the database as well
|
249 |
add_action( 'plugins_loaded', array( $this, 'check_yikes_mc_table_version' ) );
|
250 |
|
|
|
|
|
|
|
251 |
}
|
252 |
|
253 |
/**
|
488 |
}
|
489 |
}
|
490 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
491 |
/**
|
492 |
* Error logging class
|
493 |
*
|
1204 |
}
|
1205 |
|
1206 |
/**
|
1207 |
+
* Admin Notices
|
1208 |
+
* - Notifications displayed at the top of admin pages, back to the user
|
|
|
|
|
|
|
|
|
|
|
1209 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1210 |
|
1211 |
/*
|
1212 |
* Search through multi dimensional array
|
1222 |
return null;
|
1223 |
} // end
|
1224 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1225 |
/*
|
1226 |
* generate_options_pages_sidebar_menu();
|
1227 |
* Render our sidebar menu on all of the setings pages (general, form, checkbox, recaptcha, popup, debug etc. )
|
2911 |
delete_transient( 'yikes_eme_lists' );
|
2912 |
}
|
2913 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2914 |
/**
|
2915 |
* Register the Opt-in widget.
|
2916 |
*
|
blocks/components/api.js
DELETED
@@ -1,51 +0,0 @@
|
|
1 |
-
export default class EasyFormsAPI {
|
2 |
-
|
3 |
-
constructor() {
|
4 |
-
this.ajaxurl = window.ajaxurl;
|
5 |
-
}
|
6 |
-
|
7 |
-
get_api_key_status() {
|
8 |
-
let data = {
|
9 |
-
action: 'yikes_get_api_key_status',
|
10 |
-
nonce: ez_forms_gb_data.get_api_key_status,
|
11 |
-
}
|
12 |
-
|
13 |
-
let status = $.post( this.ajaxurl, data );
|
14 |
-
|
15 |
-
return status;
|
16 |
-
}
|
17 |
-
|
18 |
-
get_recaptcha() {
|
19 |
-
let data = {
|
20 |
-
action: 'yikes_get_recaptcha',
|
21 |
-
nonce: ez_forms_gb_data.fetch_recaptcha_nonce
|
22 |
-
}
|
23 |
-
|
24 |
-
let recaptcha_data = $.post( this.ajaxurl, data );
|
25 |
-
|
26 |
-
return recaptcha_data;
|
27 |
-
}
|
28 |
-
|
29 |
-
get_forms() {
|
30 |
-
let data = {
|
31 |
-
action: 'yikes_get_forms',
|
32 |
-
nonce: ez_forms_gb_data.fetch_forms_nonce,
|
33 |
-
}
|
34 |
-
|
35 |
-
let forms = $.post( this.ajaxurl, data );
|
36 |
-
|
37 |
-
return forms;
|
38 |
-
}
|
39 |
-
|
40 |
-
get_form( form_id ) {
|
41 |
-
let data = {
|
42 |
-
action: 'yikes_get_form',
|
43 |
-
form_id: form_id,
|
44 |
-
nonce: ez_forms_gb_data.fetch_form_nonce
|
45 |
-
}
|
46 |
-
|
47 |
-
let form = $.post( this.ajaxurl, data );
|
48 |
-
|
49 |
-
return form;
|
50 |
-
}
|
51 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
blocks/components/class.MailChimpForms.js
DELETED
@@ -1,871 +0,0 @@
|
|
1 |
-
// Import dependencies
|
2 |
-
import slugify from './slugify.js';
|
3 |
-
import constants from './constants.js';
|
4 |
-
import EasyFormsAPI from './api.js';
|
5 |
-
|
6 |
-
// Get functions / blocks / components
|
7 |
-
const Recaptcha = require( 'react-recaptcha' );
|
8 |
-
const { __ } = wp.i18n;
|
9 |
-
const { registerBlockType } = wp.blocks;
|
10 |
-
const { RichText, InspectorControls, PlainText } = wp.editor;
|
11 |
-
const { Spinner, TextControl, PanelBody, PanelRow, FormToggle, SelectControl } = wp.components;
|
12 |
-
const { Component } = wp.element;
|
13 |
-
|
14 |
-
export default class MailchimpForms extends Component {
|
15 |
-
constructor( props ) {
|
16 |
-
super( ...arguments );
|
17 |
-
this.state = {
|
18 |
-
api_key_status: 'valid',
|
19 |
-
forms : [],
|
20 |
-
recaptcha_data: {
|
21 |
-
data : {},
|
22 |
-
success: false
|
23 |
-
},
|
24 |
-
'forms_loaded': false
|
25 |
-
}
|
26 |
-
|
27 |
-
this.api = new EasyFormsAPI();
|
28 |
-
|
29 |
-
this.address_fields = {
|
30 |
-
'addr1' : 'Address 1',
|
31 |
-
'addr2' : 'Address 2',
|
32 |
-
'city' : 'City',
|
33 |
-
'state' : 'State',
|
34 |
-
'zip' : 'Zip',
|
35 |
-
'country': 'Country'
|
36 |
-
}
|
37 |
-
}
|
38 |
-
|
39 |
-
/**
|
40 |
-
* Run our API calls after the component has mounted. You can't use setState before a component is mounted.
|
41 |
-
*/
|
42 |
-
componentDidMount() {
|
43 |
-
this.api.get_api_key_status().then( status => {
|
44 |
-
this.setState( { api_key_status: status.data } );
|
45 |
-
});
|
46 |
-
|
47 |
-
this.api.get_forms().then( forms => {
|
48 |
-
this.setState( { forms: forms.data, forms_loaded: true } );
|
49 |
-
});
|
50 |
-
|
51 |
-
this.api.get_recaptcha().then( recaptcha_data => {
|
52 |
-
this.setState( { recaptcha_data: recaptcha_data } );
|
53 |
-
this.props.toggleRecaptchaAbstract( this.state.recaptcha_data.success );
|
54 |
-
});
|
55 |
-
}
|
56 |
-
|
57 |
-
handleFormFieldChanges( event ) {
|
58 |
-
// console.log( event );
|
59 |
-
|
60 |
-
// console.log( value );
|
61 |
-
// console.log( this );
|
62 |
-
// console.log( typeof this.setState );
|
63 |
-
|
64 |
-
// const target = event.target;
|
65 |
-
// const value = target.type === 'checkbox' ? target.checked : target.value;
|
66 |
-
// const name = target.name;
|
67 |
-
|
68 |
-
// return this.setState( { [name]: value } );
|
69 |
-
}
|
70 |
-
|
71 |
-
inspector_controls() {
|
72 |
-
|
73 |
-
const inline = (
|
74 |
-
<PanelRow>
|
75 |
-
<label
|
76 |
-
htmlFor="inline-form-toggle"
|
77 |
-
className="blocks-base-control__label"
|
78 |
-
>
|
79 |
-
{ __( 'Inline' ) }
|
80 |
-
</label>
|
81 |
-
<FormToggle
|
82 |
-
id="inline-form-toggle"
|
83 |
-
label={ __( 'Inline' ) }
|
84 |
-
checked={ !! this.props.inline }
|
85 |
-
onChange={ this.props.toggleInline }
|
86 |
-
/>
|
87 |
-
</PanelRow>
|
88 |
-
)
|
89 |
-
|
90 |
-
const show_form_title = (
|
91 |
-
<PanelRow>
|
92 |
-
<label
|
93 |
-
htmlFor="show-title-form-toggle"
|
94 |
-
className="blocks-base-control__label"
|
95 |
-
>
|
96 |
-
{ __( 'Show Form Title' ) }
|
97 |
-
</label>
|
98 |
-
<FormToggle
|
99 |
-
id="show-title-form-toggle"
|
100 |
-
label={ __( 'Show Form Title' ) }
|
101 |
-
checked={ !! this.props.showTitle }
|
102 |
-
onChange={ this.props.toggleShowTitle }
|
103 |
-
/>
|
104 |
-
</PanelRow>
|
105 |
-
)
|
106 |
-
|
107 |
-
const show_form_description = (
|
108 |
-
<PanelRow>
|
109 |
-
<label
|
110 |
-
htmlFor="show-description-form-toggle"
|
111 |
-
className="blocks-base-control__label"
|
112 |
-
>
|
113 |
-
{ __( 'Show Form Description' ) }
|
114 |
-
</label>
|
115 |
-
<FormToggle
|
116 |
-
id="show-description-form-toggle"
|
117 |
-
label={ __( 'Show Form Description' ) }
|
118 |
-
checked={ !! this.props.showDescription }
|
119 |
-
onChange={ this.props.toggleShowDescription }
|
120 |
-
/>
|
121 |
-
</PanelRow>
|
122 |
-
)
|
123 |
-
|
124 |
-
const is_ajax = (
|
125 |
-
<PanelRow>
|
126 |
-
<label
|
127 |
-
htmlFor="is-ajax-form-toggle"
|
128 |
-
className="blocks-base-control__label"
|
129 |
-
>
|
130 |
-
{ __( 'AJAX Submissions' ) }
|
131 |
-
</label>
|
132 |
-
<FormToggle
|
133 |
-
id="is-ajax-form-toggle"
|
134 |
-
label={ __( 'AJAX' ) }
|
135 |
-
checked={ !! this.props.isAjax }
|
136 |
-
onChange={ this.props.toggleIsAjax }
|
137 |
-
/>
|
138 |
-
</PanelRow>
|
139 |
-
)
|
140 |
-
|
141 |
-
const recaptcha = (
|
142 |
-
<PanelRow>
|
143 |
-
<label
|
144 |
-
htmlFor="recaptcha-form-toggle"
|
145 |
-
className="blocks-base-control__label"
|
146 |
-
>
|
147 |
-
{ __( 'reCAPTCHA' ) }
|
148 |
-
</label>
|
149 |
-
<FormToggle
|
150 |
-
id="recaptcha-form-toggle"
|
151 |
-
label={ __( 'reCAPTCHA' ) }
|
152 |
-
checked={ !! this.props.recaptcha }
|
153 |
-
onChange={ this.props.toggleRecaptcha }
|
154 |
-
/>
|
155 |
-
</PanelRow>
|
156 |
-
)
|
157 |
-
|
158 |
-
const recaptcha_type = !! this.props.recaptcha ?
|
159 |
-
(
|
160 |
-
<PanelRow>
|
161 |
-
<label
|
162 |
-
htmlFor="recaptcha-type-form-toggle"
|
163 |
-
className="blocks-base-control__label"
|
164 |
-
>
|
165 |
-
{ __( 'reCAPTCHA Type' ) }
|
166 |
-
</label>
|
167 |
-
<SelectControl
|
168 |
-
value={ this.props.recaptchaType }
|
169 |
-
options={ [ { value: 'image', label: 'Image' }, { value: 'audio', 'label': 'Audio' } ] }
|
170 |
-
onChange={ this.props.toggleRecaptchaType }
|
171 |
-
/>
|
172 |
-
</PanelRow>
|
173 |
-
)
|
174 |
-
: '';
|
175 |
-
|
176 |
-
const recaptcha_theme = !! this.props.recaptcha ?
|
177 |
-
(
|
178 |
-
<PanelRow>
|
179 |
-
<label
|
180 |
-
htmlFor="recaptcha-theme-form-toggle"
|
181 |
-
className="blocks-base-control__label"
|
182 |
-
>
|
183 |
-
{ __( 'reCAPTCHA Theme' ) }
|
184 |
-
</label>
|
185 |
-
<SelectControl
|
186 |
-
value={ this.props.recaptchaTheme }
|
187 |
-
options={ [ { value: 'light', label: 'Light' }, {value: 'dark', 'label': 'Dark' } ] }
|
188 |
-
onChange={ this.props.toggleRecaptchaTheme }
|
189 |
-
/>
|
190 |
-
</PanelRow>
|
191 |
-
)
|
192 |
-
: '';
|
193 |
-
|
194 |
-
const recaptcha_lang = !! this.props.recaptcha ?
|
195 |
-
(
|
196 |
-
<PanelRow>
|
197 |
-
<label
|
198 |
-
htmlFor="recaptcha-language-form-toggle"
|
199 |
-
className="blocks-base-control__label"
|
200 |
-
title={ this.state.recaptcha_data.data ? 'The default language for your locale is ' + constants.locales[ this.state.recaptcha_data.data.locale ] : '' }
|
201 |
-
>
|
202 |
-
{ __( 'reCAPTCHA Language' ) }
|
203 |
-
</label>
|
204 |
-
<SelectControl
|
205 |
-
id="recaptcha-language-form-toggle"
|
206 |
-
value={ this.props.recaptchaLang.length > 0 ? this.props.recaptchaLang : ( this.state.recaptcha_data.data ? this.state.recaptcha_data.data.locale : '' ) }
|
207 |
-
onChange={ this.props.toggleRecaptchaLang }
|
208 |
-
title={ this.state.recaptcha_data.data ? 'The default language for your locale is ' + constants.locales[ this.state.recaptcha_data.data.locale ] : '' }
|
209 |
-
options={ Object.keys( constants.locales ).map( ( key ) => { return { value: key, label: constants.locales[key] } }) }
|
210 |
-
/>
|
211 |
-
</PanelRow>
|
212 |
-
)
|
213 |
-
: '';
|
214 |
-
|
215 |
-
const recaptcha_size = !! this.props.recaptcha ?
|
216 |
-
(
|
217 |
-
<PanelRow>
|
218 |
-
<label
|
219 |
-
htmlFor="recaptcha-size-form-toggle"
|
220 |
-
className="blocks-base-control__label"
|
221 |
-
>
|
222 |
-
{ __( 'reCAPTCHA Size' ) }
|
223 |
-
</label>
|
224 |
-
<SelectControl
|
225 |
-
id="recaptcha-size-form-toggle"
|
226 |
-
value={ this.props.recaptchaSize }
|
227 |
-
onChange={ this.props.toggleRecaptchaSize }
|
228 |
-
options={ [ { value: 'normal', label: 'Normal' }, { value: 'compact', label: 'Compact' } ] }
|
229 |
-
/>
|
230 |
-
</PanelRow>
|
231 |
-
)
|
232 |
-
: '';
|
233 |
-
|
234 |
-
const recaptcha_verify_callback = !! this.props.recaptcha ?
|
235 |
-
(
|
236 |
-
<TextControl
|
237 |
-
id="recaptcha-verify-callback-form-toggle"
|
238 |
-
label={ __( 'reCAPTCHA Verify Callback' ) }
|
239 |
-
value={ this.props.recaptchaVerifyCallback }
|
240 |
-
onChange={ this.props.toggleRecaptchaVerifyCallback }
|
241 |
-
/>
|
242 |
-
)
|
243 |
-
: '';
|
244 |
-
|
245 |
-
const recaptcha_expired_callback = !! this.props.recaptcha ?
|
246 |
-
(
|
247 |
-
<TextControl
|
248 |
-
id="recaptcha-expired-callback-form-toggle"
|
249 |
-
label={ __( 'reCAPTCHA Expired Callback' ) }
|
250 |
-
value={ this.props.recaptchaExpiredCallback }
|
251 |
-
onChange={ this.props.toggleRecaptchaExpiredCallback }
|
252 |
-
/>
|
253 |
-
)
|
254 |
-
: '';
|
255 |
-
|
256 |
-
const inspector_controls =
|
257 |
-
<InspectorControls key="easy-forms-inspector">
|
258 |
-
|
259 |
-
<PanelBody title={ __( 'Settings' ) } >
|
260 |
-
{inline}
|
261 |
-
{show_form_title}
|
262 |
-
{show_form_description}
|
263 |
-
{is_ajax}
|
264 |
-
{recaptcha}
|
265 |
-
{recaptcha_type}
|
266 |
-
{recaptcha_theme}
|
267 |
-
{recaptcha_lang}
|
268 |
-
{recaptcha_size}
|
269 |
-
{recaptcha_verify_callback}
|
270 |
-
{recaptcha_expired_callback}
|
271 |
-
</PanelBody>
|
272 |
-
|
273 |
-
</InspectorControls>
|
274 |
-
|
275 |
-
return inspector_controls;
|
276 |
-
}
|
277 |
-
|
278 |
-
forms_dropdown() {
|
279 |
-
return this.state.forms.length > 0 ?
|
280 |
-
<select
|
281 |
-
value={ this.props.formID }
|
282 |
-
onChange={ this.props.onChangeForm }
|
283 |
-
className="yikes-mailchimp-forms-dropdown"
|
284 |
-
key="yikes-mailchimp-forms-dropdown"
|
285 |
-
>
|
286 |
-
<option key="select" value="">Select Mailchimp Form...</option>
|
287 |
-
{ this.state.forms.map( ( form ) => {
|
288 |
-
return <option key={ 'yikes-select-form-' + form.id } value={ form.id }>{ form.form_name }</option>
|
289 |
-
})}
|
290 |
-
</select>
|
291 |
-
: '';
|
292 |
-
}
|
293 |
-
|
294 |
-
form_title() {
|
295 |
-
return this.props.showTitle === true ?
|
296 |
-
( this.props.focus ?
|
297 |
-
<h3
|
298 |
-
className={ "yikes-mailchimp-form-title yikes-mailchimp-form-title-" + this.props.formID }
|
299 |
-
key="yikes-mailchimp-form-title-wrapper"
|
300 |
-
>
|
301 |
-
<PlainText
|
302 |
-
placeholder={ this.props.formTitle }
|
303 |
-
key="yikes-mailchimp-form-title-editable"
|
304 |
-
value={ this.props.formTitle }
|
305 |
-
onChange={ this.props.toggleFormTitle }
|
306 |
-
/>
|
307 |
-
</h3>
|
308 |
-
:
|
309 |
-
<h3 className={ "yikes-mailchimp-form-title yikes-mailchimp-form-title-" + this.props.formID } key="yikes-mailchimp-form-title">
|
310 |
-
{ this.props.formTitle }
|
311 |
-
</h3>
|
312 |
-
) : '';
|
313 |
-
}
|
314 |
-
|
315 |
-
form_description() {
|
316 |
-
return this.props.showDescription === true ?
|
317 |
-
<section className={ "yikes-mailchimp-form-description yikes-mailchimp-form-description-" + this.props.formID } key="yikes-mailchimp-form-description">
|
318 |
-
<PlainText
|
319 |
-
className="mailchimpDescription"
|
320 |
-
placeholder={ __( 'Enter your form\'s description here.' ) /*( this.props.formData && this.props.formData.form_description && this.props.formData.form_description.length > 0 || this.props.descriptionValue && this.props.descriptionValue.length > 0 ) ? '' : __( 'Enter your form\'s description here.' )*/ }
|
321 |
-
value={ this.props.descriptionValue.length > 0 ? this.props.descriptionValue : ( this.props.formData && this.props.formData.form_description ? this.props.formData.form_description : '' ) }
|
322 |
-
onChange={ this.props.onChangeDescription }
|
323 |
-
key="mailchimpDescription"
|
324 |
-
/>
|
325 |
-
</section>
|
326 |
-
: '';
|
327 |
-
}
|
328 |
-
|
329 |
-
get_address_field( addr_field, field ) {
|
330 |
-
switch( addr_field ) {
|
331 |
-
|
332 |
-
case 'addr1':
|
333 |
-
case 'addr2':
|
334 |
-
case 'city':
|
335 |
-
case 'zip':
|
336 |
-
return (
|
337 |
-
<TextControl
|
338 |
-
id={ "yikes-easy-mc-form-" + this.props.formID + "-" + field.merge + '-' + addr_field }
|
339 |
-
onChange={ this.handleFormFieldChanges }
|
340 |
-
type="text"
|
341 |
-
name={ field.merge + '[' + addr_field + ']' }
|
342 |
-
className={ 'yikes-easy-mc-' + field.type + ' ' + field['additional-classes'] }
|
343 |
-
key= { 'yikes-mailchimp-field-' + field.merge + '-' + addr_field }
|
344 |
-
required={ field.merge === 'EMAIL' || field.require === '1' ? 'required' : false }
|
345 |
-
placeholder={ field.placeholder === '1' ? this.address_fields[ addr_field ] : '' }
|
346 |
-
/>
|
347 |
-
)
|
348 |
-
break;
|
349 |
-
|
350 |
-
case 'state':
|
351 |
-
return (
|
352 |
-
<select
|
353 |
-
id={ "yikes-easy-mc-form-" + this.props.formID + "-" + field.merge + '-' + addr_field }
|
354 |
-
name={ field.merge + '[' + addr_field + ']' }
|
355 |
-
className={ 'yikes-easy-mc-' + field.type + ' ' + field['additional-classes'] }
|
356 |
-
onChange={ this.handleFormFieldChanges }
|
357 |
-
key= { 'yikes-mailchimp-field-' + field.merge + '-' + addr_field }
|
358 |
-
value=''
|
359 |
-
required={ field.merge === 'EMAIL' || field.require === '1' ? 'required' : false }
|
360 |
-
>
|
361 |
-
{ Object.keys( constants.states ).map( ( key ) => {
|
362 |
-
var choice = constants.states[ key ];
|
363 |
-
return <option key={ 'state-' + key } value={ key }>{ choice }</option>
|
364 |
-
})}
|
365 |
-
|
366 |
-
</select>
|
367 |
-
)
|
368 |
-
break;
|
369 |
-
|
370 |
-
case 'country':
|
371 |
-
return (
|
372 |
-
<select
|
373 |
-
id={ "yikes-easy-mc-form-" + this.props.formID + "-" + field.merge + '-' + addr_field }
|
374 |
-
name={ field.merge + '[' + addr_field + ']' }
|
375 |
-
className={ 'yikes-easy-mc-' + field.type + ' ' + field['additional-classes'] }
|
376 |
-
onChange={ this.handleFormFieldChanges }
|
377 |
-
key= { 'yikes-mailchimp-field-' + field.merge + '-' + addr_field }
|
378 |
-
value=''
|
379 |
-
required={ field.merge === 'EMAIL' || field.require === '1' ? 'required' : false }
|
380 |
-
>
|
381 |
-
{ Object.keys( constants.countries ).map( ( key ) => {
|
382 |
-
var choice = constants.countries[ key ];
|
383 |
-
return <option key={ 'country-' + key } value={ key }>{ choice }</option>
|
384 |
-
})}
|
385 |
-
|
386 |
-
</select>
|
387 |
-
)
|
388 |
-
break;
|
389 |
-
}
|
390 |
-
}
|
391 |
-
|
392 |
-
get_dropdown_field( field ) {
|
393 |
-
return (
|
394 |
-
<select
|
395 |
-
id={ "yikes-easy-mc-form-" + this.props.formID + "-" + field.merge }
|
396 |
-
name={ field.merge }
|
397 |
-
className={ 'yikes-easy-mc-' + field.type + ' ' + field['additional-classes'] }
|
398 |
-
onChange={ this.handleFormFieldChanges }
|
399 |
-
key= { 'yikes-mailchimp-field-' + field.merge }
|
400 |
-
value={ JSON.parse( field.choices )[ field.default_choice ] }
|
401 |
-
required={ field.merge === 'EMAIL' || field.require === '1' ? 'required' : false }
|
402 |
-
>
|
403 |
-
{ Object.keys( JSON.parse( field.choices ) ).map( ( key ) => {
|
404 |
-
var choice = JSON.parse( field.choices )[ key ];
|
405 |
-
return <option key={ slugify( choice ) } value={ choice }>{ choice }</option>
|
406 |
-
})}
|
407 |
-
</select>
|
408 |
-
)
|
409 |
-
}
|
410 |
-
|
411 |
-
get_radio_field( field ) {
|
412 |
-
var ii = 0;
|
413 |
-
|
414 |
-
return (
|
415 |
-
JSON.parse( field.choices ).map( ( key ) => {
|
416 |
-
ii++;
|
417 |
-
return (
|
418 |
-
<label
|
419 |
-
htmlFor={ field.merge + '-' + ii }
|
420 |
-
className="yikes-easy-mc-checkbox-label"
|
421 |
-
key={ field.merge + '-label-radio-key-' + ii }
|
422 |
-
>
|
423 |
-
<input
|
424 |
-
type="radio"
|
425 |
-
name={ field.merge }
|
426 |
-
id={ field.merge + '-' + ii }
|
427 |
-
key={ field.merge + '-' + ii + '-input-key' }
|
428 |
-
value={ key }
|
429 |
-
onChange={ this.handleFormFieldChanges }
|
430 |
-
checked={ parseInt( field.default_choice ) === ( ii - 1 ) }
|
431 |
-
/>
|
432 |
-
<span key={ field.merge + '-span-radio-key-' + ii } className={ field.merge + '-label' }>{ key }</span>
|
433 |
-
</label>
|
434 |
-
)
|
435 |
-
})
|
436 |
-
)
|
437 |
-
}
|
438 |
-
|
439 |
-
get_url_field( field ) {
|
440 |
-
return (
|
441 |
-
<TextControl
|
442 |
-
id={ "yikes-easy-mc-form-" + this.props.formID + "-" + field.merge }
|
443 |
-
placeholder={ field.placeholder }
|
444 |
-
onChange={ this.handleFormFieldChanges }
|
445 |
-
type='url'
|
446 |
-
value={ field.default }
|
447 |
-
name={ field.merge }
|
448 |
-
className={ 'yikes-easy-mc-' + field.type + ' ' + field['additional-classes'] }
|
449 |
-
key= { 'yikes-mailchimp-field-' + field.merge }
|
450 |
-
required={ field.merge === 'EMAIL' || field.require === '1' ? 'required' : false }
|
451 |
-
title={ field.type === 'url' ? __( 'Please enter a valid URL to the website.' ) : __( 'Please enter a valid URL to the image.' ) }
|
452 |
-
/>
|
453 |
-
)
|
454 |
-
}
|
455 |
-
|
456 |
-
get_default_field( field ) {
|
457 |
-
|
458 |
-
var type = field.type === 'zip' || field.type === 'phone' ? 'text' : field.type;
|
459 |
-
|
460 |
-
return (
|
461 |
-
<TextControl
|
462 |
-
id={ "yikes-easy-mc-form-" + this.props.formID + "-" + field.merge }
|
463 |
-
placeholder={ field.placeholder }
|
464 |
-
onChange={ this.handleFormFieldChanges }
|
465 |
-
type={ type }
|
466 |
-
value={ field.default }
|
467 |
-
name={ field.merge }
|
468 |
-
className={ 'yikes-easy-mc-' + field.type + ' ' + field['additional-classes'] }
|
469 |
-
key= { 'yikes-mailchimp-field-' + field.merge }
|
470 |
-
required={ field.merge === 'EMAIL' || field.require === '1' ? 'required' : false }
|
471 |
-
/>
|
472 |
-
)
|
473 |
-
}
|
474 |
-
|
475 |
-
get_date_field( field ) {
|
476 |
-
return (
|
477 |
-
<TextControl
|
478 |
-
id={ "yikes-easy-mc-form-" + this.props.formID + "-" + field.merge }
|
479 |
-
placeholder={ field.placeholder }
|
480 |
-
onChange={ this.handleFormFieldChanges }
|
481 |
-
type='text'
|
482 |
-
value={ field.default }
|
483 |
-
name={ field.merge }
|
484 |
-
className={ 'yikes-easy-mc-' + field.type + ' ' + field['additional-classes'] }
|
485 |
-
key= { 'yikes-mailchimp-field-' + field.merge }
|
486 |
-
required={ field.merge === 'EMAIL' || field.require === '1' ? 'required' : false }
|
487 |
-
data-attr-type={ field.type }
|
488 |
-
data-date-format={ field.date_format.toLowerCase() }
|
489 |
-
/>
|
490 |
-
)
|
491 |
-
}
|
492 |
-
|
493 |
-
get_radio_interest_group( field ) {
|
494 |
-
var ii = -1;
|
495 |
-
var cn = "yikes-easy-mc-checkbox-label " + field['additional-classes'];
|
496 |
-
|
497 |
-
return (
|
498 |
-
Object.keys( JSON.parse( field.groups ) ).map( ( key ) => {
|
499 |
-
var choice = JSON.parse( field.groups )[ key ];
|
500 |
-
ii++;
|
501 |
-
return (
|
502 |
-
<label
|
503 |
-
htmlFor={ field.group_id + '-' + ii }
|
504 |
-
className={ { [cn]: true, 'field-no-label': field['hide-label'] === '1' } }
|
505 |
-
key={ field.group_id + '-' + ii + '-label-key' }
|
506 |
-
>
|
507 |
-
<input
|
508 |
-
type="radio"
|
509 |
-
name={"group-" + field.group_id + '[]' }
|
510 |
-
id={ field.group_id + '-' + ii }
|
511 |
-
key={ field.group_id + '-' + ii + '-input-key' }
|
512 |
-
value={ key }
|
513 |
-
onChange={ this.handleFormFieldChanges }
|
514 |
-
checked={ key === field.default_choice }
|
515 |
-
className={ { 'yikes-interest-group-required': field.require === '1' } }
|
516 |
-
/>
|
517 |
-
{ choice }
|
518 |
-
</label>
|
519 |
-
)
|
520 |
-
})
|
521 |
-
)
|
522 |
-
}
|
523 |
-
|
524 |
-
get_hidden_interest_group( field ) {
|
525 |
-
var ii = -1;
|
526 |
-
|
527 |
-
return (
|
528 |
-
Object.keys( JSON.parse( field.groups ) ).map( ( key ) => {
|
529 |
-
var choice = JSON.parse( field.groups )[ key ];
|
530 |
-
ii++;
|
531 |
-
return (
|
532 |
-
<label
|
533 |
-
htmlFor={ field.group_id + '-' + ii }
|
534 |
-
className={ 'yikes-easy-mc-checkbox-label ' + field['additional-classes'] }
|
535 |
-
key={ field.group_id + '-' + ii + '-label-key' }
|
536 |
-
>
|
537 |
-
<input
|
538 |
-
type="checkbox"
|
539 |
-
name={"group-" + field.group_id + '[]' }
|
540 |
-
id={ field.group_id + '-' + ii }
|
541 |
-
key={ field.group_id + '-' + ii + '-input-key' }
|
542 |
-
value={ key }
|
543 |
-
onChange={ this.handleFormFieldChanges }
|
544 |
-
checked={ field.default_choice && field.default_choice.indexOf( key ) !== -1 }
|
545 |
-
/>
|
546 |
-
{ choice }
|
547 |
-
</label>
|
548 |
-
)
|
549 |
-
})
|
550 |
-
)
|
551 |
-
}
|
552 |
-
|
553 |
-
get_checkboxes_interest_group( field ) {
|
554 |
-
var ii = -1;
|
555 |
-
var cn = 'yikes-easy-mc-checkbox-label ' + field['additional-classes'];
|
556 |
-
|
557 |
-
return (
|
558 |
-
Object.keys( JSON.parse( field.groups ) ).map( ( key ) => {
|
559 |
-
var choice = JSON.parse( field.groups )[ key ];
|
560 |
-
ii++;
|
561 |
-
return (
|
562 |
-
<label
|
563 |
-
htmlFor={ field.group_id + '-' + ii }
|
564 |
-
className={ { [cn]: true, 'field-no-label': field['hide-label'] === '1' } }
|
565 |
-
key={ field.group_id + '-' + ii + '-label-key' }
|
566 |
-
>
|
567 |
-
<input
|
568 |
-
className={ { 'yikes-interest-group-required': field.require === '1' } }
|
569 |
-
type="checkbox"
|
570 |
-
name={ 'group-' + field.group_id + '[]' }
|
571 |
-
id={ field.group_id + '-' + ii }
|
572 |
-
key={ field.group_id + '-' + ii + '-input-key' }
|
573 |
-
value={ key }
|
574 |
-
onChange={ this.handleFormFieldChanges }
|
575 |
-
checked={ typeof field.default_choice !== 'undefined' && field.default_choice.indexOf( key ) !== -1 }
|
576 |
-
required={ field.require === '1' ? 'required' : false }
|
577 |
-
/>
|
578 |
-
{ choice }
|
579 |
-
</label>
|
580 |
-
)
|
581 |
-
})
|
582 |
-
)
|
583 |
-
}
|
584 |
-
|
585 |
-
get_dropdown_interest_group( field ) {
|
586 |
-
var ii = -1;
|
587 |
-
|
588 |
-
return (
|
589 |
-
<select
|
590 |
-
id={ "yikes-easy-mc-form-" + this.props.formID + "-" + field.group_id }
|
591 |
-
name={ "group-" + field.group_id }
|
592 |
-
className={ "yikes-easy-mc-dropdown " + field['additional-classes'] }
|
593 |
-
value={ field.default_choice }
|
594 |
-
onChange={ this.handleFormFieldChanges }
|
595 |
-
required={ field.require === '1' ? 'required' : false }
|
596 |
-
>
|
597 |
-
|
598 |
-
{ Object.keys( JSON.parse( field.groups ) ).map( ( key ) => {
|
599 |
-
var choice = JSON.parse( field.groups )[ key ];
|
600 |
-
ii++;
|
601 |
-
return (
|
602 |
-
<option key={ field.group_id + '-' + ii + '-input-key' } value={ key }>{ choice }</option>
|
603 |
-
)
|
604 |
-
})}
|
605 |
-
</select>
|
606 |
-
)
|
607 |
-
}
|
608 |
-
|
609 |
-
form_fields() {
|
610 |
-
|
611 |
-
return this.props.formData && this.props.formData.fields ?
|
612 |
-
Object.keys( this.props.formData.fields ).map( ( key ) => {
|
613 |
-
|
614 |
-
var field = this.props.formData.fields[ key ];
|
615 |
-
|
616 |
-
// Form Fields (aka merge variables)
|
617 |
-
if ( typeof field.merge !== 'undefined' ) {
|
618 |
-
|
619 |
-
var desc = field.description.length > 0 ?
|
620 |
-
<p className="form-field-description" id={ "form-field-description-" + field.merge } key={ "form-field-description-" + field.merge }>{ field.description }</p>
|
621 |
-
: '';
|
622 |
-
|
623 |
-
var label = field['hide-label'] !== '1' ? <span className={ field.merge + '-label' } key={ field.merge + '-label-span-key' }>{ field.label }</span> : '';
|
624 |
-
|
625 |
-
var classes = {'yikes-mailchimp-field-required' : field.merge === 'EMAIL' || field.require === '1' }
|
626 |
-
classes[ field.merge + '-label'] = true;
|
627 |
-
|
628 |
-
if ( field.type === 'address' ) {
|
629 |
-
|
630 |
-
return ([
|
631 |
-
field.description_above === '1' && field.description.length > 0 && desc,
|
632 |
-
Object.keys( this.address_fields ).map( ( addr_field ) => {
|
633 |
-
label = field['hide-label'] !== '1' ? <span className={ field.merge + '-label' } key={ field.merge + '-label-span-key-' + addr_field }>{ this.address_fields[ addr_field ] }</span> : '';
|
634 |
-
|
635 |
-
return (
|
636 |
-
<label
|
637 |
-
htmlFor={ "yikes-easy-mc-form-" + this.props.formID + "-" + field.merge + '-' + addr_field }
|
638 |
-
className={ classes }
|
639 |
-
key={ field.merge + '-label-key-' + addr_field }
|
640 |
-
style={ field.hide === '1' ? { 'display': 'none' } : {} }
|
641 |
-
>
|
642 |
-
{ label }
|
643 |
-
{ this.get_address_field( addr_field, field ) }
|
644 |
-
</label>
|
645 |
-
)
|
646 |
-
}),
|
647 |
-
field.description_above !== '1' && field.description.length > 0 && desc
|
648 |
-
])
|
649 |
-
} else {
|
650 |
-
return (
|
651 |
-
<label
|
652 |
-
htmlFor={ "yikes-easy-mc-form-" + this.props.formID + "-" + field.merge }
|
653 |
-
className={ classes }
|
654 |
-
key={ field.merge + '-label-key' }
|
655 |
-
style={ field.hide === '1' ? { 'display': 'none' } : {} }
|
656 |
-
>
|
657 |
-
{ label }
|
658 |
-
|
659 |
-
{ field.description_above === '1' && field.description.length > 0 && desc }
|
660 |
-
|
661 |
-
{
|
662 |
-
( field.type === 'dropdown' ? this.get_dropdown_field( field ) :
|
663 |
-
( field.type === 'radio' ? this.get_radio_field( field ) :
|
664 |
-
( field.type === 'url' || field.type === 'imageurl' ? this.get_url_field( field ) :
|
665 |
-
( field.type === 'date' || field.type === 'birthday' ? this.get_date_field( field ) :
|
666 |
-
this.get_default_field( field ) ) ) ) )
|
667 |
-
}
|
668 |
-
|
669 |
-
{ field.description_above !== '1' && field.description.length > 0 && desc }
|
670 |
-
|
671 |
-
</label>
|
672 |
-
)
|
673 |
-
}
|
674 |
-
} else {
|
675 |
-
|
676 |
-
var desc = field.description.length > 0 ?
|
677 |
-
<p className="form-field-description" id={ "form-field-description-" + field.group_id } key={ "form-field-description-" + field.group_id }>{ field.description }</p>
|
678 |
-
: '';
|
679 |
-
|
680 |
-
var label = field['hide-label'] !== '1' ?
|
681 |
-
<span key={ field.group_id + "-label-span-key" } className={ field.group_id + "-label checkbox-parent-label" }>{ field.label }</span>
|
682 |
-
: '';
|
683 |
-
|
684 |
-
var classes = { 'yikes-mailchimp-field-required' : field.require === '1' }
|
685 |
-
classes[ field.group_id + '-label'] = true;
|
686 |
-
|
687 |
-
return (
|
688 |
-
<label
|
689 |
-
htmlFor={ field.group_id }
|
690 |
-
className= { classes }
|
691 |
-
key={ field.group_id + "-label-span-key" }
|
692 |
-
style={ field.type === 'hidden' || field.hide === '1' ? { 'display': 'none' } : {} }
|
693 |
-
>
|
694 |
-
|
695 |
-
{ label }
|
696 |
-
|
697 |
-
{ field.description_above === '1' && field.description.length > 0 && desc }
|
698 |
-
|
699 |
-
{
|
700 |
-
( field.type === 'radio' ? this.get_radio_interest_group( field ) :
|
701 |
-
( field.type === 'hidden' ? this.get_hidden_interest_group( field ) :
|
702 |
-
( field.type === 'checkboxes' ? this.get_checkboxes_interest_group( field ) :
|
703 |
-
( field.type === 'dropdown' ? this.get_dropdown_interest_group( field ) : '' ) ) ) )
|
704 |
-
}
|
705 |
-
|
706 |
-
{ field.description_above !== '1' && field.description.length > 0 && desc }
|
707 |
-
|
708 |
-
</label>
|
709 |
-
)
|
710 |
-
}
|
711 |
-
})
|
712 |
-
: '';
|
713 |
-
}
|
714 |
-
|
715 |
-
form_recaptcha() {
|
716 |
-
|
717 |
-
return this.state.recaptcha_data.success === true && this.state.recaptcha_data.data.site_key && this.props.recaptcha === true ?
|
718 |
-
<Recaptcha
|
719 |
-
sitekey={ this.state.recaptcha_data.data.site_key }
|
720 |
-
key={ 'easy-forms-recaptcha-1' }
|
721 |
-
elementID={ 'google-recaptcha-id-' + Math.random().toString(36).slice(-8) } // Need to use a unique ID for multiple reCAPTCHAs to work on the same page.
|
722 |
-
theme={ this.props.recaptchaTheme }
|
723 |
-
hl={ this.props.recaptchaLang.length > 0 ? this.props.recaptchaLang : this.state.recaptcha_data.data.locale }
|
724 |
-
type={ this.props.recaptchaType }
|
725 |
-
size={ this.props.recaptchaSize }
|
726 |
-
verifyCallback=''
|
727 |
-
expiredCallback=''
|
728 |
-
/>
|
729 |
-
: '';
|
730 |
-
}
|
731 |
-
|
732 |
-
submit_button() {
|
733 |
-
return this.props.formData && this.props.formData.fields ?
|
734 |
-
( this.props.focus && this.props.formData.form_settings['yikes-easy-mc-submit-button-type'] === 'text' ?
|
735 |
-
<button
|
736 |
-
type="submit"
|
737 |
-
key="mailchimpSubmitButton"
|
738 |
-
className={ "yikes-easy-mc-submit-button yikes-easy-mc-submit-button-" + this.props.formID + " btn btn-primary" + " " + this.props.formData.form_settings['yikes-easy-mc-submit-button-classes'] }
|
739 |
-
>
|
740 |
-
<PlainText
|
741 |
-
className="yikes-mailchimp-submit-button-span-text"
|
742 |
-
key="yikes-mailchimp-submit-button-span-text"
|
743 |
-
value={ this.props.submitButtonText ? this.props.submitButtonText : '' }
|
744 |
-
onChange={ this.props.toggleSubmitButtonText }
|
745 |
-
/>
|
746 |
-
</button>
|
747 |
-
:
|
748 |
-
( this.props.formData.form_settings['yikes-easy-mc-submit-button-type'] === 'text' ?
|
749 |
-
<button
|
750 |
-
type="submit"
|
751 |
-
key="mailchimpSubmitButton"
|
752 |
-
className={ "yikes-easy-mc-submit-button yikes-easy-mc-submit-button-" + this.props.formID + " btn btn-primary" + " " + this.props.formData.form_settings['yikes-easy-mc-submit-button-classes'] }
|
753 |
-
>
|
754 |
-
<span className="yikes-mailchimp-submit-button-span-text" key="yikes-mailchimp-submit-button-span-text">{ this.props.submitButtonText }</span>
|
755 |
-
</button>
|
756 |
-
:
|
757 |
-
<input
|
758 |
-
type="image"
|
759 |
-
alt={ this.props.submitButtonText }
|
760 |
-
src={ this.props.formData.form_settings['yikes-easy-mc-submit-button-image'] }
|
761 |
-
className={ "yikes-easy-mc-submit-button yikes-easy-mc-submit-button-image yikes-easy-mc-submit-button-" + this.props.formID + " btn btn-primary" + " " + this.props.formData.form_settings['yikes-easy-mc-submit-button-classes'] }
|
762 |
-
/>
|
763 |
-
)
|
764 |
-
)
|
765 |
-
: '';
|
766 |
-
}
|
767 |
-
|
768 |
-
get_form_section() {
|
769 |
-
return (
|
770 |
-
<section
|
771 |
-
id={ "yikes-mailchimp-container-" + this.props.formID }
|
772 |
-
className={ "yikes-mailchimp-container yikes-mailchimp-container-" + this.props.formID }
|
773 |
-
key="yikes-mailchimp-container-section"
|
774 |
-
>
|
775 |
-
{[
|
776 |
-
|
777 |
-
// Form title
|
778 |
-
[this.form_title()],
|
779 |
-
|
780 |
-
// Form Description
|
781 |
-
[this.form_description()],
|
782 |
-
|
783 |
-
// Get the form
|
784 |
-
[this.get_form()]
|
785 |
-
]}
|
786 |
-
</section>
|
787 |
-
);
|
788 |
-
}
|
789 |
-
|
790 |
-
get_form() {
|
791 |
-
return (
|
792 |
-
// Form Wrapper
|
793 |
-
<form
|
794 |
-
id={ slugify( this.props.formTitle ) + '-' + this.props.formID }
|
795 |
-
className={ "yikes-easy-mc-form yikes-easy-mc-form-" + this.props.formID + " " + this.props.formData.form_settings['yikes-easy-mc-form-class-names'] }
|
796 |
-
key="yikes-mailchimp-container-form"
|
797 |
-
>
|
798 |
-
{[
|
799 |
-
|
800 |
-
// Form fields
|
801 |
-
[this.form_fields()],
|
802 |
-
|
803 |
-
// Recaptcha
|
804 |
-
[this.form_recaptcha()],
|
805 |
-
|
806 |
-
// Submit button
|
807 |
-
[this.submit_button()]
|
808 |
-
]}
|
809 |
-
</form>
|
810 |
-
);
|
811 |
-
}
|
812 |
-
|
813 |
-
render() {
|
814 |
-
|
815 |
-
if ( this.state.forms.length > 0 && this.props.formData && Object.keys( this.props.formData ).length > 0 ) {
|
816 |
-
|
817 |
-
return (
|
818 |
-
|
819 |
-
<div className={ this.props.className }>
|
820 |
-
|
821 |
-
{// Show inspector controls when focused
|
822 |
-
this.props.focus && this.inspector_controls()}
|
823 |
-
|
824 |
-
{// Show the forms dropdown
|
825 |
-
this.forms_dropdown()}
|
826 |
-
|
827 |
-
<hr key="easy-forms-dropdown-divider"/>
|
828 |
-
|
829 |
-
{// Show the form
|
830 |
-
this.get_form_section()}
|
831 |
-
</div>
|
832 |
-
|
833 |
-
);
|
834 |
-
|
835 |
-
} else if ( this.state.forms.length > 0 ) {
|
836 |
-
|
837 |
-
// If we don't have form data, show the forms dropdown
|
838 |
-
return (
|
839 |
-
<div className={ this.props.className }>
|
840 |
-
{this.forms_dropdown()}
|
841 |
-
</div>
|
842 |
-
);
|
843 |
-
|
844 |
-
} else if ( this.state.api_key_status !== 'valid' ) {
|
845 |
-
|
846 |
-
// If the API key is invalid, show a message.
|
847 |
-
return (
|
848 |
-
<p className="yikes-mailchimp-api-key-warning" key="yikes-mailchimp-api-key-warning">
|
849 |
-
<em>{ this.state.api_key_status === 'empty' ? <a href={ constants.settings_url }> { __( 'To use this block, please enter an API key on the Easy Forms\' settings page.' ) } </a> : __( 'Your API key is invalid.' ) }</em>
|
850 |
-
</p>
|
851 |
-
);
|
852 |
-
} else if ( this.state.forms_loaded === true && this.state.forms.length === 0 ) {
|
853 |
-
|
854 |
-
// No forms.
|
855 |
-
return (
|
856 |
-
<p key="no-forms-found" className={ this.props.className }>
|
857 |
-
<em>{ __( 'No forms were found.' ) }</em>
|
858 |
-
</p>
|
859 |
-
);
|
860 |
-
} else {
|
861 |
-
|
862 |
-
// Show loading... & spinner.
|
863 |
-
return (
|
864 |
-
<p key="loading-easy-forms" className={ this.props.className }>
|
865 |
-
<span key="yikes-easy-forms-loading-text">{ __( 'Loading...' ) }</span>
|
866 |
-
<Spinner key="yikes-easy-forms-loading-spinner" />
|
867 |
-
</p>
|
868 |
-
);
|
869 |
-
}
|
870 |
-
}
|
871 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
blocks/components/constants.js
DELETED
@@ -1,390 +0,0 @@
|
|
1 |
-
const constants = {
|
2 |
-
states: {
|
3 |
-
'': '—',
|
4 |
-
'AL': 'Alabama',
|
5 |
-
'AK': 'Alaska',
|
6 |
-
'AZ': 'Arizona',
|
7 |
-
'AR': 'Arkansas',
|
8 |
-
'CA': 'California',
|
9 |
-
'CO': 'Colorado',
|
10 |
-
'CT': 'Connecticut',
|
11 |
-
'DE': 'Delaware',
|
12 |
-
'DC': 'District Of Columbia',
|
13 |
-
'FL': 'Florida',
|
14 |
-
'GA': 'Georgia',
|
15 |
-
'HI': 'Hawaii',
|
16 |
-
'ID': 'Idaho',
|
17 |
-
'IL': 'Illinois',
|
18 |
-
'IN': 'Indiana',
|
19 |
-
'IA': 'Iowa',
|
20 |
-
'KS': 'Kansas',
|
21 |
-
'KY': 'Kentucky',
|
22 |
-
'LA': 'Louisiana',
|
23 |
-
'ME': 'Maine',
|
24 |
-
'MD': 'Maryland',
|
25 |
-
'MA': 'Massachusetts',
|
26 |
-
'MI': 'Michigan',
|
27 |
-
'MN': 'Minnesota',
|
28 |
-
'MS': 'Mississippi',
|
29 |
-
'MO': 'Missouri',
|
30 |
-
'MT': 'Montana',
|
31 |
-
'NE': 'Nebraska',
|
32 |
-
'NV': 'Nevada',
|
33 |
-
'NH': 'New Hampshire',
|
34 |
-
'NJ': 'New Jersey',
|
35 |
-
'NM': 'New Mexico',
|
36 |
-
'NY': 'New York',
|
37 |
-
'NC': 'North Carolina',
|
38 |
-
'ND': 'North Dakota',
|
39 |
-
'OH': 'Ohio',
|
40 |
-
'OK': 'Oklahoma',
|
41 |
-
'OR': 'Oregon',
|
42 |
-
'PA': 'Pennsylvania',
|
43 |
-
'RI': 'Rhode Island',
|
44 |
-
'SC': 'South Carolina',
|
45 |
-
'SD': 'South Dakota',
|
46 |
-
'TN': 'Tennessee',
|
47 |
-
'TX': 'Texas',
|
48 |
-
'UT': 'Utah',
|
49 |
-
'VT': 'Vermont',
|
50 |
-
'VA': 'Virginia',
|
51 |
-
'WA': 'Washington',
|
52 |
-
'WV': 'West Virginia',
|
53 |
-
'WI': 'Wisconsin',
|
54 |
-
'WY': 'Wyoming',
|
55 |
-
'AB': 'Alberta',
|
56 |
-
'BC': 'British Columbia',
|
57 |
-
'MB': 'Manitoba',
|
58 |
-
'NB': 'New Brunswick',
|
59 |
-
'NL': 'Newfoundland and Labrador',
|
60 |
-
'NS': 'Nova Scotia',
|
61 |
-
'ON': 'Ontario',
|
62 |
-
'PE': 'Prince Edward Island',
|
63 |
-
'QC': 'Quebec',
|
64 |
-
'SK': 'Saskatchewan',
|
65 |
-
'NT': 'Northwest Territories',
|
66 |
-
'NU': 'Nunavut',
|
67 |
-
'YT': 'Yukon',
|
68 |
-
},
|
69 |
-
countries: {
|
70 |
-
'US': 'United States',
|
71 |
-
'GB': 'United Kingdom',
|
72 |
-
'AF': 'Afghanistan',
|
73 |
-
'AX': 'Aland Islands',
|
74 |
-
'AL': 'Albania',
|
75 |
-
'DZ': 'Algeria',
|
76 |
-
'AS': 'American Samoa',
|
77 |
-
'AD': 'Andorra',
|
78 |
-
'AO': 'Angola',
|
79 |
-
'AI': 'Anguilla',
|
80 |
-
'AQ': 'Antarctica',
|
81 |
-
'AG': 'Antigua and Barbuda',
|
82 |
-
'AR': 'Argentina',
|
83 |
-
'AM': 'Armenia',
|
84 |
-
'AW': 'Aruba',
|
85 |
-
'AU': 'Australia',
|
86 |
-
'AT': 'Austria',
|
87 |
-
'AZ': 'Azerbaijan',
|
88 |
-
'BS': 'Bahamas',
|
89 |
-
'BH': 'Bahrain',
|
90 |
-
'BD': 'Bangladesh',
|
91 |
-
'BB': 'Barbados',
|
92 |
-
'BY': 'Belarus',
|
93 |
-
'BE': 'Belgium',
|
94 |
-
'BZ': 'Belize',
|
95 |
-
'BJ': 'Benin',
|
96 |
-
'BM': 'Bermuda',
|
97 |
-
'BT': 'Bhutan',
|
98 |
-
'BO': 'Bolivia',
|
99 |
-
'BA': 'Bosnia and Herzegovina',
|
100 |
-
'BW': 'Botswana',
|
101 |
-
'BV': 'Bouvet Island',
|
102 |
-
'BR': 'Brazil',
|
103 |
-
'IO': 'British Indian Ocean Territory',
|
104 |
-
'BN': 'Brunei Darussalam',
|
105 |
-
'BG': 'Bulgaria',
|
106 |
-
'BF': 'Burkina Faso',
|
107 |
-
'BI': 'Burundi',
|
108 |
-
'KH': 'Cambodia',
|
109 |
-
'CM': 'Cameroon',
|
110 |
-
'CA': 'Canada',
|
111 |
-
'CV': 'Cape Verde',
|
112 |
-
'KY': 'Cayman Islands',
|
113 |
-
'CF': 'Central African Republic',
|
114 |
-
'TD': 'Chad',
|
115 |
-
'CL': 'Chile',
|
116 |
-
'CN': 'China',
|
117 |
-
'CX': 'Christmas Island',
|
118 |
-
'CC': 'Cocos (Keeling) Islands',
|
119 |
-
'CO': 'Colombia',
|
120 |
-
'KM': 'Comoros',
|
121 |
-
'CG': 'Congo',
|
122 |
-
'CD': 'Congo, The Democratic Republic of The',
|
123 |
-
'CK': 'Cook Islands',
|
124 |
-
'CR': 'Costa Rica',
|
125 |
-
'CI': 'Cote D’ivoire',
|
126 |
-
'HR': 'Croatia',
|
127 |
-
'CU': 'Cuba',
|
128 |
-
'CY': 'Cyprus',
|
129 |
-
'CZ': 'Czech Republic',
|
130 |
-
'DK': 'Denmark',
|
131 |
-
'DJ': 'Djibouti',
|
132 |
-
'DM': 'Dominica',
|
133 |
-
'DO': 'Dominican Republic',
|
134 |
-
'EC': 'Ecuador',
|
135 |
-
'EG': 'Egypt',
|
136 |
-
'SV': 'El Salvador',
|
137 |
-
'GQ': 'Equatorial Guinea',
|
138 |
-
'ER': 'Eritrea',
|
139 |
-
'EE': 'Estonia',
|
140 |
-
'ET': 'Ethiopia',
|
141 |
-
'FK': 'Falkland Islands (Malvinas)',
|
142 |
-
'FO': 'Faroe Islands',
|
143 |
-
'FJ': 'Fiji',
|
144 |
-
'FI': 'Finland',
|
145 |
-
'FR': 'France',
|
146 |
-
'GF': 'French Guiana',
|
147 |
-
'PF': 'French Polynesia',
|
148 |
-
'TF': 'French Southern Territories',
|
149 |
-
'GA': 'Gabon',
|
150 |
-
'GM': 'Gambia',
|
151 |
-
'GE': 'Georgia',
|
152 |
-
'DE': 'Germany',
|
153 |
-
'GH': 'Ghana',
|
154 |
-
'GI': 'Gibraltar',
|
155 |
-
'GR': 'Greece',
|
156 |
-
'GL': 'Greenland',
|
157 |
-
'GD': 'Grenada',
|
158 |
-
'GP': 'Guadeloupe',
|
159 |
-
'GU': 'Guam',
|
160 |
-
'GT': 'Guatemala',
|
161 |
-
'GG': 'Guernsey',
|
162 |
-
'GN': 'Guinea',
|
163 |
-
'GW': 'Guinea-bissau',
|
164 |
-
'GY': 'Guyana',
|
165 |
-
'HT': 'Haiti',
|
166 |
-
'HM': 'Heard Island and Mcdonald Islands',
|
167 |
-
'VA': 'Holy See (Vatican City State)',
|
168 |
-
'HN': 'Honduras',
|
169 |
-
'HK': 'Hong Kong',
|
170 |
-
'HU': 'Hungary',
|
171 |
-
'IS': 'Iceland',
|
172 |
-
'IN': 'India',
|
173 |
-
'ID': 'Indonesia',
|
174 |
-
'IR': 'Iran, Islamic Republic of',
|
175 |
-
'IQ': 'Iraq',
|
176 |
-
'IE': 'Ireland',
|
177 |
-
'IM': 'Isle of Man',
|
178 |
-
'IL': 'Israel',
|
179 |
-
'IT': 'Italy',
|
180 |
-
'JM': 'Jamaica',
|
181 |
-
'JP': 'Japan',
|
182 |
-
'JE': 'Jersey',
|
183 |
-
'JO': 'Jordan',
|
184 |
-
'KZ': 'Kazakhstan',
|
185 |
-
'KE': 'Kenya',
|
186 |
-
'KI': 'Kiribati',
|
187 |
-
'KP': 'Korea, Democratic People’s Republic of',
|
188 |
-
'KR': 'Korea, Republic of',
|
189 |
-
'KW': 'Kuwait',
|
190 |
-
'KG': 'Kyrgyzstan',
|
191 |
-
'LA': 'Lao People’s Democratic Republic',
|
192 |
-
'LV': 'Latvia',
|
193 |
-
'LB': 'Lebanon',
|
194 |
-
'LS': 'Lesotho',
|
195 |
-
'LR': 'Liberia',
|
196 |
-
'LY': 'Libyan Arab Jamahiriya',
|
197 |
-
'LI': 'Liechtenstein',
|
198 |
-
'LT': 'Lithuania',
|
199 |
-
'LU': 'Luxembourg',
|
200 |
-
'MO': 'Macao',
|
201 |
-
'MK': 'Macedonia, The Former Yugoslav Republic of',
|
202 |
-
'MG': 'Madagascar',
|
203 |
-
'MW': 'Malawi',
|
204 |
-
'MY': 'Malaysia',
|
205 |
-
'MV': 'Maldives',
|
206 |
-
'ML': 'Mali',
|
207 |
-
'MT': 'Malta',
|
208 |
-
'MH': 'Marshall Islands',
|
209 |
-
'MQ': 'Martinique',
|
210 |
-
'MR': 'Mauritania',
|
211 |
-
'MU': 'Mauritius',
|
212 |
-
'YT': 'Mayotte',
|
213 |
-
'MX': 'Mexico',
|
214 |
-
'FM': 'Micronesia, Federated States of',
|
215 |
-
'MD': 'Moldova, Republic of',
|
216 |
-
'MC': 'Monaco',
|
217 |
-
'MN': 'Mongolia',
|
218 |
-
'ME': 'Montenegro',
|
219 |
-
'MS': 'Montserrat',
|
220 |
-
'MA': 'Morocco',
|
221 |
-
'MZ': 'Mozambique',
|
222 |
-
'MM': 'Myanmar',
|
223 |
-
'NA': 'Namibia',
|
224 |
-
'NR': 'Nauru',
|
225 |
-
'NP': 'Nepal',
|
226 |
-
'NL': 'Netherlands',
|
227 |
-
'AN': 'Netherlands Antilles',
|
228 |
-
'NC': 'New Caledonia',
|
229 |
-
'NZ': 'New Zealand',
|
230 |
-
'NI': 'Nicaragua',
|
231 |
-
'NE': 'Niger',
|
232 |
-
'NG': 'Nigeria',
|
233 |
-
'NU': 'Niue',
|
234 |
-
'NF': 'Norfolk Island',
|
235 |
-
'MP': 'Northern Mariana Islands',
|
236 |
-
'NO': 'Norway',
|
237 |
-
'OM': 'Oman',
|
238 |
-
'PK': 'Pakistan',
|
239 |
-
'PW': 'Palau',
|
240 |
-
'PS': 'Palestinian Territory, Occupied',
|
241 |
-
'PA': 'Panama',
|
242 |
-
'PG': 'Papua New Guinea',
|
243 |
-
'PY': 'Paraguay',
|
244 |
-
'PE': 'Peru',
|
245 |
-
'PH': 'Philippines',
|
246 |
-
'PN': 'Pitcairn',
|
247 |
-
'PL': 'Poland',
|
248 |
-
'PT': 'Portugal',
|
249 |
-
'PR': 'Puerto Rico',
|
250 |
-
'QA': 'Qatar',
|
251 |
-
'RE': 'Reunion',
|
252 |
-
'RO': 'Romania',
|
253 |
-
'RU': 'Russian Federation',
|
254 |
-
'RW': 'Rwanda',
|
255 |
-
'SH': 'Saint Helena',
|
256 |
-
'KN': 'Saint Kitts and Nevis',
|
257 |
-
'LC': 'Saint Lucia',
|
258 |
-
'PM': 'Saint Pierre and Miquelon',
|
259 |
-
'VC': 'Saint Vincent and The Grenadines',
|
260 |
-
'WS': 'Samoa',
|
261 |
-
'SM': 'San Marino',
|
262 |
-
'ST': 'Sao Tome and Principe',
|
263 |
-
'SA': 'Saudi Arabia',
|
264 |
-
'SN': 'Senegal',
|
265 |
-
'RS': 'Serbia',
|
266 |
-
'SC': 'Seychelles',
|
267 |
-
'SL': 'Sierra Leone',
|
268 |
-
'SG': 'Singapore',
|
269 |
-
'SK': 'Slovakia',
|
270 |
-
'SI': 'Slovenia',
|
271 |
-
'SB': 'Solomon Islands',
|
272 |
-
'SO': 'Somalia',
|
273 |
-
'ZA': 'South Africa',
|
274 |
-
'GS': 'South Georgia and The South Sandwich Islands',
|
275 |
-
'ES': 'Spain',
|
276 |
-
'LK': 'Sri Lanka',
|
277 |
-
'SD': 'Sudan',
|
278 |
-
'SR': 'Suriname',
|
279 |
-
'SJ': 'Svalbard and Jan Mayen',
|
280 |
-
'SZ': 'Swaziland',
|
281 |
-
'SE': 'Sweden',
|
282 |
-
'CH': 'Switzerland',
|
283 |
-
'SY': 'Syrian Arab Republic',
|
284 |
-
'TW': 'Taiwan, Province of China',
|
285 |
-
'TJ': 'Tajikistan',
|
286 |
-
'TZ': 'Tanzania, United Republic of',
|
287 |
-
'TH': 'Thailand',
|
288 |
-
'TL': 'Timor-leste',
|
289 |
-
'TG': 'Togo',
|
290 |
-
'TK': 'Tokelau',
|
291 |
-
'TO': 'Tonga',
|
292 |
-
'TT': 'Trinidad and Tobago',
|
293 |
-
'TN': 'Tunisia',
|
294 |
-
'TR': 'Turkey',
|
295 |
-
'TM': 'Turkmenistan',
|
296 |
-
'TC': 'Turks and Caicos Islands',
|
297 |
-
'TV': 'Tuvalu',
|
298 |
-
'UG': 'Uganda',
|
299 |
-
'UA': 'Ukraine',
|
300 |
-
'AE': 'United Arab Emirates',
|
301 |
-
'UM': 'United States Minor Outlying Islands',
|
302 |
-
'UY': 'Uruguay',
|
303 |
-
'UZ': 'Uzbekistan',
|
304 |
-
'VU': 'Vanuatu',
|
305 |
-
'VE': 'Venezuela',
|
306 |
-
'VN': 'Viet Nam',
|
307 |
-
'VG': 'Virgin Islands, British',
|
308 |
-
'VI': 'Virgin Islands, U.S.',
|
309 |
-
'WF': 'Wallis and Futuna',
|
310 |
-
'EH': 'Western Sahara',
|
311 |
-
'YE': 'Yemen',
|
312 |
-
'ZM': 'Zambia',
|
313 |
-
'ZW': 'Zimbabwe',
|
314 |
-
},
|
315 |
-
locales: {
|
316 |
-
"ar" : "Arabic",
|
317 |
-
"af" : "Afrikaans",
|
318 |
-
"am" : "Amharic",
|
319 |
-
"hy" : "Armenian",
|
320 |
-
"az" : "Azerbaijani",
|
321 |
-
"eu" : "Basque",
|
322 |
-
"bn" : "Bengali",
|
323 |
-
"bg" : "Bulgarian",
|
324 |
-
"ca" : "Catalan",
|
325 |
-
"zh-HK" : "Chinese (Hong Kong)",
|
326 |
-
"zh-CN" : "Chinese (Simplified)",
|
327 |
-
"zh-TW" : "Chinese (Traditional)",
|
328 |
-
"hr" : "Croatian",
|
329 |
-
"cs" : "Czech",
|
330 |
-
"da" : "Danish",
|
331 |
-
"nl" : "Dutch",
|
332 |
-
"en-GB" : "English (UK)",
|
333 |
-
"en" : "English (US)",
|
334 |
-
"et" : "Estonian",
|
335 |
-
"fil" : "Filipino",
|
336 |
-
"fi" : "Finnish",
|
337 |
-
"fr" : "French",
|
338 |
-
"fr-CA" : "French (Canadian)",
|
339 |
-
"gl" : "Galician",
|
340 |
-
"ka" : "Georgian",
|
341 |
-
"de" : "German",
|
342 |
-
"de-AT" : "German (Austria)",
|
343 |
-
"de-CH" : "German (Switzerland)",
|
344 |
-
"el" : "Greek",
|
345 |
-
"gu" : "Gujarati",
|
346 |
-
"iw" : "Hebrew",
|
347 |
-
"hi" : "Hindi",
|
348 |
-
"hu" : "Hungarain",
|
349 |
-
"is" : "Icelandic",
|
350 |
-
"id" : "Indonesian",
|
351 |
-
"it" : "Italian",
|
352 |
-
"ja" : "Japanese",
|
353 |
-
"kn" : "Kannada",
|
354 |
-
"ko" : "Korean",
|
355 |
-
"lo" : "Laothian",
|
356 |
-
"lv" : "Latvian",
|
357 |
-
"lt" : "Lithuanian",
|
358 |
-
"ms" : "Malay",
|
359 |
-
"ml" : "Malayalam",
|
360 |
-
"mr" : "Marathi",
|
361 |
-
"mn" : "Mongolian",
|
362 |
-
"no" : "Norwegian",
|
363 |
-
"fa" : "Persian",
|
364 |
-
"pl" : "Polish",
|
365 |
-
"pt" : "Portuguese",
|
366 |
-
"pt-BR" : "Portuguese (Brazil)",
|
367 |
-
"pt-PT" : "Portuguese (Portugal)",
|
368 |
-
"ro" : "Romanian",
|
369 |
-
"ru" : "Russian",
|
370 |
-
"sr" : "Serbian",
|
371 |
-
"si" : "Sinhalese",
|
372 |
-
"sk" : "Slovak",
|
373 |
-
"sl" : "Slovenian",
|
374 |
-
"es" : "Spanish",
|
375 |
-
"es-419" : "Spanish (Latin America)",
|
376 |
-
"sw" : "Swahili",
|
377 |
-
"sv" : "Swedish",
|
378 |
-
"ta" : "Tamil",
|
379 |
-
"te" : "Telugu",
|
380 |
-
"th" : "Thai",
|
381 |
-
"tr" : "Turkish",
|
382 |
-
"uk" : "Ukrainian",
|
383 |
-
"ur" : "Urdu",
|
384 |
-
"vi" : "Vietnamese",
|
385 |
-
"zu" : "Zulu"
|
386 |
-
},
|
387 |
-
settings_url: 'wp-admin/admin.php?page=yikes-inc-easy-mailchimp-settings'
|
388 |
-
}
|
389 |
-
|
390 |
-
export default constants;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
blocks/components/enable-submit-button-editing.js
DELETED
@@ -1,17 +0,0 @@
|
|
1 |
-
( function( $ ) {
|
2 |
-
|
3 |
-
$( document ).ready( function() {
|
4 |
-
|
5 |
-
$( 'body' ).on( 'click', '.yikes-easy-mc-submit-button', function( event ) {
|
6 |
-
event.preventDefault();
|
7 |
-
event.stopPropagation();
|
8 |
-
$( '.yikes-mailchimp-submit-button-span-text' ).focus();
|
9 |
-
});
|
10 |
-
|
11 |
-
$( 'body' ).on( 'click', '.yikes-mailchimp-submit-button-span-text', function( event ) {
|
12 |
-
event.preventDefault();
|
13 |
-
event.stopPropagation();
|
14 |
-
});
|
15 |
-
});
|
16 |
-
|
17 |
-
})( jQuery );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
blocks/components/slugify.js
DELETED
@@ -1,19 +0,0 @@
|
|
1 |
-
/*
|
2 |
-
* This should have the same effect as WP/PHP's `sanitize_title()` function
|
3 |
-
*
|
4 |
-
* Source: https://gist.github.com/mathewbyrne/1280286
|
5 |
-
*/
|
6 |
-
export default function slugify( text ) {
|
7 |
-
|
8 |
-
// Use hash map for special characters
|
9 |
-
let specialChars = {"à":'a',"ä":'a',"á":'a',"â":'a',"æ":'a',"å":'a',"ë":'e',"è":'e',"é":'e', "ê":'e',"î":'i',"ï":'i',"ì":'i',"í":'i',"ò":'o',"ó":'o',"ö":'o',"ô":'o',"ø":'o',"ù":'o',"ú":'u',"ü":'u',"û":'u',"ñ":'n',"ç":'c',"ß":'s',"ÿ":'y',"œ":'o',"ŕ":'r',"ś":'s',"ń":'n',"ṕ":'p',"ẃ":'w',"ǵ":'g',"ǹ":'n',"ḿ":'m',"ǘ":'u',"ẍ":'x',"ź":'z',"ḧ":'h',"·":'-',"/":'-',"_":'-',",":'-',":":'-',";":'-'};
|
10 |
-
|
11 |
-
return text.toString().toLowerCase()
|
12 |
-
.replace(/\s+/g, '-') // Replace spaces with -
|
13 |
-
.replace(/./g,(target, index, str) => specialChars[target] || target) // Replace special characters using the hash map
|
14 |
-
.replace(/&/g, '-and-') // Replace & with 'and'
|
15 |
-
.replace(/[^\w\-]+/g, '') // Remove all non-word chars
|
16 |
-
.replace(/\-\-+/g, '-') // Replace multiple - with single -
|
17 |
-
.replace(/^-+/, '') // Trim - from start of text
|
18 |
-
.replace(/-+$/, ''); // Trim - from end of text
|
19 |
-
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
blocks/easy-forms-block/dev-easy-forms-block.js
DELETED
@@ -1,219 +0,0 @@
|
|
1 |
-
import EasyFormsAPI from '../components/api.js'
|
2 |
-
|
3 |
-
import MailchimpForms from '../components/class.MailchimpForms.js';
|
4 |
-
|
5 |
-
import './easy-forms-block.scss'
|
6 |
-
|
7 |
-
require( '../components/enable-submit-button-editing.js' );
|
8 |
-
|
9 |
-
// Get just the __() localization function from wp.i18n
|
10 |
-
const { __ } = wp.i18n;
|
11 |
-
|
12 |
-
// Get registerBlockType and other methods from wp.blocks
|
13 |
-
const { registerBlockType } = wp.blocks;
|
14 |
-
|
15 |
-
const edit_easy_form = function( props ) {
|
16 |
-
|
17 |
-
const onChangeForm = ( event ) => {
|
18 |
-
props.setAttributes( { form_id: event.target.value } );
|
19 |
-
|
20 |
-
if ( event.target.value.length > 0 ) {
|
21 |
-
const api = new EasyFormsAPI();
|
22 |
-
api.get_form( event.target.value ).then( function( form ) {
|
23 |
-
props.setAttributes( { form: form.data } );
|
24 |
-
props.setAttributes( { form_description: form.data.form_description } );
|
25 |
-
props.setAttributes( { form_title: form.data.form_name } );
|
26 |
-
props.setAttributes( { is_ajax: form.data.submission_settings.ajax === '1' } );
|
27 |
-
props.setAttributes( { submit_button_text: form.data.form_settings['yikes-easy-mc-submit-button-text'] } );
|
28 |
-
});
|
29 |
-
}
|
30 |
-
};
|
31 |
-
|
32 |
-
const onChangeDescription = ( value ) => {
|
33 |
-
props.setAttributes( { form_description: value } );
|
34 |
-
};
|
35 |
-
|
36 |
-
const toggleShowDescription = ( event ) => {
|
37 |
-
props.setAttributes( { show_description: !! event.target.checked } );
|
38 |
-
}
|
39 |
-
|
40 |
-
const toggleInline = ( event ) => {
|
41 |
-
props.setAttributes( { inline: !! event.target.checked } );
|
42 |
-
}
|
43 |
-
|
44 |
-
const toggleShowTitle = ( event ) => {
|
45 |
-
props.setAttributes( { show_title: !! event.target.checked } );
|
46 |
-
}
|
47 |
-
|
48 |
-
const toggleFormTitle = ( value ) => {
|
49 |
-
props.setAttributes( { form_title: value } );
|
50 |
-
}
|
51 |
-
|
52 |
-
const toggleIsAjax = ( event ) => {
|
53 |
-
props.setAttributes( { is_ajax: !! event.target.checked } );
|
54 |
-
}
|
55 |
-
|
56 |
-
/* Allow this function to be called via a checkbox handler or directly by passing in a boolean */
|
57 |
-
const toggleRecaptchaAbstract = ( checked ) => {
|
58 |
-
props.setAttributes( { recaptcha: checked } );
|
59 |
-
}
|
60 |
-
|
61 |
-
const toggleRecaptcha = ( event ) => {
|
62 |
-
toggleRecaptchaAbstract( !! event.target.checked )
|
63 |
-
}
|
64 |
-
|
65 |
-
const toggleRecaptchaTheme = ( value ) => {
|
66 |
-
props.setAttributes( { recaptcha_theme: value } );
|
67 |
-
}
|
68 |
-
|
69 |
-
const toggleRecaptchaLang = ( value ) => {
|
70 |
-
props.setAttributes( { recaptcha_lang: value } );
|
71 |
-
}
|
72 |
-
|
73 |
-
const toggleRecaptchaType = ( value ) => {
|
74 |
-
props.setAttributes( { recaptcha_type: value } );
|
75 |
-
}
|
76 |
-
|
77 |
-
const toggleRecaptchaSize = ( value ) => {
|
78 |
-
props.setAttributes( { recaptcha_size: value } );
|
79 |
-
}
|
80 |
-
|
81 |
-
const toggleRecaptchaVerifyCallback = ( value ) => {
|
82 |
-
props.setAttributes( { recaptcha_verify_callback: value } );
|
83 |
-
}
|
84 |
-
|
85 |
-
const toggleRecaptchaExpiredCallback = ( value ) => {
|
86 |
-
props.setAttributes( { recaptcha_expired_callback: value } );
|
87 |
-
}
|
88 |
-
|
89 |
-
const toggleSubmitButtonText = ( value ) => {
|
90 |
-
props.setAttributes( { submit_button_text: value })
|
91 |
-
}
|
92 |
-
|
93 |
-
return (
|
94 |
-
<MailchimpForms
|
95 |
-
className={ props.className }
|
96 |
-
onChangeForm={ onChangeForm }
|
97 |
-
formID={ props.attributes.form_id }
|
98 |
-
formData={ props.attributes.form }
|
99 |
-
onChangeDescription={ onChangeDescription }
|
100 |
-
descriptionValue={ props.attributes.form_description }
|
101 |
-
showDescription={ props.attributes.show_description }
|
102 |
-
toggleShowDescription={ toggleShowDescription }
|
103 |
-
focus={ !! props.isSelected }
|
104 |
-
inline={ props.attributes.inline }
|
105 |
-
toggleInline={ toggleInline }
|
106 |
-
formTitle={ props.attributes.form_title }
|
107 |
-
toggleFormTitle={ toggleFormTitle }
|
108 |
-
showTitle={ props.attributes.show_title }
|
109 |
-
toggleShowTitle={ toggleShowTitle }
|
110 |
-
isAjax={ props.attributes.is_ajax }
|
111 |
-
toggleIsAjax={ toggleIsAjax }
|
112 |
-
toggleRecaptchaAbstract={ toggleRecaptchaAbstract }
|
113 |
-
recaptcha={ props.attributes.recaptcha }
|
114 |
-
toggleRecaptcha={ toggleRecaptcha }
|
115 |
-
recaptchaTheme={ props.attributes.recaptcha_theme }
|
116 |
-
toggleRecaptchaTheme={ toggleRecaptchaTheme }
|
117 |
-
recaptchaLang={ props.attributes.recaptcha_lang }
|
118 |
-
toggleRecaptchaLang={ toggleRecaptchaLang }
|
119 |
-
recaptchaType={ props.attributes.recaptcha_type }
|
120 |
-
toggleRecaptchaType={ toggleRecaptchaType }
|
121 |
-
recaptchaSize={ props.attributes.recaptcha_size }
|
122 |
-
toggleRecaptchaSize={ toggleRecaptchaSize }
|
123 |
-
recaptchaVerifyCallback={ props.attributes.recaptcha_verify_callback }
|
124 |
-
toggleRecaptchaVerifyCallback={ toggleRecaptchaVerifyCallback }
|
125 |
-
recaptchaExpiredCallback={ props.attributes.recaptcha_expired_callback }
|
126 |
-
toggleRecaptchaExpiredCallback={ toggleRecaptchaExpiredCallback }
|
127 |
-
submitButtonText={ props.attributes.submit_button_text }
|
128 |
-
toggleSubmitButtonText={ toggleSubmitButtonText }
|
129 |
-
/>
|
130 |
-
);
|
131 |
-
|
132 |
-
}
|
133 |
-
|
134 |
-
const save_easy_form = function( props ) {
|
135 |
-
return null;
|
136 |
-
}
|
137 |
-
|
138 |
-
const settings = {
|
139 |
-
title : __( 'Easy Forms for Mailchimp' ),
|
140 |
-
category : 'common', // Options include "common", "formatting", "layout", "widgets" and "embed."
|
141 |
-
icon : 'email-alt',
|
142 |
-
keywords : ['mailchimp', 'easy forms for mailchimp', 'yikes'],
|
143 |
-
attributes: {
|
144 |
-
form_id: {
|
145 |
-
type: 'string',
|
146 |
-
default: ''
|
147 |
-
},
|
148 |
-
form: {
|
149 |
-
type: 'object'
|
150 |
-
},
|
151 |
-
form_description: {
|
152 |
-
type: 'string',
|
153 |
-
default: ''
|
154 |
-
},
|
155 |
-
show_description: {
|
156 |
-
type: 'boolean',
|
157 |
-
default: false
|
158 |
-
},
|
159 |
-
inline: {
|
160 |
-
type: 'boolean',
|
161 |
-
default: false
|
162 |
-
},
|
163 |
-
show_title: {
|
164 |
-
type: 'boolean',
|
165 |
-
default: false
|
166 |
-
},
|
167 |
-
form_title: {
|
168 |
-
type: 'string',
|
169 |
-
default: ''
|
170 |
-
},
|
171 |
-
is_ajax: {
|
172 |
-
type: 'boolean',
|
173 |
-
default: true,
|
174 |
-
},
|
175 |
-
recaptcha: {
|
176 |
-
type: 'boolean',
|
177 |
-
default: false,
|
178 |
-
},
|
179 |
-
recaptcha_theme: {
|
180 |
-
type: 'string',
|
181 |
-
default: 'light'
|
182 |
-
},
|
183 |
-
recaptcha_lang: {
|
184 |
-
type: 'string',
|
185 |
-
default: ''
|
186 |
-
},
|
187 |
-
recaptcha_type: {
|
188 |
-
type: 'string',
|
189 |
-
default: 'image'
|
190 |
-
},
|
191 |
-
recaptcha_size: {
|
192 |
-
type: 'string',
|
193 |
-
default: 'normal'
|
194 |
-
},
|
195 |
-
recaptcha_verify_callback: {
|
196 |
-
type: 'string',
|
197 |
-
default: ''
|
198 |
-
},
|
199 |
-
recaptcha_expired_callback: {
|
200 |
-
type: 'string',
|
201 |
-
default: ''
|
202 |
-
},
|
203 |
-
submit_button_text: {
|
204 |
-
type: 'string',
|
205 |
-
default: ''
|
206 |
-
}
|
207 |
-
},
|
208 |
-
edit: edit_easy_form,
|
209 |
-
save: save_easy_form,
|
210 |
-
}
|
211 |
-
|
212 |
-
const EasyFormsBlock = registerBlockType(
|
213 |
-
|
214 |
-
// Name
|
215 |
-
ez_forms_gb_data.block_namespace + ez_forms_gb_data.block_name,
|
216 |
-
|
217 |
-
// Settings
|
218 |
-
settings
|
219 |
-
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
blocks/easy-forms-block/easy-forms-block.js
DELETED
@@ -1,4718 +0,0 @@
|
|
1 |
-
/******/ (function(modules) { // webpackBootstrap
|
2 |
-
/******/ // The module cache
|
3 |
-
/******/ var installedModules = {};
|
4 |
-
/******/
|
5 |
-
/******/ // The require function
|
6 |
-
/******/ function __webpack_require__(moduleId) {
|
7 |
-
/******/
|
8 |
-
/******/ // Check if module is in cache
|
9 |
-
/******/ if(installedModules[moduleId]) {
|
10 |
-
/******/ return installedModules[moduleId].exports;
|
11 |
-
/******/ }
|
12 |
-
/******/ // Create a new module (and put it into the cache)
|
13 |
-
/******/ var module = installedModules[moduleId] = {
|
14 |
-
/******/ i: moduleId,
|
15 |
-
/******/ l: false,
|
16 |
-
/******/ exports: {}
|
17 |
-
/******/ };
|
18 |
-
/******/
|
19 |
-
/******/ // Execute the module function
|
20 |
-
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
21 |
-
/******/
|
22 |
-
/******/ // Flag the module as loaded
|
23 |
-
/******/ module.l = true;
|
24 |
-
/******/
|
25 |
-
/******/ // Return the exports of the module
|
26 |
-
/******/ return module.exports;
|
27 |
-
/******/ }
|
28 |
-
/******/
|
29 |
-
/******/
|
30 |
-
/******/ // expose the modules object (__webpack_modules__)
|
31 |
-
/******/ __webpack_require__.m = modules;
|
32 |
-
/******/
|
33 |
-
/******/ // expose the module cache
|
34 |
-
/******/ __webpack_require__.c = installedModules;
|
35 |
-
/******/
|
36 |
-
/******/ // define getter function for harmony exports
|
37 |
-
/******/ __webpack_require__.d = function(exports, name, getter) {
|
38 |
-
/******/ if(!__webpack_require__.o(exports, name)) {
|
39 |
-
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
40 |
-
/******/ }
|
41 |
-
/******/ };
|
42 |
-
/******/
|
43 |
-
/******/ // define __esModule on exports
|
44 |
-
/******/ __webpack_require__.r = function(exports) {
|
45 |
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
46 |
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
47 |
-
/******/ }
|
48 |
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
49 |
-
/******/ };
|
50 |
-
/******/
|
51 |
-
/******/ // create a fake namespace object
|
52 |
-
/******/ // mode & 1: value is a module id, require it
|
53 |
-
/******/ // mode & 2: merge all properties of value into the ns
|
54 |
-
/******/ // mode & 4: return value when already ns object
|
55 |
-
/******/ // mode & 8|1: behave like require
|
56 |
-
/******/ __webpack_require__.t = function(value, mode) {
|
57 |
-
/******/ if(mode & 1) value = __webpack_require__(value);
|
58 |
-
/******/ if(mode & 8) return value;
|
59 |
-
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
60 |
-
/******/ var ns = Object.create(null);
|
61 |
-
/******/ __webpack_require__.r(ns);
|
62 |
-
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
63 |
-
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
64 |
-
/******/ return ns;
|
65 |
-
/******/ };
|
66 |
-
/******/
|
67 |
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
68 |
-
/******/ __webpack_require__.n = function(module) {
|
69 |
-
/******/ var getter = module && module.__esModule ?
|
70 |
-
/******/ function getDefault() { return module['default']; } :
|
71 |
-
/******/ function getModuleExports() { return module; };
|
72 |
-
/******/ __webpack_require__.d(getter, 'a', getter);
|
73 |
-
/******/ return getter;
|
74 |
-
/******/ };
|
75 |
-
/******/
|
76 |
-
/******/ // Object.prototype.hasOwnProperty.call
|
77 |
-
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
78 |
-
/******/
|
79 |
-
/******/ // __webpack_public_path__
|
80 |
-
/******/ __webpack_require__.p = "";
|
81 |
-
/******/
|
82 |
-
/******/
|
83 |
-
/******/ // Load entry module and return exports
|
84 |
-
/******/ return __webpack_require__(__webpack_require__.s = "./blocks/index.js");
|
85 |
-
/******/ })
|
86 |
-
/************************************************************************/
|
87 |
-
/******/ ({
|
88 |
-
|
89 |
-
/***/ "./blocks/components/api.js":
|
90 |
-
/*!**********************************!*\
|
91 |
-
!*** ./blocks/components/api.js ***!
|
92 |
-
\**********************************/
|
93 |
-
/*! no static exports found */
|
94 |
-
/***/ (function(module, exports, __webpack_require__) {
|
95 |
-
|
96 |
-
"use strict";
|
97 |
-
|
98 |
-
|
99 |
-
Object.defineProperty(exports, "__esModule", {
|
100 |
-
value: true
|
101 |
-
});
|
102 |
-
|
103 |
-
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
104 |
-
|
105 |
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
106 |
-
|
107 |
-
var EasyFormsAPI = function () {
|
108 |
-
function EasyFormsAPI() {
|
109 |
-
_classCallCheck(this, EasyFormsAPI);
|
110 |
-
|
111 |
-
this.ajaxurl = window.ajaxurl;
|
112 |
-
}
|
113 |
-
|
114 |
-
_createClass(EasyFormsAPI, [{
|
115 |
-
key: 'get_api_key_status',
|
116 |
-
value: function get_api_key_status() {
|
117 |
-
var data = {
|
118 |
-
action: 'yikes_get_api_key_status',
|
119 |
-
nonce: ez_forms_gb_data.get_api_key_status
|
120 |
-
};
|
121 |
-
|
122 |
-
var status = $.post(this.ajaxurl, data);
|
123 |
-
|
124 |
-
return status;
|
125 |
-
}
|
126 |
-
}, {
|
127 |
-
key: 'get_recaptcha',
|
128 |
-
value: function get_recaptcha() {
|
129 |
-
var data = {
|
130 |
-
action: 'yikes_get_recaptcha',
|
131 |
-
nonce: ez_forms_gb_data.fetch_recaptcha_nonce
|
132 |
-
};
|
133 |
-
|
134 |
-
var recaptcha_data = $.post(this.ajaxurl, data);
|
135 |
-
|
136 |
-
return recaptcha_data;
|
137 |
-
}
|
138 |
-
}, {
|
139 |
-
key: 'get_forms',
|
140 |
-
value: function get_forms() {
|
141 |
-
var data = {
|
142 |
-
action: 'yikes_get_forms',
|
143 |
-
nonce: ez_forms_gb_data.fetch_forms_nonce
|
144 |
-
};
|
145 |
-
|
146 |
-
var forms = $.post(this.ajaxurl, data);
|
147 |
-
|
148 |
-
return forms;
|
149 |
-
}
|
150 |
-
}, {
|
151 |
-
key: 'get_form',
|
152 |
-
value: function get_form(form_id) {
|
153 |
-
var data = {
|
154 |
-
action: 'yikes_get_form',
|
155 |
-
form_id: form_id,
|
156 |
-
nonce: ez_forms_gb_data.fetch_form_nonce
|
157 |
-
};
|
158 |
-
|
159 |
-
var form = $.post(this.ajaxurl, data);
|
160 |
-
|
161 |
-
return form;
|
162 |
-
}
|
163 |
-
}]);
|
164 |
-
|
165 |
-
return EasyFormsAPI;
|
166 |
-
}();
|
167 |
-
|
168 |
-
exports.default = EasyFormsAPI;
|
169 |
-
|
170 |
-
/***/ }),
|
171 |
-
|
172 |
-
/***/ "./blocks/components/class.MailchimpForms.js":
|
173 |
-
/*!***************************************************!*\
|
174 |
-
!*** ./blocks/components/class.MailchimpForms.js ***!
|
175 |
-
\***************************************************/
|
176 |
-
/*! no static exports found */
|
177 |
-
/***/ (function(module, exports, __webpack_require__) {
|
178 |
-
|
179 |
-
"use strict";
|
180 |
-
|
181 |
-
|
182 |
-
Object.defineProperty(exports, "__esModule", {
|
183 |
-
value: true
|
184 |
-
});
|
185 |
-
|
186 |
-
var _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
187 |
-
|
188 |
-
var _classnames2 = _interopRequireDefault(_classnames);
|
189 |
-
|
190 |
-
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
191 |
-
|
192 |
-
var _slugify = __webpack_require__(/*! ./slugify.js */ "./blocks/components/slugify.js");
|
193 |
-
|
194 |
-
var _slugify2 = _interopRequireDefault(_slugify);
|
195 |
-
|
196 |
-
var _constants = __webpack_require__(/*! ./constants.js */ "./blocks/components/constants.js");
|
197 |
-
|
198 |
-
var _constants2 = _interopRequireDefault(_constants);
|
199 |
-
|
200 |
-
var _api = __webpack_require__(/*! ./api.js */ "./blocks/components/api.js");
|
201 |
-
|
202 |
-
var _api2 = _interopRequireDefault(_api);
|
203 |
-
|
204 |
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
205 |
-
|
206 |
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
207 |
-
|
208 |
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
209 |
-
|
210 |
-
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
211 |
-
|
212 |
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Import dependencies
|
213 |
-
|
214 |
-
|
215 |
-
// Get functions / blocks / components
|
216 |
-
var Recaptcha = __webpack_require__(/*! react-recaptcha */ "./node_modules/react-recaptcha/dist/react-recaptcha.js");
|
217 |
-
var __ = wp.i18n.__;
|
218 |
-
var registerBlockType = wp.blocks.registerBlockType;
|
219 |
-
var _wp$editor = wp.editor,
|
220 |
-
RichText = _wp$editor.RichText,
|
221 |
-
InspectorControls = _wp$editor.InspectorControls,
|
222 |
-
PlainText = _wp$editor.PlainText;
|
223 |
-
var _wp$components = wp.components,
|
224 |
-
Spinner = _wp$components.Spinner,
|
225 |
-
TextControl = _wp$components.TextControl,
|
226 |
-
PanelBody = _wp$components.PanelBody,
|
227 |
-
PanelRow = _wp$components.PanelRow,
|
228 |
-
FormToggle = _wp$components.FormToggle,
|
229 |
-
SelectControl = _wp$components.SelectControl;
|
230 |
-
var Component = wp.element.Component;
|
231 |
-
|
232 |
-
var MailchimpForms = function (_Component) {
|
233 |
-
_inherits(MailchimpForms, _Component);
|
234 |
-
|
235 |
-
function MailchimpForms(props) {
|
236 |
-
_classCallCheck(this, MailchimpForms);
|
237 |
-
|
238 |
-
var _this = _possibleConstructorReturn(this, (MailchimpForms.__proto__ || Object.getPrototypeOf(MailchimpForms)).apply(this, arguments));
|
239 |
-
|
240 |
-
_this.state = {
|
241 |
-
api_key_status: 'valid',
|
242 |
-
forms: [],
|
243 |
-
recaptcha_data: {
|
244 |
-
data: {},
|
245 |
-
success: false
|
246 |
-
},
|
247 |
-
'forms_loaded': false
|
248 |
-
};
|
249 |
-
|
250 |
-
_this.api = new _api2.default();
|
251 |
-
|
252 |
-
_this.address_fields = {
|
253 |
-
'addr1': 'Address 1',
|
254 |
-
'addr2': 'Address 2',
|
255 |
-
'city': 'City',
|
256 |
-
'state': 'State',
|
257 |
-
'zip': 'Zip',
|
258 |
-
'country': 'Country'
|
259 |
-
};
|
260 |
-
return _this;
|
261 |
-
}
|
262 |
-
|
263 |
-
/**
|
264 |
-
* Run our API calls after the component has mounted. You can't use setState before a component is mounted.
|
265 |
-
*/
|
266 |
-
|
267 |
-
|
268 |
-
_createClass(MailchimpForms, [{
|
269 |
-
key: 'componentDidMount',
|
270 |
-
value: function componentDidMount() {
|
271 |
-
var _this2 = this;
|
272 |
-
|
273 |
-
this.api.get_api_key_status().then(function (status) {
|
274 |
-
_this2.setState({ api_key_status: status.data });
|
275 |
-
});
|
276 |
-
|
277 |
-
this.api.get_forms().then(function (forms) {
|
278 |
-
_this2.setState({ forms: forms.data, forms_loaded: true });
|
279 |
-
});
|
280 |
-
|
281 |
-
this.api.get_recaptcha().then(function (recaptcha_data) {
|
282 |
-
_this2.setState({ recaptcha_data: recaptcha_data });
|
283 |
-
_this2.props.toggleRecaptchaAbstract(_this2.state.recaptcha_data.success);
|
284 |
-
});
|
285 |
-
}
|
286 |
-
}, {
|
287 |
-
key: 'handleFormFieldChanges',
|
288 |
-
value: function handleFormFieldChanges(event) {
|
289 |
-
// console.log( event );
|
290 |
-
|
291 |
-
// console.log( value );
|
292 |
-
// console.log( this );
|
293 |
-
// console.log( typeof this.setState );
|
294 |
-
|
295 |
-
// const target = event.target;
|
296 |
-
// const value = target.type === 'checkbox' ? target.checked : target.value;
|
297 |
-
// const name = target.name;
|
298 |
-
|
299 |
-
// return this.setState( { [name]: value } );
|
300 |
-
}
|
301 |
-
}, {
|
302 |
-
key: 'inspector_controls',
|
303 |
-
value: function inspector_controls() {
|
304 |
-
|
305 |
-
var inline = wp.element.createElement(
|
306 |
-
PanelRow,
|
307 |
-
null,
|
308 |
-
wp.element.createElement(
|
309 |
-
'label',
|
310 |
-
{
|
311 |
-
htmlFor: 'inline-form-toggle',
|
312 |
-
className: 'blocks-base-control__label'
|
313 |
-
},
|
314 |
-
__('Inline')
|
315 |
-
),
|
316 |
-
wp.element.createElement(FormToggle, {
|
317 |
-
id: 'inline-form-toggle',
|
318 |
-
label: __('Inline'),
|
319 |
-
checked: !!this.props.inline,
|
320 |
-
onChange: this.props.toggleInline
|
321 |
-
})
|
322 |
-
);
|
323 |
-
|
324 |
-
var show_form_title = wp.element.createElement(
|
325 |
-
PanelRow,
|
326 |
-
null,
|
327 |
-
wp.element.createElement(
|
328 |
-
'label',
|
329 |
-
{
|
330 |
-
htmlFor: 'show-title-form-toggle',
|
331 |
-
className: 'blocks-base-control__label'
|
332 |
-
},
|
333 |
-
__('Show Form Title')
|
334 |
-
),
|
335 |
-
wp.element.createElement(FormToggle, {
|
336 |
-
id: 'show-title-form-toggle',
|
337 |
-
label: __('Show Form Title'),
|
338 |
-
checked: !!this.props.showTitle,
|
339 |
-
onChange: this.props.toggleShowTitle
|
340 |
-
})
|
341 |
-
);
|
342 |
-
|
343 |
-
var show_form_description = wp.element.createElement(
|
344 |
-
PanelRow,
|
345 |
-
null,
|
346 |
-
wp.element.createElement(
|
347 |
-
'label',
|
348 |
-
{
|
349 |
-
htmlFor: 'show-description-form-toggle',
|
350 |
-
className: 'blocks-base-control__label'
|
351 |
-
},
|
352 |
-
__('Show Form Description')
|
353 |
-
),
|
354 |
-
wp.element.createElement(FormToggle, {
|
355 |
-
id: 'show-description-form-toggle',
|
356 |
-
label: __('Show Form Description'),
|
357 |
-
checked: !!this.props.showDescription,
|
358 |
-
onChange: this.props.toggleShowDescription
|
359 |
-
})
|
360 |
-
);
|
361 |
-
|
362 |
-
var is_ajax = wp.element.createElement(
|
363 |
-
PanelRow,
|
364 |
-
null,
|
365 |
-
wp.element.createElement(
|
366 |
-
'label',
|
367 |
-
{
|
368 |
-
htmlFor: 'is-ajax-form-toggle',
|
369 |
-
className: 'blocks-base-control__label'
|
370 |
-
},
|
371 |
-
__('AJAX Submissions')
|
372 |
-
),
|
373 |
-
wp.element.createElement(FormToggle, {
|
374 |
-
id: 'is-ajax-form-toggle',
|
375 |
-
label: __('AJAX'),
|
376 |
-
checked: !!this.props.isAjax,
|
377 |
-
onChange: this.props.toggleIsAjax
|
378 |
-
})
|
379 |
-
);
|
380 |
-
|
381 |
-
var recaptcha = wp.element.createElement(
|
382 |
-
PanelRow,
|
383 |
-
null,
|
384 |
-
wp.element.createElement(
|
385 |
-
'label',
|
386 |
-
{
|
387 |
-
htmlFor: 'recaptcha-form-toggle',
|
388 |
-
className: 'blocks-base-control__label'
|
389 |
-
},
|
390 |
-
__('reCAPTCHA')
|
391 |
-
),
|
392 |
-
wp.element.createElement(FormToggle, {
|
393 |
-
id: 'recaptcha-form-toggle',
|
394 |
-
label: __('reCAPTCHA'),
|
395 |
-
checked: !!this.props.recaptcha,
|
396 |
-
onChange: this.props.toggleRecaptcha
|
397 |
-
})
|
398 |
-
);
|
399 |
-
|
400 |
-
var recaptcha_type = !!this.props.recaptcha ? wp.element.createElement(
|
401 |
-
PanelRow,
|
402 |
-
null,
|
403 |
-
wp.element.createElement(
|
404 |
-
'label',
|
405 |
-
{
|
406 |
-
htmlFor: 'recaptcha-type-form-toggle',
|
407 |
-
className: 'blocks-base-control__label'
|
408 |
-
},
|
409 |
-
__('reCAPTCHA Type')
|
410 |
-
),
|
411 |
-
wp.element.createElement(SelectControl, {
|
412 |
-
value: this.props.recaptchaType,
|
413 |
-
options: [{ value: 'image', label: 'Image' }, { value: 'audio', 'label': 'Audio' }],
|
414 |
-
onChange: this.props.toggleRecaptchaType
|
415 |
-
})
|
416 |
-
) : '';
|
417 |
-
|
418 |
-
var recaptcha_theme = !!this.props.recaptcha ? wp.element.createElement(
|
419 |
-
PanelRow,
|
420 |
-
null,
|
421 |
-
wp.element.createElement(
|
422 |
-
'label',
|
423 |
-
{
|
424 |
-
htmlFor: 'recaptcha-theme-form-toggle',
|
425 |
-
className: 'blocks-base-control__label'
|
426 |
-
},
|
427 |
-
__('reCAPTCHA Theme')
|
428 |
-
),
|
429 |
-
wp.element.createElement(SelectControl, {
|
430 |
-
value: this.props.recaptchaTheme,
|
431 |
-
options: [{ value: 'light', label: 'Light' }, { value: 'dark', 'label': 'Dark' }],
|
432 |
-
onChange: this.props.toggleRecaptchaTheme
|
433 |
-
})
|
434 |
-
) : '';
|
435 |
-
|
436 |
-
var recaptcha_lang = !!this.props.recaptcha ? wp.element.createElement(
|
437 |
-
PanelRow,
|
438 |
-
null,
|
439 |
-
wp.element.createElement(
|
440 |
-
'label',
|
441 |
-
{
|
442 |
-
htmlFor: 'recaptcha-language-form-toggle',
|
443 |
-
className: 'blocks-base-control__label',
|
444 |
-
title: this.state.recaptcha_data.data ? 'The default language for your locale is ' + _constants2.default.locales[this.state.recaptcha_data.data.locale] : ''
|
445 |
-
},
|
446 |
-
__('reCAPTCHA Language')
|
447 |
-
),
|
448 |
-
wp.element.createElement(SelectControl, {
|
449 |
-
id: 'recaptcha-language-form-toggle',
|
450 |
-
value: this.props.recaptchaLang.length > 0 ? this.props.recaptchaLang : this.state.recaptcha_data.data ? this.state.recaptcha_data.data.locale : '',
|
451 |
-
onChange: this.props.toggleRecaptchaLang,
|
452 |
-
title: this.state.recaptcha_data.data ? 'The default language for your locale is ' + _constants2.default.locales[this.state.recaptcha_data.data.locale] : '',
|
453 |
-
options: Object.keys(_constants2.default.locales).map(function (key) {
|
454 |
-
return { value: key, label: _constants2.default.locales[key] };
|
455 |
-
})
|
456 |
-
})
|
457 |
-
) : '';
|
458 |
-
|
459 |
-
var recaptcha_size = !!this.props.recaptcha ? wp.element.createElement(
|
460 |
-
PanelRow,
|
461 |
-
null,
|
462 |
-
wp.element.createElement(
|
463 |
-
'label',
|
464 |
-
{
|
465 |
-
htmlFor: 'recaptcha-size-form-toggle',
|
466 |
-
className: 'blocks-base-control__label'
|
467 |
-
},
|
468 |
-
__('reCAPTCHA Size')
|
469 |
-
),
|
470 |
-
wp.element.createElement(SelectControl, {
|
471 |
-
id: 'recaptcha-size-form-toggle',
|
472 |
-
value: this.props.recaptchaSize,
|
473 |
-
onChange: this.props.toggleRecaptchaSize,
|
474 |
-
options: [{ value: 'normal', label: 'Normal' }, { value: 'compact', label: 'Compact' }]
|
475 |
-
})
|
476 |
-
) : '';
|
477 |
-
|
478 |
-
var recaptcha_verify_callback = !!this.props.recaptcha ? wp.element.createElement(TextControl, {
|
479 |
-
id: 'recaptcha-verify-callback-form-toggle',
|
480 |
-
label: __('reCAPTCHA Verify Callback'),
|
481 |
-
value: this.props.recaptchaVerifyCallback,
|
482 |
-
onChange: this.props.toggleRecaptchaVerifyCallback
|
483 |
-
}) : '';
|
484 |
-
|
485 |
-
var recaptcha_expired_callback = !!this.props.recaptcha ? wp.element.createElement(TextControl, {
|
486 |
-
id: 'recaptcha-expired-callback-form-toggle',
|
487 |
-
label: __('reCAPTCHA Expired Callback'),
|
488 |
-
value: this.props.recaptchaExpiredCallback,
|
489 |
-
onChange: this.props.toggleRecaptchaExpiredCallback
|
490 |
-
}) : '';
|
491 |
-
|
492 |
-
var inspector_controls = wp.element.createElement(
|
493 |
-
InspectorControls,
|
494 |
-
{ key: 'easy-forms-inspector' },
|
495 |
-
wp.element.createElement(
|
496 |
-
PanelBody,
|
497 |
-
{ title: __('Settings') },
|
498 |
-
inline,
|
499 |
-
show_form_title,
|
500 |
-
show_form_description,
|
501 |
-
is_ajax,
|
502 |
-
recaptcha,
|
503 |
-
recaptcha_type,
|
504 |
-
recaptcha_theme,
|
505 |
-
recaptcha_lang,
|
506 |
-
recaptcha_size,
|
507 |
-
recaptcha_verify_callback,
|
508 |
-
recaptcha_expired_callback
|
509 |
-
)
|
510 |
-
);
|
511 |
-
|
512 |
-
return inspector_controls;
|
513 |
-
}
|
514 |
-
}, {
|
515 |
-
key: 'forms_dropdown',
|
516 |
-
value: function forms_dropdown() {
|
517 |
-
return this.state.forms.length > 0 ? wp.element.createElement(
|
518 |
-
'select',
|
519 |
-
{
|
520 |
-
value: this.props.formID,
|
521 |
-
onChange: this.props.onChangeForm,
|
522 |
-
className: 'yikes-mailchimp-forms-dropdown',
|
523 |
-
key: 'yikes-mailchimp-forms-dropdown'
|
524 |
-
},
|
525 |
-
wp.element.createElement(
|
526 |
-
'option',
|
527 |
-
{ key: 'select', value: '' },
|
528 |
-
'Select Mailchimp Form...'
|
529 |
-
),
|
530 |
-
this.state.forms.map(function (form) {
|
531 |
-
return wp.element.createElement(
|
532 |
-
'option',
|
533 |
-
{ key: 'yikes-select-form-' + form.id, value: form.id },
|
534 |
-
form.form_name
|
535 |
-
);
|
536 |
-
})
|
537 |
-
) : '';
|
538 |
-
}
|
539 |
-
}, {
|
540 |
-
key: 'form_title',
|
541 |
-
value: function form_title() {
|
542 |
-
return this.props.showTitle === true ? this.props.focus ? wp.element.createElement(
|
543 |
-
'h3',
|
544 |
-
{
|
545 |
-
className: (0, _classnames2.default)("yikes-mailchimp-form-title yikes-mailchimp-form-title-" + this.props.formID),
|
546 |
-
key: 'yikes-mailchimp-form-title-wrapper'
|
547 |
-
},
|
548 |
-
wp.element.createElement(PlainText, {
|
549 |
-
placeholder: this.props.formTitle,
|
550 |
-
key: 'yikes-mailchimp-form-title-editable',
|
551 |
-
value: this.props.formTitle,
|
552 |
-
onChange: this.props.toggleFormTitle
|
553 |
-
})
|
554 |
-
) : wp.element.createElement(
|
555 |
-
'h3',
|
556 |
-
{ className: (0, _classnames2.default)("yikes-mailchimp-form-title yikes-mailchimp-form-title-" + this.props.formID), key: 'yikes-mailchimp-form-title' },
|
557 |
-
this.props.formTitle
|
558 |
-
) : '';
|
559 |
-
}
|
560 |
-
}, {
|
561 |
-
key: 'form_description',
|
562 |
-
value: function form_description() {
|
563 |
-
return this.props.showDescription === true ? wp.element.createElement(
|
564 |
-
'section',
|
565 |
-
{ className: (0, _classnames2.default)("yikes-mailchimp-form-description yikes-mailchimp-form-description-" + this.props.formID), key: 'yikes-mailchimp-form-description' },
|
566 |
-
wp.element.createElement(PlainText, {
|
567 |
-
className: 'mailchimpDescription',
|
568 |
-
placeholder: __('Enter your form\'s description here.') /*( this.props.formData && this.props.formData.form_description && this.props.formData.form_description.length > 0 || this.props.descriptionValue && this.props.descriptionValue.length > 0 ) ? '' : __( 'Enter your form\'s description here.' )*/,
|
569 |
-
value: this.props.descriptionValue.length > 0 ? this.props.descriptionValue : this.props.formData && this.props.formData.form_description ? this.props.formData.form_description : '',
|
570 |
-
onChange: this.props.onChangeDescription,
|
571 |
-
key: 'mailchimpDescription'
|
572 |
-
})
|
573 |
-
) : '';
|
574 |
-
}
|
575 |
-
}, {
|
576 |
-
key: 'get_address_field',
|
577 |
-
value: function get_address_field(addr_field, field) {
|
578 |
-
switch (addr_field) {
|
579 |
-
|
580 |
-
case 'addr1':
|
581 |
-
case 'addr2':
|
582 |
-
case 'city':
|
583 |
-
case 'zip':
|
584 |
-
return wp.element.createElement(TextControl, {
|
585 |
-
id: "yikes-easy-mc-form-" + this.props.formID + "-" + field.merge + '-' + addr_field,
|
586 |
-
onChange: this.handleFormFieldChanges,
|
587 |
-
type: 'text',
|
588 |
-
name: field.merge + '[' + addr_field + ']',
|
589 |
-
className: (0, _classnames2.default)('yikes-easy-mc-' + field.type + ' ' + field['additional-classes']),
|
590 |
-
key: 'yikes-mailchimp-field-' + field.merge + '-' + addr_field,
|
591 |
-
required: field.merge === 'EMAIL' || field.require === '1' ? 'required' : false,
|
592 |
-
placeholder: field.placeholder === '1' ? this.address_fields[addr_field] : ''
|
593 |
-
});
|
594 |
-
break;
|
595 |
-
|
596 |
-
case 'state':
|
597 |
-
return wp.element.createElement(
|
598 |
-
'select',
|
599 |
-
{
|
600 |
-
id: "yikes-easy-mc-form-" + this.props.formID + "-" + field.merge + '-' + addr_field,
|
601 |
-
name: field.merge + '[' + addr_field + ']',
|
602 |
-
className: (0, _classnames2.default)('yikes-easy-mc-' + field.type + ' ' + field['additional-classes']),
|
603 |
-
onChange: this.handleFormFieldChanges,
|
604 |
-
key: 'yikes-mailchimp-field-' + field.merge + '-' + addr_field,
|
605 |
-
value: '',
|
606 |
-
required: field.merge === 'EMAIL' || field.require === '1' ? 'required' : false
|
607 |
-
},
|
608 |
-
Object.keys(_constants2.default.states).map(function (key) {
|
609 |
-
var choice = _constants2.default.states[key];
|
610 |
-
return wp.element.createElement(
|
611 |
-
'option',
|
612 |
-
{ key: 'state-' + key, value: key },
|
613 |
-
choice
|
614 |
-
);
|
615 |
-
})
|
616 |
-
);
|
617 |
-
break;
|
618 |
-
|
619 |
-
case 'country':
|
620 |
-
return wp.element.createElement(
|
621 |
-
'select',
|
622 |
-
{
|
623 |
-
id: "yikes-easy-mc-form-" + this.props.formID + "-" + field.merge + '-' + addr_field,
|
624 |
-
name: field.merge + '[' + addr_field + ']',
|
625 |
-
className: (0, _classnames2.default)('yikes-easy-mc-' + field.type + ' ' + field['additional-classes']),
|
626 |
-
onChange: this.handleFormFieldChanges,
|
627 |
-
key: 'yikes-mailchimp-field-' + field.merge + '-' + addr_field,
|
628 |
-
value: '',
|
629 |
-
required: field.merge === 'EMAIL' || field.require === '1' ? 'required' : false
|
630 |
-
},
|
631 |
-
Object.keys(_constants2.default.countries).map(function (key) {
|
632 |
-
var choice = _constants2.default.countries[key];
|
633 |
-
return wp.element.createElement(
|
634 |
-
'option',
|
635 |
-
{ key: 'country-' + key, value: key },
|
636 |
-
choice
|
637 |
-
);
|
638 |
-
})
|
639 |
-
);
|
640 |
-
break;
|
641 |
-
}
|
642 |
-
}
|
643 |
-
}, {
|
644 |
-
key: 'get_dropdown_field',
|
645 |
-
value: function get_dropdown_field(field) {
|
646 |
-
return wp.element.createElement(
|
647 |
-
'select',
|
648 |
-
{
|
649 |
-
id: "yikes-easy-mc-form-" + this.props.formID + "-" + field.merge,
|
650 |
-
name: field.merge,
|
651 |
-
className: (0, _classnames2.default)('yikes-easy-mc-' + field.type + ' ' + field['additional-classes']),
|
652 |
-
onChange: this.handleFormFieldChanges,
|
653 |
-
key: 'yikes-mailchimp-field-' + field.merge,
|
654 |
-
value: JSON.parse(field.choices)[field.default_choice],
|
655 |
-
required: field.merge === 'EMAIL' || field.require === '1' ? 'required' : false
|
656 |
-
},
|
657 |
-
Object.keys(JSON.parse(field.choices)).map(function (key) {
|
658 |
-
var choice = JSON.parse(field.choices)[key];
|
659 |
-
return wp.element.createElement(
|
660 |
-
'option',
|
661 |
-
{ key: (0, _slugify2.default)(choice), value: choice },
|
662 |
-
choice
|
663 |
-
);
|
664 |
-
})
|
665 |
-
);
|
666 |
-
}
|
667 |
-
}, {
|
668 |
-
key: 'get_radio_field',
|
669 |
-
value: function get_radio_field(field) {
|
670 |
-
var _this3 = this;
|
671 |
-
|
672 |
-
var ii = 0;
|
673 |
-
|
674 |
-
return JSON.parse(field.choices).map(function (key) {
|
675 |
-
ii++;
|
676 |
-
return wp.element.createElement(
|
677 |
-
'label',
|
678 |
-
{
|
679 |
-
htmlFor: field.merge + '-' + ii,
|
680 |
-
className: 'yikes-easy-mc-checkbox-label',
|
681 |
-
key: field.merge + '-label-radio-key-' + ii
|
682 |
-
},
|
683 |
-
wp.element.createElement('input', {
|
684 |
-
type: 'radio',
|
685 |
-
name: field.merge,
|
686 |
-
id: field.merge + '-' + ii,
|
687 |
-
key: field.merge + '-' + ii + '-input-key',
|
688 |
-
value: key,
|
689 |
-
onChange: _this3.handleFormFieldChanges,
|
690 |
-
checked: parseInt(field.default_choice) === ii - 1
|
691 |
-
}),
|
692 |
-
wp.element.createElement(
|
693 |
-
'span',
|
694 |
-
{ key: field.merge + '-span-radio-key-' + ii, className: (0, _classnames2.default)(field.merge + '-label') },
|
695 |
-
key
|
696 |
-
)
|
697 |
-
);
|
698 |
-
});
|
699 |
-
}
|
700 |
-
}, {
|
701 |
-
key: 'get_url_field',
|
702 |
-
value: function get_url_field(field) {
|
703 |
-
return wp.element.createElement(TextControl, {
|
704 |
-
id: "yikes-easy-mc-form-" + this.props.formID + "-" + field.merge,
|
705 |
-
placeholder: field.placeholder,
|
706 |
-
onChange: this.handleFormFieldChanges,
|
707 |
-
type: 'url',
|
708 |
-
value: field.default,
|
709 |
-
name: field.merge,
|
710 |
-
className: (0, _classnames2.default)('yikes-easy-mc-' + field.type + ' ' + field['additional-classes']),
|
711 |
-
key: 'yikes-mailchimp-field-' + field.merge,
|
712 |
-
required: field.merge === 'EMAIL' || field.require === '1' ? 'required' : false,
|
713 |
-
title: field.type === 'url' ? __('Please enter a valid URL to the website.') : __('Please enter a valid URL to the image.')
|
714 |
-
});
|
715 |
-
}
|
716 |
-
}, {
|
717 |
-
key: 'get_default_field',
|
718 |
-
value: function get_default_field(field) {
|
719 |
-
|
720 |
-
var type = field.type === 'zip' || field.type === 'phone' ? 'text' : field.type;
|
721 |
-
|
722 |
-
return wp.element.createElement(TextControl, {
|
723 |
-
id: "yikes-easy-mc-form-" + this.props.formID + "-" + field.merge,
|
724 |
-
placeholder: field.placeholder,
|
725 |
-
onChange: this.handleFormFieldChanges,
|
726 |
-
type: type,
|
727 |
-
value: field.default,
|
728 |
-
name: field.merge,
|
729 |
-
className: (0, _classnames2.default)('yikes-easy-mc-' + field.type + ' ' + field['additional-classes']),
|
730 |
-
key: 'yikes-mailchimp-field-' + field.merge,
|
731 |
-
required: field.merge === 'EMAIL' || field.require === '1' ? 'required' : false
|
732 |
-
});
|
733 |
-
}
|
734 |
-
}, {
|
735 |
-
key: 'get_date_field',
|
736 |
-
value: function get_date_field(field) {
|
737 |
-
return wp.element.createElement(TextControl, {
|
738 |
-
id: "yikes-easy-mc-form-" + this.props.formID + "-" + field.merge,
|
739 |
-
placeholder: field.placeholder,
|
740 |
-
onChange: this.handleFormFieldChanges,
|
741 |
-
type: 'text',
|
742 |
-
value: field.default,
|
743 |
-
name: field.merge,
|
744 |
-
className: (0, _classnames2.default)('yikes-easy-mc-' + field.type + ' ' + field['additional-classes']),
|
745 |
-
key: 'yikes-mailchimp-field-' + field.merge,
|
746 |
-
required: field.merge === 'EMAIL' || field.require === '1' ? 'required' : false,
|
747 |
-
'data-attr-type': field.type,
|
748 |
-
'data-date-format': field.date_format.toLowerCase()
|
749 |
-
});
|
750 |
-
}
|
751 |
-
}, {
|
752 |
-
key: 'get_radio_interest_group',
|
753 |
-
value: function get_radio_interest_group(field) {
|
754 |
-
var _this4 = this;
|
755 |
-
|
756 |
-
var ii = -1;
|
757 |
-
var cn = "yikes-easy-mc-checkbox-label " + field['additional-classes'];
|
758 |
-
|
759 |
-
return Object.keys(JSON.parse(field.groups)).map(function (key) {
|
760 |
-
var _classNames2;
|
761 |
-
|
762 |
-
var choice = JSON.parse(field.groups)[key];
|
763 |
-
ii++;
|
764 |
-
return wp.element.createElement(
|
765 |
-
'label',
|
766 |
-
{
|
767 |
-
htmlFor: field.group_id + '-' + ii,
|
768 |
-
className: (0, _classnames2.default)((_classNames2 = {}, _defineProperty(_classNames2, cn, true), _defineProperty(_classNames2, 'field-no-label', field['hide-label'] === '1'), _classNames2)),
|
769 |
-
key: field.group_id + '-' + ii + '-label-key'
|
770 |
-
},
|
771 |
-
wp.element.createElement('input', {
|
772 |
-
type: 'radio',
|
773 |
-
name: "group-" + field.group_id + '[]',
|
774 |
-
id: field.group_id + '-' + ii,
|
775 |
-
key: field.group_id + '-' + ii + '-input-key',
|
776 |
-
value: key,
|
777 |
-
onChange: _this4.handleFormFieldChanges,
|
778 |
-
checked: key === field.default_choice,
|
779 |
-
className: (0, _classnames2.default)({ 'yikes-interest-group-required': field.require === '1' })
|
780 |
-
}),
|
781 |
-
choice
|
782 |
-
);
|
783 |
-
});
|
784 |
-
}
|
785 |
-
}, {
|
786 |
-
key: 'get_hidden_interest_group',
|
787 |
-
value: function get_hidden_interest_group(field) {
|
788 |
-
var _this5 = this;
|
789 |
-
|
790 |
-
var ii = -1;
|
791 |
-
|
792 |
-
return Object.keys(JSON.parse(field.groups)).map(function (key) {
|
793 |
-
var choice = JSON.parse(field.groups)[key];
|
794 |
-
ii++;
|
795 |
-
return wp.element.createElement(
|
796 |
-
'label',
|
797 |
-
{
|
798 |
-
htmlFor: field.group_id + '-' + ii,
|
799 |
-
className: (0, _classnames2.default)('yikes-easy-mc-checkbox-label ' + field['additional-classes']),
|
800 |
-
key: field.group_id + '-' + ii + '-label-key'
|
801 |
-
},
|
802 |
-
wp.element.createElement('input', {
|
803 |
-
type: 'checkbox',
|
804 |
-
name: "group-" + field.group_id + '[]',
|
805 |
-
id: field.group_id + '-' + ii,
|
806 |
-
key: field.group_id + '-' + ii + '-input-key',
|
807 |
-
value: key,
|
808 |
-
onChange: _this5.handleFormFieldChanges,
|
809 |
-
checked: field.default_choice && field.default_choice.indexOf(key) !== -1
|
810 |
-
}),
|
811 |
-
choice
|
812 |
-
);
|
813 |
-
});
|
814 |
-
}
|
815 |
-
}, {
|
816 |
-
key: 'get_checkboxes_interest_group',
|
817 |
-
value: function get_checkboxes_interest_group(field) {
|
818 |
-
var _this6 = this;
|
819 |
-
|
820 |
-
var ii = -1;
|
821 |
-
var cn = 'yikes-easy-mc-checkbox-label ' + field['additional-classes'];
|
822 |
-
|
823 |
-
return Object.keys(JSON.parse(field.groups)).map(function (key) {
|
824 |
-
var _classNames3;
|
825 |
-
|
826 |
-
var choice = JSON.parse(field.groups)[key];
|
827 |
-
ii++;
|
828 |
-
return wp.element.createElement(
|
829 |
-
'label',
|
830 |
-
{
|
831 |
-
htmlFor: field.group_id + '-' + ii,
|
832 |
-
className: (0, _classnames2.default)((_classNames3 = {}, _defineProperty(_classNames3, cn, true), _defineProperty(_classNames3, 'field-no-label', field['hide-label'] === '1'), _classNames3)),
|
833 |
-
key: field.group_id + '-' + ii + '-label-key'
|
834 |
-
},
|
835 |
-
wp.element.createElement('input', {
|
836 |
-
className: (0, _classnames2.default)({ 'yikes-interest-group-required': field.require === '1' }),
|
837 |
-
type: 'checkbox',
|
838 |
-
name: 'group-' + field.group_id + '[]',
|
839 |
-
id: field.group_id + '-' + ii,
|
840 |
-
key: field.group_id + '-' + ii + '-input-key',
|
841 |
-
value: key,
|
842 |
-
onChange: _this6.handleFormFieldChanges,
|
843 |
-
checked: typeof field.default_choice !== 'undefined' && field.default_choice.indexOf(key) !== -1,
|
844 |
-
required: field.require === '1' ? 'required' : false
|
845 |
-
}),
|
846 |
-
choice
|
847 |
-
);
|
848 |
-
});
|
849 |
-
}
|
850 |
-
}, {
|
851 |
-
key: 'get_dropdown_interest_group',
|
852 |
-
value: function get_dropdown_interest_group(field) {
|
853 |
-
var ii = -1;
|
854 |
-
|
855 |
-
return wp.element.createElement(
|
856 |
-
'select',
|
857 |
-
{
|
858 |
-
id: "yikes-easy-mc-form-" + this.props.formID + "-" + field.group_id,
|
859 |
-
name: "group-" + field.group_id,
|
860 |
-
className: (0, _classnames2.default)("yikes-easy-mc-dropdown " + field['additional-classes']),
|
861 |
-
value: field.default_choice,
|
862 |
-
onChange: this.handleFormFieldChanges,
|
863 |
-
required: field.require === '1' ? 'required' : false
|
864 |
-
},
|
865 |
-
Object.keys(JSON.parse(field.groups)).map(function (key) {
|
866 |
-
var choice = JSON.parse(field.groups)[key];
|
867 |
-
ii++;
|
868 |
-
return wp.element.createElement(
|
869 |
-
'option',
|
870 |
-
{ key: field.group_id + '-' + ii + '-input-key', value: key },
|
871 |
-
choice
|
872 |
-
);
|
873 |
-
})
|
874 |
-
);
|
875 |
-
}
|
876 |
-
}, {
|
877 |
-
key: 'form_fields',
|
878 |
-
value: function form_fields() {
|
879 |
-
var _this7 = this;
|
880 |
-
|
881 |
-
return this.props.formData && this.props.formData.fields ? Object.keys(this.props.formData.fields).map(function (key) {
|
882 |
-
|
883 |
-
var field = _this7.props.formData.fields[key];
|
884 |
-
|
885 |
-
// Form Fields (aka merge variables)
|
886 |
-
if (typeof field.merge !== 'undefined') {
|
887 |
-
|
888 |
-
var desc = field.description.length > 0 ? wp.element.createElement(
|
889 |
-
'p',
|
890 |
-
{ className: 'form-field-description', id: "form-field-description-" + field.merge, key: "form-field-description-" + field.merge },
|
891 |
-
field.description
|
892 |
-
) : '';
|
893 |
-
|
894 |
-
var label = field['hide-label'] !== '1' ? wp.element.createElement(
|
895 |
-
'span',
|
896 |
-
{ className: (0, _classnames2.default)(field.merge + '-label'), key: field.merge + '-label-span-key' },
|
897 |
-
field.label
|
898 |
-
) : '';
|
899 |
-
|
900 |
-
var classes = { 'yikes-mailchimp-field-required': field.merge === 'EMAIL' || field.require === '1' };
|
901 |
-
classes[field.merge + '-label'] = true;
|
902 |
-
|
903 |
-
if (field.type === 'address') {
|
904 |
-
|
905 |
-
return [field.description_above === '1' && field.description.length > 0 && desc, Object.keys(_this7.address_fields).map(function (addr_field) {
|
906 |
-
label = field['hide-label'] !== '1' ? wp.element.createElement(
|
907 |
-
'span',
|
908 |
-
{ className: (0, _classnames2.default)(field.merge + '-label'), key: field.merge + '-label-span-key-' + addr_field },
|
909 |
-
_this7.address_fields[addr_field]
|
910 |
-
) : '';
|
911 |
-
|
912 |
-
return wp.element.createElement(
|
913 |
-
'label',
|
914 |
-
{
|
915 |
-
htmlFor: "yikes-easy-mc-form-" + _this7.props.formID + "-" + field.merge + '-' + addr_field,
|
916 |
-
className: (0, _classnames2.default)(classes),
|
917 |
-
key: field.merge + '-label-key-' + addr_field,
|
918 |
-
style: field.hide === '1' ? { 'display': 'none' } : {}
|
919 |
-
},
|
920 |
-
label,
|
921 |
-
_this7.get_address_field(addr_field, field)
|
922 |
-
);
|
923 |
-
}), field.description_above !== '1' && field.description.length > 0 && desc];
|
924 |
-
} else {
|
925 |
-
return wp.element.createElement(
|
926 |
-
'label',
|
927 |
-
{
|
928 |
-
htmlFor: "yikes-easy-mc-form-" + _this7.props.formID + "-" + field.merge,
|
929 |
-
className: (0, _classnames2.default)(classes),
|
930 |
-
key: field.merge + '-label-key',
|
931 |
-
style: field.hide === '1' ? { 'display': 'none' } : {}
|
932 |
-
},
|
933 |
-
label,
|
934 |
-
field.description_above === '1' && field.description.length > 0 && desc,
|
935 |
-
field.type === 'dropdown' ? _this7.get_dropdown_field(field) : field.type === 'radio' ? _this7.get_radio_field(field) : field.type === 'url' || field.type === 'imageurl' ? _this7.get_url_field(field) : field.type === 'date' || field.type === 'birthday' ? _this7.get_date_field(field) : _this7.get_default_field(field),
|
936 |
-
field.description_above !== '1' && field.description.length > 0 && desc
|
937 |
-
);
|
938 |
-
}
|
939 |
-
} else {
|
940 |
-
|
941 |
-
var desc = field.description.length > 0 ? wp.element.createElement(
|
942 |
-
'p',
|
943 |
-
{ className: 'form-field-description', id: "form-field-description-" + field.group_id, key: "form-field-description-" + field.group_id },
|
944 |
-
field.description
|
945 |
-
) : '';
|
946 |
-
|
947 |
-
var label = field['hide-label'] !== '1' ? wp.element.createElement(
|
948 |
-
'span',
|
949 |
-
{ key: field.group_id + "-label-span-key", className: (0, _classnames2.default)(field.group_id + "-label checkbox-parent-label") },
|
950 |
-
field.label
|
951 |
-
) : '';
|
952 |
-
|
953 |
-
var classes = { 'yikes-mailchimp-field-required': field.require === '1' };
|
954 |
-
classes[field.group_id + '-label'] = true;
|
955 |
-
|
956 |
-
return wp.element.createElement(
|
957 |
-
'label',
|
958 |
-
{
|
959 |
-
htmlFor: field.group_id,
|
960 |
-
className: (0, _classnames2.default)(classes),
|
961 |
-
key: field.group_id + "-label-span-key",
|
962 |
-
style: field.type === 'hidden' || field.hide === '1' ? { 'display': 'none' } : {}
|
963 |
-
},
|
964 |
-
label,
|
965 |
-
field.description_above === '1' && field.description.length > 0 && desc,
|
966 |
-
field.type === 'radio' ? _this7.get_radio_interest_group(field) : field.type === 'hidden' ? _this7.get_hidden_interest_group(field) : field.type === 'checkboxes' ? _this7.get_checkboxes_interest_group(field) : field.type === 'dropdown' ? _this7.get_dropdown_interest_group(field) : '',
|
967 |
-
field.description_above !== '1' && field.description.length > 0 && desc
|
968 |
-
);
|
969 |
-
}
|
970 |
-
}) : '';
|
971 |
-
}
|
972 |
-
}, {
|
973 |
-
key: 'form_recaptcha',
|
974 |
-
value: function form_recaptcha() {
|
975 |
-
|
976 |
-
return this.state.recaptcha_data.success === true && this.state.recaptcha_data.data.site_key && this.props.recaptcha === true ? wp.element.createElement(Recaptcha, {
|
977 |
-
sitekey: this.state.recaptcha_data.data.site_key,
|
978 |
-
key: 'easy-forms-recaptcha-1',
|
979 |
-
elementID: 'google-recaptcha-id-' + Math.random().toString(36).slice(-8) // Need to use a unique ID for multiple reCAPTCHAs to work on the same page.
|
980 |
-
, theme: this.props.recaptchaTheme,
|
981 |
-
hl: this.props.recaptchaLang.length > 0 ? this.props.recaptchaLang : this.state.recaptcha_data.data.locale,
|
982 |
-
type: this.props.recaptchaType,
|
983 |
-
size: this.props.recaptchaSize,
|
984 |
-
verifyCallback: '',
|
985 |
-
expiredCallback: ''
|
986 |
-
}) : '';
|
987 |
-
}
|
988 |
-
}, {
|
989 |
-
key: 'submit_button',
|
990 |
-
value: function submit_button() {
|
991 |
-
return this.props.formData && this.props.formData.fields ? this.props.focus && this.props.formData.form_settings['yikes-easy-mc-submit-button-type'] === 'text' ? wp.element.createElement(
|
992 |
-
'button',
|
993 |
-
{
|
994 |
-
type: 'submit',
|
995 |
-
key: 'mailchimpSubmitButton',
|
996 |
-
className: (0, _classnames2.default)("yikes-easy-mc-submit-button yikes-easy-mc-submit-button-" + this.props.formID + " btn btn-primary" + " " + this.props.formData.form_settings['yikes-easy-mc-submit-button-classes'])
|
997 |
-
},
|
998 |
-
wp.element.createElement(PlainText, {
|
999 |
-
className: 'yikes-mailchimp-submit-button-span-text',
|
1000 |
-
key: 'yikes-mailchimp-submit-button-span-text',
|
1001 |
-
value: this.props.submitButtonText ? this.props.submitButtonText : '',
|
1002 |
-
onChange: this.props.toggleSubmitButtonText
|
1003 |
-
})
|
1004 |
-
) : this.props.formData.form_settings['yikes-easy-mc-submit-button-type'] === 'text' ? wp.element.createElement(
|
1005 |
-
'button',
|
1006 |
-
{
|
1007 |
-
type: 'submit',
|
1008 |
-
key: 'mailchimpSubmitButton',
|
1009 |
-
className: (0, _classnames2.default)("yikes-easy-mc-submit-button yikes-easy-mc-submit-button-" + this.props.formID + " btn btn-primary" + " " + this.props.formData.form_settings['yikes-easy-mc-submit-button-classes'])
|
1010 |
-
},
|
1011 |
-
wp.element.createElement(
|
1012 |
-
'span',
|
1013 |
-
{ className: 'yikes-mailchimp-submit-button-span-text', key: 'yikes-mailchimp-submit-button-span-text' },
|
1014 |
-
this.props.submitButtonText
|
1015 |
-
)
|
1016 |
-
) : wp.element.createElement('input', {
|
1017 |
-
type: 'image',
|
1018 |
-
alt: this.props.submitButtonText,
|
1019 |
-
src: this.props.formData.form_settings['yikes-easy-mc-submit-button-image'],
|
1020 |
-
className: (0, _classnames2.default)("yikes-easy-mc-submit-button yikes-easy-mc-submit-button-image yikes-easy-mc-submit-button-" + this.props.formID + " btn btn-primary" + " " + this.props.formData.form_settings['yikes-easy-mc-submit-button-classes'])
|
1021 |
-
}) : '';
|
1022 |
-
}
|
1023 |
-
}, {
|
1024 |
-
key: 'get_form_section',
|
1025 |
-
value: function get_form_section() {
|
1026 |
-
return wp.element.createElement(
|
1027 |
-
'section',
|
1028 |
-
{
|
1029 |
-
id: "yikes-mailchimp-container-" + this.props.formID,
|
1030 |
-
className: (0, _classnames2.default)("yikes-mailchimp-container yikes-mailchimp-container-" + this.props.formID),
|
1031 |
-
key: 'yikes-mailchimp-container-section'
|
1032 |
-
},
|
1033 |
-
[
|
1034 |
-
|
1035 |
-
// Form title
|
1036 |
-
[this.form_title()],
|
1037 |
-
|
1038 |
-
// Form Description
|
1039 |
-
[this.form_description()],
|
1040 |
-
|
1041 |
-
// Get the form
|
1042 |
-
[this.get_form()]]
|
1043 |
-
);
|
1044 |
-
}
|
1045 |
-
}, {
|
1046 |
-
key: 'get_form',
|
1047 |
-
value: function get_form() {
|
1048 |
-
return (
|
1049 |
-
// Form Wrapper
|
1050 |
-
wp.element.createElement(
|
1051 |
-
'form',
|
1052 |
-
{
|
1053 |
-
id: (0, _slugify2.default)(this.props.formTitle) + '-' + this.props.formID,
|
1054 |
-
className: (0, _classnames2.default)("yikes-easy-mc-form yikes-easy-mc-form-" + this.props.formID + " " + this.props.formData.form_settings['yikes-easy-mc-form-class-names']),
|
1055 |
-
key: 'yikes-mailchimp-container-form'
|
1056 |
-
},
|
1057 |
-
[
|
1058 |
-
|
1059 |
-
// Form fields
|
1060 |
-
[this.form_fields()],
|
1061 |
-
|
1062 |
-
// Recaptcha
|
1063 |
-
[this.form_recaptcha()],
|
1064 |
-
|
1065 |
-
// Submit button
|
1066 |
-
[this.submit_button()]]
|
1067 |
-
)
|
1068 |
-
);
|
1069 |
-
}
|
1070 |
-
}, {
|
1071 |
-
key: 'render',
|
1072 |
-
value: function render() {
|
1073 |
-
|
1074 |
-
if (this.state.forms.length > 0 && this.props.formData && Object.keys(this.props.formData).length > 0) {
|
1075 |
-
|
1076 |
-
return wp.element.createElement(
|
1077 |
-
'div',
|
1078 |
-
{ className: (0, _classnames2.default)(this.props.className) },
|
1079 |
-
// Show inspector controls when focused
|
1080 |
-
this.props.focus && this.inspector_controls(),
|
1081 |
-
// Show the forms dropdown
|
1082 |
-
this.forms_dropdown(),
|
1083 |
-
wp.element.createElement('hr', { key: 'easy-forms-dropdown-divider' }),
|
1084 |
-
// Show the form
|
1085 |
-
this.get_form_section()
|
1086 |
-
);
|
1087 |
-
} else if (this.state.forms.length > 0) {
|
1088 |
-
|
1089 |
-
// If we don't have form data, show the forms dropdown
|
1090 |
-
return wp.element.createElement(
|
1091 |
-
'div',
|
1092 |
-
{ className: (0, _classnames2.default)(this.props.className) },
|
1093 |
-
this.forms_dropdown()
|
1094 |
-
);
|
1095 |
-
} else if (this.state.api_key_status !== 'valid') {
|
1096 |
-
|
1097 |
-
// If the API key is invalid, show a message.
|
1098 |
-
return wp.element.createElement(
|
1099 |
-
'p',
|
1100 |
-
{ className: 'yikes-mailchimp-api-key-warning', key: 'yikes-mailchimp-api-key-warning' },
|
1101 |
-
wp.element.createElement(
|
1102 |
-
'em',
|
1103 |
-
null,
|
1104 |
-
this.state.api_key_status === 'empty' ? wp.element.createElement(
|
1105 |
-
'a',
|
1106 |
-
{ href: _constants2.default.settings_url },
|
1107 |
-
' ',
|
1108 |
-
__('To use this block, please enter an API key on the Easy Forms\' settings page.'),
|
1109 |
-
' '
|
1110 |
-
) : __('Your API key is invalid.')
|
1111 |
-
)
|
1112 |
-
);
|
1113 |
-
} else if (this.state.forms_loaded === true && this.state.forms.length === 0) {
|
1114 |
-
|
1115 |
-
// No forms.
|
1116 |
-
return wp.element.createElement(
|
1117 |
-
'p',
|
1118 |
-
{ key: 'no-forms-found', className: (0, _classnames2.default)(this.props.className) },
|
1119 |
-
wp.element.createElement(
|
1120 |
-
'em',
|
1121 |
-
null,
|
1122 |
-
__('No forms were found.')
|
1123 |
-
)
|
1124 |
-
);
|
1125 |
-
} else {
|
1126 |
-
|
1127 |
-
// Show loading... & spinner.
|
1128 |
-
return wp.element.createElement(
|
1129 |
-
'p',
|
1130 |
-
{ key: 'loading-easy-forms', className: (0, _classnames2.default)(this.props.className) },
|
1131 |
-
wp.element.createElement(
|
1132 |
-
'span',
|
1133 |
-
{ key: 'yikes-easy-forms-loading-text' },
|
1134 |
-
__('Loading...')
|
1135 |
-
),
|
1136 |
-
wp.element.createElement(Spinner, { key: 'yikes-easy-forms-loading-spinner' })
|
1137 |
-
);
|
1138 |
-
}
|
1139 |
-
}
|
1140 |
-
}]);
|
1141 |
-
|
1142 |
-
return MailchimpForms;
|
1143 |
-
}(Component);
|
1144 |
-
|
1145 |
-
exports.default = MailchimpForms;
|
1146 |
-
|
1147 |
-
/***/ }),
|
1148 |
-
|
1149 |
-
/***/ "./blocks/components/constants.js":
|
1150 |
-
/*!****************************************!*\
|
1151 |
-
!*** ./blocks/components/constants.js ***!
|
1152 |
-
\****************************************/
|
1153 |
-
/*! no static exports found */
|
1154 |
-
/***/ (function(module, exports, __webpack_require__) {
|
1155 |
-
|
1156 |
-
"use strict";
|
1157 |
-
|
1158 |
-
|
1159 |
-
Object.defineProperty(exports, "__esModule", {
|
1160 |
-
value: true
|
1161 |
-
});
|
1162 |
-
var constants = {
|
1163 |
-
states: {
|
1164 |
-
'': '—',
|
1165 |
-
'AL': 'Alabama',
|
1166 |
-
'AK': 'Alaska',
|
1167 |
-
'AZ': 'Arizona',
|
1168 |
-
'AR': 'Arkansas',
|
1169 |
-
'CA': 'California',
|
1170 |
-
'CO': 'Colorado',
|
1171 |
-
'CT': 'Connecticut',
|
1172 |
-
'DE': 'Delaware',
|
1173 |
-
'DC': 'District Of Columbia',
|
1174 |
-
'FL': 'Florida',
|
1175 |
-
'GA': 'Georgia',
|
1176 |
-
'HI': 'Hawaii',
|
1177 |
-
'ID': 'Idaho',
|
1178 |
-
'IL': 'Illinois',
|
1179 |
-
'IN': 'Indiana',
|
1180 |
-
'IA': 'Iowa',
|
1181 |
-
'KS': 'Kansas',
|
1182 |
-
'KY': 'Kentucky',
|
1183 |
-
'LA': 'Louisiana',
|
1184 |
-
'ME': 'Maine',
|
1185 |
-
'MD': 'Maryland',
|
1186 |
-
'MA': 'Massachusetts',
|
1187 |
-
'MI': 'Michigan',
|
1188 |
-
'MN': 'Minnesota',
|
1189 |
-
'MS': 'Mississippi',
|
1190 |
-
'MO': 'Missouri',
|
1191 |
-
'MT': 'Montana',
|
1192 |
-
'NE': 'Nebraska',
|
1193 |
-
'NV': 'Nevada',
|
1194 |
-
'NH': 'New Hampshire',
|
1195 |
-
'NJ': 'New Jersey',
|
1196 |
-
'NM': 'New Mexico',
|
1197 |
-
'NY': 'New York',
|
1198 |
-
'NC': 'North Carolina',
|
1199 |
-
'ND': 'North Dakota',
|
1200 |
-
'OH': 'Ohio',
|
1201 |
-
'OK': 'Oklahoma',
|
1202 |
-
'OR': 'Oregon',
|
1203 |
-
'PA': 'Pennsylvania',
|
1204 |
-
'RI': 'Rhode Island',
|
1205 |
-
'SC': 'South Carolina',
|
1206 |
-
'SD': 'South Dakota',
|
1207 |
-
'TN': 'Tennessee',
|
1208 |
-
'TX': 'Texas',
|
1209 |
-
'UT': 'Utah',
|
1210 |
-
'VT': 'Vermont',
|
1211 |
-
'VA': 'Virginia',
|
1212 |
-
'WA': 'Washington',
|
1213 |
-
'WV': 'West Virginia',
|
1214 |
-
'WI': 'Wisconsin',
|
1215 |
-
'WY': 'Wyoming',
|
1216 |
-
'AB': 'Alberta',
|
1217 |
-
'BC': 'British Columbia',
|
1218 |
-
'MB': 'Manitoba',
|
1219 |
-
'NB': 'New Brunswick',
|
1220 |
-
'NL': 'Newfoundland and Labrador',
|
1221 |
-
'NS': 'Nova Scotia',
|
1222 |
-
'ON': 'Ontario',
|
1223 |
-
'PE': 'Prince Edward Island',
|
1224 |
-
'QC': 'Quebec',
|
1225 |
-
'SK': 'Saskatchewan',
|
1226 |
-
'NT': 'Northwest Territories',
|
1227 |
-
'NU': 'Nunavut',
|
1228 |
-
'YT': 'Yukon'
|
1229 |
-
},
|
1230 |
-
countries: {
|
1231 |
-
'US': 'United States',
|
1232 |
-
'GB': 'United Kingdom',
|
1233 |
-
'AF': 'Afghanistan',
|
1234 |
-
'AX': 'Aland Islands',
|
1235 |
-
'AL': 'Albania',
|
1236 |
-
'DZ': 'Algeria',
|
1237 |
-
'AS': 'American Samoa',
|
1238 |
-
'AD': 'Andorra',
|
1239 |
-
'AO': 'Angola',
|
1240 |
-
'AI': 'Anguilla',
|
1241 |
-
'AQ': 'Antarctica',
|
1242 |
-
'AG': 'Antigua and Barbuda',
|
1243 |
-
'AR': 'Argentina',
|
1244 |
-
'AM': 'Armenia',
|
1245 |
-
'AW': 'Aruba',
|
1246 |
-
'AU': 'Australia',
|
1247 |
-
'AT': 'Austria',
|
1248 |
-
'AZ': 'Azerbaijan',
|
1249 |
-
'BS': 'Bahamas',
|
1250 |
-
'BH': 'Bahrain',
|
1251 |
-
'BD': 'Bangladesh',
|
1252 |
-
'BB': 'Barbados',
|
1253 |
-
'BY': 'Belarus',
|
1254 |
-
'BE': 'Belgium',
|
1255 |
-
'BZ': 'Belize',
|
1256 |
-
'BJ': 'Benin',
|
1257 |
-
'BM': 'Bermuda',
|
1258 |
-
'BT': 'Bhutan',
|
1259 |
-
'BO': 'Bolivia',
|
1260 |
-
'BA': 'Bosnia and Herzegovina',
|
1261 |
-
'BW': 'Botswana',
|
1262 |
-
'BV': 'Bouvet Island',
|
1263 |
-
'BR': 'Brazil',
|
1264 |
-
'IO': 'British Indian Ocean Territory',
|
1265 |
-
'BN': 'Brunei Darussalam',
|
1266 |
-
'BG': 'Bulgaria',
|
1267 |
-
'BF': 'Burkina Faso',
|
1268 |
-
'BI': 'Burundi',
|
1269 |
-
'KH': 'Cambodia',
|
1270 |
-
'CM': 'Cameroon',
|
1271 |
-
'CA': 'Canada',
|
1272 |
-
'CV': 'Cape Verde',
|
1273 |
-
'KY': 'Cayman Islands',
|
1274 |
-
'CF': 'Central African Republic',
|
1275 |
-
'TD': 'Chad',
|
1276 |
-
'CL': 'Chile',
|
1277 |
-
'CN': 'China',
|
1278 |
-
'CX': 'Christmas Island',
|
1279 |
-
'CC': 'Cocos (Keeling) Islands',
|
1280 |
-
'CO': 'Colombia',
|
1281 |
-
'KM': 'Comoros',
|
1282 |
-
'CG': 'Congo',
|
1283 |
-
'CD': 'Congo, The Democratic Republic of The',
|
1284 |
-
'CK': 'Cook Islands',
|
1285 |
-
'CR': 'Costa Rica',
|
1286 |
-
'CI': 'Cote D’ivoire',
|
1287 |
-
'HR': 'Croatia',
|
1288 |
-
'CU': 'Cuba',
|
1289 |
-
'CY': 'Cyprus',
|
1290 |
-
'CZ': 'Czech Republic',
|
1291 |
-
'DK': 'Denmark',
|
1292 |
-
'DJ': 'Djibouti',
|
1293 |
-
'DM': 'Dominica',
|
1294 |
-
'DO': 'Dominican Republic',
|
1295 |
-
'EC': 'Ecuador',
|
1296 |
-
'EG': 'Egypt',
|
1297 |
-
'SV': 'El Salvador',
|
1298 |
-
'GQ': 'Equatorial Guinea',
|
1299 |
-
'ER': 'Eritrea',
|
1300 |
-
'EE': 'Estonia',
|
1301 |
-
'ET': 'Ethiopia',
|
1302 |
-
'FK': 'Falkland Islands (Malvinas)',
|
1303 |
-
'FO': 'Faroe Islands',
|
1304 |
-
'FJ': 'Fiji',
|
1305 |
-
'FI': 'Finland',
|
1306 |
-
'FR': 'France',
|
1307 |
-
'GF': 'French Guiana',
|
1308 |
-
'PF': 'French Polynesia',
|
1309 |
-
'TF': 'French Southern Territories',
|
1310 |
-
'GA': 'Gabon',
|
1311 |
-
'GM': 'Gambia',
|
1312 |
-
'GE': 'Georgia',
|
1313 |
-
'DE': 'Germany',
|
1314 |
-
'GH': 'Ghana',
|
1315 |
-
'GI': 'Gibraltar',
|
1316 |
-
'GR': 'Greece',
|
1317 |
-
'GL': 'Greenland',
|
1318 |
-
'GD': 'Grenada',
|
1319 |
-
'GP': 'Guadeloupe',
|
1320 |
-
'GU': 'Guam',
|
1321 |
-
'GT': 'Guatemala',
|
1322 |
-
'GG': 'Guernsey',
|
1323 |
-
'GN': 'Guinea',
|
1324 |
-
'GW': 'Guinea-bissau',
|
1325 |
-
'GY': 'Guyana',
|
1326 |
-
'HT': 'Haiti',
|
1327 |
-
'HM': 'Heard Island and Mcdonald Islands',
|
1328 |
-
'VA': 'Holy See (Vatican City State)',
|
1329 |
-
'HN': 'Honduras',
|
1330 |
-
'HK': 'Hong Kong',
|
1331 |
-
'HU': 'Hungary',
|
1332 |
-
'IS': 'Iceland',
|
1333 |
-
'IN': 'India',
|
1334 |
-
'ID': 'Indonesia',
|
1335 |
-
'IR': 'Iran, Islamic Republic of',
|
1336 |
-
'IQ': 'Iraq',
|
1337 |
-
'IE': 'Ireland',
|
1338 |
-
'IM': 'Isle of Man',
|
1339 |
-
'IL': 'Israel',
|
1340 |
-
'IT': 'Italy',
|
1341 |
-
'JM': 'Jamaica',
|
1342 |
-
'JP': 'Japan',
|
1343 |
-
'JE': 'Jersey',
|
1344 |
-
'JO': 'Jordan',
|
1345 |
-
'KZ': 'Kazakhstan',
|
1346 |
-
'KE': 'Kenya',
|
1347 |
-
'KI': 'Kiribati',
|
1348 |
-
'KP': 'Korea, Democratic People’s Republic of',
|
1349 |
-
'KR': 'Korea, Republic of',
|
1350 |
-
'KW': 'Kuwait',
|
1351 |
-
'KG': 'Kyrgyzstan',
|
1352 |
-
'LA': 'Lao People’s Democratic Republic',
|
1353 |
-
'LV': 'Latvia',
|
1354 |
-
'LB': 'Lebanon',
|
1355 |
-
'LS': 'Lesotho',
|
1356 |
-
'LR': 'Liberia',
|
1357 |
-
'LY': 'Libyan Arab Jamahiriya',
|
1358 |
-
'LI': 'Liechtenstein',
|
1359 |
-
'LT': 'Lithuania',
|
1360 |
-
'LU': 'Luxembourg',
|
1361 |
-
'MO': 'Macao',
|
1362 |
-
'MK': 'Macedonia, The Former Yugoslav Republic of',
|
1363 |
-
'MG': 'Madagascar',
|
1364 |
-
'MW': 'Malawi',
|
1365 |
-
'MY': 'Malaysia',
|
1366 |
-
'MV': 'Maldives',
|
1367 |
-
'ML': 'Mali',
|
1368 |
-
'MT': 'Malta',
|
1369 |
-
'MH': 'Marshall Islands',
|
1370 |
-
'MQ': 'Martinique',
|
1371 |
-
'MR': 'Mauritania',
|
1372 |
-
'MU': 'Mauritius',
|
1373 |
-
'YT': 'Mayotte',
|
1374 |
-
'MX': 'Mexico',
|
1375 |
-
'FM': 'Micronesia, Federated States of',
|
1376 |
-
'MD': 'Moldova, Republic of',
|
1377 |
-
'MC': 'Monaco',
|
1378 |
-
'MN': 'Mongolia',
|
1379 |
-
'ME': 'Montenegro',
|
1380 |
-
'MS': 'Montserrat',
|
1381 |
-
'MA': 'Morocco',
|
1382 |
-
'MZ': 'Mozambique',
|
1383 |
-
'MM': 'Myanmar',
|
1384 |
-
'NA': 'Namibia',
|
1385 |
-
'NR': 'Nauru',
|
1386 |
-
'NP': 'Nepal',
|
1387 |
-
'NL': 'Netherlands',
|
1388 |
-
'AN': 'Netherlands Antilles',
|
1389 |
-
'NC': 'New Caledonia',
|
1390 |
-
'NZ': 'New Zealand',
|
1391 |
-
'NI': 'Nicaragua',
|
1392 |
-
'NE': 'Niger',
|
1393 |
-
'NG': 'Nigeria',
|
1394 |
-
'NU': 'Niue',
|
1395 |
-
'NF': 'Norfolk Island',
|
1396 |
-
'MP': 'Northern Mariana Islands',
|
1397 |
-
'NO': 'Norway',
|
1398 |
-
'OM': 'Oman',
|
1399 |
-
'PK': 'Pakistan',
|
1400 |
-
'PW': 'Palau',
|
1401 |
-
'PS': 'Palestinian Territory, Occupied',
|
1402 |
-
'PA': 'Panama',
|
1403 |
-
'PG': 'Papua New Guinea',
|
1404 |
-
'PY': 'Paraguay',
|
1405 |
-
'PE': 'Peru',
|
1406 |
-
'PH': 'Philippines',
|
1407 |
-
'PN': 'Pitcairn',
|
1408 |
-
'PL': 'Poland',
|
1409 |
-
'PT': 'Portugal',
|
1410 |
-
'PR': 'Puerto Rico',
|
1411 |
-
'QA': 'Qatar',
|
1412 |
-
'RE': 'Reunion',
|
1413 |
-
'RO': 'Romania',
|
1414 |
-
'RU': 'Russian Federation',
|
1415 |
-
'RW': 'Rwanda',
|
1416 |
-
'SH': 'Saint Helena',
|
1417 |
-
'KN': 'Saint Kitts and Nevis',
|
1418 |
-
'LC': 'Saint Lucia',
|
1419 |
-
'PM': 'Saint Pierre and Miquelon',
|
1420 |
-
'VC': 'Saint Vincent and The Grenadines',
|
1421 |
-
'WS': 'Samoa',
|
1422 |
-
'SM': 'San Marino',
|
1423 |
-
'ST': 'Sao Tome and Principe',
|
1424 |
-
'SA': 'Saudi Arabia',
|
1425 |
-
'SN': 'Senegal',
|
1426 |
-
'RS': 'Serbia',
|
1427 |
-
'SC': 'Seychelles',
|
1428 |
-
'SL': 'Sierra Leone',
|
1429 |
-
'SG': 'Singapore',
|
1430 |
-
'SK': 'Slovakia',
|
1431 |
-
'SI': 'Slovenia',
|
1432 |
-
'SB': 'Solomon Islands',
|
1433 |
-
'SO': 'Somalia',
|
1434 |
-
'ZA': 'South Africa',
|
1435 |
-
'GS': 'South Georgia and The South Sandwich Islands',
|
1436 |
-
'ES': 'Spain',
|
1437 |
-
'LK': 'Sri Lanka',
|
1438 |
-
'SD': 'Sudan',
|
1439 |
-
'SR': 'Suriname',
|
1440 |
-
'SJ': 'Svalbard and Jan Mayen',
|
1441 |
-
'SZ': 'Swaziland',
|
1442 |
-
'SE': 'Sweden',
|
1443 |
-
'CH': 'Switzerland',
|
1444 |
-
'SY': 'Syrian Arab Republic',
|
1445 |
-
'TW': 'Taiwan, Province of China',
|
1446 |
-
'TJ': 'Tajikistan',
|
1447 |
-
'TZ': 'Tanzania, United Republic of',
|
1448 |
-
'TH': 'Thailand',
|
1449 |
-
'TL': 'Timor-leste',
|
1450 |
-
'TG': 'Togo',
|
1451 |
-
'TK': 'Tokelau',
|
1452 |
-
'TO': 'Tonga',
|
1453 |
-
'TT': 'Trinidad and Tobago',
|
1454 |
-
'TN': 'Tunisia',
|
1455 |
-
'TR': 'Turkey',
|
1456 |
-
'TM': 'Turkmenistan',
|
1457 |
-
'TC': 'Turks and Caicos Islands',
|
1458 |
-
'TV': 'Tuvalu',
|
1459 |
-
'UG': 'Uganda',
|
1460 |
-
'UA': 'Ukraine',
|
1461 |
-
'AE': 'United Arab Emirates',
|
1462 |
-
'UM': 'United States Minor Outlying Islands',
|
1463 |
-
'UY': 'Uruguay',
|
1464 |
-
'UZ': 'Uzbekistan',
|
1465 |
-
'VU': 'Vanuatu',
|
1466 |
-
'VE': 'Venezuela',
|
1467 |
-
'VN': 'Viet Nam',
|
1468 |
-
'VG': 'Virgin Islands, British',
|
1469 |
-
'VI': 'Virgin Islands, U.S.',
|
1470 |
-
'WF': 'Wallis and Futuna',
|
1471 |
-
'EH': 'Western Sahara',
|
1472 |
-
'YE': 'Yemen',
|
1473 |
-
'ZM': 'Zambia',
|
1474 |
-
'ZW': 'Zimbabwe'
|
1475 |
-
},
|
1476 |
-
locales: {
|
1477 |
-
"ar": "Arabic",
|
1478 |
-
"af": "Afrikaans",
|
1479 |
-
"am": "Amharic",
|
1480 |
-
"hy": "Armenian",
|
1481 |
-
"az": "Azerbaijani",
|
1482 |
-
"eu": "Basque",
|
1483 |
-
"bn": "Bengali",
|
1484 |
-
"bg": "Bulgarian",
|
1485 |
-
"ca": "Catalan",
|
1486 |
-
"zh-HK": "Chinese (Hong Kong)",
|
1487 |
-
"zh-CN": "Chinese (Simplified)",
|
1488 |
-
"zh-TW": "Chinese (Traditional)",
|
1489 |
-
"hr": "Croatian",
|
1490 |
-
"cs": "Czech",
|
1491 |
-
"da": "Danish",
|
1492 |
-
"nl": "Dutch",
|
1493 |
-
"en-GB": "English (UK)",
|
1494 |
-
"en": "English (US)",
|
1495 |
-
"et": "Estonian",
|
1496 |
-
"fil": "Filipino",
|
1497 |
-
"fi": "Finnish",
|
1498 |
-
"fr": "French",
|
1499 |
-
"fr-CA": "French (Canadian)",
|
1500 |
-
"gl": "Galician",
|
1501 |
-
"ka": "Georgian",
|
1502 |
-
"de": "German",
|
1503 |
-
"de-AT": "German (Austria)",
|
1504 |
-
"de-CH": "German (Switzerland)",
|
1505 |
-
"el": "Greek",
|
1506 |
-
"gu": "Gujarati",
|
1507 |
-
"iw": "Hebrew",
|
1508 |
-
"hi": "Hindi",
|
1509 |
-
"hu": "Hungarain",
|
1510 |
-
"is": "Icelandic",
|
1511 |
-
"id": "Indonesian",
|
1512 |
-
"it": "Italian",
|
1513 |
-
"ja": "Japanese",
|
1514 |
-
"kn": "Kannada",
|
1515 |
-
"ko": "Korean",
|
1516 |
-
"lo": "Laothian",
|
1517 |
-
"lv": "Latvian",
|
1518 |
-
"lt": "Lithuanian",
|
1519 |
-
"ms": "Malay",
|
1520 |
-
"ml": "Malayalam",
|
1521 |
-
"mr": "Marathi",
|
1522 |
-
"mn": "Mongolian",
|
1523 |
-
"no": "Norwegian",
|
1524 |
-
"fa": "Persian",
|
1525 |
-
"pl": "Polish",
|
1526 |
-
"pt": "Portuguese",
|
1527 |
-
"pt-BR": "Portuguese (Brazil)",
|
1528 |
-
"pt-PT": "Portuguese (Portugal)",
|
1529 |
-
"ro": "Romanian",
|
1530 |
-
"ru": "Russian",
|
1531 |
-
"sr": "Serbian",
|
1532 |
-
"si": "Sinhalese",
|
1533 |
-
"sk": "Slovak",
|
1534 |
-
"sl": "Slovenian",
|
1535 |
-
"es": "Spanish",
|
1536 |
-
"es-419": "Spanish (Latin America)",
|
1537 |
-
"sw": "Swahili",
|
1538 |
-
"sv": "Swedish",
|
1539 |
-
"ta": "Tamil",
|
1540 |
-
"te": "Telugu",
|
1541 |
-
"th": "Thai",
|
1542 |
-
"tr": "Turkish",
|
1543 |
-
"uk": "Ukrainian",
|
1544 |
-
"ur": "Urdu",
|
1545 |
-
"vi": "Vietnamese",
|
1546 |
-
"zu": "Zulu"
|
1547 |
-
},
|
1548 |
-
settings_url: 'wp-admin/admin.php?page=yikes-inc-easy-mailchimp-settings'
|
1549 |
-
};
|
1550 |
-
|
1551 |
-
exports.default = constants;
|
1552 |
-
|
1553 |
-
/***/ }),
|
1554 |
-
|
1555 |
-
/***/ "./blocks/components/enable-submit-button-editing.js":
|
1556 |
-
/*!***********************************************************!*\
|
1557 |
-
!*** ./blocks/components/enable-submit-button-editing.js ***!
|
1558 |
-
\***********************************************************/
|
1559 |
-
/*! no static exports found */
|
1560 |
-
/***/ (function(module, exports, __webpack_require__) {
|
1561 |
-
|
1562 |
-
"use strict";
|
1563 |
-
|
1564 |
-
|
1565 |
-
(function ($) {
|
1566 |
-
|
1567 |
-
$(document).ready(function () {
|
1568 |
-
|
1569 |
-
$('body').on('click', '.yikes-easy-mc-submit-button', function (event) {
|
1570 |
-
event.preventDefault();
|
1571 |
-
event.stopPropagation();
|
1572 |
-
$('.yikes-mailchimp-submit-button-span-text').focus();
|
1573 |
-
});
|
1574 |
-
|
1575 |
-
$('body').on('click', '.yikes-mailchimp-submit-button-span-text', function (event) {
|
1576 |
-
event.preventDefault();
|
1577 |
-
event.stopPropagation();
|
1578 |
-
});
|
1579 |
-
});
|
1580 |
-
})(jQuery);
|
1581 |
-
|
1582 |
-
/***/ }),
|
1583 |
-
|
1584 |
-
/***/ "./blocks/components/slugify.js":
|
1585 |
-
/*!**************************************!*\
|
1586 |
-
!*** ./blocks/components/slugify.js ***!
|
1587 |
-
\**************************************/
|
1588 |
-
/*! no static exports found */
|
1589 |
-
/***/ (function(module, exports, __webpack_require__) {
|
1590 |
-
|
1591 |
-
"use strict";
|
1592 |
-
|
1593 |
-
|
1594 |
-
Object.defineProperty(exports, "__esModule", {
|
1595 |
-
value: true
|
1596 |
-
});
|
1597 |
-
exports.default = slugify;
|
1598 |
-
/*
|
1599 |
-
* This should have the same effect as WP/PHP's `sanitize_title()` function
|
1600 |
-
*
|
1601 |
-
* Source: https://gist.github.com/mathewbyrne/1280286
|
1602 |
-
*/
|
1603 |
-
function slugify(text) {
|
1604 |
-
|
1605 |
-
// Use hash map for special characters
|
1606 |
-
var specialChars = { "à": 'a', "ä": 'a', "á": 'a', "â": 'a', "æ": 'a', "å": 'a', "ë": 'e', "è": 'e', "é": 'e', "ê": 'e', "î": 'i', "ï": 'i', "ì": 'i', "í": 'i', "ò": 'o', "ó": 'o', "ö": 'o', "ô": 'o', "ø": 'o', "ù": 'o', "ú": 'u', "ü": 'u', "û": 'u', "ñ": 'n', "ç": 'c', "ß": 's', "ÿ": 'y', "œ": 'o', "ŕ": 'r', "ś": 's', "ń": 'n', "ṕ": 'p', "ẃ": 'w', "ǵ": 'g', "ǹ": 'n', "ḿ": 'm', "ǘ": 'u', "ẍ": 'x', "ź": 'z', "ḧ": 'h', "·": '-', "/": '-', "_": '-', ",": '-', ":": '-', ";": '-' };
|
1607 |
-
|
1608 |
-
return text.toString().toLowerCase().replace(/\s+/g, '-') // Replace spaces with -
|
1609 |
-
.replace(/./g, function (target, index, str) {
|
1610 |
-
return specialChars[target] || target;
|
1611 |
-
}) // Replace special characters using the hash map
|
1612 |
-
.replace(/&/g, '-and-') // Replace & with 'and'
|
1613 |
-
.replace(/[^\w\-]+/g, '') // Remove all non-word chars
|
1614 |
-
.replace(/\-\-+/g, '-') // Replace multiple - with single -
|
1615 |
-
.replace(/^-+/, '') // Trim - from start of text
|
1616 |
-
.replace(/-+$/, ''); // Trim - from end of text
|
1617 |
-
};
|
1618 |
-
|
1619 |
-
/***/ }),
|
1620 |
-
|
1621 |
-
/***/ "./blocks/easy-forms-block/dev-easy-forms-block.js":
|
1622 |
-
/*!*********************************************************!*\
|
1623 |
-
!*** ./blocks/easy-forms-block/dev-easy-forms-block.js ***!
|
1624 |
-
\*********************************************************/
|
1625 |
-
/*! no static exports found */
|
1626 |
-
/***/ (function(module, exports, __webpack_require__) {
|
1627 |
-
|
1628 |
-
"use strict";
|
1629 |
-
|
1630 |
-
|
1631 |
-
var _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
1632 |
-
|
1633 |
-
var _classnames2 = _interopRequireDefault(_classnames);
|
1634 |
-
|
1635 |
-
var _api = __webpack_require__(/*! ../components/api.js */ "./blocks/components/api.js");
|
1636 |
-
|
1637 |
-
var _api2 = _interopRequireDefault(_api);
|
1638 |
-
|
1639 |
-
var _classMailchimpForms = __webpack_require__(/*! ../components/class.MailchimpForms.js */ "./blocks/components/class.MailchimpForms.js");
|
1640 |
-
|
1641 |
-
var _classMailchimpForms2 = _interopRequireDefault(_classMailchimpForms);
|
1642 |
-
|
1643 |
-
__webpack_require__(/*! ./easy-forms-block.scss */ "./blocks/easy-forms-block/easy-forms-block.scss");
|
1644 |
-
|
1645 |
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
1646 |
-
|
1647 |
-
__webpack_require__(/*! ../components/enable-submit-button-editing.js */ "./blocks/components/enable-submit-button-editing.js");
|
1648 |
-
|
1649 |
-
// Get just the __() localization function from wp.i18n
|
1650 |
-
var __ = wp.i18n.__;
|
1651 |
-
|
1652 |
-
// Get registerBlockType and other methods from wp.blocks
|
1653 |
-
|
1654 |
-
var registerBlockType = wp.blocks.registerBlockType;
|
1655 |
-
|
1656 |
-
|
1657 |
-
var edit_easy_form = function edit_easy_form(props) {
|
1658 |
-
|
1659 |
-
var onChangeForm = function onChangeForm(event) {
|
1660 |
-
props.setAttributes({ form_id: event.target.value });
|
1661 |
-
|
1662 |
-
if (event.target.value.length > 0) {
|
1663 |
-
var api = new _api2.default();
|
1664 |
-
api.get_form(event.target.value).then(function (form) {
|
1665 |
-
props.setAttributes({ form: form.data });
|
1666 |
-
props.setAttributes({ form_description: form.data.form_description });
|
1667 |
-
props.setAttributes({ form_title: form.data.form_name });
|
1668 |
-
props.setAttributes({ is_ajax: form.data.submission_settings.ajax === '1' });
|
1669 |
-
props.setAttributes({ submit_button_text: form.data.form_settings['yikes-easy-mc-submit-button-text'] });
|
1670 |
-
});
|
1671 |
-
}
|
1672 |
-
};
|
1673 |
-
|
1674 |
-
var onChangeDescription = function onChangeDescription(value) {
|
1675 |
-
props.setAttributes({ form_description: value });
|
1676 |
-
};
|
1677 |
-
|
1678 |
-
var toggleShowDescription = function toggleShowDescription(event) {
|
1679 |
-
props.setAttributes({ show_description: !!event.target.checked });
|
1680 |
-
};
|
1681 |
-
|
1682 |
-
var toggleInline = function toggleInline(event) {
|
1683 |
-
props.setAttributes({ inline: !!event.target.checked });
|
1684 |
-
};
|
1685 |
-
|
1686 |
-
var toggleShowTitle = function toggleShowTitle(event) {
|
1687 |
-
props.setAttributes({ show_title: !!event.target.checked });
|
1688 |
-
};
|
1689 |
-
|
1690 |
-
var toggleFormTitle = function toggleFormTitle(value) {
|
1691 |
-
props.setAttributes({ form_title: value });
|
1692 |
-
};
|
1693 |
-
|
1694 |
-
var toggleIsAjax = function toggleIsAjax(event) {
|
1695 |
-
props.setAttributes({ is_ajax: !!event.target.checked });
|
1696 |
-
};
|
1697 |
-
|
1698 |
-
/* Allow this function to be called via a checkbox handler or directly by passing in a boolean */
|
1699 |
-
var toggleRecaptchaAbstract = function toggleRecaptchaAbstract(checked) {
|
1700 |
-
props.setAttributes({ recaptcha: checked });
|
1701 |
-
};
|
1702 |
-
|
1703 |
-
var toggleRecaptcha = function toggleRecaptcha(event) {
|
1704 |
-
toggleRecaptchaAbstract(!!event.target.checked);
|
1705 |
-
};
|
1706 |
-
|
1707 |
-
var toggleRecaptchaTheme = function toggleRecaptchaTheme(value) {
|
1708 |
-
props.setAttributes({ recaptcha_theme: value });
|
1709 |
-
};
|
1710 |
-
|
1711 |
-
var toggleRecaptchaLang = function toggleRecaptchaLang(value) {
|
1712 |
-
props.setAttributes({ recaptcha_lang: value });
|
1713 |
-
};
|
1714 |
-
|
1715 |
-
var toggleRecaptchaType = function toggleRecaptchaType(value) {
|
1716 |
-
props.setAttributes({ recaptcha_type: value });
|
1717 |
-
};
|
1718 |
-
|
1719 |
-
var toggleRecaptchaSize = function toggleRecaptchaSize(value) {
|
1720 |
-
props.setAttributes({ recaptcha_size: value });
|
1721 |
-
};
|
1722 |
-
|
1723 |
-
var toggleRecaptchaVerifyCallback = function toggleRecaptchaVerifyCallback(value) {
|
1724 |
-
props.setAttributes({ recaptcha_verify_callback: value });
|
1725 |
-
};
|
1726 |
-
|
1727 |
-
var toggleRecaptchaExpiredCallback = function toggleRecaptchaExpiredCallback(value) {
|
1728 |
-
props.setAttributes({ recaptcha_expired_callback: value });
|
1729 |
-
};
|
1730 |
-
|
1731 |
-
var toggleSubmitButtonText = function toggleSubmitButtonText(value) {
|
1732 |
-
props.setAttributes({ submit_button_text: value });
|
1733 |
-
};
|
1734 |
-
|
1735 |
-
return wp.element.createElement(_classMailchimpForms2.default, {
|
1736 |
-
className: (0, _classnames2.default)(props.className),
|
1737 |
-
onChangeForm: onChangeForm,
|
1738 |
-
formID: props.attributes.form_id,
|
1739 |
-
formData: props.attributes.form,
|
1740 |
-
onChangeDescription: onChangeDescription,
|
1741 |
-
descriptionValue: props.attributes.form_description,
|
1742 |
-
showDescription: props.attributes.show_description,
|
1743 |
-
toggleShowDescription: toggleShowDescription,
|
1744 |
-
focus: !!props.isSelected,
|
1745 |
-
inline: props.attributes.inline,
|
1746 |
-
toggleInline: toggleInline,
|
1747 |
-
formTitle: props.attributes.form_title,
|
1748 |
-
toggleFormTitle: toggleFormTitle,
|
1749 |
-
showTitle: props.attributes.show_title,
|
1750 |
-
toggleShowTitle: toggleShowTitle,
|
1751 |
-
isAjax: props.attributes.is_ajax,
|
1752 |
-
toggleIsAjax: toggleIsAjax,
|
1753 |
-
toggleRecaptchaAbstract: toggleRecaptchaAbstract,
|
1754 |
-
recaptcha: props.attributes.recaptcha,
|
1755 |
-
toggleRecaptcha: toggleRecaptcha,
|
1756 |
-
recaptchaTheme: props.attributes.recaptcha_theme,
|
1757 |
-
toggleRecaptchaTheme: toggleRecaptchaTheme,
|
1758 |
-
recaptchaLang: props.attributes.recaptcha_lang,
|
1759 |
-
toggleRecaptchaLang: toggleRecaptchaLang,
|
1760 |
-
recaptchaType: props.attributes.recaptcha_type,
|
1761 |
-
toggleRecaptchaType: toggleRecaptchaType,
|
1762 |
-
recaptchaSize: props.attributes.recaptcha_size,
|
1763 |
-
toggleRecaptchaSize: toggleRecaptchaSize,
|
1764 |
-
recaptchaVerifyCallback: props.attributes.recaptcha_verify_callback,
|
1765 |
-
toggleRecaptchaVerifyCallback: toggleRecaptchaVerifyCallback,
|
1766 |
-
recaptchaExpiredCallback: props.attributes.recaptcha_expired_callback,
|
1767 |
-
toggleRecaptchaExpiredCallback: toggleRecaptchaExpiredCallback,
|
1768 |
-
submitButtonText: props.attributes.submit_button_text,
|
1769 |
-
toggleSubmitButtonText: toggleSubmitButtonText
|
1770 |
-
});
|
1771 |
-
};
|
1772 |
-
|
1773 |
-
var save_easy_form = function save_easy_form(props) {
|
1774 |
-
return null;
|
1775 |
-
};
|
1776 |
-
|
1777 |
-
var settings = {
|
1778 |
-
title: __('Easy Forms for Mailchimp'),
|
1779 |
-
category: 'common', // Options include "common", "formatting", "layout", "widgets" and "embed."
|
1780 |
-
icon: 'email-alt',
|
1781 |
-
keywords: ['mailchimp', 'easy forms for mailchimp', 'yikes'],
|
1782 |
-
attributes: {
|
1783 |
-
form_id: {
|
1784 |
-
type: 'string',
|
1785 |
-
default: ''
|
1786 |
-
},
|
1787 |
-
form: {
|
1788 |
-
type: 'object'
|
1789 |
-
},
|
1790 |
-
form_description: {
|
1791 |
-
type: 'string',
|
1792 |
-
default: ''
|
1793 |
-
},
|
1794 |
-
show_description: {
|
1795 |
-
type: 'boolean',
|
1796 |
-
default: false
|
1797 |
-
},
|
1798 |
-
inline: {
|
1799 |
-
type: 'boolean',
|
1800 |
-
default: false
|
1801 |
-
},
|
1802 |
-
show_title: {
|
1803 |
-
type: 'boolean',
|
1804 |
-
default: false
|
1805 |
-
},
|
1806 |
-
form_title: {
|
1807 |
-
type: 'string',
|
1808 |
-
default: ''
|
1809 |
-
},
|
1810 |
-
is_ajax: {
|
1811 |
-
type: 'boolean',
|
1812 |
-
default: true
|
1813 |
-
},
|
1814 |
-
recaptcha: {
|
1815 |
-
type: 'boolean',
|
1816 |
-
default: false
|
1817 |
-
},
|
1818 |
-
recaptcha_theme: {
|
1819 |
-
type: 'string',
|
1820 |
-
default: 'light'
|
1821 |
-
},
|
1822 |
-
recaptcha_lang: {
|
1823 |
-
type: 'string',
|
1824 |
-
default: ''
|
1825 |
-
},
|
1826 |
-
recaptcha_type: {
|
1827 |
-
type: 'string',
|
1828 |
-
default: 'image'
|
1829 |
-
},
|
1830 |
-
recaptcha_size: {
|
1831 |
-
type: 'string',
|
1832 |
-
default: 'normal'
|
1833 |
-
},
|
1834 |
-
recaptcha_verify_callback: {
|
1835 |
-
type: 'string',
|
1836 |
-
default: ''
|
1837 |
-
},
|
1838 |
-
recaptcha_expired_callback: {
|
1839 |
-
type: 'string',
|
1840 |
-
default: ''
|
1841 |
-
},
|
1842 |
-
submit_button_text: {
|
1843 |
-
type: 'string',
|
1844 |
-
default: ''
|
1845 |
-
}
|
1846 |
-
},
|
1847 |
-
edit: edit_easy_form,
|
1848 |
-
save: save_easy_form
|
1849 |
-
};
|
1850 |
-
|
1851 |
-
var EasyFormsBlock = registerBlockType(
|
1852 |
-
|
1853 |
-
// Name
|
1854 |
-
ez_forms_gb_data.block_namespace + ez_forms_gb_data.block_name,
|
1855 |
-
|
1856 |
-
// Settings
|
1857 |
-
settings);
|
1858 |
-
|
1859 |
-
/***/ }),
|
1860 |
-
|
1861 |
-
/***/ "./blocks/easy-forms-block/easy-forms-block.scss":
|
1862 |
-
/*!*******************************************************!*\
|
1863 |
-
!*** ./blocks/easy-forms-block/easy-forms-block.scss ***!
|
1864 |
-
\*******************************************************/
|
1865 |
-
/*! no static exports found */
|
1866 |
-
/***/ (function(module, exports, __webpack_require__) {
|
1867 |
-
|
1868 |
-
|
1869 |
-
var content = __webpack_require__(/*! !../../node_modules/css-loader!../../node_modules/sass-loader/lib/loader.js!./easy-forms-block.scss */ "./node_modules/css-loader/index.js!./node_modules/sass-loader/lib/loader.js!./blocks/easy-forms-block/easy-forms-block.scss");
|
1870 |
-
|
1871 |
-
if(typeof content === 'string') content = [[module.i, content, '']];
|
1872 |
-
|
1873 |
-
var transform;
|
1874 |
-
var insertInto;
|
1875 |
-
|
1876 |
-
|
1877 |
-
|
1878 |
-
var options = {"hmr":true}
|
1879 |
-
|
1880 |
-
options.transform = transform
|
1881 |
-
options.insertInto = undefined;
|
1882 |
-
|
1883 |
-
var update = __webpack_require__(/*! ../../node_modules/style-loader/lib/addStyles.js */ "./node_modules/style-loader/lib/addStyles.js")(content, options);
|
1884 |
-
|
1885 |
-
if(content.locals) module.exports = content.locals;
|
1886 |
-
|
1887 |
-
if(false) {}
|
1888 |
-
|
1889 |
-
/***/ }),
|
1890 |
-
|
1891 |
-
/***/ "./blocks/index.js":
|
1892 |
-
/*!*************************!*\
|
1893 |
-
!*** ./blocks/index.js ***!
|
1894 |
-
\*************************/
|
1895 |
-
/*! no static exports found */
|
1896 |
-
/***/ (function(module, exports, __webpack_require__) {
|
1897 |
-
|
1898 |
-
"use strict";
|
1899 |
-
|
1900 |
-
|
1901 |
-
__webpack_require__(/*! ./easy-forms-block/dev-easy-forms-block.js */ "./blocks/easy-forms-block/dev-easy-forms-block.js");
|
1902 |
-
|
1903 |
-
/***/ }),
|
1904 |
-
|
1905 |
-
/***/ "./node_modules/classnames/index.js":
|
1906 |
-
/*!******************************************!*\
|
1907 |
-
!*** ./node_modules/classnames/index.js ***!
|
1908 |
-
\******************************************/
|
1909 |
-
/*! no static exports found */
|
1910 |
-
/***/ (function(module, exports, __webpack_require__) {
|
1911 |
-
|
1912 |
-
"use strict";
|
1913 |
-
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
|
1914 |
-
|
1915 |
-
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
1916 |
-
|
1917 |
-
/*!
|
1918 |
-
Copyright (c) 2017 Jed Watson.
|
1919 |
-
Licensed under the MIT License (MIT), see
|
1920 |
-
http://jedwatson.github.io/classnames
|
1921 |
-
*/
|
1922 |
-
/* global define */
|
1923 |
-
|
1924 |
-
(function () {
|
1925 |
-
'use strict';
|
1926 |
-
|
1927 |
-
var hasOwn = {}.hasOwnProperty;
|
1928 |
-
|
1929 |
-
function classNames() {
|
1930 |
-
var classes = [];
|
1931 |
-
|
1932 |
-
for (var i = 0; i < arguments.length; i++) {
|
1933 |
-
var arg = arguments[i];
|
1934 |
-
if (!arg) continue;
|
1935 |
-
|
1936 |
-
var argType = typeof arg === 'undefined' ? 'undefined' : _typeof(arg);
|
1937 |
-
|
1938 |
-
if (argType === 'string' || argType === 'number') {
|
1939 |
-
classes.push(arg);
|
1940 |
-
} else if (Array.isArray(arg) && arg.length) {
|
1941 |
-
var inner = classNames.apply(null, arg);
|
1942 |
-
if (inner) {
|
1943 |
-
classes.push(inner);
|
1944 |
-
}
|
1945 |
-
} else if (argType === 'object') {
|
1946 |
-
for (var key in arg) {
|
1947 |
-
if (hasOwn.call(arg, key) && arg[key]) {
|
1948 |
-
classes.push(key);
|
1949 |
-
}
|
1950 |
-
}
|
1951 |
-
}
|
1952 |
-
}
|
1953 |
-
|
1954 |
-
return classes.join(' ');
|
1955 |
-
}
|
1956 |
-
|
1957 |
-
if (typeof module !== 'undefined' && module.exports) {
|
1958 |
-
classNames.default = classNames;
|
1959 |
-
module.exports = classNames;
|
1960 |
-
} else if ("function" === 'function' && _typeof(__webpack_require__(/*! !webpack amd options */ "./node_modules/webpack/buildin/amd-options.js")) === 'object' && __webpack_require__(/*! !webpack amd options */ "./node_modules/webpack/buildin/amd-options.js")) {
|
1961 |
-
// register as 'classnames', consistent with npm package name
|
1962 |
-
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {
|
1963 |
-
return classNames;
|
1964 |
-
}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
|
1965 |
-
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
|
1966 |
-
} else {
|
1967 |
-
window.classNames = classNames;
|
1968 |
-
}
|
1969 |
-
})();
|
1970 |
-
|
1971 |
-
/***/ }),
|
1972 |
-
|
1973 |
-
/***/ "./node_modules/css-loader/index.js!./node_modules/sass-loader/lib/loader.js!./blocks/easy-forms-block/easy-forms-block.scss":
|
1974 |
-
/*!**************************************************************************************************************************!*\
|
1975 |
-
!*** ./node_modules/css-loader!./node_modules/sass-loader/lib/loader.js!./blocks/easy-forms-block/easy-forms-block.scss ***!
|
1976 |
-
\**************************************************************************************************************************/
|
1977 |
-
/*! no static exports found */
|
1978 |
-
/***/ (function(module, exports, __webpack_require__) {
|
1979 |
-
|
1980 |
-
exports = module.exports = __webpack_require__(/*! ../../node_modules/css-loader/lib/css-base.js */ "./node_modules/css-loader/lib/css-base.js")(false);
|
1981 |
-
// imports
|
1982 |
-
|
1983 |
-
|
1984 |
-
// module
|
1985 |
-
exports.push([module.i, ".wp-block-yikes-inc-easy-forms-easy-forms-block textarea.yikes-mailchimp-submit-button-span-text {\n background: none;\n text-align: center; }\n\n.wp-block-yikes-inc-easy-forms-easy-forms-block select {\n height: auto; }\n", ""]);
|
1986 |
-
|
1987 |
-
// exports
|
1988 |
-
|
1989 |
-
|
1990 |
-
/***/ }),
|
1991 |
-
|
1992 |
-
/***/ "./node_modules/css-loader/lib/css-base.js":
|
1993 |
-
/*!*************************************************!*\
|
1994 |
-
!*** ./node_modules/css-loader/lib/css-base.js ***!
|
1995 |
-
\*************************************************/
|
1996 |
-
/*! no static exports found */
|
1997 |
-
/***/ (function(module, exports, __webpack_require__) {
|
1998 |
-
|
1999 |
-
"use strict";
|
2000 |
-
|
2001 |
-
|
2002 |
-
/*
|
2003 |
-
MIT License http://www.opensource.org/licenses/mit-license.php
|
2004 |
-
Author Tobias Koppers @sokra
|
2005 |
-
*/
|
2006 |
-
// css base code, injected by the css-loader
|
2007 |
-
module.exports = function (useSourceMap) {
|
2008 |
-
var list = [];
|
2009 |
-
|
2010 |
-
// return the list of modules as css string
|
2011 |
-
list.toString = function toString() {
|
2012 |
-
return this.map(function (item) {
|
2013 |
-
var content = cssWithMappingToString(item, useSourceMap);
|
2014 |
-
if (item[2]) {
|
2015 |
-
return "@media " + item[2] + "{" + content + "}";
|
2016 |
-
} else {
|
2017 |
-
return content;
|
2018 |
-
}
|
2019 |
-
}).join("");
|
2020 |
-
};
|
2021 |
-
|
2022 |
-
// import a list of modules into the list
|
2023 |
-
list.i = function (modules, mediaQuery) {
|
2024 |
-
if (typeof modules === "string") modules = [[null, modules, ""]];
|
2025 |
-
var alreadyImportedModules = {};
|
2026 |
-
for (var i = 0; i < this.length; i++) {
|
2027 |
-
var id = this[i][0];
|
2028 |
-
if (typeof id === "number") alreadyImportedModules[id] = true;
|
2029 |
-
}
|
2030 |
-
for (i = 0; i < modules.length; i++) {
|
2031 |
-
var item = modules[i];
|
2032 |
-
// skip already imported module
|
2033 |
-
// this implementation is not 100% perfect for weird media query combinations
|
2034 |
-
// when a module is imported multiple times with different media queries.
|
2035 |
-
// I hope this will never occur (Hey this way we have smaller bundles)
|
2036 |
-
if (typeof item[0] !== "number" || !alreadyImportedModules[item[0]]) {
|
2037 |
-
if (mediaQuery && !item[2]) {
|
2038 |
-
item[2] = mediaQuery;
|
2039 |
-
} else if (mediaQuery) {
|
2040 |
-
item[2] = "(" + item[2] + ") and (" + mediaQuery + ")";
|
2041 |
-
}
|
2042 |
-
list.push(item);
|
2043 |
-
}
|
2044 |
-
}
|
2045 |
-
};
|
2046 |
-
return list;
|
2047 |
-
};
|
2048 |
-
|
2049 |
-
function cssWithMappingToString(item, useSourceMap) {
|
2050 |
-
var content = item[1] || '';
|
2051 |
-
var cssMapping = item[3];
|
2052 |
-
if (!cssMapping) {
|
2053 |
-
return content;
|
2054 |
-
}
|
2055 |
-
|
2056 |
-
if (useSourceMap && typeof btoa === 'function') {
|
2057 |
-
var sourceMapping = toComment(cssMapping);
|
2058 |
-
var sourceURLs = cssMapping.sources.map(function (source) {
|
2059 |
-
return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */';
|
2060 |
-
});
|
2061 |
-
|
2062 |
-
return [content].concat(sourceURLs).concat([sourceMapping]).join('\n');
|
2063 |
-
}
|
2064 |
-
|
2065 |
-
return [content].join('\n');
|
2066 |
-
}
|
2067 |
-
|
2068 |
-
// Adapted from convert-source-map (MIT)
|
2069 |
-
function toComment(sourceMap) {
|
2070 |
-
// eslint-disable-next-line no-undef
|
2071 |
-
var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));
|
2072 |
-
var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;
|
2073 |
-
|
2074 |
-
return '/*# ' + data + ' */';
|
2075 |
-
}
|
2076 |
-
|
2077 |
-
/***/ }),
|
2078 |
-
|
2079 |
-
/***/ "./node_modules/object-assign/index.js":
|
2080 |
-
/*!*********************************************!*\
|
2081 |
-
!*** ./node_modules/object-assign/index.js ***!
|
2082 |
-
\*********************************************/
|
2083 |
-
/*! no static exports found */
|
2084 |
-
/***/ (function(module, exports, __webpack_require__) {
|
2085 |
-
|
2086 |
-
"use strict";
|
2087 |
-
/*
|
2088 |
-
object-assign
|
2089 |
-
(c) Sindre Sorhus
|
2090 |
-
@license MIT
|
2091 |
-
*/
|
2092 |
-
|
2093 |
-
|
2094 |
-
/* eslint-disable no-unused-vars */
|
2095 |
-
|
2096 |
-
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
2097 |
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
2098 |
-
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
2099 |
-
|
2100 |
-
function toObject(val) {
|
2101 |
-
if (val === null || val === undefined) {
|
2102 |
-
throw new TypeError('Object.assign cannot be called with null or undefined');
|
2103 |
-
}
|
2104 |
-
|
2105 |
-
return Object(val);
|
2106 |
-
}
|
2107 |
-
|
2108 |
-
function shouldUseNative() {
|
2109 |
-
try {
|
2110 |
-
if (!Object.assign) {
|
2111 |
-
return false;
|
2112 |
-
}
|
2113 |
-
|
2114 |
-
// Detect buggy property enumeration order in older V8 versions.
|
2115 |
-
|
2116 |
-
// https://bugs.chromium.org/p/v8/issues/detail?id=4118
|
2117 |
-
var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
|
2118 |
-
test1[5] = 'de';
|
2119 |
-
if (Object.getOwnPropertyNames(test1)[0] === '5') {
|
2120 |
-
return false;
|
2121 |
-
}
|
2122 |
-
|
2123 |
-
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
2124 |
-
var test2 = {};
|
2125 |
-
for (var i = 0; i < 10; i++) {
|
2126 |
-
test2['_' + String.fromCharCode(i)] = i;
|
2127 |
-
}
|
2128 |
-
var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
|
2129 |
-
return test2[n];
|
2130 |
-
});
|
2131 |
-
if (order2.join('') !== '0123456789') {
|
2132 |
-
return false;
|
2133 |
-
}
|
2134 |
-
|
2135 |
-
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
2136 |
-
var test3 = {};
|
2137 |
-
'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
|
2138 |
-
test3[letter] = letter;
|
2139 |
-
});
|
2140 |
-
if (Object.keys(Object.assign({}, test3)).join('') !== 'abcdefghijklmnopqrst') {
|
2141 |
-
return false;
|
2142 |
-
}
|
2143 |
-
|
2144 |
-
return true;
|
2145 |
-
} catch (err) {
|
2146 |
-
// We don't expect any of the above to throw, but better to be safe.
|
2147 |
-
return false;
|
2148 |
-
}
|
2149 |
-
}
|
2150 |
-
|
2151 |
-
module.exports = shouldUseNative() ? Object.assign : function (target, source) {
|
2152 |
-
var from;
|
2153 |
-
var to = toObject(target);
|
2154 |
-
var symbols;
|
2155 |
-
|
2156 |
-
for (var s = 1; s < arguments.length; s++) {
|
2157 |
-
from = Object(arguments[s]);
|
2158 |
-
|
2159 |
-
for (var key in from) {
|
2160 |
-
if (hasOwnProperty.call(from, key)) {
|
2161 |
-
to[key] = from[key];
|
2162 |
-
}
|
2163 |
-
}
|
2164 |
-
|
2165 |
-
if (getOwnPropertySymbols) {
|
2166 |
-
symbols = getOwnPropertySymbols(from);
|
2167 |
-
for (var i = 0; i < symbols.length; i++) {
|
2168 |
-
if (propIsEnumerable.call(from, symbols[i])) {
|
2169 |
-
to[symbols[i]] = from[symbols[i]];
|
2170 |
-
}
|
2171 |
-
}
|
2172 |
-
}
|
2173 |
-
}
|
2174 |
-
|
2175 |
-
return to;
|
2176 |
-
};
|
2177 |
-
|
2178 |
-
/***/ }),
|
2179 |
-
|
2180 |
-
/***/ "./node_modules/prop-types/checkPropTypes.js":
|
2181 |
-
/*!***************************************************!*\
|
2182 |
-
!*** ./node_modules/prop-types/checkPropTypes.js ***!
|
2183 |
-
\***************************************************/
|
2184 |
-
/*! no static exports found */
|
2185 |
-
/***/ (function(module, exports, __webpack_require__) {
|
2186 |
-
|
2187 |
-
"use strict";
|
2188 |
-
/**
|
2189 |
-
* Copyright (c) 2013-present, Facebook, Inc.
|
2190 |
-
*
|
2191 |
-
* This source code is licensed under the MIT license found in the
|
2192 |
-
* LICENSE file in the root directory of this source tree.
|
2193 |
-
*/
|
2194 |
-
|
2195 |
-
|
2196 |
-
|
2197 |
-
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
2198 |
-
|
2199 |
-
var printWarning = function printWarning() {};
|
2200 |
-
|
2201 |
-
if (true) {
|
2202 |
-
var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "./node_modules/prop-types/lib/ReactPropTypesSecret.js");
|
2203 |
-
var loggedTypeFailures = {};
|
2204 |
-
|
2205 |
-
printWarning = function printWarning(text) {
|
2206 |
-
var message = 'Warning: ' + text;
|
2207 |
-
if (typeof console !== 'undefined') {
|
2208 |
-
console.error(message);
|
2209 |
-
}
|
2210 |
-
try {
|
2211 |
-
// --- Welcome to debugging React ---
|
2212 |
-
// This error was thrown as a convenience so that you can use this stack
|
2213 |
-
// to find the callsite that caused this warning to fire.
|
2214 |
-
throw new Error(message);
|
2215 |
-
} catch (x) {}
|
2216 |
-
};
|
2217 |
-
}
|
2218 |
-
|
2219 |
-
/**
|
2220 |
-
* Assert that the values match with the type specs.
|
2221 |
-
* Error messages are memorized and will only be shown once.
|
2222 |
-
*
|
2223 |
-
* @param {object} typeSpecs Map of name to a ReactPropType
|
2224 |
-
* @param {object} values Runtime values that need to be type-checked
|
2225 |
-
* @param {string} location e.g. "prop", "context", "child context"
|
2226 |
-
* @param {string} componentName Name of the component for error messages.
|
2227 |
-
* @param {?Function} getStack Returns the component stack.
|
2228 |
-
* @private
|
2229 |
-
*/
|
2230 |
-
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
2231 |
-
if (true) {
|
2232 |
-
for (var typeSpecName in typeSpecs) {
|
2233 |
-
if (typeSpecs.hasOwnProperty(typeSpecName)) {
|
2234 |
-
var error;
|
2235 |
-
// Prop type validation may throw. In case they do, we don't want to
|
2236 |
-
// fail the render phase where it didn't fail before. So we log it.
|
2237 |
-
// After these have been cleaned up, we'll let them throw.
|
2238 |
-
try {
|
2239 |
-
// This is intentionally an invariant that gets caught. It's the same
|
2240 |
-
// behavior as without this statement except with a better message.
|
2241 |
-
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
2242 |
-
var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + _typeof(typeSpecs[typeSpecName]) + '`.');
|
2243 |
-
err.name = 'Invariant Violation';
|
2244 |
-
throw err;
|
2245 |
-
}
|
2246 |
-
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
|
2247 |
-
} catch (ex) {
|
2248 |
-
error = ex;
|
2249 |
-
}
|
2250 |
-
if (error && !(error instanceof Error)) {
|
2251 |
-
printWarning((componentName || 'React class') + ': type specification of ' + location + ' `' + typeSpecName + '` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a ' + (typeof error === 'undefined' ? 'undefined' : _typeof(error)) + '. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).');
|
2252 |
-
}
|
2253 |
-
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
2254 |
-
// Only monitor this failure once because there tends to be a lot of the
|
2255 |
-
// same error.
|
2256 |
-
loggedTypeFailures[error.message] = true;
|
2257 |
-
|
2258 |
-
var stack = getStack ? getStack() : '';
|
2259 |
-
|
2260 |
-
printWarning('Failed ' + location + ' type: ' + error.message + (stack != null ? stack : ''));
|
2261 |
-
}
|
2262 |
-
}
|
2263 |
-
}
|
2264 |
-
}
|
2265 |
-
}
|
2266 |
-
|
2267 |
-
module.exports = checkPropTypes;
|
2268 |
-
|
2269 |
-
/***/ }),
|
2270 |
-
|
2271 |
-
/***/ "./node_modules/prop-types/lib/ReactPropTypesSecret.js":
|
2272 |
-
/*!*************************************************************!*\
|
2273 |
-
!*** ./node_modules/prop-types/lib/ReactPropTypesSecret.js ***!
|
2274 |
-
\*************************************************************/
|
2275 |
-
/*! no static exports found */
|
2276 |
-
/***/ (function(module, exports, __webpack_require__) {
|
2277 |
-
|
2278 |
-
"use strict";
|
2279 |
-
/**
|
2280 |
-
* Copyright (c) 2013-present, Facebook, Inc.
|
2281 |
-
*
|
2282 |
-
* This source code is licensed under the MIT license found in the
|
2283 |
-
* LICENSE file in the root directory of this source tree.
|
2284 |
-
*/
|
2285 |
-
|
2286 |
-
|
2287 |
-
|
2288 |
-
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
2289 |
-
|
2290 |
-
module.exports = ReactPropTypesSecret;
|
2291 |
-
|
2292 |
-
/***/ }),
|
2293 |
-
|
2294 |
-
/***/ "./node_modules/react-recaptcha/dist/react-recaptcha.js":
|
2295 |
-
/*!**************************************************************!*\
|
2296 |
-
!*** ./node_modules/react-recaptcha/dist/react-recaptcha.js ***!
|
2297 |
-
\**************************************************************/
|
2298 |
-
/*! no static exports found */
|
2299 |
-
/***/ (function(module, exports, __webpack_require__) {
|
2300 |
-
|
2301 |
-
"use strict";
|
2302 |
-
/* WEBPACK VAR INJECTION */(function(module) {var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
|
2303 |
-
|
2304 |
-
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
2305 |
-
|
2306 |
-
!function (e, t) {
|
2307 |
-
"object" == ( false ? undefined : _typeof(exports)) && "object" == ( false ? undefined : _typeof(module)) ? module.exports = t(__webpack_require__(/*! react */ "./node_modules/react/index.js")) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! react */ "./node_modules/react/index.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (t),
|
2308 |
-
__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
|
2309 |
-
(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
|
2310 |
-
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
|
2311 |
-
}(undefined, function (e) {
|
2312 |
-
return function (e) {
|
2313 |
-
function t(r) {
|
2314 |
-
if (a[r]) return a[r].exports;var n = a[r] = { exports: {}, id: r, loaded: !1 };return e[r].call(n.exports, n, n.exports, t), n.loaded = !0, n.exports;
|
2315 |
-
}var a = {};return t.m = e, t.c = a, t.p = "", t(0);
|
2316 |
-
}([function (e, t, a) {
|
2317 |
-
"use strict";
|
2318 |
-
function r(e) {
|
2319 |
-
return e && e.__esModule ? e : { default: e };
|
2320 |
-
}function n(e, t) {
|
2321 |
-
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
2322 |
-
}function o(e, t) {
|
2323 |
-
if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return !t || "object" != (typeof t === "undefined" ? "undefined" : _typeof(t)) && "function" != typeof t ? e : t;
|
2324 |
-
}function i(e, t) {
|
2325 |
-
if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + (typeof t === "undefined" ? "undefined" : _typeof(t)));e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);
|
2326 |
-
}Object.defineProperty(t, "__esModule", { value: !0 });var l = function () {
|
2327 |
-
function e(e, t) {
|
2328 |
-
for (var a = 0; a < t.length; a++) {
|
2329 |
-
var r = t[a];r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
|
2330 |
-
}
|
2331 |
-
}return function (t, a, r) {
|
2332 |
-
return a && e(t.prototype, a), r && e(t, r), t;
|
2333 |
-
};
|
2334 |
-
}(),
|
2335 |
-
s = a(6),
|
2336 |
-
c = r(s),
|
2337 |
-
p = a(4),
|
2338 |
-
u = r(p),
|
2339 |
-
d = { className: u.default.string, onloadCallbackName: u.default.string, elementID: u.default.string, onloadCallback: u.default.func, verifyCallback: u.default.func, expiredCallback: u.default.func, render: u.default.oneOf(["onload", "explicit"]), sitekey: u.default.string, theme: u.default.oneOf(["light", "dark"]), type: u.default.string, verifyCallbackName: u.default.string, expiredCallbackName: u.default.string, size: u.default.oneOf(["invisible", "compact", "normal"]), tabindex: u.default.string, hl: u.default.string, badge: u.default.oneOf(["bottomright", "bottomleft", "inline"]) },
|
2340 |
-
f = { elementID: "g-recaptcha", className: "g-recaptcha", onloadCallback: void 0, onloadCallbackName: "onloadCallback", verifyCallback: void 0, verifyCallbackName: "verifyCallback", expiredCallback: void 0, expiredCallbackName: "expiredCallback", render: "onload", theme: "light", type: "image", size: "normal", tabindex: "0", hl: "en", badge: "bottomright" },
|
2341 |
-
h = function h() {
|
2342 |
-
return "undefined" != typeof window && "undefined" != typeof window.grecaptcha && "function" == typeof window.grecaptcha.render;
|
2343 |
-
},
|
2344 |
-
y = void 0,
|
2345 |
-
b = function (e) {
|
2346 |
-
function t(e) {
|
2347 |
-
n(this, t);var a = o(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e));return a._renderGrecaptcha = a._renderGrecaptcha.bind(a), a.reset = a.reset.bind(a), a.state = { ready: h(), widget: null }, a.state.ready || "undefined" == typeof window || (y = setInterval(a._updateReadyState.bind(a), 1e3)), a;
|
2348 |
-
}return i(t, e), l(t, [{ key: "componentDidMount", value: function value() {
|
2349 |
-
this.state.ready && this._renderGrecaptcha();
|
2350 |
-
} }, { key: "componentDidUpdate", value: function value(e, t) {
|
2351 |
-
var a = this.props,
|
2352 |
-
r = a.render,
|
2353 |
-
n = a.onloadCallback;"explicit" === r && n && this.state.ready && !t.ready && this._renderGrecaptcha();
|
2354 |
-
} }, { key: "componentWillUnmount", value: function value() {
|
2355 |
-
clearInterval(y);
|
2356 |
-
} }, { key: "reset", value: function value() {
|
2357 |
-
var e = this.state,
|
2358 |
-
t = e.ready,
|
2359 |
-
a = e.widget;t && null !== a && grecaptcha.reset(a);
|
2360 |
-
} }, { key: "execute", value: function value() {
|
2361 |
-
var e = this.state,
|
2362 |
-
t = e.ready,
|
2363 |
-
a = e.widget;t && null !== a && grecaptcha.execute(a);
|
2364 |
-
} }, { key: "_updateReadyState", value: function value() {
|
2365 |
-
h() && (this.setState({ ready: !0 }), clearInterval(y));
|
2366 |
-
} }, { key: "_renderGrecaptcha", value: function value() {
|
2367 |
-
this.state.widget = grecaptcha.render(this.props.elementID, { sitekey: this.props.sitekey, callback: this.props.verifyCallback ? this.props.verifyCallback : void 0, theme: this.props.theme, type: this.props.type, size: this.props.size, tabindex: this.props.tabindex, hl: this.props.hl, badge: this.props.badge, "expired-callback": this.props.expiredCallback ? this.props.expiredCallback : void 0 }), this.props.onloadCallback && this.props.onloadCallback();
|
2368 |
-
} }, { key: "render", value: function value() {
|
2369 |
-
return "explicit" === this.props.render && this.props.onloadCallback ? c.default.createElement("div", { id: this.props.elementID, "data-onloadcallbackname": this.props.onloadCallbackName, "data-verifycallbackname": this.props.verifyCallbackName }) : c.default.createElement("div", { id: this.props.elementID, className: this.props.className, "data-sitekey": this.props.sitekey, "data-theme": this.props.theme, "data-type": this.props.type, "data-size": this.props.size, "data-badge": this.props.badge, "data-tabindex": this.props.tabindex });
|
2370 |
-
} }]), t;
|
2371 |
-
}(s.Component);t.default = b, b.propTypes = d, b.defaultProps = f, e.exports = t.default;
|
2372 |
-
}, function (e, t) {
|
2373 |
-
"use strict";
|
2374 |
-
function a(e) {
|
2375 |
-
return function () {
|
2376 |
-
return e;
|
2377 |
-
};
|
2378 |
-
}var r = function r() {};r.thatReturns = a, r.thatReturnsFalse = a(!1), r.thatReturnsTrue = a(!0), r.thatReturnsNull = a(null), r.thatReturnsThis = function () {
|
2379 |
-
return this;
|
2380 |
-
}, r.thatReturnsArgument = function (e) {
|
2381 |
-
return e;
|
2382 |
-
}, e.exports = r;
|
2383 |
-
}, function (e, t, a) {
|
2384 |
-
"use strict";
|
2385 |
-
function r(e, t, a, r, o, i, l, s) {
|
2386 |
-
if (n(t), !e) {
|
2387 |
-
var c;if (void 0 === t) c = new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else {
|
2388 |
-
var p = [a, r, o, i, l, s],
|
2389 |
-
u = 0;c = new Error(t.replace(/%s/g, function () {
|
2390 |
-
return p[u++];
|
2391 |
-
})), c.name = "Invariant Violation";
|
2392 |
-
}throw c.framesToPop = 1, c;
|
2393 |
-
}
|
2394 |
-
}var n = function n(e) {};e.exports = r;
|
2395 |
-
}, function (e, t, a) {
|
2396 |
-
"use strict";
|
2397 |
-
var r = a(1),
|
2398 |
-
n = a(2),
|
2399 |
-
o = a(5);e.exports = function () {
|
2400 |
-
function e(e, t, a, r, i, l) {
|
2401 |
-
l !== o && n(!1, "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");
|
2402 |
-
}function t() {
|
2403 |
-
return e;
|
2404 |
-
}e.isRequired = e;var a = { array: e, bool: e, func: e, number: e, object: e, string: e, symbol: e, any: e, arrayOf: t, element: e, instanceOf: t, node: e, objectOf: t, oneOf: t, oneOfType: t, shape: t };return a.checkPropTypes = r, a.PropTypes = a, a;
|
2405 |
-
};
|
2406 |
-
}, function (e, t, a) {
|
2407 |
-
e.exports = a(3)();
|
2408 |
-
}, function (e, t) {
|
2409 |
-
"use strict";
|
2410 |
-
var a = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports = a;
|
2411 |
-
}, function (t, a) {
|
2412 |
-
t.exports = e;
|
2413 |
-
}]);
|
2414 |
-
});
|
2415 |
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/module.js */ "./node_modules/webpack/buildin/module.js")(module)))
|
2416 |
-
|
2417 |
-
/***/ }),
|
2418 |
-
|
2419 |
-
/***/ "./node_modules/react/cjs/react.development.js":
|
2420 |
-
/*!*****************************************************!*\
|
2421 |
-
!*** ./node_modules/react/cjs/react.development.js ***!
|
2422 |
-
\*****************************************************/
|
2423 |
-
/*! no static exports found */
|
2424 |
-
/***/ (function(module, exports, __webpack_require__) {
|
2425 |
-
|
2426 |
-
"use strict";
|
2427 |
-
/** @license React v16.6.0
|
2428 |
-
* react.development.js
|
2429 |
-
*
|
2430 |
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
2431 |
-
*
|
2432 |
-
* This source code is licensed under the MIT license found in the
|
2433 |
-
* LICENSE file in the root directory of this source tree.
|
2434 |
-
*/
|
2435 |
-
|
2436 |
-
|
2437 |
-
|
2438 |
-
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
2439 |
-
|
2440 |
-
if (true) {
|
2441 |
-
(function () {
|
2442 |
-
'use strict';
|
2443 |
-
|
2444 |
-
var _assign = __webpack_require__(/*! object-assign */ "./node_modules/object-assign/index.js");
|
2445 |
-
var checkPropTypes = __webpack_require__(/*! prop-types/checkPropTypes */ "./node_modules/prop-types/checkPropTypes.js");
|
2446 |
-
|
2447 |
-
// TODO: this is special because it gets imported during build.
|
2448 |
-
|
2449 |
-
var ReactVersion = '16.6.0';
|
2450 |
-
|
2451 |
-
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
2452 |
-
// nor polyfill, then a plain number is used for performance.
|
2453 |
-
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
2454 |
-
|
2455 |
-
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
2456 |
-
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
2457 |
-
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
2458 |
-
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
2459 |
-
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
2460 |
-
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
2461 |
-
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
|
2462 |
-
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
2463 |
-
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
2464 |
-
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
2465 |
-
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
2466 |
-
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
2467 |
-
|
2468 |
-
var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
2469 |
-
var FAUX_ITERATOR_SYMBOL = '@@iterator';
|
2470 |
-
|
2471 |
-
function getIteratorFn(maybeIterable) {
|
2472 |
-
if (maybeIterable === null || (typeof maybeIterable === 'undefined' ? 'undefined' : _typeof(maybeIterable)) !== 'object') {
|
2473 |
-
return null;
|
2474 |
-
}
|
2475 |
-
var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
|
2476 |
-
if (typeof maybeIterator === 'function') {
|
2477 |
-
return maybeIterator;
|
2478 |
-
}
|
2479 |
-
return null;
|
2480 |
-
}
|
2481 |
-
|
2482 |
-
/**
|
2483 |
-
* Use invariant() to assert state which your program assumes to be true.
|
2484 |
-
*
|
2485 |
-
* Provide sprintf-style format (only %s is supported) and arguments
|
2486 |
-
* to provide information about what broke and what you were
|
2487 |
-
* expecting.
|
2488 |
-
*
|
2489 |
-
* The invariant message will be stripped in production, but the invariant
|
2490 |
-
* will remain to ensure logic does not differ in production.
|
2491 |
-
*/
|
2492 |
-
|
2493 |
-
var validateFormat = function validateFormat() {};
|
2494 |
-
|
2495 |
-
{
|
2496 |
-
validateFormat = function validateFormat(format) {
|
2497 |
-
if (format === undefined) {
|
2498 |
-
throw new Error('invariant requires an error message argument');
|
2499 |
-
}
|
2500 |
-
};
|
2501 |
-
}
|
2502 |
-
|
2503 |
-
function invariant(condition, format, a, b, c, d, e, f) {
|
2504 |
-
validateFormat(format);
|
2505 |
-
|
2506 |
-
if (!condition) {
|
2507 |
-
var error = void 0;
|
2508 |
-
if (format === undefined) {
|
2509 |
-
error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');
|
2510 |
-
} else {
|
2511 |
-
var args = [a, b, c, d, e, f];
|
2512 |
-
var argIndex = 0;
|
2513 |
-
error = new Error(format.replace(/%s/g, function () {
|
2514 |
-
return args[argIndex++];
|
2515 |
-
}));
|
2516 |
-
error.name = 'Invariant Violation';
|
2517 |
-
}
|
2518 |
-
|
2519 |
-
error.framesToPop = 1; // we don't care about invariant's own frame
|
2520 |
-
throw error;
|
2521 |
-
}
|
2522 |
-
}
|
2523 |
-
|
2524 |
-
// Relying on the `invariant()` implementation lets us
|
2525 |
-
// preserve the format and params in the www builds.
|
2526 |
-
|
2527 |
-
/**
|
2528 |
-
* Forked from fbjs/warning:
|
2529 |
-
* https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
|
2530 |
-
*
|
2531 |
-
* Only change is we use console.warn instead of console.error,
|
2532 |
-
* and do nothing when 'console' is not supported.
|
2533 |
-
* This really simplifies the code.
|
2534 |
-
* ---
|
2535 |
-
* Similar to invariant but only logs a warning if the condition is not met.
|
2536 |
-
* This can be used to log issues in development environments in critical
|
2537 |
-
* paths. Removing the logging code for production environments will keep the
|
2538 |
-
* same logic and follow the same code paths.
|
2539 |
-
*/
|
2540 |
-
|
2541 |
-
var lowPriorityWarning = function lowPriorityWarning() {};
|
2542 |
-
|
2543 |
-
{
|
2544 |
-
var printWarning = function printWarning(format) {
|
2545 |
-
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
2546 |
-
args[_key - 1] = arguments[_key];
|
2547 |
-
}
|
2548 |
-
|
2549 |
-
var argIndex = 0;
|
2550 |
-
var message = 'Warning: ' + format.replace(/%s/g, function () {
|
2551 |
-
return args[argIndex++];
|
2552 |
-
});
|
2553 |
-
if (typeof console !== 'undefined') {
|
2554 |
-
console.warn(message);
|
2555 |
-
}
|
2556 |
-
try {
|
2557 |
-
// --- Welcome to debugging React ---
|
2558 |
-
// This error was thrown as a convenience so that you can use this stack
|
2559 |
-
// to find the callsite that caused this warning to fire.
|
2560 |
-
throw new Error(message);
|
2561 |
-
} catch (x) {}
|
2562 |
-
};
|
2563 |
-
|
2564 |
-
lowPriorityWarning = function lowPriorityWarning(condition, format) {
|
2565 |
-
if (format === undefined) {
|
2566 |
-
throw new Error('`lowPriorityWarning(condition, format, ...args)` requires a warning ' + 'message argument');
|
2567 |
-
}
|
2568 |
-
if (!condition) {
|
2569 |
-
for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
|
2570 |
-
args[_key2 - 2] = arguments[_key2];
|
2571 |
-
}
|
2572 |
-
|
2573 |
-
printWarning.apply(undefined, [format].concat(args));
|
2574 |
-
}
|
2575 |
-
};
|
2576 |
-
}
|
2577 |
-
|
2578 |
-
var lowPriorityWarning$1 = lowPriorityWarning;
|
2579 |
-
|
2580 |
-
/**
|
2581 |
-
* Similar to invariant but only logs a warning if the condition is not met.
|
2582 |
-
* This can be used to log issues in development environments in critical
|
2583 |
-
* paths. Removing the logging code for production environments will keep the
|
2584 |
-
* same logic and follow the same code paths.
|
2585 |
-
*/
|
2586 |
-
|
2587 |
-
var warningWithoutStack = function warningWithoutStack() {};
|
2588 |
-
|
2589 |
-
{
|
2590 |
-
warningWithoutStack = function warningWithoutStack(condition, format) {
|
2591 |
-
for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
2592 |
-
args[_key - 2] = arguments[_key];
|
2593 |
-
}
|
2594 |
-
|
2595 |
-
if (format === undefined) {
|
2596 |
-
throw new Error('`warningWithoutStack(condition, format, ...args)` requires a warning ' + 'message argument');
|
2597 |
-
}
|
2598 |
-
if (args.length > 8) {
|
2599 |
-
// Check before the condition to catch violations early.
|
2600 |
-
throw new Error('warningWithoutStack() currently supports at most 8 arguments.');
|
2601 |
-
}
|
2602 |
-
if (condition) {
|
2603 |
-
return;
|
2604 |
-
}
|
2605 |
-
if (typeof console !== 'undefined') {
|
2606 |
-
var _args$map = args.map(function (item) {
|
2607 |
-
return '' + item;
|
2608 |
-
}),
|
2609 |
-
a = _args$map[0],
|
2610 |
-
b = _args$map[1],
|
2611 |
-
c = _args$map[2],
|
2612 |
-
d = _args$map[3],
|
2613 |
-
e = _args$map[4],
|
2614 |
-
f = _args$map[5],
|
2615 |
-
g = _args$map[6],
|
2616 |
-
h = _args$map[7];
|
2617 |
-
|
2618 |
-
var message = 'Warning: ' + format;
|
2619 |
-
|
2620 |
-
// We intentionally don't use spread (or .apply) because it breaks IE9:
|
2621 |
-
// https://github.com/facebook/react/issues/13610
|
2622 |
-
switch (args.length) {
|
2623 |
-
case 0:
|
2624 |
-
console.error(message);
|
2625 |
-
break;
|
2626 |
-
case 1:
|
2627 |
-
console.error(message, a);
|
2628 |
-
break;
|
2629 |
-
case 2:
|
2630 |
-
console.error(message, a, b);
|
2631 |
-
break;
|
2632 |
-
case 3:
|
2633 |
-
console.error(message, a, b, c);
|
2634 |
-
break;
|
2635 |
-
case 4:
|
2636 |
-
console.error(message, a, b, c, d);
|
2637 |
-
break;
|
2638 |
-
case 5:
|
2639 |
-
console.error(message, a, b, c, d, e);
|
2640 |
-
break;
|
2641 |
-
case 6:
|
2642 |
-
console.error(message, a, b, c, d, e, f);
|
2643 |
-
break;
|
2644 |
-
case 7:
|
2645 |
-
console.error(message, a, b, c, d, e, f, g);
|
2646 |
-
break;
|
2647 |
-
case 8:
|
2648 |
-
console.error(message, a, b, c, d, e, f, g, h);
|
2649 |
-
break;
|
2650 |
-
default:
|
2651 |
-
throw new Error('warningWithoutStack() currently supports at most 8 arguments.');
|
2652 |
-
}
|
2653 |
-
}
|
2654 |
-
try {
|
2655 |
-
// --- Welcome to debugging React ---
|
2656 |
-
// This error was thrown as a convenience so that you can use this stack
|
2657 |
-
// to find the callsite that caused this warning to fire.
|
2658 |
-
var argIndex = 0;
|
2659 |
-
var _message = 'Warning: ' + format.replace(/%s/g, function () {
|
2660 |
-
return args[argIndex++];
|
2661 |
-
});
|
2662 |
-
throw new Error(_message);
|
2663 |
-
} catch (x) {}
|
2664 |
-
};
|
2665 |
-
}
|
2666 |
-
|
2667 |
-
var warningWithoutStack$1 = warningWithoutStack;
|
2668 |
-
|
2669 |
-
var didWarnStateUpdateForUnmountedComponent = {};
|
2670 |
-
|
2671 |
-
function warnNoop(publicInstance, callerName) {
|
2672 |
-
{
|
2673 |
-
var _constructor = publicInstance.constructor;
|
2674 |
-
var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass';
|
2675 |
-
var warningKey = componentName + '.' + callerName;
|
2676 |
-
if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
|
2677 |
-
return;
|
2678 |
-
}
|
2679 |
-
warningWithoutStack$1(false, "Can't call %s on a component that is not yet mounted. " + 'This is a no-op, but it might indicate a bug in your application. ' + 'Instead, assign to `this.state` directly or define a `state = {};` ' + 'class property with the desired state in the %s component.', callerName, componentName);
|
2680 |
-
didWarnStateUpdateForUnmountedComponent[warningKey] = true;
|
2681 |
-
}
|
2682 |
-
}
|
2683 |
-
|
2684 |
-
/**
|
2685 |
-
* This is the abstract API for an update queue.
|
2686 |
-
*/
|
2687 |
-
var ReactNoopUpdateQueue = {
|
2688 |
-
/**
|
2689 |
-
* Checks whether or not this composite component is mounted.
|
2690 |
-
* @param {ReactClass} publicInstance The instance we want to test.
|
2691 |
-
* @return {boolean} True if mounted, false otherwise.
|
2692 |
-
* @protected
|
2693 |
-
* @final
|
2694 |
-
*/
|
2695 |
-
isMounted: function isMounted(publicInstance) {
|
2696 |
-
return false;
|
2697 |
-
},
|
2698 |
-
|
2699 |
-
/**
|
2700 |
-
* Forces an update. This should only be invoked when it is known with
|
2701 |
-
* certainty that we are **not** in a DOM transaction.
|
2702 |
-
*
|
2703 |
-
* You may want to call this when you know that some deeper aspect of the
|
2704 |
-
* component's state has changed but `setState` was not called.
|
2705 |
-
*
|
2706 |
-
* This will not invoke `shouldComponentUpdate`, but it will invoke
|
2707 |
-
* `componentWillUpdate` and `componentDidUpdate`.
|
2708 |
-
*
|
2709 |
-
* @param {ReactClass} publicInstance The instance that should rerender.
|
2710 |
-
* @param {?function} callback Called after component is updated.
|
2711 |
-
* @param {?string} callerName name of the calling function in the public API.
|
2712 |
-
* @internal
|
2713 |
-
*/
|
2714 |
-
enqueueForceUpdate: function enqueueForceUpdate(publicInstance, callback, callerName) {
|
2715 |
-
warnNoop(publicInstance, 'forceUpdate');
|
2716 |
-
},
|
2717 |
-
|
2718 |
-
/**
|
2719 |
-
* Replaces all of the state. Always use this or `setState` to mutate state.
|
2720 |
-
* You should treat `this.state` as immutable.
|
2721 |
-
*
|
2722 |
-
* There is no guarantee that `this.state` will be immediately updated, so
|
2723 |
-
* accessing `this.state` after calling this method may return the old value.
|
2724 |
-
*
|
2725 |
-
* @param {ReactClass} publicInstance The instance that should rerender.
|
2726 |
-
* @param {object} completeState Next state.
|
2727 |
-
* @param {?function} callback Called after component is updated.
|
2728 |
-
* @param {?string} callerName name of the calling function in the public API.
|
2729 |
-
* @internal
|
2730 |
-
*/
|
2731 |
-
enqueueReplaceState: function enqueueReplaceState(publicInstance, completeState, callback, callerName) {
|
2732 |
-
warnNoop(publicInstance, 'replaceState');
|
2733 |
-
},
|
2734 |
-
|
2735 |
-
/**
|
2736 |
-
* Sets a subset of the state. This only exists because _pendingState is
|
2737 |
-
* internal. This provides a merging strategy that is not available to deep
|
2738 |
-
* properties which is confusing. TODO: Expose pendingState or don't use it
|
2739 |
-
* during the merge.
|
2740 |
-
*
|
2741 |
-
* @param {ReactClass} publicInstance The instance that should rerender.
|
2742 |
-
* @param {object} partialState Next partial state to be merged with state.
|
2743 |
-
* @param {?function} callback Called after component is updated.
|
2744 |
-
* @param {?string} Name of the calling function in the public API.
|
2745 |
-
* @internal
|
2746 |
-
*/
|
2747 |
-
enqueueSetState: function enqueueSetState(publicInstance, partialState, callback, callerName) {
|
2748 |
-
warnNoop(publicInstance, 'setState');
|
2749 |
-
}
|
2750 |
-
};
|
2751 |
-
|
2752 |
-
var emptyObject = {};
|
2753 |
-
{
|
2754 |
-
Object.freeze(emptyObject);
|
2755 |
-
}
|
2756 |
-
|
2757 |
-
/**
|
2758 |
-
* Base class helpers for the updating state of a component.
|
2759 |
-
*/
|
2760 |
-
function Component(props, context, updater) {
|
2761 |
-
this.props = props;
|
2762 |
-
this.context = context;
|
2763 |
-
// If a component has string refs, we will assign a different object later.
|
2764 |
-
this.refs = emptyObject;
|
2765 |
-
// We initialize the default updater but the real one gets injected by the
|
2766 |
-
// renderer.
|
2767 |
-
this.updater = updater || ReactNoopUpdateQueue;
|
2768 |
-
}
|
2769 |
-
|
2770 |
-
Component.prototype.isReactComponent = {};
|
2771 |
-
|
2772 |
-
/**
|
2773 |
-
* Sets a subset of the state. Always use this to mutate
|
2774 |
-
* state. You should treat `this.state` as immutable.
|
2775 |
-
*
|
2776 |
-
* There is no guarantee that `this.state` will be immediately updated, so
|
2777 |
-
* accessing `this.state` after calling this method may return the old value.
|
2778 |
-
*
|
2779 |
-
* There is no guarantee that calls to `setState` will run synchronously,
|
2780 |
-
* as they may eventually be batched together. You can provide an optional
|
2781 |
-
* callback that will be executed when the call to setState is actually
|
2782 |
-
* completed.
|
2783 |
-
*
|
2784 |
-
* When a function is provided to setState, it will be called at some point in
|
2785 |
-
* the future (not synchronously). It will be called with the up to date
|
2786 |
-
* component arguments (state, props, context). These values can be different
|
2787 |
-
* from this.* because your function may be called after receiveProps but before
|
2788 |
-
* shouldComponentUpdate, and this new state, props, and context will not yet be
|
2789 |
-
* assigned to this.
|
2790 |
-
*
|
2791 |
-
* @param {object|function} partialState Next partial state or function to
|
2792 |
-
* produce next partial state to be merged with current state.
|
2793 |
-
* @param {?function} callback Called after state is updated.
|
2794 |
-
* @final
|
2795 |
-
* @protected
|
2796 |
-
*/
|
2797 |
-
Component.prototype.setState = function (partialState, callback) {
|
2798 |
-
!((typeof partialState === 'undefined' ? 'undefined' : _typeof(partialState)) === 'object' || typeof partialState === 'function' || partialState == null) ? invariant(false, 'setState(...): takes an object of state variables to update or a function which returns an object of state variables.') : void 0;
|
2799 |
-
this.updater.enqueueSetState(this, partialState, callback, 'setState');
|
2800 |
-
};
|
2801 |
-
|
2802 |
-
/**
|
2803 |
-
* Forces an update. This should only be invoked when it is known with
|
2804 |
-
* certainty that we are **not** in a DOM transaction.
|
2805 |
-
*
|
2806 |
-
* You may want to call this when you know that some deeper aspect of the
|
2807 |
-
* component's state has changed but `setState` was not called.
|
2808 |
-
*
|
2809 |
-
* This will not invoke `shouldComponentUpdate`, but it will invoke
|
2810 |
-
* `componentWillUpdate` and `componentDidUpdate`.
|
2811 |
-
*
|
2812 |
-
* @param {?function} callback Called after update is complete.
|
2813 |
-
* @final
|
2814 |
-
* @protected
|
2815 |
-
*/
|
2816 |
-
Component.prototype.forceUpdate = function (callback) {
|
2817 |
-
this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');
|
2818 |
-
};
|
2819 |
-
|
2820 |
-
/**
|
2821 |
-
* Deprecated APIs. These APIs used to exist on classic React classes but since
|
2822 |
-
* we would like to deprecate them, we're not going to move them over to this
|
2823 |
-
* modern base class. Instead, we define a getter that warns if it's accessed.
|
2824 |
-
*/
|
2825 |
-
{
|
2826 |
-
var deprecatedAPIs = {
|
2827 |
-
isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],
|
2828 |
-
replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']
|
2829 |
-
};
|
2830 |
-
var defineDeprecationWarning = function defineDeprecationWarning(methodName, info) {
|
2831 |
-
Object.defineProperty(Component.prototype, methodName, {
|
2832 |
-
get: function get() {
|
2833 |
-
lowPriorityWarning$1(false, '%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);
|
2834 |
-
return undefined;
|
2835 |
-
}
|
2836 |
-
});
|
2837 |
-
};
|
2838 |
-
for (var fnName in deprecatedAPIs) {
|
2839 |
-
if (deprecatedAPIs.hasOwnProperty(fnName)) {
|
2840 |
-
defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
|
2841 |
-
}
|
2842 |
-
}
|
2843 |
-
}
|
2844 |
-
|
2845 |
-
function ComponentDummy() {}
|
2846 |
-
ComponentDummy.prototype = Component.prototype;
|
2847 |
-
|
2848 |
-
/**
|
2849 |
-
* Convenience component with default shallow equality check for sCU.
|
2850 |
-
*/
|
2851 |
-
function PureComponent(props, context, updater) {
|
2852 |
-
this.props = props;
|
2853 |
-
this.context = context;
|
2854 |
-
// If a component has string refs, we will assign a different object later.
|
2855 |
-
this.refs = emptyObject;
|
2856 |
-
this.updater = updater || ReactNoopUpdateQueue;
|
2857 |
-
}
|
2858 |
-
|
2859 |
-
var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
|
2860 |
-
pureComponentPrototype.constructor = PureComponent;
|
2861 |
-
// Avoid an extra prototype jump for these methods.
|
2862 |
-
_assign(pureComponentPrototype, Component.prototype);
|
2863 |
-
pureComponentPrototype.isPureReactComponent = true;
|
2864 |
-
|
2865 |
-
// an immutable object with a single mutable value
|
2866 |
-
function createRef() {
|
2867 |
-
var refObject = {
|
2868 |
-
current: null
|
2869 |
-
};
|
2870 |
-
{
|
2871 |
-
Object.seal(refObject);
|
2872 |
-
}
|
2873 |
-
return refObject;
|
2874 |
-
}
|
2875 |
-
|
2876 |
-
/**
|
2877 |
-
* Keeps track of the current owner.
|
2878 |
-
*
|
2879 |
-
* The current owner is the component who should own any components that are
|
2880 |
-
* currently being constructed.
|
2881 |
-
*/
|
2882 |
-
var ReactCurrentOwner = {
|
2883 |
-
/**
|
2884 |
-
* @internal
|
2885 |
-
* @type {ReactComponent}
|
2886 |
-
*/
|
2887 |
-
current: null,
|
2888 |
-
currentDispatcher: null
|
2889 |
-
};
|
2890 |
-
|
2891 |
-
var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
|
2892 |
-
|
2893 |
-
var describeComponentFrame = function describeComponentFrame(name, source, ownerName) {
|
2894 |
-
var sourceInfo = '';
|
2895 |
-
if (source) {
|
2896 |
-
var path = source.fileName;
|
2897 |
-
var fileName = path.replace(BEFORE_SLASH_RE, '');
|
2898 |
-
{
|
2899 |
-
// In DEV, include code for a common special case:
|
2900 |
-
// prefer "folder/index.js" instead of just "index.js".
|
2901 |
-
if (/^index\./.test(fileName)) {
|
2902 |
-
var match = path.match(BEFORE_SLASH_RE);
|
2903 |
-
if (match) {
|
2904 |
-
var pathBeforeSlash = match[1];
|
2905 |
-
if (pathBeforeSlash) {
|
2906 |
-
var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, '');
|
2907 |
-
fileName = folderName + '/' + fileName;
|
2908 |
-
}
|
2909 |
-
}
|
2910 |
-
}
|
2911 |
-
}
|
2912 |
-
sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')';
|
2913 |
-
} else if (ownerName) {
|
2914 |
-
sourceInfo = ' (created by ' + ownerName + ')';
|
2915 |
-
}
|
2916 |
-
return '\n in ' + (name || 'Unknown') + sourceInfo;
|
2917 |
-
};
|
2918 |
-
|
2919 |
-
var Resolved = 1;
|
2920 |
-
|
2921 |
-
function refineResolvedLazyComponent(lazyComponent) {
|
2922 |
-
return lazyComponent._status === Resolved ? lazyComponent._result : null;
|
2923 |
-
}
|
2924 |
-
|
2925 |
-
function getWrappedName(outerType, innerType, wrapperName) {
|
2926 |
-
var functionName = innerType.displayName || innerType.name || '';
|
2927 |
-
return outerType.displayName || (functionName !== '' ? wrapperName + '(' + functionName + ')' : wrapperName);
|
2928 |
-
}
|
2929 |
-
|
2930 |
-
function getComponentName(type) {
|
2931 |
-
if (type == null) {
|
2932 |
-
// Host root, text node or just invalid type.
|
2933 |
-
return null;
|
2934 |
-
}
|
2935 |
-
{
|
2936 |
-
if (typeof type.tag === 'number') {
|
2937 |
-
warningWithoutStack$1(false, 'Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
|
2938 |
-
}
|
2939 |
-
}
|
2940 |
-
if (typeof type === 'function') {
|
2941 |
-
return type.displayName || type.name || null;
|
2942 |
-
}
|
2943 |
-
if (typeof type === 'string') {
|
2944 |
-
return type;
|
2945 |
-
}
|
2946 |
-
switch (type) {
|
2947 |
-
case REACT_CONCURRENT_MODE_TYPE:
|
2948 |
-
return 'ConcurrentMode';
|
2949 |
-
case REACT_FRAGMENT_TYPE:
|
2950 |
-
return 'Fragment';
|
2951 |
-
case REACT_PORTAL_TYPE:
|
2952 |
-
return 'Portal';
|
2953 |
-
case REACT_PROFILER_TYPE:
|
2954 |
-
return 'Profiler';
|
2955 |
-
case REACT_STRICT_MODE_TYPE:
|
2956 |
-
return 'StrictMode';
|
2957 |
-
case REACT_SUSPENSE_TYPE:
|
2958 |
-
return 'Suspense';
|
2959 |
-
}
|
2960 |
-
if ((typeof type === 'undefined' ? 'undefined' : _typeof(type)) === 'object') {
|
2961 |
-
switch (type.$$typeof) {
|
2962 |
-
case REACT_CONTEXT_TYPE:
|
2963 |
-
return 'Context.Consumer';
|
2964 |
-
case REACT_PROVIDER_TYPE:
|
2965 |
-
return 'Context.Provider';
|
2966 |
-
case REACT_FORWARD_REF_TYPE:
|
2967 |
-
return getWrappedName(type, type.render, 'ForwardRef');
|
2968 |
-
case REACT_MEMO_TYPE:
|
2969 |
-
return getComponentName(type.type);
|
2970 |
-
case REACT_LAZY_TYPE:
|
2971 |
-
{
|
2972 |
-
var thenable = type;
|
2973 |
-
var resolvedThenable = refineResolvedLazyComponent(thenable);
|
2974 |
-
if (resolvedThenable) {
|
2975 |
-
return getComponentName(resolvedThenable);
|
2976 |
-
}
|
2977 |
-
}
|
2978 |
-
}
|
2979 |
-
}
|
2980 |
-
return null;
|
2981 |
-
}
|
2982 |
-
|
2983 |
-
var ReactDebugCurrentFrame = {};
|
2984 |
-
|
2985 |
-
var currentlyValidatingElement = null;
|
2986 |
-
|
2987 |
-
function setCurrentlyValidatingElement(element) {
|
2988 |
-
{
|
2989 |
-
currentlyValidatingElement = element;
|
2990 |
-
}
|
2991 |
-
}
|
2992 |
-
|
2993 |
-
{
|
2994 |
-
// Stack implementation injected by the current renderer.
|
2995 |
-
ReactDebugCurrentFrame.getCurrentStack = null;
|
2996 |
-
|
2997 |
-
ReactDebugCurrentFrame.getStackAddendum = function () {
|
2998 |
-
var stack = '';
|
2999 |
-
|
3000 |
-
// Add an extra top frame while an element is being validated
|
3001 |
-
if (currentlyValidatingElement) {
|
3002 |
-
var name = getComponentName(currentlyValidatingElement.type);
|
3003 |
-
var owner = currentlyValidatingElement._owner;
|
3004 |
-
stack += describeComponentFrame(name, currentlyValidatingElement._source, owner && getComponentName(owner.type));
|
3005 |
-
}
|
3006 |
-
|
3007 |
-
// Delegate to the injected renderer-specific implementation
|
3008 |
-
var impl = ReactDebugCurrentFrame.getCurrentStack;
|
3009 |
-
if (impl) {
|
3010 |
-
stack += impl() || '';
|
3011 |
-
}
|
3012 |
-
|
3013 |
-
return stack;
|
3014 |
-
};
|
3015 |
-
}
|
3016 |
-
|
3017 |
-
var ReactSharedInternals = {
|
3018 |
-
ReactCurrentOwner: ReactCurrentOwner,
|
3019 |
-
// Used by renderers to avoid bundling object-assign twice in UMD bundles:
|
3020 |
-
assign: _assign
|
3021 |
-
};
|
3022 |
-
|
3023 |
-
{
|
3024 |
-
_assign(ReactSharedInternals, {
|
3025 |
-
// These should not be included in production.
|
3026 |
-
ReactDebugCurrentFrame: ReactDebugCurrentFrame,
|
3027 |
-
// Shim for React DOM 16.0.0 which still destructured (but not used) this.
|
3028 |
-
// TODO: remove in React 17.0.
|
3029 |
-
ReactComponentTreeHook: {}
|
3030 |
-
});
|
3031 |
-
}
|
3032 |
-
|
3033 |
-
/**
|
3034 |
-
* Similar to invariant but only logs a warning if the condition is not met.
|
3035 |
-
* This can be used to log issues in development environments in critical
|
3036 |
-
* paths. Removing the logging code for production environments will keep the
|
3037 |
-
* same logic and follow the same code paths.
|
3038 |
-
*/
|
3039 |
-
|
3040 |
-
var warning = warningWithoutStack$1;
|
3041 |
-
|
3042 |
-
{
|
3043 |
-
warning = function warning(condition, format) {
|
3044 |
-
if (condition) {
|
3045 |
-
return;
|
3046 |
-
}
|
3047 |
-
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
3048 |
-
var stack = ReactDebugCurrentFrame.getStackAddendum();
|
3049 |
-
// eslint-disable-next-line react-internal/warning-and-invariant-args
|
3050 |
-
|
3051 |
-
for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
3052 |
-
args[_key - 2] = arguments[_key];
|
3053 |
-
}
|
3054 |
-
|
3055 |
-
warningWithoutStack$1.apply(undefined, [false, format + '%s'].concat(args, [stack]));
|
3056 |
-
};
|
3057 |
-
}
|
3058 |
-
|
3059 |
-
var warning$1 = warning;
|
3060 |
-
|
3061 |
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
3062 |
-
|
3063 |
-
var RESERVED_PROPS = {
|
3064 |
-
key: true,
|
3065 |
-
ref: true,
|
3066 |
-
__self: true,
|
3067 |
-
__source: true
|
3068 |
-
};
|
3069 |
-
|
3070 |
-
var specialPropKeyWarningShown = void 0;
|
3071 |
-
var specialPropRefWarningShown = void 0;
|
3072 |
-
|
3073 |
-
function hasValidRef(config) {
|
3074 |
-
{
|
3075 |
-
if (hasOwnProperty.call(config, 'ref')) {
|
3076 |
-
var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
|
3077 |
-
if (getter && getter.isReactWarning) {
|
3078 |
-
return false;
|
3079 |
-
}
|
3080 |
-
}
|
3081 |
-
}
|
3082 |
-
return config.ref !== undefined;
|
3083 |
-
}
|
3084 |
-
|
3085 |
-
function hasValidKey(config) {
|
3086 |
-
{
|
3087 |
-
if (hasOwnProperty.call(config, 'key')) {
|
3088 |
-
var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
|
3089 |
-
if (getter && getter.isReactWarning) {
|
3090 |
-
return false;
|
3091 |
-
}
|
3092 |
-
}
|
3093 |
-
}
|
3094 |
-
return config.key !== undefined;
|
3095 |
-
}
|
3096 |
-
|
3097 |
-
function defineKeyPropWarningGetter(props, displayName) {
|
3098 |
-
var warnAboutAccessingKey = function warnAboutAccessingKey() {
|
3099 |
-
if (!specialPropKeyWarningShown) {
|
3100 |
-
specialPropKeyWarningShown = true;
|
3101 |
-
warningWithoutStack$1(false, '%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName);
|
3102 |
-
}
|
3103 |
-
};
|
3104 |
-
warnAboutAccessingKey.isReactWarning = true;
|
3105 |
-
Object.defineProperty(props, 'key', {
|
3106 |
-
get: warnAboutAccessingKey,
|
3107 |
-
configurable: true
|
3108 |
-
});
|
3109 |
-
}
|
3110 |
-
|
3111 |
-
function defineRefPropWarningGetter(props, displayName) {
|
3112 |
-
var warnAboutAccessingRef = function warnAboutAccessingRef() {
|
3113 |
-
if (!specialPropRefWarningShown) {
|
3114 |
-
specialPropRefWarningShown = true;
|
3115 |
-
warningWithoutStack$1(false, '%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName);
|
3116 |
-
}
|
3117 |
-
};
|
3118 |
-
warnAboutAccessingRef.isReactWarning = true;
|
3119 |
-
Object.defineProperty(props, 'ref', {
|
3120 |
-
get: warnAboutAccessingRef,
|
3121 |
-
configurable: true
|
3122 |
-
});
|
3123 |
-
}
|
3124 |
-
|
3125 |
-
/**
|
3126 |
-
* Factory method to create a new React element. This no longer adheres to
|
3127 |
-
* the class pattern, so do not use new to call it. Also, no instanceof check
|
3128 |
-
* will work. Instead test $$typeof field against Symbol.for('react.element') to check
|
3129 |
-
* if something is a React Element.
|
3130 |
-
*
|
3131 |
-
* @param {*} type
|
3132 |
-
* @param {*} key
|
3133 |
-
* @param {string|object} ref
|
3134 |
-
* @param {*} self A *temporary* helper to detect places where `this` is
|
3135 |
-
* different from the `owner` when React.createElement is called, so that we
|
3136 |
-
* can warn. We want to get rid of owner and replace string `ref`s with arrow
|
3137 |
-
* functions, and as long as `this` and owner are the same, there will be no
|
3138 |
-
* change in behavior.
|
3139 |
-
* @param {*} source An annotation object (added by a transpiler or otherwise)
|
3140 |
-
* indicating filename, line number, and/or other information.
|
3141 |
-
* @param {*} owner
|
3142 |
-
* @param {*} props
|
3143 |
-
* @internal
|
3144 |
-
*/
|
3145 |
-
var ReactElement = function ReactElement(type, key, ref, self, source, owner, props) {
|
3146 |
-
var element = {
|
3147 |
-
// This tag allows us to uniquely identify this as a React Element
|
3148 |
-
$$typeof: REACT_ELEMENT_TYPE,
|
3149 |
-
|
3150 |
-
// Built-in properties that belong on the element
|
3151 |
-
type: type,
|
3152 |
-
key: key,
|
3153 |
-
ref: ref,
|
3154 |
-
props: props,
|
3155 |
-
|
3156 |
-
// Record the component responsible for creating this element.
|
3157 |
-
_owner: owner
|
3158 |
-
};
|
3159 |
-
|
3160 |
-
{
|
3161 |
-
// The validation flag is currently mutative. We put it on
|
3162 |
-
// an external backing store so that we can freeze the whole object.
|
3163 |
-
// This can be replaced with a WeakMap once they are implemented in
|
3164 |
-
// commonly used development environments.
|
3165 |
-
element._store = {};
|
3166 |
-
|
3167 |
-
// To make comparing ReactElements easier for testing purposes, we make
|
3168 |
-
// the validation flag non-enumerable (where possible, which should
|
3169 |
-
// include every environment we run tests in), so the test framework
|
3170 |
-
// ignores it.
|
3171 |
-
Object.defineProperty(element._store, 'validated', {
|
3172 |
-
configurable: false,
|
3173 |
-
enumerable: false,
|
3174 |
-
writable: true,
|
3175 |
-
value: false
|
3176 |
-
});
|
3177 |
-
// self and source are DEV only properties.
|
3178 |
-
Object.defineProperty(element, '_self', {
|
3179 |
-
configurable: false,
|
3180 |
-
enumerable: false,
|
3181 |
-
writable: false,
|
3182 |
-
value: self
|
3183 |
-
});
|
3184 |
-
// Two elements created in two different places should be considered
|
3185 |
-
// equal for testing purposes and therefore we hide it from enumeration.
|
3186 |
-
Object.defineProperty(element, '_source', {
|
3187 |
-
configurable: false,
|
3188 |
-
enumerable: false,
|
3189 |
-
writable: false,
|
3190 |
-
value: source
|
3191 |
-
});
|
3192 |
-
if (Object.freeze) {
|
3193 |
-
Object.freeze(element.props);
|
3194 |
-
Object.freeze(element);
|
3195 |
-
}
|
3196 |
-
}
|
3197 |
-
|
3198 |
-
return element;
|
3199 |
-
};
|
3200 |
-
|
3201 |
-
/**
|
3202 |
-
* Create and return a new ReactElement of the given type.
|
3203 |
-
* See https://reactjs.org/docs/react-api.html#createelement
|
3204 |
-
*/
|
3205 |
-
function createElement(type, config, children) {
|
3206 |
-
var propName = void 0;
|
3207 |
-
|
3208 |
-
// Reserved names are extracted
|
3209 |
-
var props = {};
|
3210 |
-
|
3211 |
-
var key = null;
|
3212 |
-
var ref = null;
|
3213 |
-
var self = null;
|
3214 |
-
var source = null;
|
3215 |
-
|
3216 |
-
if (config != null) {
|
3217 |
-
if (hasValidRef(config)) {
|
3218 |
-
ref = config.ref;
|
3219 |
-
}
|
3220 |
-
if (hasValidKey(config)) {
|
3221 |
-
key = '' + config.key;
|
3222 |
-
}
|
3223 |
-
|
3224 |
-
self = config.__self === undefined ? null : config.__self;
|
3225 |
-
source = config.__source === undefined ? null : config.__source;
|
3226 |
-
// Remaining properties are added to a new props object
|
3227 |
-
for (propName in config) {
|
3228 |
-
if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
|
3229 |
-
props[propName] = config[propName];
|
3230 |
-
}
|
3231 |
-
}
|
3232 |
-
}
|
3233 |
-
|
3234 |
-
// Children can be more than one argument, and those are transferred onto
|
3235 |
-
// the newly allocated props object.
|
3236 |
-
var childrenLength = arguments.length - 2;
|
3237 |
-
if (childrenLength === 1) {
|
3238 |
-
props.children = children;
|
3239 |
-
} else if (childrenLength > 1) {
|
3240 |
-
var childArray = Array(childrenLength);
|
3241 |
-
for (var i = 0; i < childrenLength; i++) {
|
3242 |
-
childArray[i] = arguments[i + 2];
|
3243 |
-
}
|
3244 |
-
{
|
3245 |
-
if (Object.freeze) {
|
3246 |
-
Object.freeze(childArray);
|
3247 |
-
}
|
3248 |
-
}
|
3249 |
-
props.children = childArray;
|
3250 |
-
}
|
3251 |
-
|
3252 |
-
// Resolve default props
|
3253 |
-
if (type && type.defaultProps) {
|
3254 |
-
var defaultProps = type.defaultProps;
|
3255 |
-
for (propName in defaultProps) {
|
3256 |
-
if (props[propName] === undefined) {
|
3257 |
-
props[propName] = defaultProps[propName];
|
3258 |
-
}
|
3259 |
-
}
|
3260 |
-
}
|
3261 |
-
{
|
3262 |
-
if (key || ref) {
|
3263 |
-
var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
|
3264 |
-
if (key) {
|
3265 |
-
defineKeyPropWarningGetter(props, displayName);
|
3266 |
-
}
|
3267 |
-
if (ref) {
|
3268 |
-
defineRefPropWarningGetter(props, displayName);
|
3269 |
-
}
|
3270 |
-
}
|
3271 |
-
}
|
3272 |
-
return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
|
3273 |
-
}
|
3274 |
-
|
3275 |
-
/**
|
3276 |
-
* Return a function that produces ReactElements of a given type.
|
3277 |
-
* See https://reactjs.org/docs/react-api.html#createfactory
|
3278 |
-
*/
|
3279 |
-
|
3280 |
-
function cloneAndReplaceKey(oldElement, newKey) {
|
3281 |
-
var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
|
3282 |
-
|
3283 |
-
return newElement;
|
3284 |
-
}
|
3285 |
-
|
3286 |
-
/**
|
3287 |
-
* Clone and return a new ReactElement using element as the starting point.
|
3288 |
-
* See https://reactjs.org/docs/react-api.html#cloneelement
|
3289 |
-
*/
|
3290 |
-
function cloneElement(element, config, children) {
|
3291 |
-
!!(element === null || element === undefined) ? invariant(false, 'React.cloneElement(...): The argument must be a React element, but you passed %s.', element) : void 0;
|
3292 |
-
|
3293 |
-
var propName = void 0;
|
3294 |
-
|
3295 |
-
// Original props are copied
|
3296 |
-
var props = _assign({}, element.props);
|
3297 |
-
|
3298 |
-
// Reserved names are extracted
|
3299 |
-
var key = element.key;
|
3300 |
-
var ref = element.ref;
|
3301 |
-
// Self is preserved since the owner is preserved.
|
3302 |
-
var self = element._self;
|
3303 |
-
// Source is preserved since cloneElement is unlikely to be targeted by a
|
3304 |
-
// transpiler, and the original source is probably a better indicator of the
|
3305 |
-
// true owner.
|
3306 |
-
var source = element._source;
|
3307 |
-
|
3308 |
-
// Owner will be preserved, unless ref is overridden
|
3309 |
-
var owner = element._owner;
|
3310 |
-
|
3311 |
-
if (config != null) {
|
3312 |
-
if (hasValidRef(config)) {
|
3313 |
-
// Silently steal the ref from the parent.
|
3314 |
-
ref = config.ref;
|
3315 |
-
owner = ReactCurrentOwner.current;
|
3316 |
-
}
|
3317 |
-
if (hasValidKey(config)) {
|
3318 |
-
key = '' + config.key;
|
3319 |
-
}
|
3320 |
-
|
3321 |
-
// Remaining properties override existing props
|
3322 |
-
var defaultProps = void 0;
|
3323 |
-
if (element.type && element.type.defaultProps) {
|
3324 |
-
defaultProps = element.type.defaultProps;
|
3325 |
-
}
|
3326 |
-
for (propName in config) {
|
3327 |
-
if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
|
3328 |
-
if (config[propName] === undefined && defaultProps !== undefined) {
|
3329 |
-
// Resolve default props
|
3330 |
-
props[propName] = defaultProps[propName];
|
3331 |
-
} else {
|
3332 |
-
props[propName] = config[propName];
|
3333 |
-
}
|
3334 |
-
}
|
3335 |
-
}
|
3336 |
-
}
|
3337 |
-
|
3338 |
-
// Children can be more than one argument, and those are transferred onto
|
3339 |
-
// the newly allocated props object.
|
3340 |
-
var childrenLength = arguments.length - 2;
|
3341 |
-
if (childrenLength === 1) {
|
3342 |
-
props.children = children;
|
3343 |
-
} else if (childrenLength > 1) {
|
3344 |
-
var childArray = Array(childrenLength);
|
3345 |
-
for (var i = 0; i < childrenLength; i++) {
|
3346 |
-
childArray[i] = arguments[i + 2];
|
3347 |
-
}
|
3348 |
-
props.children = childArray;
|
3349 |
-
}
|
3350 |
-
|
3351 |
-
return ReactElement(element.type, key, ref, self, source, owner, props);
|
3352 |
-
}
|
3353 |
-
|
3354 |
-
/**
|
3355 |
-
* Verifies the object is a ReactElement.
|
3356 |
-
* See https://reactjs.org/docs/react-api.html#isvalidelement
|
3357 |
-
* @param {?object} object
|
3358 |
-
* @return {boolean} True if `object` is a ReactElement.
|
3359 |
-
* @final
|
3360 |
-
*/
|
3361 |
-
function isValidElement(object) {
|
3362 |
-
return (typeof object === 'undefined' ? 'undefined' : _typeof(object)) === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
3363 |
-
}
|
3364 |
-
|
3365 |
-
var SEPARATOR = '.';
|
3366 |
-
var SUBSEPARATOR = ':';
|
3367 |
-
|
3368 |
-
/**
|
3369 |
-
* Escape and wrap key so it is safe to use as a reactid
|
3370 |
-
*
|
3371 |
-
* @param {string} key to be escaped.
|
3372 |
-
* @return {string} the escaped key.
|
3373 |
-
*/
|
3374 |
-
function escape(key) {
|
3375 |
-
var escapeRegex = /[=:]/g;
|
3376 |
-
var escaperLookup = {
|
3377 |
-
'=': '=0',
|
3378 |
-
':': '=2'
|
3379 |
-
};
|
3380 |
-
var escapedString = ('' + key).replace(escapeRegex, function (match) {
|
3381 |
-
return escaperLookup[match];
|
3382 |
-
});
|
3383 |
-
|
3384 |
-
return '$' + escapedString;
|
3385 |
-
}
|
3386 |
-
|
3387 |
-
/**
|
3388 |
-
* TODO: Test that a single child and an array with one item have the same key
|
3389 |
-
* pattern.
|
3390 |
-
*/
|
3391 |
-
|
3392 |
-
var didWarnAboutMaps = false;
|
3393 |
-
|
3394 |
-
var userProvidedKeyEscapeRegex = /\/+/g;
|
3395 |
-
function escapeUserProvidedKey(text) {
|
3396 |
-
return ('' + text).replace(userProvidedKeyEscapeRegex, '$&/');
|
3397 |
-
}
|
3398 |
-
|
3399 |
-
var POOL_SIZE = 10;
|
3400 |
-
var traverseContextPool = [];
|
3401 |
-
function getPooledTraverseContext(mapResult, keyPrefix, mapFunction, mapContext) {
|
3402 |
-
if (traverseContextPool.length) {
|
3403 |
-
var traverseContext = traverseContextPool.pop();
|
3404 |
-
traverseContext.result = mapResult;
|
3405 |
-
traverseContext.keyPrefix = keyPrefix;
|
3406 |
-
traverseContext.func = mapFunction;
|
3407 |
-
traverseContext.context = mapContext;
|
3408 |
-
traverseContext.count = 0;
|
3409 |
-
return traverseContext;
|
3410 |
-
} else {
|
3411 |
-
return {
|
3412 |
-
result: mapResult,
|
3413 |
-
keyPrefix: keyPrefix,
|
3414 |
-
func: mapFunction,
|
3415 |
-
context: mapContext,
|
3416 |
-
count: 0
|
3417 |
-
};
|
3418 |
-
}
|
3419 |
-
}
|
3420 |
-
|
3421 |
-
function releaseTraverseContext(traverseContext) {
|
3422 |
-
traverseContext.result = null;
|
3423 |
-
traverseContext.keyPrefix = null;
|
3424 |
-
traverseContext.func = null;
|
3425 |
-
traverseContext.context = null;
|
3426 |
-
traverseContext.count = 0;
|
3427 |
-
if (traverseContextPool.length < POOL_SIZE) {
|
3428 |
-
traverseContextPool.push(traverseContext);
|
3429 |
-
}
|
3430 |
-
}
|
3431 |
-
|
3432 |
-
/**
|
3433 |
-
* @param {?*} children Children tree container.
|
3434 |
-
* @param {!string} nameSoFar Name of the key path so far.
|
3435 |
-
* @param {!function} callback Callback to invoke with each child found.
|
3436 |
-
* @param {?*} traverseContext Used to pass information throughout the traversal
|
3437 |
-
* process.
|
3438 |
-
* @return {!number} The number of children in this subtree.
|
3439 |
-
*/
|
3440 |
-
function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) {
|
3441 |
-
var type = typeof children === 'undefined' ? 'undefined' : _typeof(children);
|
3442 |
-
|
3443 |
-
if (type === 'undefined' || type === 'boolean') {
|
3444 |
-
// All of the above are perceived as null.
|
3445 |
-
children = null;
|
3446 |
-
}
|
3447 |
-
|
3448 |
-
var invokeCallback = false;
|
3449 |
-
|
3450 |
-
if (children === null) {
|
3451 |
-
invokeCallback = true;
|
3452 |
-
} else {
|
3453 |
-
switch (type) {
|
3454 |
-
case 'string':
|
3455 |
-
case 'number':
|
3456 |
-
invokeCallback = true;
|
3457 |
-
break;
|
3458 |
-
case 'object':
|
3459 |
-
switch (children.$$typeof) {
|
3460 |
-
case REACT_ELEMENT_TYPE:
|
3461 |
-
case REACT_PORTAL_TYPE:
|
3462 |
-
invokeCallback = true;
|
3463 |
-
}
|
3464 |
-
}
|
3465 |
-
}
|
3466 |
-
|
3467 |
-
if (invokeCallback) {
|
3468 |
-
callback(traverseContext, children,
|
3469 |
-
// If it's the only child, treat the name as if it was wrapped in an array
|
3470 |
-
// so that it's consistent if the number of children grows.
|
3471 |
-
nameSoFar === '' ? SEPARATOR + getComponentKey(children, 0) : nameSoFar);
|
3472 |
-
return 1;
|
3473 |
-
}
|
3474 |
-
|
3475 |
-
var child = void 0;
|
3476 |
-
var nextName = void 0;
|
3477 |
-
var subtreeCount = 0; // Count of children found in the current subtree.
|
3478 |
-
var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;
|
3479 |
-
|
3480 |
-
if (Array.isArray(children)) {
|
3481 |
-
for (var i = 0; i < children.length; i++) {
|
3482 |
-
child = children[i];
|
3483 |
-
nextName = nextNamePrefix + getComponentKey(child, i);
|
3484 |
-
subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
|
3485 |
-
}
|
3486 |
-
} else {
|
3487 |
-
var iteratorFn = getIteratorFn(children);
|
3488 |
-
if (typeof iteratorFn === 'function') {
|
3489 |
-
{
|
3490 |
-
// Warn about using Maps as children
|
3491 |
-
if (iteratorFn === children.entries) {
|
3492 |
-
!didWarnAboutMaps ? warning$1(false, 'Using Maps as children is unsupported and will likely yield ' + 'unexpected results. Convert it to a sequence/iterable of keyed ' + 'ReactElements instead.') : void 0;
|
3493 |
-
didWarnAboutMaps = true;
|
3494 |
-
}
|
3495 |
-
}
|
3496 |
-
|
3497 |
-
var iterator = iteratorFn.call(children);
|
3498 |
-
var step = void 0;
|
3499 |
-
var ii = 0;
|
3500 |
-
while (!(step = iterator.next()).done) {
|
3501 |
-
child = step.value;
|
3502 |
-
nextName = nextNamePrefix + getComponentKey(child, ii++);
|
3503 |
-
subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
|
3504 |
-
}
|
3505 |
-
} else if (type === 'object') {
|
3506 |
-
var addendum = '';
|
3507 |
-
{
|
3508 |
-
addendum = ' If you meant to render a collection of children, use an array ' + 'instead.' + ReactDebugCurrentFrame.getStackAddendum();
|
3509 |
-
}
|
3510 |
-
var childrenString = '' + children;
|
3511 |
-
invariant(false, 'Objects are not valid as a React child (found: %s).%s', childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString, addendum);
|
3512 |
-
}
|
3513 |
-
}
|
3514 |
-
|
3515 |
-
return subtreeCount;
|
3516 |
-
}
|
3517 |
-
|
3518 |
-
/**
|
3519 |
-
* Traverses children that are typically specified as `props.children`, but
|
3520 |
-
* might also be specified through attributes:
|
3521 |
-
*
|
3522 |
-
* - `traverseAllChildren(this.props.children, ...)`
|
3523 |
-
* - `traverseAllChildren(this.props.leftPanelChildren, ...)`
|
3524 |
-
*
|
3525 |
-
* The `traverseContext` is an optional argument that is passed through the
|
3526 |
-
* entire traversal. It can be used to store accumulations or anything else that
|
3527 |
-
* the callback might find relevant.
|
3528 |
-
*
|
3529 |
-
* @param {?*} children Children tree object.
|
3530 |
-
* @param {!function} callback To invoke upon traversing each child.
|
3531 |
-
* @param {?*} traverseContext Context for traversal.
|
3532 |
-
* @return {!number} The number of children in this subtree.
|
3533 |
-
*/
|
3534 |
-
function traverseAllChildren(children, callback, traverseContext) {
|
3535 |
-
if (children == null) {
|
3536 |
-
return 0;
|
3537 |
-
}
|
3538 |
-
|
3539 |
-
return traverseAllChildrenImpl(children, '', callback, traverseContext);
|
3540 |
-
}
|
3541 |
-
|
3542 |
-
/**
|
3543 |
-
* Generate a key string that identifies a component within a set.
|
3544 |
-
*
|
3545 |
-
* @param {*} component A component that could contain a manual key.
|
3546 |
-
* @param {number} index Index that is used if a manual key is not provided.
|
3547 |
-
* @return {string}
|
3548 |
-
*/
|
3549 |
-
function getComponentKey(component, index) {
|
3550 |
-
// Do some typechecking here since we call this blindly. We want to ensure
|
3551 |
-
// that we don't block potential future ES APIs.
|
3552 |
-
if ((typeof component === 'undefined' ? 'undefined' : _typeof(component)) === 'object' && component !== null && component.key != null) {
|
3553 |
-
// Explicit key
|
3554 |
-
return escape(component.key);
|
3555 |
-
}
|
3556 |
-
// Implicit key determined by the index in the set
|
3557 |
-
return index.toString(36);
|
3558 |
-
}
|
3559 |
-
|
3560 |
-
function forEachSingleChild(bookKeeping, child, name) {
|
3561 |
-
var func = bookKeeping.func,
|
3562 |
-
context = bookKeeping.context;
|
3563 |
-
|
3564 |
-
func.call(context, child, bookKeeping.count++);
|
3565 |
-
}
|
3566 |
-
|
3567 |
-
/**
|
3568 |
-
* Iterates through children that are typically specified as `props.children`.
|
3569 |
-
*
|
3570 |
-
* See https://reactjs.org/docs/react-api.html#reactchildrenforeach
|
3571 |
-
*
|
3572 |
-
* The provided forEachFunc(child, index) will be called for each
|
3573 |
-
* leaf child.
|
3574 |
-
*
|
3575 |
-
* @param {?*} children Children tree container.
|
3576 |
-
* @param {function(*, int)} forEachFunc
|
3577 |
-
* @param {*} forEachContext Context for forEachContext.
|
3578 |
-
*/
|
3579 |
-
function forEachChildren(children, forEachFunc, forEachContext) {
|
3580 |
-
if (children == null) {
|
3581 |
-
return children;
|
3582 |
-
}
|
3583 |
-
var traverseContext = getPooledTraverseContext(null, null, forEachFunc, forEachContext);
|
3584 |
-
traverseAllChildren(children, forEachSingleChild, traverseContext);
|
3585 |
-
releaseTraverseContext(traverseContext);
|
3586 |
-
}
|
3587 |
-
|
3588 |
-
function mapSingleChildIntoContext(bookKeeping, child, childKey) {
|
3589 |
-
var result = bookKeeping.result,
|
3590 |
-
keyPrefix = bookKeeping.keyPrefix,
|
3591 |
-
func = bookKeeping.func,
|
3592 |
-
context = bookKeeping.context;
|
3593 |
-
|
3594 |
-
var mappedChild = func.call(context, child, bookKeeping.count++);
|
3595 |
-
if (Array.isArray(mappedChild)) {
|
3596 |
-
mapIntoWithKeyPrefixInternal(mappedChild, result, childKey, function (c) {
|
3597 |
-
return c;
|
3598 |
-
});
|
3599 |
-
} else if (mappedChild != null) {
|
3600 |
-
if (isValidElement(mappedChild)) {
|
3601 |
-
mappedChild = cloneAndReplaceKey(mappedChild,
|
3602 |
-
// Keep both the (mapped) and old keys if they differ, just as
|
3603 |
-
// traverseAllChildren used to do for objects as children
|
3604 |
-
keyPrefix + (mappedChild.key && (!child || child.key !== mappedChild.key) ? escapeUserProvidedKey(mappedChild.key) + '/' : '') + childKey);
|
3605 |
-
}
|
3606 |
-
result.push(mappedChild);
|
3607 |
-
}
|
3608 |
-
}
|
3609 |
-
|
3610 |
-
function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {
|
3611 |
-
var escapedPrefix = '';
|
3612 |
-
if (prefix != null) {
|
3613 |
-
escapedPrefix = escapeUserProvidedKey(prefix) + '/';
|
3614 |
-
}
|
3615 |
-
var traverseContext = getPooledTraverseContext(array, escapedPrefix, func, context);
|
3616 |
-
traverseAllChildren(children, mapSingleChildIntoContext, traverseContext);
|
3617 |
-
releaseTraverseContext(traverseContext);
|
3618 |
-
}
|
3619 |
-
|
3620 |
-
/**
|
3621 |
-
* Maps children that are typically specified as `props.children`.
|
3622 |
-
*
|
3623 |
-
* See https://reactjs.org/docs/react-api.html#reactchildrenmap
|
3624 |
-
*
|
3625 |
-
* The provided mapFunction(child, key, index) will be called for each
|
3626 |
-
* leaf child.
|
3627 |
-
*
|
3628 |
-
* @param {?*} children Children tree container.
|
3629 |
-
* @param {function(*, int)} func The map function.
|
3630 |
-
* @param {*} context Context for mapFunction.
|
3631 |
-
* @return {object} Object containing the ordered map of results.
|
3632 |
-
*/
|
3633 |
-
function mapChildren(children, func, context) {
|
3634 |
-
if (children == null) {
|
3635 |
-
return children;
|
3636 |
-
}
|
3637 |
-
var result = [];
|
3638 |
-
mapIntoWithKeyPrefixInternal(children, result, null, func, context);
|
3639 |
-
return result;
|
3640 |
-
}
|
3641 |
-
|
3642 |
-
/**
|
3643 |
-
* Count the number of children that are typically specified as
|
3644 |
-
* `props.children`.
|
3645 |
-
*
|
3646 |
-
* See https://reactjs.org/docs/react-api.html#reactchildrencount
|
3647 |
-
*
|
3648 |
-
* @param {?*} children Children tree container.
|
3649 |
-
* @return {number} The number of children.
|
3650 |
-
*/
|
3651 |
-
function countChildren(children) {
|
3652 |
-
return traverseAllChildren(children, function () {
|
3653 |
-
return null;
|
3654 |
-
}, null);
|
3655 |
-
}
|
3656 |
-
|
3657 |
-
/**
|
3658 |
-
* Flatten a children object (typically specified as `props.children`) and
|
3659 |
-
* return an array with appropriately re-keyed children.
|
3660 |
-
*
|
3661 |
-
* See https://reactjs.org/docs/react-api.html#reactchildrentoarray
|
3662 |
-
*/
|
3663 |
-
function toArray(children) {
|
3664 |
-
var result = [];
|
3665 |
-
mapIntoWithKeyPrefixInternal(children, result, null, function (child) {
|
3666 |
-
return child;
|
3667 |
-
});
|
3668 |
-
return result;
|
3669 |
-
}
|
3670 |
-
|
3671 |
-
/**
|
3672 |
-
* Returns the first child in a collection of children and verifies that there
|
3673 |
-
* is only one child in the collection.
|
3674 |
-
*
|
3675 |
-
* See https://reactjs.org/docs/react-api.html#reactchildrenonly
|
3676 |
-
*
|
3677 |
-
* The current implementation of this function assumes that a single child gets
|
3678 |
-
* passed without a wrapper, but the purpose of this helper function is to
|
3679 |
-
* abstract away the particular structure of children.
|
3680 |
-
*
|
3681 |
-
* @param {?object} children Child collection structure.
|
3682 |
-
* @return {ReactElement} The first and only `ReactElement` contained in the
|
3683 |
-
* structure.
|
3684 |
-
*/
|
3685 |
-
function onlyChild(children) {
|
3686 |
-
!isValidElement(children) ? invariant(false, 'React.Children.only expected to receive a single React element child.') : void 0;
|
3687 |
-
return children;
|
3688 |
-
}
|
3689 |
-
|
3690 |
-
function createContext(defaultValue, calculateChangedBits) {
|
3691 |
-
if (calculateChangedBits === undefined) {
|
3692 |
-
calculateChangedBits = null;
|
3693 |
-
} else {
|
3694 |
-
{
|
3695 |
-
!(calculateChangedBits === null || typeof calculateChangedBits === 'function') ? warningWithoutStack$1(false, 'createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits) : void 0;
|
3696 |
-
}
|
3697 |
-
}
|
3698 |
-
|
3699 |
-
var context = {
|
3700 |
-
$$typeof: REACT_CONTEXT_TYPE,
|
3701 |
-
_calculateChangedBits: calculateChangedBits,
|
3702 |
-
// As a workaround to support multiple concurrent renderers, we categorize
|
3703 |
-
// some renderers as primary and others as secondary. We only expect
|
3704 |
-
// there to be two concurrent renderers at most: React Native (primary) and
|
3705 |
-
// Fabric (secondary); React DOM (primary) and React ART (secondary).
|
3706 |
-
// Secondary renderers store their context values on separate fields.
|
3707 |
-
_currentValue: defaultValue,
|
3708 |
-
_currentValue2: defaultValue,
|
3709 |
-
// These are circular
|
3710 |
-
Provider: null,
|
3711 |
-
Consumer: null
|
3712 |
-
};
|
3713 |
-
|
3714 |
-
context.Provider = {
|
3715 |
-
$$typeof: REACT_PROVIDER_TYPE,
|
3716 |
-
_context: context
|
3717 |
-
};
|
3718 |
-
|
3719 |
-
var hasWarnedAboutUsingNestedContextConsumers = false;
|
3720 |
-
var hasWarnedAboutUsingConsumerProvider = false;
|
3721 |
-
|
3722 |
-
{
|
3723 |
-
// A separate object, but proxies back to the original context object for
|
3724 |
-
// backwards compatibility. It has a different $$typeof, so we can properly
|
3725 |
-
// warn for the incorrect usage of Context as a Consumer.
|
3726 |
-
var Consumer = {
|
3727 |
-
$$typeof: REACT_CONTEXT_TYPE,
|
3728 |
-
_context: context,
|
3729 |
-
_calculateChangedBits: context._calculateChangedBits
|
3730 |
-
};
|
3731 |
-
// $FlowFixMe: Flow complains about not setting a value, which is intentional here
|
3732 |
-
Object.defineProperties(Consumer, {
|
3733 |
-
Provider: {
|
3734 |
-
get: function get() {
|
3735 |
-
if (!hasWarnedAboutUsingConsumerProvider) {
|
3736 |
-
hasWarnedAboutUsingConsumerProvider = true;
|
3737 |
-
warning$1(false, 'Rendering <Context.Consumer.Provider> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Provider> instead?');
|
3738 |
-
}
|
3739 |
-
return context.Provider;
|
3740 |
-
},
|
3741 |
-
set: function set(_Provider) {
|
3742 |
-
context.Provider = _Provider;
|
3743 |
-
}
|
3744 |
-
},
|
3745 |
-
_currentValue: {
|
3746 |
-
get: function get() {
|
3747 |
-
return context._currentValue;
|
3748 |
-
},
|
3749 |
-
set: function set(_currentValue) {
|
3750 |
-
context._currentValue = _currentValue;
|
3751 |
-
}
|
3752 |
-
},
|
3753 |
-
_currentValue2: {
|
3754 |
-
get: function get() {
|
3755 |
-
return context._currentValue2;
|
3756 |
-
},
|
3757 |
-
set: function set(_currentValue2) {
|
3758 |
-
context._currentValue2 = _currentValue2;
|
3759 |
-
}
|
3760 |
-
},
|
3761 |
-
Consumer: {
|
3762 |
-
get: function get() {
|
3763 |
-
if (!hasWarnedAboutUsingNestedContextConsumers) {
|
3764 |
-
hasWarnedAboutUsingNestedContextConsumers = true;
|
3765 |
-
warning$1(false, 'Rendering <Context.Consumer.Consumer> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?');
|
3766 |
-
}
|
3767 |
-
return context.Consumer;
|
3768 |
-
}
|
3769 |
-
}
|
3770 |
-
});
|
3771 |
-
// $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty
|
3772 |
-
context.Consumer = Consumer;
|
3773 |
-
}
|
3774 |
-
|
3775 |
-
{
|
3776 |
-
context._currentRenderer = null;
|
3777 |
-
context._currentRenderer2 = null;
|
3778 |
-
}
|
3779 |
-
|
3780 |
-
return context;
|
3781 |
-
}
|
3782 |
-
|
3783 |
-
function lazy(ctor) {
|
3784 |
-
return {
|
3785 |
-
$$typeof: REACT_LAZY_TYPE,
|
3786 |
-
_ctor: ctor,
|
3787 |
-
// React uses these fields to store the result.
|
3788 |
-
_status: -1,
|
3789 |
-
_result: null
|
3790 |
-
};
|
3791 |
-
}
|
3792 |
-
|
3793 |
-
function forwardRef(render) {
|
3794 |
-
{
|
3795 |
-
if (typeof render !== 'function') {
|
3796 |
-
warningWithoutStack$1(false, 'forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render === 'undefined' ? 'undefined' : _typeof(render));
|
3797 |
-
} else {
|
3798 |
-
!(
|
3799 |
-
// Do not warn for 0 arguments because it could be due to usage of the 'arguments' object
|
3800 |
-
render.length === 0 || render.length === 2) ? warningWithoutStack$1(false, 'forwardRef render functions accept exactly two parameters: props and ref. %s', render.length === 1 ? 'Did you forget to use the ref parameter?' : 'Any additional parameter will be undefined.') : void 0;
|
3801 |
-
}
|
3802 |
-
|
3803 |
-
if (render != null) {
|
3804 |
-
!(render.defaultProps == null && render.propTypes == null) ? warningWithoutStack$1(false, 'forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?') : void 0;
|
3805 |
-
}
|
3806 |
-
}
|
3807 |
-
|
3808 |
-
return {
|
3809 |
-
$$typeof: REACT_FORWARD_REF_TYPE,
|
3810 |
-
render: render
|
3811 |
-
};
|
3812 |
-
}
|
3813 |
-
|
3814 |
-
function isValidElementType(type) {
|
3815 |
-
return typeof type === 'string' || typeof type === 'function' ||
|
3816 |
-
// Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
3817 |
-
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || (typeof type === 'undefined' ? 'undefined' : _typeof(type)) === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE);
|
3818 |
-
}
|
3819 |
-
|
3820 |
-
function memo(type, compare) {
|
3821 |
-
{
|
3822 |
-
if (!isValidElementType(type)) {
|
3823 |
-
warningWithoutStack$1(false, 'memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type === 'undefined' ? 'undefined' : _typeof(type));
|
3824 |
-
}
|
3825 |
-
}
|
3826 |
-
return {
|
3827 |
-
$$typeof: REACT_MEMO_TYPE,
|
3828 |
-
type: type,
|
3829 |
-
compare: compare === undefined ? null : compare
|
3830 |
-
};
|
3831 |
-
}
|
3832 |
-
|
3833 |
-
/**
|
3834 |
-
* ReactElementValidator provides a wrapper around a element factory
|
3835 |
-
* which validates the props passed to the element. This is intended to be
|
3836 |
-
* used only in DEV and could be replaced by a static type checker for languages
|
3837 |
-
* that support it.
|
3838 |
-
*/
|
3839 |
-
|
3840 |
-
var propTypesMisspellWarningShown = void 0;
|
3841 |
-
|
3842 |
-
{
|
3843 |
-
propTypesMisspellWarningShown = false;
|
3844 |
-
}
|
3845 |
-
|
3846 |
-
function getDeclarationErrorAddendum() {
|
3847 |
-
if (ReactCurrentOwner.current) {
|
3848 |
-
var name = getComponentName(ReactCurrentOwner.current.type);
|
3849 |
-
if (name) {
|
3850 |
-
return '\n\nCheck the render method of `' + name + '`.';
|
3851 |
-
}
|
3852 |
-
}
|
3853 |
-
return '';
|
3854 |
-
}
|
3855 |
-
|
3856 |
-
function getSourceInfoErrorAddendum(elementProps) {
|
3857 |
-
if (elementProps !== null && elementProps !== undefined && elementProps.__source !== undefined) {
|
3858 |
-
var source = elementProps.__source;
|
3859 |
-
var fileName = source.fileName.replace(/^.*[\\\/]/, '');
|
3860 |
-
var lineNumber = source.lineNumber;
|
3861 |
-
return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
|
3862 |
-
}
|
3863 |
-
return '';
|
3864 |
-
}
|
3865 |
-
|
3866 |
-
/**
|
3867 |
-
* Warn if there's no key explicitly set on dynamic arrays of children or
|
3868 |
-
* object keys are not valid. This allows us to keep track of children between
|
3869 |
-
* updates.
|
3870 |
-
*/
|
3871 |
-
var ownerHasKeyUseWarning = {};
|
3872 |
-
|
3873 |
-
function getCurrentComponentErrorInfo(parentType) {
|
3874 |
-
var info = getDeclarationErrorAddendum();
|
3875 |
-
|
3876 |
-
if (!info) {
|
3877 |
-
var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
|
3878 |
-
if (parentName) {
|
3879 |
-
info = '\n\nCheck the top-level render call using <' + parentName + '>.';
|
3880 |
-
}
|
3881 |
-
}
|
3882 |
-
return info;
|
3883 |
-
}
|
3884 |
-
|
3885 |
-
/**
|
3886 |
-
* Warn if the element doesn't have an explicit key assigned to it.
|
3887 |
-
* This element is in an array. The array could grow and shrink or be
|
3888 |
-
* reordered. All children that haven't already been validated are required to
|
3889 |
-
* have a "key" property assigned to it. Error statuses are cached so a warning
|
3890 |
-
* will only be shown once.
|
3891 |
-
*
|
3892 |
-
* @internal
|
3893 |
-
* @param {ReactElement} element Element that requires a key.
|
3894 |
-
* @param {*} parentType element's parent's type.
|
3895 |
-
*/
|
3896 |
-
function validateExplicitKey(element, parentType) {
|
3897 |
-
if (!element._store || element._store.validated || element.key != null) {
|
3898 |
-
return;
|
3899 |
-
}
|
3900 |
-
element._store.validated = true;
|
3901 |
-
|
3902 |
-
var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
|
3903 |
-
if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
|
3904 |
-
return;
|
3905 |
-
}
|
3906 |
-
ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
|
3907 |
-
|
3908 |
-
// Usually the current owner is the offender, but if it accepts children as a
|
3909 |
-
// property, it may be the creator of the child that's responsible for
|
3910 |
-
// assigning it a key.
|
3911 |
-
var childOwner = '';
|
3912 |
-
if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
|
3913 |
-
// Give the component that originally created this child.
|
3914 |
-
childOwner = ' It was passed a child from ' + getComponentName(element._owner.type) + '.';
|
3915 |
-
}
|
3916 |
-
|
3917 |
-
setCurrentlyValidatingElement(element);
|
3918 |
-
{
|
3919 |
-
warning$1(false, 'Each child in an array or iterator should have a unique "key" prop.' + '%s%s See https://fb.me/react-warning-keys for more information.', currentComponentErrorInfo, childOwner);
|
3920 |
-
}
|
3921 |
-
setCurrentlyValidatingElement(null);
|
3922 |
-
}
|
3923 |
-
|
3924 |
-
/**
|
3925 |
-
* Ensure that every element either is passed in a static location, in an
|
3926 |
-
* array with an explicit keys property defined, or in an object literal
|
3927 |
-
* with valid key property.
|
3928 |
-
*
|
3929 |
-
* @internal
|
3930 |
-
* @param {ReactNode} node Statically passed child of any type.
|
3931 |
-
* @param {*} parentType node's parent's type.
|
3932 |
-
*/
|
3933 |
-
function validateChildKeys(node, parentType) {
|
3934 |
-
if ((typeof node === 'undefined' ? 'undefined' : _typeof(node)) !== 'object') {
|
3935 |
-
return;
|
3936 |
-
}
|
3937 |
-
if (Array.isArray(node)) {
|
3938 |
-
for (var i = 0; i < node.length; i++) {
|
3939 |
-
var child = node[i];
|
3940 |
-
if (isValidElement(child)) {
|
3941 |
-
validateExplicitKey(child, parentType);
|
3942 |
-
}
|
3943 |
-
}
|
3944 |
-
} else if (isValidElement(node)) {
|
3945 |
-
// This element was passed in a valid location.
|
3946 |
-
if (node._store) {
|
3947 |
-
node._store.validated = true;
|
3948 |
-
}
|
3949 |
-
} else if (node) {
|
3950 |
-
var iteratorFn = getIteratorFn(node);
|
3951 |
-
if (typeof iteratorFn === 'function') {
|
3952 |
-
// Entry iterators used to provide implicit keys,
|
3953 |
-
// but now we print a separate warning for them later.
|
3954 |
-
if (iteratorFn !== node.entries) {
|
3955 |
-
var iterator = iteratorFn.call(node);
|
3956 |
-
var step = void 0;
|
3957 |
-
while (!(step = iterator.next()).done) {
|
3958 |
-
if (isValidElement(step.value)) {
|
3959 |
-
validateExplicitKey(step.value, parentType);
|
3960 |
-
}
|
3961 |
-
}
|
3962 |
-
}
|
3963 |
-
}
|
3964 |
-
}
|
3965 |
-
}
|
3966 |
-
|
3967 |
-
/**
|
3968 |
-
* Given an element, validate that its props follow the propTypes definition,
|
3969 |
-
* provided by the type.
|
3970 |
-
*
|
3971 |
-
* @param {ReactElement} element
|
3972 |
-
*/
|
3973 |
-
function validatePropTypes(element) {
|
3974 |
-
var type = element.type;
|
3975 |
-
var name = void 0,
|
3976 |
-
propTypes = void 0;
|
3977 |
-
if (typeof type === 'function') {
|
3978 |
-
// Class or function component
|
3979 |
-
name = type.displayName || type.name;
|
3980 |
-
propTypes = type.propTypes;
|
3981 |
-
} else if ((typeof type === 'undefined' ? 'undefined' : _typeof(type)) === 'object' && type !== null && type.$$typeof === REACT_FORWARD_REF_TYPE) {
|
3982 |
-
// ForwardRef
|
3983 |
-
var functionName = type.render.displayName || type.render.name || '';
|
3984 |
-
name = type.displayName || (functionName !== '' ? 'ForwardRef(' + functionName + ')' : 'ForwardRef');
|
3985 |
-
propTypes = type.propTypes;
|
3986 |
-
} else {
|
3987 |
-
return;
|
3988 |
-
}
|
3989 |
-
if (propTypes) {
|
3990 |
-
setCurrentlyValidatingElement(element);
|
3991 |
-
checkPropTypes(propTypes, element.props, 'prop', name, ReactDebugCurrentFrame.getStackAddendum);
|
3992 |
-
setCurrentlyValidatingElement(null);
|
3993 |
-
} else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
|
3994 |
-
propTypesMisspellWarningShown = true;
|
3995 |
-
warningWithoutStack$1(false, 'Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', name || 'Unknown');
|
3996 |
-
}
|
3997 |
-
if (typeof type.getDefaultProps === 'function') {
|
3998 |
-
!type.getDefaultProps.isReactClassApproved ? warningWithoutStack$1(false, 'getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.') : void 0;
|
3999 |
-
}
|
4000 |
-
}
|
4001 |
-
|
4002 |
-
/**
|
4003 |
-
* Given a fragment, validate that it can only be provided with fragment props
|
4004 |
-
* @param {ReactElement} fragment
|
4005 |
-
*/
|
4006 |
-
function validateFragmentProps(fragment) {
|
4007 |
-
setCurrentlyValidatingElement(fragment);
|
4008 |
-
|
4009 |
-
var keys = Object.keys(fragment.props);
|
4010 |
-
for (var i = 0; i < keys.length; i++) {
|
4011 |
-
var key = keys[i];
|
4012 |
-
if (key !== 'children' && key !== 'key') {
|
4013 |
-
warning$1(false, 'Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
|
4014 |
-
break;
|
4015 |
-
}
|
4016 |
-
}
|
4017 |
-
|
4018 |
-
if (fragment.ref !== null) {
|
4019 |
-
warning$1(false, 'Invalid attribute `ref` supplied to `React.Fragment`.');
|
4020 |
-
}
|
4021 |
-
|
4022 |
-
setCurrentlyValidatingElement(null);
|
4023 |
-
}
|
4024 |
-
|
4025 |
-
function createElementWithValidation(type, props, children) {
|
4026 |
-
var validType = isValidElementType(type);
|
4027 |
-
|
4028 |
-
// We warn in this case but don't throw. We expect the element creation to
|
4029 |
-
// succeed and there will likely be errors in render.
|
4030 |
-
if (!validType) {
|
4031 |
-
var info = '';
|
4032 |
-
if (type === undefined || (typeof type === 'undefined' ? 'undefined' : _typeof(type)) === 'object' && type !== null && Object.keys(type).length === 0) {
|
4033 |
-
info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports.";
|
4034 |
-
}
|
4035 |
-
|
4036 |
-
var sourceInfo = getSourceInfoErrorAddendum(props);
|
4037 |
-
if (sourceInfo) {
|
4038 |
-
info += sourceInfo;
|
4039 |
-
} else {
|
4040 |
-
info += getDeclarationErrorAddendum();
|
4041 |
-
}
|
4042 |
-
|
4043 |
-
var typeString = void 0;
|
4044 |
-
if (type === null) {
|
4045 |
-
typeString = 'null';
|
4046 |
-
} else if (Array.isArray(type)) {
|
4047 |
-
typeString = 'array';
|
4048 |
-
} else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
|
4049 |
-
typeString = '<' + (getComponentName(type.type) || 'Unknown') + ' />';
|
4050 |
-
info = ' Did you accidentally export a JSX literal instead of a component?';
|
4051 |
-
} else {
|
4052 |
-
typeString = typeof type === 'undefined' ? 'undefined' : _typeof(type);
|
4053 |
-
}
|
4054 |
-
|
4055 |
-
warning$1(false, 'React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);
|
4056 |
-
}
|
4057 |
-
|
4058 |
-
var element = createElement.apply(this, arguments);
|
4059 |
-
|
4060 |
-
// The result can be nullish if a mock or a custom function is used.
|
4061 |
-
// TODO: Drop this when these are no longer allowed as the type argument.
|
4062 |
-
if (element == null) {
|
4063 |
-
return element;
|
4064 |
-
}
|
4065 |
-
|
4066 |
-
// Skip key warning if the type isn't valid since our key validation logic
|
4067 |
-
// doesn't expect a non-string/function type and can throw confusing errors.
|
4068 |
-
// We don't want exception behavior to differ between dev and prod.
|
4069 |
-
// (Rendering will throw with a helpful message and as soon as the type is
|
4070 |
-
// fixed, the key warnings will appear.)
|
4071 |
-
if (validType) {
|
4072 |
-
for (var i = 2; i < arguments.length; i++) {
|
4073 |
-
validateChildKeys(arguments[i], type);
|
4074 |
-
}
|
4075 |
-
}
|
4076 |
-
|
4077 |
-
if (type === REACT_FRAGMENT_TYPE) {
|
4078 |
-
validateFragmentProps(element);
|
4079 |
-
} else {
|
4080 |
-
validatePropTypes(element);
|
4081 |
-
}
|
4082 |
-
|
4083 |
-
return element;
|
4084 |
-
}
|
4085 |
-
|
4086 |
-
function createFactoryWithValidation(type) {
|
4087 |
-
var validatedFactory = createElementWithValidation.bind(null, type);
|
4088 |
-
validatedFactory.type = type;
|
4089 |
-
// Legacy hook: remove it
|
4090 |
-
{
|
4091 |
-
Object.defineProperty(validatedFactory, 'type', {
|
4092 |
-
enumerable: false,
|
4093 |
-
get: function get() {
|
4094 |
-
lowPriorityWarning$1(false, 'Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.');
|
4095 |
-
Object.defineProperty(this, 'type', {
|
4096 |
-
value: type
|
4097 |
-
});
|
4098 |
-
return type;
|
4099 |
-
}
|
4100 |
-
});
|
4101 |
-
}
|
4102 |
-
|
4103 |
-
return validatedFactory;
|
4104 |
-
}
|
4105 |
-
|
4106 |
-
function cloneElementWithValidation(element, props, children) {
|
4107 |
-
var newElement = cloneElement.apply(this, arguments);
|
4108 |
-
for (var i = 2; i < arguments.length; i++) {
|
4109 |
-
validateChildKeys(arguments[i], newElement.type);
|
4110 |
-
}
|
4111 |
-
validatePropTypes(newElement);
|
4112 |
-
return newElement;
|
4113 |
-
}
|
4114 |
-
|
4115 |
-
var React = {
|
4116 |
-
Children: {
|
4117 |
-
map: mapChildren,
|
4118 |
-
forEach: forEachChildren,
|
4119 |
-
count: countChildren,
|
4120 |
-
toArray: toArray,
|
4121 |
-
only: onlyChild
|
4122 |
-
},
|
4123 |
-
|
4124 |
-
createRef: createRef,
|
4125 |
-
Component: Component,
|
4126 |
-
PureComponent: PureComponent,
|
4127 |
-
|
4128 |
-
createContext: createContext,
|
4129 |
-
forwardRef: forwardRef,
|
4130 |
-
lazy: lazy,
|
4131 |
-
memo: memo,
|
4132 |
-
|
4133 |
-
Fragment: REACT_FRAGMENT_TYPE,
|
4134 |
-
StrictMode: REACT_STRICT_MODE_TYPE,
|
4135 |
-
unstable_ConcurrentMode: REACT_CONCURRENT_MODE_TYPE,
|
4136 |
-
Suspense: REACT_SUSPENSE_TYPE,
|
4137 |
-
unstable_Profiler: REACT_PROFILER_TYPE,
|
4138 |
-
|
4139 |
-
createElement: createElementWithValidation,
|
4140 |
-
cloneElement: cloneElementWithValidation,
|
4141 |
-
createFactory: createFactoryWithValidation,
|
4142 |
-
isValidElement: isValidElement,
|
4143 |
-
|
4144 |
-
version: ReactVersion,
|
4145 |
-
|
4146 |
-
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: ReactSharedInternals
|
4147 |
-
};
|
4148 |
-
|
4149 |
-
var React$2 = Object.freeze({
|
4150 |
-
default: React
|
4151 |
-
});
|
4152 |
-
|
4153 |
-
var React$3 = React$2 && React || React$2;
|
4154 |
-
|
4155 |
-
// TODO: decide on the top-level export form.
|
4156 |
-
// This is hacky but makes it work with both Rollup and Jest.
|
4157 |
-
var react = React$3.default || React$3;
|
4158 |
-
|
4159 |
-
module.exports = react;
|
4160 |
-
})();
|
4161 |
-
}
|
4162 |
-
|
4163 |
-
/***/ }),
|
4164 |
-
|
4165 |
-
/***/ "./node_modules/react/index.js":
|
4166 |
-
/*!*************************************!*\
|
4167 |
-
!*** ./node_modules/react/index.js ***!
|
4168 |
-
\*************************************/
|
4169 |
-
/*! no static exports found */
|
4170 |
-
/***/ (function(module, exports, __webpack_require__) {
|
4171 |
-
|
4172 |
-
"use strict";
|
4173 |
-
|
4174 |
-
|
4175 |
-
if (false) {} else {
|
4176 |
-
module.exports = __webpack_require__(/*! ./cjs/react.development.js */ "./node_modules/react/cjs/react.development.js");
|
4177 |
-
}
|
4178 |
-
|
4179 |
-
/***/ }),
|
4180 |
-
|
4181 |
-
/***/ "./node_modules/style-loader/lib/addStyles.js":
|
4182 |
-
/*!****************************************************!*\
|
4183 |
-
!*** ./node_modules/style-loader/lib/addStyles.js ***!
|
4184 |
-
\****************************************************/
|
4185 |
-
/*! no static exports found */
|
4186 |
-
/***/ (function(module, exports, __webpack_require__) {
|
4187 |
-
|
4188 |
-
/*
|
4189 |
-
MIT License http://www.opensource.org/licenses/mit-license.php
|
4190 |
-
Author Tobias Koppers @sokra
|
4191 |
-
*/
|
4192 |
-
|
4193 |
-
var stylesInDom = {};
|
4194 |
-
|
4195 |
-
var memoize = function (fn) {
|
4196 |
-
var memo;
|
4197 |
-
|
4198 |
-
return function () {
|
4199 |
-
if (typeof memo === "undefined") memo = fn.apply(this, arguments);
|
4200 |
-
return memo;
|
4201 |
-
};
|
4202 |
-
};
|
4203 |
-
|
4204 |
-
var isOldIE = memoize(function () {
|
4205 |
-
// Test for IE <= 9 as proposed by Browserhacks
|
4206 |
-
// @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805
|
4207 |
-
// Tests for existence of standard globals is to allow style-loader
|
4208 |
-
// to operate correctly into non-standard environments
|
4209 |
-
// @see https://github.com/webpack-contrib/style-loader/issues/177
|
4210 |
-
return window && document && document.all && !window.atob;
|
4211 |
-
});
|
4212 |
-
|
4213 |
-
var getTarget = function (target) {
|
4214 |
-
return document.querySelector(target);
|
4215 |
-
};
|
4216 |
-
|
4217 |
-
var getElement = (function (fn) {
|
4218 |
-
var memo = {};
|
4219 |
-
|
4220 |
-
return function(target) {
|
4221 |
-
// If passing function in options, then use it for resolve "head" element.
|
4222 |
-
// Useful for Shadow Root style i.e
|
4223 |
-
// {
|
4224 |
-
// insertInto: function () { return document.querySelector("#foo").shadowRoot }
|
4225 |
-
// }
|
4226 |
-
if (typeof target === 'function') {
|
4227 |
-
return target();
|
4228 |
-
}
|
4229 |
-
if (typeof memo[target] === "undefined") {
|
4230 |
-
var styleTarget = getTarget.call(this, target);
|
4231 |
-
// Special case to return head of iframe instead of iframe itself
|
4232 |
-
if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
|
4233 |
-
try {
|
4234 |
-
// This will throw an exception if access to iframe is blocked
|
4235 |
-
// due to cross-origin restrictions
|
4236 |
-
styleTarget = styleTarget.contentDocument.head;
|
4237 |
-
} catch(e) {
|
4238 |
-
styleTarget = null;
|
4239 |
-
}
|
4240 |
-
}
|
4241 |
-
memo[target] = styleTarget;
|
4242 |
-
}
|
4243 |
-
return memo[target]
|
4244 |
-
};
|
4245 |
-
})();
|
4246 |
-
|
4247 |
-
var singleton = null;
|
4248 |
-
var singletonCounter = 0;
|
4249 |
-
var stylesInsertedAtTop = [];
|
4250 |
-
|
4251 |
-
var fixUrls = __webpack_require__(/*! ./urls */ "./node_modules/style-loader/lib/urls.js");
|
4252 |
-
|
4253 |
-
module.exports = function(list, options) {
|
4254 |
-
if (typeof DEBUG !== "undefined" && DEBUG) {
|
4255 |
-
if (typeof document !== "object") throw new Error("The style-loader cannot be used in a non-browser environment");
|
4256 |
-
}
|
4257 |
-
|
4258 |
-
options = options || {};
|
4259 |
-
|
4260 |
-
options.attrs = typeof options.attrs === "object" ? options.attrs : {};
|
4261 |
-
|
4262 |
-
// Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
|
4263 |
-
// tags it will allow on a page
|
4264 |
-
if (!options.singleton && typeof options.singleton !== "boolean") options.singleton = isOldIE();
|
4265 |
-
|
4266 |
-
// By default, add <style> tags to the <head> element
|
4267 |
-
if (!options.insertInto) options.insertInto = "head";
|
4268 |
-
|
4269 |
-
// By default, add <style> tags to the bottom of the target
|
4270 |
-
if (!options.insertAt) options.insertAt = "bottom";
|
4271 |
-
|
4272 |
-
var styles = listToStyles(list, options);
|
4273 |
-
|
4274 |
-
addStylesToDom(styles, options);
|
4275 |
-
|
4276 |
-
return function update (newList) {
|
4277 |
-
var mayRemove = [];
|
4278 |
-
|
4279 |
-
for (var i = 0; i < styles.length; i++) {
|
4280 |
-
var item = styles[i];
|
4281 |
-
var domStyle = stylesInDom[item.id];
|
4282 |
-
|
4283 |
-
domStyle.refs--;
|
4284 |
-
mayRemove.push(domStyle);
|
4285 |
-
}
|
4286 |
-
|
4287 |
-
if(newList) {
|
4288 |
-
var newStyles = listToStyles(newList, options);
|
4289 |
-
addStylesToDom(newStyles, options);
|
4290 |
-
}
|
4291 |
-
|
4292 |
-
for (var i = 0; i < mayRemove.length; i++) {
|
4293 |
-
var domStyle = mayRemove[i];
|
4294 |
-
|
4295 |
-
if(domStyle.refs === 0) {
|
4296 |
-
for (var j = 0; j < domStyle.parts.length; j++) domStyle.parts[j]();
|
4297 |
-
|
4298 |
-
delete stylesInDom[domStyle.id];
|
4299 |
-
}
|
4300 |
-
}
|
4301 |
-
};
|
4302 |
-
};
|
4303 |
-
|
4304 |
-
function addStylesToDom (styles, options) {
|
4305 |
-
for (var i = 0; i < styles.length; i++) {
|
4306 |
-
var item = styles[i];
|
4307 |
-
var domStyle = stylesInDom[item.id];
|
4308 |
-
|
4309 |
-
if(domStyle) {
|
4310 |
-
domStyle.refs++;
|
4311 |
-
|
4312 |
-
for(var j = 0; j < domStyle.parts.length; j++) {
|
4313 |
-
domStyle.parts[j](item.parts[j]);
|
4314 |
-
}
|
4315 |
-
|
4316 |
-
for(; j < item.parts.length; j++) {
|
4317 |
-
domStyle.parts.push(addStyle(item.parts[j], options));
|
4318 |
-
}
|
4319 |
-
} else {
|
4320 |
-
var parts = [];
|
4321 |
-
|
4322 |
-
for(var j = 0; j < item.parts.length; j++) {
|
4323 |
-
parts.push(addStyle(item.parts[j], options));
|
4324 |
-
}
|
4325 |
-
|
4326 |
-
stylesInDom[item.id] = {id: item.id, refs: 1, parts: parts};
|
4327 |
-
}
|
4328 |
-
}
|
4329 |
-
}
|
4330 |
-
|
4331 |
-
function listToStyles (list, options) {
|
4332 |
-
var styles = [];
|
4333 |
-
var newStyles = {};
|
4334 |
-
|
4335 |
-
for (var i = 0; i < list.length; i++) {
|
4336 |
-
var item = list[i];
|
4337 |
-
var id = options.base ? item[0] + options.base : item[0];
|
4338 |
-
var css = item[1];
|
4339 |
-
var media = item[2];
|
4340 |
-
var sourceMap = item[3];
|
4341 |
-
var part = {css: css, media: media, sourceMap: sourceMap};
|
4342 |
-
|
4343 |
-
if(!newStyles[id]) styles.push(newStyles[id] = {id: id, parts: [part]});
|
4344 |
-
else newStyles[id].parts.push(part);
|
4345 |
-
}
|
4346 |
-
|
4347 |
-
return styles;
|
4348 |
-
}
|
4349 |
-
|
4350 |
-
function insertStyleElement (options, style) {
|
4351 |
-
var target = getElement(options.insertInto)
|
4352 |
-
|
4353 |
-
if (!target) {
|
4354 |
-
throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");
|
4355 |
-
}
|
4356 |
-
|
4357 |
-
var lastStyleElementInsertedAtTop = stylesInsertedAtTop[stylesInsertedAtTop.length - 1];
|
4358 |
-
|
4359 |
-
if (options.insertAt === "top") {
|
4360 |
-
if (!lastStyleElementInsertedAtTop) {
|
4361 |
-
target.insertBefore(style, target.firstChild);
|
4362 |
-
} else if (lastStyleElementInsertedAtTop.nextSibling) {
|
4363 |
-
target.insertBefore(style, lastStyleElementInsertedAtTop.nextSibling);
|
4364 |
-
} else {
|
4365 |
-
target.appendChild(style);
|
4366 |
-
}
|
4367 |
-
stylesInsertedAtTop.push(style);
|
4368 |
-
} else if (options.insertAt === "bottom") {
|
4369 |
-
target.appendChild(style);
|
4370 |
-
} else if (typeof options.insertAt === "object" && options.insertAt.before) {
|
4371 |
-
var nextSibling = getElement(options.insertInto + " " + options.insertAt.before);
|
4372 |
-
target.insertBefore(style, nextSibling);
|
4373 |
-
} else {
|
4374 |
-
throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");
|
4375 |
-
}
|
4376 |
-
}
|
4377 |
-
|
4378 |
-
function removeStyleElement (style) {
|
4379 |
-
if (style.parentNode === null) return false;
|
4380 |
-
style.parentNode.removeChild(style);
|
4381 |
-
|
4382 |
-
var idx = stylesInsertedAtTop.indexOf(style);
|
4383 |
-
if(idx >= 0) {
|
4384 |
-
stylesInsertedAtTop.splice(idx, 1);
|
4385 |
-
}
|
4386 |
-
}
|
4387 |
-
|
4388 |
-
function createStyleElement (options) {
|
4389 |
-
var style = document.createElement("style");
|
4390 |
-
|
4391 |
-
options.attrs.type = "text/css";
|
4392 |
-
|
4393 |
-
addAttrs(style, options.attrs);
|
4394 |
-
insertStyleElement(options, style);
|
4395 |
-
|
4396 |
-
return style;
|
4397 |
-
}
|
4398 |
-
|
4399 |
-
function createLinkElement (options) {
|
4400 |
-
var link = document.createElement("link");
|
4401 |
-
|
4402 |
-
options.attrs.type = "text/css";
|
4403 |
-
options.attrs.rel = "stylesheet";
|
4404 |
-
|
4405 |
-
addAttrs(link, options.attrs);
|
4406 |
-
insertStyleElement(options, link);
|
4407 |
-
|
4408 |
-
return link;
|
4409 |
-
}
|
4410 |
-
|
4411 |
-
function addAttrs (el, attrs) {
|
4412 |
-
Object.keys(attrs).forEach(function (key) {
|
4413 |
-
el.setAttribute(key, attrs[key]);
|
4414 |
-
});
|
4415 |
-
}
|
4416 |
-
|
4417 |
-
function addStyle (obj, options) {
|
4418 |
-
var style, update, remove, result;
|
4419 |
-
|
4420 |
-
// If a transform function was defined, run it on the css
|
4421 |
-
if (options.transform && obj.css) {
|
4422 |
-
result = options.transform(obj.css);
|
4423 |
-
|
4424 |
-
if (result) {
|
4425 |
-
// If transform returns a value, use that instead of the original css.
|
4426 |
-
// This allows running runtime transformations on the css.
|
4427 |
-
obj.css = result;
|
4428 |
-
} else {
|
4429 |
-
// If the transform function returns a falsy value, don't add this css.
|
4430 |
-
// This allows conditional loading of css
|
4431 |
-
return function() {
|
4432 |
-
// noop
|
4433 |
-
};
|
4434 |
-
}
|
4435 |
-
}
|
4436 |
-
|
4437 |
-
if (options.singleton) {
|
4438 |
-
var styleIndex = singletonCounter++;
|
4439 |
-
|
4440 |
-
style = singleton || (singleton = createStyleElement(options));
|
4441 |
-
|
4442 |
-
update = applyToSingletonTag.bind(null, style, styleIndex, false);
|
4443 |
-
remove = applyToSingletonTag.bind(null, style, styleIndex, true);
|
4444 |
-
|
4445 |
-
} else if (
|
4446 |
-
obj.sourceMap &&
|
4447 |
-
typeof URL === "function" &&
|
4448 |
-
typeof URL.createObjectURL === "function" &&
|
4449 |
-
typeof URL.revokeObjectURL === "function" &&
|
4450 |
-
typeof Blob === "function" &&
|
4451 |
-
typeof btoa === "function"
|
4452 |
-
) {
|
4453 |
-
style = createLinkElement(options);
|
4454 |
-
update = updateLink.bind(null, style, options);
|
4455 |
-
remove = function () {
|
4456 |
-
removeStyleElement(style);
|
4457 |
-
|
4458 |
-
if(style.href) URL.revokeObjectURL(style.href);
|
4459 |
-
};
|
4460 |
-
} else {
|
4461 |
-
style = createStyleElement(options);
|
4462 |
-
update = applyToTag.bind(null, style);
|
4463 |
-
remove = function () {
|
4464 |
-
removeStyleElement(style);
|
4465 |
-
};
|
4466 |
-
}
|
4467 |
-
|
4468 |
-
update(obj);
|
4469 |
-
|
4470 |
-
return function updateStyle (newObj) {
|
4471 |
-
if (newObj) {
|
4472 |
-
if (
|
4473 |
-
newObj.css === obj.css &&
|
4474 |
-
newObj.media === obj.media &&
|
4475 |
-
newObj.sourceMap === obj.sourceMap
|
4476 |
-
) {
|
4477 |
-
return;
|
4478 |
-
}
|
4479 |
-
|
4480 |
-
update(obj = newObj);
|
4481 |
-
} else {
|
4482 |
-
remove();
|
4483 |
-
}
|
4484 |
-
};
|
4485 |
-
}
|
4486 |
-
|
4487 |
-
var replaceText = (function () {
|
4488 |
-
var textStore = [];
|
4489 |
-
|
4490 |
-
return function (index, replacement) {
|
4491 |
-
textStore[index] = replacement;
|
4492 |
-
|
4493 |
-
return textStore.filter(Boolean).join('\n');
|
4494 |
-
};
|
4495 |
-
})();
|
4496 |
-
|
4497 |
-
function applyToSingletonTag (style, index, remove, obj) {
|
4498 |
-
var css = remove ? "" : obj.css;
|
4499 |
-
|
4500 |
-
if (style.styleSheet) {
|
4501 |
-
style.styleSheet.cssText = replaceText(index, css);
|
4502 |
-
} else {
|
4503 |
-
var cssNode = document.createTextNode(css);
|
4504 |
-
var childNodes = style.childNodes;
|
4505 |
-
|
4506 |
-
if (childNodes[index]) style.removeChild(childNodes[index]);
|
4507 |
-
|
4508 |
-
if (childNodes.length) {
|
4509 |
-
style.insertBefore(cssNode, childNodes[index]);
|
4510 |
-
} else {
|
4511 |
-
style.appendChild(cssNode);
|
4512 |
-
}
|
4513 |
-
}
|
4514 |
-
}
|
4515 |
-
|
4516 |
-
function applyToTag (style, obj) {
|
4517 |
-
var css = obj.css;
|
4518 |
-
var media = obj.media;
|
4519 |
-
|
4520 |
-
if(media) {
|
4521 |
-
style.setAttribute("media", media)
|
4522 |
-
}
|
4523 |
-
|
4524 |
-
if(style.styleSheet) {
|
4525 |
-
style.styleSheet.cssText = css;
|
4526 |
-
} else {
|
4527 |
-
while(style.firstChild) {
|
4528 |
-
style.removeChild(style.firstChild);
|
4529 |
-
}
|
4530 |
-
|
4531 |
-
style.appendChild(document.createTextNode(css));
|
4532 |
-
}
|
4533 |
-
}
|
4534 |
-
|
4535 |
-
function updateLink (link, options, obj) {
|
4536 |
-
var css = obj.css;
|
4537 |
-
var sourceMap = obj.sourceMap;
|
4538 |
-
|
4539 |
-
/*
|
4540 |
-
If convertToAbsoluteUrls isn't defined, but sourcemaps are enabled
|
4541 |
-
and there is no publicPath defined then lets turn convertToAbsoluteUrls
|
4542 |
-
on by default. Otherwise default to the convertToAbsoluteUrls option
|
4543 |
-
directly
|
4544 |
-
*/
|
4545 |
-
var autoFixUrls = options.convertToAbsoluteUrls === undefined && sourceMap;
|
4546 |
-
|
4547 |
-
if (options.convertToAbsoluteUrls || autoFixUrls) {
|
4548 |
-
css = fixUrls(css);
|
4549 |
-
}
|
4550 |
-
|
4551 |
-
if (sourceMap) {
|
4552 |
-
// http://stackoverflow.com/a/26603875
|
4553 |
-
css += "\n/*# sourceMappingURL=data:application/json;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + " */";
|
4554 |
-
}
|
4555 |
-
|
4556 |
-
var blob = new Blob([css], { type: "text/css" });
|
4557 |
-
|
4558 |
-
var oldSrc = link.href;
|
4559 |
-
|
4560 |
-
link.href = URL.createObjectURL(blob);
|
4561 |
-
|
4562 |
-
if(oldSrc) URL.revokeObjectURL(oldSrc);
|
4563 |
-
}
|
4564 |
-
|
4565 |
-
|
4566 |
-
/***/ }),
|
4567 |
-
|
4568 |
-
/***/ "./node_modules/style-loader/lib/urls.js":
|
4569 |
-
/*!***********************************************!*\
|
4570 |
-
!*** ./node_modules/style-loader/lib/urls.js ***!
|
4571 |
-
\***********************************************/
|
4572 |
-
/*! no static exports found */
|
4573 |
-
/***/ (function(module, exports, __webpack_require__) {
|
4574 |
-
|
4575 |
-
"use strict";
|
4576 |
-
|
4577 |
-
|
4578 |
-
/**
|
4579 |
-
* When source maps are enabled, `style-loader` uses a link element with a data-uri to
|
4580 |
-
* embed the css on the page. This breaks all relative urls because now they are relative to a
|
4581 |
-
* bundle instead of the current page.
|
4582 |
-
*
|
4583 |
-
* One solution is to only use full urls, but that may be impossible.
|
4584 |
-
*
|
4585 |
-
* Instead, this function "fixes" the relative urls to be absolute according to the current page location.
|
4586 |
-
*
|
4587 |
-
* A rudimentary test suite is located at `test/fixUrls.js` and can be run via the `npm test` command.
|
4588 |
-
*
|
4589 |
-
*/
|
4590 |
-
|
4591 |
-
module.exports = function (css) {
|
4592 |
-
// get current location
|
4593 |
-
var location = typeof window !== "undefined" && window.location;
|
4594 |
-
|
4595 |
-
if (!location) {
|
4596 |
-
throw new Error("fixUrls requires window.location");
|
4597 |
-
}
|
4598 |
-
|
4599 |
-
// blank or null?
|
4600 |
-
if (!css || typeof css !== "string") {
|
4601 |
-
return css;
|
4602 |
-
}
|
4603 |
-
|
4604 |
-
var baseUrl = location.protocol + "//" + location.host;
|
4605 |
-
var currentDir = baseUrl + location.pathname.replace(/\/[^\/]*$/, "/");
|
4606 |
-
|
4607 |
-
// convert each url(...)
|
4608 |
-
/*
|
4609 |
-
This regular expression is just a way to recursively match brackets within
|
4610 |
-
a string.
|
4611 |
-
/url\s*\( = Match on the word "url" with any whitespace after it and then a parens
|
4612 |
-
( = Start a capturing group
|
4613 |
-
(?: = Start a non-capturing group
|
4614 |
-
[^)(] = Match anything that isn't a parentheses
|
4615 |
-
| = OR
|
4616 |
-
\( = Match a start parentheses
|
4617 |
-
(?: = Start another non-capturing groups
|
4618 |
-
[^)(]+ = Match anything that isn't a parentheses
|
4619 |
-
| = OR
|
4620 |
-
\( = Match a start parentheses
|
4621 |
-
[^)(]* = Match anything that isn't a parentheses
|
4622 |
-
\) = Match a end parentheses
|
4623 |
-
) = End Group
|
4624 |
-
*\) = Match anything and then a close parens
|
4625 |
-
) = Close non-capturing group
|
4626 |
-
* = Match anything
|
4627 |
-
) = Close capturing group
|
4628 |
-
\) = Match a close parens
|
4629 |
-
/gi = Get all matches, not the first. Be case insensitive.
|
4630 |
-
*/
|
4631 |
-
var fixedCss = css.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi, function (fullMatch, origUrl) {
|
4632 |
-
// strip quotes (if they exist)
|
4633 |
-
var unquotedOrigUrl = origUrl.trim().replace(/^"(.*)"$/, function (o, $1) {
|
4634 |
-
return $1;
|
4635 |
-
}).replace(/^'(.*)'$/, function (o, $1) {
|
4636 |
-
return $1;
|
4637 |
-
});
|
4638 |
-
|
4639 |
-
// already a full url? no change
|
4640 |
-
if (/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(unquotedOrigUrl)) {
|
4641 |
-
return fullMatch;
|
4642 |
-
}
|
4643 |
-
|
4644 |
-
// convert the url to a full url
|
4645 |
-
var newUrl;
|
4646 |
-
|
4647 |
-
if (unquotedOrigUrl.indexOf("//") === 0) {
|
4648 |
-
//TODO: should we add protocol?
|
4649 |
-
newUrl = unquotedOrigUrl;
|
4650 |
-
} else if (unquotedOrigUrl.indexOf("/") === 0) {
|
4651 |
-
// path should be relative to the base url
|
4652 |
-
newUrl = baseUrl + unquotedOrigUrl; // already starts with '/'
|
4653 |
-
} else {
|
4654 |
-
// path should be relative to current directory
|
4655 |
-
newUrl = currentDir + unquotedOrigUrl.replace(/^\.\//, ""); // Strip leading './'
|
4656 |
-
}
|
4657 |
-
|
4658 |
-
// send back the fixed url(...)
|
4659 |
-
return "url(" + JSON.stringify(newUrl) + ")";
|
4660 |
-
});
|
4661 |
-
|
4662 |
-
// send back the fixed css
|
4663 |
-
return fixedCss;
|
4664 |
-
};
|
4665 |
-
|
4666 |
-
/***/ }),
|
4667 |
-
|
4668 |
-
/***/ "./node_modules/webpack/buildin/amd-options.js":
|
4669 |
-
/*!****************************************!*\
|
4670 |
-
!*** (webpack)/buildin/amd-options.js ***!
|
4671 |
-
\****************************************/
|
4672 |
-
/*! no static exports found */
|
4673 |
-
/***/ (function(module, exports) {
|
4674 |
-
|
4675 |
-
/* WEBPACK VAR INJECTION */(function(__webpack_amd_options__) {/* globals __webpack_amd_options__ */
|
4676 |
-
module.exports = __webpack_amd_options__;
|
4677 |
-
|
4678 |
-
/* WEBPACK VAR INJECTION */}.call(this, {}))
|
4679 |
-
|
4680 |
-
/***/ }),
|
4681 |
-
|
4682 |
-
/***/ "./node_modules/webpack/buildin/module.js":
|
4683 |
-
/*!***********************************!*\
|
4684 |
-
!*** (webpack)/buildin/module.js ***!
|
4685 |
-
\***********************************/
|
4686 |
-
/*! no static exports found */
|
4687 |
-
/***/ (function(module, exports, __webpack_require__) {
|
4688 |
-
|
4689 |
-
"use strict";
|
4690 |
-
|
4691 |
-
|
4692 |
-
module.exports = function (module) {
|
4693 |
-
if (!module.webpackPolyfill) {
|
4694 |
-
module.deprecate = function () {};
|
4695 |
-
module.paths = [];
|
4696 |
-
// module.parent = undefined by default
|
4697 |
-
if (!module.children) module.children = [];
|
4698 |
-
Object.defineProperty(module, "loaded", {
|
4699 |
-
enumerable: true,
|
4700 |
-
get: function get() {
|
4701 |
-
return module.l;
|
4702 |
-
}
|
4703 |
-
});
|
4704 |
-
Object.defineProperty(module, "id", {
|
4705 |
-
enumerable: true,
|
4706 |
-
get: function get() {
|
4707 |
-
return module.i;
|
4708 |
-
}
|
4709 |
-
});
|
4710 |
-
module.webpackPolyfill = 1;
|
4711 |
-
}
|
4712 |
-
return module;
|
4713 |
-
};
|
4714 |
-
|
4715 |
-
/***/ })
|
4716 |
-
|
4717 |
-
/******/ });
|
4718 |
-
//# sourceMappingURL=easy-forms-block.js.map
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
blocks/easy-forms-block/easy-forms-block.js.map
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./blocks/components/api.js","webpack:///./blocks/components/class.MailchimpForms.js","webpack:///./blocks/components/constants.js","webpack:///./blocks/components/enable-submit-button-editing.js","webpack:///./blocks/components/slugify.js","webpack:///./blocks/easy-forms-block/dev-easy-forms-block.js","webpack:///./blocks/easy-forms-block/easy-forms-block.scss?e701","webpack:///./blocks/index.js","webpack:///./node_modules/classnames/index.js","webpack:///./blocks/easy-forms-block/easy-forms-block.scss","webpack:///./node_modules/css-loader/lib/css-base.js","webpack:///./node_modules/object-assign/index.js","webpack:///./node_modules/prop-types/checkPropTypes.js","webpack:///./node_modules/prop-types/lib/ReactPropTypesSecret.js","webpack:///./node_modules/react-recaptcha/dist/react-recaptcha.js","webpack:///./node_modules/react/cjs/react.development.js","webpack:///./node_modules/react/index.js","webpack:///./node_modules/style-loader/lib/addStyles.js","webpack:///./node_modules/style-loader/lib/urls.js","webpack:///(webpack)/buildin/amd-options.js","webpack:///(webpack)/buildin/module.js"],"names":["EasyFormsAPI","ajaxurl","window","data","action","nonce","ez_forms_gb_data","get_api_key_status","status","$","post","fetch_recaptcha_nonce","recaptcha_data","fetch_forms_nonce","forms","form_id","fetch_form_nonce","form","Recaptcha","require","__","wp","i18n","registerBlockType","blocks","editor","RichText","InspectorControls","PlainText","components","Spinner","TextControl","PanelBody","PanelRow","FormToggle","SelectControl","Component","element","MailchimpForms","props","arguments","state","api_key_status","success","api","address_fields","then","setState","get_forms","forms_loaded","get_recaptcha","toggleRecaptchaAbstract","event","inline","toggleInline","show_form_title","showTitle","toggleShowTitle","show_form_description","showDescription","toggleShowDescription","is_ajax","isAjax","toggleIsAjax","recaptcha","toggleRecaptcha","recaptcha_type","recaptchaType","value","label","toggleRecaptchaType","recaptcha_theme","recaptchaTheme","toggleRecaptchaTheme","recaptcha_lang","locales","locale","recaptchaLang","length","toggleRecaptchaLang","Object","keys","map","key","recaptcha_size","recaptchaSize","toggleRecaptchaSize","recaptcha_verify_callback","recaptchaVerifyCallback","toggleRecaptchaVerifyCallback","recaptcha_expired_callback","recaptchaExpiredCallback","toggleRecaptchaExpiredCallback","inspector_controls","formID","onChangeForm","id","form_name","focus","formTitle","toggleFormTitle","descriptionValue","formData","form_description","onChangeDescription","addr_field","field","merge","handleFormFieldChanges","type","placeholder","states","choice","countries","JSON","parse","choices","default_choice","ii","parseInt","default","date_format","toLowerCase","cn","groups","group_id","indexOf","fields","desc","description","classes","description_above","hide","get_address_field","get_dropdown_field","get_radio_field","get_url_field","get_date_field","get_default_field","get_radio_interest_group","get_hidden_interest_group","get_checkboxes_interest_group","get_dropdown_interest_group","site_key","Math","random","toString","slice","form_settings","submitButtonText","toggleSubmitButtonText","form_title","get_form","form_fields","form_recaptcha","submit_button","className","forms_dropdown","get_form_section","settings_url","constants","document","ready","on","preventDefault","stopPropagation","jQuery","slugify","text","specialChars","replace","target","index","str","edit_easy_form","setAttributes","submission_settings","ajax","submit_button_text","show_description","checked","show_title","attributes","isSelected","save_easy_form","settings","title","category","icon","keywords","edit","save","EasyFormsBlock","block_namespace","block_name","hasOwn","hasOwnProperty","classNames","i","arg","argType","push","Array","isArray","inner","apply","call","join","module","exports","define","useSourceMap","list","item","content","cssWithMappingToString","modules","mediaQuery","alreadyImportedModules","cssMapping","btoa","sourceMapping","toComment","sourceURLs","sources","source","sourceRoot","concat","sourceMap","base64","unescape","encodeURIComponent","stringify","getOwnPropertySymbols","prototype","propIsEnumerable","propertyIsEnumerable","toObject","val","undefined","TypeError","shouldUseNative","assign","test1","String","getOwnPropertyNames","test2","fromCharCode","order2","n","test3","split","forEach","letter","err","from","to","symbols","s","printWarning","process","ReactPropTypesSecret","loggedTypeFailures","message","console","error","Error","x","checkPropTypes","typeSpecs","values","location","componentName","getStack","typeSpecName","name","ex","stack","e","t","r","a","loaded","m","c","p","__esModule","o","ReferenceError","create","constructor","enumerable","writable","configurable","setPrototypeOf","__proto__","defineProperty","l","u","d","string","onloadCallbackName","elementID","onloadCallback","func","verifyCallback","expiredCallback","render","oneOf","sitekey","theme","verifyCallbackName","expiredCallbackName","size","tabindex","hl","badge","f","h","grecaptcha","y","b","getPrototypeOf","_renderGrecaptcha","bind","reset","widget","setInterval","_updateReadyState","clearInterval","execute","callback","createElement","propTypes","defaultProps","thatReturns","thatReturnsFalse","thatReturnsTrue","thatReturnsNull","thatReturnsThis","thatReturnsArgument","framesToPop","isRequired","array","bool","number","object","symbol","any","arrayOf","instanceOf","node","objectOf","oneOfType","shape","PropTypes","_assign","ReactVersion","hasSymbol","Symbol","for","REACT_ELEMENT_TYPE","REACT_PORTAL_TYPE","REACT_FRAGMENT_TYPE","REACT_STRICT_MODE_TYPE","REACT_PROFILER_TYPE","REACT_PROVIDER_TYPE","REACT_CONTEXT_TYPE","REACT_CONCURRENT_MODE_TYPE","REACT_FORWARD_REF_TYPE","REACT_SUSPENSE_TYPE","REACT_MEMO_TYPE","REACT_LAZY_TYPE","MAYBE_ITERATOR_SYMBOL","iterator","FAUX_ITERATOR_SYMBOL","getIteratorFn","maybeIterable","maybeIterator","validateFormat","format","invariant","condition","args","argIndex","lowPriorityWarning","_len","_key","warn","_len2","_key2","lowPriorityWarning$1","warningWithoutStack","_args$map","g","_message","warningWithoutStack$1","didWarnStateUpdateForUnmountedComponent","warnNoop","publicInstance","callerName","_constructor","displayName","warningKey","ReactNoopUpdateQueue","isMounted","enqueueForceUpdate","enqueueReplaceState","completeState","enqueueSetState","partialState","emptyObject","freeze","context","updater","refs","isReactComponent","forceUpdate","deprecatedAPIs","replaceState","defineDeprecationWarning","methodName","info","get","fnName","ComponentDummy","PureComponent","pureComponentPrototype","isPureReactComponent","createRef","refObject","current","seal","ReactCurrentOwner","currentDispatcher","BEFORE_SLASH_RE","describeComponentFrame","ownerName","sourceInfo","path","fileName","test","match","pathBeforeSlash","folderName","lineNumber","Resolved","refineResolvedLazyComponent","lazyComponent","_status","_result","getWrappedName","outerType","innerType","wrapperName","functionName","getComponentName","tag","$$typeof","thenable","resolvedThenable","ReactDebugCurrentFrame","currentlyValidatingElement","setCurrentlyValidatingElement","getCurrentStack","getStackAddendum","owner","_owner","_source","impl","ReactSharedInternals","ReactComponentTreeHook","warning","warning$1","RESERVED_PROPS","ref","__self","__source","specialPropKeyWarningShown","specialPropRefWarningShown","hasValidRef","config","getter","getOwnPropertyDescriptor","isReactWarning","hasValidKey","defineKeyPropWarningGetter","warnAboutAccessingKey","defineRefPropWarningGetter","warnAboutAccessingRef","ReactElement","self","_store","children","propName","childrenLength","childArray","cloneAndReplaceKey","oldElement","newKey","newElement","_self","cloneElement","isValidElement","SEPARATOR","SUBSEPARATOR","escape","escapeRegex","escaperLookup","escapedString","didWarnAboutMaps","userProvidedKeyEscapeRegex","escapeUserProvidedKey","POOL_SIZE","traverseContextPool","getPooledTraverseContext","mapResult","keyPrefix","mapFunction","mapContext","traverseContext","pop","result","count","releaseTraverseContext","traverseAllChildrenImpl","nameSoFar","invokeCallback","getComponentKey","child","nextName","subtreeCount","nextNamePrefix","iteratorFn","entries","step","next","done","addendum","childrenString","traverseAllChildren","component","forEachSingleChild","bookKeeping","forEachChildren","forEachFunc","forEachContext","mapSingleChildIntoContext","childKey","mappedChild","mapIntoWithKeyPrefixInternal","prefix","escapedPrefix","mapChildren","countChildren","toArray","onlyChild","createContext","defaultValue","calculateChangedBits","_calculateChangedBits","_currentValue","_currentValue2","Provider","Consumer","_context","hasWarnedAboutUsingNestedContextConsumers","hasWarnedAboutUsingConsumerProvider","defineProperties","set","_Provider","_currentRenderer","_currentRenderer2","lazy","ctor","_ctor","forwardRef","isValidElementType","memo","compare","propTypesMisspellWarningShown","getDeclarationErrorAddendum","getSourceInfoErrorAddendum","elementProps","ownerHasKeyUseWarning","getCurrentComponentErrorInfo","parentType","parentName","validateExplicitKey","validated","currentComponentErrorInfo","childOwner","validateChildKeys","validatePropTypes","getDefaultProps","isReactClassApproved","validateFragmentProps","fragment","createElementWithValidation","validType","typeString","createFactoryWithValidation","validatedFactory","cloneElementWithValidation","React","Children","only","Fragment","StrictMode","unstable_ConcurrentMode","Suspense","unstable_Profiler","createFactory","version","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","React$2","React$3","react","css","baseUrl","protocol","host","currentDir","pathname","fixedCss","fullMatch","origUrl","unquotedOrigUrl","trim","$1","newUrl","webpackPolyfill","deprecate","paths"],"mappings":";AAAA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,kDAA0C,gCAAgC;AAC1E;AACA;;AAEA;AACA;AACA;AACA,gEAAwD,kBAAkB;AAC1E;AACA,yDAAiD,cAAc;AAC/D;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAyC,iCAAiC;AAC1E,wHAAgH,mBAAmB,EAAE;AACrI;AACA;;AAEA;AACA;AACA;AACA,mCAA2B,0BAA0B,EAAE;AACvD,yCAAiC,eAAe;AAChD;AACA;AACA;;AAEA;AACA,8DAAsD,+DAA+D;;AAErH;AACA;;;AAGA;AACA;;;;;;;;;;;;;;;;;;;;;;;IClFqBA,Y;AAEpB,yBAAc;AAAA;;AACb,OAAKC,OAAL,GAAeC,OAAOD,OAAtB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AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;;AAEA,cAAc,mBAAO,CAAC,uDAAQ;;AAE9B;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA,iBAAiB,mBAAmB;AACpC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,iBAAiB,sBAAsB;AACvC;;AAEA;AACA,mBAAmB,2BAA2B;;AAE9C;AACA;AACA;AACA;AACA;;AAEA;AACA,gBAAgB,mBAAmB;AACnC;AACA;;AAEA;AACA;;AAEA,iBAAiB,2BAA2B;AAC5C;AACA;;AAEA,QAAQ,uBAAuB;AAC/B;AACA;AACA,GAAG;AACH;;AAEA,iBAAiB,uBAAuB;AACxC;AACA;;AAEA,2BAA2B;AAC3B;AACA;AACA;;AAEA;AACA;AACA;;AAEA,gBAAgB,iBAAiB;AACjC;AACA;AACA;AACA;AACA;AACA,cAAc;;AAEd,kDAAkD,sBAAsB;AACxE;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;AACA;AACA,EAAE;AACF;AACA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,EAAE;AACF;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AAC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AAxC;AAMAzN,SAAOwN,cAAP,CAAsBxF,MAAtB,EAA8B,IAA9B,EAAoC;AACnCmF,eAAY,IADuB;AAEnCoI,QAAK,eAAW;AACf,WAAOvN,OAAOV,CAAd;AACA;AAJkC,GAApC;AAMAU,SAAOua,eAAP,GAAyB,CAAzB;AACA;AACD,QAAOva,MAAP;AACA,CArBD,C","file":"easy-forms-block.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./blocks/index.js\");\n","export default class EasyFormsAPI {\r\n\r\n\tconstructor() {\r\n\t\tthis.ajaxurl = window.ajaxurl;\r\n\t}\r\n\r\n\tget_api_key_status() {\r\n\t\tlet data = {\r\n\t\t\taction: 'yikes_get_api_key_status',\r\n\t\t\tnonce: ez_forms_gb_data.get_api_key_status,\r\n\t\t}\r\n\r\n\t\tlet status = $.post( this.ajaxurl, data );\r\n\r\n\t\treturn status;\r\n\t}\r\n\r\n\tget_recaptcha() {\r\n\t\tlet data = {\r\n\t\t\taction: 'yikes_get_recaptcha',\r\n\t\t\tnonce: ez_forms_gb_data.fetch_recaptcha_nonce\r\n\t\t}\r\n\r\n\t\tlet recaptcha_data = $.post( this.ajaxurl, data );\r\n\r\n\t\treturn recaptcha_data;\r\n\t}\r\n\r\n\tget_forms() {\r\n\t\tlet data = {\r\n\t\t\taction: 'yikes_get_forms',\r\n\t\t\tnonce: ez_forms_gb_data.fetch_forms_nonce,\r\n\t\t}\r\n\r\n\t\tlet forms = $.post( this.ajaxurl, data );\r\n\r\n\t\treturn forms;\r\n\t}\r\n\r\n\tget_form( form_id ) {\r\n\t\tlet data = {\r\n\t\t\taction: 'yikes_get_form',\r\n\t\t\tform_id: form_id,\r\n\t\t\tnonce: ez_forms_gb_data.fetch_form_nonce\r\n\t\t}\r\n\r\n\t\tlet form = $.post( this.ajaxurl, data );\r\n\r\n\t\treturn form;\r\n\t}\r\n}\r\n","// Import dependencies\r\nimport slugify from './slugify.js';\r\nimport constants from './constants.js';\r\nimport EasyFormsAPI from './api.js';\r\n\r\n// Get functions / blocks / components\r\nconst Recaptcha = require( 'react-recaptcha' );\r\nconst { __ } = wp.i18n;\r\nconst { registerBlockType } = wp.blocks;\r\nconst { RichText, InspectorControls, PlainText } = wp.editor;\r\nconst { Spinner, TextControl, PanelBody, PanelRow, FormToggle, SelectControl } = wp.components;\r\nconst { Component } = wp.element;\r\n\r\nexport default class MailchimpForms extends Component {\r\n constructor( props ) {\r\n super( ...arguments );\r\n this.state = {\r\n api_key_status: 'valid',\r\n forms : [],\r\n recaptcha_data: {\r\n data : {},\r\n success: false\r\n },\r\n 'forms_loaded': false\r\n }\r\n \r\n this.api = new EasyFormsAPI();\r\n\r\n this.address_fields = {\r\n 'addr1' : 'Address 1', \r\n 'addr2' : 'Address 2', \r\n 'city' : 'City', \r\n 'state' : 'State', \r\n 'zip' : 'Zip',\r\n 'country': 'Country'\r\n }\r\n }\r\n\r\n /**\r\n * Run our API calls after the component has mounted. You can't use setState before a component is mounted.\r\n */\r\n componentDidMount() {\r\n this.api.get_api_key_status().then( status => {\r\n this.setState( { api_key_status: status.data } );\r\n });\r\n\r\n this.api.get_forms().then( forms => {\r\n this.setState( { forms: forms.data, forms_loaded: true } );\r\n });\r\n\r\n this.api.get_recaptcha().then( recaptcha_data => {\r\n this.setState( { recaptcha_data: recaptcha_data } );\r\n this.props.toggleRecaptchaAbstract( this.state.recaptcha_data.success );\r\n });\r\n }\r\n\r\n handleFormFieldChanges( event ) {\r\n \t// console.log( event );\r\n \t\r\n \t// console.log( value );\r\n \t// console.log( this );\r\n \t// console.log( typeof this.setState );\r\n\r\n \t// const target = event.target;\r\n // const value = target.type === 'checkbox' ? target.checked : target.value;\r\n // const name = target.name;\r\n\r\n // return this.setState( { [name]: value } );\r\n }\r\n\r\n inspector_controls() {\r\n\r\n const inline = (\r\n <PanelRow>\r\n <label\r\n htmlFor=\"inline-form-toggle\"\r\n className=\"blocks-base-control__label\"\r\n >\r\n { __( 'Inline' ) }\r\n </label>\r\n <FormToggle\r\n id=\"inline-form-toggle\"\r\n label={ __( 'Inline' ) }\r\n checked={ !! this.props.inline }\r\n onChange={ this.props.toggleInline }\r\n />\r\n </PanelRow>\r\n )\r\n\r\n const show_form_title = (\r\n <PanelRow>\r\n <label\r\n htmlFor=\"show-title-form-toggle\"\r\n className=\"blocks-base-control__label\"\r\n >\r\n { __( 'Show Form Title' ) }\r\n </label>\r\n <FormToggle\r\n id=\"show-title-form-toggle\"\r\n label={ __( 'Show Form Title' ) }\r\n checked={ !! this.props.showTitle }\r\n onChange={ this.props.toggleShowTitle }\r\n />\r\n </PanelRow>\r\n )\r\n\r\n const show_form_description = (\r\n <PanelRow>\r\n <label\r\n htmlFor=\"show-description-form-toggle\"\r\n className=\"blocks-base-control__label\"\r\n >\r\n { __( 'Show Form Description' ) }\r\n </label>\r\n <FormToggle\r\n id=\"show-description-form-toggle\"\r\n label={ __( 'Show Form Description' ) }\r\n checked={ !! this.props.showDescription }\r\n onChange={ this.props.toggleShowDescription }\r\n />\r\n </PanelRow>\r\n )\r\n\r\n const is_ajax = (\r\n <PanelRow>\r\n <label\r\n htmlFor=\"is-ajax-form-toggle\"\r\n className=\"blocks-base-control__label\"\r\n >\r\n { __( 'AJAX Submissions' ) }\r\n </label>\r\n <FormToggle\r\n id=\"is-ajax-form-toggle\"\r\n label={ __( 'AJAX' ) }\r\n checked={ !! this.props.isAjax }\r\n onChange={ this.props.toggleIsAjax }\r\n />\r\n </PanelRow>\r\n )\r\n\r\n const recaptcha = (\r\n <PanelRow>\r\n <label\r\n htmlFor=\"recaptcha-form-toggle\"\r\n className=\"blocks-base-control__label\"\r\n >\r\n { __( 'reCAPTCHA' ) }\r\n </label>\r\n <FormToggle\r\n id=\"recaptcha-form-toggle\"\r\n label={ __( 'reCAPTCHA' ) }\r\n checked={ !! this.props.recaptcha }\r\n onChange={ this.props.toggleRecaptcha }\r\n />\r\n </PanelRow>\r\n )\r\n\r\n const recaptcha_type = !! this.props.recaptcha ?\r\n (\r\n <PanelRow>\r\n <label\r\n htmlFor=\"recaptcha-type-form-toggle\"\r\n className=\"blocks-base-control__label\"\r\n >\r\n { __( 'reCAPTCHA Type' ) }\r\n </label>\r\n <SelectControl\r\n value={ this.props.recaptchaType }\r\n options={ [ { value: 'image', label: 'Image' }, { value: 'audio', 'label': 'Audio' } ] }\r\n onChange={ this.props.toggleRecaptchaType }\r\n />\r\n </PanelRow>\r\n )\r\n : '';\r\n\r\n const recaptcha_theme = !! this.props.recaptcha ?\r\n (\r\n <PanelRow>\r\n <label\r\n htmlFor=\"recaptcha-theme-form-toggle\"\r\n className=\"blocks-base-control__label\"\r\n >\r\n { __( 'reCAPTCHA Theme' ) }\r\n </label>\r\n <SelectControl\r\n value={ this.props.recaptchaTheme }\r\n options={ [ { value: 'light', label: 'Light' }, {value: 'dark', 'label': 'Dark' } ] }\r\n onChange={ this.props.toggleRecaptchaTheme }\r\n />\r\n </PanelRow>\r\n )\r\n : '';\r\n\r\n const recaptcha_lang = !! this.props.recaptcha ?\r\n (\r\n <PanelRow>\r\n <label\r\n htmlFor=\"recaptcha-language-form-toggle\"\r\n className=\"blocks-base-control__label\"\r\n title={ this.state.recaptcha_data.data ? 'The default language for your locale is ' + constants.locales[ this.state.recaptcha_data.data.locale ] : '' }\r\n >\r\n { __( 'reCAPTCHA Language' ) }\r\n </label>\r\n <SelectControl\r\n id=\"recaptcha-language-form-toggle\"\r\n value={ this.props.recaptchaLang.length > 0 ? this.props.recaptchaLang : ( this.state.recaptcha_data.data ? this.state.recaptcha_data.data.locale : '' ) }\r\n onChange={ this.props.toggleRecaptchaLang }\r\n title={ this.state.recaptcha_data.data ? 'The default language for your locale is ' + constants.locales[ this.state.recaptcha_data.data.locale ] : '' }\r\n options={ Object.keys( constants.locales ).map( ( key ) => { return { value: key, label: constants.locales[key] } }) }\r\n />\r\n </PanelRow>\r\n )\r\n : '';\r\n\r\n const recaptcha_size = !! this.props.recaptcha ?\r\n (\r\n <PanelRow>\r\n <label\r\n htmlFor=\"recaptcha-size-form-toggle\"\r\n className=\"blocks-base-control__label\"\r\n >\r\n { __( 'reCAPTCHA Size' ) }\r\n </label>\r\n <SelectControl\r\n id=\"recaptcha-size-form-toggle\"\r\n value={ this.props.recaptchaSize }\r\n onChange={ this.props.toggleRecaptchaSize }\r\n options={ [ { value: 'normal', label: 'Normal' }, { value: 'compact', label: 'Compact' } ] }\r\n />\r\n </PanelRow>\r\n )\r\n : '';\r\n\r\n const recaptcha_verify_callback = !! this.props.recaptcha ?\r\n (\r\n <TextControl\r\n id=\"recaptcha-verify-callback-form-toggle\"\r\n label={ __( 'reCAPTCHA Verify Callback' ) }\r\n value={ this.props.recaptchaVerifyCallback }\r\n onChange={ this.props.toggleRecaptchaVerifyCallback }\r\n />\r\n )\r\n : '';\r\n\r\n const recaptcha_expired_callback = !! this.props.recaptcha ?\r\n (\r\n <TextControl\r\n id=\"recaptcha-expired-callback-form-toggle\"\r\n label={ __( 'reCAPTCHA Expired Callback' ) }\r\n value={ this.props.recaptchaExpiredCallback }\r\n onChange={ this.props.toggleRecaptchaExpiredCallback }\r\n />\r\n )\r\n : '';\r\n\r\n const inspector_controls = \r\n <InspectorControls key=\"easy-forms-inspector\">\r\n\r\n <PanelBody title={ __( 'Settings' ) } >\r\n {inline}\r\n {show_form_title}\r\n {show_form_description}\r\n {is_ajax}\r\n {recaptcha}\r\n {recaptcha_type}\r\n {recaptcha_theme}\r\n {recaptcha_lang}\r\n {recaptcha_size}\r\n {recaptcha_verify_callback}\r\n {recaptcha_expired_callback}\r\n </PanelBody>\r\n\r\n </InspectorControls>\r\n\r\n return inspector_controls;\r\n }\r\n\r\n forms_dropdown() {\r\n return this.state.forms.length > 0 ? \r\n <select \r\n value={ this.props.formID } \r\n onChange={ this.props.onChangeForm } \r\n className=\"yikes-mailchimp-forms-dropdown\"\r\n key=\"yikes-mailchimp-forms-dropdown\"\r\n >\r\n <option key=\"select\" value=\"\">Select Mailchimp Form...</option>\r\n { this.state.forms.map( ( form ) => {\r\n return <option key={ 'yikes-select-form-' + form.id } value={ form.id }>{ form.form_name }</option>\r\n })}\r\n </select> \r\n : '';\r\n }\r\n\r\n form_title() {\r\n return this.props.showTitle === true ?\r\n ( this.props.focus ? \r\n <h3 \r\n className={ \"yikes-mailchimp-form-title yikes-mailchimp-form-title-\" + this.props.formID }\r\n key=\"yikes-mailchimp-form-title-wrapper\"\r\n >\r\n <PlainText\r\n placeholder={ this.props.formTitle }\r\n key=\"yikes-mailchimp-form-title-editable\"\r\n value={ this.props.formTitle }\r\n onChange={ this.props.toggleFormTitle }\r\n />\r\n </h3>\r\n :\r\n <h3 className={ \"yikes-mailchimp-form-title yikes-mailchimp-form-title-\" + this.props.formID } key=\"yikes-mailchimp-form-title\">\r\n { this.props.formTitle }\r\n </h3> \r\n ) : ''; \r\n }\r\n\r\n form_description() {\r\n return this.props.showDescription === true ?\r\n <section className={ \"yikes-mailchimp-form-description yikes-mailchimp-form-description-\" + this.props.formID } key=\"yikes-mailchimp-form-description\">\r\n <PlainText\r\n className=\"mailchimpDescription\"\r\n placeholder={ __( 'Enter your form\\'s description here.' ) /*( this.props.formData && this.props.formData.form_description && this.props.formData.form_description.length > 0 || this.props.descriptionValue && this.props.descriptionValue.length > 0 ) ? '' : __( 'Enter your form\\'s description here.' )*/ }\r\n value={ this.props.descriptionValue.length > 0 ? this.props.descriptionValue : ( this.props.formData && this.props.formData.form_description ? this.props.formData.form_description : '' ) }\r\n onChange={ this.props.onChangeDescription }\r\n key=\"mailchimpDescription\"\r\n />\r\n </section> \r\n : ''; \r\n }\r\n\r\n get_address_field( addr_field, field ) {\r\n switch( addr_field ) {\r\n\r\n case 'addr1':\r\n case 'addr2':\r\n case 'city':\r\n case 'zip':\r\n return (\r\n <TextControl\r\n id={ \"yikes-easy-mc-form-\" + this.props.formID + \"-\" + field.merge + '-' + addr_field }\r\n onChange={ this.handleFormFieldChanges }\r\n type=\"text\"\r\n name={ field.merge + '[' + addr_field + ']' }\r\n className={ 'yikes-easy-mc-' + field.type + ' ' + field['additional-classes'] }\r\n key= { 'yikes-mailchimp-field-' + field.merge + '-' + addr_field }\r\n required={ field.merge === 'EMAIL' || field.require === '1' ? 'required' : false }\r\n placeholder={ field.placeholder === '1' ? this.address_fields[ addr_field ] : '' }\r\n />\r\n )\r\n break;\r\n\r\n case 'state':\r\n return (\r\n <select \r\n id={ \"yikes-easy-mc-form-\" + this.props.formID + \"-\" + field.merge + '-' + addr_field } \r\n name={ field.merge + '[' + addr_field + ']' }\r\n className={ 'yikes-easy-mc-' + field.type + ' ' + field['additional-classes'] }\r\n onChange={ this.handleFormFieldChanges }\r\n key= { 'yikes-mailchimp-field-' + field.merge + '-' + addr_field }\r\n value=''\r\n required={ field.merge === 'EMAIL' || field.require === '1' ? 'required' : false }\r\n >\r\n { Object.keys( constants.states ).map( ( key ) => {\r\n var choice = constants.states[ key ];\r\n return <option key={ 'state-' + key } value={ key }>{ choice }</option>\r\n })}\r\n \r\n </select>\r\n )\r\n break;\r\n\r\n case 'country':\r\n return (\r\n <select \r\n id={ \"yikes-easy-mc-form-\" + this.props.formID + \"-\" + field.merge + '-' + addr_field } \r\n name={ field.merge + '[' + addr_field + ']' }\r\n className={ 'yikes-easy-mc-' + field.type + ' ' + field['additional-classes'] }\r\n onChange={ this.handleFormFieldChanges }\r\n key= { 'yikes-mailchimp-field-' + field.merge + '-' + addr_field }\r\n value=''\r\n required={ field.merge === 'EMAIL' || field.require === '1' ? 'required' : false }\r\n >\r\n { Object.keys( constants.countries ).map( ( key ) => {\r\n var choice = constants.countries[ key ];\r\n return <option key={ 'country-' + key } value={ key }>{ choice }</option>\r\n })}\r\n \r\n </select>\r\n )\r\n break;\r\n }\r\n }\r\n\r\n get_dropdown_field( field ) {\r\n return (\r\n <select \r\n id={ \"yikes-easy-mc-form-\" + this.props.formID + \"-\" + field.merge }\r\n name={ field.merge }\r\n className={ 'yikes-easy-mc-' + field.type + ' ' + field['additional-classes'] }\r\n onChange={ this.handleFormFieldChanges }\r\n key= { 'yikes-mailchimp-field-' + field.merge }\r\n value={ JSON.parse( field.choices )[ field.default_choice ] }\r\n required={ field.merge === 'EMAIL' || field.require === '1' ? 'required' : false }\r\n >\r\n { Object.keys( JSON.parse( field.choices ) ).map( ( key ) => {\r\n var choice = JSON.parse( field.choices )[ key ];\r\n return <option key={ slugify( choice ) } value={ choice }>{ choice }</option>\r\n })}\r\n </select>\r\n )\r\n }\r\n\r\n get_radio_field( field ) {\r\n var ii = 0;\r\n\r\n return (\r\n JSON.parse( field.choices ).map( ( key ) => {\r\n ii++;\r\n return (\r\n <label \r\n htmlFor={ field.merge + '-' + ii }\r\n className=\"yikes-easy-mc-checkbox-label\"\r\n key={ field.merge + '-label-radio-key-' + ii }\r\n >\r\n <input\r\n type=\"radio\"\r\n name={ field.merge }\r\n id={ field.merge + '-' + ii }\r\n key={ field.merge + '-' + ii + '-input-key' }\r\n value={ key }\r\n onChange={ this.handleFormFieldChanges }\r\n checked={ parseInt( field.default_choice ) === ( ii - 1 ) }\r\n />\r\n <span key={ field.merge + '-span-radio-key-' + ii } className={ field.merge + '-label' }>{ key }</span>\r\n </label>\r\n )\r\n })\r\n )\r\n }\r\n\r\n get_url_field( field ) {\r\n return (\r\n <TextControl\r\n id={ \"yikes-easy-mc-form-\" + this.props.formID + \"-\" + field.merge }\r\n placeholder={ field.placeholder }\r\n onChange={ this.handleFormFieldChanges }\r\n type='url'\r\n value={ field.default }\r\n name={ field.merge }\r\n className={ 'yikes-easy-mc-' + field.type + ' ' + field['additional-classes'] }\r\n key= { 'yikes-mailchimp-field-' + field.merge }\r\n required={ field.merge === 'EMAIL' || field.require === '1' ? 'required' : false }\r\n title={ field.type === 'url' ? __( 'Please enter a valid URL to the website.' ) : __( 'Please enter a valid URL to the image.' ) }\r\n />\r\n )\r\n }\r\n\r\n get_default_field( field ) {\r\n\r\n var type = field.type === 'zip' || field.type === 'phone' ? 'text' : field.type;\r\n\r\n return (\r\n <TextControl\r\n id={ \"yikes-easy-mc-form-\" + this.props.formID + \"-\" + field.merge }\r\n placeholder={ field.placeholder }\r\n onChange={ this.handleFormFieldChanges }\r\n type={ type }\r\n value={ field.default }\r\n name={ field.merge }\r\n className={ 'yikes-easy-mc-' + field.type + ' ' + field['additional-classes'] }\r\n key= { 'yikes-mailchimp-field-' + field.merge }\r\n required={ field.merge === 'EMAIL' || field.require === '1' ? 'required' : false }\r\n />\r\n )\r\n }\r\n\r\n get_date_field( field ) {\r\n return (\r\n <TextControl\r\n id={ \"yikes-easy-mc-form-\" + this.props.formID + \"-\" + field.merge }\r\n placeholder={ field.placeholder }\r\n onChange={ this.handleFormFieldChanges }\r\n type='text'\r\n value={ field.default }\r\n name={ field.merge }\r\n className={ 'yikes-easy-mc-' + field.type + ' ' + field['additional-classes'] }\r\n key= { 'yikes-mailchimp-field-' + field.merge }\r\n required={ field.merge === 'EMAIL' || field.require === '1' ? 'required' : false }\r\n data-attr-type={ field.type }\r\n data-date-format={ field.date_format.toLowerCase() }\r\n />\r\n )\r\n }\r\n\r\n get_radio_interest_group( field ) {\r\n var ii = -1;\r\n var cn = \"yikes-easy-mc-checkbox-label \" + field['additional-classes'];\r\n\r\n return (\r\n Object.keys( JSON.parse( field.groups ) ).map( ( key ) => {\r\n var choice = JSON.parse( field.groups )[ key ];\r\n ii++;\r\n return (\r\n <label\r\n htmlFor={ field.group_id + '-' + ii }\r\n className={ { [cn]: true, 'field-no-label': field['hide-label'] === '1' } }\r\n key={ field.group_id + '-' + ii + '-label-key' }\r\n >\r\n <input\r\n type=\"radio\"\r\n name={\"group-\" + field.group_id + '[]' }\r\n id={ field.group_id + '-' + ii }\r\n key={ field.group_id + '-' + ii + '-input-key' }\r\n value={ key }\r\n onChange={ this.handleFormFieldChanges }\r\n checked={ key === field.default_choice }\r\n className={ { 'yikes-interest-group-required': field.require === '1' } }\r\n />\r\n { choice }\r\n </label>\r\n )\r\n })\r\n )\r\n }\r\n\r\n get_hidden_interest_group( field ) {\r\n var ii = -1;\r\n\r\n return (\r\n Object.keys( JSON.parse( field.groups ) ).map( ( key ) => {\r\n var choice = JSON.parse( field.groups )[ key ];\r\n ii++;\r\n return (\r\n <label\r\n htmlFor={ field.group_id + '-' + ii }\r\n className={ 'yikes-easy-mc-checkbox-label ' + field['additional-classes'] }\r\n key={ field.group_id + '-' + ii + '-label-key' }\r\n >\r\n <input\r\n type=\"checkbox\"\r\n name={\"group-\" + field.group_id + '[]' }\r\n id={ field.group_id + '-' + ii }\r\n key={ field.group_id + '-' + ii + '-input-key' }\r\n value={ key }\r\n onChange={ this.handleFormFieldChanges }\r\n checked={ field.default_choice && field.default_choice.indexOf( key ) !== -1 }\r\n />\r\n { choice }\r\n </label>\r\n )\r\n })\r\n )\r\n }\r\n\r\n get_checkboxes_interest_group( field ) {\r\n var ii = -1;\r\n var cn = 'yikes-easy-mc-checkbox-label ' + field['additional-classes'];\r\n\r\n return (\r\n Object.keys( JSON.parse( field.groups ) ).map( ( key ) => {\r\n var choice = JSON.parse( field.groups )[ key ];\r\n ii++;\r\n return (\r\n <label\r\n htmlFor={ field.group_id + '-' + ii }\r\n className={ { [cn]: true, 'field-no-label': field['hide-label'] === '1' } }\r\n key={ field.group_id + '-' + ii + '-label-key' }\r\n >\r\n <input\r\n className={ { 'yikes-interest-group-required': field.require === '1' } }\r\n type=\"checkbox\"\r\n name={ 'group-' + field.group_id + '[]' }\r\n id={ field.group_id + '-' + ii }\r\n key={ field.group_id + '-' + ii + '-input-key' }\r\n value={ key }\r\n onChange={ this.handleFormFieldChanges }\r\n checked={ typeof field.default_choice !== 'undefined' && field.default_choice.indexOf( key ) !== -1 }\r\n required={ field.require === '1' ? 'required' : false }\r\n />\r\n { choice }\r\n </label>\r\n )\r\n })\r\n )\r\n }\r\n\r\n get_dropdown_interest_group( field ) {\r\n var ii = -1;\r\n\r\n return (\r\n <select \r\n id={ \"yikes-easy-mc-form-\" + this.props.formID + \"-\" + field.group_id } \r\n name={ \"group-\" + field.group_id }\r\n className={ \"yikes-easy-mc-dropdown \" + field['additional-classes'] }\r\n value={ field.default_choice }\r\n onChange={ this.handleFormFieldChanges }\r\n required={ field.require === '1' ? 'required' : false }\r\n >\r\n\r\n { Object.keys( JSON.parse( field.groups ) ).map( ( key ) => {\r\n var choice = JSON.parse( field.groups )[ key ];\r\n ii++;\r\n return (\r\n <option key={ field.group_id + '-' + ii + '-input-key' } value={ key }>{ choice }</option>\r\n )\r\n })}\r\n </select>\r\n )\r\n }\r\n\r\n form_fields() {\r\n\r\n return this.props.formData && this.props.formData.fields ?\r\n Object.keys( this.props.formData.fields ).map( ( key ) => {\r\n\r\n var field = this.props.formData.fields[ key ];\r\n\r\n // Form Fields (aka merge variables)\r\n if ( typeof field.merge !== 'undefined' ) {\r\n\r\n var desc = field.description.length > 0 ? \r\n <p className=\"form-field-description\" id={ \"form-field-description-\" + field.merge } key={ \"form-field-description-\" + field.merge }>{ field.description }</p>\r\n : '';\r\n\r\n var label = field['hide-label'] !== '1' ? <span className={ field.merge + '-label' } key={ field.merge + '-label-span-key' }>{ field.label }</span> : '';\r\n\r\n var classes = {'yikes-mailchimp-field-required' : field.merge === 'EMAIL' || field.require === '1' }\r\n classes[ field.merge + '-label'] = true;\r\n\r\n if ( field.type === 'address' ) {\r\n\r\n return ([\r\n field.description_above === '1' && field.description.length > 0 && desc,\r\n Object.keys( this.address_fields ).map( ( addr_field ) => {\r\n label = field['hide-label'] !== '1' ? <span className={ field.merge + '-label' } key={ field.merge + '-label-span-key-' + addr_field }>{ this.address_fields[ addr_field ] }</span> : '';\r\n\r\n return (\r\n <label \r\n htmlFor={ \"yikes-easy-mc-form-\" + this.props.formID + \"-\" + field.merge + '-' + addr_field } \r\n className={ classes } \r\n key={ field.merge + '-label-key-' + addr_field }\r\n style={ field.hide === '1' ? { 'display': 'none' } : {} }\r\n >\r\n { label }\r\n { this.get_address_field( addr_field, field ) }\r\n </label> \r\n )\r\n }),\r\n field.description_above !== '1' && field.description.length > 0 && desc\r\n ])\r\n } else {\r\n return (\r\n <label \r\n htmlFor={ \"yikes-easy-mc-form-\" + this.props.formID + \"-\" + field.merge } \r\n className={ classes } \r\n key={ field.merge + '-label-key' }\r\n style={ field.hide === '1' ? { 'display': 'none' } : {} }\r\n >\r\n { label }\r\n\r\n { field.description_above === '1' && field.description.length > 0 && desc }\r\n\r\n { \r\n ( field.type === 'dropdown' ? this.get_dropdown_field( field ) :\r\n ( field.type === 'radio' ? this.get_radio_field( field ) : \r\n ( field.type === 'url' || field.type === 'imageurl' ? this.get_url_field( field ) :\r\n ( field.type === 'date' || field.type === 'birthday' ? this.get_date_field( field ) :\r\n this.get_default_field( field ) ) ) ) )\r\n }\r\n\r\n { field.description_above !== '1' && field.description.length > 0 && desc }\r\n\r\n </label>\r\n )\r\n }\r\n } else {\r\n\r\n var desc = field.description.length > 0 ? \r\n <p className=\"form-field-description\" id={ \"form-field-description-\" + field.group_id } key={ \"form-field-description-\" + field.group_id }>{ field.description }</p>\r\n : '';\r\n\r\n var label = field['hide-label'] !== '1' ?\r\n <span key={ field.group_id + \"-label-span-key\" } className={ field.group_id + \"-label checkbox-parent-label\" }>{ field.label }</span> \r\n : '';\r\n\r\n var classes = { 'yikes-mailchimp-field-required' : field.require === '1' }\r\n classes[ field.group_id + '-label'] = true;\r\n\r\n return ( \r\n <label \r\n htmlFor={ field.group_id }\r\n className= { classes }\r\n key={ field.group_id + \"-label-span-key\" }\r\n style={ field.type === 'hidden' || field.hide === '1' ? { 'display': 'none' } : {} }\r\n >\r\n\r\n { label }\r\n\r\n { field.description_above === '1' && field.description.length > 0 && desc }\r\n\r\n {\r\n ( field.type === 'radio' ? this.get_radio_interest_group( field ) :\r\n ( field.type === 'hidden' ? this.get_hidden_interest_group( field ) : \r\n ( field.type === 'checkboxes' ? this.get_checkboxes_interest_group( field ) :\r\n ( field.type === 'dropdown' ? this.get_dropdown_interest_group( field ) : '' ) ) ) )\r\n }\r\n\r\n { field.description_above !== '1' && field.description.length > 0 && desc }\r\n\r\n </label>\r\n )\r\n }\r\n })\r\n : '';\r\n }\r\n\r\n form_recaptcha() {\r\n\r\n return this.state.recaptcha_data.success === true && this.state.recaptcha_data.data.site_key && this.props.recaptcha === true ? \r\n <Recaptcha\r\n sitekey={ this.state.recaptcha_data.data.site_key }\r\n key={ 'easy-forms-recaptcha-1' }\r\n elementID={ 'google-recaptcha-id-' + Math.random().toString(36).slice(-8) } // Need to use a unique ID for multiple reCAPTCHAs to work on the same page.\r\n theme={ this.props.recaptchaTheme }\r\n hl={ this.props.recaptchaLang.length > 0 ? this.props.recaptchaLang : this.state.recaptcha_data.data.locale }\r\n type={ this.props.recaptchaType }\r\n size={ this.props.recaptchaSize }\r\n verifyCallback=''\r\n expiredCallback=''\r\n />\r\n : ''; \r\n }\r\n\r\n submit_button() {\r\n return this.props.formData && this.props.formData.fields ?\r\n ( this.props.focus && this.props.formData.form_settings['yikes-easy-mc-submit-button-type'] === 'text' ?\r\n <button\r\n type=\"submit\"\r\n key=\"mailchimpSubmitButton\"\r\n className={ \"yikes-easy-mc-submit-button yikes-easy-mc-submit-button-\" + this.props.formID + \" btn btn-primary\" + \" \" + this.props.formData.form_settings['yikes-easy-mc-submit-button-classes'] }\r\n >\r\n <PlainText\r\n className=\"yikes-mailchimp-submit-button-span-text\"\r\n key=\"yikes-mailchimp-submit-button-span-text\"\r\n value={ this.props.submitButtonText ? this.props.submitButtonText : '' }\r\n onChange={ this.props.toggleSubmitButtonText }\r\n />\r\n </button>\r\n :\r\n ( this.props.formData.form_settings['yikes-easy-mc-submit-button-type'] === 'text' ? \r\n <button\r\n type=\"submit\"\r\n key=\"mailchimpSubmitButton\"\r\n className={ \"yikes-easy-mc-submit-button yikes-easy-mc-submit-button-\" + this.props.formID + \" btn btn-primary\" + \" \" + this.props.formData.form_settings['yikes-easy-mc-submit-button-classes'] }\r\n >\r\n <span className=\"yikes-mailchimp-submit-button-span-text\" key=\"yikes-mailchimp-submit-button-span-text\">{ this.props.submitButtonText }</span>\r\n </button>\r\n :\r\n <input\r\n type=\"image\"\r\n alt={ this.props.submitButtonText }\r\n src={ this.props.formData.form_settings['yikes-easy-mc-submit-button-image'] }\r\n className={ \"yikes-easy-mc-submit-button yikes-easy-mc-submit-button-image yikes-easy-mc-submit-button-\" + this.props.formID + \" btn btn-primary\" + \" \" + this.props.formData.form_settings['yikes-easy-mc-submit-button-classes'] }\r\n />\r\n )\r\n )\r\n : '';\r\n }\r\n\r\n get_form_section() {\r\n return (\r\n <section \r\n id={ \"yikes-mailchimp-container-\" + this.props.formID } \r\n className={ \"yikes-mailchimp-container yikes-mailchimp-container-\" + this.props.formID }\r\n key=\"yikes-mailchimp-container-section\"\r\n >\r\n {[\r\n\r\n // Form title\r\n [this.form_title()],\r\n\r\n // Form Description\r\n [this.form_description()],\r\n\r\n // Get the form\r\n [this.get_form()] \r\n ]}\r\n </section>\r\n );\r\n }\r\n\r\n get_form() {\r\n return (\r\n // Form Wrapper\r\n <form\r\n id={ slugify( this.props.formTitle ) + '-' + this.props.formID }\r\n className={ \"yikes-easy-mc-form yikes-easy-mc-form-\" + this.props.formID + \" \" + this.props.formData.form_settings['yikes-easy-mc-form-class-names'] }\r\n key=\"yikes-mailchimp-container-form\"\r\n >\r\n {[\r\n\r\n // Form fields\r\n [this.form_fields()],\r\n\r\n // Recaptcha\r\n [this.form_recaptcha()],\r\n\r\n // Submit button\r\n [this.submit_button()]\r\n ]}\r\n </form>\r\n );\r\n }\r\n\r\n render() {\r\n\r\n if ( this.state.forms.length > 0 && this.props.formData && Object.keys( this.props.formData ).length > 0 ) {\r\n\r\n \t return (\r\n\r\n <div className={ this.props.className }>\r\n\r\n {// Show inspector controls when focused\r\n this.props.focus && this.inspector_controls()}\r\n\r\n {// Show the forms dropdown\r\n this.forms_dropdown()}\r\n\r\n <hr key=\"easy-forms-dropdown-divider\"/>\r\n\r\n {// Show the form\r\n this.get_form_section()}\r\n </div>\r\n \r\n \t );\r\n\r\n \t} else if ( this.state.forms.length > 0 ) {\r\n\r\n // If we don't have form data, show the forms dropdown\r\n \t\treturn ( \r\n <div className={ this.props.className }>\r\n {this.forms_dropdown()}\r\n </div>\r\n );\r\n\r\n \t} else if ( this.state.api_key_status !== 'valid' ) {\r\n\r\n // If the API key is invalid, show a message.\r\n return ( \r\n <p className=\"yikes-mailchimp-api-key-warning\" key=\"yikes-mailchimp-api-key-warning\">\r\n <em>{ this.state.api_key_status === 'empty' ? <a href={ constants.settings_url }> { __( 'To use this block, please enter an API key on the Easy Forms\\' settings page.' ) } </a> : __( 'Your API key is invalid.' ) }</em>\r\n </p>\r\n );\r\n } else if ( this.state.forms_loaded === true && this.state.forms.length === 0 ) {\r\n\r\n // No forms.\r\n return (\r\n <p key=\"no-forms-found\" className={ this.props.className }>\r\n <em>{ __( 'No forms were found.' ) }</em>\r\n </p>\r\n );\r\n } else {\r\n\r\n // Show loading... & spinner.\r\n \t\treturn (\r\n <p key=\"loading-easy-forms\" className={ this.props.className }>\r\n <span key=\"yikes-easy-forms-loading-text\">{ __( 'Loading...' ) }</span>\r\n <Spinner key=\"yikes-easy-forms-loading-spinner\" />\r\n </p>\r\n );\r\n \t}\r\n }\r\n}","const constants = {\r\n\tstates: {\r\n\t\t'': '—',\r\n\t\t'AL': 'Alabama',\r\n\t\t'AK': 'Alaska',\r\n\t\t'AZ': 'Arizona',\r\n\t\t'AR': 'Arkansas',\r\n\t\t'CA': 'California',\r\n\t\t'CO': 'Colorado',\r\n\t\t'CT': 'Connecticut',\r\n\t\t'DE': 'Delaware',\r\n\t\t'DC': 'District Of Columbia',\r\n\t\t'FL': 'Florida',\r\n\t\t'GA': 'Georgia',\r\n\t\t'HI': 'Hawaii',\r\n\t\t'ID': 'Idaho',\r\n\t\t'IL': 'Illinois',\r\n\t\t'IN': 'Indiana',\r\n\t\t'IA': 'Iowa',\r\n\t\t'KS': 'Kansas',\r\n\t\t'KY': 'Kentucky',\r\n\t\t'LA': 'Louisiana',\r\n\t\t'ME': 'Maine',\r\n\t\t'MD': 'Maryland',\r\n\t\t'MA': 'Massachusetts',\r\n\t\t'MI': 'Michigan',\r\n\t\t'MN': 'Minnesota',\r\n\t\t'MS': 'Mississippi',\r\n\t\t'MO': 'Missouri',\r\n\t\t'MT': 'Montana',\r\n\t\t'NE': 'Nebraska',\r\n\t\t'NV': 'Nevada',\r\n\t\t'NH': 'New Hampshire',\r\n\t\t'NJ': 'New Jersey',\r\n\t\t'NM': 'New Mexico',\r\n\t\t'NY': 'New York',\r\n\t\t'NC': 'North Carolina',\r\n\t\t'ND': 'North Dakota',\r\n\t\t'OH': 'Ohio',\r\n\t\t'OK': 'Oklahoma',\r\n\t\t'OR': 'Oregon',\r\n\t\t'PA': 'Pennsylvania',\r\n\t\t'RI': 'Rhode Island',\r\n\t\t'SC': 'South Carolina',\r\n\t\t'SD': 'South Dakota',\r\n\t\t'TN': 'Tennessee',\r\n\t\t'TX': 'Texas',\r\n\t\t'UT': 'Utah',\r\n\t\t'VT': 'Vermont',\r\n\t\t'VA': 'Virginia',\r\n\t\t'WA': 'Washington',\r\n\t\t'WV': 'West Virginia',\r\n\t\t'WI': 'Wisconsin',\r\n\t\t'WY': 'Wyoming',\r\n\t\t'AB': 'Alberta',\r\n\t\t'BC': 'British Columbia',\r\n\t\t'MB': 'Manitoba',\r\n\t\t'NB': 'New Brunswick',\r\n\t\t'NL': 'Newfoundland and Labrador',\r\n\t\t'NS': 'Nova Scotia',\r\n\t\t'ON': 'Ontario',\r\n\t\t'PE': 'Prince Edward Island',\r\n\t\t'QC': 'Quebec',\r\n\t\t'SK': 'Saskatchewan',\r\n\t\t'NT': 'Northwest Territories',\r\n\t\t'NU': 'Nunavut',\r\n\t\t'YT': 'Yukon',\r\n\t},\r\n\tcountries: {\r\n\t\t'US': 'United States',\r\n\t\t'GB': 'United Kingdom',\r\n\t\t'AF': 'Afghanistan',\r\n\t\t'AX': 'Aland Islands',\r\n\t\t'AL': 'Albania',\r\n\t\t'DZ': 'Algeria',\r\n\t\t'AS': 'American Samoa',\r\n\t\t'AD': 'Andorra',\r\n\t\t'AO': 'Angola',\r\n\t\t'AI': 'Anguilla',\r\n\t\t'AQ': 'Antarctica',\r\n\t\t'AG': 'Antigua and Barbuda',\r\n\t\t'AR': 'Argentina',\r\n\t\t'AM': 'Armenia',\r\n\t\t'AW': 'Aruba',\r\n\t\t'AU': 'Australia',\r\n\t\t'AT': 'Austria',\r\n\t\t'AZ': 'Azerbaijan',\r\n\t\t'BS': 'Bahamas',\r\n\t\t'BH': 'Bahrain',\r\n\t\t'BD': 'Bangladesh',\r\n\t\t'BB': 'Barbados',\r\n\t\t'BY': 'Belarus',\r\n\t\t'BE': 'Belgium',\r\n\t\t'BZ': 'Belize',\r\n\t\t'BJ': 'Benin',\r\n\t\t'BM': 'Bermuda',\r\n\t\t'BT': 'Bhutan',\r\n\t\t'BO': 'Bolivia',\r\n\t\t'BA': 'Bosnia and Herzegovina',\r\n\t\t'BW': 'Botswana',\r\n\t\t'BV': 'Bouvet Island',\r\n\t\t'BR': 'Brazil',\r\n\t\t'IO': 'British Indian Ocean Territory',\r\n\t\t'BN': 'Brunei Darussalam',\r\n\t\t'BG': 'Bulgaria',\r\n\t\t'BF': 'Burkina Faso',\r\n\t\t'BI': 'Burundi',\r\n\t\t'KH': 'Cambodia',\r\n\t\t'CM': 'Cameroon',\r\n\t\t'CA': 'Canada',\r\n\t\t'CV': 'Cape Verde',\r\n\t\t'KY': 'Cayman Islands',\r\n\t\t'CF': 'Central African Republic',\r\n\t\t'TD': 'Chad',\r\n\t\t'CL': 'Chile',\r\n\t\t'CN': 'China',\r\n\t\t'CX': 'Christmas Island',\r\n\t\t'CC': 'Cocos (Keeling) Islands',\r\n\t\t'CO': 'Colombia',\r\n\t\t'KM': 'Comoros',\r\n\t\t'CG': 'Congo',\r\n\t\t'CD': 'Congo, The Democratic Republic of The',\r\n\t\t'CK': 'Cook Islands',\r\n\t\t'CR': 'Costa Rica',\r\n\t\t'CI': 'Cote D’ivoire',\r\n\t\t'HR': 'Croatia',\r\n\t\t'CU': 'Cuba',\r\n\t\t'CY': 'Cyprus',\r\n\t\t'CZ': 'Czech Republic',\r\n\t\t'DK': 'Denmark',\r\n\t\t'DJ': 'Djibouti',\r\n\t\t'DM': 'Dominica',\r\n\t\t'DO': 'Dominican Republic',\r\n\t\t'EC': 'Ecuador',\r\n\t\t'EG': 'Egypt',\r\n\t\t'SV': 'El Salvador',\r\n\t\t'GQ': 'Equatorial Guinea',\r\n\t\t'ER': 'Eritrea',\r\n\t\t'EE': 'Estonia',\r\n\t\t'ET': 'Ethiopia',\r\n\t\t'FK': 'Falkland Islands (Malvinas)',\r\n\t\t'FO': 'Faroe Islands',\r\n\t\t'FJ': 'Fiji',\r\n\t\t'FI': 'Finland',\r\n\t\t'FR': 'France',\r\n\t\t'GF': 'French Guiana',\r\n\t\t'PF': 'French Polynesia',\r\n\t\t'TF': 'French Southern Territories',\r\n\t\t'GA': 'Gabon',\r\n\t\t'GM': 'Gambia',\r\n\t\t'GE': 'Georgia',\r\n\t\t'DE': 'Germany',\r\n\t\t'GH': 'Ghana',\r\n\t\t'GI': 'Gibraltar',\r\n\t\t'GR': 'Greece',\r\n\t\t'GL': 'Greenland',\r\n\t\t'GD': 'Grenada',\r\n\t\t'GP': 'Guadeloupe',\r\n\t\t'GU': 'Guam',\r\n\t\t'GT': 'Guatemala',\r\n\t\t'GG': 'Guernsey',\r\n\t\t'GN': 'Guinea',\r\n\t\t'GW': 'Guinea-bissau',\r\n\t\t'GY': 'Guyana',\r\n\t\t'HT': 'Haiti',\r\n\t\t'HM': 'Heard Island and Mcdonald Islands',\r\n\t\t'VA': 'Holy See (Vatican City State)',\r\n\t\t'HN': 'Honduras',\r\n\t\t'HK': 'Hong Kong',\r\n\t\t'HU': 'Hungary',\r\n\t\t'IS': 'Iceland',\r\n\t\t'IN': 'India',\r\n\t\t'ID': 'Indonesia',\r\n\t\t'IR': 'Iran, Islamic Republic of',\r\n\t\t'IQ': 'Iraq',\r\n\t\t'IE': 'Ireland',\r\n\t\t'IM': 'Isle of Man',\r\n\t\t'IL': 'Israel',\r\n\t\t'IT': 'Italy',\r\n\t\t'JM': 'Jamaica',\r\n\t\t'JP': 'Japan',\r\n\t\t'JE': 'Jersey',\r\n\t\t'JO': 'Jordan',\r\n\t\t'KZ': 'Kazakhstan',\r\n\t\t'KE': 'Kenya',\r\n\t\t'KI': 'Kiribati',\r\n\t\t'KP': 'Korea, Democratic People’s Republic of',\r\n\t\t'KR': 'Korea, Republic of',\r\n\t\t'KW': 'Kuwait',\r\n\t\t'KG': 'Kyrgyzstan',\r\n\t\t'LA': 'Lao People’s Democratic Republic',\r\n\t\t'LV': 'Latvia',\r\n\t\t'LB': 'Lebanon',\r\n\t\t'LS': 'Lesotho',\r\n\t\t'LR': 'Liberia',\r\n\t\t'LY': 'Libyan Arab Jamahiriya',\r\n\t\t'LI': 'Liechtenstein',\r\n\t\t'LT': 'Lithuania',\r\n\t\t'LU': 'Luxembourg',\r\n\t\t'MO': 'Macao',\r\n\t\t'MK': 'Macedonia, The Former Yugoslav Republic of',\r\n\t\t'MG': 'Madagascar',\r\n\t\t'MW': 'Malawi',\r\n\t\t'MY': 'Malaysia',\r\n\t\t'MV': 'Maldives',\r\n\t\t'ML': 'Mali',\r\n\t\t'MT': 'Malta',\r\n\t\t'MH': 'Marshall Islands',\r\n\t\t'MQ': 'Martinique',\r\n\t\t'MR': 'Mauritania',\r\n\t\t'MU': 'Mauritius',\r\n\t\t'YT': 'Mayotte',\r\n\t\t'MX': 'Mexico',\r\n\t\t'FM': 'Micronesia, Federated States of',\r\n\t\t'MD': 'Moldova, Republic of',\r\n\t\t'MC': 'Monaco',\r\n\t\t'MN': 'Mongolia',\r\n\t\t'ME': 'Montenegro',\r\n\t\t'MS': 'Montserrat',\r\n\t\t'MA': 'Morocco',\r\n\t\t'MZ': 'Mozambique',\r\n\t\t'MM': 'Myanmar',\r\n\t\t'NA': 'Namibia',\r\n\t\t'NR': 'Nauru',\r\n\t\t'NP': 'Nepal',\r\n\t\t'NL': 'Netherlands',\r\n\t\t'AN': 'Netherlands Antilles',\r\n\t\t'NC': 'New Caledonia',\r\n\t\t'NZ': 'New Zealand',\r\n\t\t'NI': 'Nicaragua',\r\n\t\t'NE': 'Niger',\r\n\t\t'NG': 'Nigeria',\r\n\t\t'NU': 'Niue',\r\n\t\t'NF': 'Norfolk Island',\r\n\t\t'MP': 'Northern Mariana Islands',\r\n\t\t'NO': 'Norway',\r\n\t\t'OM': 'Oman',\r\n\t\t'PK': 'Pakistan',\r\n\t\t'PW': 'Palau',\r\n\t\t'PS': 'Palestinian Territory, Occupied',\r\n\t\t'PA': 'Panama',\r\n\t\t'PG': 'Papua New Guinea',\r\n\t\t'PY': 'Paraguay',\r\n\t\t'PE': 'Peru',\r\n\t\t'PH': 'Philippines',\r\n\t\t'PN': 'Pitcairn',\r\n\t\t'PL': 'Poland',\r\n\t\t'PT': 'Portugal',\r\n\t\t'PR': 'Puerto Rico',\r\n\t\t'QA': 'Qatar',\r\n\t\t'RE': 'Reunion',\r\n\t\t'RO': 'Romania',\r\n\t\t'RU': 'Russian Federation',\r\n\t\t'RW': 'Rwanda',\r\n\t\t'SH': 'Saint Helena',\r\n\t\t'KN': 'Saint Kitts and Nevis',\r\n\t\t'LC': 'Saint Lucia',\r\n\t\t'PM': 'Saint Pierre and Miquelon',\r\n\t\t'VC': 'Saint Vincent and The Grenadines',\r\n\t\t'WS': 'Samoa',\r\n\t\t'SM': 'San Marino',\r\n\t\t'ST': 'Sao Tome and Principe',\r\n\t\t'SA': 'Saudi Arabia',\r\n\t\t'SN': 'Senegal',\r\n\t\t'RS': 'Serbia',\r\n\t\t'SC': 'Seychelles',\r\n\t\t'SL': 'Sierra Leone',\r\n\t\t'SG': 'Singapore',\r\n\t\t'SK': 'Slovakia',\r\n\t\t'SI': 'Slovenia',\r\n\t\t'SB': 'Solomon Islands',\r\n\t\t'SO': 'Somalia',\r\n\t\t'ZA': 'South Africa',\r\n\t\t'GS': 'South Georgia and The South Sandwich Islands',\r\n\t\t'ES': 'Spain',\r\n\t\t'LK': 'Sri Lanka',\r\n\t\t'SD': 'Sudan',\r\n\t\t'SR': 'Suriname',\r\n\t\t'SJ': 'Svalbard and Jan Mayen',\r\n\t\t'SZ': 'Swaziland',\r\n\t\t'SE': 'Sweden',\r\n\t\t'CH': 'Switzerland',\r\n\t\t'SY': 'Syrian Arab Republic',\r\n\t\t'TW': 'Taiwan, Province of China',\r\n\t\t'TJ': 'Tajikistan',\r\n\t\t'TZ': 'Tanzania, United Republic of',\r\n\t\t'TH': 'Thailand',\r\n\t\t'TL': 'Timor-leste',\r\n\t\t'TG': 'Togo',\r\n\t\t'TK': 'Tokelau',\r\n\t\t'TO': 'Tonga',\r\n\t\t'TT': 'Trinidad and Tobago',\r\n\t\t'TN': 'Tunisia',\r\n\t\t'TR': 'Turkey',\r\n\t\t'TM': 'Turkmenistan',\r\n\t\t'TC': 'Turks and Caicos Islands',\r\n\t\t'TV': 'Tuvalu',\r\n\t\t'UG': 'Uganda',\r\n\t\t'UA': 'Ukraine',\r\n\t\t'AE': 'United Arab Emirates',\r\n\t\t'UM': 'United States Minor Outlying Islands',\r\n\t\t'UY': 'Uruguay',\r\n\t\t'UZ': 'Uzbekistan',\r\n\t\t'VU': 'Vanuatu',\r\n\t\t'VE': 'Venezuela',\r\n\t\t'VN': 'Viet Nam',\r\n\t\t'VG': 'Virgin Islands, British',\r\n\t\t'VI': 'Virgin Islands, U.S.',\r\n\t\t'WF': 'Wallis and Futuna',\r\n\t\t'EH': 'Western Sahara',\r\n\t\t'YE': 'Yemen',\r\n\t\t'ZM': 'Zambia',\r\n\t\t'ZW': 'Zimbabwe',\r\n\t},\r\n\tlocales: {\r\n\t\t\"ar\" : \"Arabic\",\r\n\t\t\"af\" : \"Afrikaans\",\r\n\t\t\"am\" : \"Amharic\",\r\n\t\t\"hy\" : \"Armenian\",\r\n\t\t\"az\" : \"Azerbaijani\",\r\n\t\t\"eu\" : \"Basque\",\r\n\t\t\"bn\" : \"Bengali\",\r\n\t\t\"bg\" : \"Bulgarian\",\r\n\t\t\"ca\" : \"Catalan\",\r\n\t\t\"zh-HK\" : \"Chinese (Hong Kong)\",\r\n\t\t\"zh-CN\" : \"Chinese (Simplified)\",\r\n\t\t\"zh-TW\" : \"Chinese (Traditional)\",\r\n\t\t\"hr\" : \"Croatian\",\r\n\t\t\"cs\" : \"Czech\",\r\n\t\t\"da\" : \"Danish\",\r\n\t\t\"nl\" : \"Dutch\",\r\n\t\t\"en-GB\" : \"English (UK)\",\r\n\t\t\"en\" : \"English (US)\",\r\n\t\t\"et\" : \"Estonian\",\r\n\t\t\"fil\" : \"Filipino\",\r\n\t\t\"fi\" : \"Finnish\",\r\n\t\t\"fr\" : \"French\",\r\n\t\t\"fr-CA\" : \"French (Canadian)\",\r\n\t\t\"gl\" : \"Galician\",\r\n\t\t\"ka\" : \"Georgian\",\r\n\t\t\"de\" : \"German\",\r\n\t\t\"de-AT\" : \"German (Austria)\",\r\n\t\t\"de-CH\" : \"German (Switzerland)\",\r\n\t\t\"el\" : \"Greek\",\r\n\t\t\"gu\" : \"Gujarati\",\r\n\t\t\"iw\" : \"Hebrew\",\r\n\t\t\"hi\" : \"Hindi\",\r\n\t\t\"hu\" : \"Hungarain\",\r\n\t\t\"is\" : \"Icelandic\",\r\n\t\t\"id\" : \"Indonesian\",\r\n\t\t\"it\" : \"Italian\",\r\n\t\t\"ja\" : \"Japanese\",\r\n\t\t\"kn\" : \"Kannada\",\r\n\t\t\"ko\" : \"Korean\",\r\n\t\t\"lo\" : \"Laothian\",\r\n\t\t\"lv\" : \"Latvian\",\r\n\t\t\"lt\" : \"Lithuanian\",\r\n\t\t\"ms\" : \"Malay\",\r\n\t\t\"ml\" : \"Malayalam\",\r\n\t\t\"mr\" : \"Marathi\",\r\n\t\t\"mn\" : \"Mongolian\",\r\n\t\t\"no\" : \"Norwegian\",\r\n\t\t\"fa\" : \"Persian\",\r\n\t\t\"pl\" : \"Polish\",\r\n\t\t\"pt\" : \"Portuguese\",\r\n\t\t\"pt-BR\" : \"Portuguese (Brazil)\",\r\n\t\t\"pt-PT\" : \"Portuguese (Portugal)\",\r\n\t\t\"ro\" : \"Romanian\",\r\n\t\t\"ru\" : \"Russian\",\r\n\t\t\"sr\" : \"Serbian\",\r\n\t\t\"si\" : \"Sinhalese\",\r\n\t\t\"sk\" : \"Slovak\",\r\n\t\t\"sl\" : \"Slovenian\",\r\n\t\t\"es\" : \"Spanish\",\r\n\t\t\"es-419\" : \"Spanish (Latin America)\",\r\n\t\t\"sw\" : \"Swahili\",\r\n\t\t\"sv\" : \"Swedish\",\r\n\t\t\"ta\" : \"Tamil\",\r\n\t\t\"te\" : \"Telugu\",\r\n\t\t\"th\" : \"Thai\",\r\n\t\t\"tr\" : \"Turkish\",\r\n\t\t\"uk\" : \"Ukrainian\",\r\n\t\t\"ur\" : \"Urdu\",\r\n\t\t\"vi\" : \"Vietnamese\",\r\n\t\t\"zu\" : \"Zulu\"\r\n\t},\r\n\tsettings_url: 'wp-admin/admin.php?page=yikes-inc-easy-mailchimp-settings'\r\n}\r\n\r\nexport default constants;\r\n","( function( $ ) {\r\n\r\n\t$( document ).ready( function() {\r\n\t\t\r\n\t\t$( 'body' ).on( 'click', '.yikes-easy-mc-submit-button', function( event ) { \r\n\t\t event.preventDefault();\r\n\t\t event.stopPropagation();\r\n\t\t $( '.yikes-mailchimp-submit-button-span-text' ).focus();\r\n\t\t}); \r\n\r\n\t\t$( 'body' ).on( 'click', '.yikes-mailchimp-submit-button-span-text', function( event ) {\r\n\t\t event.preventDefault();\r\n\t\t event.stopPropagation();\r\n\t\t});\r\n\t});\r\n\r\n})( jQuery );","/*\r\n* This should have the same effect as WP/PHP's `sanitize_title()` function\r\n*\r\n* Source: https://gist.github.com/mathewbyrne/1280286\r\n*/\r\nexport default function slugify( text ) {\r\n\r\n // Use hash map for special characters \r\n let specialChars = {\"à\":'a',\"ä\":'a',\"á\":'a',\"â\":'a',\"æ\":'a',\"å\":'a',\"ë\":'e',\"è\":'e',\"é\":'e', \"ê\":'e',\"î\":'i',\"ï\":'i',\"ì\":'i',\"í\":'i',\"ò\":'o',\"ó\":'o',\"ö\":'o',\"ô\":'o',\"ø\":'o',\"ù\":'o',\"ú\":'u',\"ü\":'u',\"û\":'u',\"ñ\":'n',\"ç\":'c',\"ß\":'s',\"ÿ\":'y',\"œ\":'o',\"ŕ\":'r',\"ś\":'s',\"ń\":'n',\"ṕ\":'p',\"ẃ\":'w',\"ǵ\":'g',\"ǹ\":'n',\"ḿ\":'m',\"ǘ\":'u',\"ẍ\":'x',\"ź\":'z',\"ḧ\":'h',\"·\":'-',\"/\":'-',\"_\":'-',\",\":'-',\":\":'-',\";\":'-'};\r\n\r\n return text.toString().toLowerCase()\r\n .replace(/\\s+/g, '-') // Replace spaces with -\r\n .replace(/./g,(target, index, str) => specialChars[target] || target) // Replace special characters using the hash map\r\n .replace(/&/g, '-and-') // Replace & with 'and'\r\n .replace(/[^\\w\\-]+/g, '') // Remove all non-word chars\r\n .replace(/\\-\\-+/g, '-') // Replace multiple - with single -\r\n .replace(/^-+/, '') // Trim - from start of text\r\n .replace(/-+$/, ''); // Trim - from end of text\r\n};\r\n","import EasyFormsAPI from '../components/api.js'\r\n\r\nimport MailchimpForms from '../components/class.MailchimpForms.js';\r\n\r\nimport './easy-forms-block.scss'\r\n\r\nrequire( '../components/enable-submit-button-editing.js' );\r\n\r\n// Get just the __() localization function from wp.i18n\r\nconst { __ } = wp.i18n;\r\n\r\n// Get registerBlockType and other methods from wp.blocks\r\nconst { registerBlockType } = wp.blocks;\r\n\r\nconst edit_easy_form = function( props ) {\r\n\r\n const onChangeForm = ( event ) => {\r\n props.setAttributes( { form_id: event.target.value } );\r\n\r\n if ( event.target.value.length > 0 ) {\r\n const api = new EasyFormsAPI();\r\n api.get_form( event.target.value ).then( function( form ) {\r\n props.setAttributes( { form: form.data } );\r\n props.setAttributes( { form_description: form.data.form_description } );\r\n props.setAttributes( { form_title: form.data.form_name } );\r\n props.setAttributes( { is_ajax: form.data.submission_settings.ajax === '1' } );\r\n props.setAttributes( { submit_button_text: form.data.form_settings['yikes-easy-mc-submit-button-text'] } );\r\n });\r\n }\r\n };\r\n\r\n const onChangeDescription = ( value ) => {\r\n props.setAttributes( { form_description: value } );\r\n };\r\n\r\n const toggleShowDescription = ( event ) => {\r\n props.setAttributes( { show_description: !! event.target.checked } );\r\n }\r\n\r\n const toggleInline = ( event ) => {\r\n props.setAttributes( { inline: !! event.target.checked } );\r\n }\r\n\r\n const toggleShowTitle = ( event ) => {\r\n props.setAttributes( { show_title: !! event.target.checked } );\r\n }\r\n\r\n const toggleFormTitle = ( value ) => {\r\n props.setAttributes( { form_title: value } );\r\n }\r\n\r\n const toggleIsAjax = ( event ) => {\r\n props.setAttributes( { is_ajax: !! event.target.checked } );\r\n }\r\n\r\n /* Allow this function to be called via a checkbox handler or directly by passing in a boolean */\r\n const toggleRecaptchaAbstract = ( checked ) => {\r\n props.setAttributes( { recaptcha: checked } );\r\n }\r\n\r\n const toggleRecaptcha = ( event ) => {\r\n toggleRecaptchaAbstract( !! event.target.checked )\r\n }\r\n\r\n const toggleRecaptchaTheme = ( value ) => {\r\n props.setAttributes( { recaptcha_theme: value } );\r\n }\r\n\r\n const toggleRecaptchaLang = ( value ) => {\r\n props.setAttributes( { recaptcha_lang: value } );\r\n }\r\n\r\n const toggleRecaptchaType = ( value ) => {\r\n props.setAttributes( { recaptcha_type: value } );\r\n }\r\n\r\n const toggleRecaptchaSize = ( value ) => {\r\n props.setAttributes( { recaptcha_size: value } );\r\n }\r\n\r\n const toggleRecaptchaVerifyCallback = ( value ) => {\r\n props.setAttributes( { recaptcha_verify_callback: value } );\r\n }\r\n\r\n const toggleRecaptchaExpiredCallback = ( value ) => {\r\n props.setAttributes( { recaptcha_expired_callback: value } );\r\n }\r\n\r\n const toggleSubmitButtonText = ( value ) => {\r\n props.setAttributes( { submit_button_text: value })\r\n }\r\n\r\n return (\r\n <MailchimpForms\r\n className={ props.className }\r\n onChangeForm={ onChangeForm }\r\n formID={ props.attributes.form_id }\r\n formData={ props.attributes.form }\r\n onChangeDescription={ onChangeDescription }\r\n descriptionValue={ props.attributes.form_description }\r\n showDescription={ props.attributes.show_description }\r\n toggleShowDescription={ toggleShowDescription }\r\n focus={ !! props.isSelected }\r\n inline={ props.attributes.inline }\r\n toggleInline={ toggleInline }\r\n formTitle={ props.attributes.form_title }\r\n toggleFormTitle={ toggleFormTitle }\r\n showTitle={ props.attributes.show_title }\r\n toggleShowTitle={ toggleShowTitle }\r\n isAjax={ props.attributes.is_ajax }\r\n toggleIsAjax={ toggleIsAjax }\r\n toggleRecaptchaAbstract={ toggleRecaptchaAbstract }\r\n recaptcha={ props.attributes.recaptcha }\r\n toggleRecaptcha={ toggleRecaptcha }\r\n recaptchaTheme={ props.attributes.recaptcha_theme }\r\n toggleRecaptchaTheme={ toggleRecaptchaTheme }\r\n recaptchaLang={ props.attributes.recaptcha_lang }\r\n toggleRecaptchaLang={ toggleRecaptchaLang }\r\n recaptchaType={ props.attributes.recaptcha_type }\r\n toggleRecaptchaType={ toggleRecaptchaType }\r\n recaptchaSize={ props.attributes.recaptcha_size }\r\n toggleRecaptchaSize={ toggleRecaptchaSize }\r\n recaptchaVerifyCallback={ props.attributes.recaptcha_verify_callback }\r\n toggleRecaptchaVerifyCallback={ toggleRecaptchaVerifyCallback }\r\n recaptchaExpiredCallback={ props.attributes.recaptcha_expired_callback }\r\n toggleRecaptchaExpiredCallback={ toggleRecaptchaExpiredCallback }\r\n submitButtonText={ props.attributes.submit_button_text }\r\n toggleSubmitButtonText={ toggleSubmitButtonText }\r\n />\r\n );\r\n\r\n}\r\n\r\nconst save_easy_form = function( props ) {\r\n return null;\r\n}\r\n\r\nconst settings = {\r\n title : __( 'Easy Forms for Mailchimp' ),\r\n category : 'common', // Options include \"common\", \"formatting\", \"layout\", \"widgets\" and \"embed.\"\r\n icon : 'email-alt',\r\n keywords : ['mailchimp', 'easy forms for mailchimp', 'yikes'],\r\n attributes: {\r\n form_id: {\r\n type: 'string',\r\n default: ''\r\n },\r\n form: {\r\n type: 'object'\r\n },\r\n form_description: {\r\n type: 'string',\r\n default: ''\r\n },\r\n show_description: {\r\n type: 'boolean',\r\n default: false\r\n },\r\n inline: {\r\n type: 'boolean',\r\n default: false\r\n },\r\n show_title: {\r\n type: 'boolean',\r\n default: false\r\n },\r\n form_title: {\r\n type: 'string',\r\n default: ''\r\n },\r\n is_ajax: {\r\n type: 'boolean',\r\n default: true,\r\n },\r\n recaptcha: {\r\n type: 'boolean',\r\n default: false,\r\n },\r\n recaptcha_theme: {\r\n type: 'string',\r\n default: 'light'\r\n },\r\n recaptcha_lang: {\r\n type: 'string',\r\n default: ''\r\n },\r\n recaptcha_type: {\r\n type: 'string',\r\n default: 'image'\r\n },\r\n recaptcha_size: {\r\n type: 'string',\r\n default: 'normal'\r\n },\r\n recaptcha_verify_callback: {\r\n type: 'string',\r\n default: ''\r\n },\r\n recaptcha_expired_callback: {\r\n type: 'string',\r\n default: ''\r\n },\r\n submit_button_text: {\r\n type: 'string',\r\n default: ''\r\n }\r\n },\r\n edit: edit_easy_form,\r\n save: save_easy_form,\r\n}\r\n\r\nconst EasyFormsBlock = registerBlockType(\r\n\r\n // Name\r\n ez_forms_gb_data.block_namespace + ez_forms_gb_data.block_name,\r\n\r\n // Settings\r\n settings\r\n);","\nvar content = require(\"!!../../node_modules/css-loader/index.js!../../node_modules/sass-loader/lib/loader.js!./easy-forms-block.scss\");\n\nif(typeof content === 'string') content = [[module.id, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = require(\"!../../node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(module.hot) {\n\tmodule.hot.accept(\"!!../../node_modules/css-loader/index.js!../../node_modules/sass-loader/lib/loader.js!./easy-forms-block.scss\", function() {\n\t\tvar newContent = require(\"!!../../node_modules/css-loader/index.js!../../node_modules/sass-loader/lib/loader.js!./easy-forms-block.scss\");\n\n\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\n\t\tvar locals = (function(a, b) {\n\t\t\tvar key, idx = 0;\n\n\t\t\tfor(key in a) {\n\t\t\t\tif(!b || a[key] !== b[key]) return false;\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t\tfor(key in b) idx--;\n\n\t\t\treturn idx === 0;\n\t\t}(content.locals, newContent.locals));\n\n\t\tif(!locals) throw new Error('Aborting CSS HMR due to changed css-modules locals.');\n\n\t\tupdate(newContent);\n\t});\n\n\tmodule.hot.dispose(function() { update(); });\n}","import './easy-forms-block/dev-easy-forms-block.js';","/*!\n Copyright (c) 2017 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg) && arg.length) {\n\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\tif (inner) {\n\t\t\t\t\tclasses.push(inner);\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","exports = module.exports = require(\"../../node_modules/css-loader/lib/css-base.js\")(false);\n// imports\n\n\n// module\nexports.push([module.id, \".wp-block-yikes-inc-easy-forms-easy-forms-block textarea.yikes-mailchimp-submit-button-span-text {\\n background: none;\\n text-align: center; }\\n\\n.wp-block-yikes-inc-easy-forms-easy-forms-block select {\\n height: auto; }\\n\", \"\"]);\n\n// exports\n","/*\n\tMIT License http://www.opensource.org/licenses/mit-license.php\n\tAuthor Tobias Koppers @sokra\n*/\n// css base code, injected by the css-loader\nmodule.exports = function(useSourceMap) {\n\tvar list = [];\n\n\t// return the list of modules as css string\n\tlist.toString = function toString() {\n\t\treturn this.map(function (item) {\n\t\t\tvar content = cssWithMappingToString(item, useSourceMap);\n\t\t\tif(item[2]) {\n\t\t\t\treturn \"@media \" + item[2] + \"{\" + content + \"}\";\n\t\t\t} else {\n\t\t\t\treturn content;\n\t\t\t}\n\t\t}).join(\"\");\n\t};\n\n\t// import a list of modules into the list\n\tlist.i = function(modules, mediaQuery) {\n\t\tif(typeof modules === \"string\")\n\t\t\tmodules = [[null, modules, \"\"]];\n\t\tvar alreadyImportedModules = {};\n\t\tfor(var i = 0; i < this.length; i++) {\n\t\t\tvar id = this[i][0];\n\t\t\tif(typeof id === \"number\")\n\t\t\t\talreadyImportedModules[id] = true;\n\t\t}\n\t\tfor(i = 0; i < modules.length; i++) {\n\t\t\tvar item = modules[i];\n\t\t\t// skip already imported module\n\t\t\t// this implementation is not 100% perfect for weird media query combinations\n\t\t\t// when a module is imported multiple times with different media queries.\n\t\t\t// I hope this will never occur (Hey this way we have smaller bundles)\n\t\t\tif(typeof item[0] !== \"number\" || !alreadyImportedModules[item[0]]) {\n\t\t\t\tif(mediaQuery && !item[2]) {\n\t\t\t\t\titem[2] = mediaQuery;\n\t\t\t\t} else if(mediaQuery) {\n\t\t\t\t\titem[2] = \"(\" + item[2] + \") and (\" + mediaQuery + \")\";\n\t\t\t\t}\n\t\t\t\tlist.push(item);\n\t\t\t}\n\t\t}\n\t};\n\treturn list;\n};\n\nfunction cssWithMappingToString(item, useSourceMap) {\n\tvar content = item[1] || '';\n\tvar cssMapping = item[3];\n\tif (!cssMapping) {\n\t\treturn content;\n\t}\n\n\tif (useSourceMap && typeof btoa === 'function') {\n\t\tvar sourceMapping = toComment(cssMapping);\n\t\tvar sourceURLs = cssMapping.sources.map(function (source) {\n\t\t\treturn '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */'\n\t\t});\n\n\t\treturn [content].concat(sourceURLs).concat([sourceMapping]).join('\\n');\n\t}\n\n\treturn [content].join('\\n');\n}\n\n// Adapted from convert-source-map (MIT)\nfunction toComment(sourceMap) {\n\t// eslint-disable-next-line no-undef\n\tvar base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));\n\tvar data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;\n\n\treturn '/*# ' + data + ' */';\n}\n","/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n var loggedTypeFailures = {};\n\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n}\n\n/**\n * Assert that the values match with the type specs.\n * Error messages are memorized and will only be shown once.\n *\n * @param {object} typeSpecs Map of name to a ReactPropType\n * @param {object} values Runtime values that need to be type-checked\n * @param {string} location e.g. \"prop\", \"context\", \"child context\"\n * @param {string} componentName Name of the component for error messages.\n * @param {?Function} getStack Returns the component stack.\n * @private\n */\nfunction checkPropTypes(typeSpecs, values, location, componentName, getStack) {\n if (process.env.NODE_ENV !== 'production') {\n for (var typeSpecName in typeSpecs) {\n if (typeSpecs.hasOwnProperty(typeSpecName)) {\n var error;\n // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n var err = Error(\n (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'\n );\n err.name = 'Invariant Violation';\n throw err;\n }\n error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);\n } catch (ex) {\n error = ex;\n }\n if (error && !(error instanceof Error)) {\n printWarning(\n (componentName || 'React class') + ': type specification of ' +\n location + ' `' + typeSpecName + '` is invalid; the type checker ' +\n 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +\n 'You may have forgotten to pass an argument to the type checker ' +\n 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +\n 'shape all require an argument).'\n )\n\n }\n if (error instanceof Error && !(error.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error.message] = true;\n\n var stack = getStack ? getStack() : '';\n\n printWarning(\n 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')\n );\n }\n }\n }\n }\n}\n\nmodule.exports = checkPropTypes;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","!function(e,t){\"object\"==typeof exports&&\"object\"==typeof module?module.exports=t(require(\"react\")):\"function\"==typeof define&&define.amd?define([\"react\"],t):\"object\"==typeof exports?exports.ReactRecaptcha=t(require(\"react\")):e.ReactRecaptcha=t(e.React)}(this,function(e){return function(e){function t(r){if(a[r])return a[r].exports;var n=a[r]={exports:{},id:r,loaded:!1};return e[r].call(n.exports,n,n.exports,t),n.loaded=!0,n.exports}var a={};return t.m=e,t.c=a,t.p=\"\",t(0)}([function(e,t,a){\"use strict\";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}function o(e,t){if(!e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!t||\"object\"!=typeof t&&\"function\"!=typeof t?e:t}function i(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,\"__esModule\",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),s=a(6),c=r(s),p=a(4),u=r(p),d={className:u.default.string,onloadCallbackName:u.default.string,elementID:u.default.string,onloadCallback:u.default.func,verifyCallback:u.default.func,expiredCallback:u.default.func,render:u.default.oneOf([\"onload\",\"explicit\"]),sitekey:u.default.string,theme:u.default.oneOf([\"light\",\"dark\"]),type:u.default.string,verifyCallbackName:u.default.string,expiredCallbackName:u.default.string,size:u.default.oneOf([\"invisible\",\"compact\",\"normal\"]),tabindex:u.default.string,hl:u.default.string,badge:u.default.oneOf([\"bottomright\",\"bottomleft\",\"inline\"])},f={elementID:\"g-recaptcha\",className:\"g-recaptcha\",onloadCallback:void 0,onloadCallbackName:\"onloadCallback\",verifyCallback:void 0,verifyCallbackName:\"verifyCallback\",expiredCallback:void 0,expiredCallbackName:\"expiredCallback\",render:\"onload\",theme:\"light\",type:\"image\",size:\"normal\",tabindex:\"0\",hl:\"en\",badge:\"bottomright\"},h=function(){return\"undefined\"!=typeof window&&\"undefined\"!=typeof window.grecaptcha&&\"function\"==typeof window.grecaptcha.render},y=void 0,b=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a._renderGrecaptcha=a._renderGrecaptcha.bind(a),a.reset=a.reset.bind(a),a.state={ready:h(),widget:null},a.state.ready||\"undefined\"==typeof window||(y=setInterval(a._updateReadyState.bind(a),1e3)),a}return i(t,e),l(t,[{key:\"componentDidMount\",value:function(){this.state.ready&&this._renderGrecaptcha()}},{key:\"componentDidUpdate\",value:function(e,t){var a=this.props,r=a.render,n=a.onloadCallback;\"explicit\"===r&&n&&this.state.ready&&!t.ready&&this._renderGrecaptcha()}},{key:\"componentWillUnmount\",value:function(){clearInterval(y)}},{key:\"reset\",value:function(){var e=this.state,t=e.ready,a=e.widget;t&&null!==a&&grecaptcha.reset(a)}},{key:\"execute\",value:function(){var e=this.state,t=e.ready,a=e.widget;t&&null!==a&&grecaptcha.execute(a)}},{key:\"_updateReadyState\",value:function(){h()&&(this.setState({ready:!0}),clearInterval(y))}},{key:\"_renderGrecaptcha\",value:function(){this.state.widget=grecaptcha.render(this.props.elementID,{sitekey:this.props.sitekey,callback:this.props.verifyCallback?this.props.verifyCallback:void 0,theme:this.props.theme,type:this.props.type,size:this.props.size,tabindex:this.props.tabindex,hl:this.props.hl,badge:this.props.badge,\"expired-callback\":this.props.expiredCallback?this.props.expiredCallback:void 0}),this.props.onloadCallback&&this.props.onloadCallback()}},{key:\"render\",value:function(){return\"explicit\"===this.props.render&&this.props.onloadCallback?c.default.createElement(\"div\",{id:this.props.elementID,\"data-onloadcallbackname\":this.props.onloadCallbackName,\"data-verifycallbackname\":this.props.verifyCallbackName}):c.default.createElement(\"div\",{id:this.props.elementID,className:this.props.className,\"data-sitekey\":this.props.sitekey,\"data-theme\":this.props.theme,\"data-type\":this.props.type,\"data-size\":this.props.size,\"data-badge\":this.props.badge,\"data-tabindex\":this.props.tabindex})}}]),t}(s.Component);t.default=b,b.propTypes=d,b.defaultProps=f,e.exports=t.default},function(e,t){\"use strict\";function a(e){return function(){return e}}var r=function(){};r.thatReturns=a,r.thatReturnsFalse=a(!1),r.thatReturnsTrue=a(!0),r.thatReturnsNull=a(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,a){\"use strict\";function r(e,t,a,r,o,i,l,s){if(n(t),!e){var c;if(void 0===t)c=new Error(\"Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.\");else{var p=[a,r,o,i,l,s],u=0;c=new Error(t.replace(/%s/g,function(){return p[u++]})),c.name=\"Invariant Violation\"}throw c.framesToPop=1,c}}var n=function(e){};e.exports=r},function(e,t,a){\"use strict\";var r=a(1),n=a(2),o=a(5);e.exports=function(){function e(e,t,a,r,i,l){l!==o&&n(!1,\"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types\")}function t(){return e}e.isRequired=e;var a={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t};return a.checkPropTypes=r,a.PropTypes=a,a}},function(e,t,a){e.exports=a(3)()},function(e,t){\"use strict\";var a=\"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED\";e.exports=a},function(t,a){t.exports=e}])});","/** @license React v16.6.0\n * react.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\nvar _assign = require('object-assign');\nvar checkPropTypes = require('prop-types/checkPropTypes');\n\n// TODO: this is special because it gets imported during build.\n\nvar ReactVersion = '16.6.0';\n\n// The Symbol used to tag the ReactElement-like types. If there is no native Symbol\n// nor polyfill, then a plain number is used for performance.\nvar hasSymbol = typeof Symbol === 'function' && Symbol.for;\n\nvar REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;\nvar REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;\nvar REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;\nvar REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;\nvar REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;\nvar REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;\nvar REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;\nvar REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;\nvar REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;\nvar REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;\nvar REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;\nvar REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;\n\nvar MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\nvar FAUX_ITERATOR_SYMBOL = '@@iterator';\n\nfunction getIteratorFn(maybeIterable) {\n if (maybeIterable === null || typeof maybeIterable !== 'object') {\n return null;\n }\n var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];\n if (typeof maybeIterator === 'function') {\n return maybeIterator;\n }\n return null;\n}\n\n/**\n * Use invariant() to assert state which your program assumes to be true.\n *\n * Provide sprintf-style format (only %s is supported) and arguments\n * to provide information about what broke and what you were\n * expecting.\n *\n * The invariant message will be stripped in production, but the invariant\n * will remain to ensure logic does not differ in production.\n */\n\nvar validateFormat = function () {};\n\n{\n validateFormat = function (format) {\n if (format === undefined) {\n throw new Error('invariant requires an error message argument');\n }\n };\n}\n\nfunction invariant(condition, format, a, b, c, d, e, f) {\n validateFormat(format);\n\n if (!condition) {\n var error = void 0;\n if (format === undefined) {\n error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');\n } else {\n var args = [a, b, c, d, e, f];\n var argIndex = 0;\n error = new Error(format.replace(/%s/g, function () {\n return args[argIndex++];\n }));\n error.name = 'Invariant Violation';\n }\n\n error.framesToPop = 1; // we don't care about invariant's own frame\n throw error;\n }\n}\n\n// Relying on the `invariant()` implementation lets us\n// preserve the format and params in the www builds.\n\n/**\n * Forked from fbjs/warning:\n * https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js\n *\n * Only change is we use console.warn instead of console.error,\n * and do nothing when 'console' is not supported.\n * This really simplifies the code.\n * ---\n * Similar to invariant but only logs a warning if the condition is not met.\n * This can be used to log issues in development environments in critical\n * paths. Removing the logging code for production environments will keep the\n * same logic and follow the same code paths.\n */\n\nvar lowPriorityWarning = function () {};\n\n{\n var printWarning = function (format) {\n for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n var argIndex = 0;\n var message = 'Warning: ' + format.replace(/%s/g, function () {\n return args[argIndex++];\n });\n if (typeof console !== 'undefined') {\n console.warn(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n\n lowPriorityWarning = function (condition, format) {\n if (format === undefined) {\n throw new Error('`lowPriorityWarning(condition, format, ...args)` requires a warning ' + 'message argument');\n }\n if (!condition) {\n for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {\n args[_key2 - 2] = arguments[_key2];\n }\n\n printWarning.apply(undefined, [format].concat(args));\n }\n };\n}\n\nvar lowPriorityWarning$1 = lowPriorityWarning;\n\n/**\n * Similar to invariant but only logs a warning if the condition is not met.\n * This can be used to log issues in development environments in critical\n * paths. Removing the logging code for production environments will keep the\n * same logic and follow the same code paths.\n */\n\nvar warningWithoutStack = function () {};\n\n{\n warningWithoutStack = function (condition, format) {\n for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {\n args[_key - 2] = arguments[_key];\n }\n\n if (format === undefined) {\n throw new Error('`warningWithoutStack(condition, format, ...args)` requires a warning ' + 'message argument');\n }\n if (args.length > 8) {\n // Check before the condition to catch violations early.\n throw new Error('warningWithoutStack() currently supports at most 8 arguments.');\n }\n if (condition) {\n return;\n }\n if (typeof console !== 'undefined') {\n var _args$map = args.map(function (item) {\n return '' + item;\n }),\n a = _args$map[0],\n b = _args$map[1],\n c = _args$map[2],\n d = _args$map[3],\n e = _args$map[4],\n f = _args$map[5],\n g = _args$map[6],\n h = _args$map[7];\n\n var message = 'Warning: ' + format;\n\n // We intentionally don't use spread (or .apply) because it breaks IE9:\n // https://github.com/facebook/react/issues/13610\n switch (args.length) {\n case 0:\n console.error(message);\n break;\n case 1:\n console.error(message, a);\n break;\n case 2:\n console.error(message, a, b);\n break;\n case 3:\n console.error(message, a, b, c);\n break;\n case 4:\n console.error(message, a, b, c, d);\n break;\n case 5:\n console.error(message, a, b, c, d, e);\n break;\n case 6:\n console.error(message, a, b, c, d, e, f);\n break;\n case 7:\n console.error(message, a, b, c, d, e, f, g);\n break;\n case 8:\n console.error(message, a, b, c, d, e, f, g, h);\n break;\n default:\n throw new Error('warningWithoutStack() currently supports at most 8 arguments.');\n }\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n var argIndex = 0;\n var _message = 'Warning: ' + format.replace(/%s/g, function () {\n return args[argIndex++];\n });\n throw new Error(_message);\n } catch (x) {}\n };\n}\n\nvar warningWithoutStack$1 = warningWithoutStack;\n\nvar didWarnStateUpdateForUnmountedComponent = {};\n\nfunction warnNoop(publicInstance, callerName) {\n {\n var _constructor = publicInstance.constructor;\n var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass';\n var warningKey = componentName + '.' + callerName;\n if (didWarnStateUpdateForUnmountedComponent[warningKey]) {\n return;\n }\n warningWithoutStack$1(false, \"Can't call %s on a component that is not yet mounted. \" + 'This is a no-op, but it might indicate a bug in your application. ' + 'Instead, assign to `this.state` directly or define a `state = {};` ' + 'class property with the desired state in the %s component.', callerName, componentName);\n didWarnStateUpdateForUnmountedComponent[warningKey] = true;\n }\n}\n\n/**\n * This is the abstract API for an update queue.\n */\nvar ReactNoopUpdateQueue = {\n /**\n * Checks whether or not this composite component is mounted.\n * @param {ReactClass} publicInstance The instance we want to test.\n * @return {boolean} True if mounted, false otherwise.\n * @protected\n * @final\n */\n isMounted: function (publicInstance) {\n return false;\n },\n\n /**\n * Forces an update. This should only be invoked when it is known with\n * certainty that we are **not** in a DOM transaction.\n *\n * You may want to call this when you know that some deeper aspect of the\n * component's state has changed but `setState` was not called.\n *\n * This will not invoke `shouldComponentUpdate`, but it will invoke\n * `componentWillUpdate` and `componentDidUpdate`.\n *\n * @param {ReactClass} publicInstance The instance that should rerender.\n * @param {?function} callback Called after component is updated.\n * @param {?string} callerName name of the calling function in the public API.\n * @internal\n */\n enqueueForceUpdate: function (publicInstance, callback, callerName) {\n warnNoop(publicInstance, 'forceUpdate');\n },\n\n /**\n * Replaces all of the state. Always use this or `setState` to mutate state.\n * You should treat `this.state` as immutable.\n *\n * There is no guarantee that `this.state` will be immediately updated, so\n * accessing `this.state` after calling this method may return the old value.\n *\n * @param {ReactClass} publicInstance The instance that should rerender.\n * @param {object} completeState Next state.\n * @param {?function} callback Called after component is updated.\n * @param {?string} callerName name of the calling function in the public API.\n * @internal\n */\n enqueueReplaceState: function (publicInstance, completeState, callback, callerName) {\n warnNoop(publicInstance, 'replaceState');\n },\n\n /**\n * Sets a subset of the state. This only exists because _pendingState is\n * internal. This provides a merging strategy that is not available to deep\n * properties which is confusing. TODO: Expose pendingState or don't use it\n * during the merge.\n *\n * @param {ReactClass} publicInstance The instance that should rerender.\n * @param {object} partialState Next partial state to be merged with state.\n * @param {?function} callback Called after component is updated.\n * @param {?string} Name of the calling function in the public API.\n * @internal\n */\n enqueueSetState: function (publicInstance, partialState, callback, callerName) {\n warnNoop(publicInstance, 'setState');\n }\n};\n\nvar emptyObject = {};\n{\n Object.freeze(emptyObject);\n}\n\n/**\n * Base class helpers for the updating state of a component.\n */\nfunction Component(props, context, updater) {\n this.props = props;\n this.context = context;\n // If a component has string refs, we will assign a different object later.\n this.refs = emptyObject;\n // We initialize the default updater but the real one gets injected by the\n // renderer.\n this.updater = updater || ReactNoopUpdateQueue;\n}\n\nComponent.prototype.isReactComponent = {};\n\n/**\n * Sets a subset of the state. Always use this to mutate\n * state. You should treat `this.state` as immutable.\n *\n * There is no guarantee that `this.state` will be immediately updated, so\n * accessing `this.state` after calling this method may return the old value.\n *\n * There is no guarantee that calls to `setState` will run synchronously,\n * as they may eventually be batched together. You can provide an optional\n * callback that will be executed when the call to setState is actually\n * completed.\n *\n * When a function is provided to setState, it will be called at some point in\n * the future (not synchronously). It will be called with the up to date\n * component arguments (state, props, context). These values can be different\n * from this.* because your function may be called after receiveProps but before\n * shouldComponentUpdate, and this new state, props, and context will not yet be\n * assigned to this.\n *\n * @param {object|function} partialState Next partial state or function to\n * produce next partial state to be merged with current state.\n * @param {?function} callback Called after state is updated.\n * @final\n * @protected\n */\nComponent.prototype.setState = function (partialState, callback) {\n !(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null) ? invariant(false, 'setState(...): takes an object of state variables to update or a function which returns an object of state variables.') : void 0;\n this.updater.enqueueSetState(this, partialState, callback, 'setState');\n};\n\n/**\n * Forces an update. This should only be invoked when it is known with\n * certainty that we are **not** in a DOM transaction.\n *\n * You may want to call this when you know that some deeper aspect of the\n * component's state has changed but `setState` was not called.\n *\n * This will not invoke `shouldComponentUpdate`, but it will invoke\n * `componentWillUpdate` and `componentDidUpdate`.\n *\n * @param {?function} callback Called after update is complete.\n * @final\n * @protected\n */\nComponent.prototype.forceUpdate = function (callback) {\n this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');\n};\n\n/**\n * Deprecated APIs. These APIs used to exist on classic React classes but since\n * we would like to deprecate them, we're not going to move them over to this\n * modern base class. Instead, we define a getter that warns if it's accessed.\n */\n{\n var deprecatedAPIs = {\n isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],\n replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']\n };\n var defineDeprecationWarning = function (methodName, info) {\n Object.defineProperty(Component.prototype, methodName, {\n get: function () {\n lowPriorityWarning$1(false, '%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);\n return undefined;\n }\n });\n };\n for (var fnName in deprecatedAPIs) {\n if (deprecatedAPIs.hasOwnProperty(fnName)) {\n defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);\n }\n }\n}\n\nfunction ComponentDummy() {}\nComponentDummy.prototype = Component.prototype;\n\n/**\n * Convenience component with default shallow equality check for sCU.\n */\nfunction PureComponent(props, context, updater) {\n this.props = props;\n this.context = context;\n // If a component has string refs, we will assign a different object later.\n this.refs = emptyObject;\n this.updater = updater || ReactNoopUpdateQueue;\n}\n\nvar pureComponentPrototype = PureComponent.prototype = new ComponentDummy();\npureComponentPrototype.constructor = PureComponent;\n// Avoid an extra prototype jump for these methods.\n_assign(pureComponentPrototype, Component.prototype);\npureComponentPrototype.isPureReactComponent = true;\n\n// an immutable object with a single mutable value\nfunction createRef() {\n var refObject = {\n current: null\n };\n {\n Object.seal(refObject);\n }\n return refObject;\n}\n\n/**\n * Keeps track of the current owner.\n *\n * The current owner is the component who should own any components that are\n * currently being constructed.\n */\nvar ReactCurrentOwner = {\n /**\n * @internal\n * @type {ReactComponent}\n */\n current: null,\n currentDispatcher: null\n};\n\nvar BEFORE_SLASH_RE = /^(.*)[\\\\\\/]/;\n\nvar describeComponentFrame = function (name, source, ownerName) {\n var sourceInfo = '';\n if (source) {\n var path = source.fileName;\n var fileName = path.replace(BEFORE_SLASH_RE, '');\n {\n // In DEV, include code for a common special case:\n // prefer \"folder/index.js\" instead of just \"index.js\".\n if (/^index\\./.test(fileName)) {\n var match = path.match(BEFORE_SLASH_RE);\n if (match) {\n var pathBeforeSlash = match[1];\n if (pathBeforeSlash) {\n var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, '');\n fileName = folderName + '/' + fileName;\n }\n }\n }\n }\n sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')';\n } else if (ownerName) {\n sourceInfo = ' (created by ' + ownerName + ')';\n }\n return '\\n in ' + (name || 'Unknown') + sourceInfo;\n};\n\nvar Resolved = 1;\n\n\nfunction refineResolvedLazyComponent(lazyComponent) {\n return lazyComponent._status === Resolved ? lazyComponent._result : null;\n}\n\nfunction getWrappedName(outerType, innerType, wrapperName) {\n var functionName = innerType.displayName || innerType.name || '';\n return outerType.displayName || (functionName !== '' ? wrapperName + '(' + functionName + ')' : wrapperName);\n}\n\nfunction getComponentName(type) {\n if (type == null) {\n // Host root, text node or just invalid type.\n return null;\n }\n {\n if (typeof type.tag === 'number') {\n warningWithoutStack$1(false, 'Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');\n }\n }\n if (typeof type === 'function') {\n return type.displayName || type.name || null;\n }\n if (typeof type === 'string') {\n return type;\n }\n switch (type) {\n case REACT_CONCURRENT_MODE_TYPE:\n return 'ConcurrentMode';\n case REACT_FRAGMENT_TYPE:\n return 'Fragment';\n case REACT_PORTAL_TYPE:\n return 'Portal';\n case REACT_PROFILER_TYPE:\n return 'Profiler';\n case REACT_STRICT_MODE_TYPE:\n return 'StrictMode';\n case REACT_SUSPENSE_TYPE:\n return 'Suspense';\n }\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_CONTEXT_TYPE:\n return 'Context.Consumer';\n case REACT_PROVIDER_TYPE:\n return 'Context.Provider';\n case REACT_FORWARD_REF_TYPE:\n return getWrappedName(type, type.render, 'ForwardRef');\n case REACT_MEMO_TYPE:\n return getComponentName(type.type);\n case REACT_LAZY_TYPE:\n {\n var thenable = type;\n var resolvedThenable = refineResolvedLazyComponent(thenable);\n if (resolvedThenable) {\n return getComponentName(resolvedThenable);\n }\n }\n }\n }\n return null;\n}\n\nvar ReactDebugCurrentFrame = {};\n\nvar currentlyValidatingElement = null;\n\nfunction setCurrentlyValidatingElement(element) {\n {\n currentlyValidatingElement = element;\n }\n}\n\n{\n // Stack implementation injected by the current renderer.\n ReactDebugCurrentFrame.getCurrentStack = null;\n\n ReactDebugCurrentFrame.getStackAddendum = function () {\n var stack = '';\n\n // Add an extra top frame while an element is being validated\n if (currentlyValidatingElement) {\n var name = getComponentName(currentlyValidatingElement.type);\n var owner = currentlyValidatingElement._owner;\n stack += describeComponentFrame(name, currentlyValidatingElement._source, owner && getComponentName(owner.type));\n }\n\n // Delegate to the injected renderer-specific implementation\n var impl = ReactDebugCurrentFrame.getCurrentStack;\n if (impl) {\n stack += impl() || '';\n }\n\n return stack;\n };\n}\n\nvar ReactSharedInternals = {\n ReactCurrentOwner: ReactCurrentOwner,\n // Used by renderers to avoid bundling object-assign twice in UMD bundles:\n assign: _assign\n};\n\n{\n _assign(ReactSharedInternals, {\n // These should not be included in production.\n ReactDebugCurrentFrame: ReactDebugCurrentFrame,\n // Shim for React DOM 16.0.0 which still destructured (but not used) this.\n // TODO: remove in React 17.0.\n ReactComponentTreeHook: {}\n });\n}\n\n/**\n * Similar to invariant but only logs a warning if the condition is not met.\n * This can be used to log issues in development environments in critical\n * paths. Removing the logging code for production environments will keep the\n * same logic and follow the same code paths.\n */\n\nvar warning = warningWithoutStack$1;\n\n{\n warning = function (condition, format) {\n if (condition) {\n return;\n }\n var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n var stack = ReactDebugCurrentFrame.getStackAddendum();\n // eslint-disable-next-line react-internal/warning-and-invariant-args\n\n for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {\n args[_key - 2] = arguments[_key];\n }\n\n warningWithoutStack$1.apply(undefined, [false, format + '%s'].concat(args, [stack]));\n };\n}\n\nvar warning$1 = warning;\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nvar RESERVED_PROPS = {\n key: true,\n ref: true,\n __self: true,\n __source: true\n};\n\nvar specialPropKeyWarningShown = void 0;\nvar specialPropRefWarningShown = void 0;\n\nfunction hasValidRef(config) {\n {\n if (hasOwnProperty.call(config, 'ref')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n return config.ref !== undefined;\n}\n\nfunction hasValidKey(config) {\n {\n if (hasOwnProperty.call(config, 'key')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'key').get;\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n return config.key !== undefined;\n}\n\nfunction defineKeyPropWarningGetter(props, displayName) {\n var warnAboutAccessingKey = function () {\n if (!specialPropKeyWarningShown) {\n specialPropKeyWarningShown = true;\n warningWithoutStack$1(false, '%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName);\n }\n };\n warnAboutAccessingKey.isReactWarning = true;\n Object.defineProperty(props, 'key', {\n get: warnAboutAccessingKey,\n configurable: true\n });\n}\n\nfunction defineRefPropWarningGetter(props, displayName) {\n var warnAboutAccessingRef = function () {\n if (!specialPropRefWarningShown) {\n specialPropRefWarningShown = true;\n warningWithoutStack$1(false, '%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName);\n }\n };\n warnAboutAccessingRef.isReactWarning = true;\n Object.defineProperty(props, 'ref', {\n get: warnAboutAccessingRef,\n configurable: true\n });\n}\n\n/**\n * Factory method to create a new React element. This no longer adheres to\n * the class pattern, so do not use new to call it. Also, no instanceof check\n * will work. Instead test $$typeof field against Symbol.for('react.element') to check\n * if something is a React Element.\n *\n * @param {*} type\n * @param {*} key\n * @param {string|object} ref\n * @param {*} self A *temporary* helper to detect places where `this` is\n * different from the `owner` when React.createElement is called, so that we\n * can warn. We want to get rid of owner and replace string `ref`s with arrow\n * functions, and as long as `this` and owner are the same, there will be no\n * change in behavior.\n * @param {*} source An annotation object (added by a transpiler or otherwise)\n * indicating filename, line number, and/or other information.\n * @param {*} owner\n * @param {*} props\n * @internal\n */\nvar ReactElement = function (type, key, ref, self, source, owner, props) {\n var element = {\n // This tag allows us to uniquely identify this as a React Element\n $$typeof: REACT_ELEMENT_TYPE,\n\n // Built-in properties that belong on the element\n type: type,\n key: key,\n ref: ref,\n props: props,\n\n // Record the component responsible for creating this element.\n _owner: owner\n };\n\n {\n // The validation flag is currently mutative. We put it on\n // an external backing store so that we can freeze the whole object.\n // This can be replaced with a WeakMap once they are implemented in\n // commonly used development environments.\n element._store = {};\n\n // To make comparing ReactElements easier for testing purposes, we make\n // the validation flag non-enumerable (where possible, which should\n // include every environment we run tests in), so the test framework\n // ignores it.\n Object.defineProperty(element._store, 'validated', {\n configurable: false,\n enumerable: false,\n writable: true,\n value: false\n });\n // self and source are DEV only properties.\n Object.defineProperty(element, '_self', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: self\n });\n // Two elements created in two different places should be considered\n // equal for testing purposes and therefore we hide it from enumeration.\n Object.defineProperty(element, '_source', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: source\n });\n if (Object.freeze) {\n Object.freeze(element.props);\n Object.freeze(element);\n }\n }\n\n return element;\n};\n\n/**\n * Create and return a new ReactElement of the given type.\n * See https://reactjs.org/docs/react-api.html#createelement\n */\nfunction createElement(type, config, children) {\n var propName = void 0;\n\n // Reserved names are extracted\n var props = {};\n\n var key = null;\n var ref = null;\n var self = null;\n var source = null;\n\n if (config != null) {\n if (hasValidRef(config)) {\n ref = config.ref;\n }\n if (hasValidKey(config)) {\n key = '' + config.key;\n }\n\n self = config.__self === undefined ? null : config.__self;\n source = config.__source === undefined ? null : config.__source;\n // Remaining properties are added to a new props object\n for (propName in config) {\n if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n props[propName] = config[propName];\n }\n }\n }\n\n // Children can be more than one argument, and those are transferred onto\n // the newly allocated props object.\n var childrenLength = arguments.length - 2;\n if (childrenLength === 1) {\n props.children = children;\n } else if (childrenLength > 1) {\n var childArray = Array(childrenLength);\n for (var i = 0; i < childrenLength; i++) {\n childArray[i] = arguments[i + 2];\n }\n {\n if (Object.freeze) {\n Object.freeze(childArray);\n }\n }\n props.children = childArray;\n }\n\n // Resolve default props\n if (type && type.defaultProps) {\n var defaultProps = type.defaultProps;\n for (propName in defaultProps) {\n if (props[propName] === undefined) {\n props[propName] = defaultProps[propName];\n }\n }\n }\n {\n if (key || ref) {\n var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;\n if (key) {\n defineKeyPropWarningGetter(props, displayName);\n }\n if (ref) {\n defineRefPropWarningGetter(props, displayName);\n }\n }\n }\n return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);\n}\n\n/**\n * Return a function that produces ReactElements of a given type.\n * See https://reactjs.org/docs/react-api.html#createfactory\n */\n\n\nfunction cloneAndReplaceKey(oldElement, newKey) {\n var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);\n\n return newElement;\n}\n\n/**\n * Clone and return a new ReactElement using element as the starting point.\n * See https://reactjs.org/docs/react-api.html#cloneelement\n */\nfunction cloneElement(element, config, children) {\n !!(element === null || element === undefined) ? invariant(false, 'React.cloneElement(...): The argument must be a React element, but you passed %s.', element) : void 0;\n\n var propName = void 0;\n\n // Original props are copied\n var props = _assign({}, element.props);\n\n // Reserved names are extracted\n var key = element.key;\n var ref = element.ref;\n // Self is preserved since the owner is preserved.\n var self = element._self;\n // Source is preserved since cloneElement is unlikely to be targeted by a\n // transpiler, and the original source is probably a better indicator of the\n // true owner.\n var source = element._source;\n\n // Owner will be preserved, unless ref is overridden\n var owner = element._owner;\n\n if (config != null) {\n if (hasValidRef(config)) {\n // Silently steal the ref from the parent.\n ref = config.ref;\n owner = ReactCurrentOwner.current;\n }\n if (hasValidKey(config)) {\n key = '' + config.key;\n }\n\n // Remaining properties override existing props\n var defaultProps = void 0;\n if (element.type && element.type.defaultProps) {\n defaultProps = element.type.defaultProps;\n }\n for (propName in config) {\n if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n if (config[propName] === undefined && defaultProps !== undefined) {\n // Resolve default props\n props[propName] = defaultProps[propName];\n } else {\n props[propName] = config[propName];\n }\n }\n }\n }\n\n // Children can be more than one argument, and those are transferred onto\n // the newly allocated props object.\n var childrenLength = arguments.length - 2;\n if (childrenLength === 1) {\n props.children = children;\n } else if (childrenLength > 1) {\n var childArray = Array(childrenLength);\n for (var i = 0; i < childrenLength; i++) {\n childArray[i] = arguments[i + 2];\n }\n props.children = childArray;\n }\n\n return ReactElement(element.type, key, ref, self, source, owner, props);\n}\n\n/**\n * Verifies the object is a ReactElement.\n * See https://reactjs.org/docs/react-api.html#isvalidelement\n * @param {?object} object\n * @return {boolean} True if `object` is a ReactElement.\n * @final\n */\nfunction isValidElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n}\n\nvar SEPARATOR = '.';\nvar SUBSEPARATOR = ':';\n\n/**\n * Escape and wrap key so it is safe to use as a reactid\n *\n * @param {string} key to be escaped.\n * @return {string} the escaped key.\n */\nfunction escape(key) {\n var escapeRegex = /[=:]/g;\n var escaperLookup = {\n '=': '=0',\n ':': '=2'\n };\n var escapedString = ('' + key).replace(escapeRegex, function (match) {\n return escaperLookup[match];\n });\n\n return '$' + escapedString;\n}\n\n/**\n * TODO: Test that a single child and an array with one item have the same key\n * pattern.\n */\n\nvar didWarnAboutMaps = false;\n\nvar userProvidedKeyEscapeRegex = /\\/+/g;\nfunction escapeUserProvidedKey(text) {\n return ('' + text).replace(userProvidedKeyEscapeRegex, '$&/');\n}\n\nvar POOL_SIZE = 10;\nvar traverseContextPool = [];\nfunction getPooledTraverseContext(mapResult, keyPrefix, mapFunction, mapContext) {\n if (traverseContextPool.length) {\n var traverseContext = traverseContextPool.pop();\n traverseContext.result = mapResult;\n traverseContext.keyPrefix = keyPrefix;\n traverseContext.func = mapFunction;\n traverseContext.context = mapContext;\n traverseContext.count = 0;\n return traverseContext;\n } else {\n return {\n result: mapResult,\n keyPrefix: keyPrefix,\n func: mapFunction,\n context: mapContext,\n count: 0\n };\n }\n}\n\nfunction releaseTraverseContext(traverseContext) {\n traverseContext.result = null;\n traverseContext.keyPrefix = null;\n traverseContext.func = null;\n traverseContext.context = null;\n traverseContext.count = 0;\n if (traverseContextPool.length < POOL_SIZE) {\n traverseContextPool.push(traverseContext);\n }\n}\n\n/**\n * @param {?*} children Children tree container.\n * @param {!string} nameSoFar Name of the key path so far.\n * @param {!function} callback Callback to invoke with each child found.\n * @param {?*} traverseContext Used to pass information throughout the traversal\n * process.\n * @return {!number} The number of children in this subtree.\n */\nfunction traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) {\n var type = typeof children;\n\n if (type === 'undefined' || type === 'boolean') {\n // All of the above are perceived as null.\n children = null;\n }\n\n var invokeCallback = false;\n\n if (children === null) {\n invokeCallback = true;\n } else {\n switch (type) {\n case 'string':\n case 'number':\n invokeCallback = true;\n break;\n case 'object':\n switch (children.$$typeof) {\n case REACT_ELEMENT_TYPE:\n case REACT_PORTAL_TYPE:\n invokeCallback = true;\n }\n }\n }\n\n if (invokeCallback) {\n callback(traverseContext, children,\n // If it's the only child, treat the name as if it was wrapped in an array\n // so that it's consistent if the number of children grows.\n nameSoFar === '' ? SEPARATOR + getComponentKey(children, 0) : nameSoFar);\n return 1;\n }\n\n var child = void 0;\n var nextName = void 0;\n var subtreeCount = 0; // Count of children found in the current subtree.\n var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;\n\n if (Array.isArray(children)) {\n for (var i = 0; i < children.length; i++) {\n child = children[i];\n nextName = nextNamePrefix + getComponentKey(child, i);\n subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);\n }\n } else {\n var iteratorFn = getIteratorFn(children);\n if (typeof iteratorFn === 'function') {\n {\n // Warn about using Maps as children\n if (iteratorFn === children.entries) {\n !didWarnAboutMaps ? warning$1(false, 'Using Maps as children is unsupported and will likely yield ' + 'unexpected results. Convert it to a sequence/iterable of keyed ' + 'ReactElements instead.') : void 0;\n didWarnAboutMaps = true;\n }\n }\n\n var iterator = iteratorFn.call(children);\n var step = void 0;\n var ii = 0;\n while (!(step = iterator.next()).done) {\n child = step.value;\n nextName = nextNamePrefix + getComponentKey(child, ii++);\n subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);\n }\n } else if (type === 'object') {\n var addendum = '';\n {\n addendum = ' If you meant to render a collection of children, use an array ' + 'instead.' + ReactDebugCurrentFrame.getStackAddendum();\n }\n var childrenString = '' + children;\n invariant(false, 'Objects are not valid as a React child (found: %s).%s', childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString, addendum);\n }\n }\n\n return subtreeCount;\n}\n\n/**\n * Traverses children that are typically specified as `props.children`, but\n * might also be specified through attributes:\n *\n * - `traverseAllChildren(this.props.children, ...)`\n * - `traverseAllChildren(this.props.leftPanelChildren, ...)`\n *\n * The `traverseContext` is an optional argument that is passed through the\n * entire traversal. It can be used to store accumulations or anything else that\n * the callback might find relevant.\n *\n * @param {?*} children Children tree object.\n * @param {!function} callback To invoke upon traversing each child.\n * @param {?*} traverseContext Context for traversal.\n * @return {!number} The number of children in this subtree.\n */\nfunction traverseAllChildren(children, callback, traverseContext) {\n if (children == null) {\n return 0;\n }\n\n return traverseAllChildrenImpl(children, '', callback, traverseContext);\n}\n\n/**\n * Generate a key string that identifies a component within a set.\n *\n * @param {*} component A component that could contain a manual key.\n * @param {number} index Index that is used if a manual key is not provided.\n * @return {string}\n */\nfunction getComponentKey(component, index) {\n // Do some typechecking here since we call this blindly. We want to ensure\n // that we don't block potential future ES APIs.\n if (typeof component === 'object' && component !== null && component.key != null) {\n // Explicit key\n return escape(component.key);\n }\n // Implicit key determined by the index in the set\n return index.toString(36);\n}\n\nfunction forEachSingleChild(bookKeeping, child, name) {\n var func = bookKeeping.func,\n context = bookKeeping.context;\n\n func.call(context, child, bookKeeping.count++);\n}\n\n/**\n * Iterates through children that are typically specified as `props.children`.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrenforeach\n *\n * The provided forEachFunc(child, index) will be called for each\n * leaf child.\n *\n * @param {?*} children Children tree container.\n * @param {function(*, int)} forEachFunc\n * @param {*} forEachContext Context for forEachContext.\n */\nfunction forEachChildren(children, forEachFunc, forEachContext) {\n if (children == null) {\n return children;\n }\n var traverseContext = getPooledTraverseContext(null, null, forEachFunc, forEachContext);\n traverseAllChildren(children, forEachSingleChild, traverseContext);\n releaseTraverseContext(traverseContext);\n}\n\nfunction mapSingleChildIntoContext(bookKeeping, child, childKey) {\n var result = bookKeeping.result,\n keyPrefix = bookKeeping.keyPrefix,\n func = bookKeeping.func,\n context = bookKeeping.context;\n\n\n var mappedChild = func.call(context, child, bookKeeping.count++);\n if (Array.isArray(mappedChild)) {\n mapIntoWithKeyPrefixInternal(mappedChild, result, childKey, function (c) {\n return c;\n });\n } else if (mappedChild != null) {\n if (isValidElement(mappedChild)) {\n mappedChild = cloneAndReplaceKey(mappedChild,\n // Keep both the (mapped) and old keys if they differ, just as\n // traverseAllChildren used to do for objects as children\n keyPrefix + (mappedChild.key && (!child || child.key !== mappedChild.key) ? escapeUserProvidedKey(mappedChild.key) + '/' : '') + childKey);\n }\n result.push(mappedChild);\n }\n}\n\nfunction mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {\n var escapedPrefix = '';\n if (prefix != null) {\n escapedPrefix = escapeUserProvidedKey(prefix) + '/';\n }\n var traverseContext = getPooledTraverseContext(array, escapedPrefix, func, context);\n traverseAllChildren(children, mapSingleChildIntoContext, traverseContext);\n releaseTraverseContext(traverseContext);\n}\n\n/**\n * Maps children that are typically specified as `props.children`.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrenmap\n *\n * The provided mapFunction(child, key, index) will be called for each\n * leaf child.\n *\n * @param {?*} children Children tree container.\n * @param {function(*, int)} func The map function.\n * @param {*} context Context for mapFunction.\n * @return {object} Object containing the ordered map of results.\n */\nfunction mapChildren(children, func, context) {\n if (children == null) {\n return children;\n }\n var result = [];\n mapIntoWithKeyPrefixInternal(children, result, null, func, context);\n return result;\n}\n\n/**\n * Count the number of children that are typically specified as\n * `props.children`.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrencount\n *\n * @param {?*} children Children tree container.\n * @return {number} The number of children.\n */\nfunction countChildren(children) {\n return traverseAllChildren(children, function () {\n return null;\n }, null);\n}\n\n/**\n * Flatten a children object (typically specified as `props.children`) and\n * return an array with appropriately re-keyed children.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrentoarray\n */\nfunction toArray(children) {\n var result = [];\n mapIntoWithKeyPrefixInternal(children, result, null, function (child) {\n return child;\n });\n return result;\n}\n\n/**\n * Returns the first child in a collection of children and verifies that there\n * is only one child in the collection.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrenonly\n *\n * The current implementation of this function assumes that a single child gets\n * passed without a wrapper, but the purpose of this helper function is to\n * abstract away the particular structure of children.\n *\n * @param {?object} children Child collection structure.\n * @return {ReactElement} The first and only `ReactElement` contained in the\n * structure.\n */\nfunction onlyChild(children) {\n !isValidElement(children) ? invariant(false, 'React.Children.only expected to receive a single React element child.') : void 0;\n return children;\n}\n\nfunction createContext(defaultValue, calculateChangedBits) {\n if (calculateChangedBits === undefined) {\n calculateChangedBits = null;\n } else {\n {\n !(calculateChangedBits === null || typeof calculateChangedBits === 'function') ? warningWithoutStack$1(false, 'createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits) : void 0;\n }\n }\n\n var context = {\n $$typeof: REACT_CONTEXT_TYPE,\n _calculateChangedBits: calculateChangedBits,\n // As a workaround to support multiple concurrent renderers, we categorize\n // some renderers as primary and others as secondary. We only expect\n // there to be two concurrent renderers at most: React Native (primary) and\n // Fabric (secondary); React DOM (primary) and React ART (secondary).\n // Secondary renderers store their context values on separate fields.\n _currentValue: defaultValue,\n _currentValue2: defaultValue,\n // These are circular\n Provider: null,\n Consumer: null\n };\n\n context.Provider = {\n $$typeof: REACT_PROVIDER_TYPE,\n _context: context\n };\n\n var hasWarnedAboutUsingNestedContextConsumers = false;\n var hasWarnedAboutUsingConsumerProvider = false;\n\n {\n // A separate object, but proxies back to the original context object for\n // backwards compatibility. It has a different $$typeof, so we can properly\n // warn for the incorrect usage of Context as a Consumer.\n var Consumer = {\n $$typeof: REACT_CONTEXT_TYPE,\n _context: context,\n _calculateChangedBits: context._calculateChangedBits\n };\n // $FlowFixMe: Flow complains about not setting a value, which is intentional here\n Object.defineProperties(Consumer, {\n Provider: {\n get: function () {\n if (!hasWarnedAboutUsingConsumerProvider) {\n hasWarnedAboutUsingConsumerProvider = true;\n warning$1(false, 'Rendering <Context.Consumer.Provider> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Provider> instead?');\n }\n return context.Provider;\n },\n set: function (_Provider) {\n context.Provider = _Provider;\n }\n },\n _currentValue: {\n get: function () {\n return context._currentValue;\n },\n set: function (_currentValue) {\n context._currentValue = _currentValue;\n }\n },\n _currentValue2: {\n get: function () {\n return context._currentValue2;\n },\n set: function (_currentValue2) {\n context._currentValue2 = _currentValue2;\n }\n },\n Consumer: {\n get: function () {\n if (!hasWarnedAboutUsingNestedContextConsumers) {\n hasWarnedAboutUsingNestedContextConsumers = true;\n warning$1(false, 'Rendering <Context.Consumer.Consumer> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?');\n }\n return context.Consumer;\n }\n }\n });\n // $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty\n context.Consumer = Consumer;\n }\n\n {\n context._currentRenderer = null;\n context._currentRenderer2 = null;\n }\n\n return context;\n}\n\nfunction lazy(ctor) {\n return {\n $$typeof: REACT_LAZY_TYPE,\n _ctor: ctor,\n // React uses these fields to store the result.\n _status: -1,\n _result: null\n };\n}\n\nfunction forwardRef(render) {\n {\n if (typeof render !== 'function') {\n warningWithoutStack$1(false, 'forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render);\n } else {\n !(\n // Do not warn for 0 arguments because it could be due to usage of the 'arguments' object\n render.length === 0 || render.length === 2) ? warningWithoutStack$1(false, 'forwardRef render functions accept exactly two parameters: props and ref. %s', render.length === 1 ? 'Did you forget to use the ref parameter?' : 'Any additional parameter will be undefined.') : void 0;\n }\n\n if (render != null) {\n !(render.defaultProps == null && render.propTypes == null) ? warningWithoutStack$1(false, 'forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?') : void 0;\n }\n }\n\n return {\n $$typeof: REACT_FORWARD_REF_TYPE,\n render: render\n };\n}\n\nfunction isValidElementType(type) {\n return typeof type === 'string' || typeof type === 'function' ||\n // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.\n type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE);\n}\n\nfunction memo(type, compare) {\n {\n if (!isValidElementType(type)) {\n warningWithoutStack$1(false, 'memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type);\n }\n }\n return {\n $$typeof: REACT_MEMO_TYPE,\n type: type,\n compare: compare === undefined ? null : compare\n };\n}\n\n/**\n * ReactElementValidator provides a wrapper around a element factory\n * which validates the props passed to the element. This is intended to be\n * used only in DEV and could be replaced by a static type checker for languages\n * that support it.\n */\n\nvar propTypesMisspellWarningShown = void 0;\n\n{\n propTypesMisspellWarningShown = false;\n}\n\nfunction getDeclarationErrorAddendum() {\n if (ReactCurrentOwner.current) {\n var name = getComponentName(ReactCurrentOwner.current.type);\n if (name) {\n return '\\n\\nCheck the render method of `' + name + '`.';\n }\n }\n return '';\n}\n\nfunction getSourceInfoErrorAddendum(elementProps) {\n if (elementProps !== null && elementProps !== undefined && elementProps.__source !== undefined) {\n var source = elementProps.__source;\n var fileName = source.fileName.replace(/^.*[\\\\\\/]/, '');\n var lineNumber = source.lineNumber;\n return '\\n\\nCheck your code at ' + fileName + ':' + lineNumber + '.';\n }\n return '';\n}\n\n/**\n * Warn if there's no key explicitly set on dynamic arrays of children or\n * object keys are not valid. This allows us to keep track of children between\n * updates.\n */\nvar ownerHasKeyUseWarning = {};\n\nfunction getCurrentComponentErrorInfo(parentType) {\n var info = getDeclarationErrorAddendum();\n\n if (!info) {\n var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;\n if (parentName) {\n info = '\\n\\nCheck the top-level render call using <' + parentName + '>.';\n }\n }\n return info;\n}\n\n/**\n * Warn if the element doesn't have an explicit key assigned to it.\n * This element is in an array. The array could grow and shrink or be\n * reordered. All children that haven't already been validated are required to\n * have a \"key\" property assigned to it. Error statuses are cached so a warning\n * will only be shown once.\n *\n * @internal\n * @param {ReactElement} element Element that requires a key.\n * @param {*} parentType element's parent's type.\n */\nfunction validateExplicitKey(element, parentType) {\n if (!element._store || element._store.validated || element.key != null) {\n return;\n }\n element._store.validated = true;\n\n var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);\n if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {\n return;\n }\n ownerHasKeyUseWarning[currentComponentErrorInfo] = true;\n\n // Usually the current owner is the offender, but if it accepts children as a\n // property, it may be the creator of the child that's responsible for\n // assigning it a key.\n var childOwner = '';\n if (element && element._owner && element._owner !== ReactCurrentOwner.current) {\n // Give the component that originally created this child.\n childOwner = ' It was passed a child from ' + getComponentName(element._owner.type) + '.';\n }\n\n setCurrentlyValidatingElement(element);\n {\n warning$1(false, 'Each child in an array or iterator should have a unique \"key\" prop.' + '%s%s See https://fb.me/react-warning-keys for more information.', currentComponentErrorInfo, childOwner);\n }\n setCurrentlyValidatingElement(null);\n}\n\n/**\n * Ensure that every element either is passed in a static location, in an\n * array with an explicit keys property defined, or in an object literal\n * with valid key property.\n *\n * @internal\n * @param {ReactNode} node Statically passed child of any type.\n * @param {*} parentType node's parent's type.\n */\nfunction validateChildKeys(node, parentType) {\n if (typeof node !== 'object') {\n return;\n }\n if (Array.isArray(node)) {\n for (var i = 0; i < node.length; i++) {\n var child = node[i];\n if (isValidElement(child)) {\n validateExplicitKey(child, parentType);\n }\n }\n } else if (isValidElement(node)) {\n // This element was passed in a valid location.\n if (node._store) {\n node._store.validated = true;\n }\n } else if (node) {\n var iteratorFn = getIteratorFn(node);\n if (typeof iteratorFn === 'function') {\n // Entry iterators used to provide implicit keys,\n // but now we print a separate warning for them later.\n if (iteratorFn !== node.entries) {\n var iterator = iteratorFn.call(node);\n var step = void 0;\n while (!(step = iterator.next()).done) {\n if (isValidElement(step.value)) {\n validateExplicitKey(step.value, parentType);\n }\n }\n }\n }\n }\n}\n\n/**\n * Given an element, validate that its props follow the propTypes definition,\n * provided by the type.\n *\n * @param {ReactElement} element\n */\nfunction validatePropTypes(element) {\n var type = element.type;\n var name = void 0,\n propTypes = void 0;\n if (typeof type === 'function') {\n // Class or function component\n name = type.displayName || type.name;\n propTypes = type.propTypes;\n } else if (typeof type === 'object' && type !== null && type.$$typeof === REACT_FORWARD_REF_TYPE) {\n // ForwardRef\n var functionName = type.render.displayName || type.render.name || '';\n name = type.displayName || (functionName !== '' ? 'ForwardRef(' + functionName + ')' : 'ForwardRef');\n propTypes = type.propTypes;\n } else {\n return;\n }\n if (propTypes) {\n setCurrentlyValidatingElement(element);\n checkPropTypes(propTypes, element.props, 'prop', name, ReactDebugCurrentFrame.getStackAddendum);\n setCurrentlyValidatingElement(null);\n } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {\n propTypesMisspellWarningShown = true;\n warningWithoutStack$1(false, 'Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', name || 'Unknown');\n }\n if (typeof type.getDefaultProps === 'function') {\n !type.getDefaultProps.isReactClassApproved ? warningWithoutStack$1(false, 'getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.') : void 0;\n }\n}\n\n/**\n * Given a fragment, validate that it can only be provided with fragment props\n * @param {ReactElement} fragment\n */\nfunction validateFragmentProps(fragment) {\n setCurrentlyValidatingElement(fragment);\n\n var keys = Object.keys(fragment.props);\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (key !== 'children' && key !== 'key') {\n warning$1(false, 'Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);\n break;\n }\n }\n\n if (fragment.ref !== null) {\n warning$1(false, 'Invalid attribute `ref` supplied to `React.Fragment`.');\n }\n\n setCurrentlyValidatingElement(null);\n}\n\nfunction createElementWithValidation(type, props, children) {\n var validType = isValidElementType(type);\n\n // We warn in this case but don't throw. We expect the element creation to\n // succeed and there will likely be errors in render.\n if (!validType) {\n var info = '';\n if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {\n info += ' You likely forgot to export your component from the file ' + \"it's defined in, or you might have mixed up default and named imports.\";\n }\n\n var sourceInfo = getSourceInfoErrorAddendum(props);\n if (sourceInfo) {\n info += sourceInfo;\n } else {\n info += getDeclarationErrorAddendum();\n }\n\n var typeString = void 0;\n if (type === null) {\n typeString = 'null';\n } else if (Array.isArray(type)) {\n typeString = 'array';\n } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {\n typeString = '<' + (getComponentName(type.type) || 'Unknown') + ' />';\n info = ' Did you accidentally export a JSX literal instead of a component?';\n } else {\n typeString = typeof type;\n }\n\n warning$1(false, 'React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);\n }\n\n var element = createElement.apply(this, arguments);\n\n // The result can be nullish if a mock or a custom function is used.\n // TODO: Drop this when these are no longer allowed as the type argument.\n if (element == null) {\n return element;\n }\n\n // Skip key warning if the type isn't valid since our key validation logic\n // doesn't expect a non-string/function type and can throw confusing errors.\n // We don't want exception behavior to differ between dev and prod.\n // (Rendering will throw with a helpful message and as soon as the type is\n // fixed, the key warnings will appear.)\n if (validType) {\n for (var i = 2; i < arguments.length; i++) {\n validateChildKeys(arguments[i], type);\n }\n }\n\n if (type === REACT_FRAGMENT_TYPE) {\n validateFragmentProps(element);\n } else {\n validatePropTypes(element);\n }\n\n return element;\n}\n\nfunction createFactoryWithValidation(type) {\n var validatedFactory = createElementWithValidation.bind(null, type);\n validatedFactory.type = type;\n // Legacy hook: remove it\n {\n Object.defineProperty(validatedFactory, 'type', {\n enumerable: false,\n get: function () {\n lowPriorityWarning$1(false, 'Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.');\n Object.defineProperty(this, 'type', {\n value: type\n });\n return type;\n }\n });\n }\n\n return validatedFactory;\n}\n\nfunction cloneElementWithValidation(element, props, children) {\n var newElement = cloneElement.apply(this, arguments);\n for (var i = 2; i < arguments.length; i++) {\n validateChildKeys(arguments[i], newElement.type);\n }\n validatePropTypes(newElement);\n return newElement;\n}\n\nvar React = {\n Children: {\n map: mapChildren,\n forEach: forEachChildren,\n count: countChildren,\n toArray: toArray,\n only: onlyChild\n },\n\n createRef: createRef,\n Component: Component,\n PureComponent: PureComponent,\n\n createContext: createContext,\n forwardRef: forwardRef,\n lazy: lazy,\n memo: memo,\n\n Fragment: REACT_FRAGMENT_TYPE,\n StrictMode: REACT_STRICT_MODE_TYPE,\n unstable_ConcurrentMode: REACT_CONCURRENT_MODE_TYPE,\n Suspense: REACT_SUSPENSE_TYPE,\n unstable_Profiler: REACT_PROFILER_TYPE,\n\n createElement: createElementWithValidation,\n cloneElement: cloneElementWithValidation,\n createFactory: createFactoryWithValidation,\n isValidElement: isValidElement,\n\n version: ReactVersion,\n\n __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: ReactSharedInternals\n};\n\n\n\nvar React$2 = Object.freeze({\n\tdefault: React\n});\n\nvar React$3 = ( React$2 && React ) || React$2;\n\n// TODO: decide on the top-level export form.\n// This is hacky but makes it work with both Rollup and Jest.\nvar react = React$3.default || React$3;\n\nmodule.exports = react;\n })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react.production.min.js');\n} else {\n module.exports = require('./cjs/react.development.js');\n}\n","/*\n\tMIT License http://www.opensource.org/licenses/mit-license.php\n\tAuthor Tobias Koppers @sokra\n*/\n\nvar stylesInDom = {};\n\nvar\tmemoize = function (fn) {\n\tvar memo;\n\n\treturn function () {\n\t\tif (typeof memo === \"undefined\") memo = fn.apply(this, arguments);\n\t\treturn memo;\n\t};\n};\n\nvar isOldIE = memoize(function () {\n\t// Test for IE <= 9 as proposed by Browserhacks\n\t// @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805\n\t// Tests for existence of standard globals is to allow style-loader\n\t// to operate correctly into non-standard environments\n\t// @see https://github.com/webpack-contrib/style-loader/issues/177\n\treturn window && document && document.all && !window.atob;\n});\n\nvar getTarget = function (target) {\n return document.querySelector(target);\n};\n\nvar getElement = (function (fn) {\n\tvar memo = {};\n\n\treturn function(target) {\n // If passing function in options, then use it for resolve \"head\" element.\n // Useful for Shadow Root style i.e\n // {\n // insertInto: function () { return document.querySelector(\"#foo\").shadowRoot }\n // }\n if (typeof target === 'function') {\n return target();\n }\n if (typeof memo[target] === \"undefined\") {\n\t\t\tvar styleTarget = getTarget.call(this, target);\n\t\t\t// Special case to return head of iframe instead of iframe itself\n\t\t\tif (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {\n\t\t\t\ttry {\n\t\t\t\t\t// This will throw an exception if access to iframe is blocked\n\t\t\t\t\t// due to cross-origin restrictions\n\t\t\t\t\tstyleTarget = styleTarget.contentDocument.head;\n\t\t\t\t} catch(e) {\n\t\t\t\t\tstyleTarget = null;\n\t\t\t\t}\n\t\t\t}\n\t\t\tmemo[target] = styleTarget;\n\t\t}\n\t\treturn memo[target]\n\t};\n})();\n\nvar singleton = null;\nvar\tsingletonCounter = 0;\nvar\tstylesInsertedAtTop = [];\n\nvar\tfixUrls = require(\"./urls\");\n\nmodule.exports = function(list, options) {\n\tif (typeof DEBUG !== \"undefined\" && DEBUG) {\n\t\tif (typeof document !== \"object\") throw new Error(\"The style-loader cannot be used in a non-browser environment\");\n\t}\n\n\toptions = options || {};\n\n\toptions.attrs = typeof options.attrs === \"object\" ? options.attrs : {};\n\n\t// Force single-tag solution on IE6-9, which has a hard limit on the # of <style>\n\t// tags it will allow on a page\n\tif (!options.singleton && typeof options.singleton !== \"boolean\") options.singleton = isOldIE();\n\n\t// By default, add <style> tags to the <head> element\n if (!options.insertInto) options.insertInto = \"head\";\n\n\t// By default, add <style> tags to the bottom of the target\n\tif (!options.insertAt) options.insertAt = \"bottom\";\n\n\tvar styles = listToStyles(list, options);\n\n\taddStylesToDom(styles, options);\n\n\treturn function update (newList) {\n\t\tvar mayRemove = [];\n\n\t\tfor (var i = 0; i < styles.length; i++) {\n\t\t\tvar item = styles[i];\n\t\t\tvar domStyle = stylesInDom[item.id];\n\n\t\t\tdomStyle.refs--;\n\t\t\tmayRemove.push(domStyle);\n\t\t}\n\n\t\tif(newList) {\n\t\t\tvar newStyles = listToStyles(newList, options);\n\t\t\taddStylesToDom(newStyles, options);\n\t\t}\n\n\t\tfor (var i = 0; i < mayRemove.length; i++) {\n\t\t\tvar domStyle = mayRemove[i];\n\n\t\t\tif(domStyle.refs === 0) {\n\t\t\t\tfor (var j = 0; j < domStyle.parts.length; j++) domStyle.parts[j]();\n\n\t\t\t\tdelete stylesInDom[domStyle.id];\n\t\t\t}\n\t\t}\n\t};\n};\n\nfunction addStylesToDom (styles, options) {\n\tfor (var i = 0; i < styles.length; i++) {\n\t\tvar item = styles[i];\n\t\tvar domStyle = stylesInDom[item.id];\n\n\t\tif(domStyle) {\n\t\t\tdomStyle.refs++;\n\n\t\t\tfor(var j = 0; j < domStyle.parts.length; j++) {\n\t\t\t\tdomStyle.parts[j](item.parts[j]);\n\t\t\t}\n\n\t\t\tfor(; j < item.parts.length; j++) {\n\t\t\t\tdomStyle.parts.push(addStyle(item.parts[j], options));\n\t\t\t}\n\t\t} else {\n\t\t\tvar parts = [];\n\n\t\t\tfor(var j = 0; j < item.parts.length; j++) {\n\t\t\t\tparts.push(addStyle(item.parts[j], options));\n\t\t\t}\n\n\t\t\tstylesInDom[item.id] = {id: item.id, refs: 1, parts: parts};\n\t\t}\n\t}\n}\n\nfunction listToStyles (list, options) {\n\tvar styles = [];\n\tvar newStyles = {};\n\n\tfor (var i = 0; i < list.length; i++) {\n\t\tvar item = list[i];\n\t\tvar id = options.base ? item[0] + options.base : item[0];\n\t\tvar css = item[1];\n\t\tvar media = item[2];\n\t\tvar sourceMap = item[3];\n\t\tvar part = {css: css, media: media, sourceMap: sourceMap};\n\n\t\tif(!newStyles[id]) styles.push(newStyles[id] = {id: id, parts: [part]});\n\t\telse newStyles[id].parts.push(part);\n\t}\n\n\treturn styles;\n}\n\nfunction insertStyleElement (options, style) {\n\tvar target = getElement(options.insertInto)\n\n\tif (!target) {\n\t\tthrow new Error(\"Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.\");\n\t}\n\n\tvar lastStyleElementInsertedAtTop = stylesInsertedAtTop[stylesInsertedAtTop.length - 1];\n\n\tif (options.insertAt === \"top\") {\n\t\tif (!lastStyleElementInsertedAtTop) {\n\t\t\ttarget.insertBefore(style, target.firstChild);\n\t\t} else if (lastStyleElementInsertedAtTop.nextSibling) {\n\t\t\ttarget.insertBefore(style, lastStyleElementInsertedAtTop.nextSibling);\n\t\t} else {\n\t\t\ttarget.appendChild(style);\n\t\t}\n\t\tstylesInsertedAtTop.push(style);\n\t} else if (options.insertAt === \"bottom\") {\n\t\ttarget.appendChild(style);\n\t} else if (typeof options.insertAt === \"object\" && options.insertAt.before) {\n\t\tvar nextSibling = getElement(options.insertInto + \" \" + options.insertAt.before);\n\t\ttarget.insertBefore(style, nextSibling);\n\t} else {\n\t\tthrow new Error(\"[Style Loader]\\n\\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\\n Must be 'top', 'bottom', or Object.\\n (https://github.com/webpack-contrib/style-loader#insertat)\\n\");\n\t}\n}\n\nfunction removeStyleElement (style) {\n\tif (style.parentNode === null) return false;\n\tstyle.parentNode.removeChild(style);\n\n\tvar idx = stylesInsertedAtTop.indexOf(style);\n\tif(idx >= 0) {\n\t\tstylesInsertedAtTop.splice(idx, 1);\n\t}\n}\n\nfunction createStyleElement (options) {\n\tvar style = document.createElement(\"style\");\n\n\toptions.attrs.type = \"text/css\";\n\n\taddAttrs(style, options.attrs);\n\tinsertStyleElement(options, style);\n\n\treturn style;\n}\n\nfunction createLinkElement (options) {\n\tvar link = document.createElement(\"link\");\n\n\toptions.attrs.type = \"text/css\";\n\toptions.attrs.rel = \"stylesheet\";\n\n\taddAttrs(link, options.attrs);\n\tinsertStyleElement(options, link);\n\n\treturn link;\n}\n\nfunction addAttrs (el, attrs) {\n\tObject.keys(attrs).forEach(function (key) {\n\t\tel.setAttribute(key, attrs[key]);\n\t});\n}\n\nfunction addStyle (obj, options) {\n\tvar style, update, remove, result;\n\n\t// If a transform function was defined, run it on the css\n\tif (options.transform && obj.css) {\n\t result = options.transform(obj.css);\n\n\t if (result) {\n\t \t// If transform returns a value, use that instead of the original css.\n\t \t// This allows running runtime transformations on the css.\n\t \tobj.css = result;\n\t } else {\n\t \t// If the transform function returns a falsy value, don't add this css.\n\t \t// This allows conditional loading of css\n\t \treturn function() {\n\t \t\t// noop\n\t \t};\n\t }\n\t}\n\n\tif (options.singleton) {\n\t\tvar styleIndex = singletonCounter++;\n\n\t\tstyle = singleton || (singleton = createStyleElement(options));\n\n\t\tupdate = applyToSingletonTag.bind(null, style, styleIndex, false);\n\t\tremove = applyToSingletonTag.bind(null, style, styleIndex, true);\n\n\t} else if (\n\t\tobj.sourceMap &&\n\t\ttypeof URL === \"function\" &&\n\t\ttypeof URL.createObjectURL === \"function\" &&\n\t\ttypeof URL.revokeObjectURL === \"function\" &&\n\t\ttypeof Blob === \"function\" &&\n\t\ttypeof btoa === \"function\"\n\t) {\n\t\tstyle = createLinkElement(options);\n\t\tupdate = updateLink.bind(null, style, options);\n\t\tremove = function () {\n\t\t\tremoveStyleElement(style);\n\n\t\t\tif(style.href) URL.revokeObjectURL(style.href);\n\t\t};\n\t} else {\n\t\tstyle = createStyleElement(options);\n\t\tupdate = applyToTag.bind(null, style);\n\t\tremove = function () {\n\t\t\tremoveStyleElement(style);\n\t\t};\n\t}\n\n\tupdate(obj);\n\n\treturn function updateStyle (newObj) {\n\t\tif (newObj) {\n\t\t\tif (\n\t\t\t\tnewObj.css === obj.css &&\n\t\t\t\tnewObj.media === obj.media &&\n\t\t\t\tnewObj.sourceMap === obj.sourceMap\n\t\t\t) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tupdate(obj = newObj);\n\t\t} else {\n\t\t\tremove();\n\t\t}\n\t};\n}\n\nvar replaceText = (function () {\n\tvar textStore = [];\n\n\treturn function (index, replacement) {\n\t\ttextStore[index] = replacement;\n\n\t\treturn textStore.filter(Boolean).join('\\n');\n\t};\n})();\n\nfunction applyToSingletonTag (style, index, remove, obj) {\n\tvar css = remove ? \"\" : obj.css;\n\n\tif (style.styleSheet) {\n\t\tstyle.styleSheet.cssText = replaceText(index, css);\n\t} else {\n\t\tvar cssNode = document.createTextNode(css);\n\t\tvar childNodes = style.childNodes;\n\n\t\tif (childNodes[index]) style.removeChild(childNodes[index]);\n\n\t\tif (childNodes.length) {\n\t\t\tstyle.insertBefore(cssNode, childNodes[index]);\n\t\t} else {\n\t\t\tstyle.appendChild(cssNode);\n\t\t}\n\t}\n}\n\nfunction applyToTag (style, obj) {\n\tvar css = obj.css;\n\tvar media = obj.media;\n\n\tif(media) {\n\t\tstyle.setAttribute(\"media\", media)\n\t}\n\n\tif(style.styleSheet) {\n\t\tstyle.styleSheet.cssText = css;\n\t} else {\n\t\twhile(style.firstChild) {\n\t\t\tstyle.removeChild(style.firstChild);\n\t\t}\n\n\t\tstyle.appendChild(document.createTextNode(css));\n\t}\n}\n\nfunction updateLink (link, options, obj) {\n\tvar css = obj.css;\n\tvar sourceMap = obj.sourceMap;\n\n\t/*\n\t\tIf convertToAbsoluteUrls isn't defined, but sourcemaps are enabled\n\t\tand there is no publicPath defined then lets turn convertToAbsoluteUrls\n\t\ton by default. Otherwise default to the convertToAbsoluteUrls option\n\t\tdirectly\n\t*/\n\tvar autoFixUrls = options.convertToAbsoluteUrls === undefined && sourceMap;\n\n\tif (options.convertToAbsoluteUrls || autoFixUrls) {\n\t\tcss = fixUrls(css);\n\t}\n\n\tif (sourceMap) {\n\t\t// http://stackoverflow.com/a/26603875\n\t\tcss += \"\\n/*# sourceMappingURL=data:application/json;base64,\" + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + \" */\";\n\t}\n\n\tvar blob = new Blob([css], { type: \"text/css\" });\n\n\tvar oldSrc = link.href;\n\n\tlink.href = URL.createObjectURL(blob);\n\n\tif(oldSrc) URL.revokeObjectURL(oldSrc);\n}\n","\n/**\n * When source maps are enabled, `style-loader` uses a link element with a data-uri to\n * embed the css on the page. This breaks all relative urls because now they are relative to a\n * bundle instead of the current page.\n *\n * One solution is to only use full urls, but that may be impossible.\n *\n * Instead, this function \"fixes\" the relative urls to be absolute according to the current page location.\n *\n * A rudimentary test suite is located at `test/fixUrls.js` and can be run via the `npm test` command.\n *\n */\n\nmodule.exports = function (css) {\n // get current location\n var location = typeof window !== \"undefined\" && window.location;\n\n if (!location) {\n throw new Error(\"fixUrls requires window.location\");\n }\n\n\t// blank or null?\n\tif (!css || typeof css !== \"string\") {\n\t return css;\n }\n\n var baseUrl = location.protocol + \"//\" + location.host;\n var currentDir = baseUrl + location.pathname.replace(/\\/[^\\/]*$/, \"/\");\n\n\t// convert each url(...)\n\t/*\n\tThis regular expression is just a way to recursively match brackets within\n\ta string.\n\n\t /url\\s*\\( = Match on the word \"url\" with any whitespace after it and then a parens\n\t ( = Start a capturing group\n\t (?: = Start a non-capturing group\n\t [^)(] = Match anything that isn't a parentheses\n\t | = OR\n\t \\( = Match a start parentheses\n\t (?: = Start another non-capturing groups\n\t [^)(]+ = Match anything that isn't a parentheses\n\t | = OR\n\t \\( = Match a start parentheses\n\t [^)(]* = Match anything that isn't a parentheses\n\t \\) = Match a end parentheses\n\t ) = End Group\n *\\) = Match anything and then a close parens\n ) = Close non-capturing group\n * = Match anything\n ) = Close capturing group\n\t \\) = Match a close parens\n\n\t /gi = Get all matches, not the first. Be case insensitive.\n\t */\n\tvar fixedCss = css.replace(/url\\s*\\(((?:[^)(]|\\((?:[^)(]+|\\([^)(]*\\))*\\))*)\\)/gi, function(fullMatch, origUrl) {\n\t\t// strip quotes (if they exist)\n\t\tvar unquotedOrigUrl = origUrl\n\t\t\t.trim()\n\t\t\t.replace(/^\"(.*)\"$/, function(o, $1){ return $1; })\n\t\t\t.replace(/^'(.*)'$/, function(o, $1){ return $1; });\n\n\t\t// already a full url? no change\n\t\tif (/^(#|data:|http:\\/\\/|https:\\/\\/|file:\\/\\/\\/|\\s*$)/i.test(unquotedOrigUrl)) {\n\t\t return fullMatch;\n\t\t}\n\n\t\t// convert the url to a full url\n\t\tvar newUrl;\n\n\t\tif (unquotedOrigUrl.indexOf(\"//\") === 0) {\n\t\t \t//TODO: should we add protocol?\n\t\t\tnewUrl = unquotedOrigUrl;\n\t\t} else if (unquotedOrigUrl.indexOf(\"/\") === 0) {\n\t\t\t// path should be relative to the base url\n\t\t\tnewUrl = baseUrl + unquotedOrigUrl; // already starts with '/'\n\t\t} else {\n\t\t\t// path should be relative to current directory\n\t\t\tnewUrl = currentDir + unquotedOrigUrl.replace(/^\\.\\//, \"\"); // Strip leading './'\n\t\t}\n\n\t\t// send back the fixed url(...)\n\t\treturn \"url(\" + JSON.stringify(newUrl) + \")\";\n\t});\n\n\t// send back the fixed css\n\treturn fixedCss;\n};\n","/* globals __webpack_amd_options__ */\nmodule.exports = __webpack_amd_options__;\n","module.exports = function(module) {\n\tif (!module.webpackPolyfill) {\n\t\tmodule.deprecate = function() {};\n\t\tmodule.paths = [];\n\t\t// module.parent = undefined by default\n\t\tif (!module.children) module.children = [];\n\t\tObject.defineProperty(module, \"loaded\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.l;\n\t\t\t}\n\t\t});\n\t\tObject.defineProperty(module, \"id\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.i;\n\t\t\t}\n\t\t});\n\t\tmodule.webpackPolyfill = 1;\n\t}\n\treturn module;\n};\n"],"sourceRoot":""}
|
|
blocks/easy-forms-block/easy-forms-block.scss
DELETED
@@ -1,11 +0,0 @@
|
|
1 |
-
.wp-block-yikes-inc-easy-forms-easy-forms-block {
|
2 |
-
|
3 |
-
textarea.yikes-mailchimp-submit-button-span-text {
|
4 |
-
background: none;
|
5 |
-
text-align: center;
|
6 |
-
}
|
7 |
-
|
8 |
-
select {
|
9 |
-
height: auto;
|
10 |
-
}
|
11 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
blocks/index.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
import './easy-forms-block/dev-easy-forms-block.js';
|
|
composer.json
DELETED
@@ -1,32 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"name": "yikesinc/yikes-inc-easy-mailchimp-extender",
|
3 |
-
"description": "Powerful Mailchimp plugin for WordPress created by Yikes Inc.",
|
4 |
-
"keywords": ["mailchimp", "plugin", "WordPress", "mailing", "list"],
|
5 |
-
"homepage": "http://packagist.org/",
|
6 |
-
"type": "wordpress-plugin",
|
7 |
-
"license": "GPL-2.0+",
|
8 |
-
"authors": [
|
9 |
-
{
|
10 |
-
"name": "Yikes Inc.",
|
11 |
-
"email": "info@yikesinc.com",
|
12 |
-
"homepage": "http://www.yikesinc.com"
|
13 |
-
},
|
14 |
-
{
|
15 |
-
"name": "Evan Herman",
|
16 |
-
"email": "Evan@yikesinc.com",
|
17 |
-
"homepage": "http://www.yikesinc.com"
|
18 |
-
}
|
19 |
-
],
|
20 |
-
"support": {
|
21 |
-
"email": "support@yikesinc.com"
|
22 |
-
},
|
23 |
-
"require": {
|
24 |
-
"php": ">=5.3"
|
25 |
-
},
|
26 |
-
"require-dev": {
|
27 |
-
"phpunit/phpunit": "4.5.*",
|
28 |
-
"wp-coding-standards/wpcs": "dev-master",
|
29 |
-
"codeclimate/php-test-reporter": "dev-master",
|
30 |
-
"symfony/class-loader": "^3.1"
|
31 |
-
}
|
32 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
composer.lock
DELETED
@@ -1,2060 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"_readme": [
|
3 |
-
"This file locks the dependencies of your project to a known state",
|
4 |
-
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
|
5 |
-
"This file is @generated automatically"
|
6 |
-
],
|
7 |
-
"hash": "b403dd73550a46e902a33fe4316b0111",
|
8 |
-
"content-hash": "3a00ecdecab7f4fa511e253fc804e061",
|
9 |
-
"packages": [],
|
10 |
-
"packages-dev": [
|
11 |
-
{
|
12 |
-
"name": "codeclimate/php-test-reporter",
|
13 |
-
"version": "dev-master",
|
14 |
-
"source": {
|
15 |
-
"type": "git",
|
16 |
-
"url": "https://github.com/codeclimate/php-test-reporter.git",
|
17 |
-
"reference": "0186c8eb03c677b64b9d23dc0cb5c9475553c7c5"
|
18 |
-
},
|
19 |
-
"dist": {
|
20 |
-
"type": "zip",
|
21 |
-
"url": "https://api.github.com/repos/codeclimate/php-test-reporter/zipball/0186c8eb03c677b64b9d23dc0cb5c9475553c7c5",
|
22 |
-
"reference": "0186c8eb03c677b64b9d23dc0cb5c9475553c7c5",
|
23 |
-
"shasum": ""
|
24 |
-
},
|
25 |
-
"require": {
|
26 |
-
"ext-curl": "*",
|
27 |
-
"padraic/phar-updater": "^1.0",
|
28 |
-
"php": ">=5.3",
|
29 |
-
"psr/log": "^1.0",
|
30 |
-
"satooshi/php-coveralls": "^1.0",
|
31 |
-
"symfony/console": "^2.0|^3.0"
|
32 |
-
},
|
33 |
-
"require-dev": {
|
34 |
-
"ext-xdebug": "*",
|
35 |
-
"phpunit/phpunit": "3.7.*@stable",
|
36 |
-
"tm/tooly-composer-script": "^1.0"
|
37 |
-
},
|
38 |
-
"bin": [
|
39 |
-
"composer/bin/test-reporter"
|
40 |
-
],
|
41 |
-
"type": "library",
|
42 |
-
"extra": {
|
43 |
-
"branch-alias": {
|
44 |
-
"dev-master": "0.3.x-dev"
|
45 |
-
},
|
46 |
-
"tools": {
|
47 |
-
"box": {
|
48 |
-
"url": "https://github.com/box-project/box2/releases/download/2.7.2/box-2.7.2.phar",
|
49 |
-
"only-dev": true
|
50 |
-
}
|
51 |
-
}
|
52 |
-
},
|
53 |
-
"autoload": {
|
54 |
-
"psr-4": {
|
55 |
-
"CodeClimate\\PhpTestReporter\\": "src/"
|
56 |
-
}
|
57 |
-
},
|
58 |
-
"notification-url": "https://packagist.org/downloads/",
|
59 |
-
"license": [
|
60 |
-
"MIT"
|
61 |
-
],
|
62 |
-
"authors": [
|
63 |
-
{
|
64 |
-
"name": "Code Climate",
|
65 |
-
"email": "hello@codeclimate.com",
|
66 |
-
"homepage": "https://codeclimate.com"
|
67 |
-
}
|
68 |
-
],
|
69 |
-
"description": "PHP client for reporting test coverage to Code Climate",
|
70 |
-
"homepage": "https://github.com/codeclimate/php-test-reporter",
|
71 |
-
"keywords": [
|
72 |
-
"codeclimate",
|
73 |
-
"coverage"
|
74 |
-
],
|
75 |
-
"time": "2016-09-22 16:57:58"
|
76 |
-
},
|
77 |
-
{
|
78 |
-
"name": "doctrine/instantiator",
|
79 |
-
"version": "1.0.5",
|
80 |
-
"source": {
|
81 |
-
"type": "git",
|
82 |
-
"url": "https://github.com/doctrine/instantiator.git",
|
83 |
-
"reference": "8e884e78f9f0eb1329e445619e04456e64d8051d"
|
84 |
-
},
|
85 |
-
"dist": {
|
86 |
-
"type": "zip",
|
87 |
-
"url": "https://api.github.com/repos/doctrine/instantiator/zipball/8e884e78f9f0eb1329e445619e04456e64d8051d",
|
88 |
-
"reference": "8e884e78f9f0eb1329e445619e04456e64d8051d",
|
89 |
-
"shasum": ""
|
90 |
-
},
|
91 |
-
"require": {
|
92 |
-
"php": ">=5.3,<8.0-DEV"
|
93 |
-
},
|
94 |
-
"require-dev": {
|
95 |
-
"athletic/athletic": "~0.1.8",
|
96 |
-
"ext-pdo": "*",
|
97 |
-
"ext-phar": "*",
|
98 |
-
"phpunit/phpunit": "~4.0",
|
99 |
-
"squizlabs/php_codesniffer": "~2.0"
|
100 |
-
},
|
101 |
-
"type": "library",
|
102 |
-
"extra": {
|
103 |
-
"branch-alias": {
|
104 |
-
"dev-master": "1.0.x-dev"
|
105 |
-
}
|
106 |
-
},
|
107 |
-
"autoload": {
|
108 |
-
"psr-4": {
|
109 |
-
"Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/"
|
110 |
-
}
|
111 |
-
},
|
112 |
-
"notification-url": "https://packagist.org/downloads/",
|
113 |
-
"license": [
|
114 |
-
"MIT"
|
115 |
-
],
|
116 |
-
"authors": [
|
117 |
-
{
|
118 |
-
"name": "Marco Pivetta",
|
119 |
-
"email": "ocramius@gmail.com",
|
120 |
-
"homepage": "http://ocramius.github.com/"
|
121 |
-
}
|
122 |
-
],
|
123 |
-
"description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors",
|
124 |
-
"homepage": "https://github.com/doctrine/instantiator",
|
125 |
-
"keywords": [
|
126 |
-
"constructor",
|
127 |
-
"instantiate"
|
128 |
-
],
|
129 |
-
"time": "2015-06-14 21:17:01"
|
130 |
-
},
|
131 |
-
{
|
132 |
-
"name": "guzzle/guzzle",
|
133 |
-
"version": "v3.9.3",
|
134 |
-
"source": {
|
135 |
-
"type": "git",
|
136 |
-
"url": "https://github.com/guzzle/guzzle3.git",
|
137 |
-
"reference": "0645b70d953bc1c067bbc8d5bc53194706b628d9"
|
138 |
-
},
|
139 |
-
"dist": {
|
140 |
-
"type": "zip",
|
141 |
-
"url": "https://api.github.com/repos/guzzle/guzzle3/zipball/0645b70d953bc1c067bbc8d5bc53194706b628d9",
|
142 |
-
"reference": "0645b70d953bc1c067bbc8d5bc53194706b628d9",
|
143 |
-
"shasum": ""
|
144 |
-
},
|
145 |
-
"require": {
|
146 |
-
"ext-curl": "*",
|
147 |
-
"php": ">=5.3.3",
|
148 |
-
"symfony/event-dispatcher": "~2.1"
|
149 |
-
},
|
150 |
-
"replace": {
|
151 |
-
"guzzle/batch": "self.version",
|
152 |
-
"guzzle/cache": "self.version",
|
153 |
-
"guzzle/common": "self.version",
|
154 |
-
"guzzle/http": "self.version",
|
155 |
-
"guzzle/inflection": "self.version",
|
156 |
-
"guzzle/iterator": "self.version",
|
157 |
-
"guzzle/log": "self.version",
|
158 |
-
"guzzle/parser": "self.version",
|
159 |
-
"guzzle/plugin": "self.version",
|
160 |
-
"guzzle/plugin-async": "self.version",
|
161 |
-
"guzzle/plugin-backoff": "self.version",
|
162 |
-
"guzzle/plugin-cache": "self.version",
|
163 |
-
"guzzle/plugin-cookie": "self.version",
|
164 |
-
"guzzle/plugin-curlauth": "self.version",
|
165 |
-
"guzzle/plugin-error-response": "self.version",
|
166 |
-
"guzzle/plugin-history": "self.version",
|
167 |
-
"guzzle/plugin-log": "self.version",
|
168 |
-
"guzzle/plugin-md5": "self.version",
|
169 |
-
"guzzle/plugin-mock": "self.version",
|
170 |
-
"guzzle/plugin-oauth": "self.version",
|
171 |
-
"guzzle/service": "self.version",
|
172 |
-
"guzzle/stream": "self.version"
|
173 |
-
},
|
174 |
-
"require-dev": {
|
175 |
-
"doctrine/cache": "~1.3",
|
176 |
-
"monolog/monolog": "~1.0",
|
177 |
-
"phpunit/phpunit": "3.7.*",
|
178 |
-
"psr/log": "~1.0",
|
179 |
-
"symfony/class-loader": "~2.1",
|
180 |
-
"zendframework/zend-cache": "2.*,<2.3",
|
181 |
-
"zendframework/zend-log": "2.*,<2.3"
|
182 |
-
},
|
183 |
-
"suggest": {
|
184 |
-
"guzzlehttp/guzzle": "Guzzle 5 has moved to a new package name. The package you have installed, Guzzle 3, is deprecated."
|
185 |
-
},
|
186 |
-
"type": "library",
|
187 |
-
"extra": {
|
188 |
-
"branch-alias": {
|
189 |
-
"dev-master": "3.9-dev"
|
190 |
-
}
|
191 |
-
},
|
192 |
-
"autoload": {
|
193 |
-
"psr-0": {
|
194 |
-
"Guzzle": "src/",
|
195 |
-
"Guzzle\\Tests": "tests/"
|
196 |
-
}
|
197 |
-
},
|
198 |
-
"notification-url": "https://packagist.org/downloads/",
|
199 |
-
"license": [
|
200 |
-
"MIT"
|
201 |
-
],
|
202 |
-
"authors": [
|
203 |
-
{
|
204 |
-
"name": "Michael Dowling",
|
205 |
-
"email": "mtdowling@gmail.com",
|
206 |
-
"homepage": "https://github.com/mtdowling"
|
207 |
-
},
|
208 |
-
{
|
209 |
-
"name": "Guzzle Community",
|
210 |
-
"homepage": "https://github.com/guzzle/guzzle/contributors"
|
211 |
-
}
|
212 |
-
],
|
213 |
-
"description": "PHP HTTP client. This library is deprecated in favor of https://packagist.org/packages/guzzlehttp/guzzle",
|
214 |
-
"homepage": "http://guzzlephp.org/",
|
215 |
-
"keywords": [
|
216 |
-
"client",
|
217 |
-
"curl",
|
218 |
-
"framework",
|
219 |
-
"http",
|
220 |
-
"http client",
|
221 |
-
"rest",
|
222 |
-
"web service"
|
223 |
-
],
|
224 |
-
"abandoned": "guzzlehttp/guzzle",
|
225 |
-
"time": "2015-03-18 18:23:50"
|
226 |
-
},
|
227 |
-
{
|
228 |
-
"name": "padraic/humbug_get_contents",
|
229 |
-
"version": "1.0.4",
|
230 |
-
"source": {
|
231 |
-
"type": "git",
|
232 |
-
"url": "https://github.com/padraic/file_get_contents.git",
|
233 |
-
"reference": "66797199019d0cb4529cb8d29c6f0b4c5085b53a"
|
234 |
-
},
|
235 |
-
"dist": {
|
236 |
-
"type": "zip",
|
237 |
-
"url": "https://api.github.com/repos/padraic/file_get_contents/zipball/66797199019d0cb4529cb8d29c6f0b4c5085b53a",
|
238 |
-
"reference": "66797199019d0cb4529cb8d29c6f0b4c5085b53a",
|
239 |
-
"shasum": ""
|
240 |
-
},
|
241 |
-
"require": {
|
242 |
-
"php": ">=5.3"
|
243 |
-
},
|
244 |
-
"require-dev": {
|
245 |
-
"phpunit/phpunit": "~4.0"
|
246 |
-
},
|
247 |
-
"type": "library",
|
248 |
-
"extra": {
|
249 |
-
"branch-alias": {
|
250 |
-
"dev-master": "1.0-dev"
|
251 |
-
}
|
252 |
-
},
|
253 |
-
"autoload": {
|
254 |
-
"psr-4": {
|
255 |
-
"Humbug\\": "src/Humbug/"
|
256 |
-
},
|
257 |
-
"files": [
|
258 |
-
"src/function.php"
|
259 |
-
]
|
260 |
-
},
|
261 |
-
"notification-url": "https://packagist.org/downloads/",
|
262 |
-
"license": [
|
263 |
-
"BSD-3-Clause"
|
264 |
-
],
|
265 |
-
"authors": [
|
266 |
-
{
|
267 |
-
"name": "Pádraic Brady",
|
268 |
-
"email": "padraic.brady@gmail.com",
|
269 |
-
"homepage": "http://blog.astrumfutura.com"
|
270 |
-
}
|
271 |
-
],
|
272 |
-
"description": "Secure wrapper for accessing HTTPS resources with file_get_contents for PHP 5.3+",
|
273 |
-
"homepage": "https://github.com/padraic/file_get_contents",
|
274 |
-
"keywords": [
|
275 |
-
"download",
|
276 |
-
"file_get_contents",
|
277 |
-
"http",
|
278 |
-
"https",
|
279 |
-
"ssl",
|
280 |
-
"tls"
|
281 |
-
],
|
282 |
-
"time": "2015-04-22 18:45:00"
|
283 |
-
},
|
284 |
-
{
|
285 |
-
"name": "padraic/phar-updater",
|
286 |
-
"version": "1.0.3",
|
287 |
-
"source": {
|
288 |
-
"type": "git",
|
289 |
-
"url": "https://github.com/padraic/phar-updater.git",
|
290 |
-
"reference": "c17eeb3887dc4269d1b4837dc875d39e9f8149a8"
|
291 |
-
},
|
292 |
-
"dist": {
|
293 |
-
"type": "zip",
|
294 |
-
"url": "https://api.github.com/repos/padraic/phar-updater/zipball/c17eeb3887dc4269d1b4837dc875d39e9f8149a8",
|
295 |
-
"reference": "c17eeb3887dc4269d1b4837dc875d39e9f8149a8",
|
296 |
-
"shasum": ""
|
297 |
-
},
|
298 |
-
"require": {
|
299 |
-
"padraic/humbug_get_contents": "^1.0",
|
300 |
-
"php": ">=5.3.3"
|
301 |
-
},
|
302 |
-
"require-dev": {
|
303 |
-
"phpunit/phpunit": "~4.0"
|
304 |
-
},
|
305 |
-
"type": "library",
|
306 |
-
"extra": {
|
307 |
-
"branch-alias": {
|
308 |
-
"dev-master": "1.0-dev"
|
309 |
-
}
|
310 |
-
},
|
311 |
-
"autoload": {
|
312 |
-
"psr-4": {
|
313 |
-
"Humbug\\SelfUpdate\\": "src/"
|
314 |
-
}
|
315 |
-
},
|
316 |
-
"notification-url": "https://packagist.org/downloads/",
|
317 |
-
"license": [
|
318 |
-
"BSD-3-Clause"
|
319 |
-
],
|
320 |
-
"authors": [
|
321 |
-
{
|
322 |
-
"name": "Pádraic Brady",
|
323 |
-
"email": "padraic.brady@gmail.com",
|
324 |
-
"homepage": "http://blog.astrumfutura.com"
|
325 |
-
}
|
326 |
-
],
|
327 |
-
"description": "A thing to make PHAR self-updating easy and secure.",
|
328 |
-
"keywords": [
|
329 |
-
"humbug",
|
330 |
-
"phar",
|
331 |
-
"self-update",
|
332 |
-
"update"
|
333 |
-
],
|
334 |
-
"time": "2016-01-05 23:08:01"
|
335 |
-
},
|
336 |
-
{
|
337 |
-
"name": "phpdocumentor/reflection-common",
|
338 |
-
"version": "1.0",
|
339 |
-
"source": {
|
340 |
-
"type": "git",
|
341 |
-
"url": "https://github.com/phpDocumentor/ReflectionCommon.git",
|
342 |
-
"reference": "144c307535e82c8fdcaacbcfc1d6d8eeb896687c"
|
343 |
-
},
|
344 |
-
"dist": {
|
345 |
-
"type": "zip",
|
346 |
-
"url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/144c307535e82c8fdcaacbcfc1d6d8eeb896687c",
|
347 |
-
"reference": "144c307535e82c8fdcaacbcfc1d6d8eeb896687c",
|
348 |
-
"shasum": ""
|
349 |
-
},
|
350 |
-
"require": {
|
351 |
-
"php": ">=5.5"
|
352 |
-
},
|
353 |
-
"require-dev": {
|
354 |
-
"phpunit/phpunit": "^4.6"
|
355 |
-
},
|
356 |
-
"type": "library",
|
357 |
-
"extra": {
|
358 |
-
"branch-alias": {
|
359 |
-
"dev-master": "1.0.x-dev"
|
360 |
-
}
|
361 |
-
},
|
362 |
-
"autoload": {
|
363 |
-
"psr-4": {
|
364 |
-
"phpDocumentor\\Reflection\\": [
|
365 |
-
"src"
|
366 |
-
]
|
367 |
-
}
|
368 |
-
},
|
369 |
-
"notification-url": "https://packagist.org/downloads/",
|
370 |
-
"license": [
|
371 |
-
"MIT"
|
372 |
-
],
|
373 |
-
"authors": [
|
374 |
-
{
|
375 |
-
"name": "Jaap van Otterdijk",
|
376 |
-
"email": "opensource@ijaap.nl"
|
377 |
-
}
|
378 |
-
],
|
379 |
-
"description": "Common reflection classes used by phpdocumentor to reflect the code structure",
|
380 |
-
"homepage": "http://www.phpdoc.org",
|
381 |
-
"keywords": [
|
382 |
-
"FQSEN",
|
383 |
-
"phpDocumentor",
|
384 |
-
"phpdoc",
|
385 |
-
"reflection",
|
386 |
-
"static analysis"
|
387 |
-
],
|
388 |
-
"time": "2015-12-27 11:43:31"
|
389 |
-
},
|
390 |
-
{
|
391 |
-
"name": "phpdocumentor/reflection-docblock",
|
392 |
-
"version": "3.1.1",
|
393 |
-
"source": {
|
394 |
-
"type": "git",
|
395 |
-
"url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
|
396 |
-
"reference": "8331b5efe816ae05461b7ca1e721c01b46bafb3e"
|
397 |
-
},
|
398 |
-
"dist": {
|
399 |
-
"type": "zip",
|
400 |
-
"url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/8331b5efe816ae05461b7ca1e721c01b46bafb3e",
|
401 |
-
"reference": "8331b5efe816ae05461b7ca1e721c01b46bafb3e",
|
402 |
-
"shasum": ""
|
403 |
-
},
|
404 |
-
"require": {
|
405 |
-
"php": ">=5.5",
|
406 |
-
"phpdocumentor/reflection-common": "^1.0@dev",
|
407 |
-
"phpdocumentor/type-resolver": "^0.2.0",
|
408 |
-
"webmozart/assert": "^1.0"
|
409 |
-
},
|
410 |
-
"require-dev": {
|
411 |
-
"mockery/mockery": "^0.9.4",
|
412 |
-
"phpunit/phpunit": "^4.4"
|
413 |
-
},
|
414 |
-
"type": "library",
|
415 |
-
"autoload": {
|
416 |
-
"psr-4": {
|
417 |
-
"phpDocumentor\\Reflection\\": [
|
418 |
-
"src/"
|
419 |
-
]
|
420 |
-
}
|
421 |
-
},
|
422 |
-
"notification-url": "https://packagist.org/downloads/",
|
423 |
-
"license": [
|
424 |
-
"MIT"
|
425 |
-
],
|
426 |
-
"authors": [
|
427 |
-
{
|
428 |
-
"name": "Mike van Riel",
|
429 |
-
"email": "me@mikevanriel.com"
|
430 |
-
}
|
431 |
-
],
|
432 |
-
"description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.",
|
433 |
-
"time": "2016-09-30 07:12:33"
|
434 |
-
},
|
435 |
-
{
|
436 |
-
"name": "phpdocumentor/type-resolver",
|
437 |
-
"version": "0.2",
|
438 |
-
"source": {
|
439 |
-
"type": "git",
|
440 |
-
"url": "https://github.com/phpDocumentor/TypeResolver.git",
|
441 |
-
"reference": "b39c7a5b194f9ed7bd0dd345c751007a41862443"
|
442 |
-
},
|
443 |
-
"dist": {
|
444 |
-
"type": "zip",
|
445 |
-
"url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/b39c7a5b194f9ed7bd0dd345c751007a41862443",
|
446 |
-
"reference": "b39c7a5b194f9ed7bd0dd345c751007a41862443",
|
447 |
-
"shasum": ""
|
448 |
-
},
|
449 |
-
"require": {
|
450 |
-
"php": ">=5.5",
|
451 |
-
"phpdocumentor/reflection-common": "^1.0"
|
452 |
-
},
|
453 |
-
"require-dev": {
|
454 |
-
"mockery/mockery": "^0.9.4",
|
455 |
-
"phpunit/phpunit": "^5.2||^4.8.24"
|
456 |
-
},
|
457 |
-
"type": "library",
|
458 |
-
"extra": {
|
459 |
-
"branch-alias": {
|
460 |
-
"dev-master": "1.0.x-dev"
|
461 |
-
}
|
462 |
-
},
|
463 |
-
"autoload": {
|
464 |
-
"psr-4": {
|
465 |
-
"phpDocumentor\\Reflection\\": [
|
466 |
-
"src/"
|
467 |
-
]
|
468 |
-
}
|
469 |
-
},
|
470 |
-
"notification-url": "https://packagist.org/downloads/",
|
471 |
-
"license": [
|
472 |
-
"MIT"
|
473 |
-
],
|
474 |
-
"authors": [
|
475 |
-
{
|
476 |
-
"name": "Mike van Riel",
|
477 |
-
"email": "me@mikevanriel.com"
|
478 |
-
}
|
479 |
-
],
|
480 |
-
"time": "2016-06-10 07:14:17"
|
481 |
-
},
|
482 |
-
{
|
483 |
-
"name": "phpspec/prophecy",
|
484 |
-
"version": "v1.6.1",
|
485 |
-
"source": {
|
486 |
-
"type": "git",
|
487 |
-
"url": "https://github.com/phpspec/prophecy.git",
|
488 |
-
"reference": "58a8137754bc24b25740d4281399a4a3596058e0"
|
489 |
-
},
|
490 |
-
"dist": {
|
491 |
-
"type": "zip",
|
492 |
-
"url": "https://api.github.com/repos/phpspec/prophecy/zipball/58a8137754bc24b25740d4281399a4a3596058e0",
|
493 |
-
"reference": "58a8137754bc24b25740d4281399a4a3596058e0",
|
494 |
-
"shasum": ""
|
495 |
-
},
|
496 |
-
"require": {
|
497 |
-
"doctrine/instantiator": "^1.0.2",
|
498 |
-
"php": "^5.3|^7.0",
|
499 |
-
"phpdocumentor/reflection-docblock": "^2.0|^3.0.2",
|
500 |
-
"sebastian/comparator": "^1.1",
|
501 |
-
"sebastian/recursion-context": "^1.0"
|
502 |
-
},
|
503 |
-
"require-dev": {
|
504 |
-
"phpspec/phpspec": "^2.0"
|
505 |
-
},
|
506 |
-
"type": "library",
|
507 |
-
"extra": {
|
508 |
-
"branch-alias": {
|
509 |
-
"dev-master": "1.6.x-dev"
|
510 |
-
}
|
511 |
-
},
|
512 |
-
"autoload": {
|
513 |
-
"psr-0": {
|
514 |
-
"Prophecy\\": "src/"
|
515 |
-
}
|
516 |
-
},
|
517 |
-
"notification-url": "https://packagist.org/downloads/",
|
518 |
-
"license": [
|
519 |
-
"MIT"
|
520 |
-
],
|
521 |
-
"authors": [
|
522 |
-
{
|
523 |
-
"name": "Konstantin Kudryashov",
|
524 |
-
"email": "ever.zet@gmail.com",
|
525 |
-
"homepage": "http://everzet.com"
|
526 |
-
},
|
527 |
-
{
|
528 |
-
"name": "Marcello Duarte",
|
529 |
-
"email": "marcello.duarte@gmail.com"
|
530 |
-
}
|
531 |
-
],
|
532 |
-
"description": "Highly opinionated mocking framework for PHP 5.3+",
|
533 |
-
"homepage": "https://github.com/phpspec/prophecy",
|
534 |
-
"keywords": [
|
535 |
-
"Double",
|
536 |
-
"Dummy",
|
537 |
-
"fake",
|
538 |
-
"mock",
|
539 |
-
"spy",
|
540 |
-
"stub"
|
541 |
-
],
|
542 |
-
"time": "2016-06-07 08:13:47"
|
543 |
-
},
|
544 |
-
{
|
545 |
-
"name": "phpunit/php-code-coverage",
|
546 |
-
"version": "2.2.4",
|
547 |
-
"source": {
|
548 |
-
"type": "git",
|
549 |
-
"url": "https://github.com/sebastianbergmann/php-code-coverage.git",
|
550 |
-
"reference": "eabf68b476ac7d0f73793aada060f1c1a9bf8979"
|
551 |
-
},
|
552 |
-
"dist": {
|
553 |
-
"type": "zip",
|
554 |
-
"url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/eabf68b476ac7d0f73793aada060f1c1a9bf8979",
|
555 |
-
"reference": "eabf68b476ac7d0f73793aada060f1c1a9bf8979",
|
556 |
-
"shasum": ""
|
557 |
-
},
|
558 |
-
"require": {
|
559 |
-
"php": ">=5.3.3",
|
560 |
-
"phpunit/php-file-iterator": "~1.3",
|
561 |
-
"phpunit/php-text-template": "~1.2",
|
562 |
-
"phpunit/php-token-stream": "~1.3",
|
563 |
-
"sebastian/environment": "^1.3.2",
|
564 |
-
"sebastian/version": "~1.0"
|
565 |
-
},
|
566 |
-
"require-dev": {
|
567 |
-
"ext-xdebug": ">=2.1.4",
|
568 |
-
"phpunit/phpunit": "~4"
|
569 |
-
},
|
570 |
-
"suggest": {
|
571 |
-
"ext-dom": "*",
|
572 |
-
"ext-xdebug": ">=2.2.1",
|
573 |
-
"ext-xmlwriter": "*"
|
574 |
-
},
|
575 |
-
"type": "library",
|
576 |
-
"extra": {
|
577 |
-
"branch-alias": {
|
578 |
-
"dev-master": "2.2.x-dev"
|
579 |
-
}
|
580 |
-
},
|
581 |
-
"autoload": {
|
582 |
-
"classmap": [
|
583 |
-
"src/"
|
584 |
-
]
|
585 |
-
},
|
586 |
-
"notification-url": "https://packagist.org/downloads/",
|
587 |
-
"license": [
|
588 |
-
"BSD-3-Clause"
|
589 |
-
],
|
590 |
-
"authors": [
|
591 |
-
{
|
592 |
-
"name": "Sebastian Bergmann",
|
593 |
-
"email": "sb@sebastian-bergmann.de",
|
594 |
-
"role": "lead"
|
595 |
-
}
|
596 |
-
],
|
597 |
-
"description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.",
|
598 |
-
"homepage": "https://github.com/sebastianbergmann/php-code-coverage",
|
599 |
-
"keywords": [
|
600 |
-
"coverage",
|
601 |
-
"testing",
|
602 |
-
"xunit"
|
603 |
-
],
|
604 |
-
"time": "2015-10-06 15:47:00"
|
605 |
-
},
|
606 |
-
{
|
607 |
-
"name": "phpunit/php-file-iterator",
|
608 |
-
"version": "1.3.4",
|
609 |
-
"source": {
|
610 |
-
"type": "git",
|
611 |
-
"url": "https://github.com/sebastianbergmann/php-file-iterator.git",
|
612 |
-
"reference": "acd690379117b042d1c8af1fafd61bde001bf6bb"
|
613 |
-
},
|
614 |
-
"dist": {
|
615 |
-
"type": "zip",
|
616 |
-
"url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/acd690379117b042d1c8af1fafd61bde001bf6bb",
|
617 |
-
"reference": "acd690379117b042d1c8af1fafd61bde001bf6bb",
|
618 |
-
"shasum": ""
|
619 |
-
},
|
620 |
-
"require": {
|
621 |
-
"php": ">=5.3.3"
|
622 |
-
},
|
623 |
-
"type": "library",
|
624 |
-
"autoload": {
|
625 |
-
"classmap": [
|
626 |
-
"File/"
|
627 |
-
]
|
628 |
-
},
|
629 |
-
"notification-url": "https://packagist.org/downloads/",
|
630 |
-
"include-path": [
|
631 |
-
""
|
632 |
-
],
|
633 |
-
"license": [
|
634 |
-
"BSD-3-Clause"
|
635 |
-
],
|
636 |
-
"authors": [
|
637 |
-
{
|
638 |
-
"name": "Sebastian Bergmann",
|
639 |
-
"email": "sb@sebastian-bergmann.de",
|
640 |
-
"role": "lead"
|
641 |
-
}
|
642 |
-
],
|
643 |
-
"description": "FilterIterator implementation that filters files based on a list of suffixes.",
|
644 |
-
"homepage": "https://github.com/sebastianbergmann/php-file-iterator/",
|
645 |
-
"keywords": [
|
646 |
-
"filesystem",
|
647 |
-
"iterator"
|
648 |
-
],
|
649 |
-
"time": "2013-10-10 15:34:57"
|
650 |
-
},
|
651 |
-
{
|
652 |
-
"name": "phpunit/php-text-template",
|
653 |
-
"version": "1.2.1",
|
654 |
-
"source": {
|
655 |
-
"type": "git",
|
656 |
-
"url": "https://github.com/sebastianbergmann/php-text-template.git",
|
657 |
-
"reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686"
|
658 |
-
},
|
659 |
-
"dist": {
|
660 |
-
"type": "zip",
|
661 |
-
"url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
|
662 |
-
"reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
|
663 |
-
"shasum": ""
|
664 |
-
},
|
665 |
-
"require": {
|
666 |
-
"php": ">=5.3.3"
|
667 |
-
},
|
668 |
-
"type": "library",
|
669 |
-
"autoload": {
|
670 |
-
"classmap": [
|
671 |
-
"src/"
|
672 |
-
]
|
673 |
-
},
|
674 |
-
"notification-url": "https://packagist.org/downloads/",
|
675 |
-
"license": [
|
676 |
-
"BSD-3-Clause"
|
677 |
-
],
|
678 |
-
"authors": [
|
679 |
-
{
|
680 |
-
"name": "Sebastian Bergmann",
|
681 |
-
"email": "sebastian@phpunit.de",
|
682 |
-
"role": "lead"
|
683 |
-
}
|
684 |
-
],
|
685 |
-
"description": "Simple template engine.",
|
686 |
-
"homepage": "https://github.com/sebastianbergmann/php-text-template/",
|
687 |
-
"keywords": [
|
688 |
-
"template"
|
689 |
-
],
|
690 |
-
"time": "2015-06-21 13:50:34"
|
691 |
-
},
|
692 |
-
{
|
693 |
-
"name": "phpunit/php-timer",
|
694 |
-
"version": "1.0.8",
|
695 |
-
"source": {
|
696 |
-
"type": "git",
|
697 |
-
"url": "https://github.com/sebastianbergmann/php-timer.git",
|
698 |
-
"reference": "38e9124049cf1a164f1e4537caf19c99bf1eb260"
|
699 |
-
},
|
700 |
-
"dist": {
|
701 |
-
"type": "zip",
|
702 |
-
"url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/38e9124049cf1a164f1e4537caf19c99bf1eb260",
|
703 |
-
"reference": "38e9124049cf1a164f1e4537caf19c99bf1eb260",
|
704 |
-
"shasum": ""
|
705 |
-
},
|
706 |
-
"require": {
|
707 |
-
"php": ">=5.3.3"
|
708 |
-
},
|
709 |
-
"require-dev": {
|
710 |
-
"phpunit/phpunit": "~4|~5"
|
711 |
-
},
|
712 |
-
"type": "library",
|
713 |
-
"autoload": {
|
714 |
-
"classmap": [
|
715 |
-
"src/"
|
716 |
-
]
|
717 |
-
},
|
718 |
-
"notification-url": "https://packagist.org/downloads/",
|
719 |
-
"license": [
|
720 |
-
"BSD-3-Clause"
|
721 |
-
],
|
722 |
-
"authors": [
|
723 |
-
{
|
724 |
-
"name": "Sebastian Bergmann",
|
725 |
-
"email": "sb@sebastian-bergmann.de",
|
726 |
-
"role": "lead"
|
727 |
-
}
|
728 |
-
],
|
729 |
-
"description": "Utility class for timing",
|
730 |
-
"homepage": "https://github.com/sebastianbergmann/php-timer/",
|
731 |
-
"keywords": [
|
732 |
-
"timer"
|
733 |
-
],
|
734 |
-
"time": "2016-05-12 18:03:57"
|
735 |
-
},
|
736 |
-
{
|
737 |
-
"name": "phpunit/php-token-stream",
|
738 |
-
"version": "1.4.8",
|
739 |
-
"source": {
|
740 |
-
"type": "git",
|
741 |
-
"url": "https://github.com/sebastianbergmann/php-token-stream.git",
|
742 |
-
"reference": "3144ae21711fb6cac0b1ab4cbe63b75ce3d4e8da"
|
743 |
-
},
|
744 |
-
"dist": {
|
745 |
-
"type": "zip",
|
746 |
-
"url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/3144ae21711fb6cac0b1ab4cbe63b75ce3d4e8da",
|
747 |
-
"reference": "3144ae21711fb6cac0b1ab4cbe63b75ce3d4e8da",
|
748 |
-
"shasum": ""
|
749 |
-
},
|
750 |
-
"require": {
|
751 |
-
"ext-tokenizer": "*",
|
752 |
-
"php": ">=5.3.3"
|
753 |
-
},
|
754 |
-
"require-dev": {
|
755 |
-
"phpunit/phpunit": "~4.2"
|
756 |
-
},
|
757 |
-
"type": "library",
|
758 |
-
"extra": {
|
759 |
-
"branch-alias": {
|
760 |
-
"dev-master": "1.4-dev"
|
761 |
-
}
|
762 |
-
},
|
763 |
-
"autoload": {
|
764 |
-
"classmap": [
|
765 |
-
"src/"
|
766 |
-
]
|
767 |
-
},
|
768 |
-
"notification-url": "https://packagist.org/downloads/",
|
769 |
-
"license": [
|
770 |
-
"BSD-3-Clause"
|
771 |
-
],
|
772 |
-
"authors": [
|
773 |
-
{
|
774 |
-
"name": "Sebastian Bergmann",
|
775 |
-
"email": "sebastian@phpunit.de"
|
776 |
-
}
|
777 |
-
],
|
778 |
-
"description": "Wrapper around PHP's tokenizer extension.",
|
779 |
-
"homepage": "https://github.com/sebastianbergmann/php-token-stream/",
|
780 |
-
"keywords": [
|
781 |
-
"tokenizer"
|
782 |
-
],
|
783 |
-
"time": "2015-09-15 10:49:45"
|
784 |
-
},
|
785 |
-
{
|
786 |
-
"name": "phpunit/phpunit",
|
787 |
-
"version": "4.5.1",
|
788 |
-
"source": {
|
789 |
-
"type": "git",
|
790 |
-
"url": "https://github.com/sebastianbergmann/phpunit.git",
|
791 |
-
"reference": "d6429b0995b24a2d9dfe5587ee3a7071c1161af4"
|
792 |
-
},
|
793 |
-
"dist": {
|
794 |
-
"type": "zip",
|
795 |
-
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/d6429b0995b24a2d9dfe5587ee3a7071c1161af4",
|
796 |
-
"reference": "d6429b0995b24a2d9dfe5587ee3a7071c1161af4",
|
797 |
-
"shasum": ""
|
798 |
-
},
|
799 |
-
"require": {
|
800 |
-
"ext-dom": "*",
|
801 |
-
"ext-json": "*",
|
802 |
-
"ext-pcre": "*",
|
803 |
-
"ext-reflection": "*",
|
804 |
-
"ext-spl": "*",
|
805 |
-
"php": ">=5.3.3",
|
806 |
-
"phpspec/prophecy": "~1.3,>=1.3.1",
|
807 |
-
"phpunit/php-code-coverage": "~2.0,>=2.0.11",
|
808 |
-
"phpunit/php-file-iterator": "~1.3.2",
|
809 |
-
"phpunit/php-text-template": "~1.2",
|
810 |
-
"phpunit/php-timer": "~1.0.2",
|
811 |
-
"phpunit/phpunit-mock-objects": "~2.3",
|
812 |
-
"sebastian/comparator": "~1.1",
|
813 |
-
"sebastian/diff": "~1.1",
|
814 |
-
"sebastian/environment": "~1.2",
|
815 |
-
"sebastian/exporter": "~1.2",
|
816 |
-
"sebastian/global-state": "~1.0",
|
817 |
-
"sebastian/version": "~1.0",
|
818 |
-
"symfony/yaml": "~2.0"
|
819 |
-
},
|
820 |
-
"suggest": {
|
821 |
-
"phpunit/php-invoker": "~1.1"
|
822 |
-
},
|
823 |
-
"bin": [
|
824 |
-
"phpunit"
|
825 |
-
],
|
826 |
-
"type": "library",
|
827 |
-
"extra": {
|
828 |
-
"branch-alias": {
|
829 |
-
"dev-master": "4.5.x-dev"
|
830 |
-
}
|
831 |
-
},
|
832 |
-
"autoload": {
|
833 |
-
"classmap": [
|
834 |
-
"src/"
|
835 |
-
]
|
836 |
-
},
|
837 |
-
"notification-url": "https://packagist.org/downloads/",
|
838 |
-
"license": [
|
839 |
-
"BSD-3-Clause"
|
840 |
-
],
|
841 |
-
"authors": [
|
842 |
-
{
|
843 |
-
"name": "Sebastian Bergmann",
|
844 |
-
"email": "sebastian@phpunit.de",
|
845 |
-
"role": "lead"
|
846 |
-
}
|
847 |
-
],
|
848 |
-
"description": "The PHP Unit Testing framework.",
|
849 |
-
"homepage": "https://phpunit.de/",
|
850 |
-
"keywords": [
|
851 |
-
"phpunit",
|
852 |
-
"testing",
|
853 |
-
"xunit"
|
854 |
-
],
|
855 |
-
"time": "2015-03-29 09:24:05"
|
856 |
-
},
|
857 |
-
{
|
858 |
-
"name": "phpunit/phpunit-mock-objects",
|
859 |
-
"version": "2.3.8",
|
860 |
-
"source": {
|
861 |
-
"type": "git",
|
862 |
-
"url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git",
|
863 |
-
"reference": "ac8e7a3db35738d56ee9a76e78a4e03d97628983"
|
864 |
-
},
|
865 |
-
"dist": {
|
866 |
-
"type": "zip",
|
867 |
-
"url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/ac8e7a3db35738d56ee9a76e78a4e03d97628983",
|
868 |
-
"reference": "ac8e7a3db35738d56ee9a76e78a4e03d97628983",
|
869 |
-
"shasum": ""
|
870 |
-
},
|
871 |
-
"require": {
|
872 |
-
"doctrine/instantiator": "^1.0.2",
|
873 |
-
"php": ">=5.3.3",
|
874 |
-
"phpunit/php-text-template": "~1.2",
|
875 |
-
"sebastian/exporter": "~1.2"
|
876 |
-
},
|
877 |
-
"require-dev": {
|
878 |
-
"phpunit/phpunit": "~4.4"
|
879 |
-
},
|
880 |
-
"suggest": {
|
881 |
-
"ext-soap": "*"
|
882 |
-
},
|
883 |
-
"type": "library",
|
884 |
-
"extra": {
|
885 |
-
"branch-alias": {
|
886 |
-
"dev-master": "2.3.x-dev"
|
887 |
-
}
|
888 |
-
},
|
889 |
-
"autoload": {
|
890 |
-
"classmap": [
|
891 |
-
"src/"
|
892 |
-
]
|
893 |
-
},
|
894 |
-
"notification-url": "https://packagist.org/downloads/",
|
895 |
-
"license": [
|
896 |
-
"BSD-3-Clause"
|
897 |
-
],
|
898 |
-
"authors": [
|
899 |
-
{
|
900 |
-
"name": "Sebastian Bergmann",
|
901 |
-
"email": "sb@sebastian-bergmann.de",
|
902 |
-
"role": "lead"
|
903 |
-
}
|
904 |
-
],
|
905 |
-
"description": "Mock Object library for PHPUnit",
|
906 |
-
"homepage": "https://github.com/sebastianbergmann/phpunit-mock-objects/",
|
907 |
-
"keywords": [
|
908 |
-
"mock",
|
909 |
-
"xunit"
|
910 |
-
],
|
911 |
-
"time": "2015-10-02 06:51:40"
|
912 |
-
},
|
913 |
-
{
|
914 |
-
"name": "psr/log",
|
915 |
-
"version": "1.0.1",
|
916 |
-
"source": {
|
917 |
-
"type": "git",
|
918 |
-
"url": "https://github.com/php-fig/log.git",
|
919 |
-
"reference": "5277094ed527a1c4477177d102fe4c53551953e0"
|
920 |
-
},
|
921 |
-
"dist": {
|
922 |
-
"type": "zip",
|
923 |
-
"url": "https://api.github.com/repos/php-fig/log/zipball/5277094ed527a1c4477177d102fe4c53551953e0",
|
924 |
-
"reference": "5277094ed527a1c4477177d102fe4c53551953e0",
|
925 |
-
"shasum": ""
|
926 |
-
},
|
927 |
-
"require": {
|
928 |
-
"php": ">=5.3.0"
|
929 |
-
},
|
930 |
-
"type": "library",
|
931 |
-
"extra": {
|
932 |
-
"branch-alias": {
|
933 |
-
"dev-master": "1.0.x-dev"
|
934 |
-
}
|
935 |
-
},
|
936 |
-
"autoload": {
|
937 |
-
"psr-4": {
|
938 |
-
"Psr\\Log\\": "Psr/Log/"
|
939 |
-
}
|
940 |
-
},
|
941 |
-
"notification-url": "https://packagist.org/downloads/",
|
942 |
-
"license": [
|
943 |
-
"MIT"
|
944 |
-
],
|
945 |
-
"authors": [
|
946 |
-
{
|
947 |
-
"name": "PHP-FIG",
|
948 |
-
"homepage": "http://www.php-fig.org/"
|
949 |
-
}
|
950 |
-
],
|
951 |
-
"description": "Common interface for logging libraries",
|
952 |
-
"homepage": "https://github.com/php-fig/log",
|
953 |
-
"keywords": [
|
954 |
-
"log",
|
955 |
-
"psr",
|
956 |
-
"psr-3"
|
957 |
-
],
|
958 |
-
"time": "2016-09-19 16:02:08"
|
959 |
-
},
|
960 |
-
{
|
961 |
-
"name": "satooshi/php-coveralls",
|
962 |
-
"version": "v1.0.1",
|
963 |
-
"source": {
|
964 |
-
"type": "git",
|
965 |
-
"url": "https://github.com/satooshi/php-coveralls.git",
|
966 |
-
"reference": "da51d304fe8622bf9a6da39a8446e7afd432115c"
|
967 |
-
},
|
968 |
-
"dist": {
|
969 |
-
"type": "zip",
|
970 |
-
"url": "https://api.github.com/repos/satooshi/php-coveralls/zipball/da51d304fe8622bf9a6da39a8446e7afd432115c",
|
971 |
-
"reference": "da51d304fe8622bf9a6da39a8446e7afd432115c",
|
972 |
-
"shasum": ""
|
973 |
-
},
|
974 |
-
"require": {
|
975 |
-
"ext-json": "*",
|
976 |
-
"ext-simplexml": "*",
|
977 |
-
"guzzle/guzzle": "^2.8|^3.0",
|
978 |
-
"php": ">=5.3.3",
|
979 |
-
"psr/log": "^1.0",
|
980 |
-
"symfony/config": "^2.1|^3.0",
|
981 |
-
"symfony/console": "^2.1|^3.0",
|
982 |
-
"symfony/stopwatch": "^2.0|^3.0",
|
983 |
-
"symfony/yaml": "^2.0|^3.0"
|
984 |
-
},
|
985 |
-
"suggest": {
|
986 |
-
"symfony/http-kernel": "Allows Symfony integration"
|
987 |
-
},
|
988 |
-
"bin": [
|
989 |
-
"bin/coveralls"
|
990 |
-
],
|
991 |
-
"type": "library",
|
992 |
-
"autoload": {
|
993 |
-
"psr-4": {
|
994 |
-
"Satooshi\\": "src/Satooshi/"
|
995 |
-
}
|
996 |
-
},
|
997 |
-
"notification-url": "https://packagist.org/downloads/",
|
998 |
-
"license": [
|
999 |
-
"MIT"
|
1000 |
-
],
|
1001 |
-
"authors": [
|
1002 |
-
{
|
1003 |
-
"name": "Kitamura Satoshi",
|
1004 |
-
"email": "with.no.parachute@gmail.com",
|
1005 |
-
"homepage": "https://www.facebook.com/satooshi.jp"
|
1006 |
-
}
|
1007 |
-
],
|
1008 |
-
"description": "PHP client library for Coveralls API",
|
1009 |
-
"homepage": "https://github.com/satooshi/php-coveralls",
|
1010 |
-
"keywords": [
|
1011 |
-
"ci",
|
1012 |
-
"coverage",
|
1013 |
-
"github",
|
1014 |
-
"test"
|
1015 |
-
],
|
1016 |
-
"time": "2016-01-20 17:35:46"
|
1017 |
-
},
|
1018 |
-
{
|
1019 |
-
"name": "sebastian/comparator",
|
1020 |
-
"version": "1.2.0",
|
1021 |
-
"source": {
|
1022 |
-
"type": "git",
|
1023 |
-
"url": "https://github.com/sebastianbergmann/comparator.git",
|
1024 |
-
"reference": "937efb279bd37a375bcadf584dec0726f84dbf22"
|
1025 |
-
},
|
1026 |
-
"dist": {
|
1027 |
-
"type": "zip",
|
1028 |
-
"url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/937efb279bd37a375bcadf584dec0726f84dbf22",
|
1029 |
-
"reference": "937efb279bd37a375bcadf584dec0726f84dbf22",
|
1030 |
-
"shasum": ""
|
1031 |
-
},
|
1032 |
-
"require": {
|
1033 |
-
"php": ">=5.3.3",
|
1034 |
-
"sebastian/diff": "~1.2",
|
1035 |
-
"sebastian/exporter": "~1.2"
|
1036 |
-
},
|
1037 |
-
"require-dev": {
|
1038 |
-
"phpunit/phpunit": "~4.4"
|
1039 |
-
},
|
1040 |
-
"type": "library",
|
1041 |
-
"extra": {
|
1042 |
-
"branch-alias": {
|
1043 |
-
"dev-master": "1.2.x-dev"
|
1044 |
-
}
|
1045 |
-
},
|
1046 |
-
"autoload": {
|
1047 |
-
"classmap": [
|
1048 |
-
"src/"
|
1049 |
-
]
|
1050 |
-
},
|
1051 |
-
"notification-url": "https://packagist.org/downloads/",
|
1052 |
-
"license": [
|
1053 |
-
"BSD-3-Clause"
|
1054 |
-
],
|
1055 |
-
"authors": [
|
1056 |
-
{
|
1057 |
-
"name": "Jeff Welch",
|
1058 |
-
"email": "whatthejeff@gmail.com"
|
1059 |
-
},
|
1060 |
-
{
|
1061 |
-
"name": "Volker Dusch",
|
1062 |
-
"email": "github@wallbash.com"
|
1063 |
-
},
|
1064 |
-
{
|
1065 |
-
"name": "Bernhard Schussek",
|
1066 |
-
"email": "bschussek@2bepublished.at"
|
1067 |
-
},
|
1068 |
-
{
|
1069 |
-
"name": "Sebastian Bergmann",
|
1070 |
-
"email": "sebastian@phpunit.de"
|
1071 |
-
}
|
1072 |
-
],
|
1073 |
-
"description": "Provides the functionality to compare PHP values for equality",
|
1074 |
-
"homepage": "http://www.github.com/sebastianbergmann/comparator",
|
1075 |
-
"keywords": [
|
1076 |
-
"comparator",
|
1077 |
-
"compare",
|
1078 |
-
"equality"
|
1079 |
-
],
|
1080 |
-
"time": "2015-07-26 15:48:44"
|
1081 |
-
},
|
1082 |
-
{
|
1083 |
-
"name": "sebastian/diff",
|
1084 |
-
"version": "1.4.1",
|
1085 |
-
"source": {
|
1086 |
-
"type": "git",
|
1087 |
-
"url": "https://github.com/sebastianbergmann/diff.git",
|
1088 |
-
"reference": "13edfd8706462032c2f52b4b862974dd46b71c9e"
|
1089 |
-
},
|
1090 |
-
"dist": {
|
1091 |
-
"type": "zip",
|
1092 |
-
"url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/13edfd8706462032c2f52b4b862974dd46b71c9e",
|
1093 |
-
"reference": "13edfd8706462032c2f52b4b862974dd46b71c9e",
|
1094 |
-
"shasum": ""
|
1095 |
-
},
|
1096 |
-
"require": {
|
1097 |
-
"php": ">=5.3.3"
|
1098 |
-
},
|
1099 |
-
"require-dev": {
|
1100 |
-
"phpunit/phpunit": "~4.8"
|
1101 |
-
},
|
1102 |
-
"type": "library",
|
1103 |
-
"extra": {
|
1104 |
-
"branch-alias": {
|
1105 |
-
"dev-master": "1.4-dev"
|
1106 |
-
}
|
1107 |
-
},
|
1108 |
-
"autoload": {
|
1109 |
-
"classmap": [
|
1110 |
-
"src/"
|
1111 |
-
]
|
1112 |
-
},
|
1113 |
-
"notification-url": "https://packagist.org/downloads/",
|
1114 |
-
"license": [
|
1115 |
-
"BSD-3-Clause"
|
1116 |
-
],
|
1117 |
-
"authors": [
|
1118 |
-
{
|
1119 |
-
"name": "Kore Nordmann",
|
1120 |
-
"email": "mail@kore-nordmann.de"
|
1121 |
-
},
|
1122 |
-
{
|
1123 |
-
"name": "Sebastian Bergmann",
|
1124 |
-
"email": "sebastian@phpunit.de"
|
1125 |
-
}
|
1126 |
-
],
|
1127 |
-
"description": "Diff implementation",
|
1128 |
-
"homepage": "https://github.com/sebastianbergmann/diff",
|
1129 |
-
"keywords": [
|
1130 |
-
"diff"
|
1131 |
-
],
|
1132 |
-
"time": "2015-12-08 07:14:41"
|
1133 |
-
},
|
1134 |
-
{
|
1135 |
-
"name": "sebastian/environment",
|
1136 |
-
"version": "1.3.8",
|
1137 |
-
"source": {
|
1138 |
-
"type": "git",
|
1139 |
-
"url": "https://github.com/sebastianbergmann/environment.git",
|
1140 |
-
"reference": "be2c607e43ce4c89ecd60e75c6a85c126e754aea"
|
1141 |
-
},
|
1142 |
-
"dist": {
|
1143 |
-
"type": "zip",
|
1144 |
-
"url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/be2c607e43ce4c89ecd60e75c6a85c126e754aea",
|
1145 |
-
"reference": "be2c607e43ce4c89ecd60e75c6a85c126e754aea",
|
1146 |
-
"shasum": ""
|
1147 |
-
},
|
1148 |
-
"require": {
|
1149 |
-
"php": "^5.3.3 || ^7.0"
|
1150 |
-
},
|
1151 |
-
"require-dev": {
|
1152 |
-
"phpunit/phpunit": "^4.8 || ^5.0"
|
1153 |
-
},
|
1154 |
-
"type": "library",
|
1155 |
-
"extra": {
|
1156 |
-
"branch-alias": {
|
1157 |
-
"dev-master": "1.3.x-dev"
|
1158 |
-
}
|
1159 |
-
},
|
1160 |
-
"autoload": {
|
1161 |
-
"classmap": [
|
1162 |
-
"src/"
|
1163 |
-
]
|
1164 |
-
},
|
1165 |
-
"notification-url": "https://packagist.org/downloads/",
|
1166 |
-
"license": [
|
1167 |
-
"BSD-3-Clause"
|
1168 |
-
],
|
1169 |
-
"authors": [
|
1170 |
-
{
|
1171 |
-
"name": "Sebastian Bergmann",
|
1172 |
-
"email": "sebastian@phpunit.de"
|
1173 |
-
}
|
1174 |
-
],
|
1175 |
-
"description": "Provides functionality to handle HHVM/PHP environments",
|
1176 |
-
"homepage": "http://www.github.com/sebastianbergmann/environment",
|
1177 |
-
"keywords": [
|
1178 |
-
"Xdebug",
|
1179 |
-
"environment",
|
1180 |
-
"hhvm"
|
1181 |
-
],
|
1182 |
-
"time": "2016-08-18 05:49:44"
|
1183 |
-
},
|
1184 |
-
{
|
1185 |
-
"name": "sebastian/exporter",
|
1186 |
-
"version": "1.2.2",
|
1187 |
-
"source": {
|
1188 |
-
"type": "git",
|
1189 |
-
"url": "https://github.com/sebastianbergmann/exporter.git",
|
1190 |
-
"reference": "42c4c2eec485ee3e159ec9884f95b431287edde4"
|
1191 |
-
},
|
1192 |
-
"dist": {
|
1193 |
-
"type": "zip",
|
1194 |
-
"url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/42c4c2eec485ee3e159ec9884f95b431287edde4",
|
1195 |
-
"reference": "42c4c2eec485ee3e159ec9884f95b431287edde4",
|
1196 |
-
"shasum": ""
|
1197 |
-
},
|
1198 |
-
"require": {
|
1199 |
-
"php": ">=5.3.3",
|
1200 |
-
"sebastian/recursion-context": "~1.0"
|
1201 |
-
},
|
1202 |
-
"require-dev": {
|
1203 |
-
"ext-mbstring": "*",
|
1204 |
-
"phpunit/phpunit": "~4.4"
|
1205 |
-
},
|
1206 |
-
"type": "library",
|
1207 |
-
"extra": {
|
1208 |
-
"branch-alias": {
|
1209 |
-
"dev-master": "1.3.x-dev"
|
1210 |
-
}
|
1211 |
-
},
|
1212 |
-
"autoload": {
|
1213 |
-
"classmap": [
|
1214 |
-
"src/"
|
1215 |
-
]
|
1216 |
-
},
|
1217 |
-
"notification-url": "https://packagist.org/downloads/",
|
1218 |
-
"license": [
|
1219 |
-
"BSD-3-Clause"
|
1220 |
-
],
|
1221 |
-
"authors": [
|
1222 |
-
{
|
1223 |
-
"name": "Jeff Welch",
|
1224 |
-
"email": "whatthejeff@gmail.com"
|
1225 |
-
},
|
1226 |
-
{
|
1227 |
-
"name": "Volker Dusch",
|
1228 |
-
"email": "github@wallbash.com"
|
1229 |
-
},
|
1230 |
-
{
|
1231 |
-
"name": "Bernhard Schussek",
|
1232 |
-
"email": "bschussek@2bepublished.at"
|
1233 |
-
},
|
1234 |
-
{
|
1235 |
-
"name": "Sebastian Bergmann",
|
1236 |
-
"email": "sebastian@phpunit.de"
|
1237 |
-
},
|
1238 |
-
{
|
1239 |
-
"name": "Adam Harvey",
|
1240 |
-
"email": "aharvey@php.net"
|
1241 |
-
}
|
1242 |
-
],
|
1243 |
-
"description": "Provides the functionality to export PHP variables for visualization",
|
1244 |
-
"homepage": "http://www.github.com/sebastianbergmann/exporter",
|
1245 |
-
"keywords": [
|
1246 |
-
"export",
|
1247 |
-
"exporter"
|
1248 |
-
],
|
1249 |
-
"time": "2016-06-17 09:04:28"
|
1250 |
-
},
|
1251 |
-
{
|
1252 |
-
"name": "sebastian/global-state",
|
1253 |
-
"version": "1.1.1",
|
1254 |
-
"source": {
|
1255 |
-
"type": "git",
|
1256 |
-
"url": "https://github.com/sebastianbergmann/global-state.git",
|
1257 |
-
"reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4"
|
1258 |
-
},
|
1259 |
-
"dist": {
|
1260 |
-
"type": "zip",
|
1261 |
-
"url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bc37d50fea7d017d3d340f230811c9f1d7280af4",
|
1262 |
-
"reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4",
|
1263 |
-
"shasum": ""
|
1264 |
-
},
|
1265 |
-
"require": {
|
1266 |
-
"php": ">=5.3.3"
|
1267 |
-
},
|
1268 |
-
"require-dev": {
|
1269 |
-
"phpunit/phpunit": "~4.2"
|
1270 |
-
},
|
1271 |
-
"suggest": {
|
1272 |
-
"ext-uopz": "*"
|
1273 |
-
},
|
1274 |
-
"type": "library",
|
1275 |
-
"extra": {
|
1276 |
-
"branch-alias": {
|
1277 |
-
"dev-master": "1.0-dev"
|
1278 |
-
}
|
1279 |
-
},
|
1280 |
-
"autoload": {
|
1281 |
-
"classmap": [
|
1282 |
-
"src/"
|
1283 |
-
]
|
1284 |
-
},
|
1285 |
-
"notification-url": "https://packagist.org/downloads/",
|
1286 |
-
"license": [
|
1287 |
-
"BSD-3-Clause"
|
1288 |
-
],
|
1289 |
-
"authors": [
|
1290 |
-
{
|
1291 |
-
"name": "Sebastian Bergmann",
|
1292 |
-
"email": "sebastian@phpunit.de"
|
1293 |
-
}
|
1294 |
-
],
|
1295 |
-
"description": "Snapshotting of global state",
|
1296 |
-
"homepage": "http://www.github.com/sebastianbergmann/global-state",
|
1297 |
-
"keywords": [
|
1298 |
-
"global state"
|
1299 |
-
],
|
1300 |
-
"time": "2015-10-12 03:26:01"
|
1301 |
-
},
|
1302 |
-
{
|
1303 |
-
"name": "sebastian/recursion-context",
|
1304 |
-
"version": "1.0.2",
|
1305 |
-
"source": {
|
1306 |
-
"type": "git",
|
1307 |
-
"url": "https://github.com/sebastianbergmann/recursion-context.git",
|
1308 |
-
"reference": "913401df809e99e4f47b27cdd781f4a258d58791"
|
1309 |
-
},
|
1310 |
-
"dist": {
|
1311 |
-
"type": "zip",
|
1312 |
-
"url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/913401df809e99e4f47b27cdd781f4a258d58791",
|
1313 |
-
"reference": "913401df809e99e4f47b27cdd781f4a258d58791",
|
1314 |
-
"shasum": ""
|
1315 |
-
},
|
1316 |
-
"require": {
|
1317 |
-
"php": ">=5.3.3"
|
1318 |
-
},
|
1319 |
-
"require-dev": {
|
1320 |
-
"phpunit/phpunit": "~4.4"
|
1321 |
-
},
|
1322 |
-
"type": "library",
|
1323 |
-
"extra": {
|
1324 |
-
"branch-alias": {
|
1325 |
-
"dev-master": "1.0.x-dev"
|
1326 |
-
}
|
1327 |
-
},
|
1328 |
-
"autoload": {
|
1329 |
-
"classmap": [
|
1330 |
-
"src/"
|
1331 |
-
]
|
1332 |
-
},
|
1333 |
-
"notification-url": "https://packagist.org/downloads/",
|
1334 |
-
"license": [
|
1335 |
-
"BSD-3-Clause"
|
1336 |
-
],
|
1337 |
-
"authors": [
|
1338 |
-
{
|
1339 |
-
"name": "Jeff Welch",
|
1340 |
-
"email": "whatthejeff@gmail.com"
|
1341 |
-
},
|
1342 |
-
{
|
1343 |
-
"name": "Sebastian Bergmann",
|
1344 |
-
"email": "sebastian@phpunit.de"
|
1345 |
-
},
|
1346 |
-
{
|
1347 |
-
"name": "Adam Harvey",
|
1348 |
-
"email": "aharvey@php.net"
|
1349 |
-
}
|
1350 |
-
],
|
1351 |
-
"description": "Provides functionality to recursively process PHP variables",
|
1352 |
-
"homepage": "http://www.github.com/sebastianbergmann/recursion-context",
|
1353 |
-
"time": "2015-11-11 19:50:13"
|
1354 |
-
},
|
1355 |
-
{
|
1356 |
-
"name": "sebastian/version",
|
1357 |
-
"version": "1.0.6",
|
1358 |
-
"source": {
|
1359 |
-
"type": "git",
|
1360 |
-
"url": "https://github.com/sebastianbergmann/version.git",
|
1361 |
-
"reference": "58b3a85e7999757d6ad81c787a1fbf5ff6c628c6"
|
1362 |
-
},
|
1363 |
-
"dist": {
|
1364 |
-
"type": "zip",
|
1365 |
-
"url": "https://api.github.com/repos/sebastianbergmann/version/zipball/58b3a85e7999757d6ad81c787a1fbf5ff6c628c6",
|
1366 |
-
"reference": "58b3a85e7999757d6ad81c787a1fbf5ff6c628c6",
|
1367 |
-
"shasum": ""
|
1368 |
-
},
|
1369 |
-
"type": "library",
|
1370 |
-
"autoload": {
|
1371 |
-
"classmap": [
|
1372 |
-
"src/"
|
1373 |
-
]
|
1374 |
-
},
|
1375 |
-
"notification-url": "https://packagist.org/downloads/",
|
1376 |
-
"license": [
|
1377 |
-
"BSD-3-Clause"
|
1378 |
-
],
|
1379 |
-
"authors": [
|
1380 |
-
{
|
1381 |
-
"name": "Sebastian Bergmann",
|
1382 |
-
"email": "sebastian@phpunit.de",
|
1383 |
-
"role": "lead"
|
1384 |
-
}
|
1385 |
-
],
|
1386 |
-
"description": "Library that helps with managing the version number of Git-hosted PHP projects",
|
1387 |
-
"homepage": "https://github.com/sebastianbergmann/version",
|
1388 |
-
"time": "2015-06-21 13:59:46"
|
1389 |
-
},
|
1390 |
-
{
|
1391 |
-
"name": "squizlabs/php_codesniffer",
|
1392 |
-
"version": "2.7.0",
|
1393 |
-
"source": {
|
1394 |
-
"type": "git",
|
1395 |
-
"url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
|
1396 |
-
"reference": "571e27b6348e5b3a637b2abc82ac0d01e6d7bbed"
|
1397 |
-
},
|
1398 |
-
"dist": {
|
1399 |
-
"type": "zip",
|
1400 |
-
"url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/571e27b6348e5b3a637b2abc82ac0d01e6d7bbed",
|
1401 |
-
"reference": "571e27b6348e5b3a637b2abc82ac0d01e6d7bbed",
|
1402 |
-
"shasum": ""
|
1403 |
-
},
|
1404 |
-
"require": {
|
1405 |
-
"ext-simplexml": "*",
|
1406 |
-
"ext-tokenizer": "*",
|
1407 |
-
"ext-xmlwriter": "*",
|
1408 |
-
"php": ">=5.1.2"
|
1409 |
-
},
|
1410 |
-
"require-dev": {
|
1411 |
-
"phpunit/phpunit": "~4.0"
|
1412 |
-
},
|
1413 |
-
"bin": [
|
1414 |
-
"scripts/phpcs",
|
1415 |
-
"scripts/phpcbf"
|
1416 |
-
],
|
1417 |
-
"type": "library",
|
1418 |
-
"extra": {
|
1419 |
-
"branch-alias": {
|
1420 |
-
"dev-master": "2.x-dev"
|
1421 |
-
}
|
1422 |
-
},
|
1423 |
-
"autoload": {
|
1424 |
-
"classmap": [
|
1425 |
-
"CodeSniffer.php",
|
1426 |
-
"CodeSniffer/CLI.php",
|
1427 |
-
"CodeSniffer/Exception.php",
|
1428 |
-
"CodeSniffer/File.php",
|
1429 |
-
"CodeSniffer/Fixer.php",
|
1430 |
-
"CodeSniffer/Report.php",
|
1431 |
-
"CodeSniffer/Reporting.php",
|
1432 |
-
"CodeSniffer/Sniff.php",
|
1433 |
-
"CodeSniffer/Tokens.php",
|
1434 |
-
"CodeSniffer/Reports/",
|
1435 |
-
"CodeSniffer/Tokenizers/",
|
1436 |
-
"CodeSniffer/DocGenerators/",
|
1437 |
-
"CodeSniffer/Standards/AbstractPatternSniff.php",
|
1438 |
-
"CodeSniffer/Standards/AbstractScopeSniff.php",
|
1439 |
-
"CodeSniffer/Standards/AbstractVariableSniff.php",
|
1440 |
-
"CodeSniffer/Standards/IncorrectPatternException.php",
|
1441 |
-
"CodeSniffer/Standards/Generic/Sniffs/",
|
1442 |
-
"CodeSniffer/Standards/MySource/Sniffs/",
|
1443 |
-
"CodeSniffer/Standards/PEAR/Sniffs/",
|
1444 |
-
"CodeSniffer/Standards/PSR1/Sniffs/",
|
1445 |
-
"CodeSniffer/Standards/PSR2/Sniffs/",
|
1446 |
-
"CodeSniffer/Standards/Squiz/Sniffs/",
|
1447 |
-
"CodeSniffer/Standards/Zend/Sniffs/"
|
1448 |
-
]
|
1449 |
-
},
|
1450 |
-
"notification-url": "https://packagist.org/downloads/",
|
1451 |
-
"license": [
|
1452 |
-
"BSD-3-Clause"
|
1453 |
-
],
|
1454 |
-
"authors": [
|
1455 |
-
{
|
1456 |
-
"name": "Greg Sherwood",
|
1457 |
-
"role": "lead"
|
1458 |
-
}
|
1459 |
-
],
|
1460 |
-
"description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.",
|
1461 |
-
"homepage": "http://www.squizlabs.com/php-codesniffer",
|
1462 |
-
"keywords": [
|
1463 |
-
"phpcs",
|
1464 |
-
"standards"
|
1465 |
-
],
|
1466 |
-
"time": "2016-09-01 23:53:02"
|
1467 |
-
},
|
1468 |
-
{
|
1469 |
-
"name": "symfony/class-loader",
|
1470 |
-
"version": "v3.1.5",
|
1471 |
-
"source": {
|
1472 |
-
"type": "git",
|
1473 |
-
"url": "https://github.com/symfony/class-loader.git",
|
1474 |
-
"reference": "bcb072aba46ddf3b1a496438c63be6be647739aa"
|
1475 |
-
},
|
1476 |
-
"dist": {
|
1477 |
-
"type": "zip",
|
1478 |
-
"url": "https://api.github.com/repos/symfony/class-loader/zipball/bcb072aba46ddf3b1a496438c63be6be647739aa",
|
1479 |
-
"reference": "bcb072aba46ddf3b1a496438c63be6be647739aa",
|
1480 |
-
"shasum": ""
|
1481 |
-
},
|
1482 |
-
"require": {
|
1483 |
-
"php": ">=5.5.9"
|
1484 |
-
},
|
1485 |
-
"require-dev": {
|
1486 |
-
"symfony/finder": "~2.8|~3.0",
|
1487 |
-
"symfony/polyfill-apcu": "~1.1"
|
1488 |
-
},
|
1489 |
-
"suggest": {
|
1490 |
-
"symfony/polyfill-apcu": "For using ApcClassLoader on HHVM"
|
1491 |
-
},
|
1492 |
-
"type": "library",
|
1493 |
-
"extra": {
|
1494 |
-
"branch-alias": {
|
1495 |
-
"dev-master": "3.1-dev"
|
1496 |
-
}
|
1497 |
-
},
|
1498 |
-
"autoload": {
|
1499 |
-
"psr-4": {
|
1500 |
-
"Symfony\\Component\\ClassLoader\\": ""
|
1501 |
-
},
|
1502 |
-
"exclude-from-classmap": [
|
1503 |
-
"/Tests/"
|
1504 |
-
]
|
1505 |
-
},
|
1506 |
-
"notification-url": "https://packagist.org/downloads/",
|
1507 |
-
"license": [
|
1508 |
-
"MIT"
|
1509 |
-
],
|
1510 |
-
"authors": [
|
1511 |
-
{
|
1512 |
-
"name": "Fabien Potencier",
|
1513 |
-
"email": "fabien@symfony.com"
|
1514 |
-
},
|
1515 |
-
{
|
1516 |
-
"name": "Symfony Community",
|
1517 |
-
"homepage": "https://symfony.com/contributors"
|
1518 |
-
}
|
1519 |
-
],
|
1520 |
-
"description": "Symfony ClassLoader Component",
|
1521 |
-
"homepage": "https://symfony.com",
|
1522 |
-
"time": "2016-09-06 23:30:54"
|
1523 |
-
},
|
1524 |
-
{
|
1525 |
-
"name": "symfony/config",
|
1526 |
-
"version": "v3.1.5",
|
1527 |
-
"source": {
|
1528 |
-
"type": "git",
|
1529 |
-
"url": "https://github.com/symfony/config.git",
|
1530 |
-
"reference": "949e7e846743a7f9e46dc50eb639d5fde1f53341"
|
1531 |
-
},
|
1532 |
-
"dist": {
|
1533 |
-
"type": "zip",
|
1534 |
-
"url": "https://api.github.com/repos/symfony/config/zipball/949e7e846743a7f9e46dc50eb639d5fde1f53341",
|
1535 |
-
"reference": "949e7e846743a7f9e46dc50eb639d5fde1f53341",
|
1536 |
-
"shasum": ""
|
1537 |
-
},
|
1538 |
-
"require": {
|
1539 |
-
"php": ">=5.5.9",
|
1540 |
-
"symfony/filesystem": "~2.8|~3.0"
|
1541 |
-
},
|
1542 |
-
"suggest": {
|
1543 |
-
"symfony/yaml": "To use the yaml reference dumper"
|
1544 |
-
},
|
1545 |
-
"type": "library",
|
1546 |
-
"extra": {
|
1547 |
-
"branch-alias": {
|
1548 |
-
"dev-master": "3.1-dev"
|
1549 |
-
}
|
1550 |
-
},
|
1551 |
-
"autoload": {
|
1552 |
-
"psr-4": {
|
1553 |
-
"Symfony\\Component\\Config\\": ""
|
1554 |
-
},
|
1555 |
-
"exclude-from-classmap": [
|
1556 |
-
"/Tests/"
|
1557 |
-
]
|
1558 |
-
},
|
1559 |
-
"notification-url": "https://packagist.org/downloads/",
|
1560 |
-
"license": [
|
1561 |
-
"MIT"
|
1562 |
-
],
|
1563 |
-
"authors": [
|
1564 |
-
{
|
1565 |
-
"name": "Fabien Potencier",
|
1566 |
-
"email": "fabien@symfony.com"
|
1567 |
-
},
|
1568 |
-
{
|
1569 |
-
"name": "Symfony Community",
|
1570 |
-
"homepage": "https://symfony.com/contributors"
|
1571 |
-
}
|
1572 |
-
],
|
1573 |
-
"description": "Symfony Config Component",
|
1574 |
-
"homepage": "https://symfony.com",
|
1575 |
-
"time": "2016-09-25 08:27:07"
|
1576 |
-
},
|
1577 |
-
{
|
1578 |
-
"name": "symfony/console",
|
1579 |
-
"version": "v3.1.5",
|
1580 |
-
"source": {
|
1581 |
-
"type": "git",
|
1582 |
-
"url": "https://github.com/symfony/console.git",
|
1583 |
-
"reference": "6cb0872fb57b38b3b09ff213c21ed693956b9eb0"
|
1584 |
-
},
|
1585 |
-
"dist": {
|
1586 |
-
"type": "zip",
|
1587 |
-
"url": "https://api.github.com/repos/symfony/console/zipball/6cb0872fb57b38b3b09ff213c21ed693956b9eb0",
|
1588 |
-
"reference": "6cb0872fb57b38b3b09ff213c21ed693956b9eb0",
|
1589 |
-
"shasum": ""
|
1590 |
-
},
|
1591 |
-
"require": {
|
1592 |
-
"php": ">=5.5.9",
|
1593 |
-
"symfony/debug": "~2.8|~3.0",
|
1594 |
-
"symfony/polyfill-mbstring": "~1.0"
|
1595 |
-
},
|
1596 |
-
"require-dev": {
|
1597 |
-
"psr/log": "~1.0",
|
1598 |
-
"symfony/event-dispatcher": "~2.8|~3.0",
|
1599 |
-
"symfony/process": "~2.8|~3.0"
|
1600 |
-
},
|
1601 |
-
"suggest": {
|
1602 |
-
"psr/log": "For using the console logger",
|
1603 |
-
"symfony/event-dispatcher": "",
|
1604 |
-
"symfony/process": ""
|
1605 |
-
},
|
1606 |
-
"type": "library",
|
1607 |
-
"extra": {
|
1608 |
-
"branch-alias": {
|
1609 |
-
"dev-master": "3.1-dev"
|
1610 |
-
}
|
1611 |
-
},
|
1612 |
-
"autoload": {
|
1613 |
-
"psr-4": {
|
1614 |
-
"Symfony\\Component\\Console\\": ""
|
1615 |
-
},
|
1616 |
-
"exclude-from-classmap": [
|
1617 |
-
"/Tests/"
|
1618 |
-
]
|
1619 |
-
},
|
1620 |
-
"notification-url": "https://packagist.org/downloads/",
|
1621 |
-
"license": [
|
1622 |
-
"MIT"
|
1623 |
-
],
|
1624 |
-
"authors": [
|
1625 |
-
{
|
1626 |
-
"name": "Fabien Potencier",
|
1627 |
-
"email": "fabien@symfony.com"
|
1628 |
-
},
|
1629 |
-
{
|
1630 |
-
"name": "Symfony Community",
|
1631 |
-
"homepage": "https://symfony.com/contributors"
|
1632 |
-
}
|
1633 |
-
],
|
1634 |
-
"description": "Symfony Console Component",
|
1635 |
-
"homepage": "https://symfony.com",
|
1636 |
-
"time": "2016-09-28 00:11:12"
|
1637 |
-
},
|
1638 |
-
{
|
1639 |
-
"name": "symfony/debug",
|
1640 |
-
"version": "v3.1.5",
|
1641 |
-
"source": {
|
1642 |
-
"type": "git",
|
1643 |
-
"url": "https://github.com/symfony/debug.git",
|
1644 |
-
"reference": "e2b3f74a67fc928adc3c1b9027f73e1bc01190a8"
|
1645 |
-
},
|
1646 |
-
"dist": {
|
1647 |
-
"type": "zip",
|
1648 |
-
"url": "https://api.github.com/repos/symfony/debug/zipball/e2b3f74a67fc928adc3c1b9027f73e1bc01190a8",
|
1649 |
-
"reference": "e2b3f74a67fc928adc3c1b9027f73e1bc01190a8",
|
1650 |
-
"shasum": ""
|
1651 |
-
},
|
1652 |
-
"require": {
|
1653 |
-
"php": ">=5.5.9",
|
1654 |
-
"psr/log": "~1.0"
|
1655 |
-
},
|
1656 |
-
"conflict": {
|
1657 |
-
"symfony/http-kernel": ">=2.3,<2.3.24|~2.4.0|>=2.5,<2.5.9|>=2.6,<2.6.2"
|
1658 |
-
},
|
1659 |
-
"require-dev": {
|
1660 |
-
"symfony/class-loader": "~2.8|~3.0",
|
1661 |
-
"symfony/http-kernel": "~2.8|~3.0"
|
1662 |
-
},
|
1663 |
-
"type": "library",
|
1664 |
-
"extra": {
|
1665 |
-
"branch-alias": {
|
1666 |
-
"dev-master": "3.1-dev"
|
1667 |
-
}
|
1668 |
-
},
|
1669 |
-
"autoload": {
|
1670 |
-
"psr-4": {
|
1671 |
-
"Symfony\\Component\\Debug\\": ""
|
1672 |
-
},
|
1673 |
-
"exclude-from-classmap": [
|
1674 |
-
"/Tests/"
|
1675 |
-
]
|
1676 |
-
},
|
1677 |
-
"notification-url": "https://packagist.org/downloads/",
|
1678 |
-
"license": [
|
1679 |
-
"MIT"
|
1680 |
-
],
|
1681 |
-
"authors": [
|
1682 |
-
{
|
1683 |
-
"name": "Fabien Potencier",
|
1684 |
-
"email": "fabien@symfony.com"
|
1685 |
-
},
|
1686 |
-
{
|
1687 |
-
"name": "Symfony Community",
|
1688 |
-
"homepage": "https://symfony.com/contributors"
|
1689 |
-
}
|
1690 |
-
],
|
1691 |
-
"description": "Symfony Debug Component",
|
1692 |
-
"homepage": "https://symfony.com",
|
1693 |
-
"time": "2016-09-06 11:02:40"
|
1694 |
-
},
|
1695 |
-
{
|
1696 |
-
"name": "symfony/event-dispatcher",
|
1697 |
-
"version": "v2.8.12",
|
1698 |
-
"source": {
|
1699 |
-
"type": "git",
|
1700 |
-
"url": "https://github.com/symfony/event-dispatcher.git",
|
1701 |
-
"reference": "889983a79a043dfda68f38c38b6dba092dd49cd8"
|
1702 |
-
},
|
1703 |
-
"dist": {
|
1704 |
-
"type": "zip",
|
1705 |
-
"url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/889983a79a043dfda68f38c38b6dba092dd49cd8",
|
1706 |
-
"reference": "889983a79a043dfda68f38c38b6dba092dd49cd8",
|
1707 |
-
"shasum": ""
|
1708 |
-
},
|
1709 |
-
"require": {
|
1710 |
-
"php": ">=5.3.9"
|
1711 |
-
},
|
1712 |
-
"require-dev": {
|
1713 |
-
"psr/log": "~1.0",
|
1714 |
-
"symfony/config": "~2.0,>=2.0.5|~3.0.0",
|
1715 |
-
"symfony/dependency-injection": "~2.6|~3.0.0",
|
1716 |
-
"symfony/expression-language": "~2.6|~3.0.0",
|
1717 |
-
"symfony/stopwatch": "~2.3|~3.0.0"
|
1718 |
-
},
|
1719 |
-
"suggest": {
|
1720 |
-
"symfony/dependency-injection": "",
|
1721 |
-
"symfony/http-kernel": ""
|
1722 |
-
},
|
1723 |
-
"type": "library",
|
1724 |
-
"extra": {
|
1725 |
-
"branch-alias": {
|
1726 |
-
"dev-master": "2.8-dev"
|
1727 |
-
}
|
1728 |
-
},
|
1729 |
-
"autoload": {
|
1730 |
-
"psr-4": {
|
1731 |
-
"Symfony\\Component\\EventDispatcher\\": ""
|
1732 |
-
},
|
1733 |
-
"exclude-from-classmap": [
|
1734 |
-
"/Tests/"
|
1735 |
-
]
|
1736 |
-
},
|
1737 |
-
"notification-url": "https://packagist.org/downloads/",
|
1738 |
-
"license": [
|
1739 |
-
"MIT"
|
1740 |
-
],
|
1741 |
-
"authors": [
|
1742 |
-
{
|
1743 |
-
"name": "Fabien Potencier",
|
1744 |
-
"email": "fabien@symfony.com"
|
1745 |
-
},
|
1746 |
-
{
|
1747 |
-
"name": "Symfony Community",
|
1748 |
-
"homepage": "https://symfony.com/contributors"
|
1749 |
-
}
|
1750 |
-
],
|
1751 |
-
"description": "Symfony EventDispatcher Component",
|
1752 |
-
"homepage": "https://symfony.com",
|
1753 |
-
"time": "2016-07-28 16:56:28"
|
1754 |
-
},
|
1755 |
-
{
|
1756 |
-
"name": "symfony/filesystem",
|
1757 |
-
"version": "v3.1.5",
|
1758 |
-
"source": {
|
1759 |
-
"type": "git",
|
1760 |
-
"url": "https://github.com/symfony/filesystem.git",
|
1761 |
-
"reference": "682fd8fdb3135fdf05fc496a01579ccf6c85c0e5"
|
1762 |
-
},
|
1763 |
-
"dist": {
|
1764 |
-
"type": "zip",
|
1765 |
-
"url": "https://api.github.com/repos/symfony/filesystem/zipball/682fd8fdb3135fdf05fc496a01579ccf6c85c0e5",
|
1766 |
-
"reference": "682fd8fdb3135fdf05fc496a01579ccf6c85c0e5",
|
1767 |
-
"shasum": ""
|
1768 |
-
},
|
1769 |
-
"require": {
|
1770 |
-
"php": ">=5.5.9"
|
1771 |
-
},
|
1772 |
-
"type": "library",
|
1773 |
-
"extra": {
|
1774 |
-
"branch-alias": {
|
1775 |
-
"dev-master": "3.1-dev"
|
1776 |
-
}
|
1777 |
-
},
|
1778 |
-
"autoload": {
|
1779 |
-
"psr-4": {
|
1780 |
-
"Symfony\\Component\\Filesystem\\": ""
|
1781 |
-
},
|
1782 |
-
"exclude-from-classmap": [
|
1783 |
-
"/Tests/"
|
1784 |
-
]
|
1785 |
-
},
|
1786 |
-
"notification-url": "https://packagist.org/downloads/",
|
1787 |
-
"license": [
|
1788 |
-
"MIT"
|
1789 |
-
],
|
1790 |
-
"authors": [
|
1791 |
-
{
|
1792 |
-
"name": "Fabien Potencier",
|
1793 |
-
"email": "fabien@symfony.com"
|
1794 |
-
},
|
1795 |
-
{
|
1796 |
-
"name": "Symfony Community",
|
1797 |
-
"homepage": "https://symfony.com/contributors"
|
1798 |
-
}
|
1799 |
-
],
|
1800 |
-
"description": "Symfony Filesystem Component",
|
1801 |
-
"homepage": "https://symfony.com",
|
1802 |
-
"time": "2016-09-14 00:18:46"
|
1803 |
-
},
|
1804 |
-
{
|
1805 |
-
"name": "symfony/polyfill-mbstring",
|
1806 |
-
"version": "v1.2.0",
|
1807 |
-
"source": {
|
1808 |
-
"type": "git",
|
1809 |
-
"url": "https://github.com/symfony/polyfill-mbstring.git",
|
1810 |
-
"reference": "dff51f72b0706335131b00a7f49606168c582594"
|
1811 |
-
},
|
1812 |
-
"dist": {
|
1813 |
-
"type": "zip",
|
1814 |
-
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/dff51f72b0706335131b00a7f49606168c582594",
|
1815 |
-
"reference": "dff51f72b0706335131b00a7f49606168c582594",
|
1816 |
-
"shasum": ""
|
1817 |
-
},
|
1818 |
-
"require": {
|
1819 |
-
"php": ">=5.3.3"
|
1820 |
-
},
|
1821 |
-
"suggest": {
|
1822 |
-
"ext-mbstring": "For best performance"
|
1823 |
-
},
|
1824 |
-
"type": "library",
|
1825 |
-
"extra": {
|
1826 |
-
"branch-alias": {
|
1827 |
-
"dev-master": "1.2-dev"
|
1828 |
-
}
|
1829 |
-
},
|
1830 |
-
"autoload": {
|
1831 |
-
"psr-4": {
|
1832 |
-
"Symfony\\Polyfill\\Mbstring\\": ""
|
1833 |
-
},
|
1834 |
-
"files": [
|
1835 |
-
"bootstrap.php"
|
1836 |
-
]
|
1837 |
-
},
|
1838 |
-
"notification-url": "https://packagist.org/downloads/",
|
1839 |
-
"license": [
|
1840 |
-
"MIT"
|
1841 |
-
],
|
1842 |
-
"authors": [
|
1843 |
-
{
|
1844 |
-
"name": "Nicolas Grekas",
|
1845 |
-
"email": "p@tchwork.com"
|
1846 |
-
},
|
1847 |
-
{
|
1848 |
-
"name": "Symfony Community",
|
1849 |
-
"homepage": "https://symfony.com/contributors"
|
1850 |
-
}
|
1851 |
-
],
|
1852 |
-
"description": "Symfony polyfill for the Mbstring extension",
|
1853 |
-
"homepage": "https://symfony.com",
|
1854 |
-
"keywords": [
|
1855 |
-
"compatibility",
|
1856 |
-
"mbstring",
|
1857 |
-
"polyfill",
|
1858 |
-
"portable",
|
1859 |
-
"shim"
|
1860 |
-
],
|
1861 |
-
"time": "2016-05-18 14:26:46"
|
1862 |
-
},
|
1863 |
-
{
|
1864 |
-
"name": "symfony/stopwatch",
|
1865 |
-
"version": "v3.1.5",
|
1866 |
-
"source": {
|
1867 |
-
"type": "git",
|
1868 |
-
"url": "https://github.com/symfony/stopwatch.git",
|
1869 |
-
"reference": "bb42806b12c5f89db4ebf64af6741afe6d8457e1"
|
1870 |
-
},
|
1871 |
-
"dist": {
|
1872 |
-
"type": "zip",
|
1873 |
-
"url": "https://api.github.com/repos/symfony/stopwatch/zipball/bb42806b12c5f89db4ebf64af6741afe6d8457e1",
|
1874 |
-
"reference": "bb42806b12c5f89db4ebf64af6741afe6d8457e1",
|
1875 |
-
"shasum": ""
|
1876 |
-
},
|
1877 |
-
"require": {
|
1878 |
-
"php": ">=5.5.9"
|
1879 |
-
},
|
1880 |
-
"type": "library",
|
1881 |
-
"extra": {
|
1882 |
-
"branch-alias": {
|
1883 |
-
"dev-master": "3.1-dev"
|
1884 |
-
}
|
1885 |
-
},
|
1886 |
-
"autoload": {
|
1887 |
-
"psr-4": {
|
1888 |
-
"Symfony\\Component\\Stopwatch\\": ""
|
1889 |
-
},
|
1890 |
-
"exclude-from-classmap": [
|
1891 |
-
"/Tests/"
|
1892 |
-
]
|
1893 |
-
},
|
1894 |
-
"notification-url": "https://packagist.org/downloads/",
|
1895 |
-
"license": [
|
1896 |
-
"MIT"
|
1897 |
-
],
|
1898 |
-
"authors": [
|
1899 |
-
{
|
1900 |
-
"name": "Fabien Potencier",
|
1901 |
-
"email": "fabien@symfony.com"
|
1902 |
-
},
|
1903 |
-
{
|
1904 |
-
"name": "Symfony Community",
|
1905 |
-
"homepage": "https://symfony.com/contributors"
|
1906 |
-
}
|
1907 |
-
],
|
1908 |
-
"description": "Symfony Stopwatch Component",
|
1909 |
-
"homepage": "https://symfony.com",
|
1910 |
-
"time": "2016-06-29 05:41:56"
|
1911 |
-
},
|
1912 |
-
{
|
1913 |
-
"name": "symfony/yaml",
|
1914 |
-
"version": "v2.8.12",
|
1915 |
-
"source": {
|
1916 |
-
"type": "git",
|
1917 |
-
"url": "https://github.com/symfony/yaml.git",
|
1918 |
-
"reference": "e7540734bad981fe59f8ef14b6fc194ae9df8d9c"
|
1919 |
-
},
|
1920 |
-
"dist": {
|
1921 |
-
"type": "zip",
|
1922 |
-
"url": "https://api.github.com/repos/symfony/yaml/zipball/e7540734bad981fe59f8ef14b6fc194ae9df8d9c",
|
1923 |
-
"reference": "e7540734bad981fe59f8ef14b6fc194ae9df8d9c",
|
1924 |
-
"shasum": ""
|
1925 |
-
},
|
1926 |
-
"require": {
|
1927 |
-
"php": ">=5.3.9"
|
1928 |
-
},
|
1929 |
-
"type": "library",
|
1930 |
-
"extra": {
|
1931 |
-
"branch-alias": {
|
1932 |
-
"dev-master": "2.8-dev"
|
1933 |
-
}
|
1934 |
-
},
|
1935 |
-
"autoload": {
|
1936 |
-
"psr-4": {
|
1937 |
-
"Symfony\\Component\\Yaml\\": ""
|
1938 |
-
},
|
1939 |
-
"exclude-from-classmap": [
|
1940 |
-
"/Tests/"
|
1941 |
-
]
|
1942 |
-
},
|
1943 |
-
"notification-url": "https://packagist.org/downloads/",
|
1944 |
-
"license": [
|
1945 |
-
"MIT"
|
1946 |
-
],
|
1947 |
-
"authors": [
|
1948 |
-
{
|
1949 |
-
"name": "Fabien Potencier",
|
1950 |
-
"email": "fabien@symfony.com"
|
1951 |
-
},
|
1952 |
-
{
|
1953 |
-
"name": "Symfony Community",
|
1954 |
-
"homepage": "https://symfony.com/contributors"
|
1955 |
-
}
|
1956 |
-
],
|
1957 |
-
"description": "Symfony Yaml Component",
|
1958 |
-
"homepage": "https://symfony.com",
|
1959 |
-
"time": "2016-09-02 01:57:56"
|
1960 |
-
},
|
1961 |
-
{
|
1962 |
-
"name": "webmozart/assert",
|
1963 |
-
"version": "1.1.0",
|
1964 |
-
"source": {
|
1965 |
-
"type": "git",
|
1966 |
-
"url": "https://github.com/webmozart/assert.git",
|
1967 |
-
"reference": "bb2d123231c095735130cc8f6d31385a44c7b308"
|
1968 |
-
},
|
1969 |
-
"dist": {
|
1970 |
-
"type": "zip",
|
1971 |
-
"url": "https://api.github.com/repos/webmozart/assert/zipball/bb2d123231c095735130cc8f6d31385a44c7b308",
|
1972 |
-
"reference": "bb2d123231c095735130cc8f6d31385a44c7b308",
|
1973 |
-
"shasum": ""
|
1974 |
-
},
|
1975 |
-
"require": {
|
1976 |
-
"php": "^5.3.3|^7.0"
|
1977 |
-
},
|
1978 |
-
"require-dev": {
|
1979 |
-
"phpunit/phpunit": "^4.6",
|
1980 |
-
"sebastian/version": "^1.0.1"
|
1981 |
-
},
|
1982 |
-
"type": "library",
|
1983 |
-
"extra": {
|
1984 |
-
"branch-alias": {
|
1985 |
-
"dev-master": "1.2-dev"
|
1986 |
-
}
|
1987 |
-
},
|
1988 |
-
"autoload": {
|
1989 |
-
"psr-4": {
|
1990 |
-
"Webmozart\\Assert\\": "src/"
|
1991 |
-
}
|
1992 |
-
},
|
1993 |
-
"notification-url": "https://packagist.org/downloads/",
|
1994 |
-
"license": [
|
1995 |
-
"MIT"
|
1996 |
-
],
|
1997 |
-
"authors": [
|
1998 |
-
{
|
1999 |
-
"name": "Bernhard Schussek",
|
2000 |
-
"email": "bschussek@gmail.com"
|
2001 |
-
}
|
2002 |
-
],
|
2003 |
-
"description": "Assertions to validate method input/output with nice error messages.",
|
2004 |
-
"keywords": [
|
2005 |
-
"assert",
|
2006 |
-
"check",
|
2007 |
-
"validate"
|
2008 |
-
],
|
2009 |
-
"time": "2016-08-09 15:02:57"
|
2010 |
-
},
|
2011 |
-
{
|
2012 |
-
"name": "wp-coding-standards/wpcs",
|
2013 |
-
"version": "dev-master",
|
2014 |
-
"source": {
|
2015 |
-
"type": "git",
|
2016 |
-
"url": "https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards.git",
|
2017 |
-
"reference": "b39490465f6fd7375743a395019cd597e12119c9"
|
2018 |
-
},
|
2019 |
-
"dist": {
|
2020 |
-
"type": "zip",
|
2021 |
-
"url": "https://api.github.com/repos/WordPress-Coding-Standards/WordPress-Coding-Standards/zipball/b39490465f6fd7375743a395019cd597e12119c9",
|
2022 |
-
"reference": "b39490465f6fd7375743a395019cd597e12119c9",
|
2023 |
-
"shasum": ""
|
2024 |
-
},
|
2025 |
-
"require": {
|
2026 |
-
"squizlabs/php_codesniffer": "^2.6"
|
2027 |
-
},
|
2028 |
-
"type": "library",
|
2029 |
-
"notification-url": "https://packagist.org/downloads/",
|
2030 |
-
"license": [
|
2031 |
-
"MIT"
|
2032 |
-
],
|
2033 |
-
"authors": [
|
2034 |
-
{
|
2035 |
-
"name": "Contributors",
|
2036 |
-
"homepage": "https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/graphs/contributors"
|
2037 |
-
}
|
2038 |
-
],
|
2039 |
-
"description": "PHP_CodeSniffer rules (sniffs) to enforce WordPress coding conventions",
|
2040 |
-
"keywords": [
|
2041 |
-
"phpcs",
|
2042 |
-
"standards",
|
2043 |
-
"wordpress"
|
2044 |
-
],
|
2045 |
-
"time": "2016-08-29 20:04:47"
|
2046 |
-
}
|
2047 |
-
],
|
2048 |
-
"aliases": [],
|
2049 |
-
"minimum-stability": "stable",
|
2050 |
-
"stability-flags": {
|
2051 |
-
"wp-coding-standards/wpcs": 20,
|
2052 |
-
"codeclimate/php-test-reporter": 20
|
2053 |
-
},
|
2054 |
-
"prefer-stable": false,
|
2055 |
-
"prefer-lowest": false,
|
2056 |
-
"platform": {
|
2057 |
-
"php": ">=5.3"
|
2058 |
-
},
|
2059 |
-
"platform-dev": []
|
2060 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/images/{Mailchimp_Assets → MailChimp_Assets}/Freddie_60px.png
RENAMED
File without changes
|
includes/images/{Mailchimp_Assets → MailChimp_Assets}/Freddie_original.png
RENAMED
File without changes
|
includes/images/{Mailchimp_Assets → MailChimp_Assets}/Freddie_wink_icon.png
RENAMED
File without changes
|
includes/images/{Mailchimp_Assets → MailChimp_Assets}/mailchimp-logo.png
RENAMED
File without changes
|
includes/images/{Mailchimp_Assets → MailChimp_Assets}/yikes-mailchimp-welcome-logo.png
RENAMED
File without changes
|
readme.md
DELETED
@@ -1,262 +0,0 @@
|
|
1 |
-
[![Build Status](https://travis-ci.org/yikesinc/yikes-inc-easy-mailchimp-extender.svg?branch=staging)](https://travis-ci.org/yikesinc/yikes-inc-easy-mailchimp-extender)
|
2 |
-
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/yikesinc/yikes-inc-easy-mailchimp-extender/badges/quality-score.png?b=staging)](https://scrutinizer-ci.com/g/yikesinc/yikes-inc-easy-mailchimp-extender/?branch=staging)
|
3 |
-
[![Code Coverage](https://scrutinizer-ci.com/g/yikesinc/yikes-inc-easy-mailchimp-extender/badges/coverage.png?b=staging)](https://scrutinizer-ci.com/g/yikesinc/yikes-inc-easy-mailchimp-extender/?branch=staging)
|
4 |
-
[![Build Status](https://scrutinizer-ci.com/g/yikesinc/yikes-inc-easy-mailchimp-extender/badges/build.png?b=staging)](https://scrutinizer-ci.com/g/yikesinc/yikes-inc-easy-mailchimp-extender/build-status/staging)
|
5 |
-
Easy Forms for Mailchimp
|
6 |
-
=====================
|
7 |
-
[![WordPress](https://img.shields.io/wordpress/plugin/dt/yikes-inc-easy-mailchimp-extender.svg)]()
|
8 |
-
![Rating](https://img.shields.io/wordpress/plugin/r/yikes-inc-easy-mailchimp-extender.svg)
|
9 |
-
[![License](https://poser.pugx.org/yikesinc/yikes-inc-easy-mailchimp-extender/license)](https://packagist.org/packages/yikesinc/yikes-inc-easy-mailchimp-extender)
|
10 |
-
![WordPress plugin](https://img.shields.io/wordpress/plugin/v/yikes-inc-easy-mailchimp-extender.svg)
|
11 |
-
![WordPress](https://img.shields.io/wordpress/v/yikes-inc-easy-mailchimp-extender.svg)
|
12 |
-
|
13 |
-
<strong>Latest Stable Beta Release Candidate</strong>
|
14 |
-
|
15 |
-
This is the development repo for the [Easy Forms for Mailchimp](https://wordpress.org/plugins/yikes-inc-easy-mailchimp-extender/) plugin by [YIKES, Inc.](https://yikesinc.com/) where we work on new features and bug fixes.
|
16 |
-
|
17 |
-
Feel free to beta test this plugin now, but remember, it's not a stable release.
|
18 |
-
|
19 |
-
|
20 |
-
#### Minimum Requirements
|
21 |
-
- WordPress 3.8+
|
22 |
-
- PHP v5.3+
|
23 |
-
|
24 |
-
#### Plugin Preview Screenshots
|
25 |
-
[Cloudup Gallery](https://cloudup.com/cyfImk387Ez)
|
26 |
-
|
27 |
-
|
28 |
-
#### Documentation
|
29 |
-
|
30 |
-
For full documentation, please visit [our Knowledge Base](https://yikesplugins.com/support/knowledge-base/product/easy-forms-for-mailchimp/).
|
31 |
-
|
32 |
-
####### Integrations
|
33 |
-
Easy Forms for Mailchimp integrates well with many popular third party plugins for WordPress:
|
34 |
-
|
35 |
-
* WooCommerce
|
36 |
-
* Easy Digital Downloads
|
37 |
-
* BuddyPress
|
38 |
-
* BbPress
|
39 |
-
* Contact Form 7
|
40 |
-
* Visual Composer
|
41 |
-
|
42 |
-
#### Questions?
|
43 |
-
Have any questions? Feel free to open up an issue in the issue tracker and we'll get back to you as soon as possible.
|
44 |
-
|
45 |
-
<hr />
|
46 |
-
|
47 |
-
#### Grunt.js
|
48 |
-
|
49 |
-
To develop with Grunt place Gruntfile.js file inside the plugin root during development (/wp-content/yikes-inc-easy-mailchimp-extender/). The paths inside Gruntfile.js are setup relative to the plugin root, so placing it anywhere else without changing the paths will cause an error.
|
50 |
-
|
51 |
-
First, make sure you install the latest version of Grunt to the local project directory.
|
52 |
-
|
53 |
-
```bash
|
54 |
-
$ npm install -g grunt -cli
|
55 |
-
```
|
56 |
-
|
57 |
-
```bash
|
58 |
-
$ npm install -g grunt
|
59 |
-
```
|
60 |
-
|
61 |
-
Finally, run the [install](https://www.npmjs.com/package/grunt-auto-install) task to install the required dependencies.
|
62 |
-
|
63 |
-
```bash
|
64 |
-
$ npm install
|
65 |
-
```
|
66 |
-
|
67 |
-
##### Shortcode
|
68 |
-
|
69 |
-
`[yikes-mailchimp form="#"]`
|
70 |
-
|
71 |
-
##### Full List of Shortcode Parameters
|
72 |
-
- form - the ID of the form you want to display *(required)*
|
73 |
-
- submit - the text of the submit button below the form *(optional - defaults to "Submit")*
|
74 |
-
- title - display the title above the form (1 or 0) *(optional - defaults to 0)*
|
75 |
-
- description - display the description above the form (1 or 0) *(optional - defaults to 0)*
|
76 |
-
|
77 |
-
##### API Key Constant
|
78 |
-
|
79 |
-
- A few users requested the ability to store their API key in a PHP constant, inside of wp-config.php. With version 6.1.2, users can now define a new constant inside of wp-config.php, `YIKES_MC_API_KEY`, and assign the API key there, which will then be used throughout the plugin. <em>Note: When you define the constant, you'll still need to head into the settings page and update the plugin options.</em>
|
80 |
-
|
81 |
-
Example:
|
82 |
-
`define( 'YIKES_MC_API_KEY', '12345679-us2' );`
|
83 |
-
|
84 |
-
##### CSS Ready Classes
|
85 |
-
|
86 |
-
###### 2 Column Layout
|
87 |
-
- field-left-half / field-right-half - assign this class to place the field in the left/right column of a 2 column form layout.
|
88 |
-
|
89 |
-
###### 3 Column Layout
|
90 |
-
- field-left-third / field-right-third - assign this class to place the field in the left/right most column of a 3 column form layout.
|
91 |
-
|
92 |
-
###### 2/3/4 Colum Radio Buttons
|
93 |
-
- option-2/3/4-col - split the radio or checkbox options into 2, 3 or 4 columns
|
94 |
-
|
95 |
-
|
96 |
-
##### Filters + Hooks
|
97 |
-
|
98 |
-
###### Filters
|
99 |
-
|
100 |
-
- `yikes-mailchimp-form-title` - Alter the output of the form title of the specified form. @params: $title, $form_id
|
101 |
-
- `yikes-mailchimp-form-description` - Alter the output of the form description of the specified form. @params: $description, $form_id
|
102 |
-
- `yikes-mailchimp-redirect-timer` - Alter the amount of time in *milliseconds* the user sees the success message before being redirected. Default: `1500` - @params: $time, $form_id
|
103 |
-
- `yikes-mailchimp-redirect-url` - Alter the URL of the page that the user will be redirected to on a successful submission. @params: $url, $form_id, $page_data
|
104 |
-
- `yikes-mailchimp-filter-before-submission` and `yikes-mailchimp-filter-before-submission-{$form_id}` - Catch the merge variables before they get sent over to Mailchimp. @params: $merge_variables
|
105 |
-
- `yikes-mailchimp-after-submission` and `yikes-mailchimp-after-submission-{$form_id}` - Catch the merge variables after they get sent over to Mailchimp. @params: $merge_variables
|
106 |
-
- `yikes-mailchimp-user-role-access` - Alter who can access this plugin page by capability. Default: `manage_options` - @params: $capability
|
107 |
-
- `yikes-mailchimp-international-phone-pattern` - Alter the regex pattern for acceptable international phone number formats. Default: `'[0-9,-,+]{1,}'` - @params: $regex_pattern
|
108 |
-
- `yikes-mailchimp-us-phone-pattern` - Alter the regex pattern for acceptable US phone number formats. Default: `^(\([0-9]{3}\)|[0-9]{3}-)[0-9]{3}-[0-9]{4}$` - @params: $regex_pattern
|
109 |
-
- `yikes-mailchimp-zip-pattern` - Alter the zip code regex pattern. Default: `\d{5,5}(-\d{4,4})?` - @params: $regex_pattern
|
110 |
-
- `yikes-mailchimp-process-default-tag` - Alter the default form field value for text fields. @params: $default_value
|
111 |
-
- `yikes-mailchimp-{$merge_tag}-label` - Alter the specified form field's or interest group's label text. @params: $label
|
112 |
-
- `yikes-mailchimp-{$merge_tag}-description` - Alter the specified form field's or interest group's description text (note: if targeting an interest group, it will be the group_id instead of the merge tag). @params: $description_content, $form_id.
|
113 |
-
- `yikes-mailchimp-address-{$type}-label` - Alter the field sub-label text for a specific address field (e.g. addr1). @params: $label
|
114 |
-
- `yikes-mailchimp-form-submit-button` - Alter the submit button to your liking. @params: $submit_button, $form_id
|
115 |
-
- `yikes-mailchimp-form-submit-button-text` - Alter the submit button text. Default: `submit` - @params: $submit_button_text, $form_id
|
116 |
-
- `yikes-mailchimp-form-submit-button-classes` - Add additional classes to the submit button for further styling. @params: $classes, $form_id
|
117 |
-
- `yikes-mailchimp-form-container-class` - Add additional classes to the `<section>` element container that wraps the form. @params: $class_name, $form_id
|
118 |
-
- `yikes-mailchimp-form-class` - Add additional classes to `<form>` element of your opt-in form. @params: $class_name, $form_id
|
119 |
-
- `yikes-mailchimp-front-end-form-action-links` - Add custom front end action links alongside Edit Form, Customize Form etc. @params: $form_action_links, $form_id, $form_name
|
120 |
-
- `yikes-mailchimp-custom-default-value-tags` - Define your own custom pre-defined tags to populate the default value fields with - these tags appear in the modal. @params: $pre_defined_tags_array
|
121 |
-
- `yikes-mailchimp-parse-custom-default-value` - Process your custom default merge tag into a custom value to populate the form field with (note: Goes hand in hand with `yikes-mailchimp-custom-default-value-tags` filter). @params: $default_tag
|
122 |
-
- `yikes-mailchimp-field-data` - Filter form field data such as placeholder, label, etc. @params: $field_array, $field, $form_id
|
123 |
-
- `yikes-mailchimp-subscriber-count-value` - Alter the returned value for the total subscriber count of a given Mailchimp list. @params: $subscriber_count
|
124 |
-
- `yikes-mailchimp-frontend-content` - Custom content filter for this plugin to prevent others from hooking in where not wanted.
|
125 |
-
- `yikes-mailchimp-recaptcha-parameters` - Alter any of the possible reCAPTCHA shortcode parameters. @params: $recaptcha_parameter_array, $form_id
|
126 |
-
- `yikes-mailchimp-preloader` - Add a custom preloader image. Default: WordPress's wpspin_light.gif. @params: $url_to_spinner_gif
|
127 |
-
- `yikes-mailchimp-update-email-subject` - Filter the subject line for the email that is generated and sent when a user needs to update their subscription info. @params: $email_subject
|
128 |
-
- `yikes-mailchimp-update-email-content` - Filter the content of the email that is generated and sent when a user needs to update their subscription info. @params: $email_body
|
129 |
-
- `yikes-mailchimp-success-response` - Alter *any* success response text. @params: $response_text, $form_id, $submitted_form_variables
|
130 |
-
- `yikes-mailchimp-default-country-value` - Alter the default country selected in the country dropdown. Default: `US` - @params: $country_slug
|
131 |
-
- `yikes-mailchimp-recaptcha-required-error` - Filter the error displayed back to the user when an error occurs during the reCAPTCHA submission process. @params: $error_text, $form_id
|
132 |
-
- `yikes-mailchimp-sslverify` - Toggle sslverify on/off when attempting to validate your API key with the Mailchimp API servers. Default: `true` (on) - @params: $use_ssl
|
133 |
-
- Version 6.3.0:
|
134 |
-
* `yikes-mailchimp-success-double-optin-response` - Filter the "Success: Double opt-in" custom message. @params: $message, $form_id
|
135 |
-
* `yikes-mailchimp-success-single-optin-response` - Filter the "Success: Single opt-in" custom message. @params: $message, $form_id
|
136 |
-
* `yikes-mailchimp-success-resubscribed-response` - Filter the "Success: Re-subscriber" custom message. @params: $message, $form_id
|
137 |
-
* `yikes-mailchimp-user-already-subscribed-link-text` - Filter the "Success: Re-subscriber with link to email profile update message" custom message. @params: $message, $form_id
|
138 |
-
* `yikes-mailchimp-general-error-response` - Filter the "Error: General" custom message. @params: $message, $form_id
|
139 |
-
* `yikes-mailchimp-user-already-subscribed-text` - Filter the "Error: Re-subscribers not permitted" custom message (note: this replaced `yikes-mailchimp-user-already-subscribed-error`). @params: $message, $form_id
|
140 |
-
* `yikes-mailchimp-filter-groups-before-submission` and `yikes-mailchimp-filter-groups-before-submission-{$form_id}` - Filter the interest groups before they're submitted. @params: $groups, $form_id
|
141 |
-
* `yikes-mailchimp-address-2-required` - Change the address 2 field's `required` value. Default: `''` (it is never required) - @params: $required, $form_id
|
142 |
-
* `yikes-mailchimp-filter-subscribe-request` and `yikes-mailchimp-filter-subscribe-request-{$form_id}` - Filter all of the fields sent over to the Mailchimp API (not just the form fields). @params: $subscribe_body, $form_id
|
143 |
-
* `yikesinc_eme_default_api_version` - Filter the API version. Default: `3.0` - @params: $version
|
144 |
-
* `yikesinc_eme_api_url` - Filter the URL used for a request to the Mailchimp API. @params: $full_path, $path
|
145 |
-
* `yikesinc_eme_api_user_agent` - Filter the user agent used in API request. @params: $user_agent
|
146 |
-
* `yikesinc_eme_api_auth_headers` - Filter the authentication headers used in the API request. @params: $auth_headers, $api_version
|
147 |
-
* `yikesinc_eme_api_headers` - Filter the headers used for a request to the Mailchimp API. @params: $headers, $path, $method, $params
|
148 |
-
* `yikesinc_eme_api_timeout` - Filter the timeout (in *seconds*) used when sending an API request. Default: `15` @params: $timeout
|
149 |
-
* `yikesinc_eme_api_args` - Filter the arguments used for a request to the Mailchimp API. @params: $args, $path, $method, $params
|
150 |
-
|
151 |
-
###### Hooks
|
152 |
-
|
153 |
-
- `yikes-mailchimp-form-submission` and `yikes-mailchimp-form-submission-{$form_id}` - Do something with the user email + form data on form submission. @params: $email, $merge_variables, $form_id, $notifications
|
154 |
-
- `yikes-mailchimp-after-submission` and `yikes-mailchimp-after-submission-{$form_id}` - Do something with only the $merge_variables (note: these actions are fired off directly after `yikes-mailchimp-form-submission`).
|
155 |
-
- `yikes-mailchimp-before-submission` and `yikes-mailchimp-before-submission-{$form_id}` - Do something with the $merge_variables before the API request. @params: $merge_variables
|
156 |
-
- `yikes-mailchimp-after-form` - Do something after a form has been loaded. @params: $form_id
|
157 |
-
- `yikes-mailchimp-before-checkbox` - Do something (e.g. output custom content) before the opt-in checkbox for all integrations.
|
158 |
-
- `yikes-mailchimp-after-checkbox` - Do something (e.g. output custom content) after the opt-in checkbox for all integrations
|
159 |
-
- `yikes-mailchimp-support-page` - Do something (e.g. output custom content) on the support page (note: we use this to add our support form for premium users).
|
160 |
-
- `yikes-mailchimp-edit-form-section-links` - Add additional links to the edit form page next to 'Custom Messages'.
|
161 |
-
- `yikes-mailchimp-edit-form-sections` - Add custom section to the edit form page.
|
162 |
-
- `yikes-mailchimp-edit-form-notice` - Hook to display a custom notice on the edit form page.
|
163 |
-
- `yikes-mailchimp-shortcode-enqueue-scripts-styles` - Hook to enqueue custom scripts & styles wherever the shortcode is being used. @params: $form_id
|
164 |
-
- `yikes-mailchimp-additional-form-fields` - Define additional fields to add below all forms. @params: $form_data
|
165 |
-
- `yikes-mailchimp-custom-form-actions` - Add custom action links on the manage forms page (alongside Edit, Duplicate, Shortcode, Delete). @params: $form_id
|
166 |
-
- `yikes-mailchimp-list-form-fields-metabox` - Add additional content to the 'Form Fields' metabox on the view list page.
|
167 |
-
- `yikes-mailchimp-list-interest-groups-metabox` - Add additional content inside of the interest groups metabox on the view list page.
|
168 |
-
|
169 |
-
###### Hooks for Extensions
|
170 |
-
|
171 |
-
- `yikes-mailchimp-menu` - hook to add additional menu items inside of the "Easy Mailchimp" menu item
|
172 |
-
- `yikes-mailchimp-settings-field` - hook to register additional settings fields for add-ons
|
173 |
-
- `yikes-mailchimp-ADDON-SLUG-options-path` - hook to load up a custom settings page
|
174 |
-
|
175 |
-
|
176 |
-
##### Helper Shortcodes
|
177 |
-
|
178 |
-
<strong>Display current number of subscribers</strong>
|
179 |
-
`[yikes-mailchimp-subscriber-count form="1"]`
|
180 |
-
|
181 |
-
Display the current number of subscribers for a given list. Pass in the form ID whos list you want to display. (also accepts list="mailchimp_list_id")
|
182 |
-
|
183 |
-
If you want to use the snippet inside of your form description, you can exclude the form ID and list ID altogether, and the shortcode will reference the list associated with the displayed form.
|
184 |
-
|
185 |
-
Example Form Description:
|
186 |
-
Join the `[yikes-mailchimp-subscriber-count]` happy subscribers who receive our mailing list!
|
187 |
-
|
188 |
-
which might display on the front end like:
|
189 |
-
Join the 1,543 happy subscribers who receive our mailign list!
|
190 |
-
|
191 |
-
### Custom Edit Form Sections API
|
192 |
-
Since we've built out a few add-ons to extend the base functionality, we've also built out an API to allow users to rapidly define custom sections on the edit form screen. This allows you to assign additional data to your forms.
|
193 |
-
|
194 |
-
We use this API extensively to build out additional sections on the edit form page.
|
195 |
-
|
196 |
-
Example:
|
197 |
-
|
198 |
-
<em>First hook in to the proper locations, and attach a function:</em>
|
199 |
-
```php
|
200 |
-
add_action( 'yikes-mailchimp-edit-form-section-links' , 'add_custom_section_link' );
|
201 |
-
add_action( 'yikes-mailchimp-edit-form-sections' , 'render_custom_section' );
|
202 |
-
```
|
203 |
-
<em>Next , define your sections and fields by passing in a multi-dimensional array.</em>
|
204 |
-
```php
|
205 |
-
/* Add custom link to the links (next to fields & custom messages) */
|
206 |
-
public function add_custom_section_link() {
|
207 |
-
// creating a new link on the edit form page
|
208 |
-
Yikes_Inc_Easy_Mailchimp_Extender_Helper::add_edit_form_section_link( array(
|
209 |
-
'id' => 'custom-section', // section id
|
210 |
-
'text' => 'Custom Section', // the text that will display in the link
|
211 |
-
'icon' => 'admin-appearance' // dashicon icon class
|
212 |
-
) );
|
213 |
-
|
214 |
-
// creating a new link on the edit form page
|
215 |
-
Yikes_Inc_Easy_Mailchimp_Extender_Helper::add_edit_form_section_link( array(
|
216 |
-
'id' => 'custom-section-2', // section id
|
217 |
-
'text' => 'Custom Section 2', // the text that will display in the link
|
218 |
-
'icon' => 'admin-appearance' // dashicon icon class
|
219 |
-
) );
|
220 |
-
}
|
221 |
-
|
222 |
-
/* Add custom section associated with link created above */
|
223 |
-
public static function render_custom_section() {
|
224 |
-
// defining a new section, associated with the link above
|
225 |
-
Yikes_Inc_Easy_Mailchimp_Extender_Helper::add_edit_form_section( array(
|
226 |
-
'id' => 'custom-section', // section id (must match link id above)
|
227 |
-
'main_title' => 'Main Section Title', // title of the main block of this custom section
|
228 |
-
'main_description' => __( 'This is a custom description for the main section' , 'test' ),
|
229 |
-
'main_fields' => array(
|
230 |
-
array(
|
231 |
-
'label' => 'Custom Field #1', // label text for this field
|
232 |
-
'placeholder' => 'Placeholder Value', // placeholder value for the input field
|
233 |
-
'type' => 'text', // type of field (text,select,checkbox,radio)
|
234 |
-
'id' => 'custom-field-1', // field id - determines how data is saved in database
|
235 |
-
// 'description' => __( 'Testing custom description for field #1' , 'test' ), // field description
|
236 |
-
),
|
237 |
-
array(
|
238 |
-
'label' => 'Custom Field #2', // label text for this field
|
239 |
-
'placeholder' => 'Placeholder Value #2', // placeholder value for the input field
|
240 |
-
'type' => 'text', // type of field (text,select,checkbox,radio)
|
241 |
-
'id' => 'custom-field-2', // field id - determines how data is saved in database
|
242 |
-
'description' => __( 'Testing custom description for field #2' , 'test' ), // field description
|
243 |
-
),
|
244 |
-
),
|
245 |
-
'sidebar_title' => 'Sidebar Section Title', // sidebar title of the sidebar section
|
246 |
-
'sidebar_description' => __( 'This is a custom description for the sidebar section' , 'test' ),
|
247 |
-
'sidebar_fields' => array(
|
248 |
-
array(
|
249 |
-
'label' => 'Dropdown Field',
|
250 |
-
'type' => 'select',
|
251 |
-
'options' => array(
|
252 |
-
'1' => 'one',
|
253 |
-
'2' => 'two',
|
254 |
-
'3' => 'three',
|
255 |
-
),
|
256 |
-
'id' => 'select-field',
|
257 |
-
'description' => __( 'this is a select field.' , 'test' ),
|
258 |
-
),
|
259 |
-
),
|
260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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
readme.txt
CHANGED
@@ -3,9 +3,9 @@ Contributors: yikesinc, eherman24, liljimmi, JPry, yikesitskevin, fmixell
|
|
3 |
Donate link: https://yikesplugins.com/?utm_source=wp_plugin_repo&utm_medium=donate_link&utm_campaign=easy_forms_for_mailchimp
|
4 |
Tags: Mailchimp, Mailchimp forms, Mailchimp lists, opt-in forms, sign up form, Mailchimp, email, forms, mailing lists, marketing, newsletter, sign up
|
5 |
Requires at least: 4.0
|
6 |
-
Tested up to: 5.
|
7 |
Requires PHP: 5.2.13
|
8 |
-
Stable tag: 6.6.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -172,6 +172,9 @@ For information and code examples on how to implement the hooks and filters prov
|
|
172 |
|
173 |
== Changelog ==
|
174 |
|
|
|
|
|
|
|
175 |
= 6.6.2 - November, 3, 2019 =
|
176 |
* Bug scrub WCUS! Fixed issues with adding tags on resubscribe.
|
177 |
|
3 |
Donate link: https://yikesplugins.com/?utm_source=wp_plugin_repo&utm_medium=donate_link&utm_campaign=easy_forms_for_mailchimp
|
4 |
Tags: Mailchimp, Mailchimp forms, Mailchimp lists, opt-in forms, sign up form, Mailchimp, email, forms, mailing lists, marketing, newsletter, sign up
|
5 |
Requires at least: 4.0
|
6 |
+
Tested up to: 5.4
|
7 |
Requires PHP: 5.2.13
|
8 |
+
Stable tag: 6.6.3
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
172 |
|
173 |
== Changelog ==
|
174 |
|
175 |
+
= 6.6.3 - February, 27, 2020 =
|
176 |
+
* Important security release.
|
177 |
+
|
178 |
= 6.6.2 - November, 3, 2019 =
|
179 |
* Bug scrub WCUS! Fixed issues with adding tags on resubscribe.
|
180 |
|
yikes-inc-easy-mailchimp-extender.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Easy Forms for Mailchimp
|
4 |
* Plugin URI: https://yikesplugins.com/plugin/easy-forms-for-mailchimp/
|
5 |
* Description: The ultimate Mailchimp WordPress plugin. Easily build <strong>unlimited forms for your Mailchimp lists</strong>, add them to your site and track subscriber activity. To get started, go to the settings page and enter your <a href="https://yikesplugins.com/support/knowledge-base/finding-your-mailchimp-api-key/" target="_blank">Mailchimp API key</a>.
|
6 |
-
* Version: 6.6.
|
7 |
* Author: YIKES, Inc.
|
8 |
* Author URI: https://www.yikesplugins.com/
|
9 |
* License: GPL-3.0+
|
@@ -43,7 +43,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
43 |
* @since 6.1.3
|
44 |
*/
|
45 |
if ( ! defined( 'YIKES_MC_VERSION' ) ) {
|
46 |
-
define( 'YIKES_MC_VERSION', '6.6.
|
47 |
}
|
48 |
|
49 |
/**
|
3 |
* Plugin Name: Easy Forms for Mailchimp
|
4 |
* Plugin URI: https://yikesplugins.com/plugin/easy-forms-for-mailchimp/
|
5 |
* Description: The ultimate Mailchimp WordPress plugin. Easily build <strong>unlimited forms for your Mailchimp lists</strong>, add them to your site and track subscriber activity. To get started, go to the settings page and enter your <a href="https://yikesplugins.com/support/knowledge-base/finding-your-mailchimp-api-key/" target="_blank">Mailchimp API key</a>.
|
6 |
+
* Version: 6.6.3
|
7 |
* Author: YIKES, Inc.
|
8 |
* Author URI: https://www.yikesplugins.com/
|
9 |
* License: GPL-3.0+
|
43 |
* @since 6.1.3
|
44 |
*/
|
45 |
if ( ! defined( 'YIKES_MC_VERSION' ) ) {
|
46 |
+
define( 'YIKES_MC_VERSION', '6.6.3' );
|
47 |
}
|
48 |
|
49 |
/**
|