Easy Forms for MailChimp - Version 6.4.10

Version Description

  • November 26th, 2018 =
  • Improvements to the Easy Forms' Gutenberg block.
Download this release

Release Info

Developer yikesitskevin
Plugin Icon 128x128 Easy Forms for MailChimp
Version 6.4.10
Comparing to
See all releases

Code changes from version 6.4.9 to 6.4.10

blocks/api/api.php CHANGED
@@ -11,6 +11,24 @@ class YIKES_Easy_Forms_Blocks_API {
11
  add_action( 'wp_ajax_yikes_get_forms', array( $this, 'get_forms' ) );
12
  add_action( 'wp_ajax_yikes_get_form', array( $this, 'get_form' ) );
13
  add_action( 'wp_ajax_yikes_get_recaptcha', array( $this, 'get_recaptcha' ) );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  }
15
 
16
  /**
11
  add_action( 'wp_ajax_yikes_get_forms', array( $this, 'get_forms' ) );
12
  add_action( 'wp_ajax_yikes_get_form', array( $this, 'get_form' ) );
13
  add_action( 'wp_ajax_yikes_get_recaptcha', array( $this, 'get_recaptcha' ) );
14
+ add_action( 'wp_ajax_yikes_get_api_key_status', array( $this, 'get_api_key_status' ) );
15
+ }
16
+
17
+ /**
18
+ * Verify API Key.
19
+ */
20
+ public function get_api_key_status() {
21
+
22
+ // Verify Nonce.
23
+ if ( ! check_ajax_referer( 'get_api_key_status', 'nonce', false ) ) {
24
+ wp_send_json_error( '1' );
25
+ }
26
+
27
+ // Get our API key's status.
28
+ $status = get_option( 'yikes-mc-api-validation', false );
29
+ $status = empty( $status ) ? 'empty' : ( 'invalid_api_key' === $status ? 'invalid' : 'valid' );
30
+
31
+ wp_send_json_success( $status );
32
  }
33
 
34
  /**
blocks/blocks.php CHANGED
@@ -9,10 +9,20 @@ add_action( 'init', 'yikes_maybe_activate_blocks' );
9
  function yikes_maybe_activate_blocks() {
10
  include ABSPATH . WPINC . '/version.php';
11
  if ( version_compare( PHP_VERSION, '5.6.0', '>=' ) && ( function_exists( 'gutenberg_init' ) || isset( $wp_version ) && version_compare( $wp_version, '5.0.0', '>=' ) ) ) {
12
- require_once YIKES_MC_PATH . 'blocks/api/api.php';
13
- require_once YIKES_MC_PATH . 'blocks/easy-forms-block/easy-forms-block.php';
14
- $yikes_easy_form_block = new YIKES_Easy_Form_Block();
15
- $yikes_easy_form_blocks_api = new YIKES_Easy_Forms_Blocks_API();
 
 
 
 
 
 
 
 
 
 
16
  }
17
  }
18
 
9
  function yikes_maybe_activate_blocks() {
10
  include ABSPATH . WPINC . '/version.php';
11
  if ( version_compare( PHP_VERSION, '5.6.0', '>=' ) && ( function_exists( 'gutenberg_init' ) || isset( $wp_version ) && version_compare( $wp_version, '5.0.0', '>=' ) ) ) {
12
+
13
+ // Wrap the init of block functionality into a Try/Catch until everything is stable.
14
+ try {
15
+ require_once YIKES_MC_PATH . 'blocks/api/api.php';
16
+ require_once YIKES_MC_PATH . 'blocks/easy-forms-block/easy-forms-block.php';
17
+ $yikes_easy_form_block = new YIKES_Easy_Form_Block();
18
+ $yikes_easy_form_blocks_api = new YIKES_Easy_Forms_Blocks_API();
19
+ } catch ( Exception $e ) {
20
+ $error_logging = new Yikes_Inc_Easy_Mailchimp_Error_Logging();
21
+ $error_logging->maybe_write_to_log( $e->getMessage(),
22
+ __( 'Error initializing the Easy Forms\' Gutenberg block functions.', 'yikes-inc-easy-mailchimp-extender' ),
23
+ 'blocks.php'
24
+ );
25
+ }
26
  }
27
  }
28
 
blocks/components/api.js ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 CHANGED
@@ -1,15 +1,7 @@
1
  // Import dependencies
2
- import yikes_easy_forms_fetch_forms from './get-forms.js';
3
-
4
- import get_recaptcha from './get-recaptcha.js';
5
-
6
  import slugify from './slugify.js';
7
-
8
- import countries from './countries.js';
9
-
10
- import states from './states.js';
11
-
12
- import locales from './locales.js';
13
 
14
  // Get functions / blocks / components
15
  const Recaptcha = require( 'react-recaptcha' );
@@ -23,12 +15,16 @@ export default class MailChimpForms extends Component {
23
  constructor( props ) {
24
  super( ...arguments );
25
  this.state = {
 
26
  forms : [],
27
  recaptcha_data: {
28
  data : {},
29
  success: false
30
- }
 
31
  }
 
 
32
 
33
  this.address_fields = {
34
  'addr1' : 'Address 1',
@@ -44,14 +40,17 @@ export default class MailChimpForms extends Component {
44
  * Run our API calls after the component has mounted. You can't use setState before a component is mounted.
45
  */
46
  componentDidMount() {
47
- yikes_easy_forms_fetch_forms()
48
- .then( forms => {
49
- this.setState( { forms: forms.data } );
 
 
 
50
  });
51
 
52
- get_recaptcha()
53
- .then( recaptcha_data => {
54
- this.setState( { recaptcha_data: recaptcha_data } );
55
  });
56
  }
57
 
@@ -198,7 +197,7 @@ export default class MailChimpForms extends Component {
198
  <label
199
  htmlFor="recaptcha-language-form-toggle"
200
  className="blocks-base-control__label"
201
- title={ this.state.recaptcha_data.data ? 'The default language for your locale is ' + locales[ this.state.recaptcha_data.data.locale ] : '' }
202
  >
203
  { __( 'reCAPTCHA Language' ) }
204
  </label>
@@ -206,8 +205,8 @@ export default class MailChimpForms extends Component {
206
  id="recaptcha-language-form-toggle"
207
  value={ this.props.recaptchaLang.length > 0 ? this.props.recaptchaLang : ( this.state.recaptcha_data.data ? this.state.recaptcha_data.data.locale : '' ) }
208
  onChange={ this.props.toggleRecaptchaLang }
209
- title={ this.state.recaptcha_data.data ? 'The default language for your locale is ' + locales[ this.state.recaptcha_data.data.locale ] : '' }
210
- options={ Object.keys( locales ).map( ( key ) => { return { value: key, label: locales[key] } }) }
211
  />
212
  </PanelRow>
213
  )
@@ -359,8 +358,8 @@ export default class MailChimpForms extends Component {
359
  value=''
360
  required={ field.merge === 'EMAIL' || field.require === '1' ? 'required' : false }
361
  >
362
- { Object.keys( states ).map( ( key ) => {
363
- var choice = states[ key ];
364
  return <option key={ 'state-' + key } value={ key }>{ choice }</option>
365
  })}
366
 
@@ -379,8 +378,8 @@ export default class MailChimpForms extends Component {
379
  value=''
380
  required={ field.merge === 'EMAIL' || field.require === '1' ? 'required' : false }
381
  >
382
- { Object.keys( countries ).map( ( key ) => {
383
- var choice = countries[ key ];
384
  return <option key={ 'country-' + key } value={ key }>{ choice }</option>
385
  })}
386
 
@@ -842,12 +841,28 @@ export default class MailChimpForms extends Component {
842
  </div>
843
  );
844
 
845
- } else {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
846
 
847
- // Show loading... & spinner
848
  return (
849
  <p key="loading-easy-forms" className={ this.props.className }>
850
- <span key="yikes-easy-forms-loading-text">Loading...</span>
851
  <Spinner key="yikes-easy-forms-loading-spinner" />
852
  </p>
853
  );
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' );
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',
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
 
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>
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
  )
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
 
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
 
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
  );
blocks/components/constants.js ADDED
@@ -0,0 +1,390 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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;
blocks/components/countries.js DELETED
@@ -1,248 +0,0 @@
1
- const countries = {
2
- 'US': 'United States',
3
- 'GB': 'United Kingdom',
4
- 'AF': 'Afghanistan',
5
- 'AX': 'Aland Islands',
6
- 'AL': 'Albania',
7
- 'DZ': 'Algeria',
8
- 'AS': 'American Samoa',
9
- 'AD': 'Andorra',
10
- 'AO': 'Angola',
11
- 'AI': 'Anguilla',
12
- 'AQ': 'Antarctica',
13
- 'AG': 'Antigua and Barbuda',
14
- 'AR': 'Argentina',
15
- 'AM': 'Armenia',
16
- 'AW': 'Aruba',
17
- 'AU': 'Australia',
18
- 'AT': 'Austria',
19
- 'AZ': 'Azerbaijan',
20
- 'BS': 'Bahamas',
21
- 'BH': 'Bahrain',
22
- 'BD': 'Bangladesh',
23
- 'BB': 'Barbados',
24
- 'BY': 'Belarus',
25
- 'BE': 'Belgium',
26
- 'BZ': 'Belize',
27
- 'BJ': 'Benin',
28
- 'BM': 'Bermuda',
29
- 'BT': 'Bhutan',
30
- 'BO': 'Bolivia',
31
- 'BA': 'Bosnia and Herzegovina',
32
- 'BW': 'Botswana',
33
- 'BV': 'Bouvet Island',
34
- 'BR': 'Brazil',
35
- 'IO': 'British Indian Ocean Territory',
36
- 'BN': 'Brunei Darussalam',
37
- 'BG': 'Bulgaria',
38
- 'BF': 'Burkina Faso',
39
- 'BI': 'Burundi',
40
- 'KH': 'Cambodia',
41
- 'CM': 'Cameroon',
42
- 'CA': 'Canada',
43
- 'CV': 'Cape Verde',
44
- 'KY': 'Cayman Islands',
45
- 'CF': 'Central African Republic',
46
- 'TD': 'Chad',
47
- 'CL': 'Chile',
48
- 'CN': 'China',
49
- 'CX': 'Christmas Island',
50
- 'CC': 'Cocos (Keeling) Islands',
51
- 'CO': 'Colombia',
52
- 'KM': 'Comoros',
53
- 'CG': 'Congo',
54
- 'CD': 'Congo, The Democratic Republic of The',
55
- 'CK': 'Cook Islands',
56
- 'CR': 'Costa Rica',
57
- 'CI': 'Cote D’ivoire',
58
- 'HR': 'Croatia',
59
- 'CU': 'Cuba',
60
- 'CY': 'Cyprus',
61
- 'CZ': 'Czech Republic',
62
- 'DK': 'Denmark',
63
- 'DJ': 'Djibouti',
64
- 'DM': 'Dominica',
65
- 'DO': 'Dominican Republic',
66
- 'EC': 'Ecuador',
67
- 'EG': 'Egypt',
68
- 'SV': 'El Salvador',
69
- 'GQ': 'Equatorial Guinea',
70
- 'ER': 'Eritrea',
71
- 'EE': 'Estonia',
72
- 'ET': 'Ethiopia',
73
- 'FK': 'Falkland Islands (Malvinas)',
74
- 'FO': 'Faroe Islands',
75
- 'FJ': 'Fiji',
76
- 'FI': 'Finland',
77
- 'FR': 'France',
78
- 'GF': 'French Guiana',
79
- 'PF': 'French Polynesia',
80
- 'TF': 'French Southern Territories',
81
- 'GA': 'Gabon',
82
- 'GM': 'Gambia',
83
- 'GE': 'Georgia',
84
- 'DE': 'Germany',
85
- 'GH': 'Ghana',
86
- 'GI': 'Gibraltar',
87
- 'GR': 'Greece',
88
- 'GL': 'Greenland',
89
- 'GD': 'Grenada',
90
- 'GP': 'Guadeloupe',
91
- 'GU': 'Guam',
92
- 'GT': 'Guatemala',
93
- 'GG': 'Guernsey',
94
- 'GN': 'Guinea',
95
- 'GW': 'Guinea-bissau',
96
- 'GY': 'Guyana',
97
- 'HT': 'Haiti',
98
- 'HM': 'Heard Island and Mcdonald Islands',
99
- 'VA': 'Holy See (Vatican City State)',
100
- 'HN': 'Honduras',
101
- 'HK': 'Hong Kong',
102
- 'HU': 'Hungary',
103
- 'IS': 'Iceland',
104
- 'IN': 'India',
105
- 'ID': 'Indonesia',
106
- 'IR': 'Iran, Islamic Republic of',
107
- 'IQ': 'Iraq',
108
- 'IE': 'Ireland',
109
- 'IM': 'Isle of Man',
110
- 'IL': 'Israel',
111
- 'IT': 'Italy',
112
- 'JM': 'Jamaica',
113
- 'JP': 'Japan',
114
- 'JE': 'Jersey',
115
- 'JO': 'Jordan',
116
- 'KZ': 'Kazakhstan',
117
- 'KE': 'Kenya',
118
- 'KI': 'Kiribati',
119
- 'KP': 'Korea, Democratic People’s Republic of',
120
- 'KR': 'Korea, Republic of',
121
- 'KW': 'Kuwait',
122
- 'KG': 'Kyrgyzstan',
123
- 'LA': 'Lao People’s Democratic Republic',
124
- 'LV': 'Latvia',
125
- 'LB': 'Lebanon',
126
- 'LS': 'Lesotho',
127
- 'LR': 'Liberia',
128
- 'LY': 'Libyan Arab Jamahiriya',
129
- 'LI': 'Liechtenstein',
130
- 'LT': 'Lithuania',
131
- 'LU': 'Luxembourg',
132
- 'MO': 'Macao',
133
- 'MK': 'Macedonia, The Former Yugoslav Republic of',
134
- 'MG': 'Madagascar',
135
- 'MW': 'Malawi',
136
- 'MY': 'Malaysia',
137
- 'MV': 'Maldives',
138
- 'ML': 'Mali',
139
- 'MT': 'Malta',
140
- 'MH': 'Marshall Islands',
141
- 'MQ': 'Martinique',
142
- 'MR': 'Mauritania',
143
- 'MU': 'Mauritius',
144
- 'YT': 'Mayotte',
145
- 'MX': 'Mexico',
146
- 'FM': 'Micronesia, Federated States of',
147
- 'MD': 'Moldova, Republic of',
148
- 'MC': 'Monaco',
149
- 'MN': 'Mongolia',
150
- 'ME': 'Montenegro',
151
- 'MS': 'Montserrat',
152
- 'MA': 'Morocco',
153
- 'MZ': 'Mozambique',
154
- 'MM': 'Myanmar',
155
- 'NA': 'Namibia',
156
- 'NR': 'Nauru',
157
- 'NP': 'Nepal',
158
- 'NL': 'Netherlands',
159
- 'AN': 'Netherlands Antilles',
160
- 'NC': 'New Caledonia',
161
- 'NZ': 'New Zealand',
162
- 'NI': 'Nicaragua',
163
- 'NE': 'Niger',
164
- 'NG': 'Nigeria',
165
- 'NU': 'Niue',
166
- 'NF': 'Norfolk Island',
167
- 'MP': 'Northern Mariana Islands',
168
- 'NO': 'Norway',
169
- 'OM': 'Oman',
170
- 'PK': 'Pakistan',
171
- 'PW': 'Palau',
172
- 'PS': 'Palestinian Territory, Occupied',
173
- 'PA': 'Panama',
174
- 'PG': 'Papua New Guinea',
175
- 'PY': 'Paraguay',
176
- 'PE': 'Peru',
177
- 'PH': 'Philippines',
178
- 'PN': 'Pitcairn',
179
- 'PL': 'Poland',
180
- 'PT': 'Portugal',
181
- 'PR': 'Puerto Rico',
182
- 'QA': 'Qatar',
183
- 'RE': 'Reunion',
184
- 'RO': 'Romania',
185
- 'RU': 'Russian Federation',
186
- 'RW': 'Rwanda',
187
- 'SH': 'Saint Helena',
188
- 'KN': 'Saint Kitts and Nevis',
189
- 'LC': 'Saint Lucia',
190
- 'PM': 'Saint Pierre and Miquelon',
191
- 'VC': 'Saint Vincent and The Grenadines',
192
- 'WS': 'Samoa',
193
- 'SM': 'San Marino',
194
- 'ST': 'Sao Tome and Principe',
195
- 'SA': 'Saudi Arabia',
196
- 'SN': 'Senegal',
197
- 'RS': 'Serbia',
198
- 'SC': 'Seychelles',
199
- 'SL': 'Sierra Leone',
200
- 'SG': 'Singapore',
201
- 'SK': 'Slovakia',
202
- 'SI': 'Slovenia',
203
- 'SB': 'Solomon Islands',
204
- 'SO': 'Somalia',
205
- 'ZA': 'South Africa',
206
- 'GS': 'South Georgia and The South Sandwich Islands',
207
- 'ES': 'Spain',
208
- 'LK': 'Sri Lanka',
209
- 'SD': 'Sudan',
210
- 'SR': 'Suriname',
211
- 'SJ': 'Svalbard and Jan Mayen',
212
- 'SZ': 'Swaziland',
213
- 'SE': 'Sweden',
214
- 'CH': 'Switzerland',
215
- 'SY': 'Syrian Arab Republic',
216
- 'TW': 'Taiwan, Province of China',
217
- 'TJ': 'Tajikistan',
218
- 'TZ': 'Tanzania, United Republic of',
219
- 'TH': 'Thailand',
220
- 'TL': 'Timor-leste',
221
- 'TG': 'Togo',
222
- 'TK': 'Tokelau',
223
- 'TO': 'Tonga',
224
- 'TT': 'Trinidad and Tobago',
225
- 'TN': 'Tunisia',
226
- 'TR': 'Turkey',
227
- 'TM': 'Turkmenistan',
228
- 'TC': 'Turks and Caicos Islands',
229
- 'TV': 'Tuvalu',
230
- 'UG': 'Uganda',
231
- 'UA': 'Ukraine',
232
- 'AE': 'United Arab Emirates',
233
- 'UM': 'United States Minor Outlying Islands',
234
- 'UY': 'Uruguay',
235
- 'UZ': 'Uzbekistan',
236
- 'VU': 'Vanuatu',
237
- 'VE': 'Venezuela',
238
- 'VN': 'Viet Nam',
239
- 'VG': 'Virgin Islands, British',
240
- 'VI': 'Virgin Islands, U.S.',
241
- 'WF': 'Wallis and Futuna',
242
- 'EH': 'Western Sahara',
243
- 'YE': 'Yemen',
244
- 'ZM': 'Zambia',
245
- 'ZW': 'Zimbabwe',
246
- }
247
-
248
- export default countries;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
blocks/components/get-form.js DELETED
@@ -1,11 +0,0 @@
1
- export default function yikes_easy_forms_fetch_form( form_id ) {
2
- let data = {
3
- action: 'yikes_get_form',
4
- form_id: form_id,
5
- nonce: ez_forms_gb_data.fetch_form_nonce
6
- }
7
-
8
- let form = $.post( ez_forms_gb_data.ajax_url, data );
9
-
10
- return form;
11
- }
 
 
 
 
 
 
 
 
 
 
 
blocks/components/get-forms.js DELETED
@@ -1,11 +0,0 @@
1
- export default function yikes_easy_forms_fetch_forms() {
2
-
3
- let data = {
4
- action: 'yikes_get_forms',
5
- nonce: ez_forms_gb_data.fetch_forms_nonce,
6
- }
7
-
8
- let forms = $.post( ez_forms_gb_data.ajax_url, data );
9
-
10
- return forms;
11
- }
 
 
 
 
 
 
 
 
 
 
 
blocks/components/get-recaptcha.js DELETED
@@ -1,11 +0,0 @@
1
- export default function get_recaptcha() {
2
-
3
- let data = {
4
- action: 'yikes_get_recaptcha',
5
- nonce: ez_forms_gb_data.fetch_recaptcha_nonce
6
- }
7
-
8
- let recaptcha_data = $.post( ez_forms_gb_data.ajax_url, data );
9
-
10
- return recaptcha_data;
11
- }
 
 
 
 
 
 
 
 
 
 
 
blocks/components/locales.js DELETED
@@ -1,74 +0,0 @@
1
- const locales = {
2
- "ar" : "Arabic",
3
- "af" : "Afrikaans",
4
- "am" : "Amharic",
5
- "hy" : "Armenian",
6
- "az" : "Azerbaijani",
7
- "eu" : "Basque",
8
- "bn" : "Bengali",
9
- "bg" : "Bulgarian",
10
- "ca" : "Catalan",
11
- "zh-HK" : "Chinese (Hong Kong)",
12
- "zh-CN" : "Chinese (Simplified)",
13
- "zh-TW" : "Chinese (Traditional)",
14
- "hr" : "Croatian",
15
- "cs" : "Czech",
16
- "da" : "Danish",
17
- "nl" : "Dutch",
18
- "en-GB" : "English (UK)",
19
- "en" : "English (US)",
20
- "et" : "Estonian",
21
- "fil" : "Filipino",
22
- "fi" : "Finnish",
23
- "fr" : "French",
24
- "fr-CA" : "French (Canadian)",
25
- "gl" : "Galician",
26
- "ka" : "Georgian",
27
- "de" : "German",
28
- "de-AT" : "German (Austria)",
29
- "de-CH" : "German (Switzerland)",
30
- "el" : "Greek",
31
- "gu" : "Gujarati",
32
- "iw" : "Hebrew",
33
- "hi" : "Hindi",
34
- "hu" : "Hungarain",
35
- "is" : "Icelandic",
36
- "id" : "Indonesian",
37
- "it" : "Italian",
38
- "ja" : "Japanese",
39
- "kn" : "Kannada",
40
- "ko" : "Korean",
41
- "lo" : "Laothian",
42
- "lv" : "Latvian",
43
- "lt" : "Lithuanian",
44
- "ms" : "Malay",
45
- "ml" : "Malayalam",
46
- "mr" : "Marathi",
47
- "mn" : "Mongolian",
48
- "no" : "Norwegian",
49
- "fa" : "Persian",
50
- "pl" : "Polish",
51
- "pt" : "Portuguese",
52
- "pt-BR" : "Portuguese (Brazil)",
53
- "pt-PT" : "Portuguese (Portugal)",
54
- "ro" : "Romanian",
55
- "ru" : "Russian",
56
- "sr" : "Serbian",
57
- "si" : "Sinhalese",
58
- "sk" : "Slovak",
59
- "sl" : "Slovenian",
60
- "es" : "Spanish",
61
- "es-419" : "Spanish (Latin America)",
62
- "sw" : "Swahili",
63
- "sv" : "Swedish",
64
- "ta" : "Tamil",
65
- "te" : "Telugu",
66
- "th" : "Thai",
67
- "tr" : "Turkish",
68
- "uk" : "Ukrainian",
69
- "ur" : "Urdu",
70
- "vi" : "Vietnamese",
71
- "zu" : "Zulu"
72
- }
73
-
74
- export default locales;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
blocks/components/states.js DELETED
@@ -1,69 +0,0 @@
1
- const states = {
2
- '': '—',
3
- 'AL': 'Alabama',
4
- 'AK': 'Alaska',
5
- 'AZ': 'Arizona',
6
- 'AR': 'Arkansas',
7
- 'CA': 'California',
8
- 'CO': 'Colorado',
9
- 'CT': 'Connecticut',
10
- 'DE': 'Delaware',
11
- 'DC': 'District Of Columbia',
12
- 'FL': 'Florida',
13
- 'GA': 'Georgia',
14
- 'HI': 'Hawaii',
15
- 'ID': 'Idaho',
16
- 'IL': 'Illinois',
17
- 'IN': 'Indiana',
18
- 'IA': 'Iowa',
19
- 'KS': 'Kansas',
20
- 'KY': 'Kentucky',
21
- 'LA': 'Louisiana',
22
- 'ME': 'Maine',
23
- 'MD': 'Maryland',
24
- 'MA': 'Massachusetts',
25
- 'MI': 'Michigan',
26
- 'MN': 'Minnesota',
27
- 'MS': 'Mississippi',
28
- 'MO': 'Missouri',
29
- 'MT': 'Montana',
30
- 'NE': 'Nebraska',
31
- 'NV': 'Nevada',
32
- 'NH': 'New Hampshire',
33
- 'NJ': 'New Jersey',
34
- 'NM': 'New Mexico',
35
- 'NY': 'New York',
36
- 'NC': 'North Carolina',
37
- 'ND': 'North Dakota',
38
- 'OH': 'Ohio',
39
- 'OK': 'Oklahoma',
40
- 'OR': 'Oregon',
41
- 'PA': 'Pennsylvania',
42
- 'RI': 'Rhode Island',
43
- 'SC': 'South Carolina',
44
- 'SD': 'South Dakota',
45
- 'TN': 'Tennessee',
46
- 'TX': 'Texas',
47
- 'UT': 'Utah',
48
- 'VT': 'Vermont',
49
- 'VA': 'Virginia',
50
- 'WA': 'Washington',
51
- 'WV': 'West Virginia',
52
- 'WI': 'Wisconsin',
53
- 'WY': 'Wyoming',
54
- 'AB': 'Alberta',
55
- 'BC': 'British Columbia',
56
- 'MB': 'Manitoba',
57
- 'NB': 'New Brunswick',
58
- 'NL': 'Newfoundland and Labrador',
59
- 'NS': 'Nova Scotia',
60
- 'ON': 'Ontario',
61
- 'PE': 'Prince Edward Island',
62
- 'QC': 'Quebec',
63
- 'SK': 'Saskatchewan',
64
- 'NT': 'Northwest Territories',
65
- 'NU': 'Nunavut',
66
- 'YT': 'Yukon',
67
- }
68
-
69
- export default states;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
blocks/easy-forms-block/dev-easy-forms-block.js CHANGED
@@ -1,4 +1,4 @@
1
- import yikes_easy_forms_fetch_form from '../components/get-form.js'
2
 
3
  import MailChimpForms from '../components/class.MailChimpForms.js';
4
 
@@ -18,7 +18,8 @@ const edit_easy_form = function( props ) {
18
  props.setAttributes( { form_id: event.target.value } );
19
 
20
  if ( event.target.value.length > 0 ) {
21
- yikes_easy_forms_fetch_form( event.target.value ).then( function( form ) {
 
22
  props.setAttributes( { form: form.data } );
23
  props.setAttributes( { form_description: form.data.form_description } );
24
  props.setAttributes( { form_title: form.data.form_name } );
@@ -52,8 +53,13 @@ const edit_easy_form = function( props ) {
52
  props.setAttributes( { is_ajax: !! event.target.checked } );
53
  }
54
 
 
 
 
 
 
55
  const toggleRecaptcha = ( event ) => {
56
- props.setAttributes( { recaptcha: !! event.target.checked } );
57
  }
58
 
59
  const toggleRecaptchaTheme = ( value ) => {
@@ -103,6 +109,7 @@ const edit_easy_form = function( props ) {
103
  toggleShowTitle={ toggleShowTitle }
104
  isAjax={ props.attributes.is_ajax }
105
  toggleIsAjax={ toggleIsAjax }
 
106
  recaptcha={ props.attributes.recaptcha }
107
  toggleRecaptcha={ toggleRecaptcha }
108
  recaptchaTheme={ props.attributes.recaptcha_theme }
@@ -167,7 +174,7 @@ const settings = {
167
  },
168
  recaptcha: {
169
  type: 'boolean',
170
- default: true,
171
  },
172
  recaptcha_theme: {
173
  type: 'string',
1
+ import EasyFormsAPI from '../components/api.js'
2
 
3
  import MailChimpForms from '../components/class.MailChimpForms.js';
4
 
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 } );
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 ) => {
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 }
174
  },
175
  recaptcha: {
176
  type: 'boolean',
177
+ default: false,
178
  },
179
  recaptcha_theme: {
180
  type: 'string',
blocks/easy-forms-block/easy-forms-block.js CHANGED
@@ -36,19 +36,34 @@
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, {
40
- /******/ configurable: false,
41
- /******/ enumerable: true,
42
- /******/ get: getter
43
- /******/ });
44
  /******/ }
45
  /******/ };
46
  /******/
47
  /******/ // define __esModule on exports
48
  /******/ __webpack_require__.r = function(exports) {
 
 
 
49
  /******/ Object.defineProperty(exports, '__esModule', { value: true });
50
  /******/ };
51
  /******/
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
52
  /******/ // getDefaultExport function for compatibility with non-harmony modules
53
  /******/ __webpack_require__.n = function(module) {
54
  /******/ var getter = module && module.__esModule ?
@@ -71,6 +86,89 @@
71
  /************************************************************************/
72
  /******/ ({
73
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
74
  /***/ "./blocks/components/class.MailChimpForms.js":
75
  /*!***************************************************!*\
76
  !*** ./blocks/components/class.MailChimpForms.js ***!
@@ -91,29 +189,17 @@ var _classnames2 = _interopRequireDefault(_classnames);
91
 
92
  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; }; }();
93
 
94
- var _getForms = __webpack_require__(/*! ./get-forms.js */ "./blocks/components/get-forms.js");
95
-
96
- var _getForms2 = _interopRequireDefault(_getForms);
97
-
98
- var _getRecaptcha = __webpack_require__(/*! ./get-recaptcha.js */ "./blocks/components/get-recaptcha.js");
99
-
100
- var _getRecaptcha2 = _interopRequireDefault(_getRecaptcha);
101
-
102
  var _slugify = __webpack_require__(/*! ./slugify.js */ "./blocks/components/slugify.js");
103
 
104
  var _slugify2 = _interopRequireDefault(_slugify);
105
 
106
- var _countries = __webpack_require__(/*! ./countries.js */ "./blocks/components/countries.js");
107
-
108
- var _countries2 = _interopRequireDefault(_countries);
109
 
110
- var _states = __webpack_require__(/*! ./states.js */ "./blocks/components/states.js");
111
 
112
- var _states2 = _interopRequireDefault(_states);
113
 
114
- var _locales = __webpack_require__(/*! ./locales.js */ "./blocks/components/locales.js");
115
-
116
- var _locales2 = _interopRequireDefault(_locales);
117
 
118
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
119
 
@@ -152,13 +238,17 @@ var MailChimpForms = function (_Component) {
152
  var _this = _possibleConstructorReturn(this, (MailChimpForms.__proto__ || Object.getPrototypeOf(MailChimpForms)).apply(this, arguments));
153
 
154
  _this.state = {
 
155
  forms: [],
156
  recaptcha_data: {
157
  data: {},
158
  success: false
159
- }
 
160
  };
161
 
 
 
162
  _this.address_fields = {
163
  'addr1': 'Address 1',
164
  'addr2': 'Address 2',
@@ -180,12 +270,17 @@ var MailChimpForms = function (_Component) {
180
  value: function componentDidMount() {
181
  var _this2 = this;
182
 
183
- (0, _getForms2.default)().then(function (forms) {
184
- _this2.setState({ forms: forms.data });
185
  });
186
 
187
- (0, _getRecaptcha2.default)().then(function (recaptcha_data) {
 
 
 
 
188
  _this2.setState({ recaptcha_data: recaptcha_data });
 
189
  });
190
  }
191
  }, {
@@ -346,7 +441,7 @@ var MailChimpForms = function (_Component) {
346
  {
347
  htmlFor: 'recaptcha-language-form-toggle',
348
  className: 'blocks-base-control__label',
349
- title: this.state.recaptcha_data.data ? 'The default language for your locale is ' + _locales2.default[this.state.recaptcha_data.data.locale] : ''
350
  },
351
  __('reCAPTCHA Language')
352
  ),
@@ -354,9 +449,9 @@ var MailChimpForms = function (_Component) {
354
  id: 'recaptcha-language-form-toggle',
355
  value: this.props.recaptchaLang.length > 0 ? this.props.recaptchaLang : this.state.recaptcha_data.data ? this.state.recaptcha_data.data.locale : '',
356
  onChange: this.props.toggleRecaptchaLang,
357
- title: this.state.recaptcha_data.data ? 'The default language for your locale is ' + _locales2.default[this.state.recaptcha_data.data.locale] : '',
358
- options: Object.keys(_locales2.default).map(function (key) {
359
- return { value: key, label: _locales2.default[key] };
360
  })
361
  })
362
  ) : '';
@@ -510,8 +605,8 @@ var MailChimpForms = function (_Component) {
510
  value: '',
511
  required: field.merge === 'EMAIL' || field.require === '1' ? 'required' : false
512
  },
513
- Object.keys(_states2.default).map(function (key) {
514
- var choice = _states2.default[key];
515
  return wp.element.createElement(
516
  'option',
517
  { key: 'state-' + key, value: key },
@@ -533,8 +628,8 @@ var MailChimpForms = function (_Component) {
533
  value: '',
534
  required: field.merge === 'EMAIL' || field.require === '1' ? 'required' : false
535
  },
536
- Object.keys(_countries2.default).map(function (key) {
537
- var choice = _countries2.default[key];
538
  return wp.element.createElement(
539
  'option',
540
  { key: 'country-' + key, value: key },
@@ -997,16 +1092,46 @@ var MailChimpForms = function (_Component) {
997
  { className: (0, _classnames2.default)(this.props.className) },
998
  this.forms_dropdown()
999
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1000
  } else {
1001
 
1002
- // Show loading... & spinner
1003
  return wp.element.createElement(
1004
  'p',
1005
  { key: 'loading-easy-forms', className: (0, _classnames2.default)(this.props.className) },
1006
  wp.element.createElement(
1007
  'span',
1008
  { key: 'yikes-easy-forms-loading-text' },
1009
- 'Loading...'
1010
  ),
1011
  wp.element.createElement(Spinner, { key: 'yikes-easy-forms-loading-spinner' })
1012
  );
@@ -1021,9 +1146,9 @@ exports.default = MailChimpForms;
1021
 
1022
  /***/ }),
1023
 
1024
- /***/ "./blocks/components/countries.js":
1025
  /*!****************************************!*\
1026
- !*** ./blocks/components/countries.js ***!
1027
  \****************************************/
1028
  /*! no static exports found */
1029
  /***/ (function(module, exports, __webpack_require__) {
@@ -1034,254 +1159,400 @@ exports.default = MailChimpForms;
1034
  Object.defineProperty(exports, "__esModule", {
1035
  value: true
1036
  });
1037
- var countries = {
1038
- 'US': 'United States',
1039
- 'GB': 'United Kingdom',
1040
- 'AF': 'Afghanistan',
1041
- 'AX': 'Aland Islands',
1042
- 'AL': 'Albania',
1043
- 'DZ': 'Algeria',
1044
- 'AS': 'American Samoa',
1045
- 'AD': 'Andorra',
1046
- 'AO': 'Angola',
1047
- 'AI': 'Anguilla',
1048
- 'AQ': 'Antarctica',
1049
- 'AG': 'Antigua and Barbuda',
1050
- 'AR': 'Argentina',
1051
- 'AM': 'Armenia',
1052
- 'AW': 'Aruba',
1053
- 'AU': 'Australia',
1054
- 'AT': 'Austria',
1055
- 'AZ': 'Azerbaijan',
1056
- 'BS': 'Bahamas',
1057
- 'BH': 'Bahrain',
1058
- 'BD': 'Bangladesh',
1059
- 'BB': 'Barbados',
1060
- 'BY': 'Belarus',
1061
- 'BE': 'Belgium',
1062
- 'BZ': 'Belize',
1063
- 'BJ': 'Benin',
1064
- 'BM': 'Bermuda',
1065
- 'BT': 'Bhutan',
1066
- 'BO': 'Bolivia',
1067
- 'BA': 'Bosnia and Herzegovina',
1068
- 'BW': 'Botswana',
1069
- 'BV': 'Bouvet Island',
1070
- 'BR': 'Brazil',
1071
- 'IO': 'British Indian Ocean Territory',
1072
- 'BN': 'Brunei Darussalam',
1073
- 'BG': 'Bulgaria',
1074
- 'BF': 'Burkina Faso',
1075
- 'BI': 'Burundi',
1076
- 'KH': 'Cambodia',
1077
- 'CM': 'Cameroon',
1078
- 'CA': 'Canada',
1079
- 'CV': 'Cape Verde',
1080
- 'KY': 'Cayman Islands',
1081
- 'CF': 'Central African Republic',
1082
- 'TD': 'Chad',
1083
- 'CL': 'Chile',
1084
- 'CN': 'China',
1085
- 'CX': 'Christmas Island',
1086
- 'CC': 'Cocos (Keeling) Islands',
1087
- 'CO': 'Colombia',
1088
- 'KM': 'Comoros',
1089
- 'CG': 'Congo',
1090
- 'CD': 'Congo, The Democratic Republic of The',
1091
- 'CK': 'Cook Islands',
1092
- 'CR': 'Costa Rica',
1093
- 'CI': 'Cote D’ivoire',
1094
- 'HR': 'Croatia',
1095
- 'CU': 'Cuba',
1096
- 'CY': 'Cyprus',
1097
- 'CZ': 'Czech Republic',
1098
- 'DK': 'Denmark',
1099
- 'DJ': 'Djibouti',
1100
- 'DM': 'Dominica',
1101
- 'DO': 'Dominican Republic',
1102
- 'EC': 'Ecuador',
1103
- 'EG': 'Egypt',
1104
- 'SV': 'El Salvador',
1105
- 'GQ': 'Equatorial Guinea',
1106
- 'ER': 'Eritrea',
1107
- 'EE': 'Estonia',
1108
- 'ET': 'Ethiopia',
1109
- 'FK': 'Falkland Islands (Malvinas)',
1110
- 'FO': 'Faroe Islands',
1111
- 'FJ': 'Fiji',
1112
- 'FI': 'Finland',
1113
- 'FR': 'France',
1114
- 'GF': 'French Guiana',
1115
- 'PF': 'French Polynesia',
1116
- 'TF': 'French Southern Territories',
1117
- 'GA': 'Gabon',
1118
- 'GM': 'Gambia',
1119
- 'GE': 'Georgia',
1120
- 'DE': 'Germany',
1121
- 'GH': 'Ghana',
1122
- 'GI': 'Gibraltar',
1123
- 'GR': 'Greece',
1124
- 'GL': 'Greenland',
1125
- 'GD': 'Grenada',
1126
- 'GP': 'Guadeloupe',
1127
- 'GU': 'Guam',
1128
- 'GT': 'Guatemala',
1129
- 'GG': 'Guernsey',
1130
- 'GN': 'Guinea',
1131
- 'GW': 'Guinea-bissau',
1132
- 'GY': 'Guyana',
1133
- 'HT': 'Haiti',
1134
- 'HM': 'Heard Island and Mcdonald Islands',
1135
- 'VA': 'Holy See (Vatican City State)',
1136
- 'HN': 'Honduras',
1137
- 'HK': 'Hong Kong',
1138
- 'HU': 'Hungary',
1139
- 'IS': 'Iceland',
1140
- 'IN': 'India',
1141
- 'ID': 'Indonesia',
1142
- 'IR': 'Iran, Islamic Republic of',
1143
- 'IQ': 'Iraq',
1144
- 'IE': 'Ireland',
1145
- 'IM': 'Isle of Man',
1146
- 'IL': 'Israel',
1147
- 'IT': 'Italy',
1148
- 'JM': 'Jamaica',
1149
- 'JP': 'Japan',
1150
- 'JE': 'Jersey',
1151
- 'JO': 'Jordan',
1152
- 'KZ': 'Kazakhstan',
1153
- 'KE': 'Kenya',
1154
- 'KI': 'Kiribati',
1155
- 'KP': 'Korea, Democratic People’s Republic of',
1156
- 'KR': 'Korea, Republic of',
1157
- 'KW': 'Kuwait',
1158
- 'KG': 'Kyrgyzstan',
1159
- 'LA': 'Lao People’s Democratic Republic',
1160
- 'LV': 'Latvia',
1161
- 'LB': 'Lebanon',
1162
- 'LS': 'Lesotho',
1163
- 'LR': 'Liberia',
1164
- 'LY': 'Libyan Arab Jamahiriya',
1165
- 'LI': 'Liechtenstein',
1166
- 'LT': 'Lithuania',
1167
- 'LU': 'Luxembourg',
1168
- 'MO': 'Macao',
1169
- 'MK': 'Macedonia, The Former Yugoslav Republic of',
1170
- 'MG': 'Madagascar',
1171
- 'MW': 'Malawi',
1172
- 'MY': 'Malaysia',
1173
- 'MV': 'Maldives',
1174
- 'ML': 'Mali',
1175
- 'MT': 'Malta',
1176
- 'MH': 'Marshall Islands',
1177
- 'MQ': 'Martinique',
1178
- 'MR': 'Mauritania',
1179
- 'MU': 'Mauritius',
1180
- 'YT': 'Mayotte',
1181
- 'MX': 'Mexico',
1182
- 'FM': 'Micronesia, Federated States of',
1183
- 'MD': 'Moldova, Republic of',
1184
- 'MC': 'Monaco',
1185
- 'MN': 'Mongolia',
1186
- 'ME': 'Montenegro',
1187
- 'MS': 'Montserrat',
1188
- 'MA': 'Morocco',
1189
- 'MZ': 'Mozambique',
1190
- 'MM': 'Myanmar',
1191
- 'NA': 'Namibia',
1192
- 'NR': 'Nauru',
1193
- 'NP': 'Nepal',
1194
- 'NL': 'Netherlands',
1195
- 'AN': 'Netherlands Antilles',
1196
- 'NC': 'New Caledonia',
1197
- 'NZ': 'New Zealand',
1198
- 'NI': 'Nicaragua',
1199
- 'NE': 'Niger',
1200
- 'NG': 'Nigeria',
1201
- 'NU': 'Niue',
1202
- 'NF': 'Norfolk Island',
1203
- 'MP': 'Northern Mariana Islands',
1204
- 'NO': 'Norway',
1205
- 'OM': 'Oman',
1206
- 'PK': 'Pakistan',
1207
- 'PW': 'Palau',
1208
- 'PS': 'Palestinian Territory, Occupied',
1209
- 'PA': 'Panama',
1210
- 'PG': 'Papua New Guinea',
1211
- 'PY': 'Paraguay',
1212
- 'PE': 'Peru',
1213
- 'PH': 'Philippines',
1214
- 'PN': 'Pitcairn',
1215
- 'PL': 'Poland',
1216
- 'PT': 'Portugal',
1217
- 'PR': 'Puerto Rico',
1218
- 'QA': 'Qatar',
1219
- 'RE': 'Reunion',
1220
- 'RO': 'Romania',
1221
- 'RU': 'Russian Federation',
1222
- 'RW': 'Rwanda',
1223
- 'SH': 'Saint Helena',
1224
- 'KN': 'Saint Kitts and Nevis',
1225
- 'LC': 'Saint Lucia',
1226
- 'PM': 'Saint Pierre and Miquelon',
1227
- 'VC': 'Saint Vincent and The Grenadines',
1228
- 'WS': 'Samoa',
1229
- 'SM': 'San Marino',
1230
- 'ST': 'Sao Tome and Principe',
1231
- 'SA': 'Saudi Arabia',
1232
- 'SN': 'Senegal',
1233
- 'RS': 'Serbia',
1234
- 'SC': 'Seychelles',
1235
- 'SL': 'Sierra Leone',
1236
- 'SG': 'Singapore',
1237
- 'SK': 'Slovakia',
1238
- 'SI': 'Slovenia',
1239
- 'SB': 'Solomon Islands',
1240
- 'SO': 'Somalia',
1241
- 'ZA': 'South Africa',
1242
- 'GS': 'South Georgia and The South Sandwich Islands',
1243
- 'ES': 'Spain',
1244
- 'LK': 'Sri Lanka',
1245
- 'SD': 'Sudan',
1246
- 'SR': 'Suriname',
1247
- 'SJ': 'Svalbard and Jan Mayen',
1248
- 'SZ': 'Swaziland',
1249
- 'SE': 'Sweden',
1250
- 'CH': 'Switzerland',
1251
- 'SY': 'Syrian Arab Republic',
1252
- 'TW': 'Taiwan, Province of China',
1253
- 'TJ': 'Tajikistan',
1254
- 'TZ': 'Tanzania, United Republic of',
1255
- 'TH': 'Thailand',
1256
- 'TL': 'Timor-leste',
1257
- 'TG': 'Togo',
1258
- 'TK': 'Tokelau',
1259
- 'TO': 'Tonga',
1260
- 'TT': 'Trinidad and Tobago',
1261
- 'TN': 'Tunisia',
1262
- 'TR': 'Turkey',
1263
- 'TM': 'Turkmenistan',
1264
- 'TC': 'Turks and Caicos Islands',
1265
- 'TV': 'Tuvalu',
1266
- 'UG': 'Uganda',
1267
- 'UA': 'Ukraine',
1268
- 'AE': 'United Arab Emirates',
1269
- 'UM': 'United States Minor Outlying Islands',
1270
- 'UY': 'Uruguay',
1271
- 'UZ': 'Uzbekistan',
1272
- 'VU': 'Vanuatu',
1273
- 'VE': 'Venezuela',
1274
- 'VN': 'Viet Nam',
1275
- 'VG': 'Virgin Islands, British',
1276
- 'VI': 'Virgin Islands, U.S.',
1277
- 'WF': 'Wallis and Futuna',
1278
- 'EH': 'Western Sahara',
1279
- 'YE': 'Yemen',
1280
- 'ZM': 'Zambia',
1281
- 'ZW': 'Zimbabwe'
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1282
  };
1283
 
1284
- exports.default = countries;
1285
 
1286
  /***/ }),
1287
 
@@ -1314,180 +1585,6 @@ exports.default = countries;
1314
 
1315
  /***/ }),
1316
 
1317
- /***/ "./blocks/components/get-form.js":
1318
- /*!***************************************!*\
1319
- !*** ./blocks/components/get-form.js ***!
1320
- \***************************************/
1321
- /*! no static exports found */
1322
- /***/ (function(module, exports, __webpack_require__) {
1323
-
1324
- "use strict";
1325
-
1326
-
1327
- Object.defineProperty(exports, "__esModule", {
1328
- value: true
1329
- });
1330
- exports.default = yikes_easy_forms_fetch_form;
1331
- function yikes_easy_forms_fetch_form(form_id) {
1332
- var data = {
1333
- action: 'yikes_get_form',
1334
- form_id: form_id,
1335
- nonce: ez_forms_gb_data.fetch_form_nonce
1336
- };
1337
-
1338
- var form = $.post(ez_forms_gb_data.ajax_url, data);
1339
-
1340
- return form;
1341
- }
1342
-
1343
- /***/ }),
1344
-
1345
- /***/ "./blocks/components/get-forms.js":
1346
- /*!****************************************!*\
1347
- !*** ./blocks/components/get-forms.js ***!
1348
- \****************************************/
1349
- /*! no static exports found */
1350
- /***/ (function(module, exports, __webpack_require__) {
1351
-
1352
- "use strict";
1353
-
1354
-
1355
- Object.defineProperty(exports, "__esModule", {
1356
- value: true
1357
- });
1358
- exports.default = yikes_easy_forms_fetch_forms;
1359
- function yikes_easy_forms_fetch_forms() {
1360
-
1361
- var data = {
1362
- action: 'yikes_get_forms',
1363
- nonce: ez_forms_gb_data.fetch_forms_nonce
1364
- };
1365
-
1366
- var forms = $.post(ez_forms_gb_data.ajax_url, data);
1367
-
1368
- return forms;
1369
- }
1370
-
1371
- /***/ }),
1372
-
1373
- /***/ "./blocks/components/get-recaptcha.js":
1374
- /*!********************************************!*\
1375
- !*** ./blocks/components/get-recaptcha.js ***!
1376
- \********************************************/
1377
- /*! no static exports found */
1378
- /***/ (function(module, exports, __webpack_require__) {
1379
-
1380
- "use strict";
1381
-
1382
-
1383
- Object.defineProperty(exports, "__esModule", {
1384
- value: true
1385
- });
1386
- exports.default = get_recaptcha;
1387
- function get_recaptcha() {
1388
-
1389
- var data = {
1390
- action: 'yikes_get_recaptcha',
1391
- nonce: ez_forms_gb_data.fetch_recaptcha_nonce
1392
- };
1393
-
1394
- var recaptcha_data = $.post(ez_forms_gb_data.ajax_url, data);
1395
-
1396
- return recaptcha_data;
1397
- }
1398
-
1399
- /***/ }),
1400
-
1401
- /***/ "./blocks/components/locales.js":
1402
- /*!**************************************!*\
1403
- !*** ./blocks/components/locales.js ***!
1404
- \**************************************/
1405
- /*! no static exports found */
1406
- /***/ (function(module, exports, __webpack_require__) {
1407
-
1408
- "use strict";
1409
-
1410
-
1411
- Object.defineProperty(exports, "__esModule", {
1412
- value: true
1413
- });
1414
- var locales = {
1415
- "ar": "Arabic",
1416
- "af": "Afrikaans",
1417
- "am": "Amharic",
1418
- "hy": "Armenian",
1419
- "az": "Azerbaijani",
1420
- "eu": "Basque",
1421
- "bn": "Bengali",
1422
- "bg": "Bulgarian",
1423
- "ca": "Catalan",
1424
- "zh-HK": "Chinese (Hong Kong)",
1425
- "zh-CN": "Chinese (Simplified)",
1426
- "zh-TW": "Chinese (Traditional)",
1427
- "hr": "Croatian",
1428
- "cs": "Czech",
1429
- "da": "Danish",
1430
- "nl": "Dutch",
1431
- "en-GB": "English (UK)",
1432
- "en": "English (US)",
1433
- "et": "Estonian",
1434
- "fil": "Filipino",
1435
- "fi": "Finnish",
1436
- "fr": "French",
1437
- "fr-CA": "French (Canadian)",
1438
- "gl": "Galician",
1439
- "ka": "Georgian",
1440
- "de": "German",
1441
- "de-AT": "German (Austria)",
1442
- "de-CH": "German (Switzerland)",
1443
- "el": "Greek",
1444
- "gu": "Gujarati",
1445
- "iw": "Hebrew",
1446
- "hi": "Hindi",
1447
- "hu": "Hungarain",
1448
- "is": "Icelandic",
1449
- "id": "Indonesian",
1450
- "it": "Italian",
1451
- "ja": "Japanese",
1452
- "kn": "Kannada",
1453
- "ko": "Korean",
1454
- "lo": "Laothian",
1455
- "lv": "Latvian",
1456
- "lt": "Lithuanian",
1457
- "ms": "Malay",
1458
- "ml": "Malayalam",
1459
- "mr": "Marathi",
1460
- "mn": "Mongolian",
1461
- "no": "Norwegian",
1462
- "fa": "Persian",
1463
- "pl": "Polish",
1464
- "pt": "Portuguese",
1465
- "pt-BR": "Portuguese (Brazil)",
1466
- "pt-PT": "Portuguese (Portugal)",
1467
- "ro": "Romanian",
1468
- "ru": "Russian",
1469
- "sr": "Serbian",
1470
- "si": "Sinhalese",
1471
- "sk": "Slovak",
1472
- "sl": "Slovenian",
1473
- "es": "Spanish",
1474
- "es-419": "Spanish (Latin America)",
1475
- "sw": "Swahili",
1476
- "sv": "Swedish",
1477
- "ta": "Tamil",
1478
- "te": "Telugu",
1479
- "th": "Thai",
1480
- "tr": "Turkish",
1481
- "uk": "Ukrainian",
1482
- "ur": "Urdu",
1483
- "vi": "Vietnamese",
1484
- "zu": "Zulu"
1485
- };
1486
-
1487
- exports.default = locales;
1488
-
1489
- /***/ }),
1490
-
1491
  /***/ "./blocks/components/slugify.js":
1492
  /*!**************************************!*\
1493
  !*** ./blocks/components/slugify.js ***!
@@ -1525,91 +1622,6 @@ function slugify(text) {
1525
 
1526
  /***/ }),
1527
 
1528
- /***/ "./blocks/components/states.js":
1529
- /*!*************************************!*\
1530
- !*** ./blocks/components/states.js ***!
1531
- \*************************************/
1532
- /*! no static exports found */
1533
- /***/ (function(module, exports, __webpack_require__) {
1534
-
1535
- "use strict";
1536
-
1537
-
1538
- Object.defineProperty(exports, "__esModule", {
1539
- value: true
1540
- });
1541
- var states = {
1542
- '': '—',
1543
- 'AL': 'Alabama',
1544
- 'AK': 'Alaska',
1545
- 'AZ': 'Arizona',
1546
- 'AR': 'Arkansas',
1547
- 'CA': 'California',
1548
- 'CO': 'Colorado',
1549
- 'CT': 'Connecticut',
1550
- 'DE': 'Delaware',
1551
- 'DC': 'District Of Columbia',
1552
- 'FL': 'Florida',
1553
- 'GA': 'Georgia',
1554
- 'HI': 'Hawaii',
1555
- 'ID': 'Idaho',
1556
- 'IL': 'Illinois',
1557
- 'IN': 'Indiana',
1558
- 'IA': 'Iowa',
1559
- 'KS': 'Kansas',
1560
- 'KY': 'Kentucky',
1561
- 'LA': 'Louisiana',
1562
- 'ME': 'Maine',
1563
- 'MD': 'Maryland',
1564
- 'MA': 'Massachusetts',
1565
- 'MI': 'Michigan',
1566
- 'MN': 'Minnesota',
1567
- 'MS': 'Mississippi',
1568
- 'MO': 'Missouri',
1569
- 'MT': 'Montana',
1570
- 'NE': 'Nebraska',
1571
- 'NV': 'Nevada',
1572
- 'NH': 'New Hampshire',
1573
- 'NJ': 'New Jersey',
1574
- 'NM': 'New Mexico',
1575
- 'NY': 'New York',
1576
- 'NC': 'North Carolina',
1577
- 'ND': 'North Dakota',
1578
- 'OH': 'Ohio',
1579
- 'OK': 'Oklahoma',
1580
- 'OR': 'Oregon',
1581
- 'PA': 'Pennsylvania',
1582
- 'RI': 'Rhode Island',
1583
- 'SC': 'South Carolina',
1584
- 'SD': 'South Dakota',
1585
- 'TN': 'Tennessee',
1586
- 'TX': 'Texas',
1587
- 'UT': 'Utah',
1588
- 'VT': 'Vermont',
1589
- 'VA': 'Virginia',
1590
- 'WA': 'Washington',
1591
- 'WV': 'West Virginia',
1592
- 'WI': 'Wisconsin',
1593
- 'WY': 'Wyoming',
1594
- 'AB': 'Alberta',
1595
- 'BC': 'British Columbia',
1596
- 'MB': 'Manitoba',
1597
- 'NB': 'New Brunswick',
1598
- 'NL': 'Newfoundland and Labrador',
1599
- 'NS': 'Nova Scotia',
1600
- 'ON': 'Ontario',
1601
- 'PE': 'Prince Edward Island',
1602
- 'QC': 'Quebec',
1603
- 'SK': 'Saskatchewan',
1604
- 'NT': 'Northwest Territories',
1605
- 'NU': 'Nunavut',
1606
- 'YT': 'Yukon'
1607
- };
1608
-
1609
- exports.default = states;
1610
-
1611
- /***/ }),
1612
-
1613
  /***/ "./blocks/easy-forms-block/dev-easy-forms-block.js":
1614
  /*!*********************************************************!*\
1615
  !*** ./blocks/easy-forms-block/dev-easy-forms-block.js ***!
@@ -1624,9 +1636,9 @@ var _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnam
1624
 
1625
  var _classnames2 = _interopRequireDefault(_classnames);
1626
 
1627
- var _getForm = __webpack_require__(/*! ../components/get-form.js */ "./blocks/components/get-form.js");
1628
 
1629
- var _getForm2 = _interopRequireDefault(_getForm);
1630
 
1631
  var _classMailChimpForms = __webpack_require__(/*! ../components/class.MailChimpForms.js */ "./blocks/components/class.MailChimpForms.js");
1632
 
@@ -1652,7 +1664,8 @@ var edit_easy_form = function edit_easy_form(props) {
1652
  props.setAttributes({ form_id: event.target.value });
1653
 
1654
  if (event.target.value.length > 0) {
1655
- (0, _getForm2.default)(event.target.value).then(function (form) {
 
1656
  props.setAttributes({ form: form.data });
1657
  props.setAttributes({ form_description: form.data.form_description });
1658
  props.setAttributes({ form_title: form.data.form_name });
@@ -1686,8 +1699,13 @@ var edit_easy_form = function edit_easy_form(props) {
1686
  props.setAttributes({ is_ajax: !!event.target.checked });
1687
  };
1688
 
 
 
 
 
 
1689
  var toggleRecaptcha = function toggleRecaptcha(event) {
1690
- props.setAttributes({ recaptcha: !!event.target.checked });
1691
  };
1692
 
1693
  var toggleRecaptchaTheme = function toggleRecaptchaTheme(value) {
@@ -1736,6 +1754,7 @@ var edit_easy_form = function edit_easy_form(props) {
1736
  toggleShowTitle: toggleShowTitle,
1737
  isAjax: props.attributes.is_ajax,
1738
  toggleIsAjax: toggleIsAjax,
 
1739
  recaptcha: props.attributes.recaptcha,
1740
  toggleRecaptcha: toggleRecaptcha,
1741
  recaptchaTheme: props.attributes.recaptcha_theme,
@@ -1798,7 +1817,7 @@ var settings = {
1798
  },
1799
  recaptcha: {
1800
  type: 'boolean',
1801
- default: true
1802
  },
1803
  recaptcha_theme: {
1804
  type: 'string',
@@ -1900,7 +1919,7 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
1900
  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; };
1901
 
1902
  /*!
1903
- Copyright (c) 2016 Jed Watson.
1904
  Licensed under the MIT License (MIT), see
1905
  http://jedwatson.github.io/classnames
1906
  */
@@ -1922,8 +1941,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
1922
 
1923
  if (argType === 'string' || argType === 'number') {
1924
  classes.push(arg);
1925
- } else if (Array.isArray(arg)) {
1926
- classes.push(classNames.apply(null, arg));
 
 
 
1927
  } else if (argType === 'object') {
1928
  for (var key in arg) {
1929
  if (hasOwn.call(arg, key) && arg[key]) {
@@ -1937,6 +1959,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
1937
  }
1938
 
1939
  if (typeof module !== 'undefined' && module.exports) {
 
1940
  module.exports = classNames;
1941
  } 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")) {
1942
  // register as 'classnames', consistent with npm package name
@@ -2049,224 +2072,12 @@ function cssWithMappingToString(item, useSourceMap) {
2049
  // Adapted from convert-source-map (MIT)
2050
  function toComment(sourceMap) {
2051
  // eslint-disable-next-line no-undef
2052
- var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));
2053
- var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;
2054
-
2055
- return '/*# ' + data + ' */';
2056
- }
2057
-
2058
- /***/ }),
2059
-
2060
- /***/ "./node_modules/fbjs/lib/emptyFunction.js":
2061
- /*!************************************************!*\
2062
- !*** ./node_modules/fbjs/lib/emptyFunction.js ***!
2063
- \************************************************/
2064
- /*! no static exports found */
2065
- /***/ (function(module, exports, __webpack_require__) {
2066
-
2067
- "use strict";
2068
-
2069
-
2070
- /**
2071
- * Copyright (c) 2013-present, Facebook, Inc.
2072
- *
2073
- * This source code is licensed under the MIT license found in the
2074
- * LICENSE file in the root directory of this source tree.
2075
- *
2076
- *
2077
- */
2078
-
2079
- function makeEmptyFunction(arg) {
2080
- return function () {
2081
- return arg;
2082
- };
2083
- }
2084
-
2085
- /**
2086
- * This function accepts and discards inputs; it has no side effects. This is
2087
- * primarily useful idiomatically for overridable function endpoints which
2088
- * always need to be callable, since JS lacks a null-call idiom ala Cocoa.
2089
- */
2090
- var emptyFunction = function emptyFunction() {};
2091
-
2092
- emptyFunction.thatReturns = makeEmptyFunction;
2093
- emptyFunction.thatReturnsFalse = makeEmptyFunction(false);
2094
- emptyFunction.thatReturnsTrue = makeEmptyFunction(true);
2095
- emptyFunction.thatReturnsNull = makeEmptyFunction(null);
2096
- emptyFunction.thatReturnsThis = function () {
2097
- return this;
2098
- };
2099
- emptyFunction.thatReturnsArgument = function (arg) {
2100
- return arg;
2101
- };
2102
-
2103
- module.exports = emptyFunction;
2104
-
2105
- /***/ }),
2106
-
2107
- /***/ "./node_modules/fbjs/lib/emptyObject.js":
2108
- /*!**********************************************!*\
2109
- !*** ./node_modules/fbjs/lib/emptyObject.js ***!
2110
- \**********************************************/
2111
- /*! no static exports found */
2112
- /***/ (function(module, exports, __webpack_require__) {
2113
-
2114
- "use strict";
2115
- /**
2116
- * Copyright (c) 2013-present, Facebook, Inc.
2117
- *
2118
- * This source code is licensed under the MIT license found in the
2119
- * LICENSE file in the root directory of this source tree.
2120
- *
2121
- */
2122
-
2123
-
2124
-
2125
- var emptyObject = {};
2126
-
2127
- if (true) {
2128
- Object.freeze(emptyObject);
2129
- }
2130
-
2131
- module.exports = emptyObject;
2132
-
2133
- /***/ }),
2134
-
2135
- /***/ "./node_modules/fbjs/lib/invariant.js":
2136
- /*!********************************************!*\
2137
- !*** ./node_modules/fbjs/lib/invariant.js ***!
2138
- \********************************************/
2139
- /*! no static exports found */
2140
- /***/ (function(module, exports, __webpack_require__) {
2141
-
2142
- "use strict";
2143
- /**
2144
- * Copyright (c) 2013-present, Facebook, Inc.
2145
- *
2146
- * This source code is licensed under the MIT license found in the
2147
- * LICENSE file in the root directory of this source tree.
2148
- *
2149
- */
2150
-
2151
-
2152
-
2153
- /**
2154
- * Use invariant() to assert state which your program assumes to be true.
2155
- *
2156
- * Provide sprintf-style format (only %s is supported) and arguments
2157
- * to provide information about what broke and what you were
2158
- * expecting.
2159
- *
2160
- * The invariant message will be stripped in production, but the invariant
2161
- * will remain to ensure logic does not differ in production.
2162
- */
2163
-
2164
- var validateFormat = function validateFormat(format) {};
2165
-
2166
- if (true) {
2167
- validateFormat = function validateFormat(format) {
2168
- if (format === undefined) {
2169
- throw new Error('invariant requires an error message argument');
2170
- }
2171
- };
2172
- }
2173
-
2174
- function invariant(condition, format, a, b, c, d, e, f) {
2175
- validateFormat(format);
2176
-
2177
- if (!condition) {
2178
- var error;
2179
- if (format === undefined) {
2180
- error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');
2181
- } else {
2182
- var args = [a, b, c, d, e, f];
2183
- var argIndex = 0;
2184
- error = new Error(format.replace(/%s/g, function () {
2185
- return args[argIndex++];
2186
- }));
2187
- error.name = 'Invariant Violation';
2188
- }
2189
-
2190
- error.framesToPop = 1; // we don't care about invariant's own frame
2191
- throw error;
2192
- }
2193
- }
2194
-
2195
- module.exports = invariant;
2196
-
2197
- /***/ }),
2198
-
2199
- /***/ "./node_modules/fbjs/lib/warning.js":
2200
- /*!******************************************!*\
2201
- !*** ./node_modules/fbjs/lib/warning.js ***!
2202
- \******************************************/
2203
- /*! no static exports found */
2204
- /***/ (function(module, exports, __webpack_require__) {
2205
-
2206
- "use strict";
2207
- /**
2208
- * Copyright (c) 2014-present, Facebook, Inc.
2209
- *
2210
- * This source code is licensed under the MIT license found in the
2211
- * LICENSE file in the root directory of this source tree.
2212
- *
2213
- */
2214
-
2215
-
2216
-
2217
- var emptyFunction = __webpack_require__(/*! ./emptyFunction */ "./node_modules/fbjs/lib/emptyFunction.js");
2218
-
2219
- /**
2220
- * Similar to invariant but only logs a warning if the condition is not met.
2221
- * This can be used to log issues in development environments in critical
2222
- * paths. Removing the logging code for production environments will keep the
2223
- * same logic and follow the same code paths.
2224
- */
2225
-
2226
- var warning = emptyFunction;
2227
-
2228
- if (true) {
2229
- var printWarning = function printWarning(format) {
2230
- for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
2231
- args[_key - 1] = arguments[_key];
2232
- }
2233
-
2234
- var argIndex = 0;
2235
- var message = 'Warning: ' + format.replace(/%s/g, function () {
2236
- return args[argIndex++];
2237
- });
2238
- if (typeof console !== 'undefined') {
2239
- console.error(message);
2240
- }
2241
- try {
2242
- // --- Welcome to debugging React ---
2243
- // This error was thrown as a convenience so that you can use this stack
2244
- // to find the callsite that caused this warning to fire.
2245
- throw new Error(message);
2246
- } catch (x) {}
2247
- };
2248
-
2249
- warning = function warning(condition, format) {
2250
- if (format === undefined) {
2251
- throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');
2252
- }
2253
-
2254
- if (format.indexOf('Failed Composite propType: ') === 0) {
2255
- return; // Ignore CompositeComponent proptype check.
2256
- }
2257
-
2258
- if (!condition) {
2259
- for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
2260
- args[_key2 - 2] = arguments[_key2];
2261
- }
2262
 
2263
- printWarning.apply(undefined, [format].concat(args));
2264
- }
2265
- };
2266
  }
2267
 
2268
- module.exports = warning;
2269
-
2270
  /***/ }),
2271
 
2272
  /***/ "./node_modules/object-assign/index.js":
@@ -2389,11 +2200,24 @@ module.exports = shouldUseNative() ? Object.assign : function (target, source) {
2389
 
2390
  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; };
2391
 
 
 
2392
  if (true) {
2393
- var invariant = __webpack_require__(/*! fbjs/lib/invariant */ "./node_modules/fbjs/lib/invariant.js");
2394
- var warning = __webpack_require__(/*! fbjs/lib/warning */ "./node_modules/fbjs/lib/warning.js");
2395
  var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "./node_modules/prop-types/lib/ReactPropTypesSecret.js");
2396
  var loggedTypeFailures = {};
 
 
 
 
 
 
 
 
 
 
 
 
 
2397
  }
2398
 
2399
  /**
@@ -2418,12 +2242,18 @@ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
2418
  try {
2419
  // This is intentionally an invariant that gets caught. It's the same
2420
  // behavior as without this statement except with a better message.
2421
- invariant(typeof typeSpecs[typeSpecName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'the `prop-types` package, but received `%s`.', componentName || 'React class', location, typeSpecName, _typeof(typeSpecs[typeSpecName]));
 
 
 
 
2422
  error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
2423
  } catch (ex) {
2424
  error = ex;
2425
  }
2426
- warning(!error || error instanceof Error, '%s: type specification of %s `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error === 'undefined' ? 'undefined' : _typeof(error));
 
 
2427
  if (error instanceof Error && !(error.message in loggedTypeFailures)) {
2428
  // Only monitor this failure once because there tends to be a lot of the
2429
  // same error.
@@ -2431,7 +2261,7 @@ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
2431
 
2432
  var stack = getStack ? getStack() : '';
2433
 
2434
- warning(false, 'Failed %s type: %s%s', location, error.message, stack != null ? stack : '');
2435
  }
2436
  }
2437
  }
@@ -2497,7 +2327,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
2497
  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;
2498
  }function i(e, t) {
2499
  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);
2500
- }Object.defineProperty(t, "__esModule", { value: !0 });var s = function () {
2501
  function e(e, t) {
2502
  for (var a = 0; a < t.length; a++) {
2503
  var r = t[a];r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
@@ -2506,20 +2336,20 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
2506
  return a && e(t.prototype, a), r && e(t, r), t;
2507
  };
2508
  }(),
2509
- l = a(6),
2510
- c = r(l),
2511
  p = a(4),
2512
  u = r(p),
2513
- 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.string, sitekey: u.default.string, theme: u.default.string, type: u.default.string, verifyCallbackName: u.default.string, expiredCallbackName: u.default.string, size: u.default.string, tabindex: u.default.string, hl: u.default.string, badge: u.default.string },
2514
- f = { elementID: "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" },
2515
  h = function h() {
2516
- return "undefined" != typeof window && "undefined" != typeof window.grecaptcha;
2517
  },
2518
  y = void 0,
2519
  b = function (e) {
2520
  function t(e) {
2521
- 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 || (y = setInterval(a._updateReadyState.bind(a), 1e3)), a;
2522
- }return i(t, e), s(t, [{ key: "componentDidMount", value: function value() {
2523
  this.state.ready && this._renderGrecaptcha();
2524
  } }, { key: "componentDidUpdate", value: function value(e, t) {
2525
  var a = this.props,
@@ -2540,9 +2370,9 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
2540
  } }, { key: "_renderGrecaptcha", value: function value() {
2541
  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();
2542
  } }, { key: "render", value: function value() {
2543
- 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: "g-recaptcha", "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 });
2544
  } }]), t;
2545
- }(l.Component);t.default = b, b.propTypes = d, b.defaultProps = f, e.exports = t.default;
2546
  }, function (e, t) {
2547
  "use strict";
2548
  function a(e) {
@@ -2556,10 +2386,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
2556
  }, e.exports = r;
2557
  }, function (e, t, a) {
2558
  "use strict";
2559
- function r(e, t, a, r, o, i, s, l) {
2560
  if (n(t), !e) {
2561
  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 {
2562
- var p = [a, r, o, i, s, l],
2563
  u = 0;c = new Error(t.replace(/%s/g, function () {
2564
  return p[u++];
2565
  })), c.name = "Invariant Violation";
@@ -2571,8 +2401,8 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
2571
  var r = a(1),
2572
  n = a(2),
2573
  o = a(5);e.exports = function () {
2574
- function e(e, t, a, r, i, s) {
2575
- s !== 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");
2576
  }function t() {
2577
  return e;
2578
  }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;
@@ -2598,10 +2428,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
2598
  /***/ (function(module, exports, __webpack_require__) {
2599
 
2600
  "use strict";
2601
- /** @license React v16.3.1
2602
  * react.development.js
2603
  *
2604
- * Copyright (c) 2013-present, Facebook, Inc.
2605
  *
2606
  * This source code is licensed under the MIT license found in the
2607
  * LICENSE file in the root directory of this source tree.
@@ -2616,36 +2446,34 @@ if (true) {
2616
  'use strict';
2617
 
2618
  var _assign = __webpack_require__(/*! object-assign */ "./node_modules/object-assign/index.js");
2619
- var emptyObject = __webpack_require__(/*! fbjs/lib/emptyObject */ "./node_modules/fbjs/lib/emptyObject.js");
2620
- var invariant = __webpack_require__(/*! fbjs/lib/invariant */ "./node_modules/fbjs/lib/invariant.js");
2621
- var warning = __webpack_require__(/*! fbjs/lib/warning */ "./node_modules/fbjs/lib/warning.js");
2622
- var emptyFunction = __webpack_require__(/*! fbjs/lib/emptyFunction */ "./node_modules/fbjs/lib/emptyFunction.js");
2623
  var checkPropTypes = __webpack_require__(/*! prop-types/checkPropTypes */ "./node_modules/prop-types/checkPropTypes.js");
2624
 
2625
  // TODO: this is special because it gets imported during build.
2626
 
2627
- var ReactVersion = '16.3.1';
2628
 
2629
  // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
2630
  // nor polyfill, then a plain number is used for performance.
2631
- var hasSymbol = typeof Symbol === 'function' && Symbol['for'];
2632
-
2633
- var REACT_ELEMENT_TYPE = hasSymbol ? Symbol['for']('react.element') : 0xeac7;
2634
- var REACT_CALL_TYPE = hasSymbol ? Symbol['for']('react.call') : 0xeac8;
2635
- var REACT_RETURN_TYPE = hasSymbol ? Symbol['for']('react.return') : 0xeac9;
2636
- var REACT_PORTAL_TYPE = hasSymbol ? Symbol['for']('react.portal') : 0xeaca;
2637
- var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol['for']('react.fragment') : 0xeacb;
2638
- var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol['for']('react.strict_mode') : 0xeacc;
2639
- var REACT_PROVIDER_TYPE = hasSymbol ? Symbol['for']('react.provider') : 0xeacd;
2640
- var REACT_CONTEXT_TYPE = hasSymbol ? Symbol['for']('react.context') : 0xeace;
2641
- var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol['for']('react.async_mode') : 0xeacf;
2642
- var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol['for']('react.forward_ref') : 0xead0;
 
 
2643
 
2644
  var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
2645
  var FAUX_ITERATOR_SYMBOL = '@@iterator';
2646
 
2647
  function getIteratorFn(maybeIterable) {
2648
- if (maybeIterable === null || typeof maybeIterable === 'undefined') {
2649
  return null;
2650
  }
2651
  var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
@@ -2656,12 +2484,50 @@ if (true) {
2656
  }
2657
 
2658
  /**
2659
- * WARNING: DO NOT manually require this module.
2660
- * This is a replacement for `invariant(...)` used by the error code system
2661
- * and will _only_ be required by the corresponding babel pass.
2662
- * It always throws.
 
 
 
 
2663
  */
2664
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2665
  /**
2666
  * Forked from fbjs/warning:
2667
  * https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
@@ -2701,7 +2567,7 @@ if (true) {
2701
 
2702
  lowPriorityWarning = function lowPriorityWarning(condition, format) {
2703
  if (format === undefined) {
2704
- throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');
2705
  }
2706
  if (!condition) {
2707
  for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
@@ -2715,6 +2581,95 @@ if (true) {
2715
 
2716
  var lowPriorityWarning$1 = lowPriorityWarning;
2717
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2718
  var didWarnStateUpdateForUnmountedComponent = {};
2719
 
2720
  function warnNoop(publicInstance, callerName) {
@@ -2725,7 +2680,7 @@ if (true) {
2725
  if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
2726
  return;
2727
  }
2728
- warning(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);
2729
  didWarnStateUpdateForUnmountedComponent[warningKey] = true;
2730
  }
2731
  }
@@ -2798,12 +2753,18 @@ if (true) {
2798
  }
2799
  };
2800
 
 
 
 
 
 
2801
  /**
2802
  * Base class helpers for the updating state of a component.
2803
  */
2804
  function Component(props, context, updater) {
2805
  this.props = props;
2806
  this.context = context;
 
2807
  this.refs = emptyObject;
2808
  // We initialize the default updater but the real one gets injected by the
2809
  // renderer.
@@ -2894,6 +2855,7 @@ if (true) {
2894
  function PureComponent(props, context, updater) {
2895
  this.props = props;
2896
  this.context = context;
 
2897
  this.refs = emptyObject;
2898
  this.updater = updater || ReactNoopUpdateQueue;
2899
  }
@@ -2926,9 +2888,180 @@ if (true) {
2926
  * @internal
2927
  * @type {ReactComponent}
2928
  */
2929
- current: null
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2930
  };
2931
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2932
  var hasOwnProperty = Object.prototype.hasOwnProperty;
2933
 
2934
  var RESERVED_PROPS = {
@@ -2969,7 +3102,7 @@ if (true) {
2969
  var warnAboutAccessingKey = function warnAboutAccessingKey() {
2970
  if (!specialPropKeyWarningShown) {
2971
  specialPropKeyWarningShown = true;
2972
- warning(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);
2973
  }
2974
  };
2975
  warnAboutAccessingKey.isReactWarning = true;
@@ -2983,7 +3116,7 @@ if (true) {
2983
  var warnAboutAccessingRef = function warnAboutAccessingRef() {
2984
  if (!specialPropRefWarningShown) {
2985
  specialPropRefWarningShown = true;
2986
- warning(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);
2987
  }
2988
  };
2989
  warnAboutAccessingRef.isReactWarning = true;
@@ -3131,14 +3264,12 @@ if (true) {
3131
  }
3132
  {
3133
  if (key || ref) {
3134
- if (typeof props.$$typeof === 'undefined' || props.$$typeof !== REACT_ELEMENT_TYPE) {
3135
- var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
3136
- if (key) {
3137
- defineKeyPropWarningGetter(props, displayName);
3138
- }
3139
- if (ref) {
3140
- defineRefPropWarningGetter(props, displayName);
3141
- }
3142
  }
3143
  }
3144
  }
@@ -3161,6 +3292,8 @@ if (true) {
3161
  * See https://reactjs.org/docs/react-api.html#cloneelement
3162
  */
3163
  function cloneElement(element, config, children) {
 
 
3164
  var propName = void 0;
3165
 
3166
  // Original props are copied
@@ -3226,28 +3359,13 @@ if (true) {
3226
  * Verifies the object is a ReactElement.
3227
  * See https://reactjs.org/docs/react-api.html#isvalidelement
3228
  * @param {?object} object
3229
- * @return {boolean} True if `object` is a valid component.
3230
  * @final
3231
  */
3232
  function isValidElement(object) {
3233
  return (typeof object === 'undefined' ? 'undefined' : _typeof(object)) === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
3234
  }
3235
 
3236
- var ReactDebugCurrentFrame = {};
3237
-
3238
- {
3239
- // Component that is being worked on
3240
- ReactDebugCurrentFrame.getCurrentStack = null;
3241
-
3242
- ReactDebugCurrentFrame.getStackAddendum = function () {
3243
- var impl = ReactDebugCurrentFrame.getCurrentStack;
3244
- if (impl) {
3245
- return impl();
3246
- }
3247
- return null;
3248
- };
3249
- }
3250
-
3251
  var SEPARATOR = '.';
3252
  var SUBSEPARATOR = ':';
3253
 
@@ -3375,7 +3493,7 @@ if (true) {
3375
  {
3376
  // Warn about using Maps as children
3377
  if (iteratorFn === children.entries) {
3378
- warning(didWarnAboutMaps, 'Using Maps as children is unsupported and will likely yield ' + 'unexpected results. Convert it to a sequence/iterable of keyed ' + 'ReactElements instead.%s', ReactDebugCurrentFrame.getStackAddendum());
3379
  didWarnAboutMaps = true;
3380
  }
3381
  }
@@ -3453,7 +3571,7 @@ if (true) {
3453
  /**
3454
  * Iterates through children that are typically specified as `props.children`.
3455
  *
3456
- * See https://reactjs.org/docs/react-api.html#react.children.foreach
3457
  *
3458
  * The provided forEachFunc(child, index) will be called for each
3459
  * leaf child.
@@ -3479,7 +3597,9 @@ if (true) {
3479
 
3480
  var mappedChild = func.call(context, child, bookKeeping.count++);
3481
  if (Array.isArray(mappedChild)) {
3482
- mapIntoWithKeyPrefixInternal(mappedChild, result, childKey, emptyFunction.thatReturnsArgument);
 
 
3483
  } else if (mappedChild != null) {
3484
  if (isValidElement(mappedChild)) {
3485
  mappedChild = cloneAndReplaceKey(mappedChild,
@@ -3504,7 +3624,7 @@ if (true) {
3504
  /**
3505
  * Maps children that are typically specified as `props.children`.
3506
  *
3507
- * See https://reactjs.org/docs/react-api.html#react.children.map
3508
  *
3509
  * The provided mapFunction(child, key, index) will be called for each
3510
  * leaf child.
@@ -3527,24 +3647,28 @@ if (true) {
3527
  * Count the number of children that are typically specified as
3528
  * `props.children`.
3529
  *
3530
- * See https://reactjs.org/docs/react-api.html#react.children.count
3531
  *
3532
  * @param {?*} children Children tree container.
3533
  * @return {number} The number of children.
3534
  */
3535
- function countChildren(children, context) {
3536
- return traverseAllChildren(children, emptyFunction.thatReturnsNull, null);
 
 
3537
  }
3538
 
3539
  /**
3540
  * Flatten a children object (typically specified as `props.children`) and
3541
  * return an array with appropriately re-keyed children.
3542
  *
3543
- * See https://reactjs.org/docs/react-api.html#react.children.toarray
3544
  */
3545
  function toArray(children) {
3546
  var result = [];
3547
- mapIntoWithKeyPrefixInternal(children, result, null, emptyFunction.thatReturnsArgument);
 
 
3548
  return result;
3549
  }
3550
 
@@ -3552,7 +3676,7 @@ if (true) {
3552
  * Returns the first child in a collection of children and verifies that there
3553
  * is only one child in the collection.
3554
  *
3555
- * See https://reactjs.org/docs/react-api.html#react.children.only
3556
  *
3557
  * The current implementation of this function assumes that a single child gets
3558
  * passed without a wrapper, but the purpose of this helper function is to
@@ -3572,16 +3696,20 @@ if (true) {
3572
  calculateChangedBits = null;
3573
  } else {
3574
  {
3575
- warning(calculateChangedBits === null || typeof calculateChangedBits === 'function', 'createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits);
3576
  }
3577
  }
3578
 
3579
  var context = {
3580
  $$typeof: REACT_CONTEXT_TYPE,
3581
  _calculateChangedBits: calculateChangedBits,
3582
- _defaultValue: defaultValue,
 
 
 
 
3583
  _currentValue: defaultValue,
3584
- _changedBits: 0,
3585
  // These are circular
3586
  Provider: null,
3587
  Consumer: null
@@ -3591,18 +3719,94 @@ if (true) {
3591
  $$typeof: REACT_PROVIDER_TYPE,
3592
  _context: context
3593
  };
3594
- context.Consumer = context;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3595
 
3596
  {
3597
  context._currentRenderer = null;
 
3598
  }
3599
 
3600
  return context;
3601
  }
3602
 
 
 
 
 
 
 
 
 
 
 
3603
  function forwardRef(render) {
3604
  {
3605
- warning(typeof render === 'function', 'forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render === 'undefined' ? 'undefined' : _typeof(render));
 
 
 
 
 
 
 
 
 
 
3606
  }
3607
 
3608
  return {
@@ -3611,36 +3815,23 @@ if (true) {
3611
  };
3612
  }
3613
 
3614
- var describeComponentFrame = function describeComponentFrame(name, source, ownerName) {
3615
- return '\n in ' + (name || 'Unknown') + (source ? ' (at ' + source.fileName.replace(/^.*[\\\/]/, '') + ':' + source.lineNumber + ')' : ownerName ? ' (created by ' + ownerName + ')' : '');
3616
- };
3617
-
3618
  function isValidElementType(type) {
3619
  return typeof type === 'string' || typeof type === 'function' ||
3620
  // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
3621
- type === REACT_FRAGMENT_TYPE || type === REACT_ASYNC_MODE_TYPE || type === REACT_STRICT_MODE_TYPE || (typeof type === 'undefined' ? 'undefined' : _typeof(type)) === 'object' && type !== null && (type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE);
3622
  }
3623
 
3624
- function getComponentName(fiber) {
3625
- var type = fiber.type;
3626
-
3627
- if (typeof type === 'function') {
3628
- return type.displayName || type.name;
3629
- }
3630
- if (typeof type === 'string') {
3631
- return type;
3632
- }
3633
- switch (type) {
3634
- case REACT_FRAGMENT_TYPE:
3635
- return 'ReactFragment';
3636
- case REACT_PORTAL_TYPE:
3637
- return 'ReactPortal';
3638
- case REACT_CALL_TYPE:
3639
- return 'ReactCall';
3640
- case REACT_RETURN_TYPE:
3641
- return 'ReactReturn';
3642
  }
3643
- return null;
 
 
 
 
3644
  }
3645
 
3646
  /**
@@ -3650,46 +3841,15 @@ if (true) {
3650
  * that support it.
3651
  */
3652
 
3653
- var currentlyValidatingElement = void 0;
3654
  var propTypesMisspellWarningShown = void 0;
3655
 
3656
- var getDisplayName = function getDisplayName() {};
3657
- var getStackAddendum = function getStackAddendum() {};
3658
-
3659
  {
3660
- currentlyValidatingElement = null;
3661
-
3662
  propTypesMisspellWarningShown = false;
3663
-
3664
- getDisplayName = function getDisplayName(element) {
3665
- if (element == null) {
3666
- return '#empty';
3667
- } else if (typeof element === 'string' || typeof element === 'number') {
3668
- return '#text';
3669
- } else if (typeof element.type === 'string') {
3670
- return element.type;
3671
- } else if (element.type === REACT_FRAGMENT_TYPE) {
3672
- return 'React.Fragment';
3673
- } else {
3674
- return element.type.displayName || element.type.name || 'Unknown';
3675
- }
3676
- };
3677
-
3678
- getStackAddendum = function getStackAddendum() {
3679
- var stack = '';
3680
- if (currentlyValidatingElement) {
3681
- var name = getDisplayName(currentlyValidatingElement);
3682
- var owner = currentlyValidatingElement._owner;
3683
- stack += describeComponentFrame(name, currentlyValidatingElement._source, owner && getComponentName(owner));
3684
- }
3685
- stack += ReactDebugCurrentFrame.getStackAddendum() || '';
3686
- return stack;
3687
- };
3688
  }
3689
 
3690
  function getDeclarationErrorAddendum() {
3691
  if (ReactCurrentOwner.current) {
3692
- var name = getComponentName(ReactCurrentOwner.current);
3693
  if (name) {
3694
  return '\n\nCheck the render method of `' + name + '`.';
3695
  }
@@ -3755,14 +3915,14 @@ if (true) {
3755
  var childOwner = '';
3756
  if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
3757
  // Give the component that originally created this child.
3758
- childOwner = ' It was passed a child from ' + getComponentName(element._owner) + '.';
3759
  }
3760
 
3761
- currentlyValidatingElement = element;
3762
  {
3763
- warning(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.%s', currentComponentErrorInfo, childOwner, getStackAddendum());
3764
  }
3765
- currentlyValidatingElement = null;
3766
  }
3767
 
3768
  /**
@@ -3815,22 +3975,31 @@ if (true) {
3815
  * @param {ReactElement} element
3816
  */
3817
  function validatePropTypes(element) {
3818
- var componentClass = element.type;
3819
- if (typeof componentClass !== 'function') {
 
 
 
 
 
 
 
 
 
 
 
3820
  return;
3821
  }
3822
- var name = componentClass.displayName || componentClass.name;
3823
- var propTypes = componentClass.propTypes;
3824
  if (propTypes) {
3825
- currentlyValidatingElement = element;
3826
- checkPropTypes(propTypes, element.props, 'prop', name, getStackAddendum);
3827
- currentlyValidatingElement = null;
3828
- } else if (componentClass.PropTypes !== undefined && !propTypesMisspellWarningShown) {
3829
  propTypesMisspellWarningShown = true;
3830
- warning(false, 'Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', name || 'Unknown');
3831
  }
3832
- if (typeof componentClass.getDefaultProps === 'function') {
3833
- warning(componentClass.getDefaultProps.isReactClassApproved, 'getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
3834
  }
3835
  }
3836
 
@@ -3839,22 +4008,22 @@ if (true) {
3839
  * @param {ReactElement} fragment
3840
  */
3841
  function validateFragmentProps(fragment) {
3842
- currentlyValidatingElement = fragment;
3843
 
3844
  var keys = Object.keys(fragment.props);
3845
  for (var i = 0; i < keys.length; i++) {
3846
  var key = keys[i];
3847
  if (key !== 'children' && key !== 'key') {
3848
- warning(false, 'Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.%s', key, getStackAddendum());
3849
  break;
3850
  }
3851
  }
3852
 
3853
  if (fragment.ref !== null) {
3854
- warning(false, 'Invalid attribute `ref` supplied to `React.Fragment`.%s', getStackAddendum());
3855
  }
3856
 
3857
- currentlyValidatingElement = null;
3858
  }
3859
 
3860
  function createElementWithValidation(type, props, children) {
@@ -3875,18 +4044,19 @@ if (true) {
3875
  info += getDeclarationErrorAddendum();
3876
  }
3877
 
3878
- info += getStackAddendum() || '';
3879
-
3880
  var typeString = void 0;
3881
  if (type === null) {
3882
  typeString = 'null';
3883
  } else if (Array.isArray(type)) {
3884
  typeString = 'array';
 
 
 
3885
  } else {
3886
  typeString = typeof type === 'undefined' ? 'undefined' : _typeof(type);
3887
  }
3888
 
3889
- warning(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);
3890
  }
3891
 
3892
  var element = createElement.apply(this, arguments);
@@ -3961,10 +4131,14 @@ if (true) {
3961
 
3962
  createContext: createContext,
3963
  forwardRef: forwardRef,
 
 
3964
 
3965
  Fragment: REACT_FRAGMENT_TYPE,
3966
  StrictMode: REACT_STRICT_MODE_TYPE,
3967
- unstable_AsyncMode: REACT_ASYNC_MODE_TYPE,
 
 
3968
 
3969
  createElement: createElementWithValidation,
3970
  cloneElement: cloneElementWithValidation,
@@ -3973,23 +4147,9 @@ if (true) {
3973
 
3974
  version: ReactVersion,
3975
 
3976
- __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {
3977
- ReactCurrentOwner: ReactCurrentOwner,
3978
- // Used by renderers to avoid bundling object-assign twice in UMD bundles:
3979
- assign: _assign
3980
- }
3981
  };
3982
 
3983
- {
3984
- _assign(React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, {
3985
- // These should not be included in production.
3986
- ReactDebugCurrentFrame: ReactDebugCurrentFrame,
3987
- // Shim for React DOM 16.0.0 which still destructured (but not used) this.
3988
- // TODO: remove in React 17.0.
3989
- ReactComponentTreeHook: {}
3990
- });
3991
- }
3992
-
3993
  var React$2 = Object.freeze({
3994
  default: React
3995
  });
@@ -3998,7 +4158,7 @@ if (true) {
3998
 
3999
  // TODO: decide on the top-level export form.
4000
  // This is hacky but makes it work with both Rollup and Jest.
4001
- var react = React$3['default'] ? React$3['default'] : React$3;
4002
 
4003
  module.exports = react;
4004
  })();
@@ -4516,8 +4676,8 @@ module.exports = function (css) {
4516
  /*! no static exports found */
4517
  /***/ (function(module, exports) {
4518
 
4519
- /* WEBPACK VAR INJECTION */(function(__webpack_amd_options__) {/* globals __webpack_amd_options__ */
4520
- module.exports = __webpack_amd_options__;
4521
 
4522
  /* WEBPACK VAR INJECTION */}.call(this, {}))
4523
 
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 ?
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 ***!
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
 
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',
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
  }, {
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
  ),
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
  ) : '';
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 },
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 },
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
  );
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__) {
1159
  Object.defineProperty(exports, "__esModule", {
1160
  value: true
1161
  });
1162
+ var constants = {
1163
+
1164
+ states: {
1165
+ '': '',
1166
+ 'AL': 'Alabama',
1167
+ 'AK': 'Alaska',
1168
+ 'AZ': 'Arizona',
1169
+ 'AR': 'Arkansas',
1170
+ 'CA': 'California',
1171
+ 'CO': 'Colorado',
1172
+ 'CT': 'Connecticut',
1173
+ 'DE': 'Delaware',
1174
+ 'DC': 'District Of Columbia',
1175
+ 'FL': 'Florida',
1176
+ 'GA': 'Georgia',
1177
+ 'HI': 'Hawaii',
1178
+ 'ID': 'Idaho',
1179
+ 'IL': 'Illinois',
1180
+ 'IN': 'Indiana',
1181
+ 'IA': 'Iowa',
1182
+ 'KS': 'Kansas',
1183
+ 'KY': 'Kentucky',
1184
+ 'LA': 'Louisiana',
1185
+ 'ME': 'Maine',
1186
+ 'MD': 'Maryland',
1187
+ 'MA': 'Massachusetts',
1188
+ 'MI': 'Michigan',
1189
+ 'MN': 'Minnesota',
1190
+ 'MS': 'Mississippi',
1191
+ 'MO': 'Missouri',
1192
+ 'MT': 'Montana',
1193
+ 'NE': 'Nebraska',
1194
+ 'NV': 'Nevada',
1195
+ 'NH': 'New Hampshire',
1196
+ 'NJ': 'New Jersey',
1197
+ 'NM': 'New Mexico',
1198
+ 'NY': 'New York',
1199
+ 'NC': 'North Carolina',
1200
+ 'ND': 'North Dakota',
1201
+ 'OH': 'Ohio',
1202
+ 'OK': 'Oklahoma',
1203
+ 'OR': 'Oregon',
1204
+ 'PA': 'Pennsylvania',
1205
+ 'RI': 'Rhode Island',
1206
+ 'SC': 'South Carolina',
1207
+ 'SD': 'South Dakota',
1208
+ 'TN': 'Tennessee',
1209
+ 'TX': 'Texas',
1210
+ 'UT': 'Utah',
1211
+ 'VT': 'Vermont',
1212
+ 'VA': 'Virginia',
1213
+ 'WA': 'Washington',
1214
+ 'WV': 'West Virginia',
1215
+ 'WI': 'Wisconsin',
1216
+ 'WY': 'Wyoming',
1217
+ 'AB': 'Alberta',
1218
+ 'BC': 'British Columbia',
1219
+ 'MB': 'Manitoba',
1220
+ 'NB': 'New Brunswick',
1221
+ 'NL': 'Newfoundland and Labrador',
1222
+ 'NS': 'Nova Scotia',
1223
+ 'ON': 'Ontario',
1224
+ 'PE': 'Prince Edward Island',
1225
+ 'QC': 'Quebec',
1226
+ 'SK': 'Saskatchewan',
1227
+ 'NT': 'Northwest Territories',
1228
+ 'NU': 'Nunavut',
1229
+ 'YT': 'Yukon'
1230
+ },
1231
+
1232
+ countries: {
1233
+ 'US': 'United States',
1234
+ 'GB': 'United Kingdom',
1235
+ 'AF': 'Afghanistan',
1236
+ 'AX': 'Aland Islands',
1237
+ 'AL': 'Albania',
1238
+ 'DZ': 'Algeria',
1239
+ 'AS': 'American Samoa',
1240
+ 'AD': 'Andorra',
1241
+ 'AO': 'Angola',
1242
+ 'AI': 'Anguilla',
1243
+ 'AQ': 'Antarctica',
1244
+ 'AG': 'Antigua and Barbuda',
1245
+ 'AR': 'Argentina',
1246
+ 'AM': 'Armenia',
1247
+ 'AW': 'Aruba',
1248
+ 'AU': 'Australia',
1249
+ 'AT': 'Austria',
1250
+ 'AZ': 'Azerbaijan',
1251
+ 'BS': 'Bahamas',
1252
+ 'BH': 'Bahrain',
1253
+ 'BD': 'Bangladesh',
1254
+ 'BB': 'Barbados',
1255
+ 'BY': 'Belarus',
1256
+ 'BE': 'Belgium',
1257
+ 'BZ': 'Belize',
1258
+ 'BJ': 'Benin',
1259
+ 'BM': 'Bermuda',
1260
+ 'BT': 'Bhutan',
1261
+ 'BO': 'Bolivia',
1262
+ 'BA': 'Bosnia and Herzegovina',
1263
+ 'BW': 'Botswana',
1264
+ 'BV': 'Bouvet Island',
1265
+ 'BR': 'Brazil',
1266
+ 'IO': 'British Indian Ocean Territory',
1267
+ 'BN': 'Brunei Darussalam',
1268
+ 'BG': 'Bulgaria',
1269
+ 'BF': 'Burkina Faso',
1270
+ 'BI': 'Burundi',
1271
+ 'KH': 'Cambodia',
1272
+ 'CM': 'Cameroon',
1273
+ 'CA': 'Canada',
1274
+ 'CV': 'Cape Verde',
1275
+ 'KY': 'Cayman Islands',
1276
+ 'CF': 'Central African Republic',
1277
+ 'TD': 'Chad',
1278
+ 'CL': 'Chile',
1279
+ 'CN': 'China',
1280
+ 'CX': 'Christmas Island',
1281
+ 'CC': 'Cocos (Keeling) Islands',
1282
+ 'CO': 'Colombia',
1283
+ 'KM': 'Comoros',
1284
+ 'CG': 'Congo',
1285
+ 'CD': 'Congo, The Democratic Republic of The',
1286
+ 'CK': 'Cook Islands',
1287
+ 'CR': 'Costa Rica',
1288
+ 'CI': 'Cote D’ivoire',
1289
+ 'HR': 'Croatia',
1290
+ 'CU': 'Cuba',
1291
+ 'CY': 'Cyprus',
1292
+ 'CZ': 'Czech Republic',
1293
+ 'DK': 'Denmark',
1294
+ 'DJ': 'Djibouti',
1295
+ 'DM': 'Dominica',
1296
+ 'DO': 'Dominican Republic',
1297
+ 'EC': 'Ecuador',
1298
+ 'EG': 'Egypt',
1299
+ 'SV': 'El Salvador',
1300
+ 'GQ': 'Equatorial Guinea',
1301
+ 'ER': 'Eritrea',
1302
+ 'EE': 'Estonia',
1303
+ 'ET': 'Ethiopia',
1304
+ 'FK': 'Falkland Islands (Malvinas)',
1305
+ 'FO': 'Faroe Islands',
1306
+ 'FJ': 'Fiji',
1307
+ 'FI': 'Finland',
1308
+ 'FR': 'France',
1309
+ 'GF': 'French Guiana',
1310
+ 'PF': 'French Polynesia',
1311
+ 'TF': 'French Southern Territories',
1312
+ 'GA': 'Gabon',
1313
+ 'GM': 'Gambia',
1314
+ 'GE': 'Georgia',
1315
+ 'DE': 'Germany',
1316
+ 'GH': 'Ghana',
1317
+ 'GI': 'Gibraltar',
1318
+ 'GR': 'Greece',
1319
+ 'GL': 'Greenland',
1320
+ 'GD': 'Grenada',
1321
+ 'GP': 'Guadeloupe',
1322
+ 'GU': 'Guam',
1323
+ 'GT': 'Guatemala',
1324
+ 'GG': 'Guernsey',
1325
+ 'GN': 'Guinea',
1326
+ 'GW': 'Guinea-bissau',
1327
+ 'GY': 'Guyana',
1328
+ 'HT': 'Haiti',
1329
+ 'HM': 'Heard Island and Mcdonald Islands',
1330
+ 'VA': 'Holy See (Vatican City State)',
1331
+ 'HN': 'Honduras',
1332
+ 'HK': 'Hong Kong',
1333
+ 'HU': 'Hungary',
1334
+ 'IS': 'Iceland',
1335
+ 'IN': 'India',
1336
+ 'ID': 'Indonesia',
1337
+ 'IR': 'Iran, Islamic Republic of',
1338
+ 'IQ': 'Iraq',
1339
+ 'IE': 'Ireland',
1340
+ 'IM': 'Isle of Man',
1341
+ 'IL': 'Israel',
1342
+ 'IT': 'Italy',
1343
+ 'JM': 'Jamaica',
1344
+ 'JP': 'Japan',
1345
+ 'JE': 'Jersey',
1346
+ 'JO': 'Jordan',
1347
+ 'KZ': 'Kazakhstan',
1348
+ 'KE': 'Kenya',
1349
+ 'KI': 'Kiribati',
1350
+ 'KP': 'Korea, Democratic People’s Republic of',
1351
+ 'KR': 'Korea, Republic of',
1352
+ 'KW': 'Kuwait',
1353
+ 'KG': 'Kyrgyzstan',
1354
+ 'LA': 'Lao People’s Democratic Republic',
1355
+ 'LV': 'Latvia',
1356
+ 'LB': 'Lebanon',
1357
+ 'LS': 'Lesotho',
1358
+ 'LR': 'Liberia',
1359
+ 'LY': 'Libyan Arab Jamahiriya',
1360
+ 'LI': 'Liechtenstein',
1361
+ 'LT': 'Lithuania',
1362
+ 'LU': 'Luxembourg',
1363
+ 'MO': 'Macao',
1364
+ 'MK': 'Macedonia, The Former Yugoslav Republic of',
1365
+ 'MG': 'Madagascar',
1366
+ 'MW': 'Malawi',
1367
+ 'MY': 'Malaysia',
1368
+ 'MV': 'Maldives',
1369
+ 'ML': 'Mali',
1370
+ 'MT': 'Malta',
1371
+ 'MH': 'Marshall Islands',
1372
+ 'MQ': 'Martinique',
1373
+ 'MR': 'Mauritania',
1374
+ 'MU': 'Mauritius',
1375
+ 'YT': 'Mayotte',
1376
+ 'MX': 'Mexico',
1377
+ 'FM': 'Micronesia, Federated States of',
1378
+ 'MD': 'Moldova, Republic of',
1379
+ 'MC': 'Monaco',
1380
+ 'MN': 'Mongolia',
1381
+ 'ME': 'Montenegro',
1382
+ 'MS': 'Montserrat',
1383
+ 'MA': 'Morocco',
1384
+ 'MZ': 'Mozambique',
1385
+ 'MM': 'Myanmar',
1386
+ 'NA': 'Namibia',
1387
+ 'NR': 'Nauru',
1388
+ 'NP': 'Nepal',
1389
+ 'NL': 'Netherlands',
1390
+ 'AN': 'Netherlands Antilles',
1391
+ 'NC': 'New Caledonia',
1392
+ 'NZ': 'New Zealand',
1393
+ 'NI': 'Nicaragua',
1394
+ 'NE': 'Niger',
1395
+ 'NG': 'Nigeria',
1396
+ 'NU': 'Niue',
1397
+ 'NF': 'Norfolk Island',
1398
+ 'MP': 'Northern Mariana Islands',
1399
+ 'NO': 'Norway',
1400
+ 'OM': 'Oman',
1401
+ 'PK': 'Pakistan',
1402
+ 'PW': 'Palau',
1403
+ 'PS': 'Palestinian Territory, Occupied',
1404
+ 'PA': 'Panama',
1405
+ 'PG': 'Papua New Guinea',
1406
+ 'PY': 'Paraguay',
1407
+ 'PE': 'Peru',
1408
+ 'PH': 'Philippines',
1409
+ 'PN': 'Pitcairn',
1410
+ 'PL': 'Poland',
1411
+ 'PT': 'Portugal',
1412
+ 'PR': 'Puerto Rico',
1413
+ 'QA': 'Qatar',
1414
+ 'RE': 'Reunion',
1415
+ 'RO': 'Romania',
1416
+ 'RU': 'Russian Federation',
1417
+ 'RW': 'Rwanda',
1418
+ 'SH': 'Saint Helena',
1419
+ 'KN': 'Saint Kitts and Nevis',
1420
+ 'LC': 'Saint Lucia',
1421
+ 'PM': 'Saint Pierre and Miquelon',
1422
+ 'VC': 'Saint Vincent and The Grenadines',
1423
+ 'WS': 'Samoa',
1424
+ 'SM': 'San Marino',
1425
+ 'ST': 'Sao Tome and Principe',
1426
+ 'SA': 'Saudi Arabia',
1427
+ 'SN': 'Senegal',
1428
+ 'RS': 'Serbia',
1429
+ 'SC': 'Seychelles',
1430
+ 'SL': 'Sierra Leone',
1431
+ 'SG': 'Singapore',
1432
+ 'SK': 'Slovakia',
1433
+ 'SI': 'Slovenia',
1434
+ 'SB': 'Solomon Islands',
1435
+ 'SO': 'Somalia',
1436
+ 'ZA': 'South Africa',
1437
+ 'GS': 'South Georgia and The South Sandwich Islands',
1438
+ 'ES': 'Spain',
1439
+ 'LK': 'Sri Lanka',
1440
+ 'SD': 'Sudan',
1441
+ 'SR': 'Suriname',
1442
+ 'SJ': 'Svalbard and Jan Mayen',
1443
+ 'SZ': 'Swaziland',
1444
+ 'SE': 'Sweden',
1445
+ 'CH': 'Switzerland',
1446
+ 'SY': 'Syrian Arab Republic',
1447
+ 'TW': 'Taiwan, Province of China',
1448
+ 'TJ': 'Tajikistan',
1449
+ 'TZ': 'Tanzania, United Republic of',
1450
+ 'TH': 'Thailand',
1451
+ 'TL': 'Timor-leste',
1452
+ 'TG': 'Togo',
1453
+ 'TK': 'Tokelau',
1454
+ 'TO': 'Tonga',
1455
+ 'TT': 'Trinidad and Tobago',
1456
+ 'TN': 'Tunisia',
1457
+ 'TR': 'Turkey',
1458
+ 'TM': 'Turkmenistan',
1459
+ 'TC': 'Turks and Caicos Islands',
1460
+ 'TV': 'Tuvalu',
1461
+ 'UG': 'Uganda',
1462
+ 'UA': 'Ukraine',
1463
+ 'AE': 'United Arab Emirates',
1464
+ 'UM': 'United States Minor Outlying Islands',
1465
+ 'UY': 'Uruguay',
1466
+ 'UZ': 'Uzbekistan',
1467
+ 'VU': 'Vanuatu',
1468
+ 'VE': 'Venezuela',
1469
+ 'VN': 'Viet Nam',
1470
+ 'VG': 'Virgin Islands, British',
1471
+ 'VI': 'Virgin Islands, U.S.',
1472
+ 'WF': 'Wallis and Futuna',
1473
+ 'EH': 'Western Sahara',
1474
+ 'YE': 'Yemen',
1475
+ 'ZM': 'Zambia',
1476
+ 'ZW': 'Zimbabwe'
1477
+ },
1478
+
1479
+ locales: {
1480
+ "ar": "Arabic",
1481
+ "af": "Afrikaans",
1482
+ "am": "Amharic",
1483
+ "hy": "Armenian",
1484
+ "az": "Azerbaijani",
1485
+ "eu": "Basque",
1486
+ "bn": "Bengali",
1487
+ "bg": "Bulgarian",
1488
+ "ca": "Catalan",
1489
+ "zh-HK": "Chinese (Hong Kong)",
1490
+ "zh-CN": "Chinese (Simplified)",
1491
+ "zh-TW": "Chinese (Traditional)",
1492
+ "hr": "Croatian",
1493
+ "cs": "Czech",
1494
+ "da": "Danish",
1495
+ "nl": "Dutch",
1496
+ "en-GB": "English (UK)",
1497
+ "en": "English (US)",
1498
+ "et": "Estonian",
1499
+ "fil": "Filipino",
1500
+ "fi": "Finnish",
1501
+ "fr": "French",
1502
+ "fr-CA": "French (Canadian)",
1503
+ "gl": "Galician",
1504
+ "ka": "Georgian",
1505
+ "de": "German",
1506
+ "de-AT": "German (Austria)",
1507
+ "de-CH": "German (Switzerland)",
1508
+ "el": "Greek",
1509
+ "gu": "Gujarati",
1510
+ "iw": "Hebrew",
1511
+ "hi": "Hindi",
1512
+ "hu": "Hungarain",
1513
+ "is": "Icelandic",
1514
+ "id": "Indonesian",
1515
+ "it": "Italian",
1516
+ "ja": "Japanese",
1517
+ "kn": "Kannada",
1518
+ "ko": "Korean",
1519
+ "lo": "Laothian",
1520
+ "lv": "Latvian",
1521
+ "lt": "Lithuanian",
1522
+ "ms": "Malay",
1523
+ "ml": "Malayalam",
1524
+ "mr": "Marathi",
1525
+ "mn": "Mongolian",
1526
+ "no": "Norwegian",
1527
+ "fa": "Persian",
1528
+ "pl": "Polish",
1529
+ "pt": "Portuguese",
1530
+ "pt-BR": "Portuguese (Brazil)",
1531
+ "pt-PT": "Portuguese (Portugal)",
1532
+ "ro": "Romanian",
1533
+ "ru": "Russian",
1534
+ "sr": "Serbian",
1535
+ "si": "Sinhalese",
1536
+ "sk": "Slovak",
1537
+ "sl": "Slovenian",
1538
+ "es": "Spanish",
1539
+ "es-419": "Spanish (Latin America)",
1540
+ "sw": "Swahili",
1541
+ "sv": "Swedish",
1542
+ "ta": "Tamil",
1543
+ "te": "Telugu",
1544
+ "th": "Thai",
1545
+ "tr": "Turkish",
1546
+ "uk": "Ukrainian",
1547
+ "ur": "Urdu",
1548
+ "vi": "Vietnamese",
1549
+ "zu": "Zulu"
1550
+ },
1551
+
1552
+ settings_url: 'wp-admin/admin.php?page=yikes-inc-easy-mailchimp-settings'
1553
  };
1554
 
1555
+ exports.default = constants;
1556
 
1557
  /***/ }),
1558
 
1585
 
1586
  /***/ }),
1587
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1588
  /***/ "./blocks/components/slugify.js":
1589
  /*!**************************************!*\
1590
  !*** ./blocks/components/slugify.js ***!
1622
 
1623
  /***/ }),
1624
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1625
  /***/ "./blocks/easy-forms-block/dev-easy-forms-block.js":
1626
  /*!*********************************************************!*\
1627
  !*** ./blocks/easy-forms-block/dev-easy-forms-block.js ***!
1636
 
1637
  var _classnames2 = _interopRequireDefault(_classnames);
1638
 
1639
+ var _api = __webpack_require__(/*! ../components/api.js */ "./blocks/components/api.js");
1640
 
1641
+ var _api2 = _interopRequireDefault(_api);
1642
 
1643
  var _classMailChimpForms = __webpack_require__(/*! ../components/class.MailChimpForms.js */ "./blocks/components/class.MailChimpForms.js");
1644
 
1664
  props.setAttributes({ form_id: event.target.value });
1665
 
1666
  if (event.target.value.length > 0) {
1667
+ var api = new _api2.default();
1668
+ api.get_form(event.target.value).then(function (form) {
1669
  props.setAttributes({ form: form.data });
1670
  props.setAttributes({ form_description: form.data.form_description });
1671
  props.setAttributes({ form_title: form.data.form_name });
1699
  props.setAttributes({ is_ajax: !!event.target.checked });
1700
  };
1701
 
1702
+ /* Allow this function to be called via a checkbox handler or directly by passing in a boolean */
1703
+ var toggleRecaptchaAbstract = function toggleRecaptchaAbstract(checked) {
1704
+ props.setAttributes({ recaptcha: checked });
1705
+ };
1706
+
1707
  var toggleRecaptcha = function toggleRecaptcha(event) {
1708
+ toggleRecaptchaAbstract(!!event.target.checked);
1709
  };
1710
 
1711
  var toggleRecaptchaTheme = function toggleRecaptchaTheme(value) {
1754
  toggleShowTitle: toggleShowTitle,
1755
  isAjax: props.attributes.is_ajax,
1756
  toggleIsAjax: toggleIsAjax,
1757
+ toggleRecaptchaAbstract: toggleRecaptchaAbstract,
1758
  recaptcha: props.attributes.recaptcha,
1759
  toggleRecaptcha: toggleRecaptcha,
1760
  recaptchaTheme: props.attributes.recaptcha_theme,
1817
  },
1818
  recaptcha: {
1819
  type: 'boolean',
1820
+ default: false
1821
  },
1822
  recaptcha_theme: {
1823
  type: 'string',
1919
  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; };
1920
 
1921
  /*!
1922
+ Copyright (c) 2017 Jed Watson.
1923
  Licensed under the MIT License (MIT), see
1924
  http://jedwatson.github.io/classnames
1925
  */
1941
 
1942
  if (argType === 'string' || argType === 'number') {
1943
  classes.push(arg);
1944
+ } else if (Array.isArray(arg) && arg.length) {
1945
+ var inner = classNames.apply(null, arg);
1946
+ if (inner) {
1947
+ classes.push(inner);
1948
+ }
1949
  } else if (argType === 'object') {
1950
  for (var key in arg) {
1951
  if (hasOwn.call(arg, key) && arg[key]) {
1959
  }
1960
 
1961
  if (typeof module !== 'undefined' && module.exports) {
1962
+ classNames.default = classNames;
1963
  module.exports = classNames;
1964
  } 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")) {
1965
  // register as 'classnames', consistent with npm package name
2072
  // Adapted from convert-source-map (MIT)
2073
  function toComment(sourceMap) {
2074
  // eslint-disable-next-line no-undef
2075
+ var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));
2076
+ var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2077
 
2078
+ return '/*# ' + data + ' */';
 
 
2079
  }
2080
 
 
 
2081
  /***/ }),
2082
 
2083
  /***/ "./node_modules/object-assign/index.js":
2200
 
2201
  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; };
2202
 
2203
+ var printWarning = function printWarning() {};
2204
+
2205
  if (true) {
 
 
2206
  var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "./node_modules/prop-types/lib/ReactPropTypesSecret.js");
2207
  var loggedTypeFailures = {};
2208
+
2209
+ printWarning = function printWarning(text) {
2210
+ var message = 'Warning: ' + text;
2211
+ if (typeof console !== 'undefined') {
2212
+ console.error(message);
2213
+ }
2214
+ try {
2215
+ // --- Welcome to debugging React ---
2216
+ // This error was thrown as a convenience so that you can use this stack
2217
+ // to find the callsite that caused this warning to fire.
2218
+ throw new Error(message);
2219
+ } catch (x) {}
2220
+ };
2221
  }
2222
 
2223
  /**
2242
  try {
2243
  // This is intentionally an invariant that gets caught. It's the same
2244
  // behavior as without this statement except with a better message.
2245
+ if (typeof typeSpecs[typeSpecName] !== 'function') {
2246
+ 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]) + '`.');
2247
+ err.name = 'Invariant Violation';
2248
+ throw err;
2249
+ }
2250
  error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
2251
  } catch (ex) {
2252
  error = ex;
2253
  }
2254
+ if (error && !(error instanceof Error)) {
2255
+ 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).');
2256
+ }
2257
  if (error instanceof Error && !(error.message in loggedTypeFailures)) {
2258
  // Only monitor this failure once because there tends to be a lot of the
2259
  // same error.
2261
 
2262
  var stack = getStack ? getStack() : '';
2263
 
2264
+ printWarning('Failed ' + location + ' type: ' + error.message + (stack != null ? stack : ''));
2265
  }
2266
  }
2267
  }
2327
  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;
2328
  }function i(e, t) {
2329
  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);
2330
+ }Object.defineProperty(t, "__esModule", { value: !0 });var l = function () {
2331
  function e(e, t) {
2332
  for (var a = 0; a < t.length; a++) {
2333
  var r = t[a];r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
2336
  return a && e(t.prototype, a), r && e(t, r), t;
2337
  };
2338
  }(),
2339
+ s = a(6),
2340
+ c = r(s),
2341
  p = a(4),
2342
  u = r(p),
2343
+ 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"]) },
2344
+ 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" },
2345
  h = function h() {
2346
+ return "undefined" != typeof window && "undefined" != typeof window.grecaptcha && "function" == typeof window.grecaptcha.render;
2347
  },
2348
  y = void 0,
2349
  b = function (e) {
2350
  function t(e) {
2351
+ 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;
2352
+ }return i(t, e), l(t, [{ key: "componentDidMount", value: function value() {
2353
  this.state.ready && this._renderGrecaptcha();
2354
  } }, { key: "componentDidUpdate", value: function value(e, t) {
2355
  var a = this.props,
2370
  } }, { key: "_renderGrecaptcha", value: function value() {
2371
  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();
2372
  } }, { key: "render", value: function value() {
2373
+ 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 });
2374
  } }]), t;
2375
+ }(s.Component);t.default = b, b.propTypes = d, b.defaultProps = f, e.exports = t.default;
2376
  }, function (e, t) {
2377
  "use strict";
2378
  function a(e) {
2386
  }, e.exports = r;
2387
  }, function (e, t, a) {
2388
  "use strict";
2389
+ function r(e, t, a, r, o, i, l, s) {
2390
  if (n(t), !e) {
2391
  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 {
2392
+ var p = [a, r, o, i, l, s],
2393
  u = 0;c = new Error(t.replace(/%s/g, function () {
2394
  return p[u++];
2395
  })), c.name = "Invariant Violation";
2401
  var r = a(1),
2402
  n = a(2),
2403
  o = a(5);e.exports = function () {
2404
+ function e(e, t, a, r, i, l) {
2405
+ 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");
2406
  }function t() {
2407
  return e;
2408
  }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;
2428
  /***/ (function(module, exports, __webpack_require__) {
2429
 
2430
  "use strict";
2431
+ /** @license React v16.6.0
2432
  * react.development.js
2433
  *
2434
+ * Copyright (c) Facebook, Inc. and its affiliates.
2435
  *
2436
  * This source code is licensed under the MIT license found in the
2437
  * LICENSE file in the root directory of this source tree.
2446
  'use strict';
2447
 
2448
  var _assign = __webpack_require__(/*! object-assign */ "./node_modules/object-assign/index.js");
 
 
 
 
2449
  var checkPropTypes = __webpack_require__(/*! prop-types/checkPropTypes */ "./node_modules/prop-types/checkPropTypes.js");
2450
 
2451
  // TODO: this is special because it gets imported during build.
2452
 
2453
+ var ReactVersion = '16.6.0';
2454
 
2455
  // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
2456
  // nor polyfill, then a plain number is used for performance.
2457
+ var hasSymbol = typeof Symbol === 'function' && Symbol.for;
2458
+
2459
+ var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
2460
+ var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
2461
+ var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
2462
+ var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
2463
+ var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
2464
+ var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
2465
+ var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
2466
+ var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
2467
+ var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
2468
+ var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
2469
+ var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
2470
+ var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
2471
 
2472
  var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
2473
  var FAUX_ITERATOR_SYMBOL = '@@iterator';
2474
 
2475
  function getIteratorFn(maybeIterable) {
2476
+ if (maybeIterable === null || (typeof maybeIterable === 'undefined' ? 'undefined' : _typeof(maybeIterable)) !== 'object') {
2477
  return null;
2478
  }
2479
  var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
2484
  }
2485
 
2486
  /**
2487
+ * Use invariant() to assert state which your program assumes to be true.
2488
+ *
2489
+ * Provide sprintf-style format (only %s is supported) and arguments
2490
+ * to provide information about what broke and what you were
2491
+ * expecting.
2492
+ *
2493
+ * The invariant message will be stripped in production, but the invariant
2494
+ * will remain to ensure logic does not differ in production.
2495
  */
2496
 
2497
+ var validateFormat = function validateFormat() {};
2498
+
2499
+ {
2500
+ validateFormat = function validateFormat(format) {
2501
+ if (format === undefined) {
2502
+ throw new Error('invariant requires an error message argument');
2503
+ }
2504
+ };
2505
+ }
2506
+
2507
+ function invariant(condition, format, a, b, c, d, e, f) {
2508
+ validateFormat(format);
2509
+
2510
+ if (!condition) {
2511
+ var error = void 0;
2512
+ if (format === undefined) {
2513
+ error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');
2514
+ } else {
2515
+ var args = [a, b, c, d, e, f];
2516
+ var argIndex = 0;
2517
+ error = new Error(format.replace(/%s/g, function () {
2518
+ return args[argIndex++];
2519
+ }));
2520
+ error.name = 'Invariant Violation';
2521
+ }
2522
+
2523
+ error.framesToPop = 1; // we don't care about invariant's own frame
2524
+ throw error;
2525
+ }
2526
+ }
2527
+
2528
+ // Relying on the `invariant()` implementation lets us
2529
+ // preserve the format and params in the www builds.
2530
+
2531
  /**
2532
  * Forked from fbjs/warning:
2533
  * https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
2567
 
2568
  lowPriorityWarning = function lowPriorityWarning(condition, format) {
2569
  if (format === undefined) {
2570
+ throw new Error('`lowPriorityWarning(condition, format, ...args)` requires a warning ' + 'message argument');
2571
  }
2572
  if (!condition) {
2573
  for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
2581
 
2582
  var lowPriorityWarning$1 = lowPriorityWarning;
2583
 
2584
+ /**
2585
+ * Similar to invariant but only logs a warning if the condition is not met.
2586
+ * This can be used to log issues in development environments in critical
2587
+ * paths. Removing the logging code for production environments will keep the
2588
+ * same logic and follow the same code paths.
2589
+ */
2590
+
2591
+ var warningWithoutStack = function warningWithoutStack() {};
2592
+
2593
+ {
2594
+ warningWithoutStack = function warningWithoutStack(condition, format) {
2595
+ for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
2596
+ args[_key - 2] = arguments[_key];
2597
+ }
2598
+
2599
+ if (format === undefined) {
2600
+ throw new Error('`warningWithoutStack(condition, format, ...args)` requires a warning ' + 'message argument');
2601
+ }
2602
+ if (args.length > 8) {
2603
+ // Check before the condition to catch violations early.
2604
+ throw new Error('warningWithoutStack() currently supports at most 8 arguments.');
2605
+ }
2606
+ if (condition) {
2607
+ return;
2608
+ }
2609
+ if (typeof console !== 'undefined') {
2610
+ var _args$map = args.map(function (item) {
2611
+ return '' + item;
2612
+ }),
2613
+ a = _args$map[0],
2614
+ b = _args$map[1],
2615
+ c = _args$map[2],
2616
+ d = _args$map[3],
2617
+ e = _args$map[4],
2618
+ f = _args$map[5],
2619
+ g = _args$map[6],
2620
+ h = _args$map[7];
2621
+
2622
+ var message = 'Warning: ' + format;
2623
+
2624
+ // We intentionally don't use spread (or .apply) because it breaks IE9:
2625
+ // https://github.com/facebook/react/issues/13610
2626
+ switch (args.length) {
2627
+ case 0:
2628
+ console.error(message);
2629
+ break;
2630
+ case 1:
2631
+ console.error(message, a);
2632
+ break;
2633
+ case 2:
2634
+ console.error(message, a, b);
2635
+ break;
2636
+ case 3:
2637
+ console.error(message, a, b, c);
2638
+ break;
2639
+ case 4:
2640
+ console.error(message, a, b, c, d);
2641
+ break;
2642
+ case 5:
2643
+ console.error(message, a, b, c, d, e);
2644
+ break;
2645
+ case 6:
2646
+ console.error(message, a, b, c, d, e, f);
2647
+ break;
2648
+ case 7:
2649
+ console.error(message, a, b, c, d, e, f, g);
2650
+ break;
2651
+ case 8:
2652
+ console.error(message, a, b, c, d, e, f, g, h);
2653
+ break;
2654
+ default:
2655
+ throw new Error('warningWithoutStack() currently supports at most 8 arguments.');
2656
+ }
2657
+ }
2658
+ try {
2659
+ // --- Welcome to debugging React ---
2660
+ // This error was thrown as a convenience so that you can use this stack
2661
+ // to find the callsite that caused this warning to fire.
2662
+ var argIndex = 0;
2663
+ var _message = 'Warning: ' + format.replace(/%s/g, function () {
2664
+ return args[argIndex++];
2665
+ });
2666
+ throw new Error(_message);
2667
+ } catch (x) {}
2668
+ };
2669
+ }
2670
+
2671
+ var warningWithoutStack$1 = warningWithoutStack;
2672
+
2673
  var didWarnStateUpdateForUnmountedComponent = {};
2674
 
2675
  function warnNoop(publicInstance, callerName) {
2680
  if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
2681
  return;
2682
  }
2683
+ 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);
2684
  didWarnStateUpdateForUnmountedComponent[warningKey] = true;
2685
  }
2686
  }
2753
  }
2754
  };
2755
 
2756
+ var emptyObject = {};
2757
+ {
2758
+ Object.freeze(emptyObject);
2759
+ }
2760
+
2761
  /**
2762
  * Base class helpers for the updating state of a component.
2763
  */
2764
  function Component(props, context, updater) {
2765
  this.props = props;
2766
  this.context = context;
2767
+ // If a component has string refs, we will assign a different object later.
2768
  this.refs = emptyObject;
2769
  // We initialize the default updater but the real one gets injected by the
2770
  // renderer.
2855
  function PureComponent(props, context, updater) {
2856
  this.props = props;
2857
  this.context = context;
2858
+ // If a component has string refs, we will assign a different object later.
2859
  this.refs = emptyObject;
2860
  this.updater = updater || ReactNoopUpdateQueue;
2861
  }
2888
  * @internal
2889
  * @type {ReactComponent}
2890
  */
2891
+ current: null,
2892
+ currentDispatcher: null
2893
+ };
2894
+
2895
+ var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
2896
+
2897
+ var describeComponentFrame = function describeComponentFrame(name, source, ownerName) {
2898
+ var sourceInfo = '';
2899
+ if (source) {
2900
+ var path = source.fileName;
2901
+ var fileName = path.replace(BEFORE_SLASH_RE, '');
2902
+ {
2903
+ // In DEV, include code for a common special case:
2904
+ // prefer "folder/index.js" instead of just "index.js".
2905
+ if (/^index\./.test(fileName)) {
2906
+ var match = path.match(BEFORE_SLASH_RE);
2907
+ if (match) {
2908
+ var pathBeforeSlash = match[1];
2909
+ if (pathBeforeSlash) {
2910
+ var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, '');
2911
+ fileName = folderName + '/' + fileName;
2912
+ }
2913
+ }
2914
+ }
2915
+ }
2916
+ sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')';
2917
+ } else if (ownerName) {
2918
+ sourceInfo = ' (created by ' + ownerName + ')';
2919
+ }
2920
+ return '\n in ' + (name || 'Unknown') + sourceInfo;
2921
+ };
2922
+
2923
+ var Resolved = 1;
2924
+
2925
+ function refineResolvedLazyComponent(lazyComponent) {
2926
+ return lazyComponent._status === Resolved ? lazyComponent._result : null;
2927
+ }
2928
+
2929
+ function getWrappedName(outerType, innerType, wrapperName) {
2930
+ var functionName = innerType.displayName || innerType.name || '';
2931
+ return outerType.displayName || (functionName !== '' ? wrapperName + '(' + functionName + ')' : wrapperName);
2932
+ }
2933
+
2934
+ function getComponentName(type) {
2935
+ if (type == null) {
2936
+ // Host root, text node or just invalid type.
2937
+ return null;
2938
+ }
2939
+ {
2940
+ if (typeof type.tag === 'number') {
2941
+ warningWithoutStack$1(false, 'Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
2942
+ }
2943
+ }
2944
+ if (typeof type === 'function') {
2945
+ return type.displayName || type.name || null;
2946
+ }
2947
+ if (typeof type === 'string') {
2948
+ return type;
2949
+ }
2950
+ switch (type) {
2951
+ case REACT_CONCURRENT_MODE_TYPE:
2952
+ return 'ConcurrentMode';
2953
+ case REACT_FRAGMENT_TYPE:
2954
+ return 'Fragment';
2955
+ case REACT_PORTAL_TYPE:
2956
+ return 'Portal';
2957
+ case REACT_PROFILER_TYPE:
2958
+ return 'Profiler';
2959
+ case REACT_STRICT_MODE_TYPE:
2960
+ return 'StrictMode';
2961
+ case REACT_SUSPENSE_TYPE:
2962
+ return 'Suspense';
2963
+ }
2964
+ if ((typeof type === 'undefined' ? 'undefined' : _typeof(type)) === 'object') {
2965
+ switch (type.$$typeof) {
2966
+ case REACT_CONTEXT_TYPE:
2967
+ return 'Context.Consumer';
2968
+ case REACT_PROVIDER_TYPE:
2969
+ return 'Context.Provider';
2970
+ case REACT_FORWARD_REF_TYPE:
2971
+ return getWrappedName(type, type.render, 'ForwardRef');
2972
+ case REACT_MEMO_TYPE:
2973
+ return getComponentName(type.type);
2974
+ case REACT_LAZY_TYPE:
2975
+ {
2976
+ var thenable = type;
2977
+ var resolvedThenable = refineResolvedLazyComponent(thenable);
2978
+ if (resolvedThenable) {
2979
+ return getComponentName(resolvedThenable);
2980
+ }
2981
+ }
2982
+ }
2983
+ }
2984
+ return null;
2985
+ }
2986
+
2987
+ var ReactDebugCurrentFrame = {};
2988
+
2989
+ var currentlyValidatingElement = null;
2990
+
2991
+ function setCurrentlyValidatingElement(element) {
2992
+ {
2993
+ currentlyValidatingElement = element;
2994
+ }
2995
+ }
2996
+
2997
+ {
2998
+ // Stack implementation injected by the current renderer.
2999
+ ReactDebugCurrentFrame.getCurrentStack = null;
3000
+
3001
+ ReactDebugCurrentFrame.getStackAddendum = function () {
3002
+ var stack = '';
3003
+
3004
+ // Add an extra top frame while an element is being validated
3005
+ if (currentlyValidatingElement) {
3006
+ var name = getComponentName(currentlyValidatingElement.type);
3007
+ var owner = currentlyValidatingElement._owner;
3008
+ stack += describeComponentFrame(name, currentlyValidatingElement._source, owner && getComponentName(owner.type));
3009
+ }
3010
+
3011
+ // Delegate to the injected renderer-specific implementation
3012
+ var impl = ReactDebugCurrentFrame.getCurrentStack;
3013
+ if (impl) {
3014
+ stack += impl() || '';
3015
+ }
3016
+
3017
+ return stack;
3018
+ };
3019
+ }
3020
+
3021
+ var ReactSharedInternals = {
3022
+ ReactCurrentOwner: ReactCurrentOwner,
3023
+ // Used by renderers to avoid bundling object-assign twice in UMD bundles:
3024
+ assign: _assign
3025
  };
3026
 
3027
+ {
3028
+ _assign(ReactSharedInternals, {
3029
+ // These should not be included in production.
3030
+ ReactDebugCurrentFrame: ReactDebugCurrentFrame,
3031
+ // Shim for React DOM 16.0.0 which still destructured (but not used) this.
3032
+ // TODO: remove in React 17.0.
3033
+ ReactComponentTreeHook: {}
3034
+ });
3035
+ }
3036
+
3037
+ /**
3038
+ * Similar to invariant but only logs a warning if the condition is not met.
3039
+ * This can be used to log issues in development environments in critical
3040
+ * paths. Removing the logging code for production environments will keep the
3041
+ * same logic and follow the same code paths.
3042
+ */
3043
+
3044
+ var warning = warningWithoutStack$1;
3045
+
3046
+ {
3047
+ warning = function warning(condition, format) {
3048
+ if (condition) {
3049
+ return;
3050
+ }
3051
+ var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
3052
+ var stack = ReactDebugCurrentFrame.getStackAddendum();
3053
+ // eslint-disable-next-line react-internal/warning-and-invariant-args
3054
+
3055
+ for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
3056
+ args[_key - 2] = arguments[_key];
3057
+ }
3058
+
3059
+ warningWithoutStack$1.apply(undefined, [false, format + '%s'].concat(args, [stack]));
3060
+ };
3061
+ }
3062
+
3063
+ var warning$1 = warning;
3064
+
3065
  var hasOwnProperty = Object.prototype.hasOwnProperty;
3066
 
3067
  var RESERVED_PROPS = {
3102
  var warnAboutAccessingKey = function warnAboutAccessingKey() {
3103
  if (!specialPropKeyWarningShown) {
3104
  specialPropKeyWarningShown = true;
3105
+ 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);
3106
  }
3107
  };
3108
  warnAboutAccessingKey.isReactWarning = true;
3116
  var warnAboutAccessingRef = function warnAboutAccessingRef() {
3117
  if (!specialPropRefWarningShown) {
3118
  specialPropRefWarningShown = true;
3119
+ 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);
3120
  }
3121
  };
3122
  warnAboutAccessingRef.isReactWarning = true;
3264
  }
3265
  {
3266
  if (key || ref) {
3267
+ var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
3268
+ if (key) {
3269
+ defineKeyPropWarningGetter(props, displayName);
3270
+ }
3271
+ if (ref) {
3272
+ defineRefPropWarningGetter(props, displayName);
 
 
3273
  }
3274
  }
3275
  }
3292
  * See https://reactjs.org/docs/react-api.html#cloneelement
3293
  */
3294
  function cloneElement(element, config, children) {
3295
+ !!(element === null || element === undefined) ? invariant(false, 'React.cloneElement(...): The argument must be a React element, but you passed %s.', element) : void 0;
3296
+
3297
  var propName = void 0;
3298
 
3299
  // Original props are copied
3359
  * Verifies the object is a ReactElement.
3360
  * See https://reactjs.org/docs/react-api.html#isvalidelement
3361
  * @param {?object} object
3362
+ * @return {boolean} True if `object` is a ReactElement.
3363
  * @final
3364
  */
3365
  function isValidElement(object) {
3366
  return (typeof object === 'undefined' ? 'undefined' : _typeof(object)) === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
3367
  }
3368
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3369
  var SEPARATOR = '.';
3370
  var SUBSEPARATOR = ':';
3371
 
3493
  {
3494
  // Warn about using Maps as children
3495
  if (iteratorFn === children.entries) {
3496
+ !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;
3497
  didWarnAboutMaps = true;
3498
  }
3499
  }
3571
  /**
3572
  * Iterates through children that are typically specified as `props.children`.
3573
  *
3574
+ * See https://reactjs.org/docs/react-api.html#reactchildrenforeach
3575
  *
3576
  * The provided forEachFunc(child, index) will be called for each
3577
  * leaf child.
3597
 
3598
  var mappedChild = func.call(context, child, bookKeeping.count++);
3599
  if (Array.isArray(mappedChild)) {
3600
+ mapIntoWithKeyPrefixInternal(mappedChild, result, childKey, function (c) {
3601
+ return c;
3602
+ });
3603
  } else if (mappedChild != null) {
3604
  if (isValidElement(mappedChild)) {
3605
  mappedChild = cloneAndReplaceKey(mappedChild,
3624
  /**
3625
  * Maps children that are typically specified as `props.children`.
3626
  *
3627
+ * See https://reactjs.org/docs/react-api.html#reactchildrenmap
3628
  *
3629
  * The provided mapFunction(child, key, index) will be called for each
3630
  * leaf child.
3647
  * Count the number of children that are typically specified as
3648
  * `props.children`.
3649
  *
3650
+ * See https://reactjs.org/docs/react-api.html#reactchildrencount
3651
  *
3652
  * @param {?*} children Children tree container.
3653
  * @return {number} The number of children.
3654
  */
3655
+ function countChildren(children) {
3656
+ return traverseAllChildren(children, function () {
3657
+ return null;
3658
+ }, null);
3659
  }
3660
 
3661
  /**
3662
  * Flatten a children object (typically specified as `props.children`) and
3663
  * return an array with appropriately re-keyed children.
3664
  *
3665
+ * See https://reactjs.org/docs/react-api.html#reactchildrentoarray
3666
  */
3667
  function toArray(children) {
3668
  var result = [];
3669
+ mapIntoWithKeyPrefixInternal(children, result, null, function (child) {
3670
+ return child;
3671
+ });
3672
  return result;
3673
  }
3674
 
3676
  * Returns the first child in a collection of children and verifies that there
3677
  * is only one child in the collection.
3678
  *
3679
+ * See https://reactjs.org/docs/react-api.html#reactchildrenonly
3680
  *
3681
  * The current implementation of this function assumes that a single child gets
3682
  * passed without a wrapper, but the purpose of this helper function is to
3696
  calculateChangedBits = null;
3697
  } else {
3698
  {
3699
+ !(calculateChangedBits === null || typeof calculateChangedBits === 'function') ? warningWithoutStack$1(false, 'createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits) : void 0;
3700
  }
3701
  }
3702
 
3703
  var context = {
3704
  $$typeof: REACT_CONTEXT_TYPE,
3705
  _calculateChangedBits: calculateChangedBits,
3706
+ // As a workaround to support multiple concurrent renderers, we categorize
3707
+ // some renderers as primary and others as secondary. We only expect
3708
+ // there to be two concurrent renderers at most: React Native (primary) and
3709
+ // Fabric (secondary); React DOM (primary) and React ART (secondary).
3710
+ // Secondary renderers store their context values on separate fields.
3711
  _currentValue: defaultValue,
3712
+ _currentValue2: defaultValue,
3713
  // These are circular
3714
  Provider: null,
3715
  Consumer: null
3719
  $$typeof: REACT_PROVIDER_TYPE,
3720
  _context: context
3721
  };
3722
+
3723
+ var hasWarnedAboutUsingNestedContextConsumers = false;
3724
+ var hasWarnedAboutUsingConsumerProvider = false;
3725
+
3726
+ {
3727
+ // A separate object, but proxies back to the original context object for
3728
+ // backwards compatibility. It has a different $$typeof, so we can properly
3729
+ // warn for the incorrect usage of Context as a Consumer.
3730
+ var Consumer = {
3731
+ $$typeof: REACT_CONTEXT_TYPE,
3732
+ _context: context,
3733
+ _calculateChangedBits: context._calculateChangedBits
3734
+ };
3735
+ // $FlowFixMe: Flow complains about not setting a value, which is intentional here
3736
+ Object.defineProperties(Consumer, {
3737
+ Provider: {
3738
+ get: function get() {
3739
+ if (!hasWarnedAboutUsingConsumerProvider) {
3740
+ hasWarnedAboutUsingConsumerProvider = true;
3741
+ 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?');
3742
+ }
3743
+ return context.Provider;
3744
+ },
3745
+ set: function set(_Provider) {
3746
+ context.Provider = _Provider;
3747
+ }
3748
+ },
3749
+ _currentValue: {
3750
+ get: function get() {
3751
+ return context._currentValue;
3752
+ },
3753
+ set: function set(_currentValue) {
3754
+ context._currentValue = _currentValue;
3755
+ }
3756
+ },
3757
+ _currentValue2: {
3758
+ get: function get() {
3759
+ return context._currentValue2;
3760
+ },
3761
+ set: function set(_currentValue2) {
3762
+ context._currentValue2 = _currentValue2;
3763
+ }
3764
+ },
3765
+ Consumer: {
3766
+ get: function get() {
3767
+ if (!hasWarnedAboutUsingNestedContextConsumers) {
3768
+ hasWarnedAboutUsingNestedContextConsumers = true;
3769
+ 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?');
3770
+ }
3771
+ return context.Consumer;
3772
+ }
3773
+ }
3774
+ });
3775
+ // $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty
3776
+ context.Consumer = Consumer;
3777
+ }
3778
 
3779
  {
3780
  context._currentRenderer = null;
3781
+ context._currentRenderer2 = null;
3782
  }
3783
 
3784
  return context;
3785
  }
3786
 
3787
+ function lazy(ctor) {
3788
+ return {
3789
+ $$typeof: REACT_LAZY_TYPE,
3790
+ _ctor: ctor,
3791
+ // React uses these fields to store the result.
3792
+ _status: -1,
3793
+ _result: null
3794
+ };
3795
+ }
3796
+
3797
  function forwardRef(render) {
3798
  {
3799
+ if (typeof render !== 'function') {
3800
+ warningWithoutStack$1(false, 'forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render === 'undefined' ? 'undefined' : _typeof(render));
3801
+ } else {
3802
+ !(
3803
+ // Do not warn for 0 arguments because it could be due to usage of the 'arguments' object
3804
+ 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;
3805
+ }
3806
+
3807
+ if (render != null) {
3808
+ !(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;
3809
+ }
3810
  }
3811
 
3812
  return {
3815
  };
3816
  }
3817
 
 
 
 
 
3818
  function isValidElementType(type) {
3819
  return typeof type === 'string' || typeof type === 'function' ||
3820
  // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
3821
+ 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);
3822
  }
3823
 
3824
+ function memo(type, compare) {
3825
+ {
3826
+ if (!isValidElementType(type)) {
3827
+ warningWithoutStack$1(false, 'memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type === 'undefined' ? 'undefined' : _typeof(type));
3828
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
3829
  }
3830
+ return {
3831
+ $$typeof: REACT_MEMO_TYPE,
3832
+ type: type,
3833
+ compare: compare === undefined ? null : compare
3834
+ };
3835
  }
3836
 
3837
  /**
3841
  * that support it.
3842
  */
3843
 
 
3844
  var propTypesMisspellWarningShown = void 0;
3845
 
 
 
 
3846
  {
 
 
3847
  propTypesMisspellWarningShown = false;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3848
  }
3849
 
3850
  function getDeclarationErrorAddendum() {
3851
  if (ReactCurrentOwner.current) {
3852
+ var name = getComponentName(ReactCurrentOwner.current.type);
3853
  if (name) {
3854
  return '\n\nCheck the render method of `' + name + '`.';
3855
  }
3915
  var childOwner = '';
3916
  if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
3917
  // Give the component that originally created this child.
3918
+ childOwner = ' It was passed a child from ' + getComponentName(element._owner.type) + '.';
3919
  }
3920
 
3921
+ setCurrentlyValidatingElement(element);
3922
  {
3923
+ 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);
3924
  }
3925
+ setCurrentlyValidatingElement(null);
3926
  }
3927
 
3928
  /**
3975
  * @param {ReactElement} element
3976
  */
3977
  function validatePropTypes(element) {
3978
+ var type = element.type;
3979
+ var name = void 0,
3980
+ propTypes = void 0;
3981
+ if (typeof type === 'function') {
3982
+ // Class or function component
3983
+ name = type.displayName || type.name;
3984
+ propTypes = type.propTypes;
3985
+ } else if ((typeof type === 'undefined' ? 'undefined' : _typeof(type)) === 'object' && type !== null && type.$$typeof === REACT_FORWARD_REF_TYPE) {
3986
+ // ForwardRef
3987
+ var functionName = type.render.displayName || type.render.name || '';
3988
+ name = type.displayName || (functionName !== '' ? 'ForwardRef(' + functionName + ')' : 'ForwardRef');
3989
+ propTypes = type.propTypes;
3990
+ } else {
3991
  return;
3992
  }
 
 
3993
  if (propTypes) {
3994
+ setCurrentlyValidatingElement(element);
3995
+ checkPropTypes(propTypes, element.props, 'prop', name, ReactDebugCurrentFrame.getStackAddendum);
3996
+ setCurrentlyValidatingElement(null);
3997
+ } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
3998
  propTypesMisspellWarningShown = true;
3999
+ warningWithoutStack$1(false, 'Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', name || 'Unknown');
4000
  }
4001
+ if (typeof type.getDefaultProps === 'function') {
4002
+ !type.getDefaultProps.isReactClassApproved ? warningWithoutStack$1(false, 'getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.') : void 0;
4003
  }
4004
  }
4005
 
4008
  * @param {ReactElement} fragment
4009
  */
4010
  function validateFragmentProps(fragment) {
4011
+ setCurrentlyValidatingElement(fragment);
4012
 
4013
  var keys = Object.keys(fragment.props);
4014
  for (var i = 0; i < keys.length; i++) {
4015
  var key = keys[i];
4016
  if (key !== 'children' && key !== 'key') {
4017
+ warning$1(false, 'Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
4018
  break;
4019
  }
4020
  }
4021
 
4022
  if (fragment.ref !== null) {
4023
+ warning$1(false, 'Invalid attribute `ref` supplied to `React.Fragment`.');
4024
  }
4025
 
4026
+ setCurrentlyValidatingElement(null);
4027
  }
4028
 
4029
  function createElementWithValidation(type, props, children) {
4044
  info += getDeclarationErrorAddendum();
4045
  }
4046
 
 
 
4047
  var typeString = void 0;
4048
  if (type === null) {
4049
  typeString = 'null';
4050
  } else if (Array.isArray(type)) {
4051
  typeString = 'array';
4052
+ } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
4053
+ typeString = '<' + (getComponentName(type.type) || 'Unknown') + ' />';
4054
+ info = ' Did you accidentally export a JSX literal instead of a component?';
4055
  } else {
4056
  typeString = typeof type === 'undefined' ? 'undefined' : _typeof(type);
4057
  }
4058
 
4059
+ 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);
4060
  }
4061
 
4062
  var element = createElement.apply(this, arguments);
4131
 
4132
  createContext: createContext,
4133
  forwardRef: forwardRef,
4134
+ lazy: lazy,
4135
+ memo: memo,
4136
 
4137
  Fragment: REACT_FRAGMENT_TYPE,
4138
  StrictMode: REACT_STRICT_MODE_TYPE,
4139
+ unstable_ConcurrentMode: REACT_CONCURRENT_MODE_TYPE,
4140
+ Suspense: REACT_SUSPENSE_TYPE,
4141
+ unstable_Profiler: REACT_PROFILER_TYPE,
4142
 
4143
  createElement: createElementWithValidation,
4144
  cloneElement: cloneElementWithValidation,
4147
 
4148
  version: ReactVersion,
4149
 
4150
+ __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: ReactSharedInternals
 
 
 
 
4151
  };
4152
 
 
 
 
 
 
 
 
 
 
 
4153
  var React$2 = Object.freeze({
4154
  default: React
4155
  });
4158
 
4159
  // TODO: decide on the top-level export form.
4160
  // This is hacky but makes it work with both Rollup and Jest.
4161
+ var react = React$3.default || React$3;
4162
 
4163
  module.exports = react;
4164
  })();
4676
  /*! no static exports found */
4677
  /***/ (function(module, exports) {
4678
 
4679
+ /* WEBPACK VAR INJECTION */(function(__webpack_amd_options__) {/* globals __webpack_amd_options__ */
4680
+ module.exports = __webpack_amd_options__;
4681
 
4682
  /* WEBPACK VAR INJECTION */}.call(this, {}))
4683
 
blocks/easy-forms-block/easy-forms-block.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./blocks/components/class.MailChimpForms.js","webpack:///./blocks/components/countries.js","webpack:///./blocks/components/enable-submit-button-editing.js","webpack:///./blocks/components/get-form.js","webpack:///./blocks/components/get-forms.js","webpack:///./blocks/components/get-recaptcha.js","webpack:///./blocks/components/locales.js","webpack:///./blocks/components/slugify.js","webpack:///./blocks/components/states.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/fbjs/lib/emptyFunction.js","webpack:///./node_modules/fbjs/lib/emptyObject.js","webpack:///./node_modules/fbjs/lib/invariant.js","webpack:///./node_modules/fbjs/lib/warning.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":["Recaptcha","require","__","wp","i18n","registerBlockType","blocks","editor","RichText","InspectorControls","PlainText","components","Spinner","TextControl","PanelBody","PanelRow","FormToggle","SelectControl","Component","element","MailChimpForms","props","arguments","state","forms","recaptcha_data","data","success","address_fields","then","setState","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","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","form","id","form_name","focus","formTitle","toggleFormTitle","descriptionValue","formData","form_description","onChangeDescription","addr_field","field","merge","handleFormFieldChanges","type","placeholder","choice","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","countries","$","document","ready","on","preventDefault","stopPropagation","jQuery","yikes_easy_forms_fetch_form","form_id","action","nonce","ez_forms_gb_data","fetch_form_nonce","post","ajax_url","yikes_easy_forms_fetch_forms","fetch_forms_nonce","get_recaptcha","fetch_recaptcha_nonce","locales","slugify","text","specialChars","replace","target","index","str","states","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","apply","call","join","module","exports","define","window","useSourceMap","list","item","content","cssWithMappingToString","modules","mediaQuery","alreadyImportedModules","cssMapping","btoa","sourceMapping","toComment","sourceURLs","sources","source","sourceRoot","concat","sourceMap","base64","unescape","encodeURIComponent","stringify","makeEmptyFunction","emptyFunction","thatReturns","thatReturnsFalse","thatReturnsTrue","thatReturnsNull","thatReturnsThis","thatReturnsArgument","emptyObject","freeze","validateFormat","format","undefined","Error","invariant","condition","a","b","c","d","e","f","error","args","argIndex","name","framesToPop","warning","printWarning","_len","_key","message","console","x","_len2","_key2","getOwnPropertySymbols","prototype","propIsEnumerable","propertyIsEnumerable","toObject","val","TypeError","shouldUseNative","assign","test1","String","getOwnPropertyNames","test2","fromCharCode","order2","n","test3","split","forEach","letter","err","from","to","symbols","s","ReactPropTypesSecret","loggedTypeFailures","checkPropTypes","typeSpecs","values","location","componentName","getStack","typeSpecName","ex","stack","t","r","loaded","m","p","__esModule","o","ReferenceError","create","constructor","enumerable","writable","configurable","setPrototypeOf","__proto__","defineProperty","l","u","string","onloadCallbackName","elementID","onloadCallback","func","verifyCallback","expiredCallback","render","sitekey","theme","verifyCallbackName","expiredCallbackName","size","tabindex","hl","badge","h","grecaptcha","y","getPrototypeOf","_renderGrecaptcha","bind","reset","widget","setInterval","_updateReadyState","clearInterval","execute","callback","createElement","propTypes","defaultProps","isRequired","array","bool","number","object","symbol","any","arrayOf","instanceOf","node","objectOf","oneOf","oneOfType","shape","PropTypes","_assign","ReactVersion","hasSymbol","Symbol","REACT_ELEMENT_TYPE","REACT_CALL_TYPE","REACT_RETURN_TYPE","REACT_PORTAL_TYPE","REACT_FRAGMENT_TYPE","REACT_STRICT_MODE_TYPE","REACT_PROVIDER_TYPE","REACT_CONTEXT_TYPE","REACT_ASYNC_MODE_TYPE","REACT_FORWARD_REF_TYPE","MAYBE_ITERATOR_SYMBOL","iterator","FAUX_ITERATOR_SYMBOL","getIteratorFn","maybeIterable","maybeIterator","lowPriorityWarning","warn","lowPriorityWarning$1","didWarnStateUpdateForUnmountedComponent","warnNoop","publicInstance","callerName","_constructor","displayName","warningKey","ReactNoopUpdateQueue","isMounted","enqueueForceUpdate","enqueueReplaceState","completeState","enqueueSetState","partialState","context","updater","refs","isReactComponent","forceUpdate","deprecatedAPIs","replaceState","defineDeprecationWarning","methodName","info","get","fnName","ComponentDummy","PureComponent","pureComponentPrototype","isPureReactComponent","createRef","refObject","current","seal","ReactCurrentOwner","RESERVED_PROPS","ref","__self","__source","specialPropKeyWarningShown","specialPropRefWarningShown","hasValidRef","config","getter","getOwnPropertyDescriptor","isReactWarning","hasValidKey","defineKeyPropWarningGetter","warnAboutAccessingKey","defineRefPropWarningGetter","warnAboutAccessingRef","ReactElement","self","owner","$$typeof","_owner","_store","children","propName","childrenLength","childArray","cloneAndReplaceKey","oldElement","newKey","newElement","_self","_source","cloneElement","isValidElement","ReactDebugCurrentFrame","getCurrentStack","getStackAddendum","impl","SEPARATOR","SUBSEPARATOR","escape","escapeRegex","escaperLookup","escapedString","match","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","_defaultValue","_currentValue","_changedBits","Provider","Consumer","_context","_currentRenderer","forwardRef","describeComponentFrame","ownerName","fileName","lineNumber","isValidElementType","getComponentName","fiber","currentlyValidatingElement","propTypesMisspellWarningShown","getDisplayName","getDeclarationErrorAddendum","getSourceInfoErrorAddendum","elementProps","ownerHasKeyUseWarning","getCurrentComponentErrorInfo","parentType","parentName","validateExplicitKey","validated","currentComponentErrorInfo","childOwner","validateChildKeys","validatePropTypes","componentClass","getDefaultProps","isReactClassApproved","validateFragmentProps","fragment","createElementWithValidation","validType","sourceInfo","typeString","createFactoryWithValidation","validatedFactory","cloneElementWithValidation","React","Children","only","Fragment","StrictMode","unstable_AsyncMode","createFactory","version","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","ReactComponentTreeHook","React$2","React$3","react","css","baseUrl","protocol","host","currentDir","pathname","fixedCss","fullMatch","origUrl","unquotedOrigUrl","trim","$1","test","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;AACA;AACA;AACA;AACA,aAAK;AACL;AACA;;AAEA;AACA;AACA,yDAAiD,cAAc;A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A0CA,OAAtD;;AAEAnX,WAAOC,OAAP,GAAiBmX,KAAjB;AACG,GAj3CD;AAk3CD,C;;;;;;;;;;;;ACh4CD;;AAEA,IAAI,KAAJ,EAA2C,EAA3C,MAEO;AACLpX,SAAOC,OAAP,GAAiB,mBAAAtM,CAAQ,iFAAR,CAAjB;AACD,C;;;;;;;;;;;ACND;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,8CAA8C;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;;AAEA;;AAEA;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;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,CAAC;;AAED;AACA;;AAEA;AACA;AACA,EAAE;AACF;AACA;;AAEA;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,EAAE;AACF;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,uDAAuD;AACvD;;AAEA,6BAA6B,mBAAmB;;AAEhD;;AAEA;;AAEA;AACA;;;;;;;;;;;;;;;ACtXA;;;;;;;;;;;;;AAaAqM,OAAOC,OAAP,GAAiB,UAAUoX,GAAV,EAAe;AAC9B;AACA,KAAIzR,WAAW,OAAOzF,MAAP,KAAkB,WAAlB,IAAiCA,OAAOyF,QAAvD;;AAEA,KAAI,CAACA,QAAL,EAAe;AACb,QAAM,IAAIrD,KAAJ,CAAU,kCAAV,CAAN;AACD;;AAEF;AACA,KAAI,CAAC8U,GAAD,IAAQ,OAAOA,GAAP,K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X,OAAOC,OAAP,GAAiB,UAASD,MAAT,EAAiB;AACjC,KAAI,CAACA,OAAOmY,eAAZ,EAA6B;AAC5BnY,SAAOoY,SAAP,GAAmB,YAAW,CAAE,CAAhC;AACApY,SAAOqY,KAAP,GAAe,EAAf;AACA;AACA,MAAI,CAACrY,OAAOmP,QAAZ,EAAsBnP,OAAOmP,QAAP,GAAkB,EAAlB;AACtB/X,SAAO6P,cAAP,CAAsBjH,MAAtB,EAA8B,QAA9B,EAAwC;AACvC4G,eAAY,IAD2B;AAEvCsG,QAAK,eAAW;AACf,WAAOlN,OAAOkH,CAAd;AACA;AAJsC,GAAxC;AAMA9P,SAAO6P,cAAP,CAAsBjH,MAAtB,EAA8B,IAA9B,EAAoC;AACnC4G,eAAY,IADuB;AAEnCsG,QAAK,eAAW;AACf,WAAOlN,OAAOT,CAAd;AACA;AAJkC,GAApC;AAMAS,SAAOmY,eAAP,GAAyB,CAAzB;AACA;AACD,QAAOnY,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, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\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","// Import dependencies\r\nimport yikes_easy_forms_fetch_forms from './get-forms.js';\r\n\r\nimport get_recaptcha from './get-recaptcha.js';\r\n\r\nimport slugify from './slugify.js';\r\n\r\nimport countries from './countries.js';\r\n\r\nimport states from './states.js';\r\n\r\nimport locales from './locales.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 forms : [],\r\n recaptcha_data: {\r\n data : {},\r\n success: false\r\n }\r\n }\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 yikes_easy_forms_fetch_forms()\r\n .then( forms => {\r\n this.setState( { forms: forms.data } );\r\n });\r\n\r\n get_recaptcha()\r\n .then( recaptcha_data => {\r\n this.setState( { recaptcha_data: recaptcha_data } );\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 ' + 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 ' + locales[ this.state.recaptcha_data.data.locale ] : '' }\r\n options={ Object.keys( locales ).map( ( key ) => { return { value: key, label: 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( states ).map( ( key ) => {\r\n var choice = 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( countries ).map( ( key ) => {\r\n var choice = 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.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 {\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 countries = {\r\n\t'US': 'United States',\r\n\t'GB': 'United Kingdom',\r\n\t'AF': 'Afghanistan',\r\n\t'AX': 'Aland Islands',\r\n\t'AL': 'Albania',\r\n\t'DZ': 'Algeria',\r\n\t'AS': 'American Samoa',\r\n\t'AD': 'Andorra',\r\n\t'AO': 'Angola',\r\n\t'AI': 'Anguilla',\r\n\t'AQ': 'Antarctica',\r\n\t'AG': 'Antigua and Barbuda',\r\n\t'AR': 'Argentina',\r\n\t'AM': 'Armenia',\r\n\t'AW': 'Aruba',\r\n\t'AU': 'Australia',\r\n\t'AT': 'Austria',\r\n\t'AZ': 'Azerbaijan',\r\n\t'BS': 'Bahamas',\r\n\t'BH': 'Bahrain',\r\n\t'BD': 'Bangladesh',\r\n\t'BB': 'Barbados',\r\n\t'BY': 'Belarus',\r\n\t'BE': 'Belgium',\r\n\t'BZ': 'Belize',\r\n\t'BJ': 'Benin',\r\n\t'BM': 'Bermuda',\r\n\t'BT': 'Bhutan',\r\n\t'BO': 'Bolivia',\r\n\t'BA': 'Bosnia and Herzegovina',\r\n\t'BW': 'Botswana',\r\n\t'BV': 'Bouvet Island',\r\n\t'BR': 'Brazil',\r\n\t'IO': 'British Indian Ocean Territory',\r\n\t'BN': 'Brunei Darussalam',\r\n\t'BG': 'Bulgaria',\r\n\t'BF': 'Burkina Faso',\r\n\t'BI': 'Burundi',\r\n\t'KH': 'Cambodia',\r\n\t'CM': 'Cameroon',\r\n\t'CA': 'Canada',\r\n\t'CV': 'Cape Verde',\r\n\t'KY': 'Cayman Islands',\r\n\t'CF': 'Central African Republic',\r\n\t'TD': 'Chad',\r\n\t'CL': 'Chile',\r\n\t'CN': 'China',\r\n\t'CX': 'Christmas Island',\r\n\t'CC': 'Cocos (Keeling) Islands',\r\n\t'CO': 'Colombia',\r\n\t'KM': 'Comoros',\r\n\t'CG': 'Congo',\r\n\t'CD': 'Congo, The Democratic Republic of The',\r\n\t'CK': 'Cook Islands',\r\n\t'CR': 'Costa Rica',\r\n\t'CI': 'Cote D’ivoire',\r\n\t'HR': 'Croatia',\r\n\t'CU': 'Cuba',\r\n\t'CY': 'Cyprus',\r\n\t'CZ': 'Czech Republic',\r\n\t'DK': 'Denmark',\r\n\t'DJ': 'Djibouti',\r\n\t'DM': 'Dominica',\r\n\t'DO': 'Dominican Republic',\r\n\t'EC': 'Ecuador',\r\n\t'EG': 'Egypt',\r\n\t'SV': 'El Salvador',\r\n\t'GQ': 'Equatorial Guinea',\r\n\t'ER': 'Eritrea',\r\n\t'EE': 'Estonia',\r\n\t'ET': 'Ethiopia',\r\n\t'FK': 'Falkland Islands (Malvinas)',\r\n\t'FO': 'Faroe Islands',\r\n\t'FJ': 'Fiji',\r\n\t'FI': 'Finland',\r\n\t'FR': 'France',\r\n\t'GF': 'French Guiana',\r\n\t'PF': 'French Polynesia',\r\n\t'TF': 'French Southern Territories',\r\n\t'GA': 'Gabon',\r\n\t'GM': 'Gambia',\r\n\t'GE': 'Georgia',\r\n\t'DE': 'Germany',\r\n\t'GH': 'Ghana',\r\n\t'GI': 'Gibraltar',\r\n\t'GR': 'Greece',\r\n\t'GL': 'Greenland',\r\n\t'GD': 'Grenada',\r\n\t'GP': 'Guadeloupe',\r\n\t'GU': 'Guam',\r\n\t'GT': 'Guatemala',\r\n\t'GG': 'Guernsey',\r\n\t'GN': 'Guinea',\r\n\t'GW': 'Guinea-bissau',\r\n\t'GY': 'Guyana',\r\n\t'HT': 'Haiti',\r\n\t'HM': 'Heard Island and Mcdonald Islands',\r\n\t'VA': 'Holy See (Vatican City State)',\r\n\t'HN': 'Honduras',\r\n\t'HK': 'Hong Kong',\r\n\t'HU': 'Hungary',\r\n\t'IS': 'Iceland',\r\n\t'IN': 'India',\r\n\t'ID': 'Indonesia',\r\n\t'IR': 'Iran, Islamic Republic of',\r\n\t'IQ': 'Iraq',\r\n\t'IE': 'Ireland',\r\n\t'IM': 'Isle of Man',\r\n\t'IL': 'Israel',\r\n\t'IT': 'Italy',\r\n\t'JM': 'Jamaica',\r\n\t'JP': 'Japan',\r\n\t'JE': 'Jersey',\r\n\t'JO': 'Jordan',\r\n\t'KZ': 'Kazakhstan',\r\n\t'KE': 'Kenya',\r\n\t'KI': 'Kiribati',\r\n\t'KP': 'Korea, Democratic People’s Republic of',\r\n\t'KR': 'Korea, Republic of',\r\n\t'KW': 'Kuwait',\r\n\t'KG': 'Kyrgyzstan',\r\n\t'LA': 'Lao People’s Democratic Republic',\r\n\t'LV': 'Latvia',\r\n\t'LB': 'Lebanon',\r\n\t'LS': 'Lesotho',\r\n\t'LR': 'Liberia',\r\n\t'LY': 'Libyan Arab Jamahiriya',\r\n\t'LI': 'Liechtenstein',\r\n\t'LT': 'Lithuania',\r\n\t'LU': 'Luxembourg',\r\n\t'MO': 'Macao',\r\n\t'MK': 'Macedonia, The Former Yugoslav Republic of',\r\n\t'MG': 'Madagascar',\r\n\t'MW': 'Malawi',\r\n\t'MY': 'Malaysia',\r\n\t'MV': 'Maldives',\r\n\t'ML': 'Mali',\r\n\t'MT': 'Malta',\r\n\t'MH': 'Marshall Islands',\r\n\t'MQ': 'Martinique',\r\n\t'MR': 'Mauritania',\r\n\t'MU': 'Mauritius',\r\n\t'YT': 'Mayotte',\r\n\t'MX': 'Mexico',\r\n\t'FM': 'Micronesia, Federated States of',\r\n\t'MD': 'Moldova, Republic of',\r\n\t'MC': 'Monaco',\r\n\t'MN': 'Mongolia',\r\n\t'ME': 'Montenegro',\r\n\t'MS': 'Montserrat',\r\n\t'MA': 'Morocco',\r\n\t'MZ': 'Mozambique',\r\n\t'MM': 'Myanmar',\r\n\t'NA': 'Namibia',\r\n\t'NR': 'Nauru',\r\n\t'NP': 'Nepal',\r\n\t'NL': 'Netherlands',\r\n\t'AN': 'Netherlands Antilles',\r\n\t'NC': 'New Caledonia',\r\n\t'NZ': 'New Zealand',\r\n\t'NI': 'Nicaragua',\r\n\t'NE': 'Niger',\r\n\t'NG': 'Nigeria',\r\n\t'NU': 'Niue',\r\n\t'NF': 'Norfolk Island',\r\n\t'MP': 'Northern Mariana Islands',\r\n\t'NO': 'Norway',\r\n\t'OM': 'Oman',\r\n\t'PK': 'Pakistan',\r\n\t'PW': 'Palau',\r\n\t'PS': 'Palestinian Territory, Occupied',\r\n\t'PA': 'Panama',\r\n\t'PG': 'Papua New Guinea',\r\n\t'PY': 'Paraguay',\r\n\t'PE': 'Peru',\r\n\t'PH': 'Philippines',\r\n\t'PN': 'Pitcairn',\r\n\t'PL': 'Poland',\r\n\t'PT': 'Portugal',\r\n\t'PR': 'Puerto Rico',\r\n\t'QA': 'Qatar',\r\n\t'RE': 'Reunion',\r\n\t'RO': 'Romania',\r\n\t'RU': 'Russian Federation',\r\n\t'RW': 'Rwanda',\r\n\t'SH': 'Saint Helena',\r\n\t'KN': 'Saint Kitts and Nevis',\r\n\t'LC': 'Saint Lucia',\r\n\t'PM': 'Saint Pierre and Miquelon',\r\n\t'VC': 'Saint Vincent and The Grenadines',\r\n\t'WS': 'Samoa',\r\n\t'SM': 'San Marino',\r\n\t'ST': 'Sao Tome and Principe',\r\n\t'SA': 'Saudi Arabia',\r\n\t'SN': 'Senegal',\r\n\t'RS': 'Serbia',\r\n\t'SC': 'Seychelles',\r\n\t'SL': 'Sierra Leone',\r\n\t'SG': 'Singapore',\r\n\t'SK': 'Slovakia',\r\n\t'SI': 'Slovenia',\r\n\t'SB': 'Solomon Islands',\r\n\t'SO': 'Somalia',\r\n\t'ZA': 'South Africa',\r\n\t'GS': 'South Georgia and The South Sandwich Islands',\r\n\t'ES': 'Spain',\r\n\t'LK': 'Sri Lanka',\r\n\t'SD': 'Sudan',\r\n\t'SR': 'Suriname',\r\n\t'SJ': 'Svalbard and Jan Mayen',\r\n\t'SZ': 'Swaziland',\r\n\t'SE': 'Sweden',\r\n\t'CH': 'Switzerland',\r\n\t'SY': 'Syrian Arab Republic',\r\n\t'TW': 'Taiwan, Province of China',\r\n\t'TJ': 'Tajikistan',\r\n\t'TZ': 'Tanzania, United Republic of',\r\n\t'TH': 'Thailand',\r\n\t'TL': 'Timor-leste',\r\n\t'TG': 'Togo',\r\n\t'TK': 'Tokelau',\r\n\t'TO': 'Tonga',\r\n\t'TT': 'Trinidad and Tobago',\r\n\t'TN': 'Tunisia',\r\n\t'TR': 'Turkey',\r\n\t'TM': 'Turkmenistan',\r\n\t'TC': 'Turks and Caicos Islands',\r\n\t'TV': 'Tuvalu',\r\n\t'UG': 'Uganda',\r\n\t'UA': 'Ukraine',\r\n\t'AE': 'United Arab Emirates',\r\n\t'UM': 'United States Minor Outlying Islands',\r\n\t'UY': 'Uruguay',\r\n\t'UZ': 'Uzbekistan',\r\n\t'VU': 'Vanuatu',\r\n\t'VE': 'Venezuela',\r\n\t'VN': 'Viet Nam',\r\n\t'VG': 'Virgin Islands, British',\r\n\t'VI': 'Virgin Islands, U.S.',\r\n\t'WF': 'Wallis and Futuna',\r\n\t'EH': 'Western Sahara',\r\n\t'YE': 'Yemen',\r\n\t'ZM': 'Zambia',\r\n\t'ZW': 'Zimbabwe',\r\n}\r\n\r\nexport default countries;","( 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 );","export default function yikes_easy_forms_fetch_form( form_id ) {\r\n\tlet data = {\r\n\t\taction: 'yikes_get_form',\r\n\t\tform_id: form_id,\r\n\t\tnonce: ez_forms_gb_data.fetch_form_nonce\r\n\t}\r\n\r\n\tlet form = $.post( ez_forms_gb_data.ajax_url, data );\r\n\r\n\treturn form;\r\n}","export default function yikes_easy_forms_fetch_forms() {\r\n\r\n\tlet data = {\r\n\t\taction: 'yikes_get_forms',\r\n\t\tnonce: ez_forms_gb_data.fetch_forms_nonce,\r\n\t}\r\n\r\n\tlet forms = $.post( ez_forms_gb_data.ajax_url, data );\r\n\r\n\treturn forms;\r\n}","export default function get_recaptcha() {\r\n\r\n\tlet data = {\r\n\t\taction: 'yikes_get_recaptcha',\r\n\t\tnonce: ez_forms_gb_data.fetch_recaptcha_nonce\r\n\t}\r\n\r\n\tlet recaptcha_data = $.post( ez_forms_gb_data.ajax_url, data );\r\n\r\n\treturn recaptcha_data;\r\n}","const locales = {\r\n\t\"ar\" : \"Arabic\",\r\n\t\"af\" : \"Afrikaans\",\r\n\t\"am\" : \"Amharic\",\r\n\t\"hy\" : \"Armenian\",\r\n\t\"az\" : \"Azerbaijani\",\r\n\t\"eu\" : \"Basque\",\r\n\t\"bn\" : \"Bengali\",\r\n\t\"bg\" : \"Bulgarian\",\r\n\t\"ca\" : \"Catalan\",\r\n\t\"zh-HK\" : \"Chinese (Hong Kong)\",\r\n\t\"zh-CN\" : \"Chinese (Simplified)\",\r\n\t\"zh-TW\" : \"Chinese (Traditional)\",\r\n\t\"hr\" : \"Croatian\",\r\n\t\"cs\" : \"Czech\",\r\n\t\"da\" : \"Danish\",\r\n\t\"nl\" : \"Dutch\",\r\n\t\"en-GB\" : \"English (UK)\",\r\n\t\"en\" : \"English (US)\",\r\n\t\"et\" : \"Estonian\",\r\n\t\"fil\" : \"Filipino\",\r\n\t\"fi\" : \"Finnish\",\r\n\t\"fr\" : \"French\",\r\n\t\"fr-CA\" : \"French (Canadian)\",\r\n\t\"gl\" : \"Galician\",\r\n\t\"ka\" : \"Georgian\",\r\n\t\"de\" : \"German\",\r\n\t\"de-AT\" : \"German (Austria)\",\r\n\t\"de-CH\" : \"German (Switzerland)\",\r\n\t\"el\" : \"Greek\",\r\n\t\"gu\" : \"Gujarati\",\r\n\t\"iw\" : \"Hebrew\",\r\n\t\"hi\" : \"Hindi\",\r\n\t\"hu\" : \"Hungarain\",\r\n\t\"is\" : \"Icelandic\",\r\n\t\"id\" : \"Indonesian\",\r\n\t\"it\" : \"Italian\",\r\n\t\"ja\" : \"Japanese\",\r\n\t\"kn\" : \"Kannada\",\r\n\t\"ko\" : \"Korean\",\r\n\t\"lo\" : \"Laothian\",\r\n\t\"lv\" : \"Latvian\",\r\n\t\"lt\" : \"Lithuanian\",\r\n\t\"ms\" : \"Malay\",\r\n\t\"ml\" : \"Malayalam\",\r\n\t\"mr\" : \"Marathi\",\r\n\t\"mn\" : \"Mongolian\",\r\n\t\"no\" : \"Norwegian\",\r\n\t\"fa\" : \"Persian\",\r\n\t\"pl\" : \"Polish\",\r\n\t\"pt\" : \"Portuguese\",\r\n\t\"pt-BR\" : \"Portuguese (Brazil)\",\r\n\t\"pt-PT\" : \"Portuguese (Portugal)\",\r\n\t\"ro\" : \"Romanian\",\r\n\t\"ru\" : \"Russian\",\r\n\t\"sr\" : \"Serbian\",\r\n\t\"si\" : \"Sinhalese\",\r\n\t\"sk\" : \"Slovak\",\r\n\t\"sl\" : \"Slovenian\",\r\n\t\"es\" : \"Spanish\",\r\n\t\"es-419\" : \"Spanish (Latin America)\",\r\n\t\"sw\" : \"Swahili\",\r\n\t\"sv\" : \"Swedish\",\r\n\t\"ta\" : \"Tamil\",\r\n\t\"te\" : \"Telugu\",\r\n\t\"th\" : \"Thai\",\r\n\t\"tr\" : \"Turkish\",\r\n\t\"uk\" : \"Ukrainian\",\r\n\t\"ur\" : \"Urdu\",\r\n\t\"vi\" : \"Vietnamese\",\r\n\t\"zu\" : \"Zulu\"\r\n}\r\n\r\nexport default locales;","/*\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","const states = {\r\n\t'': '—',\r\n\t'AL': 'Alabama',\r\n\t'AK': 'Alaska',\r\n\t'AZ': 'Arizona',\r\n\t'AR': 'Arkansas',\r\n\t'CA': 'California',\r\n\t'CO': 'Colorado',\r\n\t'CT': 'Connecticut',\r\n\t'DE': 'Delaware',\r\n\t'DC': 'District Of Columbia',\r\n\t'FL': 'Florida',\r\n\t'GA': 'Georgia',\r\n\t'HI': 'Hawaii',\r\n\t'ID': 'Idaho',\r\n\t'IL': 'Illinois',\r\n\t'IN': 'Indiana',\r\n\t'IA': 'Iowa',\r\n\t'KS': 'Kansas',\r\n\t'KY': 'Kentucky',\r\n\t'LA': 'Louisiana',\r\n\t'ME': 'Maine',\r\n\t'MD': 'Maryland',\r\n\t'MA': 'Massachusetts',\r\n\t'MI': 'Michigan',\r\n\t'MN': 'Minnesota',\r\n\t'MS': 'Mississippi',\r\n\t'MO': 'Missouri',\r\n\t'MT': 'Montana',\r\n\t'NE': 'Nebraska',\r\n\t'NV': 'Nevada',\r\n\t'NH': 'New Hampshire',\r\n\t'NJ': 'New Jersey',\r\n\t'NM': 'New Mexico',\r\n\t'NY': 'New York',\r\n\t'NC': 'North Carolina',\r\n\t'ND': 'North Dakota',\r\n\t'OH': 'Ohio',\r\n\t'OK': 'Oklahoma',\r\n\t'OR': 'Oregon',\r\n\t'PA': 'Pennsylvania',\r\n\t'RI': 'Rhode Island',\r\n\t'SC': 'South Carolina',\r\n\t'SD': 'South Dakota',\r\n\t'TN': 'Tennessee',\r\n\t'TX': 'Texas',\r\n\t'UT': 'Utah',\r\n\t'VT': 'Vermont',\r\n\t'VA': 'Virginia',\r\n\t'WA': 'Washington',\r\n\t'WV': 'West Virginia',\r\n\t'WI': 'Wisconsin',\r\n\t'WY': 'Wyoming',\r\n\t'AB': 'Alberta',\r\n\t'BC': 'British Columbia',\r\n\t'MB': 'Manitoba',\r\n\t'NB': 'New Brunswick',\r\n\t'NL': 'Newfoundland and Labrador',\r\n\t'NS': 'Nova Scotia',\r\n\t'ON': 'Ontario',\r\n\t'PE': 'Prince Edward Island',\r\n\t'QC': 'Quebec',\r\n\t'SK': 'Saskatchewan',\r\n\t'NT': 'Northwest Territories',\r\n\t'NU': 'Nunavut',\r\n\t'YT': 'Yukon',\r\n}\r\n\r\nexport default states;","import yikes_easy_forms_fetch_form from '../components/get-form.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 yikes_easy_forms_fetch_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 const toggleRecaptcha = ( event ) => {\r\n props.setAttributes( { recaptcha: !! 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 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: true,\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) 2016 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)) {\n\t\t\t\tclasses.push(classNames.apply(null, arg));\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\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","\"use strict\";\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 */\n\nfunction makeEmptyFunction(arg) {\n return function () {\n return arg;\n };\n}\n\n/**\n * This function accepts and discards inputs; it has no side effects. This is\n * primarily useful idiomatically for overridable function endpoints which\n * always need to be callable, since JS lacks a null-call idiom ala Cocoa.\n */\nvar emptyFunction = function emptyFunction() {};\n\nemptyFunction.thatReturns = makeEmptyFunction;\nemptyFunction.thatReturnsFalse = makeEmptyFunction(false);\nemptyFunction.thatReturnsTrue = makeEmptyFunction(true);\nemptyFunction.thatReturnsNull = makeEmptyFunction(null);\nemptyFunction.thatReturnsThis = function () {\n return this;\n};\nemptyFunction.thatReturnsArgument = function (arg) {\n return arg;\n};\n\nmodule.exports = emptyFunction;","/**\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\n'use strict';\n\nvar emptyObject = {};\n\nif (process.env.NODE_ENV !== 'production') {\n Object.freeze(emptyObject);\n}\n\nmodule.exports = emptyObject;","/**\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\n'use strict';\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 validateFormat(format) {};\n\nif (process.env.NODE_ENV !== 'production') {\n validateFormat = function validateFormat(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;\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\nmodule.exports = invariant;","/**\n * Copyright (c) 2014-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\n'use strict';\n\nvar emptyFunction = require('./emptyFunction');\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 = emptyFunction;\n\nif (process.env.NODE_ENV !== 'production') {\n var printWarning = function printWarning(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.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 warning = function warning(condition, format) {\n if (format === undefined) {\n throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');\n }\n\n if (format.indexOf('Failed Composite propType: ') === 0) {\n return; // Ignore CompositeComponent proptype check.\n }\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\nmodule.exports = warning;","/*\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\nif (process.env.NODE_ENV !== 'production') {\n var invariant = require('fbjs/lib/invariant');\n var warning = require('fbjs/lib/warning');\n var ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n var loggedTypeFailures = {};\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 invariant(typeof typeSpecs[typeSpecName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'the `prop-types` package, but received `%s`.', componentName || 'React class', location, typeSpecName, typeof typeSpecs[typeSpecName]);\n error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);\n } catch (ex) {\n error = ex;\n }\n warning(!error || error instanceof Error, '%s: type specification of %s `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error);\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 warning(false, 'Failed %s type: %s%s', location, error.message, stack != null ? stack : '');\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 s=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}}(),l=a(6),c=r(l),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.string,sitekey:u.default.string,theme:u.default.string,type:u.default.string,verifyCallbackName:u.default.string,expiredCallbackName:u.default.string,size:u.default.string,tabindex:u.default.string,hl:u.default.string,badge:u.default.string},f={elementID:\"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},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||(y=setInterval(a._updateReadyState.bind(a),1e3)),a}return i(t,e),s(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:\"g-recaptcha\",\"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}(l.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,s,l){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,s,l],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,s){s!==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.3.1\n * react.development.js\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\n\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\nvar _assign = require('object-assign');\nvar emptyObject = require('fbjs/lib/emptyObject');\nvar invariant = require('fbjs/lib/invariant');\nvar warning = require('fbjs/lib/warning');\nvar emptyFunction = require('fbjs/lib/emptyFunction');\nvar checkPropTypes = require('prop-types/checkPropTypes');\n\n// TODO: this is special because it gets imported during build.\n\nvar ReactVersion = '16.3.1';\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_CALL_TYPE = hasSymbol ? Symbol['for']('react.call') : 0xeac8;\nvar REACT_RETURN_TYPE = hasSymbol ? Symbol['for']('react.return') : 0xeac9;\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_PROVIDER_TYPE = hasSymbol ? Symbol['for']('react.provider') : 0xeacd;\nvar REACT_CONTEXT_TYPE = hasSymbol ? Symbol['for']('react.context') : 0xeace;\nvar REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol['for']('react.async_mode') : 0xeacf;\nvar REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol['for']('react.forward_ref') : 0xead0;\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 === 'undefined') {\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 * WARNING: DO NOT manually require this module.\n * This is a replacement for `invariant(...)` used by the error code system\n * and will _only_ be required by the corresponding babel pass.\n * It always throws.\n */\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('`warning(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\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 warning(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\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 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 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};\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 warning(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 warning(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 if (typeof props.$$typeof === 'undefined' || props.$$typeof !== REACT_ELEMENT_TYPE) {\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 }\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 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 valid component.\n * @final\n */\nfunction isValidElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n}\n\nvar ReactDebugCurrentFrame = {};\n\n{\n // Component that is being worked on\n ReactDebugCurrentFrame.getCurrentStack = null;\n\n ReactDebugCurrentFrame.getStackAddendum = function () {\n var impl = ReactDebugCurrentFrame.getCurrentStack;\n if (impl) {\n return impl();\n }\n return null;\n };\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 warning(didWarnAboutMaps, 'Using Maps as children is unsupported and will likely yield ' + 'unexpected results. Convert it to a sequence/iterable of keyed ' + 'ReactElements instead.%s', ReactDebugCurrentFrame.getStackAddendum());\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#react.children.foreach\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, emptyFunction.thatReturnsArgument);\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#react.children.map\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#react.children.count\n *\n * @param {?*} children Children tree container.\n * @return {number} The number of children.\n */\nfunction countChildren(children, context) {\n return traverseAllChildren(children, emptyFunction.thatReturnsNull, 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#react.children.toarray\n */\nfunction toArray(children) {\n var result = [];\n mapIntoWithKeyPrefixInternal(children, result, null, emptyFunction.thatReturnsArgument);\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#react.children.only\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 warning(calculateChangedBits === null || typeof calculateChangedBits === 'function', 'createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits);\n }\n }\n\n var context = {\n $$typeof: REACT_CONTEXT_TYPE,\n _calculateChangedBits: calculateChangedBits,\n _defaultValue: defaultValue,\n _currentValue: defaultValue,\n _changedBits: 0,\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 context.Consumer = context;\n\n {\n context._currentRenderer = null;\n }\n\n return context;\n}\n\nfunction forwardRef(render) {\n {\n warning(typeof render === 'function', 'forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render);\n }\n\n return {\n $$typeof: REACT_FORWARD_REF_TYPE,\n render: render\n };\n}\n\nvar describeComponentFrame = function (name, source, ownerName) {\n return '\\n in ' + (name || 'Unknown') + (source ? ' (at ' + source.fileName.replace(/^.*[\\\\\\/]/, '') + ':' + source.lineNumber + ')' : ownerName ? ' (created by ' + ownerName + ')' : '');\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_ASYNC_MODE_TYPE || type === REACT_STRICT_MODE_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE);\n}\n\nfunction getComponentName(fiber) {\n var type = fiber.type;\n\n if (typeof type === 'function') {\n return type.displayName || type.name;\n }\n if (typeof type === 'string') {\n return type;\n }\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return 'ReactFragment';\n case REACT_PORTAL_TYPE:\n return 'ReactPortal';\n case REACT_CALL_TYPE:\n return 'ReactCall';\n case REACT_RETURN_TYPE:\n return 'ReactReturn';\n }\n return null;\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 currentlyValidatingElement = void 0;\nvar propTypesMisspellWarningShown = void 0;\n\nvar getDisplayName = function () {};\nvar getStackAddendum = function () {};\n\n{\n currentlyValidatingElement = null;\n\n propTypesMisspellWarningShown = false;\n\n getDisplayName = function (element) {\n if (element == null) {\n return '#empty';\n } else if (typeof element === 'string' || typeof element === 'number') {\n return '#text';\n } else if (typeof element.type === 'string') {\n return element.type;\n } else if (element.type === REACT_FRAGMENT_TYPE) {\n return 'React.Fragment';\n } else {\n return element.type.displayName || element.type.name || 'Unknown';\n }\n };\n\n getStackAddendum = function () {\n var stack = '';\n if (currentlyValidatingElement) {\n var name = getDisplayName(currentlyValidatingElement);\n var owner = currentlyValidatingElement._owner;\n stack += describeComponentFrame(name, currentlyValidatingElement._source, owner && getComponentName(owner));\n }\n stack += ReactDebugCurrentFrame.getStackAddendum() || '';\n return stack;\n };\n}\n\nfunction getDeclarationErrorAddendum() {\n if (ReactCurrentOwner.current) {\n var name = getComponentName(ReactCurrentOwner.current);\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) + '.';\n }\n\n currentlyValidatingElement = element;\n {\n warning(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.%s', currentComponentErrorInfo, childOwner, getStackAddendum());\n }\n currentlyValidatingElement = 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 componentClass = element.type;\n if (typeof componentClass !== 'function') {\n return;\n }\n var name = componentClass.displayName || componentClass.name;\n var propTypes = componentClass.propTypes;\n if (propTypes) {\n currentlyValidatingElement = element;\n checkPropTypes(propTypes, element.props, 'prop', name, getStackAddendum);\n currentlyValidatingElement = null;\n } else if (componentClass.PropTypes !== undefined && !propTypesMisspellWarningShown) {\n propTypesMisspellWarningShown = true;\n warning(false, 'Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', name || 'Unknown');\n }\n if (typeof componentClass.getDefaultProps === 'function') {\n warning(componentClass.getDefaultProps.isReactClassApproved, 'getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');\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 currentlyValidatingElement = 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(false, 'Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.%s', key, getStackAddendum());\n break;\n }\n }\n\n if (fragment.ref !== null) {\n warning(false, 'Invalid attribute `ref` supplied to `React.Fragment`.%s', getStackAddendum());\n }\n\n currentlyValidatingElement = 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 info += getStackAddendum() || '';\n\n var typeString = void 0;\n if (type === null) {\n typeString = 'null';\n } else if (Array.isArray(type)) {\n typeString = 'array';\n } else {\n typeString = typeof type;\n }\n\n warning(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\n Fragment: REACT_FRAGMENT_TYPE,\n StrictMode: REACT_STRICT_MODE_TYPE,\n unstable_AsyncMode: REACT_ASYNC_MODE_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: {\n ReactCurrentOwner: ReactCurrentOwner,\n // Used by renderers to avoid bundling object-assign twice in UMD bundles:\n assign: _assign\n }\n};\n\n{\n _assign(React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, {\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\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['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__ */\r\nmodule.exports = __webpack_amd_options__;\r\n","module.exports = function(module) {\r\n\tif (!module.webpackPolyfill) {\r\n\t\tmodule.deprecate = function() {};\r\n\t\tmodule.paths = [];\r\n\t\t// module.parent = undefined by default\r\n\t\tif (!module.children) module.children = [];\r\n\t\tObject.defineProperty(module, \"loaded\", {\r\n\t\t\tenumerable: true,\r\n\t\t\tget: function() {\r\n\t\t\t\treturn module.l;\r\n\t\t\t}\r\n\t\t});\r\n\t\tObject.defineProperty(module, \"id\", {\r\n\t\t\tenumerable: true,\r\n\t\t\tget: function() {\r\n\t\t\t\treturn module.i;\r\n\t\t\t}\r\n\t\t});\r\n\t\tmodule.webpackPolyfill = 1;\r\n\t}\r\n\treturn module;\r\n};\r\n"],"sourceRoot":""}
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;AACA;;;;uCAEoB;AACpB,OAAIE,OAAO;AACVC,YAAQ,0BADE;AAEVC,WAAOC,iBAAiBC;AAFd,IAAX;;AAKA,OAAIC,SAASC,EAAEC,IAAF,CAAQ,KAAKT,OAAb,EAAsBE,IAAtB,CAAb;;AAEA,UAAOK,MAAP;AACA;;;kCAEe;AACf,OAAIL,OAAO;AACVC,YAAQ,qBADE;AAEVC,WAAOC,iBAAiBK;AAFd,IAAX;;AAKA,OAAIC,iBAAiBH,EAAEC,IAAF,CAAQ,KAAKT,OAAb,EAAsBE,IAAtB,CAArB;;AAEA,UAAOS,cAAP;AACA;;;8BAEW;AACX,OAAIT,OAAO;AACVC,YAAQ,iBADE;AAEVC,WAAOC,iBAAiBO;AAFd,IAAX;;AAKA,OAAIC,QAAQL,EAAEC,IAAF,CAAQ,KAAKT,OAAb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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;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,CAAC;;AAED;AACA;;AAEA;AACA;AACA,EAAE;AACF;AACA;;AAEA;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,EAAE;AACF;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,uDAAuD;AACvD;;AAEA,6BAA6B,mBAAmB;;AAEhD;;AAEA;;AAE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nB,CAF8C,CAEV;AACpC,GAHM,MAGA;AACN;AACAG,YAASR,aAAaK,gBAAgBzc,OAAhB,CAAwB,OAAxB,EAAiC,EAAjC,CAAtB,CAFM,CAEsD;AAC5D;;AAED;AACA,SAAO,SAASxD,KAAKsH,SAAL,CAAe8Y,MAAf,CAAT,GAAkC,GAAzC;AACA,EA5Bc,CAAf;;AA8BA;AACA,QAAON,QAAP;AACA,CA1ED,C;;;;;;;;;;;ACdA;AACA;;;;;;;;;;;;;;;;ACDAha,OAAOC,OAAP,GAAiB,UAASD,MAAT,EAAiB;AACjC,KAAI,CAACA,OAAOua,eAAZ,EAA6B;AAC5Bva,SAAOwa,SAAP,GAAmB,YAAW,CAAE,CAAhC;AACAxa,SAAOya,KAAP,GAAe,EAAf;AACA;AACA,MAAI,CAACza,OAAO6R,QAAZ,EAAsB7R,OAAO6R,QAAP,GAAkB,EAAlB;AACtB7Z,SAAOwN,cAAP,CAAsBxF,MAAtB,EAA8B,QAA9B,EAAwC;AACvCmF,eAAY,IAD2B;AAEvCoI,QAAK,eAAW;AACf,WAAOvN,OAAOyF,CAAd;AACA;AAJsC,GAAxC;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.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\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\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\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\r\n\tsettings_url: 'wp-admin/admin.php?page=yikes-inc-easy-mailchimp-settings'\r\n}\r\n\r\nexport default constants;","( 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.php CHANGED
@@ -45,6 +45,7 @@ class YIKES_Easy_Form_Block extends YIKES_Easy_Forms_Blocks {
45
  'fetch_form_nonce' => wp_create_nonce( 'fetch_form_nonce' ),
46
  'fetch_forms_nonce' => wp_create_nonce( 'fetch_forms_nonce' ),
47
  'fetch_recaptcha_nonce' => wp_create_nonce( 'fetch_recaptcha_nonce' ),
 
48
  'block_namespace' => parent::BLOCK_NAMESPACE,
49
  'block_name' => static::BLOCK,
50
  ) );
45
  'fetch_form_nonce' => wp_create_nonce( 'fetch_form_nonce' ),
46
  'fetch_forms_nonce' => wp_create_nonce( 'fetch_forms_nonce' ),
47
  'fetch_recaptcha_nonce' => wp_create_nonce( 'fetch_recaptcha_nonce' ),
48
+ 'get_api_key_status' => wp_create_nonce( 'get_api_key_status' ),
49
  'block_namespace' => parent::BLOCK_NAMESPACE,
50
  'block_name' => static::BLOCK,
51
  ) );
changelog.txt CHANGED
@@ -1,5 +1,8 @@
1
  == Changelog ==
2
 
 
 
 
3
  = 6.4.9 - October 30th, 2018 =
4
  * Fixed PHP version compatibility issues.
5
  * Added a new filter to customize the placement of the WooCommerce checkbox integrations.
1
  == Changelog ==
2
 
3
+ = 6.4.10 - November 26th, 2018 =
4
+ * Improvements to the Easy Forms' Gutenberg block.
5
+
6
  = 6.4.9 - October 30th, 2018 =
7
  * Fixed PHP version compatibility issues.
8
  * Added a new filter to customize the placement of the WooCommerce checkbox integrations.
readme.txt CHANGED
@@ -3,9 +3,9 @@ Contributors: yikesinc, eherman24, liljimmi, JPry, yikesitskevin
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: 4.9.8
7
  Requires PHP: 5.2.13
8
- Stable tag: 6.4.9
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -172,7 +172,5 @@ For information and code examples on how to implement the hooks and filters prov
172
 
173
  == Changelog ==
174
 
175
- = 6.4.9 - October 30th, 2018 =
176
- * Fixed PHP version compatibility issues.
177
- * Added a new filter to customize the placement of the WooCommerce checkbox integrations.
178
- * PHP Version >= 5.2.13 is now explicitly required and supported for this plugin. Note: The Gutenberg features in this plugin require PHP >=5.6.
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.0.0
7
  Requires PHP: 5.2.13
8
+ Stable tag: 6.4.10
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
172
 
173
  == Changelog ==
174
 
175
+ = 6.4.10 - November 26th, 2018 =
176
+ * Improvements to the Easy Forms' Gutenberg block.
 
 
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.4.9
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.4.9' );
47
  }
48
 
49
  /**
@@ -65,7 +65,7 @@ if ( ! defined( 'YIKES_MC_URL' ) ) {
65
  }
66
 
67
  // Include our autoloader
68
- require_once( dirname( __FILE__ ) . '/class-loader.php' );
69
 
70
  /**
71
  * activate_yikes_inc_easy_mailchimp_extender();
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.4.10
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.4.10' );
47
  }
48
 
49
  /**
65
  }
66
 
67
  // Include our autoloader
68
+ require_once dirname( __FILE__ ) . '/class-loader.php';
69
 
70
  /**
71
  * activate_yikes_inc_easy_mailchimp_extender();