WooCommerce Payments – Fully Integrated Solution Built and Supported by Woo - Version 1.5.0

Version Description

  • 2020-09-24 =
  • Fix - Save payment method checkbox for Subscriptions customer-initiated payment method updates.
  • Fix - Support checkout on Internet Explorer 11.
  • Fix - Webhook processing with no Jetpack plugin installed.
  • Fix - Do not block the checkout card field from loading when customer meta is invalid or related to an old account.
  • Fix - Saving account statement descriptor with an ampersand character.
  • Fix - Do not attempt to render the payment timeline if the intention ID is missing.
  • Add - Display payment method details on account subscriptions pages.
  • Add - Redact sensitive data before logging.
  • Add - Support for WooCommerce Subscriptions admin-initiated payment method changes.
  • Add - Link to Subscription admin pages from Transactions views.
  • Add - Support for Subscriptions in transaction search.
Download this release

Release Info

Developer automattic
Plugin Icon 128x128 WooCommerce Payments – Fully Integrated Solution Built and Supported by Woo
Version 1.5.0
Comparing to
See all releases

Code changes from version 1.4.1 to 1.5.0

Files changed (99) hide show
  1. assets/css/wcpay-checkout.css +0 -29
  2. assets/js/wcpay-checkout.js +0 -508
  3. changelog.txt +13 -0
  4. dist/checkout.asset.php +1 -0
  5. dist/checkout.css +71 -0
  6. dist/checkout.js +1 -0
  7. dist/index.asset.php +1 -1
  8. dist/index.css +22 -45
  9. dist/index.js +2 -2
  10. dist/settings.asset.php +1 -1
  11. dist/settings.js +1 -1
  12. dist/subscription-edit-page.asset.php +1 -0
  13. dist/subscription-edit-page.js +1 -0
  14. includes/admin/class-wc-payments-admin.php +8 -7
  15. includes/admin/class-wc-rest-payments-webhook-controller.php +4 -1
  16. includes/{data-types/class-payment-information.php → class-payment-information.php} +61 -17
  17. includes/class-wc-payment-gateway-wcpay.php +97 -31
  18. includes/class-wc-payments-customer-service.php +15 -3
  19. includes/class-wc-payments-utils.php +80 -26
  20. includes/class-wc-payments.php +30 -5
  21. includes/compat/subscriptions/class-wc-payment-gateway-wcpay-subscriptions-compat.php +220 -13
  22. includes/constants/class-payment-capture-type.php +23 -0
  23. includes/constants/class-payment-initiated-by.php +23 -0
  24. includes/wc-payment-api/class-wc-payments-api-client.php +45 -4
  25. includes/wc-payment-api/class-wc-payments-http-interface.php +47 -0
  26. includes/wc-payment-api/class-wc-payments-http.php +1 -1
  27. readme.txt +14 -1
  28. vendor/autoload.php +1 -1
  29. vendor/autoload_packages.php +5 -197
  30. vendor/automattic/jetpack-a8c-mc-stats/README.md +37 -0
  31. vendor/automattic/jetpack-a8c-mc-stats/composer.json +29 -0
  32. vendor/automattic/jetpack-a8c-mc-stats/phpunit.xml.dist +17 -0
  33. vendor/automattic/jetpack-a8c-mc-stats/src/class-a8c-mc-stats.php +182 -0
  34. vendor/automattic/jetpack-a8c-mc-stats/tests/php/bootstrap.php +3 -0
  35. vendor/automattic/jetpack-a8c-mc-stats/tests/php/test_Stats.php +78 -0
  36. vendor/automattic/jetpack-autoloader/README.md +19 -4
  37. vendor/automattic/jetpack-autoloader/composer.json +1 -1
  38. vendor/automattic/jetpack-autoloader/src/AutoloadGenerator.php +54 -46
  39. vendor/automattic/jetpack-autoloader/src/CustomAutoloaderPlugin.php +40 -3
  40. vendor/automattic/jetpack-autoloader/src/autoload.php +3 -175
  41. vendor/automattic/jetpack-autoloader/src/class-autoloader-handler.php +132 -0
  42. vendor/automattic/jetpack-autoloader/src/class-classes-handler.php +90 -0
  43. vendor/automattic/jetpack-autoloader/src/class-files-handler.php +104 -0
  44. vendor/automattic/jetpack-autoloader/src/class-plugins-handler.php +150 -0
  45. vendor/automattic/jetpack-autoloader/src/class-version-selector.php +61 -0
  46. vendor/automattic/jetpack-autoloader/src/functions.php +94 -0
  47. vendor/automattic/jetpack-config/src/class-config.php +0 -38
  48. vendor/automattic/jetpack-connection/README.md +5 -0
  49. vendor/automattic/jetpack-connection/composer.json +6 -4
  50. vendor/automattic/jetpack-connection/docs/error-handling.md +72 -0
  51. vendor/automattic/jetpack-connection/docs/xmlrpc-async-calls.md +15 -0
  52. vendor/automattic/jetpack-connection/src/class-client.php +2 -7
  53. vendor/automattic/jetpack-connection/src/class-error-handler.php +103 -42
  54. vendor/automattic/jetpack-connection/src/class-manager.php +257 -21
  55. vendor/automattic/jetpack-connection/src/class-rest-authentication.php +160 -0
  56. vendor/automattic/jetpack-connection/src/class-rest-connector.php +31 -5
  57. vendor/automattic/jetpack-connection/src/class-utils.php +12 -0
  58. vendor/automattic/jetpack-connection/src/class-xmlrpc-async-call.php +105 -0
  59. vendor/automattic/jetpack-connection/src/error-handlers/class-invalid-blog-token.php +0 -94
  60. vendor/automattic/jetpack-constants/phpunit.xml +0 -7
  61. vendor/automattic/jetpack-heartbeat/README.md +38 -0
  62. vendor/automattic/jetpack-heartbeat/composer.json +32 -0
  63. vendor/automattic/jetpack-heartbeat/src/class-heartbeat.php +252 -0
  64. vendor/automattic/jetpack-options/composer.json +1 -1
  65. vendor/automattic/jetpack-options/legacy/class-jetpack-options.php +1 -0
  66. vendor/automattic/jetpack-roles/phpunit.xml +0 -7
  67. vendor/automattic/jetpack-terms-of-service/README.md +34 -0
  68. vendor/automattic/jetpack-terms-of-service/composer.json +33 -0
  69. vendor/automattic/jetpack-terms-of-service/phpunit.xml.dist +16 -0
  70. vendor/automattic/jetpack-terms-of-service/src/class-terms-of-service.php +112 -0
  71. vendor/automattic/jetpack-terms-of-service/tests/php/bootstrap.php +11 -0
  72. vendor/automattic/jetpack-terms-of-service/tests/php/test-terms-of-service.php +107 -0
  73. vendor/automattic/jetpack-tracking/composer.json +35 -0
  74. vendor/automattic/jetpack-tracking/legacy/class-jetpack-tracks-client.php +228 -0
  75. vendor/automattic/jetpack-tracking/legacy/class-jetpack-tracks-event.php +189 -0
  76. vendor/automattic/jetpack-tracking/phpunit.xml.dist +16 -0
  77. vendor/automattic/jetpack-tracking/src/class-tracking.php +217 -0
  78. vendor/automattic/jetpack-tracking/tests/php/bootstrap.php +11 -0
  79. vendor/automattic/jetpack-tracking/tests/php/test-tracking.php +106 -0
  80. vendor/class-autoloader-handler.php +140 -0
  81. vendor/class-classes-handler.php +98 -0
  82. vendor/class-files-handler.php +112 -0
  83. vendor/class-plugins-handler.php +158 -0
  84. vendor/class-version-selector.php +69 -0
  85. vendor/composer/autoload_classmap.php +8 -1
  86. vendor/composer/autoload_psr4.php +1 -0
  87. vendor/composer/autoload_real.php +7 -7
  88. vendor/composer/autoload_static.php +20 -5
  89. vendor/composer/installed.json +241 -48
  90. vendor/composer/{autoload_classmap_package.php → jetpack_autoload_classmap.php} +57 -25
  91. vendor/composer/{autoload_files_package.php → jetpack_autoload_filemap.php} +1 -1
  92. vendor/jetpack-autoloader/autoload_functions.php +102 -0
  93. vendor/myclabs/php-enum/.gitattributes +6 -0
  94. vendor/myclabs/php-enum/.gitignore +6 -0
  95. vendor/myclabs/php-enum/LICENSE +18 -0
  96. vendor/myclabs/php-enum/README.md +128 -0
  97. vendor/myclabs/php-enum/composer.json +32 -0
  98. vendor/myclabs/php-enum/src/Enum.php +204 -0
  99. woocommerce-payments.php +3 -1
assets/css/wcpay-checkout.css DELETED
@@ -1,29 +0,0 @@
1
- #payment
2
- .payment_methods
3
- li
4
- .payment_box.payment_method_woocommerce_payments
5
- fieldset {
6
- padding: 0;
7
- }
8
-
9
- #payment .payment_method_woocommerce_payments > fieldset > legend {
10
- padding-top: 0;
11
- }
12
-
13
- #payment .payment_method_woocommerce_payments .testmode-info {
14
- margin-bottom: 0.5em;
15
- }
16
-
17
- #payment .payment_method_woocommerce_payments .woocommerce-error {
18
- margin: 1em 0 0;
19
- }
20
-
21
- #wcpay-card-element {
22
- border: 1px solid #ddd;
23
- padding: 5px 7px;
24
- min-height: 29px;
25
- }
26
-
27
- .wcpay-card-mounted {
28
- background-color: #fff;
29
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/js/wcpay-checkout.js DELETED
@@ -1,508 +0,0 @@
1
- /* eslint-disable strict, no-var */
2
- /* global jQuery, Stripe, wcpay_config */
3
- jQuery( function ( $ ) {
4
- 'use strict';
5
-
6
- /* eslint-disable-next-line camelcase */
7
- var stripe = new Stripe( wcpay_config.publishableKey, {
8
- /* eslint-disable-next-line camelcase */
9
- stripeAccount: wcpay_config.accountId,
10
- } );
11
- var elements = stripe.elements();
12
-
13
- // In the future this object will be loaded with customer information through `wp_localize_script`.
14
- var preparedCustomerData = {};
15
-
16
- // Create a card element.
17
- var cardElement = elements.create( 'card', {
18
- hidePostalCode: true,
19
- classes: { base: 'wcpay-card-mounted' },
20
- } );
21
-
22
- // Only attempt to mount the card element once that section of the page has loaded. We can use the updated_checkout
23
- // event for this. This part of the page can also reload based on changes to checkout details, so we call unmount
24
- // first to ensure the card element is re-mounted correctly.
25
- $( document.body ).on( 'updated_checkout', function () {
26
- // Don't re-mount if already mounted in DOM.
27
- if ( $( '#wcpay-card-element' ).children().length ) {
28
- return;
29
- }
30
-
31
- cardElement.unmount();
32
- cardElement.mount( '#wcpay-card-element' );
33
- } );
34
-
35
- if (
36
- $( 'form#add_payment_method' ).length ||
37
- $( 'form#order_review' ).length
38
- ) {
39
- cardElement.mount( '#wcpay-card-element' );
40
- }
41
-
42
- // Update the validation state based on the element's state.
43
- cardElement.addEventListener( 'change', function ( event ) {
44
- var displayError = jQuery( '#wcpay-errors' );
45
- if ( event.error ) {
46
- displayError
47
- .html( '<ul class="woocommerce-error"><li /></ul>' )
48
- .find( 'li' )
49
- .text( event.error.message );
50
- } else {
51
- displayError.empty();
52
- }
53
- } );
54
-
55
- /**
56
- * Block UI to indicate processing and avoid duplicate submission.
57
- *
58
- * @param {object} $form The jQuery object for the form.
59
- */
60
- var blockUI = function ( $form ) {
61
- $form.addClass( 'processing' ).block( {
62
- message: null,
63
- overlayCSS: {
64
- background: '#fff',
65
- opacity: 0.6,
66
- },
67
- } );
68
- };
69
-
70
- /**
71
- * Adds a customer value to an object if the value exists and is non-empty.
72
- *
73
- * @param {object} customerObj The object that the value should be loaded to.
74
- * @param {string} prop The name of the prop in the object.
75
- * @param {string} inputId The ID of the input on the page (or the data, preloaded by the server.)
76
- */
77
- var setCustomerValue = function ( customerObj, prop, inputId ) {
78
- var value;
79
-
80
- // Try to load the value from the fields on the page.
81
- if ( 'name' === inputId ) {
82
- // If and whenever the first/last name fields do not exist on the page, this will be an empty string.
83
- value = (
84
- $( '#billing_first_name' ).val() +
85
- ' ' +
86
- $( '#billing_last_name' ).val()
87
- ).trim();
88
- } else {
89
- // No need to check whether the element exists, `$.fn.val()` would return `undefined`.
90
- value = $( '#' + inputId ).val();
91
- }
92
-
93
- // Fall back to the value in `preparedCustomerData`.
94
- if ( 'undefined' === typeof value || 0 === value.length ) {
95
- value = preparedCustomerData[ inputId ]; // `undefined` if not set.
96
- }
97
-
98
- if ( 'undefined' !== typeof value && 0 < value.length ) {
99
- customerObj[ prop ] = value;
100
- }
101
- };
102
-
103
- /**
104
- * Loads all necessary billing details for payment methods.
105
- *
106
- * @return {object} An object, containing email, name, phone & an address.
107
- */
108
- var loadBillingDetails = function () {
109
- var billingDetails = {},
110
- billingAddress = {};
111
-
112
- // Populate billing details.
113
- setCustomerValue( billingDetails, 'name', 'name' );
114
- setCustomerValue( billingDetails, 'email', 'billing_email' );
115
- setCustomerValue( billingDetails, 'phone', 'billing_phone' );
116
-
117
- // Populate the billing address.
118
- setCustomerValue( billingAddress, 'city', 'billing_city' );
119
- setCustomerValue( billingAddress, 'country', 'billing_country' );
120
- setCustomerValue( billingAddress, 'line1', 'billing_address_1' );
121
- setCustomerValue( billingAddress, 'line2', 'billing_address_2' );
122
- setCustomerValue( billingAddress, 'postal_code', 'billing_postcode' );
123
- setCustomerValue( billingAddress, 'state', 'billing_state' );
124
-
125
- billingDetails.address = billingAddress;
126
- return billingDetails;
127
- };
128
-
129
- // Show error notice at top of checkout form.
130
- var showError = function ( errorMessage ) {
131
- var messageWrapper =
132
- '<ul class="woocommerce-error" role="alert">' +
133
- errorMessage +
134
- '</ul>';
135
- var $container = $(
136
- '.woocommerce-notices-wrapper, form.checkout'
137
- ).first();
138
-
139
- if ( ! $container.length ) {
140
- return;
141
- }
142
-
143
- // Adapted from WooCommerce core @ ea9aa8c, assets/js/frontend/checkout.js#L514-L529
144
- $(
145
- '.woocommerce-NoticeGroup-checkout, .woocommerce-error, .woocommerce-message'
146
- ).remove();
147
- $container.prepend(
148
- '<div class="woocommerce-NoticeGroup woocommerce-NoticeGroup-checkout">' +
149
- messageWrapper +
150
- '</div>'
151
- );
152
- $container
153
- .find( '.input-text, select, input:checkbox' )
154
- .trigger( 'validate' )
155
- .blur();
156
-
157
- var scrollElement = $( '.woocommerce-NoticeGroup-checkout' );
158
- if ( ! scrollElement.length ) {
159
- scrollElement = $container;
160
- }
161
-
162
- $.scroll_to_notices( scrollElement );
163
- $( document.body ).trigger( 'checkout_error' );
164
- };
165
-
166
- // Create payment method on submission.
167
- var paymentMethodGenerated;
168
-
169
- /**
170
- * Saves the payment method ID in a hidden input, and re-submits the form.
171
- *
172
- * @param {object} $form The jQuery object for the form.
173
- * @param {object} paymentMethod Payment method object.
174
- */
175
- var handleOrderPayment = function ( $form, paymentMethod ) {
176
- var id = paymentMethod.id;
177
-
178
- // Flag that the payment method has been successfully generated so that we can allow the form
179
- // submission next time.
180
- paymentMethodGenerated = true;
181
-
182
- // Populate form with the payment method.
183
- var paymentMethodInput = document.getElementById(
184
- 'wcpay-payment-method'
185
- );
186
- paymentMethodInput.value = id;
187
-
188
- // Re-submit the form.
189
- $form.removeClass( 'processing' ).submit();
190
- };
191
-
192
- /**
193
- * Creates and authorizes a setup intent, saves its ID in a hidden input, and re-submits the form.
194
- *
195
- * @param {object} $form The jQuery object for the form.
196
- * @param {object} paymentMethod Payment method object.
197
- */
198
- var handleAddCard = function ( $form, paymentMethod ) {
199
- /* eslint-disable camelcase */
200
- $.post( wcpay_config.ajaxUrl, {
201
- action: 'create_setup_intent',
202
- 'wcpay-payment-method': paymentMethod.id,
203
- _ajax_nonce: wcpay_config.createSetupIntentNonce,
204
- } )
205
- /* eslint-enable camelcase */
206
- .then( function ( response ) {
207
- if ( ! response.success ) {
208
- return $.Deferred().reject( response.data.error );
209
- }
210
-
211
- var setupIntent = response.data;
212
-
213
- stripe
214
- .confirmCardSetup( setupIntent.client_secret, {
215
- // eslint-disable-next-line camelcase
216
- payment_method: paymentMethod.id,
217
- } )
218
- .then( function ( result ) {
219
- var confirmedSetupIntent = result.setupIntent;
220
- var error = result.error;
221
-
222
- if ( error ) {
223
- throw error;
224
- }
225
-
226
- return confirmedSetupIntent;
227
- } )
228
- .then( function ( confirmedSetupIntent ) {
229
- // Populate form with the setup intent and re-submit.
230
- var setupIntentInput = $(
231
- '<input type="hidden" id="wcpay-setup-intent" name="wcpay-setup-intent" />'
232
- );
233
- setupIntentInput.val( confirmedSetupIntent.id );
234
- $form.append( setupIntentInput );
235
-
236
- // WC core calls block() when add_payment_form is submitted, so we need to enable the ignore flag here to avoid
237
- // the overlay blink when the form is blocked twice. We can restore its default value once the form is submitted.
238
- var defaultIgnoreIfBlocked =
239
- $.blockUI.defaults.ignoreIfBlocked;
240
- $.blockUI.defaults.ignoreIfBlocked = true;
241
-
242
- // Re-submit the form.
243
- $form.removeClass( 'processing' ).submit();
244
-
245
- // Restore default value for ignoreIfBlocked.
246
- $.blockUI.defaults.ignoreIfBlocked = defaultIgnoreIfBlocked;
247
- } )
248
- .catch( function ( error ) {
249
- $form.removeClass( 'processing' ).unblock();
250
- showError( error.message );
251
- } );
252
- } )
253
- .fail( function ( error ) {
254
- $form.removeClass( 'processing' ).unblock();
255
- showError( error.message );
256
- } );
257
- };
258
-
259
- /**
260
- * Generates a payment method and executes the successHandler callback.
261
- *
262
- * @param {object} $form The jQuery object for the form.
263
- * @param {function} successHandler Callback to be executed when payment method is generated.
264
- * @param {boolean} useBillingDetails Flag to control whether to use from billing details or not.
265
- * @return {boolean} A flag for the event handler.
266
- */
267
- var handlePaymentMethodCreation = function (
268
- $form,
269
- successHandler,
270
- useBillingDetails = true
271
- ) {
272
- // We'll resubmit the form after populating our payment method, so if this is the second time this event
273
- // is firing we should let the form submission happen.
274
- if ( paymentMethodGenerated ) {
275
- paymentMethodGenerated = null;
276
- return;
277
- }
278
-
279
- blockUI( $form );
280
-
281
- var paymentMethodArgs = {
282
- type: 'card',
283
- card: cardElement,
284
- };
285
-
286
- if ( useBillingDetails ) {
287
- // eslint-disable-next-line camelcase
288
- paymentMethodArgs.billing_details = loadBillingDetails();
289
- }
290
-
291
- stripe
292
- .createPaymentMethod( paymentMethodArgs )
293
- .then( function ( result ) {
294
- var paymentMethod = result.paymentMethod;
295
- var error = result.error;
296
-
297
- if ( error ) {
298
- throw error;
299
- }
300
-
301
- return paymentMethod;
302
- } )
303
- .then( function ( paymentMethod ) {
304
- successHandler( $form, paymentMethod );
305
- } )
306
- .catch( function ( error ) {
307
- $form.removeClass( 'processing' ).unblock();
308
- showError( error.message );
309
- } );
310
-
311
- // Prevent form submission so that we can fire it once a payment method has been generated.
312
- return false;
313
- };
314
-
315
- /**
316
- * Shows the authentication modal to the user and handles the outcome.
317
- *
318
- * @param {string} orderId The ID of the order being paid for.
319
- * @param {string} clientSecret The client secret of the intent being used to pay for the order.
320
- */
321
- var showAuthenticationModal = function ( orderId, clientSecret ) {
322
- stripe
323
- .confirmCardPayment( clientSecret )
324
- .then( function ( result ) {
325
- var paymentMethodId = document.getElementById(
326
- 'wcpay-payment-method'
327
- ).value;
328
- var savePaymentMethod = document.getElementById(
329
- 'wc-woocommerce_payments-new-payment-method'
330
- ).checked;
331
- var intentId =
332
- ( result.paymentIntent && result.paymentIntent.id ) ||
333
- ( result.error &&
334
- result.error.payment_intent &&
335
- result.error.payment_intent.id );
336
- return [
337
- // eslint-disable-next-line camelcase
338
- jQuery.post( wcpay_config.ajaxUrl, {
339
- action: 'update_order_status',
340
- // eslint-disable-next-line camelcase
341
- order_id: orderId,
342
- // eslint-disable-next-line camelcase
343
- _ajax_nonce: wcpay_config.updateOrderStatusNonce,
344
- // eslint-disable-next-line camelcase
345
- intent_id: intentId,
346
- // eslint-disable-next-line camelcase
347
- payment_method_id: savePaymentMethod
348
- ? paymentMethodId
349
- : null,
350
- } ),
351
- result.error,
352
- ];
353
- } )
354
- .then( function ( [ response, originalError ] ) {
355
- // If there was a prblem with the paymeent, we can show the
356
- // error message to the user immediately, and we don't need
357
- // to wait for the `update_order_status` request to complete.
358
- if ( originalError ) {
359
- throw originalError;
360
- }
361
-
362
- // Otherwise, we are waiting for the `update_order_status` request to complete.
363
- return response;
364
- } )
365
- .then( function ( response ) {
366
- var result = JSON.parse( response );
367
-
368
- if ( result.error ) {
369
- throw result.error;
370
- }
371
-
372
- window.location = result.return_url;
373
- } )
374
- .catch( function ( error ) {
375
- $( 'form.checkout' ).removeClass( 'processing' ).unblock();
376
- $( '#order_review' ).removeClass( 'processing' ).unblock();
377
- $( '#payment' ).show( 500 );
378
-
379
- var errorMessage = error.message;
380
-
381
- // If this is a generic error, we probably don't want to display the error message to the user,
382
- // so display a generic message instead.
383
- if ( error instanceof Error ) {
384
- // eslint-disable-next-line camelcase
385
- errorMessage = wcpay_config.genericErrorMessage;
386
- }
387
-
388
- showError( errorMessage );
389
- } );
390
- };
391
-
392
- /**
393
- * Displays the authentication modal to the user if needed.
394
- */
395
- function maybeShowAuthenticationModal() {
396
- var partials = window.location.hash.match(
397
- /^#wcpay-confirm-pi:(.+):(.+):(.+)$/
398
- );
399
-
400
- if ( ! partials ) {
401
- return;
402
- }
403
-
404
- var orderPayIndex = document.location.href.indexOf( 'order-pay' );
405
- var isOrderPage = orderPayIndex > -1;
406
-
407
- if ( isOrderPage ) {
408
- blockUI( $( '#order_review' ) );
409
- $( '#payment' ).hide( 500 );
410
- }
411
-
412
- var orderId = partials[ 1 ];
413
- var clientSecret = partials[ 2 ];
414
- // Update the current order status nonce with the new one to ensure that the update
415
- // order status call works when a guest user creates an account during checkout.
416
- // eslint-disable-next-line camelcase
417
- wcpay_config.updateOrderStatusNonce = partials[ 3 ];
418
-
419
- // If we're on the Pay for Order page, get the order ID
420
- // directly from the URL instead of relying on the hash.
421
- // The checkout URL does not contain the string 'order-pay'.
422
- // The Pay for Order page contains the string 'order-pay' and
423
- // can have these formats:
424
- // Plain permalinks:
425
- // /?page_id=7&order-pay=189&pay_for_order=true&key=wc_order_key
426
- // Non-plain permalinks:
427
- // /checkout/order-pay/189/
428
- // Match for consecutive digits after the string 'order-pay' to get the order ID.
429
- var orderIdPartials =
430
- isOrderPage &&
431
- window.location.href.substring( orderPayIndex ).match( /\d+/ );
432
- if ( orderIdPartials ) {
433
- orderId = orderIdPartials[ 0 ];
434
- }
435
-
436
- // Cleanup the URL.
437
- // https://stackoverflow.com/questions/1397329/
438
- // how-to-remove-the-hash-from-window-location-url-with-javascript-without-page-r/
439
- // 5298684#5298684
440
- history.replaceState(
441
- '',
442
- document.title,
443
- window.location.pathname + window.location.search
444
- );
445
-
446
- showAuthenticationModal( orderId, clientSecret );
447
- }
448
-
449
- /**
450
- * Checks if the customer is using a saved payment method.
451
- *
452
- * @return {boolean} Boolean indicating whether or not a saved payment method is being used.
453
- */
454
- function isUsingSavedPaymentMethod() {
455
- return (
456
- $( '#wc-woocommerce_payments-payment-token-new' ).length &&
457
- ! $( '#wc-woocommerce_payments-payment-token-new' ).is( ':checked' )
458
- );
459
- }
460
-
461
- // Handle the checkout form when WooCommerce Payments is chosen.
462
- $( 'form.checkout' ).on(
463
- 'checkout_place_order_woocommerce_payments',
464
- function () {
465
- if ( ! isUsingSavedPaymentMethod() ) {
466
- return handlePaymentMethodCreation(
467
- $( this ),
468
- handleOrderPayment
469
- );
470
- }
471
- }
472
- );
473
-
474
- // Handle the Pay for Order form if WooCommerce Payments is chosen.
475
- $( '#order_review' ).on( 'submit', function () {
476
- if (
477
- $( '#payment_method_woocommerce_payments' ).is( ':checked' ) &&
478
- ! isUsingSavedPaymentMethod()
479
- ) {
480
- return handlePaymentMethodCreation(
481
- $( '#order_review' ),
482
- handleOrderPayment
483
- );
484
- }
485
- } );
486
-
487
- // Handle the add payment method form for WooCommerce Payments.
488
- $( 'form#add_payment_method' ).on( 'submit', function () {
489
- if ( ! $( '#wcpay-setup-intent' ).val() ) {
490
- return handlePaymentMethodCreation(
491
- $( 'form#add_payment_method' ),
492
- handleAddCard,
493
- false
494
- );
495
- }
496
- } );
497
-
498
- // On every page load, check to see whether we should display the authentication
499
- // modal and display it if it should be displayed.
500
- maybeShowAuthenticationModal();
501
-
502
- // Handle hash change - used when authenticating payment with SCA on checkout page.
503
- window.addEventListener( 'hashchange', function ( event ) {
504
- if ( 0 < event.newURL.indexOf( '#wcpay-confirm-pi' ) ) {
505
- maybeShowAuthenticationModal();
506
- }
507
- } );
508
- } );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
changelog.txt CHANGED
@@ -1,5 +1,18 @@
1
  *** WooCommerce Payments Changelog ***
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  = 1.4.1 - 2020-09-07 =
4
  * Fix - Only redirect to the onboarding screen if the plugin has been individually activated using the plugins page.
5
 
1
  *** WooCommerce Payments Changelog ***
2
 
3
+ = 1.5.0 - 2020-09-24 =
4
+ * Fix - Save payment method checkbox for Subscriptions customer-initiated payment method updates.
5
+ * Fix - Support checkout on Internet Explorer 11.
6
+ * Fix - Webhook processing with no Jetpack plugin installed.
7
+ * Fix - Do not block the checkout card field from loading when customer meta is invalid or related to an old account.
8
+ * Fix - Saving account statement descriptor with an ampersand character.
9
+ * Fix - Do not attempt to render the payment timeline if the intention ID is missing.
10
+ * Add - Display payment method details on account subscriptions pages.
11
+ * Add - Redact sensitive data before logging.
12
+ * Add - Support for WooCommerce Subscriptions admin-initiated payment method changes.
13
+ * Add - Link to Subscription admin pages from Transactions views.
14
+ * Add - Support for Subscriptions in transaction search.
15
+
16
  = 1.4.1 - 2020-09-07 =
17
  * Fix - Only redirect to the onboarding screen if the plugin has been individually activated using the plugins page.
18
 
dist/checkout.asset.php ADDED
@@ -0,0 +1 @@
 
1
+ <?php return array('dependencies' => array('wp-polyfill'), 'version' => '2a4a51d05b8bf2fb005137149e408916');
dist/checkout.css ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Colors
3
+ */
4
+ /**
5
+ * Often re-used variables
6
+ */
7
+ /**
8
+ * Breakpoint mixins
9
+ */
10
+ /**
11
+ * Long content fade mixin
12
+ *
13
+ * Creates a fading overlay to signify that the content is longer
14
+ * than the space allows.
15
+ */
16
+ /**
17
+ * Button states and focus styles
18
+ */
19
+ /**
20
+ * Applies editor left position to the selector passed as argument
21
+ */
22
+ /**
23
+ * Applies editor right position to the selector passed as argument
24
+ */
25
+ /**
26
+ * Styles that are reused verbatim in a few places
27
+ */
28
+ /**
29
+ * Allows users to opt-out of animations via OS-level preferences.
30
+ */
31
+ /**
32
+ * Reset default styles for JavaScript UI based pages.
33
+ * This is a WP-admin agnostic reset
34
+ */
35
+ /**
36
+ * Reset the WP Admin page styles for Gutenberg-like pages.
37
+ */
38
+ /**
39
+ * Breakpoints & Media Queries
40
+ */
41
+ /** @format */
42
+ /**
43
+ * Colors
44
+ */
45
+ /** @format */
46
+ /* stylelint-disable block-closing-brace-newline-after */
47
+ /** @format */
48
+ #payment
49
+ .payment_methods
50
+ li
51
+ .payment_box.payment_method_woocommerce_payments
52
+ fieldset {
53
+ padding: 0; }
54
+
55
+ #payment .payment_method_woocommerce_payments > fieldset > legend {
56
+ padding-top: 0; }
57
+
58
+ #payment .payment_method_woocommerce_payments .testmode-info {
59
+ margin-bottom: 0.5em; }
60
+
61
+ #payment .payment_method_woocommerce_payments .woocommerce-error {
62
+ margin: 1em 0 0; }
63
+
64
+ #wcpay-card-element {
65
+ border: 1px solid #ddd;
66
+ padding: 5px 7px;
67
+ min-height: 29px; }
68
+
69
+ .wcpay-card-mounted {
70
+ background-color: #fff; }
71
+
dist/checkout.js ADDED
@@ -0,0 +1 @@
 
1
+ !function(e,n){for(var t in n)e[t]=n[t]}(this,function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=70)}({17:function(e,n,t){var r=t(29),o=t(30),c=t(31);e.exports=function(e,n){return r(e)||o(e,n)||c()}},29:function(e,n){e.exports=function(e){if(Array.isArray(e))return e}},30:function(e,n){e.exports=function(e,n){var t=[],r=!0,o=!1,c=void 0;try{for(var i,a=e[Symbol.iterator]();!(r=(i=a.next()).done)&&(t.push(i.value),!n||t.length!==n);r=!0);}catch(e){o=!0,c=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw c}}return t}},31:function(e,n){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},70:function(e,n,t){"use strict";t.r(n);var r=t(17),o=t.n(r);t(71);jQuery(function(e){var n=new Stripe(wcpay_config.publishableKey,{stripeAccount:wcpay_config.accountId}),t=n.elements(),r={},c=t.create("card",{hidePostalCode:!0,classes:{base:"wcpay-card-mounted"}});e(document.body).on("updated_checkout",function(){e("#wcpay-card-element").children().length||(c.unmount(),c.mount("#wcpay-card-element"))}),(e("form#add_payment_method").length||e("form#order_review").length)&&c.mount("#wcpay-card-element"),c.addEventListener("change",function(e){var n=jQuery("#wcpay-errors");e.error?n.html('<ul class="woocommerce-error"><li /></ul>').find("li").text(e.error.message):n.empty()});var i,a=function(e){e.addClass("processing").block({message:null,overlayCSS:{background:"#fff",opacity:.6}})},u=function(n,t,o){var c;void 0!==(c="name"===o?(e("#billing_first_name").val()+" "+e("#billing_last_name").val()).trim():e("#"+o).val())&&0!==c.length||(c=r[o]),void 0!==c&&0<c.length&&(n[t]=c)},l=function(){var e={},n={};return u(e,"name","name"),u(e,"email","billing_email"),u(e,"phone","billing_phone"),u(n,"city","billing_city"),u(n,"country","billing_country"),u(n,"line1","billing_address_1"),u(n,"line2","billing_address_2"),u(n,"postal_code","billing_postcode"),u(n,"state","billing_state"),e.address=n,e},s=function(n){var t='<ul class="woocommerce-error" role="alert">'+n+"</ul>",r=e(".woocommerce-notices-wrapper, form.checkout").first();if(r.length){e(".woocommerce-NoticeGroup-checkout, .woocommerce-error, .woocommerce-message").remove(),r.prepend('<div class="woocommerce-NoticeGroup woocommerce-NoticeGroup-checkout">'+t+"</div>"),r.find(".input-text, select, input:checkbox").trigger("validate").blur();var o=e(".woocommerce-NoticeGroup-checkout");o.length||(o=r),e.scroll_to_notices(o),e(document.body).trigger("checkout_error")}},d=function(e,n){var t=n.id;i=!0,document.getElementById("wcpay-payment-method").value=t,e.removeClass("processing").submit()},m=function(t,r){e.post(wcpay_config.ajaxUrl,{action:"create_setup_intent","wcpay-payment-method":r.id,_ajax_nonce:wcpay_config.createSetupIntentNonce}).then(function(o){if(!o.success)return e.Deferred().reject(o.data.error);var c=o.data;n.confirmCardSetup(c.client_secret,{payment_method:r.id}).then(function(e){var n=e.setupIntent,t=e.error;if(t)throw t;return n}).then(function(n){var r=e('<input type="hidden" id="wcpay-setup-intent" name="wcpay-setup-intent" />');r.val(n.id),t.append(r);var o=e.blockUI.defaults.ignoreIfBlocked;e.blockUI.defaults.ignoreIfBlocked=!0,t.removeClass("processing").submit(),e.blockUI.defaults.ignoreIfBlocked=o}).catch(function(e){t.removeClass("processing").unblock(),s(e.message)})}).fail(function(e){t.removeClass("processing").unblock(),s(e.message)})},f=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!i){a(e);var o={type:"card",card:c};return r&&(o.billing_details=l()),n.createPaymentMethod(o).then(function(e){var n=e.paymentMethod,t=e.error;if(t)throw t;return n}).then(function(n){t(e,n)}).catch(function(n){e.removeClass("processing").unblock(),s(n.message)}),!1}i=null},p=function(t,r){n.confirmCardPayment(r).then(function(e){var n=document.getElementById("wcpay-payment-method").value,r=document.getElementById("wc-woocommerce_payments-new-payment-method").checked,o=e.paymentIntent&&e.paymentIntent.id||e.error&&e.error.payment_intent&&e.error.payment_intent.id;return[jQuery.post(wcpay_config.ajaxUrl,{action:"update_order_status",order_id:t,_ajax_nonce:wcpay_config.updateOrderStatusNonce,intent_id:o,payment_method_id:r?n:null}),e.error]}).then(function(e){var n=o()(e,2),t=n[0],r=n[1];if(r)throw r;return t}).then(function(e){var n=JSON.parse(e);if(n.error)throw n.error;window.location=n.return_url}).catch(function(n){e("form.checkout").removeClass("processing").unblock(),e("#order_review").removeClass("processing").unblock(),e("#payment").show(500);var t=n.message;n instanceof Error&&(t=wcpay_config.genericErrorMessage),s(t)})};function y(){var n=window.location.hash.match(/^#wcpay-confirm-pi:(.+):(.+):(.+)$/);if(n){var t=window.location.href.indexOf("order-pay"),r=t>-1;r&&(a(e("#order_review")),e("#payment").hide(500));var o=n[1],c=n[2];wcpay_config.updateOrderStatusNonce=n[3];var i=r&&window.location.href.substring(t).match(/\d+/);i&&(o=i[0]),history.replaceState("",document.title,window.location.pathname+window.location.search),p(o,c)}}function h(){return e("#wc-woocommerce_payments-payment-token-new").length&&!e("#wc-woocommerce_payments-payment-token-new").is(":checked")}e("form.checkout").on("checkout_place_order_woocommerce_payments",function(){if(!h())return f(e(this),d)}),e("#order_review").on("submit",function(){if(e("#payment_method_woocommerce_payments").is(":checked")&&!h())return f(e("#order_review"),d)}),e("form#add_payment_method").on("submit",function(){if(!e("#wcpay-setup-intent").val())return f(e("form#add_payment_method"),m,!1)}),y(),window.addEventListener("hashchange",function(){window.location.hash.startsWith("#wcpay-confirm-pi")&&y()})})},71:function(e,n,t){}}));
dist/index.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'moment', 'react', 'wc-components', 'wc-currency', 'wc-navigation', 'wp-api-fetch', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-polyfill', 'wp-url'), 'version' => 'fa8cce974e9d94c794b6e17310adcb5e');
1
+ <?php return array('dependencies' => array('lodash', 'moment', 'react', 'wc-components', 'wc-currency', 'wc-navigation', 'wp-api-fetch', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-polyfill', 'wp-url'), 'version' => '559e6eb84a0bad2f81188869c60833df');
dist/index.css CHANGED
@@ -898,6 +898,12 @@
898
  padding: 0 1rem;
899
  border-left: 1px solid #dcdcde;
900
  border-bottom: 0; } }
 
 
 
 
 
 
901
  .woocommerce-card__body .woocommerce-list--horizontal .woocommerce-list__item .woocommerce-list__item-inner,
902
  .woocommerce-list--horizontal .woocommerce-list__item .woocommerce-list__item-inner {
903
  margin: 0;
@@ -906,8 +912,15 @@
906
  .woocommerce-card__body .woocommerce-list--horizontal .woocommerce-list__item .woocommerce-list__item-content,
907
  .woocommerce-list--horizontal .woocommerce-list__item .woocommerce-list__item-title,
908
  .woocommerce-list--horizontal .woocommerce-list__item .woocommerce-list__item-content {
909
- color: #555d66;
910
- margin-top: 0; }
 
 
 
 
 
 
 
911
  @media (min-width: 801px) {
912
  .woocommerce-card__body .woocommerce-list--horizontal .woocommerce-list__item:first-child,
913
  .woocommerce-list--horizontal .woocommerce-list__item:first-child {
@@ -990,62 +1003,26 @@
990
  font-size: 16px;
991
  font-size: 1rem;
992
  text-transform: uppercase;
993
- margin: 0 1rem 0 0.25rem;
994
  color: #50575e; }
995
  .payment-details-summary .payment-details-summary__breakdown p {
996
  font-size: 14px;
997
  font-size: 0.875rem;
998
  color: #555d66;
999
  display: inline-block;
1000
- margin: 0.5rem 0.75rem 0 0; }
1001
  .payment-details-summary .payment-details-summary__breakdown p:last-child {
1002
  margin-right: 0; }
1003
- .payment-details-summary .payment-details-summary__actions {
1004
  height: 100%;
 
 
1005
  display: flex;
1006
- align-items: center;
1007
  justify-content: initial; }
1008
  @media (min-width: 661px) {
1009
- .payment-details-summary .payment-details-summary__actions {
1010
  justify-content: flex-end; } }
1011
- .payment-details-summary .payment-details-summary__actions .payment-details-summary__actions-item {
1012
- margin-top: 1rem; }
1013
- @media (min-width: 661px) {
1014
- .payment-details-summary .payment-details-summary__actions .payment-details-summary__actions-item {
1015
- margin-top: 0; } }
1016
-
1017
- .payment-details-summary-details
1018
- .woocommerce-list--horizontal
1019
- .woocommerce-list__item:last-child {
1020
- flex-grow: 1;
1021
- border-left: 0; }
1022
- .payment-details-summary-details
1023
- .woocommerce-list--horizontal
1024
- .woocommerce-list__item:last-child .woocommerce-list__item-text {
1025
- width: 100%;
1026
- text-transform: none; }
1027
- @media (min-width: 801px) {
1028
- .payment-details-summary-details
1029
- .woocommerce-list--horizontal
1030
- .woocommerce-list__item:last-child .woocommerce-list__item-text {
1031
- text-align: right;
1032
- color: #787c82; }
1033
- .payment-details-summary-details
1034
- .woocommerce-list--horizontal
1035
- .woocommerce-list__item:last-child .woocommerce-list__item-text .woocommerce-list__item-content {
1036
- font-size: 12px;
1037
- font-size: 0.75rem; } }
1038
-
1039
- .payment-details-summary-details
1040
- .woocommerce-list--horizontal
1041
- .woocommerce-list__item-inner
1042
- .woocommerce-list__item-title,
1043
- .payment-details-summary-details
1044
- .woocommerce-list--horizontal
1045
- .woocommerce-list__item-inner
1046
- .woocommerce-list__item-content {
1047
- font-size: 14px;
1048
- font-size: 0.875rem; }
1049
 
1050
  /**
1051
  * Colors
898
  padding: 0 1rem;
899
  border-left: 1px solid #dcdcde;
900
  border-bottom: 0; } }
901
+ .woocommerce-card__body .woocommerce-list--horizontal .woocommerce-list__item:hover,
902
+ .woocommerce-list--horizontal .woocommerce-list__item:hover {
903
+ background: none; }
904
+ .woocommerce-card__body .woocommerce-list--horizontal .woocommerce-list__item:hover .woocommerce-list__item-title,
905
+ .woocommerce-list--horizontal .woocommerce-list__item:hover .woocommerce-list__item-title {
906
+ color: #50575e; }
907
  .woocommerce-card__body .woocommerce-list--horizontal .woocommerce-list__item .woocommerce-list__item-inner,
908
  .woocommerce-list--horizontal .woocommerce-list__item .woocommerce-list__item-inner {
909
  margin: 0;
912
  .woocommerce-card__body .woocommerce-list--horizontal .woocommerce-list__item .woocommerce-list__item-content,
913
  .woocommerce-list--horizontal .woocommerce-list__item .woocommerce-list__item-title,
914
  .woocommerce-list--horizontal .woocommerce-list__item .woocommerce-list__item-content {
915
+ margin-top: 0;
916
+ font-size: 14px;
917
+ font-size: 0.875rem; }
918
+ .woocommerce-card__body .woocommerce-list--horizontal .woocommerce-list__item .woocommerce-list__item-title,
919
+ .woocommerce-list--horizontal .woocommerce-list__item .woocommerce-list__item-title {
920
+ color: #50575e; }
921
+ .woocommerce-card__body .woocommerce-list--horizontal .woocommerce-list__item .woocommerce-list__item-content,
922
+ .woocommerce-list--horizontal .woocommerce-list__item .woocommerce-list__item-content {
923
+ color: #2c3338; }
924
  @media (min-width: 801px) {
925
  .woocommerce-card__body .woocommerce-list--horizontal .woocommerce-list__item:first-child,
926
  .woocommerce-list--horizontal .woocommerce-list__item:first-child {
1003
  font-size: 16px;
1004
  font-size: 1rem;
1005
  text-transform: uppercase;
1006
+ margin: 0 0.5rem;
1007
  color: #50575e; }
1008
  .payment-details-summary .payment-details-summary__breakdown p {
1009
  font-size: 14px;
1010
  font-size: 0.875rem;
1011
  color: #555d66;
1012
  display: inline-block;
1013
+ margin: 0.25rem 1rem 0 0; }
1014
  .payment-details-summary .payment-details-summary__breakdown p:last-child {
1015
  margin-right: 0; }
1016
+ .payment-details-summary .payment-details-summary__id {
1017
  height: 100%;
1018
+ margin-top: 8px;
1019
+ color: #787c82;
1020
  display: flex;
1021
+ align-items: start;
1022
  justify-content: initial; }
1023
  @media (min-width: 661px) {
1024
+ .payment-details-summary .payment-details-summary__id {
1025
  justify-content: flex-end; } }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1026
 
1027
  /**
1028
  * Colors
dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- !function(e,t){for(var c in t)e[c]=t[c]}(this,function(e){var t={};function c(a){if(t[a])return t[a].exports;var n=t[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,c),n.l=!0,n.exports}return c.m=e,c.c=t,c.d=function(e,t,a){c.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},c.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.t=function(e,t){if(1&t&&(e=c(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(c.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)c.d(a,n,function(t){return e[t]}.bind(null,n));return a},c.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return c.d(t,"a",t),t},c.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},c.p="",c(c.s=69)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.wc.components}()},function(e,t){!function(){e.exports=this.lodash}()},function(e,t,c){var a=c(8);e.exports=function(e){for(var t=1;t<arguments.length;t++){var c=null!=arguments[t]?arguments[t]:{},n=Object.keys(c);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(c).filter(function(e){return Object.getOwnPropertyDescriptor(c,e).enumerable}))),n.forEach(function(t){a(e,t,c[t])})}return e}},function(e,t){!function(){e.exports=this.regeneratorRuntime}()},function(e,t){!function(){e.exports=this.moment}()},function(e,t){!function(){e.exports=this.wc.navigation}()},function(e,t){e.exports=function(e,t,c){return t in e?Object.defineProperty(e,t,{value:c,enumerable:!0,configurable:!0,writable:!0}):e[t]=c,e}},function(e,t){!function(){e.exports=this.wp.dataControls}()},function(e,t){!function(){e.exports=this.wp.url}()},function(e,t){!function(){e.exports=this.wp.date}()},function(e,t){!function(){e.exports=this.wp.data}()},function(e,t){!function(){e.exports=this.React}()},function(e,t){!function(){e.exports=this.wc.currency}()},function(e,t,c){var a;
2
  /*!
3
  Copyright (c) 2017 Jed Watson.
4
  Licensed under the MIT License (MIT), see
@@ -9,4 +9,4 @@
9
  Licensed under the MIT License (MIT), see
10
  http://jedwatson.github.io/classnames
11
  */
12
- !function(){"use strict";var c={}.hasOwnProperty;function n(){for(var e=[],t=0;t<arguments.length;t++){var a=arguments[t];if(a){var r=typeof a;if("string"===r||"number"===r)e.push(a);else if(Array.isArray(a)&&a.length){var o=n.apply(null,a);o&&e.push(o)}else if("object"===r)for(var s in a)c.call(a,s)&&a[s]&&e.push(s)}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):void 0===(a=function(){return n}.apply(t,[]))||(e.exports=a)}()},function(e,t){!function(){e.exports=this.wp.compose}()},function(e,t,c){var a=c(42),n=c(43),r=c(44);e.exports=function(e,t){return a(e)||n(e,t)||r()}},function(e,t,c){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t,c=1;c<arguments.length;c++)for(var a in t=arguments[c])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},n=function(){function e(e,t){for(var c,a=0;a<t.length;a++)(c=t[a]).enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(e,c.key,c)}return function(t,c,a){return c&&e(t.prototype,c),a&&e(t,a),t}}(),r=c(13),o=i(r),s=i(c(47));function i(e){return e&&e.__esModule?e:{default:e}}var l=function(e,t){return 0<=t.indexOf(e)},m=function(e){return 0==e%18},u=["gridicons-add-outline","gridicons-add","gridicons-align-image-center","gridicons-align-image-left","gridicons-align-image-none","gridicons-align-image-right","gridicons-attachment","gridicons-bold","gridicons-bookmark-outline","gridicons-bookmark","gridicons-calendar","gridicons-cart","gridicons-create","gridicons-custom-post-type","gridicons-external","gridicons-folder","gridicons-heading","gridicons-help-outline","gridicons-help","gridicons-history","gridicons-info-outline","gridicons-info","gridicons-italic","gridicons-layout-blocks","gridicons-link-break","gridicons-link","gridicons-list-checkmark","gridicons-list-ordered","gridicons-list-unordered","gridicons-menus","gridicons-minus","gridicons-my-sites","gridicons-notice-outline","gridicons-notice","gridicons-plus-small","gridicons-plus","gridicons-popout","gridicons-posts","gridicons-scheduled","gridicons-share-ios","gridicons-star-outline","gridicons-star","gridicons-stats","gridicons-status","gridicons-thumbs-up","gridicons-textcolor","gridicons-time","gridicons-trophy","gridicons-user-circle","gridicons-reader-follow","gridicons-reader-following"],h=["gridicons-arrow-down","gridicons-arrow-up","gridicons-comment","gridicons-clear-formatting","gridicons-flag","gridicons-menu","gridicons-reader","gridicons-strikethrough"],d=["gridicons-align-center","gridicons-align-justify","gridicons-align-left","gridicons-align-right","gridicons-arrow-left","gridicons-arrow-right","gridicons-house","gridicons-indent-left","gridicons-indent-right","gridicons-minus-small","gridicons-print","gridicons-sign-out","gridicons-stats-alt","gridicons-trash","gridicons-underline","gridicons-video-camera"],v=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(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)}(t,r.PureComponent),n(t,[{key:"render",value:function(){var e=this.props,t=e.size,c=e.onClick,n=e.icon,r=e.className,s=function(e,t){var c={};for(var a in e)0<=t.indexOf(a)||Object.prototype.hasOwnProperty.call(e,a)&&(c[a]=e[a]);return c}(e,["size","onClick","icon","className"]),i="gridicons-"+n,v=void 0,p=["gridicon",i,r,!!(l(i,u)&&m(t))&&"needs-offset",!!(l(i,h)&&m(t))&&"needs-offset-x",!!(l(i,d)&&m(t))&&"needs-offset-y"].filter(Boolean).join(" ");switch(i){default:v=o.default.createElement("svg",a({height:t,width:t},s));break;case"gridicons-add-image":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M23 4v2h-3v3h-2V6h-3V4h3V1h2v3h3zm-8.5 7c.828 0 1.5-.672 1.5-1.5S15.328 8 14.5 8 13 8.672 13 9.5s.672 1.5 1.5 1.5zm3.5 3.234l-.513-.57c-.794-.885-2.18-.885-2.976 0l-.655.73L9 9l-3 3.333V6h7V4H6c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h12c1.105 0 2-.895 2-2v-7h-2v3.234z"})));break;case"gridicons-add-outline":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm5 9h-4V7h-2v4H7v2h4v4h2v-4h4v-2z"})));break;case"gridicons-add":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm5 11h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"})));break;case"gridicons-align-center":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M4 19h16v-2H4v2zm13-6H7v2h10v-2zM4 9v2h16V9H4zm13-4H7v2h10V5z"})));break;case"gridicons-align-image-center":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M3 5h18v2H3V5zm0 14h18v-2H3v2zm5-4h8V9H8v6z"})));break;case"gridicons-align-image-left":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M3 5h18v2H3V5zm0 14h18v-2H3v2zm0-4h8V9H3v6zm10 0h8v-2h-8v2zm0-4h8V9h-8v2z"})));break;case"gridicons-align-image-none":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M21 7H3V5h18v2zm0 10H3v2h18v-2zM11 9H3v6h8V9z"})));break;case"gridicons-align-image-right":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M21 7H3V5h18v2zm0 10H3v2h18v-2zm0-8h-8v6h8V9zm-10 4H3v2h8v-2zm0-4H3v2h8V9z"})));break;case"gridicons-align-justify":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M4 19h16v-2H4v2zm16-6H4v2h16v-2zM4 9v2h16V9H4zm16-4H4v2h16V5z"})));break;case"gridicons-align-left":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M4 19h16v-2H4v2zm10-6H4v2h10v-2zM4 9v2h16V9H4zm10-4H4v2h10V5z"})));break;case"gridicons-align-right":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M20 17H4v2h16v-2zm-10-2h10v-2H10v2zM4 9v2h16V9H4zm6-2h10V5H10v2z"})));break;case"gridicons-arrow-down":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M11 4v12.17l-5.59-5.59L4 12l8 8 8-8-1.41-1.41L13 16.17V4h-2z"})));break;case"gridicons-arrow-left":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"})));break;case"gridicons-arrow-right":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8-8-8z"})));break;case"gridicons-arrow-up":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M13 20V7.83l5.59 5.59L20 12l-8-8-8 8 1.41 1.41L11 7.83V20h2z"})));break;case"gridicons-aside":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M14 20l6-6V6c0-1.105-.895-2-2-2H6c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h8zM6 6h12v6h-4c-1.105 0-2 .895-2 2v4H6V6zm10 4H8V8h8v2z"})));break;case"gridicons-attachment":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M14 1c-2.762 0-5 2.238-5 5v10c0 1.657 1.343 3 3 3s2.99-1.343 2.99-3V6H13v10c0 .553-.447 1-1 1-.553 0-1-.447-1-1V6c0-1.657 1.343-3 3-3s3 1.343 3 3v10.125C17 18.887 14.762 21 12 21s-5-2.238-5-5v-5H5v5c0 3.866 3.134 7 7 7s6.99-3.134 6.99-7V6c0-2.762-2.228-5-4.99-5z"})));break;case"gridicons-audio":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M8 4v10.184C7.686 14.072 7.353 14 7 14c-1.657 0-3 1.343-3 3s1.343 3 3 3 3-1.343 3-3V7h7v4.184c-.314-.112-.647-.184-1-.184-1.657 0-3 1.343-3 3s1.343 3 3 3 3-1.343 3-3V4H8z"})));break;case"gridicons-bell":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M6.14 14.97l2.828 2.827c-.362.362-.862.586-1.414.586-1.105 0-2-.895-2-2 0-.552.224-1.052.586-1.414zm8.867 5.324L14.3 21 3 9.7l.706-.707 1.102.157c.754.108 1.69-.122 2.077-.51l3.885-3.884c2.34-2.34 6.135-2.34 8.475 0s2.34 6.135 0 8.475l-3.885 3.886c-.388.388-.618 1.323-.51 2.077l.157 1.1z"})));break;case"gridicons-block":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zM4 12c0-4.418 3.582-8 8-8 1.848 0 3.545.633 4.9 1.686L5.686 16.9C4.633 15.545 4 13.848 4 12zm8 8c-1.848 0-3.546-.633-4.9-1.686L18.314 7.1C19.367 8.455 20 10.152 20 12c0 4.418-3.582 8-8 8z"})));break;case"gridicons-bold":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M7 5.01h4.547c2.126 0 3.67.302 4.632.906.96.605 1.44 1.567 1.44 2.887 0 .896-.21 1.63-.63 2.205-.42.574-.98.92-1.678 1.036v.103c.95.212 1.637.608 2.057 1.19.42.58.63 1.35.63 2.315 0 1.367-.494 2.434-1.482 3.2-.99.765-2.332 1.148-4.027 1.148H7V5.01zm3 5.936h2.027c.862 0 1.486-.133 1.872-.4.386-.267.578-.708.578-1.323 0-.574-.21-.986-.63-1.236-.42-.25-1.087-.374-1.996-.374H10v3.333zm0 2.523v3.905h2.253c.876 0 1.52-.167 1.94-.502.416-.335.625-.848.625-1.54 0-1.243-.89-1.864-2.668-1.864H10z"})));break;case"gridicons-book":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M4 3h2v18H4zM18 3H7v18h11c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 6h-6V8h6v1zm0-2h-6V6h6v1z"})));break;case"gridicons-bookmark-outline":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M17 5v12.554l-5-2.857-5 2.857V5h10m0-2H7c-1.105 0-2 .896-2 2v16l7-4 7 4V5c0-1.104-.896-2-2-2z"})));break;case"gridicons-bookmark":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M17 3H7c-1.105 0-2 .896-2 2v16l7-4 7 4V5c0-1.104-.896-2-2-2z"})));break;case"gridicons-briefcase":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M14 15h-4v-2H2v6c0 1.105.895 2 2 2h16c1.105 0 2-.895 2-2v-6h-8v2zm6-9h-2V4c0-1.105-.895-2-2-2H8c-1.105 0-2 .895-2 2v2H4c-1.105 0-2 .895-2 2v4h20V8c0-1.105-.895-2-2-2zm-4 0H8V4h8v2z"})));break;case"gridicons-bug":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M18 14h4v-2h-4v-2h1a2 2 0 0 0 2-2V6h-2v2H5V6H3v2a2 2 0 0 0 2 2h1v2H2v2h4v1a6 6 0 0 0 .09 1H5a2 2 0 0 0-2 2v2h2v-2h1.81A6 6 0 0 0 11 20.91V10h2v10.91A6 6 0 0 0 17.19 18H19v2h2v-2a2 2 0 0 0-2-2h-1.09a6 6 0 0 0 .09-1zM12 2a4 4 0 0 0-4 4h8a4 4 0 0 0-4-4z"})));break;case"gridicons-calendar":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M19 4h-1V2h-2v2H8V2H6v2H5c-1.105 0-2 .896-2 2v13c0 1.104.895 2 2 2h14c1.104 0 2-.896 2-2V6c0-1.104-.896-2-2-2zm0 15H5V8h14v11z"})));break;case"gridicons-camera":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M17 12c0 1.7-1.3 3-3 3s-3-1.3-3-3 1.3-3 3-3 3 1.3 3 3zm5-5v11c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V7c0-1.1.9-2 2-2V4h4v1h2l1-2h6l1 2h2c1.1 0 2 .9 2 2zM7.5 9c0-.8-.7-1.5-1.5-1.5S4.5 8.2 4.5 9s.7 1.5 1.5 1.5S7.5 9.8 7.5 9zM19 12c0-2.8-2.2-5-5-5s-5 2.2-5 5 2.2 5 5 5 5-2.2 5-5z"})));break;case"gridicons-caption":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M20 15l2-2v5c0 1.105-.895 2-2 2H4c-1.105 0-2-.895-2-2V6c0-1.105.895-2 2-2h13l-2 2H4v12h16v-3zm2.44-8.56l-.88-.88c-.586-.585-1.534-.585-2.12 0L12 13v2H6v2h9v-1l7.44-7.44c.585-.586.585-1.534 0-2.12z"})));break;case"gridicons-cart":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M9 20c0 1.1-.9 2-2 2s-1.99-.9-1.99-2S5.9 18 7 18s2 .9 2 2zm8-2c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2zm.396-5c.937 0 1.75-.65 1.952-1.566L21 5H7V4c0-1.105-.895-2-2-2H3v2h2v11c0 1.105.895 2 2 2h12c0-1.105-.895-2-2-2H7v-2h10.396z"})));break;case"gridicons-chat":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M3 12c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h8c1.1 0 2 .9 2 2v5c0 1.1-.9 2-2 2H9v3l-3-3H3zM21 18c1.1 0 2-.9 2-2v-5c0-1.1-.9-2-2-2h-6v1c0 2.2-1.8 4-4 4v2c0 1.1.9 2 2 2h2v3l3-3h3z"})));break;case"gridicons-checkmark-circle":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M11 17.768l-4.884-4.884 1.768-1.768L11 14.232l8.658-8.658C17.823 3.39 15.075 2 12 2 6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10c0-1.528-.353-2.97-.966-4.266L11 17.768z"})));break;case"gridicons-checkmark":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M9 19.414l-6.707-6.707 1.414-1.414L9 16.586 20.293 5.293l1.414 1.414"})));break;case"gridicons-chevron-down":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M20 9l-8 8-8-8 1.414-1.414L12 14.172l6.586-6.586"})));break;case"gridicons-chevron-left":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M14 20l-8-8 8-8 1.414 1.414L8.828 12l6.586 6.586"})));break;case"gridicons-chevron-right":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M10 20l8-8-8-8-1.414 1.414L15.172 12l-6.586 6.586"})));break;case"gridicons-chevron-up":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M4 15l8-8 8 8-1.414 1.414L12 9.828l-6.586 6.586"})));break;case"gridicons-clear-formatting":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M10.837 10.163l-4.6 4.6L10 4h4l.777 2.223-2.144 2.144-.627-2.092-1.17 3.888zm5.495.506L19.244 19H15.82l-1.05-3.5H11.5L5 22l-1.5-1.5 17-17L22 5l-5.668 5.67zm-2.31 2.31l-.032.03.032-.01v-.02z"})));break;case"gridicons-clipboard":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M16 18H8v-2h8v2zm0-6H8v2h8v-2zm2-9h-2v2h2v15H6V5h2V3H6c-1.105 0-2 .895-2 2v15c0 1.105.895 2 2 2h12c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zm-4 2V4c0-1.105-.895-2-2-2s-2 .895-2 2v1c-1.105 0-2 .895-2 2v1h8V7c0-1.105-.895-2-2-2z"})));break;case"gridicons-cloud-download":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M18 9c-.01 0-.017.002-.025.003C17.72 5.646 14.922 3 11.5 3 7.91 3 5 5.91 5 9.5c0 .524.07 1.03.186 1.52C5.123 11.015 5.064 11 5 11c-2.21 0-4 1.79-4 4 0 1.202.54 2.267 1.38 3h18.593C22.196 17.09 23 15.643 23 14c0-2.76-2.24-5-5-5zm-6 7l-4-5h3V8h2v3h3l-4 5z"})));break;case"gridicons-cloud-outline":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M11.5 5c2.336 0 4.304 1.825 4.48 4.154l.142 1.86 1.867-.012h.092C19.698 11.043 21 12.37 21 14c0 .748-.28 1.452-.783 2H3.28c-.156-.256-.28-.59-.28-1 0-1.074.85-1.953 1.915-1.998.06.007.118.012.178.015l2.66.124-.622-2.587C7.044 10.186 7 9.843 7 9.5 7 7.02 9.02 5 11.5 5m0-2C7.91 3 5 5.91 5 9.5c0 .524.07 1.03.186 1.52C5.123 11.015 5.064 11 5 11c-2.21 0-4 1.79-4 4 0 1.202.54 2.267 1.38 3h18.593C22.196 17.09 23 15.643 23 14c0-2.76-2.24-5-5-5l-.025.002C17.72 5.646 14.922 3 11.5 3z"})));break;case"gridicons-cloud-upload":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M18 9c-.01 0-.017.002-.025.003C17.72 5.646 14.922 3 11.5 3 7.91 3 5 5.91 5 9.5c0 .524.07 1.03.186 1.52C5.123 11.015 5.064 11 5 11c-2.21 0-4 1.79-4 4 0 1.202.54 2.267 1.38 3h18.593C22.196 17.09 23 15.643 23 14c0-2.76-2.24-5-5-5zm-5 4v3h-2v-3H8l4-5 4 5h-3z"})));break;case"gridicons-cloud":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M18 9c-.01 0-.017.002-.025.003C17.72 5.646 14.922 3 11.5 3 7.91 3 5 5.91 5 9.5c0 .524.07 1.03.186 1.52C5.123 11.015 5.064 11 5 11c-2.21 0-4 1.79-4 4 0 1.202.54 2.267 1.38 3h18.593C22.196 17.09 23 15.643 23 14c0-2.76-2.24-5-5-5z"})));break;case"gridicons-code":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M23 12l-5.45 6.5L16 17.21 20.39 12 16 6.79l1.55-1.29zM8 6.79L6.45 5.5 1 12l5.45 6.5L8 17.21 3.61 12zm.45 14.61l1.93.52L15.55 2.6l-1.93-.52z"})));break;case"gridicons-cog":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M20 12c0-.568-.06-1.122-.174-1.656l1.834-1.612-2-3.464-2.322.786c-.82-.736-1.787-1.308-2.86-1.657L14 2h-4l-.48 2.396c-1.07.35-2.04.92-2.858 1.657L4.34 5.268l-2 3.464 1.834 1.612C4.06 10.878 4 11.432 4 12s.06 1.122.174 1.656L2.34 15.268l2 3.464 2.322-.786c.82.736 1.787 1.308 2.86 1.657L10 22h4l.48-2.396c1.07-.35 2.038-.92 2.858-1.657l2.322.786 2-3.464-1.834-1.613c.113-.535.174-1.09.174-1.657zm-8 4c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4z"})));break;case"gridicons-comment":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 16l-5 5v-5H5c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h14c1.1 0 2 .9 2 2v9c0 1.1-.9 2-2 2h-7z"})));break;case"gridicons-computer":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M20 2H4c-1.104 0-2 .896-2 2v12c0 1.104.896 2 2 2h6v2H7v2h10v-2h-3v-2h6c1.104 0 2-.896 2-2V4c0-1.104-.896-2-2-2zm0 14H4V4h16v12z"})));break;case"gridicons-coupon":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M13 16v2h-2v-2h2zm3-3h2v-2h-2v2zm2 8h-2v2h2v-2zm3-5v2h2v-2h-2zm-1-3c.552 0 1 .448 1 1h2c0-1.657-1.343-3-3-3v2zm1 7c0 .552-.448 1-1 1v2c1.657 0 3-1.343 3-3h-2zm-7 1c-.552 0-1-.448-1-1h-2c0 1.657 1.343 3 3 3v-2zm3.21-5.21c-.78.78-2.047.782-2.828.002l-.002-.002L10 11.41l-1.43 1.44c.28.506.427 1.073.43 1.65C9 16.433 7.433 18 5.5 18S2 16.433 2 14.5 3.567 11 5.5 11c.577.003 1.144.15 1.65.43L8.59 10 7.15 8.57c-.506.28-1.073.427-1.65.43C3.567 9 2 7.433 2 5.5S3.567 2 5.5 2 9 3.567 9 5.5c-.003.577-.15 1.144-.43 1.65L10 8.59l3.88-3.88c.78-.78 2.047-.782 2.828-.002l.002.002-5.3 5.29 5.8 5.79zM5.5 7C6.328 7 7 6.328 7 5.5S6.328 4 5.5 4 4 4.672 4 5.5 4.672 7 5.5 7zM7 14.5c0-.828-.672-1.5-1.5-1.5S4 13.672 4 14.5 4.672 16 5.5 16 7 15.328 7 14.5z"})));break;case"gridicons-create":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M21 14v5c0 1.105-.895 2-2 2H5c-1.105 0-2-.895-2-2V5c0-1.105.895-2 2-2h5v2H5v14h14v-5h2z"}),o.default.createElement("path",{d:"M21 7h-4V3h-2v4h-4v2h4v4h2V9h4"})));break;case"gridicons-credit-card":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M20 4H4c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h16c1.105 0 2-.895 2-2V6c0-1.105-.895-2-2-2zm0 2v2H4V6h16zM4 18v-6h16v6H4zm2-4h7v2H6v-2zm9 0h3v2h-3v-2z"})));break;case"gridicons-crop":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M22 16h-4V8c0-1.105-.895-2-2-2H8V2H6v4H2v2h4v8c0 1.105.895 2 2 2h8v4h2v-4h4v-2zM8 16V8h8v8H8z"})));break;case"gridicons-cross-circle":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M19.1 4.9C15.2 1 8.8 1 4.9 4.9S1 15.2 4.9 19.1s10.2 3.9 14.1 0 4-10.3.1-14.2zm-4.3 11.3L12 13.4l-2.8 2.8-1.4-1.4 2.8-2.8-2.8-2.8 1.4-1.4 2.8 2.8 2.8-2.8 1.4 1.4-2.8 2.8 2.8 2.8-1.4 1.4z"})));break;case"gridicons-cross-small":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M17.705 7.705l-1.41-1.41L12 10.59 7.705 6.295l-1.41 1.41L10.59 12l-4.295 4.295 1.41 1.41L12 13.41l4.295 4.295 1.41-1.41L13.41 12l4.295-4.295z"})));break;case"gridicons-cross":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M18.36 19.78L12 13.41l-6.36 6.37-1.42-1.42L10.59 12 4.22 5.64l1.42-1.42L12 10.59l6.36-6.36 1.41 1.41L13.41 12l6.36 6.36z"})));break;case"gridicons-custom-post-type":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zM6 6h5v5H6V6zm4.5 13C9.12 19 8 17.88 8 16.5S9.12 14 10.5 14s2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5zm3-6l3-5 3 5h-6z"})));break;case"gridicons-customize":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M2 6c0-1.505.78-3.08 2-4 0 .845.69 2 2 2 1.657 0 3 1.343 3 3 0 .386-.08.752-.212 1.09.74.594 1.476 1.19 2.19 1.81L8.9 11.98c-.62-.716-1.214-1.454-1.807-2.192C6.753 9.92 6.387 10 6 10c-2.21 0-4-1.79-4-4zm12.152 6.848l1.34-1.34c.607.304 1.283.492 2.008.492 2.485 0 4.5-2.015 4.5-4.5 0-.725-.188-1.4-.493-2.007L18 9l-2-2 3.507-3.507C18.9 3.188 18.225 3 17.5 3 15.015 3 13 5.015 13 7.5c0 .725.188 1.4.493 2.007L3 20l2 2 6.848-6.848c1.885 1.928 3.874 3.753 5.977 5.45l1.425 1.148 1.5-1.5-1.15-1.425c-1.695-2.103-3.52-4.092-5.448-5.977z"})));break;case"gridicons-domains":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm6.918 6h-3.215c-.188-1.424-.42-2.65-.565-3.357 1.593.682 2.916 1.87 3.78 3.357zm-5.904-3.928c.068.352.387 2.038.645 3.928h-3.32c.26-1.89.578-3.576.646-3.928C11.32 4.03 11.656 4 12 4s.68.03 1.014.072zM14 12c0 .598-.043 1.286-.11 2h-3.78c-.067-.714-.11-1.402-.11-2s.043-1.286.11-2h3.78c.067.714.11 1.402.11 2zM8.862 4.643C8.717 5.35 8.485 6.576 8.297 8H5.082c.864-1.487 2.187-2.675 3.78-3.357zM4.262 10h3.822c-.05.668-.084 1.344-.084 2s.033 1.332.085 2H4.263C4.097 13.36 4 12.692 4 12s.098-1.36.263-2zm.82 6h3.215c.188 1.424.42 2.65.565 3.357-1.593-.682-2.916-1.87-3.78-3.357zm5.904 3.928c-.068-.353-.388-2.038-.645-3.928h3.32c-.26 1.89-.578 3.576-.646 3.928-.333.043-.67.072-1.014.072s-.68-.03-1.014-.072zm4.152-.57c.145-.708.377-1.934.565-3.358h3.215c-.864 1.487-2.187 2.675-3.78 3.357zm4.6-5.358h-3.822c.05-.668.084-1.344.084-2s-.033-1.332-.085-2h3.82c.167.64.265 1.308.265 2s-.097 1.36-.263 2z"})));break;case"gridicons-dropdown":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M7 10l5 5 5-5"})));break;case"gridicons-ellipsis-circle":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zM7.5 13.5c-.8 0-1.5-.7-1.5-1.5s.7-1.5 1.5-1.5S9 11.2 9 12s-.7 1.5-1.5 1.5zm4.5 0c-.8 0-1.5-.7-1.5-1.5s.7-1.5 1.5-1.5 1.5.7 1.5 1.5-.7 1.5-1.5 1.5zm4.5 0c-.8 0-1.5-.7-1.5-1.5s.7-1.5 1.5-1.5 1.5.7 1.5 1.5-.7 1.5-1.5 1.5z"})));break;case"gridicons-ellipsis":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M7 12c0 1.104-.896 2-2 2s-2-.896-2-2 .896-2 2-2 2 .896 2 2zm12-2c-1.104 0-2 .896-2 2s.896 2 2 2 2-.896 2-2-.896-2-2-2zm-7 0c-1.104 0-2 .896-2 2s.896 2 2 2 2-.896 2-2-.896-2-2-2z"})));break;case"gridicons-external":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M19 13v6c0 1.105-.895 2-2 2H5c-1.105 0-2-.895-2-2V7c0-1.105.895-2 2-2h6v2H5v12h12v-6h2zM13 3v2h4.586l-7.793 7.793 1.414 1.414L19 6.414V11h2V3h-8z"})));break;case"gridicons-filter":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M10 19h4v-2h-4v2zm-4-6h12v-2H6v2zM3 5v2h18V5H3z"})));break;case"gridicons-flag":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M15 6c0-1.105-.895-2-2-2H5v17h2v-7h5c0 1.105.895 2 2 2h6V6h-5z"})));break;case"gridicons-flip-horizontal":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M20 18v-5h3v-2h-3V6c0-1.105-.895-2-2-2H6c-1.105 0-2 .895-2 2v5H1v2h3v5c0 1.105.895 2 2 2h12c1.105 0 2-.895 2-2zM6 6h12v5H6V6z"})));break;case"gridicons-flip-vertical":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M18 4h-5V1h-2v3H6c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h5v3h2v-3h5c1.105 0 2-.895 2-2V6c0-1.105-.895-2-2-2zM6 18V6h5v12H6z"})));break;case"gridicons-folder-multiple":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M4 8c-1.105 0-2 .895-2 2v10c0 1.1.9 2 2 2h14c1.105 0 2-.895 2-2H4V8zm16 10H8c-1.105 0-2-.895-2-2V6c0-1.105.895-2 2-2h3c1.105 0 2 .895 2 2h7c1.105 0 2 .895 2 2v8c0 1.105-.895 2-2 2z"})));break;case"gridicons-folder":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M18 19H6c-1.1 0-2-.9-2-2V7c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2h7c1.1 0 2 .9 2 2v8c0 1.1-.9 2-2 2z"})));break;case"gridicons-fullscreen-exit":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M14 10V4h2v2.59l3.29-3.29 1.41 1.41L17.41 8H20v2zM4 10V8h2.59l-3.3-3.29 1.42-1.42L8 6.59V4h2v6zm16 4v2h-2.59l3.29 3.29-1.41 1.41L16 17.41V20h-2v-6zm-10 0v6H8v-2.59l-3.29 3.3-1.42-1.42L6.59 16H4v-2z"})));break;case"gridicons-fullscreen":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M21 3v6h-2V6.41l-3.29 3.3-1.42-1.42L17.59 5H15V3zM3 3v6h2V6.41l3.29 3.3 1.42-1.42L6.41 5H9V3zm18 18v-6h-2v2.59l-3.29-3.29-1.41 1.41L17.59 19H15v2zM9 21v-2H6.41l3.29-3.29-1.41-1.42L5 17.59V15H3v6z"})));break;case"gridicons-gift":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M22 6h-4.8c.5-.5.8-1.2.8-2 0-1.7-1.3-3-3-3s-3 1.3-3 3c0-1.7-1.3-3-3-3S6 2.3 6 4c0 .8.3 1.5.8 2H2v6h1v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8h1V6zm-2 4h-7V8h7v2zm-5-7c.6 0 1 .4 1 1s-.4 1-1 1-1-.4-1-1 .4-1 1-1zM9 3c.6 0 1 .4 1 1s-.4 1-1 1-1-.4-1-1 .4-1 1-1zM4 8h7v2H4V8zm1 4h6v8H5v-8zm14 8h-6v-8h6v8z"})));break;case"gridicons-globe":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm0 18l2-2 1-1v-2h-2v-1l-1-1H9v3l2 2v1.93c-3.94-.494-7-3.858-7-7.93l1 1h2v-2h2l3-3V6h-2L9 5v-.41C9.927 4.21 10.94 4 12 4s2.073.212 3 .59V6l-1 1v2l1 1 3.13-3.13c.752.897 1.304 1.964 1.606 3.13H18l-2 2v2l1 1h2l.286.286C18.03 18.06 15.24 20 12 20z"})));break;case"gridicons-grid":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M8 8H4V4h4v4zm6-4h-4v4h4V4zm6 0h-4v4h4V4zM8 10H4v4h4v-4zm6 0h-4v4h4v-4zm6 0h-4v4h4v-4zM8 16H4v4h4v-4zm6 0h-4v4h4v-4zm6 0h-4v4h4v-4z"})));break;case"gridicons-heading-h1":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M11 7h2v10h-2v-4H7v4H5V7h2v4h4V7zm6.57 0c-.594.95-1.504 1.658-2.57 2v1h2v7h2V7h-1.43z"})));break;case"gridicons-heading-h2":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M9 7h2v10H9v-4H5v4H3V7h2v4h4V7zm8 8c.51-.41.6-.62 1.06-1.05.437-.4.848-.828 1.23-1.28.334-.39.62-.82.85-1.28.2-.39.305-.822.31-1.26.005-.44-.087-.878-.27-1.28-.177-.385-.437-.726-.76-1-.346-.283-.743-.497-1.17-.63-.485-.153-.99-.227-1.5-.22-.36 0-.717.033-1.07.1-.343.06-.678.158-1 .29-.304.13-.593.295-.86.49-.287.21-.56.437-.82.68l1.24 1.22c.308-.268.643-.502 1-.7.35-.2.747-.304 1.15-.3.455-.03.906.106 1.27.38.31.278.477.684.45 1.1-.014.396-.14.78-.36 1.11-.285.453-.62.872-1 1.25-.44.43-.98.92-1.59 1.43-.61.51-1.41 1.06-2.16 1.65V17h8v-2h-4z"})));break;case"gridicons-heading-h3":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M14.11 14.218c.355.287.75.523 1.17.7.434.18.9.273 1.37.27.484.017.965-.086 1.4-.3.333-.146.55-.476.55-.84.003-.203-.05-.403-.15-.58-.123-.19-.3-.34-.51-.43-.32-.137-.655-.228-1-.27-.503-.073-1.012-.106-1.52-.1v-1.57c.742.052 1.485-.07 2.17-.36.37-.164.615-.525.63-.93.026-.318-.12-.627-.38-.81-.34-.203-.734-.3-1.13-.28-.395.013-.784.108-1.14.28-.375.167-.73.375-1.06.62l-1.22-1.39c.5-.377 1.053-.68 1.64-.9.608-.224 1.252-.336 1.9-.33.525-.007 1.05.05 1.56.17.43.1.84.277 1.21.52.325.21.595.495.79.83.19.342.287.73.28 1.12.01.48-.177.943-.52 1.28-.417.39-.916.685-1.46.86v.06c.61.14 1.175.425 1.65.83.437.382.68.94.66 1.52.005.42-.113.835-.34 1.19-.23.357-.538.657-.9.88-.408.253-.853.44-1.32.55-.514.128-1.04.192-1.57.19-.786.02-1.57-.106-2.31-.37-.59-.214-1.126-.556-1.57-1l1.12-1.41zM9 11H5V7H3v10h2v-4h4v4h2V7H9v4z"})));break;case"gridicons-heading-h4":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M11 17H9v-4H5v4H3V7h2v4h4V7h2v10zm10-2h-1v2h-2v-2h-5v-2l4.05-6H20v6h1v2zm-3-2V9l-2.79 4H18z"})));break;case"gridicons-heading-h5":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M14.09 14.19c.352.27.73.5 1.13.69.42.196.877.296 1.34.29.51.014 1.01-.125 1.44-.4.378-.253.594-.686.57-1.14.02-.45-.197-.877-.57-1.13-.406-.274-.89-.41-1.38-.39h-.47c-.135.014-.27.04-.4.08l-.41.15-.48.23-1.02-.57.28-5h6.4v1.92h-4.31L16 10.76c.222-.077.45-.138.68-.18.235-.037.472-.054.71-.05.463-.004.924.057 1.37.18.41.115.798.305 1.14.56.33.248.597.57.78.94.212.422.322.888.32 1.36.007.497-.11.99-.34 1.43-.224.417-.534.782-.91 1.07-.393.3-.837.527-1.31.67-.497.164-1.016.252-1.54.26-.788.023-1.573-.11-2.31-.39-.584-.238-1.122-.577-1.59-1l1.09-1.42zM11 17H9v-4H5v4H3V7h2v4h4V7h2v10z"})));break;case"gridicons-heading-h6":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M11 17H9v-4H5v4H3V7h2v4h4V7h2v10zm8.58-7.508c-.248-.204-.524-.37-.82-.49-.625-.242-1.317-.242-1.94 0-.3.11-.566.287-.78.52-.245.27-.432.586-.55.93-.16.46-.243.943-.25 1.43.367-.33.79-.59 1.25-.77.405-.17.84-.262 1.28-.27.415-.006.83.048 1.23.16.364.118.704.304 1 .55.295.253.528.57.68.93.193.403.302.843.32 1.29.01.468-.094.93-.3 1.35-.206.387-.49.727-.83 1-.357.287-.764.504-1.2.64-.98.31-2.033.293-3-.05-.507-.182-.968-.472-1.35-.85-.437-.416-.778-.92-1-1.48-.243-.693-.352-1.426-.32-2.16-.02-.797.11-1.59.38-2.34.215-.604.556-1.156 1-1.62.406-.416.897-.74 1.44-.95.54-.21 1.118-.314 1.7-.31.682-.02 1.36.096 2 .34.5.19.962.464 1.37.81l-1.31 1.34zm-2.39 5.84c.202 0 .405-.03.6-.09.183-.046.356-.128.51-.24.15-.136.27-.303.35-.49.092-.225.136-.467.13-.71.037-.405-.123-.804-.43-1.07-.328-.23-.72-.347-1.12-.33-.346-.002-.687.07-1 .21-.383.17-.724.418-1 .73.046.346.143.683.29 1 .108.23.257.44.44.62.152.15.337.26.54.33.225.055.46.068.69.04z"})));break;case"gridicons-heading":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M18 20h-3v-6H9v6H6V5.01h3V11h6V5.01h3V20z"})));break;case"gridicons-heart-outline":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M16.5 4.5c2.206 0 4 1.794 4 4 0 4.67-5.543 8.94-8.5 11.023C9.043 17.44 3.5 13.17 3.5 8.5c0-2.206 1.794-4 4-4 1.298 0 2.522.638 3.273 1.706L12 7.953l1.227-1.746c.75-1.07 1.975-1.707 3.273-1.707m0-1.5c-1.862 0-3.505.928-4.5 2.344C11.005 3.928 9.362 3 7.5 3 4.462 3 2 5.462 2 8.5c0 5.72 6.5 10.438 10 12.85 3.5-2.412 10-7.13 10-12.85C22 5.462 19.538 3 16.5 3z"})));break;case"gridicons-heart":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M16.5 3c-1.862 0-3.505.928-4.5 2.344C11.005 3.928 9.362 3 7.5 3 4.462 3 2 5.462 2 8.5c0 5.72 6.5 10.438 10 12.85 3.5-2.412 10-7.13 10-12.85C22 5.462 19.538 3 16.5 3z"})));break;case"gridicons-help-outline":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm4 8c0-2.21-1.79-4-4-4s-4 1.79-4 4h2c0-1.103.897-2 2-2s2 .897 2 2-.897 2-2 2c-.552 0-1 .448-1 1v2h2v-1.14c1.722-.447 3-1.998 3-3.86zm-3 6h-2v2h2v-2z"})));break;case"gridicons-help":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 16h-2v-2h2v2zm0-4.14V15h-2v-2c0-.552.448-1 1-1 1.103 0 2-.897 2-2s-.897-2-2-2-2 .897-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 1.862-1.278 3.413-3 3.86z"})));break;case"gridicons-history":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M2.12 13.526c.742 4.78 4.902 8.47 9.88 8.47 5.5 0 10-4.5 10-9.998S17.5 2 12 2C8.704 2 5.802 3.6 4 6V2H2.003L2 9h7V7H5.8c1.4-1.8 3.702-3 6.202-3C16.4 4 20 7.6 20 11.998s-3.6 8-8 8c-3.877 0-7.13-2.795-7.848-6.472H2.12z"}),o.default.createElement("path",{d:"M11.002 7v5.3l3.2 4.298 1.6-1.197-2.8-3.7V7"})));break;case"gridicons-house":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M22 9L12 1 2 9v2h2v10h5v-4c0-1.657 1.343-3 3-3s3 1.343 3 3v4h5V11h2V9z"})));break;case"gridicons-image-multiple":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M15 7.5c0-.828.672-1.5 1.5-1.5s1.5.672 1.5 1.5S17.328 9 16.5 9 15 8.328 15 7.5zM4 20h14c0 1.105-.895 2-2 2H4c-1.1 0-2-.9-2-2V8c0-1.105.895-2 2-2v14zM22 4v12c0 1.105-.895 2-2 2H8c-1.105 0-2-.895-2-2V4c0-1.105.895-2 2-2h12c1.105 0 2 .895 2 2zM8 4v6.333L11 7l4.855 5.395.656-.73c.796-.886 2.183-.886 2.977 0l.513.57V4H8z"})));break;case"gridicons-image-remove":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M20.587 3.423L22 4.837 20 6.84V18c0 1.105-.895 2-2 2H6.84l-2.007 2.006-1.414-1.414 17.167-17.17zM12.42 14.42l1 1 1-1c.63-.504 1.536-.456 2.11.11L18 16V8.84l-5.58 5.58zM15.16 6H6v6.38l2.19-2.19 1.39 1.39L4 17.163V6c0-1.105.895-2 2-2h11.162l-2 2z"})));break;case"gridicons-image":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M20 6v12c0 1.105-.895 2-2 2H6c-1.105 0-2-.895-2-2V6c0-1.105.895-2 2-2h12c1.105 0 2 .895 2 2zm-2 0H6v6.38l2.19-2.19 5.23 5.23 1-1c.63-.504 1.536-.456 2.11.11L18 16V6zm-5 3.5c0-.828.672-1.5 1.5-1.5s1.5.672 1.5 1.5-.672 1.5-1.5 1.5-1.5-.672-1.5-1.5z"})));break;case"gridicons-indent-left":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M18 20h2V4h-2v16zM2 11h10.172l-2.086-2.086L11.5 7.5 16 12l-4.5 4.5-1.414-1.414L12.172 13H2v-2z"})));break;case"gridicons-indent-right":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M6 4H4v16h2V4zm16 9H11.828l2.086 2.086L12.5 16.5 8 12l4.5-4.5 1.414 1.414L11.828 11H22v2z"})));break;case"gridicons-info-outline":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M13 9h-2V7h2v2zm0 2h-2v6h2v-6zm-1-7c-4.41 0-8 3.59-8 8s3.59 8 8 8 8-3.59 8-8-3.59-8-8-8m0-2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2z"})));break;case"gridicons-info":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"})));break;case"gridicons-ink":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M5 15c0 3.866 3.134 7 7 7s7-3.134 7-7c0-1.387-.41-2.677-1.105-3.765h.007L12 2l-5.903 9.235h.007C5.41 12.323 5 13.613 5 15z"})));break;case"gridicons-institution":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M2 19h20v3H2zM12 2L2 6v2h20V6M17 10h3v7h-3zM10.5 10h3v7h-3zM4 10h3v7H4z"})));break;case"gridicons-italic":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M10.536 5l-.427 2h1.5L9.262 18h-1.5l-.427 2h6.128l.426-2h-1.5l2.347-11h1.5l.427-2"})));break;case"gridicons-layout-blocks":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M21 7h-2V3c0-1.105-.895-2-2-2H7c-1.105 0-2 .895-2 2v2H3c-1.105 0-2 .895-2 2v4c0 1.105.895 2 2 2h2v8c0 1.105.895 2 2 2h10c1.105 0 2-.895 2-2v-2h2c1.105 0 2-.895 2-2V9c0-1.105-.895-2-2-2zm-4 14H7v-8h2c1.105 0 2-.895 2-2V7c0-1.105-.895-2-2-2H7V3h10v4h-2c-1.105 0-2 .895-2 2v8c0 1.105.895 2 2 2h2v2zm4-4h-6V9h6v8z"})));break;case"gridicons-layout":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M8 20H5c-1.105 0-2-.895-2-2V6c0-1.105.895-2 2-2h3c1.105 0 2 .895 2 2v12c0 1.105-.895 2-2 2zm8-10h4c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2h-4c-1.105 0-2 .895-2 2v3c0 1.105.895 2 2 2zm5 10v-6c0-1.105-.895-2-2-2h-5c-1.105 0-2 .895-2 2v6c0 1.105.895 2 2 2h5c1.105 0 2-.895 2-2z"})));break;case"gridicons-line-graph":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M3 19h18v2H3zm3-3c1.1 0 2-.9 2-2 0-.5-.2-1-.5-1.3L8.8 10H9c.5 0 1-.2 1.3-.5l2.7 1.4v.1c0 1.1.9 2 2 2s2-.9 2-2c0-.5-.2-.9-.5-1.3L17.8 7h.2c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2c0 .5.2 1 .5 1.3L15.2 9H15c-.5 0-1 .2-1.3.5L11 8.2V8c0-1.1-.9-2-2-2s-2 .9-2 2c0 .5.2 1 .5 1.3L6.2 12H6c-1.1 0-2 .9-2 2s.9 2 2 2z"})));break;case"gridicons-link-break":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M10 11l-2 2H7v-2h3zm9.64-3.64L22 5l-1.5-1.5-17 17L5 22l9-9h3v-2h-1l2-2c1.103 0 2 .897 2 2v2c0 1.103-.897 2-2 2h-4.977c.913 1.208 2.347 2 3.977 2h1c2.21 0 4-1.79 4-4v-2c0-1.623-.97-3.013-2.36-3.64zM4.36 16.64L6 15c-1.103 0-2-.897-2-2v-2c0-1.103.897-2 2-2h4.977C10.065 7.792 8.63 7 7 7H6c-2.21 0-4 1.79-4 4v2c0 1.623.97 3.013 2.36 3.64z"})));break;case"gridicons-link":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M17 13H7v-2h10v2zm1-6h-1c-1.63 0-3.065.792-3.977 2H18c1.103 0 2 .897 2 2v2c0 1.103-.897 2-2 2h-4.977c.913 1.208 2.347 2 3.977 2h1c2.21 0 4-1.79 4-4v-2c0-2.21-1.79-4-4-4zM2 11v2c0 2.21 1.79 4 4 4h1c1.63 0 3.065-.792 3.977-2H6c-1.103 0-2-.897-2-2v-2c0-1.103.897-2 2-2h4.977C10.065 7.792 8.63 7 7 7H6c-2.21 0-4 1.79-4 4z"})));break;case"gridicons-list-checkmark":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M9.5 15.5L5 20l-2.5-2.5 1.06-1.06L5 17.88l3.44-3.44L9.5 15.5zM10 5v2h11V5H10zm0 14h11v-2H10v2zm0-6h11v-2H10v2zM8.44 8.44L5 11.88l-1.44-1.44L2.5 11.5 5 14l4.5-4.5-1.06-1.06zm0-6L5 5.88 3.56 4.44 2.5 5.5 5 8l4.5-4.5-1.06-1.06z"})));break;case"gridicons-list-ordered-rtl":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M3 19h13v-2H3v2zm0-6h13v-2H3v2zm0-8v2h13V5H3zm16.587.252c.107-.096.197-.188.27-.275-.013.228-.02.48-.02.756V8h1.176V3.717H19.97L18.5 4.915l.6.738.487-.4zm.448 7.826c.475-.426.785-.715.93-.867.146-.15.262-.296.35-.434.088-.138.153-.278.195-.42.042-.143.063-.298.063-.466 0-.225-.06-.427-.18-.608-.12-.18-.29-.32-.507-.417-.218-.1-.465-.148-.742-.148-.22 0-.42.022-.596.067-.177.045-.34.11-.49.195-.15.084-.337.225-.558.422l.636.744c.174-.15.33-.264.467-.34.138-.078.274-.117.41-.117.13 0 .232.03.304.096.072.064.108.152.108.264 0 .09-.018.176-.054.258-.035.082-.1.18-.19.294-.093.114-.288.328-.587.64L18.547 13.3v.762h3.108v-.955h-1.62v-.03zm.46 4.747v-.018c.306-.086.54-.225.702-.414.162-.19.243-.42.243-.685 0-.31-.126-.55-.378-.727-.252-.175-.6-.263-1.043-.263-.308 0-.58.033-.817.1s-.47.178-.696.334l.48.774c.293-.184.576-.275.85-.275.147 0 .263.026.35.08.087.056.13.14.13.253 0 .3-.294.45-.882.45h-.27v.87h.264c.216 0 .392.017.526.05.135.03.232.08.293.143.06.064.09.154.09.27 0 .153-.058.265-.174.337-.116.07-.3.106-.555.106-.163 0-.342-.023-.537-.07-.194-.045-.385-.116-.573-.212v.96c.228.09.44.15.637.183.196.034.41.05.64.05.56 0 .998-.113 1.314-.342.316-.228.474-.542.474-.94.003-.585-.355-.923-1.07-1.013z"})));break;case"gridicons-list-ordered":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M8 19h13v-2H8v2zm0-6h13v-2H8v2zm0-8v2h13V5H8zm-4.425.252c.107-.096.197-.188.27-.275-.013.228-.02.48-.02.756V8h1.176V3.717H3.96L2.487 4.915l.6.738.487-.4zm.334 7.764c.474-.426.784-.715.93-.867.145-.153.26-.298.35-.436.087-.138.152-.278.194-.42.042-.143.063-.298.063-.466 0-.225-.06-.427-.18-.608s-.29-.32-.507-.417c-.218-.1-.465-.148-.742-.148-.22 0-.42.022-.596.067s-.34.11-.49.195c-.15.085-.337.226-.558.423l.636.744c.174-.15.33-.264.467-.34.138-.078.274-.117.41-.117.13 0 .232.032.304.097.073.064.11.152.11.264 0 .09-.02.176-.055.258-.036.082-.1.18-.192.294-.092.114-.287.328-.586.64L2.42 13.238V14h3.11v-.955H3.91v-.03zm.53 4.746v-.018c.306-.086.54-.225.702-.414.162-.19.243-.42.243-.685 0-.31-.126-.55-.378-.727-.252-.176-.6-.264-1.043-.264-.307 0-.58.033-.816.1s-.47.178-.696.334l.48.773c.293-.183.576-.274.85-.274.147 0 .263.027.35.082s.13.14.13.252c0 .3-.294.45-.882.45h-.27v.87h.264c.217 0 .393.017.527.05.136.03.233.08.294.143.06.064.09.154.09.27 0 .153-.057.265-.173.337-.115.07-.3.106-.554.106-.164 0-.343-.022-.538-.07-.194-.044-.385-.115-.573-.21v.96c.228.088.44.148.637.182.196.033.41.05.64.05.56 0 .998-.114 1.314-.343.315-.228.473-.542.473-.94.002-.585-.356-.923-1.07-1.013z"})));break;case"gridicons-list-unordered":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M9 19h12v-2H9v2zm0-6h12v-2H9v2zm0-8v2h12V5H9zm-4-.5c-.828 0-1.5.672-1.5 1.5S4.172 7.5 5 7.5 6.5 6.828 6.5 6 5.828 4.5 5 4.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5z"})));break;case"gridicons-location":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M19 9c0-3.866-3.134-7-7-7S5 5.134 5 9c0 1.387.41 2.677 1.105 3.765h-.008C8.457 16.46 12 22 12 22l5.903-9.235h-.007C18.59 11.677 19 10.387 19 9zm-7 3c-1.657 0-3-1.343-3-3s1.343-3 3-3 3 1.343 3 3-1.343 3-3 3z"})));break;case"gridicons-lock":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M18 8h-1V7c0-2.757-2.243-5-5-5S7 4.243 7 7v1H6c-1.105 0-2 .895-2 2v10c0 1.105.895 2 2 2h12c1.105 0 2-.895 2-2V10c0-1.105-.895-2-2-2zM9 7c0-1.654 1.346-3 3-3s3 1.346 3 3v1H9V7zm4 8.723V18h-2v-2.277c-.595-.346-1-.984-1-1.723 0-1.105.895-2 2-2s2 .895 2 2c0 .738-.405 1.376-1 1.723z"})));break;case"gridicons-mail":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M20 4H4c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h16c1.105 0 2-.895 2-2V6c0-1.105-.895-2-2-2zm0 4.236l-8 4.882-8-4.882V6h16v2.236z"})));break;case"gridicons-mention":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 2a10 10 0 0 0 0 20v-2a8 8 0 1 1 8-8v.5a1.5 1.5 0 0 1-3 0V7h-2v1a5 5 0 1 0 1 7 3.5 3.5 0 0 0 6-2.46V12A10 10 0 0 0 12 2zm0 13a3 3 0 1 1 3-3 3 3 0 0 1-3 3z"})));break;case"gridicons-menu":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M21 6v2H3V6h18zM3 18h18v-2H3v2zm0-5h18v-2H3v2z"})));break;case"gridicons-menus":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M9 19h10v-2H9v2zm0-6h6v-2H9v2zm0-8v2h12V5H9zm-4-.5c-.828 0-1.5.672-1.5 1.5S4.172 7.5 5 7.5 6.5 6.828 6.5 6 5.828 4.5 5 4.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5z"})));break;case"gridicons-microphone":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M19 9v1a7 7 0 0 1-6 6.92V20h3v2H8v-2h3v-3.08A7 7 0 0 1 5 10V9h2v1a5 5 0 0 0 10 0V9zm-7 4a3 3 0 0 0 3-3V5a3 3 0 0 0-6 0v5a3 3 0 0 0 3 3z"})));break;case"gridicons-minus-small":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M6 11h12v2H6z"})));break;case"gridicons-minus":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M3 11h18v2H3z"})));break;case"gridicons-money":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M2 5v14h20V5H2zm5 12c0-1.657-1.343-3-3-3v-4c1.657 0 3-1.343 3-3h10c0 1.657 1.343 3 3 3v4c-1.657 0-3 1.343-3 3H7zm5-8c1.1 0 2 1.3 2 3s-.9 3-2 3-2-1.3-2-3 .9-3 2-3z"})));break;case"gridicons-multiple-users":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M24 14.6c0 .6-1.2 1-2.6 1.2-.9-1.7-2.7-3-4.8-3.9.2-.3.4-.5.6-.8h.8c3.1-.1 6 1.8 6 3.5zM6.8 11H6c-3.1 0-6 1.9-6 3.6 0 .6 1.2 1 2.6 1.2.9-1.7 2.7-3 4.8-3.9l-.6-.9zm5.2 1c2.2 0 4-1.8 4-4s-1.8-4-4-4-4 1.8-4 4 1.8 4 4 4zm0 1c-4.1 0-8 2.6-8 5 0 2 8 2 8 2s8 0 8-2c0-2.4-3.9-5-8-5zm5.7-3h.3c1.7 0 3-1.3 3-3s-1.3-3-3-3c-.5 0-.9.1-1.3.3.8 1 1.3 2.3 1.3 3.7 0 .7-.1 1.4-.3 2zM6 10h.3C6.1 9.4 6 8.7 6 8c0-1.4.5-2.7 1.3-3.7C6.9 4.1 6.5 4 6 4 4.3 4 3 5.3 3 7s1.3 3 3 3z"})));break;case"gridicons-my-sites-horizon":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M10.986 13.928l.762-2.284-1.324-3.63c-.458-.026-.892-.08-.892-.08-.458-.027-.405-.727.054-.7 0 0 1.403.107 2.24.107.888 0 2.265-.107 2.265-.107.46-.027.513.646.055.7 0 0-.46.055-.973.082l2.006 5.966c-.875-.034-1.74-.053-2.6-.06l-.428-1.177-.403 1.17c-.252.002-.508.01-.76.015zm-7.156.393c-.21-.737-.33-1.514-.33-2.32 0-1.232.264-2.402.736-3.46l2.036 5.58c.85-.06 1.69-.104 2.526-.138L6.792 8.015c.512-.027.973-.08.973-.08.458-.055.404-.728-.055-.702 0 0-1.376.108-2.265.108-.16 0-.347-.003-.547-.01C6.418 5.025 9.03 3.5 12 3.5c2.213 0 4.228.846 5.74 2.232-.036-.002-.072-.007-.11-.007-.835 0-1.427.727-1.427 1.51 0 .7.404 1.292.835 1.993.323.566.7 1.293.7 2.344 0 .674-.244 1.463-.572 2.51.3.02.604.043.907.066l.798-2.307c.486-1.212.647-2.18.647-3.043 0-.313-.02-.603-.057-.874.662 1.21 1.04 2.6 1.04 4.077 0 .807-.128 1.58-.34 2.32.5.05 1.006.112 1.51.17.205-.798.33-1.628.33-2.49 0-5.523-4.477-10-10-10S2 6.477 2 12c0 .862.125 1.692.33 2.49.5-.057 1.003-.12 1.5-.17zm14.638 3.168C16.676 19.672 14.118 20.5 12 20.5c-1.876 0-4.55-.697-6.463-3.012-.585.048-1.174.1-1.77.16C5.572 20.272 8.578 22 12 22c3.422 0 6.43-1.73 8.232-4.35-.593-.063-1.18-.114-1.764-.162zM12 15.01c-3.715 0-7.368.266-10.958.733.18.41.35.825.506 1.247 3.427-.43 6.91-.68 10.452-.68s7.025.25 10.452.68c.156-.422.327-.836.506-1.246-3.59-.467-7.243-.734-10.958-.734z"})));break;case"gridicons-my-sites":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zM3.5 12c0-1.232.264-2.402.736-3.46L8.29 19.65C5.456 18.272 3.5 15.365 3.5 12zm8.5 8.5c-.834 0-1.64-.12-2.4-.345l2.55-7.41 2.613 7.157c.017.042.038.08.06.117-.884.31-1.833.48-2.823.48zm1.172-12.485c.512-.027.973-.08.973-.08.458-.055.404-.728-.054-.702 0 0-1.376.108-2.265.108-.835 0-2.24-.107-2.24-.107-.458-.026-.51.674-.053.7 0 0 .434.055.892.082l1.324 3.63-1.86 5.578-3.096-9.208c.512-.027.973-.08.973-.08.458-.055.403-.728-.055-.702 0 0-1.376.108-2.265.108-.16 0-.347-.003-.547-.01C6.418 5.025 9.03 3.5 12 3.5c2.213 0 4.228.846 5.74 2.232-.037-.002-.072-.007-.11-.007-.835 0-1.427.727-1.427 1.51 0 .7.404 1.292.835 1.993.323.566.7 1.293.7 2.344 0 .727-.28 1.572-.646 2.748l-.848 2.833-3.072-9.138zm3.1 11.332l2.597-7.506c.484-1.212.645-2.18.645-3.044 0-.313-.02-.603-.057-.874.664 1.21 1.042 2.6 1.042 4.078 0 3.136-1.7 5.874-4.227 7.347z"})));break;case"gridicons-nametag":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 6a1 1 0 1 1-1 1 1 1 0 0 1 1-1zm-6 8h12v3H6zm14-8h-4V3H8v3H4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2zM10 5h4v5h-4zm10 14H4v-9h4a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2h4z"})));break;case"gridicons-next-page":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M18 8h-8V6h8v2zm4-4v8l-6 6H8c-1.105 0-2-.895-2-2V4c0-1.105.895-2 2-2h12c1.105 0 2 .895 2 2zm-2 0H8v12h6v-4c0-1.105.895-2 2-2h4V4zM4 6c-1.105 0-2 .895-2 2v12c0 1.1.9 2 2 2h12c1.105 0 2-.895 2-2H4V6z"})));break;case"gridicons-not-visible":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M1 12s4.188-6 11-6c.947 0 1.84.12 2.678.322L8.36 12.64C8.133 12.14 8 11.586 8 11c0-.937.335-1.787.875-2.47C6.483 9.344 4.66 10.917 3.62 12c.68.707 1.696 1.62 2.98 2.398L5.15 15.85C2.498 14.13 1 12 1 12zm22 0s-4.188 6-11 6c-.946 0-1.836-.124-2.676-.323L5 22l-1.5-1.5 17-17L22 5l-3.147 3.147C21.5 9.87 23 12 23 12zm-2.615.006c-.678-.708-1.697-1.624-2.987-2.403L16 11c0 2.21-1.79 4-4 4l-.947.947c.31.03.624.053.947.053 3.978 0 6.943-2.478 8.385-3.994z"})));break;case"gridicons-notice-outline":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 13h-2v2h2v-2zm-2-2h2l.5-6h-3l.5 6z"})));break;case"gridicons-notice":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 15h-2v-2h2v2zm0-4h-2l-.5-6h3l-.5 6z"})));break;case"gridicons-offline":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M10 3h8l-4 6h4L6 21l4-9H6l4-9"})));break;case"gridicons-pages":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M16 8H8V6h8v2zm0 2H8v2h8v-2zm4-6v12l-6 6H6c-1.105 0-2-.895-2-2V4c0-1.105.895-2 2-2h12c1.105 0 2 .895 2 2zm-2 10V4H6v16h6v-4c0-1.105.895-2 2-2h4z"})));break;case"gridicons-pause":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm-1 14H9V8h2v8zm4 0h-2V8h2v8z"})));break;case"gridicons-pencil":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M13 6l5 5-9.507 9.507c-.686-.686-.69-1.794-.012-2.485l-.002-.003c-.69.676-1.8.673-2.485-.013-.677-.677-.686-1.762-.036-2.455l-.008-.008c-.694.65-1.78.64-2.456-.036L13 6zm7.586-.414l-2.172-2.172c-.78-.78-2.047-.78-2.828 0L14 5l5 5 1.586-1.586c.78-.78.78-2.047 0-2.828zM3 18v3h3c0-1.657-1.343-3-3-3z"})));break;case"gridicons-phone":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M16 2H8c-1.104 0-2 .896-2 2v16c0 1.104.896 2 2 2h8c1.104 0 2-.896 2-2V4c0-1.104-.896-2-2-2zm-3 19h-2v-1h2v1zm3-2H8V5h8v14z"})));break;case"gridicons-pin":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M19 17c0-2.038-1.188-3.836-3-4.92V5h.5c.828 0 1.5-.672 1.5-1.5S17.328 2 16.5 2h-9C6.672 2 6 2.672 6 3.5S6.672 5 7.5 5H8v7.08C6.188 13.164 5 14.962 5 17h6v4c0 .55.45 1 1 1s1-.45 1-1v-4h6z"})));break;case"gridicons-plans":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm-1 12H6l5-10v10zm2 6V10h5l-5 10z"})));break;case"gridicons-play":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm-2 14.5v-9l6 4.5z"})));break;case"gridicons-plugins":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M16 8V3c0-.552-.448-1-1-1s-1 .448-1 1v5h-4V3c0-.552-.448-1-1-1s-1 .448-1 1v5H5v4c0 2.79 1.637 5.193 4 6.317V22h6v-3.683c2.363-1.124 4-3.527 4-6.317V8h-3z"})));break;case"gridicons-plus-small":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M18 11h-5V6h-2v5H6v2h5v5h2v-5h5"})));break;case"gridicons-plus":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M21 13h-8v8h-2v-8H3v-2h8V3h2v8h8v2z"})));break;case"gridicons-popout":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M6 7V5c0-1.105.895-2 2-2h11c1.105 0 2 .895 2 2v14c0 1.105-.895 2-2 2H8c-1.105 0-2-.895-2-2v-2h2v2h11V5H8v2H6zm5.5-.5l-1.414 1.414L13.172 11H3v2h10.172l-3.086 3.086L11.5 17.5 17 12l-5.5-5.5z"})));break;case"gridicons-posts":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M16 19H3v-2h13v2zm5-10H3v2h18V9zM3 5v2h11V5H3zm14 0v2h4V5h-4zm-6 8v2h10v-2H11zm-8 0v2h5v-2H3z"})));break;case"gridicons-print":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M9 16h6v2H9v-2zm13 1h-3v3c0 1.105-.895 2-2 2H7c-1.105 0-2-.895-2-2v-3H2V9c0-1.105.895-2 2-2h1V5c0-1.105.895-2 2-2h10c1.105 0 2 .895 2 2v2h1c1.105 0 2 .895 2 2v8zM7 7h10V5H7v2zm10 7H7v6h10v-6zm3-3.5c0-.828-.672-1.5-1.5-1.5s-1.5.672-1.5 1.5.672 1.5 1.5 1.5 1.5-.672 1.5-1.5z"})));break;case"gridicons-product-downloadable":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M22 3H2v6h1v11c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V9h1V3zM4 5h16v2H4V5zm15 15H5V9h14v11zm-6-10v5.17l2.59-2.58L17 14l-5 5-5-5 1.41-1.42L11 15.17V10h2z"})));break;case"gridicons-product-external":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M22 3H2v6h1v11c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V9h1V3zM4 5h16v2H4V5zm15 15H5V9h14v11zm-2-9v6h-2v-2.59l-3.29 3.29-1.41-1.41L13.59 13H11v-2h6z"})));break;case"gridicons-product-virtual":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M22 3H2v6h1v11c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V9h1V3zM4 5h16v2H4V5zm15 15H5V9h14v11zM7 16.45c0-1.005.815-1.82 1.82-1.82h.09c-.335-1.59.68-3.148 2.27-3.483s3.148.68 3.483 2.27c.02.097.036.195.046.293 1.252-.025 2.29.97 2.314 2.224.017.868-.462 1.67-1.235 2.066H7.87c-.54-.33-.87-.917-.87-1.55z"})));break;case"gridicons-product":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M22 3H2v6h1v11c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V9h1V3zM4 5h16v2H4V5zm15 15H5V9h14v11zM9 11h6c0 1.105-.895 2-2 2h-2c-1.105 0-2-.895-2-2z"})));break;case"gridicons-quote":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M11.192 15.757c0-.88-.23-1.618-.69-2.217-.326-.412-.768-.683-1.327-.812-.55-.128-1.07-.137-1.54-.028-.16-.95.1-1.956.76-3.022.66-1.065 1.515-1.867 2.558-2.403L9.373 5c-.8.396-1.56.898-2.26 1.505-.71.607-1.34 1.305-1.9 2.094s-.98 1.68-1.25 2.69-.346 2.04-.217 3.1c.168 1.4.62 2.52 1.356 3.35.735.84 1.652 1.26 2.748 1.26.965 0 1.766-.29 2.4-.878.628-.576.94-1.365.94-2.368l.002.003zm9.124 0c0-.88-.23-1.618-.69-2.217-.326-.42-.77-.692-1.327-.817-.56-.124-1.074-.13-1.54-.022-.16-.94.09-1.95.75-3.02.66-1.06 1.514-1.86 2.557-2.4L18.49 5c-.8.396-1.555.898-2.26 1.505-.708.607-1.34 1.305-1.894 2.094-.556.79-.97 1.68-1.24 2.69-.273 1-.345 2.04-.217 3.1.165 1.4.615 2.52 1.35 3.35.732.833 1.646 1.25 2.742 1.25.967 0 1.768-.29 2.402-.876.627-.576.942-1.365.942-2.368v.01z"})));break;case"gridicons-read-more":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M9 12h6v-2H9zm-7 0h5v-2H2zm15 0h5v-2h-5zm3 2v2l-6 6H6a2 2 0 0 1-2-2v-6h2v6h6v-4a2 2 0 0 1 2-2h6zM4 8V4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4h-2V4H6v4z"})));break;case"gridicons-reader-follow-conversation":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M20 14v-3h-2v3h-3v2h3v3h2v-3h3v-2"}),o.default.createElement("path",{d:"M13 16h-2l-5 5v-5H4c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h14c1.1 0 2 .9 2 2v4h-4v3h-3v4z"})));break;case"gridicons-reader-follow":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M23 16v2h-3v3h-2v-3h-3v-2h3v-3h2v3h3zM20 2v9h-4v3h-3v4H4c-1.1 0-2-.9-2-2V2h18zM8 13v-1H4v1h4zm3-3H4v1h7v-1zm0-2H4v1h7V8zm7-4H4v2h14V4z"})));break;case"gridicons-reader-following-conversation":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M16.8 14.5l3.2-3.2V5c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h2v5l8.7-8.7 2.1 2.2z"}),o.default.createElement("path",{d:"M22.6 11.1l-6.1 6.1-2.1-2.2-1.4 1.4 3.5 3.6 7.5-7.6"})));break;case"gridicons-reader-following":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M23 13.482L15.508 21 12 17.4l1.412-1.388 2.106 2.188 6.094-6.094L23 13.482zm-7.455 1.862L20 10.89V2H2v14c0 1.1.9 2 2 2h4.538l4.913-4.832 2.095 2.176zM8 13H4v-1h4v1zm3-2H4v-1h7v1zm0-2H4V8h7v1zm7-3H4V4h14v2z"})));break;case"gridicons-reader":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M3 4v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4H3zm7 11H5v-1h5v1zm2-2H5v-1h7v1zm0-2H5v-1h7v1zm7 4h-5v-5h5v5zm0-7H5V6h14v2z"})));break;case"gridicons-reblog":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M22.086 9.914L20 7.828V18c0 1.105-.895 2-2 2h-7v-2h7V7.828l-2.086 2.086L14.5 8.5 19 4l4.5 4.5-1.414 1.414zM6 16.172V6h7V4H6c-1.105 0-2 .895-2 2v10.172l-2.086-2.086L.5 15.5 5 20l4.5-4.5-1.414-1.414L6 16.172z"})));break;case"gridicons-redo":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M18 6v3.586L14.343 5.93C13.17 4.756 11.636 4.17 10.1 4.17s-3.07.585-4.242 1.757c-2.343 2.342-2.343 6.14 0 8.484l5.364 5.364 1.414-1.414L7.272 13c-1.56-1.56-1.56-4.097 0-5.657.755-.755 1.76-1.172 2.828-1.172 1.068 0 2.073.417 2.828 1.173L16.586 11H13v2h7V6h-2z"})));break;case"gridicons-refresh":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M17.91 14c-.478 2.833-2.943 5-5.91 5-3.308 0-6-2.692-6-6s2.692-6 6-6h2.172l-2.086 2.086L13.5 10.5 18 6l-4.5-4.5-1.414 1.414L14.172 5H12c-4.418 0-8 3.582-8 8s3.582 8 8 8c4.08 0 7.438-3.055 7.93-7h-2.02z"})));break;case"gridicons-refund":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M13.91 2.91L11.83 5H14c4.418 0 8 3.582 8 8h-2c0-3.314-2.686-6-6-6h-2.17l2.09 2.09-1.42 1.41L8 6l1.41-1.41L12.5 1.5l1.41 1.41zM2 12v10h16V12H2zm2 6.56v-3.11c.6-.35 1.1-.85 1.45-1.45h9.1c.35.6.85 1.1 1.45 1.45v3.11c-.593.35-1.085.845-1.43 1.44H5.45c-.35-.597-.85-1.094-1.45-1.44zm6 .44c.828 0 1.5-.895 1.5-2s-.672-2-1.5-2-1.5.895-1.5 2 .672 2 1.5 2z"})));break;case"gridicons-reply":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M9 16h7.2l-2.6 2.6L15 20l5-5-5-5-1.4 1.4 2.6 2.6H9c-2.2 0-4-1.8-4-4s1.8-4 4-4h2V4H9c-3.3 0-6 2.7-6 6s2.7 6 6 6z"})));break;case"gridicons-resize":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M13 4v2h3.59L6 16.59V13H4v7h7v-2H7.41L18 7.41V11h2V4h-7"})));break;case"gridicons-rotate":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M18 14v6c0 1.105-.895 2-2 2H6c-1.105 0-2-.895-2-2v-6c0-1.105.895-2 2-2h10c1.105 0 2 .895 2 2zM13.914 2.914L11.828 5H14c4.418 0 8 3.582 8 8h-2c0-3.308-2.692-6-6-6h-2.172l2.086 2.086L12.5 10.5 8 6l1.414-1.414L12.5 1.5l1.414 1.414z"})));break;case"gridicons-scheduled":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M10.498 18l-3.705-3.704 1.415-1.415 2.294 2.295 5.293-5.293 1.415 1.415L10.498 18zM21 6v13c0 1.104-.896 2-2 2H5c-1.104 0-2-.896-2-2V6c0-1.104.896-2 2-2h1V2h2v2h8V2h2v2h1c1.104 0 2 .896 2 2zm-2 2H5v11h14V8z"})));break;case"gridicons-search":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M21 19l-5.154-5.154C16.574 12.742 17 11.42 17 10c0-3.866-3.134-7-7-7s-7 3.134-7 7 3.134 7 7 7c1.42 0 2.742-.426 3.846-1.154L19 21l2-2zM5 10c0-2.757 2.243-5 5-5s5 2.243 5 5-2.243 5-5 5-5-2.243-5-5z"})));break;case"gridicons-share-computer":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M20 2H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h6v2H7v2h10v-2h-3v-2h6a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2zm0 14H4V4h16zm-3.25-3a1.75 1.75 0 0 1-3.5 0L10 11.36a1.71 1.71 0 1 1 0-2.71L13.25 7a1.77 1.77 0 1 1 .68 1.37L10.71 10l3.22 1.61A1.74 1.74 0 0 1 16.75 13z"})));break;case"gridicons-share-ios":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M17 8h2c1.105 0 2 .895 2 2v9c0 1.105-.895 2-2 2H5c-1.105 0-2-.895-2-2v-9c0-1.105.895-2 2-2h2v2H5v9h14v-9h-2V8zM6.5 5.5l1.414 1.414L11 3.828V14h2V3.828l3.086 3.086L17.5 5.5 12 0 6.5 5.5z"})));break;case"gridicons-share":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M18 16c-.788 0-1.5.31-2.034.807L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.048 4.118c-.053.223-.088.453-.088.692 0 1.657 1.343 3 3 3s3-1.343 3-3-1.343-3-3-3z"})));break;case"gridicons-shipping":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M18 8h-2V7c0-1.105-.895-2-2-2H4c-1.105 0-2 .895-2 2v10h2c0 1.657 1.343 3 3 3s3-1.343 3-3h4c0 1.657 1.343 3 3 3s3-1.343 3-3h2v-5l-4-4zM7 18.5c-.828 0-1.5-.672-1.5-1.5s.672-1.5 1.5-1.5 1.5.672 1.5 1.5-.672 1.5-1.5 1.5zM4 14V7h10v7H4zm13 4.5c-.828 0-1.5-.672-1.5-1.5s.672-1.5 1.5-1.5 1.5.672 1.5 1.5-.672 1.5-1.5 1.5z"})));break;case"gridicons-shutter":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M18.9 4.8s-.7 5.6-3.5 10.2c1.7-.3 3.9-.9 6.6-2 0 0 .7-4.6-3.1-8.2zm-6 2.8c-1.1-1.3-2.7-3-5-4.7C5.1 4.2 3 6.6 2.3 9.6 7 7.7 11 7.5 12.9 7.6zm3.4 2.9c.6-1.6 1.2-3.9 1.6-6.7-4.1-3-8.6-1.5-8.6-1.5s4.4 3.4 7 8.2zm-5.2 6c1.1 1.3 2.7 3 5 4.7 0 0 4.3-1.6 5.6-6.7 0-.1-5.3 2.1-10.6 2zm-3.4-3.1c-.6 1.6-1.2 3.8-1.5 6.7 0 0 3.6 2.9 8.6 1.5 0 0-4.6-3.4-7.1-8.2zM2 11.1s-.7 4.5 3.1 8.2c0 0 .7-5.7 3.5-10.3-1.7.3-4 .9-6.6 2.1z"})));break;case"gridicons-sign-out":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M16 17v2c0 1.105-.895 2-2 2H5c-1.105 0-2-.895-2-2V5c0-1.105.895-2 2-2h9c1.105 0 2 .895 2 2v2h-2V5H5v14h9v-2h2zm2.5-10.5l-1.414 1.414L20.172 11H10v2h10.172l-3.086 3.086L18.5 17.5 24 12l-5.5-5.5z"})));break;case"gridicons-site":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M18 4H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm-5 14H6v-7h7zm5 0h-3v-7h3zm0-9H6V6h12z"})));break;case"gridicons-spam":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M17 2H7L2 7v10l5 5h10l5-5V7l-5-5zm-4 15h-2v-2h2v2zm0-4h-2l-.5-6h3l-.5 6z"})));break;case"gridicons-speaker":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M19 8v6c1.7 0 3-1.3 3-3s-1.3-3-3-3zM11 7H4c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h1v3c0 1.1.9 2 2 2h2v-5h2l4 4h2V3h-2l-4 4z"})));break;case"gridicons-special-character":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12.005 7.418c-1.237 0-2.19.376-2.86 1.128s-1.005 1.812-1.005 3.18c0 1.387.226 2.513.677 3.377.45.865 1.135 1.543 2.05 2.036V20H5v-2.666h3.12c-1.04-.636-1.842-1.502-2.405-2.6-.564-1.097-.846-2.322-.846-3.676 0-1.258.29-2.363.875-3.317.585-.952 1.417-1.685 2.497-2.198s2.334-.77 3.763-.77c2.18 0 3.915.572 5.204 1.713s1.932 2.673 1.932 4.594c0 1.353-.283 2.57-.852 3.65-.567 1.08-1.38 1.947-2.44 2.603H19V20h-5.908v-2.86c.95-.493 1.65-1.18 2.102-2.062s.677-2.006.677-3.374c0-1.36-.336-2.415-1.01-3.164-.672-.747-1.624-1.122-2.855-1.122z"})));break;case"gridicons-star-outline":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 6.308l1.176 3.167.347.936.997.042 3.374.14-2.647 2.09-.784.62.27.963.91 3.25-2.813-1.872-.83-.553-.83.552-2.814 1.87.91-3.248.27-.962-.783-.62-2.648-2.092 3.374-.14.996-.04.347-.936L12 6.308M12 2L9.418 8.953 2 9.257l5.822 4.602L5.82 21 12 16.89 18.18 21l-2.002-7.14L22 9.256l-7.418-.305L12 2z"})));break;case"gridicons-star":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 2l2.582 6.953L22 9.257l-5.822 4.602L18.18 21 12 16.89 5.82 21l2.002-7.14L2 9.256l7.418-.304"})));break;case"gridicons-stats-alt":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M21 21H3v-2h18v2zM8 10H4v7h4v-7zm6-7h-4v14h4V3zm6 3h-4v11h4V6z"})));break;case"gridicons-stats-down-alt":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M21 21H3v-2h18v2zM8 3H4v14h4V3zm6 3h-4v11h4V6zm6 4h-4v7h4v-7z"})));break;case"gridicons-stats-down":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2zm0 16H5V5h14v14zM9 17H7V7h2v10zm4 0h-2v-7h2v7zm4 0h-2v-5h2v5z"})));break;case"gridicons-stats-up-alt":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M21 21H3v-2h18v2zM8 10H4v7h4v-7zm6-4h-4v11h4V6zm6-3h-4v14h4V3z"})));break;case"gridicons-stats-up":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2zm0 16H5V5h14v14zM9 17H7v-5h2v5zm4 0h-2v-7h2v7zm4 0h-2V7h2v10z"})));break;case"gridicons-stats":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zm0 16H5V5h14v14zM9 17H7v-5h2v5zm4 0h-2V7h2v10zm4 0h-2v-7h2v7z"})));break;case"gridicons-status":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zM7.55 13c-.02.166-.05.33-.05.5 0 2.485 2.015 4.5 4.5 4.5s4.5-2.015 4.5-4.5c0-.17-.032-.334-.05-.5h-8.9zM10 10V8c0-.552-.448-1-1-1s-1 .448-1 1v2c0 .552.448 1 1 1s1-.448 1-1zm6 0V8c0-.552-.448-1-1-1s-1 .448-1 1v2c0 .552.448 1 1 1s1-.448 1-1z"})));break;case"gridicons-strikethrough":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M14.348 12H21v2h-4.613c.24.515.368 1.094.368 1.748 0 1.317-.474 2.355-1.423 3.114-.947.76-2.266 1.138-3.956 1.138-1.557 0-2.934-.293-4.132-.878v-2.874c.985.44 1.818.75 2.5.928.682.18 1.306.27 1.872.27.68 0 1.2-.13 1.562-.39.363-.26.545-.644.545-1.158 0-.285-.08-.54-.24-.763-.16-.222-.394-.437-.704-.643-.18-.12-.483-.287-.88-.49H3v-2H14.347zm-3.528-2c-.073-.077-.143-.155-.193-.235-.126-.202-.19-.44-.19-.713 0-.44.157-.795.47-1.068.313-.273.762-.41 1.348-.41.492 0 .993.064 1.502.19.51.127 1.153.35 1.93.67l1-2.405c-.753-.327-1.473-.58-2.16-.76-.69-.18-1.414-.27-2.173-.27-1.544 0-2.753.37-3.628 1.108-.874.738-1.312 1.753-1.312 3.044 0 .302.036.58.088.848h3.318z"})));break;case"gridicons-sync":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M23.5 13.5l-3.086 3.086L19 18l-4.5-4.5 1.414-1.414L18 14.172V12c0-3.308-2.692-6-6-6V4c4.418 0 8 3.582 8 8v2.172l2.086-2.086L23.5 13.5zM6 12V9.828l2.086 2.086L9.5 10.5 5 6 3.586 7.414.5 10.5l1.414 1.414L4 9.828V12c0 4.418 3.582 8 8 8v-2c-3.308 0-6-2.692-6-6z"})));break;case"gridicons-tablet":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M18 2H6c-1.104 0-2 .896-2 2v16c0 1.104.896 2 2 2h12c1.104 0 2-.896 2-2V4c0-1.104-.896-2-2-2zm-5 19h-2v-1h2v1zm5-2H6V5h12v14z"})));break;case"gridicons-tag":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M20 2.007h-7.087c-.53 0-1.04.21-1.414.586L2.592 11.5c-.78.78-.78 2.046 0 2.827l7.086 7.086c.78.78 2.046.78 2.827 0l8.906-8.906c.376-.374.587-.883.587-1.413V4.007c0-1.105-.895-2-2-2zM17.007 9c-1.105 0-2-.895-2-2s.895-2 2-2 2 .895 2 2-.895 2-2 2z"})));break;case"gridicons-text-color":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M3 19h18v3H3v-3zM15.82 17h3.424L14 3h-4L4.756 17H8.18l1.067-3.5h5.506L15.82 17zm-1.952-6h-3.73l1.868-5.725L13.868 11z"})));break;case"gridicons-themes":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M4 6c-1.105 0-2 .895-2 2v12c0 1.1.9 2 2 2h12c1.105 0 2-.895 2-2H4V6zm16-4H8c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h12c1.105 0 2-.895 2-2V4c0-1.105-.895-2-2-2zm-5 14H8V9h7v7zm5 0h-3V9h3v7zm0-9H8V4h12v3z"})));break;case"gridicons-thumbs-up":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M6.7 22H2v-9h2l2.7 9zM20 9h-6V5c0-1.657-1.343-3-3-3h-1v4L7.1 9.625c-.712.89-1.1 1.996-1.1 3.135V14l2.1 7h8.337c1.836 0 3.435-1.25 3.88-3.03l1.622-6.485C22.254 10.223 21.3 9 20 9z"})));break;case"gridicons-time":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm3.8 13.4L13 11.667V7h-2v5.333l3.2 4.266 1.6-1.2z"})));break;case"gridicons-trash":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M6.187 8h11.625l-.695 11.125C17.05 20.18 16.177 21 15.12 21H8.88c-1.057 0-1.93-.82-1.997-1.875L6.187 8zM19 5v2H5V5h3V4c0-1.105.895-2 2-2h4c1.105 0 2 .895 2 2v1h3zm-9 0h4V4h-4v1z"})));break;case"gridicons-trophy":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M18 5.062V3H6v2.062H2V8c0 2.525 1.89 4.598 4.324 4.932.7 2.058 2.485 3.61 4.676 3.978V18c0 1.105-.895 2-2 2H8v2h8v-2h-1c-1.105 0-2-.895-2-2v-1.09c2.19-.368 3.976-1.92 4.676-3.978C20.11 12.598 22 10.525 22 8V5.062h-4zM4 8v-.938h2v3.766C4.836 10.416 4 9.304 4 8zm16 0c0 1.304-.836 2.416-2 2.83V7.06h2V8z"})));break;case"gridicons-types":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M22 17c0 2.76-2.24 5-5 5s-5-2.24-5-5 2.24-5 5-5 5 2.24 5 5zM6.5 6.5h3.8L7 1 1 11h5.5V6.5zm9.5 4.085V8H8v8h2.585c.433-2.783 2.632-4.982 5.415-5.415z"})));break;case"gridicons-underline":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M4 19v2h16v-2H4zM18 3v8c0 3.314-2.686 6-6 6s-6-2.686-6-6V3h3v8c0 1.654 1.346 3 3 3s3-1.346 3-3V3h3z"})));break;case"gridicons-undo":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M18.142 5.93C16.97 4.756 15.435 4.17 13.9 4.17s-3.072.586-4.244 1.757L6 9.585V6H4v7h7v-2H7.414l3.657-3.657c.756-.755 1.76-1.172 2.83-1.172 1.067 0 2.072.417 2.827 1.173 1.56 1.56 1.56 4.097 0 5.657l-5.364 5.364 1.414 1.414 5.364-5.364c2.345-2.343 2.345-6.142.002-8.485z"})));break;case"gridicons-user-add":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("circle",{cx:"15",cy:"8",r:"4"}),o.default.createElement("path",{d:"M15 20s8 0 8-2c0-2.4-3.9-5-8-5s-8 2.6-8 5c0 2 8 2 8 2zM6 10V7H4v3H1v2h3v3h2v-3h3v-2z"})));break;case"gridicons-user-circle":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm0 18.5c-4.694 0-8.5-3.806-8.5-8.5S7.306 3.5 12 3.5s8.5 3.806 8.5 8.5-3.806 8.5-8.5 8.5zm0-8c-3.038 0-5.5 1.728-5.5 3.5s2.462 3.5 5.5 3.5 5.5-1.728 5.5-3.5-2.462-3.5-5.5-3.5zm0-.5c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3z"})));break;case"gridicons-user":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 4c2.21 0 4 1.79 4 4s-1.79 4-4 4-4-1.79-4-4 1.79-4 4-4zm0 16s8 0 8-2c0-2.4-3.9-5-8-5s-8 2.6-8 5c0 2 8 2 8 2z"})));break;case"gridicons-video-camera":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M17 9V7c0-1.105-.895-2-2-2H4c-1.105 0-2 .895-2 2v10c0 1.105.895 2 2 2h11c1.105 0 2-.895 2-2v-2l5 4V5l-5 4z"})));break;case"gridicons-video-remove":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M19.42 4.59l1.167-1.167L22 4.837 20 6.84V18c0 1.105-.895 2-2 2v-2h-2v2H6.84l-2.007 2.006-1.414-1.414 1.17-1.172-.01-.01L8 16 18 6l1.41-1.42.01.01zM15.84 11H18V8.84L15.84 11zM16 8.01l.01-.01H16v.01zM6 15.17l-2 2V6c0-1.105.895-2 2-2v2h2V4h9.17l-9 9H6v2.17zM6 8v3h2V8H6zm12 8v-3h-2v3h2z"})));break;case"gridicons-video":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M8 4h8v1.997h2V4c1.105 0 2 .896 2 2v12c0 1.104-.895 2-2 2v-2.003h-2V20H8v-2.003H6V20c-1.105 0-2-.895-2-2V6c0-1.105.895-2 2-2v1.997h2V4zm2 11l4.5-3L10 9v6zm8 .997v-3h-2v3h2zm0-5v-3h-2v3h2zm-10 5v-3H6v3h2zm0-5v-3H6v3h2z"})));break;case"gridicons-visible":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 6C5.188 6 1 12 1 12s4.188 6 11 6 11-6 11-6-4.188-6-11-6zm0 10c-3.943 0-6.926-2.484-8.38-4 1.04-1.085 2.863-2.657 5.255-3.47C8.335 9.214 8 10.064 8 11c0 2.21 1.79 4 4 4s4-1.79 4-4c0-.937-.335-1.787-.875-2.47 2.393.813 4.216 2.386 5.254 3.47-1.456 1.518-4.438 4-8.38 4z"})));break;case"gridicons-zoom-in":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M15.8 13.8c.7-1.1 1.2-2.4 1.2-3.8 0-3.9-3.1-7-7-7s-7 3.1-7 7 3.1 7 7 7c1.4 0 2.7-.4 3.8-1.2L19 21l2-2-5.2-5.2zM10 15c-2.8 0-5-2.2-5-5s2.2-5 5-5 5 2.2 5 5-2.2 5-5 5z"}),o.default.createElement("path",{d:"M11 7H9v2H7v2h2v2h2v-2h2V9h-2"})));break;case"gridicons-zoom-out":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M3 10c0 3.9 3.1 7 7 7 1.4 0 2.7-.5 3.8-1.2L19 21l2-2-5.2-5.2c.8-1.1 1.2-2.4 1.2-3.8 0-3.9-3.1-7-7-7s-7 3.1-7 7zm2 0c0-2.8 2.2-5 5-5s5 2.2 5 5-2.2 5-5 5-5-2.2-5-5z"}),o.default.createElement("path",{d:"M7 9h6v2H7z"})))}return v}}]),t}();v.defaultProps={size:24},v.propTypes={icon:s.default.string.isRequired,size:s.default.number,onClick:s.default.func,className:s.default.string},t.default=v,e.exports=t.default},function(e,t,c){"use strict";var a=c(0),n=(c(29),["primary","light","warning","alert"]);t.a=function(e){var t=e.message,c=e.type,r=e.isCompact,o=["chip","chip-".concat(n.find(function(e){return e===c})||"primary"),r?"is-compact":""];return Object(a.createElement)("span",{className:o.join(" ").trim()},t)}},function(e,t){function c(){return e.exports=c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var c=arguments[t];for(var a in c)Object.prototype.hasOwnProperty.call(c,a)&&(e[a]=c[a])}return e},c.apply(this,arguments)}e.exports=c},,function(e,t){!function(){e.exports=this.wp.apiFetch}()},function(e,t){!function(){e.exports=this.wp.dom}()},function(e,t){!function(){e.exports=this.wp.keycodes}()},function(e,t,c){var a=c(51);e.exports=function(e,t){if(null==e)return{};var c,n,r=a(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)c=o[n],t.indexOf(c)>=0||Object.prototype.propertyIsEnumerable.call(e,c)&&(r[c]=e[c])}return r}},function(e,t){!function(){e.exports=this.wp.htmlEntities}()},function(e,t){function c(e,t,c,a,n,r,o){try{var s=e[r](o),i=s.value}catch(e){return void c(e)}s.done?t(i):Promise.resolve(i).then(a,n)}e.exports=function(e){return function(){var t=this,a=arguments;return new Promise(function(n,r){var o=e.apply(t,a);function s(e){c(o,n,r,s,i,"next",e)}function i(e){c(o,n,r,s,i,"throw",e)}s(void 0)})}}},,function(e,t,c){},function(e,t){function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(t){return"function"==typeof Symbol&&"symbol"===c(Symbol.iterator)?e.exports=a=function(e){return c(e)}:e.exports=a=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":c(e)},a(t)}e.exports=a},,,function(e,t,c){"use strict";function a(e){return function(){return e}}var n=function(){};n.thatReturns=a,n.thatReturnsFalse=a(!1),n.thatReturnsTrue=a(!0),n.thatReturnsNull=a(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(e){return e},e.exports=n},function(e,t,c){},function(e,t){!function(){e.exports=this.wp.hooks}()},function(e,t){!function(){e.exports=this.wp.deprecated}()},function(e,t,c){(function(e){var a=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),c={},a=0;a<t.length;a++)c[t[a]]=Object.getOwnPropertyDescriptor(e,t[a]);return c},n=/%[sdj%]/g;t.format=function(e){if(!g(e)){for(var t=[],c=0;c<arguments.length;c++)t.push(s(arguments[c]));return t.join(" ")}c=1;for(var a=arguments,r=a.length,o=String(e).replace(n,function(e){if("%%"===e)return"%";if(c>=r)return e;switch(e){case"%s":return String(a[c++]);case"%d":return Number(a[c++]);case"%j":try{return JSON.stringify(a[c++])}catch(e){return"[Circular]"}default:return e}}),i=a[c];c<r;i=a[++c])p(i)||!y(i)?o+=" "+i:o+=" "+s(i);return o},t.deprecate=function(c,a){if(void 0!==e&&!0===e.noDeprecation)return c;if(void 0===e)return function(){return t.deprecate(c,a).apply(this,arguments)};var n=!1;return function(){if(!n){if(e.throwDeprecation)throw new Error(a);e.traceDeprecation?console.trace(a):console.error(a),n=!0}return c.apply(this,arguments)}};var r,o={};function s(e,c){var a={seen:[],stylize:l};return arguments.length>=3&&(a.depth=arguments[2]),arguments.length>=4&&(a.colors=arguments[3]),v(c)?a.showHidden=c:c&&t._extend(a,c),w(a.showHidden)&&(a.showHidden=!1),w(a.depth)&&(a.depth=2),w(a.colors)&&(a.colors=!1),w(a.customInspect)&&(a.customInspect=!0),a.colors&&(a.stylize=i),m(a,e,a.depth)}function i(e,t){var c=s.styles[t];return c?"["+s.colors[c][0]+"m"+e+"["+s.colors[c][1]+"m":e}function l(e,t){return e}function m(e,c,a){if(e.customInspect&&c&&E(c.inspect)&&c.inspect!==t.inspect&&(!c.constructor||c.constructor.prototype!==c)){var n=c.inspect(a,e);return g(n)||(n=m(e,n,a)),n}var r=function(e,t){if(w(t))return e.stylize("undefined","undefined");if(g(t)){var c="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(c,"string")}if(f(t))return e.stylize(""+t,"number");if(v(t))return e.stylize(""+t,"boolean");if(p(t))return e.stylize("null","null")}(e,c);if(r)return r;var o=Object.keys(c),s=function(e){var t={};return e.forEach(function(e,c){t[e]=!0}),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(c)),_(c)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return u(c);if(0===o.length){if(E(c)){var i=c.name?": "+c.name:"";return e.stylize("[Function"+i+"]","special")}if(b(c))return e.stylize(RegExp.prototype.toString.call(c),"regexp");if(z(c))return e.stylize(Date.prototype.toString.call(c),"date");if(_(c))return u(c)}var l,y="",O=!1,k=["{","}"];(d(c)&&(O=!0,k=["[","]"]),E(c))&&(y=" [Function"+(c.name?": "+c.name:"")+"]");return b(c)&&(y=" "+RegExp.prototype.toString.call(c)),z(c)&&(y=" "+Date.prototype.toUTCString.call(c)),_(c)&&(y=" "+u(c)),0!==o.length||O&&0!=c.length?a<0?b(c)?e.stylize(RegExp.prototype.toString.call(c),"regexp"):e.stylize("[Object]","special"):(e.seen.push(c),l=O?function(e,t,c,a,n){for(var r=[],o=0,s=t.length;o<s;++o)M(t,String(o))?r.push(h(e,t,c,a,String(o),!0)):r.push("");return n.forEach(function(n){n.match(/^\d+$/)||r.push(h(e,t,c,a,n,!0))}),r}(e,c,a,s,o):o.map(function(t){return h(e,c,a,s,t,O)}),e.seen.pop(),function(e,t,c){if(e.reduce(function(e,t){return 0,t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60)return c[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+c[1];return c[0]+t+" "+e.join(", ")+" "+c[1]}(l,y,k)):k[0]+y+k[1]}function u(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,c,a,n,r){var o,s,i;if((i=Object.getOwnPropertyDescriptor(t,n)||{value:t[n]}).get?s=i.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):i.set&&(s=e.stylize("[Setter]","special")),M(a,n)||(o="["+n+"]"),s||(e.seen.indexOf(i.value)<0?(s=p(c)?m(e,i.value,null):m(e,i.value,c-1)).indexOf("\n")>-1&&(s=r?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),w(o)){if(r&&n.match(/^\d+$/))return s;(o=JSON.stringify(""+n)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function d(e){return Array.isArray(e)}function v(e){return"boolean"==typeof e}function p(e){return null===e}function f(e){return"number"==typeof e}function g(e){return"string"==typeof e}function w(e){return void 0===e}function b(e){return y(e)&&"[object RegExp]"===O(e)}function y(e){return"object"==typeof e&&null!==e}function z(e){return y(e)&&"[object Date]"===O(e)}function _(e){return y(e)&&("[object Error]"===O(e)||e instanceof Error)}function E(e){return"function"==typeof e}function O(e){return Object.prototype.toString.call(e)}function k(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(c){if(w(r)&&(r=e.env.NODE_DEBUG||""),c=c.toUpperCase(),!o[c])if(new RegExp("\\b"+c+"\\b","i").test(r)){var a=e.pid;o[c]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",c,a,e)}}else o[c]=function(){};return o[c]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=d,t.isBoolean=v,t.isNull=p,t.isNullOrUndefined=function(e){return null==e},t.isNumber=f,t.isString=g,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=w,t.isRegExp=b,t.isObject=y,t.isDate=z,t.isError=_,t.isFunction=E,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=c(54);var j=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function H(){var e=new Date,t=[k(e.getHours()),k(e.getMinutes()),k(e.getSeconds())].join(":");return[e.getDate(),j[e.getMonth()],t].join(" ")}function M(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",H(),t.format.apply(t,arguments))},t.inherits=c(55),t._extend=function(e,t){if(!t||!y(t))return e;for(var c=Object.keys(t),a=c.length;a--;)e[c[a]]=t[c[a]];return e};var V="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function x(e,t){if(!e){var c=new Error("Promise was rejected with a falsy value");c.reason=e,e=c}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(V&&e[V]){var t;if("function"!=typeof(t=e[V]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,V,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,c,a=new Promise(function(e,a){t=e,c=a}),n=[],r=0;r<arguments.length;r++)n.push(arguments[r]);n.push(function(e,a){e?c(e):t(a)});try{e.apply(this,n)}catch(e){c(e)}return a}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),V&&Object.defineProperty(t,V,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,a(e))},t.promisify.custom=V,t.callbackify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');function c(){for(var c=[],a=0;a<arguments.length;a++)c.push(arguments[a]);var n=c.pop();if("function"!=typeof n)throw new TypeError("The last argument must be of type Function");var r=this,o=function(){return n.apply(r,arguments)};t.apply(this,c).then(function(t){e.nextTick(o,null,t)},function(t){e.nextTick(x,t,o)})}return Object.setPrototypeOf(c,Object.getPrototypeOf(t)),Object.defineProperties(c,a(t)),c}}).call(this,c(53))},function(e,t,c){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n=s(c(13)),r=s(c(57)),o=s(c(60));function s(e){return e&&e.__esModule?e:{default:e}}var i=void 0;function l(e,t){var c,o,s,m,u,h,d,v,p=[],f={};for(h=0;h<e.length;h++)if("string"!==(u=e[h]).type){if(!t.hasOwnProperty(u.value)||void 0===t[u.value])throw new Error("Invalid interpolation, missing component node: `"+u.value+"`");if("object"!==a(t[u.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+u.value+"`","\n> "+i);if("componentClose"===u.type)throw new Error("Missing opening component token: `"+u.value+"`");if("componentOpen"===u.type){c=t[u.value],s=h;break}p.push(t[u.value])}else p.push(u.value);return c&&(m=function(e,t){var c,a,n=t[e],r=0;for(a=e+1;a<t.length;a++)if((c=t[a]).value===n.value){if("componentOpen"===c.type){r++;continue}if("componentClose"===c.type){if(0===r)return a;r--}}throw new Error("Missing closing component token `"+n.value+"`")}(s,e),d=l(e.slice(s+1,m),t),o=n.default.cloneElement(c,{},d),p.push(o),m<e.length-1&&(v=l(e.slice(m+1),t),p=p.concat(v))),1===p.length?p[0]:(p.forEach(function(e,t){e&&(f["interpolation-child-"+t]=e)}),(0,r.default)(f))}t.default=function(e){var t=e.mixedString,c=e.components,n=e.throwErrors;if(i=t,!c)return t;if("object"!==(void 0===c?"undefined":a(c))){if(n)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var r=(0,o.default)(t);try{return l(r,c)}catch(e){if(n)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+e.message+"`");return t}}},,,function(e,t,c){},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){var c=[],a=!0,n=!1,r=void 0;try{for(var o,s=e[Symbol.iterator]();!(a=(o=s.next()).done)&&(c.push(o.value),!t||c.length!==t);a=!0);}catch(e){n=!0,r=e}finally{try{a||null==s.return||s.return()}finally{if(n)throw r}}return c}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t,c){},function(e,t,c){},function(e,t,c){e.exports=c(48)()},function(e,t,c){"use strict";var a=c(49);function n(){}function r(){}r.resetWarningCache=n,e.exports=function(){function e(e,t,c,n,r,o){if(o!==a){var s=new Error("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");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var c={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:r,resetWarningCache:n};return c.PropTypes=c,c}},function(e,t,c){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,c){},function(e,t){e.exports=function(e,t){if(null==e)return{};var c,a,n={},r=Object.keys(e);for(a=0;a<r.length;a++)c=r[a],t.indexOf(c)>=0||(n[c]=e[c]);return n}},function(e,t,c){},function(e,t){var c,a,n=e.exports={};function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(c===setTimeout)return setTimeout(e,0);if((c===r||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}!function(){try{c="function"==typeof setTimeout?setTimeout:r}catch(e){c=r}try{a="function"==typeof clearTimeout?clearTimeout:o}catch(e){a=o}}();var i,l=[],m=!1,u=-1;function h(){m&&i&&(m=!1,i.length?l=i.concat(l):u=-1,l.length&&d())}function d(){if(!m){var e=s(h);m=!0;for(var t=l.length;t;){for(i=l,l=[];++u<t;)i&&i[u].run();u=-1,t=l.length}i=null,m=!1,function(e){if(a===clearTimeout)return clearTimeout(e);if((a===o||!a)&&clearTimeout)return a=clearTimeout,clearTimeout(e);try{a(e)}catch(t){try{return a.call(null,e)}catch(t){return a.call(this,e)}}}(e)}}function v(e,t){this.fun=e,this.array=t}function p(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var c=1;c<arguments.length;c++)t[c-1]=arguments[c];l.push(new v(e,t)),1!==l.length||m||s(d)},v.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=p,n.addListener=p,n.once=p,n.off=p,n.removeListener=p,n.removeAllListeners=p,n.emit=p,n.prependListener=p,n.prependOnceListener=p,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},function(e,t){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var c=function(){};c.prototype=t.prototype,e.prototype=new c,e.prototype.constructor=e}},function(e,t,c){},function(e,t,c){"use strict";var a=c(13),n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,r=c(33),o=c(58),s=c(59),i=".",l=":",m="function"==typeof Symbol&&Symbol.iterator,u="@@iterator";function h(e,t){return e&&"object"==typeof e&&null!=e.key?(c=e.key,a={"=":"=0",":":"=2"},"$"+(""+c).replace(/[=:]/g,function(e){return a[e]})):t.toString(36);var c,a}function d(e,t,c,a){var r,s=typeof e;if("undefined"!==s&&"boolean"!==s||(e=null),null===e||"string"===s||"number"===s||"object"===s&&e.$$typeof===n)return c(a,e,""===t?i+h(e,0):t),1;var v=0,p=""===t?i:t+l;if(Array.isArray(e))for(var f=0;f<e.length;f++)v+=d(r=e[f],p+h(r,f),c,a);else{var g=function(e){var t=e&&(m&&e[m]||e[u]);if("function"==typeof t)return t}(e);if(g){0;for(var w,b=g.call(e),y=0;!(w=b.next()).done;)v+=d(r=w.value,p+h(r,y++),c,a)}else if("object"===s){0;var z=""+e;o(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===z?"object with keys {"+Object.keys(e).join(", ")+"}":z,"")}}return v}var v=/\/+/g;function p(e){return(""+e).replace(v,"$&/")}var f,g,w=b,b=function(e){if(this.instancePool.length){var t=this.instancePool.pop();return this.call(t,e),t}return new this(e)},y=function(e){o(e instanceof this,"Trying to release an instance into a pool of a different type."),e.destructor(),this.instancePool.length<this.poolSize&&this.instancePool.push(e)};function z(e,t,c,a){this.result=e,this.keyPrefix=t,this.func=c,this.context=a,this.count=0}function _(e,t,c){var n,o,s=e.result,i=e.keyPrefix,l=e.func,m=e.context,u=l.call(m,t,e.count++);Array.isArray(u)?E(u,s,c,r.thatReturnsArgument):null!=u&&(a.isValidElement(u)&&(n=u,o=i+(!u.key||t&&t.key===u.key?"":p(u.key)+"/")+c,u=a.cloneElement(n,{key:o},void 0!==n.props?n.props.children:void 0)),s.push(u))}function E(e,t,c,a,n){var r="";null!=c&&(r=p(c)+"/");var o=z.getPooled(t,r,a,n);!function(e,t,c){null==e||d(e,"",t,c)}(e,_,o),z.release(o)}z.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},f=function(e,t,c,a){if(this.instancePool.length){var n=this.instancePool.pop();return this.call(n,e,t,c,a),n}return new this(e,t,c,a)},(g=z).instancePool=[],g.getPooled=f||w,g.poolSize||(g.poolSize=10),g.release=y;e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return s(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(a.isValidElement(e))return s(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;o(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var c in e)E(e[c],t,c,r.thatReturnsArgument);return t}},function(e,t,c){"use strict";var a=function(e){};e.exports=function(e,t,c,n,r,o,s,i){if(a(t),!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var m=[c,n,r,o,s,i],u=0;(l=new Error(t.replace(/%s/g,function(){return m[u++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}},function(e,t,c){"use strict";var a=c(33);e.exports=a},function(e,t,c){"use strict";function a(e){return e.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(a)}},function(e,t,c){},function(e,t,c){},function(e,t,c){},function(e,t,c){},function(e,t,c){},function(e,t,c){},function(e,t,c){},,function(e,t,c){"use strict";c.r(t);var a={};c.r(a),c.d(a,"getDeposit",function(){return nt}),c.d(a,"getDepositsOverview",function(){return rt}),c.d(a,"getDepositsOverviewError",function(){return ot}),c.d(a,"getDeposits",function(){return it}),c.d(a,"getDepositQueryError",function(){return lt});var n={};c.r(n),c.d(n,"updateDeposit",function(){return mt}),c.d(n,"updateDepositsOverview",function(){return ut}),c.d(n,"updateErrorForDepositsOverview",function(){return ht}),c.d(n,"updateDeposits",function(){return dt}),c.d(n,"updateErrorForDepositQuery",function(){return vt});var r={};c.r(r),c.d(r,"getDeposit",function(){return _t}),c.d(r,"getDepositsOverview",function(){return Et}),c.d(r,"getDeposits",function(){return Ot});var o={};c.r(o),c.d(o,"getTransactions",function(){return xt}),c.d(o,"getTransactionsError",function(){return Ct}),c.d(o,"getTransactionsSummary",function(){return St}),c.d(o,"getTransactionsSummaryError",function(){return Nt});var s={};c.r(s),c.d(s,"updateTransactions",function(){return Tt}),c.d(s,"updateErrorForTransactions",function(){return Bt}),c.d(s,"updateTransactionsSummary",function(){return Rt}),c.d(s,"updateErrorForTransactionsSummary",function(){return It});var i={};c.r(i),c.d(i,"getTransactions",function(){return Ut}),c.d(i,"getTransactionsSummary",function(){return Wt});var l={};c.r(l),c.d(l,"getCharge",function(){return Zt}),c.d(l,"getChargeError",function(){return $t});var m={};c.r(m),c.d(m,"updateCharge",function(){return Gt}),c.d(m,"updateErrorForCharge",function(){return Jt});var u={};c.r(u),c.d(u,"getCharge",function(){return Xt});var h={};c.r(h),c.d(h,"getTimeline",function(){return cc}),c.d(h,"getTimelineError",function(){return ac});var d={};c.r(d),c.d(d,"updateTimeline",function(){return nc}),c.d(d,"updateErrorForTimeline",function(){return rc});var v={};c.r(v),c.d(v,"getTimeline",function(){return sc});var p={};c.r(p),c.d(p,"getDispute",function(){return hc}),c.d(p,"getDisputes",function(){return dc});var f={};c.r(f),c.d(f,"updateDispute",function(){return fc}),c.d(f,"updateDisputes",function(){return gc}),c.d(f,"acceptDispute",function(){return wc});var g={};c.r(g),c.d(g,"getDispute",function(){return zc}),c.d(g,"getDisputes",function(){return _c});var w=c(1),b=c(35),y=(c(41),c(17)),z=c.n(y),_=c(0),E=c(2),O=c(3),k=c(15),j=c.n(k);function H(e,t,c){return t in e?Object.defineProperty(e,t,{value:c,enumerable:!0,configurable:!0,writable:!0}):e[t]=c,e}function M(e){for(var t=1;t<arguments.length;t++){var c=null!=arguments[t]?arguments[t]:{},a=Object.keys(c);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(c).filter(function(e){return Object.getOwnPropertyDescriptor(c,e).enumerable}))),a.forEach(function(t){H(e,t,c[t])})}return e}function V(e,t){if(null==e)return{};var c,a,n=function(e,t){if(null==e)return{};var c,a,n={},r=Object.keys(e);for(a=0;a<r.length;a++)c=r[a],t.indexOf(c)>=0||(n[c]=e[c]);return n}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a<r.length;a++)c=r[a],t.indexOf(c)>=0||Object.prototype.propertyIsEnumerable.call(e,c)&&(n[c]=e[c])}return n}var x=Object(_.forwardRef)(function(e,t){var c=e.href,a=e.target,n=e.isPrimary,r=e.isLarge,o=e.isSmall,s=e.isTertiary,i=e.isToggled,l=e.isBusy,m=e.isDefault,u=e.isLink,h=e.isDestructive,d=e.className,v=e.disabled,p=V(e,["href","target","isPrimary","isLarge","isSmall","isTertiary","isToggled","isBusy","isDefault","isLink","isDestructive","className","disabled"]),f=j()("components-button",d,{"is-button":m||n||r||o,"is-default":m||!n&&(r||o),"is-primary":n,"is-large":r,"is-small":o,"is-tertiary":s,"is-toggled":i,"is-busy":l,"is-link":u,"is-destructive":h}),g=void 0===c||v?"button":"a",w="a"===g?{href:c,target:a}:{type:"button",disabled:v};return Object(_.createElement)(g,M({},w,p,{className:f,ref:t}))});function C(){return(C=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var c=arguments[t];for(var a in c)Object.prototype.hasOwnProperty.call(c,a)&&(e[a]=c[a])}return e}).apply(this,arguments)}function L(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S(e,t){for(var c=0;c<t.length;c++){var a=t[c];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function N(e,t,c){return t&&S(e.prototype,t),c&&S(e,c),e}function T(e){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function B(e){return(B="function"==typeof Symbol&&"symbol"===T(Symbol.iterator)?function(e){return T(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":T(e)})(e)}function R(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function I(e,t){return!t||"object"!==B(t)&&"function"!=typeof t?R(e):t}function D(e){return(D=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function A(e,t){return(A=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function P(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&A(e,t)}function F(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var c=[],a=!0,n=!1,r=void 0;try{for(var o,s=e[Symbol.iterator]();!(a=(o=s.next()).done)&&(c.push(o.value),!t||c.length!==t);a=!0);}catch(e){n=!0,r=e}finally{try{a||null==s.return||s.return()}finally{if(n)throw r}}return c}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var q=c(23),U=c(24),W=c(36),Q=c.n(W),Y=c(16),Z=10,$=function(){return"rtl"===document.documentElement.dir};function G(e,t){var c=F((arguments.length>2&&void 0!==arguments[2]?arguments[2]:"top").split(" "),2),a=c[0],n=c[1],r=void 0===n?"center":n,o=function(e,t,c){var a,n=t.height,r=e.top+e.height/2,o={popoverTop:r,contentHeight:(r-n/2>0?n/2:r)+(r+n/2>window.innerHeight?window.innerHeight-r:n/2)},s={popoverTop:e.top,contentHeight:e.top-Z-n>0?n:e.top-Z},i={popoverTop:e.bottom,contentHeight:e.bottom+Z+n>window.innerHeight?window.innerHeight-Z-e.bottom:n},l=null;if("middle"===c&&o.contentHeight===n)a="middle";else if("top"===c&&s.contentHeight===n)a="top";else if("bottom"===c&&i.contentHeight===n)a="bottom";else{var m="top"==(a=s.contentHeight>i.contentHeight?"top":"bottom")?s.contentHeight:i.contentHeight;l=m!==n?m:null}return{yAxis:a,popoverTop:"middle"===a?o.popoverTop:"top"===a?s.popoverTop:i.popoverTop,contentHeight:l}}(e,t,a);return M({},function(e,t,c,a){var n=t.width;"left"===c&&$()?c="right":"right"===c&&$()&&(c="left");var r,o=Math.round(e.left+e.width/2),s={popoverLeft:o,contentWidth:(o-n/2>0?n/2:o)+(o+n/2>window.innerWidth?window.innerWidth-o:n/2)},i="middle"===a?e.left:o,l={popoverLeft:i,contentWidth:i-n>0?n:i},m="middle"===a?e.right:o,u={popoverLeft:m,contentWidth:m+n>window.innerWidth?window.innerWidth-m:n},h=null;if("center"===c&&s.contentWidth===n)r="center";else if("left"===c&&l.contentWidth===n)r="left";else if("right"===c&&u.contentWidth===n)r="right";else{var d="left"==(r=l.contentWidth>u.contentWidth?"left":"right")?l.contentWidth:u.contentWidth;h=d!==n?d:null}return{xAxis:r,popoverLeft:"center"===r?s.popoverLeft:"left"===r?l.popoverLeft:u.popoverLeft,contentWidth:h}}(e,t,r,o.yAxis),o)}function J(e){return function(e){if(Array.isArray(e)){for(var t=0,c=new Array(e.length);t<e.length;t++)c[t]=e[t];return c}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var K=Object(_.createContext)({focusHistory:[]}),X=K.Provider,ee=K.Consumer;X.displayName="FocusReturnProvider",ee.displayName="FocusReturnConsumer";var te=Object(Y.createHigherOrderComponent)(function e(t){if((a=t)instanceof _.Component||"function"==typeof a){var c=t;return e({})(c)}var a,n=t.onFocusReturn,r=void 0===n?O.stubTrue:n;return function(e){var t=function(t){function c(){var e;return L(this,c),(e=I(this,D(c).apply(this,arguments))).ownFocusedElements=new Set,e.activeElementOnMount=document.activeElement,e.setIsFocusedFalse=function(){return e.isFocused=!1},e.setIsFocusedTrue=function(t){e.ownFocusedElements.add(t.target),e.isFocused=!0},e}return P(c,_.Component),N(c,[{key:"componentWillUnmount",value:function(){var e=this.activeElementOnMount,t=this.isFocused,c=this.ownFocusedElements;if(t&&!1!==r())for(var a,n=[].concat(J(O.without.apply(void 0,[this.props.focus.focusHistory].concat(J(c)))),[e]);a=n.pop();)if(document.body.contains(a))return void a.focus()}},{key:"render",value:function(){return Object(_.createElement)("div",{onFocus:this.setIsFocusedTrue,onBlur:this.setIsFocusedFalse},Object(_.createElement)(e,this.props.childProps))}}]),c}();return function(e){return Object(_.createElement)(ee,null,function(c){return Object(_.createElement)(t,{childProps:e,focus:c})})}}},"withFocusReturn"),ce=Object(Y.createHigherOrderComponent)(function(e){return function(t){function c(){var e;return L(this,c),(e=I(this,D(c).apply(this,arguments))).focusContainRef=Object(_.createRef)(),e.handleTabBehaviour=e.handleTabBehaviour.bind(R(e)),e}return P(c,_["Component"]),N(c,[{key:"handleTabBehaviour",value:function(e){if(e.keyCode===U.TAB){var t=q.focus.tabbable.find(this.focusContainRef.current);if(t.length){var c=t[0],a=t[t.length-1];e.shiftKey&&e.target===c?(e.preventDefault(),a.focus()):(e.shiftKey||e.target!==a)&&t.includes(e.target)||(e.preventDefault(),c.focus())}}}},{key:"render",value:function(){return Object(_.createElement)("div",{onKeyDown:this.handleTabBehaviour,ref:this.focusContainRef,tabIndex:"-1"},Object(_.createElement)(e,this.props))}}]),c}()},"withConstrainedTabbing"),ae=["button","submit"];var ne=Object(Y.createHigherOrderComponent)(function(e){return function(t){function c(){var e;return L(this,c),(e=I(this,D(c).apply(this,arguments))).bindNode=e.bindNode.bind(R(e)),e.cancelBlurCheck=e.cancelBlurCheck.bind(R(e)),e.queueBlurCheck=e.queueBlurCheck.bind(R(e)),e.normalizeButtonFocus=e.normalizeButtonFocus.bind(R(e)),e}return P(c,_["Component"]),N(c,[{key:"componentWillUnmount",value:function(){this.cancelBlurCheck()}},{key:"bindNode",value:function(e){e?this.node=e:(delete this.node,this.cancelBlurCheck())}},{key:"queueBlurCheck",value:function(e){var t=this;e.persist(),this.preventBlurCheck||(this.blurCheckTimeout=setTimeout(function(){document.hasFocus()?"function"==typeof t.node.handleFocusOutside&&t.node.handleFocusOutside(e):e.preventDefault()},0))}},{key:"cancelBlurCheck",value:function(){clearTimeout(this.blurCheckTimeout)}},{key:"normalizeButtonFocus",value:function(e){var t=e.type,c=e.target;Object(O.includes)(["mouseup","touchend"],t)?this.preventBlurCheck=!1:function(e){switch(e.nodeName){case"A":case"BUTTON":return!0;case"INPUT":return Object(O.includes)(ae,e.type)}return!1}(c)&&(this.preventBlurCheck=!0)}},{key:"render",value:function(){return Object(_.createElement)("div",{onFocus:this.cancelBlurCheck,onMouseDown:this.normalizeButtonFocus,onMouseUp:this.normalizeButtonFocus,onTouchStart:this.normalizeButtonFocus,onTouchEnd:this.normalizeButtonFocus,onBlur:this.queueBlurCheck},Object(_.createElement)(e,C({ref:this.bindNode},this.props)))}}]),c}()},"withFocusOutside")(function(e){function t(){return L(this,t),I(this,D(t).apply(this,arguments))}return P(t,_["Component"]),N(t,[{key:"handleFocusOutside",value:function(e){this.props.onFocusOutside(e)}},{key:"render",value:function(){return this.props.children}}]),t}());var re=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.htmlDocument,c=void 0===t?document:t,a=e.className,n=void 0===a?"lockscroll":a,r=0,o=0;function s(e){var t=c.scrollingElement||c.body;e&&(o=t.scrollTop);var a=e?"add":"remove";t.classList[a](n),c.documentElement.classList[a](n),e||(t.scrollTop=o)}return function(e){function t(){return L(this,t),I(this,D(t).apply(this,arguments))}return P(t,_.Component),N(t,[{key:"componentDidMount",value:function(){0===r&&s(!0),++r}},{key:"componentWillUnmount",value:function(){1===r&&s(!1),--r}},{key:"render",value:function(){return null}}]),t}()}();function oe(e){e.stopPropagation()}var se=Object(_.forwardRef)(function(e,t){var c=e.children,a=V(e,["children"]);return Object(_.createElement)("div",C({},a,{ref:t,onMouseDown:oe}),c)}),ie=Object(_.createContext)({registerSlot:function(){},unregisterSlot:function(){},registerFill:function(){},unregisterFill:function(){},getSlot:function(){},getFills:function(){},subscribe:function(){}}),le=(ie.Provider,ie.Consumer),me=function(e){var t=Object(_.useContext)(ie),c=t.getSlot,a=t.subscribe,n=F(Object(_.useState)(c(e)),2),r=n[0],o=n[1];return Object(_.useEffect)(function(){return o(c(e)),a(function(){o(c(e))})},[e]),r},ue=0;function he(e){var t=e.name,c=e.children,a=e.registerFill,n=e.unregisterFill,r=me(t),o=Object(_.useRef)({name:t,children:c});return o.current.occurrence||(o.current.occurrence=++ue),Object(_.useLayoutEffect)(function(){return a(t,o.current),function(){return n(t,o.current)}},[]),Object(_.useLayoutEffect)(function(){o.current.children=c,r&&!r.props.bubblesVirtually&&r.forceUpdate()},[c]),Object(_.useLayoutEffect)(function(){t!==o.current.name&&(n(o.current.name,o.current),o.current.name=t,a(t,o.current))},[t]),r&&r.node&&r.props.bubblesVirtually?(Object(O.isFunction)(c)&&(c=c(r.props.fillProps)),Object(_.createPortal)(c,r.node)):null}var de=function(e){return Object(_.createElement)(le,null,function(t){var c=t.registerFill,a=t.unregisterFill;return Object(_.createElement)(he,C({},e,{registerFill:c,unregisterFill:a}))})},ve=function(e){function t(){var e;return L(this,t),(e=I(this,D(t).apply(this,arguments))).bindNode=e.bindNode.bind(R(e)),e}return P(t,_["Component"]),N(t,[{key:"componentDidMount",value:function(){(0,this.props.registerSlot)(this.props.name,this)}},{key:"componentWillUnmount",value:function(){(0,this.props.unregisterSlot)(this.props.name,this)}},{key:"componentDidUpdate",value:function(e){var t=this.props,c=t.name,a=t.unregisterSlot,n=t.registerSlot;e.name!==c&&(a(e.name),n(c,this))}},{key:"bindNode",value:function(e){this.node=e}},{key:"render",value:function(){var e=this.props,t=e.children,c=e.name,a=e.bubblesVirtually,n=void 0!==a&&a,r=e.fillProps,o=void 0===r?{}:r,s=e.getFills,i=e.className;if(n)return Object(_.createElement)("div",{ref:this.bindNode,className:i});var l=Object(O.map)(s(c,this),function(e){var t=e.occurrence,c=Object(O.isFunction)(e.children)?e.children(o):e.children;return _.Children.map(c,function(e,c){if(!e||Object(O.isString)(e))return e;var a="".concat(t,"---").concat(e.key||c);return Object(_.cloneElement)(e,{key:a})})}).filter(Object(O.negate)(_.isEmptyElement));return Object(_.createElement)(_.Fragment,null,Object(O.isFunction)(t)?t(l):l)}}]),t}(),pe=function(e){return Object(_.createElement)(le,null,function(t){var c=t.registerSlot,a=t.unregisterSlot,n=t.getFills;return Object(_.createElement)(ve,C({},e,{registerSlot:c,unregisterSlot:a,getFills:n}))})};var fe=function(e){var t=e.type,c=e.options,a=void 0===c?{}:c,n=e.children;if("appear"===t){var r,o=a.origin,s=F((void 0===o?"top":o).split(" "),2),i=s[0],l=s[1],m=void 0===l?"center":l;return n({className:j()("components-animate__appear",(r={},H(r,"is-from-"+m,"center"!==m),H(r,"is-from-"+i,"middle"!==i),r))})}if("slide-in"===t){var u=a.origin,h=void 0===u?"left":u;return n({className:j()("components-animate__slide-in","is-from-"+h)})}return n("loading"===t?{className:j()("components-animate__loading")}:{})},ge=ce(te(function(e){return e.children}));function we(e,t){var c=window.getComputedStyle(t),a=c.paddingTop,n=c.paddingBottom,r=c.paddingLeft,o=c.paddingRight,s=a?parseInt(a,10):0,i=n?parseInt(n,10):0,l=r?parseInt(r,10):0,m=o?parseInt(o,10):0;return{x:e.left+l,y:e.top+s,width:e.width-l-m,height:e.height-s-i,left:e.left+l,right:e.right-m,top:e.top+s,bottom:e.bottom-i}}function be(e,t,c){c?e.getAttribute(t)!==c&&e.setAttribute(t,c):e.hasAttribute(t)&&e.removeAttribute(t)}function ye(e,t){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";e.style[t]!==c&&(e.style[t]=c)}function ze(e,t,c){c?e.classList.contains(t)||e.classList.add(t):e.classList.contains(t)&&e.classList.remove(t)}var _e=function(e){var t=e.headerTitle,c=e.onClose,a=e.onKeyDown,n=e.children,r=e.className,o=e.noArrow,s=void 0!==o&&o,i=e.position,l=void 0===i?"top":i,m=(e.range,e.focusOnMount),u=void 0===m?"firstElement":m,h=e.anchorRef,d=e.shouldAnchorIncludePadding,v=e.anchorVerticalBuffer,p=e.anchorHorizontalBuffer,f=e.anchorRect,g=e.getAnchorRect,w=e.expandOnMobile,b=e.animate,y=void 0===b||b,z=e.onClickOutside,E=e.onFocusOutside,O=V(e,["headerTitle","onClose","onKeyDown","children","className","noArrow","position","range","focusOnMount","anchorRef","shouldAnchorIncludePadding","anchorVerticalBuffer","anchorHorizontalBuffer","anchorRect","getAnchorRect","expandOnMobile","animate","onClickOutside","onFocusOutside"]),k=Object(_.useRef)(null),H=Object(_.useRef)(null),M=Object(_.useRef)(),x=Object(_.useRef)(),L=Object(Y.useViewportMatch)("medium","<"),S=F(Object(_.useState)(),2),N=S[0],T=S[1],B=w&&L;s=B||s,Object(_.useEffect)(function(){var e=M.current,t=H.current;if(B)return ze(e,"is-without-arrow",s),be(e,"data-x-axis"),be(e,"data-y-axis"),ye(e,"top"),ye(e,"left"),ye(t,"maxHeight"),void ye(t,"maxWidth");var c=function(){var c=function(e,t,c){var a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],n=arguments.length>4?arguments[4]:void 0;if(t)return t;if(c){if(!e.current)return;return c(e.current)}if(!1!==a){if(!a)return;if(a instanceof window.Range)return Object(q.getRectangleFromRange)(a);var r=a.getBoundingClientRect();return n?r:we(r,a)}if(e.current){var o=e.current.parentNode,s=o.getBoundingClientRect();return n?s:we(s,o)}}(k,f,g,h,d);if(c){c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return{x:e.left-c,y:e.top-t,width:e.width+2*c,height:e.height+2*t,left:e.left-c,right:e.right+c,top:e.top-t,bottom:e.bottom+t}}(c,v,p),x.current||(x.current=t.getBoundingClientRect());var a=G(c,x.current,l),n=a.popoverTop,r=a.popoverLeft,o=a.xAxis,i=a.yAxis,m=a.contentHeight,u=a.contentWidth;ze(e,"is-without-arrow",s||"center"===o&&"middle"===i),be(e,"data-x-axis",o),be(e,"data-y-axis",i),ye(e,"top","number"==typeof n?n+"px":""),ye(e,"left","number"==typeof r?r+"px":""),ye(t,"maxHeight","number"==typeof m?m+"px":""),ye(t,"maxWidth","number"==typeof u?u+"px":""),T(({left:"right",right:"left"}[o]||"center")+" "+({top:"bottom",bottom:"top"}[i]||"middle"))}},a=window.setTimeout(c),n=window.setInterval(c,500);return window.addEventListener("resize",c),window.addEventListener("scroll",c,!0),function(){window.clearTimeout(a),window.clearInterval(n),window.removeEventListener("resize",c),window.removeEventListener("scroll",c,!0)}},[B,f,g,h,d,v,p,l]),function(e,t){Object(_.useEffect)(function(){var c=setTimeout(function(){if(e&&t.current)if("firstElement"!==e)"container"===e&&t.current.focus();else{var c=q.focus.tabbable.find(t.current)[0];c?c.focus():t.current.focus()}},0);return function(){return clearTimeout(c)}},[])}(u,H);var R=function(e){e.keyCode===U.ESCAPE&&c&&(e.stopPropagation(),c()),a&&a(e)};var I=Object(_.createElement)(ne,{onFocusOutside:function(e){if(E)E(e);else if(z){var t;try{t=new window.MouseEvent("click")}catch(e){(t=document.createEvent("MouseEvent")).initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null)}Object.defineProperty(t,"target",{get:function(){return e.relatedTarget}}),Q()("Popover onClickOutside prop",{alternative:"onFocusOutside"}),z(t)}else c&&c()}},Object(_.createElement)(fe,{type:y&&N?"appear":null,options:{origin:N}},function(e){var a=e.className;return Object(_.createElement)(se,C({className:j()("components-popover",r,a,{"is-expanded":B,"is-without-arrow":s})},O,{onKeyDown:R,ref:M}),B&&Object(_.createElement)("div",{className:"components-popover__header"},Object(_.createElement)("span",{className:"components-popover__header-title"},t),Object(_.createElement)(Ce,{className:"components-popover__close",icon:"no-alt",onClick:c})),Object(_.createElement)("div",{ref:H,className:"components-popover__content",tabIndex:"-1"},n))}));return u&&(I=Object(_.createElement)(ge,null,I)),Object(_.createElement)(le,null,function(e){var t=e.getSlot;return t&&t("Popover")&&(I=Object(_.createElement)(de,{name:"Popover"},I)),Object(_.createElement)("span",{ref:k},I,L&&w&&Object(_.createElement)(re,null))})};_e.Slot=function(){return Object(_.createElement)(pe,{bubblesVirtually:!0,name:"Popover"})};var Ee=_e;var Oe=function(e){var t,c,a=e.shortcut,n=e.className;return a?(Object(O.isString)(a)&&(t=a),Object(O.isObject)(a)&&(t=a.display,c=a.ariaLabel),Object(_.createElement)("span",{className:n,"aria-label":c},t)):null},ke=700,je=function(e){function t(){var e;return L(this,t),(e=I(this,D(t).apply(this,arguments))).delayedSetIsOver=Object(O.debounce)(function(t){return e.setState({isOver:t})},ke),e.cancelIsMouseDown=e.createSetIsMouseDown(!1),e.isInMouseDown=!1,e.state={isOver:!1},e}return P(t,_["Component"]),N(t,[{key:"componentWillUnmount",value:function(){this.delayedSetIsOver.cancel(),document.removeEventListener("mouseup",this.cancelIsMouseDown)}},{key:"emitToChild",value:function(e,t){var c=this.props.children;if(1===_.Children.count(c)){var a=_.Children.only(c);"function"==typeof a.props[e]&&a.props[e](t)}}},{key:"createToggleIsOver",value:function(e,t){var c=this;return function(a){if(c.emitToChild(e,a),!(a.currentTarget.disabled||"focus"===a.type&&c.isInMouseDown)){c.delayedSetIsOver.cancel();var n=Object(O.includes)(["focus","mouseenter"],a.type);n!==c.state.isOver&&(t?c.delayedSetIsOver(n):c.setState({isOver:n}))}}}},{key:"createSetIsMouseDown",value:function(e){var t=this;return function(c){t.emitToChild(e?"onMouseDown":"onMouseUp",c),document[e?"addEventListener":"removeEventListener"]("mouseup",t.cancelIsMouseDown),t.isInMouseDown=e}}},{key:"render",value:function(){var e=this.props,t=e.children,c=e.position,a=e.text,n=e.shortcut;if(1!==_.Children.count(t))return t;var r=_.Children.only(t),o=this.state.isOver;return Object(_.cloneElement)(r,{onMouseEnter:this.createToggleIsOver("onMouseEnter",!0),onMouseLeave:this.createToggleIsOver("onMouseLeave"),onClick:this.createToggleIsOver("onClick"),onFocus:this.createToggleIsOver("onFocus"),onBlur:this.createToggleIsOver("onBlur"),onMouseDown:this.createSetIsMouseDown(!0),children:Object(_.concatChildren)(r.props.children,o&&Object(_.createElement)(Ee,{focusOnMount:!1,position:c,className:"components-tooltip","aria-hidden":"true",animate:!1},a,Object(_.createElement)(Oe,{className:"components-tooltip__shortcut",shortcut:n})))})}}]),t}(),He=function(e){return Object(_.createElement)("path",e)},Me=function(e){var t=M({},e,{role:"img","aria-hidden":"true",focusable:"false"});return Object(_.createElement)("svg",Object(O.omit)(t,"__unstableActive"))},Ve=function(e){function t(){return L(this,t),I(this,D(t).apply(this,arguments))}return P(t,_["Component"]),N(t,[{key:"render",value:function(){var e,t=this.props,c=t.icon,a=t.size,n=void 0===a?20:a,r=t.className,o=V(t,["icon","size","className"]);switch(c){case"admin-appearance":e="M14.48 11.06L7.41 3.99l1.5-1.5c.5-.56 2.3-.47 3.51.32 1.21.8 1.43 1.28 2.91 2.1 1.18.64 2.45 1.26 4.45.85zm-.71.71L6.7 4.7 4.93 6.47c-.39.39-.39 1.02 0 1.41l1.06 1.06c.39.39.39 1.03 0 1.42-.6.6-1.43 1.11-2.21 1.69-.35.26-.7.53-1.01.84C1.43 14.23.4 16.08 1.4 17.07c.99 1 2.84-.03 4.18-1.36.31-.31.58-.66.85-1.02.57-.78 1.08-1.61 1.69-2.21.39-.39 1.02-.39 1.41 0l1.06 1.06c.39.39 1.02.39 1.41 0z";break;case"admin-collapse":e="M10 2.16c4.33 0 7.84 3.51 7.84 7.84s-3.51 7.84-7.84 7.84S2.16 14.33 2.16 10 5.71 2.16 10 2.16zm2 11.72V6.12L6.18 9.97z";break;case"admin-comments":e="M5 2h9c1.1 0 2 .9 2 2v7c0 1.1-.9 2-2 2h-2l-5 5v-5H5c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2z";break;case"admin-customizer":e="M18.33 3.57s.27-.8-.31-1.36c-.53-.52-1.22-.24-1.22-.24-.61.3-5.76 3.47-7.67 5.57-.86.96-2.06 3.79-1.09 4.82.92.98 3.96-.17 4.79-1 2.06-2.06 5.21-7.17 5.5-7.79zM1.4 17.65c2.37-1.56 1.46-3.41 3.23-4.64.93-.65 2.22-.62 3.08.29.63.67.8 2.57-.16 3.46-1.57 1.45-4 1.55-6.15.89z";break;case"admin-generic":e="M18 12h-2.18c-.17.7-.44 1.35-.81 1.93l1.54 1.54-2.1 2.1-1.54-1.54c-.58.36-1.23.63-1.91.79V19H8v-2.18c-.68-.16-1.33-.43-1.91-.79l-1.54 1.54-2.12-2.12 1.54-1.54c-.36-.58-.63-1.23-.79-1.91H1V9.03h2.17c.16-.7.44-1.35.8-1.94L2.43 5.55l2.1-2.1 1.54 1.54c.58-.37 1.24-.64 1.93-.81V2h3v2.18c.68.16 1.33.43 1.91.79l1.54-1.54 2.12 2.12-1.54 1.54c.36.59.64 1.24.8 1.94H18V12zm-8.5 1.5c1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3 1.34 3 3 3z";break;case"admin-home":e="M16 8.5l1.53 1.53-1.06 1.06L10 4.62l-6.47 6.47-1.06-1.06L10 2.5l4 4v-2h2v4zm-6-2.46l6 5.99V18H4v-5.97zM12 17v-5H8v5h4z";break;case"admin-links":e="M17.74 2.76c1.68 1.69 1.68 4.41 0 6.1l-1.53 1.52c-1.12 1.12-2.7 1.47-4.14 1.09l2.62-2.61.76-.77.76-.76c.84-.84.84-2.2 0-3.04-.84-.85-2.2-.85-3.04 0l-.77.76-3.38 3.38c-.37-1.44-.02-3.02 1.1-4.14l1.52-1.53c1.69-1.68 4.42-1.68 6.1 0zM8.59 13.43l5.34-5.34c.42-.42.42-1.1 0-1.52-.44-.43-1.13-.39-1.53 0l-5.33 5.34c-.42.42-.42 1.1 0 1.52.44.43 1.13.39 1.52 0zm-.76 2.29l4.14-4.15c.38 1.44.03 3.02-1.09 4.14l-1.52 1.53c-1.69 1.68-4.41 1.68-6.1 0-1.68-1.68-1.68-4.42 0-6.1l1.53-1.52c1.12-1.12 2.7-1.47 4.14-1.1l-4.14 4.15c-.85.84-.85 2.2 0 3.05.84.84 2.2.84 3.04 0z";break;case"admin-media":e="M13 11V4c0-.55-.45-1-1-1h-1.67L9 1H5L3.67 3H2c-.55 0-1 .45-1 1v7c0 .55.45 1 1 1h10c.55 0 1-.45 1-1zM7 4.5c1.38 0 2.5 1.12 2.5 2.5S8.38 9.5 7 9.5 4.5 8.38 4.5 7 5.62 4.5 7 4.5zM14 6h5v10.5c0 1.38-1.12 2.5-2.5 2.5S14 17.88 14 16.5s1.12-2.5 2.5-2.5c.17 0 .34.02.5.05V9h-3V6zm-4 8.05V13h2v3.5c0 1.38-1.12 2.5-2.5 2.5S7 17.88 7 16.5 8.12 14 9.5 14c.17 0 .34.02.5.05z";break;case"admin-multisite":e="M14.27 6.87L10 3.14 5.73 6.87 5 6.14l5-4.38 5 4.38zM14 8.42l-4.05 3.43L6 8.38v-.74l4-3.5 4 3.5v.78zM11 9.7V8H9v1.7h2zm-1.73 4.03L5 10 .73 13.73 0 13l5-4.38L10 13zm10 0L15 10l-4.27 3.73L10 13l5-4.38L20 13zM5 11l4 3.5V18H1v-3.5zm10 0l4 3.5V18h-8v-3.5zm-9 6v-2H4v2h2zm10 0v-2h-2v2h2z";break;case"admin-network":e="M16.95 2.58c1.96 1.95 1.96 5.12 0 7.07-1.51 1.51-3.75 1.84-5.59 1.01l-1.87 3.31-2.99.31L5 18H2l-1-2 7.95-7.69c-.92-1.87-.62-4.18.93-5.73 1.95-1.96 5.12-1.96 7.07 0zm-2.51 3.79c.74 0 1.33-.6 1.33-1.34 0-.73-.59-1.33-1.33-1.33-.73 0-1.33.6-1.33 1.33 0 .74.6 1.34 1.33 1.34z";break;case"admin-page":e="M6 15V2h10v13H6zm-1 1h8v2H3V5h2v11z";break;case"admin-plugins":e="M13.11 4.36L9.87 7.6 8 5.73l3.24-3.24c.35-.34 1.05-.2 1.56.32.52.51.66 1.21.31 1.55zm-8 1.77l.91-1.12 9.01 9.01-1.19.84c-.71.71-2.63 1.16-3.82 1.16H6.14L4.9 17.26c-.59.59-1.54.59-2.12 0-.59-.58-.59-1.53 0-2.12l1.24-1.24v-3.88c0-1.13.4-3.19 1.09-3.89zm7.26 3.97l3.24-3.24c.34-.35 1.04-.21 1.55.31.52.51.66 1.21.31 1.55l-3.24 3.25z";break;case"admin-post":e="M10.44 3.02l1.82-1.82 6.36 6.35-1.83 1.82c-1.05-.68-2.48-.57-3.41.36l-.75.75c-.92.93-1.04 2.35-.35 3.41l-1.83 1.82-2.41-2.41-2.8 2.79c-.42.42-3.38 2.71-3.8 2.29s1.86-3.39 2.28-3.81l2.79-2.79L4.1 9.36l1.83-1.82c1.05.69 2.48.57 3.4-.36l.75-.75c.93-.92 1.05-2.35.36-3.41z";break;case"admin-settings":e="M18 16V4c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h13c.55 0 1-.45 1-1zM8 11h1c.55 0 1 .45 1 1s-.45 1-1 1H8v1.5c0 .28-.22.5-.5.5s-.5-.22-.5-.5V13H6c-.55 0-1-.45-1-1s.45-1 1-1h1V5.5c0-.28.22-.5.5-.5s.5.22.5.5V11zm5-2h-1c-.55 0-1-.45-1-1s.45-1 1-1h1V5.5c0-.28.22-.5.5-.5s.5.22.5.5V7h1c.55 0 1 .45 1 1s-.45 1-1 1h-1v5.5c0 .28-.22.5-.5.5s-.5-.22-.5-.5V9z";break;case"admin-site-alt":e="M9 0C4.03 0 0 4.03 0 9s4.03 9 9 9 9-4.03 9-9-4.03-9-9-9zm7.5 6.48c-.274.896-.908 1.64-1.75 2.05-.45-1.69-1.658-3.074-3.27-3.75.13-.444.41-.83.79-1.09-.43-.28-1-.42-1.34.07-.53.69 0 1.61.21 2v.14c-.555-.337-.99-.84-1.24-1.44-.966-.03-1.922.208-2.76.69-.087-.565-.032-1.142.16-1.68.733.07 1.453-.23 1.92-.8.46-.52-.13-1.18-.59-1.58h.36c1.36-.01 2.702.335 3.89 1 1.36 1.005 2.194 2.57 2.27 4.26.24 0 .7-.55.91-.92.172.34.32.69.44 1.05zM9 16.84c-2.05-2.08.25-3.75-1-5.24-.92-.85-2.29-.26-3.11-1.23-.282-1.473.267-2.982 1.43-3.93.52-.44 4-1 5.42.22.83.715 1.415 1.674 1.67 2.74.46.035.918-.066 1.32-.29.41 2.98-3.15 6.74-5.73 7.73zM5.15 2.09c.786-.3 1.676-.028 2.16.66-.42.38-.94.63-1.5.72.02-.294.085-.584.19-.86l-.85-.52z";break;case"admin-site-alt2":e="M9 0C4.03 0 0 4.03 0 9s4.03 9 9 9 9-4.03 9-9-4.03-9-9-9zm2.92 12.34c0 .35.14.63.36.66.22.03.47-.22.58-.6l.2.08c.718.384 1.07 1.22.84 2-.15.69-.743 1.198-1.45 1.24-.49-1.21-2.11.06-3.56-.22-.612-.154-1.11-.6-1.33-1.19 1.19-.11 2.85-1.73 4.36-1.97zM8 11.27c.918 0 1.695-.68 1.82-1.59.44.54.41 1.324-.07 1.83-.255.223-.594.325-.93.28-.335-.047-.635-.236-.82-.52zm3-.76c.41.39 3-.06 3.52 1.09-.95-.2-2.95.61-3.47-1.08l-.05-.01zM9.73 5.45v.27c-.65-.77-1.33-1.07-1.61-.57-.28.5 1 1.11.76 1.88-.24.77-1.27.56-1.88 1.61-.61 1.05-.49 2.42 1.24 3.67-1.192-.132-2.19-.962-2.54-2.11-.4-1.2-.09-2.26-.78-2.46C4 7.46 3 8.71 3 9.8c-1.26-1.26.05-2.86-1.2-4.18C3.5 1.998 7.644.223 11.44 1.49c-1.1 1.02-1.722 2.458-1.71 3.96z";break;case"admin-site-alt3":e="M9 0C4.03 0 0 4.03 0 9s4.03 9 9 9 9-4.03 9-9-4.03-9-9-9zM1.11 9.68h2.51c.04.91.167 1.814.38 2.7H1.84c-.403-.85-.65-1.764-.73-2.7zm8.57-5.4V1.19c.964.366 1.756 1.08 2.22 2 .205.347.386.708.54 1.08l-2.76.01zm3.22 1.35c.232.883.37 1.788.41 2.7H9.68v-2.7h3.22zM8.32 1.19v3.09H5.56c.154-.372.335-.733.54-1.08.462-.924 1.255-1.64 2.22-2.01zm0 4.44v2.7H4.7c.04-.912.178-1.817.41-2.7h3.21zm-4.7 2.69H1.11c.08-.936.327-1.85.73-2.7H4c-.213.886-.34 1.79-.38 2.7zM4.7 9.68h3.62v2.7H5.11c-.232-.883-.37-1.788-.41-2.7zm3.63 4v3.09c-.964-.366-1.756-1.08-2.22-2-.205-.347-.386-.708-.54-1.08l2.76-.01zm1.35 3.09v-3.04h2.76c-.154.372-.335.733-.54 1.08-.464.92-1.256 1.634-2.22 2v-.04zm0-4.44v-2.7h3.62c-.04.912-.178 1.817-.41 2.7H9.68zm4.71-2.7h2.51c-.08.936-.327 1.85-.73 2.7H14c.21-.87.337-1.757.38-2.65l.01-.05zm0-1.35c-.046-.894-.176-1.78-.39-2.65h2.16c.403.85.65 1.764.73 2.7l-2.5-.05zm1-4H13.6c-.324-.91-.793-1.76-1.39-2.52 1.244.56 2.325 1.426 3.14 2.52h.04zm-9.6-2.52c-.597.76-1.066 1.61-1.39 2.52H2.65c.815-1.094 1.896-1.96 3.14-2.52zm-3.15 12H4.4c.324.91.793 1.76 1.39 2.52-1.248-.567-2.33-1.445-3.14-2.55l-.01.03zm9.56 2.52c.597-.76 1.066-1.61 1.39-2.52h1.76c-.82 1.08-1.9 1.933-3.14 2.48l-.01.04z";break;case"admin-site":e="M9 0C4.03 0 0 4.03 0 9s4.03 9 9 9 9-4.03 9-9-4.03-9-9-9zm3.46 11.95c0 1.47-.8 3.3-4.06 4.7.3-4.17-2.52-3.69-3.2-5 .126-1.1.804-2.063 1.8-2.55-1.552-.266-3-.96-4.18-2 .05.47.28.904.64 1.21-.782-.295-1.458-.817-1.94-1.5.977-3.225 3.883-5.482 7.25-5.63-.84 1.38-1.5 4.13 0 5.57C7.23 7 6.26 5 5.41 5.79c-1.13 1.06.33 2.51 3.42 3.08 3.29.59 3.66 1.58 3.63 3.08zm1.34-4c-.32-1.11.62-2.23 1.69-3.14 1.356 1.955 1.67 4.45.84 6.68-.77-1.89-2.17-2.32-2.53-3.57v.03z";break;case"admin-tools":e="M16.68 9.77c-1.34 1.34-3.3 1.67-4.95.99l-5.41 6.52c-.99.99-2.59.99-3.58 0s-.99-2.59 0-3.57l6.52-5.42c-.68-1.65-.35-3.61.99-4.95 1.28-1.28 3.12-1.62 4.72-1.06l-2.89 2.89 2.82 2.82 2.86-2.87c.53 1.58.18 3.39-1.08 4.65zM3.81 16.21c.4.39 1.04.39 1.43 0 .4-.4.4-1.04 0-1.43-.39-.4-1.03-.4-1.43 0-.39.39-.39 1.03 0 1.43z";break;case"admin-users":e="M10 9.25c-2.27 0-2.73-3.44-2.73-3.44C7 4.02 7.82 2 9.97 2c2.16 0 2.98 2.02 2.71 3.81 0 0-.41 3.44-2.68 3.44zm0 2.57L12.72 10c2.39 0 4.52 2.33 4.52 4.53v2.49s-3.65 1.13-7.24 1.13c-3.65 0-7.24-1.13-7.24-1.13v-2.49c0-2.25 1.94-4.48 4.47-4.48z";break;case"album":e="M0 18h10v-.26c1.52.4 3.17.35 4.76-.24 4.14-1.52 6.27-6.12 4.75-10.26-1.43-3.89-5.58-6-9.51-4.98V2H0v16zM9 3v14H1V3h8zm5.45 8.22c-.68 1.35-2.32 1.9-3.67 1.23-.31-.15-.57-.35-.78-.59V8.13c.8-.86 2.11-1.13 3.22-.58 1.35.68 1.9 2.32 1.23 3.67zm-2.75-.82c.22.16.53.12.7-.1.16-.22.12-.53-.1-.7s-.53-.12-.7.1c-.16.21-.12.53.1.7zm3.01 3.67c-1.17.78-2.56.99-3.83.69-.27-.06-.44-.34-.37-.61s.34-.43.62-.36l.17.04c.96.17 1.98-.01 2.86-.59.47-.32.86-.72 1.14-1.18.15-.23.45-.3.69-.16.23.15.3.46.16.69-.36.57-.84 1.08-1.44 1.48zm1.05 1.57c-1.48.99-3.21 1.32-4.84 1.06-.28-.05-.47-.32-.41-.6.05-.27.32-.45.61-.39l.22.04c1.31.15 2.68-.14 3.87-.94.71-.47 1.27-1.07 1.7-1.74.14-.24.45-.31.68-.16.24.14.31.45.16.69-.49.79-1.16 1.49-1.99 2.04z";break;case"align-center":e="M3 5h14V3H3v2zm12 8V7H5v6h10zM3 17h14v-2H3v2z";break;case"align-full-width":e="M17 13V3H3v10h14zM5 17h10v-2H5v2z";break;case"align-left":e="M3 5h14V3H3v2zm9 8V7H3v6h9zm2-4h3V7h-3v2zm0 4h3v-2h-3v2zM3 17h14v-2H3v2z";break;case"align-none":e="M3 5h14V3H3v2zm10 8V7H3v6h10zM3 17h14v-2H3v2z";break;case"align-pull-left":e="M9 16V4H3v12h6zm2-7h6V7h-6v2zm0 4h6v-2h-6v2z";break;case"align-pull-right":e="M17 16V4h-6v12h6zM9 7H3v2h6V7zm0 4H3v2h6v-2z";break;case"align-right":e="M3 5h14V3H3v2zm0 4h3V7H3v2zm14 4V7H8v6h9zM3 13h3v-2H3v2zm0 4h14v-2H3v2z";break;case"align-wide":e="M5 5h10V3H5v2zm12 8V7H3v6h14zM5 17h10v-2H5v2z";break;case"analytics":e="M18 18V2H2v16h16zM16 5H4V4h12v1zM7 7v3h3c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3zm1 2V7c1.1 0 2 .9 2 2H8zm8-1h-4V7h4v1zm0 3h-4V9h4v2zm0 2h-4v-1h4v1zm0 3H4v-1h12v1z";break;case"archive":e="M19 4v2H1V4h18zM2 7h16v10H2V7zm11 3V9H7v1h6z";break;case"arrow-down-alt":e="M9 2h2v12l4-4 2 1-7 7-7-7 2-1 4 4V2z";break;case"arrow-down-alt2":e="M5 6l5 5 5-5 2 1-7 7-7-7z";break;case"arrow-down":e="M15 8l-4.03 6L7 8h8z";break;case"arrow-left-alt":e="M18 9v2H6l4 4-1 2-7-7 7-7 1 2-4 4h12z";break;case"arrow-left-alt2":e="M14 5l-5 5 5 5-1 2-7-7 7-7z";break;case"arrow-left":e="M13 14L7 9.97 13 6v8z";break;case"arrow-right-alt":e="M2 11V9h12l-4-4 1-2 7 7-7 7-1-2 4-4H2z";break;case"arrow-right-alt2":e="M6 15l5-5-5-5 1-2 7 7-7 7z";break;case"arrow-right":e="M8 6l6 4.03L8 14V6z";break;case"arrow-up-alt":e="M11 18H9V6l-4 4-2-1 7-7 7 7-2 1-4-4v12z";break;case"arrow-up-alt2":e="M15 14l-5-5-5 5-2-1 7-7 7 7z";break;case"arrow-up":e="M7 13l4.03-6L15 13H7z";break;case"art":e="M8.55 3.06c1.01.34-1.95 2.01-.1 3.13 1.04.63 3.31-2.22 4.45-2.86.97-.54 2.67-.65 3.53 1.23 1.09 2.38.14 8.57-3.79 11.06-3.97 2.5-8.97 1.23-10.7-2.66-2.01-4.53 3.12-11.09 6.61-9.9zm1.21 6.45c.73 1.64 4.7-.5 3.79-2.8-.59-1.49-4.48 1.25-3.79 2.8z";break;case"awards":e="M4.46 5.16L5 7.46l-.54 2.29 2.01 1.24L7.7 13l2.3-.54 2.3.54 1.23-2.01 2.01-1.24L15 7.46l.54-2.3-2-1.24-1.24-2.01-2.3.55-2.29-.54-1.25 2zm5.55 6.34C7.79 11.5 6 9.71 6 7.49c0-2.2 1.79-3.99 4.01-3.99 2.2 0 3.99 1.79 3.99 3.99 0 2.22-1.79 4.01-3.99 4.01zm-.02-1C8.33 10.5 7 9.16 7 7.5c0-1.65 1.33-3 2.99-3S13 5.85 13 7.5c0 1.66-1.35 3-3.01 3zm3.84 1.1l-1.28 2.24-2.08-.47L13 19.2l1.4-2.2h2.5zm-7.7.07l1.25 2.25 2.13-.51L7 19.2 5.6 17H3.1z";break;case"backup":e="M13.65 2.88c3.93 2.01 5.48 6.84 3.47 10.77s-6.83 5.48-10.77 3.47c-1.87-.96-3.2-2.56-3.86-4.4l1.64-1.03c.45 1.57 1.52 2.95 3.08 3.76 3.01 1.54 6.69.35 8.23-2.66 1.55-3.01.36-6.69-2.65-8.24C9.78 3.01 6.1 4.2 4.56 7.21l1.88.97-4.95 3.08-.39-5.82 1.78.91C4.9 2.4 9.75.89 13.65 2.88zm-4.36 7.83C9.11 10.53 9 10.28 9 10c0-.07.03-.12.04-.19h-.01L10 5l.97 4.81L14 13l-4.5-2.12.02-.02c-.08-.04-.16-.09-.23-.15z";break;case"block-default":e="M15 6V4h-3v2H8V4H5v2H4c-.6 0-1 .4-1 1v8h14V7c0-.6-.4-1-1-1h-1z";break;case"book-alt":e="M5 17h13v2H5c-1.66 0-3-1.34-3-3V4c0-1.66 1.34-3 3-3h13v14H5c-.55 0-1 .45-1 1s.45 1 1 1zm2-3.5v-11c0-.28-.22-.5-.5-.5s-.5.22-.5.5v11c0 .28.22.5.5.5s.5-.22.5-.5z";break;case"book":e="M16 3h2v16H5c-1.66 0-3-1.34-3-3V4c0-1.66 1.34-3 3-3h9v14H5c-.55 0-1 .45-1 1s.45 1 1 1h11V3z";break;case"buddicons-activity":e="M8 1v7h2V6c0-1.52 1.45-3 3-3v.86c.55-.52 1.26-.86 2-.86v3h1c1.1 0 2 .9 2 2s-.9 2-2 2h-1v6c0 .55-.45 1-1 1s-1-.45-1-1v-2.18c-.31.11-.65.18-1 .18v2c0 .55-.45 1-1 1s-1-.45-1-1v-2H8v2c0 .55-.45 1-1 1s-1-.45-1-1v-2c-.35 0-.69-.07-1-.18V16c0 .55-.45 1-1 1s-1-.45-1-1v-4H2v-1c0-1.66 1.34-3 3-3h2V1h1zm5 7c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1z";break;case"buddicons-bbpress-logo":e="M8.5 12.6c.3-1.3 0-2.3-1.1-2.3-.8 0-1.6.6-1.8 1.5l-.3 1.7c-.3 1 .3 1.5 1 1.5 1.2 0 1.9-1.1 2.2-2.4zm-4-6.4C3.7 7.3 3.3 8.6 3.3 10c0 1 .2 1.9.6 2.8l1-4.6c.3-1.7.4-2-.4-2zm9.3 6.4c.3-1.3 0-2.3-1.1-2.3-.8 0-1.6.6-1.8 1.5l-.4 1.7c-.2 1.1.4 1.6 1.1 1.6 1.1-.1 1.9-1.2 2.2-2.5zM10 3.3c-2 0-3.9.9-5.1 2.3.6-.1 1.4-.2 1.8-.3.2 0 .2.1.2.2 0 .2-1 4.8-1 4.8.5-.3 1.2-.7 1.8-.7.9 0 1.5.4 1.9.9l.5-2.4c.4-1.6.4-1.9-.4-1.9-.4 0-.4-.5 0-.6.6-.1 1.8-.2 2.3-.3.2 0 .2.1.2.2l-1 4.8c.5-.4 1.2-.7 1.9-.7 1.7 0 2.5 1.3 2.1 3-.3 1.7-2 3-3.8 3-1.3 0-2.1-.7-2.3-1.4-.7.8-1.7 1.3-2.8 1.4 1.1.7 2.4 1.1 3.7 1.1 3.7 0 6.7-3 6.7-6.7s-3-6.7-6.7-6.7zM10 2c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 15.5c-2.1 0-4-.8-5.3-2.2-.3-.4-.7-.8-1-1.2-.7-1.2-1.2-2.6-1.2-4.1 0-4.1 3.4-7.5 7.5-7.5s7.5 3.4 7.5 7.5-3.4 7.5-7.5 7.5z";break;case"buddicons-buddypress-logo":e="M10 0c5.52 0 10 4.48 10 10s-4.48 10-10 10S0 15.52 0 10 4.48 0 10 0zm0 .5C4.75.5.5 4.75.5 10s4.25 9.5 9.5 9.5 9.5-4.25 9.5-9.5S15.25.5 10 .5zm0 1c4.7 0 8.5 3.8 8.5 8.5s-3.8 8.5-8.5 8.5-8.5-3.8-8.5-8.5S5.3 1.5 10 1.5zm1.8 1.71c-.57 0-1.1.17-1.55.45 1.56.37 2.73 1.77 2.73 3.45 0 .69-.21 1.33-.55 1.87 1.31-.29 2.29-1.45 2.29-2.85 0-1.61-1.31-2.92-2.92-2.92zm-2.38 1c-1.61 0-2.92 1.31-2.92 2.93 0 1.61 1.31 2.92 2.92 2.92 1.62 0 2.93-1.31 2.93-2.92 0-1.62-1.31-2.93-2.93-2.93zm4.25 5.01l-.51.59c2.34.69 2.45 3.61 2.45 3.61h1.28c0-4.71-3.22-4.2-3.22-4.2zm-2.1.8l-2.12 2.09-2.12-2.09C3.12 10.24 3.89 15 3.89 15h11.08c.47-4.98-3.4-4.98-3.4-4.98z";break;case"buddicons-community":e="M9 3c0-.67-.47-1.43-1-2-.5.5-1 1.38-1 2 0 .48.45 1 1 1s1-.47 1-1zm4 0c0-.67-.47-1.43-1-2-.5.5-1 1.38-1 2 0 .48.45 1 1 1s1-.47 1-1zM9 9V5.5c0-.55-.45-1-1-1-.57 0-1 .49-1 1V9c0 .55.45 1 1 1 .57 0 1-.49 1-1zm4 0V5.5c0-.55-.45-1-1-1-.57 0-1 .49-1 1V9c0 .55.45 1 1 1 .57 0 1-.49 1-1zm4 1c0-1.48-1.41-2.77-3.5-3.46V9c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5V6.01c-.17 0-.33-.01-.5-.01s-.33.01-.5.01V9c0 .83-.67 1.5-1.5 1.5S6.5 9.83 6.5 9V6.54C4.41 7.23 3 8.52 3 10c0 1.41.95 2.65 3.21 3.37 1.11.35 2.39 1.12 3.79 1.12s2.69-.78 3.79-1.13C16.04 12.65 17 11.41 17 10zm-7 5.43c1.43 0 2.74-.79 3.88-1.11 1.9-.53 2.49-1.34 3.12-2.32v3c0 2.21-3.13 4-7 4s-7-1.79-7-4v-3c.64.99 1.32 1.8 3.15 2.33 1.13.33 2.44 1.1 3.85 1.1z";break;case"buddicons-forums":e="M13.5 7h-7C5.67 7 5 6.33 5 5.5S5.67 4 6.5 4h1.59C8.04 3.84 8 3.68 8 3.5 8 2.67 8.67 2 9.5 2h1c.83 0 1.5.67 1.5 1.5 0 .18-.04.34-.09.5h1.59c.83 0 1.5.67 1.5 1.5S14.33 7 13.5 7zM4 8h12c.55 0 1 .45 1 1s-.45 1-1 1H4c-.55 0-1-.45-1-1s.45-1 1-1zm1 3h10c.55 0 1 .45 1 1s-.45 1-1 1H5c-.55 0-1-.45-1-1s.45-1 1-1zm2 3h6c.55 0 1 .45 1 1s-.45 1-1 1h-1.09c.05.16.09.32.09.5 0 .83-.67 1.5-1.5 1.5h-1c-.83 0-1.5-.67-1.5-1.5 0-.18.04-.34.09-.5H7c-.55 0-1-.45-1-1s.45-1 1-1z";break;case"buddicons-friends":e="M8.75 5.77C8.75 4.39 7 2 7 2S5.25 4.39 5.25 5.77 5.9 7.5 7 7.5s1.75-.35 1.75-1.73zm6 0C14.75 4.39 13 2 13 2s-1.75 2.39-1.75 3.77S11.9 7.5 13 7.5s1.75-.35 1.75-1.73zM9 17V9c0-.55-.45-1-1-1H6c-.55 0-1 .45-1 1v8c0 .55.45 1 1 1h2c.55 0 1-.45 1-1zm6 0V9c0-.55-.45-1-1-1h-2c-.55 0-1 .45-1 1v8c0 .55.45 1 1 1h2c.55 0 1-.45 1-1zm-9-6l2-1v2l-2 1v-2zm6 0l2-1v2l-2 1v-2zm-6 3l2-1v2l-2 1v-2zm6 0l2-1v2l-2 1v-2z";break;case"buddicons-groups":e="M15.45 6.25c1.83.94 1.98 3.18.7 4.98-.8 1.12-2.33 1.88-3.46 1.78L10.05 18H9l-2.65-4.99c-1.13.16-2.73-.63-3.55-1.79-1.28-1.8-1.13-4.04.71-4.97.48-.24.96-.33 1.43-.31-.01.4.01.8.07 1.21.26 1.69 1.41 3.53 2.86 4.37-.19.55-.49.99-.88 1.25L9 16.58v-5.66C7.64 10.55 6.26 8.76 6 7c-.4-2.65 1-5 3.5-5s3.9 2.35 3.5 5c-.26 1.76-1.64 3.55-3 3.92v5.77l2.07-3.84c-.44-.23-.77-.71-.99-1.3 1.48-.83 2.65-2.69 2.91-4.4.06-.41.08-.82.07-1.22.46-.01.92.08 1.39.32z";break;case"buddicons-pm":e="M10 2c3 0 8 5 8 5v11H2V7s5-5 8-5zm7 14.72l-3.73-2.92L17 11l-.43-.37-2.26 1.3.24-4.31-8.77-.52-.46 4.54-1.99-.95L3 11l3.73 2.8-3.44 2.85.4.43L10 13l6.53 4.15z";break;case"buddicons-replies":e="M17.54 10.29c1.17 1.17 1.17 3.08 0 4.25-1.18 1.17-3.08 1.17-4.25 0l-.34-.52c0 3.66-2 4.38-2.95 4.98-.82-.6-2.95-1.28-2.95-4.98l-.34.52c-1.17 1.17-3.07 1.17-4.25 0-1.17-1.17-1.17-3.08 0-4.25 0 0 1.02-.67 2.1-1.3C3.71 7.84 3.2 6.42 3.2 4.88c0-.34.03-.67.08-1C3.53 5.66 4.47 7.22 5.8 8.3c.67-.35 1.85-.83 2.37-.92H8c-1.1 0-2-.9-2-2s.9-2 2-2v-.5c0-.28.22-.5.5-.5s.5.22.5.5v.5h2v-.5c0-.28.22-.5.5-.5s.5.22.5.5v.5c1.1 0 2 .9 2 2s-.9 2-2 2h-.17c.51.09 1.78.61 2.38.92 1.33-1.08 2.27-2.64 2.52-4.42.05.33.08.66.08 1 0 1.54-.51 2.96-1.36 4.11 1.08.63 2.09 1.3 2.09 1.3zM8.5 6.38c.5 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm3-2c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm-2.3 5.73c-.12.11-.19.26-.19.43.02.25.23.46.49.46h1c.26 0 .47-.21.49-.46 0-.15-.07-.29-.19-.43-.08-.06-.18-.11-.3-.11h-1c-.12 0-.22.05-.3.11zM12 12.5c0-.12-.06-.28-.19-.38-.09-.07-.19-.12-.31-.12h-3c-.12 0-.22.05-.31.12-.11.1-.19.25-.19.38 0 .28.22.5.5.5h3c.28 0 .5-.22.5-.5zM8.5 15h3c.28 0 .5-.22.5-.5s-.22-.5-.5-.5h-3c-.28 0-.5.22-.5.5s.22.5.5.5zm1 2h1c.28 0 .5-.22.5-.5s-.22-.5-.5-.5h-1c-.28 0-.5.22-.5.5s.22.5.5.5z";break;case"buddicons-topics":e="M10.44 1.66c-.59-.58-1.54-.58-2.12 0L2.66 7.32c-.58.58-.58 1.53 0 2.12.6.6 1.56.56 2.12 0l5.66-5.66c.58-.58.59-1.53 0-2.12zm2.83 2.83c-.59-.59-1.54-.59-2.12 0l-5.66 5.66c-.59.58-.59 1.53 0 2.12.6.6 1.56.55 2.12 0l5.66-5.66c.58-.58.58-1.53 0-2.12zm1.06 6.72l4.18 4.18c.59.58.59 1.53 0 2.12s-1.54.59-2.12 0l-4.18-4.18-1.77 1.77c-.59.58-1.54.58-2.12 0-.59-.59-.59-1.54 0-2.13l5.66-5.65c.58-.59 1.53-.59 2.12 0 .58.58.58 1.53 0 2.12zM5 15c0-1.59-1.66-4-1.66-4S2 13.78 2 15s.6 2 1.34 2h.32C4.4 17 5 16.59 5 15z";break;case"buddicons-tracking":e="M10.98 6.78L15.5 15c-1 2-3.5 3-5.5 3s-4.5-1-5.5-3L9 6.82c-.75-1.23-2.28-1.98-4.29-2.03l2.46-2.92c1.68 1.19 2.46 2.32 2.97 3.31.56-.87 1.2-1.68 2.7-2.12l1.83 2.86c-1.42-.34-2.64.08-3.69.86zM8.17 10.4l-.93 1.69c.49.11 1 .16 1.54.16 1.35 0 2.58-.36 3.55-.95l-1.01-1.82c-.87.53-1.96.86-3.15.92zm.86 5.38c1.99 0 3.73-.74 4.74-1.86l-.98-1.76c-1 1.12-2.74 1.87-4.74 1.87-.62 0-1.21-.08-1.76-.21l-.63 1.15c.94.5 2.1.81 3.37.81z";break;case"building":e="M3 20h14V0H3v20zM7 3H5V1h2v2zm4 0H9V1h2v2zm4 0h-2V1h2v2zM7 6H5V4h2v2zm4 0H9V4h2v2zm4 0h-2V4h2v2zM7 9H5V7h2v2zm4 0H9V7h2v2zm4 0h-2V7h2v2zm-8 3H5v-2h2v2zm4 0H9v-2h2v2zm4 0h-2v-2h2v2zm-4 7H5v-6h6v6zm4-4h-2v-2h2v2zm0 3h-2v-2h2v2z";break;case"businessman":e="M7.3 6l-.03-.19c-.04-.37-.05-.73-.03-1.08.02-.36.1-.71.25-1.04.14-.32.31-.61.52-.86s.49-.46.83-.6c.34-.15.72-.23 1.13-.23.69 0 1.26.2 1.71.59s.76.87.91 1.44.18 1.16.09 1.78l-.03.19c-.01.09-.05.25-.11.48-.05.24-.12.47-.2.69-.08.21-.19.45-.34.72-.14.27-.3.49-.47.69-.18.19-.4.34-.67.48-.27.13-.55.19-.86.19s-.59-.06-.87-.19c-.26-.13-.49-.29-.67-.5-.18-.2-.34-.42-.49-.66-.15-.25-.26-.49-.34-.73-.09-.25-.16-.47-.21-.67-.06-.21-.1-.37-.12-.5zm9.2 6.24c.41.7.5 1.41.5 2.14v2.49c0 .03-.12.08-.29.13-.18.04-.42.13-.97.27-.55.12-1.1.24-1.65.34s-1.19.19-1.95.27c-.75.08-1.46.12-2.13.12-.68 0-1.39-.04-2.14-.12-.75-.07-1.4-.17-1.98-.27-.58-.11-1.08-.23-1.56-.34-.49-.11-.8-.21-1.06-.29L3 16.87v-2.49c0-.75.07-1.46.46-2.15s.81-1.25 1.5-1.68C5.66 10.12 7.19 10 8 10l1.67 1.67L9 13v3l1.02 1.08L11 16v-3l-.68-1.33L11.97 10c.77 0 2.2.07 2.9.52.71.45 1.21 1.02 1.63 1.72z";break;case"button":e="M17 5H3c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm1 7c0 .6-.4 1-1 1H3c-.6 0-1-.4-1-1V7c0-.6.4-1 1-1h14c.6 0 1 .4 1 1v5z";break;case"calendar-alt":e="M15 4h3v15H2V4h3V3c0-.41.15-.76.44-1.06.29-.29.65-.44 1.06-.44s.77.15 1.06.44c.29.3.44.65.44 1.06v1h4V3c0-.41.15-.76.44-1.06.29-.29.65-.44 1.06-.44s.77.15 1.06.44c.29.3.44.65.44 1.06v1zM6 3v2.5c0 .14.05.26.15.36.09.09.21.14.35.14s.26-.05.35-.14c.1-.1.15-.22.15-.36V3c0-.14-.05-.26-.15-.35-.09-.1-.21-.15-.35-.15s-.26.05-.35.15c-.1.09-.15.21-.15.35zm7 0v2.5c0 .14.05.26.14.36.1.09.22.14.36.14s.26-.05.36-.14c.09-.1.14-.22.14-.36V3c0-.14-.05-.26-.14-.35-.1-.1-.22-.15-.36-.15s-.26.05-.36.15c-.09.09-.14.21-.14.35zm4 15V8H3v10h14zM7 9v2H5V9h2zm2 0h2v2H9V9zm4 2V9h2v2h-2zm-6 1v2H5v-2h2zm2 0h2v2H9v-2zm4 2v-2h2v2h-2zm-6 1v2H5v-2h2zm4 2H9v-2h2v2zm4 0h-2v-2h2v2z";break;case"calendar":e="M15 4h3v14H2V4h3V3c0-.83.67-1.5 1.5-1.5S8 2.17 8 3v1h4V3c0-.83.67-1.5 1.5-1.5S15 2.17 15 3v1zM6 3v2.5c0 .28.22.5.5.5s.5-.22.5-.5V3c0-.28-.22-.5-.5-.5S6 2.72 6 3zm7 0v2.5c0 .28.22.5.5.5s.5-.22.5-.5V3c0-.28-.22-.5-.5-.5s-.5.22-.5.5zm4 14V8H3v9h14zM7 16V9H5v7h2zm4 0V9H9v7h2zm4 0V9h-2v7h2z";break;case"camera":e="M6 5V3H3v2h3zm12 10V4H9L7 6H2v9h16zm-7-8c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3z";break;case"carrot":e="M2 18.43c1.51 1.36 11.64-4.67 13.14-7.21.72-1.22-.13-3.01-1.52-4.44C15.2 5.73 16.59 9 17.91 8.31c.6-.32.99-1.31.7-1.92-.52-1.08-2.25-1.08-3.42-1.21.83-.2 2.82-1.05 2.86-2.25.04-.92-1.13-1.97-2.05-1.86-1.21.14-1.65 1.88-2.06 3-.05-.71-.2-2.27-.98-2.95-1.04-.91-2.29-.05-2.32 1.05-.04 1.33 2.82 2.07 1.92 3.67C11.04 4.67 9.25 4.03 8.1 4.7c-.49.31-1.05.91-1.63 1.69.89.94 2.12 2.07 3.09 2.72.2.14.26.42.11.62-.14.21-.42.26-.62.12-.99-.67-2.2-1.78-3.1-2.71-.45.67-.91 1.43-1.34 2.23.85.86 1.93 1.83 2.79 2.41.2.14.25.42.11.62-.14.21-.42.26-.63.12-.85-.58-1.86-1.48-2.71-2.32C2.4 13.69 1.1 17.63 2 18.43z";break;case"cart":e="M6 13h9c.55 0 1 .45 1 1s-.45 1-1 1H5c-.55 0-1-.45-1-1V4H2c-.55 0-1-.45-1-1s.45-1 1-1h3c.55 0 1 .45 1 1v2h13l-4 7H6v1zm-.5 3c.83 0 1.5.67 1.5 1.5S6.33 19 5.5 19 4 18.33 4 17.5 4.67 16 5.5 16zm9 0c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5-1.5-.67-1.5-1.5.67-1.5 1.5-1.5z";break;case"category":e="M5 7h13v10H2V4h7l2 2H4v9h1V7z";break;case"chart-area":e="M18 18l.01-12.28c.59-.35.99-.99.99-1.72 0-1.1-.9-2-2-2s-2 .9-2 2c0 .8.47 1.48 1.14 1.8l-4.13 6.58c-.33-.24-.73-.38-1.16-.38-.84 0-1.55.51-1.85 1.24l-2.14-1.53c.09-.22.14-.46.14-.71 0-1.11-.89-2-2-2-1.1 0-2 .89-2 2 0 .73.4 1.36.98 1.71L1 18h17zM17 3c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zM5 10c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm5.85 3c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1z";break;case"chart-bar":e="M18 18V2h-4v16h4zm-6 0V7H8v11h4zm-6 0v-8H2v8h4z";break;case"chart-line":e="M18 3.5c0 .62-.38 1.16-.92 1.38v13.11H1.99l4.22-6.73c-.13-.23-.21-.48-.21-.76C6 9.67 6.67 9 7.5 9S9 9.67 9 10.5c0 .13-.02.25-.05.37l1.44.63c.27-.3.67-.5 1.11-.5.18 0 .35.04.51.09l3.58-6.41c-.36-.27-.59-.7-.59-1.18 0-.83.67-1.5 1.5-1.5.19 0 .36.04.53.1l.05-.09v.11c.54.22.92.76.92 1.38zm-1.92 13.49V5.85l-3.29 5.89c.13.23.21.48.21.76 0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5l.01-.07-1.63-.72c-.25.18-.55.29-.88.29-.18 0-.35-.04-.51-.1l-3.2 5.09h12.29z";break;case"chart-pie":e="M10 10V3c3.87 0 7 3.13 7 7h-7zM9 4v7h7c0 3.87-3.13 7-7 7s-7-3.13-7-7 3.13-7 7-7z";break;case"clipboard":e="M11.9.39l1.4 1.4c1.61.19 3.5-.74 4.61.37s.18 3 .37 4.61l1.4 1.4c.39.39.39 1.02 0 1.41l-9.19 9.2c-.4.39-1.03.39-1.42 0L1.29 11c-.39-.39-.39-1.02 0-1.42l9.2-9.19c.39-.39 1.02-.39 1.41 0zm.58 2.25l-.58.58 4.95 4.95.58-.58c-.19-.6-.2-1.22-.15-1.82.02-.31.05-.62.09-.92.12-1 .18-1.63-.17-1.98s-.98-.29-1.98-.17c-.3.04-.61.07-.92.09-.6.05-1.22.04-1.82-.15zm4.02.93c.39.39.39 1.03 0 1.42s-1.03.39-1.42 0-.39-1.03 0-1.42 1.03-.39 1.42 0zm-6.72.36l-.71.7L15.44 11l.7-.71zM8.36 5.34l-.7.71 6.36 6.36.71-.7zM6.95 6.76l-.71.7 6.37 6.37.7-.71zM5.54 8.17l-.71.71 6.36 6.36.71-.71zM4.12 9.58l-.71.71 6.37 6.37.71-.71z";break;case"clock":e="M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm0 14c3.31 0 6-2.69 6-6s-2.69-6-6-6-6 2.69-6 6 2.69 6 6 6zm-.71-5.29c.07.05.14.1.23.15l-.02.02L14 13l-3.03-3.19L10 5l-.97 4.81h.01c0 .02-.01.05-.02.09S9 9.97 9 10c0 .28.1.52.29.71z";break;case"cloud-saved":e="M14.8 9c.1-.3.2-.6.2-1 0-2.2-1.8-4-4-4-1.5 0-2.9.9-3.5 2.2-.3-.1-.7-.2-1-.2C5.1 6 4 7.1 4 8.5c0 .2 0 .4.1.5-1.8.3-3.1 1.7-3.1 3.5C1 14.4 2.6 16 4.5 16h10c1.9 0 3.5-1.6 3.5-3.5 0-1.8-1.4-3.3-3.2-3.5zm-6.3 5.9l-3.2-3.2 1.4-1.4 1.8 1.8 3.8-3.8 1.4 1.4-5.2 5.2z";break;case"cloud-upload":e="M14.8 9c.1-.3.2-.6.2-1 0-2.2-1.8-4-4-4-1.5 0-2.9.9-3.5 2.2-.3-.1-.7-.2-1-.2C5.1 6 4 7.1 4 8.5c0 .2 0 .4.1.5-1.8.3-3.1 1.7-3.1 3.5C1 14.4 2.6 16 4.5 16H8v-3H5l4.5-4.5L14 13h-3v3h3.5c1.9 0 3.5-1.6 3.5-3.5 0-1.8-1.4-3.3-3.2-3.5z";break;case"cloud":e="M14.9 9c1.8.2 3.1 1.7 3.1 3.5 0 1.9-1.6 3.5-3.5 3.5h-10C2.6 16 1 14.4 1 12.5 1 10.7 2.3 9.3 4.1 9 4 8.9 4 8.7 4 8.5 4 7.1 5.1 6 6.5 6c.3 0 .7.1.9.2C8.1 4.9 9.4 4 11 4c2.2 0 4 1.8 4 4 0 .4-.1.7-.1 1z";break;case"columns":e="M3 15h6V5H3v10zm8 0h6V5h-6v10z";break;case"controls-back":e="M2 10l10-6v3.6L18 4v12l-6-3.6V16z";break;case"controls-forward":e="M18 10L8 16v-3.6L2 16V4l6 3.6V4z";break;case"controls-pause":e="M5 16V4h3v12H5zm7-12h3v12h-3V4z";break;case"controls-play":e="M5 4l10 6-10 6V4z";break;case"controls-repeat":e="M5 7v3l-2 1.5V5h11V3l4 3.01L14 9V7H5zm10 6v-3l2-1.5V15H6v2l-4-3.01L6 11v2h9z";break;case"controls-skipback":e="M11.98 7.63l6-3.6v12l-6-3.6v3.6l-8-4.8v4.8h-2v-12h2v4.8l8-4.8v3.6z";break;case"controls-skipforward":e="M8 12.4L2 16V4l6 3.6V4l8 4.8V4h2v12h-2v-4.8L8 16v-3.6z";break;case"controls-volumeoff":e="M2 7h4l5-4v14l-5-4H2V7z";break;case"controls-volumeon":e="M2 7h4l5-4v14l-5-4H2V7zm12.69-2.46C14.82 4.59 18 5.92 18 10s-3.18 5.41-3.31 5.46c-.06.03-.13.04-.19.04-.2 0-.39-.12-.46-.31-.11-.26.02-.55.27-.65.11-.05 2.69-1.15 2.69-4.54 0-3.41-2.66-4.53-2.69-4.54-.25-.1-.38-.39-.27-.65.1-.25.39-.38.65-.27zM16 10c0 2.57-2.23 3.43-2.32 3.47-.06.02-.12.03-.18.03-.2 0-.39-.12-.47-.32-.1-.26.04-.55.29-.65.07-.02 1.68-.67 1.68-2.53s-1.61-2.51-1.68-2.53c-.25-.1-.38-.39-.29-.65.1-.25.39-.39.65-.29.09.04 2.32.9 2.32 3.47z";break;case"cover-image":e="M2.2 1h15.5c.7 0 1.3.6 1.3 1.2v11.5c0 .7-.6 1.2-1.2 1.2H2.2c-.6.1-1.2-.5-1.2-1.1V2.2C1 1.6 1.6 1 2.2 1zM17 13V3H3v10h14zm-4-4s0-5 3-5v7c0 .6-.4 1-1 1H5c-.6 0-1-.4-1-1V7c2 0 3 4 3 4s1-4 3-4 3 2 3 2zM4 17h12v2H4z";break;case"dashboard":e="M3.76 16h12.48c1.1-1.37 1.76-3.11 1.76-5 0-4.42-3.58-8-8-8s-8 3.58-8 8c0 1.89.66 3.63 1.76 5zM10 4c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zM6 6c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm8 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm-5.37 5.55L12 7v6c0 1.1-.9 2-2 2s-2-.9-2-2c0-.57.24-1.08.63-1.45zM4 10c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm12 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm-5 3c0-.55-.45-1-1-1s-1 .45-1 1 .45 1 1 1 1-.45 1-1z";break;case"desktop":e="M3 2h14c.55 0 1 .45 1 1v10c0 .55-.45 1-1 1h-5v2h2c.55 0 1 .45 1 1v1H5v-1c0-.55.45-1 1-1h2v-2H3c-.55 0-1-.45-1-1V3c0-.55.45-1 1-1zm13 9V4H4v7h12zM5 5h9L5 9V5z";break;case"dismiss":e="M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm5 11l-3-3 3-3-2-2-3 3-3-3-2 2 3 3-3 3 2 2 3-3 3 3z";break;case"download":e="M14.01 4v6h2V2H4v8h2.01V4h8zm-2 2v6h3l-5 6-5-6h3V6h4z";break;case"edit":e="M13.89 3.39l2.71 2.72c.46.46.42 1.24.03 1.64l-8.01 8.02-5.56 1.16 1.16-5.58s7.6-7.63 7.99-8.03c.39-.39 1.22-.39 1.68.07zm-2.73 2.79l-5.59 5.61 1.11 1.11 5.54-5.65zm-2.97 8.23l5.58-5.6-1.07-1.08-5.59 5.6z";break;case"editor-aligncenter":e="M14 5V3H6v2h8zm3 4V7H3v2h14zm-3 4v-2H6v2h8zm3 4v-2H3v2h14z";break;case"editor-alignleft":e="M12 5V3H3v2h9zm5 4V7H3v2h14zm-5 4v-2H3v2h9zm5 4v-2H3v2h14z";break;case"editor-alignright":e="M17 5V3H8v2h9zm0 4V7H3v2h14zm0 4v-2H8v2h9zm0 4v-2H3v2h14z";break;case"editor-bold":e="M6 4v13h4.54c1.37 0 2.46-.33 3.26-1 .8-.66 1.2-1.58 1.2-2.77 0-.84-.17-1.51-.51-2.01s-.9-.85-1.67-1.03v-.09c.57-.1 1.02-.4 1.36-.9s.51-1.13.51-1.91c0-1.14-.39-1.98-1.17-2.5C12.75 4.26 11.5 4 9.78 4H6zm2.57 5.15V6.26h1.36c.73 0 1.27.11 1.61.32.34.22.51.58.51 1.07 0 .54-.16.92-.47 1.15s-.82.35-1.51.35h-1.5zm0 2.19h1.6c1.44 0 2.16.53 2.16 1.61 0 .6-.17 1.05-.51 1.34s-.86.43-1.57.43H8.57v-3.38z";break;case"editor-break":e="M16 4h2v9H7v3l-5-4 5-4v3h9V4z";break;case"editor-code":e="M9 6l-4 4 4 4-1 2-6-6 6-6zm2 8l4-4-4-4 1-2 6 6-6 6z";break;case"editor-contract":e="M15.75 6.75L18 3v14l-2.25-3.75L17 12h-4v4l1.25-1.25L18 17H2l3.75-2.25L7 16v-4H3l1.25 1.25L2 17V3l2.25 3.75L3 8h4V4L5.75 5.25 2 3h16l-3.75 2.25L13 4v4h4z";break;case"editor-customchar":e="M10 5.4c1.27 0 2.24.36 2.91 1.08.66.71 1 1.76 1 3.13 0 1.28-.23 2.37-.69 3.27-.47.89-1.27 1.52-2.22 2.12v2h6v-2h-3.69c.92-.64 1.62-1.34 2.12-2.34.49-1.01.74-2.13.74-3.35 0-1.78-.55-3.19-1.65-4.22S11.92 3.54 10 3.54s-3.43.53-4.52 1.57c-1.1 1.04-1.65 2.44-1.65 4.2 0 1.21.24 2.31.73 3.33.48 1.01 1.19 1.71 2.1 2.36H3v2h6v-2c-.98-.64-1.8-1.28-2.24-2.17-.45-.89-.67-1.96-.67-3.22 0-1.37.33-2.41 1-3.13C7.75 5.76 8.72 5.4 10 5.4z";break;case"editor-expand":e="M7 8h6v4H7zm-5 5v4h4l-1.2-1.2L7 12l-3.8 2.2M14 17h4v-4l-1.2 1.2L13 12l2.2 3.8M14 3l1.3 1.3L13 8l3.8-2.2L18 7V3M6 3H2v4l1.2-1.2L7 8 4.7 4.3";break;case"editor-help":e="M17 10c0-3.87-3.14-7-7-7-3.87 0-7 3.13-7 7s3.13 7 7 7c3.86 0 7-3.13 7-7zm-6.3 1.48H9.14v-.43c0-.38.08-.7.24-.98s.46-.57.88-.89c.41-.29.68-.53.81-.71.14-.18.2-.39.2-.62 0-.25-.09-.44-.28-.58-.19-.13-.45-.19-.79-.19-.58 0-1.25.19-2 .57l-.64-1.28c.87-.49 1.8-.74 2.77-.74.81 0 1.45.2 1.92.58.48.39.71.91.71 1.55 0 .43-.09.8-.29 1.11-.19.32-.57.67-1.11 1.06-.38.28-.61.49-.71.63-.1.15-.15.34-.15.57v.35zm-1.47 2.74c-.18-.17-.27-.42-.27-.73 0-.33.08-.58.26-.75s.43-.25.77-.25c.32 0 .57.09.75.26s.27.42.27.74c0 .3-.09.55-.27.72-.18.18-.43.27-.75.27-.33 0-.58-.09-.76-.26z";break;case"editor-indent":e="M3 5V3h9v2H3zm10-1V3h4v1h-4zm0 3h2V5l4 3.5-4 3.5v-2h-2V7zM3 8V6h9v2H3zm2 3V9h7v2H5zm-2 3v-2h9v2H3zm10 0v-1h4v1h-4zm-4 3v-2h3v2H9z";break;case"editor-insertmore":e="M17 7V3H3v4h14zM6 11V9H3v2h3zm6 0V9H8v2h4zm5 0V9h-3v2h3zm0 6v-4H3v4h14z";break;case"editor-italic":e="M14.78 6h-2.13l-2.8 9h2.12l-.62 2H4.6l.62-2h2.14l2.8-9H8.03l.62-2h6.75z";break;case"editor-justify":e="M2 3h16v2H2V3zm0 4h16v2H2V7zm0 4h16v2H2v-2zm0 4h16v2H2v-2z";break;case"editor-kitchensink":e="M19 2v6H1V2h18zm-1 5V3H2v4h16zM5 4v2H3V4h2zm3 0v2H6V4h2zm3 0v2H9V4h2zm3 0v2h-2V4h2zm3 0v2h-2V4h2zm2 5v9H1V9h18zm-1 8v-7H2v7h16zM5 11v2H3v-2h2zm3 0v2H6v-2h2zm3 0v2H9v-2h2zm6 0v2h-5v-2h5zm-6 3v2H3v-2h8zm3 0v2h-2v-2h2zm3 0v2h-2v-2h2z";break;case"editor-ltr":e="M5.52 2h7.43c.55 0 1 .45 1 1s-.45 1-1 1h-1v13c0 .55-.45 1-1 1s-1-.45-1-1V5c0-.55-.45-1-1-1s-1 .45-1 1v12c0 .55-.45 1-1 1s-1-.45-1-1v-5.96h-.43C3.02 11.04 1 9.02 1 6.52S3.02 2 5.52 2zM14 14l5-4-5-4v8z";break;case"editor-ol-rtl":e="M15.025 8.75a1.048 1.048 0 0 1 .45-.1.507.507 0 0 1 .35.11.455.455 0 0 1 .13.36.803.803 0 0 1-.06.3 1.448 1.448 0 0 1-.19.33c-.09.11-.29.32-.58.62l-.99 1v.58h2.76v-.7h-1.72v-.04l.51-.48a7.276 7.276 0 0 0 .7-.71 1.75 1.75 0 0 0 .3-.49 1.254 1.254 0 0 0 .1-.51.968.968 0 0 0-.16-.56 1.007 1.007 0 0 0-.44-.37 1.512 1.512 0 0 0-.65-.14 1.98 1.98 0 0 0-.51.06 1.9 1.9 0 0 0-.42.15 3.67 3.67 0 0 0-.48.35l.45.54a2.505 2.505 0 0 1 .45-.3zM16.695 15.29a1.29 1.29 0 0 0-.74-.3v-.02a1.203 1.203 0 0 0 .65-.37.973.973 0 0 0 .23-.65.81.81 0 0 0-.37-.71 1.72 1.72 0 0 0-1-.26 2.185 2.185 0 0 0-1.33.4l.4.6a1.79 1.79 0 0 1 .46-.23 1.18 1.18 0 0 1 .41-.07c.38 0 .58.15.58.46a.447.447 0 0 1-.22.43 1.543 1.543 0 0 1-.7.12h-.31v.66h.31a1.764 1.764 0 0 1 .75.12.433.433 0 0 1 .23.41.55.55 0 0 1-.2.47 1.084 1.084 0 0 1-.63.15 2.24 2.24 0 0 1-.57-.08 2.671 2.671 0 0 1-.52-.2v.74a2.923 2.923 0 0 0 1.18.22 1.948 1.948 0 0 0 1.22-.33 1.077 1.077 0 0 0 .43-.92.836.836 0 0 0-.26-.64zM15.005 4.17c.06-.05.16-.14.3-.28l-.02.42V7h.84V3h-.69l-1.29 1.03.4.51zM4.02 5h9v1h-9zM4.02 10h9v1h-9zM4.02 15h9v1h-9z";break;case"editor-ol":e="M6 7V3h-.69L4.02 4.03l.4.51.46-.37c.06-.05.16-.14.3-.28l-.02.42V7H6zm2-2h9v1H8V5zm-1.23 6.95v-.7H5.05v-.04l.51-.48c.33-.31.57-.54.7-.71.14-.17.24-.33.3-.49.07-.16.1-.33.1-.51 0-.21-.05-.4-.16-.56-.1-.16-.25-.28-.44-.37s-.41-.14-.65-.14c-.19 0-.36.02-.51.06-.15.03-.29.09-.42.15-.12.07-.29.19-.48.35l.45.54c.16-.13.31-.23.45-.3.15-.07.3-.1.45-.1.14 0 .26.03.35.11s.13.2.13.36c0 .1-.02.2-.06.3s-.1.21-.19.33c-.09.11-.29.32-.58.62l-.99 1v.58h2.76zM8 10h9v1H8v-1zm-1.29 3.95c0-.3-.12-.54-.37-.71-.24-.17-.58-.26-1-.26-.52 0-.96.13-1.33.4l.4.6c.17-.11.32-.19.46-.23.14-.05.27-.07.41-.07.38 0 .58.15.58.46 0 .2-.07.35-.22.43s-.38.12-.7.12h-.31v.66h.31c.34 0 .59.04.75.12.15.08.23.22.23.41 0 .22-.07.37-.2.47-.14.1-.35.15-.63.15-.19 0-.38-.03-.57-.08s-.36-.12-.52-.2v.74c.34.15.74.22 1.18.22.53 0 .94-.11 1.22-.33.29-.22.43-.52.43-.92 0-.27-.09-.48-.26-.64s-.42-.26-.74-.3v-.02c.27-.06.49-.19.65-.37.15-.18.23-.39.23-.65zM8 15h9v1H8v-1z";break;case"editor-outdent":e="M7 4V3H3v1h4zm10 1V3H8v2h9zM7 7H5V5L1 8.5 5 12v-2h2V7zm10 1V6H8v2h9zm-2 3V9H8v2h7zm2 3v-2H8v2h9zM7 14v-1H3v1h4zm4 3v-2H8v2h3z";break;case"editor-paragraph":e="M15 2H7.54c-.83 0-1.59.2-2.28.6-.7.41-1.25.96-1.65 1.65C3.2 4.94 3 5.7 3 6.52s.2 1.58.61 2.27c.4.69.95 1.24 1.65 1.64.69.41 1.45.61 2.28.61h.43V17c0 .27.1.51.29.71.2.19.44.29.71.29.28 0 .51-.1.71-.29.2-.2.3-.44.3-.71V5c0-.27.09-.51.29-.71.2-.19.44-.29.71-.29s.51.1.71.29c.19.2.29.44.29.71v12c0 .27.1.51.3.71.2.19.43.29.71.29.27 0 .51-.1.71-.29.19-.2.29-.44.29-.71V4H15c.27 0 .5-.1.7-.3.2-.19.3-.43.3-.7s-.1-.51-.3-.71C15.5 2.1 15.27 2 15 2z";break;case"editor-paste-text":e="M12.38 2L15 5v1H5V5l2.64-3h4.74zM10 5c.55 0 1-.44 1-1 0-.55-.45-1-1-1s-1 .45-1 1c0 .56.45 1 1 1zm5.45-1H17c.55 0 1 .45 1 1v12c0 .56-.45 1-1 1H3c-.55 0-1-.44-1-1V5c0-.55.45-1 1-1h1.55L4 4.63V7h12V4.63zM14 11V9H6v2h3v5h2v-5h3z";break;case"editor-paste-word":e="M12.38 2L15 5v1H5V5l2.64-3h4.74zM10 5c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm8 12V5c0-.55-.45-1-1-1h-1.54l.54.63V7H4V4.62L4.55 4H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h14c.55 0 1-.45 1-1zm-3-8l-2 7h-2l-1-5-1 5H6.92L5 9h2l1 5 1-5h2l1 5 1-5h2z";break;case"editor-quote":e="M9.49 13.22c0-.74-.2-1.38-.61-1.9-.62-.78-1.83-.88-2.53-.72-.29-1.65 1.11-3.75 2.92-4.65L7.88 4c-2.73 1.3-5.42 4.28-4.96 8.05C3.21 14.43 4.59 16 6.54 16c.85 0 1.56-.25 2.12-.75s.83-1.18.83-2.03zm8.05 0c0-.74-.2-1.38-.61-1.9-.63-.78-1.83-.88-2.53-.72-.29-1.65 1.11-3.75 2.92-4.65L15.93 4c-2.73 1.3-5.41 4.28-4.95 8.05.29 2.38 1.66 3.95 3.61 3.95.85 0 1.56-.25 2.12-.75s.83-1.18.83-2.03z";break;case"editor-removeformatting":e="M14.29 4.59l1.1 1.11c.41.4.61.94.61 1.47v2.12c0 .53-.2 1.07-.61 1.47l-6.63 6.63c-.4.41-.94.61-1.47.61s-1.07-.2-1.47-.61l-1.11-1.1-1.1-1.11c-.41-.4-.61-.94-.61-1.47v-2.12c0-.54.2-1.07.61-1.48l6.63-6.62c.4-.41.94-.61 1.47-.61s1.06.2 1.47.61zm-6.21 9.7l6.42-6.42c.39-.39.39-1.03 0-1.43L12.36 4.3c-.19-.19-.45-.29-.72-.29s-.52.1-.71.29l-6.42 6.42c-.39.4-.39 1.04 0 1.43l2.14 2.14c.38.38 1.04.38 1.43 0z";break;case"editor-rtl":e="M5.52 2h7.43c.55 0 1 .45 1 1s-.45 1-1 1h-1v13c0 .55-.45 1-1 1s-1-.45-1-1V5c0-.55-.45-1-1-1s-1 .45-1 1v12c0 .55-.45 1-1 1s-1-.45-1-1v-5.96h-.43C3.02 11.04 1 9.02 1 6.52S3.02 2 5.52 2zM19 6l-5 4 5 4V6z";break;case"editor-spellcheck":e="M15.84 2.76c.25 0 .49.04.71.11.23.07.44.16.64.25l.35-.81c-.52-.26-1.08-.39-1.69-.39-.58 0-1.09.13-1.52.37-.43.25-.76.61-.99 1.08C13.11 3.83 13 4.38 13 5c0 .99.23 1.75.7 2.28s1.15.79 2.02.79c.6 0 1.13-.09 1.6-.26v-.84c-.26.08-.51.14-.74.19-.24.05-.49.08-.74.08-.59 0-1.04-.19-1.34-.57-.32-.37-.47-.93-.47-1.66 0-.7.16-1.25.48-1.65.33-.4.77-.6 1.33-.6zM6.5 8h1.04L5.3 2H4.24L2 8h1.03l.58-1.66H5.9zM8 2v6h2.17c.67 0 1.19-.15 1.57-.46.38-.3.56-.72.56-1.26 0-.4-.1-.72-.3-.95-.19-.24-.5-.39-.93-.47v-.04c.35-.06.6-.21.78-.44.18-.24.28-.53.28-.88 0-.52-.19-.9-.56-1.14-.36-.24-.96-.36-1.79-.36H8zm.98 2.48V2.82h.85c.44 0 .77.06.97.19.21.12.31.33.31.61 0 .31-.1.53-.29.66-.18.13-.48.2-.89.2h-.95zM5.64 5.5H3.9l.54-1.56c.14-.4.25-.76.32-1.1l.15.52c.07.23.13.4.17.51zm3.34-.23h.99c.44 0 .76.08.98.23.21.15.32.38.32.69 0 .34-.11.59-.32.75s-.52.24-.93.24H8.98V5.27zM4 13l5 5 9-8-1-1-8 6-4-3z";break;case"editor-strikethrough":e="M15.82 12.25c.26 0 .5-.02.74-.07.23-.05.48-.12.73-.2v.84c-.46.17-.99.26-1.58.26-.88 0-1.54-.26-2.01-.79-.39-.44-.62-1.04-.68-1.79h-.94c.12.21.18.48.18.79 0 .54-.18.95-.55 1.26-.38.3-.9.45-1.56.45H8v-2.5H6.59l.93 2.5H6.49l-.59-1.67H3.62L3.04 13H2l.93-2.5H2v-1h1.31l.93-2.49H5.3l.92 2.49H8V7h1.77c1 0 1.41.17 1.77.41.37.24.55.62.55 1.13 0 .35-.09.64-.27.87l-.08.09h1.29c.05-.4.15-.77.31-1.1.23-.46.55-.82.98-1.06.43-.25.93-.37 1.51-.37.61 0 1.17.12 1.69.38l-.35.81c-.2-.1-.42-.18-.64-.25s-.46-.11-.71-.11c-.55 0-.99.2-1.31.59-.23.29-.38.66-.44 1.11H17v1h-2.95c.06.5.2.9.44 1.19.3.37.75.56 1.33.56zM4.44 8.96l-.18.54H5.3l-.22-.61c-.04-.11-.09-.28-.17-.51-.07-.24-.12-.41-.14-.51-.08.33-.18.69-.33 1.09zm4.53-1.09V9.5h1.19c.28-.02.49-.09.64-.18.19-.13.28-.35.28-.66 0-.28-.1-.48-.3-.61-.2-.12-.53-.18-.97-.18h-.84zm-3.33 2.64v-.01H3.91v.01h1.73zm5.28.01l-.03-.02H8.97v1.68h1.04c.4 0 .71-.08.92-.23.21-.16.31-.4.31-.74 0-.31-.11-.54-.32-.69z";break;case"editor-table":e="M18 17V3H2v14h16zM16 7H4V5h12v2zm-7 4H4V9h5v2zm7 0h-5V9h5v2zm-7 4H4v-2h5v2zm7 0h-5v-2h5v2z";break;case"editor-textcolor":e="M13.23 15h1.9L11 4H9L5 15h1.88l1.07-3h4.18zm-1.53-4.54H8.51L10 5.6z";break;case"editor-ul":e="M5.5 7C4.67 7 4 6.33 4 5.5 4 4.68 4.67 4 5.5 4 6.32 4 7 4.68 7 5.5 7 6.33 6.32 7 5.5 7zM8 5h9v1H8V5zm-2.5 7c-.83 0-1.5-.67-1.5-1.5C4 9.68 4.67 9 5.5 9c.82 0 1.5.68 1.5 1.5 0 .83-.68 1.5-1.5 1.5zM8 10h9v1H8v-1zm-2.5 7c-.83 0-1.5-.67-1.5-1.5 0-.82.67-1.5 1.5-1.5.82 0 1.5.68 1.5 1.5 0 .83-.68 1.5-1.5 1.5zM8 15h9v1H8v-1z";break;case"editor-underline":e="M14 5h-2v5.71c0 1.99-1.12 2.98-2.45 2.98-1.32 0-2.55-1-2.55-2.96V5H5v5.87c0 1.91 1 4.54 4.48 4.54 3.49 0 4.52-2.58 4.52-4.5V5zm0 13v-2H5v2h9z";break;case"editor-unlink":e="M17.74 2.26c1.68 1.69 1.68 4.41 0 6.1l-1.53 1.52c-.32.33-.69.58-1.08.77L13 10l1.69-1.64.76-.77.76-.76c.84-.84.84-2.2 0-3.04-.84-.85-2.2-.85-3.04 0l-.77.76-.76.76L10 7l-.65-2.14c.19-.38.44-.75.77-1.07l1.52-1.53c1.69-1.68 4.42-1.68 6.1 0zM2 4l8 6-6-8zm4-2l4 8-2-8H6zM2 6l8 4-8-2V6zm7.36 7.69L10 13l.74 2.35-1.38 1.39c-1.69 1.68-4.41 1.68-6.1 0-1.68-1.68-1.68-4.42 0-6.1l1.39-1.38L7 10l-.69.64-1.52 1.53c-.85.84-.85 2.2 0 3.04.84.85 2.2.85 3.04 0zM18 16l-8-6 6 8zm-4 2l-4-8 2 8h2zm4-4l-8-4 8 2v2z";break;case"editor-video":e="M16 2h-3v1H7V2H4v15h3v-1h6v1h3V2zM6 3v1H5V3h1zm9 0v1h-1V3h1zm-2 1v5H7V4h6zM6 5v1H5V5h1zm9 0v1h-1V5h1zM6 7v1H5V7h1zm9 0v1h-1V7h1zM6 9v1H5V9h1zm9 0v1h-1V9h1zm-2 1v5H7v-5h6zm-7 1v1H5v-1h1zm9 0v1h-1v-1h1zm-9 2v1H5v-1h1zm9 0v1h-1v-1h1zm-9 2v1H5v-1h1zm9 0v1h-1v-1h1z";break;case"ellipsis":e="M5 10c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm12-2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-7 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z";break;case"email-alt":e="M19 14.5v-9c0-.83-.67-1.5-1.5-1.5H3.49c-.83 0-1.5.67-1.5 1.5v9c0 .83.67 1.5 1.5 1.5H17.5c.83 0 1.5-.67 1.5-1.5zm-1.31-9.11c.33.33.15.67-.03.84L13.6 9.95l3.9 4.06c.12.14.2.36.06.51-.13.16-.43.15-.56.05l-4.37-3.73-2.14 1.95-2.13-1.95-4.37 3.73c-.13.1-.43.11-.56-.05-.14-.15-.06-.37.06-.51l3.9-4.06-4.06-3.72c-.18-.17-.36-.51-.03-.84s.67-.17.95.07l6.24 5.04 6.25-5.04c.28-.24.62-.4.95-.07z";break;case"email-alt2":e="M18.01 11.18V2.51c0-1.19-.9-1.81-2-1.37L4 5.91c-1.1.44-2 1.77-2 2.97v8.66c0 1.2.9 1.81 2 1.37l12.01-4.77c1.1-.44 2-1.76 2-2.96zm-1.43-7.46l-6.04 9.33-6.65-4.6c-.1-.07-.36-.32-.17-.64.21-.36.65-.21.65-.21l6.3 2.32s4.83-6.34 5.11-6.7c.13-.17.43-.34.73-.13.29.2.16.49.07.63z";break;case"email":e="M3.87 4h13.25C18.37 4 19 4.59 19 5.79v8.42c0 1.19-.63 1.79-1.88 1.79H3.87c-1.25 0-1.88-.6-1.88-1.79V5.79c0-1.2.63-1.79 1.88-1.79zm6.62 8.6l6.74-5.53c.24-.2.43-.66.13-1.07-.29-.41-.82-.42-1.17-.17l-5.7 3.86L4.8 5.83c-.35-.25-.88-.24-1.17.17-.3.41-.11.87.13 1.07z";break;case"embed-audio":e="M17 4H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-7 3H7v4c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2c.4 0 .7.1 1 .3V5h4v2zm4 3.5L12.5 12l1.5 1.5V15l-3-3 3-3v1.5zm1 4.5v-1.5l1.5-1.5-1.5-1.5V9l3 3-3 3z";break;case"embed-generic":e="M17 4H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-3 6.5L12.5 12l1.5 1.5V15l-3-3 3-3v1.5zm1 4.5v-1.5l1.5-1.5-1.5-1.5V9l3 3-3 3z";break;case"embed-photo":e="M17 4H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-7 8H3V6h7v6zm4-1.5L12.5 12l1.5 1.5V15l-3-3 3-3v1.5zm1 4.5v-1.5l1.5-1.5-1.5-1.5V9l3 3-3 3zm-6-4V8.5L7.2 10 6 9.2 4 11h5zM4.6 8.6c.6 0 1-.4 1-1s-.4-1-1-1-1 .4-1 1 .4 1 1 1z";break;case"embed-post":e="M17 4H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM8.6 9l-.4.3c-.4.4-.5 1.1-.2 1.6l-.8.8-1.1-1.1-1.3 1.3c-.2.2-1.6 1.3-1.8 1.1-.2-.2.9-1.6 1.1-1.8l1.3-1.3-1.1-1.1.8-.8c.5.3 1.2.3 1.6-.2l.3-.3c.5-.5.5-1.2.2-1.7L8 5l3 2.9-.8.8c-.5-.2-1.2-.2-1.6.3zm5.4 1.5L12.5 12l1.5 1.5V15l-3-3 3-3v1.5zm1 4.5v-1.5l1.5-1.5-1.5-1.5V9l3 3-3 3z";break;case"embed-video":e="M17 4H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-7 6.5L8 9.1V11H3V6h5v1.8l2-1.3v4zm4 0L12.5 12l1.5 1.5V15l-3-3 3-3v1.5zm1 4.5v-1.5l1.5-1.5-1.5-1.5V9l3 3-3 3z";break;case"excerpt-view":e="M19 18V2c0-.55-.45-1-1-1H2c-.55 0-1 .45-1 1v16c0 .55.45 1 1 1h16c.55 0 1-.45 1-1zM4 3c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm13 0v6H6V3h11zM4 11c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm13 0v6H6v-6h11z";break;case"exit":e="M13 3v2h2v10h-2v2h4V3h-4zm0 8V9H5.4l4.3-4.3-1.4-1.4L1.6 10l6.7 6.7 1.4-1.4L5.4 11H13z";break;case"external":e="M9 3h8v8l-2-1V6.92l-5.6 5.59-1.41-1.41L14.08 5H10zm3 12v-3l2-2v7H3V6h8L9 8H5v7h7z";break;case"facebook-alt":e="M8.46 18h2.93v-7.3h2.45l.37-2.84h-2.82V6.04c0-.82.23-1.38 1.41-1.38h1.51V2.11c-.26-.03-1.15-.11-2.19-.11-2.18 0-3.66 1.33-3.66 3.76v2.1H6v2.84h2.46V18z";break;case"facebook":e="M2.89 2h14.23c.49 0 .88.39.88.88v14.24c0 .48-.39.88-.88.88h-4.08v-6.2h2.08l.31-2.41h-2.39V7.85c0-.7.2-1.18 1.2-1.18h1.28V4.51c-.22-.03-.98-.09-1.86-.09-1.85 0-3.11 1.12-3.11 3.19v1.78H8.46v2.41h2.09V18H2.89c-.49 0-.89-.4-.89-.88V2.88c0-.49.4-.88.89-.88z";break;case"feedback":e="M2 2h16c.55 0 1 .45 1 1v14c0 .55-.45 1-1 1H2c-.55 0-1-.45-1-1V3c0-.55.45-1 1-1zm15 14V7H3v9h14zM4 8v1h3V8H4zm4 0v3h8V8H8zm-4 4v1h3v-1H4zm4 0v3h8v-3H8z";break;case"filter":e="M3 4.5v-2s3.34-1 7-1 7 1 7 1v2l-5 7.03v6.97s-1.22-.09-2.25-.59S8 16.5 8 16.5v-4.97z";break;case"flag":e="M5 18V3H3v15h2zm1-6V4c3-1 7 1 11 0v8c-3 1.27-8-1-11 0z";break;case"format-aside":e="M1 1h18v12l-6 6H1V1zm3 3v1h12V4H4zm0 4v1h12V8H4zm6 5v-1H4v1h6zm2 4l5-5h-5v5z";break;case"format-audio":e="M6.99 3.08l11.02-2c.55-.08.99.45.99 1V14.5c0 1.94-1.57 3.5-3.5 3.5S12 16.44 12 14.5c0-1.93 1.57-3.5 3.5-3.5.54 0 1.04.14 1.5.35V5.08l-9 2V16c-.24 1.7-1.74 3-3.5 3C2.57 19 1 17.44 1 15.5 1 13.57 2.57 12 4.5 12c.54 0 1.04.14 1.5.35V4.08c0-.55.44-.91.99-1z";break;case"format-chat":e="M11 6h-.82C9.07 6 8 7.2 8 8.16V10l-3 3v-3H3c-1.1 0-2-.9-2-2V3c0-1.1.9-2 2-2h6c1.1 0 2 .9 2 2v3zm0 1h6c1.1 0 2 .9 2 2v5c0 1.1-.9 2-2 2h-2v3l-3-3h-1c-1.1 0-2-.9-2-2V9c0-1.1.9-2 2-2z";break;case"format-gallery":e="M16 4h1.96c.57 0 1.04.47 1.04 1.04v12.92c0 .57-.47 1.04-1.04 1.04H5.04C4.47 19 4 18.53 4 17.96V16H2.04C1.47 16 1 15.53 1 14.96V2.04C1 1.47 1.47 1 2.04 1h12.92c.57 0 1.04.47 1.04 1.04V4zM3 14h11V3H3v11zm5-8.5C8 4.67 7.33 4 6.5 4S5 4.67 5 5.5 5.67 7 6.5 7 8 6.33 8 5.5zm2 4.5s1-5 3-5v8H4V7c2 0 2 3 2 3s.33-2 2-2 2 2 2 2zm7 7V6h-1v8.96c0 .57-.47 1.04-1.04 1.04H6v1h11z";break;case"format-image":e="M2.25 1h15.5c.69 0 1.25.56 1.25 1.25v15.5c0 .69-.56 1.25-1.25 1.25H2.25C1.56 19 1 18.44 1 17.75V2.25C1 1.56 1.56 1 2.25 1zM17 17V3H3v14h14zM10 6c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2zm3 5s0-6 3-6v10c0 .55-.45 1-1 1H5c-.55 0-1-.45-1-1V8c2 0 3 4 3 4s1-3 3-3 3 2 3 2z";break;case"format-quote":e="M8.54 12.74c0-.87-.24-1.61-.72-2.22-.73-.92-2.14-1.03-2.96-.85-.34-1.93 1.3-4.39 3.42-5.45L6.65 1.94C3.45 3.46.31 6.96.85 11.37 1.19 14.16 2.8 16 5.08 16c1 0 1.83-.29 2.48-.88.66-.59.98-1.38.98-2.38zm9.43 0c0-.87-.24-1.61-.72-2.22-.73-.92-2.14-1.03-2.96-.85-.34-1.93 1.3-4.39 3.42-5.45l-1.63-2.28c-3.2 1.52-6.34 5.02-5.8 9.43.34 2.79 1.95 4.63 4.23 4.63 1 0 1.83-.29 2.48-.88.66-.59.98-1.38.98-2.38z";break;case"format-status":e="M10 1c7 0 9 2.91 9 6.5S17 14 10 14s-9-2.91-9-6.5S3 1 10 1zM5.5 9C6.33 9 7 8.33 7 7.5S6.33 6 5.5 6 4 6.67 4 7.5 4.67 9 5.5 9zM10 9c.83 0 1.5-.67 1.5-1.5S10.83 6 10 6s-1.5.67-1.5 1.5S9.17 9 10 9zm4.5 0c.83 0 1.5-.67 1.5-1.5S15.33 6 14.5 6 13 6.67 13 7.5 13.67 9 14.5 9zM6 14.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5-1.5-.67-1.5-1.5.67-1.5 1.5-1.5zm-3 2c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1z";break;case"format-video":e="M2 1h16c.55 0 1 .45 1 1v16l-18-.02V2c0-.55.45-1 1-1zm4 1L4 5h1l2-3H6zm4 0H9L7 5h1zm3 0h-1l-2 3h1zm3 0h-1l-2 3h1zm1 14V6H3v10h14zM8 7l6 4-6 4V7z";break;case"forms":e="M2 2h7v7H2V2zm9 0v7h7V2h-7zM5.5 4.5L7 3H4zM12 8V3h5v5h-5zM4.5 5.5L3 4v3zM8 4L6.5 5.5 8 7V4zM5.5 6.5L4 8h3zM9 18v-7H2v7h7zm9 0h-7v-7h7v7zM8 12v5H3v-5h5zm6.5 1.5L16 12h-3zM12 16l1.5-1.5L12 13v3zm3.5-1.5L17 16v-3zm-1 1L13 17h3z";break;case"googleplus":e="M6.73 10h5.4c.05.29.09.57.09.95 0 3.27-2.19 5.6-5.49 5.6-3.17 0-5.73-2.57-5.73-5.73 0-3.17 2.56-5.73 5.73-5.73 1.54 0 2.84.57 3.83 1.5l-1.55 1.5c-.43-.41-1.17-.89-2.28-.89-1.96 0-3.55 1.62-3.55 3.62 0 1.99 1.59 3.61 3.55 3.61 2.26 0 3.11-1.62 3.24-2.47H6.73V10zM19 10v1.64h-1.64v1.63h-1.63v-1.63h-1.64V10h1.64V8.36h1.63V10H19z";break;case"grid-view":e="M2 1h16c.55 0 1 .45 1 1v16c0 .55-.45 1-1 1H2c-.55 0-1-.45-1-1V2c0-.55.45-1 1-1zm7.01 7.99v-6H3v6h6.01zm8 0v-6h-6v6h6zm-8 8.01v-6H3v6h6.01zm8 0v-6h-6v6h6z";break;case"groups":e="M8.03 4.46c-.29 1.28.55 3.46 1.97 3.46 1.41 0 2.25-2.18 1.96-3.46-.22-.98-1.08-1.63-1.96-1.63-.89 0-1.74.65-1.97 1.63zm-4.13.9c-.25 1.08.47 2.93 1.67 2.93s1.92-1.85 1.67-2.93c-.19-.83-.92-1.39-1.67-1.39s-1.48.56-1.67 1.39zm8.86 0c-.25 1.08.47 2.93 1.66 2.93 1.2 0 1.92-1.85 1.67-2.93-.19-.83-.92-1.39-1.67-1.39-.74 0-1.47.56-1.66 1.39zm-.59 11.43l1.25-4.3C14.2 10 12.71 8.47 10 8.47c-2.72 0-4.21 1.53-3.44 4.02l1.26 4.3C8.05 17.51 9 18 10 18c.98 0 1.94-.49 2.17-1.21zm-6.1-7.63c-.49.67-.96 1.83-.42 3.59l1.12 3.79c-.34.2-.77.31-1.2.31-.85 0-1.65-.41-1.85-1.03l-1.07-3.65c-.65-2.11.61-3.4 2.92-3.4.27 0 .54.02.79.06-.1.1-.2.22-.29.33zm8.35-.39c2.31 0 3.58 1.29 2.92 3.4l-1.07 3.65c-.2.62-1 1.03-1.85 1.03-.43 0-.86-.11-1.2-.31l1.11-3.77c.55-1.78.08-2.94-.42-3.61-.08-.11-.18-.23-.28-.33.25-.04.51-.06.79-.06z";break;case"hammer":e="M17.7 6.32l1.41 1.42-3.47 3.41-1.42-1.42.84-.82c-.32-.76-.81-1.57-1.51-2.31l-4.61 6.59-5.26 4.7c-.39.39-1.02.39-1.42 0l-1.2-1.21c-.39-.39-.39-1.02 0-1.41l10.97-9.92c-1.37-.86-3.21-1.46-5.67-1.48 2.7-.82 4.95-.93 6.58-.3 1.7.66 2.82 2.2 3.91 3.58z";break;case"heading":e="M12.5 4v5.2h-5V4H5v13h2.5v-5.2h5V17H15V4";break;case"heart":e="M10 17.12c3.33-1.4 5.74-3.79 7.04-6.21 1.28-2.41 1.46-4.81.32-6.25-1.03-1.29-2.37-1.78-3.73-1.74s-2.68.63-3.63 1.46c-.95-.83-2.27-1.42-3.63-1.46s-2.7.45-3.73 1.74c-1.14 1.44-.96 3.84.34 6.25 1.28 2.42 3.69 4.81 7.02 6.21z";break;case"hidden":e="M17.2 3.3l.16.17c.39.39.39 1.02 0 1.41L4.55 17.7c-.39.39-1.03.39-1.41 0l-.17-.17c-.39-.39-.39-1.02 0-1.41l1.59-1.6c-1.57-1-2.76-2.3-3.56-3.93.81-1.65 2.03-2.98 3.64-3.99S8.04 5.09 10 5.09c1.2 0 2.33.21 3.4.6l2.38-2.39c.39-.39 1.03-.39 1.42 0zm-7.09 4.01c-.23.25-.34.54-.34.88 0 .31.12.58.31.81l1.8-1.79c-.13-.12-.28-.21-.45-.26-.11-.01-.28-.03-.49-.04-.33.03-.6.16-.83.4zM2.4 10.59c.69 1.23 1.71 2.25 3.05 3.05l1.28-1.28c-.51-.69-.77-1.47-.77-2.36 0-1.06.36-1.98 1.09-2.76-1.04.27-1.96.7-2.76 1.26-.8.58-1.43 1.27-1.89 2.09zm13.22-2.13l.96-.96c1.02.86 1.83 1.89 2.42 3.09-.81 1.65-2.03 2.98-3.64 3.99s-3.4 1.51-5.36 1.51c-.63 0-1.24-.07-1.83-.18l1.07-1.07c.25.02.5.05.76.05 1.63 0 3.13-.4 4.5-1.21s2.4-1.84 3.1-3.09c-.46-.82-1.09-1.51-1.89-2.09-.03-.01-.06-.03-.09-.04zm-5.58 5.58l4-4c-.01 1.1-.41 2.04-1.18 2.81-.78.78-1.72 1.18-2.82 1.19z";break;case"html":e="M4 16v-2H2v2H1v-5h1v2h2v-2h1v5H4zM7 16v-4H5.6v-1h3.7v1H8v4H7zM10 16v-5h1l1.4 3.4h.1L14 11h1v5h-1v-3.1h-.1l-1.1 2.5h-.6l-1.1-2.5H11V16h-1zM19 16h-3v-5h1v4h2v1zM9.4 4.2L7.1 6.5l2.3 2.3-.6 1.2-3.5-3.5L8.8 3l.6 1.2zm1.2 4.6l2.3-2.3-2.3-2.3.6-1.2 3.5 3.5-3.5 3.5-.6-1.2z";break;case"id-alt":e="M18 18H2V2h16v16zM8.05 7.53c.13-.07.24-.15.33-.24.09-.1.17-.21.24-.34.07-.14.13-.26.17-.37s.07-.22.1-.34L8.95 6c0-.04.01-.07.01-.09.05-.32.03-.61-.04-.9-.08-.28-.23-.52-.46-.72C8.23 4.1 7.95 4 7.6 4c-.2 0-.39.04-.56.11-.17.08-.31.18-.41.3-.11.13-.2.27-.27.44-.07.16-.11.33-.12.51s0 .36.01.55l.02.09c.01.06.03.15.06.25s.06.21.1.33.1.25.17.37c.08.12.16.23.25.33s.2.19.34.25c.13.06.28.09.43.09s.3-.03.43-.09zM16 5V4h-5v1h5zm0 2V6h-5v1h5zM7.62 8.83l-1.38-.88c-.41 0-.79.11-1.14.32-.35.22-.62.5-.81.85-.19.34-.29.7-.29 1.07v1.25l.2.05c.13.04.31.09.55.14.24.06.51.12.8.17.29.06.62.1 1 .14.37.04.73.06 1.07.06s.69-.02 1.07-.06.7-.09.98-.14c.27-.05.54-.1.82-.17.27-.06.45-.11.54-.13.09-.03.16-.05.21-.06v-1.25c0-.36-.1-.72-.31-1.07s-.49-.64-.84-.86-.72-.33-1.11-.33zM16 9V8h-3v1h3zm0 2v-1h-3v1h3zm0 3v-1H4v1h12zm0 2v-1H4v1h12z";break;case"id":e="M18 16H2V4h16v12zM7.05 8.53c.13-.07.24-.15.33-.24.09-.1.17-.21.24-.34.07-.14.13-.26.17-.37s.07-.22.1-.34L7.95 7c0-.04.01-.07.01-.09.05-.32.03-.61-.04-.9-.08-.28-.23-.52-.46-.72C7.23 5.1 6.95 5 6.6 5c-.2 0-.39.04-.56.11-.17.08-.31.18-.41.3-.11.13-.2.27-.27.44-.07.16-.11.33-.12.51s0 .36.01.55l.02.09c.01.06.03.15.06.25s.06.21.1.33.1.25.17.37c.08.12.16.23.25.33s.2.19.34.25c.13.06.28.09.43.09s.3-.03.43-.09zM17 9V5h-5v4h5zm-10.38.83l-1.38-.88c-.41 0-.79.11-1.14.32-.35.22-.62.5-.81.85-.19.34-.29.7-.29 1.07v1.25l.2.05c.13.04.31.09.55.14.24.06.51.12.8.17.29.06.62.1 1 .14.37.04.73.06 1.07.06s.69-.02 1.07-.06.7-.09.98-.14c.27-.05.54-.1.82-.17.27-.06.45-.11.54-.13.09-.03.16-.05.21-.06v-1.25c0-.36-.1-.72-.31-1.07s-.49-.64-.84-.86-.72-.33-1.11-.33zM17 11v-1h-5v1h5zm0 2v-1h-5v1h5zm0 2v-1H3v1h14z";break;case"image-crop":e="M19 12v3h-4v4h-3v-4H4V7H0V4h4V0h3v4h7l3-3 1 1-3 3v7h4zm-8-5H7v4zm-3 5h4V8z";break;case"image-filter":e="M14 5.87c0-2.2-1.79-4-4-4s-4 1.8-4 4c0 2.21 1.79 4 4 4s4-1.79 4-4zM3.24 10.66c-1.92 1.1-2.57 3.55-1.47 5.46 1.11 1.92 3.55 2.57 5.47 1.47 1.91-1.11 2.57-3.55 1.46-5.47-1.1-1.91-3.55-2.56-5.46-1.46zm9.52 6.93c1.92 1.1 4.36.45 5.47-1.46 1.1-1.92.45-4.36-1.47-5.47-1.91-1.1-4.36-.45-5.46 1.46-1.11 1.92-.45 4.36 1.46 5.47z";break;case"image-flip-horizontal":e="M19 3v14h-8v3H9v-3H1V3h8V0h2v3h8zm-8.5 14V3h-1v14h1zM7 6.5L3 10l4 3.5v-7zM17 10l-4-3.5v7z";break;case"image-flip-vertical":e="M20 9v2h-3v8H3v-8H0V9h3V1h14v8h3zM6.5 7h7L10 3zM17 9.5H3v1h14v-1zM13.5 13h-7l3.5 4z";break;case"image-rotate-left":e="M7 5H5.05c0-1.74.85-2.9 2.95-2.9V0C4.85 0 2.96 2.11 2.96 5H1.18L3.8 8.39zm13-4v14h-5v5H1V10h9V1h10zm-2 2h-6v7h3v3h3V3zm-5 9H3v6h10v-6z";break;case"image-rotate-right":e="M15.95 5H14l3.2 3.39L19.82 5h-1.78c0-2.89-1.89-5-5.04-5v2.1c2.1 0 2.95 1.16 2.95 2.9zM1 1h10v9h9v10H6v-5H1V1zm2 2v10h3v-3h3V3H3zm5 9v6h10v-6H8z";break;case"image-rotate":e="M10.25 1.02c5.1 0 8.75 4.04 8.75 9s-3.65 9-8.75 9c-3.2 0-6.02-1.59-7.68-3.99l2.59-1.52c1.1 1.5 2.86 2.51 4.84 2.51 3.3 0 6-2.79 6-6s-2.7-6-6-6c-1.97 0-3.72 1-4.82 2.49L7 8.02l-6 2v-7L2.89 4.6c1.69-2.17 4.36-3.58 7.36-3.58z";break;case"images-alt":e="M4 15v-3H2V2h12v3h2v3h2v10H6v-3H4zm7-12c-1.1 0-2 .9-2 2h4c0-1.1-.89-2-2-2zm-7 8V6H3v5h1zm7-3h4c0-1.1-.89-2-2-2-1.1 0-2 .9-2 2zm-5 6V9H5v5h1zm9-1c1.1 0 2-.89 2-2 0-1.1-.9-2-2-2s-2 .9-2 2c0 1.11.9 2 2 2zm2 4v-2c-5 0-5-3-10-3v5h10z";break;case"images-alt2":e="M5 3h14v11h-2v2h-2v2H1V7h2V5h2V3zm13 10V4H6v9h12zm-3-4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm1 6v-1H5V6H4v9h12zM7 6l10 6H7V6zm7 11v-1H3V8H2v9h12z";break;case"index-card":e="M1 3.17V18h18V4H8v-.83c0-.32-.12-.6-.35-.83S7.14 2 6.82 2H2.18c-.33 0-.6.11-.83.34-.24.23-.35.51-.35.83zM10 6v2H3V6h7zm7 0v10h-5V6h5zm-7 4v2H3v-2h7zm0 4v2H3v-2h7z";break;case"info-outline":e="M9 15h2V9H9v6zm1-10c-.5 0-1 .5-1 1s.5 1 1 1 1-.5 1-1-.5-1-1-1zm0-4c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7z";break;case"info":e="M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm1 4c0-.55-.45-1-1-1s-1 .45-1 1 .45 1 1 1 1-.45 1-1zm0 9V9H9v6h2z";break;case"insert-after":e="M9 12h2v-2h2V8h-2V6H9v2H7v2h2v2zm1 4c3.9 0 7-3.1 7-7s-3.1-7-7-7-7 3.1-7 7 3.1 7 7 7zm0-12c2.8 0 5 2.2 5 5s-2.2 5-5 5-5-2.2-5-5 2.2-5 5-5zM3 19h14v-2H3v2z";break;case"insert-before":e="M11 8H9v2H7v2h2v2h2v-2h2v-2h-2V8zm-1-4c-3.9 0-7 3.1-7 7s3.1 7 7 7 7-3.1 7-7-3.1-7-7-7zm0 12c-2.8 0-5-2.2-5-5s2.2-5 5-5 5 2.2 5 5-2.2 5-5 5zM3 1v2h14V1H3z";break;case"insert":e="M10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6z";break;case"instagram":e="M12.67 10A2.67 2.67 0 1 0 10 12.67 2.68 2.68 0 0 0 12.67 10zm1.43 0A4.1 4.1 0 1 1 10 5.9a4.09 4.09 0 0 1 4.1 4.1zm1.13-4.27a1 1 0 1 1-1-1 1 1 0 0 1 1 1zM10 3.44c-1.17 0-3.67-.1-4.72.32a2.67 2.67 0 0 0-1.52 1.52c-.42 1-.32 3.55-.32 4.72s-.1 3.67.32 4.72a2.74 2.74 0 0 0 1.52 1.52c1 .42 3.55.32 4.72.32s3.67.1 4.72-.32a2.83 2.83 0 0 0 1.52-1.52c.42-1.05.32-3.55.32-4.72s.1-3.67-.32-4.72a2.74 2.74 0 0 0-1.52-1.52c-1.05-.42-3.55-.32-4.72-.32zM18 10c0 1.1 0 2.2-.05 3.3a4.84 4.84 0 0 1-1.29 3.36A4.8 4.8 0 0 1 13.3 18H6.7a4.84 4.84 0 0 1-3.36-1.29 4.84 4.84 0 0 1-1.29-3.41C2 12.2 2 11.1 2 10V6.7a4.84 4.84 0 0 1 1.34-3.36A4.8 4.8 0 0 1 6.7 2.05C7.8 2 8.9 2 10 2h3.3a4.84 4.84 0 0 1 3.36 1.29A4.8 4.8 0 0 1 18 6.7V10z";break;case"keyboard-hide":e="M18,0 L2,0 C0.9,0 0.01,0.9 0.01,2 L0,12 C0,13.1 0.9,14 2,14 L18,14 C19.1,14 20,13.1 20,12 L20,2 C20,0.9 19.1,0 18,0 Z M18,12 L2,12 L2,2 L18,2 L18,12 Z M9,3 L11,3 L11,5 L9,5 L9,3 Z M9,6 L11,6 L11,8 L9,8 L9,6 Z M6,3 L8,3 L8,5 L6,5 L6,3 Z M6,6 L8,6 L8,8 L6,8 L6,6 Z M3,6 L5,6 L5,8 L3,8 L3,6 Z M3,3 L5,3 L5,5 L3,5 L3,3 Z M6,9 L14,9 L14,11 L6,11 L6,9 Z M12,6 L14,6 L14,8 L12,8 L12,6 Z M12,3 L14,3 L14,5 L12,5 L12,3 Z M15,6 L17,6 L17,8 L15,8 L15,6 Z M15,3 L17,3 L17,5 L15,5 L15,3 Z M10,20 L14,16 L6,16 L10,20 Z";break;case"laptop":e="M3 3h14c.6 0 1 .4 1 1v10c0 .6-.4 1-1 1H3c-.6 0-1-.4-1-1V4c0-.6.4-1 1-1zm13 2H4v8h12V5zm-3 1H5v4zm6 11v-1H1v1c0 .6.5 1 1.1 1h15.8c.6 0 1.1-.4 1.1-1z";break;case"layout":e="M2 2h5v11H2V2zm6 0h5v5H8V2zm6 0h4v16h-4V2zM8 8h5v5H8V8zm-6 6h11v4H2v-4z";break;case"leftright":e="M3 10.03L9 6v8zM11 6l6 4.03L11 14V6z";break;case"lightbulb":e="M10 1c3.11 0 5.63 2.52 5.63 5.62 0 1.84-2.03 4.58-2.03 4.58-.33.44-.6 1.25-.6 1.8v1c0 .55-.45 1-1 1H8c-.55 0-1-.45-1-1v-1c0-.55-.27-1.36-.6-1.8 0 0-2.02-2.74-2.02-4.58C4.38 3.52 6.89 1 10 1zM7 16.87V16h6v.87c0 .62-.13 1.13-.75 1.13H12c0 .62-.4 1-1.02 1h-2c-.61 0-.98-.38-.98-1h-.25c-.62 0-.75-.51-.75-1.13z";break;case"list-view":e="M2 19h16c.55 0 1-.45 1-1V2c0-.55-.45-1-1-1H2c-.55 0-1 .45-1 1v16c0 .55.45 1 1 1zM4 3c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm13 0v2H6V3h11zM4 7c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm13 0v2H6V7h11zM4 11c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm13 0v2H6v-2h11zM4 15c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm13 0v2H6v-2h11z";break;case"location-alt":e="M13 13.14l1.17-5.94c.79-.43 1.33-1.25 1.33-2.2 0-1.38-1.12-2.5-2.5-2.5S10.5 3.62 10.5 5c0 .95.54 1.77 1.33 2.2zm0-9.64c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5-1.5-.67-1.5-1.5.67-1.5 1.5-1.5zm1.72 4.8L18 6.97v9L13.12 18 7 15.97l-5 2v-9l5-2 4.27 1.41 1.73 7.3z";break;case"location":e="M10 2C6.69 2 4 4.69 4 8c0 2.02 1.17 3.71 2.53 4.89.43.37 1.18.96 1.85 1.83.74.97 1.41 2.01 1.62 2.71.21-.7.88-1.74 1.62-2.71.67-.87 1.42-1.46 1.85-1.83C14.83 11.71 16 10.02 16 8c0-3.31-2.69-6-6-6zm0 2.56c1.9 0 3.44 1.54 3.44 3.44S11.9 11.44 10 11.44 6.56 9.9 6.56 8 8.1 4.56 10 4.56z";break;case"lock":e="M14 9h1c.55 0 1 .45 1 1v7c0 .55-.45 1-1 1H5c-.55 0-1-.45-1-1v-7c0-.55.45-1 1-1h1V6c0-2.21 1.79-4 4-4s4 1.79 4 4v3zm-2 0V6c0-1.1-.9-2-2-2s-2 .9-2 2v3h4zm-1 7l-.36-2.15c.51-.24.86-.75.86-1.35 0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5c0 .6.35 1.11.86 1.35L9 16h2z";break;case"marker":e="M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm0 13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5z";break;case"media-archive":e="M12 2l4 4v12H4V2h8zm0 4h3l-3-3v3zM8 3.5v2l1.8-1zM11 5L9.2 6 11 7V5zM8 6.5v2l1.8-1zM11 8L9.2 9l1.8 1V8zM8 9.5v2l1.8-1zm3 1.5l-1.8 1 1.8 1v-2zm-1.5 6c.83 0 1.62-.72 1.5-1.63-.05-.38-.49-1.61-.49-1.61l-1.99-1.1s-.45 1.95-.52 2.71c-.07.77.67 1.63 1.5 1.63zm0-2.39c.42 0 .76.34.76.76 0 .43-.34.77-.76.77s-.76-.34-.76-.77c0-.42.34-.76.76-.76z";break;case"media-audio":e="M12 2l4 4v12H4V2h8zm0 4h3l-3-3v3zm1 7.26V8.09c0-.11-.04-.21-.12-.29-.07-.08-.16-.11-.27-.1 0 0-3.97.71-4.25.78C8.07 8.54 8 8.8 8 9v3.37c-.2-.09-.42-.07-.6-.07-.38 0-.7.13-.96.39-.26.27-.4.58-.4.96 0 .37.14.69.4.95.26.27.58.4.96.4.34 0 .7-.04.96-.26.26-.23.64-.65.64-1.12V10.3l3-.6V12c-.67-.2-1.17.04-1.44.31-.26.26-.39.58-.39.95 0 .38.13.69.39.96.27.26.71.39 1.08.39.38 0 .7-.13.96-.39.26-.27.4-.58.4-.96z";break;case"media-code":e="M12 2l4 4v12H4V2h8zM9 13l-2-2 2-2-1-1-3 3 3 3zm3 1l3-3-3-3-1 1 2 2-2 2z";break;case"media-default":e="M12 2l4 4v12H4V2h8zm0 4h3l-3-3v3z";break;case"media-document":e="M12 2l4 4v12H4V2h8zM5 3v1h6V3H5zm7 3h3l-3-3v3zM5 5v1h6V5H5zm10 3V7H5v1h10zM5 9v1h4V9H5zm10 3V9h-5v3h5zM5 11v1h4v-1H5zm10 3v-1H5v1h10zm-3 2v-1H5v1h7z";break;case"media-interactive":e="M12 2l4 4v12H4V2h8zm0 4h3l-3-3v3zm2 8V8H6v6h3l-1 2h1l1-2 1 2h1l-1-2h3zm-6-3c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm5-2v2h-3V9h3zm0 3v1H7v-1h6z";break;case"media-spreadsheet":e="M12 2l4 4v12H4V2h8zm-1 4V3H5v3h6zM8 8V7H5v1h3zm3 0V7H9v1h2zm4 0V7h-3v1h3zm-7 2V9H5v1h3zm3 0V9H9v1h2zm4 0V9h-3v1h3zm-7 2v-1H5v1h3zm3 0v-1H9v1h2zm4 0v-1h-3v1h3zm-7 2v-1H5v1h3zm3 0v-1H9v1h2zm4 0v-1h-3v1h3zm-7 2v-1H5v1h3zm3 0v-1H9v1h2z";break;case"media-text":e="M12 2l4 4v12H4V2h8zM5 3v1h6V3H5zm7 3h3l-3-3v3zM5 5v1h6V5H5zm10 3V7H5v1h10zm0 2V9H5v1h10zm0 2v-1H5v1h10zm-4 2v-1H5v1h6z";break;case"media-video":e="M12 2l4 4v12H4V2h8zm0 4h3l-3-3v3zm-1 8v-3c0-.27-.1-.51-.29-.71-.2-.19-.44-.29-.71-.29H7c-.27 0-.51.1-.71.29-.19.2-.29.44-.29.71v3c0 .27.1.51.29.71.2.19.44.29.71.29h3c.27 0 .51-.1.71-.29.19-.2.29-.44.29-.71zm3 1v-5l-2 2v1z";break;case"megaphone":e="M18.15 5.94c.46 1.62.38 3.22-.02 4.48-.42 1.28-1.26 2.18-2.3 2.48-.16.06-.26.06-.4.06-.06.02-.12.02-.18.02-.06.02-.14.02-.22.02h-6.8l2.22 5.5c.02.14-.06.26-.14.34-.08.1-.24.16-.34.16H6.95c-.1 0-.26-.06-.34-.16-.08-.08-.16-.2-.14-.34l-1-5.5H4.25l-.02-.02c-.5.06-1.08-.18-1.54-.62s-.88-1.08-1.06-1.88c-.24-.8-.2-1.56-.02-2.2.18-.62.58-1.08 1.06-1.3l.02-.02 9-5.4c.1-.06.18-.1.24-.16.06-.04.14-.08.24-.12.16-.08.28-.12.5-.18 1.04-.3 2.24.1 3.22.98s1.84 2.24 2.26 3.86zm-2.58 5.98h-.02c.4-.1.74-.34 1.04-.7.58-.7.86-1.76.86-3.04 0-.64-.1-1.3-.28-1.98-.34-1.36-1.02-2.5-1.78-3.24s-1.68-1.1-2.46-.88c-.82.22-1.4.96-1.7 2-.32 1.04-.28 2.36.06 3.72.38 1.36 1 2.5 1.8 3.24.78.74 1.62 1.1 2.48.88zm-2.54-7.08c.22-.04.42-.02.62.04.38.16.76.48 1.02 1s.42 1.2.42 1.78c0 .3-.04.56-.12.8-.18.48-.44.84-.86.94-.34.1-.8-.06-1.14-.4s-.64-.86-.78-1.5c-.18-.62-.12-1.24.02-1.72s.48-.84.82-.94z";break;case"menu-alt":e="M3 4h14v2H3V4zm0 5h14v2H3V9zm0 5h14v2H3v-2z";break;case"menu":e="M17 7V5H3v2h14zm0 4V9H3v2h14zm0 4v-2H3v2h14z";break;case"microphone":e="M12 9V3c0-1.1-.89-2-2-2-1.12 0-2 .94-2 2v6c0 1.1.9 2 2 2 1.13 0 2-.94 2-2zm4 0c0 2.97-2.16 5.43-5 5.91V17h2c.56 0 1 .45 1 1s-.44 1-1 1H7c-.55 0-1-.45-1-1s.45-1 1-1h2v-2.09C6.17 14.43 4 11.97 4 9c0-.55.45-1 1-1 .56 0 1 .45 1 1 0 2.21 1.8 4 4 4 2.21 0 4-1.79 4-4 0-.55.45-1 1-1 .56 0 1 .45 1 1z";break;case"migrate":e="M4 6h6V4H2v12.01h8V14H4V6zm2 2h6V5l6 5-6 5v-3H6V8z";break;case"minus":e="M4 9h12v2H4V9z";break;case"money":e="M0 3h20v12h-.75c0-1.79-1.46-3.25-3.25-3.25-1.31 0-2.42.79-2.94 1.91-.25-.1-.52-.16-.81-.16-.98 0-1.8.63-2.11 1.5H0V3zm8.37 3.11c-.06.15-.1.31-.11.47s-.01.33.01.5l.02.08c.01.06.02.14.05.23.02.1.06.2.1.31.03.11.09.22.15.33.07.12.15.22.23.31s.18.17.31.23c.12.06.25.09.4.09.14 0 .27-.03.39-.09s.22-.14.3-.22c.09-.09.16-.2.22-.32.07-.12.12-.23.16-.33s.07-.2.09-.31c.03-.11.04-.18.05-.22s.01-.07.01-.09c.05-.29.03-.56-.04-.82s-.21-.48-.41-.66c-.21-.18-.47-.27-.79-.27-.19 0-.36.03-.52.1-.15.07-.28.16-.38.28-.09.11-.17.25-.24.4zm4.48 6.04v-1.14c0-.33-.1-.66-.29-.98s-.45-.59-.77-.79c-.32-.21-.66-.31-1.02-.31l-1.24.84-1.28-.82c-.37 0-.72.1-1.04.3-.31.2-.56.46-.74.77-.18.32-.27.65-.27.99v1.14l.18.05c.12.04.29.08.51.14.23.05.47.1.74.15.26.05.57.09.91.13.34.03.67.05.99.05.3 0 .63-.02.98-.05.34-.04.64-.08.89-.13.25-.04.5-.1.76-.16l.5-.12c.08-.02.14-.04.19-.06zm3.15.1c1.52 0 2.75 1.23 2.75 2.75s-1.23 2.75-2.75 2.75c-.73 0-1.38-.3-1.87-.77.23-.35.37-.78.37-1.23 0-.77-.39-1.46-.99-1.86.43-.96 1.37-1.64 2.49-1.64zm-5.5 3.5c0-.96.79-1.75 1.75-1.75s1.75.79 1.75 1.75-.79 1.75-1.75 1.75-1.75-.79-1.75-1.75z";break;case"move":e="M19 10l-4 4v-3h-4v4h3l-4 4-4-4h3v-4H5v3l-4-4 4-4v3h4V5H6l4-4 4 4h-3v4h4V6z";break;case"nametag":e="M12 5V2c0-.55-.45-1-1-1H9c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h2c.55 0 1-.45 1-1zm-2-3c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm8 13V7c0-1.1-.9-2-2-2h-3v.33C13 6.25 12.25 7 11.33 7H8.67C7.75 7 7 6.25 7 5.33V5H4c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2zm-1-6v6H3V9h14zm-8 2c0-.55-.22-1-.5-1s-.5.45-.5 1 .22 1 .5 1 .5-.45.5-1zm3 0c0-.55-.22-1-.5-1s-.5.45-.5 1 .22 1 .5 1 .5-.45.5-1zm-5.96 1.21c.92.48 2.34.79 3.96.79s3.04-.31 3.96-.79c-.21 1-1.89 1.79-3.96 1.79s-3.75-.79-3.96-1.79z";break;case"networking":e="M18 13h1c.55 0 1 .45 1 1.01v2.98c0 .56-.45 1.01-1 1.01h-4c-.55 0-1-.45-1-1.01v-2.98c0-.56.45-1.01 1-1.01h1v-2h-5v2h1c.55 0 1 .45 1 1.01v2.98c0 .56-.45 1.01-1 1.01H8c-.55 0-1-.45-1-1.01v-2.98c0-.56.45-1.01 1-1.01h1v-2H4v2h1c.55 0 1 .45 1 1.01v2.98C6 17.55 5.55 18 5 18H1c-.55 0-1-.45-1-1.01v-2.98C0 13.45.45 13 1 13h1v-2c0-1.1.9-2 2-2h5V7H8c-.55 0-1-.45-1-1.01V3.01C7 2.45 7.45 2 8 2h4c.55 0 1 .45 1 1.01v2.98C13 6.55 12.55 7 12 7h-1v2h5c1.1 0 2 .9 2 2v2z";break;case"no-alt":e="M14.95 6.46L11.41 10l3.54 3.54-1.41 1.41L10 11.42l-3.53 3.53-1.42-1.42L8.58 10 5.05 6.47l1.42-1.42L10 8.58l3.54-3.53z";break;case"no":e="M12.12 10l3.53 3.53-2.12 2.12L10 12.12l-3.54 3.54-2.12-2.12L7.88 10 4.34 6.46l2.12-2.12L10 7.88l3.54-3.53 2.12 2.12z";break;case"palmtree":e="M8.58 2.39c.32 0 .59.05.81.14 1.25.55 1.69 2.24 1.7 3.97.59-.82 2.15-2.29 3.41-2.29s2.94.73 3.53 3.55c-1.13-.65-2.42-.94-3.65-.94-1.26 0-2.45.32-3.29.89.4-.11.86-.16 1.33-.16 1.39 0 2.9.45 3.4 1.31.68 1.16.47 3.38-.76 4.14-.14-2.1-1.69-4.12-3.47-4.12-.44 0-.88.12-1.33.38C8 10.62 7 14.56 7 19H2c0-5.53 4.21-9.65 7.68-10.79-.56-.09-1.17-.15-1.82-.15C6.1 8.06 4.05 8.5 2 10c.76-2.96 2.78-4.1 4.69-4.1 1.25 0 2.45.5 3.2 1.29-.66-2.24-2.49-2.86-4.08-2.86-.8 0-1.55.16-2.05.35.91-1.29 3.31-2.29 4.82-2.29zM13 11.5c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5.67 1.5 1.5 1.5 1.5-.67 1.5-1.5z";break;case"paperclip":e="M17.05 2.7c1.93 1.94 1.93 5.13 0 7.07L10 16.84c-1.88 1.89-4.91 1.93-6.86.15-.06-.05-.13-.09-.19-.15-1.93-1.94-1.93-5.12 0-7.07l4.94-4.95c.91-.92 2.28-1.1 3.39-.58.3.15.59.33.83.58 1.17 1.17 1.17 3.07 0 4.24l-4.93 4.95c-.39.39-1.02.39-1.41 0s-.39-1.02 0-1.41l4.93-4.95c.39-.39.39-1.02 0-1.41-.38-.39-1.02-.39-1.4 0l-4.94 4.95c-.91.92-1.1 2.29-.57 3.4.14.3.32.59.57.84s.54.43.84.57c1.11.53 2.47.35 3.39-.57l7.05-7.07c1.16-1.17 1.16-3.08 0-4.25-.56-.55-1.28-.83-2-.86-.08.01-.16.01-.24 0-.22-.03-.43-.11-.6-.27-.39-.4-.38-1.05.02-1.45.16-.16.36-.24.56-.28.14-.02.27-.01.4.02 1.19.06 2.36.52 3.27 1.43z";break;case"performance":e="M3.76 17.01h12.48C17.34 15.63 18 13.9 18 12c0-4.41-3.58-8-8-8s-8 3.59-8 8c0 1.9.66 3.63 1.76 5.01zM9 6c0-.55.45-1 1-1s1 .45 1 1c0 .56-.45 1-1 1s-1-.44-1-1zM4 8c0-.55.45-1 1-1s1 .45 1 1c0 .56-.45 1-1 1s-1-.44-1-1zm4.52 3.4c.84-.83 6.51-3.5 6.51-3.5s-2.66 5.68-3.49 6.51c-.84.84-2.18.84-3.02 0-.83-.83-.83-2.18 0-3.01zM3 13c0-.55.45-1 1-1s1 .45 1 1c0 .56-.45 1-1 1s-1-.44-1-1zm6 0c0-.55.45-1 1-1s1 .45 1 1c0 .56-.45 1-1 1s-1-.44-1-1zm6 0c0-.55.45-1 1-1s1 .45 1 1c0 .56-.45 1-1 1s-1-.44-1-1z";break;case"phone":e="M12.06 6l-.21-.2c-.52-.54-.43-.79.08-1.3l2.72-2.75c.81-.82.96-1.21 1.73-.48l.21.2zm.53.45l4.4-4.4c.7.94 2.34 3.47 1.53 5.34-.73 1.67-1.09 1.75-2 3-1.85 2.11-4.18 4.37-6 6.07-1.26.91-1.31 1.33-3 2-1.8.71-4.4-.89-5.38-1.56l4.4-4.4 1.18 1.62c.34.46 1.2-.06 1.8-.66 1.04-1.05 3.18-3.18 4-4.07.59-.59 1.12-1.45.66-1.8zM1.57 16.5l-.21-.21c-.68-.74-.29-.9.52-1.7l2.74-2.72c.51-.49.75-.6 1.27-.11l.2.21z";break;case"playlist-audio":e="M17 3V1H2v2h15zm0 4V5H2v2h15zm-7 4V9H2v2h8zm7.45-1.96l-6 1.12c-.16.02-.19.03-.29.13-.11.09-.16.22-.16.37v4.59c-.29-.13-.66-.14-.93-.14-.54 0-1 .19-1.38.57s-.56.84-.56 1.38c0 .53.18.99.56 1.37s.84.57 1.38.57c.49 0 .92-.16 1.29-.48s.59-.71.65-1.19v-4.95L17 11.27v3.48c-.29-.13-.56-.19-.83-.19-.54 0-1.11.19-1.49.57-.38.37-.57.83-.57 1.37s.19.99.57 1.37.84.57 1.38.57c.53 0 .99-.19 1.37-.57s.57-.83.57-1.37V9.6c0-.16-.05-.3-.16-.41-.11-.12-.24-.17-.39-.15zM8 15v-2H2v2h6zm-2 4v-2H2v2h4z";break;case"playlist-video":e="M17 3V1H2v2h15zm0 4V5H2v2h15zM6 11V9H2v2h4zm2-2h9c.55 0 1 .45 1 1v8c0 .55-.45 1-1 1H8c-.55 0-1-.45-1-1v-8c0-.55.45-1 1-1zm3 7l3.33-2L11 12v4zm-5-1v-2H2v2h4zm0 4v-2H2v2h4z";break;case"plus-alt":e="M15.8 4.2c3.2 3.21 3.2 8.39 0 11.6-3.21 3.2-8.39 3.2-11.6 0C1 12.59 1 7.41 4.2 4.2 7.41 1 12.59 1 15.8 4.2zm-4.3 11.3v-4h4v-3h-4v-4h-3v4h-4v3h4v4h3z";break;case"plus-light":e="M17 9v2h-6v6H9v-6H3V9h6V3h2v6h6z";break;case"plus":e="M17 7v3h-5v5H9v-5H4V7h5V2h3v5h5z";break;case"portfolio":e="M4 5H.78c-.37 0-.74.32-.69.84l1.56 9.99S3.5 8.47 3.86 6.7c.11-.53.61-.7.98-.7H10s-.7-2.08-.77-2.31C9.11 3.25 8.89 3 8.45 3H5.14c-.36 0-.7.23-.8.64C4.25 4.04 4 5 4 5zm4.88 0h-4s.42-1 .87-1h2.13c.48 0 1 1 1 1zM2.67 16.25c-.31.47-.76.75-1.26.75h15.73c.54 0 .92-.31 1.03-.83.44-2.19 1.68-8.44 1.68-8.44.07-.5-.3-.73-.62-.73H16V5.53c0-.16-.26-.53-.66-.53h-3.76c-.52 0-.87.58-.87.58L10 7H5.59c-.32 0-.63.19-.69.5 0 0-1.59 6.7-1.72 7.33-.07.37-.22.99-.51 1.42zM15.38 7H11s.58-1 1.13-1h2.29c.71 0 .96 1 .96 1z";break;case"post-status":e="M14 6c0 1.86-1.28 3.41-3 3.86V16c0 1-2 2-2 2V9.86c-1.72-.45-3-2-3-3.86 0-2.21 1.79-4 4-4s4 1.79 4 4zM8 5c0 .55.45 1 1 1s1-.45 1-1-.45-1-1-1-1 .45-1 1z";break;case"pressthis":e="M14.76 1C16.55 1 18 2.46 18 4.25c0 1.78-1.45 3.24-3.24 3.24-.23 0-.47-.03-.7-.08L13 8.47V19H2V4h9.54c.13-2 1.52-3 3.22-3zm0 5.49C16 6.49 17 5.48 17 4.25 17 3.01 16 2 14.76 2s-2.24 1.01-2.24 2.25c0 .37.1.72.27 1.03L9.57 8.5c-.28.28-1.77 2.22-1.5 2.49.02.03.06.04.1.04.49 0 2.14-1.28 2.39-1.53l3.24-3.24c.29.14.61.23.96.23z";break;case"products":e="M17 8h1v11H2V8h1V6c0-2.76 2.24-5 5-5 .71 0 1.39.15 2 .42.61-.27 1.29-.42 2-.42 2.76 0 5 2.24 5 5v2zM5 6v2h2V6c0-1.13.39-2.16 1.02-3H8C6.35 3 5 4.35 5 6zm10 2V6c0-1.65-1.35-3-3-3h-.02c.63.84 1.02 1.87 1.02 3v2h2zm-5-4.22C9.39 4.33 9 5.12 9 6v2h2V6c0-.88-.39-1.67-1-2.22z";break;case"randomize":e="M18 6.01L14 9V7h-4l-5 8H2v-2h2l5-8h5V3zM2 5h3l1.15 2.17-1.12 1.8L4 7H2V5zm16 9.01L14 17v-2H9l-1.15-2.17 1.12-1.8L10 13h4v-2z";break;case"redo":e="M8 5h5V2l6 4-6 4V7H8c-2.2 0-4 1.8-4 4s1.8 4 4 4h5v2H8c-3.3 0-6-2.7-6-6s2.7-6 6-6z";break;case"rest-api":e="M3 4h2v12H3z";break;case"rss":e="M14.92 18H18C18 9.32 10.82 2.25 2 2.25v3.02c7.12 0 12.92 5.71 12.92 12.73zm-5.44 0h3.08C12.56 12.27 7.82 7.6 2 7.6v3.02c2 0 3.87.77 5.29 2.16C8.7 14.17 9.48 16.03 9.48 18zm-5.35-.02c1.17 0 2.13-.93 2.13-2.09 0-1.15-.96-2.09-2.13-2.09-1.18 0-2.13.94-2.13 2.09 0 1.16.95 2.09 2.13 2.09z";break;case"saved":e="M15.3 5.3l-6.8 6.8-2.8-2.8-1.4 1.4 4.2 4.2 8.2-8.2";break;case"schedule":e="M2 2h16v4H2V2zm0 10V8h4v4H2zm6-2V8h4v2H8zm6 3V8h4v5h-4zm-6 5v-6h4v6H8zm-6 0v-4h4v4H2zm12 0v-3h4v3h-4z";break;case"screenoptions":e="M9 9V3H3v6h6zm8 0V3h-6v6h6zm-8 8v-6H3v6h6zm8 0v-6h-6v6h6z";break;case"search":e="M12.14 4.18c1.87 1.87 2.11 4.75.72 6.89.12.1.22.21.36.31.2.16.47.36.81.59.34.24.56.39.66.47.42.31.73.57.94.78.32.32.6.65.84 1 .25.35.44.69.59 1.04.14.35.21.68.18 1-.02.32-.14.59-.36.81s-.49.34-.81.36c-.31.02-.65-.04-.99-.19-.35-.14-.7-.34-1.04-.59-.35-.24-.68-.52-1-.84-.21-.21-.47-.52-.77-.93-.1-.13-.25-.35-.47-.66-.22-.32-.4-.57-.56-.78-.16-.2-.29-.35-.44-.5-2.07 1.09-4.69.76-6.44-.98-2.14-2.15-2.14-5.64 0-7.78 2.15-2.15 5.63-2.15 7.78 0zm-1.41 6.36c1.36-1.37 1.36-3.58 0-4.95-1.37-1.37-3.59-1.37-4.95 0-1.37 1.37-1.37 3.58 0 4.95 1.36 1.37 3.58 1.37 4.95 0z";break;case"share-alt":e="M16.22 5.8c.47.69.29 1.62-.4 2.08-.69.47-1.62.29-2.08-.4-.16-.24-.35-.46-.55-.67-.21-.2-.43-.39-.67-.55s-.5-.3-.77-.41c-.27-.12-.55-.21-.84-.26-.59-.13-1.23-.13-1.82-.01-.29.06-.57.15-.84.27-.27.11-.53.25-.77.41s-.46.35-.66.55c-.21.21-.4.43-.56.67s-.3.5-.41.76c-.01.02-.01.03-.01.04-.1.24-.17.48-.23.72H1V6h2.66c.04-.07.07-.13.12-.2.27-.4.57-.77.91-1.11s.72-.65 1.11-.91c.4-.27.83-.51 1.28-.7s.93-.34 1.41-.43c.99-.21 2.03-.21 3.02 0 .48.09.96.24 1.41.43s.88.43 1.28.7c.39.26.77.57 1.11.91s.64.71.91 1.11zM12.5 10c0-1.38-1.12-2.5-2.5-2.5S7.5 8.62 7.5 10s1.12 2.5 2.5 2.5 2.5-1.12 2.5-2.5zm-8.72 4.2c-.47-.69-.29-1.62.4-2.09.69-.46 1.62-.28 2.08.41.16.24.35.46.55.67.21.2.43.39.67.55s.5.3.77.41c.27.12.55.2.84.26.59.13 1.23.12 1.82 0 .29-.06.57-.14.84-.26.27-.11.53-.25.77-.41s.46-.35.66-.55c.21-.21.4-.44.56-.67.16-.25.3-.5.41-.76.01-.02.01-.03.01-.04.1-.24.17-.48.23-.72H19v3h-2.66c-.04.06-.07.13-.12.2-.27.4-.57.77-.91 1.11s-.72.65-1.11.91c-.4.27-.83.51-1.28.7s-.93.33-1.41.43c-.99.21-2.03.21-3.02 0-.48-.1-.96-.24-1.41-.43s-.88-.43-1.28-.7c-.39-.26-.77-.57-1.11-.91s-.64-.71-.91-1.11z";break;case"share-alt2":e="M18 8l-5 4V9.01c-2.58.06-4.88.45-7 2.99.29-3.57 2.66-5.66 7-5.94V3zM4 14h11v-2l2-1.6V16H2V5h9.43c-1.83.32-3.31 1-4.41 2H4v7z";break;case"share":e="M14.5 12c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3c0-.24.03-.46.09-.69l-4.38-2.3c-.55.61-1.33.99-2.21.99-1.66 0-3-1.34-3-3s1.34-3 3-3c.88 0 1.66.39 2.21.99l4.38-2.3c-.06-.23-.09-.45-.09-.69 0-1.66 1.34-3 3-3s3 1.34 3 3-1.34 3-3 3c-.88 0-1.66-.39-2.21-.99l-4.38 2.3c.06.23.09.45.09.69s-.03.46-.09.69l4.38 2.3c.55-.61 1.33-.99 2.21-.99z";break;case"shield-alt":e="M10 2s3 2 7 2c0 11-7 14-7 14S3 15 3 4c4 0 7-2 7-2z";break;case"shield":e="M10 2s3 2 7 2c0 11-7 14-7 14S3 15 3 4c4 0 7-2 7-2zm0 8h5s1-1 1-5c0 0-5-1-6-2v7H5c1 4 5 7 5 7v-7z";break;case"shortcode":e="M6 14H4V6h2V4H2v12h4M7.1 17h2.1l3.7-14h-2.1M14 4v2h2v8h-2v2h4V4";break;case"slides":e="M5 14V6h10v8H5zm-3-1V7h2v6H2zm4-6v6h8V7H6zm10 0h2v6h-2V7zm-3 2V8H7v1h6zm0 3v-2H7v2h6z";break;case"smartphone":e="M6 2h8c.55 0 1 .45 1 1v14c0 .55-.45 1-1 1H6c-.55 0-1-.45-1-1V3c0-.55.45-1 1-1zm7 12V4H7v10h6zM8 5h4l-4 5V5z";break;case"smiley":e="M7 5.2c1.1 0 2 .89 2 2 0 .37-.11.71-.28 1C8.72 8.2 8 8 7 8s-1.72.2-1.72.2c-.17-.29-.28-.63-.28-1 0-1.11.9-2 2-2zm6 0c1.11 0 2 .89 2 2 0 .37-.11.71-.28 1 0 0-.72-.2-1.72-.2s-1.72.2-1.72.2c-.17-.29-.28-.63-.28-1 0-1.11.89-2 2-2zm-3 13.7c3.72 0 7.03-2.36 8.23-5.88l-1.32-.46C15.9 15.52 13.12 17.5 10 17.5s-5.9-1.98-6.91-4.94l-1.32.46c1.2 3.52 4.51 5.88 8.23 5.88z";break;case"sort":e="M11 7H1l5 7zm-2 7h10l-5-7z";break;case"sos":e="M18 10c0-4.42-3.58-8-8-8s-8 3.58-8 8 3.58 8 8 8 8-3.58 8-8zM7.23 3.57L8.72 7.3c-.62.29-1.13.8-1.42 1.42L3.57 7.23c.71-1.64 2.02-2.95 3.66-3.66zm9.2 3.66L12.7 8.72c-.29-.62-.8-1.13-1.42-1.42l1.49-3.73c1.64.71 2.95 2.02 3.66 3.66zM10 12c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm-6.43.77l3.73-1.49c.29.62.8 1.13 1.42 1.42l-1.49 3.73c-1.64-.71-2.95-2.02-3.66-3.66zm9.2 3.66l-1.49-3.73c.62-.29 1.13-.8 1.42-1.42l3.73 1.49c-.71 1.64-2.02 2.95-3.66 3.66z";break;case"star-empty":e="M10 1L7 7l-6 .75 4.13 4.62L4 19l6-3 6 3-1.12-6.63L19 7.75 13 7zm0 2.24l2.34 4.69 4.65.58-3.18 3.56.87 5.15L10 14.88l-4.68 2.34.87-5.15-3.18-3.56 4.65-.58z";break;case"star-filled":e="M10 1l3 6 6 .75-4.12 4.62L16 19l-6-3-6 3 1.13-6.63L1 7.75 7 7z";break;case"star-half":e="M10 1L7 7l-6 .75 4.13 4.62L4 19l6-3 6 3-1.12-6.63L19 7.75 13 7zm0 2.24l2.34 4.69 4.65.58-3.18 3.56.87 5.15L10 14.88V3.24z";break;case"sticky":e="M5 3.61V1.04l8.99-.01-.01 2.58c-1.22.26-2.16 1.35-2.16 2.67v.5c.01 1.31.93 2.4 2.17 2.66l-.01 2.58h-3.41l-.01 2.57c0 .6-.47 4.41-1.06 4.41-.6 0-1.08-3.81-1.08-4.41v-2.56L5 12.02l.01-2.58c1.23-.25 2.15-1.35 2.15-2.66v-.5c0-1.31-.92-2.41-2.16-2.67z";break;case"store":e="M1 10c.41.29.96.43 1.5.43.55 0 1.09-.14 1.5-.43.62-.46 1-1.17 1-2 0 .83.37 1.54 1 2 .41.29.96.43 1.5.43.55 0 1.09-.14 1.5-.43.62-.46 1-1.17 1-2 0 .83.37 1.54 1 2 .41.29.96.43 1.51.43.54 0 1.08-.14 1.49-.43.62-.46 1-1.17 1-2 0 .83.37 1.54 1 2 .41.29.96.43 1.5.43.55 0 1.09-.14 1.5-.43.63-.46 1-1.17 1-2V7l-3-7H4L0 7v1c0 .83.37 1.54 1 2zm2 8.99h5v-5h4v5h5v-7c-.37-.05-.72-.22-1-.43-.63-.45-1-.73-1-1.56 0 .83-.38 1.11-1 1.56-.41.3-.95.43-1.49.44-.55 0-1.1-.14-1.51-.44-.63-.45-1-.73-1-1.56 0 .83-.38 1.11-1 1.56-.41.3-.95.43-1.5.44-.54 0-1.09-.14-1.5-.44-.63-.45-1-.73-1-1.57 0 .84-.38 1.12-1 1.57-.29.21-.63.38-1 .44v6.99z";break;case"table-col-after":e="M14.08 12.864V9.216h3.648V7.424H14.08V3.776h-1.728v3.648H8.64v1.792h3.712v3.648zM0 17.92V0h20.48v17.92H0zM6.4 1.28H1.28v3.84H6.4V1.28zm0 5.12H1.28v3.84H6.4V6.4zm0 5.12H1.28v3.84H6.4v-3.84zM19.2 1.28H7.68v14.08H19.2V1.28z";break;case"table-col-before":e="M6.4 3.776v3.648H2.752v1.792H6.4v3.648h1.728V9.216h3.712V7.424H8.128V3.776zM0 17.92V0h20.48v17.92H0zM12.8 1.28H1.28v14.08H12.8V1.28zm6.4 0h-5.12v3.84h5.12V1.28zm0 5.12h-5.12v3.84h5.12V6.4zm0 5.12h-5.12v3.84h5.12v-3.84z";break;case"table-col-delete":e="M6.4 9.98L7.68 8.7v-.256L6.4 7.164V9.98zm6.4-1.532l1.28-1.28V9.92L12.8 8.64v-.192zm7.68 9.472V0H0v17.92h20.48zm-1.28-2.56h-5.12v-1.024l-.256.256-1.024-1.024v1.792H7.68v-1.792l-1.024 1.024-.256-.256v1.024H1.28V1.28H6.4v2.368l.704-.704.576.576V1.216h5.12V3.52l.96-.96.32.32V1.216h5.12V15.36zm-5.76-2.112l-3.136-3.136-3.264 3.264-1.536-1.536 3.264-3.264L5.632 5.44l1.536-1.536 3.136 3.136 3.2-3.2 1.536 1.536-3.2 3.2 3.136 3.136-1.536 1.536z";break;case"table-row-after":e="M13.824 10.176h-2.88v-2.88H9.536v2.88h-2.88v1.344h2.88v2.88h1.408v-2.88h2.88zM0 17.92V0h20.48v17.92H0zM6.4 1.28H1.28v3.84H6.4V1.28zm6.4 0H7.68v3.84h5.12V1.28zm6.4 0h-5.12v3.84h5.12V1.28zm0 5.056H1.28v9.024H19.2V6.336z";break;case"table-row-before":e="M6.656 6.464h2.88v2.88h1.408v-2.88h2.88V5.12h-2.88V2.24H9.536v2.88h-2.88zM0 17.92V0h20.48v17.92H0zm7.68-2.56h5.12v-3.84H7.68v3.84zm-6.4 0H6.4v-3.84H1.28v3.84zM19.2 1.28H1.28v9.024H19.2V1.28zm0 10.24h-5.12v3.84h5.12v-3.84z";break;case"table-row-delete":e="M17.728 11.456L14.592 8.32l3.2-3.2-1.536-1.536-3.2 3.2L9.92 3.648 8.384 5.12l3.2 3.2-3.264 3.264 1.536 1.536 3.264-3.264 3.136 3.136 1.472-1.536zM0 17.92V0h20.48v17.92H0zm19.2-6.4h-.448l-1.28-1.28H19.2V6.4h-1.792l1.28-1.28h.512V1.28H1.28v3.84h6.208l1.28 1.28H1.28v3.84h7.424l-1.28 1.28H1.28v3.84H19.2v-3.84z";break;case"tablet":e="M4 2h12c.55 0 1 .45 1 1v14c0 .55-.45 1-1 1H4c-.55 0-1-.45-1-1V3c0-.55.45-1 1-1zm11 14V4H5v12h10zM6 5h6l-6 5V5z";break;case"tag":e="M11 2h7v7L8 19l-7-7zm3 6c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z";break;case"tagcloud":e="M11 3v4H1V3h10zm8 0v4h-7V3h7zM7 8v3H1V8h6zm12 0v3H8V8h11zM9 12v2H1v-2h8zm10 0v2h-9v-2h9zM6 15v1H1v-1h5zm5 0v1H7v-1h4zm3 0v1h-2v-1h2zm5 0v1h-4v-1h4z";break;case"testimonial":e="M4 3h12c.55 0 1.02.2 1.41.59S18 4.45 18 5v7c0 .55-.2 1.02-.59 1.41S16.55 14 16 14h-1l-5 5v-5H4c-.55 0-1.02-.2-1.41-.59S2 12.55 2 12V5c0-.55.2-1.02.59-1.41S3.45 3 4 3zm11 2H4v1h11V5zm1 3H4v1h12V8zm-3 3H4v1h9v-1z";break;case"text":e="M18 3v2H2V3h16zm-6 4v2H2V7h10zm6 0v2h-4V7h4zM8 11v2H2v-2h6zm10 0v2h-8v-2h8zm-4 4v2H2v-2h12z";break;case"thumbs-down":e="M7.28 18c-.15.02-.26-.02-.41-.07-.56-.19-.83-.79-.66-1.35.17-.55 1-3.04 1-3.58 0-.53-.75-1-1.35-1h-3c-.6 0-1-.4-1-1s2-7 2-7c.17-.39.55-1 1-1H14v9h-2.14c-.41.41-3.3 4.71-3.58 5.27-.21.41-.6.68-1 .73zM18 12h-2V3h2v9z";break;case"thumbs-up":e="M12.72 2c.15-.02.26.02.41.07.56.19.83.79.66 1.35-.17.55-1 3.04-1 3.58 0 .53.75 1 1.35 1h3c.6 0 1 .4 1 1s-2 7-2 7c-.17.39-.55 1-1 1H6V8h2.14c.41-.41 3.3-4.71 3.58-5.27.21-.41.6-.68 1-.73zM2 8h2v9H2V8z";break;case"tickets-alt":e="M20 6.38L18.99 9.2v-.01c-.52-.19-1.03-.16-1.53.08s-.85.62-1.04 1.14-.16 1.03.07 1.53c.24.5.62.84 1.15 1.03v.01l-1.01 2.82-15.06-5.38.99-2.79c.52.19 1.03.16 1.53-.08.5-.23.84-.61 1.03-1.13s.16-1.03-.08-1.53c-.23-.49-.61-.83-1.13-1.02L4.93 1zm-4.97 5.69l1.37-3.76c.12-.31.1-.65-.04-.95s-.39-.53-.7-.65L8.14 3.98c-.64-.23-1.37.12-1.6.74L5.17 8.48c-.24.65.1 1.37.74 1.6l7.52 2.74c.14.05.28.08.43.08.52 0 1-.33 1.17-.83zM7.97 4.45l7.51 2.73c.19.07.34.21.43.39.08.18.09.38.02.57l-1.37 3.76c-.13.38-.58.59-.96.45L6.09 9.61c-.39-.14-.59-.57-.45-.96l1.37-3.76c.1-.29.39-.49.7-.49.09 0 .17.02.26.05zm6.82 12.14c.35.27.75.41 1.2.41H16v3H0v-2.96c.55 0 1.03-.2 1.41-.59.39-.38.59-.86.59-1.41s-.2-1.02-.59-1.41-.86-.59-1.41-.59V10h1.05l-.28.8 2.87 1.02c-.51.16-.89.62-.89 1.18v4c0 .69.56 1.25 1.25 1.25h8c.69 0 1.25-.56 1.25-1.25v-1.75l.83.3c.12.43.36.78.71 1.04zM3.25 17v-4c0-.41.34-.75.75-.75h.83l7.92 2.83V17c0 .41-.34.75-.75.75H4c-.41 0-.75-.34-.75-.75z";break;case"tickets":e="M20 5.38L18.99 8.2v-.01c-1.04-.37-2.19.18-2.57 1.22-.37 1.04.17 2.19 1.22 2.56v.01l-1.01 2.82L1.57 9.42l.99-2.79c1.04.38 2.19-.17 2.56-1.21s-.17-2.18-1.21-2.55L4.93 0zm-5.45 3.37c.74-2.08-.34-4.37-2.42-5.12-2.08-.74-4.37.35-5.11 2.42-.74 2.08.34 4.38 2.42 5.12 2.07.74 4.37-.35 5.11-2.42zm-2.56-4.74c.89.32 1.57.94 1.97 1.71-.01-.01-.02-.01-.04-.02-.33-.12-.67.09-.78.4-.1.28-.03.57.05.91.04.27.09.62-.06 1.04-.1.29-.33.58-.65 1l-.74 1.01.08-4.08.4.11c.19.04.26-.24.08-.29 0 0-.57-.15-.92-.28-.34-.12-.88-.36-.88-.36-.18-.08-.3.19-.12.27 0 0 .16.08.34.16l.01 1.63L9.2 9.18l.08-4.11c.2.06.4.11.4.11.19.04.26-.23.07-.29 0 0-.56-.15-.91-.28-.07-.02-.14-.05-.22-.08.93-.7 2.19-.94 3.37-.52zM7.4 6.19c.17-.49.44-.92.78-1.27l.04 5c-.94-.95-1.3-2.39-.82-3.73zm4.04 4.75l2.1-2.63c.37-.41.57-.77.69-1.12.05-.12.08-.24.11-.35.09.57.04 1.18-.17 1.77-.45 1.25-1.51 2.1-2.73 2.33zm-.7-3.22l.02 3.22c0 .02 0 .04.01.06-.4 0-.8-.07-1.2-.21-.33-.12-.63-.28-.9-.48zm1.24 6.08l2.1.75c.24.84 1 1.45 1.91 1.45H16v3H0v-2.96c1.1 0 2-.89 2-2 0-1.1-.9-2-2-2V9h1.05l-.28.8 4.28 1.52C4.4 12.03 4 12.97 4 14c0 2.21 1.79 4 4 4s4-1.79 4-4c0-.07-.02-.13-.02-.2zm-6.53-2.33l1.48.53c-.14.04-.15.27.03.28 0 0 .18.02.37.03l.56 1.54-.78 2.36-1.31-3.9c.21-.01.41-.03.41-.03.19-.02.17-.31-.02-.3 0 0-.59.05-.96.05-.07 0-.15 0-.23-.01.13-.2.28-.38.45-.55zM4.4 14c0-.52.12-1.02.32-1.46l1.71 4.7C5.23 16.65 4.4 15.42 4.4 14zm4.19-1.41l1.72.62c.07.17.12.37.12.61 0 .31-.12.66-.28 1.16l-.35 1.2zM11.6 14c0 1.33-.72 2.49-1.79 3.11l1.1-3.18c.06-.17.1-.31.14-.46l.52.19c.02.11.03.22.03.34zm-4.62 3.45l1.08-3.14 1.11 3.03c.01.02.01.04.02.05-.37.13-.77.21-1.19.21-.35 0-.69-.06-1.02-.15z";break;case"tide":e="M17 7.2V3H3v7.1c2.6-.5 4.5-1.5 6.4-2.6.2-.2.4-.3.6-.5v3c-1.9 1.1-4 2.2-7 2.8V17h14V9.9c-2.6.5-4.4 1.5-6.2 2.6-.3.1-.5.3-.8.4V10c2-1.1 4-2.2 7-2.8z";break;case"translation":e="M11 7H9.49c-.63 0-1.25.3-1.59.7L7 5H4.13l-2.39 7h1.69l.74-2H7v4H2c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h7c1.1 0 2 .9 2 2v2zM6.51 9H4.49l1-2.93zM10 8h7c1.1 0 2 .9 2 2v7c0 1.1-.9 2-2 2h-7c-1.1 0-2-.9-2-2v-7c0-1.1.9-2 2-2zm7.25 5v-1.08h-3.17V9.75h-1.16v2.17H9.75V13h1.28c.11.85.56 1.85 1.28 2.62-.87.36-1.89.62-2.31.62-.01.02.22.97.2 1.46.84 0 2.21-.5 3.28-1.15 1.09.65 2.48 1.15 3.34 1.15-.02-.49.2-1.44.2-1.46-.43 0-1.49-.27-2.38-.63.7-.77 1.14-1.77 1.25-2.61h1.36zm-3.81 1.93c-.5-.46-.85-1.13-1.01-1.93h2.09c-.17.8-.51 1.47-1 1.93l-.04.03s-.03-.02-.04-.03z";break;case"trash":e="M12 4h3c.6 0 1 .4 1 1v1H3V5c0-.6.5-1 1-1h3c.2-1.1 1.3-2 2.5-2s2.3.9 2.5 2zM8 4h3c-.2-.6-.9-1-1.5-1S8.2 3.4 8 4zM4 7h11l-.9 10.1c0 .5-.5.9-1 .9H5.9c-.5 0-.9-.4-1-.9L4 7z";break;case"twitter":e="M18.94 4.46c-.49.73-1.11 1.38-1.83 1.9.01.15.01.31.01.47 0 4.85-3.69 10.44-10.43 10.44-2.07 0-4-.61-5.63-1.65.29.03.58.05.88.05 1.72 0 3.3-.59 4.55-1.57-1.6-.03-2.95-1.09-3.42-2.55.22.04.45.07.69.07.33 0 .66-.05.96-.13-1.67-.34-2.94-1.82-2.94-3.6v-.04c.5.27 1.06.44 1.66.46-.98-.66-1.63-1.78-1.63-3.06 0-.67.18-1.3.5-1.84 1.81 2.22 4.51 3.68 7.56 3.83-.06-.27-.1-.55-.1-.84 0-2.02 1.65-3.66 3.67-3.66 1.06 0 2.01.44 2.68 1.16.83-.17 1.62-.47 2.33-.89-.28.85-.86 1.57-1.62 2.02.75-.08 1.45-.28 2.11-.57z";break;case"undo":e="M12 5H7V2L1 6l6 4V7h5c2.2 0 4 1.8 4 4s-1.8 4-4 4H7v2h5c3.3 0 6-2.7 6-6s-2.7-6-6-6z";break;case"universal-access-alt":e="M19 10c0-4.97-4.03-9-9-9s-9 4.03-9 9 4.03 9 9 9 9-4.03 9-9zm-9-7.4c.83 0 1.5.67 1.5 1.5s-.67 1.51-1.5 1.51c-.82 0-1.5-.68-1.5-1.51s.68-1.5 1.5-1.5zM3.4 7.36c0-.65 6.6-.76 6.6-.76s6.6.11 6.6.76-4.47 1.4-4.47 1.4 1.69 8.14 1.06 8.38c-.62.24-3.19-5.19-3.19-5.19s-2.56 5.43-3.18 5.19c-.63-.24 1.06-8.38 1.06-8.38S3.4 8.01 3.4 7.36z";break;case"universal-access":e="M10 2.6c.83 0 1.5.67 1.5 1.5s-.67 1.51-1.5 1.51c-.82 0-1.5-.68-1.5-1.51s.68-1.5 1.5-1.5zM3.4 7.36c0-.65 6.6-.76 6.6-.76s6.6.11 6.6.76-4.47 1.4-4.47 1.4 1.69 8.14 1.06 8.38c-.62.24-3.19-5.19-3.19-5.19s-2.56 5.43-3.18 5.19c-.63-.24 1.06-8.38 1.06-8.38S3.4 8.01 3.4 7.36z";break;case"unlock":e="M12 9V6c0-1.1-.9-2-2-2s-2 .9-2 2H6c0-2.21 1.79-4 4-4s4 1.79 4 4v3h1c.55 0 1 .45 1 1v7c0 .55-.45 1-1 1H5c-.55 0-1-.45-1-1v-7c0-.55.45-1 1-1h7zm-1 7l-.36-2.15c.51-.24.86-.75.86-1.35 0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5c0 .6.35 1.11.86 1.35L9 16h2z";break;case"update":e="M10.2 3.28c3.53 0 6.43 2.61 6.92 6h2.08l-3.5 4-3.5-4h2.32c-.45-1.97-2.21-3.45-4.32-3.45-1.45 0-2.73.71-3.54 1.78L4.95 5.66C6.23 4.2 8.11 3.28 10.2 3.28zm-.4 13.44c-3.52 0-6.43-2.61-6.92-6H.8l3.5-4c1.17 1.33 2.33 2.67 3.5 4H5.48c.45 1.97 2.21 3.45 4.32 3.45 1.45 0 2.73-.71 3.54-1.78l1.71 1.95c-1.28 1.46-3.15 2.38-5.25 2.38z";break;case"upload":e="M8 14V8H5l5-6 5 6h-3v6H8zm-2 2v-6H4v8h12.01v-8H14v6H6z";break;case"vault":e="M18 17V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14c0 .55.45 1 1 1h14c.55 0 1-.45 1-1zm-1 0H3V3h14v14zM4.75 4h10.5c.41 0 .75.34.75.75V6h-1v3h1v2h-1v3h1v1.25c0 .41-.34.75-.75.75H4.75c-.41 0-.75-.34-.75-.75V4.75c0-.41.34-.75.75-.75zM13 10c0-2.21-1.79-4-4-4s-4 1.79-4 4 1.79 4 4 4 4-1.79 4-4zM9 7l.77 1.15C10.49 8.46 11 9.17 11 10c0 1.1-.9 2-2 2s-2-.9-2-2c0-.83.51-1.54 1.23-1.85z";break;case"video-alt":e="M8 5c0-.55-.45-1-1-1H2c-.55 0-1 .45-1 1 0 .57.49 1 1 1h5c.55 0 1-.45 1-1zm6 5l4-4v10l-4-4v-2zm-1 4V8c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h8c.55 0 1-.45 1-1z";break;case"video-alt2":e="M12 13V7c0-1.1-.9-2-2-2H3c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2zm1-2.5l6 4.5V5l-6 4.5v1z";break;case"video-alt3":e="M19 15V5c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2zM8 14V6l6 4z";break;case"visibility":e="M19.7 9.4C17.7 6 14 3.9 10 3.9S2.3 6 .3 9.4L0 10l.3.6c2 3.4 5.7 5.5 9.7 5.5s7.7-2.1 9.7-5.5l.3-.6-.3-.6zM10 14.1c-3.1 0-6-1.6-7.7-4.1C3.6 8 5.7 6.6 8 6.1c-.9.6-1.5 1.7-1.5 2.9 0 1.9 1.6 3.5 3.5 3.5s3.5-1.6 3.5-3.5c0-1.2-.6-2.3-1.5-2.9 2.3.5 4.4 1.9 5.7 3.9-1.7 2.5-4.6 4.1-7.7 4.1z";break;case"warning":e="M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm1.13 9.38l.35-6.46H8.52l.35 6.46h2.26zm-.09 3.36c.24-.23.37-.55.37-.96 0-.42-.12-.74-.36-.97s-.59-.35-1.06-.35-.82.12-1.07.35-.37.55-.37.97c0 .41.13.73.38.96.26.23.61.34 1.06.34s.8-.11 1.05-.34z";break;case"welcome-add-page":e="M17 7V4h-2V2h-3v1H3v15h11V9h1V7h2zm-1-2v1h-2v2h-1V6h-2V5h2V3h1v2h2z";break;case"welcome-comments":e="M5 2h10c1.1 0 2 .9 2 2v8c0 1.1-.9 2-2 2h-2l-5 5v-5H5c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2zm8.5 8.5L11 8l2.5-2.5-1-1L10 7 7.5 4.5l-1 1L9 8l-2.5 2.5 1 1L10 9l2.5 2.5z";break;case"welcome-learn-more":e="M10 10L2.54 7.02 3 18H1l.48-11.41L0 6l10-4 10 4zm0-5c-.55 0-1 .22-1 .5s.45.5 1 .5 1-.22 1-.5-.45-.5-1-.5zm0 6l5.57-2.23c.71.94 1.2 2.07 1.36 3.3-.3-.04-.61-.07-.93-.07-2.55 0-4.78 1.37-6 3.41C8.78 13.37 6.55 12 4 12c-.32 0-.63.03-.93.07.16-1.23.65-2.36 1.36-3.3z";break;case"welcome-view-site":e="M18 14V4c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h14c.55 0 1-.45 1-1zm-8-8c2.3 0 4.4 1.14 6 3-1.6 1.86-3.7 3-6 3s-4.4-1.14-6-3c1.6-1.86 3.7-3 6-3zm2 3c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2zm2 8h3v1H3v-1h3v-1h8v1z";break;case"welcome-widgets-menus":e="M19 16V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v13c0 .55.45 1 1 1h15c.55 0 1-.45 1-1zM4 4h13v4H4V4zm1 1v2h3V5H5zm4 0v2h3V5H9zm4 0v2h3V5h-3zm-8.5 5c.28 0 .5.22.5.5s-.22.5-.5.5-.5-.22-.5-.5.22-.5.5-.5zM6 10h4v1H6v-1zm6 0h5v5h-5v-5zm-7.5 2c.28 0 .5.22.5.5s-.22.5-.5.5-.5-.22-.5-.5.22-.5.5-.5zM6 12h4v1H6v-1zm7 0v2h3v-2h-3zm-8.5 2c.28 0 .5.22.5.5s-.22.5-.5.5-.5-.22-.5-.5.22-.5.5-.5zM6 14h4v1H6v-1z";break;case"welcome-write-blog":e="M16.89 1.2l1.41 1.41c.39.39.39 1.02 0 1.41L14 8.33V18H3V3h10.67l1.8-1.8c.4-.39 1.03-.4 1.42 0zm-5.66 8.48l5.37-5.36-1.42-1.42-5.36 5.37-.71 2.12z";break;case"wordpress-alt":e="M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z";break;case"wordpress":e="M20 10c0-5.52-4.48-10-10-10S0 4.48 0 10s4.48 10 10 10 10-4.48 10-10zM10 1.01c4.97 0 8.99 4.02 8.99 8.99s-4.02 8.99-8.99 8.99S1.01 14.97 1.01 10 5.03 1.01 10 1.01zM8.01 14.82L4.96 6.61c.49-.03 1.05-.08 1.05-.08.43-.05.38-1.01-.06-.99 0 0-1.29.1-2.13.1-.15 0-.33 0-.52-.01 1.44-2.17 3.9-3.6 6.7-3.6 2.09 0 3.99.79 5.41 2.09-.6-.08-1.45.35-1.45 1.42 0 .66.38 1.22.79 1.88.31.54.5 1.22.5 2.21 0 1.34-1.27 4.48-1.27 4.48l-2.71-7.5c.48-.03.75-.16.75-.16.43-.05.38-1.1-.05-1.08 0 0-1.3.11-2.14.11-.78 0-2.11-.11-2.11-.11-.43-.02-.48 1.06-.05 1.08l.84.08 1.12 3.04zm6.02 2.15L16.64 10s.67-1.69.39-3.81c.63 1.14.94 2.42.94 3.81 0 2.96-1.56 5.58-3.94 6.97zM2.68 6.77L6.5 17.25c-2.67-1.3-4.47-4.08-4.47-7.25 0-1.16.2-2.23.65-3.23zm7.45 4.53l2.29 6.25c-.75.27-1.57.42-2.42.42-.72 0-1.41-.11-2.06-.3z";break;case"yes-alt":e="M10 2c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm-.615 12.66h-1.34l-3.24-4.54 1.34-1.25 2.57 2.4 5.14-5.93 1.34.94-5.81 8.38z";break;case"yes":e="M14.83 4.89l1.34.94-5.81 8.38H9.02L5.78 9.67l1.34-1.25 2.57 2.4z"}if(!e)return null;var s=["dashicon","dashicons-"+c,r].filter(Boolean).join(" ");return Object(_.createElement)(Me,C({"aria-hidden":!0,role:"img",focusable:"false",className:s,xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 20 20"},o),Object(_.createElement)(He,{d:e}))}}]),t}();var xe=function(e){var t=e.icon,c=void 0===t?null:t,a=e.size,n=V(e,["icon","size"]),r=a||20;if("string"==typeof c)return Object(_.createElement)(Ve,C({icon:c,size:r},n));if(c&&Ve===c.type)return Object(_.cloneElement)(c,M({size:r},n));var o=a||24;if("function"==typeof c)return c.prototype instanceof _.Component?Object(_.createElement)(c,M({size:o},n)):c(M({size:o},n));if(c&&("svg"===c.type||c.type===Me)){var s=M({width:o,height:o},c.props,n);return Object(_.createElement)(Me,s)}return Object(_.isValidElement)(c)?Object(_.cloneElement)(c,M({size:o},n)):c};var Ce=Object(_.forwardRef)(function(e,t){var c=e.icon,a=e.children,n=e.label,r=e.className,o=e.tooltip,s=e.shortcut,i=e.labelPosition,l=e.size,m=V(e,["icon","children","label","className","tooltip","shortcut","labelPosition","size"]),u=j()("components-icon-button",r,{"has-text":a}),h=o||n,d=!m.disabled&&(o||s||!!n&&(!a||Object(O.isArray)(a)&&!a.length)&&!1!==o),v=Object(_.createElement)(x,C({"aria-label":n},m,{className:u,ref:t}),Object(_.createElement)(xe,{icon:c,size:l}),a);return d&&(v=Object(_.createElement)(je,{text:h,shortcut:s,position:i},v)),v});var Le=function(e){var t=e.className,c=e.status,a=e.children,n=e.onRemove,r=void 0===n?O.noop:n,o=e.isDismissible,s=void 0===o||o,i=e.actions,l=void 0===i?[]:i,m=e.__unstableHTML,u=j()(t,"components-notice","is-"+c,{"is-dismissible":s});return m&&(a=Object(_.createElement)(_.RawHTML,null,a)),Object(_.createElement)("div",{className:u},Object(_.createElement)("div",{className:"components-notice__content"},a,l.map(function(e,t){var c=e.className,a=e.label,n=e.noDefaultClasses,r=void 0!==n&&n,o=e.onClick,s=e.url;return Object(_.createElement)(x,{key:t,href:s,isDefault:!r&&!s,isLink:!r&&!!s,onClick:s?void 0:o,className:j()("components-notice__action",c)},a)})),s&&Object(_.createElement)(Ce,{className:"components-notice__dismiss",icon:"no-alt",label:Object(w.__)("Dismiss this notice"),onClick:r,tooltip:!1}))},Se=c(70),Ne=(c(45),function(){Object(_.useEffect)(function(){var e=document.createElement("script");e.src="https://js.stripe.com/v3",e.async=!0,document.querySelector('[src="'.concat(e.src,'"]'))||document.body.appendChild(e)},[])}),Te=(c(46),function(e){var t=e.children,c=e.maxWidth,a=e.isNarrow,n=e.className,r=c?{maxWidth:c}:null,o=[void 0===n?"":n,"woocommerce-payments-page"];return a&&o.push("is-narrow"),Ne(),Object(_.createElement)("div",{className:o.join(" "),style:r},t)}),Be=function(){return Object(_.createElement)("svg",{width:"260",height:"193",viewBox:"0 0 260 193",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(_.createElement)("g",{clipPath:"url(#clip0)"},Object(_.createElement)("path",{d:"M188.147 0.353976L5.49328 57.1468C1.37508 58.4273 -0.926025 62.806 0.353615 66.9269L33.2129 172.746C34.4926 176.867 38.8684 179.169 42.9866 177.889L225.64 121.096C229.758 119.815 232.059 115.437 230.78 111.316L197.92 5.49701C196.641 1.37611 192.265 -0.926507 188.147 0.353976Z",fill:"url(#paint0_linear)"}),Object(_.createElement)("path",{d:"M187.201 2.02519L8.57824 57.5647C4.46004 58.8451 2.15894 63.2238 3.43858 67.3447L34.9709 168.89C36.2505 173.011 40.6264 175.314 44.7446 174.033L223.367 118.494C227.485 117.213 229.786 112.835 228.507 108.714L196.974 7.16823C195.695 3.04733 191.319 0.744715 187.201 2.02519Z",fill:"white"}),Object(_.createElement)("path",{d:"M199.423 15.0552L5.8877 75.2317L11.0743 91.9346L204.61 31.7581L199.423 15.0552Z",fill:"#674399"}),Object(_.createElement)("path",{d:"M95.0713 134.624L45.8979 149.914L48.1408 157.137L97.3142 141.847L95.0713 134.624Z",fill:"#BDBDBD"}),Object(_.createElement)("path",{d:"M127.377 111.214L42.1133 137.725L44.3562 144.948L129.62 118.437L127.377 111.214Z",fill:"#E0E0E0"}),Object(_.createElement)("path",{d:"M252.192 66.439H59.7576C55.4451 66.439 51.9492 69.9372 51.9492 74.2524V185.187C51.9492 189.502 55.4451 193 59.7576 193H252.192C256.504 193 260 189.502 260 185.187V74.2524C260 69.9372 256.504 66.439 252.192 66.439Z",fill:"url(#paint1_linear)"}),Object(_.createElement)("path",{d:"M249.166 67.7293H62.1194C57.8069 67.7293 54.311 71.2275 54.311 75.5428V181.877C54.311 186.193 57.8069 189.691 62.1194 189.691H249.166C253.479 189.691 256.975 186.193 256.975 181.877V75.5428C256.975 71.2275 253.479 67.7293 249.166 67.7293Z",fill:"white"}),Object(_.createElement)("path",{d:"M108.411 126.936H102.506V143.718H108.411V126.936Z",fill:"#E0E0E0"}),Object(_.createElement)("path",{d:"M115.97 126.936H110.064V143.718H115.97V126.936Z",fill:"#E0E0E0"}),Object(_.createElement)("path",{d:"M123.528 126.936H117.623V143.718H123.528V126.936Z",fill:"#E0E0E0"}),Object(_.createElement)("path",{d:"M136.756 126.936H130.851V143.718H136.756V126.936Z",fill:"#E0E0E0"}),Object(_.createElement)("path",{d:"M144.314 126.936H138.409V143.718H144.314V126.936Z",fill:"#E0E0E0"}),Object(_.createElement)("path",{d:"M151.872 126.936H145.967V143.718H151.872V126.936Z",fill:"#E0E0E0"}),Object(_.createElement)("path",{d:"M165.1 126.936H159.195V143.718H165.1V126.936Z",fill:"#E0E0E0"}),Object(_.createElement)("path",{d:"M172.659 126.936H166.753V143.718H172.659V126.936Z",fill:"#E0E0E0"}),Object(_.createElement)("path",{d:"M180.217 126.936H174.312V143.718H180.217V126.936Z",fill:"#E0E0E0"}),Object(_.createElement)("path",{d:"M193.445 126.936H187.54V143.718H193.445V126.936Z",fill:"#E0E0E0"}),Object(_.createElement)("path",{d:"M201.003 126.936H195.098V143.718H201.003V126.936Z",fill:"#E0E0E0"}),Object(_.createElement)("path",{d:"M208.562 126.936H202.657V143.718H208.562V126.936Z",fill:"#E0E0E0"}),Object(_.createElement)("path",{d:"M102.414 99.6817H67.2051V119.002H102.414V99.6817Z",fill:"#674399"}),Object(_.createElement)("path",{opacity:"0.1",d:"M225.643 163.042H204.064V184.635H225.643V163.042Z",fill:"#674399"}),Object(_.createElement)("path",{opacity:"0.1",d:"M236.433 163.042H214.854V184.635H236.433V163.042Z",fill:"#674399"})),Object(_.createElement)("defs",null,Object(_.createElement)("linearGradient",{id:"paint0_linear",x1:"115.955",y1:"178.574",x2:"116.743",y2:"-0.324663",gradientUnits:"userSpaceOnUse"},Object(_.createElement)("stop",{stopColor:"#808080",stopOpacity:"0.25"}),Object(_.createElement)("stop",{offset:"0.53514",stopColor:"#808080",stopOpacity:"0.12"}),Object(_.createElement)("stop",{offset:"1",stopColor:"#808080",stopOpacity:"0.1"})),Object(_.createElement)("linearGradient",{id:"paint1_linear",x1:"114339",y1:"86036.4",x2:"114339",y2:"29661",gradientUnits:"userSpaceOnUse"},Object(_.createElement)("stop",{stopColor:"#808080",stopOpacity:"0.25"}),Object(_.createElement)("stop",{offset:"0.53514",stopColor:"#808080",stopOpacity:"0.12"}),Object(_.createElement)("stop",{offset:"1",stopColor:"#808080",stopOpacity:"0.1"})),Object(_.createElement)("clipPath",{id:"clip0"},Object(_.createElement)("rect",{width:"260",height:"193",fill:"white"}))))},Re=function(){var e=Object(_.useState)(!1),t=z()(e,2),c=t[0],a=t[1];return Object(_.createElement)(Te,{isNarrow:!0,className:"connect-account"},wcpaySettings.errorMessage&&Object(_.createElement)(Le,{className:"wcpay-connect-error-notice",status:"error",isDismissible:!1},wcpaySettings.errorMessage),Object(_.createElement)(E.Card,{className:"connect-account__card"},Object(_.createElement)(Be,null),Object(_.createElement)("h2",null," ",Object(w.__)("WooCommerce Payments","woocommerce-payments")," "),Object(_.createElement)("p",{className:"connect-account__description"},Object(w.__)("Accept credit card payments the easy way! No set up fees. No monthly fees. Just 2.9% + $0.30 per transaction on U.S.-issued cards.","woocommerce-payments")),wcpaySettings.onBoardingDisabled?Object(_.createElement)("p",null,Object(w.__)("We've temporarily paused new account creation.","woocommmerce-payments"),Object(_.createElement)("br",null),Object(w.__)("We'll notify you when we resume!","woocommmerce-payments")):Object(_.createElement)(_.Fragment,null,Object(_.createElement)("p",{className:"connect-account__terms"},Object(Se.a)(Object(w.__)("By clicking “Set up,” you agree to the <a>Terms of Service</a>","woocommerce-payments"),{a:Object(_.createElement)("a",{href:"https://wordpress.com/tos"})})),Object(_.createElement)("hr",{className:"full-width"}),Object(_.createElement)("p",{className:"connect-account__action"},Object(_.createElement)(x,{isPrimary:!0,isLarge:!0,isBusy:c,disabled:c,onClick:function(){a(!0),window.wcTracks.recordEvent("wcpay_connect_account_clicked")},href:wcpaySettings.connectUrl},Object(w.__)("Set up","woocommerce-payments"))))))},Ie=c(14),De=c.n(Ie),Ae=c(11),Pe=c(18),Fe=c.n(Pe),qe=c(6),Ue=c.n(qe),We=(c(50),"/wc/v3/payments"),Qe="wc/payments",Ye=c(4),Ze=c.n(Ye),$e=c(12),Ge=c(9),Je=c(8),Ke=c.n(Je),Xe={SET_DEPOSIT:"SET_DEPOSIT",SET_DEPOSITS_OVERVIEW:"SET_DEPOSITS_OVERVIEW",SET_ERROR_FOR_DEPOSITS_OVERVIEW:"SET_ERROR_FOR_DEPOSITS_OVERVIEW",SET_DEPOSITS:"SET_DEPOSITS",SET_ERROR_FOR_DEPOSIT_QUERY:"SET_ERROR_FOR_DEPOSIT_QUERY"},et=function(e){return JSON.stringify(e,Object.keys(e).sort())},tt={byId:{},queries:{}},ct=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:tt,t=arguments.length>1?arguments[1]:void 0,c=t.type,a=t.query,n=void 0===a?{}:a,r=t.data,o=void 0===r?[]:r,s=t.error,i=et(n);switch(c){case Xe.SET_DEPOSIT:return Ze()({},e,{byId:Ze()({},e.byId,Ke()({},o.id,o))});case Xe.SET_DEPOSITS_OVERVIEW:return Ze()({},e,{overview:Ze()({},e.overview,{data:o})});case Xe.SET_ERROR_FOR_DEPOSITS_OVERVIEW:return Ze()({},e,{overview:Ze()({},e.overview,{error:s})});case Xe.SET_DEPOSITS:return Ze()({},e,{byId:Ze()({},e.byId,{},Object(O.keyBy)(o,"id")),queries:Ze()({},e.queries,Ke()({},i,{data:Object(O.map)(o,"id")}))});case Xe.SET_ERROR_FOR_DEPOSIT_QUERY:return Ze()({},e,{queries:Ze()({},e.queries,Ke()({},i,{error:s}))})}return e},at=function(e){return e&&e.deposits||{}},nt=function(e,t){return(at(e).byId||{})[t]},rt=function(e){return(at(e).overview||{}).data},ot=function(e){return(at(e).overview||{}).error},st=function(e,t){var c=et(t);return(at(e).queries||{})[c]||{}},it=function(e,t){return(st(e,t).data||[]).map(nt.bind(void 0,e))},lt=function(e,t){return st(e,t).error||{}};function mt(e){return{type:Xe.SET_DEPOSIT,data:e}}function ut(e){return{type:Xe.SET_DEPOSITS_OVERVIEW,data:e}}function ht(e,t){return{type:Xe.SET_ERROR_FOR_DEPOSITS_OVERVIEW,error:t}}function dt(e,t){return{type:Xe.SET_DEPOSITS,query:e,data:t}}function vt(e,t,c){return{type:Xe.SET_ERROR_FOR_DEPOSIT_QUERY,query:e,data:t,error:c}}var pt=c(5),ft=c.n(pt),gt=c(10),wt=ft.a.mark(_t),bt=ft.a.mark(Et),yt=ft.a.mark(Ot),zt=function(e){return{id:e.id,date:+new Date(1e3*e.arrival_date),type:e.amount>0?"deposit":"withdrawal",amount:e.amount,status:e.status,bankAccount:e.destination.bank_name&&"".concat(e.destination.bank_name," ")+"•••• ".concat(e.destination.last4," ")+"(".concat(e.destination.currency.toUpperCase(),")")}};function _t(e){var t,c;return ft.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return t=Object(gt.addQueryArgs)("".concat(We,"/deposits/").concat(e)),a.prev=1,a.next=4,Object(Ge.apiFetch)({path:t});case 4:return"payout"===(c=a.sent).object&&(c=zt(c)),a.next=8,mt(c);case 8:a.next=14;break;case 10:return a.prev=10,a.t0=a.catch(1),a.next=14,Object(Ge.dispatch)("core/notices","createErrorNotice",Object(w.__)("Error retrieving deposit.","woocommerce-payments"));case 14:case"end":return a.stop()}},wt,null,[[1,10]])}function Et(){var e,t;return ft.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return e=Object(gt.addQueryArgs)("".concat(We,"/deposits/overview")),c.prev=1,c.next=4,Object(Ge.apiFetch)({path:e});case 4:return(t=c.sent).last_deposit&&"payout"===t.last_deposit.object&&(t.last_deposit=zt(t.last_deposit)),t.next_deposit&&"payout"===t.next_deposit.object&&(t.next_deposit=zt(t.next_deposit)),c.next=9,ut(t);case 9:c.next=17;break;case 11:return c.prev=11,c.t0=c.catch(1),c.next=15,Object(Ge.dispatch)("core/notices","createErrorNotice",Object(w.__)("Error retrieving deposits overview.","woocommerce-payments"));case 15:return c.next=17,ht(c.t0);case 17:case"end":return c.stop()}},bt,null,[[1,11]])}function Ot(e){var t,c,a;return ft.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return t=Object(gt.addQueryArgs)("".concat(We,"/deposits"),{page:e.paged,pagesize:e.perPage}),n.prev=1,n.next=4,Object(Ge.apiFetch)({path:t})||{};case 4:return(c=n.sent).data&&c.data.length&&"payout"===c.data[0].object&&(c.data=c.data.map(zt)),n.next=8,dt(e,c.data);case 8:n.t0=ft.a.keys(c.data);case 9:if((n.t1=n.t0()).done){n.next=15;break}return a=n.t1.value,n.next=13,Object(Ge.dispatch)(Qe,"finishResolution","getDeposit",[c.data[a].id]);case 13:n.next=9;break;case 15:n.next=23;break;case 17:return n.prev=17,n.t2=n.catch(1),n.next=21,Object(Ge.dispatch)("core/notices","createErrorNotice",Object(w.__)("Error retrieving deposits.","woocommerce-payments"));case 21:return n.next=23,vt(e,null,n.t2);case 23:case"end":return n.stop()}},yt,null,[[1,17]])}var kt={SET_TRANSACTIONS:"SET_TRANSACTIONS",SET_ERROR_FOR_TRANSACTIONS:"SET_ERROR_FOR_TRANSACTIONS",SET_TRANSACTIONS_SUMMARY:"SET_TRANSACTIONS_SUMMARY",SET_ERROR_FOR_TRANSACTIONS_SUMMARY:"SET_ERROR_FOR_TRANSACTIONS_SUMMARY"},jt={summary:{}},Ht=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:jt,t=arguments.length>1?arguments[1]:void 0,c=t.type,a=t.query,n=void 0===a?{}:a,r=t.data,o=void 0===r?[]:r,s=t.error,i=et(n);switch(c){case kt.SET_TRANSACTIONS:return Ze()({},e,Ke()({},i,{data:o}));case kt.SET_ERROR_FOR_TRANSACTIONS:return Ze()({},e,Ke()({},i,{error:s}));case kt.SET_TRANSACTIONS_SUMMARY:return Ze()({},e,{summary:Ze()({},e.summary,Ke()({},i,{data:o}))});case kt.SET_ERROR_FOR_TRANSACTIONS_SUMMARY:return Ze()({},e,{summary:Ze()({},e.summary,Ke()({},i,{error:s}))})}return e},Mt=function(e){return e&&e.transactions||{}},Vt=function(e,t){var c=et(t);return Mt(e)[c]||{}},xt=function(e,t){return Vt(e,t).data||[]},Ct=function(e,t){return Vt(e,t).error||{}},Lt=function(e,t){var c=et(t);return Mt(e).summary[c]||{}},St=function(e,t){return Lt(e,t).data||{}},Nt=function(e,t){return Lt(e,t).error||{}};function Tt(e,t){return{type:kt.SET_TRANSACTIONS,query:e,data:t}}function Bt(e,t,c){return{type:kt.SET_ERROR_FOR_TRANSACTIONS,query:e,data:t,error:c}}function Rt(e,t){return{type:kt.SET_TRANSACTIONS_SUMMARY,query:e,data:t}}function It(e,t,c){return{type:kt.SET_ERROR_FOR_TRANSACTIONS_SUMMARY,query:e,data:t,error:c}}var Dt=function(e){return Object(O.capitalize)(e).replace(/_/g," ")},At=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=t?Ue()(e).endOf("day").utc():Ue()(e).startOf("day").utc();return e&&Object(Ae.dateI18n)("Y-m-d H:i:s",c)},Pt=ft.a.mark(Ut),Ft=ft.a.mark(Wt),qt=function(e){return{match:e.match,date_before:At(e.dateBefore,!0),date_after:At(e.dateAfter),date_between:e.dateBetween&&[At(e.dateBetween[0]),At(e.dateBetween[1],!0)],type_is:e.typeIs,type_is_not:e.typeIsNot,deposit_id:e.depositId,search:e.search}};function Ut(e){var t,c;return ft.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return t=Object(gt.addQueryArgs)("".concat(We,"/transactions"),Ze()({page:e.paged,pagesize:e.perPage,sort:e.orderby,direction:e.order},qt(e))),a.prev=1,a.next=4,Object(Ge.apiFetch)({path:t});case 4:return c=a.sent,a.next=7,Tt(e,c.data||[]);case 7:a.next=13;break;case 9:return a.prev=9,a.t0=a.catch(1),a.next=13,Bt(e,null,a.t0);case 13:case"end":return a.stop()}},Pt,null,[[1,9]])}function Wt(e){var t,c;return ft.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return t=Object(gt.addQueryArgs)("".concat(We,"/transactions/summary"),qt(e)),a.prev=1,a.next=4,Object(Ge.apiFetch)({path:t});case 4:return c=a.sent,a.next=7,Rt(e,c);case 7:a.next=13;break;case 9:return a.prev=9,a.t0=a.catch(1),a.next=13,It(e,null,a.t0);case 13:case"end":return a.stop()}},Ft,null,[[1,9]])}var Qt={SET_CHARGE:"SET_CHARGE",SET_ERROR_FOR_CHARGE:"SET_ERROR_FOR_CHARGE"},Yt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,c=t.type,a=t.id,n=t.data,r=t.error;switch(c){case Qt.SET_CHARGE:e=Ze()({},e,Ke()({},a,Ze()({},e[a],{data:n})));break;case Qt.SET_ERROR_FOR_CHARGE:e=Ze()({},e,Ke()({},a,Ze()({},e[a],{error:r})))}return e},Zt=function(e,t){return e.charges[t]&&e.charges[t].data?e.charges[t].data:{}},$t=function(e,t){return e.charges[t]&&e.charges[t].error?e.charges[t].error:{}};function Gt(e,t){return{type:Qt.SET_CHARGE,id:e,data:t}}function Jt(e,t,c){return{type:Qt.SET_ERROR_FOR_CHARGE,id:e,data:t,error:c}}var Kt=ft.a.mark(Xt);function Xt(e){var t;return ft.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.prev=0,c.next=3,Object(Ge.apiFetch)({path:"".concat(We,"/charges/").concat(e)});case 3:return t=c.sent,c.next=6,Gt(e,t);case 6:c.next=12;break;case 8:return c.prev=8,c.t0=c.catch(0),c.next=12,Jt(e,null,c.t0);case 12:case"end":return c.stop()}},Kt,null,[[0,8]])}var ec={SET_TIMELINE:"SET_TIMELINE",SET_ERROR_FOR_TIMELINE:"SET_ERROR_FOR_TIMELINE"},tc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,c=t.type,a=t.id,n=t.data,r=t.error;switch(c){case ec.SET_TIMELINE:e=Ze()({},e,Ke()({},a,{data:n}));break;case ec.SET_ERROR_FOR_TIMELINE:e=Ze()({},e,Ke()({},a,Ze()({},e[a],{error:r})))}return e},cc=function(e,t){return e.timeline&&e.timeline[t]&&e.timeline[t].data?e.timeline[t].data:{}},ac=function(e,t){return e.timeline&&e.timeline[t]&&e.timeline[t].error?e.timeline[t].error:{}};function nc(e,t){return{id:e,type:ec.SET_TIMELINE,data:t}}function rc(e,t){return{id:e,type:ec.SET_ERROR_FOR_TIMELINE,error:t}}var oc=ft.a.mark(sc);function sc(e){var t;return ft.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.prev=0,c.next=3,Object(Ge.apiFetch)({path:"".concat(We,"/timeline/").concat(e)});case 3:return t=c.sent,c.next=6,nc(e,t.data);case 6:c.next=12;break;case 8:return c.prev=8,c.t0=c.catch(0),c.next=12,rc(e,c.t0);case 12:case"end":return c.stop()}},oc,null,[[0,8]])}var ic={SET_DISPUTE:"SET_DISPUTE",SET_DISPUTES:"SET_DISPUTES"},lc={byId:{},queries:{}},mc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:lc,t=arguments.length>1?arguments[1]:void 0,c=t.type,a=t.query,n=void 0===a?{}:a,r=t.data,o=void 0===r?[]:r,s=et(n);switch(c){case ic.SET_DISPUTE:return Ze()({},e,{byId:Ze()({},e.byId,Ke()({},o.id,o))});case ic.SET_DISPUTES:return Ze()({},e,{byId:Ze()({},e.byId,{},Object(O.keyBy)(o,"id")),queries:Ze()({},e.queries,Ke()({},s,{data:Object(O.map)(o,"id")}))})}return e},uc=function(e){return e&&e.disputes||{}},hc=function(e,t){return(uc(e).byId||{})[t]},dc=function(e,t){return(function(e,t){var c=et(t);return(uc(e).queries||{})[c]||{}}(e,t).data||[]).map(hc.bind(void 0,e))},vc=c(7),pc=ft.a.mark(wc);function fc(e){return{type:ic.SET_DISPUTE,data:e}}function gc(e,t){return{type:ic.SET_DISPUTES,query:e,data:t}}function wc(e){var t,c,a;return ft.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,Object(Ge.dispatch)(Qe,"startResolution","getDispute",[e]);case 3:return n.next=5,Object(Ge.apiFetch)({path:"".concat(We,"/disputes/").concat(e,"/close"),method:"post"});case 5:return t=n.sent,n.next=8,fc(t);case 8:return n.next=10,Object(Ge.dispatch)(Qe,"finishResolution","getDispute",[e]);case 10:return Object(vc.getHistory)().push(Object(gt.addQueryArgs)("admin.php",{page:"wc-admin",path:"/payments/disputes"})),window.wcTracks.recordEvent("wcpay_dispute_accept_success"),c=t.order?Object(w.sprintf)(Object(w.__)("You have accepted the dispute for order #%s.","woocommerce-payments"),t.order.number):Object(w.__)("You have accepted the dispute.","woocommerce-payments"),n.next=15,Object(Ge.dispatch)("core/notices","createSuccessNotice",c);case 15:n.next=23;break;case 17:return n.prev=17,n.t0=n.catch(0),a=Object(w.__)("There has been an error accepting the dispute. Please try again later.","woocommerce-payments"),window.wcTracks.recordEvent("wcpay_dispute_accept_failed"),n.next=23,Object(Ge.dispatch)("core/notices","createErrorNotice",a);case 23:case"end":return n.stop()}},pc,null,[[0,17]])}var bc=ft.a.mark(zc),yc=ft.a.mark(_c);function zc(e){var t,c;return ft.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return t=Object(gt.addQueryArgs)("".concat(We,"/disputes/").concat(e)),a.prev=1,a.next=4,Object(Ge.apiFetch)({path:t});case 4:return c=a.sent,a.next=7,fc(c);case 7:a.next=13;break;case 9:return a.prev=9,a.t0=a.catch(1),a.next=13,Object(Ge.dispatch)("core/notices","createErrorNotice",Object(w.__)("Error retrieving dispute.","woocommerce-payments"));case 13:case"end":return a.stop()}},bc,null,[[1,9]])}function _c(e){var t,c,a;return ft.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return t=Object(gt.addQueryArgs)("".concat(We,"/disputes"),{page:e.paged,pagesize:e.perPage}),n.prev=1,n.next=4,Object(Ge.apiFetch)({path:t})||{};case 4:return c=n.sent,n.next=7,gc(e,c.data);case 7:n.t0=ft.a.keys(c.data);case 8:if((n.t1=n.t0()).done){n.next=14;break}return a=n.t1.value,n.next=12,Object(Ge.dispatch)(Qe,"finishResolution","getDispute",[c.data[a].id]);case 12:n.next=8;break;case 14:n.next=20;break;case 16:return n.prev=16,n.t2=n.catch(1),n.next=20,Object(Ge.dispatch)("core/notices","createErrorNotice",Object(w.__)("Error retrieving disputes.","woocommerce-payments"));case 20:case"end":return n.stop()}},yc,null,[[1,16]])}Object($e.registerStore)(Qe,{reducer:Object($e.combineReducers)({deposits:ct,transactions:Ht,charges:Yt,timeline:tc,disputes:mc}),actions:Ze()({},n,{},s,{},m,{},d,{},f),controls:Ge.controls,selectors:Ze()({},a,{},o,{},l,{},h,{},p),resolvers:Ze()({},r,{},i,{},u,{},v,{},g)});var Ec=c(20),Oc=c.n(Ec),kc=c(25),jc=c.n(kc),Hc=(c(52),function(e){var t=e.isLoading,c=e.display,a=e.placeholder,n=e.value,r=e.children;return t?Object(_.createElement)("span",{className:c?"is-loadable-placeholder is-".concat(c):"is-loadable-placeholder","aria-busy":"true"},void 0===a?r||n:a):r||n||null}),Mc=function(e){var t=e.numLines,c=void 0===t?1:t,a=jc()(e,["numLines"]),n=Object(_.createElement)("p",{style:{lineHeight:c}},"Block placeholder");return Object(_.createElement)(Hc,Oc()({},a,{placeholder:n,display:"block"}))},Vc=Hc,xc=function(e,t){return Object(gt.addQueryArgs)("admin.php",{page:"wc-admin",path:"/payments/".concat(t,"/details"),id:e})},Cc=function(e){var t=e.id,c=e.parentSegment;return t?Object(_.createElement)(E.Link,{href:xc(t,c)},Object(_.createElement)(Fe.a,{icon:"info-outline",size:18})):null},Lc=new De.a,Sc=function(e,t){return Object(Ae.dateI18n)(e,Ue.a.utc(t))},Nc=function(e){return Lc.formatCurrency((e?e.amount:0)/100)},Tc=function(e){var t=e?"".concat(Object(w.__)("Est.","woocommerce-payments")," ").concat(Sc("M j, Y",e.date)):"—";return e&&"in_transit"===e.status?"".concat(t," - ").concat(Object(w.__)("In transit","woocommerce-payments")):t},Bc=function(e){switch(e.interval){case"daily":return Object(w.__)("Automatic, every business day","woocommerce-payments");case"weekly":return Object(w.sprintf)(Object(w.__)("Automatic, every week on %s","woocommerce-payments"),Ue()().locale("en").day(e.weekly_anchor).locale(Ue.a.locale()).format("dddd"));case"monthly":var t=Ue.a.locale().startsWith("en")?"en":Ue.a.locale();return Object(w.sprintf)(Object(w.__)("Automatic, every month on the %s","woocommerce-payments"),Ue()().locale(t).date(e.monthly_anchor).format("Do"))}},Rc=function(){var e=Object($e.useSelect)(function(e){var t=e(Qe),c=t.getDepositsOverview,a=t.getDepositsOverviewError,n=t.isResolving;return{overview:c(),overviewError:a(),isLoading:n("getDepositsOverview")}}),t=e.overview,c=e.isLoading;return Object(_.createElement)("div",{className:"wcpay-deposits-overview"},Object(_.createElement)("p",{className:"wcpay-deposits-overview__schedule"},Object(_.createElement)(Fe.a,{icon:"calendar",className:"wcpay-deposits-overview__schedule-icon"}),Object(_.createElement)("span",{className:"wcpay-deposits-overview__schedule-label"},Object(w.__)("Deposit schedule:","woocommerce-payments"))," ",Object(_.createElement)("span",{className:"wcpay-deposits-overview__schedule-value"},Object(_.createElement)(Vc,{isLoading:c||!t,display:"inline",placeholder:"Deposit schedule placeholder"},t?(a=t,n=a.account,r=n.deposits_schedule,o=n.deposits_disabled,s=a.last_deposit,o||"manual"===r.interval?Object(Se.a)(Object(w.__)("Temporarily suspended (<a>learn more</a>)","woocommerce-payments"),{a:Object(_.createElement)("a",{href:"https://docs.woocommerce.com/document/payments/faq/deposits-suspended/",target:"_blank",rel:"noopener noreferrer"})}):s?Bc(r):Object(Se.a)(Object(w.sprintf)(Object(w.__)("%s – your first deposit is held for seven days (<a>learn more</a>)","woocommerce-payments"),Bc({interval:"daily"})),{a:Object(_.createElement)("a",{href:"https://docs.woocommerce.com/document/payments/faq/deposit-schedule/",target:"_blank",rel:"noopener noreferrer"})})):""))),c||!t?Object(_.createElement)(E.SummaryListPlaceholder,{numberOfItems:4}):Object(_.createElement)(E.SummaryList,{label:Object(w.__)("Deposits overview","woocommerce-payments")},function(){return[Object(_.createElement)(E.SummaryNumber,{key:"lastDeposit",label:Object(w.__)("Last deposit","woocommerce-payments"),value:Nc(t.last_deposit),prevLabel:(c=t.last_deposit,c?Sc("F j, Y",c.date):"—"),href:t.last_deposit?xc(t.last_deposit.id,"deposits"):""}),Object(_.createElement)(E.SummaryNumber,{key:"nextDeposit",label:Object(w.__)("Next deposit","woocommerce-payments"),value:Nc(t.next_deposit),prevLabel:Tc(t.next_deposit),href:t.next_deposit?xc(t.next_deposit.id,"deposits"):""}),Object(_.createElement)(E.SummaryNumber,{key:"pendingBalance",label:Object(w.__)("Pending balance","woocommerce-payments"),value:Nc(t.balance.pending),prevLabel:(e=t.balance.pending,Object(w.sprintf)(Object(w._n)("%d deposit","%d deposits",e.deposits_count,"woocommerce-payments"),e.deposits_count))}),Object(_.createElement)(E.SummaryNumber,{key:"availableBalance",label:Object(w.__)("Available balance","woocommerce-payments"),value:Nc(t.balance.available),prevLabel:""})];var e,c}));var a,n,r,o,s},Ic={deposit:Object(w.__)("Deposit","woocommerce-payments"),withdrawal:Object(w.__)("Withdrawal","woocommerce-payments")},Dc={paid:Object(w.__)("Paid","woocommerce-payments"),pending:Object(w.__)("Pending","woocommerce-payments"),in_transit:Object(w.__)("In transit","woocommerce-payments"),canceled:Object(w.__)("Canceled","woocommerce-payments"),failed:Object(w.__)("Failed","woocommerce-payments"),estimated:Object(w.__)("Estimated","woocommerce-payments")},Ac=c(37),Pc=(c(56),function(e){var t=e.href,c=e.children;return t?Object(_.createElement)(E.Link,{href:t,className:"woocommerce-table__clickable-cell",tabIndex:"-1"},c):c}),Fc=new De.a,qc=[{key:"details",label:"",required:!0,cellClassName:"info-button"},{key:"date",label:Object(w.__)("Date","woocommerce-payments"),required:!0,isLeftAligned:!0,defaultOrder:"desc",cellClassName:"date-time"},{key:"type",label:Object(w.__)("Type","woocommerce-payments"),required:!0},{key:"amount",label:Object(w.__)("Amount","woocommerce-payments"),isNumeric:!0,required:!0},{key:"status",label:Object(w.__)("Status","woocommerce-payments"),required:!0},{key:"bankAccount",label:Object(w.__)("Bank account","woocommerce-payments")}],Uc=function(){var e,t,c,a=(e=Object(vc.getQuery)(),t=e.paged,c=e.per_page,Object($e.useSelect)(function(e){var a=e(Qe),n=a.getDeposits,r=a.getDepositQueryError,o=a.isResolving,s={paged:Number.isNaN(parseInt(t,10))?"1":t,perPage:Number.isNaN(parseInt(c,10))?"25":c};return{deposits:n(s),depositsError:r(s),isLoading:o("getDeposits",[s])}},[t,c])),n=a.deposits,r=a.isLoading,o=n.map(function(e){var t=function(t){return Object(_.createElement)(Pc,{href:xc(e.id,"deposits")},t)},c=Object(_.createElement)(Cc,{id:e.id,parentSegment:"deposits"}),a=Object(_.createElement)(E.Link,{href:xc(e.id,"deposits")},Object(Ae.dateI18n)("M j, Y",Ue.a.utc(e.date))),n={details:{value:e.id,display:c},date:{value:e.date,display:a},type:{value:e.type,display:t(Ic[e.type])},amount:{value:e.amount/100,display:t(Fc.formatCurrency(e.amount/100))},status:{value:e.status,display:t(Dc[e.status]||Object(Ac.formatStringValue)(e.status))},bankAccount:{value:e.bankAccount,display:t(e.bankAccount)}};return qc.map(function(e){var t=e.key;return n[t]||{display:null}})});return Object(_.createElement)(E.TableCard,{title:Object(w.__)("Deposit history","woocommerce-payments"),isLoading:r,rowsPerPage:10,totalRows:10,headers:qc,rows:o,query:Object(vc.getQuery)(),onQueryChange:vc.onQueryChange})},Wc=function(){return Object(_.createElement)(Te,null,Object(_.createElement)(Rc,null),Object(_.createElement)(Uc,null))},Qc=function(e){var t=e.order;return t?Object(_.createElement)(E.Link,{href:t.url,type:"external"},t.number):Object(_.createElement)("span",null,"–")},Yc={normal:Object(w.__)("Normal","woocommerce-payments"),elevated:Object(w.__)("Elevated","woocommerce-payments"),highest:Object(w.__)("Highest","woocommerce-payments")},Zc=["normal","elevated","highest"],$c={normal:"green",elevated:"orange",highest:"red"},Gc=function(e){var t=e.risk,c=Zc[t];return Object(_.createElement)("span",{style:{color:$c[c]}},Yc[c])},Jc={charge:Object(w.__)("Charge","woocommerce-payments"),payment:Object(w.__)("Payment","woocommerce-payments"),payment_failure_refund:Object(w.__)("Payment failure refund","woocommerce-payments"),payment_refund:Object(w.__)("Payment refund","woocommerce-payments"),refund:Object(w.__)("Refund","woocommerce-payments"),refund_failure:Object(w.__)("Refund failure","woocommerce-payments"),dispute:Object(w.__)("Dispute","woocommerce-payments"),dispute_reversal:Object(w.__)("Dispute reversal","woocommerce-payments")},Kc=function(e){var t=e.depositId,c=e.dateAvailable,a=Object(gt.addQueryArgs)("admin.php",{page:"wc-admin",path:"/payments/deposits/details",id:t}),n=null!=c&&Object(Ae.dateI18n)("M j, Y",Ue.a.utc(c));return t?Object(_.createElement)(E.Link,{href:a},n||Object(w.__)("Deposit details","woocommerce-payments")):n||Object(w.__)("Pending","woocommerce-payments")},Xc=c(22),ea=c.n(Xc),ta=c(38),ca=c.n(ta),aa=c(26);var na={name:"transactions",className:"woocommerce-search__transactions-result",options:function(e){var t=e?{search_term:e}:{};return ea()({path:Object(gt.addQueryArgs)("/wc/v3/payments/transactions/search",t)})},isDebounced:!0,getOptionIdentifier:function(e){return e.label},getOptionKeywords:function(e){return[e.label]},getFreeTextOptions:function(e){return[{key:"all",label:Object(_.createElement)("span",{key:"name",className:"woocommerce-search__result-name"},ca()({mixedString:Object(w.__)("All transactions with customer names or billing emails that include {{query /}}","woocommerce-admin"),components:{query:Object(_.createElement)("strong",{className:"components-form-token-field__suggestion-match"},e)}})),value:{label:e}}]},getOptionLabel:function(e,t){var c=function(e,t){if(!t)return null;var c=e.toLocaleLowerCase().indexOf(t.toLocaleLowerCase());return-1===c?null:{suggestionBeforeMatch:Object(aa.decodeEntities)(e.substring(0,c)),suggestionMatch:Object(aa.decodeEntities)(e.substring(c,c+t.length)),suggestionAfterMatch:Object(aa.decodeEntities)(e.substring(c+t.length))}}(e.label,t);return Object(_.createElement)("span",{key:"name",className:"woocommerce-search__result-name","aria-label":e.label},c.suggestionBeforeMatch,Object(_.createElement)("strong",{className:"components-form-token-field__suggestion-match"},c.suggestionMatch),c.suggestionAfterMatch)},getOptionCompletion:function(e){return{key:e.label,label:e.label}}},ra=(c(61),new De.a),oa=[{key:"details",label:"",required:!0},{key:"date",label:Object(w.__)("Date / Time","woocommerce-payments"),screenReaderLabel:Object(w.__)("Date and time","woocommerce-payments"),required:!0,isLeftAligned:!0,defaultOrder:"desc",cellClassName:"date-time",isSortable:!0,defaultSort:!0},{key:"type",label:Object(w.__)("Type","woocommerce-payments"),screenReaderLabel:Object(w.__)("Type","woocommerce-payments"),required:!0},{key:"amount",label:Object(w.__)("Amount","woocommerce-payments"),screenReaderLabel:Object(w.__)("Amount","woocommerce-payments"),isNumeric:!0,isSortable:!0},{key:"fees",label:Object(w.__)("Fees","woocommerce-payments"),screenReaderLabel:Object(w.__)("Fees","woocommerce-payments"),isNumeric:!0,isSortable:!0},{key:"net",label:Object(w.__)("Net","woocommerce-payments"),screenReaderLabel:Object(w.__)("Net","woocommerce-payments"),isNumeric:!0,required:!0,isSortable:!0},{key:"order",label:Object(w.__)("Order #","woocommerce-payments"),screenReaderLabel:Object(w.__)("Order number","woocommerce-payments"),required:!0},{key:"source",label:Object(w.__)("Source","woocommerce-payments"),screenReaderLabel:Object(w.__)("Source","woocommerce-payments")},{key:"customer_name",label:Object(w.__)("Customer","woocommerce-payments"),screenReaderLabel:Object(w.__)("Customer","woocommerce-payments")},{key:"customer_email",label:Object(w.__)("Email","woocommerce-payments"),screenReaderLabel:Object(w.__)("Email","woocommerce-payments"),visible:!1},{key:"customer_country",label:Object(w.__)("Country","woocommerce-payments"),screenReaderLabel:Object(w.__)("Country","woocommerce-payments"),visible:!1},{key:"risk_level",label:Object(w.__)("Risk level","woocommerce-payments"),screenReaderLabel:Object(w.__)("Risk level","woocommerce-payments"),visible:!1}],sa={key:"deposit",label:Object(w.__)("Deposit","woocommerce-payments"),screenReaderLabel:Object(w.__)("Deposit","woocommerce-payments"),cellClassName:"deposit"},ia=function(e){var t,c,a,n,r,o,s,i,l,m,u,h,d,v=(t=Object(vc.getQuery)(),c=e.depositId,a=t.paged,n=t.per_page,r=t.orderby,o=t.order,s=t.match,i=t.date_before,l=t.date_after,m=t.date_between,u=t.type_is,h=t.type_is_not,d=t.search,Object($e.useSelect)(function(e){var t=e(Qe),v=t.getTransactions,p=t.getTransactionsError,f=t.isResolving,g={paged:Number.isNaN(parseInt(a,10))?"1":a,perPage:Number.isNaN(parseInt(n,10))?"25":n,orderby:r||"date",order:o||"desc",match:s,dateBefore:i,dateAfter:l,dateBetween:m&&m.sort(function(e,t){return Ue()(e).diff(Ue()(t))}),typeIs:u,typeIsNot:h,depositId:c,search:d};return{transactions:v(g),transactionsError:p(g),isLoading:f("getTransactions",[g])}},[a,n,r,o,s,i,l,m,u,h,c,d])),p=v.transactions,f=v.isLoading,g=function(e,t){var c=e.match,a=e.date_before,n=e.date_after,r=e.date_between,o=e.type_is,s=e.type_is_not,i=e.search;return Object($e.useSelect)(function(e){var l=e(Qe),m=l.getTransactionsSummary,u=l.isResolving,h={match:c,dateBefore:a,dateAfter:n,dateBetween:r,typeIs:o,typeIsNot:s,depositId:t,search:i};return{transactionsSummary:m(h),isLoading:u("getTransactionsSummary",[h])}},[c,a,n,r,o,s,t,i])}(Object(vc.getQuery)(),e.depositId),b=g.transactionsSummary,y=g.isLoading,z=e.depositId?oa:[].concat(oa,[sa]),k=z.find(function(e){return"details"===e.key})||{};Object(vc.getQuery)().orderby&&"date"!==Object(vc.getQuery)().orderby?k.cellClassName="info-button":k.cellClassName="info-button is-sorted";var j=p.map(function(e){var t=xc(e.charge_id,"transactions"),c=function(e){return Object(_.createElement)(Pc,{href:t},e)},a=Object(_.createElement)(Cc,{id:e.charge_id,parentSegment:"transactions"}),n=Object(_.createElement)(Qc,{order:e.order}),r=Object(_.createElement)(Gc,{risk:e.risk_level}),o=Object(_.createElement)(Kc,{depositId:e.deposit_id,dateAvailable:e.date_available}),s={details:{value:e.transaction_id,display:a},date:{value:e.date,display:c(Object(Ae.dateI18n)("M j, Y / g:iA",Ue.a.utc(e.date).local()))},type:{value:e.type,display:c(Jc[e.type]||Dt(e.type))},source:{value:e.source,display:c(Object(_.createElement)("span",{className:"payment-method__brand payment-method__brand--".concat(e.source)}))},order:{value:e.order_id,display:n},customer_name:{value:e.customer_name,display:c(e.customer_name)},customer_email:{value:e.customer_email,display:c(e.customer_email)},customer_country:{value:e.customer_country,display:c(e.customer_country)},amount:{value:e.amount/100,display:c(ra.formatCurrency(e.amount/100))},fees:{value:e.fees/100,display:c(ra.formatCurrency(e.fees/100*-1))},net:{value:e.net/100,display:c(ra.formatCurrency(e.net/100))},risk_level:{value:e.risk_level,display:c(r)},deposit:{value:e.deposit_id,display:o}};return z.map(function(e){var t=e.key;return s[t]||{display:null}})}),H=[{label:"transactions",value:"".concat(b.count)},{label:"total",value:"".concat(ra.formatCurrency(b.total/100))},{label:"fees",value:"".concat(ra.formatCurrency(b.fees/100))},{label:"net",value:"".concat(ra.formatCurrency(b.net/100))}],M=Object(vc.getQuery)().search&&Object(vc.getQuery)().search.map(function(e){return{key:e,label:e}});return Object(_.createElement)(E.TableCard,{className:"transactions-list woocommerce-report-table has-search",title:e.depositId?Object(w.__)("Deposit transactions","woocommerce-payments"):Object(w.__)("Transactions","woocommerce-payments"),isLoading:f,rowsPerPage:Object(vc.getQuery)().per_page||25,totalRows:b.count||0,headers:z,rows:j,summary:y?null:H,query:Object(vc.getQuery)(),onQueryChange:vc.onQueryChange,actions:[Object(_.createElement)(E.Search,{allowFreeTextSearch:!0,inlineTags:!0,key:"search",onChange:function(e){Object(vc.updateQueryString)({search:e.length?Object(O.uniq)(e.map(function(e){return e.label})):void 0})},placeholder:wcpaySettings.featureFlags.customSearch?Object(w.__)("Search by order number, customer name, or billing email","woocommerce-payments"):Object(w.__)("Search by customer name","woocommerce-payments"),selected:M,showClearButton:!0,type:wcpaySettings.featureFlags.customSearch?"custom":"customers",autocompleter:na})]})},la=(c(62),new De.a),ma=function(e){var t=e.status;return Object(_.createElement)(E.OrderStatus,{order:{status:t},orderStatusMap:Dc})},ua=function(e){var t,c=e.depositId,a=(t=c,Object($e.useSelect)(function(e){var c=e(Qe),a=c.getDeposit,n=c.isResolving;return{deposit:a(t),isLoading:n("getDeposit",[t])}},[t])),n=a.deposit,r=void 0===n?{}:n,o=a.isLoading;return Object(_.createElement)(E.Card,{className:"wcpay-deposit-overview"},Object(_.createElement)("div",{className:"wcpay-deposit-detail"},Object(_.createElement)("div",{className:"wcpay-deposit-date"},Object(_.createElement)(Vc,{isLoading:o,placeholder:"Date placeholder"},"".concat(Object(w.__)("Deposit date","woocommerce-payments"),": "),Object(Ae.dateI18n)("M j, Y",Ue.a.utc(r.date)))),Object(_.createElement)("div",{className:"wcpay-deposit-status"},Object(_.createElement)(Vc,{isLoading:o,placeholder:"Status"},Object(_.createElement)(ma,{status:r.status}))),Object(_.createElement)("div",{className:"wcpay-deposit-bank-account"},Object(_.createElement)(Vc,{isLoading:o,placeholder:"Bank account placeholder"},r.bankAccount))),Object(_.createElement)("div",{className:"wcpay-deposit-hero"},Object(_.createElement)("div",{className:"wcpay-deposit-amount"},Object(_.createElement)(Vc,{isLoading:o,placeholder:"Amount",display:"inline"},la.formatCurrency(r.amount/100)))))},ha=function(e){var t=e.query.id;return Object(_.createElement)(Te,null,Object(_.createElement)(ua,{depositId:t}),Object(_.createElement)(ia,{depositId:t}))},da=Object.entries(Jc).filter(function(e){return!z()(e,1)[0].startsWith("payment")}).map(function(e){var t=z()(e,2),c=t[0];return{label:t[1],value:c}}),va=[{label:Object(w.__)("Show","woocommerce-payments"),param:"filter",staticParams:["paged","per_page","search"],showFilters:function(){return!0},filters:[{label:Object(w.__)("All transactions","woocommerce-payments"),value:"all"},{label:Object(w.__)("Advanced filters","woocommerce-payments"),value:"advanced"}]}],pa={title:Object(w.__)("Transactions match {{select /}} filters","woocommerce-payments"),filters:{date:{labels:{add:Object(w.__)("Date","woocommerce-payments"),remove:Object(w.__)("Remove transaction date filter","woocommerce-payments"),rule:Object(w.__)("Select a transaction date filter match","woocommerce-payments"),title:Object(w.__)("{{title}}Date{{/title}} {{rule /}} {{filter /}}","woocommerce-payments"),filter:Object(w.__)("Select a transaction date","woocommerce-payments")},rules:[{value:"before",label:Object(w.__)("Before","woocommerce-admin")},{value:"after",label:Object(w.__)("After","woocommerce-admin")},{value:"between",label:Object(w.__)("Between","woocommerce-admin")}],input:{component:"Date"}},type:{labels:{add:Object(w.__)("Type","woocommerce-payments"),remove:Object(w.__)("Remove transaction type filter","woocommerce-payments"),rule:Object(w.__)("Select a transaction type filter match","woocommerce-payments"),title:Object(w.__)("{{title}}Type{{/title}} {{rule /}} {{filter /}}","woocommerce-payments"),filter:Object(w.__)("Select a transaction type","woocommerce-payments")},rules:[{value:"is",label:Object(w._x)("Is","transaction type","woocommerce-payments")},{value:"is_not",label:Object(w._x)("Is not","transaction type","woocommerce-payments")}],input:{component:"SelectControl",options:da}}}},fa=function(){return Object(_.createElement)(E.ReportFilters,{filters:va,advancedFilters:pa,showDatePicker:!1,path:"/payments/transactions",query:Object(vc.getQuery)()})},ga=function(){return Object(_.createElement)(Te,null,Object(_.createElement)(fa,null),Object(_.createElement)(ia,null))},wa=["issuer_declined","invalid"],ba=["blocked"],ya=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.status||null},za=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.outcome?e.outcome.type:null},_a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"succeeded"===e.status&&!0===e.paid},Ea=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"failed"===e.status&&wa.includes(za(e))},Oa=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"failed"===e.status&&ba.includes(za(e))},ka=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return!0===e.captured},ja=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return!0===e.disputed},Ha=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.amount_refunded>0},Ma=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return!0===e.refunded},Va=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Ha(e)&&!Ma(e)},xa=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Ea(e)?"failed":Oa(e)?"blocked":ja(e)?"disputed_"+ya(e.dispute):Va(e)?"refunded_partial":Ma(e)?"refunded_full":_a(e)?ka(e)?"paid":"authorized":e.status},Ca={warning_needs_response:{type:"primary",message:Object(w.__)("Inquiry: Needs response","woocommerce-payments")},warning_under_review:{type:"light",message:Object(w.__)("Inquiry: Under review","woocommerce-payments")},warning_closed:{type:"light",message:Object(w.__)("Inquiry: Closed","woocommerce-payments")},needs_response:{type:"primary",message:Object(w.__)("Needs response","woocommerce-payments")},under_review:{type:"light",message:Object(w.__)("Under review","woocommerce-payments")},charge_refunded:{type:"light",message:Object(w.__)("Charge refunded","woocommerce-payments")},won:{type:"light",message:Object(w.__)("Won","woocommerce-payments")},lost:{type:"light",message:Object(w.__)("Lost","woocommerce-payments")}},La=Object.entries(Ca).reduce(function(e,t){var c=z()(t,2),a=c[0],n=c[1];return e["disputed_"+a]={type:n.type,message:a.startsWith("warning_")?n.message:Object(w.sprintf)(Object(w.__)("Disputed: %s","woocommerce-payments"),n.message)},e},{}),Sa=Ze()({refunded_partial:{type:"light",message:Object(w.__)("Partial refund","woocommerce-payments")},refunded_full:{type:"light",message:Object(w.__)("Refunded","woocommerce-payments")},paid:{type:"light",message:Object(w.__)("Paid","woocommerce-payments")},authorized:{type:"primary",message:Object(w.__)("Payment authorized","woocommerce-payments")},failed:{type:"alert",message:Object(w.__)("Payment failed","woocommerce-payments")},blocked:{type:"alert",message:Object(w.__)("Payment blocked","woocommerce-payments")}},La),Na=c(19),Ta=function(e){var t=e.status,c=Sa[t]||{},a=c.message||Dt(t),n=c.type||"light";return Object(_.createElement)(Na.a,{message:a,type:n})},Ba=(c(63),function(e){var t=e.payment,c=t?t[t.type]:null;return c?Object(_.createElement)("span",{className:"payment-method-details"},Object(_.createElement)("span",{className:"payment-method__brand payment-method__brand--".concat(c.brand)})," •••• ",c.last4):Object(_.createElement)("span",null,"–")}),Ra=(c(64),function(e){var t=e.items;return Object(_.createElement)(E.List,{className:"woocommerce-list--horizontal",items:t})}),Ia=(c(65),new De.a),Da={net:0,fee:0,refunded:null},Aa=function(e){var t=e.charge;return[{title:Object(w.__)("Date","woocommerce-payments"),content:t.created?Object(Ae.dateI18n)("M j, Y, g:ia",Ue()(1e3*t.created)):"–"},{title:Object(w.__)("Customer","woocommerce-payments"),content:Object(O.get)(t,"billing_details.name")||"–"},{title:Object(w.__)("Payment method","woocommerce-payments"),content:Object(_.createElement)(Ba,{payment:t.payment_method_details})},{title:Object(w.__)("Risk evaluation","woocommerce-payments"),content:Yc[Object(O.get)(t,"outcome.risk_level")]||"–"},{title:"",content:t.id||"–"}]},Pa=function(e){var t=e.charge,c=void 0===t?{}:t,a=e.isLoading,n=c.amount?function(e){var t,c;return c=e.application_fee_amount,t=0,ja(e)&&"won"!==e.dispute.status?(c+=1500,t=e.dispute.amount):Ha(e)&&(t=e.amount_refunded),{net:e.amount-c-(t||0),fee:c,refunded:t}}(c):Da,r=n.net,o=n.fee,s=n.refunded;return Object(_.createElement)(E.Card,{className:"payment-details-summary-details"},Object(_.createElement)("div",{className:"payment-details-summary"},Object(_.createElement)("div",{className:"payment-details-summary__section"},Object(_.createElement)("p",{className:"payment-details-summary__amount"},Object(_.createElement)(Vc,{isLoading:a,placeholder:"Amount placeholder"},Ia.formatCurrency((c.amount||0)/100),Object(_.createElement)("span",{className:"payment-details-summary__amount-currency"},c.currency||"cur"),Object(_.createElement)(Ta,{status:xa(c)}))),Object(_.createElement)("div",{className:"payment-details-summary__breakdown"},s?Object(_.createElement)("p",null,"".concat(Object(w.__)("Refunded","woocommerce-payments"),": "),Ia.formatCurrency(-s/100)):"",Object(_.createElement)("p",null,Object(_.createElement)(Vc,{isLoading:a,placeholder:"Fee amount"},"".concat(Object(w.__)("Fee","woocommerce-payments"),": "),Ia.formatCurrency(-o/100))),Object(_.createElement)("p",null,Object(_.createElement)(Vc,{isLoading:a,placeholder:"Net amount"},"".concat(Object(w.__)("Net","woocommerce-payments"),": "),Ia.formatCurrency(r/100))))),Object(_.createElement)("div",{className:"payment-details-summary__section"},Object(_.createElement)("div",{className:"payment-details-summary__actions"},c.order?Object(_.createElement)(x,{className:"payment-details-summary__actions-item",isDefault:!0,isLarge:!0,href:c.order.url},"".concat(Object(w.__)("View order")," #").concat(c.order.number)):""))),Object(_.createElement)("hr",{className:"full-width"}),Object(_.createElement)(Mc,{isLoading:a,numLines:4},Object(_.createElement)(Ra,{items:Aa({charge:c})})))},Fa={bank_cannot_process:{display:Object(w.__)("Bank cannot process","woocommerce-payments")},check_returned:{display:Object(w.__)("Check returned","woocommerce-payments")},credit_not_processed:{display:Object(w.__)("Credit not processed","woocommerce-payments"),overview:[Object(w.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),Object(w.__)("If your customer was not refunded appropriately, you will need to accept the dispute, or resolve the issue with your customer. The credit card networks place liability for accepting disputed payments with you, the business.","woocommerce-payments")],summary:[Object(w.__)("The customer claims that the purchased product was returned or the transaction was otherwise canceled, but you have not yet provided a refund or credit.","woocommerce-payments")],required:[Object(w.__)("Demonstrate that you have refunded your customer through other means or that your customer is not entitled to a refund. You cannot issue a refund while a payment is being disputed. If you believe that your customer was entitled a refund that you did not provide, you can accept the dispute.","woocommerce-payments")],respond:[Object(w.__)("You should first get in touch with your customer. If you understand what their complaint is, there is a chance for you to explain the misunderstanding or to make it right. If you’re able to resolve the issue with your customer, you can ask that they withdraw the dispute.","woocommerce-payments"),Object(w.__)("If the cardholder agrees to withdraw the dispute, you should still submit evidence for the dispute using the forms on the next screen. In addition to the following evidence, your submission should include correspondence with the cardholder saying they would withdraw the dispute and a written statement from their card issuer confirming that the dispute has been withdrawn.","woocommerce-payments")]},customer_initiated:{display:Object(w.__)("Customer initiated","woocommerce-payments")},debit_not_authorized:{display:Object(w.__)("Debit not authorized","woocommerce-payments")},duplicate:{display:Object(w.__)("Duplicate","woocommerce-payments"),overview:[Object(w.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),Object(w.__)("If there were duplicate payments, you should accept the dispute. You cannot issue a refund while a payment is being disputed. The credit card networks place liability for accepting disputed payments with you, the business.","woocommerce-payments")],summary:[Object(w.__)("The customer claims they were charged multiple times for the same product or service.","woocommerce-payments")],required:[Object(w.__)("Demonstrate that each payment was for a separate product or service.","woocommerce-payments")],respond:[Object(w.__)("Determine if your customer was incorrectly charged multiple times.","woocommerce-payments"),Object(w.__)("If they were not, collect any and all information documenting that each payment was made separately, such as copies of receipts. If the receipts don’t include the items purchased, be sure to include an itemized list. Each receipt should clearly indicate that the payments are for separate purchases of items or services. If you’ve been able to get in touch with the customer you should be sure to address any concerns they had in your evidence.","woocommerce-payments"),Object(w.__)("If there have been two or more separate payments, you should get in touch with your customer. If you understand what their complaint is, there is a chance for you to explain the misunderstanding or to make it right. If you’re able to resolve the issue with your customer, you can ask that they withdraw the dispute.","woocommerce-payments"),Object(w.__)("Even if your customer agrees to withdraw the dispute, you must still submit appropriate evidence using the forms on the next screen. Simply saying that your customer is going to withdraw the dispute is not sufficient evidence.","woocommerce-payments")]},fraudulent:{display:Object(w.__)("Fraudulent","woocommerce-payments"),overview:[Object(w.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),Object(w.__)("If you believe the payment was actually made using a stolen credit card, you will need to accept the dispute. The credit card networks place liability for accepting fraudulent payments with you, the business.","woocommerce-payments")],summary:[Object(w.__)("This is the most common reason for a dispute, and happens when a cardholder claims that they didn’t authorize the payment. This can happen if the card was lost or stolen and used to make a fraudulent purchase. It can also happen if the cardholder doesn’t recognize the payment as it appears on the billing statement from their card issuer.","woocommerce-payments")],required:[Object(w.__)("Provide adequate payment and order details so that a legitimate customer recognizes it, or proves to the card issuer that their cardholder authorized the transaction.","woocommerce-payments")],respond:[Object(w.__)("Try to get in touch with your customer. Sometimes people forget about payments they make or don’t recognize the way they appear on their card statement. If this is the case, ask them to contact their card issuer and let them know they no longer dispute the transaction.","woocommerce-payments"),Object(w.__)("Even if your customer agrees to withdraw the dispute, you must still submit appropriate evidence using the forms on the next screen. Simply saying that your customer is going to withdraw the dispute is not sufficient evidence.","woocommerce-payments"),Object(w.__)("It may be more efficient—and provide a better customer experience—to accept an accidental dispute and charge the customer again, if appropriate. Even when a dispute is withdrawn, it usually takes approximately 75 days to be finalized. Remember, it doesn’t matter to the card networks whether you win or lose a dispute; what matters is how many disputes a business receives, regardless of how many disputes are won.","woocommerce-payments")]},general:{display:Object(w.__)("General","woocommerce-payments"),overview:[Object(w.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments")],summary:[Object(w.__)("This is an uncategorized dispute, so you should contact the customer for additional details to find out why the payment was disputed.","woocommerce-payments")]},incorrect_account_details:{display:Object(w.__)("Incorrect account details","woocommerce-payments")},insufficient_funds:{display:Object(w.__)("Insufficient funds","woocommerce-payments")},product_not_received:{display:Object(w.__)("Product not received","woocommerce-payments"),overview:[Object(w.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),Object(w.__)("If you can not prove the customer received their product or service, you should accept the dispute. You cannot issue a refund while a payment is being disputed. The credit card networks place liability for accepting disputed payments with you, the business.","woocommerce-payments")],summary:[Object(w.__)("The customer claims they did not receive the products or services purchased.","woocommerce-payments")],required:[Object(w.__)("Prove that the customer received a physical product or offline service, or made use of a digital product or online service. This must have occurred prior to the date the dispute was initiated.","woocommerce-payments")],respond:[Object(w.__)("First, get in touch with your customer. Understanding why they filed the dispute will be important for helping make sure your customer gets the product and will give you critical information to prevent this from happening to others.","woocommerce-payments"),Object(w.__)("Even if your customer agrees to withdraw the dispute, you must still submit appropriate evidence using the forms on the next screen. Simply saying that your customer is going to withdraw the dispute is not sufficient evidence.","woocommerce-payments")]},product_unacceptable:{display:Object(w.__)("Product unacceptable","woocommerce-payments"),overview:[Object(w.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),Object(w.__)("If you can not prove the customer received their product or service as described, you should accept the dispute. You cannot issue a refund while a payment is being disputed. The credit card networks place liability for accepting disputed payments with you, the business.","woocommerce-payments")],summary:[Object(w.__)("The product or service was received but was defective, damaged, or not as described.","woocommerce-payments")],required:[Object(w.__)("Demonstrate that the product or service was delivered as described at the time of purchase.","woocommerce-payments")],respond:[Object(w.__)("If the product or service is as described, provide specific information (invoice, contract, etc.) to refute the cardholder’s claims. Quality disputes are where the customer does not agree with the condition of merchandise or service received (e.g., a car repair situation or quality of a hotel room). There may be instances where you will need to obtain a neutral third-party opinion to help corroborate your claim against the cardholder. Provide as much specific information and documentation as possible to refute the cardholder’s claims. It is recommended that you address each point that the cardholder has made.","woocommerce-payments"),Object(w.__)("If the customer has not yet returned the product or canceled the service, provide specific information to that effect. You should double-check your incoming shipping records to verify that you have not received a return before you respond. If you have processed a credit or reversal for this transaction, provide evidence of this which includes the amount and date processed.","woocommerce-payments"),Object(w.__)("For products that have been repaired or replaced, provide evidence that the cardholder agreed to a repair or replacement, it has been received by the customer, and the repair or replacement has not since been disputed.","woocommerce-payments"),Object(w.__)("If your customer made no attempt to return the product or cancel the service, or if you provided a replacement product or service, make sure to note that as well.","woocommerce-payments"),Object(w.__)("If the customer withdraws their dispute you should still submit evidence using the forms on the next screen. Be sure to provide a letter or email from the cardholder stating that they are no longer in dispute.","woocommerce-payments")]},subscription_canceled:{display:Object(w.__)("Subscription canceled","woocommerce-payments"),overview:[Object(w.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),Object(w.__)("If you can not prove the customer’s subscription was canceled, and or they did not follow your cancelation policy, you should accept the dispute. You cannot issue a refund while a payment is being disputed. The credit card networks place liability for accepting disputed payments with you, the business.","woocommerce-payments")],summary:[Object(w.__)("The customer claims that you continued to charge them after a subscription was canceled.","woocommerce-payments")],required:[Object(w.__)("Prove that the subscription was still active and that the customer was aware of, and did not follow, your cancellation procedure.","woocommerce-payments")],respond:[Object(w.__)("First, get in touch with your customer. If you understand what they believe happened, there is a chance for you to explain the misunderstanding or to make it right. ","woocommerce-payments"),Object(w.__)("Even if your customer agrees to withdraw the dispute, you must still submit appropriate evidence using the forms on the next screen. Simply saying that your customer is going to withdraw the dispute is not sufficient evidence.","woocommerce-payments"),Object(w.__)("Otherwise, use the forms on the next screen to submit evidence that the subscription was still active and that the customer was aware of, and did not follow, your cancellation procedure.","woocommerce-payments")]},unrecognized:{display:Object(w.__)("Unrecognized","woocommerce-payments"),overview:[Object(w.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),Object(w.__)("If you can not prove the customer’s subscription was canceled, and or they did not follow your cancelation policy, you should accept the dispute. You cannot issue a refund while a payment is being disputed. The credit card networks place liability for accepting disputed payments with you, the business.","woocommerce-payments")],summary:[Object(w.__)("The customer doesn’t recognize the payment appearing on their card statement.","woocommerce-payments")],required:[Object(w.__)("As with fraudulent disputes, get your customer to withdraw the dispute by helping them identify the payment. Otherwise challenge the dispute with appropriate evidence that proves the purchase was legitimate. ","woocommerce-payments")],respond:[Object(w.__)("First, try to get in touch with your customer. Sometimes people forget about payments they make or don’t recognize the way they appear on their card statement. If this is the case, ask them to contact their card issuer and let them know they no longer dispute the transaction. Even if your customer agrees to withdraw the dispute, you must still submit appropriate evidence. Simply saying that your customer is going to withdraw the dispute is not sufficient evidence.","woocommerce-payments"),Object(w.__)("It may be more efficient—and provide a better customer experience—to accept an accidental dispute and charge the customer again, if appropriate. Even when a dispute is withdrawn, it usually takes approximately 75 days to be finalized. Remember, it doesn’t matter to the card networks whether you win or lose a dispute; what matters is how many disputes a business receives, regardless of how many disputes are won.","woocommerce-payments")]}},qa=Object(Ie.getCurrencyData)(),Ua=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object(_.createElement)(Fe.a,{icon:e,className:t})},Wa=function(e,t){return{date:new Date(1e3*e.datetime),icon:Ua("sync"),headline:Object(w.sprintf)(Object(w.__)("Payment status changed to %s","woocommerce-payments"),t),body:[],hideTimestamp:!0}},Qa=function(e,t,c){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],n="";if(e.deposit){n=Object(w.sprintf)(c?Object(w.__)("%1$s was added to your <a>%2$s deposit</a>","woocommerce-payments"):Object(w.__)("%1$s was deducted from your <a>%2$s deposit</a>","woocommerce-payments"),t,Object(Ae.dateI18n)("M j, Y",Ue()(1e3*e.deposit.arrival_date)));var r=Object(gt.addQueryArgs)("admin.php",{page:"wc-admin",path:"/payments/deposits/details",id:e.deposit.id});n=Object(Se.a)(n,{a:Object(_.createElement)("a",{href:r})})}else n=Object(w.sprintf)(c?Object(w.__)("%s will be added to a future deposit","woocommerce-payments"):Object(w.__)("%s will be deducted from a future deposit","woocommerce-payments"),t);return{date:new Date(1e3*e.datetime),icon:Ua(c?"plus":"minus"),headline:n,body:a,hideTimestamp:!0}},Ya=function(e,t,c,a){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];return{date:new Date(1e3*e.datetime),headline:t,icon:Ua(c,a),body:n}},Za=function(e){var t=e.type,c=function(e){var t=Object(O.find)(qa,{code:e});return t?new De.a(t):new De.a}(e.currency||"USD"),a=function(e){return c.formatCurrency(Math.abs(e/100))},n=function(e,t){return Object(w.sprintf)(e,a(t))};if("authorized"===t)return[Ya(e,n(Object(w.__)("A payment of %s was successfully authorized","woocommerce-payments"),e.amount),"checkmark","is-warning"),Wa(e,Object(w.__)("Authorized","woocommerce-payments"))];if("authorization_voided"===t)return[Ya(e,n(Object(w.__)("Authorization for %s was voided","woocommerce-payments"),e.amount),"checkmark","is-warning"),Wa(e,Object(w.__)("Authorization Voided","woocommerce-payments"))];if("authorization_expired"===t)return[Ya(e,n(Object(w.__)("Authorization for %s expired","woocommerce-payments"),e.amount),"cross","is-error"),Wa(e,Object(w.__)("Authorization Expired","woocommerce-payments"))];if("captured"===t){var r=a(e.amount-e.fee);return[Ya(e,n(Object(w.__)("A payment of %s was successfully charged","woocommerce-payments"),e.amount),"checkmark","is-success",[n(Object(w.__)("Fee: %s","woocommerce-payments"),e.fee),Object(w.sprintf)(Object(w.__)("Net deposit: %s","woocommerce-payments"),r)]),Qa(e,r,!0),Wa(e,Object(w.__)("Paid","woocommerce-payments"))]}if("partial_refund"===t||"full_refund"===t){var o=a(e.amount_refunded);return[Ya(e,Object(w.sprintf)(Object(w.__)("A payment of %s was successfully refunded","woocommerce-payments"),o),"checkmark","is-success"),Qa(e,o,!1),Wa(e,"full_refund"===t?Object(w.__)("Refunded","woocommerce-payments"):Object(w.__)("Partial Refund","woocommerce-payments"))]}if("failed"===t)return[Ya(e,n(Object(w.__)("A payment of %s failed","woocommerce-payments"),e.amount),"cross","is-error"),Wa(e,Object(w.__)("Failed","woocommerce-payments"))];if("dispute_needs_response"===t){var s=Object(w.__)("Payment disputed","woocommerce-payments");Fa[e.reason]&&(s=Object(w.sprintf)(Object(w.__)("Payment disputed as %s","woocommerce-payments"),Fa[e.reason].display));var i,l=Object(gt.addQueryArgs)("admin.php",{page:"wc-admin",path:"/payments/disputes/details",id:e.dispute_id});if(null===e.amount)i={date:new Date(1e3*e.datetime),icon:Ua("info-outline"),headline:Object(w.__)("No funds have been withdrawn yet","woocommerce-payments"),body:[Object(w.__)("The cardholder's bank is requesting more information to decide whether to return these funds to the cardholder.","woocommerce-services")],hideTimestamp:!0};else{var m=a(Math.abs(e.amount)+Math.abs(e.fee));i=Qa(e,m,!1,[n(Object(w.__)("Disputed amount: %s","woocommerce-payments"),e.amount),n(Object(w.__)("Fee: %s","woocommerce-payments"),e.fee)])}return[Ya(e,s,"cross","is-error",[Object(_.createElement)("a",{href:l},Object(w.__)("View dispute","woocommerce-payments"))]),i,Wa(e,Object(w.__)("Disputed: Needs Response","woocommerce-payments"))]}if("dispute_in_review"===t)return[Ya(e,Object(w.__)("Challenge evidence submitted","woocommerce-payments"),"checkmark","is-success"),Wa(e,Object(w.__)("Disputed: In Review","woocommerce-payments"))];if("dispute_won"===t){var u=a(Math.abs(e.amount)+Math.abs(e.fee));return[Ya(e,Object(w.__)("Dispute won! The bank ruled in your favor","woocommerce-payments"),"notice-outline","is-success"),Qa(e,u,!0,[n(Object(w.__)("Disputed amount: %s","woocommerce-payments"),e.amount),n(Object(w.__)("Fee: %s","woocommerce-payments"),e.fee)]),Wa(e,Object(w.__)("Disputed: Won","woocommerce-payments"))]}return"dispute_lost"===t?[Ya(e,Object(w.__)("Dispute lost. The bank ruled favor of your customer","woocommerce-payments"),"cross","is-error"),Wa(e,Object(w.__)("Disputed: Lost","woocommerce-payments"))]:"dispute_warning_closed"===t?[Ya(e,Object(w.__)("Dispute inquiry closed. The bank chose not to pursue this dispute.","woocommerce-payments"),"notice-outline","is-success")]:"dispute_charge_refunded"===t?[Ya(e,Object(w.__)("The disputed charge has been refunded.","woocommerce-payments"),"notice-outline","is-success")]:[]},$a=function(e){var t=e.chargeId;if(!wcpaySettings.featureFlags.paymentTimeline)return null;var c,a=function(e){return Object($e.useSelect)(function(t){var c=t(Qe),a=c.getTimeline,n=c.getTimelineError,r=c.isResolving,o=c.getCharge,s=c.getChargeError,i=r("getCharge",[e]),l=s(e);if(i||l instanceof Error)return{timeline:null,timelineError:l,isLoading:i};var m=o(e).payment_intent;return{timeline:a(m),timelineError:n(m),isLoading:r("getTimeline",[m])}},[e])}(t),n=a.timeline,r=a.timelineError,o=a.isLoading,s=(c=n)?Object(O.flatMap)(c,Za):[];return Object(_.createElement)(E.Card,{title:Object(_.createElement)(Vc,{isLoading:o,value:Object(w.__)("Timeline","woocommerce-payments")}),className:"payment-details__timeline"},Object(_.createElement)(Mc,{isLoading:o,numLines:3},r instanceof Error?Object(w.__)("Error while loading timeline","woocommerce-payments"):Object(_.createElement)(E.Timeline,{items:s})),Object(_.createElement)(Mc,{isLoading:o,numLines:3}),Object(_.createElement)(Mc,{isLoading:o,numLines:3}),Object(_.createElement)(Mc,{isLoading:o,numLines:3}))},Ga=function(e){var t=e.label,c=e.children,a=e.isLoading;return Object(_.createElement)("div",{className:"payment-method-detail"},Object(_.createElement)("h4",{className:"payment-method-detail__label"},Object(_.createElement)(Vc,{isLoading:a,display:"block",value:t})),Object(_.createElement)("p",{className:"payment-method-detail__value"},Object(_.createElement)(Vc,{isLoading:a,value:c})))},Ja=function(e){switch(e.checked){case"pass":return Object(w.__)("Passed","woocommerce-payments");case"fail":return Object(w.__)("Failed","woocommerce-payments");case"unavailable":return Object(w.__)("Unavailable","woocommerce-payments");default:return Object(w.__)("Not checked","woocommerce-payments")}},Ka={last4:"0000",fingerprint:"fingerprint placeholder",date:"date placeholder",cardType:"card type placeholder",id:"id placeholder",name:"name placeholder",email:"email placeholder",formattedAddress:"address placeholder",country:"country placeholder",cvcCheck:null,line1Check:null,postalCodeCheck:null},Xa=function(e){var t=e.charge,c=void 0===t?{}:t,a=e.isLoading,n=c&&c.payment_method_details?function(e){var t=e.billing_details,c=e.payment_method,a=e.payment_method_details.card,n=a.last4,r=a.fingerprint,o=a.exp_month,s=a.exp_year,i=a.funding,l=a.network,m=a.country,u=a.checks,h=t.name,d=t.email,v=t.formatted_address,p=u.cvc_check,f=u.address_line1_check,g=u.address_postal_code_check,b=o+" / "+s,y={credit:Object(w.__)("credit","woocommerce-payments"),debit:Object(w.__)("debit","woocommerce-payments"),prepaid:Object(w.__)("prepaid","woocommerce-payments"),unknown:Object(w.__)("unknown","woocommerce-payments")};return{last4:n,fingerprint:r,date:b,cardType:Object(w.sprintf)(Object(w.__)("%1$s %2$s card","woocommerce-payments"),l.charAt(0).toUpperCase()+l.slice(1),y[i]),id:c,name:h,email:d,country:wcSettings.countries[m],cvcCheck:p,line1Check:f,postalCodeCheck:g,formattedAddress:v}}(c):Ka,r=n.last4,o=n.fingerprint,s=n.date,i=n.cardType,l=n.id,m=n.name,u=n.email,h=n.country,d=n.cvcCheck,v=n.line1Check,p=n.postalCodeCheck,f=n.formattedAddress,g=Ga,b=Ja;return Object(_.createElement)(E.Card,{title:Object(_.createElement)(Vc,{isLoading:a,value:Object(w.__)("Payment method","woocommerce-payments")})},Object(_.createElement)("div",{className:"payment-method-details"},Object(_.createElement)("div",{className:"payment-method-details__column"},Object(_.createElement)(g,{isLoading:a,label:Object(w.__)("Number","woocommerce-payments")},"•••• ",r),Object(_.createElement)(g,{isLoading:a,label:Object(w.__)("Fingerprint","woocommerce-payments")},o),Object(_.createElement)(g,{isLoading:a,label:Object(w.__)("Expires","woocommerce-payments")},s),Object(_.createElement)(g,{isLoading:a,label:Object(w.__)("Type","woocommerce-payments")},i),Object(_.createElement)(g,{isLoading:a,label:Object(w.__)("ID","woocommerce-payments")},l)),Object(_.createElement)("div",{className:"payment-method-details__column"},Object(_.createElement)(g,{isLoading:a,label:Object(w.__)("Owner","woocommerce-payments")},m),Object(_.createElement)(g,{isLoading:a,label:Object(w.__)("Owner email","woocommerce-payments")},u),Object(_.createElement)(g,{isLoading:a,label:Object(w.__)("Address","woocommerce-payments")},Object(_.createElement)("span",{dangerouslySetInnerHTML:{__html:f}})),Object(_.createElement)(g,{isLoading:a,label:Object(w.__)("Origin","woocommerce-payments")},h),Object(_.createElement)(g,{isLoading:a,label:Object(w.__)("CVC check","woocommerce-payments")},Object(_.createElement)(b,{checked:d})),Object(_.createElement)(g,{isLoading:a,label:Object(w.__)("Street check","woocommerce-payments")},Object(_.createElement)(b,{checked:v})),Object(_.createElement)(g,{isLoading:a,label:Object(w.__)("Zip check","woocommerce-payments")},Object(_.createElement)(b,{checked:p})))))},en=function(e){var t=e.query.id,c=function(e){return Object($e.useSelect)(function(t){var c=t(Qe),a=c.getCharge,n=c.getChargeError,r=c.isResolving;return{charge:a(e),chargeError:n(e),isLoading:r("getCharge",[e])}},[e])}(t),a=c.charge,n=c.isLoading,r=c.chargeError;return!n&&r instanceof Error?Object(_.createElement)(Te,{maxWidth:1032,className:"wcpay-payment-details"},Object(_.createElement)(E.Card,null,Object(_.createElement)("div",null,Object(w.__)("Payment details not loaded","woocommerce-payments")))):Object(_.createElement)(Te,{maxWidth:1032,className:"wcpay-payment-details"},Object(_.createElement)(Pa,{charge:a,isLoading:n}),Object(_.createElement)($a,{chargeId:t}),!1,Object(_.createElement)(Xa,{charge:a,isLoading:n}),!1)},tn=function(e){var t=e.status,c=Ca[t]||{},a=c.message||Dt(t),n=c.type||"light";return Object(_.createElement)(Na.a,{message:a,type:n,isCompact:!0})},cn=new De.a,an=[{key:"details",label:"",required:!0,cellClassName:"info-button"},{key:"amount",label:Object(w.__)("Amount","woocommerce-payments"),required:!0},{key:"status",label:Object(w.__)("Status","woocommerce-payments"),required:!0},{key:"reason",label:Object(w.__)("Reason","woocommerce-payments"),required:!0},{key:"source",label:Object(w.__)("Source","woocommerce-payments"),required:!0},{key:"order",label:Object(w.__)("Order #","woocommerce-payments"),required:!0},{key:"customer",label:Object(w.__)("Customer","woocommerce-payments")},{key:"email",label:Object(w.__)("Email","woocommerce-payments"),visible:!1},{key:"country",label:Object(w.__)("Country","woocommerce-payments"),visible:!1},{key:"created",label:Object(w.__)("Disputed on","woocommerce-payments"),required:!0},{key:"dueBy",label:Object(w.__)("Respond by","woocommerce-payments"),required:!0}],nn=function(){var e,t,c,a=(e=Object(vc.getQuery)(),t=e.paged,c=e.per_page,Object($e.useSelect)(function(e){var a=e(Qe),n=a.getDisputes,r=a.isResolving,o={paged:Number.isNaN(parseInt(t,10))?"1":t,perPage:Number.isNaN(parseInt(c,10))?"25":c};return{disputes:n(o),isLoading:r("getDisputes",[o])}},[t,c])),n=a.disputes,r=a.isLoading,o=n.map(function(e){var t=e.order?{value:e.order.number,display:Object(_.createElement)(Qc,{order:e.order})}:null,c=function(t){return Object(_.createElement)(Pc,{href:xc(e.id,"disputes")},t)},a=Object(_.createElement)(Cc,{id:e.id,parentSegment:"disputes"}),n=Fa[e.reason],r=n?n.display:Dt(e.reason),o=e.charge||{},s=((o.payment_method_details||{}).card||{}).brand,i=o.billing_details||{},l={amount:{value:e.amount/100,display:c(cn.formatCurrency(e.amount/100))},status:{value:e.status,display:c(Object(_.createElement)(tn,{status:e.status}))},reason:{value:e.reason,display:c(r)},source:{value:s,display:c(Object(_.createElement)("span",{className:"payment-method__brand payment-method__brand--".concat(s)}))},created:{value:1e3*e.created,display:c(Object(Ae.dateI18n)("M j, Y",Ue()(1e3*e.created)))},dueBy:{value:1e3*e.evidence_details.due_by,display:c(Object(Ae.dateI18n)("M j, Y / g:iA",Ue()(1e3*e.evidence_details.due_by)))},order:t,customer:{value:i.name,display:c(i.name)},email:{value:i.email,display:c(i.email)},country:{value:(i.address||{}).country,display:c((i.address||{}).country)},details:{value:e.id,display:a}};return an.map(function(e){var t=e.key;return l[t]||{display:null}})});return Object(_.createElement)(Te,null,Object(_.createElement)(E.TableCard,{title:Object(w.__)("Disputes","woocommerce-payments"),isLoading:r,rowsPerPage:10,totalRows:10,headers:an,rows:o,query:Object(vc.getQuery)(),onQueryChange:vc.onQueryChange}))},rn=(c(66),function(e){var t=e.children;return Object(_.createElement)("div",{className:"woocommerce-card__footer"},t)}),on=function(e){var t=e.id,c=e.needsResponse,a=e.isSubmitted,n=e.onAccept;if(!c&&!a)return null;var r=Object(gt.addQueryArgs)("admin.php",{page:"wc-admin",path:"/payments/disputes/challenge",id:t}),o=Object(w.__)("Are you sure you'd like to accept this dispute? This action can not be undone.","woocommerce-payments");return Object(_.createElement)(rn,null,Object(_.createElement)(E.Link,{href:r,className:"components-button is-button is-primary is-large",onClick:function(){return c?window.wcTracks.recordEvent("wcpay_dispute_challenge_clicked"):window.wcTracks.recordEvent("wcpay_view_submitted_evidence_clicked")}},c?Object(w.__)("Challenge dispute","woocommerce-payments"):Object(w.__)("View submitted evidence","woocommerce-payments")),c&&Object(_.createElement)(x,{isDefault:!0,isLarge:!0,onClick:function(){return window.confirm(o)&&n()}},Object(w.__)("Accept dispute","woocommerce-payments")))},sn=c(30),ln=c.n(sn),mn=(c(67),new De.a),un=[{key:"created",label:Object(w.__)("Dispute date","woocommerce-payments")},{key:"amount",label:Object(w.__)("Disputed amount","woocommerce-payments")},{key:"dueBy",label:Object(w.__)("Respond by","woocommerce-payments")},{key:"reason",label:Object(w.__)("Reason","woocommerce-payments")},{key:"order",label:Object(w.__)("Order","woocommerce-payments")},{key:"customer",label:Object(w.__)("Customer","woocommerce-payments")},{key:"transactionId",label:Object(w.__)("Transaction ID","woocommerce-payments")}],hn=function(e){var t="object"===ln()(e.charge)?e.charge.id:e.charge;return Object(_.createElement)(E.Link,{href:xc(t,"transactions")},t)},dn=function(e){var t=Fa[e.reason];return t?t.display:Dt(e.reason)},vn=function(e){var t=e.dispute,c=e.isLoading,a=c?{created:"Created date",amount:"Amount",dueBy:"Due by date",reason:"Dispute reason",order:"Order link",customer:"Customer name",transactionId:"Transaction link"}:{created:Object(Ae.dateI18n)("M j, Y",Ue()(1e3*t.created)),amount:"".concat(mn.formatCurrency(t.amount/100)," ").concat(t.currency.toUpperCase()),dueBy:Object(Ae.dateI18n)("M j, Y - g:iA",Ue()(1e3*t.evidence_details.due_by)),reason:dn(t),order:t.order?Object(_.createElement)(Qc,{order:t.order}):null,customer:"object"===ln()(t.charge)?t.charge.billing_details.name:null,transactionId:hn(t)};return Object(_.createElement)("div",{className:"wcpay-dispute-info"},un.map(function(e){var t=e.key,n=e.label;return null==a[t]?null:Object(_.createElement)("div",{key:t,className:"wcpay-dispute-info-item"},Object(_.createElement)(Vc,{isLoading:c,display:"inline"},Object(_.createElement)("span",{className:"wcpay-dispute-info-key"},"".concat(n,": ")),Object(_.createElement)("span",{className:"wcpay-dispute-info-value"},a[t])))}))},pn=function(e){var t=e.children;return(void 0===t?[]:t).map(function(e,t){return Object(_.createElement)("p",{key:t},e)})},fn=(c(34),function(e){var t=function(e){var t=Object($e.useSelect)(function(t){var c=t(Qe),a=c.getDispute,n=c.isResolving;return{dispute:a(e),isLoading:n("getDispute",[e])}},[e]),c=t.dispute,a=t.isLoading,n=Object($e.useDispatch)(Qe).acceptDispute;return{dispute:c,isLoading:a,doAccept:function(){return n(e)}}}(e.query.id),c=t.dispute,a=void 0===c?{}:c,n=t.isLoading,r=t.doAccept,o=!n&&a.id,s=o&&Object(_.createElement)(on,{id:a.id,needsResponse:"needs_response"===a.status||"warning_needs_response"===a.status,isSubmitted:a.evidence_details&&a.evidence_details.submission_count>0,onAccept:r}),i=Fa[a.reason]||{};return n||o?Object(_.createElement)(Te,{isNarrow:!0,className:"wcpay-dispute-details"},Object(_.createElement)(E.Card,{title:Object(_.createElement)(Vc,{isLoading:n,value:Object(w.__)("Dispute overview","woocommerce-payments")})},Object(_.createElement)(vn,{dispute:a,isLoading:n}),Object(_.createElement)(Mc,{isLoading:n,numLines:4},Object(_.createElement)(pn,null,i.overview)),Object(_.createElement)(Mc,{isLoading:n,numLines:6},s)),Object(_.createElement)(E.Card,{title:Object(_.createElement)(Vc,{isLoading:n,value:i.display?Object(w.sprintf)(Object(w.__)("Dispute: %s","woocommerce-payments"),i.display):Object(w.__)("Dispute type","woocommerce-payments")})},Object(_.createElement)(Mc,{isLoading:n,numLines:4},Object(_.createElement)(pn,null,i.summary)),Object(_.createElement)(Mc,{isLoading:n,numLines:6},i.required&&Object(_.createElement)("h3",null," ",Object(w.__)("Required to overturn dispute","woocommerce-payments")," "),Object(_.createElement)(pn,null,i.required)),Object(_.createElement)(Mc,{isLoading:n,numLines:6},i.respond&&Object(_.createElement)("h3",null,Object(w.__)("How to respond","woocommerce-payments")),Object(_.createElement)(pn,null,i.respond),s))):Object(_.createElement)(Te,{isNarrow:!0,className:"wcpay-dispute-details"},Object(_.createElement)(E.Card,null,Object(_.createElement)("div",null,Object(w.__)("Dispute not loaded","woocommerce-payments"))))}),gn=c(27),wn=c.n(gn);var bn=function(e){var t=e.as;return function(e){var t=e.as,c=void 0===t?"div":t,a=V(e,["as"]);return"function"==typeof a.children?a.children(a):Object(_.createElement)(c,a)}(M({as:void 0===t?"div":t,className:"components-visually-hidden"},V(e,["as"])))};function yn(e){var t=e.id,c=e.label,a=e.hideLabelFromVision,n=e.help,r=e.className,o=e.children;return Object(_.createElement)("div",{className:j()("components-base-control",r)},Object(_.createElement)("div",{className:"components-base-control__field"},c&&t&&(a?Object(_.createElement)(bn,{as:"label",htmlFor:t},c):Object(_.createElement)("label",{className:"components-base-control__label",htmlFor:t},c)),c&&!t&&(a?Object(_.createElement)(bn,{as:"label"},c):Object(_.createElement)(yn.VisualLabel,null,c)),o),!!n&&Object(_.createElement)("p",{id:t+"__help",className:"components-base-control__help"},n))}yn.VisualLabel=function(e){var t=e.className,c=e.children;return t=j()("components-base-control__label",t),Object(_.createElement)("span",{className:t},c)};var zn=yn;var _n=Object(Y.withInstanceId)(function(e){var t=e.label,c=e.hideLabelFromVision,a=e.value,n=e.help,r=e.className,o=e.instanceId,s=e.onChange,i=e.type,l=void 0===i?"text":i,m=V(e,["label","hideLabelFromVision","value","help","className","instanceId","onChange","type"]),u="inspector-text-control-".concat(o);return Object(_.createElement)(zn,{label:t,hideLabelFromVision:c,id:u,help:n,className:r},Object(_.createElement)("input",C({className:"components-text-control__input",type:l,id:u,value:a,onChange:function(e){return s(e.target.value)},"aria-describedby":n?u+"__help":void 0},m)))});var En=Object(Y.withInstanceId)(function(e){var t=e.label,c=e.hideLabelFromVision,a=e.value,n=e.help,r=e.instanceId,o=e.onChange,s=e.rows,i=void 0===s?4:s,l=e.className,m=V(e,["label","hideLabelFromVision","value","help","instanceId","onChange","rows","className"]),u="inspector-textarea-control-".concat(r);return Object(_.createElement)(zn,{label:t,hideLabelFromVision:c,id:u,help:n,className:l},Object(_.createElement)("textarea",C({className:"components-textarea-control__input",id:u,rows:i,onChange:function(e){return o(e.target.value)},"aria-describedby":n?u+"__help":void 0,value:a},m)))});var On=Object(Y.withInstanceId)(function(e){var t=e.help,c=e.instanceId,a=e.label,n=e.multiple,r=void 0!==n&&n,o=e.onChange,s=e.options,i=void 0===s?[]:s,l=e.className,m=e.hideLabelFromVision,u=V(e,["help","instanceId","label","multiple","onChange","options","className","hideLabelFromVision"]),h="inspector-select-control-".concat(c);return!Object(O.isEmpty)(i)&&Object(_.createElement)(zn,{label:a,hideLabelFromVision:m,id:h,help:t,className:l},Object(_.createElement)("select",C({id:h,className:"components-select-control__input",onChange:function(e){if(r){var t=J(e.target.options).filter(function(e){return e.selected}).map(function(e){return e.value});o(t)}else o(e.target.value)},"aria-describedby":t?"".concat(h,"__help"):void 0,multiple:r},u),i.map(function(e,t){return Object(_.createElement)("option",{key:"".concat(e.label,"-").concat(e.value,"-").concat(t),value:e.value,disabled:e.disabled},e.label)})))}),kn=[{key:"general",title:Object(w.__)("General evidence","woocommerce-payments"),description:Object(w.__)("Provide general evidence about the customer and the order.","woocommerce-payments"),fields:[{key:"product_description",label:Object(w.__)("Product description","woocommerce-payments"),type:"textarea",description:Object(w.__)("A description of the product or service and any relevant details on how this was presented to the customer at the time of purchase.","woocommerce-payments")},{key:"customer_name",label:Object(w.__)("Customer name","woocommerce-payments"),type:"text"},{key:"customer_email_address",label:Object(w.__)("Customer email","woocommerce-payments"),type:"text"},{key:"customer_signature",label:Object(w.__)("Customer signature","woocommerce-payments"),type:"file",description:Object(w.__)("A relevant document or contract showing the customer's signature (if available).","woocommerce-payments")},{key:"billing_address",label:Object(w.__)("Customer billing address","woocommerce-payments"),type:"textarea"},{key:"customer_purchase_ip",label:Object(w.__)("Customer IP address","woocommerce-payments"),type:"text"},{key:"receipt",label:Object(w.__)("Receipt","woocommerce-payments"),type:"file",description:Object(w.__)("Any receipt or message sent to the customer notifying them of the charge. This field will be automatically filled with a Stripe generated email receipt if any such receipt was sent.","woocommerce-payments")},{key:"customer_communication",label:Object(w.__)("Customer communication","woocommerce-payments"),type:"file",description:Object(w.__)("Any communication with the customer that you feel is relevant to your case (e.g. emails proving that they received the product or service, or demonstrating their use of or satisfaction with the product or service).","woocommerce-payments")}]},{key:"refund_policy_info",title:Object(w.__)("Refund policy info","woocommerce-payments"),fields:[{key:"refund_policy",label:Object(w.__)("Refund policy","woocommerce-payments"),type:"file",description:Object(w.__)("Your refund policy, as shown or provided to the customer.","woocommerce-payments")},{key:"refund_policy_disclosure",label:Object(w.__)("Refund policy disclosure","woocommerce-payments"),type:"textarea",description:Object(w.__)("An explanation of how and when the customer was shown or provided your refund policy prior to purchase.","woocommerce-payments")},{key:"refund_refusal_explanation",label:Object(w.__)("Refund refusal explanation","woocommerce-payments"),type:"textarea",description:Object(w.__)("Your explanation for why the customer is not entitled to a refund.","woocommerce-payments")}],reason:"credit_not_processed"},{key:"duplicate_charge_info",title:Object(w.__)("Duplicate charge info","woocommerce-payments"),fields:[{key:"duplicate_charge_id",label:Object(w.__)("Duplicate charge ID","woocommerce-payments"),type:"text",description:Object(w.__)("The charge ID for the previous payment that appears to be a duplicate of the one that is disputed.","woocommerce-payments")},{key:"duplicate_charge_explanation",label:Object(w.__)("Explanation of duplicate charge","woocommerce-payments"),type:"textarea",description:Object(w.__)("An explanation of the difference between the disputed payment and the prior one that appears to be a duplicate.","woocommerce-payments")},{key:"duplicate_charge_documentation",label:Object(w.__)("Duplicate charge documentation","woocommerce-payments"),type:"file",description:Object(w.__)("Upload documentation for the prior payment that can uniquely identify it, such as a separate receipt. This document should be paired with a similar document from the disputed payment that proves the two are separate. This should also include a separate shipping label or receipt for the other payment. If multiple products were shipped together, provide a packing list that shows each purchase.","woocommerce-payments")},{key:"shipping_documentation",label:Object(w.__)("Shipping documentation","woocommerce-payments"),type:"file",description:Object(w.__)("A shipping label or receipt for the disputed payment.","woocommerce-payments"),denormalized:!0,productType:"physical_product"},{key:"service_documentation",label:Object(w.__)("Service documentation","woocommerce-payments"),type:"file",description:Object(w.__)("A copy of a service agreement or documentation for the disputed payment.","woocommerce-payments"),denormalized:!0,productType:"offline_service"}],reason:"duplicate"},{key:"shipping_information",title:Object(w.__)("Shipping information","woocommerce-payments"),fields:[{key:"shipping_carrier",label:Object(w.__)("Shipping carrier","woocommerce-payments"),type:"text",description:Object(w.__)("The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc. If multiple carriers were used for this purchase, please separate them with commas.","woocommerce-payments")},{key:"shipping_tracking_number",label:Object(w.__)("Tracking number","woocommerce-payments"),type:"text",description:Object(w.__)("The tracking number (if available) for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas. When we compile your evidence into a single document, these tracking numbers will be expanded to include detailed delivery information from the carrier.","woocommerce-payments")},{key:"shipping_documentation",label:Object(w.__)("Proof of shipping","woocommerce-payments"),type:"file",description:Object(w.__)("Provide documentation as proof that a product was shipped to the cardholder at the same address the cardholder provided to you. This could include a copy of the shipment receipt or label, and show the full shipping address of the cardholder, if possible.","woocommerce-payments")},{key:"shipping_date",label:Object(w.__)("Date of shipment","woocommerce-payments"),type:"text",description:Object(w.__)("The date on which a physical product began its route to the shipping address. This date should be prior to the date of the dispute.","woocommerce-payments")},{key:"shipping_address",label:Object(w.__)("Shipping address","woocommerce-payments"),type:"textarea",description:Object(w.__)("The address to which a physical product was shipped. The shipping address must match a billing address verified with AVS. (A signature is not required as evidence of delivery).","woocommerce-payments")}],reason:["fraudulent","product_not_received","product_unacceptable","unrecognized"],productType:"physical_product"},{key:"cancellation_policy_info",title:Object(w.__)("Cancellation policy info","woocommerce-payments"),fields:[{key:"cancellation_policy",label:Object(w.__)("Cancellation policy","woocommerce-payments"),type:"file",description:Object(w.__)("Your subscription cancellation policy, as shown to the customer.","woocommerce-payments")},{key:"cancellation_policy_disclosure",label:Object(w.__)("Cancellation policy disclosure","woocommerce-payments"),type:"textarea",description:Object(w.__)("An explanation of how and when the customer was shown your cancellation policy prior to purchase.","woocommerce-payments")},{key:"cancellation_rebuttal",label:Object(w.__)("Cancellation rebuttal","woocommerce-payments"),type:"textarea",description:Object(w.__)("A justification for why the customer's subscription was not canceled.","woocommerce-payments")}],reason:"subscription_canceled"},{key:"download_and_activity_logs",title:Object(w.__)("Download and activity logs","woocommerce-payments"),fields:[{key:"access_activity_log",type:"file",description:[Object(w.__)("Provide at least two of the following pieces of information:","woocommerce-payments"),Object(w.__)("• Customer's IP address and their device's geographical location at the time of purchase","woocommerce-payments"),Object(w.__)("• Device ID and name of the device","woocommerce-payments"),Object(w.__)("• Customer name and email address linked to their customer profile","woocommerce-payments"),Object(w.__)("• Evidence that the customer logged into their account for your business before the transaction date","woocommerce-payments"),Object(w.__)("• Evidence that your website or app was accessed by the cardholder for purchase or services on or after the transaction date","woocommerce-payments"),Object(w.__)("• Evidence that the same device and card used in the disputed payment was used in a previous payment that was not disputed","woocommerce-payments")]}],reason:["fraudulent","product_not_received"],productType:"digital_product_or_service"},{key:"download_and_activity_logs",title:Object(w.__)("Download and activity logs","woocommerce-payments"),fields:[{key:"access_activity_log",type:"file",description:Object(w.__)("Any server or activity logs showing proof that the cardholder accessed or downloaded the purchased digital product. This information should include IP addresses, corresponding timestamps, and any detailed recorded activity.","woocommerce-payments")}],reason:["product_unacceptable","subscription_canceled","unrecognized"],productType:"digital_product_or_service",denormalized:!0},{key:"service_details",title:Object(w.__)("Service details","woocommerce-payments"),fields:[{key:"service_date",label:Object(w.__)("Service date","woocommerce-payments"),type:"text",description:Object(w.__)("The date on which the cardholder received or began receiving the purchased service.","woocommerce-payments")},{key:"service_documentation",label:Object(w.__)("Proof of service","woocommerce-payments"),type:"file",description:Object(w.__)("Documentation showing proof that a service was provided to the cardholder. This could include a copy of a signed contract, work order, or other form of written agreement.","woocommerce-payments")}],reason:["fraudulent","product_not_received","product_unacceptable","subscription_canceled","unrecognized"],productType:"offline_service"},{key:"uncategorized",title:Object(w.__)("Additional details","woocommerce-payments"),description:Object(w.__)("Provide any extra evidence or statements you'd like the bank to see, either as text or by uploading a document.","woocommerce-payments"),fields:[{key:"uncategorized_text",label:Object(w.__)("Additional details","woocommerce-payments"),type:"textarea"},{key:"uncategorized_file",type:"file"}]}],jn=function(e){function t(){var e;return L(this,t),(e=I(this,D(t).apply(this,arguments))).openFileDialog=e.openFileDialog.bind(R(e)),e.bindInput=e.bindInput.bind(R(e)),e}return P(t,_["Component"]),N(t,[{key:"openFileDialog",value:function(){this.input.click()}},{key:"bindInput",value:function(e){this.input=e}},{key:"render",value:function(){var e=this.props,t=e.accept,c=e.children,a=e.icon,n=void 0===a?"upload":a,r=e.multiple,o=void 0!==r&&r,s=e.onChange,i=e.render,l=V(e,["accept","children","icon","multiple","onChange","render"]),m=i?i({openFileDialog:this.openFileDialog}):Object(_.createElement)(Ce,C({icon:n,onClick:this.openFileDialog},l),c);return Object(_.createElement)("div",{className:"components-form-file-upload"},m,Object(_.createElement)("input",{type:"file",ref:this.bindInput,multiple:o,style:{display:"none"},accept:t,onChange:s}))}}]),t}(),Hn=function(e){var t=e.fileName,c=e.field,a=e.disabled,n=e.isDone,r=e.isLoading,o=e.accept,s=e.error,i=e.onFileChange,l=e.onFileRemove,m=e.help,u=s&&s.length>0;return Object(_.createElement)(zn,{id:"form-file-upload-base-control-".concat(c.key),label:c.label,help:m},Object(_.createElement)("div",{className:"file-upload"},Object(_.createElement)(jn,{id:"form-file-upload-".concat(c.key),className:n&&!u?"is-success":null,isLarge:!0,isPrimary:!0,isDestructive:u,isBusy:r,disabled:a||r,icon:Object(_.createElement)(Fe.a,{icon:n&&!u?"checkmark":"add-outline",size:18}),accept:o,onChange:function(e){return i(c.key,e.target.files[0])}},Object(w.__)("Upload file","woocommerce-payments")),u?Object(_.createElement)("span",{className:"upload-message is-destructive"},s):Object(_.createElement)("span",{className:"upload-message"},t),n&&!a?Object(_.createElement)(Ce,{className:"delete-uploaded-file-button","aria-label":"Remove file",icon:Object(_.createElement)(Fe.a,{icon:"trash",size:18}),onClick:function(){return l(c.key)}}):null))},Mn=function(e,t){Object(_.useEffect)(function(){var t=e();if(t){var c=function(e){e.preventDefault(),e.returnValue=""};window.addEventListener("beforeunload",c);var a=Object(vc.getHistory)().block(t);return function(){window.removeEventListener("beforeunload",c),a()}}},t)},Vn=function(e){return Array.isArray(e)?Object(O.flatten)(e.map(function(e,t){return[e,Object(_.createElement)("br",{key:t})]})):e},xn=function(e){var t=e.fields,c=e.evidence,a=e.onChange,n=e.onFileChange,r=e.onFileRemove,o=e.onSave,s=e.readOnly;if(!t||!t.length)return null;var i=function(e){return{label:e.label,value:c[e.key]||"",onChange:function(t){return a(e.key,t)},disabled:s,help:Vn(e.description)}},l=function(e){switch(e.type){case"file":return Object(_.createElement)(Hn,Oc()({key:e.key},function(e){var t=c.metadata&&c.metadata[e.key]||"",a=c.isUploading&&(c.isUploading[e.key]||!1),o=c.uploadingErrors&&(c.uploadingErrors[e.key]||""),i=!a&&t.length>0;return{field:e,fileName:t,accept:".pdf, image/png, image/jpeg",onFileChange:n,onFileRemove:r,disabled:s,isLoading:a,isDone:i,error:o,help:Vn(e.description)}}(e)));case"text":return Object(_.createElement)(_n,Oc()({key:e.key},i(e)));default:return Object(_.createElement)(En,Oc()({key:e.key},i(e)))}},m=t.map(function(e){return Object(_.createElement)(E.Card,{key:e.key,title:e.title},e.description&&Object(_.createElement)("p",null,e.description),e.fields.map(l))}),u=Object(w.__)("Are you sure you're ready to submit this evidence? Evidence submissions are final.","woocommerce-payments");return Object(_.createElement)(_.Fragment,null,m,s?null:Object(_.createElement)(E.Card,null,Object(_.createElement)("p",null,Object(w.__)("When you submit your evidence, we'll format it and send it to the cardholder's bank, then email you once the dispute has been decided.","woocommerce-payments")),Object(_.createElement)("p",null,Object(_.createElement)("strong",null,Object(w.__)("Evidence submission is final.","woocommerce-payments"))," ",Object(w.__)("You can also save this evidence for later instead of submitting it immediately.","woocommerce-payments")," ",Object(_.createElement)("strong",null,Object(w.__)("We will automatically submit any saved evidence at the due date.","woocommerce-payments"))),Object(_.createElement)(rn,null,Object(_.createElement)(x,{isPrimary:!0,isLarge:!0,onClick:function(){return window.confirm(u)&&o(!0)}},Object(w.__)("Submit evidence","woocommerce-payments")),Object(_.createElement)(x,{isDefault:!0,isLarge:!0,onClick:function(){return o(!1)}},Object(w.__)("Save for later","woocommerce-payments")))))},Cn=function(e){var t=e.isLoading,c=e.dispute,a=void 0===c?{}:c,n=e.productType,r=e.onChangeProductType,o=jc()(e,["isLoading","dispute","productType","onChangeProductType"]),s=a&&"needs_response"!==a.status&&"warning_needs_response"!==a.status,i=!t&&a.id;return t||i?Object(_.createElement)(Te,{isNarrow:!0,className:"wcpay-dispute-evidence"},Object(_.createElement)(E.Card,{title:Object(_.createElement)(Vc,{isLoading:t,value:Object(w.__)("Challenge dispute","woocommerce-payments")})},Object(_.createElement)(vn,{dispute:a,isLoading:t})),Object(_.createElement)(E.Card,{title:Object(_.createElement)(Vc,{isLoading:t,value:Object(w.__)("Product type","woocommerce-payments")})},Object(_.createElement)(Mc,{isLoading:t,numLines:2},Object(_.createElement)(On,{value:n,onChange:r,options:[{label:Object(w.__)("Select one…","woocommerce-payments"),disabled:!0,value:""},{label:Object(w.__)("Physical product","woocommerce-payments"),value:"physical_product"},{label:Object(w.__)("Digital product or service","woocommerce-payments"),value:"digital_product_or_service"},{label:Object(w.__)("Offline service","woocommerce-payments"),value:"offline_service"},{label:Object(w.__)("Multiple product types","woocommerce-payments"),value:"multiple"}],disabled:s}))),!t&&Object(_.createElement)(xn,Oc()({},o,{readOnly:s}))):Object(_.createElement)(Te,{isNarrow:!0,className:"wcpay-dispute-details"},Object(_.createElement)("div",null,Object(w.__)("Dispute not loaded","woocommerce-payments")))},Ln=function(e){var t=e.query,c="/wc/v3/payments/disputes/".concat(t.id),a=Object(_.useState)(),n=z()(a,2),r=n[0],o=n[1],s=Object(_.useState)(!1),i=z()(s,2),l=i[0],m=i[1],u=Object(_.useState)({}),h=z()(u,2),d=h[0],v=h[1],p=Object($e.useDispatch)("core/notices"),f=p.createSuccessNotice,g=p.createErrorNotice,b=p.createInfoNotice,y=!r||Object(O.isMatchWith)(r.evidence,d,function(e,t){if(null===e&&!t)return!0});Mn(function(){if(!y)return Object(w.__)("There are unsaved changes on this page. Are you sure you want to leave and discard the unsaved changes?","woocommerce-payments")},[y]);var E=function(){var e=wn()(ft.a.mark(function e(){return ft.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return m(!0),e.prev=1,e.t0=o,e.next=5,ea()({path:c});case 5:e.t1=e.sent,(0,e.t0)(e.t1);case 7:return e.prev=7,m(!1),e.finish(7);case 10:case"end":return e.stop()}},e,null,[[1,,7,10]])}));return function(){return e.apply(this,arguments)}}();Object(_.useEffect)(function(){E()},[]);var k=function(e,t){return v(function(c){return Ze()({},c,Ke()({},e,t))})},j=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o(function(t){return Object(O.merge)({},t,e)})},H=function(){var e=wn()(ft.a.mark(function e(t,c){var a,n;return ft.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(c){e.next=2;break}return e.abrupt("return");case 2:return window.wcTracks.recordEvent("wcpay_dispute_file_upload_started",{type:t}),(a=new FormData).append("file",c),a.append("purpose","dispute_evidence"),j({isUploading:Ke()({},t,!0),uploadingErrors:Ke()({},t,"")}),k(t,""),e.prev=8,e.next=11,ea()({path:"/wc/v3/payments/file",method:"post",body:a});case 11:n=e.sent,j({metadata:Ke()({},t,n.filename),isUploading:Ke()({},t,!1)}),k(t,n.id),window.wcTracks.recordEvent("wcpay_dispute_file_upload_success",{type:t}),e.next=22;break;case 17:e.prev=17,e.t0=e.catch(8),window.wcTracks.recordEvent("wcpay_dispute_file_upload_failed",{message:e.t0.message}),j({isUploading:Ke()({},t,!1),uploadingErrors:Ke()({},t,e.t0.message)}),k(t,"");case 22:case"end":return e.stop()}},e,null,[[8,17]])}));return function(t,c){return e.apply(this,arguments)}}(),M=function(e){var t=e?Object(w.__)("Evidence submitted!","woocommerce-payments"):Object(w.__)("Evidence saved!","woocommerce-payments"),c=Object(gt.addQueryArgs)("admin.php",{page:"wc-admin",path:"/payments/disputes"});e?window.wcTracks.recordEvent("wcpay_dispute_submit_evidence_success"):window.wcTracks.recordEvent("wcpay_dispute_save_evidence_success"),f(t),Object(vc.getHistory)().push(c)},V=function(e){var t=e?Object(w.__)("Failed to submit evidence!","woocommerce-payments"):Object(w.__)("Failed to save evidence!","woocommerce-payments");e?window.wcTracks.recordEvent("wcpay_dispute_submit_evidence_failed"):window.wcTracks.recordEvent("wcpay_dispute_save_evidence_failed"),g(t)},x={updateDispute:Object($e.useDispatch)(Qe).updateDispute}.updateDispute,C=function(){var e=wn()(ft.a.mark(function e(t){var a,n;return ft.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!Object(O.some)(r.isUploading)){e.next=3;break}return b(Object(w.__)("Please wait until file upload is finished"),"woocommerce-payments"),e.abrupt("return");case 3:return m(!0),e.prev=4,t?window.wcTracks.recordEvent("wcpay_dispute_submit_evidence_clicked"):window.wcTracks.recordEvent("wcpay_dispute_save_evidence_clicked"),a=r.metadata,e.next=9,ea()({path:c,method:"post",data:{evidence:Ze()({},r.evidence,{},d),metadata:a,submit:t}});case 9:n=e.sent,o(n),M(t),v({}),x(n),e.next=19;break;case 16:e.prev=16,e.t0=e.catch(4),V(t);case 19:return e.prev=19,m(!1),e.finish(19);case 22:case"end":return e.stop()}},e,null,[[4,16,19,22]])}));return function(t){return e.apply(this,arguments)}}(),L=function(e){if(!e)return"";var t=e.metadata.__product_type||"";return!t&&e.evidence_details&&e.evidence_details.has_evidence&&(t="multiple"),t}(r),S=Object(_.useMemo)(function(){return function(e,t){return e&&t?"multiple"===t?kn.map(function(e){return e.denormalized?null:Ze()({},e,{fields:e.fields.filter(function(e){return!e.denormalized})})}).filter(Boolean):kn.map(function(c){var a=c.reason&&!Object(O.includes)(c.reason,e),n=c.productType&&c.productType!==t;if(a||n)return null;var r=c.fields.filter(function(e){return!e.productType||e.productType===t});return Ze()({},c,{fields:r})}).filter(Boolean):[]}(r&&r.reason,L)},[r&&r.reason,L]);return Object(_.createElement)(Cn,{isLoading:l,dispute:r,evidence:r?Ze()({},r.evidence,{},d,{metadata:r.metadata||{},isUploading:r.isUploading||{},uploadingErrors:r.uploadingErrors||{}}):{},onChange:k,onFileChange:H,onFileRemove:function(e){k(e,""),j({metadata:Ke()({},e,""),uploadingErrors:Ke()({},e,"")})},onSave:C,productType:L,onChangeProductType:function(e){var t={selection:e};window.wcTracks.recordEvent("wcpay_dispute_product_selected",t),j({metadata:Ke()({},"__product_type",e)})},fields:S})},Sn={transactions:Object(w.__)("Viewing test transactions. To view live transactions, disable test mode in WooCommerce Payments settings.","woocommerce-payments"),paymentDetails:Object(w.__)("Test payment:","woocommerce-payments"),deposits:Object(w.__)("Viewing test deposits. To view live deposits, disable test mode in WooCommerce Payments settings.","woocommerce-payments"),depositDetails:Object(w.__)("Test deposit:","woocommerce-payments"),disputes:Object(w.__)("Viewing test disputes. To view live disputes, disable test mode in WooCommerce Payments settings.","woocommerce-payments"),disputeDetails:Object(w.__)("Test dispute:","woocommerce-payments")},Nn=[Sn.paymentDetails,Sn.disputeDetails,Sn.depositDetails],Tn=function(e){var t=Object(_.createElement)("a",{href:Object(gt.addQueryArgs)("admin.php",{page:"wc-settings",tab:"checkout",section:"woocommerce_payments"})},Object(w.__)("View WooCommerce Payments settings.","woocommerce-payments"));return Nn.includes(e)?Object(_.createElement)("span",null,Object(_.createElement)("b",null,e)," ",function(e){return Object(w._n)("WooCommerce Payments was in test mode when this order was placed.","WooCommerce Payments was in test mode when these orders were placed.",Sn.depositDetails===e?2:1,"woocommerce-payments")}(e)," ",t):Object(_.createElement)("span",null,e," ",t)},Bn=function(e,t){return function(c,a){return Object(_.createElement)("div",null,function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return"undefined"==typeof wcpaySettings?e:"1"===wcpaySettings.testMode||e}()?(n=t,Object(_.createElement)(Le,{className:"wcpay-test-mode-notice",status:"warning",isDismissible:!1},Tn(n))):null,e(c,a));var n}};Object(b.addFilter)("woocommerce_admin_pages_list","woocommerce-payments",function(e){var t,c=(t=document.querySelector("#toplevel_page_wc-admin-path--payments-connect")?"connect":"deposits",{menuID:"toplevel_page_wc-admin-path--payments-".concat(t),rootLink:["/payments/".concat(t),Object(w.__)("Payments","woocommerce-payments")]}),a=c.menuID,n=c.rootLink;return e.push({container:Re,path:"/payments/connect",wpOpenMenu:a,breadcrumbs:[n,Object(w.__)("Connect","woocommerce-payments")]}),e.push({container:Bn(Wc,Sn.deposits),path:"/payments/deposits",wpOpenMenu:a,breadcrumbs:[n,Object(w.__)("Deposits","woocommerce-payments")]}),e.push({container:Bn(ha,Sn.depositDetails),path:"/payments/deposits/details",wpOpenMenu:a,breadcrumbs:[n,["/payments/deposits",Object(w.__)("Deposits","woocommerce-payments")],Object(w.__)("Deposit details","woocommerce-payments")]}),e.push({container:Bn(ga,Sn.transactions),path:"/payments/transactions",wpOpenMenu:a,breadcrumbs:[n,Object(w.__)("Transactions","woocommerce-payments")]}),e.push({container:Bn(en,Sn.paymentDetails),path:"/payments/transactions/details",wpOpenMenu:a,breadcrumbs:[n,["/payments/transactions",Object(w.__)("Transactions","woocommerce-payments")],Object(w.__)("Payment details","woocommerce-payments")]}),e.push({container:Bn(nn,Sn.disputes),path:"/payments/disputes",wpOpenMenu:a,breadcrumbs:[n,Object(w.__)("Disputes","woocommerce-payments")]}),e.push({container:Bn(fn,Sn.disputeDetails),path:"/payments/disputes/details",wpOpenMenu:a,breadcrumbs:[n,["/payments/disputes",Object(w.__)("Disputes","woocommerce-payments")],Object(w.__)("Dispute details","woocommerce-payments")]}),e.push({container:Bn(Ln,Sn.disputeDetails),path:"/payments/disputes/challenge",wpOpenMenu:a,breadcrumbs:[n,["/payments/disputes",Object(w.__)("Disputes","woocommerce-payments")],Object(w.__)("Challenge dispute","woocommerce-payments")]}),e})},function(e,t,c){"use strict";function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var c=0,a=new Array(t);c<t;c++)a[c]=e[c];return a}function n(e,t){if(e){if("string"==typeof e)return a(e,t);var c=Object.prototype.toString.call(e).slice(8,-1);return"Object"===c&&e.constructor&&(c=e.constructor.name),"Map"===c||"Set"===c?Array.from(e):"Arguments"===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?a(e,t):void 0}}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var c=[],a=!0,n=!1,r=void 0;try{for(var o,s=e[Symbol.iterator]();!(a=(o=s.next()).done)&&(c.push(o.value),!t||c.length!==t);a=!0);}catch(e){n=!0,r=e}finally{try{a||null==s.return||s.return()}finally{if(n)throw r}}return c}}(e,t)||n(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||n(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var i,l,m,u,h=c(13),d=/<(\/)?(\w+)\s*(\/)?>/g;function v(e,t,c,a,n){return{element:e,tokenStart:t,tokenLength:c,prevOffset:a,leadingTextStart:n,children:[]}}var p=function(e){var t="object"===o(e),c=t&&Object.values(e);return t&&c.length&&c.every(function(e){return Object(h.isValidElement)(e)})};function f(e){var t=function(){var e=d.exec(i);if(null===e)return["no-more-tokens"];var t=e.index,c=r(e,4),a=c[0],n=c[1],o=c[2],s=c[3],l=a.length;if(s)return["self-closed",o,t,l];if(n)return["closer",o,t,l];return["opener",o,t,l]}(),c=r(t,4),a=c[0],n=c[1],o=c[2],p=c[3],f=u.length,b=o>l?l:null;if(!e[n])return g(),!1;switch(a){case"no-more-tokens":if(0!==f){var y=u.pop(),z=y.leadingTextStart,_=y.tokenStart;m.push(i.substr(z,_))}return g(),!1;case"self-closed":return 0===f?(null!==b&&m.push(i.substr(b,o-b)),m.push(e[n]),l=o+p,!0):(w(new v(e[n],o,p)),l=o+p,!0);case"opener":return u.push(new v(e[n],o,p,o+p,b)),l=o+p,!0;case"closer":if(1===f)return function(e){var t=u.pop(),c=t.element,a=t.leadingTextStart,n=t.prevOffset,r=t.tokenStart,o=t.children,l=e?i.substr(n,e-n):i.substr(n);l&&o.push(l);null!==a&&m.push(i.substr(a,r-a));m.push(h.cloneElement.apply(void 0,[c,null].concat(s(o))))}(o),l=o+p,!0;var E=u.pop(),O=i.substr(E.prevOffset,o-E.prevOffset);E.children.push(O),E.prevOffset=o+p;var k=new v(E.element,E.tokenStart,E.tokenLength,o+p);return k.children=E.children,w(k),l=o+p,!0;default:return g(),!1}}function g(){var e=i.length-l;0!==e&&m.push(i.substr(l,e))}function w(e){var t=e.element,c=e.tokenStart,a=e.tokenLength,n=e.prevOffset,r=e.children,o=u[u.length-1],l=i.substr(o.prevOffset,c-o.prevOffset);l&&o.children.push(l),o.children.push(h.cloneElement.apply(void 0,[t,null].concat(s(r)))),o.prevOffset=n||c+a}t.a=function(e,t){if(i=e,l=0,m=[],u=[],d.lastIndex=0,!p(t))throw new TypeError("The conversionMap provided is not valid. It must be an object with values that are WPElements");do{}while(f(t));return h.createElement.apply(void 0,[h.Fragment,null].concat(s(m)))}}]));
1
+ !function(e,t){for(var c in t)e[c]=t[c]}(this,function(e){var t={};function c(a){if(t[a])return t[a].exports;var n=t[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,c),n.l=!0,n.exports}return c.m=e,c.c=t,c.d=function(e,t,a){c.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},c.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.t=function(e,t){if(1&t&&(e=c(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(c.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)c.d(a,n,function(t){return e[t]}.bind(null,n));return a},c.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return c.d(t,"a",t),t},c.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},c.p="",c(c.s=72)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.wc.components}()},function(e,t){!function(){e.exports=this.lodash}()},function(e,t,c){var a=c(8);e.exports=function(e){for(var t=1;t<arguments.length;t++){var c=null!=arguments[t]?arguments[t]:{},n=Object.keys(c);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(c).filter(function(e){return Object.getOwnPropertyDescriptor(c,e).enumerable}))),n.forEach(function(t){a(e,t,c[t])})}return e}},function(e,t){!function(){e.exports=this.regeneratorRuntime}()},function(e,t){!function(){e.exports=this.moment}()},function(e,t){!function(){e.exports=this.wc.navigation}()},function(e,t){e.exports=function(e,t,c){return t in e?Object.defineProperty(e,t,{value:c,enumerable:!0,configurable:!0,writable:!0}):e[t]=c,e}},function(e,t){!function(){e.exports=this.wp.dataControls}()},function(e,t){!function(){e.exports=this.wp.url}()},function(e,t){!function(){e.exports=this.wp.date}()},function(e,t){!function(){e.exports=this.wp.data}()},function(e,t){!function(){e.exports=this.React}()},function(e,t){!function(){e.exports=this.wc.currency}()},function(e,t,c){var a;
2
  /*!
3
  Copyright (c) 2017 Jed Watson.
4
  Licensed under the MIT License (MIT), see
9
  Licensed under the MIT License (MIT), see
10
  http://jedwatson.github.io/classnames
11
  */
12
+ !function(){"use strict";var c={}.hasOwnProperty;function n(){for(var e=[],t=0;t<arguments.length;t++){var a=arguments[t];if(a){var r=typeof a;if("string"===r||"number"===r)e.push(a);else if(Array.isArray(a)&&a.length){var o=n.apply(null,a);o&&e.push(o)}else if("object"===r)for(var s in a)c.call(a,s)&&a[s]&&e.push(s)}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):void 0===(a=function(){return n}.apply(t,[]))||(e.exports=a)}()},function(e,t){!function(){e.exports=this.wp.compose}()},function(e,t,c){var a=c(29),n=c(30),r=c(31);e.exports=function(e,t){return a(e)||n(e,t)||r()}},function(e,t,c){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t,c=1;c<arguments.length;c++)for(var a in t=arguments[c])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},n=function(){function e(e,t){for(var c,a=0;a<t.length;a++)(c=t[a]).enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(e,c.key,c)}return function(t,c,a){return c&&e(t.prototype,c),a&&e(t,a),t}}(),r=c(13),o=i(r),s=i(c(47));function i(e){return e&&e.__esModule?e:{default:e}}var l=function(e,t){return 0<=t.indexOf(e)},m=function(e){return 0==e%18},u=["gridicons-add-outline","gridicons-add","gridicons-align-image-center","gridicons-align-image-left","gridicons-align-image-none","gridicons-align-image-right","gridicons-attachment","gridicons-bold","gridicons-bookmark-outline","gridicons-bookmark","gridicons-calendar","gridicons-cart","gridicons-create","gridicons-custom-post-type","gridicons-external","gridicons-folder","gridicons-heading","gridicons-help-outline","gridicons-help","gridicons-history","gridicons-info-outline","gridicons-info","gridicons-italic","gridicons-layout-blocks","gridicons-link-break","gridicons-link","gridicons-list-checkmark","gridicons-list-ordered","gridicons-list-unordered","gridicons-menus","gridicons-minus","gridicons-my-sites","gridicons-notice-outline","gridicons-notice","gridicons-plus-small","gridicons-plus","gridicons-popout","gridicons-posts","gridicons-scheduled","gridicons-share-ios","gridicons-star-outline","gridicons-star","gridicons-stats","gridicons-status","gridicons-thumbs-up","gridicons-textcolor","gridicons-time","gridicons-trophy","gridicons-user-circle","gridicons-reader-follow","gridicons-reader-following"],d=["gridicons-arrow-down","gridicons-arrow-up","gridicons-comment","gridicons-clear-formatting","gridicons-flag","gridicons-menu","gridicons-reader","gridicons-strikethrough"],h=["gridicons-align-center","gridicons-align-justify","gridicons-align-left","gridicons-align-right","gridicons-arrow-left","gridicons-arrow-right","gridicons-house","gridicons-indent-left","gridicons-indent-right","gridicons-minus-small","gridicons-print","gridicons-sign-out","gridicons-stats-alt","gridicons-trash","gridicons-underline","gridicons-video-camera"],v=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(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)}(t,r.PureComponent),n(t,[{key:"render",value:function(){var e=this.props,t=e.size,c=e.onClick,n=e.icon,r=e.className,s=function(e,t){var c={};for(var a in e)0<=t.indexOf(a)||Object.prototype.hasOwnProperty.call(e,a)&&(c[a]=e[a]);return c}(e,["size","onClick","icon","className"]),i="gridicons-"+n,v=void 0,p=["gridicon",i,r,!!(l(i,u)&&m(t))&&"needs-offset",!!(l(i,d)&&m(t))&&"needs-offset-x",!!(l(i,h)&&m(t))&&"needs-offset-y"].filter(Boolean).join(" ");switch(i){default:v=o.default.createElement("svg",a({height:t,width:t},s));break;case"gridicons-add-image":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M23 4v2h-3v3h-2V6h-3V4h3V1h2v3h3zm-8.5 7c.828 0 1.5-.672 1.5-1.5S15.328 8 14.5 8 13 8.672 13 9.5s.672 1.5 1.5 1.5zm3.5 3.234l-.513-.57c-.794-.885-2.18-.885-2.976 0l-.655.73L9 9l-3 3.333V6h7V4H6c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h12c1.105 0 2-.895 2-2v-7h-2v3.234z"})));break;case"gridicons-add-outline":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm5 9h-4V7h-2v4H7v2h4v4h2v-4h4v-2z"})));break;case"gridicons-add":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm5 11h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"})));break;case"gridicons-align-center":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M4 19h16v-2H4v2zm13-6H7v2h10v-2zM4 9v2h16V9H4zm13-4H7v2h10V5z"})));break;case"gridicons-align-image-center":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M3 5h18v2H3V5zm0 14h18v-2H3v2zm5-4h8V9H8v6z"})));break;case"gridicons-align-image-left":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M3 5h18v2H3V5zm0 14h18v-2H3v2zm0-4h8V9H3v6zm10 0h8v-2h-8v2zm0-4h8V9h-8v2z"})));break;case"gridicons-align-image-none":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M21 7H3V5h18v2zm0 10H3v2h18v-2zM11 9H3v6h8V9z"})));break;case"gridicons-align-image-right":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M21 7H3V5h18v2zm0 10H3v2h18v-2zm0-8h-8v6h8V9zm-10 4H3v2h8v-2zm0-4H3v2h8V9z"})));break;case"gridicons-align-justify":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M4 19h16v-2H4v2zm16-6H4v2h16v-2zM4 9v2h16V9H4zm16-4H4v2h16V5z"})));break;case"gridicons-align-left":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M4 19h16v-2H4v2zm10-6H4v2h10v-2zM4 9v2h16V9H4zm10-4H4v2h10V5z"})));break;case"gridicons-align-right":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M20 17H4v2h16v-2zm-10-2h10v-2H10v2zM4 9v2h16V9H4zm6-2h10V5H10v2z"})));break;case"gridicons-arrow-down":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M11 4v12.17l-5.59-5.59L4 12l8 8 8-8-1.41-1.41L13 16.17V4h-2z"})));break;case"gridicons-arrow-left":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"})));break;case"gridicons-arrow-right":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8-8-8z"})));break;case"gridicons-arrow-up":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M13 20V7.83l5.59 5.59L20 12l-8-8-8 8 1.41 1.41L11 7.83V20h2z"})));break;case"gridicons-aside":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M14 20l6-6V6c0-1.105-.895-2-2-2H6c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h8zM6 6h12v6h-4c-1.105 0-2 .895-2 2v4H6V6zm10 4H8V8h8v2z"})));break;case"gridicons-attachment":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M14 1c-2.762 0-5 2.238-5 5v10c0 1.657 1.343 3 3 3s2.99-1.343 2.99-3V6H13v10c0 .553-.447 1-1 1-.553 0-1-.447-1-1V6c0-1.657 1.343-3 3-3s3 1.343 3 3v10.125C17 18.887 14.762 21 12 21s-5-2.238-5-5v-5H5v5c0 3.866 3.134 7 7 7s6.99-3.134 6.99-7V6c0-2.762-2.228-5-4.99-5z"})));break;case"gridicons-audio":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M8 4v10.184C7.686 14.072 7.353 14 7 14c-1.657 0-3 1.343-3 3s1.343 3 3 3 3-1.343 3-3V7h7v4.184c-.314-.112-.647-.184-1-.184-1.657 0-3 1.343-3 3s1.343 3 3 3 3-1.343 3-3V4H8z"})));break;case"gridicons-bell":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M6.14 14.97l2.828 2.827c-.362.362-.862.586-1.414.586-1.105 0-2-.895-2-2 0-.552.224-1.052.586-1.414zm8.867 5.324L14.3 21 3 9.7l.706-.707 1.102.157c.754.108 1.69-.122 2.077-.51l3.885-3.884c2.34-2.34 6.135-2.34 8.475 0s2.34 6.135 0 8.475l-3.885 3.886c-.388.388-.618 1.323-.51 2.077l.157 1.1z"})));break;case"gridicons-block":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zM4 12c0-4.418 3.582-8 8-8 1.848 0 3.545.633 4.9 1.686L5.686 16.9C4.633 15.545 4 13.848 4 12zm8 8c-1.848 0-3.546-.633-4.9-1.686L18.314 7.1C19.367 8.455 20 10.152 20 12c0 4.418-3.582 8-8 8z"})));break;case"gridicons-bold":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M7 5.01h4.547c2.126 0 3.67.302 4.632.906.96.605 1.44 1.567 1.44 2.887 0 .896-.21 1.63-.63 2.205-.42.574-.98.92-1.678 1.036v.103c.95.212 1.637.608 2.057 1.19.42.58.63 1.35.63 2.315 0 1.367-.494 2.434-1.482 3.2-.99.765-2.332 1.148-4.027 1.148H7V5.01zm3 5.936h2.027c.862 0 1.486-.133 1.872-.4.386-.267.578-.708.578-1.323 0-.574-.21-.986-.63-1.236-.42-.25-1.087-.374-1.996-.374H10v3.333zm0 2.523v3.905h2.253c.876 0 1.52-.167 1.94-.502.416-.335.625-.848.625-1.54 0-1.243-.89-1.864-2.668-1.864H10z"})));break;case"gridicons-book":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M4 3h2v18H4zM18 3H7v18h11c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 6h-6V8h6v1zm0-2h-6V6h6v1z"})));break;case"gridicons-bookmark-outline":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M17 5v12.554l-5-2.857-5 2.857V5h10m0-2H7c-1.105 0-2 .896-2 2v16l7-4 7 4V5c0-1.104-.896-2-2-2z"})));break;case"gridicons-bookmark":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M17 3H7c-1.105 0-2 .896-2 2v16l7-4 7 4V5c0-1.104-.896-2-2-2z"})));break;case"gridicons-briefcase":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M14 15h-4v-2H2v6c0 1.105.895 2 2 2h16c1.105 0 2-.895 2-2v-6h-8v2zm6-9h-2V4c0-1.105-.895-2-2-2H8c-1.105 0-2 .895-2 2v2H4c-1.105 0-2 .895-2 2v4h20V8c0-1.105-.895-2-2-2zm-4 0H8V4h8v2z"})));break;case"gridicons-bug":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M18 14h4v-2h-4v-2h1a2 2 0 0 0 2-2V6h-2v2H5V6H3v2a2 2 0 0 0 2 2h1v2H2v2h4v1a6 6 0 0 0 .09 1H5a2 2 0 0 0-2 2v2h2v-2h1.81A6 6 0 0 0 11 20.91V10h2v10.91A6 6 0 0 0 17.19 18H19v2h2v-2a2 2 0 0 0-2-2h-1.09a6 6 0 0 0 .09-1zM12 2a4 4 0 0 0-4 4h8a4 4 0 0 0-4-4z"})));break;case"gridicons-calendar":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M19 4h-1V2h-2v2H8V2H6v2H5c-1.105 0-2 .896-2 2v13c0 1.104.895 2 2 2h14c1.104 0 2-.896 2-2V6c0-1.104-.896-2-2-2zm0 15H5V8h14v11z"})));break;case"gridicons-camera":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M17 12c0 1.7-1.3 3-3 3s-3-1.3-3-3 1.3-3 3-3 3 1.3 3 3zm5-5v11c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V7c0-1.1.9-2 2-2V4h4v1h2l1-2h6l1 2h2c1.1 0 2 .9 2 2zM7.5 9c0-.8-.7-1.5-1.5-1.5S4.5 8.2 4.5 9s.7 1.5 1.5 1.5S7.5 9.8 7.5 9zM19 12c0-2.8-2.2-5-5-5s-5 2.2-5 5 2.2 5 5 5 5-2.2 5-5z"})));break;case"gridicons-caption":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M20 15l2-2v5c0 1.105-.895 2-2 2H4c-1.105 0-2-.895-2-2V6c0-1.105.895-2 2-2h13l-2 2H4v12h16v-3zm2.44-8.56l-.88-.88c-.586-.585-1.534-.585-2.12 0L12 13v2H6v2h9v-1l7.44-7.44c.585-.586.585-1.534 0-2.12z"})));break;case"gridicons-cart":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M9 20c0 1.1-.9 2-2 2s-1.99-.9-1.99-2S5.9 18 7 18s2 .9 2 2zm8-2c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2zm.396-5c.937 0 1.75-.65 1.952-1.566L21 5H7V4c0-1.105-.895-2-2-2H3v2h2v11c0 1.105.895 2 2 2h12c0-1.105-.895-2-2-2H7v-2h10.396z"})));break;case"gridicons-chat":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M3 12c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h8c1.1 0 2 .9 2 2v5c0 1.1-.9 2-2 2H9v3l-3-3H3zM21 18c1.1 0 2-.9 2-2v-5c0-1.1-.9-2-2-2h-6v1c0 2.2-1.8 4-4 4v2c0 1.1.9 2 2 2h2v3l3-3h3z"})));break;case"gridicons-checkmark-circle":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M11 17.768l-4.884-4.884 1.768-1.768L11 14.232l8.658-8.658C17.823 3.39 15.075 2 12 2 6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10c0-1.528-.353-2.97-.966-4.266L11 17.768z"})));break;case"gridicons-checkmark":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M9 19.414l-6.707-6.707 1.414-1.414L9 16.586 20.293 5.293l1.414 1.414"})));break;case"gridicons-chevron-down":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M20 9l-8 8-8-8 1.414-1.414L12 14.172l6.586-6.586"})));break;case"gridicons-chevron-left":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M14 20l-8-8 8-8 1.414 1.414L8.828 12l6.586 6.586"})));break;case"gridicons-chevron-right":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M10 20l8-8-8-8-1.414 1.414L15.172 12l-6.586 6.586"})));break;case"gridicons-chevron-up":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M4 15l8-8 8 8-1.414 1.414L12 9.828l-6.586 6.586"})));break;case"gridicons-clear-formatting":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M10.837 10.163l-4.6 4.6L10 4h4l.777 2.223-2.144 2.144-.627-2.092-1.17 3.888zm5.495.506L19.244 19H15.82l-1.05-3.5H11.5L5 22l-1.5-1.5 17-17L22 5l-5.668 5.67zm-2.31 2.31l-.032.03.032-.01v-.02z"})));break;case"gridicons-clipboard":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M16 18H8v-2h8v2zm0-6H8v2h8v-2zm2-9h-2v2h2v15H6V5h2V3H6c-1.105 0-2 .895-2 2v15c0 1.105.895 2 2 2h12c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zm-4 2V4c0-1.105-.895-2-2-2s-2 .895-2 2v1c-1.105 0-2 .895-2 2v1h8V7c0-1.105-.895-2-2-2z"})));break;case"gridicons-cloud-download":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M18 9c-.01 0-.017.002-.025.003C17.72 5.646 14.922 3 11.5 3 7.91 3 5 5.91 5 9.5c0 .524.07 1.03.186 1.52C5.123 11.015 5.064 11 5 11c-2.21 0-4 1.79-4 4 0 1.202.54 2.267 1.38 3h18.593C22.196 17.09 23 15.643 23 14c0-2.76-2.24-5-5-5zm-6 7l-4-5h3V8h2v3h3l-4 5z"})));break;case"gridicons-cloud-outline":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M11.5 5c2.336 0 4.304 1.825 4.48 4.154l.142 1.86 1.867-.012h.092C19.698 11.043 21 12.37 21 14c0 .748-.28 1.452-.783 2H3.28c-.156-.256-.28-.59-.28-1 0-1.074.85-1.953 1.915-1.998.06.007.118.012.178.015l2.66.124-.622-2.587C7.044 10.186 7 9.843 7 9.5 7 7.02 9.02 5 11.5 5m0-2C7.91 3 5 5.91 5 9.5c0 .524.07 1.03.186 1.52C5.123 11.015 5.064 11 5 11c-2.21 0-4 1.79-4 4 0 1.202.54 2.267 1.38 3h18.593C22.196 17.09 23 15.643 23 14c0-2.76-2.24-5-5-5l-.025.002C17.72 5.646 14.922 3 11.5 3z"})));break;case"gridicons-cloud-upload":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M18 9c-.01 0-.017.002-.025.003C17.72 5.646 14.922 3 11.5 3 7.91 3 5 5.91 5 9.5c0 .524.07 1.03.186 1.52C5.123 11.015 5.064 11 5 11c-2.21 0-4 1.79-4 4 0 1.202.54 2.267 1.38 3h18.593C22.196 17.09 23 15.643 23 14c0-2.76-2.24-5-5-5zm-5 4v3h-2v-3H8l4-5 4 5h-3z"})));break;case"gridicons-cloud":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M18 9c-.01 0-.017.002-.025.003C17.72 5.646 14.922 3 11.5 3 7.91 3 5 5.91 5 9.5c0 .524.07 1.03.186 1.52C5.123 11.015 5.064 11 5 11c-2.21 0-4 1.79-4 4 0 1.202.54 2.267 1.38 3h18.593C22.196 17.09 23 15.643 23 14c0-2.76-2.24-5-5-5z"})));break;case"gridicons-code":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M23 12l-5.45 6.5L16 17.21 20.39 12 16 6.79l1.55-1.29zM8 6.79L6.45 5.5 1 12l5.45 6.5L8 17.21 3.61 12zm.45 14.61l1.93.52L15.55 2.6l-1.93-.52z"})));break;case"gridicons-cog":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M20 12c0-.568-.06-1.122-.174-1.656l1.834-1.612-2-3.464-2.322.786c-.82-.736-1.787-1.308-2.86-1.657L14 2h-4l-.48 2.396c-1.07.35-2.04.92-2.858 1.657L4.34 5.268l-2 3.464 1.834 1.612C4.06 10.878 4 11.432 4 12s.06 1.122.174 1.656L2.34 15.268l2 3.464 2.322-.786c.82.736 1.787 1.308 2.86 1.657L10 22h4l.48-2.396c1.07-.35 2.038-.92 2.858-1.657l2.322.786 2-3.464-1.834-1.613c.113-.535.174-1.09.174-1.657zm-8 4c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4z"})));break;case"gridicons-comment":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 16l-5 5v-5H5c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h14c1.1 0 2 .9 2 2v9c0 1.1-.9 2-2 2h-7z"})));break;case"gridicons-computer":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M20 2H4c-1.104 0-2 .896-2 2v12c0 1.104.896 2 2 2h6v2H7v2h10v-2h-3v-2h6c1.104 0 2-.896 2-2V4c0-1.104-.896-2-2-2zm0 14H4V4h16v12z"})));break;case"gridicons-coupon":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M13 16v2h-2v-2h2zm3-3h2v-2h-2v2zm2 8h-2v2h2v-2zm3-5v2h2v-2h-2zm-1-3c.552 0 1 .448 1 1h2c0-1.657-1.343-3-3-3v2zm1 7c0 .552-.448 1-1 1v2c1.657 0 3-1.343 3-3h-2zm-7 1c-.552 0-1-.448-1-1h-2c0 1.657 1.343 3 3 3v-2zm3.21-5.21c-.78.78-2.047.782-2.828.002l-.002-.002L10 11.41l-1.43 1.44c.28.506.427 1.073.43 1.65C9 16.433 7.433 18 5.5 18S2 16.433 2 14.5 3.567 11 5.5 11c.577.003 1.144.15 1.65.43L8.59 10 7.15 8.57c-.506.28-1.073.427-1.65.43C3.567 9 2 7.433 2 5.5S3.567 2 5.5 2 9 3.567 9 5.5c-.003.577-.15 1.144-.43 1.65L10 8.59l3.88-3.88c.78-.78 2.047-.782 2.828-.002l.002.002-5.3 5.29 5.8 5.79zM5.5 7C6.328 7 7 6.328 7 5.5S6.328 4 5.5 4 4 4.672 4 5.5 4.672 7 5.5 7zM7 14.5c0-.828-.672-1.5-1.5-1.5S4 13.672 4 14.5 4.672 16 5.5 16 7 15.328 7 14.5z"})));break;case"gridicons-create":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M21 14v5c0 1.105-.895 2-2 2H5c-1.105 0-2-.895-2-2V5c0-1.105.895-2 2-2h5v2H5v14h14v-5h2z"}),o.default.createElement("path",{d:"M21 7h-4V3h-2v4h-4v2h4v4h2V9h4"})));break;case"gridicons-credit-card":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M20 4H4c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h16c1.105 0 2-.895 2-2V6c0-1.105-.895-2-2-2zm0 2v2H4V6h16zM4 18v-6h16v6H4zm2-4h7v2H6v-2zm9 0h3v2h-3v-2z"})));break;case"gridicons-crop":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M22 16h-4V8c0-1.105-.895-2-2-2H8V2H6v4H2v2h4v8c0 1.105.895 2 2 2h8v4h2v-4h4v-2zM8 16V8h8v8H8z"})));break;case"gridicons-cross-circle":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M19.1 4.9C15.2 1 8.8 1 4.9 4.9S1 15.2 4.9 19.1s10.2 3.9 14.1 0 4-10.3.1-14.2zm-4.3 11.3L12 13.4l-2.8 2.8-1.4-1.4 2.8-2.8-2.8-2.8 1.4-1.4 2.8 2.8 2.8-2.8 1.4 1.4-2.8 2.8 2.8 2.8-1.4 1.4z"})));break;case"gridicons-cross-small":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M17.705 7.705l-1.41-1.41L12 10.59 7.705 6.295l-1.41 1.41L10.59 12l-4.295 4.295 1.41 1.41L12 13.41l4.295 4.295 1.41-1.41L13.41 12l4.295-4.295z"})));break;case"gridicons-cross":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M18.36 19.78L12 13.41l-6.36 6.37-1.42-1.42L10.59 12 4.22 5.64l1.42-1.42L12 10.59l6.36-6.36 1.41 1.41L13.41 12l6.36 6.36z"})));break;case"gridicons-custom-post-type":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zM6 6h5v5H6V6zm4.5 13C9.12 19 8 17.88 8 16.5S9.12 14 10.5 14s2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5zm3-6l3-5 3 5h-6z"})));break;case"gridicons-customize":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M2 6c0-1.505.78-3.08 2-4 0 .845.69 2 2 2 1.657 0 3 1.343 3 3 0 .386-.08.752-.212 1.09.74.594 1.476 1.19 2.19 1.81L8.9 11.98c-.62-.716-1.214-1.454-1.807-2.192C6.753 9.92 6.387 10 6 10c-2.21 0-4-1.79-4-4zm12.152 6.848l1.34-1.34c.607.304 1.283.492 2.008.492 2.485 0 4.5-2.015 4.5-4.5 0-.725-.188-1.4-.493-2.007L18 9l-2-2 3.507-3.507C18.9 3.188 18.225 3 17.5 3 15.015 3 13 5.015 13 7.5c0 .725.188 1.4.493 2.007L3 20l2 2 6.848-6.848c1.885 1.928 3.874 3.753 5.977 5.45l1.425 1.148 1.5-1.5-1.15-1.425c-1.695-2.103-3.52-4.092-5.448-5.977z"})));break;case"gridicons-domains":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm6.918 6h-3.215c-.188-1.424-.42-2.65-.565-3.357 1.593.682 2.916 1.87 3.78 3.357zm-5.904-3.928c.068.352.387 2.038.645 3.928h-3.32c.26-1.89.578-3.576.646-3.928C11.32 4.03 11.656 4 12 4s.68.03 1.014.072zM14 12c0 .598-.043 1.286-.11 2h-3.78c-.067-.714-.11-1.402-.11-2s.043-1.286.11-2h3.78c.067.714.11 1.402.11 2zM8.862 4.643C8.717 5.35 8.485 6.576 8.297 8H5.082c.864-1.487 2.187-2.675 3.78-3.357zM4.262 10h3.822c-.05.668-.084 1.344-.084 2s.033 1.332.085 2H4.263C4.097 13.36 4 12.692 4 12s.098-1.36.263-2zm.82 6h3.215c.188 1.424.42 2.65.565 3.357-1.593-.682-2.916-1.87-3.78-3.357zm5.904 3.928c-.068-.353-.388-2.038-.645-3.928h3.32c-.26 1.89-.578 3.576-.646 3.928-.333.043-.67.072-1.014.072s-.68-.03-1.014-.072zm4.152-.57c.145-.708.377-1.934.565-3.358h3.215c-.864 1.487-2.187 2.675-3.78 3.357zm4.6-5.358h-3.822c.05-.668.084-1.344.084-2s-.033-1.332-.085-2h3.82c.167.64.265 1.308.265 2s-.097 1.36-.263 2z"})));break;case"gridicons-dropdown":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M7 10l5 5 5-5"})));break;case"gridicons-ellipsis-circle":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zM7.5 13.5c-.8 0-1.5-.7-1.5-1.5s.7-1.5 1.5-1.5S9 11.2 9 12s-.7 1.5-1.5 1.5zm4.5 0c-.8 0-1.5-.7-1.5-1.5s.7-1.5 1.5-1.5 1.5.7 1.5 1.5-.7 1.5-1.5 1.5zm4.5 0c-.8 0-1.5-.7-1.5-1.5s.7-1.5 1.5-1.5 1.5.7 1.5 1.5-.7 1.5-1.5 1.5z"})));break;case"gridicons-ellipsis":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M7 12c0 1.104-.896 2-2 2s-2-.896-2-2 .896-2 2-2 2 .896 2 2zm12-2c-1.104 0-2 .896-2 2s.896 2 2 2 2-.896 2-2-.896-2-2-2zm-7 0c-1.104 0-2 .896-2 2s.896 2 2 2 2-.896 2-2-.896-2-2-2z"})));break;case"gridicons-external":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M19 13v6c0 1.105-.895 2-2 2H5c-1.105 0-2-.895-2-2V7c0-1.105.895-2 2-2h6v2H5v12h12v-6h2zM13 3v2h4.586l-7.793 7.793 1.414 1.414L19 6.414V11h2V3h-8z"})));break;case"gridicons-filter":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M10 19h4v-2h-4v2zm-4-6h12v-2H6v2zM3 5v2h18V5H3z"})));break;case"gridicons-flag":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M15 6c0-1.105-.895-2-2-2H5v17h2v-7h5c0 1.105.895 2 2 2h6V6h-5z"})));break;case"gridicons-flip-horizontal":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M20 18v-5h3v-2h-3V6c0-1.105-.895-2-2-2H6c-1.105 0-2 .895-2 2v5H1v2h3v5c0 1.105.895 2 2 2h12c1.105 0 2-.895 2-2zM6 6h12v5H6V6z"})));break;case"gridicons-flip-vertical":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M18 4h-5V1h-2v3H6c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h5v3h2v-3h5c1.105 0 2-.895 2-2V6c0-1.105-.895-2-2-2zM6 18V6h5v12H6z"})));break;case"gridicons-folder-multiple":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M4 8c-1.105 0-2 .895-2 2v10c0 1.1.9 2 2 2h14c1.105 0 2-.895 2-2H4V8zm16 10H8c-1.105 0-2-.895-2-2V6c0-1.105.895-2 2-2h3c1.105 0 2 .895 2 2h7c1.105 0 2 .895 2 2v8c0 1.105-.895 2-2 2z"})));break;case"gridicons-folder":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M18 19H6c-1.1 0-2-.9-2-2V7c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2h7c1.1 0 2 .9 2 2v8c0 1.1-.9 2-2 2z"})));break;case"gridicons-fullscreen-exit":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M14 10V4h2v2.59l3.29-3.29 1.41 1.41L17.41 8H20v2zM4 10V8h2.59l-3.3-3.29 1.42-1.42L8 6.59V4h2v6zm16 4v2h-2.59l3.29 3.29-1.41 1.41L16 17.41V20h-2v-6zm-10 0v6H8v-2.59l-3.29 3.3-1.42-1.42L6.59 16H4v-2z"})));break;case"gridicons-fullscreen":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M21 3v6h-2V6.41l-3.29 3.3-1.42-1.42L17.59 5H15V3zM3 3v6h2V6.41l3.29 3.3 1.42-1.42L6.41 5H9V3zm18 18v-6h-2v2.59l-3.29-3.29-1.41 1.41L17.59 19H15v2zM9 21v-2H6.41l3.29-3.29-1.41-1.42L5 17.59V15H3v6z"})));break;case"gridicons-gift":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M22 6h-4.8c.5-.5.8-1.2.8-2 0-1.7-1.3-3-3-3s-3 1.3-3 3c0-1.7-1.3-3-3-3S6 2.3 6 4c0 .8.3 1.5.8 2H2v6h1v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8h1V6zm-2 4h-7V8h7v2zm-5-7c.6 0 1 .4 1 1s-.4 1-1 1-1-.4-1-1 .4-1 1-1zM9 3c.6 0 1 .4 1 1s-.4 1-1 1-1-.4-1-1 .4-1 1-1zM4 8h7v2H4V8zm1 4h6v8H5v-8zm14 8h-6v-8h6v8z"})));break;case"gridicons-globe":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm0 18l2-2 1-1v-2h-2v-1l-1-1H9v3l2 2v1.93c-3.94-.494-7-3.858-7-7.93l1 1h2v-2h2l3-3V6h-2L9 5v-.41C9.927 4.21 10.94 4 12 4s2.073.212 3 .59V6l-1 1v2l1 1 3.13-3.13c.752.897 1.304 1.964 1.606 3.13H18l-2 2v2l1 1h2l.286.286C18.03 18.06 15.24 20 12 20z"})));break;case"gridicons-grid":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M8 8H4V4h4v4zm6-4h-4v4h4V4zm6 0h-4v4h4V4zM8 10H4v4h4v-4zm6 0h-4v4h4v-4zm6 0h-4v4h4v-4zM8 16H4v4h4v-4zm6 0h-4v4h4v-4zm6 0h-4v4h4v-4z"})));break;case"gridicons-heading-h1":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M11 7h2v10h-2v-4H7v4H5V7h2v4h4V7zm6.57 0c-.594.95-1.504 1.658-2.57 2v1h2v7h2V7h-1.43z"})));break;case"gridicons-heading-h2":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M9 7h2v10H9v-4H5v4H3V7h2v4h4V7zm8 8c.51-.41.6-.62 1.06-1.05.437-.4.848-.828 1.23-1.28.334-.39.62-.82.85-1.28.2-.39.305-.822.31-1.26.005-.44-.087-.878-.27-1.28-.177-.385-.437-.726-.76-1-.346-.283-.743-.497-1.17-.63-.485-.153-.99-.227-1.5-.22-.36 0-.717.033-1.07.1-.343.06-.678.158-1 .29-.304.13-.593.295-.86.49-.287.21-.56.437-.82.68l1.24 1.22c.308-.268.643-.502 1-.7.35-.2.747-.304 1.15-.3.455-.03.906.106 1.27.38.31.278.477.684.45 1.1-.014.396-.14.78-.36 1.11-.285.453-.62.872-1 1.25-.44.43-.98.92-1.59 1.43-.61.51-1.41 1.06-2.16 1.65V17h8v-2h-4z"})));break;case"gridicons-heading-h3":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M14.11 14.218c.355.287.75.523 1.17.7.434.18.9.273 1.37.27.484.017.965-.086 1.4-.3.333-.146.55-.476.55-.84.003-.203-.05-.403-.15-.58-.123-.19-.3-.34-.51-.43-.32-.137-.655-.228-1-.27-.503-.073-1.012-.106-1.52-.1v-1.57c.742.052 1.485-.07 2.17-.36.37-.164.615-.525.63-.93.026-.318-.12-.627-.38-.81-.34-.203-.734-.3-1.13-.28-.395.013-.784.108-1.14.28-.375.167-.73.375-1.06.62l-1.22-1.39c.5-.377 1.053-.68 1.64-.9.608-.224 1.252-.336 1.9-.33.525-.007 1.05.05 1.56.17.43.1.84.277 1.21.52.325.21.595.495.79.83.19.342.287.73.28 1.12.01.48-.177.943-.52 1.28-.417.39-.916.685-1.46.86v.06c.61.14 1.175.425 1.65.83.437.382.68.94.66 1.52.005.42-.113.835-.34 1.19-.23.357-.538.657-.9.88-.408.253-.853.44-1.32.55-.514.128-1.04.192-1.57.19-.786.02-1.57-.106-2.31-.37-.59-.214-1.126-.556-1.57-1l1.12-1.41zM9 11H5V7H3v10h2v-4h4v4h2V7H9v4z"})));break;case"gridicons-heading-h4":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M11 17H9v-4H5v4H3V7h2v4h4V7h2v10zm10-2h-1v2h-2v-2h-5v-2l4.05-6H20v6h1v2zm-3-2V9l-2.79 4H18z"})));break;case"gridicons-heading-h5":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M14.09 14.19c.352.27.73.5 1.13.69.42.196.877.296 1.34.29.51.014 1.01-.125 1.44-.4.378-.253.594-.686.57-1.14.02-.45-.197-.877-.57-1.13-.406-.274-.89-.41-1.38-.39h-.47c-.135.014-.27.04-.4.08l-.41.15-.48.23-1.02-.57.28-5h6.4v1.92h-4.31L16 10.76c.222-.077.45-.138.68-.18.235-.037.472-.054.71-.05.463-.004.924.057 1.37.18.41.115.798.305 1.14.56.33.248.597.57.78.94.212.422.322.888.32 1.36.007.497-.11.99-.34 1.43-.224.417-.534.782-.91 1.07-.393.3-.837.527-1.31.67-.497.164-1.016.252-1.54.26-.788.023-1.573-.11-2.31-.39-.584-.238-1.122-.577-1.59-1l1.09-1.42zM11 17H9v-4H5v4H3V7h2v4h4V7h2v10z"})));break;case"gridicons-heading-h6":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M11 17H9v-4H5v4H3V7h2v4h4V7h2v10zm8.58-7.508c-.248-.204-.524-.37-.82-.49-.625-.242-1.317-.242-1.94 0-.3.11-.566.287-.78.52-.245.27-.432.586-.55.93-.16.46-.243.943-.25 1.43.367-.33.79-.59 1.25-.77.405-.17.84-.262 1.28-.27.415-.006.83.048 1.23.16.364.118.704.304 1 .55.295.253.528.57.68.93.193.403.302.843.32 1.29.01.468-.094.93-.3 1.35-.206.387-.49.727-.83 1-.357.287-.764.504-1.2.64-.98.31-2.033.293-3-.05-.507-.182-.968-.472-1.35-.85-.437-.416-.778-.92-1-1.48-.243-.693-.352-1.426-.32-2.16-.02-.797.11-1.59.38-2.34.215-.604.556-1.156 1-1.62.406-.416.897-.74 1.44-.95.54-.21 1.118-.314 1.7-.31.682-.02 1.36.096 2 .34.5.19.962.464 1.37.81l-1.31 1.34zm-2.39 5.84c.202 0 .405-.03.6-.09.183-.046.356-.128.51-.24.15-.136.27-.303.35-.49.092-.225.136-.467.13-.71.037-.405-.123-.804-.43-1.07-.328-.23-.72-.347-1.12-.33-.346-.002-.687.07-1 .21-.383.17-.724.418-1 .73.046.346.143.683.29 1 .108.23.257.44.44.62.152.15.337.26.54.33.225.055.46.068.69.04z"})));break;case"gridicons-heading":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M18 20h-3v-6H9v6H6V5.01h3V11h6V5.01h3V20z"})));break;case"gridicons-heart-outline":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M16.5 4.5c2.206 0 4 1.794 4 4 0 4.67-5.543 8.94-8.5 11.023C9.043 17.44 3.5 13.17 3.5 8.5c0-2.206 1.794-4 4-4 1.298 0 2.522.638 3.273 1.706L12 7.953l1.227-1.746c.75-1.07 1.975-1.707 3.273-1.707m0-1.5c-1.862 0-3.505.928-4.5 2.344C11.005 3.928 9.362 3 7.5 3 4.462 3 2 5.462 2 8.5c0 5.72 6.5 10.438 10 12.85 3.5-2.412 10-7.13 10-12.85C22 5.462 19.538 3 16.5 3z"})));break;case"gridicons-heart":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M16.5 3c-1.862 0-3.505.928-4.5 2.344C11.005 3.928 9.362 3 7.5 3 4.462 3 2 5.462 2 8.5c0 5.72 6.5 10.438 10 12.85 3.5-2.412 10-7.13 10-12.85C22 5.462 19.538 3 16.5 3z"})));break;case"gridicons-help-outline":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm4 8c0-2.21-1.79-4-4-4s-4 1.79-4 4h2c0-1.103.897-2 2-2s2 .897 2 2-.897 2-2 2c-.552 0-1 .448-1 1v2h2v-1.14c1.722-.447 3-1.998 3-3.86zm-3 6h-2v2h2v-2z"})));break;case"gridicons-help":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 16h-2v-2h2v2zm0-4.14V15h-2v-2c0-.552.448-1 1-1 1.103 0 2-.897 2-2s-.897-2-2-2-2 .897-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 1.862-1.278 3.413-3 3.86z"})));break;case"gridicons-history":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M2.12 13.526c.742 4.78 4.902 8.47 9.88 8.47 5.5 0 10-4.5 10-9.998S17.5 2 12 2C8.704 2 5.802 3.6 4 6V2H2.003L2 9h7V7H5.8c1.4-1.8 3.702-3 6.202-3C16.4 4 20 7.6 20 11.998s-3.6 8-8 8c-3.877 0-7.13-2.795-7.848-6.472H2.12z"}),o.default.createElement("path",{d:"M11.002 7v5.3l3.2 4.298 1.6-1.197-2.8-3.7V7"})));break;case"gridicons-house":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M22 9L12 1 2 9v2h2v10h5v-4c0-1.657 1.343-3 3-3s3 1.343 3 3v4h5V11h2V9z"})));break;case"gridicons-image-multiple":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M15 7.5c0-.828.672-1.5 1.5-1.5s1.5.672 1.5 1.5S17.328 9 16.5 9 15 8.328 15 7.5zM4 20h14c0 1.105-.895 2-2 2H4c-1.1 0-2-.9-2-2V8c0-1.105.895-2 2-2v14zM22 4v12c0 1.105-.895 2-2 2H8c-1.105 0-2-.895-2-2V4c0-1.105.895-2 2-2h12c1.105 0 2 .895 2 2zM8 4v6.333L11 7l4.855 5.395.656-.73c.796-.886 2.183-.886 2.977 0l.513.57V4H8z"})));break;case"gridicons-image-remove":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M20.587 3.423L22 4.837 20 6.84V18c0 1.105-.895 2-2 2H6.84l-2.007 2.006-1.414-1.414 17.167-17.17zM12.42 14.42l1 1 1-1c.63-.504 1.536-.456 2.11.11L18 16V8.84l-5.58 5.58zM15.16 6H6v6.38l2.19-2.19 1.39 1.39L4 17.163V6c0-1.105.895-2 2-2h11.162l-2 2z"})));break;case"gridicons-image":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M20 6v12c0 1.105-.895 2-2 2H6c-1.105 0-2-.895-2-2V6c0-1.105.895-2 2-2h12c1.105 0 2 .895 2 2zm-2 0H6v6.38l2.19-2.19 5.23 5.23 1-1c.63-.504 1.536-.456 2.11.11L18 16V6zm-5 3.5c0-.828.672-1.5 1.5-1.5s1.5.672 1.5 1.5-.672 1.5-1.5 1.5-1.5-.672-1.5-1.5z"})));break;case"gridicons-indent-left":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M18 20h2V4h-2v16zM2 11h10.172l-2.086-2.086L11.5 7.5 16 12l-4.5 4.5-1.414-1.414L12.172 13H2v-2z"})));break;case"gridicons-indent-right":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M6 4H4v16h2V4zm16 9H11.828l2.086 2.086L12.5 16.5 8 12l4.5-4.5 1.414 1.414L11.828 11H22v2z"})));break;case"gridicons-info-outline":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M13 9h-2V7h2v2zm0 2h-2v6h2v-6zm-1-7c-4.41 0-8 3.59-8 8s3.59 8 8 8 8-3.59 8-8-3.59-8-8-8m0-2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2z"})));break;case"gridicons-info":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"})));break;case"gridicons-ink":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M5 15c0 3.866 3.134 7 7 7s7-3.134 7-7c0-1.387-.41-2.677-1.105-3.765h.007L12 2l-5.903 9.235h.007C5.41 12.323 5 13.613 5 15z"})));break;case"gridicons-institution":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M2 19h20v3H2zM12 2L2 6v2h20V6M17 10h3v7h-3zM10.5 10h3v7h-3zM4 10h3v7H4z"})));break;case"gridicons-italic":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M10.536 5l-.427 2h1.5L9.262 18h-1.5l-.427 2h6.128l.426-2h-1.5l2.347-11h1.5l.427-2"})));break;case"gridicons-layout-blocks":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M21 7h-2V3c0-1.105-.895-2-2-2H7c-1.105 0-2 .895-2 2v2H3c-1.105 0-2 .895-2 2v4c0 1.105.895 2 2 2h2v8c0 1.105.895 2 2 2h10c1.105 0 2-.895 2-2v-2h2c1.105 0 2-.895 2-2V9c0-1.105-.895-2-2-2zm-4 14H7v-8h2c1.105 0 2-.895 2-2V7c0-1.105-.895-2-2-2H7V3h10v4h-2c-1.105 0-2 .895-2 2v8c0 1.105.895 2 2 2h2v2zm4-4h-6V9h6v8z"})));break;case"gridicons-layout":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M8 20H5c-1.105 0-2-.895-2-2V6c0-1.105.895-2 2-2h3c1.105 0 2 .895 2 2v12c0 1.105-.895 2-2 2zm8-10h4c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2h-4c-1.105 0-2 .895-2 2v3c0 1.105.895 2 2 2zm5 10v-6c0-1.105-.895-2-2-2h-5c-1.105 0-2 .895-2 2v6c0 1.105.895 2 2 2h5c1.105 0 2-.895 2-2z"})));break;case"gridicons-line-graph":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M3 19h18v2H3zm3-3c1.1 0 2-.9 2-2 0-.5-.2-1-.5-1.3L8.8 10H9c.5 0 1-.2 1.3-.5l2.7 1.4v.1c0 1.1.9 2 2 2s2-.9 2-2c0-.5-.2-.9-.5-1.3L17.8 7h.2c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2c0 .5.2 1 .5 1.3L15.2 9H15c-.5 0-1 .2-1.3.5L11 8.2V8c0-1.1-.9-2-2-2s-2 .9-2 2c0 .5.2 1 .5 1.3L6.2 12H6c-1.1 0-2 .9-2 2s.9 2 2 2z"})));break;case"gridicons-link-break":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M10 11l-2 2H7v-2h3zm9.64-3.64L22 5l-1.5-1.5-17 17L5 22l9-9h3v-2h-1l2-2c1.103 0 2 .897 2 2v2c0 1.103-.897 2-2 2h-4.977c.913 1.208 2.347 2 3.977 2h1c2.21 0 4-1.79 4-4v-2c0-1.623-.97-3.013-2.36-3.64zM4.36 16.64L6 15c-1.103 0-2-.897-2-2v-2c0-1.103.897-2 2-2h4.977C10.065 7.792 8.63 7 7 7H6c-2.21 0-4 1.79-4 4v2c0 1.623.97 3.013 2.36 3.64z"})));break;case"gridicons-link":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M17 13H7v-2h10v2zm1-6h-1c-1.63 0-3.065.792-3.977 2H18c1.103 0 2 .897 2 2v2c0 1.103-.897 2-2 2h-4.977c.913 1.208 2.347 2 3.977 2h1c2.21 0 4-1.79 4-4v-2c0-2.21-1.79-4-4-4zM2 11v2c0 2.21 1.79 4 4 4h1c1.63 0 3.065-.792 3.977-2H6c-1.103 0-2-.897-2-2v-2c0-1.103.897-2 2-2h4.977C10.065 7.792 8.63 7 7 7H6c-2.21 0-4 1.79-4 4z"})));break;case"gridicons-list-checkmark":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M9.5 15.5L5 20l-2.5-2.5 1.06-1.06L5 17.88l3.44-3.44L9.5 15.5zM10 5v2h11V5H10zm0 14h11v-2H10v2zm0-6h11v-2H10v2zM8.44 8.44L5 11.88l-1.44-1.44L2.5 11.5 5 14l4.5-4.5-1.06-1.06zm0-6L5 5.88 3.56 4.44 2.5 5.5 5 8l4.5-4.5-1.06-1.06z"})));break;case"gridicons-list-ordered-rtl":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M3 19h13v-2H3v2zm0-6h13v-2H3v2zm0-8v2h13V5H3zm16.587.252c.107-.096.197-.188.27-.275-.013.228-.02.48-.02.756V8h1.176V3.717H19.97L18.5 4.915l.6.738.487-.4zm.448 7.826c.475-.426.785-.715.93-.867.146-.15.262-.296.35-.434.088-.138.153-.278.195-.42.042-.143.063-.298.063-.466 0-.225-.06-.427-.18-.608-.12-.18-.29-.32-.507-.417-.218-.1-.465-.148-.742-.148-.22 0-.42.022-.596.067-.177.045-.34.11-.49.195-.15.084-.337.225-.558.422l.636.744c.174-.15.33-.264.467-.34.138-.078.274-.117.41-.117.13 0 .232.03.304.096.072.064.108.152.108.264 0 .09-.018.176-.054.258-.035.082-.1.18-.19.294-.093.114-.288.328-.587.64L18.547 13.3v.762h3.108v-.955h-1.62v-.03zm.46 4.747v-.018c.306-.086.54-.225.702-.414.162-.19.243-.42.243-.685 0-.31-.126-.55-.378-.727-.252-.175-.6-.263-1.043-.263-.308 0-.58.033-.817.1s-.47.178-.696.334l.48.774c.293-.184.576-.275.85-.275.147 0 .263.026.35.08.087.056.13.14.13.253 0 .3-.294.45-.882.45h-.27v.87h.264c.216 0 .392.017.526.05.135.03.232.08.293.143.06.064.09.154.09.27 0 .153-.058.265-.174.337-.116.07-.3.106-.555.106-.163 0-.342-.023-.537-.07-.194-.045-.385-.116-.573-.212v.96c.228.09.44.15.637.183.196.034.41.05.64.05.56 0 .998-.113 1.314-.342.316-.228.474-.542.474-.94.003-.585-.355-.923-1.07-1.013z"})));break;case"gridicons-list-ordered":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M8 19h13v-2H8v2zm0-6h13v-2H8v2zm0-8v2h13V5H8zm-4.425.252c.107-.096.197-.188.27-.275-.013.228-.02.48-.02.756V8h1.176V3.717H3.96L2.487 4.915l.6.738.487-.4zm.334 7.764c.474-.426.784-.715.93-.867.145-.153.26-.298.35-.436.087-.138.152-.278.194-.42.042-.143.063-.298.063-.466 0-.225-.06-.427-.18-.608s-.29-.32-.507-.417c-.218-.1-.465-.148-.742-.148-.22 0-.42.022-.596.067s-.34.11-.49.195c-.15.085-.337.226-.558.423l.636.744c.174-.15.33-.264.467-.34.138-.078.274-.117.41-.117.13 0 .232.032.304.097.073.064.11.152.11.264 0 .09-.02.176-.055.258-.036.082-.1.18-.192.294-.092.114-.287.328-.586.64L2.42 13.238V14h3.11v-.955H3.91v-.03zm.53 4.746v-.018c.306-.086.54-.225.702-.414.162-.19.243-.42.243-.685 0-.31-.126-.55-.378-.727-.252-.176-.6-.264-1.043-.264-.307 0-.58.033-.816.1s-.47.178-.696.334l.48.773c.293-.183.576-.274.85-.274.147 0 .263.027.35.082s.13.14.13.252c0 .3-.294.45-.882.45h-.27v.87h.264c.217 0 .393.017.527.05.136.03.233.08.294.143.06.064.09.154.09.27 0 .153-.057.265-.173.337-.115.07-.3.106-.554.106-.164 0-.343-.022-.538-.07-.194-.044-.385-.115-.573-.21v.96c.228.088.44.148.637.182.196.033.41.05.64.05.56 0 .998-.114 1.314-.343.315-.228.473-.542.473-.94.002-.585-.356-.923-1.07-1.013z"})));break;case"gridicons-list-unordered":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M9 19h12v-2H9v2zm0-6h12v-2H9v2zm0-8v2h12V5H9zm-4-.5c-.828 0-1.5.672-1.5 1.5S4.172 7.5 5 7.5 6.5 6.828 6.5 6 5.828 4.5 5 4.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5z"})));break;case"gridicons-location":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M19 9c0-3.866-3.134-7-7-7S5 5.134 5 9c0 1.387.41 2.677 1.105 3.765h-.008C8.457 16.46 12 22 12 22l5.903-9.235h-.007C18.59 11.677 19 10.387 19 9zm-7 3c-1.657 0-3-1.343-3-3s1.343-3 3-3 3 1.343 3 3-1.343 3-3 3z"})));break;case"gridicons-lock":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M18 8h-1V7c0-2.757-2.243-5-5-5S7 4.243 7 7v1H6c-1.105 0-2 .895-2 2v10c0 1.105.895 2 2 2h12c1.105 0 2-.895 2-2V10c0-1.105-.895-2-2-2zM9 7c0-1.654 1.346-3 3-3s3 1.346 3 3v1H9V7zm4 8.723V18h-2v-2.277c-.595-.346-1-.984-1-1.723 0-1.105.895-2 2-2s2 .895 2 2c0 .738-.405 1.376-1 1.723z"})));break;case"gridicons-mail":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M20 4H4c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h16c1.105 0 2-.895 2-2V6c0-1.105-.895-2-2-2zm0 4.236l-8 4.882-8-4.882V6h16v2.236z"})));break;case"gridicons-mention":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 2a10 10 0 0 0 0 20v-2a8 8 0 1 1 8-8v.5a1.5 1.5 0 0 1-3 0V7h-2v1a5 5 0 1 0 1 7 3.5 3.5 0 0 0 6-2.46V12A10 10 0 0 0 12 2zm0 13a3 3 0 1 1 3-3 3 3 0 0 1-3 3z"})));break;case"gridicons-menu":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M21 6v2H3V6h18zM3 18h18v-2H3v2zm0-5h18v-2H3v2z"})));break;case"gridicons-menus":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M9 19h10v-2H9v2zm0-6h6v-2H9v2zm0-8v2h12V5H9zm-4-.5c-.828 0-1.5.672-1.5 1.5S4.172 7.5 5 7.5 6.5 6.828 6.5 6 5.828 4.5 5 4.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5z"})));break;case"gridicons-microphone":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M19 9v1a7 7 0 0 1-6 6.92V20h3v2H8v-2h3v-3.08A7 7 0 0 1 5 10V9h2v1a5 5 0 0 0 10 0V9zm-7 4a3 3 0 0 0 3-3V5a3 3 0 0 0-6 0v5a3 3 0 0 0 3 3z"})));break;case"gridicons-minus-small":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M6 11h12v2H6z"})));break;case"gridicons-minus":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M3 11h18v2H3z"})));break;case"gridicons-money":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M2 5v14h20V5H2zm5 12c0-1.657-1.343-3-3-3v-4c1.657 0 3-1.343 3-3h10c0 1.657 1.343 3 3 3v4c-1.657 0-3 1.343-3 3H7zm5-8c1.1 0 2 1.3 2 3s-.9 3-2 3-2-1.3-2-3 .9-3 2-3z"})));break;case"gridicons-multiple-users":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M24 14.6c0 .6-1.2 1-2.6 1.2-.9-1.7-2.7-3-4.8-3.9.2-.3.4-.5.6-.8h.8c3.1-.1 6 1.8 6 3.5zM6.8 11H6c-3.1 0-6 1.9-6 3.6 0 .6 1.2 1 2.6 1.2.9-1.7 2.7-3 4.8-3.9l-.6-.9zm5.2 1c2.2 0 4-1.8 4-4s-1.8-4-4-4-4 1.8-4 4 1.8 4 4 4zm0 1c-4.1 0-8 2.6-8 5 0 2 8 2 8 2s8 0 8-2c0-2.4-3.9-5-8-5zm5.7-3h.3c1.7 0 3-1.3 3-3s-1.3-3-3-3c-.5 0-.9.1-1.3.3.8 1 1.3 2.3 1.3 3.7 0 .7-.1 1.4-.3 2zM6 10h.3C6.1 9.4 6 8.7 6 8c0-1.4.5-2.7 1.3-3.7C6.9 4.1 6.5 4 6 4 4.3 4 3 5.3 3 7s1.3 3 3 3z"})));break;case"gridicons-my-sites-horizon":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M10.986 13.928l.762-2.284-1.324-3.63c-.458-.026-.892-.08-.892-.08-.458-.027-.405-.727.054-.7 0 0 1.403.107 2.24.107.888 0 2.265-.107 2.265-.107.46-.027.513.646.055.7 0 0-.46.055-.973.082l2.006 5.966c-.875-.034-1.74-.053-2.6-.06l-.428-1.177-.403 1.17c-.252.002-.508.01-.76.015zm-7.156.393c-.21-.737-.33-1.514-.33-2.32 0-1.232.264-2.402.736-3.46l2.036 5.58c.85-.06 1.69-.104 2.526-.138L6.792 8.015c.512-.027.973-.08.973-.08.458-.055.404-.728-.055-.702 0 0-1.376.108-2.265.108-.16 0-.347-.003-.547-.01C6.418 5.025 9.03 3.5 12 3.5c2.213 0 4.228.846 5.74 2.232-.036-.002-.072-.007-.11-.007-.835 0-1.427.727-1.427 1.51 0 .7.404 1.292.835 1.993.323.566.7 1.293.7 2.344 0 .674-.244 1.463-.572 2.51.3.02.604.043.907.066l.798-2.307c.486-1.212.647-2.18.647-3.043 0-.313-.02-.603-.057-.874.662 1.21 1.04 2.6 1.04 4.077 0 .807-.128 1.58-.34 2.32.5.05 1.006.112 1.51.17.205-.798.33-1.628.33-2.49 0-5.523-4.477-10-10-10S2 6.477 2 12c0 .862.125 1.692.33 2.49.5-.057 1.003-.12 1.5-.17zm14.638 3.168C16.676 19.672 14.118 20.5 12 20.5c-1.876 0-4.55-.697-6.463-3.012-.585.048-1.174.1-1.77.16C5.572 20.272 8.578 22 12 22c3.422 0 6.43-1.73 8.232-4.35-.593-.063-1.18-.114-1.764-.162zM12 15.01c-3.715 0-7.368.266-10.958.733.18.41.35.825.506 1.247 3.427-.43 6.91-.68 10.452-.68s7.025.25 10.452.68c.156-.422.327-.836.506-1.246-3.59-.467-7.243-.734-10.958-.734z"})));break;case"gridicons-my-sites":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zM3.5 12c0-1.232.264-2.402.736-3.46L8.29 19.65C5.456 18.272 3.5 15.365 3.5 12zm8.5 8.5c-.834 0-1.64-.12-2.4-.345l2.55-7.41 2.613 7.157c.017.042.038.08.06.117-.884.31-1.833.48-2.823.48zm1.172-12.485c.512-.027.973-.08.973-.08.458-.055.404-.728-.054-.702 0 0-1.376.108-2.265.108-.835 0-2.24-.107-2.24-.107-.458-.026-.51.674-.053.7 0 0 .434.055.892.082l1.324 3.63-1.86 5.578-3.096-9.208c.512-.027.973-.08.973-.08.458-.055.403-.728-.055-.702 0 0-1.376.108-2.265.108-.16 0-.347-.003-.547-.01C6.418 5.025 9.03 3.5 12 3.5c2.213 0 4.228.846 5.74 2.232-.037-.002-.072-.007-.11-.007-.835 0-1.427.727-1.427 1.51 0 .7.404 1.292.835 1.993.323.566.7 1.293.7 2.344 0 .727-.28 1.572-.646 2.748l-.848 2.833-3.072-9.138zm3.1 11.332l2.597-7.506c.484-1.212.645-2.18.645-3.044 0-.313-.02-.603-.057-.874.664 1.21 1.042 2.6 1.042 4.078 0 3.136-1.7 5.874-4.227 7.347z"})));break;case"gridicons-nametag":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 6a1 1 0 1 1-1 1 1 1 0 0 1 1-1zm-6 8h12v3H6zm14-8h-4V3H8v3H4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2zM10 5h4v5h-4zm10 14H4v-9h4a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2h4z"})));break;case"gridicons-next-page":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M18 8h-8V6h8v2zm4-4v8l-6 6H8c-1.105 0-2-.895-2-2V4c0-1.105.895-2 2-2h12c1.105 0 2 .895 2 2zm-2 0H8v12h6v-4c0-1.105.895-2 2-2h4V4zM4 6c-1.105 0-2 .895-2 2v12c0 1.1.9 2 2 2h12c1.105 0 2-.895 2-2H4V6z"})));break;case"gridicons-not-visible":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M1 12s4.188-6 11-6c.947 0 1.84.12 2.678.322L8.36 12.64C8.133 12.14 8 11.586 8 11c0-.937.335-1.787.875-2.47C6.483 9.344 4.66 10.917 3.62 12c.68.707 1.696 1.62 2.98 2.398L5.15 15.85C2.498 14.13 1 12 1 12zm22 0s-4.188 6-11 6c-.946 0-1.836-.124-2.676-.323L5 22l-1.5-1.5 17-17L22 5l-3.147 3.147C21.5 9.87 23 12 23 12zm-2.615.006c-.678-.708-1.697-1.624-2.987-2.403L16 11c0 2.21-1.79 4-4 4l-.947.947c.31.03.624.053.947.053 3.978 0 6.943-2.478 8.385-3.994z"})));break;case"gridicons-notice-outline":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 13h-2v2h2v-2zm-2-2h2l.5-6h-3l.5 6z"})));break;case"gridicons-notice":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 15h-2v-2h2v2zm0-4h-2l-.5-6h3l-.5 6z"})));break;case"gridicons-offline":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M10 3h8l-4 6h4L6 21l4-9H6l4-9"})));break;case"gridicons-pages":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M16 8H8V6h8v2zm0 2H8v2h8v-2zm4-6v12l-6 6H6c-1.105 0-2-.895-2-2V4c0-1.105.895-2 2-2h12c1.105 0 2 .895 2 2zm-2 10V4H6v16h6v-4c0-1.105.895-2 2-2h4z"})));break;case"gridicons-pause":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm-1 14H9V8h2v8zm4 0h-2V8h2v8z"})));break;case"gridicons-pencil":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M13 6l5 5-9.507 9.507c-.686-.686-.69-1.794-.012-2.485l-.002-.003c-.69.676-1.8.673-2.485-.013-.677-.677-.686-1.762-.036-2.455l-.008-.008c-.694.65-1.78.64-2.456-.036L13 6zm7.586-.414l-2.172-2.172c-.78-.78-2.047-.78-2.828 0L14 5l5 5 1.586-1.586c.78-.78.78-2.047 0-2.828zM3 18v3h3c0-1.657-1.343-3-3-3z"})));break;case"gridicons-phone":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M16 2H8c-1.104 0-2 .896-2 2v16c0 1.104.896 2 2 2h8c1.104 0 2-.896 2-2V4c0-1.104-.896-2-2-2zm-3 19h-2v-1h2v1zm3-2H8V5h8v14z"})));break;case"gridicons-pin":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M19 17c0-2.038-1.188-3.836-3-4.92V5h.5c.828 0 1.5-.672 1.5-1.5S17.328 2 16.5 2h-9C6.672 2 6 2.672 6 3.5S6.672 5 7.5 5H8v7.08C6.188 13.164 5 14.962 5 17h6v4c0 .55.45 1 1 1s1-.45 1-1v-4h6z"})));break;case"gridicons-plans":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm-1 12H6l5-10v10zm2 6V10h5l-5 10z"})));break;case"gridicons-play":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm-2 14.5v-9l6 4.5z"})));break;case"gridicons-plugins":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M16 8V3c0-.552-.448-1-1-1s-1 .448-1 1v5h-4V3c0-.552-.448-1-1-1s-1 .448-1 1v5H5v4c0 2.79 1.637 5.193 4 6.317V22h6v-3.683c2.363-1.124 4-3.527 4-6.317V8h-3z"})));break;case"gridicons-plus-small":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M18 11h-5V6h-2v5H6v2h5v5h2v-5h5"})));break;case"gridicons-plus":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M21 13h-8v8h-2v-8H3v-2h8V3h2v8h8v2z"})));break;case"gridicons-popout":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M6 7V5c0-1.105.895-2 2-2h11c1.105 0 2 .895 2 2v14c0 1.105-.895 2-2 2H8c-1.105 0-2-.895-2-2v-2h2v2h11V5H8v2H6zm5.5-.5l-1.414 1.414L13.172 11H3v2h10.172l-3.086 3.086L11.5 17.5 17 12l-5.5-5.5z"})));break;case"gridicons-posts":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M16 19H3v-2h13v2zm5-10H3v2h18V9zM3 5v2h11V5H3zm14 0v2h4V5h-4zm-6 8v2h10v-2H11zm-8 0v2h5v-2H3z"})));break;case"gridicons-print":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M9 16h6v2H9v-2zm13 1h-3v3c0 1.105-.895 2-2 2H7c-1.105 0-2-.895-2-2v-3H2V9c0-1.105.895-2 2-2h1V5c0-1.105.895-2 2-2h10c1.105 0 2 .895 2 2v2h1c1.105 0 2 .895 2 2v8zM7 7h10V5H7v2zm10 7H7v6h10v-6zm3-3.5c0-.828-.672-1.5-1.5-1.5s-1.5.672-1.5 1.5.672 1.5 1.5 1.5 1.5-.672 1.5-1.5z"})));break;case"gridicons-product-downloadable":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M22 3H2v6h1v11c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V9h1V3zM4 5h16v2H4V5zm15 15H5V9h14v11zm-6-10v5.17l2.59-2.58L17 14l-5 5-5-5 1.41-1.42L11 15.17V10h2z"})));break;case"gridicons-product-external":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M22 3H2v6h1v11c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V9h1V3zM4 5h16v2H4V5zm15 15H5V9h14v11zm-2-9v6h-2v-2.59l-3.29 3.29-1.41-1.41L13.59 13H11v-2h6z"})));break;case"gridicons-product-virtual":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M22 3H2v6h1v11c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V9h1V3zM4 5h16v2H4V5zm15 15H5V9h14v11zM7 16.45c0-1.005.815-1.82 1.82-1.82h.09c-.335-1.59.68-3.148 2.27-3.483s3.148.68 3.483 2.27c.02.097.036.195.046.293 1.252-.025 2.29.97 2.314 2.224.017.868-.462 1.67-1.235 2.066H7.87c-.54-.33-.87-.917-.87-1.55z"})));break;case"gridicons-product":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M22 3H2v6h1v11c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V9h1V3zM4 5h16v2H4V5zm15 15H5V9h14v11zM9 11h6c0 1.105-.895 2-2 2h-2c-1.105 0-2-.895-2-2z"})));break;case"gridicons-quote":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M11.192 15.757c0-.88-.23-1.618-.69-2.217-.326-.412-.768-.683-1.327-.812-.55-.128-1.07-.137-1.54-.028-.16-.95.1-1.956.76-3.022.66-1.065 1.515-1.867 2.558-2.403L9.373 5c-.8.396-1.56.898-2.26 1.505-.71.607-1.34 1.305-1.9 2.094s-.98 1.68-1.25 2.69-.346 2.04-.217 3.1c.168 1.4.62 2.52 1.356 3.35.735.84 1.652 1.26 2.748 1.26.965 0 1.766-.29 2.4-.878.628-.576.94-1.365.94-2.368l.002.003zm9.124 0c0-.88-.23-1.618-.69-2.217-.326-.42-.77-.692-1.327-.817-.56-.124-1.074-.13-1.54-.022-.16-.94.09-1.95.75-3.02.66-1.06 1.514-1.86 2.557-2.4L18.49 5c-.8.396-1.555.898-2.26 1.505-.708.607-1.34 1.305-1.894 2.094-.556.79-.97 1.68-1.24 2.69-.273 1-.345 2.04-.217 3.1.165 1.4.615 2.52 1.35 3.35.732.833 1.646 1.25 2.742 1.25.967 0 1.768-.29 2.402-.876.627-.576.942-1.365.942-2.368v.01z"})));break;case"gridicons-read-more":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M9 12h6v-2H9zm-7 0h5v-2H2zm15 0h5v-2h-5zm3 2v2l-6 6H6a2 2 0 0 1-2-2v-6h2v6h6v-4a2 2 0 0 1 2-2h6zM4 8V4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4h-2V4H6v4z"})));break;case"gridicons-reader-follow-conversation":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M20 14v-3h-2v3h-3v2h3v3h2v-3h3v-2"}),o.default.createElement("path",{d:"M13 16h-2l-5 5v-5H4c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h14c1.1 0 2 .9 2 2v4h-4v3h-3v4z"})));break;case"gridicons-reader-follow":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M23 16v2h-3v3h-2v-3h-3v-2h3v-3h2v3h3zM20 2v9h-4v3h-3v4H4c-1.1 0-2-.9-2-2V2h18zM8 13v-1H4v1h4zm3-3H4v1h7v-1zm0-2H4v1h7V8zm7-4H4v2h14V4z"})));break;case"gridicons-reader-following-conversation":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M16.8 14.5l3.2-3.2V5c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h2v5l8.7-8.7 2.1 2.2z"}),o.default.createElement("path",{d:"M22.6 11.1l-6.1 6.1-2.1-2.2-1.4 1.4 3.5 3.6 7.5-7.6"})));break;case"gridicons-reader-following":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M23 13.482L15.508 21 12 17.4l1.412-1.388 2.106 2.188 6.094-6.094L23 13.482zm-7.455 1.862L20 10.89V2H2v14c0 1.1.9 2 2 2h4.538l4.913-4.832 2.095 2.176zM8 13H4v-1h4v1zm3-2H4v-1h7v1zm0-2H4V8h7v1zm7-3H4V4h14v2z"})));break;case"gridicons-reader":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M3 4v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4H3zm7 11H5v-1h5v1zm2-2H5v-1h7v1zm0-2H5v-1h7v1zm7 4h-5v-5h5v5zm0-7H5V6h14v2z"})));break;case"gridicons-reblog":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M22.086 9.914L20 7.828V18c0 1.105-.895 2-2 2h-7v-2h7V7.828l-2.086 2.086L14.5 8.5 19 4l4.5 4.5-1.414 1.414zM6 16.172V6h7V4H6c-1.105 0-2 .895-2 2v10.172l-2.086-2.086L.5 15.5 5 20l4.5-4.5-1.414-1.414L6 16.172z"})));break;case"gridicons-redo":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M18 6v3.586L14.343 5.93C13.17 4.756 11.636 4.17 10.1 4.17s-3.07.585-4.242 1.757c-2.343 2.342-2.343 6.14 0 8.484l5.364 5.364 1.414-1.414L7.272 13c-1.56-1.56-1.56-4.097 0-5.657.755-.755 1.76-1.172 2.828-1.172 1.068 0 2.073.417 2.828 1.173L16.586 11H13v2h7V6h-2z"})));break;case"gridicons-refresh":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M17.91 14c-.478 2.833-2.943 5-5.91 5-3.308 0-6-2.692-6-6s2.692-6 6-6h2.172l-2.086 2.086L13.5 10.5 18 6l-4.5-4.5-1.414 1.414L14.172 5H12c-4.418 0-8 3.582-8 8s3.582 8 8 8c4.08 0 7.438-3.055 7.93-7h-2.02z"})));break;case"gridicons-refund":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M13.91 2.91L11.83 5H14c4.418 0 8 3.582 8 8h-2c0-3.314-2.686-6-6-6h-2.17l2.09 2.09-1.42 1.41L8 6l1.41-1.41L12.5 1.5l1.41 1.41zM2 12v10h16V12H2zm2 6.56v-3.11c.6-.35 1.1-.85 1.45-1.45h9.1c.35.6.85 1.1 1.45 1.45v3.11c-.593.35-1.085.845-1.43 1.44H5.45c-.35-.597-.85-1.094-1.45-1.44zm6 .44c.828 0 1.5-.895 1.5-2s-.672-2-1.5-2-1.5.895-1.5 2 .672 2 1.5 2z"})));break;case"gridicons-reply":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M9 16h7.2l-2.6 2.6L15 20l5-5-5-5-1.4 1.4 2.6 2.6H9c-2.2 0-4-1.8-4-4s1.8-4 4-4h2V4H9c-3.3 0-6 2.7-6 6s2.7 6 6 6z"})));break;case"gridicons-resize":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M13 4v2h3.59L6 16.59V13H4v7h7v-2H7.41L18 7.41V11h2V4h-7"})));break;case"gridicons-rotate":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M18 14v6c0 1.105-.895 2-2 2H6c-1.105 0-2-.895-2-2v-6c0-1.105.895-2 2-2h10c1.105 0 2 .895 2 2zM13.914 2.914L11.828 5H14c4.418 0 8 3.582 8 8h-2c0-3.308-2.692-6-6-6h-2.172l2.086 2.086L12.5 10.5 8 6l1.414-1.414L12.5 1.5l1.414 1.414z"})));break;case"gridicons-scheduled":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M10.498 18l-3.705-3.704 1.415-1.415 2.294 2.295 5.293-5.293 1.415 1.415L10.498 18zM21 6v13c0 1.104-.896 2-2 2H5c-1.104 0-2-.896-2-2V6c0-1.104.896-2 2-2h1V2h2v2h8V2h2v2h1c1.104 0 2 .896 2 2zm-2 2H5v11h14V8z"})));break;case"gridicons-search":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M21 19l-5.154-5.154C16.574 12.742 17 11.42 17 10c0-3.866-3.134-7-7-7s-7 3.134-7 7 3.134 7 7 7c1.42 0 2.742-.426 3.846-1.154L19 21l2-2zM5 10c0-2.757 2.243-5 5-5s5 2.243 5 5-2.243 5-5 5-5-2.243-5-5z"})));break;case"gridicons-share-computer":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M20 2H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h6v2H7v2h10v-2h-3v-2h6a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2zm0 14H4V4h16zm-3.25-3a1.75 1.75 0 0 1-3.5 0L10 11.36a1.71 1.71 0 1 1 0-2.71L13.25 7a1.77 1.77 0 1 1 .68 1.37L10.71 10l3.22 1.61A1.74 1.74 0 0 1 16.75 13z"})));break;case"gridicons-share-ios":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M17 8h2c1.105 0 2 .895 2 2v9c0 1.105-.895 2-2 2H5c-1.105 0-2-.895-2-2v-9c0-1.105.895-2 2-2h2v2H5v9h14v-9h-2V8zM6.5 5.5l1.414 1.414L11 3.828V14h2V3.828l3.086 3.086L17.5 5.5 12 0 6.5 5.5z"})));break;case"gridicons-share":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M18 16c-.788 0-1.5.31-2.034.807L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.048 4.118c-.053.223-.088.453-.088.692 0 1.657 1.343 3 3 3s3-1.343 3-3-1.343-3-3-3z"})));break;case"gridicons-shipping":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M18 8h-2V7c0-1.105-.895-2-2-2H4c-1.105 0-2 .895-2 2v10h2c0 1.657 1.343 3 3 3s3-1.343 3-3h4c0 1.657 1.343 3 3 3s3-1.343 3-3h2v-5l-4-4zM7 18.5c-.828 0-1.5-.672-1.5-1.5s.672-1.5 1.5-1.5 1.5.672 1.5 1.5-.672 1.5-1.5 1.5zM4 14V7h10v7H4zm13 4.5c-.828 0-1.5-.672-1.5-1.5s.672-1.5 1.5-1.5 1.5.672 1.5 1.5-.672 1.5-1.5 1.5z"})));break;case"gridicons-shutter":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M18.9 4.8s-.7 5.6-3.5 10.2c1.7-.3 3.9-.9 6.6-2 0 0 .7-4.6-3.1-8.2zm-6 2.8c-1.1-1.3-2.7-3-5-4.7C5.1 4.2 3 6.6 2.3 9.6 7 7.7 11 7.5 12.9 7.6zm3.4 2.9c.6-1.6 1.2-3.9 1.6-6.7-4.1-3-8.6-1.5-8.6-1.5s4.4 3.4 7 8.2zm-5.2 6c1.1 1.3 2.7 3 5 4.7 0 0 4.3-1.6 5.6-6.7 0-.1-5.3 2.1-10.6 2zm-3.4-3.1c-.6 1.6-1.2 3.8-1.5 6.7 0 0 3.6 2.9 8.6 1.5 0 0-4.6-3.4-7.1-8.2zM2 11.1s-.7 4.5 3.1 8.2c0 0 .7-5.7 3.5-10.3-1.7.3-4 .9-6.6 2.1z"})));break;case"gridicons-sign-out":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M16 17v2c0 1.105-.895 2-2 2H5c-1.105 0-2-.895-2-2V5c0-1.105.895-2 2-2h9c1.105 0 2 .895 2 2v2h-2V5H5v14h9v-2h2zm2.5-10.5l-1.414 1.414L20.172 11H10v2h10.172l-3.086 3.086L18.5 17.5 24 12l-5.5-5.5z"})));break;case"gridicons-site":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M18 4H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm-5 14H6v-7h7zm5 0h-3v-7h3zm0-9H6V6h12z"})));break;case"gridicons-spam":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M17 2H7L2 7v10l5 5h10l5-5V7l-5-5zm-4 15h-2v-2h2v2zm0-4h-2l-.5-6h3l-.5 6z"})));break;case"gridicons-speaker":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M19 8v6c1.7 0 3-1.3 3-3s-1.3-3-3-3zM11 7H4c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h1v3c0 1.1.9 2 2 2h2v-5h2l4 4h2V3h-2l-4 4z"})));break;case"gridicons-special-character":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12.005 7.418c-1.237 0-2.19.376-2.86 1.128s-1.005 1.812-1.005 3.18c0 1.387.226 2.513.677 3.377.45.865 1.135 1.543 2.05 2.036V20H5v-2.666h3.12c-1.04-.636-1.842-1.502-2.405-2.6-.564-1.097-.846-2.322-.846-3.676 0-1.258.29-2.363.875-3.317.585-.952 1.417-1.685 2.497-2.198s2.334-.77 3.763-.77c2.18 0 3.915.572 5.204 1.713s1.932 2.673 1.932 4.594c0 1.353-.283 2.57-.852 3.65-.567 1.08-1.38 1.947-2.44 2.603H19V20h-5.908v-2.86c.95-.493 1.65-1.18 2.102-2.062s.677-2.006.677-3.374c0-1.36-.336-2.415-1.01-3.164-.672-.747-1.624-1.122-2.855-1.122z"})));break;case"gridicons-star-outline":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 6.308l1.176 3.167.347.936.997.042 3.374.14-2.647 2.09-.784.62.27.963.91 3.25-2.813-1.872-.83-.553-.83.552-2.814 1.87.91-3.248.27-.962-.783-.62-2.648-2.092 3.374-.14.996-.04.347-.936L12 6.308M12 2L9.418 8.953 2 9.257l5.822 4.602L5.82 21 12 16.89 18.18 21l-2.002-7.14L22 9.256l-7.418-.305L12 2z"})));break;case"gridicons-star":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 2l2.582 6.953L22 9.257l-5.822 4.602L18.18 21 12 16.89 5.82 21l2.002-7.14L2 9.256l7.418-.304"})));break;case"gridicons-stats-alt":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M21 21H3v-2h18v2zM8 10H4v7h4v-7zm6-7h-4v14h4V3zm6 3h-4v11h4V6z"})));break;case"gridicons-stats-down-alt":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M21 21H3v-2h18v2zM8 3H4v14h4V3zm6 3h-4v11h4V6zm6 4h-4v7h4v-7z"})));break;case"gridicons-stats-down":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2zm0 16H5V5h14v14zM9 17H7V7h2v10zm4 0h-2v-7h2v7zm4 0h-2v-5h2v5z"})));break;case"gridicons-stats-up-alt":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M21 21H3v-2h18v2zM8 10H4v7h4v-7zm6-4h-4v11h4V6zm6-3h-4v14h4V3z"})));break;case"gridicons-stats-up":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2zm0 16H5V5h14v14zM9 17H7v-5h2v5zm4 0h-2v-7h2v7zm4 0h-2V7h2v10z"})));break;case"gridicons-stats":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zm0 16H5V5h14v14zM9 17H7v-5h2v5zm4 0h-2V7h2v10zm4 0h-2v-7h2v7z"})));break;case"gridicons-status":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zM7.55 13c-.02.166-.05.33-.05.5 0 2.485 2.015 4.5 4.5 4.5s4.5-2.015 4.5-4.5c0-.17-.032-.334-.05-.5h-8.9zM10 10V8c0-.552-.448-1-1-1s-1 .448-1 1v2c0 .552.448 1 1 1s1-.448 1-1zm6 0V8c0-.552-.448-1-1-1s-1 .448-1 1v2c0 .552.448 1 1 1s1-.448 1-1z"})));break;case"gridicons-strikethrough":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M14.348 12H21v2h-4.613c.24.515.368 1.094.368 1.748 0 1.317-.474 2.355-1.423 3.114-.947.76-2.266 1.138-3.956 1.138-1.557 0-2.934-.293-4.132-.878v-2.874c.985.44 1.818.75 2.5.928.682.18 1.306.27 1.872.27.68 0 1.2-.13 1.562-.39.363-.26.545-.644.545-1.158 0-.285-.08-.54-.24-.763-.16-.222-.394-.437-.704-.643-.18-.12-.483-.287-.88-.49H3v-2H14.347zm-3.528-2c-.073-.077-.143-.155-.193-.235-.126-.202-.19-.44-.19-.713 0-.44.157-.795.47-1.068.313-.273.762-.41 1.348-.41.492 0 .993.064 1.502.19.51.127 1.153.35 1.93.67l1-2.405c-.753-.327-1.473-.58-2.16-.76-.69-.18-1.414-.27-2.173-.27-1.544 0-2.753.37-3.628 1.108-.874.738-1.312 1.753-1.312 3.044 0 .302.036.58.088.848h3.318z"})));break;case"gridicons-sync":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M23.5 13.5l-3.086 3.086L19 18l-4.5-4.5 1.414-1.414L18 14.172V12c0-3.308-2.692-6-6-6V4c4.418 0 8 3.582 8 8v2.172l2.086-2.086L23.5 13.5zM6 12V9.828l2.086 2.086L9.5 10.5 5 6 3.586 7.414.5 10.5l1.414 1.414L4 9.828V12c0 4.418 3.582 8 8 8v-2c-3.308 0-6-2.692-6-6z"})));break;case"gridicons-tablet":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M18 2H6c-1.104 0-2 .896-2 2v16c0 1.104.896 2 2 2h12c1.104 0 2-.896 2-2V4c0-1.104-.896-2-2-2zm-5 19h-2v-1h2v1zm5-2H6V5h12v14z"})));break;case"gridicons-tag":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M20 2.007h-7.087c-.53 0-1.04.21-1.414.586L2.592 11.5c-.78.78-.78 2.046 0 2.827l7.086 7.086c.78.78 2.046.78 2.827 0l8.906-8.906c.376-.374.587-.883.587-1.413V4.007c0-1.105-.895-2-2-2zM17.007 9c-1.105 0-2-.895-2-2s.895-2 2-2 2 .895 2 2-.895 2-2 2z"})));break;case"gridicons-text-color":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M3 19h18v3H3v-3zM15.82 17h3.424L14 3h-4L4.756 17H8.18l1.067-3.5h5.506L15.82 17zm-1.952-6h-3.73l1.868-5.725L13.868 11z"})));break;case"gridicons-themes":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M4 6c-1.105 0-2 .895-2 2v12c0 1.1.9 2 2 2h12c1.105 0 2-.895 2-2H4V6zm16-4H8c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h12c1.105 0 2-.895 2-2V4c0-1.105-.895-2-2-2zm-5 14H8V9h7v7zm5 0h-3V9h3v7zm0-9H8V4h12v3z"})));break;case"gridicons-thumbs-up":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M6.7 22H2v-9h2l2.7 9zM20 9h-6V5c0-1.657-1.343-3-3-3h-1v4L7.1 9.625c-.712.89-1.1 1.996-1.1 3.135V14l2.1 7h8.337c1.836 0 3.435-1.25 3.88-3.03l1.622-6.485C22.254 10.223 21.3 9 20 9z"})));break;case"gridicons-time":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm3.8 13.4L13 11.667V7h-2v5.333l3.2 4.266 1.6-1.2z"})));break;case"gridicons-trash":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M6.187 8h11.625l-.695 11.125C17.05 20.18 16.177 21 15.12 21H8.88c-1.057 0-1.93-.82-1.997-1.875L6.187 8zM19 5v2H5V5h3V4c0-1.105.895-2 2-2h4c1.105 0 2 .895 2 2v1h3zm-9 0h4V4h-4v1z"})));break;case"gridicons-trophy":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M18 5.062V3H6v2.062H2V8c0 2.525 1.89 4.598 4.324 4.932.7 2.058 2.485 3.61 4.676 3.978V18c0 1.105-.895 2-2 2H8v2h8v-2h-1c-1.105 0-2-.895-2-2v-1.09c2.19-.368 3.976-1.92 4.676-3.978C20.11 12.598 22 10.525 22 8V5.062h-4zM4 8v-.938h2v3.766C4.836 10.416 4 9.304 4 8zm16 0c0 1.304-.836 2.416-2 2.83V7.06h2V8z"})));break;case"gridicons-types":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M22 17c0 2.76-2.24 5-5 5s-5-2.24-5-5 2.24-5 5-5 5 2.24 5 5zM6.5 6.5h3.8L7 1 1 11h5.5V6.5zm9.5 4.085V8H8v8h2.585c.433-2.783 2.632-4.982 5.415-5.415z"})));break;case"gridicons-underline":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M4 19v2h16v-2H4zM18 3v8c0 3.314-2.686 6-6 6s-6-2.686-6-6V3h3v8c0 1.654 1.346 3 3 3s3-1.346 3-3V3h3z"})));break;case"gridicons-undo":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M18.142 5.93C16.97 4.756 15.435 4.17 13.9 4.17s-3.072.586-4.244 1.757L6 9.585V6H4v7h7v-2H7.414l3.657-3.657c.756-.755 1.76-1.172 2.83-1.172 1.067 0 2.072.417 2.827 1.173 1.56 1.56 1.56 4.097 0 5.657l-5.364 5.364 1.414 1.414 5.364-5.364c2.345-2.343 2.345-6.142.002-8.485z"})));break;case"gridicons-user-add":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("circle",{cx:"15",cy:"8",r:"4"}),o.default.createElement("path",{d:"M15 20s8 0 8-2c0-2.4-3.9-5-8-5s-8 2.6-8 5c0 2 8 2 8 2zM6 10V7H4v3H1v2h3v3h2v-3h3v-2z"})));break;case"gridicons-user-circle":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm0 18.5c-4.694 0-8.5-3.806-8.5-8.5S7.306 3.5 12 3.5s8.5 3.806 8.5 8.5-3.806 8.5-8.5 8.5zm0-8c-3.038 0-5.5 1.728-5.5 3.5s2.462 3.5 5.5 3.5 5.5-1.728 5.5-3.5-2.462-3.5-5.5-3.5zm0-.5c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3z"})));break;case"gridicons-user":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 4c2.21 0 4 1.79 4 4s-1.79 4-4 4-4-1.79-4-4 1.79-4 4-4zm0 16s8 0 8-2c0-2.4-3.9-5-8-5s-8 2.6-8 5c0 2 8 2 8 2z"})));break;case"gridicons-video-camera":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M17 9V7c0-1.105-.895-2-2-2H4c-1.105 0-2 .895-2 2v10c0 1.105.895 2 2 2h11c1.105 0 2-.895 2-2v-2l5 4V5l-5 4z"})));break;case"gridicons-video-remove":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M19.42 4.59l1.167-1.167L22 4.837 20 6.84V18c0 1.105-.895 2-2 2v-2h-2v2H6.84l-2.007 2.006-1.414-1.414 1.17-1.172-.01-.01L8 16 18 6l1.41-1.42.01.01zM15.84 11H18V8.84L15.84 11zM16 8.01l.01-.01H16v.01zM6 15.17l-2 2V6c0-1.105.895-2 2-2v2h2V4h9.17l-9 9H6v2.17zM6 8v3h2V8H6zm12 8v-3h-2v3h2z"})));break;case"gridicons-video":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M8 4h8v1.997h2V4c1.105 0 2 .896 2 2v12c0 1.104-.895 2-2 2v-2.003h-2V20H8v-2.003H6V20c-1.105 0-2-.895-2-2V6c0-1.105.895-2 2-2v1.997h2V4zm2 11l4.5-3L10 9v6zm8 .997v-3h-2v3h2zm0-5v-3h-2v3h2zm-10 5v-3H6v3h2zm0-5v-3H6v3h2z"})));break;case"gridicons-visible":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 6C5.188 6 1 12 1 12s4.188 6 11 6 11-6 11-6-4.188-6-11-6zm0 10c-3.943 0-6.926-2.484-8.38-4 1.04-1.085 2.863-2.657 5.255-3.47C8.335 9.214 8 10.064 8 11c0 2.21 1.79 4 4 4s4-1.79 4-4c0-.937-.335-1.787-.875-2.47 2.393.813 4.216 2.386 5.254 3.47-1.456 1.518-4.438 4-8.38 4z"})));break;case"gridicons-zoom-in":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M15.8 13.8c.7-1.1 1.2-2.4 1.2-3.8 0-3.9-3.1-7-7-7s-7 3.1-7 7 3.1 7 7 7c1.4 0 2.7-.4 3.8-1.2L19 21l2-2-5.2-5.2zM10 15c-2.8 0-5-2.2-5-5s2.2-5 5-5 5 2.2 5 5-2.2 5-5 5z"}),o.default.createElement("path",{d:"M11 7H9v2H7v2h2v2h2v-2h2V9h-2"})));break;case"gridicons-zoom-out":v=o.default.createElement("svg",a({className:p,height:t,width:t,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M3 10c0 3.9 3.1 7 7 7 1.4 0 2.7-.5 3.8-1.2L19 21l2-2-5.2-5.2c.8-1.1 1.2-2.4 1.2-3.8 0-3.9-3.1-7-7-7s-7 3.1-7 7zm2 0c0-2.8 2.2-5 5-5s5 2.2 5 5-2.2 5-5 5-5-2.2-5-5z"}),o.default.createElement("path",{d:"M7 9h6v2H7z"})))}return v}}]),t}();v.defaultProps={size:24},v.propTypes={icon:s.default.string.isRequired,size:s.default.number,onClick:s.default.func,className:s.default.string},t.default=v,e.exports=t.default},function(e,t,c){"use strict";var a=c(0),n=(c(32),["primary","light","warning","alert"]);t.a=function(e){var t=e.message,c=e.type,r=e.isCompact,o=["chip","chip-".concat(n.find(function(e){return e===c})||"primary"),r?"is-compact":""];return Object(a.createElement)("span",{className:o.join(" ").trim()},t)}},function(e,t){function c(){return e.exports=c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var c=arguments[t];for(var a in c)Object.prototype.hasOwnProperty.call(c,a)&&(e[a]=c[a])}return e},c.apply(this,arguments)}e.exports=c},function(e,t){!function(){e.exports=this.wp.apiFetch}()},,function(e,t){!function(){e.exports=this.wp.dom}()},function(e,t){!function(){e.exports=this.wp.keycodes}()},function(e,t,c){var a=c(51);e.exports=function(e,t){if(null==e)return{};var c,n,r=a(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)c=o[n],t.indexOf(c)>=0||Object.prototype.propertyIsEnumerable.call(e,c)&&(r[c]=e[c])}return r}},function(e,t){!function(){e.exports=this.wp.htmlEntities}()},function(e,t){function c(e,t,c,a,n,r,o){try{var s=e[r](o),i=s.value}catch(e){return void c(e)}s.done?t(i):Promise.resolve(i).then(a,n)}e.exports=function(e){return function(){var t=this,a=arguments;return new Promise(function(n,r){var o=e.apply(t,a);function s(e){c(o,n,r,s,i,"next",e)}function i(e){c(o,n,r,s,i,"throw",e)}s(void 0)})}}},,function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){var c=[],a=!0,n=!1,r=void 0;try{for(var o,s=e[Symbol.iterator]();!(a=(o=s.next()).done)&&(c.push(o.value),!t||c.length!==t);a=!0);}catch(e){n=!0,r=e}finally{try{a||null==s.return||s.return()}finally{if(n)throw r}}return c}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t,c){},function(e,t){function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(t){return"function"==typeof Symbol&&"symbol"===c(Symbol.iterator)?e.exports=a=function(e){return c(e)}:e.exports=a=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":c(e)},a(t)}e.exports=a},,,function(e,t,c){"use strict";function a(e){return function(){return e}}var n=function(){};n.thatReturns=a,n.thatReturnsFalse=a(!1),n.thatReturnsTrue=a(!0),n.thatReturnsNull=a(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(e){return e},e.exports=n},function(e,t,c){},function(e,t){!function(){e.exports=this.wp.hooks}()},function(e,t){!function(){e.exports=this.wp.deprecated}()},function(e,t,c){(function(e){var a=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),c={},a=0;a<t.length;a++)c[t[a]]=Object.getOwnPropertyDescriptor(e,t[a]);return c},n=/%[sdj%]/g;t.format=function(e){if(!g(e)){for(var t=[],c=0;c<arguments.length;c++)t.push(s(arguments[c]));return t.join(" ")}c=1;for(var a=arguments,r=a.length,o=String(e).replace(n,function(e){if("%%"===e)return"%";if(c>=r)return e;switch(e){case"%s":return String(a[c++]);case"%d":return Number(a[c++]);case"%j":try{return JSON.stringify(a[c++])}catch(e){return"[Circular]"}default:return e}}),i=a[c];c<r;i=a[++c])p(i)||!y(i)?o+=" "+i:o+=" "+s(i);return o},t.deprecate=function(c,a){if(void 0!==e&&!0===e.noDeprecation)return c;if(void 0===e)return function(){return t.deprecate(c,a).apply(this,arguments)};var n=!1;return function(){if(!n){if(e.throwDeprecation)throw new Error(a);e.traceDeprecation?console.trace(a):console.error(a),n=!0}return c.apply(this,arguments)}};var r,o={};function s(e,c){var a={seen:[],stylize:l};return arguments.length>=3&&(a.depth=arguments[2]),arguments.length>=4&&(a.colors=arguments[3]),v(c)?a.showHidden=c:c&&t._extend(a,c),b(a.showHidden)&&(a.showHidden=!1),b(a.depth)&&(a.depth=2),b(a.colors)&&(a.colors=!1),b(a.customInspect)&&(a.customInspect=!0),a.colors&&(a.stylize=i),m(a,e,a.depth)}function i(e,t){var c=s.styles[t];return c?"["+s.colors[c][0]+"m"+e+"["+s.colors[c][1]+"m":e}function l(e,t){return e}function m(e,c,a){if(e.customInspect&&c&&E(c.inspect)&&c.inspect!==t.inspect&&(!c.constructor||c.constructor.prototype!==c)){var n=c.inspect(a,e);return g(n)||(n=m(e,n,a)),n}var r=function(e,t){if(b(t))return e.stylize("undefined","undefined");if(g(t)){var c="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(c,"string")}if(f(t))return e.stylize(""+t,"number");if(v(t))return e.stylize(""+t,"boolean");if(p(t))return e.stylize("null","null")}(e,c);if(r)return r;var o=Object.keys(c),s=function(e){var t={};return e.forEach(function(e,c){t[e]=!0}),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(c)),_(c)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return u(c);if(0===o.length){if(E(c)){var i=c.name?": "+c.name:"";return e.stylize("[Function"+i+"]","special")}if(w(c))return e.stylize(RegExp.prototype.toString.call(c),"regexp");if(z(c))return e.stylize(Date.prototype.toString.call(c),"date");if(_(c))return u(c)}var l,y="",O=!1,k=["{","}"];(h(c)&&(O=!0,k=["[","]"]),E(c))&&(y=" [Function"+(c.name?": "+c.name:"")+"]");return w(c)&&(y=" "+RegExp.prototype.toString.call(c)),z(c)&&(y=" "+Date.prototype.toUTCString.call(c)),_(c)&&(y=" "+u(c)),0!==o.length||O&&0!=c.length?a<0?w(c)?e.stylize(RegExp.prototype.toString.call(c),"regexp"):e.stylize("[Object]","special"):(e.seen.push(c),l=O?function(e,t,c,a,n){for(var r=[],o=0,s=t.length;o<s;++o)M(t,String(o))?r.push(d(e,t,c,a,String(o),!0)):r.push("");return n.forEach(function(n){n.match(/^\d+$/)||r.push(d(e,t,c,a,n,!0))}),r}(e,c,a,s,o):o.map(function(t){return d(e,c,a,s,t,O)}),e.seen.pop(),function(e,t,c){if(e.reduce(function(e,t){return 0,t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60)return c[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+c[1];return c[0]+t+" "+e.join(", ")+" "+c[1]}(l,y,k)):k[0]+y+k[1]}function u(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,c,a,n,r){var o,s,i;if((i=Object.getOwnPropertyDescriptor(t,n)||{value:t[n]}).get?s=i.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):i.set&&(s=e.stylize("[Setter]","special")),M(a,n)||(o="["+n+"]"),s||(e.seen.indexOf(i.value)<0?(s=p(c)?m(e,i.value,null):m(e,i.value,c-1)).indexOf("\n")>-1&&(s=r?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),b(o)){if(r&&n.match(/^\d+$/))return s;(o=JSON.stringify(""+n)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function h(e){return Array.isArray(e)}function v(e){return"boolean"==typeof e}function p(e){return null===e}function f(e){return"number"==typeof e}function g(e){return"string"==typeof e}function b(e){return void 0===e}function w(e){return y(e)&&"[object RegExp]"===O(e)}function y(e){return"object"==typeof e&&null!==e}function z(e){return y(e)&&"[object Date]"===O(e)}function _(e){return y(e)&&("[object Error]"===O(e)||e instanceof Error)}function E(e){return"function"==typeof e}function O(e){return Object.prototype.toString.call(e)}function k(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(c){if(b(r)&&(r=e.env.NODE_DEBUG||""),c=c.toUpperCase(),!o[c])if(new RegExp("\\b"+c+"\\b","i").test(r)){var a=e.pid;o[c]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",c,a,e)}}else o[c]=function(){};return o[c]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=h,t.isBoolean=v,t.isNull=p,t.isNullOrUndefined=function(e){return null==e},t.isNumber=f,t.isString=g,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=b,t.isRegExp=w,t.isObject=y,t.isDate=z,t.isError=_,t.isFunction=E,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=c(54);var j=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function H(){var e=new Date,t=[k(e.getHours()),k(e.getMinutes()),k(e.getSeconds())].join(":");return[e.getDate(),j[e.getMonth()],t].join(" ")}function M(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",H(),t.format.apply(t,arguments))},t.inherits=c(55),t._extend=function(e,t){if(!t||!y(t))return e;for(var c=Object.keys(t),a=c.length;a--;)e[c[a]]=t[c[a]];return e};var V="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function x(e,t){if(!e){var c=new Error("Promise was rejected with a falsy value");c.reason=e,e=c}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(V&&e[V]){var t;if("function"!=typeof(t=e[V]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,V,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,c,a=new Promise(function(e,a){t=e,c=a}),n=[],r=0;r<arguments.length;r++)n.push(arguments[r]);n.push(function(e,a){e?c(e):t(a)});try{e.apply(this,n)}catch(e){c(e)}return a}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),V&&Object.defineProperty(t,V,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,a(e))},t.promisify.custom=V,t.callbackify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');function c(){for(var c=[],a=0;a<arguments.length;a++)c.push(arguments[a]);var n=c.pop();if("function"!=typeof n)throw new TypeError("The last argument must be of type Function");var r=this,o=function(){return n.apply(r,arguments)};t.apply(this,c).then(function(t){e.nextTick(o,null,t)},function(t){e.nextTick(x,t,o)})}return Object.setPrototypeOf(c,Object.getPrototypeOf(t)),Object.defineProperties(c,a(t)),c}}).call(this,c(53))},function(e,t,c){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n=s(c(13)),r=s(c(57)),o=s(c(60));function s(e){return e&&e.__esModule?e:{default:e}}var i=void 0;function l(e,t){var c,o,s,m,u,d,h,v,p=[],f={};for(d=0;d<e.length;d++)if("string"!==(u=e[d]).type){if(!t.hasOwnProperty(u.value)||void 0===t[u.value])throw new Error("Invalid interpolation, missing component node: `"+u.value+"`");if("object"!==a(t[u.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+u.value+"`","\n> "+i);if("componentClose"===u.type)throw new Error("Missing opening component token: `"+u.value+"`");if("componentOpen"===u.type){c=t[u.value],s=d;break}p.push(t[u.value])}else p.push(u.value);return c&&(m=function(e,t){var c,a,n=t[e],r=0;for(a=e+1;a<t.length;a++)if((c=t[a]).value===n.value){if("componentOpen"===c.type){r++;continue}if("componentClose"===c.type){if(0===r)return a;r--}}throw new Error("Missing closing component token `"+n.value+"`")}(s,e),h=l(e.slice(s+1,m),t),o=n.default.cloneElement(c,{},h),p.push(o),m<e.length-1&&(v=l(e.slice(m+1),t),p=p.concat(v))),1===p.length?p[0]:(p.forEach(function(e,t){e&&(f["interpolation-child-"+t]=e)}),(0,r.default)(f))}t.default=function(e){var t=e.mixedString,c=e.components,n=e.throwErrors;if(i=t,!c)return t;if("object"!==(void 0===c?"undefined":a(c))){if(n)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var r=(0,o.default)(t);try{return l(r,c)}catch(e){if(n)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+e.message+"`");return t}}},,,function(e,t,c){},function(e,t,c){},function(e,t,c){},function(e,t,c){e.exports=c(48)()},function(e,t,c){"use strict";var a=c(49);function n(){}function r(){}r.resetWarningCache=n,e.exports=function(){function e(e,t,c,n,r,o){if(o!==a){var s=new Error("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");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var c={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:r,resetWarningCache:n};return c.PropTypes=c,c}},function(e,t,c){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,c){},function(e,t){e.exports=function(e,t){if(null==e)return{};var c,a,n={},r=Object.keys(e);for(a=0;a<r.length;a++)c=r[a],t.indexOf(c)>=0||(n[c]=e[c]);return n}},function(e,t,c){},function(e,t){var c,a,n=e.exports={};function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(c===setTimeout)return setTimeout(e,0);if((c===r||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}!function(){try{c="function"==typeof setTimeout?setTimeout:r}catch(e){c=r}try{a="function"==typeof clearTimeout?clearTimeout:o}catch(e){a=o}}();var i,l=[],m=!1,u=-1;function d(){m&&i&&(m=!1,i.length?l=i.concat(l):u=-1,l.length&&h())}function h(){if(!m){var e=s(d);m=!0;for(var t=l.length;t;){for(i=l,l=[];++u<t;)i&&i[u].run();u=-1,t=l.length}i=null,m=!1,function(e){if(a===clearTimeout)return clearTimeout(e);if((a===o||!a)&&clearTimeout)return a=clearTimeout,clearTimeout(e);try{a(e)}catch(t){try{return a.call(null,e)}catch(t){return a.call(this,e)}}}(e)}}function v(e,t){this.fun=e,this.array=t}function p(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var c=1;c<arguments.length;c++)t[c-1]=arguments[c];l.push(new v(e,t)),1!==l.length||m||s(h)},v.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=p,n.addListener=p,n.once=p,n.off=p,n.removeListener=p,n.removeAllListeners=p,n.emit=p,n.prependListener=p,n.prependOnceListener=p,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},function(e,t){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var c=function(){};c.prototype=t.prototype,e.prototype=new c,e.prototype.constructor=e}},function(e,t,c){},function(e,t,c){"use strict";var a=c(13),n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,r=c(36),o=c(58),s=c(59),i=".",l=":",m="function"==typeof Symbol&&Symbol.iterator,u="@@iterator";function d(e,t){return e&&"object"==typeof e&&null!=e.key?(c=e.key,a={"=":"=0",":":"=2"},"$"+(""+c).replace(/[=:]/g,function(e){return a[e]})):t.toString(36);var c,a}function h(e,t,c,a){var r,s=typeof e;if("undefined"!==s&&"boolean"!==s||(e=null),null===e||"string"===s||"number"===s||"object"===s&&e.$$typeof===n)return c(a,e,""===t?i+d(e,0):t),1;var v=0,p=""===t?i:t+l;if(Array.isArray(e))for(var f=0;f<e.length;f++)v+=h(r=e[f],p+d(r,f),c,a);else{var g=function(e){var t=e&&(m&&e[m]||e[u]);if("function"==typeof t)return t}(e);if(g){0;for(var b,w=g.call(e),y=0;!(b=w.next()).done;)v+=h(r=b.value,p+d(r,y++),c,a)}else if("object"===s){0;var z=""+e;o(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===z?"object with keys {"+Object.keys(e).join(", ")+"}":z,"")}}return v}var v=/\/+/g;function p(e){return(""+e).replace(v,"$&/")}var f,g,b=w,w=function(e){if(this.instancePool.length){var t=this.instancePool.pop();return this.call(t,e),t}return new this(e)},y=function(e){o(e instanceof this,"Trying to release an instance into a pool of a different type."),e.destructor(),this.instancePool.length<this.poolSize&&this.instancePool.push(e)};function z(e,t,c,a){this.result=e,this.keyPrefix=t,this.func=c,this.context=a,this.count=0}function _(e,t,c){var n,o,s=e.result,i=e.keyPrefix,l=e.func,m=e.context,u=l.call(m,t,e.count++);Array.isArray(u)?E(u,s,c,r.thatReturnsArgument):null!=u&&(a.isValidElement(u)&&(n=u,o=i+(!u.key||t&&t.key===u.key?"":p(u.key)+"/")+c,u=a.cloneElement(n,{key:o},void 0!==n.props?n.props.children:void 0)),s.push(u))}function E(e,t,c,a,n){var r="";null!=c&&(r=p(c)+"/");var o=z.getPooled(t,r,a,n);!function(e,t,c){null==e||h(e,"",t,c)}(e,_,o),z.release(o)}z.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},f=function(e,t,c,a){if(this.instancePool.length){var n=this.instancePool.pop();return this.call(n,e,t,c,a),n}return new this(e,t,c,a)},(g=z).instancePool=[],g.getPooled=f||b,g.poolSize||(g.poolSize=10),g.release=y;e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return s(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(a.isValidElement(e))return s(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;o(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var c in e)E(e[c],t,c,r.thatReturnsArgument);return t}},function(e,t,c){"use strict";var a=function(e){};e.exports=function(e,t,c,n,r,o,s,i){if(a(t),!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var m=[c,n,r,o,s,i],u=0;(l=new Error(t.replace(/%s/g,function(){return m[u++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}},function(e,t,c){"use strict";var a=c(36);e.exports=a},function(e,t,c){"use strict";function a(e){return e.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(a)}},function(e,t,c){},function(e,t,c){},function(e,t,c){},function(e,t,c){},function(e,t,c){},function(e,t,c){},function(e,t,c){},,,,,function(e,t,c){"use strict";c.r(t);var a={};c.r(a),c.d(a,"getDeposit",function(){return nt}),c.d(a,"getDepositsOverview",function(){return rt}),c.d(a,"getDepositsOverviewError",function(){return ot}),c.d(a,"getDeposits",function(){return it}),c.d(a,"getDepositQueryError",function(){return lt});var n={};c.r(n),c.d(n,"updateDeposit",function(){return mt}),c.d(n,"updateDepositsOverview",function(){return ut}),c.d(n,"updateErrorForDepositsOverview",function(){return dt}),c.d(n,"updateDeposits",function(){return ht}),c.d(n,"updateErrorForDepositQuery",function(){return vt});var r={};c.r(r),c.d(r,"getDeposit",function(){return _t}),c.d(r,"getDepositsOverview",function(){return Et}),c.d(r,"getDeposits",function(){return Ot});var o={};c.r(o),c.d(o,"getTransactions",function(){return xt}),c.d(o,"getTransactionsError",function(){return Ct}),c.d(o,"getTransactionsSummary",function(){return St}),c.d(o,"getTransactionsSummaryError",function(){return Nt});var s={};c.r(s),c.d(s,"updateTransactions",function(){return Tt}),c.d(s,"updateErrorForTransactions",function(){return Bt}),c.d(s,"updateTransactionsSummary",function(){return It}),c.d(s,"updateErrorForTransactionsSummary",function(){return Rt});var i={};c.r(i),c.d(i,"getTransactions",function(){return Ut}),c.d(i,"getTransactionsSummary",function(){return Wt});var l={};c.r(l),c.d(l,"getCharge",function(){return Zt}),c.d(l,"getChargeError",function(){return $t});var m={};c.r(m),c.d(m,"updateCharge",function(){return Gt}),c.d(m,"updateErrorForCharge",function(){return Jt});var u={};c.r(u),c.d(u,"getCharge",function(){return Xt});var d={};c.r(d),c.d(d,"getTimeline",function(){return cc}),c.d(d,"getTimelineError",function(){return ac});var h={};c.r(h),c.d(h,"updateTimeline",function(){return nc}),c.d(h,"updateErrorForTimeline",function(){return rc});var v={};c.r(v),c.d(v,"getTimeline",function(){return sc});var p={};c.r(p),c.d(p,"getDispute",function(){return dc}),c.d(p,"getDisputes",function(){return hc});var f={};c.r(f),c.d(f,"updateDispute",function(){return fc}),c.d(f,"updateDisputes",function(){return gc}),c.d(f,"acceptDispute",function(){return bc});var g={};c.r(g),c.d(g,"getDispute",function(){return zc}),c.d(g,"getDisputes",function(){return _c});var b=c(1),w=c(38),y=(c(44),c(17)),z=c.n(y),_=c(0),E=c(2),O=c(3),k=c(15),j=c.n(k);function H(e,t,c){return t in e?Object.defineProperty(e,t,{value:c,enumerable:!0,configurable:!0,writable:!0}):e[t]=c,e}function M(e){for(var t=1;t<arguments.length;t++){var c=null!=arguments[t]?arguments[t]:{},a=Object.keys(c);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(c).filter(function(e){return Object.getOwnPropertyDescriptor(c,e).enumerable}))),a.forEach(function(t){H(e,t,c[t])})}return e}function V(e,t){if(null==e)return{};var c,a,n=function(e,t){if(null==e)return{};var c,a,n={},r=Object.keys(e);for(a=0;a<r.length;a++)c=r[a],t.indexOf(c)>=0||(n[c]=e[c]);return n}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a<r.length;a++)c=r[a],t.indexOf(c)>=0||Object.prototype.propertyIsEnumerable.call(e,c)&&(n[c]=e[c])}return n}var x=Object(_.forwardRef)(function(e,t){var c=e.href,a=e.target,n=e.isPrimary,r=e.isLarge,o=e.isSmall,s=e.isTertiary,i=e.isToggled,l=e.isBusy,m=e.isDefault,u=e.isLink,d=e.isDestructive,h=e.className,v=e.disabled,p=V(e,["href","target","isPrimary","isLarge","isSmall","isTertiary","isToggled","isBusy","isDefault","isLink","isDestructive","className","disabled"]),f=j()("components-button",h,{"is-button":m||n||r||o,"is-default":m||!n&&(r||o),"is-primary":n,"is-large":r,"is-small":o,"is-tertiary":s,"is-toggled":i,"is-busy":l,"is-link":u,"is-destructive":d}),g=void 0===c||v?"button":"a",b="a"===g?{href:c,target:a}:{type:"button",disabled:v};return Object(_.createElement)(g,M({},b,p,{className:f,ref:t}))});function C(){return(C=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var c=arguments[t];for(var a in c)Object.prototype.hasOwnProperty.call(c,a)&&(e[a]=c[a])}return e}).apply(this,arguments)}function L(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S(e,t){for(var c=0;c<t.length;c++){var a=t[c];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function N(e,t,c){return t&&S(e.prototype,t),c&&S(e,c),e}function T(e){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function B(e){return(B="function"==typeof Symbol&&"symbol"===T(Symbol.iterator)?function(e){return T(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":T(e)})(e)}function I(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function R(e,t){return!t||"object"!==B(t)&&"function"!=typeof t?I(e):t}function D(e){return(D=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function A(e,t){return(A=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function P(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&A(e,t)}function F(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var c=[],a=!0,n=!1,r=void 0;try{for(var o,s=e[Symbol.iterator]();!(a=(o=s.next()).done)&&(c.push(o.value),!t||c.length!==t);a=!0);}catch(e){n=!0,r=e}finally{try{a||null==s.return||s.return()}finally{if(n)throw r}}return c}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var q=c(23),U=c(24),W=c(39),Q=c.n(W),Y=c(16),Z=10,$=function(){return"rtl"===document.documentElement.dir};function G(e,t){var c=F((arguments.length>2&&void 0!==arguments[2]?arguments[2]:"top").split(" "),2),a=c[0],n=c[1],r=void 0===n?"center":n,o=function(e,t,c){var a,n=t.height,r=e.top+e.height/2,o={popoverTop:r,contentHeight:(r-n/2>0?n/2:r)+(r+n/2>window.innerHeight?window.innerHeight-r:n/2)},s={popoverTop:e.top,contentHeight:e.top-Z-n>0?n:e.top-Z},i={popoverTop:e.bottom,contentHeight:e.bottom+Z+n>window.innerHeight?window.innerHeight-Z-e.bottom:n},l=null;if("middle"===c&&o.contentHeight===n)a="middle";else if("top"===c&&s.contentHeight===n)a="top";else if("bottom"===c&&i.contentHeight===n)a="bottom";else{var m="top"==(a=s.contentHeight>i.contentHeight?"top":"bottom")?s.contentHeight:i.contentHeight;l=m!==n?m:null}return{yAxis:a,popoverTop:"middle"===a?o.popoverTop:"top"===a?s.popoverTop:i.popoverTop,contentHeight:l}}(e,t,a);return M({},function(e,t,c,a){var n=t.width;"left"===c&&$()?c="right":"right"===c&&$()&&(c="left");var r,o=Math.round(e.left+e.width/2),s={popoverLeft:o,contentWidth:(o-n/2>0?n/2:o)+(o+n/2>window.innerWidth?window.innerWidth-o:n/2)},i="middle"===a?e.left:o,l={popoverLeft:i,contentWidth:i-n>0?n:i},m="middle"===a?e.right:o,u={popoverLeft:m,contentWidth:m+n>window.innerWidth?window.innerWidth-m:n},d=null;if("center"===c&&s.contentWidth===n)r="center";else if("left"===c&&l.contentWidth===n)r="left";else if("right"===c&&u.contentWidth===n)r="right";else{var h="left"==(r=l.contentWidth>u.contentWidth?"left":"right")?l.contentWidth:u.contentWidth;d=h!==n?h:null}return{xAxis:r,popoverLeft:"center"===r?s.popoverLeft:"left"===r?l.popoverLeft:u.popoverLeft,contentWidth:d}}(e,t,r,o.yAxis),o)}function J(e){return function(e){if(Array.isArray(e)){for(var t=0,c=new Array(e.length);t<e.length;t++)c[t]=e[t];return c}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var K=Object(_.createContext)({focusHistory:[]}),X=K.Provider,ee=K.Consumer;X.displayName="FocusReturnProvider",ee.displayName="FocusReturnConsumer";var te=Object(Y.createHigherOrderComponent)(function e(t){if((a=t)instanceof _.Component||"function"==typeof a){var c=t;return e({})(c)}var a,n=t.onFocusReturn,r=void 0===n?O.stubTrue:n;return function(e){var t=function(t){function c(){var e;return L(this,c),(e=R(this,D(c).apply(this,arguments))).ownFocusedElements=new Set,e.activeElementOnMount=document.activeElement,e.setIsFocusedFalse=function(){return e.isFocused=!1},e.setIsFocusedTrue=function(t){e.ownFocusedElements.add(t.target),e.isFocused=!0},e}return P(c,_.Component),N(c,[{key:"componentWillUnmount",value:function(){var e=this.activeElementOnMount,t=this.isFocused,c=this.ownFocusedElements;if(t&&!1!==r())for(var a,n=[].concat(J(O.without.apply(void 0,[this.props.focus.focusHistory].concat(J(c)))),[e]);a=n.pop();)if(document.body.contains(a))return void a.focus()}},{key:"render",value:function(){return Object(_.createElement)("div",{onFocus:this.setIsFocusedTrue,onBlur:this.setIsFocusedFalse},Object(_.createElement)(e,this.props.childProps))}}]),c}();return function(e){return Object(_.createElement)(ee,null,function(c){return Object(_.createElement)(t,{childProps:e,focus:c})})}}},"withFocusReturn"),ce=Object(Y.createHigherOrderComponent)(function(e){return function(t){function c(){var e;return L(this,c),(e=R(this,D(c).apply(this,arguments))).focusContainRef=Object(_.createRef)(),e.handleTabBehaviour=e.handleTabBehaviour.bind(I(e)),e}return P(c,_["Component"]),N(c,[{key:"handleTabBehaviour",value:function(e){if(e.keyCode===U.TAB){var t=q.focus.tabbable.find(this.focusContainRef.current);if(t.length){var c=t[0],a=t[t.length-1];e.shiftKey&&e.target===c?(e.preventDefault(),a.focus()):(e.shiftKey||e.target!==a)&&t.includes(e.target)||(e.preventDefault(),c.focus())}}}},{key:"render",value:function(){return Object(_.createElement)("div",{onKeyDown:this.handleTabBehaviour,ref:this.focusContainRef,tabIndex:"-1"},Object(_.createElement)(e,this.props))}}]),c}()},"withConstrainedTabbing"),ae=["button","submit"];var ne=Object(Y.createHigherOrderComponent)(function(e){return function(t){function c(){var e;return L(this,c),(e=R(this,D(c).apply(this,arguments))).bindNode=e.bindNode.bind(I(e)),e.cancelBlurCheck=e.cancelBlurCheck.bind(I(e)),e.queueBlurCheck=e.queueBlurCheck.bind(I(e)),e.normalizeButtonFocus=e.normalizeButtonFocus.bind(I(e)),e}return P(c,_["Component"]),N(c,[{key:"componentWillUnmount",value:function(){this.cancelBlurCheck()}},{key:"bindNode",value:function(e){e?this.node=e:(delete this.node,this.cancelBlurCheck())}},{key:"queueBlurCheck",value:function(e){var t=this;e.persist(),this.preventBlurCheck||(this.blurCheckTimeout=setTimeout(function(){document.hasFocus()?"function"==typeof t.node.handleFocusOutside&&t.node.handleFocusOutside(e):e.preventDefault()},0))}},{key:"cancelBlurCheck",value:function(){clearTimeout(this.blurCheckTimeout)}},{key:"normalizeButtonFocus",value:function(e){var t=e.type,c=e.target;Object(O.includes)(["mouseup","touchend"],t)?this.preventBlurCheck=!1:function(e){switch(e.nodeName){case"A":case"BUTTON":return!0;case"INPUT":return Object(O.includes)(ae,e.type)}return!1}(c)&&(this.preventBlurCheck=!0)}},{key:"render",value:function(){return Object(_.createElement)("div",{onFocus:this.cancelBlurCheck,onMouseDown:this.normalizeButtonFocus,onMouseUp:this.normalizeButtonFocus,onTouchStart:this.normalizeButtonFocus,onTouchEnd:this.normalizeButtonFocus,onBlur:this.queueBlurCheck},Object(_.createElement)(e,C({ref:this.bindNode},this.props)))}}]),c}()},"withFocusOutside")(function(e){function t(){return L(this,t),R(this,D(t).apply(this,arguments))}return P(t,_["Component"]),N(t,[{key:"handleFocusOutside",value:function(e){this.props.onFocusOutside(e)}},{key:"render",value:function(){return this.props.children}}]),t}());var re=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.htmlDocument,c=void 0===t?document:t,a=e.className,n=void 0===a?"lockscroll":a,r=0,o=0;function s(e){var t=c.scrollingElement||c.body;e&&(o=t.scrollTop);var a=e?"add":"remove";t.classList[a](n),c.documentElement.classList[a](n),e||(t.scrollTop=o)}return function(e){function t(){return L(this,t),R(this,D(t).apply(this,arguments))}return P(t,_.Component),N(t,[{key:"componentDidMount",value:function(){0===r&&s(!0),++r}},{key:"componentWillUnmount",value:function(){1===r&&s(!1),--r}},{key:"render",value:function(){return null}}]),t}()}();function oe(e){e.stopPropagation()}var se=Object(_.forwardRef)(function(e,t){var c=e.children,a=V(e,["children"]);return Object(_.createElement)("div",C({},a,{ref:t,onMouseDown:oe}),c)}),ie=Object(_.createContext)({registerSlot:function(){},unregisterSlot:function(){},registerFill:function(){},unregisterFill:function(){},getSlot:function(){},getFills:function(){},subscribe:function(){}}),le=(ie.Provider,ie.Consumer),me=function(e){var t=Object(_.useContext)(ie),c=t.getSlot,a=t.subscribe,n=F(Object(_.useState)(c(e)),2),r=n[0],o=n[1];return Object(_.useEffect)(function(){return o(c(e)),a(function(){o(c(e))})},[e]),r},ue=0;function de(e){var t=e.name,c=e.children,a=e.registerFill,n=e.unregisterFill,r=me(t),o=Object(_.useRef)({name:t,children:c});return o.current.occurrence||(o.current.occurrence=++ue),Object(_.useLayoutEffect)(function(){return a(t,o.current),function(){return n(t,o.current)}},[]),Object(_.useLayoutEffect)(function(){o.current.children=c,r&&!r.props.bubblesVirtually&&r.forceUpdate()},[c]),Object(_.useLayoutEffect)(function(){t!==o.current.name&&(n(o.current.name,o.current),o.current.name=t,a(t,o.current))},[t]),r&&r.node&&r.props.bubblesVirtually?(Object(O.isFunction)(c)&&(c=c(r.props.fillProps)),Object(_.createPortal)(c,r.node)):null}var he=function(e){return Object(_.createElement)(le,null,function(t){var c=t.registerFill,a=t.unregisterFill;return Object(_.createElement)(de,C({},e,{registerFill:c,unregisterFill:a}))})},ve=function(e){function t(){var e;return L(this,t),(e=R(this,D(t).apply(this,arguments))).bindNode=e.bindNode.bind(I(e)),e}return P(t,_["Component"]),N(t,[{key:"componentDidMount",value:function(){(0,this.props.registerSlot)(this.props.name,this)}},{key:"componentWillUnmount",value:function(){(0,this.props.unregisterSlot)(this.props.name,this)}},{key:"componentDidUpdate",value:function(e){var t=this.props,c=t.name,a=t.unregisterSlot,n=t.registerSlot;e.name!==c&&(a(e.name),n(c,this))}},{key:"bindNode",value:function(e){this.node=e}},{key:"render",value:function(){var e=this.props,t=e.children,c=e.name,a=e.bubblesVirtually,n=void 0!==a&&a,r=e.fillProps,o=void 0===r?{}:r,s=e.getFills,i=e.className;if(n)return Object(_.createElement)("div",{ref:this.bindNode,className:i});var l=Object(O.map)(s(c,this),function(e){var t=e.occurrence,c=Object(O.isFunction)(e.children)?e.children(o):e.children;return _.Children.map(c,function(e,c){if(!e||Object(O.isString)(e))return e;var a="".concat(t,"---").concat(e.key||c);return Object(_.cloneElement)(e,{key:a})})}).filter(Object(O.negate)(_.isEmptyElement));return Object(_.createElement)(_.Fragment,null,Object(O.isFunction)(t)?t(l):l)}}]),t}(),pe=function(e){return Object(_.createElement)(le,null,function(t){var c=t.registerSlot,a=t.unregisterSlot,n=t.getFills;return Object(_.createElement)(ve,C({},e,{registerSlot:c,unregisterSlot:a,getFills:n}))})};var fe=function(e){var t=e.type,c=e.options,a=void 0===c?{}:c,n=e.children;if("appear"===t){var r,o=a.origin,s=F((void 0===o?"top":o).split(" "),2),i=s[0],l=s[1],m=void 0===l?"center":l;return n({className:j()("components-animate__appear",(r={},H(r,"is-from-"+m,"center"!==m),H(r,"is-from-"+i,"middle"!==i),r))})}if("slide-in"===t){var u=a.origin,d=void 0===u?"left":u;return n({className:j()("components-animate__slide-in","is-from-"+d)})}return n("loading"===t?{className:j()("components-animate__loading")}:{})},ge=ce(te(function(e){return e.children}));function be(e,t){var c=window.getComputedStyle(t),a=c.paddingTop,n=c.paddingBottom,r=c.paddingLeft,o=c.paddingRight,s=a?parseInt(a,10):0,i=n?parseInt(n,10):0,l=r?parseInt(r,10):0,m=o?parseInt(o,10):0;return{x:e.left+l,y:e.top+s,width:e.width-l-m,height:e.height-s-i,left:e.left+l,right:e.right-m,top:e.top+s,bottom:e.bottom-i}}function we(e,t,c){c?e.getAttribute(t)!==c&&e.setAttribute(t,c):e.hasAttribute(t)&&e.removeAttribute(t)}function ye(e,t){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";e.style[t]!==c&&(e.style[t]=c)}function ze(e,t,c){c?e.classList.contains(t)||e.classList.add(t):e.classList.contains(t)&&e.classList.remove(t)}var _e=function(e){var t=e.headerTitle,c=e.onClose,a=e.onKeyDown,n=e.children,r=e.className,o=e.noArrow,s=void 0!==o&&o,i=e.position,l=void 0===i?"top":i,m=(e.range,e.focusOnMount),u=void 0===m?"firstElement":m,d=e.anchorRef,h=e.shouldAnchorIncludePadding,v=e.anchorVerticalBuffer,p=e.anchorHorizontalBuffer,f=e.anchorRect,g=e.getAnchorRect,b=e.expandOnMobile,w=e.animate,y=void 0===w||w,z=e.onClickOutside,E=e.onFocusOutside,O=V(e,["headerTitle","onClose","onKeyDown","children","className","noArrow","position","range","focusOnMount","anchorRef","shouldAnchorIncludePadding","anchorVerticalBuffer","anchorHorizontalBuffer","anchorRect","getAnchorRect","expandOnMobile","animate","onClickOutside","onFocusOutside"]),k=Object(_.useRef)(null),H=Object(_.useRef)(null),M=Object(_.useRef)(),x=Object(_.useRef)(),L=Object(Y.useViewportMatch)("medium","<"),S=F(Object(_.useState)(),2),N=S[0],T=S[1],B=b&&L;s=B||s,Object(_.useEffect)(function(){var e=M.current,t=H.current;if(B)return ze(e,"is-without-arrow",s),we(e,"data-x-axis"),we(e,"data-y-axis"),ye(e,"top"),ye(e,"left"),ye(t,"maxHeight"),void ye(t,"maxWidth");var c=function(){var c=function(e,t,c){var a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],n=arguments.length>4?arguments[4]:void 0;if(t)return t;if(c){if(!e.current)return;return c(e.current)}if(!1!==a){if(!a)return;if(a instanceof window.Range)return Object(q.getRectangleFromRange)(a);var r=a.getBoundingClientRect();return n?r:be(r,a)}if(e.current){var o=e.current.parentNode,s=o.getBoundingClientRect();return n?s:be(s,o)}}(k,f,g,d,h);if(c){c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return{x:e.left-c,y:e.top-t,width:e.width+2*c,height:e.height+2*t,left:e.left-c,right:e.right+c,top:e.top-t,bottom:e.bottom+t}}(c,v,p),x.current||(x.current=t.getBoundingClientRect());var a=G(c,x.current,l),n=a.popoverTop,r=a.popoverLeft,o=a.xAxis,i=a.yAxis,m=a.contentHeight,u=a.contentWidth;ze(e,"is-without-arrow",s||"center"===o&&"middle"===i),we(e,"data-x-axis",o),we(e,"data-y-axis",i),ye(e,"top","number"==typeof n?n+"px":""),ye(e,"left","number"==typeof r?r+"px":""),ye(t,"maxHeight","number"==typeof m?m+"px":""),ye(t,"maxWidth","number"==typeof u?u+"px":""),T(({left:"right",right:"left"}[o]||"center")+" "+({top:"bottom",bottom:"top"}[i]||"middle"))}},a=window.setTimeout(c),n=window.setInterval(c,500);return window.addEventListener("resize",c),window.addEventListener("scroll",c,!0),function(){window.clearTimeout(a),window.clearInterval(n),window.removeEventListener("resize",c),window.removeEventListener("scroll",c,!0)}},[B,f,g,d,h,v,p,l]),function(e,t){Object(_.useEffect)(function(){var c=setTimeout(function(){if(e&&t.current)if("firstElement"!==e)"container"===e&&t.current.focus();else{var c=q.focus.tabbable.find(t.current)[0];c?c.focus():t.current.focus()}},0);return function(){return clearTimeout(c)}},[])}(u,H);var I=function(e){e.keyCode===U.ESCAPE&&c&&(e.stopPropagation(),c()),a&&a(e)};var R=Object(_.createElement)(ne,{onFocusOutside:function(e){if(E)E(e);else if(z){var t;try{t=new window.MouseEvent("click")}catch(e){(t=document.createEvent("MouseEvent")).initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null)}Object.defineProperty(t,"target",{get:function(){return e.relatedTarget}}),Q()("Popover onClickOutside prop",{alternative:"onFocusOutside"}),z(t)}else c&&c()}},Object(_.createElement)(fe,{type:y&&N?"appear":null,options:{origin:N}},function(e){var a=e.className;return Object(_.createElement)(se,C({className:j()("components-popover",r,a,{"is-expanded":B,"is-without-arrow":s})},O,{onKeyDown:I,ref:M}),B&&Object(_.createElement)("div",{className:"components-popover__header"},Object(_.createElement)("span",{className:"components-popover__header-title"},t),Object(_.createElement)(Ce,{className:"components-popover__close",icon:"no-alt",onClick:c})),Object(_.createElement)("div",{ref:H,className:"components-popover__content",tabIndex:"-1"},n))}));return u&&(R=Object(_.createElement)(ge,null,R)),Object(_.createElement)(le,null,function(e){var t=e.getSlot;return t&&t("Popover")&&(R=Object(_.createElement)(he,{name:"Popover"},R)),Object(_.createElement)("span",{ref:k},R,L&&b&&Object(_.createElement)(re,null))})};_e.Slot=function(){return Object(_.createElement)(pe,{bubblesVirtually:!0,name:"Popover"})};var Ee=_e;var Oe=function(e){var t,c,a=e.shortcut,n=e.className;return a?(Object(O.isString)(a)&&(t=a),Object(O.isObject)(a)&&(t=a.display,c=a.ariaLabel),Object(_.createElement)("span",{className:n,"aria-label":c},t)):null},ke=700,je=function(e){function t(){var e;return L(this,t),(e=R(this,D(t).apply(this,arguments))).delayedSetIsOver=Object(O.debounce)(function(t){return e.setState({isOver:t})},ke),e.cancelIsMouseDown=e.createSetIsMouseDown(!1),e.isInMouseDown=!1,e.state={isOver:!1},e}return P(t,_["Component"]),N(t,[{key:"componentWillUnmount",value:function(){this.delayedSetIsOver.cancel(),document.removeEventListener("mouseup",this.cancelIsMouseDown)}},{key:"emitToChild",value:function(e,t){var c=this.props.children;if(1===_.Children.count(c)){var a=_.Children.only(c);"function"==typeof a.props[e]&&a.props[e](t)}}},{key:"createToggleIsOver",value:function(e,t){var c=this;return function(a){if(c.emitToChild(e,a),!(a.currentTarget.disabled||"focus"===a.type&&c.isInMouseDown)){c.delayedSetIsOver.cancel();var n=Object(O.includes)(["focus","mouseenter"],a.type);n!==c.state.isOver&&(t?c.delayedSetIsOver(n):c.setState({isOver:n}))}}}},{key:"createSetIsMouseDown",value:function(e){var t=this;return function(c){t.emitToChild(e?"onMouseDown":"onMouseUp",c),document[e?"addEventListener":"removeEventListener"]("mouseup",t.cancelIsMouseDown),t.isInMouseDown=e}}},{key:"render",value:function(){var e=this.props,t=e.children,c=e.position,a=e.text,n=e.shortcut;if(1!==_.Children.count(t))return t;var r=_.Children.only(t),o=this.state.isOver;return Object(_.cloneElement)(r,{onMouseEnter:this.createToggleIsOver("onMouseEnter",!0),onMouseLeave:this.createToggleIsOver("onMouseLeave"),onClick:this.createToggleIsOver("onClick"),onFocus:this.createToggleIsOver("onFocus"),onBlur:this.createToggleIsOver("onBlur"),onMouseDown:this.createSetIsMouseDown(!0),children:Object(_.concatChildren)(r.props.children,o&&Object(_.createElement)(Ee,{focusOnMount:!1,position:c,className:"components-tooltip","aria-hidden":"true",animate:!1},a,Object(_.createElement)(Oe,{className:"components-tooltip__shortcut",shortcut:n})))})}}]),t}(),He=function(e){return Object(_.createElement)("path",e)},Me=function(e){var t=M({},e,{role:"img","aria-hidden":"true",focusable:"false"});return Object(_.createElement)("svg",Object(O.omit)(t,"__unstableActive"))},Ve=function(e){function t(){return L(this,t),R(this,D(t).apply(this,arguments))}return P(t,_["Component"]),N(t,[{key:"render",value:function(){var e,t=this.props,c=t.icon,a=t.size,n=void 0===a?20:a,r=t.className,o=V(t,["icon","size","className"]);switch(c){case"admin-appearance":e="M14.48 11.06L7.41 3.99l1.5-1.5c.5-.56 2.3-.47 3.51.32 1.21.8 1.43 1.28 2.91 2.1 1.18.64 2.45 1.26 4.45.85zm-.71.71L6.7 4.7 4.93 6.47c-.39.39-.39 1.02 0 1.41l1.06 1.06c.39.39.39 1.03 0 1.42-.6.6-1.43 1.11-2.21 1.69-.35.26-.7.53-1.01.84C1.43 14.23.4 16.08 1.4 17.07c.99 1 2.84-.03 4.18-1.36.31-.31.58-.66.85-1.02.57-.78 1.08-1.61 1.69-2.21.39-.39 1.02-.39 1.41 0l1.06 1.06c.39.39 1.02.39 1.41 0z";break;case"admin-collapse":e="M10 2.16c4.33 0 7.84 3.51 7.84 7.84s-3.51 7.84-7.84 7.84S2.16 14.33 2.16 10 5.71 2.16 10 2.16zm2 11.72V6.12L6.18 9.97z";break;case"admin-comments":e="M5 2h9c1.1 0 2 .9 2 2v7c0 1.1-.9 2-2 2h-2l-5 5v-5H5c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2z";break;case"admin-customizer":e="M18.33 3.57s.27-.8-.31-1.36c-.53-.52-1.22-.24-1.22-.24-.61.3-5.76 3.47-7.67 5.57-.86.96-2.06 3.79-1.09 4.82.92.98 3.96-.17 4.79-1 2.06-2.06 5.21-7.17 5.5-7.79zM1.4 17.65c2.37-1.56 1.46-3.41 3.23-4.64.93-.65 2.22-.62 3.08.29.63.67.8 2.57-.16 3.46-1.57 1.45-4 1.55-6.15.89z";break;case"admin-generic":e="M18 12h-2.18c-.17.7-.44 1.35-.81 1.93l1.54 1.54-2.1 2.1-1.54-1.54c-.58.36-1.23.63-1.91.79V19H8v-2.18c-.68-.16-1.33-.43-1.91-.79l-1.54 1.54-2.12-2.12 1.54-1.54c-.36-.58-.63-1.23-.79-1.91H1V9.03h2.17c.16-.7.44-1.35.8-1.94L2.43 5.55l2.1-2.1 1.54 1.54c.58-.37 1.24-.64 1.93-.81V2h3v2.18c.68.16 1.33.43 1.91.79l1.54-1.54 2.12 2.12-1.54 1.54c.36.59.64 1.24.8 1.94H18V12zm-8.5 1.5c1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3 1.34 3 3 3z";break;case"admin-home":e="M16 8.5l1.53 1.53-1.06 1.06L10 4.62l-6.47 6.47-1.06-1.06L10 2.5l4 4v-2h2v4zm-6-2.46l6 5.99V18H4v-5.97zM12 17v-5H8v5h4z";break;case"admin-links":e="M17.74 2.76c1.68 1.69 1.68 4.41 0 6.1l-1.53 1.52c-1.12 1.12-2.7 1.47-4.14 1.09l2.62-2.61.76-.77.76-.76c.84-.84.84-2.2 0-3.04-.84-.85-2.2-.85-3.04 0l-.77.76-3.38 3.38c-.37-1.44-.02-3.02 1.1-4.14l1.52-1.53c1.69-1.68 4.42-1.68 6.1 0zM8.59 13.43l5.34-5.34c.42-.42.42-1.1 0-1.52-.44-.43-1.13-.39-1.53 0l-5.33 5.34c-.42.42-.42 1.1 0 1.52.44.43 1.13.39 1.52 0zm-.76 2.29l4.14-4.15c.38 1.44.03 3.02-1.09 4.14l-1.52 1.53c-1.69 1.68-4.41 1.68-6.1 0-1.68-1.68-1.68-4.42 0-6.1l1.53-1.52c1.12-1.12 2.7-1.47 4.14-1.1l-4.14 4.15c-.85.84-.85 2.2 0 3.05.84.84 2.2.84 3.04 0z";break;case"admin-media":e="M13 11V4c0-.55-.45-1-1-1h-1.67L9 1H5L3.67 3H2c-.55 0-1 .45-1 1v7c0 .55.45 1 1 1h10c.55 0 1-.45 1-1zM7 4.5c1.38 0 2.5 1.12 2.5 2.5S8.38 9.5 7 9.5 4.5 8.38 4.5 7 5.62 4.5 7 4.5zM14 6h5v10.5c0 1.38-1.12 2.5-2.5 2.5S14 17.88 14 16.5s1.12-2.5 2.5-2.5c.17 0 .34.02.5.05V9h-3V6zm-4 8.05V13h2v3.5c0 1.38-1.12 2.5-2.5 2.5S7 17.88 7 16.5 8.12 14 9.5 14c.17 0 .34.02.5.05z";break;case"admin-multisite":e="M14.27 6.87L10 3.14 5.73 6.87 5 6.14l5-4.38 5 4.38zM14 8.42l-4.05 3.43L6 8.38v-.74l4-3.5 4 3.5v.78zM11 9.7V8H9v1.7h2zm-1.73 4.03L5 10 .73 13.73 0 13l5-4.38L10 13zm10 0L15 10l-4.27 3.73L10 13l5-4.38L20 13zM5 11l4 3.5V18H1v-3.5zm10 0l4 3.5V18h-8v-3.5zm-9 6v-2H4v2h2zm10 0v-2h-2v2h2z";break;case"admin-network":e="M16.95 2.58c1.96 1.95 1.96 5.12 0 7.07-1.51 1.51-3.75 1.84-5.59 1.01l-1.87 3.31-2.99.31L5 18H2l-1-2 7.95-7.69c-.92-1.87-.62-4.18.93-5.73 1.95-1.96 5.12-1.96 7.07 0zm-2.51 3.79c.74 0 1.33-.6 1.33-1.34 0-.73-.59-1.33-1.33-1.33-.73 0-1.33.6-1.33 1.33 0 .74.6 1.34 1.33 1.34z";break;case"admin-page":e="M6 15V2h10v13H6zm-1 1h8v2H3V5h2v11z";break;case"admin-plugins":e="M13.11 4.36L9.87 7.6 8 5.73l3.24-3.24c.35-.34 1.05-.2 1.56.32.52.51.66 1.21.31 1.55zm-8 1.77l.91-1.12 9.01 9.01-1.19.84c-.71.71-2.63 1.16-3.82 1.16H6.14L4.9 17.26c-.59.59-1.54.59-2.12 0-.59-.58-.59-1.53 0-2.12l1.24-1.24v-3.88c0-1.13.4-3.19 1.09-3.89zm7.26 3.97l3.24-3.24c.34-.35 1.04-.21 1.55.31.52.51.66 1.21.31 1.55l-3.24 3.25z";break;case"admin-post":e="M10.44 3.02l1.82-1.82 6.36 6.35-1.83 1.82c-1.05-.68-2.48-.57-3.41.36l-.75.75c-.92.93-1.04 2.35-.35 3.41l-1.83 1.82-2.41-2.41-2.8 2.79c-.42.42-3.38 2.71-3.8 2.29s1.86-3.39 2.28-3.81l2.79-2.79L4.1 9.36l1.83-1.82c1.05.69 2.48.57 3.4-.36l.75-.75c.93-.92 1.05-2.35.36-3.41z";break;case"admin-settings":e="M18 16V4c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h13c.55 0 1-.45 1-1zM8 11h1c.55 0 1 .45 1 1s-.45 1-1 1H8v1.5c0 .28-.22.5-.5.5s-.5-.22-.5-.5V13H6c-.55 0-1-.45-1-1s.45-1 1-1h1V5.5c0-.28.22-.5.5-.5s.5.22.5.5V11zm5-2h-1c-.55 0-1-.45-1-1s.45-1 1-1h1V5.5c0-.28.22-.5.5-.5s.5.22.5.5V7h1c.55 0 1 .45 1 1s-.45 1-1 1h-1v5.5c0 .28-.22.5-.5.5s-.5-.22-.5-.5V9z";break;case"admin-site-alt":e="M9 0C4.03 0 0 4.03 0 9s4.03 9 9 9 9-4.03 9-9-4.03-9-9-9zm7.5 6.48c-.274.896-.908 1.64-1.75 2.05-.45-1.69-1.658-3.074-3.27-3.75.13-.444.41-.83.79-1.09-.43-.28-1-.42-1.34.07-.53.69 0 1.61.21 2v.14c-.555-.337-.99-.84-1.24-1.44-.966-.03-1.922.208-2.76.69-.087-.565-.032-1.142.16-1.68.733.07 1.453-.23 1.92-.8.46-.52-.13-1.18-.59-1.58h.36c1.36-.01 2.702.335 3.89 1 1.36 1.005 2.194 2.57 2.27 4.26.24 0 .7-.55.91-.92.172.34.32.69.44 1.05zM9 16.84c-2.05-2.08.25-3.75-1-5.24-.92-.85-2.29-.26-3.11-1.23-.282-1.473.267-2.982 1.43-3.93.52-.44 4-1 5.42.22.83.715 1.415 1.674 1.67 2.74.46.035.918-.066 1.32-.29.41 2.98-3.15 6.74-5.73 7.73zM5.15 2.09c.786-.3 1.676-.028 2.16.66-.42.38-.94.63-1.5.72.02-.294.085-.584.19-.86l-.85-.52z";break;case"admin-site-alt2":e="M9 0C4.03 0 0 4.03 0 9s4.03 9 9 9 9-4.03 9-9-4.03-9-9-9zm2.92 12.34c0 .35.14.63.36.66.22.03.47-.22.58-.6l.2.08c.718.384 1.07 1.22.84 2-.15.69-.743 1.198-1.45 1.24-.49-1.21-2.11.06-3.56-.22-.612-.154-1.11-.6-1.33-1.19 1.19-.11 2.85-1.73 4.36-1.97zM8 11.27c.918 0 1.695-.68 1.82-1.59.44.54.41 1.324-.07 1.83-.255.223-.594.325-.93.28-.335-.047-.635-.236-.82-.52zm3-.76c.41.39 3-.06 3.52 1.09-.95-.2-2.95.61-3.47-1.08l-.05-.01zM9.73 5.45v.27c-.65-.77-1.33-1.07-1.61-.57-.28.5 1 1.11.76 1.88-.24.77-1.27.56-1.88 1.61-.61 1.05-.49 2.42 1.24 3.67-1.192-.132-2.19-.962-2.54-2.11-.4-1.2-.09-2.26-.78-2.46C4 7.46 3 8.71 3 9.8c-1.26-1.26.05-2.86-1.2-4.18C3.5 1.998 7.644.223 11.44 1.49c-1.1 1.02-1.722 2.458-1.71 3.96z";break;case"admin-site-alt3":e="M9 0C4.03 0 0 4.03 0 9s4.03 9 9 9 9-4.03 9-9-4.03-9-9-9zM1.11 9.68h2.51c.04.91.167 1.814.38 2.7H1.84c-.403-.85-.65-1.764-.73-2.7zm8.57-5.4V1.19c.964.366 1.756 1.08 2.22 2 .205.347.386.708.54 1.08l-2.76.01zm3.22 1.35c.232.883.37 1.788.41 2.7H9.68v-2.7h3.22zM8.32 1.19v3.09H5.56c.154-.372.335-.733.54-1.08.462-.924 1.255-1.64 2.22-2.01zm0 4.44v2.7H4.7c.04-.912.178-1.817.41-2.7h3.21zm-4.7 2.69H1.11c.08-.936.327-1.85.73-2.7H4c-.213.886-.34 1.79-.38 2.7zM4.7 9.68h3.62v2.7H5.11c-.232-.883-.37-1.788-.41-2.7zm3.63 4v3.09c-.964-.366-1.756-1.08-2.22-2-.205-.347-.386-.708-.54-1.08l2.76-.01zm1.35 3.09v-3.04h2.76c-.154.372-.335.733-.54 1.08-.464.92-1.256 1.634-2.22 2v-.04zm0-4.44v-2.7h3.62c-.04.912-.178 1.817-.41 2.7H9.68zm4.71-2.7h2.51c-.08.936-.327 1.85-.73 2.7H14c.21-.87.337-1.757.38-2.65l.01-.05zm0-1.35c-.046-.894-.176-1.78-.39-2.65h2.16c.403.85.65 1.764.73 2.7l-2.5-.05zm1-4H13.6c-.324-.91-.793-1.76-1.39-2.52 1.244.56 2.325 1.426 3.14 2.52h.04zm-9.6-2.52c-.597.76-1.066 1.61-1.39 2.52H2.65c.815-1.094 1.896-1.96 3.14-2.52zm-3.15 12H4.4c.324.91.793 1.76 1.39 2.52-1.248-.567-2.33-1.445-3.14-2.55l-.01.03zm9.56 2.52c.597-.76 1.066-1.61 1.39-2.52h1.76c-.82 1.08-1.9 1.933-3.14 2.48l-.01.04z";break;case"admin-site":e="M9 0C4.03 0 0 4.03 0 9s4.03 9 9 9 9-4.03 9-9-4.03-9-9-9zm3.46 11.95c0 1.47-.8 3.3-4.06 4.7.3-4.17-2.52-3.69-3.2-5 .126-1.1.804-2.063 1.8-2.55-1.552-.266-3-.96-4.18-2 .05.47.28.904.64 1.21-.782-.295-1.458-.817-1.94-1.5.977-3.225 3.883-5.482 7.25-5.63-.84 1.38-1.5 4.13 0 5.57C7.23 7 6.26 5 5.41 5.79c-1.13 1.06.33 2.51 3.42 3.08 3.29.59 3.66 1.58 3.63 3.08zm1.34-4c-.32-1.11.62-2.23 1.69-3.14 1.356 1.955 1.67 4.45.84 6.68-.77-1.89-2.17-2.32-2.53-3.57v.03z";break;case"admin-tools":e="M16.68 9.77c-1.34 1.34-3.3 1.67-4.95.99l-5.41 6.52c-.99.99-2.59.99-3.58 0s-.99-2.59 0-3.57l6.52-5.42c-.68-1.65-.35-3.61.99-4.95 1.28-1.28 3.12-1.62 4.72-1.06l-2.89 2.89 2.82 2.82 2.86-2.87c.53 1.58.18 3.39-1.08 4.65zM3.81 16.21c.4.39 1.04.39 1.43 0 .4-.4.4-1.04 0-1.43-.39-.4-1.03-.4-1.43 0-.39.39-.39 1.03 0 1.43z";break;case"admin-users":e="M10 9.25c-2.27 0-2.73-3.44-2.73-3.44C7 4.02 7.82 2 9.97 2c2.16 0 2.98 2.02 2.71 3.81 0 0-.41 3.44-2.68 3.44zm0 2.57L12.72 10c2.39 0 4.52 2.33 4.52 4.53v2.49s-3.65 1.13-7.24 1.13c-3.65 0-7.24-1.13-7.24-1.13v-2.49c0-2.25 1.94-4.48 4.47-4.48z";break;case"album":e="M0 18h10v-.26c1.52.4 3.17.35 4.76-.24 4.14-1.52 6.27-6.12 4.75-10.26-1.43-3.89-5.58-6-9.51-4.98V2H0v16zM9 3v14H1V3h8zm5.45 8.22c-.68 1.35-2.32 1.9-3.67 1.23-.31-.15-.57-.35-.78-.59V8.13c.8-.86 2.11-1.13 3.22-.58 1.35.68 1.9 2.32 1.23 3.67zm-2.75-.82c.22.16.53.12.7-.1.16-.22.12-.53-.1-.7s-.53-.12-.7.1c-.16.21-.12.53.1.7zm3.01 3.67c-1.17.78-2.56.99-3.83.69-.27-.06-.44-.34-.37-.61s.34-.43.62-.36l.17.04c.96.17 1.98-.01 2.86-.59.47-.32.86-.72 1.14-1.18.15-.23.45-.3.69-.16.23.15.3.46.16.69-.36.57-.84 1.08-1.44 1.48zm1.05 1.57c-1.48.99-3.21 1.32-4.84 1.06-.28-.05-.47-.32-.41-.6.05-.27.32-.45.61-.39l.22.04c1.31.15 2.68-.14 3.87-.94.71-.47 1.27-1.07 1.7-1.74.14-.24.45-.31.68-.16.24.14.31.45.16.69-.49.79-1.16 1.49-1.99 2.04z";break;case"align-center":e="M3 5h14V3H3v2zm12 8V7H5v6h10zM3 17h14v-2H3v2z";break;case"align-full-width":e="M17 13V3H3v10h14zM5 17h10v-2H5v2z";break;case"align-left":e="M3 5h14V3H3v2zm9 8V7H3v6h9zm2-4h3V7h-3v2zm0 4h3v-2h-3v2zM3 17h14v-2H3v2z";break;case"align-none":e="M3 5h14V3H3v2zm10 8V7H3v6h10zM3 17h14v-2H3v2z";break;case"align-pull-left":e="M9 16V4H3v12h6zm2-7h6V7h-6v2zm0 4h6v-2h-6v2z";break;case"align-pull-right":e="M17 16V4h-6v12h6zM9 7H3v2h6V7zm0 4H3v2h6v-2z";break;case"align-right":e="M3 5h14V3H3v2zm0 4h3V7H3v2zm14 4V7H8v6h9zM3 13h3v-2H3v2zm0 4h14v-2H3v2z";break;case"align-wide":e="M5 5h10V3H5v2zm12 8V7H3v6h14zM5 17h10v-2H5v2z";break;case"analytics":e="M18 18V2H2v16h16zM16 5H4V4h12v1zM7 7v3h3c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3zm1 2V7c1.1 0 2 .9 2 2H8zm8-1h-4V7h4v1zm0 3h-4V9h4v2zm0 2h-4v-1h4v1zm0 3H4v-1h12v1z";break;case"archive":e="M19 4v2H1V4h18zM2 7h16v10H2V7zm11 3V9H7v1h6z";break;case"arrow-down-alt":e="M9 2h2v12l4-4 2 1-7 7-7-7 2-1 4 4V2z";break;case"arrow-down-alt2":e="M5 6l5 5 5-5 2 1-7 7-7-7z";break;case"arrow-down":e="M15 8l-4.03 6L7 8h8z";break;case"arrow-left-alt":e="M18 9v2H6l4 4-1 2-7-7 7-7 1 2-4 4h12z";break;case"arrow-left-alt2":e="M14 5l-5 5 5 5-1 2-7-7 7-7z";break;case"arrow-left":e="M13 14L7 9.97 13 6v8z";break;case"arrow-right-alt":e="M2 11V9h12l-4-4 1-2 7 7-7 7-1-2 4-4H2z";break;case"arrow-right-alt2":e="M6 15l5-5-5-5 1-2 7 7-7 7z";break;case"arrow-right":e="M8 6l6 4.03L8 14V6z";break;case"arrow-up-alt":e="M11 18H9V6l-4 4-2-1 7-7 7 7-2 1-4-4v12z";break;case"arrow-up-alt2":e="M15 14l-5-5-5 5-2-1 7-7 7 7z";break;case"arrow-up":e="M7 13l4.03-6L15 13H7z";break;case"art":e="M8.55 3.06c1.01.34-1.95 2.01-.1 3.13 1.04.63 3.31-2.22 4.45-2.86.97-.54 2.67-.65 3.53 1.23 1.09 2.38.14 8.57-3.79 11.06-3.97 2.5-8.97 1.23-10.7-2.66-2.01-4.53 3.12-11.09 6.61-9.9zm1.21 6.45c.73 1.64 4.7-.5 3.79-2.8-.59-1.49-4.48 1.25-3.79 2.8z";break;case"awards":e="M4.46 5.16L5 7.46l-.54 2.29 2.01 1.24L7.7 13l2.3-.54 2.3.54 1.23-2.01 2.01-1.24L15 7.46l.54-2.3-2-1.24-1.24-2.01-2.3.55-2.29-.54-1.25 2zm5.55 6.34C7.79 11.5 6 9.71 6 7.49c0-2.2 1.79-3.99 4.01-3.99 2.2 0 3.99 1.79 3.99 3.99 0 2.22-1.79 4.01-3.99 4.01zm-.02-1C8.33 10.5 7 9.16 7 7.5c0-1.65 1.33-3 2.99-3S13 5.85 13 7.5c0 1.66-1.35 3-3.01 3zm3.84 1.1l-1.28 2.24-2.08-.47L13 19.2l1.4-2.2h2.5zm-7.7.07l1.25 2.25 2.13-.51L7 19.2 5.6 17H3.1z";break;case"backup":e="M13.65 2.88c3.93 2.01 5.48 6.84 3.47 10.77s-6.83 5.48-10.77 3.47c-1.87-.96-3.2-2.56-3.86-4.4l1.64-1.03c.45 1.57 1.52 2.95 3.08 3.76 3.01 1.54 6.69.35 8.23-2.66 1.55-3.01.36-6.69-2.65-8.24C9.78 3.01 6.1 4.2 4.56 7.21l1.88.97-4.95 3.08-.39-5.82 1.78.91C4.9 2.4 9.75.89 13.65 2.88zm-4.36 7.83C9.11 10.53 9 10.28 9 10c0-.07.03-.12.04-.19h-.01L10 5l.97 4.81L14 13l-4.5-2.12.02-.02c-.08-.04-.16-.09-.23-.15z";break;case"block-default":e="M15 6V4h-3v2H8V4H5v2H4c-.6 0-1 .4-1 1v8h14V7c0-.6-.4-1-1-1h-1z";break;case"book-alt":e="M5 17h13v2H5c-1.66 0-3-1.34-3-3V4c0-1.66 1.34-3 3-3h13v14H5c-.55 0-1 .45-1 1s.45 1 1 1zm2-3.5v-11c0-.28-.22-.5-.5-.5s-.5.22-.5.5v11c0 .28.22.5.5.5s.5-.22.5-.5z";break;case"book":e="M16 3h2v16H5c-1.66 0-3-1.34-3-3V4c0-1.66 1.34-3 3-3h9v14H5c-.55 0-1 .45-1 1s.45 1 1 1h11V3z";break;case"buddicons-activity":e="M8 1v7h2V6c0-1.52 1.45-3 3-3v.86c.55-.52 1.26-.86 2-.86v3h1c1.1 0 2 .9 2 2s-.9 2-2 2h-1v6c0 .55-.45 1-1 1s-1-.45-1-1v-2.18c-.31.11-.65.18-1 .18v2c0 .55-.45 1-1 1s-1-.45-1-1v-2H8v2c0 .55-.45 1-1 1s-1-.45-1-1v-2c-.35 0-.69-.07-1-.18V16c0 .55-.45 1-1 1s-1-.45-1-1v-4H2v-1c0-1.66 1.34-3 3-3h2V1h1zm5 7c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1z";break;case"buddicons-bbpress-logo":e="M8.5 12.6c.3-1.3 0-2.3-1.1-2.3-.8 0-1.6.6-1.8 1.5l-.3 1.7c-.3 1 .3 1.5 1 1.5 1.2 0 1.9-1.1 2.2-2.4zm-4-6.4C3.7 7.3 3.3 8.6 3.3 10c0 1 .2 1.9.6 2.8l1-4.6c.3-1.7.4-2-.4-2zm9.3 6.4c.3-1.3 0-2.3-1.1-2.3-.8 0-1.6.6-1.8 1.5l-.4 1.7c-.2 1.1.4 1.6 1.1 1.6 1.1-.1 1.9-1.2 2.2-2.5zM10 3.3c-2 0-3.9.9-5.1 2.3.6-.1 1.4-.2 1.8-.3.2 0 .2.1.2.2 0 .2-1 4.8-1 4.8.5-.3 1.2-.7 1.8-.7.9 0 1.5.4 1.9.9l.5-2.4c.4-1.6.4-1.9-.4-1.9-.4 0-.4-.5 0-.6.6-.1 1.8-.2 2.3-.3.2 0 .2.1.2.2l-1 4.8c.5-.4 1.2-.7 1.9-.7 1.7 0 2.5 1.3 2.1 3-.3 1.7-2 3-3.8 3-1.3 0-2.1-.7-2.3-1.4-.7.8-1.7 1.3-2.8 1.4 1.1.7 2.4 1.1 3.7 1.1 3.7 0 6.7-3 6.7-6.7s-3-6.7-6.7-6.7zM10 2c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 15.5c-2.1 0-4-.8-5.3-2.2-.3-.4-.7-.8-1-1.2-.7-1.2-1.2-2.6-1.2-4.1 0-4.1 3.4-7.5 7.5-7.5s7.5 3.4 7.5 7.5-3.4 7.5-7.5 7.5z";break;case"buddicons-buddypress-logo":e="M10 0c5.52 0 10 4.48 10 10s-4.48 10-10 10S0 15.52 0 10 4.48 0 10 0zm0 .5C4.75.5.5 4.75.5 10s4.25 9.5 9.5 9.5 9.5-4.25 9.5-9.5S15.25.5 10 .5zm0 1c4.7 0 8.5 3.8 8.5 8.5s-3.8 8.5-8.5 8.5-8.5-3.8-8.5-8.5S5.3 1.5 10 1.5zm1.8 1.71c-.57 0-1.1.17-1.55.45 1.56.37 2.73 1.77 2.73 3.45 0 .69-.21 1.33-.55 1.87 1.31-.29 2.29-1.45 2.29-2.85 0-1.61-1.31-2.92-2.92-2.92zm-2.38 1c-1.61 0-2.92 1.31-2.92 2.93 0 1.61 1.31 2.92 2.92 2.92 1.62 0 2.93-1.31 2.93-2.92 0-1.62-1.31-2.93-2.93-2.93zm4.25 5.01l-.51.59c2.34.69 2.45 3.61 2.45 3.61h1.28c0-4.71-3.22-4.2-3.22-4.2zm-2.1.8l-2.12 2.09-2.12-2.09C3.12 10.24 3.89 15 3.89 15h11.08c.47-4.98-3.4-4.98-3.4-4.98z";break;case"buddicons-community":e="M9 3c0-.67-.47-1.43-1-2-.5.5-1 1.38-1 2 0 .48.45 1 1 1s1-.47 1-1zm4 0c0-.67-.47-1.43-1-2-.5.5-1 1.38-1 2 0 .48.45 1 1 1s1-.47 1-1zM9 9V5.5c0-.55-.45-1-1-1-.57 0-1 .49-1 1V9c0 .55.45 1 1 1 .57 0 1-.49 1-1zm4 0V5.5c0-.55-.45-1-1-1-.57 0-1 .49-1 1V9c0 .55.45 1 1 1 .57 0 1-.49 1-1zm4 1c0-1.48-1.41-2.77-3.5-3.46V9c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5V6.01c-.17 0-.33-.01-.5-.01s-.33.01-.5.01V9c0 .83-.67 1.5-1.5 1.5S6.5 9.83 6.5 9V6.54C4.41 7.23 3 8.52 3 10c0 1.41.95 2.65 3.21 3.37 1.11.35 2.39 1.12 3.79 1.12s2.69-.78 3.79-1.13C16.04 12.65 17 11.41 17 10zm-7 5.43c1.43 0 2.74-.79 3.88-1.11 1.9-.53 2.49-1.34 3.12-2.32v3c0 2.21-3.13 4-7 4s-7-1.79-7-4v-3c.64.99 1.32 1.8 3.15 2.33 1.13.33 2.44 1.1 3.85 1.1z";break;case"buddicons-forums":e="M13.5 7h-7C5.67 7 5 6.33 5 5.5S5.67 4 6.5 4h1.59C8.04 3.84 8 3.68 8 3.5 8 2.67 8.67 2 9.5 2h1c.83 0 1.5.67 1.5 1.5 0 .18-.04.34-.09.5h1.59c.83 0 1.5.67 1.5 1.5S14.33 7 13.5 7zM4 8h12c.55 0 1 .45 1 1s-.45 1-1 1H4c-.55 0-1-.45-1-1s.45-1 1-1zm1 3h10c.55 0 1 .45 1 1s-.45 1-1 1H5c-.55 0-1-.45-1-1s.45-1 1-1zm2 3h6c.55 0 1 .45 1 1s-.45 1-1 1h-1.09c.05.16.09.32.09.5 0 .83-.67 1.5-1.5 1.5h-1c-.83 0-1.5-.67-1.5-1.5 0-.18.04-.34.09-.5H7c-.55 0-1-.45-1-1s.45-1 1-1z";break;case"buddicons-friends":e="M8.75 5.77C8.75 4.39 7 2 7 2S5.25 4.39 5.25 5.77 5.9 7.5 7 7.5s1.75-.35 1.75-1.73zm6 0C14.75 4.39 13 2 13 2s-1.75 2.39-1.75 3.77S11.9 7.5 13 7.5s1.75-.35 1.75-1.73zM9 17V9c0-.55-.45-1-1-1H6c-.55 0-1 .45-1 1v8c0 .55.45 1 1 1h2c.55 0 1-.45 1-1zm6 0V9c0-.55-.45-1-1-1h-2c-.55 0-1 .45-1 1v8c0 .55.45 1 1 1h2c.55 0 1-.45 1-1zm-9-6l2-1v2l-2 1v-2zm6 0l2-1v2l-2 1v-2zm-6 3l2-1v2l-2 1v-2zm6 0l2-1v2l-2 1v-2z";break;case"buddicons-groups":e="M15.45 6.25c1.83.94 1.98 3.18.7 4.98-.8 1.12-2.33 1.88-3.46 1.78L10.05 18H9l-2.65-4.99c-1.13.16-2.73-.63-3.55-1.79-1.28-1.8-1.13-4.04.71-4.97.48-.24.96-.33 1.43-.31-.01.4.01.8.07 1.21.26 1.69 1.41 3.53 2.86 4.37-.19.55-.49.99-.88 1.25L9 16.58v-5.66C7.64 10.55 6.26 8.76 6 7c-.4-2.65 1-5 3.5-5s3.9 2.35 3.5 5c-.26 1.76-1.64 3.55-3 3.92v5.77l2.07-3.84c-.44-.23-.77-.71-.99-1.3 1.48-.83 2.65-2.69 2.91-4.4.06-.41.08-.82.07-1.22.46-.01.92.08 1.39.32z";break;case"buddicons-pm":e="M10 2c3 0 8 5 8 5v11H2V7s5-5 8-5zm7 14.72l-3.73-2.92L17 11l-.43-.37-2.26 1.3.24-4.31-8.77-.52-.46 4.54-1.99-.95L3 11l3.73 2.8-3.44 2.85.4.43L10 13l6.53 4.15z";break;case"buddicons-replies":e="M17.54 10.29c1.17 1.17 1.17 3.08 0 4.25-1.18 1.17-3.08 1.17-4.25 0l-.34-.52c0 3.66-2 4.38-2.95 4.98-.82-.6-2.95-1.28-2.95-4.98l-.34.52c-1.17 1.17-3.07 1.17-4.25 0-1.17-1.17-1.17-3.08 0-4.25 0 0 1.02-.67 2.1-1.3C3.71 7.84 3.2 6.42 3.2 4.88c0-.34.03-.67.08-1C3.53 5.66 4.47 7.22 5.8 8.3c.67-.35 1.85-.83 2.37-.92H8c-1.1 0-2-.9-2-2s.9-2 2-2v-.5c0-.28.22-.5.5-.5s.5.22.5.5v.5h2v-.5c0-.28.22-.5.5-.5s.5.22.5.5v.5c1.1 0 2 .9 2 2s-.9 2-2 2h-.17c.51.09 1.78.61 2.38.92 1.33-1.08 2.27-2.64 2.52-4.42.05.33.08.66.08 1 0 1.54-.51 2.96-1.36 4.11 1.08.63 2.09 1.3 2.09 1.3zM8.5 6.38c.5 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm3-2c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm-2.3 5.73c-.12.11-.19.26-.19.43.02.25.23.46.49.46h1c.26 0 .47-.21.49-.46 0-.15-.07-.29-.19-.43-.08-.06-.18-.11-.3-.11h-1c-.12 0-.22.05-.3.11zM12 12.5c0-.12-.06-.28-.19-.38-.09-.07-.19-.12-.31-.12h-3c-.12 0-.22.05-.31.12-.11.1-.19.25-.19.38 0 .28.22.5.5.5h3c.28 0 .5-.22.5-.5zM8.5 15h3c.28 0 .5-.22.5-.5s-.22-.5-.5-.5h-3c-.28 0-.5.22-.5.5s.22.5.5.5zm1 2h1c.28 0 .5-.22.5-.5s-.22-.5-.5-.5h-1c-.28 0-.5.22-.5.5s.22.5.5.5z";break;case"buddicons-topics":e="M10.44 1.66c-.59-.58-1.54-.58-2.12 0L2.66 7.32c-.58.58-.58 1.53 0 2.12.6.6 1.56.56 2.12 0l5.66-5.66c.58-.58.59-1.53 0-2.12zm2.83 2.83c-.59-.59-1.54-.59-2.12 0l-5.66 5.66c-.59.58-.59 1.53 0 2.12.6.6 1.56.55 2.12 0l5.66-5.66c.58-.58.58-1.53 0-2.12zm1.06 6.72l4.18 4.18c.59.58.59 1.53 0 2.12s-1.54.59-2.12 0l-4.18-4.18-1.77 1.77c-.59.58-1.54.58-2.12 0-.59-.59-.59-1.54 0-2.13l5.66-5.65c.58-.59 1.53-.59 2.12 0 .58.58.58 1.53 0 2.12zM5 15c0-1.59-1.66-4-1.66-4S2 13.78 2 15s.6 2 1.34 2h.32C4.4 17 5 16.59 5 15z";break;case"buddicons-tracking":e="M10.98 6.78L15.5 15c-1 2-3.5 3-5.5 3s-4.5-1-5.5-3L9 6.82c-.75-1.23-2.28-1.98-4.29-2.03l2.46-2.92c1.68 1.19 2.46 2.32 2.97 3.31.56-.87 1.2-1.68 2.7-2.12l1.83 2.86c-1.42-.34-2.64.08-3.69.86zM8.17 10.4l-.93 1.69c.49.11 1 .16 1.54.16 1.35 0 2.58-.36 3.55-.95l-1.01-1.82c-.87.53-1.96.86-3.15.92zm.86 5.38c1.99 0 3.73-.74 4.74-1.86l-.98-1.76c-1 1.12-2.74 1.87-4.74 1.87-.62 0-1.21-.08-1.76-.21l-.63 1.15c.94.5 2.1.81 3.37.81z";break;case"building":e="M3 20h14V0H3v20zM7 3H5V1h2v2zm4 0H9V1h2v2zm4 0h-2V1h2v2zM7 6H5V4h2v2zm4 0H9V4h2v2zm4 0h-2V4h2v2zM7 9H5V7h2v2zm4 0H9V7h2v2zm4 0h-2V7h2v2zm-8 3H5v-2h2v2zm4 0H9v-2h2v2zm4 0h-2v-2h2v2zm-4 7H5v-6h6v6zm4-4h-2v-2h2v2zm0 3h-2v-2h2v2z";break;case"businessman":e="M7.3 6l-.03-.19c-.04-.37-.05-.73-.03-1.08.02-.36.1-.71.25-1.04.14-.32.31-.61.52-.86s.49-.46.83-.6c.34-.15.72-.23 1.13-.23.69 0 1.26.2 1.71.59s.76.87.91 1.44.18 1.16.09 1.78l-.03.19c-.01.09-.05.25-.11.48-.05.24-.12.47-.2.69-.08.21-.19.45-.34.72-.14.27-.3.49-.47.69-.18.19-.4.34-.67.48-.27.13-.55.19-.86.19s-.59-.06-.87-.19c-.26-.13-.49-.29-.67-.5-.18-.2-.34-.42-.49-.66-.15-.25-.26-.49-.34-.73-.09-.25-.16-.47-.21-.67-.06-.21-.1-.37-.12-.5zm9.2 6.24c.41.7.5 1.41.5 2.14v2.49c0 .03-.12.08-.29.13-.18.04-.42.13-.97.27-.55.12-1.1.24-1.65.34s-1.19.19-1.95.27c-.75.08-1.46.12-2.13.12-.68 0-1.39-.04-2.14-.12-.75-.07-1.4-.17-1.98-.27-.58-.11-1.08-.23-1.56-.34-.49-.11-.8-.21-1.06-.29L3 16.87v-2.49c0-.75.07-1.46.46-2.15s.81-1.25 1.5-1.68C5.66 10.12 7.19 10 8 10l1.67 1.67L9 13v3l1.02 1.08L11 16v-3l-.68-1.33L11.97 10c.77 0 2.2.07 2.9.52.71.45 1.21 1.02 1.63 1.72z";break;case"button":e="M17 5H3c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm1 7c0 .6-.4 1-1 1H3c-.6 0-1-.4-1-1V7c0-.6.4-1 1-1h14c.6 0 1 .4 1 1v5z";break;case"calendar-alt":e="M15 4h3v15H2V4h3V3c0-.41.15-.76.44-1.06.29-.29.65-.44 1.06-.44s.77.15 1.06.44c.29.3.44.65.44 1.06v1h4V3c0-.41.15-.76.44-1.06.29-.29.65-.44 1.06-.44s.77.15 1.06.44c.29.3.44.65.44 1.06v1zM6 3v2.5c0 .14.05.26.15.36.09.09.21.14.35.14s.26-.05.35-.14c.1-.1.15-.22.15-.36V3c0-.14-.05-.26-.15-.35-.09-.1-.21-.15-.35-.15s-.26.05-.35.15c-.1.09-.15.21-.15.35zm7 0v2.5c0 .14.05.26.14.36.1.09.22.14.36.14s.26-.05.36-.14c.09-.1.14-.22.14-.36V3c0-.14-.05-.26-.14-.35-.1-.1-.22-.15-.36-.15s-.26.05-.36.15c-.09.09-.14.21-.14.35zm4 15V8H3v10h14zM7 9v2H5V9h2zm2 0h2v2H9V9zm4 2V9h2v2h-2zm-6 1v2H5v-2h2zm2 0h2v2H9v-2zm4 2v-2h2v2h-2zm-6 1v2H5v-2h2zm4 2H9v-2h2v2zm4 0h-2v-2h2v2z";break;case"calendar":e="M15 4h3v14H2V4h3V3c0-.83.67-1.5 1.5-1.5S8 2.17 8 3v1h4V3c0-.83.67-1.5 1.5-1.5S15 2.17 15 3v1zM6 3v2.5c0 .28.22.5.5.5s.5-.22.5-.5V3c0-.28-.22-.5-.5-.5S6 2.72 6 3zm7 0v2.5c0 .28.22.5.5.5s.5-.22.5-.5V3c0-.28-.22-.5-.5-.5s-.5.22-.5.5zm4 14V8H3v9h14zM7 16V9H5v7h2zm4 0V9H9v7h2zm4 0V9h-2v7h2z";break;case"camera":e="M6 5V3H3v2h3zm12 10V4H9L7 6H2v9h16zm-7-8c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3z";break;case"carrot":e="M2 18.43c1.51 1.36 11.64-4.67 13.14-7.21.72-1.22-.13-3.01-1.52-4.44C15.2 5.73 16.59 9 17.91 8.31c.6-.32.99-1.31.7-1.92-.52-1.08-2.25-1.08-3.42-1.21.83-.2 2.82-1.05 2.86-2.25.04-.92-1.13-1.97-2.05-1.86-1.21.14-1.65 1.88-2.06 3-.05-.71-.2-2.27-.98-2.95-1.04-.91-2.29-.05-2.32 1.05-.04 1.33 2.82 2.07 1.92 3.67C11.04 4.67 9.25 4.03 8.1 4.7c-.49.31-1.05.91-1.63 1.69.89.94 2.12 2.07 3.09 2.72.2.14.26.42.11.62-.14.21-.42.26-.62.12-.99-.67-2.2-1.78-3.1-2.71-.45.67-.91 1.43-1.34 2.23.85.86 1.93 1.83 2.79 2.41.2.14.25.42.11.62-.14.21-.42.26-.63.12-.85-.58-1.86-1.48-2.71-2.32C2.4 13.69 1.1 17.63 2 18.43z";break;case"cart":e="M6 13h9c.55 0 1 .45 1 1s-.45 1-1 1H5c-.55 0-1-.45-1-1V4H2c-.55 0-1-.45-1-1s.45-1 1-1h3c.55 0 1 .45 1 1v2h13l-4 7H6v1zm-.5 3c.83 0 1.5.67 1.5 1.5S6.33 19 5.5 19 4 18.33 4 17.5 4.67 16 5.5 16zm9 0c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5-1.5-.67-1.5-1.5.67-1.5 1.5-1.5z";break;case"category":e="M5 7h13v10H2V4h7l2 2H4v9h1V7z";break;case"chart-area":e="M18 18l.01-12.28c.59-.35.99-.99.99-1.72 0-1.1-.9-2-2-2s-2 .9-2 2c0 .8.47 1.48 1.14 1.8l-4.13 6.58c-.33-.24-.73-.38-1.16-.38-.84 0-1.55.51-1.85 1.24l-2.14-1.53c.09-.22.14-.46.14-.71 0-1.11-.89-2-2-2-1.1 0-2 .89-2 2 0 .73.4 1.36.98 1.71L1 18h17zM17 3c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zM5 10c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm5.85 3c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1z";break;case"chart-bar":e="M18 18V2h-4v16h4zm-6 0V7H8v11h4zm-6 0v-8H2v8h4z";break;case"chart-line":e="M18 3.5c0 .62-.38 1.16-.92 1.38v13.11H1.99l4.22-6.73c-.13-.23-.21-.48-.21-.76C6 9.67 6.67 9 7.5 9S9 9.67 9 10.5c0 .13-.02.25-.05.37l1.44.63c.27-.3.67-.5 1.11-.5.18 0 .35.04.51.09l3.58-6.41c-.36-.27-.59-.7-.59-1.18 0-.83.67-1.5 1.5-1.5.19 0 .36.04.53.1l.05-.09v.11c.54.22.92.76.92 1.38zm-1.92 13.49V5.85l-3.29 5.89c.13.23.21.48.21.76 0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5l.01-.07-1.63-.72c-.25.18-.55.29-.88.29-.18 0-.35-.04-.51-.1l-3.2 5.09h12.29z";break;case"chart-pie":e="M10 10V3c3.87 0 7 3.13 7 7h-7zM9 4v7h7c0 3.87-3.13 7-7 7s-7-3.13-7-7 3.13-7 7-7z";break;case"clipboard":e="M11.9.39l1.4 1.4c1.61.19 3.5-.74 4.61.37s.18 3 .37 4.61l1.4 1.4c.39.39.39 1.02 0 1.41l-9.19 9.2c-.4.39-1.03.39-1.42 0L1.29 11c-.39-.39-.39-1.02 0-1.42l9.2-9.19c.39-.39 1.02-.39 1.41 0zm.58 2.25l-.58.58 4.95 4.95.58-.58c-.19-.6-.2-1.22-.15-1.82.02-.31.05-.62.09-.92.12-1 .18-1.63-.17-1.98s-.98-.29-1.98-.17c-.3.04-.61.07-.92.09-.6.05-1.22.04-1.82-.15zm4.02.93c.39.39.39 1.03 0 1.42s-1.03.39-1.42 0-.39-1.03 0-1.42 1.03-.39 1.42 0zm-6.72.36l-.71.7L15.44 11l.7-.71zM8.36 5.34l-.7.71 6.36 6.36.71-.7zM6.95 6.76l-.71.7 6.37 6.37.7-.71zM5.54 8.17l-.71.71 6.36 6.36.71-.71zM4.12 9.58l-.71.71 6.37 6.37.71-.71z";break;case"clock":e="M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm0 14c3.31 0 6-2.69 6-6s-2.69-6-6-6-6 2.69-6 6 2.69 6 6 6zm-.71-5.29c.07.05.14.1.23.15l-.02.02L14 13l-3.03-3.19L10 5l-.97 4.81h.01c0 .02-.01.05-.02.09S9 9.97 9 10c0 .28.1.52.29.71z";break;case"cloud-saved":e="M14.8 9c.1-.3.2-.6.2-1 0-2.2-1.8-4-4-4-1.5 0-2.9.9-3.5 2.2-.3-.1-.7-.2-1-.2C5.1 6 4 7.1 4 8.5c0 .2 0 .4.1.5-1.8.3-3.1 1.7-3.1 3.5C1 14.4 2.6 16 4.5 16h10c1.9 0 3.5-1.6 3.5-3.5 0-1.8-1.4-3.3-3.2-3.5zm-6.3 5.9l-3.2-3.2 1.4-1.4 1.8 1.8 3.8-3.8 1.4 1.4-5.2 5.2z";break;case"cloud-upload":e="M14.8 9c.1-.3.2-.6.2-1 0-2.2-1.8-4-4-4-1.5 0-2.9.9-3.5 2.2-.3-.1-.7-.2-1-.2C5.1 6 4 7.1 4 8.5c0 .2 0 .4.1.5-1.8.3-3.1 1.7-3.1 3.5C1 14.4 2.6 16 4.5 16H8v-3H5l4.5-4.5L14 13h-3v3h3.5c1.9 0 3.5-1.6 3.5-3.5 0-1.8-1.4-3.3-3.2-3.5z";break;case"cloud":e="M14.9 9c1.8.2 3.1 1.7 3.1 3.5 0 1.9-1.6 3.5-3.5 3.5h-10C2.6 16 1 14.4 1 12.5 1 10.7 2.3 9.3 4.1 9 4 8.9 4 8.7 4 8.5 4 7.1 5.1 6 6.5 6c.3 0 .7.1.9.2C8.1 4.9 9.4 4 11 4c2.2 0 4 1.8 4 4 0 .4-.1.7-.1 1z";break;case"columns":e="M3 15h6V5H3v10zm8 0h6V5h-6v10z";break;case"controls-back":e="M2 10l10-6v3.6L18 4v12l-6-3.6V16z";break;case"controls-forward":e="M18 10L8 16v-3.6L2 16V4l6 3.6V4z";break;case"controls-pause":e="M5 16V4h3v12H5zm7-12h3v12h-3V4z";break;case"controls-play":e="M5 4l10 6-10 6V4z";break;case"controls-repeat":e="M5 7v3l-2 1.5V5h11V3l4 3.01L14 9V7H5zm10 6v-3l2-1.5V15H6v2l-4-3.01L6 11v2h9z";break;case"controls-skipback":e="M11.98 7.63l6-3.6v12l-6-3.6v3.6l-8-4.8v4.8h-2v-12h2v4.8l8-4.8v3.6z";break;case"controls-skipforward":e="M8 12.4L2 16V4l6 3.6V4l8 4.8V4h2v12h-2v-4.8L8 16v-3.6z";break;case"controls-volumeoff":e="M2 7h4l5-4v14l-5-4H2V7z";break;case"controls-volumeon":e="M2 7h4l5-4v14l-5-4H2V7zm12.69-2.46C14.82 4.59 18 5.92 18 10s-3.18 5.41-3.31 5.46c-.06.03-.13.04-.19.04-.2 0-.39-.12-.46-.31-.11-.26.02-.55.27-.65.11-.05 2.69-1.15 2.69-4.54 0-3.41-2.66-4.53-2.69-4.54-.25-.1-.38-.39-.27-.65.1-.25.39-.38.65-.27zM16 10c0 2.57-2.23 3.43-2.32 3.47-.06.02-.12.03-.18.03-.2 0-.39-.12-.47-.32-.1-.26.04-.55.29-.65.07-.02 1.68-.67 1.68-2.53s-1.61-2.51-1.68-2.53c-.25-.1-.38-.39-.29-.65.1-.25.39-.39.65-.29.09.04 2.32.9 2.32 3.47z";break;case"cover-image":e="M2.2 1h15.5c.7 0 1.3.6 1.3 1.2v11.5c0 .7-.6 1.2-1.2 1.2H2.2c-.6.1-1.2-.5-1.2-1.1V2.2C1 1.6 1.6 1 2.2 1zM17 13V3H3v10h14zm-4-4s0-5 3-5v7c0 .6-.4 1-1 1H5c-.6 0-1-.4-1-1V7c2 0 3 4 3 4s1-4 3-4 3 2 3 2zM4 17h12v2H4z";break;case"dashboard":e="M3.76 16h12.48c1.1-1.37 1.76-3.11 1.76-5 0-4.42-3.58-8-8-8s-8 3.58-8 8c0 1.89.66 3.63 1.76 5zM10 4c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zM6 6c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm8 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm-5.37 5.55L12 7v6c0 1.1-.9 2-2 2s-2-.9-2-2c0-.57.24-1.08.63-1.45zM4 10c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm12 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm-5 3c0-.55-.45-1-1-1s-1 .45-1 1 .45 1 1 1 1-.45 1-1z";break;case"desktop":e="M3 2h14c.55 0 1 .45 1 1v10c0 .55-.45 1-1 1h-5v2h2c.55 0 1 .45 1 1v1H5v-1c0-.55.45-1 1-1h2v-2H3c-.55 0-1-.45-1-1V3c0-.55.45-1 1-1zm13 9V4H4v7h12zM5 5h9L5 9V5z";break;case"dismiss":e="M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm5 11l-3-3 3-3-2-2-3 3-3-3-2 2 3 3-3 3 2 2 3-3 3 3z";break;case"download":e="M14.01 4v6h2V2H4v8h2.01V4h8zm-2 2v6h3l-5 6-5-6h3V6h4z";break;case"edit":e="M13.89 3.39l2.71 2.72c.46.46.42 1.24.03 1.64l-8.01 8.02-5.56 1.16 1.16-5.58s7.6-7.63 7.99-8.03c.39-.39 1.22-.39 1.68.07zm-2.73 2.79l-5.59 5.61 1.11 1.11 5.54-5.65zm-2.97 8.23l5.58-5.6-1.07-1.08-5.59 5.6z";break;case"editor-aligncenter":e="M14 5V3H6v2h8zm3 4V7H3v2h14zm-3 4v-2H6v2h8zm3 4v-2H3v2h14z";break;case"editor-alignleft":e="M12 5V3H3v2h9zm5 4V7H3v2h14zm-5 4v-2H3v2h9zm5 4v-2H3v2h14z";break;case"editor-alignright":e="M17 5V3H8v2h9zm0 4V7H3v2h14zm0 4v-2H8v2h9zm0 4v-2H3v2h14z";break;case"editor-bold":e="M6 4v13h4.54c1.37 0 2.46-.33 3.26-1 .8-.66 1.2-1.58 1.2-2.77 0-.84-.17-1.51-.51-2.01s-.9-.85-1.67-1.03v-.09c.57-.1 1.02-.4 1.36-.9s.51-1.13.51-1.91c0-1.14-.39-1.98-1.17-2.5C12.75 4.26 11.5 4 9.78 4H6zm2.57 5.15V6.26h1.36c.73 0 1.27.11 1.61.32.34.22.51.58.51 1.07 0 .54-.16.92-.47 1.15s-.82.35-1.51.35h-1.5zm0 2.19h1.6c1.44 0 2.16.53 2.16 1.61 0 .6-.17 1.05-.51 1.34s-.86.43-1.57.43H8.57v-3.38z";break;case"editor-break":e="M16 4h2v9H7v3l-5-4 5-4v3h9V4z";break;case"editor-code":e="M9 6l-4 4 4 4-1 2-6-6 6-6zm2 8l4-4-4-4 1-2 6 6-6 6z";break;case"editor-contract":e="M15.75 6.75L18 3v14l-2.25-3.75L17 12h-4v4l1.25-1.25L18 17H2l3.75-2.25L7 16v-4H3l1.25 1.25L2 17V3l2.25 3.75L3 8h4V4L5.75 5.25 2 3h16l-3.75 2.25L13 4v4h4z";break;case"editor-customchar":e="M10 5.4c1.27 0 2.24.36 2.91 1.08.66.71 1 1.76 1 3.13 0 1.28-.23 2.37-.69 3.27-.47.89-1.27 1.52-2.22 2.12v2h6v-2h-3.69c.92-.64 1.62-1.34 2.12-2.34.49-1.01.74-2.13.74-3.35 0-1.78-.55-3.19-1.65-4.22S11.92 3.54 10 3.54s-3.43.53-4.52 1.57c-1.1 1.04-1.65 2.44-1.65 4.2 0 1.21.24 2.31.73 3.33.48 1.01 1.19 1.71 2.1 2.36H3v2h6v-2c-.98-.64-1.8-1.28-2.24-2.17-.45-.89-.67-1.96-.67-3.22 0-1.37.33-2.41 1-3.13C7.75 5.76 8.72 5.4 10 5.4z";break;case"editor-expand":e="M7 8h6v4H7zm-5 5v4h4l-1.2-1.2L7 12l-3.8 2.2M14 17h4v-4l-1.2 1.2L13 12l2.2 3.8M14 3l1.3 1.3L13 8l3.8-2.2L18 7V3M6 3H2v4l1.2-1.2L7 8 4.7 4.3";break;case"editor-help":e="M17 10c0-3.87-3.14-7-7-7-3.87 0-7 3.13-7 7s3.13 7 7 7c3.86 0 7-3.13 7-7zm-6.3 1.48H9.14v-.43c0-.38.08-.7.24-.98s.46-.57.88-.89c.41-.29.68-.53.81-.71.14-.18.2-.39.2-.62 0-.25-.09-.44-.28-.58-.19-.13-.45-.19-.79-.19-.58 0-1.25.19-2 .57l-.64-1.28c.87-.49 1.8-.74 2.77-.74.81 0 1.45.2 1.92.58.48.39.71.91.71 1.55 0 .43-.09.8-.29 1.11-.19.32-.57.67-1.11 1.06-.38.28-.61.49-.71.63-.1.15-.15.34-.15.57v.35zm-1.47 2.74c-.18-.17-.27-.42-.27-.73 0-.33.08-.58.26-.75s.43-.25.77-.25c.32 0 .57.09.75.26s.27.42.27.74c0 .3-.09.55-.27.72-.18.18-.43.27-.75.27-.33 0-.58-.09-.76-.26z";break;case"editor-indent":e="M3 5V3h9v2H3zm10-1V3h4v1h-4zm0 3h2V5l4 3.5-4 3.5v-2h-2V7zM3 8V6h9v2H3zm2 3V9h7v2H5zm-2 3v-2h9v2H3zm10 0v-1h4v1h-4zm-4 3v-2h3v2H9z";break;case"editor-insertmore":e="M17 7V3H3v4h14zM6 11V9H3v2h3zm6 0V9H8v2h4zm5 0V9h-3v2h3zm0 6v-4H3v4h14z";break;case"editor-italic":e="M14.78 6h-2.13l-2.8 9h2.12l-.62 2H4.6l.62-2h2.14l2.8-9H8.03l.62-2h6.75z";break;case"editor-justify":e="M2 3h16v2H2V3zm0 4h16v2H2V7zm0 4h16v2H2v-2zm0 4h16v2H2v-2z";break;case"editor-kitchensink":e="M19 2v6H1V2h18zm-1 5V3H2v4h16zM5 4v2H3V4h2zm3 0v2H6V4h2zm3 0v2H9V4h2zm3 0v2h-2V4h2zm3 0v2h-2V4h2zm2 5v9H1V9h18zm-1 8v-7H2v7h16zM5 11v2H3v-2h2zm3 0v2H6v-2h2zm3 0v2H9v-2h2zm6 0v2h-5v-2h5zm-6 3v2H3v-2h8zm3 0v2h-2v-2h2zm3 0v2h-2v-2h2z";break;case"editor-ltr":e="M5.52 2h7.43c.55 0 1 .45 1 1s-.45 1-1 1h-1v13c0 .55-.45 1-1 1s-1-.45-1-1V5c0-.55-.45-1-1-1s-1 .45-1 1v12c0 .55-.45 1-1 1s-1-.45-1-1v-5.96h-.43C3.02 11.04 1 9.02 1 6.52S3.02 2 5.52 2zM14 14l5-4-5-4v8z";break;case"editor-ol-rtl":e="M15.025 8.75a1.048 1.048 0 0 1 .45-.1.507.507 0 0 1 .35.11.455.455 0 0 1 .13.36.803.803 0 0 1-.06.3 1.448 1.448 0 0 1-.19.33c-.09.11-.29.32-.58.62l-.99 1v.58h2.76v-.7h-1.72v-.04l.51-.48a7.276 7.276 0 0 0 .7-.71 1.75 1.75 0 0 0 .3-.49 1.254 1.254 0 0 0 .1-.51.968.968 0 0 0-.16-.56 1.007 1.007 0 0 0-.44-.37 1.512 1.512 0 0 0-.65-.14 1.98 1.98 0 0 0-.51.06 1.9 1.9 0 0 0-.42.15 3.67 3.67 0 0 0-.48.35l.45.54a2.505 2.505 0 0 1 .45-.3zM16.695 15.29a1.29 1.29 0 0 0-.74-.3v-.02a1.203 1.203 0 0 0 .65-.37.973.973 0 0 0 .23-.65.81.81 0 0 0-.37-.71 1.72 1.72 0 0 0-1-.26 2.185 2.185 0 0 0-1.33.4l.4.6a1.79 1.79 0 0 1 .46-.23 1.18 1.18 0 0 1 .41-.07c.38 0 .58.15.58.46a.447.447 0 0 1-.22.43 1.543 1.543 0 0 1-.7.12h-.31v.66h.31a1.764 1.764 0 0 1 .75.12.433.433 0 0 1 .23.41.55.55 0 0 1-.2.47 1.084 1.084 0 0 1-.63.15 2.24 2.24 0 0 1-.57-.08 2.671 2.671 0 0 1-.52-.2v.74a2.923 2.923 0 0 0 1.18.22 1.948 1.948 0 0 0 1.22-.33 1.077 1.077 0 0 0 .43-.92.836.836 0 0 0-.26-.64zM15.005 4.17c.06-.05.16-.14.3-.28l-.02.42V7h.84V3h-.69l-1.29 1.03.4.51zM4.02 5h9v1h-9zM4.02 10h9v1h-9zM4.02 15h9v1h-9z";break;case"editor-ol":e="M6 7V3h-.69L4.02 4.03l.4.51.46-.37c.06-.05.16-.14.3-.28l-.02.42V7H6zm2-2h9v1H8V5zm-1.23 6.95v-.7H5.05v-.04l.51-.48c.33-.31.57-.54.7-.71.14-.17.24-.33.3-.49.07-.16.1-.33.1-.51 0-.21-.05-.4-.16-.56-.1-.16-.25-.28-.44-.37s-.41-.14-.65-.14c-.19 0-.36.02-.51.06-.15.03-.29.09-.42.15-.12.07-.29.19-.48.35l.45.54c.16-.13.31-.23.45-.3.15-.07.3-.1.45-.1.14 0 .26.03.35.11s.13.2.13.36c0 .1-.02.2-.06.3s-.1.21-.19.33c-.09.11-.29.32-.58.62l-.99 1v.58h2.76zM8 10h9v1H8v-1zm-1.29 3.95c0-.3-.12-.54-.37-.71-.24-.17-.58-.26-1-.26-.52 0-.96.13-1.33.4l.4.6c.17-.11.32-.19.46-.23.14-.05.27-.07.41-.07.38 0 .58.15.58.46 0 .2-.07.35-.22.43s-.38.12-.7.12h-.31v.66h.31c.34 0 .59.04.75.12.15.08.23.22.23.41 0 .22-.07.37-.2.47-.14.1-.35.15-.63.15-.19 0-.38-.03-.57-.08s-.36-.12-.52-.2v.74c.34.15.74.22 1.18.22.53 0 .94-.11 1.22-.33.29-.22.43-.52.43-.92 0-.27-.09-.48-.26-.64s-.42-.26-.74-.3v-.02c.27-.06.49-.19.65-.37.15-.18.23-.39.23-.65zM8 15h9v1H8v-1z";break;case"editor-outdent":e="M7 4V3H3v1h4zm10 1V3H8v2h9zM7 7H5V5L1 8.5 5 12v-2h2V7zm10 1V6H8v2h9zm-2 3V9H8v2h7zm2 3v-2H8v2h9zM7 14v-1H3v1h4zm4 3v-2H8v2h3z";break;case"editor-paragraph":e="M15 2H7.54c-.83 0-1.59.2-2.28.6-.7.41-1.25.96-1.65 1.65C3.2 4.94 3 5.7 3 6.52s.2 1.58.61 2.27c.4.69.95 1.24 1.65 1.64.69.41 1.45.61 2.28.61h.43V17c0 .27.1.51.29.71.2.19.44.29.71.29.28 0 .51-.1.71-.29.2-.2.3-.44.3-.71V5c0-.27.09-.51.29-.71.2-.19.44-.29.71-.29s.51.1.71.29c.19.2.29.44.29.71v12c0 .27.1.51.3.71.2.19.43.29.71.29.27 0 .51-.1.71-.29.19-.2.29-.44.29-.71V4H15c.27 0 .5-.1.7-.3.2-.19.3-.43.3-.7s-.1-.51-.3-.71C15.5 2.1 15.27 2 15 2z";break;case"editor-paste-text":e="M12.38 2L15 5v1H5V5l2.64-3h4.74zM10 5c.55 0 1-.44 1-1 0-.55-.45-1-1-1s-1 .45-1 1c0 .56.45 1 1 1zm5.45-1H17c.55 0 1 .45 1 1v12c0 .56-.45 1-1 1H3c-.55 0-1-.44-1-1V5c0-.55.45-1 1-1h1.55L4 4.63V7h12V4.63zM14 11V9H6v2h3v5h2v-5h3z";break;case"editor-paste-word":e="M12.38 2L15 5v1H5V5l2.64-3h4.74zM10 5c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm8 12V5c0-.55-.45-1-1-1h-1.54l.54.63V7H4V4.62L4.55 4H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h14c.55 0 1-.45 1-1zm-3-8l-2 7h-2l-1-5-1 5H6.92L5 9h2l1 5 1-5h2l1 5 1-5h2z";break;case"editor-quote":e="M9.49 13.22c0-.74-.2-1.38-.61-1.9-.62-.78-1.83-.88-2.53-.72-.29-1.65 1.11-3.75 2.92-4.65L7.88 4c-2.73 1.3-5.42 4.28-4.96 8.05C3.21 14.43 4.59 16 6.54 16c.85 0 1.56-.25 2.12-.75s.83-1.18.83-2.03zm8.05 0c0-.74-.2-1.38-.61-1.9-.63-.78-1.83-.88-2.53-.72-.29-1.65 1.11-3.75 2.92-4.65L15.93 4c-2.73 1.3-5.41 4.28-4.95 8.05.29 2.38 1.66 3.95 3.61 3.95.85 0 1.56-.25 2.12-.75s.83-1.18.83-2.03z";break;case"editor-removeformatting":e="M14.29 4.59l1.1 1.11c.41.4.61.94.61 1.47v2.12c0 .53-.2 1.07-.61 1.47l-6.63 6.63c-.4.41-.94.61-1.47.61s-1.07-.2-1.47-.61l-1.11-1.1-1.1-1.11c-.41-.4-.61-.94-.61-1.47v-2.12c0-.54.2-1.07.61-1.48l6.63-6.62c.4-.41.94-.61 1.47-.61s1.06.2 1.47.61zm-6.21 9.7l6.42-6.42c.39-.39.39-1.03 0-1.43L12.36 4.3c-.19-.19-.45-.29-.72-.29s-.52.1-.71.29l-6.42 6.42c-.39.4-.39 1.04 0 1.43l2.14 2.14c.38.38 1.04.38 1.43 0z";break;case"editor-rtl":e="M5.52 2h7.43c.55 0 1 .45 1 1s-.45 1-1 1h-1v13c0 .55-.45 1-1 1s-1-.45-1-1V5c0-.55-.45-1-1-1s-1 .45-1 1v12c0 .55-.45 1-1 1s-1-.45-1-1v-5.96h-.43C3.02 11.04 1 9.02 1 6.52S3.02 2 5.52 2zM19 6l-5 4 5 4V6z";break;case"editor-spellcheck":e="M15.84 2.76c.25 0 .49.04.71.11.23.07.44.16.64.25l.35-.81c-.52-.26-1.08-.39-1.69-.39-.58 0-1.09.13-1.52.37-.43.25-.76.61-.99 1.08C13.11 3.83 13 4.38 13 5c0 .99.23 1.75.7 2.28s1.15.79 2.02.79c.6 0 1.13-.09 1.6-.26v-.84c-.26.08-.51.14-.74.19-.24.05-.49.08-.74.08-.59 0-1.04-.19-1.34-.57-.32-.37-.47-.93-.47-1.66 0-.7.16-1.25.48-1.65.33-.4.77-.6 1.33-.6zM6.5 8h1.04L5.3 2H4.24L2 8h1.03l.58-1.66H5.9zM8 2v6h2.17c.67 0 1.19-.15 1.57-.46.38-.3.56-.72.56-1.26 0-.4-.1-.72-.3-.95-.19-.24-.5-.39-.93-.47v-.04c.35-.06.6-.21.78-.44.18-.24.28-.53.28-.88 0-.52-.19-.9-.56-1.14-.36-.24-.96-.36-1.79-.36H8zm.98 2.48V2.82h.85c.44 0 .77.06.97.19.21.12.31.33.31.61 0 .31-.1.53-.29.66-.18.13-.48.2-.89.2h-.95zM5.64 5.5H3.9l.54-1.56c.14-.4.25-.76.32-1.1l.15.52c.07.23.13.4.17.51zm3.34-.23h.99c.44 0 .76.08.98.23.21.15.32.38.32.69 0 .34-.11.59-.32.75s-.52.24-.93.24H8.98V5.27zM4 13l5 5 9-8-1-1-8 6-4-3z";break;case"editor-strikethrough":e="M15.82 12.25c.26 0 .5-.02.74-.07.23-.05.48-.12.73-.2v.84c-.46.17-.99.26-1.58.26-.88 0-1.54-.26-2.01-.79-.39-.44-.62-1.04-.68-1.79h-.94c.12.21.18.48.18.79 0 .54-.18.95-.55 1.26-.38.3-.9.45-1.56.45H8v-2.5H6.59l.93 2.5H6.49l-.59-1.67H3.62L3.04 13H2l.93-2.5H2v-1h1.31l.93-2.49H5.3l.92 2.49H8V7h1.77c1 0 1.41.17 1.77.41.37.24.55.62.55 1.13 0 .35-.09.64-.27.87l-.08.09h1.29c.05-.4.15-.77.31-1.1.23-.46.55-.82.98-1.06.43-.25.93-.37 1.51-.37.61 0 1.17.12 1.69.38l-.35.81c-.2-.1-.42-.18-.64-.25s-.46-.11-.71-.11c-.55 0-.99.2-1.31.59-.23.29-.38.66-.44 1.11H17v1h-2.95c.06.5.2.9.44 1.19.3.37.75.56 1.33.56zM4.44 8.96l-.18.54H5.3l-.22-.61c-.04-.11-.09-.28-.17-.51-.07-.24-.12-.41-.14-.51-.08.33-.18.69-.33 1.09zm4.53-1.09V9.5h1.19c.28-.02.49-.09.64-.18.19-.13.28-.35.28-.66 0-.28-.1-.48-.3-.61-.2-.12-.53-.18-.97-.18h-.84zm-3.33 2.64v-.01H3.91v.01h1.73zm5.28.01l-.03-.02H8.97v1.68h1.04c.4 0 .71-.08.92-.23.21-.16.31-.4.31-.74 0-.31-.11-.54-.32-.69z";break;case"editor-table":e="M18 17V3H2v14h16zM16 7H4V5h12v2zm-7 4H4V9h5v2zm7 0h-5V9h5v2zm-7 4H4v-2h5v2zm7 0h-5v-2h5v2z";break;case"editor-textcolor":e="M13.23 15h1.9L11 4H9L5 15h1.88l1.07-3h4.18zm-1.53-4.54H8.51L10 5.6z";break;case"editor-ul":e="M5.5 7C4.67 7 4 6.33 4 5.5 4 4.68 4.67 4 5.5 4 6.32 4 7 4.68 7 5.5 7 6.33 6.32 7 5.5 7zM8 5h9v1H8V5zm-2.5 7c-.83 0-1.5-.67-1.5-1.5C4 9.68 4.67 9 5.5 9c.82 0 1.5.68 1.5 1.5 0 .83-.68 1.5-1.5 1.5zM8 10h9v1H8v-1zm-2.5 7c-.83 0-1.5-.67-1.5-1.5 0-.82.67-1.5 1.5-1.5.82 0 1.5.68 1.5 1.5 0 .83-.68 1.5-1.5 1.5zM8 15h9v1H8v-1z";break;case"editor-underline":e="M14 5h-2v5.71c0 1.99-1.12 2.98-2.45 2.98-1.32 0-2.55-1-2.55-2.96V5H5v5.87c0 1.91 1 4.54 4.48 4.54 3.49 0 4.52-2.58 4.52-4.5V5zm0 13v-2H5v2h9z";break;case"editor-unlink":e="M17.74 2.26c1.68 1.69 1.68 4.41 0 6.1l-1.53 1.52c-.32.33-.69.58-1.08.77L13 10l1.69-1.64.76-.77.76-.76c.84-.84.84-2.2 0-3.04-.84-.85-2.2-.85-3.04 0l-.77.76-.76.76L10 7l-.65-2.14c.19-.38.44-.75.77-1.07l1.52-1.53c1.69-1.68 4.42-1.68 6.1 0zM2 4l8 6-6-8zm4-2l4 8-2-8H6zM2 6l8 4-8-2V6zm7.36 7.69L10 13l.74 2.35-1.38 1.39c-1.69 1.68-4.41 1.68-6.1 0-1.68-1.68-1.68-4.42 0-6.1l1.39-1.38L7 10l-.69.64-1.52 1.53c-.85.84-.85 2.2 0 3.04.84.85 2.2.85 3.04 0zM18 16l-8-6 6 8zm-4 2l-4-8 2 8h2zm4-4l-8-4 8 2v2z";break;case"editor-video":e="M16 2h-3v1H7V2H4v15h3v-1h6v1h3V2zM6 3v1H5V3h1zm9 0v1h-1V3h1zm-2 1v5H7V4h6zM6 5v1H5V5h1zm9 0v1h-1V5h1zM6 7v1H5V7h1zm9 0v1h-1V7h1zM6 9v1H5V9h1zm9 0v1h-1V9h1zm-2 1v5H7v-5h6zm-7 1v1H5v-1h1zm9 0v1h-1v-1h1zm-9 2v1H5v-1h1zm9 0v1h-1v-1h1zm-9 2v1H5v-1h1zm9 0v1h-1v-1h1z";break;case"ellipsis":e="M5 10c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm12-2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-7 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z";break;case"email-alt":e="M19 14.5v-9c0-.83-.67-1.5-1.5-1.5H3.49c-.83 0-1.5.67-1.5 1.5v9c0 .83.67 1.5 1.5 1.5H17.5c.83 0 1.5-.67 1.5-1.5zm-1.31-9.11c.33.33.15.67-.03.84L13.6 9.95l3.9 4.06c.12.14.2.36.06.51-.13.16-.43.15-.56.05l-4.37-3.73-2.14 1.95-2.13-1.95-4.37 3.73c-.13.1-.43.11-.56-.05-.14-.15-.06-.37.06-.51l3.9-4.06-4.06-3.72c-.18-.17-.36-.51-.03-.84s.67-.17.95.07l6.24 5.04 6.25-5.04c.28-.24.62-.4.95-.07z";break;case"email-alt2":e="M18.01 11.18V2.51c0-1.19-.9-1.81-2-1.37L4 5.91c-1.1.44-2 1.77-2 2.97v8.66c0 1.2.9 1.81 2 1.37l12.01-4.77c1.1-.44 2-1.76 2-2.96zm-1.43-7.46l-6.04 9.33-6.65-4.6c-.1-.07-.36-.32-.17-.64.21-.36.65-.21.65-.21l6.3 2.32s4.83-6.34 5.11-6.7c.13-.17.43-.34.73-.13.29.2.16.49.07.63z";break;case"email":e="M3.87 4h13.25C18.37 4 19 4.59 19 5.79v8.42c0 1.19-.63 1.79-1.88 1.79H3.87c-1.25 0-1.88-.6-1.88-1.79V5.79c0-1.2.63-1.79 1.88-1.79zm6.62 8.6l6.74-5.53c.24-.2.43-.66.13-1.07-.29-.41-.82-.42-1.17-.17l-5.7 3.86L4.8 5.83c-.35-.25-.88-.24-1.17.17-.3.41-.11.87.13 1.07z";break;case"embed-audio":e="M17 4H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-7 3H7v4c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2c.4 0 .7.1 1 .3V5h4v2zm4 3.5L12.5 12l1.5 1.5V15l-3-3 3-3v1.5zm1 4.5v-1.5l1.5-1.5-1.5-1.5V9l3 3-3 3z";break;case"embed-generic":e="M17 4H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-3 6.5L12.5 12l1.5 1.5V15l-3-3 3-3v1.5zm1 4.5v-1.5l1.5-1.5-1.5-1.5V9l3 3-3 3z";break;case"embed-photo":e="M17 4H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-7 8H3V6h7v6zm4-1.5L12.5 12l1.5 1.5V15l-3-3 3-3v1.5zm1 4.5v-1.5l1.5-1.5-1.5-1.5V9l3 3-3 3zm-6-4V8.5L7.2 10 6 9.2 4 11h5zM4.6 8.6c.6 0 1-.4 1-1s-.4-1-1-1-1 .4-1 1 .4 1 1 1z";break;case"embed-post":e="M17 4H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM8.6 9l-.4.3c-.4.4-.5 1.1-.2 1.6l-.8.8-1.1-1.1-1.3 1.3c-.2.2-1.6 1.3-1.8 1.1-.2-.2.9-1.6 1.1-1.8l1.3-1.3-1.1-1.1.8-.8c.5.3 1.2.3 1.6-.2l.3-.3c.5-.5.5-1.2.2-1.7L8 5l3 2.9-.8.8c-.5-.2-1.2-.2-1.6.3zm5.4 1.5L12.5 12l1.5 1.5V15l-3-3 3-3v1.5zm1 4.5v-1.5l1.5-1.5-1.5-1.5V9l3 3-3 3z";break;case"embed-video":e="M17 4H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-7 6.5L8 9.1V11H3V6h5v1.8l2-1.3v4zm4 0L12.5 12l1.5 1.5V15l-3-3 3-3v1.5zm1 4.5v-1.5l1.5-1.5-1.5-1.5V9l3 3-3 3z";break;case"excerpt-view":e="M19 18V2c0-.55-.45-1-1-1H2c-.55 0-1 .45-1 1v16c0 .55.45 1 1 1h16c.55 0 1-.45 1-1zM4 3c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm13 0v6H6V3h11zM4 11c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm13 0v6H6v-6h11z";break;case"exit":e="M13 3v2h2v10h-2v2h4V3h-4zm0 8V9H5.4l4.3-4.3-1.4-1.4L1.6 10l6.7 6.7 1.4-1.4L5.4 11H13z";break;case"external":e="M9 3h8v8l-2-1V6.92l-5.6 5.59-1.41-1.41L14.08 5H10zm3 12v-3l2-2v7H3V6h8L9 8H5v7h7z";break;case"facebook-alt":e="M8.46 18h2.93v-7.3h2.45l.37-2.84h-2.82V6.04c0-.82.23-1.38 1.41-1.38h1.51V2.11c-.26-.03-1.15-.11-2.19-.11-2.18 0-3.66 1.33-3.66 3.76v2.1H6v2.84h2.46V18z";break;case"facebook":e="M2.89 2h14.23c.49 0 .88.39.88.88v14.24c0 .48-.39.88-.88.88h-4.08v-6.2h2.08l.31-2.41h-2.39V7.85c0-.7.2-1.18 1.2-1.18h1.28V4.51c-.22-.03-.98-.09-1.86-.09-1.85 0-3.11 1.12-3.11 3.19v1.78H8.46v2.41h2.09V18H2.89c-.49 0-.89-.4-.89-.88V2.88c0-.49.4-.88.89-.88z";break;case"feedback":e="M2 2h16c.55 0 1 .45 1 1v14c0 .55-.45 1-1 1H2c-.55 0-1-.45-1-1V3c0-.55.45-1 1-1zm15 14V7H3v9h14zM4 8v1h3V8H4zm4 0v3h8V8H8zm-4 4v1h3v-1H4zm4 0v3h8v-3H8z";break;case"filter":e="M3 4.5v-2s3.34-1 7-1 7 1 7 1v2l-5 7.03v6.97s-1.22-.09-2.25-.59S8 16.5 8 16.5v-4.97z";break;case"flag":e="M5 18V3H3v15h2zm1-6V4c3-1 7 1 11 0v8c-3 1.27-8-1-11 0z";break;case"format-aside":e="M1 1h18v12l-6 6H1V1zm3 3v1h12V4H4zm0 4v1h12V8H4zm6 5v-1H4v1h6zm2 4l5-5h-5v5z";break;case"format-audio":e="M6.99 3.08l11.02-2c.55-.08.99.45.99 1V14.5c0 1.94-1.57 3.5-3.5 3.5S12 16.44 12 14.5c0-1.93 1.57-3.5 3.5-3.5.54 0 1.04.14 1.5.35V5.08l-9 2V16c-.24 1.7-1.74 3-3.5 3C2.57 19 1 17.44 1 15.5 1 13.57 2.57 12 4.5 12c.54 0 1.04.14 1.5.35V4.08c0-.55.44-.91.99-1z";break;case"format-chat":e="M11 6h-.82C9.07 6 8 7.2 8 8.16V10l-3 3v-3H3c-1.1 0-2-.9-2-2V3c0-1.1.9-2 2-2h6c1.1 0 2 .9 2 2v3zm0 1h6c1.1 0 2 .9 2 2v5c0 1.1-.9 2-2 2h-2v3l-3-3h-1c-1.1 0-2-.9-2-2V9c0-1.1.9-2 2-2z";break;case"format-gallery":e="M16 4h1.96c.57 0 1.04.47 1.04 1.04v12.92c0 .57-.47 1.04-1.04 1.04H5.04C4.47 19 4 18.53 4 17.96V16H2.04C1.47 16 1 15.53 1 14.96V2.04C1 1.47 1.47 1 2.04 1h12.92c.57 0 1.04.47 1.04 1.04V4zM3 14h11V3H3v11zm5-8.5C8 4.67 7.33 4 6.5 4S5 4.67 5 5.5 5.67 7 6.5 7 8 6.33 8 5.5zm2 4.5s1-5 3-5v8H4V7c2 0 2 3 2 3s.33-2 2-2 2 2 2 2zm7 7V6h-1v8.96c0 .57-.47 1.04-1.04 1.04H6v1h11z";break;case"format-image":e="M2.25 1h15.5c.69 0 1.25.56 1.25 1.25v15.5c0 .69-.56 1.25-1.25 1.25H2.25C1.56 19 1 18.44 1 17.75V2.25C1 1.56 1.56 1 2.25 1zM17 17V3H3v14h14zM10 6c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2zm3 5s0-6 3-6v10c0 .55-.45 1-1 1H5c-.55 0-1-.45-1-1V8c2 0 3 4 3 4s1-3 3-3 3 2 3 2z";break;case"format-quote":e="M8.54 12.74c0-.87-.24-1.61-.72-2.22-.73-.92-2.14-1.03-2.96-.85-.34-1.93 1.3-4.39 3.42-5.45L6.65 1.94C3.45 3.46.31 6.96.85 11.37 1.19 14.16 2.8 16 5.08 16c1 0 1.83-.29 2.48-.88.66-.59.98-1.38.98-2.38zm9.43 0c0-.87-.24-1.61-.72-2.22-.73-.92-2.14-1.03-2.96-.85-.34-1.93 1.3-4.39 3.42-5.45l-1.63-2.28c-3.2 1.52-6.34 5.02-5.8 9.43.34 2.79 1.95 4.63 4.23 4.63 1 0 1.83-.29 2.48-.88.66-.59.98-1.38.98-2.38z";break;case"format-status":e="M10 1c7 0 9 2.91 9 6.5S17 14 10 14s-9-2.91-9-6.5S3 1 10 1zM5.5 9C6.33 9 7 8.33 7 7.5S6.33 6 5.5 6 4 6.67 4 7.5 4.67 9 5.5 9zM10 9c.83 0 1.5-.67 1.5-1.5S10.83 6 10 6s-1.5.67-1.5 1.5S9.17 9 10 9zm4.5 0c.83 0 1.5-.67 1.5-1.5S15.33 6 14.5 6 13 6.67 13 7.5 13.67 9 14.5 9zM6 14.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5-1.5-.67-1.5-1.5.67-1.5 1.5-1.5zm-3 2c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1z";break;case"format-video":e="M2 1h16c.55 0 1 .45 1 1v16l-18-.02V2c0-.55.45-1 1-1zm4 1L4 5h1l2-3H6zm4 0H9L7 5h1zm3 0h-1l-2 3h1zm3 0h-1l-2 3h1zm1 14V6H3v10h14zM8 7l6 4-6 4V7z";break;case"forms":e="M2 2h7v7H2V2zm9 0v7h7V2h-7zM5.5 4.5L7 3H4zM12 8V3h5v5h-5zM4.5 5.5L3 4v3zM8 4L6.5 5.5 8 7V4zM5.5 6.5L4 8h3zM9 18v-7H2v7h7zm9 0h-7v-7h7v7zM8 12v5H3v-5h5zm6.5 1.5L16 12h-3zM12 16l1.5-1.5L12 13v3zm3.5-1.5L17 16v-3zm-1 1L13 17h3z";break;case"googleplus":e="M6.73 10h5.4c.05.29.09.57.09.95 0 3.27-2.19 5.6-5.49 5.6-3.17 0-5.73-2.57-5.73-5.73 0-3.17 2.56-5.73 5.73-5.73 1.54 0 2.84.57 3.83 1.5l-1.55 1.5c-.43-.41-1.17-.89-2.28-.89-1.96 0-3.55 1.62-3.55 3.62 0 1.99 1.59 3.61 3.55 3.61 2.26 0 3.11-1.62 3.24-2.47H6.73V10zM19 10v1.64h-1.64v1.63h-1.63v-1.63h-1.64V10h1.64V8.36h1.63V10H19z";break;case"grid-view":e="M2 1h16c.55 0 1 .45 1 1v16c0 .55-.45 1-1 1H2c-.55 0-1-.45-1-1V2c0-.55.45-1 1-1zm7.01 7.99v-6H3v6h6.01zm8 0v-6h-6v6h6zm-8 8.01v-6H3v6h6.01zm8 0v-6h-6v6h6z";break;case"groups":e="M8.03 4.46c-.29 1.28.55 3.46 1.97 3.46 1.41 0 2.25-2.18 1.96-3.46-.22-.98-1.08-1.63-1.96-1.63-.89 0-1.74.65-1.97 1.63zm-4.13.9c-.25 1.08.47 2.93 1.67 2.93s1.92-1.85 1.67-2.93c-.19-.83-.92-1.39-1.67-1.39s-1.48.56-1.67 1.39zm8.86 0c-.25 1.08.47 2.93 1.66 2.93 1.2 0 1.92-1.85 1.67-2.93-.19-.83-.92-1.39-1.67-1.39-.74 0-1.47.56-1.66 1.39zm-.59 11.43l1.25-4.3C14.2 10 12.71 8.47 10 8.47c-2.72 0-4.21 1.53-3.44 4.02l1.26 4.3C8.05 17.51 9 18 10 18c.98 0 1.94-.49 2.17-1.21zm-6.1-7.63c-.49.67-.96 1.83-.42 3.59l1.12 3.79c-.34.2-.77.31-1.2.31-.85 0-1.65-.41-1.85-1.03l-1.07-3.65c-.65-2.11.61-3.4 2.92-3.4.27 0 .54.02.79.06-.1.1-.2.22-.29.33zm8.35-.39c2.31 0 3.58 1.29 2.92 3.4l-1.07 3.65c-.2.62-1 1.03-1.85 1.03-.43 0-.86-.11-1.2-.31l1.11-3.77c.55-1.78.08-2.94-.42-3.61-.08-.11-.18-.23-.28-.33.25-.04.51-.06.79-.06z";break;case"hammer":e="M17.7 6.32l1.41 1.42-3.47 3.41-1.42-1.42.84-.82c-.32-.76-.81-1.57-1.51-2.31l-4.61 6.59-5.26 4.7c-.39.39-1.02.39-1.42 0l-1.2-1.21c-.39-.39-.39-1.02 0-1.41l10.97-9.92c-1.37-.86-3.21-1.46-5.67-1.48 2.7-.82 4.95-.93 6.58-.3 1.7.66 2.82 2.2 3.91 3.58z";break;case"heading":e="M12.5 4v5.2h-5V4H5v13h2.5v-5.2h5V17H15V4";break;case"heart":e="M10 17.12c3.33-1.4 5.74-3.79 7.04-6.21 1.28-2.41 1.46-4.81.32-6.25-1.03-1.29-2.37-1.78-3.73-1.74s-2.68.63-3.63 1.46c-.95-.83-2.27-1.42-3.63-1.46s-2.7.45-3.73 1.74c-1.14 1.44-.96 3.84.34 6.25 1.28 2.42 3.69 4.81 7.02 6.21z";break;case"hidden":e="M17.2 3.3l.16.17c.39.39.39 1.02 0 1.41L4.55 17.7c-.39.39-1.03.39-1.41 0l-.17-.17c-.39-.39-.39-1.02 0-1.41l1.59-1.6c-1.57-1-2.76-2.3-3.56-3.93.81-1.65 2.03-2.98 3.64-3.99S8.04 5.09 10 5.09c1.2 0 2.33.21 3.4.6l2.38-2.39c.39-.39 1.03-.39 1.42 0zm-7.09 4.01c-.23.25-.34.54-.34.88 0 .31.12.58.31.81l1.8-1.79c-.13-.12-.28-.21-.45-.26-.11-.01-.28-.03-.49-.04-.33.03-.6.16-.83.4zM2.4 10.59c.69 1.23 1.71 2.25 3.05 3.05l1.28-1.28c-.51-.69-.77-1.47-.77-2.36 0-1.06.36-1.98 1.09-2.76-1.04.27-1.96.7-2.76 1.26-.8.58-1.43 1.27-1.89 2.09zm13.22-2.13l.96-.96c1.02.86 1.83 1.89 2.42 3.09-.81 1.65-2.03 2.98-3.64 3.99s-3.4 1.51-5.36 1.51c-.63 0-1.24-.07-1.83-.18l1.07-1.07c.25.02.5.05.76.05 1.63 0 3.13-.4 4.5-1.21s2.4-1.84 3.1-3.09c-.46-.82-1.09-1.51-1.89-2.09-.03-.01-.06-.03-.09-.04zm-5.58 5.58l4-4c-.01 1.1-.41 2.04-1.18 2.81-.78.78-1.72 1.18-2.82 1.19z";break;case"html":e="M4 16v-2H2v2H1v-5h1v2h2v-2h1v5H4zM7 16v-4H5.6v-1h3.7v1H8v4H7zM10 16v-5h1l1.4 3.4h.1L14 11h1v5h-1v-3.1h-.1l-1.1 2.5h-.6l-1.1-2.5H11V16h-1zM19 16h-3v-5h1v4h2v1zM9.4 4.2L7.1 6.5l2.3 2.3-.6 1.2-3.5-3.5L8.8 3l.6 1.2zm1.2 4.6l2.3-2.3-2.3-2.3.6-1.2 3.5 3.5-3.5 3.5-.6-1.2z";break;case"id-alt":e="M18 18H2V2h16v16zM8.05 7.53c.13-.07.24-.15.33-.24.09-.1.17-.21.24-.34.07-.14.13-.26.17-.37s.07-.22.1-.34L8.95 6c0-.04.01-.07.01-.09.05-.32.03-.61-.04-.9-.08-.28-.23-.52-.46-.72C8.23 4.1 7.95 4 7.6 4c-.2 0-.39.04-.56.11-.17.08-.31.18-.41.3-.11.13-.2.27-.27.44-.07.16-.11.33-.12.51s0 .36.01.55l.02.09c.01.06.03.15.06.25s.06.21.1.33.1.25.17.37c.08.12.16.23.25.33s.2.19.34.25c.13.06.28.09.43.09s.3-.03.43-.09zM16 5V4h-5v1h5zm0 2V6h-5v1h5zM7.62 8.83l-1.38-.88c-.41 0-.79.11-1.14.32-.35.22-.62.5-.81.85-.19.34-.29.7-.29 1.07v1.25l.2.05c.13.04.31.09.55.14.24.06.51.12.8.17.29.06.62.1 1 .14.37.04.73.06 1.07.06s.69-.02 1.07-.06.7-.09.98-.14c.27-.05.54-.1.82-.17.27-.06.45-.11.54-.13.09-.03.16-.05.21-.06v-1.25c0-.36-.1-.72-.31-1.07s-.49-.64-.84-.86-.72-.33-1.11-.33zM16 9V8h-3v1h3zm0 2v-1h-3v1h3zm0 3v-1H4v1h12zm0 2v-1H4v1h12z";break;case"id":e="M18 16H2V4h16v12zM7.05 8.53c.13-.07.24-.15.33-.24.09-.1.17-.21.24-.34.07-.14.13-.26.17-.37s.07-.22.1-.34L7.95 7c0-.04.01-.07.01-.09.05-.32.03-.61-.04-.9-.08-.28-.23-.52-.46-.72C7.23 5.1 6.95 5 6.6 5c-.2 0-.39.04-.56.11-.17.08-.31.18-.41.3-.11.13-.2.27-.27.44-.07.16-.11.33-.12.51s0 .36.01.55l.02.09c.01.06.03.15.06.25s.06.21.1.33.1.25.17.37c.08.12.16.23.25.33s.2.19.34.25c.13.06.28.09.43.09s.3-.03.43-.09zM17 9V5h-5v4h5zm-10.38.83l-1.38-.88c-.41 0-.79.11-1.14.32-.35.22-.62.5-.81.85-.19.34-.29.7-.29 1.07v1.25l.2.05c.13.04.31.09.55.14.24.06.51.12.8.17.29.06.62.1 1 .14.37.04.73.06 1.07.06s.69-.02 1.07-.06.7-.09.98-.14c.27-.05.54-.1.82-.17.27-.06.45-.11.54-.13.09-.03.16-.05.21-.06v-1.25c0-.36-.1-.72-.31-1.07s-.49-.64-.84-.86-.72-.33-1.11-.33zM17 11v-1h-5v1h5zm0 2v-1h-5v1h5zm0 2v-1H3v1h14z";break;case"image-crop":e="M19 12v3h-4v4h-3v-4H4V7H0V4h4V0h3v4h7l3-3 1 1-3 3v7h4zm-8-5H7v4zm-3 5h4V8z";break;case"image-filter":e="M14 5.87c0-2.2-1.79-4-4-4s-4 1.8-4 4c0 2.21 1.79 4 4 4s4-1.79 4-4zM3.24 10.66c-1.92 1.1-2.57 3.55-1.47 5.46 1.11 1.92 3.55 2.57 5.47 1.47 1.91-1.11 2.57-3.55 1.46-5.47-1.1-1.91-3.55-2.56-5.46-1.46zm9.52 6.93c1.92 1.1 4.36.45 5.47-1.46 1.1-1.92.45-4.36-1.47-5.47-1.91-1.1-4.36-.45-5.46 1.46-1.11 1.92-.45 4.36 1.46 5.47z";break;case"image-flip-horizontal":e="M19 3v14h-8v3H9v-3H1V3h8V0h2v3h8zm-8.5 14V3h-1v14h1zM7 6.5L3 10l4 3.5v-7zM17 10l-4-3.5v7z";break;case"image-flip-vertical":e="M20 9v2h-3v8H3v-8H0V9h3V1h14v8h3zM6.5 7h7L10 3zM17 9.5H3v1h14v-1zM13.5 13h-7l3.5 4z";break;case"image-rotate-left":e="M7 5H5.05c0-1.74.85-2.9 2.95-2.9V0C4.85 0 2.96 2.11 2.96 5H1.18L3.8 8.39zm13-4v14h-5v5H1V10h9V1h10zm-2 2h-6v7h3v3h3V3zm-5 9H3v6h10v-6z";break;case"image-rotate-right":e="M15.95 5H14l3.2 3.39L19.82 5h-1.78c0-2.89-1.89-5-5.04-5v2.1c2.1 0 2.95 1.16 2.95 2.9zM1 1h10v9h9v10H6v-5H1V1zm2 2v10h3v-3h3V3H3zm5 9v6h10v-6H8z";break;case"image-rotate":e="M10.25 1.02c5.1 0 8.75 4.04 8.75 9s-3.65 9-8.75 9c-3.2 0-6.02-1.59-7.68-3.99l2.59-1.52c1.1 1.5 2.86 2.51 4.84 2.51 3.3 0 6-2.79 6-6s-2.7-6-6-6c-1.97 0-3.72 1-4.82 2.49L7 8.02l-6 2v-7L2.89 4.6c1.69-2.17 4.36-3.58 7.36-3.58z";break;case"images-alt":e="M4 15v-3H2V2h12v3h2v3h2v10H6v-3H4zm7-12c-1.1 0-2 .9-2 2h4c0-1.1-.89-2-2-2zm-7 8V6H3v5h1zm7-3h4c0-1.1-.89-2-2-2-1.1 0-2 .9-2 2zm-5 6V9H5v5h1zm9-1c1.1 0 2-.89 2-2 0-1.1-.9-2-2-2s-2 .9-2 2c0 1.11.9 2 2 2zm2 4v-2c-5 0-5-3-10-3v5h10z";break;case"images-alt2":e="M5 3h14v11h-2v2h-2v2H1V7h2V5h2V3zm13 10V4H6v9h12zm-3-4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm1 6v-1H5V6H4v9h12zM7 6l10 6H7V6zm7 11v-1H3V8H2v9h12z";break;case"index-card":e="M1 3.17V18h18V4H8v-.83c0-.32-.12-.6-.35-.83S7.14 2 6.82 2H2.18c-.33 0-.6.11-.83.34-.24.23-.35.51-.35.83zM10 6v2H3V6h7zm7 0v10h-5V6h5zm-7 4v2H3v-2h7zm0 4v2H3v-2h7z";break;case"info-outline":e="M9 15h2V9H9v6zm1-10c-.5 0-1 .5-1 1s.5 1 1 1 1-.5 1-1-.5-1-1-1zm0-4c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7z";break;case"info":e="M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm1 4c0-.55-.45-1-1-1s-1 .45-1 1 .45 1 1 1 1-.45 1-1zm0 9V9H9v6h2z";break;case"insert-after":e="M9 12h2v-2h2V8h-2V6H9v2H7v2h2v2zm1 4c3.9 0 7-3.1 7-7s-3.1-7-7-7-7 3.1-7 7 3.1 7 7 7zm0-12c2.8 0 5 2.2 5 5s-2.2 5-5 5-5-2.2-5-5 2.2-5 5-5zM3 19h14v-2H3v2z";break;case"insert-before":e="M11 8H9v2H7v2h2v2h2v-2h2v-2h-2V8zm-1-4c-3.9 0-7 3.1-7 7s3.1 7 7 7 7-3.1 7-7-3.1-7-7-7zm0 12c-2.8 0-5-2.2-5-5s2.2-5 5-5 5 2.2 5 5-2.2 5-5 5zM3 1v2h14V1H3z";break;case"insert":e="M10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6z";break;case"instagram":e="M12.67 10A2.67 2.67 0 1 0 10 12.67 2.68 2.68 0 0 0 12.67 10zm1.43 0A4.1 4.1 0 1 1 10 5.9a4.09 4.09 0 0 1 4.1 4.1zm1.13-4.27a1 1 0 1 1-1-1 1 1 0 0 1 1 1zM10 3.44c-1.17 0-3.67-.1-4.72.32a2.67 2.67 0 0 0-1.52 1.52c-.42 1-.32 3.55-.32 4.72s-.1 3.67.32 4.72a2.74 2.74 0 0 0 1.52 1.52c1 .42 3.55.32 4.72.32s3.67.1 4.72-.32a2.83 2.83 0 0 0 1.52-1.52c.42-1.05.32-3.55.32-4.72s.1-3.67-.32-4.72a2.74 2.74 0 0 0-1.52-1.52c-1.05-.42-3.55-.32-4.72-.32zM18 10c0 1.1 0 2.2-.05 3.3a4.84 4.84 0 0 1-1.29 3.36A4.8 4.8 0 0 1 13.3 18H6.7a4.84 4.84 0 0 1-3.36-1.29 4.84 4.84 0 0 1-1.29-3.41C2 12.2 2 11.1 2 10V6.7a4.84 4.84 0 0 1 1.34-3.36A4.8 4.8 0 0 1 6.7 2.05C7.8 2 8.9 2 10 2h3.3a4.84 4.84 0 0 1 3.36 1.29A4.8 4.8 0 0 1 18 6.7V10z";break;case"keyboard-hide":e="M18,0 L2,0 C0.9,0 0.01,0.9 0.01,2 L0,12 C0,13.1 0.9,14 2,14 L18,14 C19.1,14 20,13.1 20,12 L20,2 C20,0.9 19.1,0 18,0 Z M18,12 L2,12 L2,2 L18,2 L18,12 Z M9,3 L11,3 L11,5 L9,5 L9,3 Z M9,6 L11,6 L11,8 L9,8 L9,6 Z M6,3 L8,3 L8,5 L6,5 L6,3 Z M6,6 L8,6 L8,8 L6,8 L6,6 Z M3,6 L5,6 L5,8 L3,8 L3,6 Z M3,3 L5,3 L5,5 L3,5 L3,3 Z M6,9 L14,9 L14,11 L6,11 L6,9 Z M12,6 L14,6 L14,8 L12,8 L12,6 Z M12,3 L14,3 L14,5 L12,5 L12,3 Z M15,6 L17,6 L17,8 L15,8 L15,6 Z M15,3 L17,3 L17,5 L15,5 L15,3 Z M10,20 L14,16 L6,16 L10,20 Z";break;case"laptop":e="M3 3h14c.6 0 1 .4 1 1v10c0 .6-.4 1-1 1H3c-.6 0-1-.4-1-1V4c0-.6.4-1 1-1zm13 2H4v8h12V5zm-3 1H5v4zm6 11v-1H1v1c0 .6.5 1 1.1 1h15.8c.6 0 1.1-.4 1.1-1z";break;case"layout":e="M2 2h5v11H2V2zm6 0h5v5H8V2zm6 0h4v16h-4V2zM8 8h5v5H8V8zm-6 6h11v4H2v-4z";break;case"leftright":e="M3 10.03L9 6v8zM11 6l6 4.03L11 14V6z";break;case"lightbulb":e="M10 1c3.11 0 5.63 2.52 5.63 5.62 0 1.84-2.03 4.58-2.03 4.58-.33.44-.6 1.25-.6 1.8v1c0 .55-.45 1-1 1H8c-.55 0-1-.45-1-1v-1c0-.55-.27-1.36-.6-1.8 0 0-2.02-2.74-2.02-4.58C4.38 3.52 6.89 1 10 1zM7 16.87V16h6v.87c0 .62-.13 1.13-.75 1.13H12c0 .62-.4 1-1.02 1h-2c-.61 0-.98-.38-.98-1h-.25c-.62 0-.75-.51-.75-1.13z";break;case"list-view":e="M2 19h16c.55 0 1-.45 1-1V2c0-.55-.45-1-1-1H2c-.55 0-1 .45-1 1v16c0 .55.45 1 1 1zM4 3c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm13 0v2H6V3h11zM4 7c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm13 0v2H6V7h11zM4 11c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm13 0v2H6v-2h11zM4 15c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm13 0v2H6v-2h11z";break;case"location-alt":e="M13 13.14l1.17-5.94c.79-.43 1.33-1.25 1.33-2.2 0-1.38-1.12-2.5-2.5-2.5S10.5 3.62 10.5 5c0 .95.54 1.77 1.33 2.2zm0-9.64c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5-1.5-.67-1.5-1.5.67-1.5 1.5-1.5zm1.72 4.8L18 6.97v9L13.12 18 7 15.97l-5 2v-9l5-2 4.27 1.41 1.73 7.3z";break;case"location":e="M10 2C6.69 2 4 4.69 4 8c0 2.02 1.17 3.71 2.53 4.89.43.37 1.18.96 1.85 1.83.74.97 1.41 2.01 1.62 2.71.21-.7.88-1.74 1.62-2.71.67-.87 1.42-1.46 1.85-1.83C14.83 11.71 16 10.02 16 8c0-3.31-2.69-6-6-6zm0 2.56c1.9 0 3.44 1.54 3.44 3.44S11.9 11.44 10 11.44 6.56 9.9 6.56 8 8.1 4.56 10 4.56z";break;case"lock":e="M14 9h1c.55 0 1 .45 1 1v7c0 .55-.45 1-1 1H5c-.55 0-1-.45-1-1v-7c0-.55.45-1 1-1h1V6c0-2.21 1.79-4 4-4s4 1.79 4 4v3zm-2 0V6c0-1.1-.9-2-2-2s-2 .9-2 2v3h4zm-1 7l-.36-2.15c.51-.24.86-.75.86-1.35 0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5c0 .6.35 1.11.86 1.35L9 16h2z";break;case"marker":e="M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm0 13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5z";break;case"media-archive":e="M12 2l4 4v12H4V2h8zm0 4h3l-3-3v3zM8 3.5v2l1.8-1zM11 5L9.2 6 11 7V5zM8 6.5v2l1.8-1zM11 8L9.2 9l1.8 1V8zM8 9.5v2l1.8-1zm3 1.5l-1.8 1 1.8 1v-2zm-1.5 6c.83 0 1.62-.72 1.5-1.63-.05-.38-.49-1.61-.49-1.61l-1.99-1.1s-.45 1.95-.52 2.71c-.07.77.67 1.63 1.5 1.63zm0-2.39c.42 0 .76.34.76.76 0 .43-.34.77-.76.77s-.76-.34-.76-.77c0-.42.34-.76.76-.76z";break;case"media-audio":e="M12 2l4 4v12H4V2h8zm0 4h3l-3-3v3zm1 7.26V8.09c0-.11-.04-.21-.12-.29-.07-.08-.16-.11-.27-.1 0 0-3.97.71-4.25.78C8.07 8.54 8 8.8 8 9v3.37c-.2-.09-.42-.07-.6-.07-.38 0-.7.13-.96.39-.26.27-.4.58-.4.96 0 .37.14.69.4.95.26.27.58.4.96.4.34 0 .7-.04.96-.26.26-.23.64-.65.64-1.12V10.3l3-.6V12c-.67-.2-1.17.04-1.44.31-.26.26-.39.58-.39.95 0 .38.13.69.39.96.27.26.71.39 1.08.39.38 0 .7-.13.96-.39.26-.27.4-.58.4-.96z";break;case"media-code":e="M12 2l4 4v12H4V2h8zM9 13l-2-2 2-2-1-1-3 3 3 3zm3 1l3-3-3-3-1 1 2 2-2 2z";break;case"media-default":e="M12 2l4 4v12H4V2h8zm0 4h3l-3-3v3z";break;case"media-document":e="M12 2l4 4v12H4V2h8zM5 3v1h6V3H5zm7 3h3l-3-3v3zM5 5v1h6V5H5zm10 3V7H5v1h10zM5 9v1h4V9H5zm10 3V9h-5v3h5zM5 11v1h4v-1H5zm10 3v-1H5v1h10zm-3 2v-1H5v1h7z";break;case"media-interactive":e="M12 2l4 4v12H4V2h8zm0 4h3l-3-3v3zm2 8V8H6v6h3l-1 2h1l1-2 1 2h1l-1-2h3zm-6-3c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm5-2v2h-3V9h3zm0 3v1H7v-1h6z";break;case"media-spreadsheet":e="M12 2l4 4v12H4V2h8zm-1 4V3H5v3h6zM8 8V7H5v1h3zm3 0V7H9v1h2zm4 0V7h-3v1h3zm-7 2V9H5v1h3zm3 0V9H9v1h2zm4 0V9h-3v1h3zm-7 2v-1H5v1h3zm3 0v-1H9v1h2zm4 0v-1h-3v1h3zm-7 2v-1H5v1h3zm3 0v-1H9v1h2zm4 0v-1h-3v1h3zm-7 2v-1H5v1h3zm3 0v-1H9v1h2z";break;case"media-text":e="M12 2l4 4v12H4V2h8zM5 3v1h6V3H5zm7 3h3l-3-3v3zM5 5v1h6V5H5zm10 3V7H5v1h10zm0 2V9H5v1h10zm0 2v-1H5v1h10zm-4 2v-1H5v1h6z";break;case"media-video":e="M12 2l4 4v12H4V2h8zm0 4h3l-3-3v3zm-1 8v-3c0-.27-.1-.51-.29-.71-.2-.19-.44-.29-.71-.29H7c-.27 0-.51.1-.71.29-.19.2-.29.44-.29.71v3c0 .27.1.51.29.71.2.19.44.29.71.29h3c.27 0 .51-.1.71-.29.19-.2.29-.44.29-.71zm3 1v-5l-2 2v1z";break;case"megaphone":e="M18.15 5.94c.46 1.62.38 3.22-.02 4.48-.42 1.28-1.26 2.18-2.3 2.48-.16.06-.26.06-.4.06-.06.02-.12.02-.18.02-.06.02-.14.02-.22.02h-6.8l2.22 5.5c.02.14-.06.26-.14.34-.08.1-.24.16-.34.16H6.95c-.1 0-.26-.06-.34-.16-.08-.08-.16-.2-.14-.34l-1-5.5H4.25l-.02-.02c-.5.06-1.08-.18-1.54-.62s-.88-1.08-1.06-1.88c-.24-.8-.2-1.56-.02-2.2.18-.62.58-1.08 1.06-1.3l.02-.02 9-5.4c.1-.06.18-.1.24-.16.06-.04.14-.08.24-.12.16-.08.28-.12.5-.18 1.04-.3 2.24.1 3.22.98s1.84 2.24 2.26 3.86zm-2.58 5.98h-.02c.4-.1.74-.34 1.04-.7.58-.7.86-1.76.86-3.04 0-.64-.1-1.3-.28-1.98-.34-1.36-1.02-2.5-1.78-3.24s-1.68-1.1-2.46-.88c-.82.22-1.4.96-1.7 2-.32 1.04-.28 2.36.06 3.72.38 1.36 1 2.5 1.8 3.24.78.74 1.62 1.1 2.48.88zm-2.54-7.08c.22-.04.42-.02.62.04.38.16.76.48 1.02 1s.42 1.2.42 1.78c0 .3-.04.56-.12.8-.18.48-.44.84-.86.94-.34.1-.8-.06-1.14-.4s-.64-.86-.78-1.5c-.18-.62-.12-1.24.02-1.72s.48-.84.82-.94z";break;case"menu-alt":e="M3 4h14v2H3V4zm0 5h14v2H3V9zm0 5h14v2H3v-2z";break;case"menu":e="M17 7V5H3v2h14zm0 4V9H3v2h14zm0 4v-2H3v2h14z";break;case"microphone":e="M12 9V3c0-1.1-.89-2-2-2-1.12 0-2 .94-2 2v6c0 1.1.9 2 2 2 1.13 0 2-.94 2-2zm4 0c0 2.97-2.16 5.43-5 5.91V17h2c.56 0 1 .45 1 1s-.44 1-1 1H7c-.55 0-1-.45-1-1s.45-1 1-1h2v-2.09C6.17 14.43 4 11.97 4 9c0-.55.45-1 1-1 .56 0 1 .45 1 1 0 2.21 1.8 4 4 4 2.21 0 4-1.79 4-4 0-.55.45-1 1-1 .56 0 1 .45 1 1z";break;case"migrate":e="M4 6h6V4H2v12.01h8V14H4V6zm2 2h6V5l6 5-6 5v-3H6V8z";break;case"minus":e="M4 9h12v2H4V9z";break;case"money":e="M0 3h20v12h-.75c0-1.79-1.46-3.25-3.25-3.25-1.31 0-2.42.79-2.94 1.91-.25-.1-.52-.16-.81-.16-.98 0-1.8.63-2.11 1.5H0V3zm8.37 3.11c-.06.15-.1.31-.11.47s-.01.33.01.5l.02.08c.01.06.02.14.05.23.02.1.06.2.1.31.03.11.09.22.15.33.07.12.15.22.23.31s.18.17.31.23c.12.06.25.09.4.09.14 0 .27-.03.39-.09s.22-.14.3-.22c.09-.09.16-.2.22-.32.07-.12.12-.23.16-.33s.07-.2.09-.31c.03-.11.04-.18.05-.22s.01-.07.01-.09c.05-.29.03-.56-.04-.82s-.21-.48-.41-.66c-.21-.18-.47-.27-.79-.27-.19 0-.36.03-.52.1-.15.07-.28.16-.38.28-.09.11-.17.25-.24.4zm4.48 6.04v-1.14c0-.33-.1-.66-.29-.98s-.45-.59-.77-.79c-.32-.21-.66-.31-1.02-.31l-1.24.84-1.28-.82c-.37 0-.72.1-1.04.3-.31.2-.56.46-.74.77-.18.32-.27.65-.27.99v1.14l.18.05c.12.04.29.08.51.14.23.05.47.1.74.15.26.05.57.09.91.13.34.03.67.05.99.05.3 0 .63-.02.98-.05.34-.04.64-.08.89-.13.25-.04.5-.1.76-.16l.5-.12c.08-.02.14-.04.19-.06zm3.15.1c1.52 0 2.75 1.23 2.75 2.75s-1.23 2.75-2.75 2.75c-.73 0-1.38-.3-1.87-.77.23-.35.37-.78.37-1.23 0-.77-.39-1.46-.99-1.86.43-.96 1.37-1.64 2.49-1.64zm-5.5 3.5c0-.96.79-1.75 1.75-1.75s1.75.79 1.75 1.75-.79 1.75-1.75 1.75-1.75-.79-1.75-1.75z";break;case"move":e="M19 10l-4 4v-3h-4v4h3l-4 4-4-4h3v-4H5v3l-4-4 4-4v3h4V5H6l4-4 4 4h-3v4h4V6z";break;case"nametag":e="M12 5V2c0-.55-.45-1-1-1H9c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h2c.55 0 1-.45 1-1zm-2-3c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm8 13V7c0-1.1-.9-2-2-2h-3v.33C13 6.25 12.25 7 11.33 7H8.67C7.75 7 7 6.25 7 5.33V5H4c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2zm-1-6v6H3V9h14zm-8 2c0-.55-.22-1-.5-1s-.5.45-.5 1 .22 1 .5 1 .5-.45.5-1zm3 0c0-.55-.22-1-.5-1s-.5.45-.5 1 .22 1 .5 1 .5-.45.5-1zm-5.96 1.21c.92.48 2.34.79 3.96.79s3.04-.31 3.96-.79c-.21 1-1.89 1.79-3.96 1.79s-3.75-.79-3.96-1.79z";break;case"networking":e="M18 13h1c.55 0 1 .45 1 1.01v2.98c0 .56-.45 1.01-1 1.01h-4c-.55 0-1-.45-1-1.01v-2.98c0-.56.45-1.01 1-1.01h1v-2h-5v2h1c.55 0 1 .45 1 1.01v2.98c0 .56-.45 1.01-1 1.01H8c-.55 0-1-.45-1-1.01v-2.98c0-.56.45-1.01 1-1.01h1v-2H4v2h1c.55 0 1 .45 1 1.01v2.98C6 17.55 5.55 18 5 18H1c-.55 0-1-.45-1-1.01v-2.98C0 13.45.45 13 1 13h1v-2c0-1.1.9-2 2-2h5V7H8c-.55 0-1-.45-1-1.01V3.01C7 2.45 7.45 2 8 2h4c.55 0 1 .45 1 1.01v2.98C13 6.55 12.55 7 12 7h-1v2h5c1.1 0 2 .9 2 2v2z";break;case"no-alt":e="M14.95 6.46L11.41 10l3.54 3.54-1.41 1.41L10 11.42l-3.53 3.53-1.42-1.42L8.58 10 5.05 6.47l1.42-1.42L10 8.58l3.54-3.53z";break;case"no":e="M12.12 10l3.53 3.53-2.12 2.12L10 12.12l-3.54 3.54-2.12-2.12L7.88 10 4.34 6.46l2.12-2.12L10 7.88l3.54-3.53 2.12 2.12z";break;case"palmtree":e="M8.58 2.39c.32 0 .59.05.81.14 1.25.55 1.69 2.24 1.7 3.97.59-.82 2.15-2.29 3.41-2.29s2.94.73 3.53 3.55c-1.13-.65-2.42-.94-3.65-.94-1.26 0-2.45.32-3.29.89.4-.11.86-.16 1.33-.16 1.39 0 2.9.45 3.4 1.31.68 1.16.47 3.38-.76 4.14-.14-2.1-1.69-4.12-3.47-4.12-.44 0-.88.12-1.33.38C8 10.62 7 14.56 7 19H2c0-5.53 4.21-9.65 7.68-10.79-.56-.09-1.17-.15-1.82-.15C6.1 8.06 4.05 8.5 2 10c.76-2.96 2.78-4.1 4.69-4.1 1.25 0 2.45.5 3.2 1.29-.66-2.24-2.49-2.86-4.08-2.86-.8 0-1.55.16-2.05.35.91-1.29 3.31-2.29 4.82-2.29zM13 11.5c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5.67 1.5 1.5 1.5 1.5-.67 1.5-1.5z";break;case"paperclip":e="M17.05 2.7c1.93 1.94 1.93 5.13 0 7.07L10 16.84c-1.88 1.89-4.91 1.93-6.86.15-.06-.05-.13-.09-.19-.15-1.93-1.94-1.93-5.12 0-7.07l4.94-4.95c.91-.92 2.28-1.1 3.39-.58.3.15.59.33.83.58 1.17 1.17 1.17 3.07 0 4.24l-4.93 4.95c-.39.39-1.02.39-1.41 0s-.39-1.02 0-1.41l4.93-4.95c.39-.39.39-1.02 0-1.41-.38-.39-1.02-.39-1.4 0l-4.94 4.95c-.91.92-1.1 2.29-.57 3.4.14.3.32.59.57.84s.54.43.84.57c1.11.53 2.47.35 3.39-.57l7.05-7.07c1.16-1.17 1.16-3.08 0-4.25-.56-.55-1.28-.83-2-.86-.08.01-.16.01-.24 0-.22-.03-.43-.11-.6-.27-.39-.4-.38-1.05.02-1.45.16-.16.36-.24.56-.28.14-.02.27-.01.4.02 1.19.06 2.36.52 3.27 1.43z";break;case"performance":e="M3.76 17.01h12.48C17.34 15.63 18 13.9 18 12c0-4.41-3.58-8-8-8s-8 3.59-8 8c0 1.9.66 3.63 1.76 5.01zM9 6c0-.55.45-1 1-1s1 .45 1 1c0 .56-.45 1-1 1s-1-.44-1-1zM4 8c0-.55.45-1 1-1s1 .45 1 1c0 .56-.45 1-1 1s-1-.44-1-1zm4.52 3.4c.84-.83 6.51-3.5 6.51-3.5s-2.66 5.68-3.49 6.51c-.84.84-2.18.84-3.02 0-.83-.83-.83-2.18 0-3.01zM3 13c0-.55.45-1 1-1s1 .45 1 1c0 .56-.45 1-1 1s-1-.44-1-1zm6 0c0-.55.45-1 1-1s1 .45 1 1c0 .56-.45 1-1 1s-1-.44-1-1zm6 0c0-.55.45-1 1-1s1 .45 1 1c0 .56-.45 1-1 1s-1-.44-1-1z";break;case"phone":e="M12.06 6l-.21-.2c-.52-.54-.43-.79.08-1.3l2.72-2.75c.81-.82.96-1.21 1.73-.48l.21.2zm.53.45l4.4-4.4c.7.94 2.34 3.47 1.53 5.34-.73 1.67-1.09 1.75-2 3-1.85 2.11-4.18 4.37-6 6.07-1.26.91-1.31 1.33-3 2-1.8.71-4.4-.89-5.38-1.56l4.4-4.4 1.18 1.62c.34.46 1.2-.06 1.8-.66 1.04-1.05 3.18-3.18 4-4.07.59-.59 1.12-1.45.66-1.8zM1.57 16.5l-.21-.21c-.68-.74-.29-.9.52-1.7l2.74-2.72c.51-.49.75-.6 1.27-.11l.2.21z";break;case"playlist-audio":e="M17 3V1H2v2h15zm0 4V5H2v2h15zm-7 4V9H2v2h8zm7.45-1.96l-6 1.12c-.16.02-.19.03-.29.13-.11.09-.16.22-.16.37v4.59c-.29-.13-.66-.14-.93-.14-.54 0-1 .19-1.38.57s-.56.84-.56 1.38c0 .53.18.99.56 1.37s.84.57 1.38.57c.49 0 .92-.16 1.29-.48s.59-.71.65-1.19v-4.95L17 11.27v3.48c-.29-.13-.56-.19-.83-.19-.54 0-1.11.19-1.49.57-.38.37-.57.83-.57 1.37s.19.99.57 1.37.84.57 1.38.57c.53 0 .99-.19 1.37-.57s.57-.83.57-1.37V9.6c0-.16-.05-.3-.16-.41-.11-.12-.24-.17-.39-.15zM8 15v-2H2v2h6zm-2 4v-2H2v2h4z";break;case"playlist-video":e="M17 3V1H2v2h15zm0 4V5H2v2h15zM6 11V9H2v2h4zm2-2h9c.55 0 1 .45 1 1v8c0 .55-.45 1-1 1H8c-.55 0-1-.45-1-1v-8c0-.55.45-1 1-1zm3 7l3.33-2L11 12v4zm-5-1v-2H2v2h4zm0 4v-2H2v2h4z";break;case"plus-alt":e="M15.8 4.2c3.2 3.21 3.2 8.39 0 11.6-3.21 3.2-8.39 3.2-11.6 0C1 12.59 1 7.41 4.2 4.2 7.41 1 12.59 1 15.8 4.2zm-4.3 11.3v-4h4v-3h-4v-4h-3v4h-4v3h4v4h3z";break;case"plus-light":e="M17 9v2h-6v6H9v-6H3V9h6V3h2v6h6z";break;case"plus":e="M17 7v3h-5v5H9v-5H4V7h5V2h3v5h5z";break;case"portfolio":e="M4 5H.78c-.37 0-.74.32-.69.84l1.56 9.99S3.5 8.47 3.86 6.7c.11-.53.61-.7.98-.7H10s-.7-2.08-.77-2.31C9.11 3.25 8.89 3 8.45 3H5.14c-.36 0-.7.23-.8.64C4.25 4.04 4 5 4 5zm4.88 0h-4s.42-1 .87-1h2.13c.48 0 1 1 1 1zM2.67 16.25c-.31.47-.76.75-1.26.75h15.73c.54 0 .92-.31 1.03-.83.44-2.19 1.68-8.44 1.68-8.44.07-.5-.3-.73-.62-.73H16V5.53c0-.16-.26-.53-.66-.53h-3.76c-.52 0-.87.58-.87.58L10 7H5.59c-.32 0-.63.19-.69.5 0 0-1.59 6.7-1.72 7.33-.07.37-.22.99-.51 1.42zM15.38 7H11s.58-1 1.13-1h2.29c.71 0 .96 1 .96 1z";break;case"post-status":e="M14 6c0 1.86-1.28 3.41-3 3.86V16c0 1-2 2-2 2V9.86c-1.72-.45-3-2-3-3.86 0-2.21 1.79-4 4-4s4 1.79 4 4zM8 5c0 .55.45 1 1 1s1-.45 1-1-.45-1-1-1-1 .45-1 1z";break;case"pressthis":e="M14.76 1C16.55 1 18 2.46 18 4.25c0 1.78-1.45 3.24-3.24 3.24-.23 0-.47-.03-.7-.08L13 8.47V19H2V4h9.54c.13-2 1.52-3 3.22-3zm0 5.49C16 6.49 17 5.48 17 4.25 17 3.01 16 2 14.76 2s-2.24 1.01-2.24 2.25c0 .37.1.72.27 1.03L9.57 8.5c-.28.28-1.77 2.22-1.5 2.49.02.03.06.04.1.04.49 0 2.14-1.28 2.39-1.53l3.24-3.24c.29.14.61.23.96.23z";break;case"products":e="M17 8h1v11H2V8h1V6c0-2.76 2.24-5 5-5 .71 0 1.39.15 2 .42.61-.27 1.29-.42 2-.42 2.76 0 5 2.24 5 5v2zM5 6v2h2V6c0-1.13.39-2.16 1.02-3H8C6.35 3 5 4.35 5 6zm10 2V6c0-1.65-1.35-3-3-3h-.02c.63.84 1.02 1.87 1.02 3v2h2zm-5-4.22C9.39 4.33 9 5.12 9 6v2h2V6c0-.88-.39-1.67-1-2.22z";break;case"randomize":e="M18 6.01L14 9V7h-4l-5 8H2v-2h2l5-8h5V3zM2 5h3l1.15 2.17-1.12 1.8L4 7H2V5zm16 9.01L14 17v-2H9l-1.15-2.17 1.12-1.8L10 13h4v-2z";break;case"redo":e="M8 5h5V2l6 4-6 4V7H8c-2.2 0-4 1.8-4 4s1.8 4 4 4h5v2H8c-3.3 0-6-2.7-6-6s2.7-6 6-6z";break;case"rest-api":e="M3 4h2v12H3z";break;case"rss":e="M14.92 18H18C18 9.32 10.82 2.25 2 2.25v3.02c7.12 0 12.92 5.71 12.92 12.73zm-5.44 0h3.08C12.56 12.27 7.82 7.6 2 7.6v3.02c2 0 3.87.77 5.29 2.16C8.7 14.17 9.48 16.03 9.48 18zm-5.35-.02c1.17 0 2.13-.93 2.13-2.09 0-1.15-.96-2.09-2.13-2.09-1.18 0-2.13.94-2.13 2.09 0 1.16.95 2.09 2.13 2.09z";break;case"saved":e="M15.3 5.3l-6.8 6.8-2.8-2.8-1.4 1.4 4.2 4.2 8.2-8.2";break;case"schedule":e="M2 2h16v4H2V2zm0 10V8h4v4H2zm6-2V8h4v2H8zm6 3V8h4v5h-4zm-6 5v-6h4v6H8zm-6 0v-4h4v4H2zm12 0v-3h4v3h-4z";break;case"screenoptions":e="M9 9V3H3v6h6zm8 0V3h-6v6h6zm-8 8v-6H3v6h6zm8 0v-6h-6v6h6z";break;case"search":e="M12.14 4.18c1.87 1.87 2.11 4.75.72 6.89.12.1.22.21.36.31.2.16.47.36.81.59.34.24.56.39.66.47.42.31.73.57.94.78.32.32.6.65.84 1 .25.35.44.69.59 1.04.14.35.21.68.18 1-.02.32-.14.59-.36.81s-.49.34-.81.36c-.31.02-.65-.04-.99-.19-.35-.14-.7-.34-1.04-.59-.35-.24-.68-.52-1-.84-.21-.21-.47-.52-.77-.93-.1-.13-.25-.35-.47-.66-.22-.32-.4-.57-.56-.78-.16-.2-.29-.35-.44-.5-2.07 1.09-4.69.76-6.44-.98-2.14-2.15-2.14-5.64 0-7.78 2.15-2.15 5.63-2.15 7.78 0zm-1.41 6.36c1.36-1.37 1.36-3.58 0-4.95-1.37-1.37-3.59-1.37-4.95 0-1.37 1.37-1.37 3.58 0 4.95 1.36 1.37 3.58 1.37 4.95 0z";break;case"share-alt":e="M16.22 5.8c.47.69.29 1.62-.4 2.08-.69.47-1.62.29-2.08-.4-.16-.24-.35-.46-.55-.67-.21-.2-.43-.39-.67-.55s-.5-.3-.77-.41c-.27-.12-.55-.21-.84-.26-.59-.13-1.23-.13-1.82-.01-.29.06-.57.15-.84.27-.27.11-.53.25-.77.41s-.46.35-.66.55c-.21.21-.4.43-.56.67s-.3.5-.41.76c-.01.02-.01.03-.01.04-.1.24-.17.48-.23.72H1V6h2.66c.04-.07.07-.13.12-.2.27-.4.57-.77.91-1.11s.72-.65 1.11-.91c.4-.27.83-.51 1.28-.7s.93-.34 1.41-.43c.99-.21 2.03-.21 3.02 0 .48.09.96.24 1.41.43s.88.43 1.28.7c.39.26.77.57 1.11.91s.64.71.91 1.11zM12.5 10c0-1.38-1.12-2.5-2.5-2.5S7.5 8.62 7.5 10s1.12 2.5 2.5 2.5 2.5-1.12 2.5-2.5zm-8.72 4.2c-.47-.69-.29-1.62.4-2.09.69-.46 1.62-.28 2.08.41.16.24.35.46.55.67.21.2.43.39.67.55s.5.3.77.41c.27.12.55.2.84.26.59.13 1.23.12 1.82 0 .29-.06.57-.14.84-.26.27-.11.53-.25.77-.41s.46-.35.66-.55c.21-.21.4-.44.56-.67.16-.25.3-.5.41-.76.01-.02.01-.03.01-.04.1-.24.17-.48.23-.72H19v3h-2.66c-.04.06-.07.13-.12.2-.27.4-.57.77-.91 1.11s-.72.65-1.11.91c-.4.27-.83.51-1.28.7s-.93.33-1.41.43c-.99.21-2.03.21-3.02 0-.48-.1-.96-.24-1.41-.43s-.88-.43-1.28-.7c-.39-.26-.77-.57-1.11-.91s-.64-.71-.91-1.11z";break;case"share-alt2":e="M18 8l-5 4V9.01c-2.58.06-4.88.45-7 2.99.29-3.57 2.66-5.66 7-5.94V3zM4 14h11v-2l2-1.6V16H2V5h9.43c-1.83.32-3.31 1-4.41 2H4v7z";break;case"share":e="M14.5 12c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3c0-.24.03-.46.09-.69l-4.38-2.3c-.55.61-1.33.99-2.21.99-1.66 0-3-1.34-3-3s1.34-3 3-3c.88 0 1.66.39 2.21.99l4.38-2.3c-.06-.23-.09-.45-.09-.69 0-1.66 1.34-3 3-3s3 1.34 3 3-1.34 3-3 3c-.88 0-1.66-.39-2.21-.99l-4.38 2.3c.06.23.09.45.09.69s-.03.46-.09.69l4.38 2.3c.55-.61 1.33-.99 2.21-.99z";break;case"shield-alt":e="M10 2s3 2 7 2c0 11-7 14-7 14S3 15 3 4c4 0 7-2 7-2z";break;case"shield":e="M10 2s3 2 7 2c0 11-7 14-7 14S3 15 3 4c4 0 7-2 7-2zm0 8h5s1-1 1-5c0 0-5-1-6-2v7H5c1 4 5 7 5 7v-7z";break;case"shortcode":e="M6 14H4V6h2V4H2v12h4M7.1 17h2.1l3.7-14h-2.1M14 4v2h2v8h-2v2h4V4";break;case"slides":e="M5 14V6h10v8H5zm-3-1V7h2v6H2zm4-6v6h8V7H6zm10 0h2v6h-2V7zm-3 2V8H7v1h6zm0 3v-2H7v2h6z";break;case"smartphone":e="M6 2h8c.55 0 1 .45 1 1v14c0 .55-.45 1-1 1H6c-.55 0-1-.45-1-1V3c0-.55.45-1 1-1zm7 12V4H7v10h6zM8 5h4l-4 5V5z";break;case"smiley":e="M7 5.2c1.1 0 2 .89 2 2 0 .37-.11.71-.28 1C8.72 8.2 8 8 7 8s-1.72.2-1.72.2c-.17-.29-.28-.63-.28-1 0-1.11.9-2 2-2zm6 0c1.11 0 2 .89 2 2 0 .37-.11.71-.28 1 0 0-.72-.2-1.72-.2s-1.72.2-1.72.2c-.17-.29-.28-.63-.28-1 0-1.11.89-2 2-2zm-3 13.7c3.72 0 7.03-2.36 8.23-5.88l-1.32-.46C15.9 15.52 13.12 17.5 10 17.5s-5.9-1.98-6.91-4.94l-1.32.46c1.2 3.52 4.51 5.88 8.23 5.88z";break;case"sort":e="M11 7H1l5 7zm-2 7h10l-5-7z";break;case"sos":e="M18 10c0-4.42-3.58-8-8-8s-8 3.58-8 8 3.58 8 8 8 8-3.58 8-8zM7.23 3.57L8.72 7.3c-.62.29-1.13.8-1.42 1.42L3.57 7.23c.71-1.64 2.02-2.95 3.66-3.66zm9.2 3.66L12.7 8.72c-.29-.62-.8-1.13-1.42-1.42l1.49-3.73c1.64.71 2.95 2.02 3.66 3.66zM10 12c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm-6.43.77l3.73-1.49c.29.62.8 1.13 1.42 1.42l-1.49 3.73c-1.64-.71-2.95-2.02-3.66-3.66zm9.2 3.66l-1.49-3.73c.62-.29 1.13-.8 1.42-1.42l3.73 1.49c-.71 1.64-2.02 2.95-3.66 3.66z";break;case"star-empty":e="M10 1L7 7l-6 .75 4.13 4.62L4 19l6-3 6 3-1.12-6.63L19 7.75 13 7zm0 2.24l2.34 4.69 4.65.58-3.18 3.56.87 5.15L10 14.88l-4.68 2.34.87-5.15-3.18-3.56 4.65-.58z";break;case"star-filled":e="M10 1l3 6 6 .75-4.12 4.62L16 19l-6-3-6 3 1.13-6.63L1 7.75 7 7z";break;case"star-half":e="M10 1L7 7l-6 .75 4.13 4.62L4 19l6-3 6 3-1.12-6.63L19 7.75 13 7zm0 2.24l2.34 4.69 4.65.58-3.18 3.56.87 5.15L10 14.88V3.24z";break;case"sticky":e="M5 3.61V1.04l8.99-.01-.01 2.58c-1.22.26-2.16 1.35-2.16 2.67v.5c.01 1.31.93 2.4 2.17 2.66l-.01 2.58h-3.41l-.01 2.57c0 .6-.47 4.41-1.06 4.41-.6 0-1.08-3.81-1.08-4.41v-2.56L5 12.02l.01-2.58c1.23-.25 2.15-1.35 2.15-2.66v-.5c0-1.31-.92-2.41-2.16-2.67z";break;case"store":e="M1 10c.41.29.96.43 1.5.43.55 0 1.09-.14 1.5-.43.62-.46 1-1.17 1-2 0 .83.37 1.54 1 2 .41.29.96.43 1.5.43.55 0 1.09-.14 1.5-.43.62-.46 1-1.17 1-2 0 .83.37 1.54 1 2 .41.29.96.43 1.51.43.54 0 1.08-.14 1.49-.43.62-.46 1-1.17 1-2 0 .83.37 1.54 1 2 .41.29.96.43 1.5.43.55 0 1.09-.14 1.5-.43.63-.46 1-1.17 1-2V7l-3-7H4L0 7v1c0 .83.37 1.54 1 2zm2 8.99h5v-5h4v5h5v-7c-.37-.05-.72-.22-1-.43-.63-.45-1-.73-1-1.56 0 .83-.38 1.11-1 1.56-.41.3-.95.43-1.49.44-.55 0-1.1-.14-1.51-.44-.63-.45-1-.73-1-1.56 0 .83-.38 1.11-1 1.56-.41.3-.95.43-1.5.44-.54 0-1.09-.14-1.5-.44-.63-.45-1-.73-1-1.57 0 .84-.38 1.12-1 1.57-.29.21-.63.38-1 .44v6.99z";break;case"table-col-after":e="M14.08 12.864V9.216h3.648V7.424H14.08V3.776h-1.728v3.648H8.64v1.792h3.712v3.648zM0 17.92V0h20.48v17.92H0zM6.4 1.28H1.28v3.84H6.4V1.28zm0 5.12H1.28v3.84H6.4V6.4zm0 5.12H1.28v3.84H6.4v-3.84zM19.2 1.28H7.68v14.08H19.2V1.28z";break;case"table-col-before":e="M6.4 3.776v3.648H2.752v1.792H6.4v3.648h1.728V9.216h3.712V7.424H8.128V3.776zM0 17.92V0h20.48v17.92H0zM12.8 1.28H1.28v14.08H12.8V1.28zm6.4 0h-5.12v3.84h5.12V1.28zm0 5.12h-5.12v3.84h5.12V6.4zm0 5.12h-5.12v3.84h5.12v-3.84z";break;case"table-col-delete":e="M6.4 9.98L7.68 8.7v-.256L6.4 7.164V9.98zm6.4-1.532l1.28-1.28V9.92L12.8 8.64v-.192zm7.68 9.472V0H0v17.92h20.48zm-1.28-2.56h-5.12v-1.024l-.256.256-1.024-1.024v1.792H7.68v-1.792l-1.024 1.024-.256-.256v1.024H1.28V1.28H6.4v2.368l.704-.704.576.576V1.216h5.12V3.52l.96-.96.32.32V1.216h5.12V15.36zm-5.76-2.112l-3.136-3.136-3.264 3.264-1.536-1.536 3.264-3.264L5.632 5.44l1.536-1.536 3.136 3.136 3.2-3.2 1.536 1.536-3.2 3.2 3.136 3.136-1.536 1.536z";break;case"table-row-after":e="M13.824 10.176h-2.88v-2.88H9.536v2.88h-2.88v1.344h2.88v2.88h1.408v-2.88h2.88zM0 17.92V0h20.48v17.92H0zM6.4 1.28H1.28v3.84H6.4V1.28zm6.4 0H7.68v3.84h5.12V1.28zm6.4 0h-5.12v3.84h5.12V1.28zm0 5.056H1.28v9.024H19.2V6.336z";break;case"table-row-before":e="M6.656 6.464h2.88v2.88h1.408v-2.88h2.88V5.12h-2.88V2.24H9.536v2.88h-2.88zM0 17.92V0h20.48v17.92H0zm7.68-2.56h5.12v-3.84H7.68v3.84zm-6.4 0H6.4v-3.84H1.28v3.84zM19.2 1.28H1.28v9.024H19.2V1.28zm0 10.24h-5.12v3.84h5.12v-3.84z";break;case"table-row-delete":e="M17.728 11.456L14.592 8.32l3.2-3.2-1.536-1.536-3.2 3.2L9.92 3.648 8.384 5.12l3.2 3.2-3.264 3.264 1.536 1.536 3.264-3.264 3.136 3.136 1.472-1.536zM0 17.92V0h20.48v17.92H0zm19.2-6.4h-.448l-1.28-1.28H19.2V6.4h-1.792l1.28-1.28h.512V1.28H1.28v3.84h6.208l1.28 1.28H1.28v3.84h7.424l-1.28 1.28H1.28v3.84H19.2v-3.84z";break;case"tablet":e="M4 2h12c.55 0 1 .45 1 1v14c0 .55-.45 1-1 1H4c-.55 0-1-.45-1-1V3c0-.55.45-1 1-1zm11 14V4H5v12h10zM6 5h6l-6 5V5z";break;case"tag":e="M11 2h7v7L8 19l-7-7zm3 6c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z";break;case"tagcloud":e="M11 3v4H1V3h10zm8 0v4h-7V3h7zM7 8v3H1V8h6zm12 0v3H8V8h11zM9 12v2H1v-2h8zm10 0v2h-9v-2h9zM6 15v1H1v-1h5zm5 0v1H7v-1h4zm3 0v1h-2v-1h2zm5 0v1h-4v-1h4z";break;case"testimonial":e="M4 3h12c.55 0 1.02.2 1.41.59S18 4.45 18 5v7c0 .55-.2 1.02-.59 1.41S16.55 14 16 14h-1l-5 5v-5H4c-.55 0-1.02-.2-1.41-.59S2 12.55 2 12V5c0-.55.2-1.02.59-1.41S3.45 3 4 3zm11 2H4v1h11V5zm1 3H4v1h12V8zm-3 3H4v1h9v-1z";break;case"text":e="M18 3v2H2V3h16zm-6 4v2H2V7h10zm6 0v2h-4V7h4zM8 11v2H2v-2h6zm10 0v2h-8v-2h8zm-4 4v2H2v-2h12z";break;case"thumbs-down":e="M7.28 18c-.15.02-.26-.02-.41-.07-.56-.19-.83-.79-.66-1.35.17-.55 1-3.04 1-3.58 0-.53-.75-1-1.35-1h-3c-.6 0-1-.4-1-1s2-7 2-7c.17-.39.55-1 1-1H14v9h-2.14c-.41.41-3.3 4.71-3.58 5.27-.21.41-.6.68-1 .73zM18 12h-2V3h2v9z";break;case"thumbs-up":e="M12.72 2c.15-.02.26.02.41.07.56.19.83.79.66 1.35-.17.55-1 3.04-1 3.58 0 .53.75 1 1.35 1h3c.6 0 1 .4 1 1s-2 7-2 7c-.17.39-.55 1-1 1H6V8h2.14c.41-.41 3.3-4.71 3.58-5.27.21-.41.6-.68 1-.73zM2 8h2v9H2V8z";break;case"tickets-alt":e="M20 6.38L18.99 9.2v-.01c-.52-.19-1.03-.16-1.53.08s-.85.62-1.04 1.14-.16 1.03.07 1.53c.24.5.62.84 1.15 1.03v.01l-1.01 2.82-15.06-5.38.99-2.79c.52.19 1.03.16 1.53-.08.5-.23.84-.61 1.03-1.13s.16-1.03-.08-1.53c-.23-.49-.61-.83-1.13-1.02L4.93 1zm-4.97 5.69l1.37-3.76c.12-.31.1-.65-.04-.95s-.39-.53-.7-.65L8.14 3.98c-.64-.23-1.37.12-1.6.74L5.17 8.48c-.24.65.1 1.37.74 1.6l7.52 2.74c.14.05.28.08.43.08.52 0 1-.33 1.17-.83zM7.97 4.45l7.51 2.73c.19.07.34.21.43.39.08.18.09.38.02.57l-1.37 3.76c-.13.38-.58.59-.96.45L6.09 9.61c-.39-.14-.59-.57-.45-.96l1.37-3.76c.1-.29.39-.49.7-.49.09 0 .17.02.26.05zm6.82 12.14c.35.27.75.41 1.2.41H16v3H0v-2.96c.55 0 1.03-.2 1.41-.59.39-.38.59-.86.59-1.41s-.2-1.02-.59-1.41-.86-.59-1.41-.59V10h1.05l-.28.8 2.87 1.02c-.51.16-.89.62-.89 1.18v4c0 .69.56 1.25 1.25 1.25h8c.69 0 1.25-.56 1.25-1.25v-1.75l.83.3c.12.43.36.78.71 1.04zM3.25 17v-4c0-.41.34-.75.75-.75h.83l7.92 2.83V17c0 .41-.34.75-.75.75H4c-.41 0-.75-.34-.75-.75z";break;case"tickets":e="M20 5.38L18.99 8.2v-.01c-1.04-.37-2.19.18-2.57 1.22-.37 1.04.17 2.19 1.22 2.56v.01l-1.01 2.82L1.57 9.42l.99-2.79c1.04.38 2.19-.17 2.56-1.21s-.17-2.18-1.21-2.55L4.93 0zm-5.45 3.37c.74-2.08-.34-4.37-2.42-5.12-2.08-.74-4.37.35-5.11 2.42-.74 2.08.34 4.38 2.42 5.12 2.07.74 4.37-.35 5.11-2.42zm-2.56-4.74c.89.32 1.57.94 1.97 1.71-.01-.01-.02-.01-.04-.02-.33-.12-.67.09-.78.4-.1.28-.03.57.05.91.04.27.09.62-.06 1.04-.1.29-.33.58-.65 1l-.74 1.01.08-4.08.4.11c.19.04.26-.24.08-.29 0 0-.57-.15-.92-.28-.34-.12-.88-.36-.88-.36-.18-.08-.3.19-.12.27 0 0 .16.08.34.16l.01 1.63L9.2 9.18l.08-4.11c.2.06.4.11.4.11.19.04.26-.23.07-.29 0 0-.56-.15-.91-.28-.07-.02-.14-.05-.22-.08.93-.7 2.19-.94 3.37-.52zM7.4 6.19c.17-.49.44-.92.78-1.27l.04 5c-.94-.95-1.3-2.39-.82-3.73zm4.04 4.75l2.1-2.63c.37-.41.57-.77.69-1.12.05-.12.08-.24.11-.35.09.57.04 1.18-.17 1.77-.45 1.25-1.51 2.1-2.73 2.33zm-.7-3.22l.02 3.22c0 .02 0 .04.01.06-.4 0-.8-.07-1.2-.21-.33-.12-.63-.28-.9-.48zm1.24 6.08l2.1.75c.24.84 1 1.45 1.91 1.45H16v3H0v-2.96c1.1 0 2-.89 2-2 0-1.1-.9-2-2-2V9h1.05l-.28.8 4.28 1.52C4.4 12.03 4 12.97 4 14c0 2.21 1.79 4 4 4s4-1.79 4-4c0-.07-.02-.13-.02-.2zm-6.53-2.33l1.48.53c-.14.04-.15.27.03.28 0 0 .18.02.37.03l.56 1.54-.78 2.36-1.31-3.9c.21-.01.41-.03.41-.03.19-.02.17-.31-.02-.3 0 0-.59.05-.96.05-.07 0-.15 0-.23-.01.13-.2.28-.38.45-.55zM4.4 14c0-.52.12-1.02.32-1.46l1.71 4.7C5.23 16.65 4.4 15.42 4.4 14zm4.19-1.41l1.72.62c.07.17.12.37.12.61 0 .31-.12.66-.28 1.16l-.35 1.2zM11.6 14c0 1.33-.72 2.49-1.79 3.11l1.1-3.18c.06-.17.1-.31.14-.46l.52.19c.02.11.03.22.03.34zm-4.62 3.45l1.08-3.14 1.11 3.03c.01.02.01.04.02.05-.37.13-.77.21-1.19.21-.35 0-.69-.06-1.02-.15z";break;case"tide":e="M17 7.2V3H3v7.1c2.6-.5 4.5-1.5 6.4-2.6.2-.2.4-.3.6-.5v3c-1.9 1.1-4 2.2-7 2.8V17h14V9.9c-2.6.5-4.4 1.5-6.2 2.6-.3.1-.5.3-.8.4V10c2-1.1 4-2.2 7-2.8z";break;case"translation":e="M11 7H9.49c-.63 0-1.25.3-1.59.7L7 5H4.13l-2.39 7h1.69l.74-2H7v4H2c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h7c1.1 0 2 .9 2 2v2zM6.51 9H4.49l1-2.93zM10 8h7c1.1 0 2 .9 2 2v7c0 1.1-.9 2-2 2h-7c-1.1 0-2-.9-2-2v-7c0-1.1.9-2 2-2zm7.25 5v-1.08h-3.17V9.75h-1.16v2.17H9.75V13h1.28c.11.85.56 1.85 1.28 2.62-.87.36-1.89.62-2.31.62-.01.02.22.97.2 1.46.84 0 2.21-.5 3.28-1.15 1.09.65 2.48 1.15 3.34 1.15-.02-.49.2-1.44.2-1.46-.43 0-1.49-.27-2.38-.63.7-.77 1.14-1.77 1.25-2.61h1.36zm-3.81 1.93c-.5-.46-.85-1.13-1.01-1.93h2.09c-.17.8-.51 1.47-1 1.93l-.04.03s-.03-.02-.04-.03z";break;case"trash":e="M12 4h3c.6 0 1 .4 1 1v1H3V5c0-.6.5-1 1-1h3c.2-1.1 1.3-2 2.5-2s2.3.9 2.5 2zM8 4h3c-.2-.6-.9-1-1.5-1S8.2 3.4 8 4zM4 7h11l-.9 10.1c0 .5-.5.9-1 .9H5.9c-.5 0-.9-.4-1-.9L4 7z";break;case"twitter":e="M18.94 4.46c-.49.73-1.11 1.38-1.83 1.9.01.15.01.31.01.47 0 4.85-3.69 10.44-10.43 10.44-2.07 0-4-.61-5.63-1.65.29.03.58.05.88.05 1.72 0 3.3-.59 4.55-1.57-1.6-.03-2.95-1.09-3.42-2.55.22.04.45.07.69.07.33 0 .66-.05.96-.13-1.67-.34-2.94-1.82-2.94-3.6v-.04c.5.27 1.06.44 1.66.46-.98-.66-1.63-1.78-1.63-3.06 0-.67.18-1.3.5-1.84 1.81 2.22 4.51 3.68 7.56 3.83-.06-.27-.1-.55-.1-.84 0-2.02 1.65-3.66 3.67-3.66 1.06 0 2.01.44 2.68 1.16.83-.17 1.62-.47 2.33-.89-.28.85-.86 1.57-1.62 2.02.75-.08 1.45-.28 2.11-.57z";break;case"undo":e="M12 5H7V2L1 6l6 4V7h5c2.2 0 4 1.8 4 4s-1.8 4-4 4H7v2h5c3.3 0 6-2.7 6-6s-2.7-6-6-6z";break;case"universal-access-alt":e="M19 10c0-4.97-4.03-9-9-9s-9 4.03-9 9 4.03 9 9 9 9-4.03 9-9zm-9-7.4c.83 0 1.5.67 1.5 1.5s-.67 1.51-1.5 1.51c-.82 0-1.5-.68-1.5-1.51s.68-1.5 1.5-1.5zM3.4 7.36c0-.65 6.6-.76 6.6-.76s6.6.11 6.6.76-4.47 1.4-4.47 1.4 1.69 8.14 1.06 8.38c-.62.24-3.19-5.19-3.19-5.19s-2.56 5.43-3.18 5.19c-.63-.24 1.06-8.38 1.06-8.38S3.4 8.01 3.4 7.36z";break;case"universal-access":e="M10 2.6c.83 0 1.5.67 1.5 1.5s-.67 1.51-1.5 1.51c-.82 0-1.5-.68-1.5-1.51s.68-1.5 1.5-1.5zM3.4 7.36c0-.65 6.6-.76 6.6-.76s6.6.11 6.6.76-4.47 1.4-4.47 1.4 1.69 8.14 1.06 8.38c-.62.24-3.19-5.19-3.19-5.19s-2.56 5.43-3.18 5.19c-.63-.24 1.06-8.38 1.06-8.38S3.4 8.01 3.4 7.36z";break;case"unlock":e="M12 9V6c0-1.1-.9-2-2-2s-2 .9-2 2H6c0-2.21 1.79-4 4-4s4 1.79 4 4v3h1c.55 0 1 .45 1 1v7c0 .55-.45 1-1 1H5c-.55 0-1-.45-1-1v-7c0-.55.45-1 1-1h7zm-1 7l-.36-2.15c.51-.24.86-.75.86-1.35 0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5c0 .6.35 1.11.86 1.35L9 16h2z";break;case"update":e="M10.2 3.28c3.53 0 6.43 2.61 6.92 6h2.08l-3.5 4-3.5-4h2.32c-.45-1.97-2.21-3.45-4.32-3.45-1.45 0-2.73.71-3.54 1.78L4.95 5.66C6.23 4.2 8.11 3.28 10.2 3.28zm-.4 13.44c-3.52 0-6.43-2.61-6.92-6H.8l3.5-4c1.17 1.33 2.33 2.67 3.5 4H5.48c.45 1.97 2.21 3.45 4.32 3.45 1.45 0 2.73-.71 3.54-1.78l1.71 1.95c-1.28 1.46-3.15 2.38-5.25 2.38z";break;case"upload":e="M8 14V8H5l5-6 5 6h-3v6H8zm-2 2v-6H4v8h12.01v-8H14v6H6z";break;case"vault":e="M18 17V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14c0 .55.45 1 1 1h14c.55 0 1-.45 1-1zm-1 0H3V3h14v14zM4.75 4h10.5c.41 0 .75.34.75.75V6h-1v3h1v2h-1v3h1v1.25c0 .41-.34.75-.75.75H4.75c-.41 0-.75-.34-.75-.75V4.75c0-.41.34-.75.75-.75zM13 10c0-2.21-1.79-4-4-4s-4 1.79-4 4 1.79 4 4 4 4-1.79 4-4zM9 7l.77 1.15C10.49 8.46 11 9.17 11 10c0 1.1-.9 2-2 2s-2-.9-2-2c0-.83.51-1.54 1.23-1.85z";break;case"video-alt":e="M8 5c0-.55-.45-1-1-1H2c-.55 0-1 .45-1 1 0 .57.49 1 1 1h5c.55 0 1-.45 1-1zm6 5l4-4v10l-4-4v-2zm-1 4V8c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h8c.55 0 1-.45 1-1z";break;case"video-alt2":e="M12 13V7c0-1.1-.9-2-2-2H3c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2zm1-2.5l6 4.5V5l-6 4.5v1z";break;case"video-alt3":e="M19 15V5c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2zM8 14V6l6 4z";break;case"visibility":e="M19.7 9.4C17.7 6 14 3.9 10 3.9S2.3 6 .3 9.4L0 10l.3.6c2 3.4 5.7 5.5 9.7 5.5s7.7-2.1 9.7-5.5l.3-.6-.3-.6zM10 14.1c-3.1 0-6-1.6-7.7-4.1C3.6 8 5.7 6.6 8 6.1c-.9.6-1.5 1.7-1.5 2.9 0 1.9 1.6 3.5 3.5 3.5s3.5-1.6 3.5-3.5c0-1.2-.6-2.3-1.5-2.9 2.3.5 4.4 1.9 5.7 3.9-1.7 2.5-4.6 4.1-7.7 4.1z";break;case"warning":e="M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm1.13 9.38l.35-6.46H8.52l.35 6.46h2.26zm-.09 3.36c.24-.23.37-.55.37-.96 0-.42-.12-.74-.36-.97s-.59-.35-1.06-.35-.82.12-1.07.35-.37.55-.37.97c0 .41.13.73.38.96.26.23.61.34 1.06.34s.8-.11 1.05-.34z";break;case"welcome-add-page":e="M17 7V4h-2V2h-3v1H3v15h11V9h1V7h2zm-1-2v1h-2v2h-1V6h-2V5h2V3h1v2h2z";break;case"welcome-comments":e="M5 2h10c1.1 0 2 .9 2 2v8c0 1.1-.9 2-2 2h-2l-5 5v-5H5c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2zm8.5 8.5L11 8l2.5-2.5-1-1L10 7 7.5 4.5l-1 1L9 8l-2.5 2.5 1 1L10 9l2.5 2.5z";break;case"welcome-learn-more":e="M10 10L2.54 7.02 3 18H1l.48-11.41L0 6l10-4 10 4zm0-5c-.55 0-1 .22-1 .5s.45.5 1 .5 1-.22 1-.5-.45-.5-1-.5zm0 6l5.57-2.23c.71.94 1.2 2.07 1.36 3.3-.3-.04-.61-.07-.93-.07-2.55 0-4.78 1.37-6 3.41C8.78 13.37 6.55 12 4 12c-.32 0-.63.03-.93.07.16-1.23.65-2.36 1.36-3.3z";break;case"welcome-view-site":e="M18 14V4c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h14c.55 0 1-.45 1-1zm-8-8c2.3 0 4.4 1.14 6 3-1.6 1.86-3.7 3-6 3s-4.4-1.14-6-3c1.6-1.86 3.7-3 6-3zm2 3c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2zm2 8h3v1H3v-1h3v-1h8v1z";break;case"welcome-widgets-menus":e="M19 16V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v13c0 .55.45 1 1 1h15c.55 0 1-.45 1-1zM4 4h13v4H4V4zm1 1v2h3V5H5zm4 0v2h3V5H9zm4 0v2h3V5h-3zm-8.5 5c.28 0 .5.22.5.5s-.22.5-.5.5-.5-.22-.5-.5.22-.5.5-.5zM6 10h4v1H6v-1zm6 0h5v5h-5v-5zm-7.5 2c.28 0 .5.22.5.5s-.22.5-.5.5-.5-.22-.5-.5.22-.5.5-.5zM6 12h4v1H6v-1zm7 0v2h3v-2h-3zm-8.5 2c.28 0 .5.22.5.5s-.22.5-.5.5-.5-.22-.5-.5.22-.5.5-.5zM6 14h4v1H6v-1z";break;case"welcome-write-blog":e="M16.89 1.2l1.41 1.41c.39.39.39 1.02 0 1.41L14 8.33V18H3V3h10.67l1.8-1.8c.4-.39 1.03-.4 1.42 0zm-5.66 8.48l5.37-5.36-1.42-1.42-5.36 5.37-.71 2.12z";break;case"wordpress-alt":e="M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z";break;case"wordpress":e="M20 10c0-5.52-4.48-10-10-10S0 4.48 0 10s4.48 10 10 10 10-4.48 10-10zM10 1.01c4.97 0 8.99 4.02 8.99 8.99s-4.02 8.99-8.99 8.99S1.01 14.97 1.01 10 5.03 1.01 10 1.01zM8.01 14.82L4.96 6.61c.49-.03 1.05-.08 1.05-.08.43-.05.38-1.01-.06-.99 0 0-1.29.1-2.13.1-.15 0-.33 0-.52-.01 1.44-2.17 3.9-3.6 6.7-3.6 2.09 0 3.99.79 5.41 2.09-.6-.08-1.45.35-1.45 1.42 0 .66.38 1.22.79 1.88.31.54.5 1.22.5 2.21 0 1.34-1.27 4.48-1.27 4.48l-2.71-7.5c.48-.03.75-.16.75-.16.43-.05.38-1.1-.05-1.08 0 0-1.3.11-2.14.11-.78 0-2.11-.11-2.11-.11-.43-.02-.48 1.06-.05 1.08l.84.08 1.12 3.04zm6.02 2.15L16.64 10s.67-1.69.39-3.81c.63 1.14.94 2.42.94 3.81 0 2.96-1.56 5.58-3.94 6.97zM2.68 6.77L6.5 17.25c-2.67-1.3-4.47-4.08-4.47-7.25 0-1.16.2-2.23.65-3.23zm7.45 4.53l2.29 6.25c-.75.27-1.57.42-2.42.42-.72 0-1.41-.11-2.06-.3z";break;case"yes-alt":e="M10 2c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm-.615 12.66h-1.34l-3.24-4.54 1.34-1.25 2.57 2.4 5.14-5.93 1.34.94-5.81 8.38z";break;case"yes":e="M14.83 4.89l1.34.94-5.81 8.38H9.02L5.78 9.67l1.34-1.25 2.57 2.4z"}if(!e)return null;var s=["dashicon","dashicons-"+c,r].filter(Boolean).join(" ");return Object(_.createElement)(Me,C({"aria-hidden":!0,role:"img",focusable:"false",className:s,xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 20 20"},o),Object(_.createElement)(He,{d:e}))}}]),t}();var xe=function(e){var t=e.icon,c=void 0===t?null:t,a=e.size,n=V(e,["icon","size"]),r=a||20;if("string"==typeof c)return Object(_.createElement)(Ve,C({icon:c,size:r},n));if(c&&Ve===c.type)return Object(_.cloneElement)(c,M({size:r},n));var o=a||24;if("function"==typeof c)return c.prototype instanceof _.Component?Object(_.createElement)(c,M({size:o},n)):c(M({size:o},n));if(c&&("svg"===c.type||c.type===Me)){var s=M({width:o,height:o},c.props,n);return Object(_.createElement)(Me,s)}return Object(_.isValidElement)(c)?Object(_.cloneElement)(c,M({size:o},n)):c};var Ce=Object(_.forwardRef)(function(e,t){var c=e.icon,a=e.children,n=e.label,r=e.className,o=e.tooltip,s=e.shortcut,i=e.labelPosition,l=e.size,m=V(e,["icon","children","label","className","tooltip","shortcut","labelPosition","size"]),u=j()("components-icon-button",r,{"has-text":a}),d=o||n,h=!m.disabled&&(o||s||!!n&&(!a||Object(O.isArray)(a)&&!a.length)&&!1!==o),v=Object(_.createElement)(x,C({"aria-label":n},m,{className:u,ref:t}),Object(_.createElement)(xe,{icon:c,size:l}),a);return h&&(v=Object(_.createElement)(je,{text:d,shortcut:s,position:i},v)),v});var Le=function(e){var t=e.className,c=e.status,a=e.children,n=e.onRemove,r=void 0===n?O.noop:n,o=e.isDismissible,s=void 0===o||o,i=e.actions,l=void 0===i?[]:i,m=e.__unstableHTML,u=j()(t,"components-notice","is-"+c,{"is-dismissible":s});return m&&(a=Object(_.createElement)(_.RawHTML,null,a)),Object(_.createElement)("div",{className:u},Object(_.createElement)("div",{className:"components-notice__content"},a,l.map(function(e,t){var c=e.className,a=e.label,n=e.noDefaultClasses,r=void 0!==n&&n,o=e.onClick,s=e.url;return Object(_.createElement)(x,{key:t,href:s,isDefault:!r&&!s,isLink:!r&&!!s,onClick:s?void 0:o,className:j()("components-notice__action",c)},a)})),s&&Object(_.createElement)(Ce,{className:"components-notice__dismiss",icon:"no-alt",label:Object(b.__)("Dismiss this notice"),onClick:r,tooltip:!1}))},Se=c(73),Ne=(c(45),function(){Object(_.useEffect)(function(){var e=document.createElement("script");e.src="https://js.stripe.com/v3",e.async=!0,document.querySelector('[src="'.concat(e.src,'"]'))||document.body.appendChild(e)},[])}),Te=(c(46),function(e){var t=e.children,c=e.maxWidth,a=e.isNarrow,n=e.className,r=c?{maxWidth:c}:null,o=[void 0===n?"":n,"woocommerce-payments-page"];return a&&o.push("is-narrow"),Ne(),Object(_.createElement)("div",{className:o.join(" "),style:r},t)}),Be=function(){return Object(_.createElement)("svg",{width:"260",height:"193",viewBox:"0 0 260 193",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(_.createElement)("g",{clipPath:"url(#clip0)"},Object(_.createElement)("path",{d:"M188.147 0.353976L5.49328 57.1468C1.37508 58.4273 -0.926025 62.806 0.353615 66.9269L33.2129 172.746C34.4926 176.867 38.8684 179.169 42.9866 177.889L225.64 121.096C229.758 119.815 232.059 115.437 230.78 111.316L197.92 5.49701C196.641 1.37611 192.265 -0.926507 188.147 0.353976Z",fill:"url(#paint0_linear)"}),Object(_.createElement)("path",{d:"M187.201 2.02519L8.57824 57.5647C4.46004 58.8451 2.15894 63.2238 3.43858 67.3447L34.9709 168.89C36.2505 173.011 40.6264 175.314 44.7446 174.033L223.367 118.494C227.485 117.213 229.786 112.835 228.507 108.714L196.974 7.16823C195.695 3.04733 191.319 0.744715 187.201 2.02519Z",fill:"white"}),Object(_.createElement)("path",{d:"M199.423 15.0552L5.8877 75.2317L11.0743 91.9346L204.61 31.7581L199.423 15.0552Z",fill:"#674399"}),Object(_.createElement)("path",{d:"M95.0713 134.624L45.8979 149.914L48.1408 157.137L97.3142 141.847L95.0713 134.624Z",fill:"#BDBDBD"}),Object(_.createElement)("path",{d:"M127.377 111.214L42.1133 137.725L44.3562 144.948L129.62 118.437L127.377 111.214Z",fill:"#E0E0E0"}),Object(_.createElement)("path",{d:"M252.192 66.439H59.7576C55.4451 66.439 51.9492 69.9372 51.9492 74.2524V185.187C51.9492 189.502 55.4451 193 59.7576 193H252.192C256.504 193 260 189.502 260 185.187V74.2524C260 69.9372 256.504 66.439 252.192 66.439Z",fill:"url(#paint1_linear)"}),Object(_.createElement)("path",{d:"M249.166 67.7293H62.1194C57.8069 67.7293 54.311 71.2275 54.311 75.5428V181.877C54.311 186.193 57.8069 189.691 62.1194 189.691H249.166C253.479 189.691 256.975 186.193 256.975 181.877V75.5428C256.975 71.2275 253.479 67.7293 249.166 67.7293Z",fill:"white"}),Object(_.createElement)("path",{d:"M108.411 126.936H102.506V143.718H108.411V126.936Z",fill:"#E0E0E0"}),Object(_.createElement)("path",{d:"M115.97 126.936H110.064V143.718H115.97V126.936Z",fill:"#E0E0E0"}),Object(_.createElement)("path",{d:"M123.528 126.936H117.623V143.718H123.528V126.936Z",fill:"#E0E0E0"}),Object(_.createElement)("path",{d:"M136.756 126.936H130.851V143.718H136.756V126.936Z",fill:"#E0E0E0"}),Object(_.createElement)("path",{d:"M144.314 126.936H138.409V143.718H144.314V126.936Z",fill:"#E0E0E0"}),Object(_.createElement)("path",{d:"M151.872 126.936H145.967V143.718H151.872V126.936Z",fill:"#E0E0E0"}),Object(_.createElement)("path",{d:"M165.1 126.936H159.195V143.718H165.1V126.936Z",fill:"#E0E0E0"}),Object(_.createElement)("path",{d:"M172.659 126.936H166.753V143.718H172.659V126.936Z",fill:"#E0E0E0"}),Object(_.createElement)("path",{d:"M180.217 126.936H174.312V143.718H180.217V126.936Z",fill:"#E0E0E0"}),Object(_.createElement)("path",{d:"M193.445 126.936H187.54V143.718H193.445V126.936Z",fill:"#E0E0E0"}),Object(_.createElement)("path",{d:"M201.003 126.936H195.098V143.718H201.003V126.936Z",fill:"#E0E0E0"}),Object(_.createElement)("path",{d:"M208.562 126.936H202.657V143.718H208.562V126.936Z",fill:"#E0E0E0"}),Object(_.createElement)("path",{d:"M102.414 99.6817H67.2051V119.002H102.414V99.6817Z",fill:"#674399"}),Object(_.createElement)("path",{opacity:"0.1",d:"M225.643 163.042H204.064V184.635H225.643V163.042Z",fill:"#674399"}),Object(_.createElement)("path",{opacity:"0.1",d:"M236.433 163.042H214.854V184.635H236.433V163.042Z",fill:"#674399"})),Object(_.createElement)("defs",null,Object(_.createElement)("linearGradient",{id:"paint0_linear",x1:"115.955",y1:"178.574",x2:"116.743",y2:"-0.324663",gradientUnits:"userSpaceOnUse"},Object(_.createElement)("stop",{stopColor:"#808080",stopOpacity:"0.25"}),Object(_.createElement)("stop",{offset:"0.53514",stopColor:"#808080",stopOpacity:"0.12"}),Object(_.createElement)("stop",{offset:"1",stopColor:"#808080",stopOpacity:"0.1"})),Object(_.createElement)("linearGradient",{id:"paint1_linear",x1:"114339",y1:"86036.4",x2:"114339",y2:"29661",gradientUnits:"userSpaceOnUse"},Object(_.createElement)("stop",{stopColor:"#808080",stopOpacity:"0.25"}),Object(_.createElement)("stop",{offset:"0.53514",stopColor:"#808080",stopOpacity:"0.12"}),Object(_.createElement)("stop",{offset:"1",stopColor:"#808080",stopOpacity:"0.1"})),Object(_.createElement)("clipPath",{id:"clip0"},Object(_.createElement)("rect",{width:"260",height:"193",fill:"white"}))))},Ie=function(){var e=Object(_.useState)(!1),t=z()(e,2),c=t[0],a=t[1];return Object(_.createElement)(Te,{isNarrow:!0,className:"connect-account"},wcpaySettings.errorMessage&&Object(_.createElement)(Le,{className:"wcpay-connect-error-notice",status:"error",isDismissible:!1},wcpaySettings.errorMessage),Object(_.createElement)(E.Card,{className:"connect-account__card"},Object(_.createElement)(Be,null),Object(_.createElement)("h2",null," ",Object(b.__)("WooCommerce Payments","woocommerce-payments")," "),Object(_.createElement)("p",{className:"connect-account__description"},Object(b.__)("Accept credit card payments the easy way! No set up fees. No monthly fees. Just 2.9% + $0.30 per transaction on U.S.-issued cards.","woocommerce-payments")),wcpaySettings.onBoardingDisabled?Object(_.createElement)("p",null,Object(b.__)("We've temporarily paused new account creation.","woocommmerce-payments"),Object(_.createElement)("br",null),Object(b.__)("We'll notify you when we resume!","woocommmerce-payments")):Object(_.createElement)(_.Fragment,null,Object(_.createElement)("p",{className:"connect-account__terms"},Object(Se.a)(Object(b.__)("By clicking “Set up,” you agree to the <a>Terms of Service</a>","woocommerce-payments"),{a:Object(_.createElement)("a",{href:"https://wordpress.com/tos"})})),Object(_.createElement)("hr",{className:"full-width"}),Object(_.createElement)("p",{className:"connect-account__action"},Object(_.createElement)(x,{isPrimary:!0,isLarge:!0,isBusy:c,disabled:c,onClick:function(){a(!0),window.wcTracks.recordEvent("wcpay_connect_account_clicked")},href:wcpaySettings.connectUrl},Object(b.__)("Set up","woocommerce-payments"))))))},Re=c(14),De=c.n(Re),Ae=c(11),Pe=c(18),Fe=c.n(Pe),qe=c(6),Ue=c.n(qe),We=(c(50),"/wc/v3/payments"),Qe="wc/payments",Ye=c(4),Ze=c.n(Ye),$e=c(12),Ge=c(9),Je=c(8),Ke=c.n(Je),Xe={SET_DEPOSIT:"SET_DEPOSIT",SET_DEPOSITS_OVERVIEW:"SET_DEPOSITS_OVERVIEW",SET_ERROR_FOR_DEPOSITS_OVERVIEW:"SET_ERROR_FOR_DEPOSITS_OVERVIEW",SET_DEPOSITS:"SET_DEPOSITS",SET_ERROR_FOR_DEPOSIT_QUERY:"SET_ERROR_FOR_DEPOSIT_QUERY"},et=function(e){return JSON.stringify(e,Object.keys(e).sort())},tt={byId:{},queries:{}},ct=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:tt,t=arguments.length>1?arguments[1]:void 0,c=t.type,a=t.query,n=void 0===a?{}:a,r=t.data,o=void 0===r?[]:r,s=t.error,i=et(n);switch(c){case Xe.SET_DEPOSIT:return Ze()({},e,{byId:Ze()({},e.byId,Ke()({},o.id,o))});case Xe.SET_DEPOSITS_OVERVIEW:return Ze()({},e,{overview:Ze()({},e.overview,{data:o})});case Xe.SET_ERROR_FOR_DEPOSITS_OVERVIEW:return Ze()({},e,{overview:Ze()({},e.overview,{error:s})});case Xe.SET_DEPOSITS:return Ze()({},e,{byId:Ze()({},e.byId,{},Object(O.keyBy)(o,"id")),queries:Ze()({},e.queries,Ke()({},i,{data:Object(O.map)(o,"id")}))});case Xe.SET_ERROR_FOR_DEPOSIT_QUERY:return Ze()({},e,{queries:Ze()({},e.queries,Ke()({},i,{error:s}))})}return e},at=function(e){return e&&e.deposits||{}},nt=function(e,t){return(at(e).byId||{})[t]},rt=function(e){return(at(e).overview||{}).data},ot=function(e){return(at(e).overview||{}).error},st=function(e,t){var c=et(t);return(at(e).queries||{})[c]||{}},it=function(e,t){return(st(e,t).data||[]).map(nt.bind(void 0,e))},lt=function(e,t){return st(e,t).error||{}};function mt(e){return{type:Xe.SET_DEPOSIT,data:e}}function ut(e){return{type:Xe.SET_DEPOSITS_OVERVIEW,data:e}}function dt(e,t){return{type:Xe.SET_ERROR_FOR_DEPOSITS_OVERVIEW,error:t}}function ht(e,t){return{type:Xe.SET_DEPOSITS,query:e,data:t}}function vt(e,t,c){return{type:Xe.SET_ERROR_FOR_DEPOSIT_QUERY,query:e,data:t,error:c}}var pt=c(5),ft=c.n(pt),gt=c(10),bt=ft.a.mark(_t),wt=ft.a.mark(Et),yt=ft.a.mark(Ot),zt=function(e){return{id:e.id,date:+new Date(1e3*e.arrival_date),type:e.amount>0?"deposit":"withdrawal",amount:e.amount,status:e.status,bankAccount:e.destination.bank_name&&"".concat(e.destination.bank_name," ")+"•••• ".concat(e.destination.last4," ")+"(".concat(e.destination.currency.toUpperCase(),")")}};function _t(e){var t,c;return ft.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return t=Object(gt.addQueryArgs)("".concat(We,"/deposits/").concat(e)),a.prev=1,a.next=4,Object(Ge.apiFetch)({path:t});case 4:return"payout"===(c=a.sent).object&&(c=zt(c)),a.next=8,mt(c);case 8:a.next=14;break;case 10:return a.prev=10,a.t0=a.catch(1),a.next=14,Object(Ge.dispatch)("core/notices","createErrorNotice",Object(b.__)("Error retrieving deposit.","woocommerce-payments"));case 14:case"end":return a.stop()}},bt,null,[[1,10]])}function Et(){var e,t;return ft.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return e=Object(gt.addQueryArgs)("".concat(We,"/deposits/overview")),c.prev=1,c.next=4,Object(Ge.apiFetch)({path:e});case 4:return(t=c.sent).last_deposit&&"payout"===t.last_deposit.object&&(t.last_deposit=zt(t.last_deposit)),t.next_deposit&&"payout"===t.next_deposit.object&&(t.next_deposit=zt(t.next_deposit)),c.next=9,ut(t);case 9:c.next=17;break;case 11:return c.prev=11,c.t0=c.catch(1),c.next=15,Object(Ge.dispatch)("core/notices","createErrorNotice",Object(b.__)("Error retrieving deposits overview.","woocommerce-payments"));case 15:return c.next=17,dt(c.t0);case 17:case"end":return c.stop()}},wt,null,[[1,11]])}function Ot(e){var t,c,a;return ft.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return t=Object(gt.addQueryArgs)("".concat(We,"/deposits"),{page:e.paged,pagesize:e.perPage}),n.prev=1,n.next=4,Object(Ge.apiFetch)({path:t})||{};case 4:return(c=n.sent).data&&c.data.length&&"payout"===c.data[0].object&&(c.data=c.data.map(zt)),n.next=8,ht(e,c.data);case 8:n.t0=ft.a.keys(c.data);case 9:if((n.t1=n.t0()).done){n.next=15;break}return a=n.t1.value,n.next=13,Object(Ge.dispatch)(Qe,"finishResolution","getDeposit",[c.data[a].id]);case 13:n.next=9;break;case 15:n.next=23;break;case 17:return n.prev=17,n.t2=n.catch(1),n.next=21,Object(Ge.dispatch)("core/notices","createErrorNotice",Object(b.__)("Error retrieving deposits.","woocommerce-payments"));case 21:return n.next=23,vt(e,null,n.t2);case 23:case"end":return n.stop()}},yt,null,[[1,17]])}var kt={SET_TRANSACTIONS:"SET_TRANSACTIONS",SET_ERROR_FOR_TRANSACTIONS:"SET_ERROR_FOR_TRANSACTIONS",SET_TRANSACTIONS_SUMMARY:"SET_TRANSACTIONS_SUMMARY",SET_ERROR_FOR_TRANSACTIONS_SUMMARY:"SET_ERROR_FOR_TRANSACTIONS_SUMMARY"},jt={summary:{}},Ht=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:jt,t=arguments.length>1?arguments[1]:void 0,c=t.type,a=t.query,n=void 0===a?{}:a,r=t.data,o=void 0===r?[]:r,s=t.error,i=et(n);switch(c){case kt.SET_TRANSACTIONS:return Ze()({},e,Ke()({},i,{data:o}));case kt.SET_ERROR_FOR_TRANSACTIONS:return Ze()({},e,Ke()({},i,{error:s}));case kt.SET_TRANSACTIONS_SUMMARY:return Ze()({},e,{summary:Ze()({},e.summary,Ke()({},i,{data:o}))});case kt.SET_ERROR_FOR_TRANSACTIONS_SUMMARY:return Ze()({},e,{summary:Ze()({},e.summary,Ke()({},i,{error:s}))})}return e},Mt=function(e){return e&&e.transactions||{}},Vt=function(e,t){var c=et(t);return Mt(e)[c]||{}},xt=function(e,t){return Vt(e,t).data||[]},Ct=function(e,t){return Vt(e,t).error||{}},Lt=function(e,t){var c=et(t);return Mt(e).summary[c]||{}},St=function(e,t){return Lt(e,t).data||{}},Nt=function(e,t){return Lt(e,t).error||{}};function Tt(e,t){return{type:kt.SET_TRANSACTIONS,query:e,data:t}}function Bt(e,t,c){return{type:kt.SET_ERROR_FOR_TRANSACTIONS,query:e,data:t,error:c}}function It(e,t){return{type:kt.SET_TRANSACTIONS_SUMMARY,query:e,data:t}}function Rt(e,t,c){return{type:kt.SET_ERROR_FOR_TRANSACTIONS_SUMMARY,query:e,data:t,error:c}}var Dt=function(e){return Object(O.capitalize)(e).replace(/_/g," ")},At=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=t?Ue()(e).endOf("day").utc():Ue()(e).startOf("day").utc();return e&&Object(Ae.dateI18n)("Y-m-d H:i:s",c)},Pt=ft.a.mark(Ut),Ft=ft.a.mark(Wt),qt=function(e){return{match:e.match,date_before:At(e.dateBefore,!0),date_after:At(e.dateAfter),date_between:e.dateBetween&&[At(e.dateBetween[0]),At(e.dateBetween[1],!0)],type_is:e.typeIs,type_is_not:e.typeIsNot,deposit_id:e.depositId,search:e.search}};function Ut(e){var t,c;return ft.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return t=Object(gt.addQueryArgs)("".concat(We,"/transactions"),Ze()({page:e.paged,pagesize:e.perPage,sort:e.orderby,direction:e.order},qt(e))),a.prev=1,a.next=4,Object(Ge.apiFetch)({path:t});case 4:return c=a.sent,a.next=7,Tt(e,c.data||[]);case 7:a.next=13;break;case 9:return a.prev=9,a.t0=a.catch(1),a.next=13,Bt(e,null,a.t0);case 13:case"end":return a.stop()}},Pt,null,[[1,9]])}function Wt(e){var t,c;return ft.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return t=Object(gt.addQueryArgs)("".concat(We,"/transactions/summary"),qt(e)),a.prev=1,a.next=4,Object(Ge.apiFetch)({path:t});case 4:return c=a.sent,a.next=7,It(e,c);case 7:a.next=13;break;case 9:return a.prev=9,a.t0=a.catch(1),a.next=13,Rt(e,null,a.t0);case 13:case"end":return a.stop()}},Ft,null,[[1,9]])}var Qt={SET_CHARGE:"SET_CHARGE",SET_ERROR_FOR_CHARGE:"SET_ERROR_FOR_CHARGE"},Yt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,c=t.type,a=t.id,n=t.data,r=t.error;switch(c){case Qt.SET_CHARGE:e=Ze()({},e,Ke()({},a,Ze()({},e[a],{data:n})));break;case Qt.SET_ERROR_FOR_CHARGE:e=Ze()({},e,Ke()({},a,Ze()({},e[a],{error:r})))}return e},Zt=function(e,t){return e.charges[t]&&e.charges[t].data?e.charges[t].data:{}},$t=function(e,t){return e.charges[t]&&e.charges[t].error?e.charges[t].error:{}};function Gt(e,t){return{type:Qt.SET_CHARGE,id:e,data:t}}function Jt(e,t,c){return{type:Qt.SET_ERROR_FOR_CHARGE,id:e,data:t,error:c}}var Kt=ft.a.mark(Xt);function Xt(e){var t;return ft.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.prev=0,c.next=3,Object(Ge.apiFetch)({path:"".concat(We,"/charges/").concat(e)});case 3:return t=c.sent,c.next=6,Gt(e,t);case 6:c.next=12;break;case 8:return c.prev=8,c.t0=c.catch(0),c.next=12,Jt(e,null,c.t0);case 12:case"end":return c.stop()}},Kt,null,[[0,8]])}var ec={SET_TIMELINE:"SET_TIMELINE",SET_ERROR_FOR_TIMELINE:"SET_ERROR_FOR_TIMELINE"},tc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,c=t.type,a=t.id,n=t.data,r=t.error;switch(c){case ec.SET_TIMELINE:e=Ze()({},e,Ke()({},a,{data:n}));break;case ec.SET_ERROR_FOR_TIMELINE:e=Ze()({},e,Ke()({},a,Ze()({},e[a],{error:r})))}return e},cc=function(e,t){return e.timeline&&e.timeline[t]&&e.timeline[t].data?e.timeline[t].data:{}},ac=function(e,t){return e.timeline&&e.timeline[t]&&e.timeline[t].error?e.timeline[t].error:{}};function nc(e,t){return{id:e,type:ec.SET_TIMELINE,data:t}}function rc(e,t){return{id:e,type:ec.SET_ERROR_FOR_TIMELINE,error:t}}var oc=ft.a.mark(sc);function sc(e){var t;return ft.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.prev=0,c.next=3,Object(Ge.apiFetch)({path:"".concat(We,"/timeline/").concat(e)});case 3:return t=c.sent,c.next=6,nc(e,t.data);case 6:c.next=12;break;case 8:return c.prev=8,c.t0=c.catch(0),c.next=12,rc(e,c.t0);case 12:case"end":return c.stop()}},oc,null,[[0,8]])}var ic={SET_DISPUTE:"SET_DISPUTE",SET_DISPUTES:"SET_DISPUTES"},lc={byId:{},queries:{}},mc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:lc,t=arguments.length>1?arguments[1]:void 0,c=t.type,a=t.query,n=void 0===a?{}:a,r=t.data,o=void 0===r?[]:r,s=et(n);switch(c){case ic.SET_DISPUTE:return Ze()({},e,{byId:Ze()({},e.byId,Ke()({},o.id,o))});case ic.SET_DISPUTES:return Ze()({},e,{byId:Ze()({},e.byId,{},Object(O.keyBy)(o,"id")),queries:Ze()({},e.queries,Ke()({},s,{data:Object(O.map)(o,"id")}))})}return e},uc=function(e){return e&&e.disputes||{}},dc=function(e,t){return(uc(e).byId||{})[t]},hc=function(e,t){return(function(e,t){var c=et(t);return(uc(e).queries||{})[c]||{}}(e,t).data||[]).map(dc.bind(void 0,e))},vc=c(7),pc=ft.a.mark(bc);function fc(e){return{type:ic.SET_DISPUTE,data:e}}function gc(e,t){return{type:ic.SET_DISPUTES,query:e,data:t}}function bc(e){var t,c,a;return ft.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,Object(Ge.dispatch)(Qe,"startResolution","getDispute",[e]);case 3:return n.next=5,Object(Ge.apiFetch)({path:"".concat(We,"/disputes/").concat(e,"/close"),method:"post"});case 5:return t=n.sent,n.next=8,fc(t);case 8:return n.next=10,Object(Ge.dispatch)(Qe,"finishResolution","getDispute",[e]);case 10:return Object(vc.getHistory)().push(Object(gt.addQueryArgs)("admin.php",{page:"wc-admin",path:"/payments/disputes"})),window.wcTracks.recordEvent("wcpay_dispute_accept_success"),c=t.order?Object(b.sprintf)(Object(b.__)("You have accepted the dispute for order #%s.","woocommerce-payments"),t.order.number):Object(b.__)("You have accepted the dispute.","woocommerce-payments"),n.next=15,Object(Ge.dispatch)("core/notices","createSuccessNotice",c);case 15:n.next=23;break;case 17:return n.prev=17,n.t0=n.catch(0),a=Object(b.__)("There has been an error accepting the dispute. Please try again later.","woocommerce-payments"),window.wcTracks.recordEvent("wcpay_dispute_accept_failed"),n.next=23,Object(Ge.dispatch)("core/notices","createErrorNotice",a);case 23:case"end":return n.stop()}},pc,null,[[0,17]])}var wc=ft.a.mark(zc),yc=ft.a.mark(_c);function zc(e){var t,c;return ft.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return t=Object(gt.addQueryArgs)("".concat(We,"/disputes/").concat(e)),a.prev=1,a.next=4,Object(Ge.apiFetch)({path:t});case 4:return c=a.sent,a.next=7,fc(c);case 7:a.next=13;break;case 9:return a.prev=9,a.t0=a.catch(1),a.next=13,Object(Ge.dispatch)("core/notices","createErrorNotice",Object(b.__)("Error retrieving dispute.","woocommerce-payments"));case 13:case"end":return a.stop()}},wc,null,[[1,9]])}function _c(e){var t,c,a;return ft.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return t=Object(gt.addQueryArgs)("".concat(We,"/disputes"),{page:e.paged,pagesize:e.perPage}),n.prev=1,n.next=4,Object(Ge.apiFetch)({path:t})||{};case 4:return c=n.sent,n.next=7,gc(e,c.data);case 7:n.t0=ft.a.keys(c.data);case 8:if((n.t1=n.t0()).done){n.next=14;break}return a=n.t1.value,n.next=12,Object(Ge.dispatch)(Qe,"finishResolution","getDispute",[c.data[a].id]);case 12:n.next=8;break;case 14:n.next=20;break;case 16:return n.prev=16,n.t2=n.catch(1),n.next=20,Object(Ge.dispatch)("core/notices","createErrorNotice",Object(b.__)("Error retrieving disputes.","woocommerce-payments"));case 20:case"end":return n.stop()}},yc,null,[[1,16]])}Object($e.registerStore)(Qe,{reducer:Object($e.combineReducers)({deposits:ct,transactions:Ht,charges:Yt,timeline:tc,disputes:mc}),actions:Ze()({},n,{},s,{},m,{},h,{},f),controls:Ge.controls,selectors:Ze()({},a,{},o,{},l,{},d,{},p),resolvers:Ze()({},r,{},i,{},u,{},v,{},g)});var Ec=c(20),Oc=c.n(Ec),kc=c(25),jc=c.n(kc),Hc=(c(52),function(e){var t=e.isLoading,c=e.display,a=e.placeholder,n=e.value,r=e.children;return t?Object(_.createElement)("span",{className:c?"is-loadable-placeholder is-".concat(c):"is-loadable-placeholder","aria-busy":"true"},void 0===a?r||n:a):r||n||null}),Mc=function(e){var t=e.numLines,c=void 0===t?1:t,a=jc()(e,["numLines"]),n=Object(_.createElement)("p",{style:{lineHeight:c}},"Block placeholder");return Object(_.createElement)(Hc,Oc()({},a,{placeholder:n,display:"block"}))},Vc=Hc,xc=function(e,t){return Object(gt.addQueryArgs)("admin.php",{page:"wc-admin",path:"/payments/".concat(t,"/details"),id:e})},Cc=function(e){var t=e.id,c=e.parentSegment;return t?Object(_.createElement)(E.Link,{href:xc(t,c)},Object(_.createElement)(Fe.a,{icon:"info-outline",size:18})):null},Lc=new De.a,Sc=function(e,t){return Object(Ae.dateI18n)(e,Ue.a.utc(t))},Nc=function(e){return Lc.formatCurrency((e?e.amount:0)/100)},Tc=function(e){var t=e?"".concat(Object(b.__)("Est.","woocommerce-payments")," ").concat(Sc("M j, Y",e.date)):"—";return e&&"in_transit"===e.status?"".concat(t," - ").concat(Object(b.__)("In transit","woocommerce-payments")):t},Bc=function(e){switch(e.interval){case"daily":return Object(b.__)("Automatic, every business day","woocommerce-payments");case"weekly":return Object(b.sprintf)(Object(b.__)("Automatic, every week on %s","woocommerce-payments"),Ue()().locale("en").day(e.weekly_anchor).locale(Ue.a.locale()).format("dddd"));case"monthly":var t=Ue.a.locale().startsWith("en")?"en":Ue.a.locale();return Object(b.sprintf)(Object(b.__)("Automatic, every month on the %s","woocommerce-payments"),Ue()().locale(t).date(e.monthly_anchor).format("Do"))}},Ic=function(){var e=Object($e.useSelect)(function(e){var t=e(Qe),c=t.getDepositsOverview,a=t.getDepositsOverviewError,n=t.isResolving;return{overview:c(),overviewError:a(),isLoading:n("getDepositsOverview")}}),t=e.overview,c=e.isLoading;return Object(_.createElement)("div",{className:"wcpay-deposits-overview"},Object(_.createElement)("p",{className:"wcpay-deposits-overview__schedule"},Object(_.createElement)(Fe.a,{icon:"calendar",className:"wcpay-deposits-overview__schedule-icon"}),Object(_.createElement)("span",{className:"wcpay-deposits-overview__schedule-label"},Object(b.__)("Deposit schedule:","woocommerce-payments"))," ",Object(_.createElement)("span",{className:"wcpay-deposits-overview__schedule-value"},Object(_.createElement)(Vc,{isLoading:c||!t,display:"inline",placeholder:"Deposit schedule placeholder"},t?(a=t,n=a.account,r=n.deposits_schedule,o=n.deposits_disabled,s=a.last_deposit,o||"manual"===r.interval?Object(Se.a)(Object(b.__)("Temporarily suspended (<a>learn more</a>)","woocommerce-payments"),{a:Object(_.createElement)("a",{href:"https://docs.woocommerce.com/document/payments/faq/deposits-suspended/",target:"_blank",rel:"noopener noreferrer"})}):s?Bc(r):Object(Se.a)(Object(b.sprintf)(Object(b.__)("%s – your first deposit is held for seven days (<a>learn more</a>)","woocommerce-payments"),Bc({interval:"daily"})),{a:Object(_.createElement)("a",{href:"https://docs.woocommerce.com/document/payments/faq/deposit-schedule/",target:"_blank",rel:"noopener noreferrer"})})):""))),c||!t?Object(_.createElement)(E.SummaryListPlaceholder,{numberOfItems:4}):Object(_.createElement)(E.SummaryList,{label:Object(b.__)("Deposits overview","woocommerce-payments")},function(){return[Object(_.createElement)(E.SummaryNumber,{key:"lastDeposit",label:Object(b.__)("Last deposit","woocommerce-payments"),value:Nc(t.last_deposit),prevLabel:(c=t.last_deposit,c?Sc("F j, Y",c.date):"—"),href:t.last_deposit?xc(t.last_deposit.id,"deposits"):""}),Object(_.createElement)(E.SummaryNumber,{key:"nextDeposit",label:Object(b.__)("Next deposit","woocommerce-payments"),value:Nc(t.next_deposit),prevLabel:Tc(t.next_deposit),href:t.next_deposit?xc(t.next_deposit.id,"deposits"):""}),Object(_.createElement)(E.SummaryNumber,{key:"pendingBalance",label:Object(b.__)("Pending balance","woocommerce-payments"),value:Nc(t.balance.pending),prevLabel:(e=t.balance.pending,Object(b.sprintf)(Object(b._n)("%d deposit","%d deposits",e.deposits_count,"woocommerce-payments"),e.deposits_count))}),Object(_.createElement)(E.SummaryNumber,{key:"availableBalance",label:Object(b.__)("Available balance","woocommerce-payments"),value:Nc(t.balance.available),prevLabel:""})];var e,c}));var a,n,r,o,s},Rc={deposit:Object(b.__)("Deposit","woocommerce-payments"),withdrawal:Object(b.__)("Withdrawal","woocommerce-payments")},Dc={paid:Object(b.__)("Paid","woocommerce-payments"),pending:Object(b.__)("Pending","woocommerce-payments"),in_transit:Object(b.__)("In transit","woocommerce-payments"),canceled:Object(b.__)("Canceled","woocommerce-payments"),failed:Object(b.__)("Failed","woocommerce-payments"),estimated:Object(b.__)("Estimated","woocommerce-payments")},Ac=c(40),Pc=(c(56),function(e){var t=e.href,c=e.children;return t?Object(_.createElement)(E.Link,{href:t,className:"woocommerce-table__clickable-cell",tabIndex:"-1"},c):c}),Fc=new De.a,qc=[{key:"details",label:"",required:!0,cellClassName:"info-button"},{key:"date",label:Object(b.__)("Date","woocommerce-payments"),required:!0,isLeftAligned:!0,defaultOrder:"desc",cellClassName:"date-time"},{key:"type",label:Object(b.__)("Type","woocommerce-payments"),required:!0},{key:"amount",label:Object(b.__)("Amount","woocommerce-payments"),isNumeric:!0,required:!0},{key:"status",label:Object(b.__)("Status","woocommerce-payments"),required:!0},{key:"bankAccount",label:Object(b.__)("Bank account","woocommerce-payments")}],Uc=function(){var e,t,c,a=(e=Object(vc.getQuery)(),t=e.paged,c=e.per_page,Object($e.useSelect)(function(e){var a=e(Qe),n=a.getDeposits,r=a.getDepositQueryError,o=a.isResolving,s={paged:Number.isNaN(parseInt(t,10))?"1":t,perPage:Number.isNaN(parseInt(c,10))?"25":c};return{deposits:n(s),depositsError:r(s),isLoading:o("getDeposits",[s])}},[t,c])),n=a.deposits,r=a.isLoading,o=n.map(function(e){var t=function(t){return Object(_.createElement)(Pc,{href:xc(e.id,"deposits")},t)},c=Object(_.createElement)(Cc,{id:e.id,parentSegment:"deposits"}),a=Object(_.createElement)(E.Link,{href:xc(e.id,"deposits")},Object(Ae.dateI18n)("M j, Y",Ue.a.utc(e.date))),n={details:{value:e.id,display:c},date:{value:e.date,display:a},type:{value:e.type,display:t(Rc[e.type])},amount:{value:e.amount/100,display:t(Fc.formatCurrency(e.amount/100))},status:{value:e.status,display:t(Dc[e.status]||Object(Ac.formatStringValue)(e.status))},bankAccount:{value:e.bankAccount,display:t(e.bankAccount)}};return qc.map(function(e){var t=e.key;return n[t]||{display:null}})});return Object(_.createElement)(E.TableCard,{title:Object(b.__)("Deposit history","woocommerce-payments"),isLoading:r,rowsPerPage:10,totalRows:10,headers:qc,rows:o,query:Object(vc.getQuery)(),onQueryChange:vc.onQueryChange})},Wc=function(){return Object(_.createElement)(Te,null,Object(_.createElement)(Ic,null),Object(_.createElement)(Uc,null))},Qc=function(e){var t=e.order;return t?Object(_.createElement)(E.Link,{href:t.url,type:"external"},t.number):Object(_.createElement)("span",null,"–")},Yc={normal:Object(b.__)("Normal","woocommerce-payments"),elevated:Object(b.__)("Elevated","woocommerce-payments"),highest:Object(b.__)("Highest","woocommerce-payments")},Zc=["normal","elevated","highest"],$c={normal:"green",elevated:"orange",highest:"red"},Gc=function(e){var t=e.risk,c=Zc[t];return Object(_.createElement)("span",{style:{color:$c[c]}},Yc[c])},Jc={charge:Object(b.__)("Charge","woocommerce-payments"),payment:Object(b.__)("Payment","woocommerce-payments"),payment_failure_refund:Object(b.__)("Payment failure refund","woocommerce-payments"),payment_refund:Object(b.__)("Payment refund","woocommerce-payments"),refund:Object(b.__)("Refund","woocommerce-payments"),refund_failure:Object(b.__)("Refund failure","woocommerce-payments"),dispute:Object(b.__)("Dispute","woocommerce-payments"),dispute_reversal:Object(b.__)("Dispute reversal","woocommerce-payments")},Kc=function(e){var t=e.depositId,c=e.dateAvailable,a=Object(gt.addQueryArgs)("admin.php",{page:"wc-admin",path:"/payments/deposits/details",id:t}),n=null!=c&&Object(Ae.dateI18n)("M j, Y",Ue.a.utc(c));return t?Object(_.createElement)(E.Link,{href:a},n||Object(b.__)("Deposit details","woocommerce-payments")):n||Object(b.__)("Pending","woocommerce-payments")},Xc=c(21),ea=c.n(Xc),ta=c(41),ca=c.n(ta),aa=c(26);var na={name:"transactions",className:"woocommerce-search__transactions-result",options:function(e){var t=e?{search_term:e}:{};return ea()({path:Object(gt.addQueryArgs)("/wc/v3/payments/transactions/search",t)})},isDebounced:!0,getOptionIdentifier:function(e){return e.label},getOptionKeywords:function(e){return[e.label]},getFreeTextOptions:function(e){return[{key:"all",label:Object(_.createElement)("span",{key:"name",className:"woocommerce-search__result-name"},ca()({mixedString:Object(b.__)("All transactions with customer names or billing emails that include {{query /}}","woocommerce-admin"),components:{query:Object(_.createElement)("strong",{className:"components-form-token-field__suggestion-match"},e)}})),value:{label:e}}]},getOptionLabel:function(e,t){var c=function(e,t){if(!t)return null;var c=e.toLocaleLowerCase().indexOf(t.toLocaleLowerCase());return-1===c?null:{suggestionBeforeMatch:Object(aa.decodeEntities)(e.substring(0,c)),suggestionMatch:Object(aa.decodeEntities)(e.substring(c,c+t.length)),suggestionAfterMatch:Object(aa.decodeEntities)(e.substring(c+t.length))}}(e.label,t);return Object(_.createElement)("span",{key:"name",className:"woocommerce-search__result-name","aria-label":e.label},c.suggestionBeforeMatch,Object(_.createElement)("strong",{className:"components-form-token-field__suggestion-match"},c.suggestionMatch),c.suggestionAfterMatch)},getOptionCompletion:function(e){return{key:e.label,label:e.label}}},ra=(c(61),new De.a),oa=function(e){var t,c,a,n,r,o,s,i,l,m,u,d,h,v=(t=Object(vc.getQuery)(),c=e.depositId,a=t.paged,n=t.per_page,r=t.orderby,o=t.order,s=t.match,i=t.date_before,l=t.date_after,m=t.date_between,u=t.type_is,d=t.type_is_not,h=t.search,Object($e.useSelect)(function(e){var t=e(Qe),v=t.getTransactions,p=t.getTransactionsError,f=t.isResolving,g={paged:Number.isNaN(parseInt(a,10))?"1":a,perPage:Number.isNaN(parseInt(n,10))?"25":n,orderby:r||"date",order:o||"desc",match:s,dateBefore:i,dateAfter:l,dateBetween:m&&m.sort(function(e,t){return Ue()(e).diff(Ue()(t))}),typeIs:u,typeIsNot:d,depositId:c,search:h};return{transactions:v(g),transactionsError:p(g),isLoading:f("getTransactions",[g])}},[a,n,r,o,s,i,l,m,u,d,c,h])),p=v.transactions,f=v.isLoading,g=function(e,t){var c=e.match,a=e.date_before,n=e.date_after,r=e.date_between,o=e.type_is,s=e.type_is_not,i=e.search;return Object($e.useSelect)(function(e){var l=e(Qe),m=l.getTransactionsSummary,u=l.isResolving,d={match:c,dateBefore:a,dateAfter:n,dateBetween:r,typeIs:o,typeIsNot:s,depositId:t,search:i};return{transactionsSummary:m(d),isLoading:u("getTransactionsSummary",[d])}},[c,a,n,r,o,s,t,i])}(Object(vc.getQuery)(),e.depositId),w=g.transactionsSummary,y=g.isLoading,z=Object(_.useMemo)(function(){return t=!e.depositId,c=wcpaySettings.isSubscriptionsActive,[{key:"details",label:"",required:!0},{key:"date",label:Object(b.__)("Date / Time","woocommerce-payments"),screenReaderLabel:Object(b.__)("Date and time","woocommerce-payments"),required:!0,isLeftAligned:!0,defaultOrder:"desc",cellClassName:"date-time",isSortable:!0,defaultSort:!0},{key:"type",label:Object(b.__)("Type","woocommerce-payments"),screenReaderLabel:Object(b.__)("Type","woocommerce-payments"),required:!0},{key:"amount",label:Object(b.__)("Amount","woocommerce-payments"),screenReaderLabel:Object(b.__)("Amount","woocommerce-payments"),isNumeric:!0,isSortable:!0},{key:"fees",label:Object(b.__)("Fees","woocommerce-payments"),screenReaderLabel:Object(b.__)("Fees","woocommerce-payments"),isNumeric:!0,isSortable:!0},{key:"net",label:Object(b.__)("Net","woocommerce-payments"),screenReaderLabel:Object(b.__)("Net","woocommerce-payments"),isNumeric:!0,required:!0,isSortable:!0},{key:"order",label:Object(b.__)("Order #","woocommerce-payments"),screenReaderLabel:Object(b.__)("Order number","woocommerce-payments"),required:!0},c&&{key:"subscriptions",label:Object(b.__)("Subscription #","woocommerce-payments"),screenReaderLabel:Object(b.__)("Subscription number","woocommerce-payments")},{key:"source",label:Object(b.__)("Source","woocommerce-payments"),screenReaderLabel:Object(b.__)("Source","woocommerce-payments")},{key:"customer_name",label:Object(b.__)("Customer","woocommerce-payments"),screenReaderLabel:Object(b.__)("Customer","woocommerce-payments")},{key:"customer_email",label:Object(b.__)("Email","woocommerce-payments"),screenReaderLabel:Object(b.__)("Email","woocommerce-payments"),visible:!1},{key:"customer_country",label:Object(b.__)("Country","woocommerce-payments"),screenReaderLabel:Object(b.__)("Country","woocommerce-payments"),visible:!1},{key:"risk_level",label:Object(b.__)("Risk level","woocommerce-payments"),screenReaderLabel:Object(b.__)("Risk level","woocommerce-payments"),visible:!1},t&&{key:"deposit",label:Object(b.__)("Deposit","woocommerce-payments"),screenReaderLabel:Object(b.__)("Deposit","woocommerce-payments"),cellClassName:"deposit"}].filter(Boolean);var t,c},[e.depositId,wcpaySettings.isSubscriptionsActive]),k=z.find(function(e){return"details"===e.key})||{};Object(vc.getQuery)().orderby&&"date"!==Object(vc.getQuery)().orderby?k.cellClassName="info-button":k.cellClassName="info-button is-sorted";var j=p.map(function(e){var t=xc(e.charge_id,"transactions"),c=function(e){return Object(_.createElement)(Pc,{href:t},e)},a=Object(_.createElement)(Cc,{id:e.charge_id,parentSegment:"transactions"}),n=Object(_.createElement)(Qc,{order:e.order}),r=e.order&&wcpaySettings.isSubscriptionsActive&&e.order.subscriptions.map(function(e,t,c){return[Object(_.createElement)(Qc,{key:t,order:e}),t!==c.length-1&&", "]}),o=Object(_.createElement)(Gc,{risk:e.risk_level}),s=Object(_.createElement)(Kc,{depositId:e.deposit_id,dateAvailable:e.date_available}),i={details:{value:e.transaction_id,display:a},date:{value:e.date,display:c(Object(Ae.dateI18n)("M j, Y / g:iA",Ue.a.utc(e.date).local()))},type:{value:e.type,display:c(Jc[e.type]||Dt(e.type))},source:{value:e.source,display:c(Object(_.createElement)("span",{className:"payment-method__brand payment-method__brand--".concat(e.source)}))},order:{value:e.order_id,display:n},subscriptions:{value:e.order_id,display:r},customer_name:{value:e.customer_name,display:c(e.customer_name)},customer_email:{value:e.customer_email,display:c(e.customer_email)},customer_country:{value:e.customer_country,display:c(e.customer_country)},amount:{value:e.amount/100,display:c(ra.formatCurrency(e.amount/100))},fees:{value:e.fees/100,display:c(ra.formatCurrency(e.fees/100*-1))},net:{value:e.net/100,display:c(ra.formatCurrency(e.net/100))},risk_level:{value:e.risk_level,display:c(o)},deposit:{value:e.deposit_id,display:s}};return z.map(function(e){var t=e.key;return i[t]||{display:null}})}),H=[{label:"transactions",value:"".concat(w.count)},{label:"total",value:"".concat(ra.formatCurrency(w.total/100))},{label:"fees",value:"".concat(ra.formatCurrency(w.fees/100))},{label:"net",value:"".concat(ra.formatCurrency(w.net/100))}],M=Object(vc.getQuery)().search&&Object(vc.getQuery)().search.map(function(e){return{key:e,label:e}}),V=wcpaySettings.isSubscriptionsActive?Object(b.__)("Search by order number, subscription number, customer name, or billing email","woocommerce-payments"):Object(b.__)("Search by order number, customer name, or billing email","woocommerce-payments");return wcpaySettings.featureFlags.customSearch||(V=Object(b.__)("Search by customer name","woocommerce-payments")),Object(_.createElement)(E.TableCard,{className:"transactions-list woocommerce-report-table has-search",title:e.depositId?Object(b.__)("Deposit transactions","woocommerce-payments"):Object(b.__)("Transactions","woocommerce-payments"),isLoading:f,rowsPerPage:Object(vc.getQuery)().per_page||25,totalRows:w.count||0,headers:z,rows:j,summary:y?null:H,query:Object(vc.getQuery)(),onQueryChange:vc.onQueryChange,actions:[Object(_.createElement)(E.Search,{allowFreeTextSearch:!0,inlineTags:!0,key:"search",onChange:function(e){Object(vc.updateQueryString)({search:e.length?Object(O.uniq)(e.map(function(e){return e.label})):void 0})},placeholder:V,selected:M,showClearButton:!0,type:wcpaySettings.featureFlags.customSearch?"custom":"customers",autocompleter:na})]})},sa=(c(62),new De.a),ia=function(e){var t=e.status;return Object(_.createElement)(E.OrderStatus,{order:{status:t},orderStatusMap:Dc})},la=function(e){var t,c=e.depositId,a=(t=c,Object($e.useSelect)(function(e){var c=e(Qe),a=c.getDeposit,n=c.isResolving;return{deposit:a(t),isLoading:n("getDeposit",[t])}},[t])),n=a.deposit,r=void 0===n?{}:n,o=a.isLoading;return Object(_.createElement)(E.Card,{className:"wcpay-deposit-overview"},Object(_.createElement)("div",{className:"wcpay-deposit-detail"},Object(_.createElement)("div",{className:"wcpay-deposit-date"},Object(_.createElement)(Vc,{isLoading:o,placeholder:"Date placeholder"},"".concat(Object(b.__)("Deposit date","woocommerce-payments"),": "),Object(Ae.dateI18n)("M j, Y",Ue.a.utc(r.date)))),Object(_.createElement)("div",{className:"wcpay-deposit-status"},Object(_.createElement)(Vc,{isLoading:o,placeholder:"Status"},Object(_.createElement)(ia,{status:r.status}))),Object(_.createElement)("div",{className:"wcpay-deposit-bank-account"},Object(_.createElement)(Vc,{isLoading:o,placeholder:"Bank account placeholder"},r.bankAccount))),Object(_.createElement)("div",{className:"wcpay-deposit-hero"},Object(_.createElement)("div",{className:"wcpay-deposit-amount"},Object(_.createElement)(Vc,{isLoading:o,placeholder:"Amount",display:"inline"},sa.formatCurrency(r.amount/100)))))},ma=function(e){var t=e.query.id;return Object(_.createElement)(Te,null,Object(_.createElement)(la,{depositId:t}),Object(_.createElement)(oa,{depositId:t}))},ua=Object.entries(Jc).filter(function(e){return!z()(e,1)[0].startsWith("payment")}).map(function(e){var t=z()(e,2),c=t[0];return{label:t[1],value:c}}),da=[{label:Object(b.__)("Show","woocommerce-payments"),param:"filter",staticParams:["paged","per_page","search"],showFilters:function(){return!0},filters:[{label:Object(b.__)("All transactions","woocommerce-payments"),value:"all"},{label:Object(b.__)("Advanced filters","woocommerce-payments"),value:"advanced"}]}],ha={title:Object(b.__)("Transactions match {{select /}} filters","woocommerce-payments"),filters:{date:{labels:{add:Object(b.__)("Date","woocommerce-payments"),remove:Object(b.__)("Remove transaction date filter","woocommerce-payments"),rule:Object(b.__)("Select a transaction date filter match","woocommerce-payments"),title:Object(b.__)("{{title}}Date{{/title}} {{rule /}} {{filter /}}","woocommerce-payments"),filter:Object(b.__)("Select a transaction date","woocommerce-payments")},rules:[{value:"before",label:Object(b.__)("Before","woocommerce-admin")},{value:"after",label:Object(b.__)("After","woocommerce-admin")},{value:"between",label:Object(b.__)("Between","woocommerce-admin")}],input:{component:"Date"}},type:{labels:{add:Object(b.__)("Type","woocommerce-payments"),remove:Object(b.__)("Remove transaction type filter","woocommerce-payments"),rule:Object(b.__)("Select a transaction type filter match","woocommerce-payments"),title:Object(b.__)("{{title}}Type{{/title}} {{rule /}} {{filter /}}","woocommerce-payments"),filter:Object(b.__)("Select a transaction type","woocommerce-payments")},rules:[{value:"is",label:Object(b._x)("Is","transaction type","woocommerce-payments")},{value:"is_not",label:Object(b._x)("Is not","transaction type","woocommerce-payments")}],input:{component:"SelectControl",options:ua}}}},va=function(){return Object(_.createElement)(E.ReportFilters,{filters:da,advancedFilters:ha,showDatePicker:!1,path:"/payments/transactions",query:Object(vc.getQuery)()})},pa=function(){return Object(_.createElement)(Te,null,Object(_.createElement)(va,null),Object(_.createElement)(oa,null))},fa=["issuer_declined","invalid"],ga=["blocked"],ba=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.status||null},wa=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.outcome?e.outcome.type:null},ya=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"succeeded"===e.status&&!0===e.paid},za=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"failed"===e.status&&fa.includes(wa(e))},_a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"failed"===e.status&&ga.includes(wa(e))},Ea=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return!0===e.captured},Oa=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return!0===e.disputed},ka=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.amount_refunded>0},ja=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return!0===e.refunded},Ha=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ka(e)&&!ja(e)},Ma=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return za(e)?"failed":_a(e)?"blocked":Oa(e)?"disputed_"+ba(e.dispute):Ha(e)?"refunded_partial":ja(e)?"refunded_full":ya(e)?Ea(e)?"paid":"authorized":e.status},Va={warning_needs_response:{type:"primary",message:Object(b.__)("Inquiry: Needs response","woocommerce-payments")},warning_under_review:{type:"light",message:Object(b.__)("Inquiry: Under review","woocommerce-payments")},warning_closed:{type:"light",message:Object(b.__)("Inquiry: Closed","woocommerce-payments")},needs_response:{type:"primary",message:Object(b.__)("Needs response","woocommerce-payments")},under_review:{type:"light",message:Object(b.__)("Under review","woocommerce-payments")},charge_refunded:{type:"light",message:Object(b.__)("Charge refunded","woocommerce-payments")},won:{type:"light",message:Object(b.__)("Won","woocommerce-payments")},lost:{type:"light",message:Object(b.__)("Lost","woocommerce-payments")}},xa=Object.entries(Va).reduce(function(e,t){var c=z()(t,2),a=c[0],n=c[1];return e["disputed_"+a]={type:n.type,message:a.startsWith("warning_")?n.message:Object(b.sprintf)(Object(b.__)("Disputed: %s","woocommerce-payments"),n.message)},e},{}),Ca=Ze()({refunded_partial:{type:"light",message:Object(b.__)("Partial refund","woocommerce-payments")},refunded_full:{type:"light",message:Object(b.__)("Refunded","woocommerce-payments")},paid:{type:"light",message:Object(b.__)("Paid","woocommerce-payments")},authorized:{type:"primary",message:Object(b.__)("Payment authorized","woocommerce-payments")},failed:{type:"alert",message:Object(b.__)("Payment failed","woocommerce-payments")},blocked:{type:"alert",message:Object(b.__)("Payment blocked","woocommerce-payments")}},xa),La=c(19),Sa=function(e){var t=e.status,c=Ca[t]||{},a=c.message||Dt(t),n=c.type||"light";return Object(_.createElement)(La.a,{message:a,type:n})},Na=(c(63),function(e){var t=e.payment,c=t?t[t.type]:null;return c?Object(_.createElement)("span",{className:"payment-method-details"},Object(_.createElement)("span",{className:"payment-method__brand payment-method__brand--".concat(c.brand)})," •••• ",c.last4):Object(_.createElement)("span",null,"–")}),Ta=(c(64),function(e){var t=e.items;return Object(_.createElement)(E.List,{className:"woocommerce-list--horizontal",items:t})}),Ba=(c(65),new De.a),Ia={net:0,fee:0,refunded:null},Ra=function(e){var t=e.charge;return[{title:Object(b.__)("Date","woocommerce-payments"),content:t.created?Object(Ae.dateI18n)("M j, Y, g:ia",Ue()(1e3*t.created)):"–"},{title:Object(b.__)("Customer","woocommerce-payments"),content:Object(O.get)(t,"billing_details.name")||"–"},{title:Object(b.__)("Order","woocommerce-payments"),content:Object(_.createElement)(Qc,{order:t.order})},wcpaySettings.isSubscriptionsActive&&{title:Object(b.__)("Subscription","woocommerce-payments"),content:t.order&&t.order.subscriptions.length?t.order.subscriptions.map(function(e,t,c){return[Object(_.createElement)(Qc,{key:t,order:e}),t!==c.length-1&&", "]}):Object(_.createElement)(Qc,null)},{title:Object(b.__)("Payment method","woocommerce-payments"),content:Object(_.createElement)(Na,{payment:t.payment_method_details})},{title:Object(b.__)("Risk evaluation","woocommerce-payments"),content:Yc[Object(O.get)(t,"outcome.risk_level")]||"–"}].filter(Boolean)},Da=function(e){var t=e.charge,c=void 0===t?{}:t,a=e.isLoading,n=c.amount?function(e){var t,c;return c=e.application_fee_amount,t=0,Oa(e)&&"won"!==e.dispute.status?(c+=1500,t=e.dispute.amount):ka(e)&&(t=e.amount_refunded),{net:e.amount-c-(t||0),fee:c,refunded:t}}(c):Ia,r=n.net,o=n.fee,s=n.refunded;return Object(_.createElement)(E.Card,{className:"payment-details-summary-details"},Object(_.createElement)("div",{className:"payment-details-summary"},Object(_.createElement)("div",{className:"payment-details-summary__section"},Object(_.createElement)("p",{className:"payment-details-summary__amount"},Object(_.createElement)(Vc,{isLoading:a,placeholder:"Amount placeholder"},Ba.formatCurrency((c.amount||0)/100),Object(_.createElement)("span",{className:"payment-details-summary__amount-currency"},c.currency||"cur"),Object(_.createElement)(Sa,{status:Ma(c)}))),Object(_.createElement)("div",{className:"payment-details-summary__breakdown"},s?Object(_.createElement)("p",null,"".concat(Object(b.__)("Refunded","woocommerce-payments"),": "),Ba.formatCurrency(-s/100)):"",Object(_.createElement)("p",null,Object(_.createElement)(Vc,{isLoading:a,placeholder:"Fee amount"},"".concat(Object(b.__)("Fee","woocommerce-payments"),": "),Ba.formatCurrency(-o/100))),Object(_.createElement)("p",null,Object(_.createElement)(Vc,{isLoading:a,placeholder:"Net amount"},"".concat(Object(b.__)("Net","woocommerce-payments"),": "),Ba.formatCurrency(r/100))))),Object(_.createElement)("div",{className:"payment-details-summary__section"},Object(_.createElement)("div",{className:"payment-details-summary__id"},Object(_.createElement)(Vc,{isLoading:a,placeholder:"Payment ID: ch_xxxxxxxxxxxxxxxxxxxxxxxx"},"".concat(Object(b.__)("Payment ID","woocommerce-payments"),": "),c.id)))),Object(_.createElement)("hr",{className:"full-width"}),Object(_.createElement)(Mc,{isLoading:a,numLines:4},Object(_.createElement)(Ta,{items:Ra({charge:c})})))},Aa={bank_cannot_process:{display:Object(b.__)("Bank cannot process","woocommerce-payments")},check_returned:{display:Object(b.__)("Check returned","woocommerce-payments")},credit_not_processed:{display:Object(b.__)("Credit not processed","woocommerce-payments"),overview:[Object(b.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),Object(b.__)("If your customer was not refunded appropriately, you will need to accept the dispute, or resolve the issue with your customer. The credit card networks place liability for accepting disputed payments with you, the business.","woocommerce-payments")],summary:[Object(b.__)("The customer claims that the purchased product was returned or the transaction was otherwise canceled, but you have not yet provided a refund or credit.","woocommerce-payments")],required:[Object(b.__)("Demonstrate that you have refunded your customer through other means or that your customer is not entitled to a refund. You cannot issue a refund while a payment is being disputed. If you believe that your customer was entitled a refund that you did not provide, you can accept the dispute.","woocommerce-payments")],respond:[Object(b.__)("You should first get in touch with your customer. If you understand what their complaint is, there is a chance for you to explain the misunderstanding or to make it right. If you’re able to resolve the issue with your customer, you can ask that they withdraw the dispute.","woocommerce-payments"),Object(b.__)("If the cardholder agrees to withdraw the dispute, you should still submit evidence for the dispute using the forms on the next screen. In addition to the following evidence, your submission should include correspondence with the cardholder saying they would withdraw the dispute and a written statement from their card issuer confirming that the dispute has been withdrawn.","woocommerce-payments")]},customer_initiated:{display:Object(b.__)("Customer initiated","woocommerce-payments")},debit_not_authorized:{display:Object(b.__)("Debit not authorized","woocommerce-payments")},duplicate:{display:Object(b.__)("Duplicate","woocommerce-payments"),overview:[Object(b.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),Object(b.__)("If there were duplicate payments, you should accept the dispute. You cannot issue a refund while a payment is being disputed. The credit card networks place liability for accepting disputed payments with you, the business.","woocommerce-payments")],summary:[Object(b.__)("The customer claims they were charged multiple times for the same product or service.","woocommerce-payments")],required:[Object(b.__)("Demonstrate that each payment was for a separate product or service.","woocommerce-payments")],respond:[Object(b.__)("Determine if your customer was incorrectly charged multiple times.","woocommerce-payments"),Object(b.__)("If they were not, collect any and all information documenting that each payment was made separately, such as copies of receipts. If the receipts don’t include the items purchased, be sure to include an itemized list. Each receipt should clearly indicate that the payments are for separate purchases of items or services. If you’ve been able to get in touch with the customer you should be sure to address any concerns they had in your evidence.","woocommerce-payments"),Object(b.__)("If there have been two or more separate payments, you should get in touch with your customer. If you understand what their complaint is, there is a chance for you to explain the misunderstanding or to make it right. If you’re able to resolve the issue with your customer, you can ask that they withdraw the dispute.","woocommerce-payments"),Object(b.__)("Even if your customer agrees to withdraw the dispute, you must still submit appropriate evidence using the forms on the next screen. Simply saying that your customer is going to withdraw the dispute is not sufficient evidence.","woocommerce-payments")]},fraudulent:{display:Object(b.__)("Fraudulent","woocommerce-payments"),overview:[Object(b.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),Object(b.__)("If you believe the payment was actually made using a stolen credit card, you will need to accept the dispute. The credit card networks place liability for accepting fraudulent payments with you, the business.","woocommerce-payments")],summary:[Object(b.__)("This is the most common reason for a dispute, and happens when a cardholder claims that they didn’t authorize the payment. This can happen if the card was lost or stolen and used to make a fraudulent purchase. It can also happen if the cardholder doesn’t recognize the payment as it appears on the billing statement from their card issuer.","woocommerce-payments")],required:[Object(b.__)("Provide adequate payment and order details so that a legitimate customer recognizes it, or proves to the card issuer that their cardholder authorized the transaction.","woocommerce-payments")],respond:[Object(b.__)("Try to get in touch with your customer. Sometimes people forget about payments they make or don’t recognize the way they appear on their card statement. If this is the case, ask them to contact their card issuer and let them know they no longer dispute the transaction.","woocommerce-payments"),Object(b.__)("Even if your customer agrees to withdraw the dispute, you must still submit appropriate evidence using the forms on the next screen. Simply saying that your customer is going to withdraw the dispute is not sufficient evidence.","woocommerce-payments"),Object(b.__)("It may be more efficient—and provide a better customer experience—to accept an accidental dispute and charge the customer again, if appropriate. Even when a dispute is withdrawn, it usually takes approximately 75 days to be finalized. Remember, it doesn’t matter to the card networks whether you win or lose a dispute; what matters is how many disputes a business receives, regardless of how many disputes are won.","woocommerce-payments")]},general:{display:Object(b.__)("General","woocommerce-payments"),overview:[Object(b.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments")],summary:[Object(b.__)("This is an uncategorized dispute, so you should contact the customer for additional details to find out why the payment was disputed.","woocommerce-payments")]},incorrect_account_details:{display:Object(b.__)("Incorrect account details","woocommerce-payments")},insufficient_funds:{display:Object(b.__)("Insufficient funds","woocommerce-payments")},product_not_received:{display:Object(b.__)("Product not received","woocommerce-payments"),overview:[Object(b.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),Object(b.__)("If you can not prove the customer received their product or service, you should accept the dispute. You cannot issue a refund while a payment is being disputed. The credit card networks place liability for accepting disputed payments with you, the business.","woocommerce-payments")],summary:[Object(b.__)("The customer claims they did not receive the products or services purchased.","woocommerce-payments")],required:[Object(b.__)("Prove that the customer received a physical product or offline service, or made use of a digital product or online service. This must have occurred prior to the date the dispute was initiated.","woocommerce-payments")],respond:[Object(b.__)("First, get in touch with your customer. Understanding why they filed the dispute will be important for helping make sure your customer gets the product and will give you critical information to prevent this from happening to others.","woocommerce-payments"),Object(b.__)("Even if your customer agrees to withdraw the dispute, you must still submit appropriate evidence using the forms on the next screen. Simply saying that your customer is going to withdraw the dispute is not sufficient evidence.","woocommerce-payments")]},product_unacceptable:{display:Object(b.__)("Product unacceptable","woocommerce-payments"),overview:[Object(b.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),Object(b.__)("If you can not prove the customer received their product or service as described, you should accept the dispute. You cannot issue a refund while a payment is being disputed. The credit card networks place liability for accepting disputed payments with you, the business.","woocommerce-payments")],summary:[Object(b.__)("The product or service was received but was defective, damaged, or not as described.","woocommerce-payments")],required:[Object(b.__)("Demonstrate that the product or service was delivered as described at the time of purchase.","woocommerce-payments")],respond:[Object(b.__)("If the product or service is as described, provide specific information (invoice, contract, etc.) to refute the cardholder’s claims. Quality disputes are where the customer does not agree with the condition of merchandise or service received (e.g., a car repair situation or quality of a hotel room). There may be instances where you will need to obtain a neutral third-party opinion to help corroborate your claim against the cardholder. Provide as much specific information and documentation as possible to refute the cardholder’s claims. It is recommended that you address each point that the cardholder has made.","woocommerce-payments"),Object(b.__)("If the customer has not yet returned the product or canceled the service, provide specific information to that effect. You should double-check your incoming shipping records to verify that you have not received a return before you respond. If you have processed a credit or reversal for this transaction, provide evidence of this which includes the amount and date processed.","woocommerce-payments"),Object(b.__)("For products that have been repaired or replaced, provide evidence that the cardholder agreed to a repair or replacement, it has been received by the customer, and the repair or replacement has not since been disputed.","woocommerce-payments"),Object(b.__)("If your customer made no attempt to return the product or cancel the service, or if you provided a replacement product or service, make sure to note that as well.","woocommerce-payments"),Object(b.__)("If the customer withdraws their dispute you should still submit evidence using the forms on the next screen. Be sure to provide a letter or email from the cardholder stating that they are no longer in dispute.","woocommerce-payments")]},subscription_canceled:{display:Object(b.__)("Subscription canceled","woocommerce-payments"),overview:[Object(b.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),Object(b.__)("If you can not prove the customer’s subscription was canceled, and or they did not follow your cancelation policy, you should accept the dispute. You cannot issue a refund while a payment is being disputed. The credit card networks place liability for accepting disputed payments with you, the business.","woocommerce-payments")],summary:[Object(b.__)("The customer claims that you continued to charge them after a subscription was canceled.","woocommerce-payments")],required:[Object(b.__)("Prove that the subscription was still active and that the customer was aware of, and did not follow, your cancellation procedure.","woocommerce-payments")],respond:[Object(b.__)("First, get in touch with your customer. If you understand what they believe happened, there is a chance for you to explain the misunderstanding or to make it right. ","woocommerce-payments"),Object(b.__)("Even if your customer agrees to withdraw the dispute, you must still submit appropriate evidence using the forms on the next screen. Simply saying that your customer is going to withdraw the dispute is not sufficient evidence.","woocommerce-payments"),Object(b.__)("Otherwise, use the forms on the next screen to submit evidence that the subscription was still active and that the customer was aware of, and did not follow, your cancellation procedure.","woocommerce-payments")]},unrecognized:{display:Object(b.__)("Unrecognized","woocommerce-payments"),overview:[Object(b.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),Object(b.__)("If you can not prove the customer’s subscription was canceled, and or they did not follow your cancelation policy, you should accept the dispute. You cannot issue a refund while a payment is being disputed. The credit card networks place liability for accepting disputed payments with you, the business.","woocommerce-payments")],summary:[Object(b.__)("The customer doesn’t recognize the payment appearing on their card statement.","woocommerce-payments")],required:[Object(b.__)("As with fraudulent disputes, get your customer to withdraw the dispute by helping them identify the payment. Otherwise challenge the dispute with appropriate evidence that proves the purchase was legitimate. ","woocommerce-payments")],respond:[Object(b.__)("First, try to get in touch with your customer. Sometimes people forget about payments they make or don’t recognize the way they appear on their card statement. If this is the case, ask them to contact their card issuer and let them know they no longer dispute the transaction. Even if your customer agrees to withdraw the dispute, you must still submit appropriate evidence. Simply saying that your customer is going to withdraw the dispute is not sufficient evidence.","woocommerce-payments"),Object(b.__)("It may be more efficient—and provide a better customer experience—to accept an accidental dispute and charge the customer again, if appropriate. Even when a dispute is withdrawn, it usually takes approximately 75 days to be finalized. Remember, it doesn’t matter to the card networks whether you win or lose a dispute; what matters is how many disputes a business receives, regardless of how many disputes are won.","woocommerce-payments")]}},Pa=Object(Re.getCurrencyData)(),Fa=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object(_.createElement)(Fe.a,{icon:e,className:t})},qa=function(e,t){return{date:new Date(1e3*e.datetime),icon:Fa("sync"),headline:Object(b.sprintf)(Object(b.__)("Payment status changed to %s","woocommerce-payments"),t),body:[],hideTimestamp:!0}},Ua=function(e,t,c){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],n="";if(e.deposit){n=Object(b.sprintf)(c?Object(b.__)("%1$s was added to your <a>%2$s deposit</a>","woocommerce-payments"):Object(b.__)("%1$s was deducted from your <a>%2$s deposit</a>","woocommerce-payments"),t,Object(Ae.dateI18n)("M j, Y",Ue()(1e3*e.deposit.arrival_date)));var r=Object(gt.addQueryArgs)("admin.php",{page:"wc-admin",path:"/payments/deposits/details",id:e.deposit.id});n=Object(Se.a)(n,{a:Object(_.createElement)("a",{href:r})})}else n=Object(b.sprintf)(c?Object(b.__)("%s will be added to a future deposit","woocommerce-payments"):Object(b.__)("%s will be deducted from a future deposit","woocommerce-payments"),t);return{date:new Date(1e3*e.datetime),icon:Fa(c?"plus":"minus"),headline:n,body:a,hideTimestamp:!0}},Wa=function(e,t,c,a){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];return{date:new Date(1e3*e.datetime),headline:t,icon:Fa(c,a),body:n}},Qa=function(e){var t=e.type,c=function(e){var t=Object(O.find)(Pa,{code:e});return t?new De.a(t):new De.a}(e.currency||"USD"),a=function(e){return c.formatCurrency(Math.abs(e/100))},n=function(e,t){return Object(b.sprintf)(e,a(t))};if("authorized"===t)return[Wa(e,n(Object(b.__)("A payment of %s was successfully authorized","woocommerce-payments"),e.amount),"checkmark","is-warning"),qa(e,Object(b.__)("Authorized","woocommerce-payments"))];if("authorization_voided"===t)return[Wa(e,n(Object(b.__)("Authorization for %s was voided","woocommerce-payments"),e.amount),"checkmark","is-warning"),qa(e,Object(b.__)("Authorization Voided","woocommerce-payments"))];if("authorization_expired"===t)return[Wa(e,n(Object(b.__)("Authorization for %s expired","woocommerce-payments"),e.amount),"cross","is-error"),qa(e,Object(b.__)("Authorization Expired","woocommerce-payments"))];if("captured"===t){var r=a(e.amount-e.fee);return[Wa(e,n(Object(b.__)("A payment of %s was successfully charged","woocommerce-payments"),e.amount),"checkmark","is-success",[n(Object(b.__)("Fee: %s","woocommerce-payments"),e.fee),Object(b.sprintf)(Object(b.__)("Net deposit: %s","woocommerce-payments"),r)]),Ua(e,r,!0),qa(e,Object(b.__)("Paid","woocommerce-payments"))]}if("partial_refund"===t||"full_refund"===t){var o=a(e.amount_refunded);return[Wa(e,Object(b.sprintf)(Object(b.__)("A payment of %s was successfully refunded","woocommerce-payments"),o),"checkmark","is-success"),Ua(e,o,!1),qa(e,"full_refund"===t?Object(b.__)("Refunded","woocommerce-payments"):Object(b.__)("Partial Refund","woocommerce-payments"))]}if("failed"===t)return[Wa(e,n(Object(b.__)("A payment of %s failed","woocommerce-payments"),e.amount),"cross","is-error"),qa(e,Object(b.__)("Failed","woocommerce-payments"))];if("dispute_needs_response"===t){var s=Object(b.__)("Payment disputed","woocommerce-payments");Aa[e.reason]&&(s=Object(b.sprintf)(Object(b.__)("Payment disputed as %s","woocommerce-payments"),Aa[e.reason].display));var i,l=Object(gt.addQueryArgs)("admin.php",{page:"wc-admin",path:"/payments/disputes/details",id:e.dispute_id});if(null===e.amount)i={date:new Date(1e3*e.datetime),icon:Fa("info-outline"),headline:Object(b.__)("No funds have been withdrawn yet","woocommerce-payments"),body:[Object(b.__)("The cardholder's bank is requesting more information to decide whether to return these funds to the cardholder.","woocommerce-services")],hideTimestamp:!0};else{var m=a(Math.abs(e.amount)+Math.abs(e.fee));i=Ua(e,m,!1,[n(Object(b.__)("Disputed amount: %s","woocommerce-payments"),e.amount),n(Object(b.__)("Fee: %s","woocommerce-payments"),e.fee)])}return[Wa(e,s,"cross","is-error",[Object(_.createElement)("a",{href:l},Object(b.__)("View dispute","woocommerce-payments"))]),i,qa(e,Object(b.__)("Disputed: Needs Response","woocommerce-payments"))]}if("dispute_in_review"===t)return[Wa(e,Object(b.__)("Challenge evidence submitted","woocommerce-payments"),"checkmark","is-success"),qa(e,Object(b.__)("Disputed: In Review","woocommerce-payments"))];if("dispute_won"===t){var u=a(Math.abs(e.amount)+Math.abs(e.fee));return[Wa(e,Object(b.__)("Dispute won! The bank ruled in your favor","woocommerce-payments"),"notice-outline","is-success"),Ua(e,u,!0,[n(Object(b.__)("Disputed amount: %s","woocommerce-payments"),e.amount),n(Object(b.__)("Fee: %s","woocommerce-payments"),e.fee)]),qa(e,Object(b.__)("Disputed: Won","woocommerce-payments"))]}return"dispute_lost"===t?[Wa(e,Object(b.__)("Dispute lost. The bank ruled favor of your customer","woocommerce-payments"),"cross","is-error"),qa(e,Object(b.__)("Disputed: Lost","woocommerce-payments"))]:"dispute_warning_closed"===t?[Wa(e,Object(b.__)("Dispute inquiry closed. The bank chose not to pursue this dispute.","woocommerce-payments"),"notice-outline","is-success")]:"dispute_charge_refunded"===t?[Wa(e,Object(b.__)("The disputed charge has been refunded.","woocommerce-payments"),"notice-outline","is-success")]:[]},Ya=function(e){var t=e.chargeId;if(!wcpaySettings.featureFlags.paymentTimeline)return null;var c,a=function(e){return Object($e.useSelect)(function(t){var c=t(Qe),a=c.getTimeline,n=c.getTimelineError,r=c.isResolving,o=c.getCharge,s=c.getChargeError,i=r("getCharge",[e]),l=s(e);if(i||l instanceof Error)return{timeline:null,timelineError:l,isLoading:i};var m=o(e).payment_intent;return m?{timeline:a(m),timelineError:n(m),isLoading:r("getTimeline",[m])}:{timeline:null,timelineError:null,isLoading:!1}},[e])}(t),n=a.timeline,r=a.timelineError,o=a.isLoading,s=(c=n)?Object(O.flatMap)(c,Qa):[];return Object(_.createElement)(E.Card,{title:Object(_.createElement)(Vc,{isLoading:o,value:Object(b.__)("Timeline","woocommerce-payments")}),className:"payment-details__timeline"},Object(_.createElement)(Mc,{isLoading:o,numLines:3},r instanceof Error?Object(b.__)("Error while loading timeline","woocommerce-payments"):Object(_.createElement)(E.Timeline,{items:s})),Object(_.createElement)(Mc,{isLoading:o,numLines:3}),Object(_.createElement)(Mc,{isLoading:o,numLines:3}),Object(_.createElement)(Mc,{isLoading:o,numLines:3}))},Za=function(e){var t=e.label,c=e.children,a=e.isLoading;return Object(_.createElement)("div",{className:"payment-method-detail"},Object(_.createElement)("h4",{className:"payment-method-detail__label"},Object(_.createElement)(Vc,{isLoading:a,display:"block",value:t})),Object(_.createElement)("p",{className:"payment-method-detail__value"},Object(_.createElement)(Vc,{isLoading:a,value:c})))},$a=function(e){switch(e.checked){case"pass":return Object(b.__)("Passed","woocommerce-payments");case"fail":return Object(b.__)("Failed","woocommerce-payments");case"unavailable":return Object(b.__)("Unavailable","woocommerce-payments");default:return Object(b.__)("Not checked","woocommerce-payments")}},Ga={last4:"0000",fingerprint:"fingerprint placeholder",date:"date placeholder",cardType:"card type placeholder",id:"id placeholder",name:"name placeholder",email:"email placeholder",formattedAddress:"address placeholder",country:"country placeholder",cvcCheck:null,line1Check:null,postalCodeCheck:null},Ja=function(e){var t=e.charge,c=void 0===t?{}:t,a=e.isLoading,n=c&&c.payment_method_details?function(e){var t=e.billing_details,c=e.payment_method,a=e.payment_method_details.card,n=a.last4,r=a.fingerprint,o=a.exp_month,s=a.exp_year,i=a.funding,l=a.network,m=a.country,u=a.checks,d=t.name,h=t.email,v=t.formatted_address,p=u.cvc_check,f=u.address_line1_check,g=u.address_postal_code_check,w=o+" / "+s,y={credit:Object(b.__)("credit","woocommerce-payments"),debit:Object(b.__)("debit","woocommerce-payments"),prepaid:Object(b.__)("prepaid","woocommerce-payments"),unknown:Object(b.__)("unknown","woocommerce-payments")};return{last4:n,fingerprint:r,date:w,cardType:Object(b.sprintf)(Object(b.__)("%1$s %2$s card","woocommerce-payments"),l.charAt(0).toUpperCase()+l.slice(1),y[i]),id:c,name:d,email:h,country:wcSettings.countries[m],cvcCheck:p,line1Check:f,postalCodeCheck:g,formattedAddress:v}}(c):Ga,r=n.last4,o=n.fingerprint,s=n.date,i=n.cardType,l=n.id,m=n.name,u=n.email,d=n.country,h=n.cvcCheck,v=n.line1Check,p=n.postalCodeCheck,f=n.formattedAddress,g=Za,w=$a;return Object(_.createElement)(E.Card,{title:Object(_.createElement)(Vc,{isLoading:a,value:Object(b.__)("Payment method","woocommerce-payments")})},Object(_.createElement)("div",{className:"payment-method-details"},Object(_.createElement)("div",{className:"payment-method-details__column"},Object(_.createElement)(g,{isLoading:a,label:Object(b.__)("Number","woocommerce-payments")},"•••• ",r),Object(_.createElement)(g,{isLoading:a,label:Object(b.__)("Fingerprint","woocommerce-payments")},o),Object(_.createElement)(g,{isLoading:a,label:Object(b.__)("Expires","woocommerce-payments")},s),Object(_.createElement)(g,{isLoading:a,label:Object(b.__)("Type","woocommerce-payments")},i),Object(_.createElement)(g,{isLoading:a,label:Object(b.__)("ID","woocommerce-payments")},l)),Object(_.createElement)("div",{className:"payment-method-details__column"},Object(_.createElement)(g,{isLoading:a,label:Object(b.__)("Owner","woocommerce-payments")},m),Object(_.createElement)(g,{isLoading:a,label:Object(b.__)("Owner email","woocommerce-payments")},u),Object(_.createElement)(g,{isLoading:a,label:Object(b.__)("Address","woocommerce-payments")},Object(_.createElement)("span",{dangerouslySetInnerHTML:{__html:f}})),Object(_.createElement)(g,{isLoading:a,label:Object(b.__)("Origin","woocommerce-payments")},d),Object(_.createElement)(g,{isLoading:a,label:Object(b.__)("CVC check","woocommerce-payments")},Object(_.createElement)(w,{checked:h})),Object(_.createElement)(g,{isLoading:a,label:Object(b.__)("Street check","woocommerce-payments")},Object(_.createElement)(w,{checked:v})),Object(_.createElement)(g,{isLoading:a,label:Object(b.__)("Zip check","woocommerce-payments")},Object(_.createElement)(w,{checked:p})))))},Ka=function(e){var t=e.query.id,c=function(e){return Object($e.useSelect)(function(t){var c=t(Qe),a=c.getCharge,n=c.getChargeError,r=c.isResolving;return{charge:a(e),chargeError:n(e),isLoading:r("getCharge",[e])}},[e])}(t),a=c.charge,n=c.isLoading,r=c.chargeError;return!n&&r instanceof Error?Object(_.createElement)(Te,{maxWidth:1032,className:"wcpay-payment-details"},Object(_.createElement)(E.Card,null,Object(_.createElement)("div",null,Object(b.__)("Payment details not loaded","woocommerce-payments")))):Object(_.createElement)(Te,{maxWidth:1032,className:"wcpay-payment-details"},Object(_.createElement)(Da,{charge:a,isLoading:n}),Object(_.createElement)(Ya,{chargeId:t}),!1,Object(_.createElement)(Ja,{charge:a,isLoading:n}),!1)},Xa=function(e){var t=e.status,c=Va[t]||{},a=c.message||Dt(t),n=c.type||"light";return Object(_.createElement)(La.a,{message:a,type:n,isCompact:!0})},en=new De.a,tn=[{key:"details",label:"",required:!0,cellClassName:"info-button"},{key:"amount",label:Object(b.__)("Amount","woocommerce-payments"),required:!0},{key:"status",label:Object(b.__)("Status","woocommerce-payments"),required:!0},{key:"reason",label:Object(b.__)("Reason","woocommerce-payments"),required:!0},{key:"source",label:Object(b.__)("Source","woocommerce-payments"),required:!0},{key:"order",label:Object(b.__)("Order #","woocommerce-payments"),required:!0},{key:"customer",label:Object(b.__)("Customer","woocommerce-payments")},{key:"email",label:Object(b.__)("Email","woocommerce-payments"),visible:!1},{key:"country",label:Object(b.__)("Country","woocommerce-payments"),visible:!1},{key:"created",label:Object(b.__)("Disputed on","woocommerce-payments"),required:!0},{key:"dueBy",label:Object(b.__)("Respond by","woocommerce-payments"),required:!0}],cn=function(){var e,t,c,a=(e=Object(vc.getQuery)(),t=e.paged,c=e.per_page,Object($e.useSelect)(function(e){var a=e(Qe),n=a.getDisputes,r=a.isResolving,o={paged:Number.isNaN(parseInt(t,10))?"1":t,perPage:Number.isNaN(parseInt(c,10))?"25":c};return{disputes:n(o),isLoading:r("getDisputes",[o])}},[t,c])),n=a.disputes,r=a.isLoading,o=n.map(function(e){var t=e.order?{value:e.order.number,display:Object(_.createElement)(Qc,{order:e.order})}:null,c=function(t){return Object(_.createElement)(Pc,{href:xc(e.id,"disputes")},t)},a=Object(_.createElement)(Cc,{id:e.id,parentSegment:"disputes"}),n=Aa[e.reason],r=n?n.display:Dt(e.reason),o=e.charge||{},s=((o.payment_method_details||{}).card||{}).brand,i=o.billing_details||{},l={amount:{value:e.amount/100,display:c(en.formatCurrency(e.amount/100))},status:{value:e.status,display:c(Object(_.createElement)(Xa,{status:e.status}))},reason:{value:e.reason,display:c(r)},source:{value:s,display:c(Object(_.createElement)("span",{className:"payment-method__brand payment-method__brand--".concat(s)}))},created:{value:1e3*e.created,display:c(Object(Ae.dateI18n)("M j, Y",Ue()(1e3*e.created)))},dueBy:{value:1e3*e.evidence_details.due_by,display:c(Object(Ae.dateI18n)("M j, Y / g:iA",Ue()(1e3*e.evidence_details.due_by)))},order:t,customer:{value:i.name,display:c(i.name)},email:{value:i.email,display:c(i.email)},country:{value:(i.address||{}).country,display:c((i.address||{}).country)},details:{value:e.id,display:a}};return tn.map(function(e){var t=e.key;return l[t]||{display:null}})});return Object(_.createElement)(Te,null,Object(_.createElement)(E.TableCard,{title:Object(b.__)("Disputes","woocommerce-payments"),isLoading:r,rowsPerPage:10,totalRows:10,headers:tn,rows:o,query:Object(vc.getQuery)(),onQueryChange:vc.onQueryChange}))},an=(c(66),function(e){var t=e.children;return Object(_.createElement)("div",{className:"woocommerce-card__footer"},t)}),nn=function(e){var t=e.id,c=e.needsResponse,a=e.isSubmitted,n=e.onAccept;if(!c&&!a)return null;var r=Object(gt.addQueryArgs)("admin.php",{page:"wc-admin",path:"/payments/disputes/challenge",id:t}),o=Object(b.__)("Are you sure you'd like to accept this dispute? This action can not be undone.","woocommerce-payments");return Object(_.createElement)(an,null,Object(_.createElement)(E.Link,{href:r,className:"components-button is-button is-primary is-large",onClick:function(){return c?window.wcTracks.recordEvent("wcpay_dispute_challenge_clicked"):window.wcTracks.recordEvent("wcpay_view_submitted_evidence_clicked")}},c?Object(b.__)("Challenge dispute","woocommerce-payments"):Object(b.__)("View submitted evidence","woocommerce-payments")),c&&Object(_.createElement)(x,{isDefault:!0,isLarge:!0,onClick:function(){return window.confirm(o)&&n()}},Object(b.__)("Accept dispute","woocommerce-payments")))},rn=c(33),on=c.n(rn),sn=(c(67),new De.a),ln=[{key:"created",label:Object(b.__)("Dispute date","woocommerce-payments")},{key:"amount",label:Object(b.__)("Disputed amount","woocommerce-payments")},{key:"dueBy",label:Object(b.__)("Respond by","woocommerce-payments")},{key:"reason",label:Object(b.__)("Reason","woocommerce-payments")},{key:"order",label:Object(b.__)("Order","woocommerce-payments")},{key:"customer",label:Object(b.__)("Customer","woocommerce-payments")},{key:"transactionId",label:Object(b.__)("Transaction ID","woocommerce-payments")}],mn=function(e){var t="object"===on()(e.charge)?e.charge.id:e.charge;return Object(_.createElement)(E.Link,{href:xc(t,"transactions")},t)},un=function(e){var t=Aa[e.reason];return t?t.display:Dt(e.reason)},dn=function(e){var t=e.dispute,c=e.isLoading,a=c?{created:"Created date",amount:"Amount",dueBy:"Due by date",reason:"Dispute reason",order:"Order link",customer:"Customer name",transactionId:"Transaction link"}:{created:Object(Ae.dateI18n)("M j, Y",Ue()(1e3*t.created)),amount:"".concat(sn.formatCurrency(t.amount/100)," ").concat(t.currency.toUpperCase()),dueBy:Object(Ae.dateI18n)("M j, Y - g:iA",Ue()(1e3*t.evidence_details.due_by)),reason:un(t),order:t.order?Object(_.createElement)(Qc,{order:t.order}):null,customer:"object"===on()(t.charge)?t.charge.billing_details.name:null,transactionId:mn(t)};return Object(_.createElement)("div",{className:"wcpay-dispute-info"},ln.map(function(e){var t=e.key,n=e.label;return null==a[t]?null:Object(_.createElement)("div",{key:t,className:"wcpay-dispute-info-item"},Object(_.createElement)(Vc,{isLoading:c,display:"inline"},Object(_.createElement)("span",{className:"wcpay-dispute-info-key"},"".concat(n,": ")),Object(_.createElement)("span",{className:"wcpay-dispute-info-value"},a[t])))}))},hn=function(e){var t=e.children;return(void 0===t?[]:t).map(function(e,t){return Object(_.createElement)("p",{key:t},e)})},vn=(c(37),function(e){var t=function(e){var t=Object($e.useSelect)(function(t){var c=t(Qe),a=c.getDispute,n=c.isResolving;return{dispute:a(e),isLoading:n("getDispute",[e])}},[e]),c=t.dispute,a=t.isLoading,n=Object($e.useDispatch)(Qe).acceptDispute;return{dispute:c,isLoading:a,doAccept:function(){return n(e)}}}(e.query.id),c=t.dispute,a=void 0===c?{}:c,n=t.isLoading,r=t.doAccept,o=!n&&a.id,s=o&&Object(_.createElement)(nn,{id:a.id,needsResponse:"needs_response"===a.status||"warning_needs_response"===a.status,isSubmitted:a.evidence_details&&a.evidence_details.submission_count>0,onAccept:r}),i=Aa[a.reason]||{};return n||o?Object(_.createElement)(Te,{isNarrow:!0,className:"wcpay-dispute-details"},Object(_.createElement)(E.Card,{title:Object(_.createElement)(Vc,{isLoading:n,value:Object(b.__)("Dispute overview","woocommerce-payments")})},Object(_.createElement)(dn,{dispute:a,isLoading:n}),Object(_.createElement)(Mc,{isLoading:n,numLines:4},Object(_.createElement)(hn,null,i.overview)),Object(_.createElement)(Mc,{isLoading:n,numLines:6},s)),Object(_.createElement)(E.Card,{title:Object(_.createElement)(Vc,{isLoading:n,value:i.display?Object(b.sprintf)(Object(b.__)("Dispute: %s","woocommerce-payments"),i.display):Object(b.__)("Dispute type","woocommerce-payments")})},Object(_.createElement)(Mc,{isLoading:n,numLines:4},Object(_.createElement)(hn,null,i.summary)),Object(_.createElement)(Mc,{isLoading:n,numLines:6},i.required&&Object(_.createElement)("h3",null," ",Object(b.__)("Required to overturn dispute","woocommerce-payments")," "),Object(_.createElement)(hn,null,i.required)),Object(_.createElement)(Mc,{isLoading:n,numLines:6},i.respond&&Object(_.createElement)("h3",null,Object(b.__)("How to respond","woocommerce-payments")),Object(_.createElement)(hn,null,i.respond),s))):Object(_.createElement)(Te,{isNarrow:!0,className:"wcpay-dispute-details"},Object(_.createElement)(E.Card,null,Object(_.createElement)("div",null,Object(b.__)("Dispute not loaded","woocommerce-payments"))))}),pn=c(27),fn=c.n(pn);var gn=function(e){var t=e.as;return function(e){var t=e.as,c=void 0===t?"div":t,a=V(e,["as"]);return"function"==typeof a.children?a.children(a):Object(_.createElement)(c,a)}(M({as:void 0===t?"div":t,className:"components-visually-hidden"},V(e,["as"])))};function bn(e){var t=e.id,c=e.label,a=e.hideLabelFromVision,n=e.help,r=e.className,o=e.children;return Object(_.createElement)("div",{className:j()("components-base-control",r)},Object(_.createElement)("div",{className:"components-base-control__field"},c&&t&&(a?Object(_.createElement)(gn,{as:"label",htmlFor:t},c):Object(_.createElement)("label",{className:"components-base-control__label",htmlFor:t},c)),c&&!t&&(a?Object(_.createElement)(gn,{as:"label"},c):Object(_.createElement)(bn.VisualLabel,null,c)),o),!!n&&Object(_.createElement)("p",{id:t+"__help",className:"components-base-control__help"},n))}bn.VisualLabel=function(e){var t=e.className,c=e.children;return t=j()("components-base-control__label",t),Object(_.createElement)("span",{className:t},c)};var wn=bn;var yn=Object(Y.withInstanceId)(function(e){var t=e.label,c=e.hideLabelFromVision,a=e.value,n=e.help,r=e.className,o=e.instanceId,s=e.onChange,i=e.type,l=void 0===i?"text":i,m=V(e,["label","hideLabelFromVision","value","help","className","instanceId","onChange","type"]),u="inspector-text-control-".concat(o);return Object(_.createElement)(wn,{label:t,hideLabelFromVision:c,id:u,help:n,className:r},Object(_.createElement)("input",C({className:"components-text-control__input",type:l,id:u,value:a,onChange:function(e){return s(e.target.value)},"aria-describedby":n?u+"__help":void 0},m)))});var zn=Object(Y.withInstanceId)(function(e){var t=e.label,c=e.hideLabelFromVision,a=e.value,n=e.help,r=e.instanceId,o=e.onChange,s=e.rows,i=void 0===s?4:s,l=e.className,m=V(e,["label","hideLabelFromVision","value","help","instanceId","onChange","rows","className"]),u="inspector-textarea-control-".concat(r);return Object(_.createElement)(wn,{label:t,hideLabelFromVision:c,id:u,help:n,className:l},Object(_.createElement)("textarea",C({className:"components-textarea-control__input",id:u,rows:i,onChange:function(e){return o(e.target.value)},"aria-describedby":n?u+"__help":void 0,value:a},m)))});var _n=Object(Y.withInstanceId)(function(e){var t=e.help,c=e.instanceId,a=e.label,n=e.multiple,r=void 0!==n&&n,o=e.onChange,s=e.options,i=void 0===s?[]:s,l=e.className,m=e.hideLabelFromVision,u=V(e,["help","instanceId","label","multiple","onChange","options","className","hideLabelFromVision"]),d="inspector-select-control-".concat(c);return!Object(O.isEmpty)(i)&&Object(_.createElement)(wn,{label:a,hideLabelFromVision:m,id:d,help:t,className:l},Object(_.createElement)("select",C({id:d,className:"components-select-control__input",onChange:function(e){if(r){var t=J(e.target.options).filter(function(e){return e.selected}).map(function(e){return e.value});o(t)}else o(e.target.value)},"aria-describedby":t?"".concat(d,"__help"):void 0,multiple:r},u),i.map(function(e,t){return Object(_.createElement)("option",{key:"".concat(e.label,"-").concat(e.value,"-").concat(t),value:e.value,disabled:e.disabled},e.label)})))}),En=[{key:"general",title:Object(b.__)("General evidence","woocommerce-payments"),description:Object(b.__)("Provide general evidence about the customer and the order.","woocommerce-payments"),fields:[{key:"product_description",label:Object(b.__)("Product description","woocommerce-payments"),type:"textarea",description:Object(b.__)("A description of the product or service and any relevant details on how this was presented to the customer at the time of purchase.","woocommerce-payments")},{key:"customer_name",label:Object(b.__)("Customer name","woocommerce-payments"),type:"text"},{key:"customer_email_address",label:Object(b.__)("Customer email","woocommerce-payments"),type:"text"},{key:"customer_signature",label:Object(b.__)("Customer signature","woocommerce-payments"),type:"file",description:Object(b.__)("A relevant document or contract showing the customer's signature (if available).","woocommerce-payments")},{key:"billing_address",label:Object(b.__)("Customer billing address","woocommerce-payments"),type:"textarea"},{key:"customer_purchase_ip",label:Object(b.__)("Customer IP address","woocommerce-payments"),type:"text"},{key:"receipt",label:Object(b.__)("Receipt","woocommerce-payments"),type:"file",description:Object(b.__)("Any receipt or message sent to the customer notifying them of the charge. This field will be automatically filled with a Stripe generated email receipt if any such receipt was sent.","woocommerce-payments")},{key:"customer_communication",label:Object(b.__)("Customer communication","woocommerce-payments"),type:"file",description:Object(b.__)("Any communication with the customer that you feel is relevant to your case (e.g. emails proving that they received the product or service, or demonstrating their use of or satisfaction with the product or service).","woocommerce-payments")}]},{key:"refund_policy_info",title:Object(b.__)("Refund policy info","woocommerce-payments"),fields:[{key:"refund_policy",label:Object(b.__)("Refund policy","woocommerce-payments"),type:"file",description:Object(b.__)("Your refund policy, as shown or provided to the customer.","woocommerce-payments")},{key:"refund_policy_disclosure",label:Object(b.__)("Refund policy disclosure","woocommerce-payments"),type:"textarea",description:Object(b.__)("An explanation of how and when the customer was shown or provided your refund policy prior to purchase.","woocommerce-payments")},{key:"refund_refusal_explanation",label:Object(b.__)("Refund refusal explanation","woocommerce-payments"),type:"textarea",description:Object(b.__)("Your explanation for why the customer is not entitled to a refund.","woocommerce-payments")}],reason:"credit_not_processed"},{key:"duplicate_charge_info",title:Object(b.__)("Duplicate charge info","woocommerce-payments"),fields:[{key:"duplicate_charge_id",label:Object(b.__)("Duplicate charge ID","woocommerce-payments"),type:"text",description:Object(b.__)("The charge ID for the previous payment that appears to be a duplicate of the one that is disputed.","woocommerce-payments")},{key:"duplicate_charge_explanation",label:Object(b.__)("Explanation of duplicate charge","woocommerce-payments"),type:"textarea",description:Object(b.__)("An explanation of the difference between the disputed payment and the prior one that appears to be a duplicate.","woocommerce-payments")},{key:"duplicate_charge_documentation",label:Object(b.__)("Duplicate charge documentation","woocommerce-payments"),type:"file",description:Object(b.__)("Upload documentation for the prior payment that can uniquely identify it, such as a separate receipt. This document should be paired with a similar document from the disputed payment that proves the two are separate. This should also include a separate shipping label or receipt for the other payment. If multiple products were shipped together, provide a packing list that shows each purchase.","woocommerce-payments")},{key:"shipping_documentation",label:Object(b.__)("Shipping documentation","woocommerce-payments"),type:"file",description:Object(b.__)("A shipping label or receipt for the disputed payment.","woocommerce-payments"),denormalized:!0,productType:"physical_product"},{key:"service_documentation",label:Object(b.__)("Service documentation","woocommerce-payments"),type:"file",description:Object(b.__)("A copy of a service agreement or documentation for the disputed payment.","woocommerce-payments"),denormalized:!0,productType:"offline_service"}],reason:"duplicate"},{key:"shipping_information",title:Object(b.__)("Shipping information","woocommerce-payments"),fields:[{key:"shipping_carrier",label:Object(b.__)("Shipping carrier","woocommerce-payments"),type:"text",description:Object(b.__)("The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc. If multiple carriers were used for this purchase, please separate them with commas.","woocommerce-payments")},{key:"shipping_tracking_number",label:Object(b.__)("Tracking number","woocommerce-payments"),type:"text",description:Object(b.__)("The tracking number (if available) for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas. When we compile your evidence into a single document, these tracking numbers will be expanded to include detailed delivery information from the carrier.","woocommerce-payments")},{key:"shipping_documentation",label:Object(b.__)("Proof of shipping","woocommerce-payments"),type:"file",description:Object(b.__)("Provide documentation as proof that a product was shipped to the cardholder at the same address the cardholder provided to you. This could include a copy of the shipment receipt or label, and show the full shipping address of the cardholder, if possible.","woocommerce-payments")},{key:"shipping_date",label:Object(b.__)("Date of shipment","woocommerce-payments"),type:"text",description:Object(b.__)("The date on which a physical product began its route to the shipping address. This date should be prior to the date of the dispute.","woocommerce-payments")},{key:"shipping_address",label:Object(b.__)("Shipping address","woocommerce-payments"),type:"textarea",description:Object(b.__)("The address to which a physical product was shipped. The shipping address must match a billing address verified with AVS. (A signature is not required as evidence of delivery).","woocommerce-payments")}],reason:["fraudulent","product_not_received","product_unacceptable","unrecognized"],productType:"physical_product"},{key:"cancellation_policy_info",title:Object(b.__)("Cancellation policy info","woocommerce-payments"),fields:[{key:"cancellation_policy",label:Object(b.__)("Cancellation policy","woocommerce-payments"),type:"file",description:Object(b.__)("Your subscription cancellation policy, as shown to the customer.","woocommerce-payments")},{key:"cancellation_policy_disclosure",label:Object(b.__)("Cancellation policy disclosure","woocommerce-payments"),type:"textarea",description:Object(b.__)("An explanation of how and when the customer was shown your cancellation policy prior to purchase.","woocommerce-payments")},{key:"cancellation_rebuttal",label:Object(b.__)("Cancellation rebuttal","woocommerce-payments"),type:"textarea",description:Object(b.__)("A justification for why the customer's subscription was not canceled.","woocommerce-payments")}],reason:"subscription_canceled"},{key:"download_and_activity_logs",title:Object(b.__)("Download and activity logs","woocommerce-payments"),fields:[{key:"access_activity_log",type:"file",description:[Object(b.__)("Provide at least two of the following pieces of information:","woocommerce-payments"),Object(b.__)("• Customer's IP address and their device's geographical location at the time of purchase","woocommerce-payments"),Object(b.__)("• Device ID and name of the device","woocommerce-payments"),Object(b.__)("• Customer name and email address linked to their customer profile","woocommerce-payments"),Object(b.__)("• Evidence that the customer logged into their account for your business before the transaction date","woocommerce-payments"),Object(b.__)("• Evidence that your website or app was accessed by the cardholder for purchase or services on or after the transaction date","woocommerce-payments"),Object(b.__)("• Evidence that the same device and card used in the disputed payment was used in a previous payment that was not disputed","woocommerce-payments")]}],reason:["fraudulent","product_not_received"],productType:"digital_product_or_service"},{key:"download_and_activity_logs",title:Object(b.__)("Download and activity logs","woocommerce-payments"),fields:[{key:"access_activity_log",type:"file",description:Object(b.__)("Any server or activity logs showing proof that the cardholder accessed or downloaded the purchased digital product. This information should include IP addresses, corresponding timestamps, and any detailed recorded activity.","woocommerce-payments")}],reason:["product_unacceptable","subscription_canceled","unrecognized"],productType:"digital_product_or_service",denormalized:!0},{key:"service_details",title:Object(b.__)("Service details","woocommerce-payments"),fields:[{key:"service_date",label:Object(b.__)("Service date","woocommerce-payments"),type:"text",description:Object(b.__)("The date on which the cardholder received or began receiving the purchased service.","woocommerce-payments")},{key:"service_documentation",label:Object(b.__)("Proof of service","woocommerce-payments"),type:"file",description:Object(b.__)("Documentation showing proof that a service was provided to the cardholder. This could include a copy of a signed contract, work order, or other form of written agreement.","woocommerce-payments")}],reason:["fraudulent","product_not_received","product_unacceptable","subscription_canceled","unrecognized"],productType:"offline_service"},{key:"uncategorized",title:Object(b.__)("Additional details","woocommerce-payments"),description:Object(b.__)("Provide any extra evidence or statements you'd like the bank to see, either as text or by uploading a document.","woocommerce-payments"),fields:[{key:"uncategorized_text",label:Object(b.__)("Additional details","woocommerce-payments"),type:"textarea"},{key:"uncategorized_file",type:"file"}]}],On=function(e){function t(){var e;return L(this,t),(e=R(this,D(t).apply(this,arguments))).openFileDialog=e.openFileDialog.bind(I(e)),e.bindInput=e.bindInput.bind(I(e)),e}return P(t,_["Component"]),N(t,[{key:"openFileDialog",value:function(){this.input.click()}},{key:"bindInput",value:function(e){this.input=e}},{key:"render",value:function(){var e=this.props,t=e.accept,c=e.children,a=e.icon,n=void 0===a?"upload":a,r=e.multiple,o=void 0!==r&&r,s=e.onChange,i=e.render,l=V(e,["accept","children","icon","multiple","onChange","render"]),m=i?i({openFileDialog:this.openFileDialog}):Object(_.createElement)(Ce,C({icon:n,onClick:this.openFileDialog},l),c);return Object(_.createElement)("div",{className:"components-form-file-upload"},m,Object(_.createElement)("input",{type:"file",ref:this.bindInput,multiple:o,style:{display:"none"},accept:t,onChange:s}))}}]),t}(),kn=function(e){var t=e.fileName,c=e.field,a=e.disabled,n=e.isDone,r=e.isLoading,o=e.accept,s=e.error,i=e.onFileChange,l=e.onFileRemove,m=e.help,u=s&&s.length>0;return Object(_.createElement)(wn,{id:"form-file-upload-base-control-".concat(c.key),label:c.label,help:m},Object(_.createElement)("div",{className:"file-upload"},Object(_.createElement)(On,{id:"form-file-upload-".concat(c.key),className:n&&!u?"is-success":null,isLarge:!0,isPrimary:!0,isDestructive:u,isBusy:r,disabled:a||r,icon:Object(_.createElement)(Fe.a,{icon:n&&!u?"checkmark":"add-outline",size:18}),accept:o,onChange:function(e){return i(c.key,e.target.files[0])}},Object(b.__)("Upload file","woocommerce-payments")),u?Object(_.createElement)("span",{className:"upload-message is-destructive"},s):Object(_.createElement)("span",{className:"upload-message"},t),n&&!a?Object(_.createElement)(Ce,{className:"delete-uploaded-file-button","aria-label":"Remove file",icon:Object(_.createElement)(Fe.a,{icon:"trash",size:18}),onClick:function(){return l(c.key)}}):null))},jn=function(e,t){Object(_.useEffect)(function(){var t=e();if(t){var c=function(e){e.preventDefault(),e.returnValue=""};window.addEventListener("beforeunload",c);var a=Object(vc.getHistory)().block(t);return function(){window.removeEventListener("beforeunload",c),a()}}},t)},Hn=function(e){return Array.isArray(e)?Object(O.flatten)(e.map(function(e,t){return[e,Object(_.createElement)("br",{key:t})]})):e},Mn=function(e){var t=e.fields,c=e.evidence,a=e.onChange,n=e.onFileChange,r=e.onFileRemove,o=e.onSave,s=e.readOnly;if(!t||!t.length)return null;var i=function(e){return{label:e.label,value:c[e.key]||"",onChange:function(t){return a(e.key,t)},disabled:s,help:Hn(e.description)}},l=function(e){switch(e.type){case"file":return Object(_.createElement)(kn,Oc()({key:e.key},function(e){var t=c.metadata&&c.metadata[e.key]||"",a=c.isUploading&&(c.isUploading[e.key]||!1),o=c.uploadingErrors&&(c.uploadingErrors[e.key]||""),i=!a&&t.length>0;return{field:e,fileName:t,accept:".pdf, image/png, image/jpeg",onFileChange:n,onFileRemove:r,disabled:s,isLoading:a,isDone:i,error:o,help:Hn(e.description)}}(e)));case"text":return Object(_.createElement)(yn,Oc()({key:e.key},i(e)));default:return Object(_.createElement)(zn,Oc()({key:e.key},i(e)))}},m=t.map(function(e){return Object(_.createElement)(E.Card,{key:e.key,title:e.title},e.description&&Object(_.createElement)("p",null,e.description),e.fields.map(l))}),u=Object(b.__)("Are you sure you're ready to submit this evidence? Evidence submissions are final.","woocommerce-payments");return Object(_.createElement)(_.Fragment,null,m,s?null:Object(_.createElement)(E.Card,null,Object(_.createElement)("p",null,Object(b.__)("When you submit your evidence, we'll format it and send it to the cardholder's bank, then email you once the dispute has been decided.","woocommerce-payments")),Object(_.createElement)("p",null,Object(_.createElement)("strong",null,Object(b.__)("Evidence submission is final.","woocommerce-payments"))," ",Object(b.__)("You can also save this evidence for later instead of submitting it immediately.","woocommerce-payments")," ",Object(_.createElement)("strong",null,Object(b.__)("We will automatically submit any saved evidence at the due date.","woocommerce-payments"))),Object(_.createElement)(an,null,Object(_.createElement)(x,{isPrimary:!0,isLarge:!0,onClick:function(){return window.confirm(u)&&o(!0)}},Object(b.__)("Submit evidence","woocommerce-payments")),Object(_.createElement)(x,{isDefault:!0,isLarge:!0,onClick:function(){return o(!1)}},Object(b.__)("Save for later","woocommerce-payments")))))},Vn=function(e){var t=e.isLoading,c=e.dispute,a=void 0===c?{}:c,n=e.productType,r=e.onChangeProductType,o=jc()(e,["isLoading","dispute","productType","onChangeProductType"]),s=a&&"needs_response"!==a.status&&"warning_needs_response"!==a.status,i=!t&&a.id;return t||i?Object(_.createElement)(Te,{isNarrow:!0,className:"wcpay-dispute-evidence"},Object(_.createElement)(E.Card,{title:Object(_.createElement)(Vc,{isLoading:t,value:Object(b.__)("Challenge dispute","woocommerce-payments")})},Object(_.createElement)(dn,{dispute:a,isLoading:t})),Object(_.createElement)(E.Card,{title:Object(_.createElement)(Vc,{isLoading:t,value:Object(b.__)("Product type","woocommerce-payments")})},Object(_.createElement)(Mc,{isLoading:t,numLines:2},Object(_.createElement)(_n,{value:n,onChange:r,options:[{label:Object(b.__)("Select one…","woocommerce-payments"),disabled:!0,value:""},{label:Object(b.__)("Physical product","woocommerce-payments"),value:"physical_product"},{label:Object(b.__)("Digital product or service","woocommerce-payments"),value:"digital_product_or_service"},{label:Object(b.__)("Offline service","woocommerce-payments"),value:"offline_service"},{label:Object(b.__)("Multiple product types","woocommerce-payments"),value:"multiple"}],disabled:s}))),!t&&Object(_.createElement)(Mn,Oc()({},o,{readOnly:s}))):Object(_.createElement)(Te,{isNarrow:!0,className:"wcpay-dispute-details"},Object(_.createElement)("div",null,Object(b.__)("Dispute not loaded","woocommerce-payments")))},xn=function(e){var t=e.query,c="/wc/v3/payments/disputes/".concat(t.id),a=Object(_.useState)(),n=z()(a,2),r=n[0],o=n[1],s=Object(_.useState)(!1),i=z()(s,2),l=i[0],m=i[1],u=Object(_.useState)({}),d=z()(u,2),h=d[0],v=d[1],p=Object($e.useDispatch)("core/notices"),f=p.createSuccessNotice,g=p.createErrorNotice,w=p.createInfoNotice,y=!r||Object(O.isMatchWith)(r.evidence,h,function(e,t){if(null===e&&!t)return!0});jn(function(){if(!y)return Object(b.__)("There are unsaved changes on this page. Are you sure you want to leave and discard the unsaved changes?","woocommerce-payments")},[y]);var E=function(){var e=fn()(ft.a.mark(function e(){return ft.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return m(!0),e.prev=1,e.t0=o,e.next=5,ea()({path:c});case 5:e.t1=e.sent,(0,e.t0)(e.t1);case 7:return e.prev=7,m(!1),e.finish(7);case 10:case"end":return e.stop()}},e,null,[[1,,7,10]])}));return function(){return e.apply(this,arguments)}}();Object(_.useEffect)(function(){E()},[]);var k=function(e,t){return v(function(c){return Ze()({},c,Ke()({},e,t))})},j=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o(function(t){return Object(O.merge)({},t,e)})},H=function(){var e=fn()(ft.a.mark(function e(t,c){var a,n;return ft.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(c){e.next=2;break}return e.abrupt("return");case 2:return window.wcTracks.recordEvent("wcpay_dispute_file_upload_started",{type:t}),(a=new FormData).append("file",c),a.append("purpose","dispute_evidence"),j({isUploading:Ke()({},t,!0),uploadingErrors:Ke()({},t,"")}),k(t,""),e.prev=8,e.next=11,ea()({path:"/wc/v3/payments/file",method:"post",body:a});case 11:n=e.sent,j({metadata:Ke()({},t,n.filename),isUploading:Ke()({},t,!1)}),k(t,n.id),window.wcTracks.recordEvent("wcpay_dispute_file_upload_success",{type:t}),e.next=22;break;case 17:e.prev=17,e.t0=e.catch(8),window.wcTracks.recordEvent("wcpay_dispute_file_upload_failed",{message:e.t0.message}),j({isUploading:Ke()({},t,!1),uploadingErrors:Ke()({},t,e.t0.message)}),k(t,"");case 22:case"end":return e.stop()}},e,null,[[8,17]])}));return function(t,c){return e.apply(this,arguments)}}(),M=function(e){var t=e?Object(b.__)("Evidence submitted!","woocommerce-payments"):Object(b.__)("Evidence saved!","woocommerce-payments"),c=Object(gt.addQueryArgs)("admin.php",{page:"wc-admin",path:"/payments/disputes"});e?window.wcTracks.recordEvent("wcpay_dispute_submit_evidence_success"):window.wcTracks.recordEvent("wcpay_dispute_save_evidence_success"),f(t),Object(vc.getHistory)().push(c)},V=function(e){var t=e?Object(b.__)("Failed to submit evidence!","woocommerce-payments"):Object(b.__)("Failed to save evidence!","woocommerce-payments");e?window.wcTracks.recordEvent("wcpay_dispute_submit_evidence_failed"):window.wcTracks.recordEvent("wcpay_dispute_save_evidence_failed"),g(t)},x={updateDispute:Object($e.useDispatch)(Qe).updateDispute}.updateDispute,C=function(){var e=fn()(ft.a.mark(function e(t){var a,n;return ft.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!Object(O.some)(r.isUploading)){e.next=3;break}return w(Object(b.__)("Please wait until file upload is finished"),"woocommerce-payments"),e.abrupt("return");case 3:return m(!0),e.prev=4,t?window.wcTracks.recordEvent("wcpay_dispute_submit_evidence_clicked"):window.wcTracks.recordEvent("wcpay_dispute_save_evidence_clicked"),a=r.metadata,e.next=9,ea()({path:c,method:"post",data:{evidence:Ze()({},r.evidence,{},h),metadata:a,submit:t}});case 9:n=e.sent,o(n),M(t),v({}),x(n),e.next=19;break;case 16:e.prev=16,e.t0=e.catch(4),V(t);case 19:return e.prev=19,m(!1),e.finish(19);case 22:case"end":return e.stop()}},e,null,[[4,16,19,22]])}));return function(t){return e.apply(this,arguments)}}(),L=function(e){if(!e)return"";var t=e.metadata.__product_type||"";return!t&&e.evidence_details&&e.evidence_details.has_evidence&&(t="multiple"),t}(r),S=Object(_.useMemo)(function(){return function(e,t){return e&&t?"multiple"===t?En.map(function(e){return e.denormalized?null:Ze()({},e,{fields:e.fields.filter(function(e){return!e.denormalized})})}).filter(Boolean):En.map(function(c){var a=c.reason&&!Object(O.includes)(c.reason,e),n=c.productType&&c.productType!==t;if(a||n)return null;var r=c.fields.filter(function(e){return!e.productType||e.productType===t});return Ze()({},c,{fields:r})}).filter(Boolean):[]}(r&&r.reason,L)},[r&&r.reason,L]);return Object(_.createElement)(Vn,{isLoading:l,dispute:r,evidence:r?Ze()({},r.evidence,{},h,{metadata:r.metadata||{},isUploading:r.isUploading||{},uploadingErrors:r.uploadingErrors||{}}):{},onChange:k,onFileChange:H,onFileRemove:function(e){k(e,""),j({metadata:Ke()({},e,""),uploadingErrors:Ke()({},e,"")})},onSave:C,productType:L,onChangeProductType:function(e){var t={selection:e};window.wcTracks.recordEvent("wcpay_dispute_product_selected",t),j({metadata:Ke()({},"__product_type",e)})},fields:S})},Cn={transactions:Object(b.__)("Viewing test transactions. To view live transactions, disable test mode in WooCommerce Payments settings.","woocommerce-payments"),paymentDetails:Object(b.__)("Test payment:","woocommerce-payments"),deposits:Object(b.__)("Viewing test deposits. To view live deposits, disable test mode in WooCommerce Payments settings.","woocommerce-payments"),depositDetails:Object(b.__)("Test deposit:","woocommerce-payments"),disputes:Object(b.__)("Viewing test disputes. To view live disputes, disable test mode in WooCommerce Payments settings.","woocommerce-payments"),disputeDetails:Object(b.__)("Test dispute:","woocommerce-payments")},Ln=[Cn.paymentDetails,Cn.disputeDetails,Cn.depositDetails],Sn=function(e){var t=Object(_.createElement)("a",{href:Object(gt.addQueryArgs)("admin.php",{page:"wc-settings",tab:"checkout",section:"woocommerce_payments"})},Object(b.__)("View WooCommerce Payments settings.","woocommerce-payments"));return Ln.includes(e)?Object(_.createElement)("span",null,Object(_.createElement)("b",null,e)," ",function(e){return Object(b._n)("WooCommerce Payments was in test mode when this order was placed.","WooCommerce Payments was in test mode when these orders were placed.",Cn.depositDetails===e?2:1,"woocommerce-payments")}(e)," ",t):Object(_.createElement)("span",null,e," ",t)},Nn=function(e,t){return function(c,a){return Object(_.createElement)("div",null,function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return"undefined"==typeof wcpaySettings?e:"1"===wcpaySettings.testMode||e}()?(n=t,Object(_.createElement)(Le,{className:"wcpay-test-mode-notice",status:"warning",isDismissible:!1},Sn(n))):null,e(c,a));var n}};Object(w.addFilter)("woocommerce_admin_pages_list","woocommerce-payments",function(e){var t,c=(t=document.querySelector("#toplevel_page_wc-admin-path--payments-connect")?"connect":"deposits",{menuID:"toplevel_page_wc-admin-path--payments-".concat(t),rootLink:["/payments/".concat(t),Object(b.__)("Payments","woocommerce-payments")]}),a=c.menuID,n=c.rootLink;return e.push({container:Ie,path:"/payments/connect",wpOpenMenu:a,breadcrumbs:[n,Object(b.__)("Connect","woocommerce-payments")]}),e.push({container:Nn(Wc,Cn.deposits),path:"/payments/deposits",wpOpenMenu:a,breadcrumbs:[n,Object(b.__)("Deposits","woocommerce-payments")]}),e.push({container:Nn(ma,Cn.depositDetails),path:"/payments/deposits/details",wpOpenMenu:a,breadcrumbs:[n,["/payments/deposits",Object(b.__)("Deposits","woocommerce-payments")],Object(b.__)("Deposit details","woocommerce-payments")]}),e.push({container:Nn(pa,Cn.transactions),path:"/payments/transactions",wpOpenMenu:a,breadcrumbs:[n,Object(b.__)("Transactions","woocommerce-payments")]}),e.push({container:Nn(Ka,Cn.paymentDetails),path:"/payments/transactions/details",wpOpenMenu:a,breadcrumbs:[n,["/payments/transactions",Object(b.__)("Transactions","woocommerce-payments")],Object(b.__)("Payment details","woocommerce-payments")]}),e.push({container:Nn(cn,Cn.disputes),path:"/payments/disputes",wpOpenMenu:a,breadcrumbs:[n,Object(b.__)("Disputes","woocommerce-payments")]}),e.push({container:Nn(vn,Cn.disputeDetails),path:"/payments/disputes/details",wpOpenMenu:a,breadcrumbs:[n,["/payments/disputes",Object(b.__)("Disputes","woocommerce-payments")],Object(b.__)("Dispute details","woocommerce-payments")]}),e.push({container:Nn(xn,Cn.disputeDetails),path:"/payments/disputes/challenge",wpOpenMenu:a,breadcrumbs:[n,["/payments/disputes",Object(b.__)("Disputes","woocommerce-payments")],Object(b.__)("Challenge dispute","woocommerce-payments")]}),e})},function(e,t,c){"use strict";function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var c=0,a=new Array(t);c<t;c++)a[c]=e[c];return a}function n(e,t){if(e){if("string"==typeof e)return a(e,t);var c=Object.prototype.toString.call(e).slice(8,-1);return"Object"===c&&e.constructor&&(c=e.constructor.name),"Map"===c||"Set"===c?Array.from(e):"Arguments"===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?a(e,t):void 0}}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var c=[],a=!0,n=!1,r=void 0;try{for(var o,s=e[Symbol.iterator]();!(a=(o=s.next()).done)&&(c.push(o.value),!t||c.length!==t);a=!0);}catch(e){n=!0,r=e}finally{try{a||null==s.return||s.return()}finally{if(n)throw r}}return c}}(e,t)||n(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||n(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var i,l,m,u,d=c(13),h=/<(\/)?(\w+)\s*(\/)?>/g;function v(e,t,c,a,n){return{element:e,tokenStart:t,tokenLength:c,prevOffset:a,leadingTextStart:n,children:[]}}var p=function(e){var t="object"===o(e),c=t&&Object.values(e);return t&&c.length&&c.every(function(e){return Object(d.isValidElement)(e)})};function f(e){var t=function(){var e=h.exec(i);if(null===e)return["no-more-tokens"];var t=e.index,c=r(e,4),a=c[0],n=c[1],o=c[2],s=c[3],l=a.length;if(s)return["self-closed",o,t,l];if(n)return["closer",o,t,l];return["opener",o,t,l]}(),c=r(t,4),a=c[0],n=c[1],o=c[2],p=c[3],f=u.length,w=o>l?l:null;if(!e[n])return g(),!1;switch(a){case"no-more-tokens":if(0!==f){var y=u.pop(),z=y.leadingTextStart,_=y.tokenStart;m.push(i.substr(z,_))}return g(),!1;case"self-closed":return 0===f?(null!==w&&m.push(i.substr(w,o-w)),m.push(e[n]),l=o+p,!0):(b(new v(e[n],o,p)),l=o+p,!0);case"opener":return u.push(new v(e[n],o,p,o+p,w)),l=o+p,!0;case"closer":if(1===f)return function(e){var t=u.pop(),c=t.element,a=t.leadingTextStart,n=t.prevOffset,r=t.tokenStart,o=t.children,l=e?i.substr(n,e-n):i.substr(n);l&&o.push(l);null!==a&&m.push(i.substr(a,r-a));m.push(d.cloneElement.apply(void 0,[c,null].concat(s(o))))}(o),l=o+p,!0;var E=u.pop(),O=i.substr(E.prevOffset,o-E.prevOffset);E.children.push(O),E.prevOffset=o+p;var k=new v(E.element,E.tokenStart,E.tokenLength,o+p);return k.children=E.children,b(k),l=o+p,!0;default:return g(),!1}}function g(){var e=i.length-l;0!==e&&m.push(i.substr(l,e))}function b(e){var t=e.element,c=e.tokenStart,a=e.tokenLength,n=e.prevOffset,r=e.children,o=u[u.length-1],l=i.substr(o.prevOffset,c-o.prevOffset);l&&o.children.push(l),o.children.push(d.cloneElement.apply(void 0,[t,null].concat(s(r)))),o.prevOffset=n||c+a}t.a=function(e,t){if(i=e,l=0,m=[],u=[],h.lastIndex=0,!p(t))throw new TypeError("The conversionMap provided is not valid. It must be an object with values that are WPElements");do{}while(f(t));return d.createElement.apply(void 0,[d.Fragment,null].concat(s(m)))}}]));
dist/settings.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('moment', 'react', 'react-dom', 'wc-navigation', 'wp-date', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '081017bf365b0746add373dd0dda7aa5');
1
+ <?php return array('dependencies' => array('moment', 'react', 'react-dom', 'wc-navigation', 'wp-date', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'cb871aa4c1469f99aa3ba3f806e2adc6');
dist/settings.js CHANGED
@@ -1 +1 @@
1
- !function(e,t){for(var n in t)e[n]=t[n]}(this,function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=71)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},11:function(e,t){!function(){e.exports=this.wp.date}()},13:function(e,t){!function(){e.exports=this.React}()},19:function(e,t,n){"use strict";var r=n(0),o=(n(29),["primary","light","warning","alert"]);t.a=function(e){var t=e.message,n=e.type,c=e.isCompact,a=["chip","chip-".concat(o.find(function(e){return e===n})||"primary"),c?"is-compact":""];return Object(r.createElement)("span",{className:a.join(" ").trim()},t)}},29:function(e,t,n){},31:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.size,n=void 0===t?24:t,o=e.onClick,c=(e.icon,e.className),i=function(e,t){var n={};for(var r in e)0<=t.indexOf(r)||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["size","onClick","icon","className"]),s=["gridicon","gridicons-checkmark-circle",c,!1,!1,!1].filter(Boolean).join(" ");return a.default.createElement("svg",r({className:s,height:n,width:n,onClick:o},i,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M11 17.768l-4.884-4.884 1.768-1.768L11 14.232l8.658-8.658C17.823 3.39 15.075 2 12 2 6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10c0-1.528-.353-2.97-.966-4.266L11 17.768z"})))};var o,c=n(13),a=(o=c)&&o.__esModule?o:{default:o};e.exports=t.default},32:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n=e.size,o=void 0===n?24:n,c=e.onClick,i=(e.icon,e.className),s=function(e,t){var n={};for(var r in e)0<=t.indexOf(r)||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["size","onClick","icon","className"]),u=["gridicon","gridicons-notice",i,(t=o,!(0!=t%18)&&"needs-offset"),!1,!1].filter(Boolean).join(" ");return a.default.createElement("svg",r({className:u,height:o,width:o,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 15h-2v-2h2v2zm0-4h-2l-.5-6h3l-.5 6z"})))};var o,c=n(13),a=(o=c)&&o.__esModule?o:{default:o};e.exports=t.default},39:function(e,t){!function(){e.exports=this.ReactDOM}()},6:function(e,t){!function(){e.exports=this.moment}()},68:function(e,t,n){},7:function(e,t){!function(){e.exports=this.wc.navigation}()},70:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,c=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,c=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw c}}return n}}(e,t)||o(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||o(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var s,u,l,m,f=n(13),p=/<(\/)?(\w+)\s*(\/)?>/g;function d(e,t,n,r,o){return{element:e,tokenStart:t,tokenLength:n,prevOffset:r,leadingTextStart:o,children:[]}}var b=function(e){var t="object"===a(e),n=t&&Object.values(e);return t&&n.length&&n.every(function(e){return Object(f.isValidElement)(e)})};function y(e){var t=function(){var e=p.exec(s);if(null===e)return["no-more-tokens"];var t=e.index,n=c(e,4),r=n[0],o=n[1],a=n[2],i=n[3],u=r.length;if(i)return["self-closed",a,t,u];if(o)return["closer",a,t,u];return["opener",a,t,u]}(),n=c(t,4),r=n[0],o=n[1],a=n[2],b=n[3],y=m.length,_=a>u?u:null;if(!e[o])return h(),!1;switch(r){case"no-more-tokens":if(0!==y){var j=m.pop(),O=j.leadingTextStart,w=j.tokenStart;l.push(s.substr(O,w))}return h(),!1;case"self-closed":return 0===y?(null!==_&&l.push(s.substr(_,a-_)),l.push(e[o]),u=a+b,!0):(v(new d(e[o],a,b)),u=a+b,!0);case"opener":return m.push(new d(e[o],a,b,a+b,_)),u=a+b,!0;case"closer":if(1===y)return function(e){var t=m.pop(),n=t.element,r=t.leadingTextStart,o=t.prevOffset,c=t.tokenStart,a=t.children,u=e?s.substr(o,e-o):s.substr(o);u&&a.push(u);null!==r&&l.push(s.substr(r,c-r));l.push(f.cloneElement.apply(void 0,[n,null].concat(i(a))))}(a),u=a+b,!0;var g=m.pop(),E=s.substr(g.prevOffset,a-g.prevOffset);g.children.push(E),g.prevOffset=a+b;var S=new d(g.element,g.tokenStart,g.tokenLength,a+b);return S.children=g.children,v(S),u=a+b,!0;default:return h(),!1}}function h(){var e=s.length-u;0!==e&&l.push(s.substr(u,e))}function v(e){var t=e.element,n=e.tokenStart,r=e.tokenLength,o=e.prevOffset,c=e.children,a=m[m.length-1],u=s.substr(a.prevOffset,n-a.prevOffset);u&&a.children.push(u),a.children.push(f.cloneElement.apply(void 0,[t,null].concat(i(c)))),a.prevOffset=o||n+r}t.a=function(e,t){if(s=e,u=0,l=[],m=[],p.lastIndex=0,!b(t))throw new TypeError("The conversionMap provided is not valid. It must be an object with values that are WPElements");do{}while(y(t));return f.createElement.apply(void 0,[f.Fragment,null].concat(i(l)))}},71:function(e,t,n){"use strict";n.r(t);var r,o,c,a,i=n(0),s=(n(13),n(39)),u=n.n(s),l=n(1),m=n(7),f=n(11),p=n(6),d=n.n(p),b=n(70),y=n(31),h=n.n(y),v=n(32),_=n.n(v),j=n(19),O=(n(68),function(e){var t,n,r,o=e.accountStatus;return o.error?Object(i.createElement)("div",null,Object(l.__)("Error determining the connection status.")):Object(i.createElement)("div",null,Object(i.createElement)("div",null,(t=o.status,n=Object(l.__)("Unknown","woocommerce-payments"),r="light","complete"===t?(n=Object(l.__)("Complete","woocommerce-payments"),r="primary"):"restricted_soon"===t?(n=Object(l.__)("Restricted soon","woocommerce-payments"),r="warning"):"restricted"===t?(n=Object(l.__)("Restricted","woocommerce-payments"),r="alert"):t.startsWith("rejected")&&(n=Object(l.__)("Rejected","woocommerce-payments"),r="light"),Object(i.createElement)(j.a,{message:n,type:r,isCompact:!0})),function(e){var t,n,r;return e?(n=Object(l.__)("Enabled","woocommerce-payments"),r=Object(i.createElement)(h.a,{size:18}),t="account-status__info__green"):(n=Object(l.__)("Disabled","woocommerce-payments"),r=Object(i.createElement)(_.a,{size:18}),t="account-status__info__red"),Object(i.createElement)("span",{className:"account-status__info"},Object(l.__)("Payments:","woocommerce-payments"),Object(i.createElement)("span",{className:t},r,n))}(o.paymentsEnabled),function(e){var t,n="account-status__info__green",r=Object(i.createElement)(h.a,{size:18});return"disabled"===e?(t=Object(l.__)("Disabled","woocommerce-payments"),n="account-status__info__red",r=Object(i.createElement)(_.a,{size:18})):t="daily"===e?Object(l.__)("Daily","woocommerce-payments"):"weekly"===e?Object(l.__)("Weekly","woocommerce-payments"):"monthly"===e?Object(l.__)("Monthly","woocommerce-payments"):"manual"===e?Object(l.__)("Manual","woocommerce-payments"):Object(l.__)("Unknown","woocommerce-payments"),Object(i.createElement)("span",{className:"account-status__info"},Object(l.__)("Deposits:","woocommerce-payments"),Object(i.createElement)("span",{className:n},r,t))}(o.depositsStatus)),function(e){var t=e.status,n=e.currentDeadline,r=e.pastDue,o=e.accountLink;if("complete"===t)return"";var c="";return"restricted_soon"===t?c=Object(b.a)(Object(l.sprintf)(Object(l.__)("To avoid disrupting deposits, <a>update this account</a> by %s with more information about the business.","woocommerce-payments"),Object(f.dateI18n)("ga M j, Y",d()(1e3*n))),{a:Object(i.createElement)("a",{href:o})}):"restricted"===t&&r?c=Object(b.a)(Object(l.__)("Payments and deposits are disabled for this account until missing business information is updated. <a>Update now</a>","woocommerce-payments"),{a:Object(i.createElement)("a",{href:o})}):"restricted"===t?c=Object(l.__)("Payments and deposits are disabled for this account until business information is verified by the payment processor.","woocommerce-payments"):"rejected.fraud"===t?c=Object(l.__)("This account has been rejected because of suspected fraudulent activity.","woocommerce-payments"):"rejected.terms_of_service"===t?c=Object(l.__)("This account has been rejected due to a Terms of Service violation.","woocommerce-payments"):t.startsWith("rejected")&&(c=Object(l.__)("This account has been rejected.","woocommerce-payments")),c?Object(i.createElement)("div",{className:"account-status__desc"},c):null}(o))});if(u.a.render(Object(i.createElement)(O,wcpayAdminSettings),document.getElementById("wcpay-account-status-container")),r=Object(m.getQuery)(),o=r.page,c=r.tab,a=r.section,"wc-settings"===o&&"checkout"===c&&"woocommerce_payments"===a){var w=document.querySelector("form#mainform"),g=document.getElementById("woocommerce_woocommerce_payments_manual_capture");w&&g&&!g.checked&&w.addEventListener("submit",function(e){g.checked&&(confirm(Object(l.__)("When manual capture is enabled, charges must be captured within 7 days of authorization, otherwise the authorization and order will be canceled. Are you sure you want to enable it?","woocommerce-payments"))||e.preventDefault())})}}}));
1
+ !function(e,t){for(var n in t)e[n]=t[n]}(this,function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=74)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},11:function(e,t){!function(){e.exports=this.wp.date}()},13:function(e,t){!function(){e.exports=this.React}()},19:function(e,t,n){"use strict";var r=n(0),o=(n(32),["primary","light","warning","alert"]);t.a=function(e){var t=e.message,n=e.type,c=e.isCompact,a=["chip","chip-".concat(o.find(function(e){return e===n})||"primary"),c?"is-compact":""];return Object(r.createElement)("span",{className:a.join(" ").trim()},t)}},32:function(e,t,n){},34:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.size,n=void 0===t?24:t,o=e.onClick,c=(e.icon,e.className),i=function(e,t){var n={};for(var r in e)0<=t.indexOf(r)||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["size","onClick","icon","className"]),s=["gridicon","gridicons-checkmark-circle",c,!1,!1,!1].filter(Boolean).join(" ");return a.default.createElement("svg",r({className:s,height:n,width:n,onClick:o},i,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M11 17.768l-4.884-4.884 1.768-1.768L11 14.232l8.658-8.658C17.823 3.39 15.075 2 12 2 6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10c0-1.528-.353-2.97-.966-4.266L11 17.768z"})))};var o,c=n(13),a=(o=c)&&o.__esModule?o:{default:o};e.exports=t.default},35:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n=e.size,o=void 0===n?24:n,c=e.onClick,i=(e.icon,e.className),s=function(e,t){var n={};for(var r in e)0<=t.indexOf(r)||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["size","onClick","icon","className"]),u=["gridicon","gridicons-notice",i,(t=o,!(0!=t%18)&&"needs-offset"),!1,!1].filter(Boolean).join(" ");return a.default.createElement("svg",r({className:u,height:o,width:o,onClick:c},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 15h-2v-2h2v2zm0-4h-2l-.5-6h3l-.5 6z"})))};var o,c=n(13),a=(o=c)&&o.__esModule?o:{default:o};e.exports=t.default},42:function(e,t){!function(){e.exports=this.ReactDOM}()},6:function(e,t){!function(){e.exports=this.moment}()},68:function(e,t,n){},7:function(e,t){!function(){e.exports=this.wc.navigation}()},73:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,c=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,c=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw c}}return n}}(e,t)||o(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||o(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var s,u,l,m,f=n(13),p=/<(\/)?(\w+)\s*(\/)?>/g;function d(e,t,n,r,o){return{element:e,tokenStart:t,tokenLength:n,prevOffset:r,leadingTextStart:o,children:[]}}var b=function(e){var t="object"===a(e),n=t&&Object.values(e);return t&&n.length&&n.every(function(e){return Object(f.isValidElement)(e)})};function y(e){var t=function(){var e=p.exec(s);if(null===e)return["no-more-tokens"];var t=e.index,n=c(e,4),r=n[0],o=n[1],a=n[2],i=n[3],u=r.length;if(i)return["self-closed",a,t,u];if(o)return["closer",a,t,u];return["opener",a,t,u]}(),n=c(t,4),r=n[0],o=n[1],a=n[2],b=n[3],y=m.length,_=a>u?u:null;if(!e[o])return h(),!1;switch(r){case"no-more-tokens":if(0!==y){var j=m.pop(),O=j.leadingTextStart,w=j.tokenStart;l.push(s.substr(O,w))}return h(),!1;case"self-closed":return 0===y?(null!==_&&l.push(s.substr(_,a-_)),l.push(e[o]),u=a+b,!0):(v(new d(e[o],a,b)),u=a+b,!0);case"opener":return m.push(new d(e[o],a,b,a+b,_)),u=a+b,!0;case"closer":if(1===y)return function(e){var t=m.pop(),n=t.element,r=t.leadingTextStart,o=t.prevOffset,c=t.tokenStart,a=t.children,u=e?s.substr(o,e-o):s.substr(o);u&&a.push(u);null!==r&&l.push(s.substr(r,c-r));l.push(f.cloneElement.apply(void 0,[n,null].concat(i(a))))}(a),u=a+b,!0;var g=m.pop(),E=s.substr(g.prevOffset,a-g.prevOffset);g.children.push(E),g.prevOffset=a+b;var S=new d(g.element,g.tokenStart,g.tokenLength,a+b);return S.children=g.children,v(S),u=a+b,!0;default:return h(),!1}}function h(){var e=s.length-u;0!==e&&l.push(s.substr(u,e))}function v(e){var t=e.element,n=e.tokenStart,r=e.tokenLength,o=e.prevOffset,c=e.children,a=m[m.length-1],u=s.substr(a.prevOffset,n-a.prevOffset);u&&a.children.push(u),a.children.push(f.cloneElement.apply(void 0,[t,null].concat(i(c)))),a.prevOffset=o||n+r}t.a=function(e,t){if(s=e,u=0,l=[],m=[],p.lastIndex=0,!b(t))throw new TypeError("The conversionMap provided is not valid. It must be an object with values that are WPElements");do{}while(y(t));return f.createElement.apply(void 0,[f.Fragment,null].concat(i(l)))}},74:function(e,t,n){"use strict";n.r(t);var r,o,c,a,i=n(0),s=(n(13),n(42)),u=n.n(s),l=n(1),m=n(7),f=n(11),p=n(6),d=n.n(p),b=n(73),y=n(34),h=n.n(y),v=n(35),_=n.n(v),j=n(19),O=(n(68),function(e){var t,n,r,o=e.accountStatus;return o.error?Object(i.createElement)("div",null,Object(l.__)("Error determining the connection status.")):Object(i.createElement)("div",null,Object(i.createElement)("div",null,(t=o.status,n=Object(l.__)("Unknown","woocommerce-payments"),r="light","complete"===t?(n=Object(l.__)("Complete","woocommerce-payments"),r="primary"):"restricted_soon"===t?(n=Object(l.__)("Restricted soon","woocommerce-payments"),r="warning"):"restricted"===t?(n=Object(l.__)("Restricted","woocommerce-payments"),r="alert"):t.startsWith("rejected")&&(n=Object(l.__)("Rejected","woocommerce-payments"),r="light"),Object(i.createElement)(j.a,{message:n,type:r,isCompact:!0})),function(e){var t,n,r;return e?(n=Object(l.__)("Enabled","woocommerce-payments"),r=Object(i.createElement)(h.a,{size:18}),t="account-status__info__green"):(n=Object(l.__)("Disabled","woocommerce-payments"),r=Object(i.createElement)(_.a,{size:18}),t="account-status__info__red"),Object(i.createElement)("span",{className:"account-status__info"},Object(l.__)("Payments:","woocommerce-payments"),Object(i.createElement)("span",{className:t},r,n))}(o.paymentsEnabled),function(e){var t,n="account-status__info__green",r=Object(i.createElement)(h.a,{size:18});return"disabled"===e?(t=Object(l.__)("Disabled","woocommerce-payments"),n="account-status__info__red",r=Object(i.createElement)(_.a,{size:18})):t="daily"===e?Object(l.__)("Daily","woocommerce-payments"):"weekly"===e?Object(l.__)("Weekly","woocommerce-payments"):"monthly"===e?Object(l.__)("Monthly","woocommerce-payments"):"manual"===e?Object(l.__)("Manual","woocommerce-payments"):Object(l.__)("Unknown","woocommerce-payments"),Object(i.createElement)("span",{className:"account-status__info"},Object(l.__)("Deposits:","woocommerce-payments"),Object(i.createElement)("span",{className:n},r,t))}(o.depositsStatus)),function(e){var t=e.status,n=e.currentDeadline,r=e.pastDue,o=e.accountLink;if("complete"===t)return"";var c="";return"restricted_soon"===t?c=Object(b.a)(Object(l.sprintf)(Object(l.__)("To avoid disrupting deposits, <a>update this account</a> by %s with more information about the business.","woocommerce-payments"),Object(f.dateI18n)("ga M j, Y",d()(1e3*n))),{a:Object(i.createElement)("a",{href:o})}):"restricted"===t&&r?c=Object(b.a)(Object(l.__)("Payments and deposits are disabled for this account until missing business information is updated. <a>Update now</a>","woocommerce-payments"),{a:Object(i.createElement)("a",{href:o})}):"restricted"===t?c=Object(l.__)("Payments and deposits are disabled for this account until business information is verified by the payment processor.","woocommerce-payments"):"rejected.fraud"===t?c=Object(l.__)("This account has been rejected because of suspected fraudulent activity.","woocommerce-payments"):"rejected.terms_of_service"===t?c=Object(l.__)("This account has been rejected due to a Terms of Service violation.","woocommerce-payments"):t.startsWith("rejected")&&(c=Object(l.__)("This account has been rejected.","woocommerce-payments")),c?Object(i.createElement)("div",{className:"account-status__desc"},c):null}(o))});if(u.a.render(Object(i.createElement)(O,wcpayAdminSettings),document.getElementById("wcpay-account-status-container")),r=Object(m.getQuery)(),o=r.page,c=r.tab,a=r.section,"wc-settings"===o&&"checkout"===c&&"woocommerce_payments"===a){var w=document.querySelector("form#mainform"),g=document.getElementById("woocommerce_woocommerce_payments_manual_capture");w&&g&&!g.checked&&w.addEventListener("submit",function(e){g.checked&&(confirm(Object(l.__)("When manual capture is enabled, charges must be captured within 7 days of authorization, otherwise the authorization and order will be canceled. Are you sure you want to enable it?","woocommerce-payments"))||e.preventDefault())})}}}));
dist/subscription-edit-page.asset.php ADDED
@@ -0,0 +1 @@
 
1
+ <?php return array('dependencies' => array('wp-polyfill'), 'version' => '663fab92193377f6a096d9caec508d2b');
dist/subscription-edit-page.js ADDED
@@ -0,0 +1 @@
 
1
+ !function(e,t){for(var n in t)e[n]=t[n]}(this,function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=69)}({69:function(e,t){var n=function(e,t,n){var r=document.createElement("option");return r.value=t,r.text=n,e.appendChild(r),r};!function(e){var t=e.gateway,r=e.table,o=e.metaKey,u=e.tokens,a=e.defaultOptionText,i="_payment_method_meta[".concat(t,"][").concat(r,"][").concat(o,"]"),c=document.getElementById(i),l=u.some(function(e){return e.tokenId.toString()===c.value});if(c&&"SELECT"!==c.tagName){var f=document.createElement("select");if(f.id=i,f.name=i,!l){var d=n(f,"",a);d.disabled=!0,d.selected=!0}u.forEach(function(e){n(f,e.tokenId,e.displayName)}),l&&(f.value=c.value),c.parentElement.insertBefore(f,c),c.remove()}}(wcpaySubscriptionEdit)}}));
includes/admin/class-wc-payments-admin.php CHANGED
@@ -161,7 +161,7 @@ class WC_Payments_Admin {
161
  public function register_payments_scripts() {
162
  $script_src_url = plugins_url( 'dist/index.js', WCPAY_PLUGIN_FILE );
163
  $script_asset_path = WCPAY_ABSPATH . 'dist/index.asset.php';
164
- $script_asset = file_exists( $script_asset_path ) ? require_once $script_asset_path : null;
165
  wp_register_script(
166
  'WCPAY_DASH_APP',
167
  $script_src_url,
@@ -181,11 +181,12 @@ class WC_Payments_Admin {
181
  'WCPAY_DASH_APP',
182
  'wcpaySettings',
183
  [
184
- 'connectUrl' => WC_Payments_Account::get_connect_url(),
185
- 'testMode' => $this->wcpay_gateway->is_in_test_mode(),
186
- 'onBoardingDisabled' => $on_boarding_disabled,
187
- 'errorMessage' => $error_message,
188
- 'featureFlags' => $this->get_frontend_feature_flags(),
 
189
  ]
190
  );
191
 
@@ -206,7 +207,7 @@ class WC_Payments_Admin {
206
 
207
  $settings_script_src_url = plugins_url( 'dist/settings.js', WCPAY_PLUGIN_FILE );
208
  $settings_script_asset_path = WCPAY_ABSPATH . 'dist/settings.asset.php';
209
- $settings_script_asset = file_exists( $settings_script_asset_path ) ? require_once $settings_script_asset_path : null;
210
  $settings_script_dependencies = array_merge(
211
  $settings_script_asset['dependencies'],
212
  [ 'stripe' ]
161
  public function register_payments_scripts() {
162
  $script_src_url = plugins_url( 'dist/index.js', WCPAY_PLUGIN_FILE );
163
  $script_asset_path = WCPAY_ABSPATH . 'dist/index.asset.php';
164
+ $script_asset = file_exists( $script_asset_path ) ? require_once $script_asset_path : [ 'dependencies' => [] ];
165
  wp_register_script(
166
  'WCPAY_DASH_APP',
167
  $script_src_url,
181
  'WCPAY_DASH_APP',
182
  'wcpaySettings',
183
  [
184
+ 'connectUrl' => WC_Payments_Account::get_connect_url(),
185
+ 'testMode' => $this->wcpay_gateway->is_in_test_mode(),
186
+ 'onBoardingDisabled' => $on_boarding_disabled,
187
+ 'errorMessage' => $error_message,
188
+ 'featureFlags' => $this->get_frontend_feature_flags(),
189
+ 'isSubscriptionsActive' => class_exists( 'WC_Payment_Gateway_WCPay_Subscriptions_Compat' ),
190
  ]
191
  );
192
 
207
 
208
  $settings_script_src_url = plugins_url( 'dist/settings.js', WCPAY_PLUGIN_FILE );
209
  $settings_script_asset_path = WCPAY_ABSPATH . 'dist/settings.asset.php';
210
+ $settings_script_asset = file_exists( $settings_script_asset_path ) ? require_once $settings_script_asset_path : [ 'dependencies' => [] ];
211
  $settings_script_dependencies = array_merge(
212
  $settings_script_asset['dependencies'],
213
  [ 'stripe' ]
includes/admin/class-wc-rest-payments-webhook-controller.php CHANGED
@@ -87,7 +87,10 @@ class WC_REST_Payments_Webhook_Controller extends WC_Payments_REST_Controller {
87
  $event_type = $this->read_rest_property( $body, 'type' );
88
 
89
  Logger::debug( 'Webhook recieved: ' . $event_type );
90
- Logger::debug( 'Webhook body: ' . var_export( $body, true ) ); // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_var_export
 
 
 
91
 
92
  switch ( $event_type ) {
93
  case 'charge.refund.updated':
87
  $event_type = $this->read_rest_property( $body, 'type' );
88
 
89
  Logger::debug( 'Webhook recieved: ' . $event_type );
90
+ Logger::debug(
91
+ 'Webhook body: '
92
+ . var_export( WC_Payments_Utils::redact_array( $body, WC_Payments_API_Client::API_KEYS_TO_REDACT ), true ) // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_var_export
93
+ );
94
 
95
  switch ( $event_type ) {
96
  case 'charge.refund.updated':
includes/{data-types/class-payment-information.php → class-payment-information.php} RENAMED
@@ -5,12 +5,15 @@
5
  * @package WooCommerce\Payments
6
  */
7
 
8
- namespace WCPay\DataTypes;
9
 
10
  if ( ! defined( 'ABSPATH' ) ) {
11
  exit; // Exit if accessed directly.
12
  }
13
 
 
 
 
14
  /**
15
  * Mostly a wrapper containing information on a single payment.
16
  */
@@ -22,6 +25,13 @@ class Payment_Information {
22
  */
23
  private $payment_method;
24
 
 
 
 
 
 
 
 
25
  /**
26
  * The payment token used for this payment.
27
  *
@@ -32,31 +42,44 @@ class Payment_Information {
32
  /**
33
  * Indicates whether the payment is merchant-initiated (true) or customer-initiated (false).
34
  *
35
- * @var bool
36
  */
37
- private $off_session;
 
 
 
 
 
 
 
38
 
39
  /**
40
  * Payment information constructor.
41
  *
42
- * @param string $payment_method The ID of the payment method used for this payment.
43
- * @param \WC_Payment_Token $token The payment token used for this payment.
44
- * @param bool $off_session Indicates whether the payment is merchant-initiated (true) or customer-initiated (false).
 
 
45
  *
46
  * @throws \Exception - If no payment method is found in the provided request.
47
  */
48
  public function __construct(
49
  string $payment_method,
 
50
  \WC_Payment_Token $token = null,
51
- bool $off_session = false
 
52
  ) {
53
  if ( empty( $payment_method ) && empty( $token ) ) {
54
  throw new \Exception( __( 'Invalid payment method. Please input a new card number.', 'woocommerce-payments' ) );
55
  }
56
 
57
- $this->payment_method = $payment_method;
58
- $this->token = $token;
59
- $this->off_session = $off_session;
 
 
60
  }
61
 
62
  /**
@@ -65,7 +88,7 @@ class Payment_Information {
65
  * @return bool True if payment was initiated by the merchant, false otherwise.
66
  */
67
  public function is_merchant_initiated(): bool {
68
- return $this->off_session;
69
  }
70
 
71
  /**
@@ -82,6 +105,15 @@ class Payment_Information {
82
  return $this->payment_method;
83
  }
84
 
 
 
 
 
 
 
 
 
 
85
  /**
86
  * Returns the payment token.
87
  *
@@ -113,23 +145,35 @@ class Payment_Information {
113
  return ! empty( $this->token );
114
  }
115
 
 
 
 
 
 
 
 
 
 
116
  /**
117
  * Payment information constructor.
118
  *
119
- * @param array $request Associative array containing payment request information.
120
- * @param bool $off_session Indicates whether the payment is merchant-initiated (true) or customer-initiated (false).
 
 
121
  *
122
- * @throws Exception - If no payment method is found in the provided request.
123
  */
124
  public static function from_payment_request(
125
  array $request,
126
- bool $off_session = false
 
 
127
  ): Payment_Information {
128
  $payment_method = self::get_payment_method_from_request( $request );
129
  $token = self::get_token_from_request( $request );
130
- $off_session = $off_session;
131
 
132
- return new Payment_Information( $payment_method, $token, $off_session );
133
  }
134
 
135
  /**
5
  * @package WooCommerce\Payments
6
  */
7
 
8
+ namespace WCPay;
9
 
10
  if ( ! defined( 'ABSPATH' ) ) {
11
  exit; // Exit if accessed directly.
12
  }
13
 
14
+ use WCPay\Constants\Payment_Initiated_By;
15
+ use WCPay\Constants\Payment_Capture_Type;
16
+
17
  /**
18
  * Mostly a wrapper containing information on a single payment.
19
  */
25
  */
26
  private $payment_method;
27
 
28
+ /**
29
+ * The order object.
30
+ *
31
+ * @var \WC_Order/NULL
32
+ */
33
+ private $order;
34
+
35
  /**
36
  * The payment token used for this payment.
37
  *
42
  /**
43
  * Indicates whether the payment is merchant-initiated (true) or customer-initiated (false).
44
  *
45
+ * @var Payment_Initiated_By
46
  */
47
+ private $payment_initiated_by;
48
+
49
+ /**
50
+ * Indicates whether the payment will be only authorized (true) or captured immediately (false).
51
+ *
52
+ * @var Capture_Type
53
+ */
54
+ private $manual_capture;
55
 
56
  /**
57
  * Payment information constructor.
58
  *
59
+ * @param string $payment_method The ID of the payment method used for this payment.
60
+ * @param \WC_Order $order The order object.
61
+ * @param \WC_Payment_Token $token The payment token used for this payment.
62
+ * @param Payment_Initiated_By $payment_initiated_by Indicates whether the payment is merchant-initiated or customer-initiated.
63
+ * @param Payment_Capture_Type $manual_capture Indicates whether the payment will be only authorized or captured immediately.
64
  *
65
  * @throws \Exception - If no payment method is found in the provided request.
66
  */
67
  public function __construct(
68
  string $payment_method,
69
+ \WC_Order $order = null,
70
  \WC_Payment_Token $token = null,
71
+ Payment_Initiated_By $payment_initiated_by = null,
72
+ Payment_Capture_Type $manual_capture = null
73
  ) {
74
  if ( empty( $payment_method ) && empty( $token ) ) {
75
  throw new \Exception( __( 'Invalid payment method. Please input a new card number.', 'woocommerce-payments' ) );
76
  }
77
 
78
+ $this->payment_method = $payment_method;
79
+ $this->order = $order;
80
+ $this->token = $token;
81
+ $this->payment_initiated_by = $payment_initiated_by ?? Payment_Initiated_By::CUSTOMER();
82
+ $this->manual_capture = $manual_capture ?? Payment_Capture_Type::AUTOMATIC();
83
  }
84
 
85
  /**
88
  * @return bool True if payment was initiated by the merchant, false otherwise.
89
  */
90
  public function is_merchant_initiated(): bool {
91
+ return $this->payment_initiated_by->equals( Payment_Initiated_By::MERCHANT() );
92
  }
93
 
94
  /**
105
  return $this->payment_method;
106
  }
107
 
108
+ /**
109
+ * Returns the order object.
110
+ *
111
+ * @return \WC_Order The order object.
112
+ */
113
+ public function get_order(): \WC_Order {
114
+ return $this->order;
115
+ }
116
+
117
  /**
118
  * Returns the payment token.
119
  *
145
  return ! empty( $this->token );
146
  }
147
 
148
+ /**
149
+ * Returns true if the payment should be only authorized, false if it should be captured immediately.
150
+ *
151
+ * @return bool True if the payment should be only authorized, false if it should be captured immediately.
152
+ */
153
+ public function is_using_manual_capture(): bool {
154
+ return $this->manual_capture->equals( Payment_Capture_Type::MANUAL() );
155
+ }
156
+
157
  /**
158
  * Payment information constructor.
159
  *
160
+ * @param array $request Associative array containing payment request information.
161
+ * @param \WC_Order $order The order object.
162
+ * @param Payment_Initiated_By $payment_initiated_by Indicates whether the payment is merchant-initiated or customer-initiated.
163
+ * @param Payment_Capture_Type $manual_capture Indicates whether the payment will be only authorized or captured immediately.
164
  *
165
+ * @throws \Exception - If no payment method is found in the provided request.
166
  */
167
  public static function from_payment_request(
168
  array $request,
169
+ \WC_Order $order = null,
170
+ Payment_Initiated_By $payment_initiated_by = null,
171
+ Payment_Capture_Type $manual_capture = null
172
  ): Payment_Information {
173
  $payment_method = self::get_payment_method_from_request( $request );
174
  $token = self::get_token_from_request( $request );
 
175
 
176
+ return new Payment_Information( $payment_method, $order, $token, $payment_initiated_by, $manual_capture );
177
  }
178
 
179
  /**
includes/class-wc-payment-gateway-wcpay.php CHANGED
@@ -10,7 +10,9 @@ if ( ! defined( 'ABSPATH' ) ) {
10
  }
11
 
12
  use WCPay\Logger;
13
- use WCPay\DataTypes\Payment_Information;
 
 
14
  use WCPay\Exceptions\WC_Payments_Intent_Authentication_Exception;
15
  use WCPay\Tracker;
16
 
@@ -142,13 +144,6 @@ class WC_Payment_Gateway_WCPay extends WC_Payment_Gateway_CC {
142
  ],
143
  ];
144
 
145
- if ( $this->is_in_dev_mode() ) {
146
- $this->form_fields['test_mode']['custom_attributes']['disabled'] = 'disabled';
147
- $this->form_fields['test_mode']['label'] = __( 'Dev mode is active so all transactions will be in test mode. This setting is only available to live accounts.', 'woocommerce-payments' );
148
- $this->form_fields['enable_logging']['custom_attributes']['disabled'] = 'disabled';
149
- $this->form_fields['enable_logging']['label'] = __( 'Dev mode is active so logging is on by default.', 'woocommerce-payments' );
150
- }
151
-
152
  // Load the settings.
153
  $this->init_settings();
154
 
@@ -321,22 +316,29 @@ class WC_Payment_Gateway_WCPay extends WC_Payment_Gateway_CC {
321
  true
322
  );
323
 
 
 
 
 
 
 
 
324
  wp_register_script(
325
- 'wcpay-checkout',
326
- plugins_url( 'assets/js/wcpay-checkout.js', WCPAY_PLUGIN_FILE ),
327
- [ 'stripe', 'wc-checkout' ],
328
- WC_Payments::get_file_version( 'assets/js/wcpay-checkout.js' ),
329
  true
330
  );
331
 
332
- wp_localize_script( 'wcpay-checkout', 'wcpay_config', $js_config );
333
- wp_enqueue_script( 'wcpay-checkout' );
334
 
335
  wp_enqueue_style(
336
- 'wcpay-checkout',
337
- plugins_url( 'assets/css/wcpay-checkout.css', WCPAY_PLUGIN_FILE ),
338
  [],
339
- WC_Payments::get_file_version( 'assets/css/wcpay-checkout.css' )
340
  );
341
 
342
  // Output the form HTML.
@@ -406,10 +408,9 @@ class WC_Payment_Gateway_WCPay extends WC_Payment_Gateway_CC {
406
 
407
  try {
408
  // phpcs:ignore WordPress.Security.NonceVerification.Missing
409
- $payment_information = Payment_Information::from_payment_request( $_POST );
410
- $manual_capture = 'yes' === $this->get_option( 'manual_capture' );
411
 
412
- return $this->process_payment_for_order( $order, WC()->cart, $payment_information, $manual_capture, $force_save_payment_method );
413
  } catch ( Exception $e ) {
414
  // TODO: Create plugin specific exceptions so that we can be smarter about what we create notices for.
415
  wc_add_notice( $e->getMessage(), 'error' );
@@ -426,18 +427,17 @@ class WC_Payment_Gateway_WCPay extends WC_Payment_Gateway_CC {
426
  /**
427
  * Process the payment for a given order.
428
  *
429
- * @param WC_Order $order Order.
430
- * @param WC_Cart $cart Cart.
431
- * @param WC_Payment_Information $payment_information Payment info.
432
- * @param bool $manual_capture Indicates whether this payment is merchant-initiated (true) or customer-initated (false).
433
- * @param bool $force_save_payment_method Whether this is a one-off payment (false) or it's the first installment of a recurring payment (true).
434
  *
435
  * @return array|null An array with result of payment and redirect URL, or nothing.
436
  * @throws WC_Payments_API_Exception Error processing the payment.
437
  */
438
- public function process_payment_for_order( $order, $cart, $payment_information, $manual_capture, $force_save_payment_method = false ) {
439
  // phpcs:ignore WordPress.Security.NonceVerification.Missing
440
  $save_payment_method = ! $payment_information->is_using_saved_payment_method() && ( ! empty( $_POST[ 'wc-' . self::GATEWAY_ID . '-new-payment-method' ] ) || $force_save_payment_method );
 
441
 
442
  $order_id = $order->get_id();
443
  $amount = $order->get_total();
@@ -493,7 +493,7 @@ class WC_Payment_Gateway_WCPay extends WC_Payment_Gateway_CC {
493
  'usd',
494
  $payment_information->get_payment_method(),
495
  $customer_id,
496
- $manual_capture,
497
  $save_payment_method,
498
  $metadata,
499
  $this->get_level3_data_from_order( $order ),
@@ -643,18 +643,31 @@ class WC_Payment_Gateway_WCPay extends WC_Payment_Gateway_CC {
643
  * @param WC_Payment_Token $token The token to save.
644
  */
645
  public function add_token_to_order( $order, $token ) {
646
- $order_tokens = $order->get_payment_tokens();
647
 
648
  // This could lead to tokens being saved twice in an order's payment tokens, but it is needed so that shoppers
649
  // may re-use a previous card for the same subscription, as we consider the last token to be the active one.
650
  // We can't remove the previous entry for the token because WC_Order does not support removal of tokens [1] and
651
  // we can't delete the token as it might be used somewhere else.
652
  // [1] https://github.com/woocommerce/woocommerce/issues/11857.
653
- if ( $token->get_id() !== end( $order_tokens ) ) {
654
  $order->add_payment_token( $token );
655
  }
656
  }
657
 
 
 
 
 
 
 
 
 
 
 
 
 
 
658
  /**
659
  * Can the order be refunded?
660
  *
@@ -738,6 +751,19 @@ class WC_Payment_Gateway_WCPay extends WC_Payment_Gateway_CC {
738
  if ( 'enabled' === $key && ! $this->is_connected() ) {
739
  return '';
740
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
741
  return parent::generate_checkbox_html( $key, $data );
742
  }
743
 
@@ -799,6 +825,15 @@ class WC_Payment_Gateway_WCPay extends WC_Payment_Gateway_CC {
799
  }
800
  }
801
 
 
 
 
 
 
 
 
 
 
802
  /**
803
  * Sanitizes plugin settings before saving them in site's DB.
804
  *
@@ -869,6 +904,9 @@ class WC_Payment_Gateway_WCPay extends WC_Payment_Gateway_CC {
869
  * @throws Exception When statement descriptor is invalid.
870
  */
871
  public function validate_account_statement_descriptor_field( $key, $value ) {
 
 
 
872
  // Validation can be done with a single regex but splitting into multiple for better readability.
873
  $valid_length = '/^.{5,22}$/';
874
  $has_one_letter = '/^.*[a-zA-Z]+/';
@@ -882,8 +920,7 @@ class WC_Payment_Gateway_WCPay extends WC_Payment_Gateway_CC {
882
  throw new Exception( __( 'Customer bank statement is invalid. Statement should be between 5 and 22 characters long, contain at least single Latin character and does not contain special characters: \' " * &lt; &gt;', 'woocommerce-payments' ) );
883
  }
884
 
885
- // Perform text validation after own checks to prevent special characters like < > escaped before own validation.
886
- return $this->validate_text_field( $key, $value );
887
  }
888
 
889
  /**
@@ -1398,4 +1435,33 @@ class WC_Payment_Gateway_WCPay extends WC_Payment_Gateway_CC {
1398
  admin_url( 'admin.php' )
1399
  );
1400
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1401
  }
10
  }
11
 
12
  use WCPay\Logger;
13
+ use WCPay\Payment_Information;
14
+ use WCPay\Constants\Payment_Initiated_By;
15
+ use WCPay\Constants\Payment_Capture_Type;
16
  use WCPay\Exceptions\WC_Payments_Intent_Authentication_Exception;
17
  use WCPay\Tracker;
18
 
144
  ],
145
  ];
146
 
 
 
 
 
 
 
 
147
  // Load the settings.
148
  $this->init_settings();
149
 
316
  true
317
  );
318
 
319
+ $checkout_script_src_url = plugins_url( 'dist/checkout.js', WCPAY_PLUGIN_FILE );
320
+ $checkout_script_asset_path = WCPAY_ABSPATH . 'dist/checkout.asset.php';
321
+ $checkout_script_asset = file_exists( $checkout_script_asset_path ) ? require_once $checkout_script_asset_path : [ 'dependencies' => [] ];
322
+ $checkout_script_dependencies = array_merge(
323
+ $checkout_script_asset['dependencies'],
324
+ [ 'stripe', 'wc-checkout' ]
325
+ );
326
  wp_register_script(
327
+ 'WCPAY_CHECKOUT',
328
+ $checkout_script_src_url,
329
+ $checkout_script_dependencies,
330
+ WC_Payments::get_file_version( 'dist/checkout.js' ),
331
  true
332
  );
333
 
334
+ wp_localize_script( 'WCPAY_CHECKOUT', 'wcpay_config', $js_config );
335
+ wp_enqueue_script( 'WCPAY_CHECKOUT' );
336
 
337
  wp_enqueue_style(
338
+ 'WCPAY_CHECKOUT',
339
+ plugins_url( 'dist/checkout.css', WCPAY_PLUGIN_FILE ),
340
  [],
341
+ WC_Payments::get_file_version( 'dist/checkout.css' )
342
  );
343
 
344
  // Output the form HTML.
408
 
409
  try {
410
  // phpcs:ignore WordPress.Security.NonceVerification.Missing
411
+ $payment_information = Payment_Information::from_payment_request( $_POST, $order, Payment_Initiated_By::CUSTOMER(), $this->get_capture_type() );
 
412
 
413
+ return $this->process_payment_for_order( WC()->cart, $payment_information, $force_save_payment_method );
414
  } catch ( Exception $e ) {
415
  // TODO: Create plugin specific exceptions so that we can be smarter about what we create notices for.
416
  wc_add_notice( $e->getMessage(), 'error' );
427
  /**
428
  * Process the payment for a given order.
429
  *
430
+ * @param WC_Cart $cart Cart.
431
+ * @param WCPay\Payment_Information $payment_information Payment info.
432
+ * @param bool $force_save_payment_method Whether this is a one-off payment (false) or it's the first installment of a recurring payment (true).
 
 
433
  *
434
  * @return array|null An array with result of payment and redirect URL, or nothing.
435
  * @throws WC_Payments_API_Exception Error processing the payment.
436
  */
437
+ public function process_payment_for_order( $cart, $payment_information, $force_save_payment_method = false ) {
438
  // phpcs:ignore WordPress.Security.NonceVerification.Missing
439
  $save_payment_method = ! $payment_information->is_using_saved_payment_method() && ( ! empty( $_POST[ 'wc-' . self::GATEWAY_ID . '-new-payment-method' ] ) || $force_save_payment_method );
440
+ $order = $payment_information->get_order();
441
 
442
  $order_id = $order->get_id();
443
  $amount = $order->get_total();
493
  'usd',
494
  $payment_information->get_payment_method(),
495
  $customer_id,
496
+ $payment_information->is_using_manual_capture(),
497
  $save_payment_method,
498
  $metadata,
499
  $this->get_level3_data_from_order( $order ),
643
  * @param WC_Payment_Token $token The token to save.
644
  */
645
  public function add_token_to_order( $order, $token ) {
646
+ $payment_token = $this->get_payment_token( $order );
647
 
648
  // This could lead to tokens being saved twice in an order's payment tokens, but it is needed so that shoppers
649
  // may re-use a previous card for the same subscription, as we consider the last token to be the active one.
650
  // We can't remove the previous entry for the token because WC_Order does not support removal of tokens [1] and
651
  // we can't delete the token as it might be used somewhere else.
652
  // [1] https://github.com/woocommerce/woocommerce/issues/11857.
653
+ if ( is_null( $payment_token ) || $token->get_id() !== $payment_token->get_id() ) {
654
  $order->add_payment_token( $token );
655
  }
656
  }
657
 
658
+ /**
659
+ * Retrieve payment token from a subscription or order.
660
+ *
661
+ * @param WC_Order $order Order or subscription object.
662
+ *
663
+ * @return null|WC_Payment_Token Last token associated with order or subscription.
664
+ */
665
+ protected function get_payment_token( $order ) {
666
+ $order_tokens = $order->get_payment_tokens();
667
+ $token_id = end( $order_tokens );
668
+ return ! $token_id ? null : WC_Payment_Tokens::get( $token_id );
669
+ }
670
+
671
  /**
672
  * Can the order be refunded?
673
  *
751
  if ( 'enabled' === $key && ! $this->is_connected() ) {
752
  return '';
753
  }
754
+
755
+ $in_dev_mode = $this->is_in_dev_mode();
756
+
757
+ if ( 'test_mode' === $key && $in_dev_mode ) {
758
+ $data['custom_attributes']['disabled'] = 'disabled';
759
+ $data['label'] = __( 'Dev mode is active so all transactions will be in test mode. This setting is only available to live accounts.', 'woocommerce-payments' );
760
+ }
761
+
762
+ if ( 'enable_logging' === $key && $in_dev_mode ) {
763
+ $data['custom_attributes']['disabled'] = 'disabled';
764
+ $data['label'] = __( 'Dev mode is active so logging is on by default.', 'woocommerce-payments' );
765
+ }
766
+
767
  return parent::generate_checkbox_html( $key, $data );
768
  }
769
 
825
  }
826
  }
827
 
828
+ /**
829
+ * Get payment capture type from WCPay settings.
830
+ *
831
+ * @return Payment_Capture_Type MANUAL or AUTOMATIC depending on the settings.
832
+ */
833
+ private function get_capture_type() {
834
+ return 'yes' === $this->get_option( 'manual_capture' ) ? Payment_Capture_Type::MANUAL() : Payment_Capture_Type::AUTOMATIC();
835
+ }
836
+
837
  /**
838
  * Sanitizes plugin settings before saving them in site's DB.
839
  *
904
  * @throws Exception When statement descriptor is invalid.
905
  */
906
  public function validate_account_statement_descriptor_field( $key, $value ) {
907
+ // Since the value is escaped, and we are saving in a place that does not require escaping, apply stripslashes.
908
+ $value = stripslashes( $value );
909
+
910
  // Validation can be done with a single regex but splitting into multiple for better readability.
911
  $valid_length = '/^.{5,22}$/';
912
  $has_one_letter = '/^.*[a-zA-Z]+/';
920
  throw new Exception( __( 'Customer bank statement is invalid. Statement should be between 5 and 22 characters long, contain at least single Latin character and does not contain special characters: \' " * &lt; &gt;', 'woocommerce-payments' ) );
921
  }
922
 
923
+ return $value;
 
924
  }
925
 
926
  /**
1435
  admin_url( 'admin.php' )
1436
  );
1437
  }
1438
+
1439
+ /**
1440
+ * Returns a formatted token list for a user.
1441
+ *
1442
+ * @param int $user_id The user ID.
1443
+ */
1444
+ protected function get_user_formatted_tokens_array( $user_id ) {
1445
+ $tokens = WC_Payment_Tokens::get_tokens(
1446
+ [
1447
+ 'user_id' => $user_id,
1448
+ 'gateway_id' => self::GATEWAY_ID,
1449
+ ]
1450
+ );
1451
+ return array_map(
1452
+ function ( $token ) {
1453
+ return [
1454
+ 'tokenId' => $token->get_id(),
1455
+ 'paymentMethodId' => $token->get_token(),
1456
+ 'brand' => $token->get_card_type(),
1457
+ 'last4' => $token->get_last4(),
1458
+ 'expiryMonth' => $token->get_expiry_month(),
1459
+ 'expiryYear' => $token->get_expiry_year(),
1460
+ 'isDefault' => $token->get_is_default(),
1461
+ 'displayName' => $token->get_display_name(),
1462
+ ];
1463
+ },
1464
+ array_values( $tokens )
1465
+ );
1466
+ }
1467
  }
includes/class-wc-payments-customer-service.php CHANGED
@@ -146,6 +146,8 @@ class WC_Payments_Customer_Service {
146
  *
147
  * @param string $customer_id The customer ID.
148
  * @param string $type Type of payment methods to fetch.
 
 
149
  */
150
  public function get_payment_methods_for_customer( $customer_id, $type = 'card' ) {
151
  if ( ! $customer_id ) {
@@ -158,11 +160,21 @@ class WC_Payments_Customer_Service {
158
  return $payment_methods;
159
  }
160
 
161
- $payment_methods = $this->payments_api_client->get_payment_methods( $customer_id, $type )['data'];
 
 
 
162
 
163
- set_transient( self::PAYMENT_METHODS_TRANSIENT . $customer_id, $payment_methods, DAY_IN_SECONDS );
 
 
 
 
 
164
 
165
- return $payment_methods;
 
 
166
  }
167
 
168
  /**
146
  *
147
  * @param string $customer_id The customer ID.
148
  * @param string $type Type of payment methods to fetch.
149
+ *
150
+ * @throws WC_Payments_API_Exception We only handle 'resource_missing' code types and rethrow anything else.
151
  */
152
  public function get_payment_methods_for_customer( $customer_id, $type = 'card' ) {
153
  if ( ! $customer_id ) {
160
  return $payment_methods;
161
  }
162
 
163
+ try {
164
+ $payment_methods = $this->payments_api_client->get_payment_methods( $customer_id, $type )['data'];
165
+ set_transient( self::PAYMENT_METHODS_TRANSIENT . $customer_id, $payment_methods, DAY_IN_SECONDS );
166
+ return $payment_methods;
167
 
168
+ } catch ( WC_Payments_API_Exception $e ) {
169
+ // If we failed to find the we can simply return empty payment methods as this customer will
170
+ // be recreated when the user succesfuly adds a payment method.
171
+ if ( $e->get_error_code() === 'resource_missing' ) {
172
+ return [];
173
+ }
174
 
175
+ // Rethrow for error codes we don't care about in this function.
176
+ throw $e;
177
+ }
178
  }
179
 
180
  /**
includes/class-wc-payments-utils.php CHANGED
@@ -13,6 +13,12 @@ if ( ! defined( 'ABSPATH' ) ) {
13
  * WC Payments Utils class
14
  */
15
  class WC_Payments_Utils {
 
 
 
 
 
 
16
  /**
17
  * Mirrors JS's createInterpolateElement functionality.
18
  * Returns a string where angle brackets expressions are replaced with unescaped html while the rest is escaped.
@@ -143,51 +149,62 @@ class WC_Payments_Utils {
143
  }
144
 
145
  /**
146
- * Returns a charge_id for an "Order #" search term.
 
147
  *
148
  * @param string $term Search term.
149
  *
150
- * @return string The charge_id for the order, or empty if no order is found.
151
  */
152
- public static function get_charge_id_from_search_term( $term ) {
153
- $order_term = 'Order #';
154
  if ( substr( $term, 0, strlen( $order_term ) ) === $order_term ) {
155
  $term_parts = explode( '#', $term, 2 );
156
  $order_id = isset( $term_parts[1] ) ? $term_parts[1] : '';
157
- }
158
- if ( ! isset( $order_id ) || empty( $order_id ) ) {
159
- return '';
 
160
  }
161
 
162
- $order = wc_get_order( $order_id );
163
-
164
- if ( ! $order ) {
165
- return '';
 
 
 
 
 
 
 
 
 
166
  }
167
 
168
- return $order->get_meta( '_charge_id' );
169
  }
170
 
171
  /**
172
- * Swaps "Order #" search terms with available charge_ids.
173
  *
174
- * @param string $search Search query.
175
  *
176
- * @return string Processed search string.
177
  */
178
  public static function map_search_orders_to_charge_ids( $search ) {
179
- // Map Order # terms to the actual charge id to be used in the server.
180
- $terms = array_map(
181
- function ( $term ) {
182
- $charge_id = self::get_charge_id_from_search_term( $term );
183
- if ( ! empty( $charge_id ) ) {
184
- return $charge_id;
185
- } else {
186
- return $term;
187
  }
188
- },
189
- $search
190
- );
 
191
  return $terms;
192
  }
193
 
@@ -220,4 +237,41 @@ class WC_Payments_Utils {
220
  $billing_details['address'] = array_filter( $billing_details['address'], $remove_empty_entries );
221
  return array_filter( $billing_details, $remove_empty_entries );
222
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
223
  }
13
  * WC Payments Utils class
14
  */
15
  class WC_Payments_Utils {
16
+
17
+ /**
18
+ * Max depth used when processing arrays, for example in redact_array.
19
+ */
20
+ const MAX_ARRAY_DEPTH = 10;
21
+
22
  /**
23
  * Mirrors JS's createInterpolateElement functionality.
24
  * Returns a string where angle brackets expressions are replaced with unescaped html while the rest is escaped.
149
  }
150
 
151
  /**
152
+ * Returns the charge_id for an "Order #" search term
153
+ * or all charge_ids for a "Subscription #" search term.
154
  *
155
  * @param string $term Search term.
156
  *
157
+ * @return array The charge_id(s) for the order or subscription.
158
  */
159
+ public static function get_charge_ids_from_search_term( $term ) {
160
+ $order_term = __( 'Order #', 'woocommerce-payments' );
161
  if ( substr( $term, 0, strlen( $order_term ) ) === $order_term ) {
162
  $term_parts = explode( '#', $term, 2 );
163
  $order_id = isset( $term_parts[1] ) ? $term_parts[1] : '';
164
+ $order = wc_get_order( $order_id );
165
+ if ( $order ) {
166
+ return [ $order->get_meta( '_charge_id' ) ];
167
+ }
168
  }
169
 
170
+ $subscription_term = __( 'Subscription #', 'woocommerce-payments' );
171
+ if ( function_exists( 'wcs_get_subscription' ) && substr( $term, 0, strlen( $subscription_term ) ) === $subscription_term ) {
172
+ $term_parts = explode( '#', $term, 2 );
173
+ $subscription_id = isset( $term_parts[1] ) ? $term_parts[1] : '';
174
+ $subscription = wcs_get_subscription( $subscription_id );
175
+ if ( $subscription ) {
176
+ return array_map(
177
+ function ( $order ) {
178
+ return $order->get_meta( '_charge_id' );
179
+ },
180
+ $subscription->get_related_orders( 'all' )
181
+ );
182
+ }
183
  }
184
 
185
+ return [];
186
  }
187
 
188
  /**
189
+ * Swaps "Order #" and "Subscription #" search terms with available charge_ids.
190
  *
191
+ * @param array $search Raw search query terms.
192
  *
193
+ * @return array Processed search strings.
194
  */
195
  public static function map_search_orders_to_charge_ids( $search ) {
196
+ // Map Order # and Subscription # terms to the actual charge IDs to be used in the server.
197
+ $terms = [];
198
+ foreach ( $search as $term ) {
199
+ $charge_ids = self::get_charge_ids_from_search_term( $term );
200
+ if ( ! empty( $charge_ids ) ) {
201
+ foreach ( $charge_ids as $charge_id ) {
202
+ $terms[] = $charge_id;
 
203
  }
204
+ } else {
205
+ $terms[] = $term;
206
+ }
207
+ }
208
  return $terms;
209
  }
210
 
237
  $billing_details['address'] = array_filter( $billing_details['address'], $remove_empty_entries );
238
  return array_filter( $billing_details, $remove_empty_entries );
239
  }
240
+
241
+ /**
242
+ * Redacts the provided array, removing the sensitive information, and limits its depth to LOG_MAX_RECURSION.
243
+ *
244
+ * @param array $array The array to redact.
245
+ * @param array $keys_to_redact The keys whose values need to be redacted.
246
+ * @param integer $level The current recursion level.
247
+ *
248
+ * @return array The redacted array.
249
+ */
250
+ public static function redact_array( $array, $keys_to_redact, $level = 0 ) {
251
+ if ( is_object( $array ) ) {
252
+ // TODO: if we ever want to log objects, they could implement a method returning an array or a string.
253
+ return get_class( $array ) . '()';
254
+ }
255
+
256
+ if ( ! is_array( $array ) ) {
257
+ return $array;
258
+ }
259
+
260
+ if ( $level >= self::MAX_ARRAY_DEPTH ) {
261
+ return '(recursion limit reached)';
262
+ }
263
+
264
+ $result = [];
265
+
266
+ foreach ( $array as $key => $value ) {
267
+ if ( in_array( $key, $keys_to_redact, true ) ) {
268
+ $result[ $key ] = '(redacted)';
269
+ continue;
270
+ }
271
+
272
+ $result[ $key ] = self::redact_array( $value, $keys_to_redact, $level + 1 );
273
+ }
274
+
275
+ return $result;
276
+ }
277
  }
includes/class-wc-payments.php CHANGED
@@ -95,14 +95,20 @@ class WC_Payments {
95
  include_once dirname( __FILE__ ) . '/class-wc-payment-gateway-wcpay.php';
96
  include_once dirname( __FILE__ ) . '/class-wc-payments-token-service.php';
97
  include_once dirname( __FILE__ ) . '/exceptions/class-wc-payments-intent-authentication-exception.php';
98
- include_once dirname( __FILE__ ) . '/data-types/class-payment-information.php';
 
 
 
 
 
99
 
100
  self::$account = new WC_Payments_Account( self::$api_client );
101
  self::$customer_service = new WC_Payments_Customer_Service( self::$api_client );
102
  self::$token_service = new WC_Payments_Token_Service( self::$api_client, self::$customer_service );
103
 
104
  $gateway_class = 'WC_Payment_Gateway_WCPay';
105
- if ( class_exists( 'WC_Subscriptions' ) && version_compare( WC_Subscriptions::$version, '3.0.0', '>=' ) ) {
 
106
  include_once dirname( __FILE__ ) . '/compat/subscriptions/class-wc-payment-gateway-wcpay-subscriptions-compat.php';
107
  $gateway_class = 'WC_Payment_Gateway_WCPay_Subscriptions_Compat';
108
  }
@@ -118,7 +124,7 @@ class WC_Payments {
118
  include_once WCPAY_ABSPATH . 'includes/admin/class-wc-payments-admin.php';
119
  new WC_Payments_Admin( self::$gateway, self::$account );
120
 
121
- include_once WCPAY_ABSPATH . 'includes/admin/tracks/class-tracker.php';
122
  include_once WCPAY_ABSPATH . 'includes/admin/tracks/tracks-loader.php';
123
  }
124
 
@@ -393,17 +399,36 @@ class WC_Payments {
393
  require_once dirname( __FILE__ ) . '/wc-payment-api/models/class-wc-payments-api-intention.php';
394
  require_once dirname( __FILE__ ) . '/wc-payment-api/class-wc-payments-api-client.php';
395
  require_once dirname( __FILE__ ) . '/wc-payment-api/class-wc-payments-api-exception.php';
396
- require_once dirname( __FILE__ ) . '/wc-payment-api/class-wc-payments-http.php';
 
397
 
398
  $payments_api_client = new WC_Payments_API_Client(
399
  'WooCommerce Payments/' . WCPAY_VERSION_NUMBER,
400
- new WC_Payments_Http( new Automattic\Jetpack\Connection\Manager( 'woocommerce-payments' ) ),
401
  self::$db_helper
402
  );
403
 
404
  return $payments_api_client;
405
  }
406
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
407
  /**
408
  * Initialize the REST API controllers.
409
  */
95
  include_once dirname( __FILE__ ) . '/class-wc-payment-gateway-wcpay.php';
96
  include_once dirname( __FILE__ ) . '/class-wc-payments-token-service.php';
97
  include_once dirname( __FILE__ ) . '/exceptions/class-wc-payments-intent-authentication-exception.php';
98
+ include_once dirname( __FILE__ ) . '/constants/class-payment-initiated-by.php';
99
+ include_once dirname( __FILE__ ) . '/constants/class-payment-capture-type.php';
100
+ include_once dirname( __FILE__ ) . '/class-payment-information.php';
101
+
102
+ // Always load tracker to avoid class not found errors.
103
+ include_once WCPAY_ABSPATH . 'includes/admin/tracks/class-tracker.php';
104
 
105
  self::$account = new WC_Payments_Account( self::$api_client );
106
  self::$customer_service = new WC_Payments_Customer_Service( self::$api_client );
107
  self::$token_service = new WC_Payments_Token_Service( self::$api_client, self::$customer_service );
108
 
109
  $gateway_class = 'WC_Payment_Gateway_WCPay';
110
+ // TODO: Remove admin payment method JS hack for Subscriptions <= 3.0.7 when we drop support for those versions.
111
+ if ( class_exists( 'WC_Subscriptions' ) && version_compare( WC_Subscriptions::$version, '2.2.0', '>=' ) ) {
112
  include_once dirname( __FILE__ ) . '/compat/subscriptions/class-wc-payment-gateway-wcpay-subscriptions-compat.php';
113
  $gateway_class = 'WC_Payment_Gateway_WCPay_Subscriptions_Compat';
114
  }
124
  include_once WCPAY_ABSPATH . 'includes/admin/class-wc-payments-admin.php';
125
  new WC_Payments_Admin( self::$gateway, self::$account );
126
 
127
+ // Use tracks loader only in admin screens because it relies on WC_Tracks loaded by WC_Admin.
128
  include_once WCPAY_ABSPATH . 'includes/admin/tracks/tracks-loader.php';
129
  }
130
 
399
  require_once dirname( __FILE__ ) . '/wc-payment-api/models/class-wc-payments-api-intention.php';
400
  require_once dirname( __FILE__ ) . '/wc-payment-api/class-wc-payments-api-client.php';
401
  require_once dirname( __FILE__ ) . '/wc-payment-api/class-wc-payments-api-exception.php';
402
+
403
+ $http_class = self::get_wc_payments_http();
404
 
405
  $payments_api_client = new WC_Payments_API_Client(
406
  'WooCommerce Payments/' . WCPAY_VERSION_NUMBER,
407
+ $http_class,
408
  self::$db_helper
409
  );
410
 
411
  return $payments_api_client;
412
  }
413
 
414
+ /**
415
+ * Create the HTTP instantiation.
416
+ *
417
+ * @return WC_Payments_Http_Interface
418
+ */
419
+ private static function get_wc_payments_http() {
420
+ require_once dirname( __FILE__ ) . '/wc-payment-api/class-wc-payments-http-interface.php';
421
+ require_once dirname( __FILE__ ) . '/wc-payment-api/class-wc-payments-http.php';
422
+
423
+ $http_class = apply_filters( 'wc_payments_http', null );
424
+
425
+ if ( ! $http_class instanceof WC_Payments_Http_Interface ) {
426
+ $http_class = new WC_Payments_Http( new Automattic\Jetpack\Connection\Manager( 'woocommerce-payments' ) );
427
+ }
428
+
429
+ return $http_class;
430
+ }
431
+
432
  /**
433
  * Initialize the REST API controllers.
434
  */
includes/compat/subscriptions/class-wc-payment-gateway-wcpay-subscriptions-compat.php CHANGED
@@ -10,13 +10,17 @@ if ( ! defined( 'ABSPATH' ) ) {
10
  }
11
 
12
  use WCPay\Logger;
13
- use WCPay\DataTypes\Payment_Information;
 
14
 
15
  /**
16
  * Gateway class for WooCommerce Payments, with added compatibility with WooCommerce Subscriptions.
17
  */
18
  class WC_Payment_Gateway_WCPay_Subscriptions_Compat extends WC_Payment_Gateway_WCPay {
19
 
 
 
 
20
  /**
21
  * WC_Payment_Gateway_WCPay_Subscriptions_Compat constructor.
22
  *
@@ -36,6 +40,7 @@ class WC_Payment_Gateway_WCPay_Subscriptions_Compat extends WC_Payment_Gateway_W
36
  'subscription_date_changes',
37
  'subscription_payment_method_change',
38
  'subscription_payment_method_change_customer',
 
39
  'multiple_subscriptions',
40
  ]
41
  );
@@ -43,6 +48,30 @@ class WC_Payment_Gateway_WCPay_Subscriptions_Compat extends WC_Payment_Gateway_W
43
  add_action( 'woocommerce_scheduled_subscription_payment_' . $this->id, [ $this, 'scheduled_subscription_payment' ], 10, 2 );
44
  add_action( 'woocommerce_subscription_failing_payment_method_updated_' . $this->id, [ $this, 'update_failing_payment_method' ], 10, 2 );
45
  add_filter( 'wc_payments_display_save_payment_method_checkbox', [ $this, 'display_save_payment_method_checkbox' ], 10 );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
  }
47
 
48
  /**
@@ -54,22 +83,23 @@ class WC_Payment_Gateway_WCPay_Subscriptions_Compat extends WC_Payment_Gateway_W
54
  * @return array|null An array with result of payment and redirect URL, or nothing.
55
  */
56
  public function process_payment( $order_id, $is_recurring_payment = false ) {
57
- return parent::process_payment( $order_id, wcs_order_contains_subscription( $order_id ) );
 
58
  }
59
 
60
  /**
61
  * Returns a boolean value indicating whether the save payment checkbox should be
62
  * displayed during checkout.
63
  *
64
- * Returns `false` if the cart currently has a subscriptions. Returns the value in
65
- * `$display` otherwise.
66
  *
67
  * @param bool $display Bool indicating whether to show the save payment checkbox in the absence of subscriptions.
68
  *
69
  * @return bool Indicates whether the save payment method checkbox should be displayed or not.
70
  */
71
  public function display_save_payment_method_checkbox( $display ) {
72
- if ( WC_Subscriptions_Cart::cart_contains_subscription() ) {
73
  return false;
74
  }
75
  // Only render the "Save payment method" checkbox if there are no subscription products in the cart.
@@ -83,20 +113,18 @@ class WC_Payment_Gateway_WCPay_Subscriptions_Compat extends WC_Payment_Gateway_W
83
  * @param WC_Order $renewal_order A WC_Order object created to record the renewal payment.
84
  */
85
  public function scheduled_subscription_payment( $amount, $renewal_order ) {
86
- $order_tokens = $renewal_order->get_payment_tokens();
87
- $token_id = end( $order_tokens );
88
- $token = ! $token_id ? null : WC_Payment_Tokens::get( $token_id );
89
  if ( is_null( $token ) ) {
90
  Logger::error( 'There is no saved payment token for order #' . $renewal_order->get_id() );
91
  $renewal_order->update_status( 'failed' );
92
  return;
93
  }
94
 
95
- $payment_information = new Payment_Information( '', $token, true );
96
 
97
  try {
98
  // TODO: make `force_saved_card` and adding the 'recurring' metadata 2 distinct features.
99
- $this->process_payment_for_order( $renewal_order, null, $payment_information, false, true );
100
  } catch ( WC_Payments_API_Exception $e ) {
101
  Logger::error( 'Error processing subscription renewal: ' . $e->getMessage() );
102
 
@@ -111,9 +139,7 @@ class WC_Payment_Gateway_WCPay_Subscriptions_Compat extends WC_Payment_Gateway_W
111
  * @param WC_Order $renewal_order The failed renewal order.
112
  */
113
  public function update_failing_payment_method( $subscription, $renewal_order ) {
114
- $renewal_order_tokens = $renewal_order->get_payment_tokens();
115
- $renewal_token_id = end( $renewal_order_tokens );
116
- $renewal_token = ! $renewal_token_id ? null : WC_Payment_Tokens::get( $renewal_token_id );
117
  if ( is_null( $renewal_token ) ) {
118
  Logger::error( 'Failing subscription could not be updated: there is no saved payment token for order #' . $renewal_order->get_id() );
119
  return;
@@ -121,6 +147,133 @@ class WC_Payment_Gateway_WCPay_Subscriptions_Compat extends WC_Payment_Gateway_W
121
  $this->add_token_to_order( $subscription, $renewal_token );
122
  }
123
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
124
  /**
125
  * Saves the payment token to the order.
126
  *
@@ -136,4 +289,58 @@ class WC_Payment_Gateway_WCPay_Subscriptions_Compat extends WC_Payment_Gateway_W
136
  parent::add_token_to_order( $subscription, $token );
137
  }
138
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
139
  }
10
  }
11
 
12
  use WCPay\Logger;
13
+ use WCPay\Payment_Information;
14
+ use WCPay\Constants\Payment_Initiated_By;
15
 
16
  /**
17
  * Gateway class for WooCommerce Payments, with added compatibility with WooCommerce Subscriptions.
18
  */
19
  class WC_Payment_Gateway_WCPay_Subscriptions_Compat extends WC_Payment_Gateway_WCPay {
20
 
21
+ const PAYMENT_METHOD_META_TABLE = 'wc_order_tokens';
22
+ const PAYMENT_METHOD_META_KEY = 'token';
23
+
24
  /**
25
  * WC_Payment_Gateway_WCPay_Subscriptions_Compat constructor.
26
  *
40
  'subscription_date_changes',
41
  'subscription_payment_method_change',
42
  'subscription_payment_method_change_customer',
43
+ 'subscription_payment_method_change_admin',
44
  'multiple_subscriptions',
45
  ]
46
  );
48
  add_action( 'woocommerce_scheduled_subscription_payment_' . $this->id, [ $this, 'scheduled_subscription_payment' ], 10, 2 );
49
  add_action( 'woocommerce_subscription_failing_payment_method_updated_' . $this->id, [ $this, 'update_failing_payment_method' ], 10, 2 );
50
  add_filter( 'wc_payments_display_save_payment_method_checkbox', [ $this, 'display_save_payment_method_checkbox' ], 10 );
51
+
52
+ // Display the credit card used for a subscription in the "My Subscriptions" table.
53
+ add_filter( 'woocommerce_my_subscriptions_payment_method', [ $this, 'maybe_render_subscription_payment_method' ], 10, 2 );
54
+
55
+ // Allow store managers to manually set Stripe as the payment method on a subscription.
56
+ add_filter( 'woocommerce_subscription_payment_meta', [ $this, 'add_subscription_payment_meta' ], 10, 2 );
57
+ add_filter( 'woocommerce_subscription_validate_payment_meta', [ $this, 'validate_subscription_payment_meta' ], 10, 3 );
58
+ add_action( 'wcs_save_other_payment_meta', [ $this, 'save_meta_in_order_tokens' ], 10, 4 );
59
+ // Enqueue JS hack when Subscriptions does not provide the meta input filter.
60
+ if ( version_compare( WC_Subscriptions::$version, '3.0.7', '<=' ) ) {
61
+ add_action( 'woocommerce_admin_order_data_after_billing_address', [ $this, 'add_payment_method_select_to_subscription_edit' ] );
62
+ }
63
+ }
64
+
65
+ /**
66
+ * Returns whether this user is changing the payment method for a subscription.
67
+ *
68
+ * @return bool
69
+ */
70
+ private function is_changing_payment_method_for_subscription() {
71
+ if ( isset( $_GET['change_payment_method'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification
72
+ return wcs_is_subscription( wc_clean( wp_unslash( $_GET['change_payment_method'] ) ) ); // phpcs:ignore WordPress.Security.NonceVerification
73
+ }
74
+ return false;
75
  }
76
 
77
  /**
83
  * @return array|null An array with result of payment and redirect URL, or nothing.
84
  */
85
  public function process_payment( $order_id, $is_recurring_payment = false ) {
86
+ $force_save_payment_method = wcs_order_contains_subscription( $order_id ) || $this->is_changing_payment_method_for_subscription();
87
+ return parent::process_payment( $order_id, $force_save_payment_method );
88
  }
89
 
90
  /**
91
  * Returns a boolean value indicating whether the save payment checkbox should be
92
  * displayed during checkout.
93
  *
94
+ * Returns `false` if the cart currently has a subscriptions or if the request has a
95
+ * `change_payment_method` GET parameter. Returns the value in `$display` otherwise.
96
  *
97
  * @param bool $display Bool indicating whether to show the save payment checkbox in the absence of subscriptions.
98
  *
99
  * @return bool Indicates whether the save payment method checkbox should be displayed or not.
100
  */
101
  public function display_save_payment_method_checkbox( $display ) {
102
+ if ( WC_Subscriptions_Cart::cart_contains_subscription() || $this->is_changing_payment_method_for_subscription() ) {
103
  return false;
104
  }
105
  // Only render the "Save payment method" checkbox if there are no subscription products in the cart.
113
  * @param WC_Order $renewal_order A WC_Order object created to record the renewal payment.
114
  */
115
  public function scheduled_subscription_payment( $amount, $renewal_order ) {
116
+ $token = $this->get_payment_token( $renewal_order );
 
 
117
  if ( is_null( $token ) ) {
118
  Logger::error( 'There is no saved payment token for order #' . $renewal_order->get_id() );
119
  $renewal_order->update_status( 'failed' );
120
  return;
121
  }
122
 
123
+ $payment_information = new Payment_Information( '', $renewal_order, $token, Payment_Initiated_By::MERCHANT() );
124
 
125
  try {
126
  // TODO: make `force_saved_card` and adding the 'recurring' metadata 2 distinct features.
127
+ $this->process_payment_for_order( null, $payment_information, true );
128
  } catch ( WC_Payments_API_Exception $e ) {
129
  Logger::error( 'Error processing subscription renewal: ' . $e->getMessage() );
130
 
139
  * @param WC_Order $renewal_order The failed renewal order.
140
  */
141
  public function update_failing_payment_method( $subscription, $renewal_order ) {
142
+ $renewal_token = $this->get_payment_token( $renewal_order );
 
 
143
  if ( is_null( $renewal_token ) ) {
144
  Logger::error( 'Failing subscription could not be updated: there is no saved payment token for order #' . $renewal_order->get_id() );
145
  return;
147
  $this->add_token_to_order( $subscription, $renewal_token );
148
  }
149
 
150
+ /**
151
+ * Include the payment meta data required to process automatic recurring payments so that store managers can
152
+ * manually set up automatic recurring payments for a customer via the Edit Subscriptions screen in 2.0+.
153
+ *
154
+ * @param array $payment_meta Associative array of meta data required for automatic payments.
155
+ * @param WC_Subscription $subscription The subscription order.
156
+ * @return array
157
+ */
158
+ public function add_subscription_payment_meta( $payment_meta, $subscription ) {
159
+ $active_token = $this->get_payment_token( $subscription );
160
+
161
+ $payment_meta[ $this->id ] = [
162
+ self::PAYMENT_METHOD_META_TABLE => [
163
+ self::PAYMENT_METHOD_META_KEY => [
164
+ 'label' => __( 'Saved payment method', 'woocommerce-payments' ),
165
+ 'value' => empty( $active_token ) ? '' : strval( $active_token->get_id() ),
166
+ ],
167
+ ],
168
+ ];
169
+
170
+ // Display select element on newer Subscriptions versions.
171
+ add_action(
172
+ sprintf(
173
+ 'woocommerce_subscription_payment_meta_input_%s_%s_%s',
174
+ WC_Payment_Gateway_WCPay::GATEWAY_ID,
175
+ self::PAYMENT_METHOD_META_TABLE,
176
+ self::PAYMENT_METHOD_META_KEY
177
+ ),
178
+ [ $this, 'render_custom_payment_meta_input' ],
179
+ 10,
180
+ 3
181
+ );
182
+
183
+ return $payment_meta;
184
+ }
185
+
186
+ /**
187
+ * Validate the payment meta data required to process automatic recurring payments so that store managers can
188
+ * manually set up automatic recurring payments for a customer via the Edit Subscriptions screen in 2.0+.
189
+ *
190
+ * @param string $payment_gateway_id The ID of the payment gateway to validate.
191
+ * @param array $payment_meta Associative array of meta data required for automatic payments.
192
+ * @param WC_Subscription $subscription The subscription order.
193
+ *
194
+ * @throws Exception When $payment_meta is not valid.
195
+ */
196
+ public function validate_subscription_payment_meta( $payment_gateway_id, $payment_meta, $subscription ) {
197
+ if ( $this->id !== $payment_gateway_id ) {
198
+ return;
199
+ }
200
+
201
+ if ( empty( $payment_meta[ self::PAYMENT_METHOD_META_TABLE ][ self::PAYMENT_METHOD_META_KEY ]['value'] ) ) {
202
+ throw new Exception( __( 'A customer saved payment method was not selected for this order.', 'woocommerce-payments' ) );
203
+ }
204
+
205
+ $token = WC_Payment_Tokens::get( $payment_meta[ self::PAYMENT_METHOD_META_TABLE ][ self::PAYMENT_METHOD_META_KEY ]['value'] );
206
+
207
+ if ( empty( $token ) ) {
208
+ throw new Exception( __( 'The saved payment method selected is invalid or does not exist.', 'woocommerce-payments' ) );
209
+ }
210
+
211
+ if ( $subscription->get_user_id() !== $token->get_user_id() ) {
212
+ throw new Exception( __( 'The saved payment method selected does not belong to this order\'s customer.', 'woocommerce-payments' ) );
213
+ }
214
+ }
215
+
216
+ /**
217
+ * Save subscriptions payment_method metadata to the order tokens when its type is wc_order_tokens.
218
+ *
219
+ * @param WC_Subscription $subscription The subscription to be updated.
220
+ * @param string $table Where to store and retrieve the metadata.
221
+ * @param string $meta_key Meta key to be updated.
222
+ * @param string $meta_value Meta value to be updated.
223
+ */
224
+ public function save_meta_in_order_tokens( $subscription, $table, $meta_key, $meta_value ) {
225
+ if ( self::PAYMENT_METHOD_META_TABLE !== $table || self::PAYMENT_METHOD_META_KEY !== $meta_key ) {
226
+ return;
227
+ }
228
+
229
+ $token = WC_Payment_Tokens::get( $meta_value );
230
+
231
+ if ( empty( $token ) ) {
232
+ return;
233
+ }
234
+
235
+ $this->add_token_to_order( $subscription, $token );
236
+ }
237
+
238
+ /**
239
+ * Loads the subscription edit page script with user cards to hijack the payment method input and
240
+ * transform it into a select element.
241
+ *
242
+ * @param WC_Order $order The WC Order.
243
+ */
244
+ public function add_payment_method_select_to_subscription_edit( $order ) {
245
+ // Do not load the script if the order is not a subscription.
246
+ if ( ! wcs_is_subscription( $order ) ) {
247
+ return;
248
+ }
249
+
250
+ $script_src_url = plugins_url( 'dist/subscription-edit-page.js', WCPAY_PLUGIN_FILE );
251
+ $script_asset_path = WCPAY_ABSPATH . 'dist/subscription-edit-page.asset.php';
252
+ $script_asset = file_exists( $script_asset_path ) ? require_once $script_asset_path : [ 'dependencies' => [] ];
253
+
254
+ wp_register_script(
255
+ 'WCPAY_SUBSCRIPTION_EDIT_PAGE',
256
+ $script_src_url,
257
+ $script_asset['dependencies'],
258
+ WC_Payments::get_file_version( 'dist/subscription-edit-page.js' ),
259
+ true
260
+ );
261
+
262
+ wp_localize_script(
263
+ 'WCPAY_SUBSCRIPTION_EDIT_PAGE',
264
+ 'wcpaySubscriptionEdit',
265
+ [
266
+ 'gateway' => $this->id,
267
+ 'table' => self::PAYMENT_METHOD_META_TABLE,
268
+ 'metaKey' => self::PAYMENT_METHOD_META_KEY,
269
+ 'tokens' => $this->get_user_formatted_tokens_array( $order->get_user_id() ),
270
+ 'defaultOptionText' => __( 'Please select a payment method', 'woocommerce-payments' ),
271
+ ]
272
+ );
273
+
274
+ wp_enqueue_script( 'WCPAY_SUBSCRIPTION_EDIT_PAGE' );
275
+ }
276
+
277
  /**
278
  * Saves the payment token to the order.
279
  *
289
  parent::add_token_to_order( $subscription, $token );
290
  }
291
  }
292
+
293
+ /**
294
+ * Render the payment method used for a subscription in My Account pages
295
+ *
296
+ * @param string $payment_method_to_display Default payment method to display.
297
+ * @param WC_Subscription $subscription Subscription object.
298
+ *
299
+ * @return string Payment method string to display in UI.
300
+ */
301
+ public function maybe_render_subscription_payment_method( $payment_method_to_display, $subscription ) {
302
+ try {
303
+ if ( $subscription->get_payment_method() !== $this->id ) {
304
+ return $payment_method_to_display;
305
+ }
306
+
307
+ $token = $this->get_payment_token( $subscription );
308
+
309
+ if ( is_null( $token ) ) {
310
+ Logger::info( 'There is no saved payment token for subscription #' . $subscription->get_id() );
311
+ return $payment_method_to_display;
312
+ }
313
+ return $token->get_display_name();
314
+ } catch ( \Exception $e ) {
315
+ Logger::error( 'Failed to get payment method for subscription #' . $subscription->get_id() . ' ' . $e );
316
+ return $payment_method_to_display;
317
+ }
318
+ }
319
+
320
+ /**
321
+ * Outputs a select element to be used for the Subscriptions payment meta token selection.
322
+ *
323
+ * @param WC_Subscription $subscription The subscription object.
324
+ * @param string $field_id The field_id to add to the select element.
325
+ * @param string $field_value The field_value to be selected by default.
326
+ */
327
+ public function render_custom_payment_meta_input( $subscription, $field_id, $field_value ) {
328
+ $tokens = $this->get_user_formatted_tokens_array( $subscription->get_user_id() );
329
+ $is_valid_value = false;
330
+
331
+ foreach ( $tokens as $token ) {
332
+ $is_valid_value = $is_valid_value || intval( $field_value ) === $token['tokenId'];
333
+ }
334
+
335
+ echo '<select name="' . esc_attr( $field_id ) . '" id="' . esc_attr( $field_id ) . '">';
336
+ // If no token matches the selected ID, add a default option.
337
+ if ( ! $is_valid_value ) {
338
+ echo '<option value="" selected disabled>' . esc_html__( 'Please select a payment method', 'woocommerce-payments' ) . '</option>';
339
+ }
340
+ foreach ( $tokens as $token ) {
341
+ $is_selected = intval( $field_value ) === $token['tokenId'] ? 'selected' : '';
342
+ echo '<option value="' . esc_attr( $token['tokenId'] ) . '" ' . esc_attr( $is_selected ) . '>' . esc_html( $token['displayName'] ) . '</option>';
343
+ }
344
+ echo '</select>';
345
+ }
346
  }
includes/constants/class-payment-capture-type.php ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Class Capture_Type
4
+ *
5
+ * @package WooCommerce\Payments
6
+ */
7
+
8
+ namespace WCPay\Constants;
9
+
10
+ if ( ! defined( 'ABSPATH' ) ) {
11
+ exit; // Exit if accessed directly.
12
+ }
13
+
14
+ use MyCLabs\Enum\Enum;
15
+
16
+ /**
17
+ * Enum used in WCPay\Payment_Information to determine whether a payment was
18
+ * initated by a merchant or a customer.
19
+ */
20
+ class Payment_Capture_Type extends Enum {
21
+ const AUTOMATIC = 'automatic_capture';
22
+ const MANUAL = 'manual_capture';
23
+ };
includes/constants/class-payment-initiated-by.php ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Class Payment_Information
4
+ *
5
+ * @package WooCommerce\Payments
6
+ */
7
+
8
+ namespace WCPay\Constants;
9
+
10
+ if ( ! defined( 'ABSPATH' ) ) {
11
+ exit; // Exit if accessed directly.
12
+ }
13
+
14
+ use MyCLabs\Enum\Enum;
15
+
16
+ /**
17
+ * Enum used in WCPay\Payment_Information to determine whether a payment was
18
+ * initated by a merchant or a customer.
19
+ */
20
+ class Payment_Initiated_By extends Enum {
21
+ const MERCHANT = 'initiated_by_merchant';
22
+ const CUSTOMER = 'initiated_by_customer';
23
+ };
includes/wc-payment-api/class-wc-payments-api-client.php CHANGED
@@ -35,6 +35,24 @@ class WC_Payments_API_Client {
35
  const PAYMENT_METHODS_API = 'payment_methods';
36
  const SETUP_INTENTS_API = 'setup_intents';
37
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
  /**
39
  * User agent string to report in requests.
40
  *
@@ -429,7 +447,12 @@ class WC_Payments_API_Client {
429
  );
430
 
431
  if ( $order ) {
432
- array_unshift( $results, [ 'label' => __( 'Order #', 'woocommerce-payments' ) . $search_term ] );
 
 
 
 
 
433
  }
434
 
435
  return $results;
@@ -848,7 +871,10 @@ class WC_Payments_API_Client {
848
 
849
  Logger::log( "REQUEST $method $url" );
850
  if ( 'POST' === $method || 'PUT' === $method ) {
851
- Logger::log( 'BODY: ' . var_export( $body, true ) ); // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_var_export
 
 
 
852
  }
853
 
854
  $response = $this->http_client->remote_request(
@@ -862,7 +888,10 @@ class WC_Payments_API_Client {
862
  );
863
 
864
  $response_body = $this->extract_response_body( $response );
865
- Logger::log( 'RESPONSE ' . var_export( $response_body, true ) ); // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_var_export
 
 
 
866
 
867
  return $response_body;
868
  }
@@ -955,7 +984,7 @@ class WC_Payments_API_Client {
955
  $error_message
956
  );
957
 
958
- Logger::error( "Error: $error_message ($error_code)" );
959
  throw new WC_Payments_API_Exception( $message, $error_code, $response_code );
960
  }
961
 
@@ -985,6 +1014,18 @@ class WC_Payments_API_Client {
985
  'number' => $order->get_order_number(),
986
  'url' => $order->get_edit_order_url(),
987
  ];
 
 
 
 
 
 
 
 
 
 
 
 
988
  }
989
 
990
  return $object;
35
  const PAYMENT_METHODS_API = 'payment_methods';
36
  const SETUP_INTENTS_API = 'setup_intents';
37
 
38
+ /**
39
+ * Common keys in API requests/responses that we might want to redact.
40
+ */
41
+ const API_KEYS_TO_REDACT = [
42
+ 'client_secret',
43
+ 'email',
44
+ 'name',
45
+ 'phone',
46
+ 'line1',
47
+ 'line2',
48
+ 'postal_code',
49
+ 'state',
50
+ 'city',
51
+ 'country',
52
+ 'customer_name',
53
+ 'customer_email',
54
+ ];
55
+
56
  /**
57
  * User agent string to report in requests.
58
  *
447
  );
448
 
449
  if ( $order ) {
450
+ if ( function_exists( 'wcs_is_subscription' ) && wcs_is_subscription( $order ) ) {
451
+ $prefix = __( 'Subscription #', 'woocommerce-payments' );
452
+ } else {
453
+ $prefix = __( 'Order #', 'woocommerce-payments' );
454
+ }
455
+ array_unshift( $results, [ 'label' => $prefix . $search_term ] );
456
  }
457
 
458
  return $results;
871
 
872
  Logger::log( "REQUEST $method $url" );
873
  if ( 'POST' === $method || 'PUT' === $method ) {
874
+ Logger::log(
875
+ 'BODY: '
876
+ . var_export( WC_Payments_Utils::redact_array( $params, self::API_KEYS_TO_REDACT ), true ) // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_var_export
877
+ );
878
  }
879
 
880
  $response = $this->http_client->remote_request(
888
  );
889
 
890
  $response_body = $this->extract_response_body( $response );
891
+ Logger::log(
892
+ 'RESPONSE: '
893
+ . var_export( WC_Payments_Utils::redact_array( $response_body, self::API_KEYS_TO_REDACT ), true ) // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_var_export
894
+ );
895
 
896
  return $response_body;
897
  }
984
  $error_message
985
  );
986
 
987
+ Logger::error( "$error_message ($error_code)" );
988
  throw new WC_Payments_API_Exception( $message, $error_code, $response_code );
989
  }
990
 
1014
  'number' => $order->get_order_number(),
1015
  'url' => $order->get_edit_order_url(),
1016
  ];
1017
+
1018
+ if ( function_exists( 'wcs_get_subscriptions_for_order' ) ) {
1019
+ $object['order']['subscriptions'] = [];
1020
+
1021
+ $subscriptions = wcs_get_subscriptions_for_order( $order, [ 'order_type' => [ 'parent', 'renewal' ] ] );
1022
+ foreach ( $subscriptions as $subscription ) {
1023
+ $object['order']['subscriptions'][] = [
1024
+ 'number' => $subscription->get_order_number(),
1025
+ 'url' => $subscription->get_edit_order_url(),
1026
+ ];
1027
+ }
1028
+ }
1029
  }
1030
 
1031
  return $object;
includes/wc-payment-api/class-wc-payments-http-interface.php ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * WC_Payments_Http_Interface class.
4
+ *
5
+ * @package WooCommerce\Payments
6
+ */
7
+
8
+ defined( 'ABSPATH' ) || exit;
9
+
10
+ /**
11
+ * A wrapper around Jetpack HTTP request library. Necessary to increase
12
+ * the testability of WC_Payments_API_Client, and allow dependency
13
+ * injection.
14
+ */
15
+ interface WC_Payments_Http_Interface {
16
+
17
+ /**
18
+ * Sends a remote request through Jetpack.
19
+ *
20
+ * @param array $args - The arguments to passed to Jetpack.
21
+ * @param string $body - The body passed on to the HTTP request.
22
+ * @param bool $is_site_specific - If true, the site ID will be included in the request url.
23
+ *
24
+ * @return array HTTP response on success.
25
+ * @throws WC_Payments_API_Exception - If not connected or request failed.
26
+ */
27
+ public function remote_request( $args, $body = null, $is_site_specific = true );
28
+
29
+ /**
30
+ * Checks if Jetpack is connected.
31
+ *
32
+ * Checks if connection is authenticated in the same way as Jetpack_Client or Jetpack Connection Client does.
33
+ *
34
+ * @return bool true if Jetpack connection has access token.
35
+ */
36
+ public function is_connected();
37
+
38
+ /**
39
+ * Starts the Jetpack connection process. Note that running this function will immediately redirect
40
+ * to the Jetpack flow, so any PHP code after it will never be executed.
41
+ *
42
+ * @param string $redirect - URL to redirect to after the connection process is over.
43
+ *
44
+ * @throws WC_Payments_API_Exception - Exception thrown on failure.
45
+ */
46
+ public function start_connection( $redirect );
47
+ }
includes/wc-payment-api/class-wc-payments-http.php CHANGED
@@ -14,7 +14,7 @@ use WCPay\Logger;
14
  * the testability of WC_Payments_API_Client, and allow dependency
15
  * injection.
16
  */
17
- class WC_Payments_Http {
18
 
19
  /**
20
  * Jetpack connection handler.
14
  * the testability of WC_Payments_API_Client, and allow dependency
15
  * injection.
16
  */
17
+ class WC_Payments_Http implements WC_Payments_Http_Interface {
18
 
19
  /**
20
  * Jetpack connection handler.
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: woocommerce, payment, payment request, credit card, automattic
4
  Requires at least: 5.3
5
  Tested up to: 5.4
6
  Requires PHP: 7.0
7
- Stable tag: 1.4.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -90,6 +90,19 @@ You can read our Terms of Service [here](https://en.wordpress.com/tos).
90
 
91
  == Changelog ==
92
 
 
 
 
 
 
 
 
 
 
 
 
 
 
93
  = 1.4.1 - 2020-09-07 =
94
  * Fix - Only redirect to the onboarding screen if the plugin has been individually activated using the plugins page.
95
 
4
  Requires at least: 5.3
5
  Tested up to: 5.4
6
  Requires PHP: 7.0
7
+ Stable tag: 1.5.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
90
 
91
  == Changelog ==
92
 
93
+ = 1.5.0 - 2020-09-24 =
94
+ * Fix - Save payment method checkbox for Subscriptions customer-initiated payment method updates.
95
+ * Fix - Support checkout on Internet Explorer 11.
96
+ * Fix - Webhook processing with no Jetpack plugin installed.
97
+ * Fix - Do not block the checkout card field from loading when customer meta is invalid or related to an old account.
98
+ * Fix - Saving account statement descriptor with an ampersand character.
99
+ * Fix - Do not attempt to render the payment timeline if the intention ID is missing.
100
+ * Add - Display payment method details on account subscriptions pages.
101
+ * Add - Redact sensitive data before logging.
102
+ * Add - Support for WooCommerce Subscriptions admin-initiated payment method changes.
103
+ * Add - Link to Subscription admin pages from Transactions views.
104
+ * Add - Support for Subscriptions in transaction search.
105
+
106
  = 1.4.1 - 2020-09-07 =
107
  * Fix - Only redirect to the onboarding screen if the plugin has been individually activated using the plugins page.
108
 
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInitbad42693a2a67eb4387853dae504a1bd::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInitefe3f1811f53b7d0126cc72c1f5a2a15::getLoader();
vendor/autoload_packages.php CHANGED
@@ -1,206 +1,14 @@
1
  <?php
2
  /**
3
- * This file `autoload_packages.php`was generated by automattic/jetpack-autoloader.
4
- *
5
- * From your plugin include this file with:
6
- * require_once . plugin_dir_path( __FILE__ ) . '/vendor/autoload_packages.php';
7
  *
8
  * @package automattic/jetpack-autoloader
9
  */
10
 
11
- // phpcs:disable PHPCompatibility.LanguageConstructs.NewLanguageConstructs.t_ns_separatorFound
12
- // phpcs:disable PHPCompatibility.Keywords.NewKeywords.t_namespaceFound
13
- // phpcs:disable PHPCompatibility.Keywords.NewKeywords.t_ns_cFound
14
-
15
- namespace Automattic\Jetpack\Autoloader;
16
-
17
- if ( ! function_exists( __NAMESPACE__ . '\enqueue_package_class' ) ) {
18
- global $jetpack_packages_classes;
19
-
20
- if ( ! is_array( $jetpack_packages_classes ) ) {
21
- $jetpack_packages_classes = array();
22
- }
23
- /**
24
- * Adds the version of a package to the $jetpack_packages global array so that
25
- * the autoloader is able to find it.
26
- *
27
- * @param string $class_name Name of the class that you want to autoload.
28
- * @param string $version Version of the class.
29
- * @param string $path Absolute path to the class so that we can load it.
30
- */
31
- function enqueue_package_class( $class_name, $version, $path ) {
32
- global $jetpack_packages_classes;
33
-
34
- if ( ! isset( $jetpack_packages_classes[ $class_name ] ) ) {
35
- $jetpack_packages_classes[ $class_name ] = array(
36
- 'version' => $version,
37
- 'path' => $path,
38
- );
39
-
40
- return;
41
- }
42
- // If we have a @dev version set always use that one!
43
- if ( 'dev-' === substr( $jetpack_packages_classes[ $class_name ]['version'], 0, 4 ) ) {
44
- return;
45
- }
46
-
47
- // Always favour the @dev version. Since that version is the same as bleeding edge.
48
- // We need to make sure that we don't do this in production!
49
- if ( 'dev-' === substr( $version, 0, 4 ) ) {
50
- $jetpack_packages_classes[ $class_name ] = array(
51
- 'version' => $version,
52
- 'path' => $path,
53
- );
54
-
55
- return;
56
- }
57
- // Set the latest version!
58
- if ( version_compare( $jetpack_packages_classes[ $class_name ]['version'], $version, '<' ) ) {
59
- $jetpack_packages_classes[ $class_name ] = array(
60
- 'version' => $version,
61
- 'path' => $path,
62
- );
63
- }
64
- }
65
- }
66
-
67
- if ( ! function_exists( __NAMESPACE__ . '\enqueue_package_file' ) ) {
68
- global $jetpack_packages_files;
69
-
70
- if ( ! is_array( $jetpack_packages_files ) ) {
71
- $jetpack_packages_files = array();
72
- }
73
- /**
74
- * Adds the version of a package file to the $jetpack_packages_files global array so that
75
- * we can load the most recent version after 'plugins_loaded'.
76
- *
77
- * @param string $file_identifier Unique id to file assigned by composer based on package name and filename.
78
- * @param string $version Version of the file.
79
- * @param string $path Absolute path to the file so that we can load it.
80
- */
81
- function enqueue_package_file( $file_identifier, $version, $path ) {
82
- global $jetpack_packages_files;
83
-
84
- if ( ! isset( $jetpack_packages_files[ $file_identifier ] ) ) {
85
- $jetpack_packages_files[ $file_identifier ] = array(
86
- 'version' => $version,
87
- 'path' => $path,
88
- );
89
-
90
- return;
91
- }
92
- // If we have a @dev version set always use that one!
93
- if ( 'dev-' === substr( $jetpack_packages_files[ $file_identifier ]['version'], 0, 4 ) ) {
94
- return;
95
- }
96
-
97
- // Always favour the @dev version. Since that version is the same as bleeding edge.
98
- // We need to make sure that we don't do this in production!
99
- if ( 'dev-' === substr( $version, 0, 4 ) ) {
100
- $jetpack_packages_files[ $file_identifier ] = array(
101
- 'version' => $version,
102
- 'path' => $path,
103
- );
104
-
105
- return;
106
- }
107
- // Set the latest version!
108
- if ( version_compare( $jetpack_packages_files[ $file_identifier ]['version'], $version, '<' ) ) {
109
- $jetpack_packages_files[ $file_identifier ] = array(
110
- 'version' => $version,
111
- 'path' => $path,
112
- );
113
- }
114
- }
115
- }
116
-
117
- if ( ! function_exists( __NAMESPACE__ . '\file_loader' ) ) {
118
- /**
119
- * Include latest version of all enqueued files. Should be called after all plugins are loaded.
120
- */
121
- function file_loader() {
122
- global $jetpack_packages_files;
123
- foreach ( $jetpack_packages_files as $file_identifier => $file_data ) {
124
- if ( empty( $GLOBALS['__composer_autoload_files'][ $file_identifier ] ) ) {
125
- require $file_data['path'];
126
-
127
- $GLOBALS['__composer_autoload_files'][ $file_identifier ] = true;
128
- }
129
- }
130
- }
131
- }
132
-
133
- if ( ! function_exists( __NAMESPACE__ . '\autoloader' ) ) {
134
- /**
135
- * Used for autoloading jetpack packages.
136
- *
137
- * @param string $class_name Class Name to load.
138
- */
139
- function autoloader( $class_name ) {
140
- global $jetpack_packages_classes;
141
-
142
- if ( isset( $jetpack_packages_classes[ $class_name ] ) ) {
143
- if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {
144
- // TODO ideally we shouldn't skip any of these, see: https://github.com/Automattic/jetpack/pull/12646.
145
- $ignore = in_array(
146
- $class_name,
147
- array(
148
- 'Automattic\Jetpack\Connection\Manager',
149
- 'Jetpack_Options',
150
- ),
151
- true
152
- );
153
-
154
- if ( ! $ignore && function_exists( 'did_action' ) && ! did_action( 'plugins_loaded' ) ) {
155
- _doing_it_wrong(
156
- esc_html( $class_name ),
157
- sprintf(
158
- /* translators: %s Name of a PHP Class */
159
- esc_html__( 'Not all plugins have loaded yet but we requested the class %s', 'jetpack' ),
160
- // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
161
- $class_name
162
- ),
163
- esc_html( $jetpack_packages_classes[ $class_name ]['version'] )
164
- );
165
- }
166
- }
167
-
168
- require_once $jetpack_packages_classes[ $class_name ]['path'];
169
-
170
- return true;
171
- }
172
-
173
- return false;
174
- }
175
-
176
- // Add the jetpack autoloader.
177
- spl_autoload_register( __NAMESPACE__ . '\autoloader' );
178
- }
179
- /**
180
- * Prepare all the classes for autoloading.
181
- */
182
- function enqueue_packages_a593e0db9aea4a1692f2a4e8f74be60d() {
183
- $class_map = require_once dirname( __FILE__ ) . '/composer/autoload_classmap_package.php';
184
- foreach ( $class_map as $class_name => $class_info ) {
185
- enqueue_package_class( $class_name, $class_info['version'], $class_info['path'] );
186
- }
187
-
188
- $autoload_file = __DIR__ . '/composer/autoload_files_package.php';
189
 
190
- $includeFiles = file_exists( $autoload_file )
191
- ? require $autoload_file
192
- : array();
193
 
194
- foreach ( $includeFiles as $fileIdentifier => $file_data ) {
195
- enqueue_package_file( $fileIdentifier, $file_data[ 'version' ], $file_data[ 'path' ] );
196
- }
197
 
198
- if ( function_exists( 'has_action') && function_exists( 'did_action' ) && ! did_action( 'plugins_loaded' ) && false === has_action( 'plugins_loaded', __NAMESPACE__ . '\file_loader' ) ) {
199
- // Add action if it has not been added and has not happened yet.
200
- // Priority -10 to load files as early as possible in case plugins try to use them during `plugins_loaded`.
201
- add_action( 'plugins_loaded', __NAMESPACE__ . '\file_loader', 0, -10 );
202
- } elseif( ! function_exists( 'did_action' ) || did_action( 'plugins_loaded' ) ) {
203
- file_loader(); // Either WordPress is not loaded or plugin is doing it wrong. Either way we'll load the files so nothing breaks.
204
- }
205
- }
206
- enqueue_packages_a593e0db9aea4a1692f2a4e8f74be60d();
1
  <?php
2
  /**
3
+ * This file was automatically generated by automattic/jetpack-autoloader.
 
 
 
4
  *
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp3418cca783c4a7d647675a3b0ee88cfa;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
 
10
+ // phpcs:ignore
 
 
11
 
12
+ require_once trailingslashit( dirname( __FILE__ ) ) . 'jetpack-autoloader/autoload_functions.php';
 
 
13
 
14
+ set_up_autoloader();
 
 
 
 
 
 
 
 
vendor/automattic/jetpack-a8c-mc-stats/README.md ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Jetpack Stats
2
+
3
+ Used to record internal usage stats for Automattic. Not visible to site owners.
4
+
5
+ ## Usage
6
+
7
+ ```php
8
+ $stats = new Automattic\Jetpack\A8c_Mc_Stats();
9
+
10
+ $stats->add( 'group', 'name' );
11
+
12
+ $stats->do_stats();
13
+
14
+ // or
15
+
16
+ $stats->do_server_side_stats();
17
+
18
+ ```
19
+
20
+ Create an instance of the class and use the `add()` method to store stats that will be processed later with `do_stats()` or `do_server_side_stats()`;
21
+
22
+ `do_stats()` will output one `img` tag with the tracking gif for each group stored using `add()`.
23
+
24
+ `do_server_side_stats()` will directly ping the server, with no output, for each group stored using `add()`.
25
+
26
+ ## Options
27
+
28
+ By default, this uses `b.gif`, which is a transparent pixel. If you want to use a tiny little smiley icon instead, initialize the class with `false`.
29
+
30
+ ```php
31
+ $stats = new Automattic\Jetpack\A8c_Mc_Stats( false );
32
+ ```
33
+
34
+ or set the property at any time:
35
+ ```php
36
+ $stats->use_transparent_pixel = false;
37
+ ```
vendor/automattic/jetpack-a8c-mc-stats/composer.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "automattic/jetpack-a8c-mc-stats",
3
+ "description": "Used to record internal usage stats for Automattic. Not visible to site owners.",
4
+ "type": "library",
5
+ "license": "GPL-2.0-or-later",
6
+ "require": {},
7
+ "require-dev": {
8
+ "phpunit/phpunit": "^5.7 || ^6.5 || ^7.5"
9
+ },
10
+ "autoload": {
11
+ "classmap": [
12
+ "src/"
13
+ ]
14
+ },
15
+ "scripts": {
16
+ "phpunit": [
17
+ "@composer install",
18
+ "./vendor/phpunit/phpunit/phpunit --colors=always"
19
+ ]
20
+ },
21
+ "repositories": [
22
+ {
23
+ "type": "path",
24
+ "url": "../*"
25
+ }
26
+ ],
27
+ "minimum-stability": "dev",
28
+ "prefer-stable": true
29
+ }
vendor/automattic/jetpack-a8c-mc-stats/phpunit.xml.dist ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <phpunit bootstrap="tests/php/bootstrap.php" backupGlobals="false" colors="true">
2
+ <testsuites>
3
+ <testsuite name="main">
4
+ <directory prefix="test" suffix=".php">tests/php</directory>
5
+ </testsuite>
6
+ </testsuites>
7
+ <filter>
8
+ <whitelist processUncoveredFilesFromWhitelist="false">
9
+ <directory suffix=".php">.</directory>
10
+ <exclude>
11
+ <directory suffix=".php">tests</directory>
12
+ <directory suffix=".php">vendor</directory>
13
+ <directory suffix=".php">views</directory>
14
+ </exclude>
15
+ </whitelist>
16
+ </filter>
17
+ </phpunit>
vendor/automattic/jetpack-a8c-mc-stats/src/class-a8c-mc-stats.php ADDED
@@ -0,0 +1,182 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Jetpack MC Stats package.
4
+ *
5
+ * @package automattic/jetpack-mc-stats
6
+ */
7
+
8
+ namespace Automattic\Jetpack;
9
+
10
+ /**
11
+ * Class MC Stats, used to record stats using https://pixel.wp.com/g.gif
12
+ */
13
+ class A8c_Mc_Stats {
14
+
15
+ /**
16
+ * Holds the stats to be processed
17
+ *
18
+ * @var array
19
+ */
20
+ private $stats = array();
21
+
22
+ /**
23
+ * Indicates whether to use the transparent pixel (b.gif) instead of the regular smiley (g.gif)
24
+ *
25
+ * @var boolean
26
+ */
27
+ public $use_transparent_pixel = true;
28
+
29
+ /**
30
+ * Class Constructor
31
+ *
32
+ * @param boolean $use_transparent_pixel Use the transparent pixel instead of the smiley.
33
+ */
34
+ public function __construct( $use_transparent_pixel = true ) {
35
+ $this->use_transparent_pixel = $use_transparent_pixel;
36
+ }
37
+
38
+ /**
39
+ * Store a stat for later output.
40
+ *
41
+ * @param string $group The stat group.
42
+ * @param string $name The stat name to bump.
43
+ *
44
+ * @return boolean true if stat successfully added
45
+ */
46
+ public function add( $group, $name ) {
47
+
48
+ if ( ! \is_string( $group ) || ! \is_string( $name ) ) {
49
+ return false;
50
+ }
51
+
52
+ if ( ! isset( $this->stats[ $group ] ) ) {
53
+ $this->stats[ $group ] = array();
54
+ }
55
+
56
+ if ( \in_array( $name, $this->stats[ $group ], true ) ) {
57
+ return false;
58
+ }
59
+
60
+ $this->stats[ $group ][] = $name;
61
+
62
+ return true;
63
+ }
64
+
65
+ /**
66
+ * Gets current stats stored to be processed
67
+ *
68
+ * @return array $stats
69
+ */
70
+ public function get_current_stats() {
71
+ return $this->stats;
72
+ }
73
+
74
+ /**
75
+ * Return the stats from a group in an array ready to be added as parameters in a query string
76
+ *
77
+ * @param string $group_name The name of the group to retrieve.
78
+ * @return array Array with one item, where the key is the prefixed group and the value are all stats concatenated with a comma. If group not found, an empty array will be returned
79
+ */
80
+ public function get_group_query_args( $group_name ) {
81
+ $stats = $this->get_current_stats();
82
+ if ( isset( $stats[ $group_name ] ) && ! empty( $stats[ $group_name ] ) ) {
83
+ return array( "x_jetpack-{$group_name}" => implode( ',', $stats[ $group_name ] ) );
84
+ }
85
+ return array();
86
+ }
87
+
88
+ /**
89
+ * Gets a list of trac URLs for every stored URL
90
+ *
91
+ * @return array An array of URLs
92
+ */
93
+ public function get_stats_urls() {
94
+
95
+ $urls = array();
96
+
97
+ foreach ( $this->get_current_stats() as $group => $stat ) {
98
+ $group_query_string = $this->get_group_query_args( $group );
99
+ $urls[] = $this->build_stats_url( $group_query_string );
100
+ }
101
+
102
+ return $urls;
103
+
104
+ }
105
+
106
+ /**
107
+ * Outputs the tracking pixels for the current stats and empty the stored stats from the object
108
+ *
109
+ * @return void
110
+ */
111
+ public function do_stats() {
112
+ $urls = $this->get_stats_urls();
113
+ foreach ( $urls as $url ) {
114
+ echo '<img src="' . esc_url( $url ) . '" width="1" height="1" style="display:none;" />';
115
+ }
116
+ $this->stats = array();
117
+ }
118
+
119
+ /**
120
+ * Pings the stats server for the current stats and empty the stored stats from the object
121
+ *
122
+ * @return void
123
+ */
124
+ public function do_server_side_stats() {
125
+ $urls = $this->get_stats_urls();
126
+ foreach ( $urls as $url ) {
127
+ $this->do_server_side_stat( $url );
128
+ }
129
+ $this->stats = array();
130
+ }
131
+
132
+ /**
133
+ * Runs stats code for a one-off, server-side.
134
+ *
135
+ * @param string $url string The URL to be pinged. Should include `x_jetpack-{$group}={$stats}` or whatever we want to store.
136
+ *
137
+ * @return bool If it worked.
138
+ */
139
+ public function do_server_side_stat( $url ) {
140
+ $response = wp_remote_get( esc_url_raw( $url ) );
141
+ if ( is_wp_error( $response ) ) {
142
+ return false;
143
+ }
144
+
145
+ if ( 200 !== wp_remote_retrieve_response_code( $response ) ) {
146
+ return false;
147
+ }
148
+
149
+ return true;
150
+ }
151
+
152
+ /**
153
+ * Builds the stats url.
154
+ *
155
+ * @param array $args array|string The arguments to append to the URL.
156
+ *
157
+ * @return string The URL to be pinged.
158
+ */
159
+ public function build_stats_url( $args ) {
160
+ $defaults = array(
161
+ 'v' => 'wpcom2',
162
+ 'rand' => md5( wp_rand( 0, 999 ) . time() ),
163
+ );
164
+ $args = wp_parse_args( $args, $defaults );
165
+ $gifname = true === $this->use_transparent_pixel ? 'b.gif' : 'g.gif';
166
+
167
+ /**
168
+ * Filter the URL used as the Stats tracking pixel.
169
+ *
170
+ * @since 2.3.2
171
+ *
172
+ * @param string $url Base URL used as the Stats tracking pixel.
173
+ */
174
+ $base_url = apply_filters(
175
+ 'jetpack_stats_base_url',
176
+ 'https://pixel.wp.com/' . $gifname
177
+ );
178
+ $url = add_query_arg( $args, $base_url );
179
+ return $url;
180
+ }
181
+
182
+ }
vendor/automattic/jetpack-a8c-mc-stats/tests/php/bootstrap.php ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ <?php //phpcs:ignore Squiz.Commenting.FileComment.Missing
2
+
3
+ require_once __DIR__ . '/../../vendor/autoload.php';
vendor/automattic/jetpack-a8c-mc-stats/tests/php/test_Stats.php ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php // phpcs:ignore Squiz.Commenting.FileComment.Missing
2
+
3
+ namespace Automattic\Jetpack;
4
+
5
+ use PHPUnit\Framework\TestCase;
6
+
7
+ /**
8
+ * Test A8c_Mc_Stats class
9
+ */
10
+ class StatsTest extends TestCase {
11
+
12
+ /**
13
+ * Test add and get_current_status methods
14
+ */
15
+ public function test_add_get() {
16
+
17
+ $stats = new A8c_Mc_Stats();
18
+
19
+ $stats->add( 'group', 'test' );
20
+
21
+ $check = $stats->get_current_stats();
22
+
23
+ $this->assertCount( 1, $check );
24
+ $this->assertArrayHasKey( 'group', $check );
25
+ $this->assertContains( 'test', $check['group'] );
26
+ $this->assertCount( 1, $check['group'] );
27
+
28
+ $stats->add( 'group', 'test2' );
29
+
30
+ $check = $stats->get_current_stats();
31
+
32
+ $this->assertCount( 1, $check );
33
+ $this->assertArrayHasKey( 'group', $check );
34
+ $this->assertContains( 'test', $check['group'] );
35
+ $this->assertContains( 'test2', $check['group'] );
36
+ $this->assertCount( 2, $check['group'] );
37
+
38
+ $stats->add( 'group2', 'test3' );
39
+
40
+ $check = $stats->get_current_stats();
41
+
42
+ $this->assertCount( 2, $check );
43
+ $this->assertArrayHasKey( 'group', $check );
44
+ $this->assertArrayHasKey( 'group2', $check );
45
+ $this->assertContains( 'test', $check['group'] );
46
+ $this->assertContains( 'test2', $check['group'] );
47
+ $this->assertContains( 'test3', $check['group2'] );
48
+ $this->assertCount( 2, $check['group'] );
49
+ $this->assertCount( 1, $check['group2'] );
50
+
51
+ // test errors.
52
+
53
+ $this->assertFalse( $stats->add( 'group2', 'test3' ) );
54
+ $this->assertFalse( $stats->add( true, 'test3' ) );
55
+ $this->assertFalse( $stats->add( array( 123 ), 'test3' ) );
56
+
57
+ }
58
+
59
+ /**
60
+ * Test get group query args
61
+ */
62
+ public function test_get_group_query_args() {
63
+
64
+ $stats = new A8c_Mc_Stats();
65
+ $stats->add( 'group', 'test' );
66
+ $stats->add( 'group', 'test2' );
67
+
68
+ $this->assertEmpty( $stats->get_group_query_args( 'group2' ) );
69
+
70
+ $check = $stats->get_group_query_args( 'group' );
71
+
72
+ $this->assertCount( 1, $check );
73
+ $this->assertArrayHasKey( 'x_jetpack-group', $check );
74
+ $this->assertEquals( 'test,test2', $check['x_jetpack-group'] );
75
+
76
+ }
77
+
78
+ }
vendor/automattic/jetpack-autoloader/README.md CHANGED
@@ -6,11 +6,10 @@ This is a custom autoloader generator that uses a classmap to always load the la
6
  The problem this autoloader is trying to solve is conflicts that arise when two or more plugins use the same package, but one of the plugins uses an older version of said package.
7
 
8
  This is solved by keeping an in memory map of all the different classes that can be loaded, and updating the map with the path to the latest version of the package for the autoloader to find when we instantiate the class.
9
- This only works if we instantiate the class after all the plugins have loaded. That is why the class produces an error if the plugin calls a class but has not loaded all the plugins yet.
10
 
11
  It diverges from the default Composer autoloader setup in the following ways:
12
 
13
- * It creates an `autoload_classmap_package.php` file in the `vendor/composer` directory.
14
  * This file includes the version numbers from each package that is used.
15
  * The autoloader will only load the latest version of the library no matter what plugin loads the library.
16
  * Only call the library classes after all the plugins have loaded and the `plugins_loaded` action has fired.
@@ -29,6 +28,8 @@ In your project's `composer.json`, add the following lines:
29
  }
30
  ```
31
 
 
 
32
  After the next update/install, you will have a `vendor/autoload_packages.php` file.
33
  Load the file in your plugin via main plugin file.
34
 
@@ -37,8 +38,22 @@ In the main plugin you will also need to include the files like this.
37
  require_once . plugin_dir_path( __FILE__ ) . '/vendor/autoload_packages.php';
38
  ```
39
 
 
 
 
 
 
 
 
 
40
 
41
- Current Limitations
 
42
  -----
43
 
44
- We currently only support packages that autoload via psr-4 definition in their package.
 
 
 
 
 
6
  The problem this autoloader is trying to solve is conflicts that arise when two or more plugins use the same package, but one of the plugins uses an older version of said package.
7
 
8
  This is solved by keeping an in memory map of all the different classes that can be loaded, and updating the map with the path to the latest version of the package for the autoloader to find when we instantiate the class.
 
9
 
10
  It diverges from the default Composer autoloader setup in the following ways:
11
 
12
+ * It creates `jetpack_autoload_classmap.php` and `jetpack_autoload_filemap.php` files in the `vendor/composer` directory.
13
  * This file includes the version numbers from each package that is used.
14
  * The autoloader will only load the latest version of the library no matter what plugin loads the library.
15
  * Only call the library classes after all the plugins have loaded and the `plugins_loaded` action has fired.
28
  }
29
  ```
30
 
31
+ Your project must use the default composer vendor directory, `vendor`.
32
+
33
  After the next update/install, you will have a `vendor/autoload_packages.php` file.
34
  Load the file in your plugin via main plugin file.
35
 
38
  require_once . plugin_dir_path( __FILE__ ) . '/vendor/autoload_packages.php';
39
  ```
40
 
41
+ Working with Development Versions of Packages
42
+ -----
43
+
44
+ The autoloader will attempt to use the package with the latest semantic version.
45
+
46
+ During development, you can force the autoloader to use development package versions by setting the `JETPACK_AUTOLOAD_DEV` constant to true. When `JETPACK_AUTOLOAD_DEV` is true, the autoloader will prefer the following versions over semantic version:
47
+ - `9999999-dev`
48
+ - Versions with a `dev-` prefix.
49
 
50
+
51
+ Autoloader Limitations
52
  -----
53
 
54
+ Plugin Updates
55
+
56
+ When moving a package class file, renaming a package class file, or changing a package class namespace, make sure that the class will not be loaded after a plugin update.
57
+
58
+ The autoloader builds the in memory classmap as soon as the autoloader is loaded. The package class file paths in the map are not updated after a plugin update. If a plugins's package class files are moved during a plugin update and a moved file is autoloaded after the update, an error will occur.
59
+
vendor/automattic/jetpack-autoloader/composer.json CHANGED
@@ -4,7 +4,7 @@
4
  "type": "composer-plugin",
5
  "license": "GPL-2.0-or-later",
6
  "require": {
7
- "composer-plugin-api": "^1.1"
8
  },
9
  "require-dev": {
10
  "phpunit/phpunit": "^5.7 || ^6.5 || ^7.5"
4
  "type": "composer-plugin",
5
  "license": "GPL-2.0-or-later",
6
  "require": {
7
+ "composer-plugin-api": "^1.1 || ^2.0"
8
  },
9
  "require-dev": {
10
  "phpunit/phpunit": "^5.7 || ^6.5 || ^7.5"
vendor/automattic/jetpack-autoloader/src/AutoloadGenerator.php CHANGED
@@ -1,4 +1,4 @@
1
- <?php
2
  /**
3
  * Autoloader Generator.
4
  *
@@ -11,7 +11,6 @@
11
  // phpcs:disable PHPCompatibility.Keywords.NewKeywords.t_namespaceFound
12
  // phpcs:disable PHPCompatibility.Keywords.NewKeywords.t_dirFound
13
  // phpcs:disable WordPress.Files.FileName.InvalidClassFileName
14
- // phpcs:disable WordPress.Files.FileName.NotHyphenatedLowercase
15
  // phpcs:disable WordPress.Files.FileName.InvalidClassFileName
16
  // phpcs:disable WordPress.PHP.DevelopmentFunctions.error_log_var_export
17
  // phpcs:disable WordPress.WP.AlternativeFunctions.file_system_read_file_put_contents
@@ -39,6 +38,15 @@ use Composer\Util\Filesystem;
39
  */
40
  class AutoloadGenerator extends BaseGenerator {
41
 
 
 
 
 
 
 
 
 
 
42
  /**
43
  * Instantiate an AutoloadGenerator object.
44
  *
@@ -57,7 +65,7 @@ class AutoloadGenerator extends BaseGenerator {
57
  * @param InstallationManager $installationManager Manager for installing packages.
58
  * @param string $targetDir Path to the current target directory.
59
  * @param bool $scanPsr0Packages Whether to search for packages. Currently hard coded to always be false.
60
- * @param string $suffix The autoloader suffix, ignored since we want our autoloader to only be included once.
61
  */
62
  public function dump(
63
  Config $config,
@@ -83,16 +91,38 @@ class AutoloadGenerator extends BaseGenerator {
83
  $classMap = $this->getClassMap( $autoloads, $filesystem, $vendorPath, $basePath );
84
  $fileMap = $this->getFileMap( $autoloads, $filesystem, $vendorPath, $basePath );
85
 
 
 
 
86
  // Generate the files.
87
- file_put_contents( $targetDir . '/autoload_classmap_package.php', $this->getAutoloadClassmapPackagesFile( $classMap ) );
88
- $this->io->writeError( '<info>Generated ' . $targetDir . '/autoload_classmap_package.php</info>', true );
89
 
90
- file_put_contents( $targetDir . '/autoload_files_package.php', $this->getAutoloadFilesPackagesFile( $fileMap ) );
91
- $this->io->writeError( '<info>Generated ' . $targetDir . '/autoload_files_package.php</info>', true );
92
 
93
- file_put_contents( $vendorPath . '/autoload_packages.php', $this->getAutoloadPackageFile( $suffix ) );
94
  $this->io->writeError( '<info>Generated ' . $vendorPath . '/autoload_packages.php</info>', true );
95
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
96
  }
97
 
98
  /**
@@ -156,7 +186,7 @@ class AutoloadGenerator extends BaseGenerator {
156
  $paths = is_array( $paths ) ? $paths : array( $paths );
157
  foreach ( $paths as $path ) {
158
  $relativePath = empty( $installPath ) ? ( empty( $path ) ? '.' : $path ) : $installPath . '/' . $path;
159
- $autoloads[ $this->getFileIdentifier( $package, $path ) ] = array(
160
  'path' => $relativePath,
161
  'version' => $package->getVersion(), // Version of the file comes from the package - should we try to parse it?
162
  );
@@ -313,45 +343,23 @@ INCLUDE_FILEMAP;
313
  /**
314
  * Generate the PHP that will be used in the autoload_packages.php files.
315
  *
316
- * @param string $suffix Unique suffix added to the jetpack_enqueue_packages function.
 
317
  *
318
  * @return string
319
  */
320
- private function getAutoloadPackageFile( $suffix ) {
321
- $sourceLoader = fopen( __DIR__ . '/autoload.php', 'r' );
322
- $file_contents = stream_get_contents( $sourceLoader );
323
- $file_contents .= <<<INCLUDE_FILES
324
- /**
325
- * Prepare all the classes for autoloading.
326
- */
327
- function enqueue_packages_$suffix() {
328
- \$class_map = require_once dirname( __FILE__ ) . '/composer/autoload_classmap_package.php';
329
- foreach ( \$class_map as \$class_name => \$class_info ) {
330
- enqueue_package_class( \$class_name, \$class_info['version'], \$class_info['path'] );
331
- }
332
-
333
- \$autoload_file = __DIR__ . '/composer/autoload_files_package.php';
334
-
335
- \$includeFiles = file_exists( \$autoload_file )
336
- ? require \$autoload_file
337
- : array();
338
-
339
- foreach ( \$includeFiles as \$fileIdentifier => \$file_data ) {
340
- enqueue_package_file( \$fileIdentifier, \$file_data[ 'version' ], \$file_data[ 'path' ] );
341
- }
342
-
343
- if ( function_exists( 'has_action') && function_exists( 'did_action' ) && ! did_action( 'plugins_loaded' ) && false === has_action( 'plugins_loaded', __NAMESPACE__ . '\\file_loader' ) ) {
344
- // Add action if it has not been added and has not happened yet.
345
- // Priority -10 to load files as early as possible in case plugins try to use them during `plugins_loaded`.
346
- add_action( 'plugins_loaded', __NAMESPACE__ . '\\file_loader', 0, -10 );
347
- } elseif( ! function_exists( 'did_action' ) || did_action( 'plugins_loaded' ) ) {
348
- file_loader(); // Either WordPress is not loaded or plugin is doing it wrong. Either way we'll load the files so nothing breaks.
349
- }
350
- }
351
- enqueue_packages_$suffix();
352
-
353
- INCLUDE_FILES;
354
-
355
- return $file_contents;
356
  }
357
  }
1
+ <?php // phpcs:ignore WordPress.Files.FileName
2
  /**
3
  * Autoloader Generator.
4
  *
11
  // phpcs:disable PHPCompatibility.Keywords.NewKeywords.t_namespaceFound
12
  // phpcs:disable PHPCompatibility.Keywords.NewKeywords.t_dirFound
13
  // phpcs:disable WordPress.Files.FileName.InvalidClassFileName
 
14
  // phpcs:disable WordPress.Files.FileName.InvalidClassFileName
15
  // phpcs:disable WordPress.PHP.DevelopmentFunctions.error_log_var_export
16
  // phpcs:disable WordPress.WP.AlternativeFunctions.file_system_read_file_put_contents
38
  */
39
  class AutoloadGenerator extends BaseGenerator {
40
 
41
+ const COMMENT = <<<AUTOLOADER_COMMENT
42
+ /**
43
+ * This file was automatically generated by automattic/jetpack-autoloader.
44
+ *
45
+ * @package automattic/jetpack-autoloader
46
+ */
47
+
48
+ AUTOLOADER_COMMENT;
49
+
50
  /**
51
  * Instantiate an AutoloadGenerator object.
52
  *
65
  * @param InstallationManager $installationManager Manager for installing packages.
66
  * @param string $targetDir Path to the current target directory.
67
  * @param bool $scanPsr0Packages Whether to search for packages. Currently hard coded to always be false.
68
+ * @param string $suffix The autoloader suffix.
69
  */
70
  public function dump(
71
  Config $config,
91
  $classMap = $this->getClassMap( $autoloads, $filesystem, $vendorPath, $basePath );
92
  $fileMap = $this->getFileMap( $autoloads, $filesystem, $vendorPath, $basePath );
93
 
94
+ // Remove a file that was generated in versions 2.0.0 to 2.1.0.
95
+ $filesystem->remove( $vendorPath . '/autoload_functions.php' );
96
+
97
  // Generate the files.
98
+ file_put_contents( $targetDir . '/jetpack_autoload_classmap.php', $this->getAutoloadClassmapPackagesFile( $classMap ) );
99
+ $this->io->writeError( '<info>Generated ' . $targetDir . '/jetpack_autoload_classmap.php</info>', true );
100
 
101
+ file_put_contents( $targetDir . '/jetpack_autoload_filemap.php', $this->getAutoloadFilesPackagesFile( $fileMap ) );
102
+ $this->io->writeError( '<info>Generated ' . $targetDir . '/jetpack_autoload_filemap.php</info>', true );
103
 
104
+ file_put_contents( $vendorPath . '/autoload_packages.php', $this->getAutoloadPackageFile( 'autoload.php', $suffix ) );
105
  $this->io->writeError( '<info>Generated ' . $vendorPath . '/autoload_packages.php</info>', true );
106
 
107
+ $jetpackAutoloaderDir = $vendorPath . '/jetpack-autoloader';
108
+ $filesystem->ensureDirectoryExists( $jetpackAutoloaderDir );
109
+ file_put_contents( $jetpackAutoloaderDir . '/autoload_functions.php', $this->getAutoloadPackageFile( 'functions.php', $suffix ) );
110
+ $this->io->writeError( '<info>Generated ' . $jetpackAutoloaderDir . '/jetpack-autoloader/autoload_functions.php</info>', true );
111
+
112
+ file_put_contents( $vendorPath . '/class-autoloader-handler.php', $this->getAutoloadPackageFile( 'class-autoloader-handler.php', $suffix ) );
113
+ $this->io->writeError( '<info>Generated ' . $vendorPath . '/class-autoloader-handler.php</info>', true );
114
+
115
+ file_put_contents( $vendorPath . '/class-classes-handler.php', $this->getAutoloadPackageFile( 'class-classes-handler.php', $suffix ) );
116
+ $this->io->writeError( '<info>Generated ' . $vendorPath . '/class-classes-handler.php</info>', true );
117
+
118
+ file_put_contents( $vendorPath . '/class-files-handler.php', $this->getAutoloadPackageFile( 'class-files-handler.php', $suffix ) );
119
+ $this->io->writeError( '<info>Generated ' . $vendorPath . '/class-files-handler.php</info>', true );
120
+
121
+ file_put_contents( $vendorPath . '/class-plugins-handler.php', $this->getAutoloadPackageFile( 'class-plugins-handler.php', $suffix ) );
122
+ $this->io->writeError( '<info>Generated ' . $vendorPath . '/class-plugins-handler.php</info>', true );
123
+
124
+ file_put_contents( $vendorPath . '/class-version-selector.php', $this->getAutoloadPackageFile( 'class-version-selector.php', $suffix ) );
125
+ $this->io->writeError( '<info>Generated ' . $vendorPath . '/class-version-selector.php</info>', true );
126
  }
127
 
128
  /**
186
  $paths = is_array( $paths ) ? $paths : array( $paths );
187
  foreach ( $paths as $path ) {
188
  $relativePath = empty( $installPath ) ? ( empty( $path ) ? '.' : $path ) : $installPath . '/' . $path;
189
+ $autoloads[ $this->getFileIdentifier( $package, $path ) ] = array(
190
  'path' => $relativePath,
191
  'version' => $package->getVersion(), // Version of the file comes from the package - should we try to parse it?
192
  );
343
  /**
344
  * Generate the PHP that will be used in the autoload_packages.php files.
345
  *
346
+ * @param String $filename a file to prepare.
347
+ * @param String $suffix Unique suffix used in the namespace.
348
  *
349
  * @return string
350
  */
351
+ private function getAutoloadPackageFile( $filename, $suffix ) {
352
+ $header = self::COMMENT;
353
+ $header .= PHP_EOL;
354
+ $header .= 'namespace Automattic\Jetpack\Autoloader\jp' . $suffix . ';';
355
+ $header .= PHP_EOL . PHP_EOL;
356
+
357
+ $sourceLoader = fopen( __DIR__ . '/' . $filename, 'r' );
358
+ $file_contents = stream_get_contents( $sourceLoader );
359
+ return str_replace(
360
+ '/* HEADER */',
361
+ $header,
362
+ $file_contents
363
+ );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
364
  }
365
  }
vendor/automattic/jetpack-autoloader/src/CustomAutoloaderPlugin.php CHANGED
@@ -1,4 +1,4 @@
1
- <?php
2
  /**
3
  * Custom Autoloader Composer Plugin, hooks into composer events to generate the custom autoloader.
4
  *
@@ -53,10 +53,39 @@ class CustomAutoloaderPlugin implements PluginInterface, EventSubscriberInterfac
53
  $this->io = $io;
54
  }
55
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
56
  /**
57
  * Tell composer to listen for events and do something with them.
58
  *
59
- * @return array List of succribed events.
60
  */
61
  public static function getSubscribedEvents() {
62
  return array(
@@ -71,11 +100,19 @@ class CustomAutoloaderPlugin implements PluginInterface, EventSubscriberInterfac
71
  */
72
  public function postAutoloadDump( Event $event ) {
73
 
 
 
 
 
 
 
 
 
 
74
  $installationManager = $this->composer->getInstallationManager();
75
  $repoManager = $this->composer->getRepositoryManager();
76
  $localRepo = $repoManager->getLocalRepository();
77
  $package = $this->composer->getPackage();
78
- $config = $this->composer->getConfig();
79
  $optimize = true;
80
  $suffix = $config->get( 'autoloader-suffix' )
81
  ? $config->get( 'autoloader-suffix' )
1
+ <?php //phpcs:ignore WordPress.Files.FileName.NotHyphenatedLowercase
2
  /**
3
  * Custom Autoloader Composer Plugin, hooks into composer events to generate the custom autoloader.
4
  *
53
  $this->io = $io;
54
  }
55
 
56
+ /**
57
+ * Do nothing.
58
+ * phpcs:disable VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
59
+ *
60
+ * @param Composer $composer Composer object.
61
+ * @param IOInterface $io IO object.
62
+ */
63
+ public function deactivate( Composer $composer, IOInterface $io ) {
64
+ /*
65
+ * Intentionally left empty. This is a PluginInterface method.
66
+ * phpcs:enable VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
67
+ */
68
+ }
69
+
70
+ /**
71
+ * Do nothing.
72
+ * phpcs:disable VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
73
+ *
74
+ * @param Composer $composer Composer object.
75
+ * @param IOInterface $io IO object.
76
+ */
77
+ public function uninstall( Composer $composer, IOInterface $io ) {
78
+ /*
79
+ * Intentionally left empty. This is a PluginInterface method.
80
+ * phpcs:enable VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
81
+ */
82
+ }
83
+
84
+
85
  /**
86
  * Tell composer to listen for events and do something with them.
87
  *
88
+ * @return array List of subscribed events.
89
  */
90
  public static function getSubscribedEvents() {
91
  return array(
100
  */
101
  public function postAutoloadDump( Event $event ) {
102
 
103
+ $config = $this->composer->getConfig();
104
+
105
+ if ( 'vendor' !== $config->raw()['config']['vendor-dir'] ) {
106
+ $this->io->writeError( "\n<error>An error occurred while generating the autoloader files:", true );
107
+ $this->io->writeError( 'The project\'s composer.json or composer environment set a non-default vendor directory.', true );
108
+ $this->io->writeError( 'The default composer vendor directory must be used.</error>', true );
109
+ exit();
110
+ }
111
+
112
  $installationManager = $this->composer->getInstallationManager();
113
  $repoManager = $this->composer->getRepositoryManager();
114
  $localRepo = $repoManager->getLocalRepository();
115
  $package = $this->composer->getPackage();
 
116
  $optimize = true;
117
  $suffix = $config->get( 'autoloader-suffix' )
118
  ? $config->get( 'autoloader-suffix' )
vendor/automattic/jetpack-autoloader/src/autoload.php CHANGED
@@ -1,178 +1,6 @@
1
  <?php
2
- /**
3
- * This file `autoload_packages.php`was generated by automattic/jetpack-autoloader.
4
- *
5
- * From your plugin include this file with:
6
- * require_once . plugin_dir_path( __FILE__ ) . '/vendor/autoload_packages.php';
7
- *
8
- * @package automattic/jetpack-autoloader
9
- */
10
 
11
- // phpcs:disable PHPCompatibility.LanguageConstructs.NewLanguageConstructs.t_ns_separatorFound
12
- // phpcs:disable PHPCompatibility.Keywords.NewKeywords.t_namespaceFound
13
- // phpcs:disable PHPCompatibility.Keywords.NewKeywords.t_ns_cFound
14
 
15
- namespace Automattic\Jetpack\Autoloader;
16
-
17
- if ( ! function_exists( __NAMESPACE__ . '\enqueue_package_class' ) ) {
18
- global $jetpack_packages_classes;
19
-
20
- if ( ! is_array( $jetpack_packages_classes ) ) {
21
- $jetpack_packages_classes = array();
22
- }
23
- /**
24
- * Adds the version of a package to the $jetpack_packages global array so that
25
- * the autoloader is able to find it.
26
- *
27
- * @param string $class_name Name of the class that you want to autoload.
28
- * @param string $version Version of the class.
29
- * @param string $path Absolute path to the class so that we can load it.
30
- */
31
- function enqueue_package_class( $class_name, $version, $path ) {
32
- global $jetpack_packages_classes;
33
-
34
- if ( ! isset( $jetpack_packages_classes[ $class_name ] ) ) {
35
- $jetpack_packages_classes[ $class_name ] = array(
36
- 'version' => $version,
37
- 'path' => $path,
38
- );
39
-
40
- return;
41
- }
42
- // If we have a @dev version set always use that one!
43
- if ( 'dev-' === substr( $jetpack_packages_classes[ $class_name ]['version'], 0, 4 ) ) {
44
- return;
45
- }
46
-
47
- // Always favour the @dev version. Since that version is the same as bleeding edge.
48
- // We need to make sure that we don't do this in production!
49
- if ( 'dev-' === substr( $version, 0, 4 ) ) {
50
- $jetpack_packages_classes[ $class_name ] = array(
51
- 'version' => $version,
52
- 'path' => $path,
53
- );
54
-
55
- return;
56
- }
57
- // Set the latest version!
58
- if ( version_compare( $jetpack_packages_classes[ $class_name ]['version'], $version, '<' ) ) {
59
- $jetpack_packages_classes[ $class_name ] = array(
60
- 'version' => $version,
61
- 'path' => $path,
62
- );
63
- }
64
- }
65
- }
66
-
67
- if ( ! function_exists( __NAMESPACE__ . '\enqueue_package_file' ) ) {
68
- global $jetpack_packages_files;
69
-
70
- if ( ! is_array( $jetpack_packages_files ) ) {
71
- $jetpack_packages_files = array();
72
- }
73
- /**
74
- * Adds the version of a package file to the $jetpack_packages_files global array so that
75
- * we can load the most recent version after 'plugins_loaded'.
76
- *
77
- * @param string $file_identifier Unique id to file assigned by composer based on package name and filename.
78
- * @param string $version Version of the file.
79
- * @param string $path Absolute path to the file so that we can load it.
80
- */
81
- function enqueue_package_file( $file_identifier, $version, $path ) {
82
- global $jetpack_packages_files;
83
-
84
- if ( ! isset( $jetpack_packages_files[ $file_identifier ] ) ) {
85
- $jetpack_packages_files[ $file_identifier ] = array(
86
- 'version' => $version,
87
- 'path' => $path,
88
- );
89
-
90
- return;
91
- }
92
- // If we have a @dev version set always use that one!
93
- if ( 'dev-' === substr( $jetpack_packages_files[ $file_identifier ]['version'], 0, 4 ) ) {
94
- return;
95
- }
96
-
97
- // Always favour the @dev version. Since that version is the same as bleeding edge.
98
- // We need to make sure that we don't do this in production!
99
- if ( 'dev-' === substr( $version, 0, 4 ) ) {
100
- $jetpack_packages_files[ $file_identifier ] = array(
101
- 'version' => $version,
102
- 'path' => $path,
103
- );
104
-
105
- return;
106
- }
107
- // Set the latest version!
108
- if ( version_compare( $jetpack_packages_files[ $file_identifier ]['version'], $version, '<' ) ) {
109
- $jetpack_packages_files[ $file_identifier ] = array(
110
- 'version' => $version,
111
- 'path' => $path,
112
- );
113
- }
114
- }
115
- }
116
-
117
- if ( ! function_exists( __NAMESPACE__ . '\file_loader' ) ) {
118
- /**
119
- * Include latest version of all enqueued files. Should be called after all plugins are loaded.
120
- */
121
- function file_loader() {
122
- global $jetpack_packages_files;
123
- foreach ( $jetpack_packages_files as $file_identifier => $file_data ) {
124
- if ( empty( $GLOBALS['__composer_autoload_files'][ $file_identifier ] ) ) {
125
- require $file_data['path'];
126
-
127
- $GLOBALS['__composer_autoload_files'][ $file_identifier ] = true;
128
- }
129
- }
130
- }
131
- }
132
-
133
- if ( ! function_exists( __NAMESPACE__ . '\autoloader' ) ) {
134
- /**
135
- * Used for autoloading jetpack packages.
136
- *
137
- * @param string $class_name Class Name to load.
138
- */
139
- function autoloader( $class_name ) {
140
- global $jetpack_packages_classes;
141
-
142
- if ( isset( $jetpack_packages_classes[ $class_name ] ) ) {
143
- if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {
144
- // TODO ideally we shouldn't skip any of these, see: https://github.com/Automattic/jetpack/pull/12646.
145
- $ignore = in_array(
146
- $class_name,
147
- array(
148
- 'Automattic\Jetpack\Connection\Manager',
149
- 'Jetpack_Options',
150
- ),
151
- true
152
- );
153
-
154
- if ( ! $ignore && function_exists( 'did_action' ) && ! did_action( 'plugins_loaded' ) ) {
155
- _doing_it_wrong(
156
- esc_html( $class_name ),
157
- sprintf(
158
- /* translators: %s Name of a PHP Class */
159
- esc_html__( 'Not all plugins have loaded yet but we requested the class %s', 'jetpack' ),
160
- // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
161
- $class_name
162
- ),
163
- esc_html( $jetpack_packages_classes[ $class_name ]['version'] )
164
- );
165
- }
166
- }
167
-
168
- require_once $jetpack_packages_classes[ $class_name ]['path'];
169
-
170
- return true;
171
- }
172
-
173
- return false;
174
- }
175
-
176
- // Add the jetpack autoloader.
177
- spl_autoload_register( __NAMESPACE__ . '\autoloader' );
178
- }
1
  <?php
2
+ /* HEADER */ // phpcs:ignore
 
 
 
 
 
 
 
3
 
4
+ require_once trailingslashit( dirname( __FILE__ ) ) . 'jetpack-autoloader/autoload_functions.php';
 
 
5
 
6
+ set_up_autoloader();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/automattic/jetpack-autoloader/src/class-autoloader-handler.php ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /* HEADER */ // phpcs:ignore
3
+
4
+ /**
5
+ * This class selects the package version for the autoloader.
6
+ */
7
+ class Autoloader_Handler {
8
+
9
+ // The name of the autoloader function registered by v1.* autoloaders.
10
+ const V1_AUTOLOADER_NAME = 'Automattic\Jetpack\Autoloader\autoloader';
11
+
12
+ /*
13
+ * The autoloader function for v2.* autoloaders is named __NAMESPACE__ . \autoloader.
14
+ * The namespace is defined in AutoloadGenerator as
15
+ * 'Automattic\Jetpack\Autoloader\jp' plus a unique suffix.
16
+ */
17
+ const V2_AUTOLOADER_BASE = 'Automattic\Jetpack\Autoloader\jp';
18
+
19
+ const AUTOLOAD_GENERATOR_CLASS_NAME = 'Automattic\Jetpack\Autoloader\AutoloadGenerator';
20
+
21
+ /**
22
+ * The Plugins_Handler object.
23
+ *
24
+ * @var Plugins_Handler
25
+ */
26
+ private $plugins_handler = null;
27
+
28
+ /**
29
+ * The Version_Selector object.
30
+ *
31
+ * @var Version_Selector
32
+ */
33
+ private $version_selector = null;
34
+
35
+ /**
36
+ * The constructor.
37
+ *
38
+ * @param Plugins_Handler $plugins_handler The Plugins_Handler object.
39
+ * @param Version_Selector $version_selector The Version_Selector object.
40
+ */
41
+ public function __construct( $plugins_handler, $version_selector ) {
42
+ $this->plugins_handler = $plugins_handler;
43
+ $this->version_selector = $version_selector;
44
+ }
45
+
46
+ /**
47
+ * Finds the latest installed autoloader.
48
+ */
49
+ public function find_latest_autoloader() {
50
+ global $jetpack_autoloader_latest_version;
51
+
52
+ $current_autoloader_path = trailingslashit( dirname( __FILE__ ) ) . 'autoload_packages.php';
53
+ $current_autoloader_path = str_replace( '\\', '/', $current_autoloader_path );
54
+
55
+ $selected_autoloader_version = null;
56
+ $selected_autoloader_path = null;
57
+
58
+ $active_plugins_paths = $this->plugins_handler->get_all_active_plugins_paths();
59
+
60
+ foreach ( $active_plugins_paths as $plugin_path ) {
61
+ $classmap_path = trailingslashit( $plugin_path ) . 'vendor/composer/jetpack_autoload_classmap.php';
62
+
63
+ if ( file_exists( $classmap_path ) ) {
64
+ $packages = require $classmap_path;
65
+
66
+ $compare_version = $packages[ self::AUTOLOAD_GENERATOR_CLASS_NAME ]['version'];
67
+ $compare_path = trailingslashit( $plugin_path ) . 'vendor/autoload_packages.php';
68
+
69
+ if ( $this->version_selector->is_version_update_required( $selected_autoloader_version, $compare_version ) ) {
70
+ $selected_autoloader_version = $compare_version;
71
+ $selected_autoloader_path = $compare_path;
72
+ }
73
+ }
74
+ }
75
+
76
+ $jetpack_autoloader_latest_version = $selected_autoloader_version;
77
+
78
+ // $current_autoloader_path is already loaded
79
+ if ( $current_autoloader_path !== $selected_autoloader_path ) {
80
+ require $selected_autoloader_path;
81
+ }
82
+ }
83
+
84
+ /**
85
+ * Get this autoloader's package version.
86
+ *
87
+ * @return String The autoloader's package version.
88
+ */
89
+ public function get_current_autoloader_version() {
90
+ $classmap_file = trailingslashit( dirname( __FILE__ ) ) . 'composer/jetpack_autoload_classmap.php';
91
+ $autoloader_packages = require $classmap_file;
92
+
93
+ return $autoloader_packages[ self::AUTOLOAD_GENERATOR_CLASS_NAME ]['version'];
94
+ }
95
+
96
+
97
+ /**
98
+ * Updates the spl autoloader chain:
99
+ * - Registers this namespace's autoloader function.
100
+ * - If a v1 autoloader function is registered, moves it to the end of the chain.
101
+ * - Removes any other v2 autoloader functions that have already been registered. This
102
+ * can occur when the autoloader is being reset by an activating plugin.
103
+ */
104
+ public function update_autoloader_chain() {
105
+ spl_autoload_register( __NAMESPACE__ . '\autoloader' );
106
+
107
+ $autoload_chain = spl_autoload_functions();
108
+
109
+ foreach ( $autoload_chain as $autoloader ) {
110
+ if ( ! is_string( $autoloader ) ) {
111
+ /*
112
+ * The Jetpack Autoloader functions are registered as strings, so
113
+ * just continue if $autoloader isn't a string.
114
+ */
115
+ continue;
116
+ }
117
+
118
+ if ( self::V1_AUTOLOADER_NAME === $autoloader ) {
119
+ // Move the v1.* autoloader function to the end of the spl autoloader chain.
120
+ spl_autoload_unregister( $autoloader );
121
+ spl_autoload_register( $autoloader );
122
+
123
+ } elseif (
124
+ self::V2_AUTOLOADER_BASE === substr( $autoloader, 0, strlen( self::V2_AUTOLOADER_BASE ) )
125
+ && __NAMESPACE__ !== substr( $autoloader, 0, strlen( __NAMESPACE__ ) )
126
+ ) {
127
+ // Unregister any other v2.* autoloader functions if they're in the chain.
128
+ spl_autoload_unregister( $autoloader );
129
+ }
130
+ }
131
+ }
132
+ }
vendor/automattic/jetpack-autoloader/src/class-classes-handler.php ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /* HEADER */ // phpcs:ignore
3
+
4
+ /**
5
+ * This class selects the package versions for the package classes.
6
+ */
7
+ class Classes_Handler {
8
+
9
+ /**
10
+ * The Plugins_Handler object.
11
+ *
12
+ * @var Plugins_Handler
13
+ */
14
+ private $plugins_handler = null;
15
+
16
+ /**
17
+ * The Version_Selector object.
18
+ *
19
+ * @var Version_Selector
20
+ */
21
+ private $version_selector = null;
22
+
23
+ /**
24
+ * The constructor.
25
+ *
26
+ * @param Plugins_Handler $plugins_handler The Plugins_Handler object.
27
+ * @param Version_Selector $version_selector The Version_Selector object.
28
+ */
29
+ public function __construct( $plugins_handler, $version_selector ) {
30
+ $this->plugins_handler = $plugins_handler;
31
+ $this->version_selector = $version_selector;
32
+ }
33
+
34
+ /**
35
+ * Adds the version of a package to the $jetpack_packages_classmap global
36
+ * array so that the autoloader is able to find it.
37
+ *
38
+ * @param string $class_name Name of the class that you want to autoload.
39
+ * @param string $version Version of the class.
40
+ * @param string $path Absolute path to the class so that we can load it.
41
+ */
42
+ public function enqueue_package_class( $class_name, $version, $path ) {
43
+ global $jetpack_packages_classmap;
44
+
45
+ if ( isset( $jetpack_packages_classmap[ $class_name ]['version'] ) ) {
46
+ $selected_version = $jetpack_packages_classmap[ $class_name ]['version'];
47
+ } else {
48
+ $selected_version = null;
49
+ }
50
+
51
+ if ( $this->version_selector->is_version_update_required( $selected_version, $version ) ) {
52
+ $jetpack_packages_classmap[ $class_name ] = array(
53
+ 'version' => $version,
54
+ 'path' => $path,
55
+ );
56
+ }
57
+ }
58
+
59
+ /**
60
+ * Creates the path to the plugin's classmap file. The classmap filename is the filename
61
+ * generated by Jetpack Autoloader version >= 2.0.
62
+ *
63
+ * @param String $plugin_path The plugin path.
64
+ *
65
+ * @return String the classmap path.
66
+ */
67
+ public function create_classmap_path( $plugin_path ) {
68
+ return trailingslashit( $plugin_path ) . 'vendor/composer/jetpack_autoload_classmap.php';
69
+ }
70
+
71
+ /**
72
+ * Initializes the classmap.
73
+ */
74
+ public function set_class_paths() {
75
+ $active_plugins_paths = $this->plugins_handler->get_all_active_plugins_paths();
76
+ $classmap_paths = array_map( array( $this, 'create_classmap_path' ), $active_plugins_paths );
77
+
78
+ foreach ( $classmap_paths as $path ) {
79
+ if ( is_readable( $path ) ) {
80
+ $class_map = require $path;
81
+
82
+ if ( is_array( $class_map ) ) {
83
+ foreach ( $class_map as $class_name => $class_info ) {
84
+ $this->enqueue_package_class( $class_name, $class_info['version'], $class_info['path'] );
85
+ }
86
+ }
87
+ }
88
+ }
89
+ }
90
+ }
vendor/automattic/jetpack-autoloader/src/class-files-handler.php ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /* HEADER */ // phpcs:ignore
3
+
4
+ /**
5
+ * This class selects the package versions for the package files.
6
+ */
7
+ class Files_Handler {
8
+
9
+ /**
10
+ * The Plugins_Handler object.
11
+ *
12
+ * @var Plugins_Handler
13
+ */
14
+ private $plugins_handler = null;
15
+
16
+ /**
17
+ * The Version_Selector object.
18
+ *
19
+ * @var Version_Selector
20
+ */
21
+ private $version_selector = null;
22
+
23
+ /**
24
+ * The constructor.
25
+ *
26
+ * @param Plugins_Handler $plugins_handler The Plugins_Handler object.
27
+ * @param Version_Selector $version_selector The Version_Selector object.
28
+ */
29
+ public function __construct( $plugins_handler, $version_selector ) {
30
+ $this->plugins_handler = $plugins_handler;
31
+ $this->version_selector = $version_selector;
32
+ }
33
+
34
+ /**
35
+ * Adds the version of a package file to the $jetpack_packages_filemap global
36
+ * array so that we can load the most recent version.
37
+ *
38
+ * @param string $file_identifier Unique id to file assigned by composer based on package name and filename.
39
+ * @param string $version Version of the file.
40
+ * @param string $path Absolute path to the file so that we can load it.
41
+ */
42
+ public function enqueue_package_file( $file_identifier, $version, $path ) {
43
+ global $jetpack_packages_filemap;
44
+
45
+ if ( isset( $jetpack_packages_filemap[ $file_identifier ]['version'] ) ) {
46
+ $selected_version = $jetpack_packages_filemap[ $file_identifier ]['version'];
47
+ } else {
48
+ $selected_version = null;
49
+ }
50
+
51
+ if ( $this->version_selector->is_version_update_required( $selected_version, $version ) ) {
52
+ $jetpack_packages_filemap[ $file_identifier ] = array(
53
+ 'version' => $version,
54
+ 'path' => $path,
55
+ );
56
+ }
57
+ }
58
+
59
+ /**
60
+ * Creates a path to the plugin's filemap. The filemap filename is the filename
61
+ * generated by Jetpack Autoloader version >= 2.0.
62
+ *
63
+ * @param String $plugin_path The plugin path.
64
+ *
65
+ * @return String The filemap path
66
+ */
67
+ public function create_filemap_path( $plugin_path ) {
68
+ return trailingslashit( $plugin_path ) . 'vendor/composer/jetpack_autoload_filemap.php';
69
+ }
70
+
71
+ /**
72
+ * Initializes the filemap.
73
+ */
74
+ public function set_file_paths() {
75
+ $active_plugin_paths = $this->plugins_handler->get_all_active_plugins_paths();
76
+ $filemap_paths = array_map( array( $this, 'create_filemap_path' ), $active_plugin_paths );
77
+
78
+ foreach ( $filemap_paths as $path ) {
79
+ if ( is_readable( $path ) ) {
80
+ $file_map = require $path;
81
+
82
+ if ( is_array( $file_map ) ) {
83
+ foreach ( $file_map as $file_identifier => $file_data ) {
84
+ $this->enqueue_package_file( $file_identifier, $file_data['version'], $file_data['path'] );
85
+ }
86
+ }
87
+ }
88
+ }
89
+ }
90
+
91
+ /**
92
+ * Include latest version of all enqueued files.
93
+ */
94
+ public function file_loader() {
95
+ global $jetpack_packages_filemap;
96
+ foreach ( $jetpack_packages_filemap as $file_identifier => $file_data ) {
97
+ if ( empty( $GLOBALS['__composer_autoload_files'][ $file_identifier ] ) ) {
98
+ require_once $file_data['path'];
99
+
100
+ $GLOBALS['__composer_autoload_files'][ $file_identifier ] = true;
101
+ }
102
+ }
103
+ }
104
+ }
vendor/automattic/jetpack-autoloader/src/class-plugins-handler.php ADDED
@@ -0,0 +1,150 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /* HEADER */ // phpcs:ignore
3
+
4
+ /**
5
+ * This class provides information about the current plugin and the site's active plugins.
6
+ */
7
+ class Plugins_Handler {
8
+
9
+ /**
10
+ * Returns an array containing the paths of all active plugins and all known activating plugins.
11
+ *
12
+ * @return array An array of plugin paths as strings or an empty array.
13
+ */
14
+ public function get_all_active_plugins_paths() {
15
+ global $jetpack_autoloader_activating_plugins_paths;
16
+
17
+ $active_plugins_paths = $this->get_active_plugins_paths();
18
+ $multisite_plugins_paths = $this->get_multisite_plugins_paths();
19
+ $active_plugins_paths = array_merge( $multisite_plugins_paths, $active_plugins_paths );
20
+
21
+ $activating_plugins_paths = $this->get_plugins_activating_via_request();
22
+ $activating_plugins_paths = array_unique( array_merge( $activating_plugins_paths, $jetpack_autoloader_activating_plugins_paths ) );
23
+
24
+ $plugins_paths = array_unique( array_merge( $active_plugins_paths, $activating_plugins_paths ) );
25
+
26
+ return $plugins_paths;
27
+ }
28
+
29
+ /**
30
+ * Returns an array containing the paths of the active sitewide plugins in a multisite environment.
31
+ *
32
+ * @return array The paths of the active sitewide plugins or an empty array.
33
+ */
34
+ protected function get_multisite_plugins_paths() {
35
+ $plugin_slugs = is_multisite()
36
+ ? array_keys( get_site_option( 'active_sitewide_plugins', array() ) )
37
+ : array();
38
+
39
+ $plugin_slugs = array_filter( $plugin_slugs, array( $this, 'is_directory_plugin' ) );
40
+ return array_map( array( $this, 'create_plugin_path' ), $plugin_slugs );
41
+ }
42
+
43
+ /**
44
+ * Returns an array containing the paths of the currently active plugins.
45
+ *
46
+ * @return array The active plugins' paths or an empty array.
47
+ */
48
+ protected function get_active_plugins_paths() {
49
+ $plugin_slugs = (array) get_option( 'active_plugins', array() );
50
+ $plugin_slugs = array_filter( $plugin_slugs, array( $this, 'is_directory_plugin' ) );
51
+ return array_map( array( $this, 'create_plugin_path' ), $plugin_slugs );
52
+ }
53
+
54
+ /**
55
+ * Adds the plugin directory from the WP_PLUGIN_DIR constant to the plugin slug.
56
+ *
57
+ * @param string $plugin_slug The plugin slug.
58
+ */
59
+ private function create_plugin_path( $plugin_slug ) {
60
+ $plugin_dir = str_replace( '\\', '/', WP_PLUGIN_DIR );
61
+ return trailingslashit( $plugin_dir ) . substr( $plugin_slug, 0, strrpos( $plugin_slug, '/' ) );
62
+ }
63
+
64
+ /**
65
+ * Ensure the plugin has its own directory and not a single-file plugin.
66
+ *
67
+ * @param string $plugin Plugin name, may be prefixed with "/".
68
+ *
69
+ * @return bool
70
+ */
71
+ public function is_directory_plugin( $plugin ) {
72
+ return strlen( $plugin ) > 1 && false !== strpos( $plugin, '/', 1 );
73
+ }
74
+
75
+ /**
76
+ * Checks whether the autoloader should be reset. The autoloader should be reset
77
+ * when a plugin is activating via a method other than a request, for example
78
+ * using WP-CLI. When this occurs, the activating plugin was not known when
79
+ * the autoloader selected the package versions for the classmap and filemap
80
+ * globals, so the autoloader must reselect the versions.
81
+ *
82
+ * If the current plugin is not already known, this method will add it to the
83
+ * $jetpack_autoloader_activating_plugins_paths global.
84
+ *
85
+ * @return boolean True if the autoloder must be reset, else false.
86
+ */
87
+ public function should_autoloader_reset() {
88
+ global $jetpack_autoloader_activating_plugins_paths;
89
+
90
+ $plugins_paths = $this->get_all_active_plugins_paths();
91
+ $current_plugin_path = $this->get_current_plugin_path();
92
+ $plugin_unknown = ! in_array( $current_plugin_path, $plugins_paths, true );
93
+
94
+ if ( $plugin_unknown ) {
95
+ // If the current plugin isn't known, add it to the activating plugins list.
96
+ $jetpack_autoloader_activating_plugins_paths[] = $current_plugin_path;
97
+ }
98
+
99
+ return $plugin_unknown;
100
+ }
101
+
102
+ /**
103
+ * Returns an array containing the names of plugins that are activating via a request.
104
+ *
105
+ * @return array An array of names of the activating plugins or an empty array.
106
+ */
107
+ private function get_plugins_activating_via_request() {
108
+
109
+ // phpcs:disable WordPress.Security.NonceVerification.Recommended
110
+
111
+ $action = isset( $_REQUEST['action'] ) ? $_REQUEST['action'] : false;
112
+ $plugin = isset( $_REQUEST['plugin'] ) ? $_REQUEST['plugin'] : false;
113
+ $nonce = isset( $_REQUEST['_wpnonce'] ) ? $_REQUEST['_wpnonce'] : false;
114
+
115
+ /**
116
+ * Note: we're not actually checking the nonce here becase it's too early
117
+ * in the execution. The pluggable functions are not yet loaded to give
118
+ * plugins a chance to plug their versions. Therefore we're doing the bare
119
+ * minimum: checking whether the nonce exists and it's in the right place.
120
+ * The request will fail later if the nonce doesn't pass the check.
121
+ */
122
+
123
+ // In case of a single plugin activation there will be a plugin slug.
124
+ if ( 'activate' === $action && ! empty( $nonce ) ) {
125
+ return array( $this->create_plugin_path( wp_unslash( $plugin ) ) );
126
+ }
127
+
128
+ $plugins = isset( $_REQUEST['checked'] ) ? $_REQUEST['checked'] : array();
129
+
130
+ // In case of bulk activation there will be an array of plugins.
131
+ if ( 'activate-selected' === $action && ! empty( $nonce ) ) {
132
+ $plugin_slugs = array_map( 'wp_unslash', $plugins );
133
+ return array_map( array( $this, 'create_plugin_path' ), $plugin_slugs );
134
+ }
135
+
136
+ // phpcs:enable WordPress.Security.NonceVerification.Recommended
137
+ return array();
138
+ }
139
+
140
+ /**
141
+ * Returns the path of the current plugin.
142
+ *
143
+ * @return string The path of the current plugin.
144
+ */
145
+ public function get_current_plugin_path() {
146
+ $vendor_path = str_replace( '\\', '/', dirname( __FILE__ ) );
147
+ // Path to the plugin's folder (the parent of the vendor folder).
148
+ return substr( $vendor_path, 0, strrpos( $vendor_path, '/' ) );
149
+ }
150
+ }
vendor/automattic/jetpack-autoloader/src/class-version-selector.php ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /* HEADER */ // phpcs:ignore
3
+
4
+ /**
5
+ * Used to select package versions.
6
+ */
7
+ class Version_Selector {
8
+
9
+ /**
10
+ * Checks whether the selected package version should be updated. Composer development
11
+ * package versions ('9999999-dev' or versions that start with 'dev-') are favored
12
+ * when the JETPACK_AUTOLOAD_DEV constant is set to true.
13
+ *
14
+ * @param String $selected_version The currently selected package version.
15
+ * @param String $compare_version The package version that is being evaluated to
16
+ * determine if the version needs to be updated.
17
+ *
18
+ * @return Boolean Returns true if the selected package version should be updated,
19
+ * else false.
20
+ */
21
+ public function is_version_update_required( $selected_version, $compare_version ) {
22
+ $use_dev_versions = defined( 'JETPACK_AUTOLOAD_DEV' ) && JETPACK_AUTOLOAD_DEV;
23
+
24
+ if ( is_null( $selected_version ) ) {
25
+ return true;
26
+ }
27
+
28
+ if ( $use_dev_versions && $this->is_package_version_dev( $selected_version ) ) {
29
+ return false;
30
+ }
31
+
32
+ if ( $this->is_package_version_dev( $compare_version ) ) {
33
+ if ( $use_dev_versions ) {
34
+ return true;
35
+ } else {
36
+ return false;
37
+ }
38
+ }
39
+
40
+ if ( version_compare( $selected_version, $compare_version, '<' ) ) {
41
+ return true;
42
+ }
43
+
44
+ return false;
45
+ }
46
+
47
+ /**
48
+ * Checks whether the given package version is a development version.
49
+ *
50
+ * @param String $version The package version.
51
+ *
52
+ * @return Boolean True if the version is a dev version, else false.
53
+ */
54
+ private function is_package_version_dev( $version ) {
55
+ if ( 'dev-' === substr( $version, 0, 4 ) || '9999999-dev' === $version ) {
56
+ return true;
57
+ }
58
+
59
+ return false;
60
+ }
61
+ }
vendor/automattic/jetpack-autoloader/src/functions.php ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /* HEADER */ // phpcs:ignore
3
+
4
+ global $jetpack_packages_classmap;
5
+ global $jetpack_packages_filemap;
6
+ global $jetpack_autoloader_activating_plugins_paths;
7
+
8
+ if ( ! is_array( $jetpack_packages_classmap ) ) {
9
+ $jetpack_packages_classmap = array();
10
+ }
11
+
12
+ if ( ! is_array( $jetpack_packages_filemap ) ) {
13
+ $jetpack_packages_filemap = array();
14
+ }
15
+
16
+ if ( ! is_array( $jetpack_autoloader_activating_plugins_paths ) ) {
17
+ $jetpack_autoloader_activating_plugins_paths = array();
18
+ }
19
+
20
+ /**
21
+ * Used for autoloading jetpack packages.
22
+ *
23
+ * @param string $class_name Class Name to load.
24
+ *
25
+ * @return Boolean Whether the class_name was found in the classmap.
26
+ */
27
+ function autoloader( $class_name ) {
28
+ global $jetpack_packages_classmap;
29
+
30
+ if ( isset( $jetpack_packages_classmap[ $class_name ] ) ) {
31
+ require_once $jetpack_packages_classmap[ $class_name ]['path'];
32
+ return true;
33
+ }
34
+
35
+ return false;
36
+ }
37
+
38
+ /**
39
+ * Used for running the code that initializes class and file maps.
40
+ *
41
+ * @param Plugins_Handler $plugins_handler The Plugins_Handler object.
42
+ * @param Version_Selector $version_selector The Version_Selector object.
43
+ */
44
+ function enqueue_files( $plugins_handler, $version_selector ) {
45
+ require_once __DIR__ . '/../class-classes-handler.php';
46
+ require_once __DIR__ . '/../class-files-handler.php';
47
+
48
+ $classes_handler = new Classes_Handler( $plugins_handler, $version_selector );
49
+ $classes_handler->set_class_paths();
50
+
51
+ $files_handler = new Files_Handler( $plugins_handler, $version_selector );
52
+ $files_handler->set_file_paths();
53
+
54
+ $files_handler->file_loader();
55
+ }
56
+
57
+ /**
58
+ * Finds the latest installed autoloader. If this is the latest autoloader, sets
59
+ * up the classmap and filemap.
60
+ */
61
+ function set_up_autoloader() {
62
+ global $jetpack_autoloader_latest_version;
63
+ global $jetpack_packages_classmap;
64
+
65
+ require_once __DIR__ . '/../class-plugins-handler.php';
66
+ require_once __DIR__ . '/../class-version-selector.php';
67
+ require_once __DIR__ . '/../class-autoloader-handler.php';
68
+
69
+ $plugins_handler = new Plugins_Handler();
70
+ $version_selector = new Version_Selector();
71
+ $autoloader_handler = new Autoloader_Handler( $plugins_handler, $version_selector );
72
+
73
+ if ( $plugins_handler->should_autoloader_reset() ) {
74
+ /*
75
+ * The autoloader must be reset when an activating plugin that was
76
+ * previously unknown is detected.
77
+ */
78
+ $jetpack_autoloader_latest_version = null;
79
+ $jetpack_packages_classmap = array();
80
+ }
81
+
82
+ // Find the latest autoloader.
83
+ if ( ! $jetpack_autoloader_latest_version ) {
84
+ $autoloader_handler->find_latest_autoloader();
85
+ }
86
+
87
+ $current_autoloader_version = $autoloader_handler->get_current_autoloader_version();
88
+
89
+ // This is the latest autoloader, so generate the classmap and filemap and register the autoloader function.
90
+ if ( empty( $jetpack_packages_classmap ) && $current_autoloader_version === $jetpack_autoloader_latest_version ) {
91
+ enqueue_files( $plugins_handler, $version_selector );
92
+ $autoloader_handler->update_autoloader_chain();
93
+ }
94
+ }
vendor/automattic/jetpack-config/src/class-config.php CHANGED
@@ -11,7 +11,6 @@ use Automattic\Jetpack\Connection\Manager;
11
  use Automattic\Jetpack\JITMS\JITM as JITMS_JITM;
12
  use Automattic\Jetpack\JITM as JITM;
13
  use Automattic\Jetpack\Connection\Plugin;
14
- use Automattic\Jetpack\Plugin\Tracking as Plugin_Tracking;
15
  use Automattic\Jetpack\Sync\Main as Sync_Main;
16
 
17
  /**
@@ -32,8 +31,6 @@ class Config {
32
  'jitm' => false,
33
  'connection' => false,
34
  'sync' => false,
35
- 'tracking' => false,
36
- 'tos' => false,
37
  );
38
 
39
  /**
@@ -80,12 +77,6 @@ class Config {
80
  && $this->ensure_feature( 'connection' );
81
  }
82
 
83
- if ( $this->config['tracking'] ) {
84
- $this->ensure_class( 'Automattic\Jetpack\Terms_Of_Service' )
85
- && $this->ensure_class( 'Automattic\Jetpack\Tracking' )
86
- && $this->ensure_feature( 'tracking' );
87
- }
88
-
89
  if ( $this->config['sync'] ) {
90
  $this->ensure_class( 'Automattic\Jetpack\Sync\Main' )
91
  && $this->ensure_feature( 'sync' );
@@ -162,35 +153,6 @@ class Config {
162
  return self::FEATURE_ENSURED;
163
  }
164
 
165
- /**
166
- * Dummy method to enable Terms of Service.
167
- */
168
- protected function enable_tos() {
169
- return true;
170
- }
171
-
172
- /**
173
- * Enables the tracking feature. Depends on the Terms of Service package, so enables it too.
174
- */
175
- protected function enable_tracking() {
176
-
177
- // Enabling dependencies.
178
- $this->ensure_feature( 'tos' );
179
-
180
- $terms_of_service = new Terms_Of_Service();
181
- $tracking = new Plugin_Tracking();
182
- if ( $terms_of_service->has_agreed() ) {
183
- add_action( 'init', array( $tracking, 'init' ) );
184
- } else {
185
- /**
186
- * Initialize tracking right after the user agrees to the terms of service.
187
- */
188
- add_action( 'jetpack_agreed_to_terms_of_service', array( $tracking, 'init' ) );
189
- }
190
-
191
- return true;
192
- }
193
-
194
  /**
195
  * Enables the JITM feature.
196
  */
11
  use Automattic\Jetpack\JITMS\JITM as JITMS_JITM;
12
  use Automattic\Jetpack\JITM as JITM;
13
  use Automattic\Jetpack\Connection\Plugin;
 
14
  use Automattic\Jetpack\Sync\Main as Sync_Main;
15
 
16
  /**
31
  'jitm' => false,
32
  'connection' => false,
33
  'sync' => false,
 
 
34
  );
35
 
36
  /**
77
  && $this->ensure_feature( 'connection' );
78
  }
79
 
 
 
 
 
 
 
80
  if ( $this->config['sync'] ) {
81
  $this->ensure_class( 'Automattic\Jetpack\Sync\Main' )
82
  && $this->ensure_feature( 'sync' );
153
  return self::FEATURE_ENSURED;
154
  }
155
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
156
  /**
157
  * Enables the JITM feature.
158
  */
vendor/automattic/jetpack-connection/README.md CHANGED
@@ -19,3 +19,8 @@ Package is published in [Packagist](https://packagist.org/packages/automattic/je
19
  2. [Authorize the user](docs/authorize-user.md)
20
  3. In-place user auth @todo
21
  4. Disconnecting @todo
 
 
 
 
 
19
  2. [Authorize the user](docs/authorize-user.md)
20
  3. In-place user auth @todo
21
  4. Disconnecting @todo
22
+
23
+ ## Tools
24
+
25
+ 1. [Making Authenticated async XML-RPC calls](docs/xmlrpc-async-calls.md)
26
+ 1. [Customizing error messages](docs/error-handling.md)
vendor/automattic/jetpack-connection/composer.json CHANGED
@@ -4,10 +4,12 @@
4
  "type": "library",
5
  "license": "GPL-2.0-or-later",
6
  "require": {
7
- "automattic/jetpack-constants": "1.4.0",
8
- "automattic/jetpack-options": "1.7.0",
9
- "automattic/jetpack-roles": "1.2.0",
10
- "automattic/jetpack-status": "1.3.0"
 
 
11
  },
12
  "require-dev": {
13
  "phpunit/phpunit": "^5.7 || ^6.5 || ^7.5",
4
  "type": "library",
5
  "license": "GPL-2.0-or-later",
6
  "require": {
7
+ "automattic/jetpack-constants": "1.5.0",
8
+ "automattic/jetpack-heartbeat": "1.0.0",
9
+ "automattic/jetpack-options": "1.8.0",
10
+ "automattic/jetpack-roles": "1.3.0",
11
+ "automattic/jetpack-status": "1.4.0",
12
+ "automattic/jetpack-tracking": "1.9.1"
13
  },
14
  "require-dev": {
15
  "phpunit/phpunit": "^5.7 || ^6.5 || ^7.5",
vendor/automattic/jetpack-connection/docs/error-handling.md ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Error Handling
2
+
3
+ Whenever WordPress.com makes a request that fails to authenticate, the Connection package will store the error in the database and display a generic error message to the user.
4
+
5
+ If you want to enable and customize this message, here is what you have to do.
6
+
7
+ (Check [#16194](https://github.com/Automattic/jetpack/pull/16194) for more information on how errors are catched and validated.)
8
+
9
+ ## Enabling the error message
10
+
11
+ If you want to enable the error message, you can use the `jetpack_connection_error_notice_message` filter. The second argument is an array with the details of all the errors (if more than one).
12
+
13
+ This basic example show how to display a simple error message no matter the specific error type:
14
+
15
+ ```PHP
16
+
17
+ add_filter( 'jetpack_connection_error_notice_message', 'my_function', 10, 2 );
18
+
19
+ function my_function( $message, $errors ) {
20
+ __( 'There is a problem with connection...', 'my_plugin' );
21
+ }
22
+
23
+ ```
24
+
25
+ The example below enables the error message only if there's a specific error with the current logged user.
26
+
27
+ ```PHP
28
+
29
+ add_filter( 'jetpack_connection_error_notice_message', 'my_function', 10, 2 );
30
+
31
+ function my_function( $message, $errors ) {
32
+
33
+ // each key in the array is an error code.
34
+ foreach ( $errors as $error_code => $user_errors ) {
35
+
36
+ // each key in this array is a user ID.
37
+ // This key can also be 0 or 'invalid' for errors with the blog token
38
+ // See Automattic\Jetpack\Connection\Error_Handler for details on the array structure.
39
+ if ( isset( $user_errors[ get_current_user_id() ] ) ) {
40
+ $message = __( 'There is a problem with your user authorization...', 'my_plugin' );
41
+ }
42
+
43
+ }
44
+
45
+ return $message;
46
+ }
47
+
48
+ ```
49
+
50
+ ## Further customizing error notices
51
+
52
+ If you want to completely change the admin notice, you can ignore the default message and hook into an actino that will let you do whatever you want.
53
+
54
+ ```PHP
55
+
56
+ add_action( 'jetpack_connection_error_notice', 'my_function' );
57
+
58
+ function my_function( $errors ) {
59
+
60
+ // do stuff with the errors array
61
+
62
+ // echo the error notice
63
+ ?>
64
+ <div class="notice notice-error is-dismissible jetpack-message jp-connect" style="display:block !important;">
65
+ <p><?php _e( 'my message', 'my_plugin' ); ?></p>
66
+ <a href="#" class="my-cta"><?php _e( 'Fix it!', 'my_plugin' ); ?></a>
67
+ </div>
68
+ <?php
69
+
70
+ }
71
+
72
+ ```
vendor/automattic/jetpack-connection/docs/xmlrpc-async-calls.md ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Making Authenticated async XML-RPC calls
2
+
3
+ The Connection package comes with the `XMLRPC_Async_Call` class which helps you to make authenticated requests to WordPress.com.
4
+
5
+ It's async because the calls are enqueued and dispatched all at once, in a multiCall request at `shutdown`.
6
+
7
+ ## Usage
8
+
9
+ ```PHP
10
+ XMLRPC_Async_Call::add_call( 'methodName', get_current_user_id(), $arg1, $arg2, etc... )
11
+ ```
12
+
13
+ * First argument is the method name. Example: `jetpack.updateBlog`
14
+ * Second argument is the user ID of the connected user. Zero means it will use the blog token to authenticate
15
+ * This method accepts a variable number of parameters. Any additional parameters will be passed as arguments in the request call
vendor/automattic/jetpack-connection/src/class-client.php CHANGED
@@ -23,12 +23,7 @@ class Client {
23
  * @return array|WP_Error WP HTTP response on success
24
  */
25
  public static function remote_request( $args, $body = null ) {
26
- add_filter(
27
- 'jetpack_constant_default_value',
28
- __NAMESPACE__ . '\Utils::jetpack_api_constant_filter',
29
- 10,
30
- 2
31
- );
32
 
33
  $defaults = array(
34
  'url' => '',
@@ -435,7 +430,7 @@ class Client {
435
  return (string) $data;
436
  }
437
 
438
- foreach ( $data as $key => &$value ) {
439
  $value = self::_stringify_data( $value );
440
  }
441
 
23
  * @return array|WP_Error WP HTTP response on success
24
  */
25
  public static function remote_request( $args, $body = null ) {
26
+ Utils::init_default_constants();
 
 
 
 
 
27
 
28
  $defaults = array(
29
  'url' => '',
430
  return (string) $data;
431
  }
432
 
433
+ foreach ( $data as &$value ) {
434
  $value = self::_stringify_data( $value );
435
  }
436
 
vendor/automattic/jetpack-connection/src/class-error-handler.php CHANGED
@@ -130,6 +130,9 @@ class Error_Handler {
130
  // If the site gets reconnected, clear errors.
131
  add_action( 'jetpack_site_registered', array( $this, 'delete_all_errors' ) );
132
  add_action( 'jetpack_get_site_data_success', array( $this, 'delete_all_errors' ) );
 
 
 
133
  }
134
 
135
  /**
@@ -141,7 +144,9 @@ class Error_Handler {
141
  */
142
  public function handle_verified_errors() {
143
  $verified_errors = $this->get_verified_errors();
144
- foreach ( $verified_errors as $error_code => $user_errors ) {
 
 
145
 
146
  switch ( $error_code ) {
147
  case 'malformed_token':
@@ -154,8 +159,15 @@ class Error_Handler {
154
  case 'token_mismatch':
155
  case 'invalid_signature':
156
  case 'signature_mismatch':
157
- new Error_Handlers\Invalid_Blog_Token( $user_errors );
158
- break;
 
 
 
 
 
 
 
159
  }
160
  }
161
  }
@@ -304,48 +316,10 @@ class Error_Handler {
304
  'nonce' => wp_generate_password( 10, false ),
305
  );
306
 
307
- if ( $this->track_lost_active_master_user( $error->get_error_code(), $data['token'], $user_id ) ) {
308
- $error_array['error_message'] = 'Site has a deleted but active master user token';
309
- }
310
-
311
  return $error_array;
312
 
313
  }
314
 
315
- /**
316
- * This is been used to track blogs with deleted master user but whose tokens are still actively being used
317
- *
318
- * See p9dueE-1GB-p2
319
- *
320
- * This tracking should be removed as long as we no longer need, possibly in 8.9
321
- *
322
- * @since 8.8.1
323
- *
324
- * @param string $error_code The error code.
325
- * @param string $token The token that triggered the error.
326
- * @param integer $user_id The user ID used to make the request that triggered the error.
327
- * @return boolean
328
- */
329
- private function track_lost_active_master_user( $error_code, $token, $user_id ) {
330
- if ( 'unknown_user' === $error_code ) {
331
- $manager = new Manager();
332
- // If the Unknown user is the master user (master user has been deleted).
333
- if ( $manager->is_missing_connection_owner() && (int) $user_id === (int) $manager->get_connection_owner_id() ) {
334
- $user_token = $manager->get_access_token( JETPACK_MASTER_USER );
335
- // If there's still a token stored for the deleted master user.
336
- if ( $user_token && is_object( $user_token ) && isset( $user_token->secret ) ) {
337
- $token_parts = explode( ':', wp_unslash( $token ) );
338
- // If the token stored for the deleted master user matches the token user by wpcom to make the request.
339
- // This means that requests FROM this site TO wpcom using the JETPACK_MASTER_USER constant are still working.
340
- if ( isset( $token_parts[0] ) && ! empty( $token_parts[0] ) && false !== strpos( $user_token->secret, $token_parts[0] ) ) {
341
- return true;
342
- }
343
- }
344
- }
345
- }
346
- return false;
347
- }
348
-
349
  /**
350
  * Sends the error to WP.com to be verified
351
  *
@@ -411,7 +385,7 @@ class Error_Handler {
411
  public function get_user_id_from_token( $token ) {
412
  $parsed_token = explode( ':', wp_unslash( $token ) );
413
 
414
- if ( isset( $parsed_token[2] ) && ! empty( $parsed_token[2] ) && ctype_digit( $parsed_token[2] ) ) {
415
  $user_id = $parsed_token[2];
416
  } else {
417
  $user_id = 'invalid';
@@ -503,6 +477,21 @@ class Error_Handler {
503
  $this->delete_verified_errors();
504
  }
505
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
506
  /**
507
  * Delete the reported errors stored in the database
508
  *
@@ -618,4 +607,76 @@ class Error_Handler {
618
 
619
  }
620
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
621
  }
130
  // If the site gets reconnected, clear errors.
131
  add_action( 'jetpack_site_registered', array( $this, 'delete_all_errors' ) );
132
  add_action( 'jetpack_get_site_data_success', array( $this, 'delete_all_errors' ) );
133
+ add_filter( 'jetpack_connection_disconnect_site_wpcom', array( $this, 'delete_all_errors_and_return_unfiltered_value' ) );
134
+ add_filter( 'jetpack_connection_delete_all_tokens', array( $this, 'delete_all_errors_and_return_unfiltered_value' ) );
135
+ add_action( 'jetpack_unlinked_user', array( $this, 'delete_all_errors' ) );
136
  }
137
 
138
  /**
144
  */
145
  public function handle_verified_errors() {
146
  $verified_errors = $this->get_verified_errors();
147
+ foreach ( array_keys( $verified_errors ) as $error_code ) {
148
+
149
+ $error_found = false;
150
 
151
  switch ( $error_code ) {
152
  case 'malformed_token':
159
  case 'token_mismatch':
160
  case 'invalid_signature':
161
  case 'signature_mismatch':
162
+ case 'no_user_tokens':
163
+ case 'no_token_for_user':
164
+ add_action( 'admin_notices', array( $this, 'generic_admin_notice_error' ) );
165
+ add_action( 'react_connection_errors_initial_state', array( $this, 'jetpack_react_dashboard_error' ) );
166
+ $error_found = true;
167
+ }
168
+ if ( $error_found ) {
169
+ // Since we are only generically handling errors, we don't need to trigger error messages for each one of them.
170
+ break;
171
  }
172
  }
173
  }
316
  'nonce' => wp_generate_password( 10, false ),
317
  );
318
 
 
 
 
 
319
  return $error_array;
320
 
321
  }
322
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
323
  /**
324
  * Sends the error to WP.com to be verified
325
  *
385
  public function get_user_id_from_token( $token ) {
386
  $parsed_token = explode( ':', wp_unslash( $token ) );
387
 
388
+ if ( isset( $parsed_token[2] ) && ctype_digit( $parsed_token[2] ) ) {
389
  $user_id = $parsed_token[2];
390
  } else {
391
  $user_id = 'invalid';
477
  $this->delete_verified_errors();
478
  }
479
 
480
+ /**
481
+ * Delete all stored and verified errors from the database and returns unfiltered value
482
+ *
483
+ * This is used to hook into a couple of filters that expect true to not short circuit the disconnection flow
484
+ *
485
+ * @since 8.9.0
486
+ *
487
+ * @param mixed $check The input sent by the filter.
488
+ * @return boolean
489
+ */
490
+ public function delete_all_errors_and_return_unfiltered_value( $check ) {
491
+ $this->delete_all_errors();
492
+ return $check;
493
+ }
494
+
495
  /**
496
  * Delete the reported errors stored in the database
497
  *
607
 
608
  }
609
 
610
+ /**
611
+ * Prints a generic error notice for all connection errors
612
+ *
613
+ * @since 8.9.0
614
+ *
615
+ * @return void
616
+ */
617
+ public function generic_admin_notice_error() {
618
+ // do not add admin notice to the jetpack dashboard.
619
+ global $pagenow;
620
+ if ( 'admin.php' === $pagenow || isset( $_GET['page'] ) && 'jetpack' === $_GET['page'] ) { // phpcs:ignore
621
+ return;
622
+ }
623
+
624
+ if ( ! current_user_can( 'jetpack_connect' ) ) {
625
+ return;
626
+ }
627
+
628
+ /**
629
+ * Filters the message to be displayed in the admin notices area when there's a xmlrpc error.
630
+ *
631
+ * By default we don't display any errors.
632
+ *
633
+ * Return an empty value to disable the message.
634
+ *
635
+ * @since 8.9.0
636
+ *
637
+ * @param string $message The error message.
638
+ * @param array $errors The array of errors. See Automattic\Jetpack\Connection\Error_Handler for details on the array structure.
639
+ */
640
+ $message = apply_filters( 'jetpack_connection_error_notice_message', '', $this->get_verified_errors() );
641
+
642
+ /**
643
+ * Fires inside the admin_notices hook just before displaying the error message for a broken connection.
644
+ *
645
+ * If you want to disable the default message from being displayed, return an emtpy value in the jetpack_connection_error_notice_message filter.
646
+ *
647
+ * @since 8.9.0
648
+ *
649
+ * @param array $errors The array of errors. See Automattic\Jetpack\Connection\Error_Handler for details on the array structure.
650
+ */
651
+ do_action( 'jetpack_connection_error_notice', $this->get_verified_errors() );
652
+
653
+ if ( empty( $message ) ) {
654
+ return;
655
+ }
656
+
657
+ ?>
658
+ <div class="notice notice-error is-dismissible jetpack-message jp-connect" style="display:block !important;">
659
+ <p><?php echo esc_html( $message ); ?></p>
660
+ </div>
661
+ <?php
662
+ }
663
+
664
+ /**
665
+ * Adds the error message to the Jetpack React Dashboard
666
+ *
667
+ * @since 8.9.0
668
+ *
669
+ * @param array $errors The array of errors. See Automattic\Jetpack\Connection\Error_Handler for details on the array structure.
670
+ * @return array
671
+ */
672
+ public function jetpack_react_dashboard_error( $errors ) {
673
+
674
+ $errors[] = array(
675
+ 'code' => 'xmlrpc_error',
676
+ 'message' => __( 'Your connection with WordPress.com seems to be broken. If you\'re experiencing issues, please try reconnecting.', 'jetpack' ),
677
+ 'action' => 'reconnect',
678
+ );
679
+ return $errors;
680
+ }
681
+
682
  }
vendor/automattic/jetpack-connection/src/class-manager.php CHANGED
@@ -11,7 +11,10 @@ use Automattic\Jetpack\Constants;
11
  use Automattic\Jetpack\Roles;
12
  use Automattic\Jetpack\Status;
13
  use Automattic\Jetpack\Tracking;
 
14
  use WP_Error;
 
 
15
 
16
  /**
17
  * The Jetpack Connection Manager class that is used as a single gateway between WordPress.com
@@ -76,12 +79,7 @@ class Manager {
76
  public static function configure() {
77
  $manager = new self();
78
 
79
- add_filter(
80
- 'jetpack_constant_default_value',
81
- __NAMESPACE__ . '\Utils::jetpack_api_constant_filter',
82
- 10,
83
- 2
84
- );
85
 
86
  $manager->setup_xmlrpc_handlers(
87
  $_GET, // phpcs:ignore WordPress.Security.NonceVerification.Recommended
@@ -105,6 +103,10 @@ class Manager {
105
  add_action( 'plugins_loaded', __NAMESPACE__ . '\Plugin_Storage::configure', 100 );
106
 
107
  add_filter( 'map_meta_cap', array( $manager, 'jetpack_connection_custom_caps' ), 1, 4 );
 
 
 
 
108
  }
109
 
110
  /**
@@ -205,20 +207,9 @@ class Manager {
205
  * @todo Tighten $wp_xmlrpc_server_class a bit to make sure it doesn't do bad things.
206
  */
207
  public function alternate_xmlrpc() {
208
- // phpcs:disable PHPCompatibility.Variables.RemovedPredefinedGlobalVariables.http_raw_post_dataDeprecatedRemoved
209
- // phpcs:disable WordPress.WP.GlobalVariablesOverride.Prohibited
210
- global $HTTP_RAW_POST_DATA;
211
-
212
  // Some browser-embedded clients send cookies. We don't want them.
213
  $_COOKIE = array();
214
 
215
- // A fix for mozBlog and other cases where '<?xml' isn't on the very first line.
216
- if ( isset( $HTTP_RAW_POST_DATA ) ) {
217
- $HTTP_RAW_POST_DATA = trim( $HTTP_RAW_POST_DATA );
218
- }
219
-
220
- // phpcs:enable
221
-
222
  include_once ABSPATH . 'wp-admin/includes/admin.php';
223
  include_once ABSPATH . WPINC . '/class-IXR.php';
224
  include_once ABSPATH . WPINC . '/class-wp-xmlrpc-server.php';
@@ -703,17 +694,18 @@ class Manager {
703
  * @todo Refactor to properly load the XMLRPC client independently.
704
  *
705
  * @param Integer $user_id the user identifier.
 
706
  * @return Boolean Whether the disconnection of the user was successful.
707
  */
708
- public static function disconnect_user( $user_id = null ) {
709
- $tokens = \Jetpack_Options::get_option( 'user_tokens' );
710
  if ( ! $tokens ) {
711
  return false;
712
  }
713
 
714
  $user_id = empty( $user_id ) ? get_current_user_id() : intval( $user_id );
715
 
716
- if ( \Jetpack_Options::get_option( 'master_user' ) === $user_id ) {
717
  return false;
718
  }
719
 
@@ -726,7 +718,7 @@ class Manager {
726
 
727
  unset( $tokens[ $user_id ] );
728
 
729
- \Jetpack_Options::update_option( 'user_tokens', $tokens );
730
 
731
  // Delete cached connected user data.
732
  $transient_key = "jetpack_connected_user_data_$user_id";
@@ -1468,12 +1460,107 @@ class Manager {
1468
  * @return true|WP_Error True if reconnected successfully, a `WP_Error` object otherwise.
1469
  */
1470
  public function reconnect() {
 
 
1471
  $this->disconnect_site_wpcom( true );
1472
  $this->delete_all_connection_tokens( true );
1473
 
1474
  return $this->register();
1475
  }
1476
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1477
  /**
1478
  * Responds to a WordPress.com call to register the current site.
1479
  * Should be changed to protected.
@@ -2464,4 +2551,153 @@ class Manager {
2464
  return $this->plugin->is_enabled();
2465
  }
2466
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2467
  }
11
  use Automattic\Jetpack\Roles;
12
  use Automattic\Jetpack\Status;
13
  use Automattic\Jetpack\Tracking;
14
+ use Jetpack_Options;
15
  use WP_Error;
16
+ use WP_User;
17
+ use Automattic\Jetpack\Heartbeat;
18
 
19
  /**
20
  * The Jetpack Connection Manager class that is used as a single gateway between WordPress.com
79
  public static function configure() {
80
  $manager = new self();
81
 
82
+ Utils::init_default_constants();
 
 
 
 
 
83
 
84
  $manager->setup_xmlrpc_handlers(
85
  $_GET, // phpcs:ignore WordPress.Security.NonceVerification.Recommended
103
  add_action( 'plugins_loaded', __NAMESPACE__ . '\Plugin_Storage::configure', 100 );
104
 
105
  add_filter( 'map_meta_cap', array( $manager, 'jetpack_connection_custom_caps' ), 1, 4 );
106
+
107
+ Heartbeat::init();
108
+ add_filter( 'jetpack_heartbeat_stats_array', array( $manager, 'add_stats_to_heartbeat' ) );
109
+
110
  }
111
 
112
  /**
207
  * @todo Tighten $wp_xmlrpc_server_class a bit to make sure it doesn't do bad things.
208
  */
209
  public function alternate_xmlrpc() {
 
 
 
 
210
  // Some browser-embedded clients send cookies. We don't want them.
211
  $_COOKIE = array();
212
 
 
 
 
 
 
 
 
213
  include_once ABSPATH . 'wp-admin/includes/admin.php';
214
  include_once ABSPATH . WPINC . '/class-IXR.php';
215
  include_once ABSPATH . WPINC . '/class-wp-xmlrpc-server.php';
694
  * @todo Refactor to properly load the XMLRPC client independently.
695
  *
696
  * @param Integer $user_id the user identifier.
697
+ * @param bool $can_overwrite_primary_user Allow for the primary user to be disconnected.
698
  * @return Boolean Whether the disconnection of the user was successful.
699
  */
700
+ public static function disconnect_user( $user_id = null, $can_overwrite_primary_user = false ) {
701
+ $tokens = Jetpack_Options::get_option( 'user_tokens' );
702
  if ( ! $tokens ) {
703
  return false;
704
  }
705
 
706
  $user_id = empty( $user_id ) ? get_current_user_id() : intval( $user_id );
707
 
708
+ if ( Jetpack_Options::get_option( 'master_user' ) === $user_id && ! $can_overwrite_primary_user ) {
709
  return false;
710
  }
711
 
718
 
719
  unset( $tokens[ $user_id ] );
720
 
721
+ Jetpack_Options::update_option( 'user_tokens', $tokens );
722
 
723
  // Delete cached connected user data.
724
  $transient_key = "jetpack_connected_user_data_$user_id";
1460
  * @return true|WP_Error True if reconnected successfully, a `WP_Error` object otherwise.
1461
  */
1462
  public function reconnect() {
1463
+ ( new Tracking() )->record_user_event( 'restore_connection_reconnect' );
1464
+
1465
  $this->disconnect_site_wpcom( true );
1466
  $this->delete_all_connection_tokens( true );
1467
 
1468
  return $this->register();
1469
  }
1470
 
1471
+ /**
1472
+ * Validate the tokens, and refresh the invalid ones.
1473
+ *
1474
+ * @return string|true|WP_Error True if connection restored or string indicating what's to be done next. A `WP_Error` object otherwise.
1475
+ */
1476
+ public function restore() {
1477
+ $invalid_tokens = array();
1478
+ $can_restore = $this->can_restore( $invalid_tokens );
1479
+
1480
+ // Tokens are valid. We can't fix the problem we don't see, so the full reconnection is needed.
1481
+ if ( ! $can_restore ) {
1482
+ $result = $this->reconnect();
1483
+ return true === $result ? 'authorize' : $result;
1484
+ }
1485
+
1486
+ if ( in_array( 'blog', $invalid_tokens, true ) ) {
1487
+ return self::refresh_blog_token();
1488
+ }
1489
+
1490
+ if ( in_array( 'user', $invalid_tokens, true ) ) {
1491
+ return true === self::refresh_user_token() ? 'authorize' : false;
1492
+ }
1493
+
1494
+ return false;
1495
+ }
1496
+
1497
+ /**
1498
+ * Determine whether we can restore the connection, or the full reconnect is needed.
1499
+ *
1500
+ * @param array $invalid_tokens The array the invalid tokens are stored in, provided by reference.
1501
+ *
1502
+ * @return bool `True` if the connection can be restored, `false` otherwise.
1503
+ */
1504
+ public function can_restore( &$invalid_tokens ) {
1505
+ $invalid_tokens = array();
1506
+
1507
+ $validated_tokens = $this->validate_tokens();
1508
+
1509
+ if ( ! is_array( $validated_tokens ) || count( array_diff_key( array_flip( array( 'blog_token', 'user_token' ) ), $validated_tokens ) ) ) {
1510
+ return false;
1511
+ }
1512
+
1513
+ if ( empty( $validated_tokens['blog_token']['is_healthy'] ) ) {
1514
+ $invalid_tokens[] = 'blog';
1515
+ }
1516
+
1517
+ if ( empty( $validated_tokens['user_token']['is_healthy'] ) ) {
1518
+ $invalid_tokens[] = 'user';
1519
+ }
1520
+
1521
+ // If both tokens are invalid, we can't restore the connection.
1522
+ return 1 === count( $invalid_tokens );
1523
+ }
1524
+
1525
+ /**
1526
+ * Perform the API request to validate the blog and user tokens.
1527
+ *
1528
+ * @param int|null $user_id ID of the user we need to validate token for. Current user's ID by default.
1529
+ *
1530
+ * @return array|false|WP_Error The API response: `array( 'blog_token_is_healthy' => true|false, 'user_token_is_healthy' => true|false )`.
1531
+ */
1532
+ public function validate_tokens( $user_id = null ) {
1533
+ $blog_id = Jetpack_Options::get_option( 'id' );
1534
+ if ( ! $blog_id ) {
1535
+ return new WP_Error( 'site_not_registered', 'Site not registered.' );
1536
+ }
1537
+ $url = sprintf(
1538
+ '%s://%s/%s/v%s/%s',
1539
+ Client::protocol(),
1540
+ Constants::get_constant( 'JETPACK__WPCOM_JSON_API_HOST' ),
1541
+ 'wpcom',
1542
+ '2',
1543
+ 'sites/' . $blog_id . '/jetpack-token-health'
1544
+ );
1545
+
1546
+ $user_token = $this->get_access_token( $user_id ? $user_id : get_current_user_id() );
1547
+ $blog_token = $this->get_access_token();
1548
+ $method = 'POST';
1549
+ $body = array(
1550
+ 'user_token' => $this->get_signed_token( $user_token ),
1551
+ 'blog_token' => $this->get_signed_token( $blog_token ),
1552
+ );
1553
+ $response = Client::_wp_remote_request( $url, compact( 'body', 'method' ) );
1554
+
1555
+ if ( is_wp_error( $response ) || ! wp_remote_retrieve_body( $response ) || 200 !== wp_remote_retrieve_response_code( $response ) ) {
1556
+ return false;
1557
+ }
1558
+
1559
+ $body = json_decode( wp_remote_retrieve_body( $response ), true );
1560
+
1561
+ return $body ? $body : false;
1562
+ }
1563
+
1564
  /**
1565
  * Responds to a WordPress.com call to register the current site.
1566
  * Should be changed to protected.
2551
  return $this->plugin->is_enabled();
2552
  }
2553
 
2554
+ /**
2555
+ * Perform the API request to refresh the blog token.
2556
+ * Note that we are making this request on behalf of the Jetpack master user,
2557
+ * given they were (most probably) the ones that registered the site at the first place.
2558
+ *
2559
+ * @return WP_Error|bool The result of updating the blog_token option.
2560
+ */
2561
+ public static function refresh_blog_token() {
2562
+ ( new Tracking() )->record_user_event( 'restore_connection_refresh_blog_token' );
2563
+
2564
+ $blog_id = Jetpack_Options::get_option( 'id' );
2565
+ if ( ! $blog_id ) {
2566
+ return new WP_Error( 'site_not_registered', 'Site not registered.' );
2567
+ }
2568
+
2569
+ $url = sprintf(
2570
+ '%s://%s/%s/v%s/%s',
2571
+ Client::protocol(),
2572
+ Constants::get_constant( 'JETPACK__WPCOM_JSON_API_HOST' ),
2573
+ 'wpcom',
2574
+ '2',
2575
+ 'sites/' . $blog_id . '/jetpack-refresh-blog-token'
2576
+ );
2577
+ $method = 'POST';
2578
+ $user_id = get_current_user_id();
2579
+
2580
+ $response = Client::remote_request( compact( 'url', 'method', 'user_id' ) );
2581
+
2582
+ if ( is_wp_error( $response ) ) {
2583
+ return new WP_Error( 'refresh_blog_token_http_request_failed', $response->get_error_message() );
2584
+ }
2585
+
2586
+ $code = wp_remote_retrieve_response_code( $response );
2587
+ $entity = wp_remote_retrieve_body( $response );
2588
+
2589
+ if ( $entity ) {
2590
+ $json = json_decode( $entity );
2591
+ } else {
2592
+ $json = false;
2593
+ }
2594
+
2595
+ if ( 200 !== $code ) {
2596
+ if ( empty( $json->code ) ) {
2597
+ return new WP_Error( 'unknown', '', $code );
2598
+ }
2599
+
2600
+ /* translators: Error description string. */
2601
+ $error_description = isset( $json->message ) ? sprintf( __( 'Error Details: %s', 'jetpack' ), (string) $json->message ) : '';
2602
+
2603
+ return new WP_Error( (string) $json->code, $error_description, $code );
2604
+ }
2605
+
2606
+ if ( empty( $json->jetpack_secret ) || ! is_scalar( $json->jetpack_secret ) ) {
2607
+ return new WP_Error( 'jetpack_secret', '', $code );
2608
+ }
2609
+
2610
+ return Jetpack_Options::update_option( 'blog_token', (string) $json->jetpack_secret );
2611
+ }
2612
+
2613
+ /**
2614
+ * Disconnect the user from WP.com, and initiate the reconnect process.
2615
+ *
2616
+ * @return bool
2617
+ */
2618
+ public static function refresh_user_token() {
2619
+ ( new Tracking() )->record_user_event( 'restore_connection_refresh_user_token' );
2620
+
2621
+ self::disconnect_user( null, true );
2622
+
2623
+ return true;
2624
+ }
2625
+
2626
+ /**
2627
+ * Fetches a signed token.
2628
+ *
2629
+ * @param object $token the token.
2630
+ * @return WP_Error|string a signed token
2631
+ */
2632
+ public function get_signed_token( $token ) {
2633
+ if ( ! isset( $token->secret ) || empty( $token->secret ) ) {
2634
+ return new WP_Error( 'invalid_token' );
2635
+ }
2636
+
2637
+ list( $token_key, $token_secret ) = explode( '.', $token->secret );
2638
+
2639
+ $token_key = sprintf(
2640
+ '%s:%d:%d',
2641
+ $token_key,
2642
+ Constants::get_constant( 'JETPACK__API_VERSION' ),
2643
+ $token->external_user_id
2644
+ );
2645
+
2646
+ $timestamp = time();
2647
+
2648
+ if ( function_exists( 'wp_generate_password' ) ) {
2649
+ $nonce = wp_generate_password( 10, false );
2650
+ } else {
2651
+ $nonce = substr( sha1( wp_rand( 0, 1000000 ) ), 0, 10 );
2652
+ }
2653
+
2654
+ $normalized_request_string = join(
2655
+ "\n",
2656
+ array(
2657
+ $token_key,
2658
+ $timestamp,
2659
+ $nonce,
2660
+ )
2661
+ ) . "\n";
2662
+
2663
+ // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.obfuscation_base64_encode
2664
+ $signature = base64_encode( hash_hmac( 'sha1', $normalized_request_string, $token_secret, true ) );
2665
+
2666
+ $auth = array(
2667
+ 'token' => $token_key,
2668
+ 'timestamp' => $timestamp,
2669
+ 'nonce' => $nonce,
2670
+ 'signature' => $signature,
2671
+ );
2672
+
2673
+ $header_pieces = array();
2674
+ foreach ( $auth as $key => $value ) {
2675
+ $header_pieces[] = sprintf( '%s="%s"', $key, $value );
2676
+ }
2677
+
2678
+ return join( ' ', $header_pieces );
2679
+ }
2680
+
2681
+ /**
2682
+ * If connection is active, add the list of plugins using connection to the heartbeat (except Jetpack itself)
2683
+ *
2684
+ * @param array $stats The Heartbeat stats array.
2685
+ * @return array $stats
2686
+ */
2687
+ public function add_stats_to_heartbeat( $stats ) {
2688
+
2689
+ if ( ! $this->is_active() ) {
2690
+ return $stats;
2691
+ }
2692
+
2693
+ $active_plugins_using_connection = Plugin_Storage::get_all();
2694
+ foreach ( array_keys( $active_plugins_using_connection ) as $plugin_slug ) {
2695
+ if ( 'jetpack' !== $plugin_slug ) {
2696
+ $stats_group = isset( $active_plugins_using_connection['jetpack'] ) ? 'combined-connection' : 'standalone-connection';
2697
+ $stats[ $stats_group ][] = $plugin_slug;
2698
+ }
2699
+ }
2700
+ return $stats;
2701
+ }
2702
+
2703
  }
vendor/automattic/jetpack-connection/src/class-rest-authentication.php ADDED
@@ -0,0 +1,160 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The Jetpack Connection Rest Authentication file.
4
+ *
5
+ * @package automattic/jetpack-connection
6
+ */
7
+
8
+ namespace Automattic\Jetpack\Connection;
9
+
10
+ /**
11
+ * The Jetpack Connection Rest Authentication class.
12
+ */
13
+ class Rest_Authentication {
14
+
15
+ /**
16
+ * The rest authentication status.
17
+ *
18
+ * @since 8.9.0
19
+ * @var boolean
20
+ */
21
+ private $rest_authentication_status = null;
22
+
23
+ /**
24
+ * The Manager object.
25
+ *
26
+ * @since 8.9.0
27
+ * @var Object
28
+ */
29
+ private $connection_manager = null;
30
+
31
+ /**
32
+ * Holds the singleton instance of this class
33
+ *
34
+ * @since 8.9.0
35
+ * @var Object
36
+ */
37
+ private static $instance = false;
38
+
39
+ /**
40
+ * The constructor.
41
+ */
42
+ private function __construct() {
43
+ $this->connection_manager = new Manager();
44
+ }
45
+
46
+ /**
47
+ * Controls the single instance of this class.
48
+ *
49
+ * @static
50
+ */
51
+ public static function init() {
52
+ if ( ! self::$instance ) {
53
+ self::$instance = new self();
54
+
55
+ add_filter( 'determine_current_user', array( self::$instance, 'wp_rest_authenticate' ) );
56
+ add_filter( 'rest_authentication_errors', array( self::$instance, 'wp_rest_authentication_errors' ) );
57
+ }
58
+
59
+ return self::$instance;
60
+ }
61
+
62
+ /**
63
+ * Authenticates requests from Jetpack server to WP REST API endpoints.
64
+ * Uses the existing XMLRPC request signing implementation.
65
+ *
66
+ * @param int|bool $user User ID if one has been determined, false otherwise.
67
+ *
68
+ * @return int|null The user id or null if the request was not authenticated.
69
+ */
70
+ public function wp_rest_authenticate( $user ) {
71
+ if ( ! empty( $user ) ) {
72
+ // Another authentication method is in effect.
73
+ return $user;
74
+ }
75
+
76
+ Utils::init_default_constants();
77
+
78
+ if ( ! isset( $_GET['_for'] ) || 'jetpack' !== $_GET['_for'] ) {
79
+ // Nothing to do for this authentication method.
80
+ return null;
81
+ }
82
+
83
+ if ( ! isset( $_GET['token'] ) && ! isset( $_GET['signature'] ) ) {
84
+ // Nothing to do for this authentication method.
85
+ return null;
86
+ }
87
+
88
+ if ( ! isset( $_SERVER['REQUEST_METHOD'] ) ) {
89
+ $this->rest_authentication_status = new \WP_Error(
90
+ 'rest_invalid_request',
91
+ __( 'The request method is missing.', 'jetpack' ),
92
+ array( 'status' => 400 )
93
+ );
94
+ return null;
95
+ }
96
+
97
+ // Only support specific request parameters that have been tested and
98
+ // are known to work with signature verification. A different method
99
+ // can be passed to the WP REST API via the '?_method=' parameter if
100
+ // needed.
101
+ if ( 'GET' !== $_SERVER['REQUEST_METHOD'] && 'POST' !== $_SERVER['REQUEST_METHOD'] ) {
102
+ $this->rest_authentication_status = new \WP_Error(
103
+ 'rest_invalid_request',
104
+ __( 'This request method is not supported.', 'jetpack' ),
105
+ array( 'status' => 400 )
106
+ );
107
+ return null;
108
+ }
109
+ if ( 'POST' !== $_SERVER['REQUEST_METHOD'] && ! empty( file_get_contents( 'php://input' ) ) ) {
110
+ $this->rest_authentication_status = new \WP_Error(
111
+ 'rest_invalid_request',
112
+ __( 'This request method does not support body parameters.', 'jetpack' ),
113
+ array( 'status' => 400 )
114
+ );
115
+ return null;
116
+ }
117
+
118
+ $verified = $this->connection_manager->verify_xml_rpc_signature();
119
+
120
+ if (
121
+ $verified &&
122
+ isset( $verified['type'] ) &&
123
+ 'user' === $verified['type'] &&
124
+ ! empty( $verified['user_id'] )
125
+ ) {
126
+ // Authentication successful.
127
+ $this->rest_authentication_status = true;
128
+ return $verified['user_id'];
129
+ }
130
+
131
+ // Something else went wrong. Probably a signature error.
132
+ $this->rest_authentication_status = new \WP_Error(
133
+ 'rest_invalid_signature',
134
+ __( 'The request is not signed correctly.', 'jetpack' ),
135
+ array( 'status' => 400 )
136
+ );
137
+ return null;
138
+ }
139
+
140
+ /**
141
+ * Report authentication status to the WP REST API.
142
+ *
143
+ * @param WP_Error|mixed $value Error from another authentication handler, null if we should handle it, or another value if not.
144
+ * @return WP_Error|boolean|null {@see WP_JSON_Server::check_authentication}
145
+ */
146
+ public function wp_rest_authentication_errors( $value ) {
147
+ if ( null !== $value ) {
148
+ return $value;
149
+ }
150
+ return $this->rest_authentication_status;
151
+ }
152
+
153
+ /**
154
+ * Resets the saved authentication state in between testing requests.
155
+ */
156
+ public function reset_saved_auth_state() {
157
+ $this->rest_authentication_status = null;
158
+ $this->connection_manager->reset_saved_auth_state();
159
+ }
160
+ }
vendor/automattic/jetpack-connection/src/class-rest-connector.php CHANGED
@@ -105,7 +105,7 @@ class REST_Connector {
105
  'required' => true,
106
  ),
107
  ),
108
- 'permission_callback' => __CLASS__ . '::jetpack_disconnect_permission_check',
109
  )
110
  );
111
  }
@@ -229,8 +229,8 @@ class REST_Connector {
229
  *
230
  * @return bool|WP_Error Whether user has the capability 'jetpack_disconnect'.
231
  */
232
- public static function jetpack_disconnect_permission_check() {
233
- if ( current_user_can( 'jetpack_disconnect' ) ) {
234
  return true;
235
  }
236
 
@@ -260,13 +260,26 @@ class REST_Connector {
260
 
261
  $response = array();
262
 
 
 
263
  switch ( $params['action'] ) {
264
  case 'reconnect':
 
 
 
 
 
 
 
 
 
 
 
 
265
  $result = $this->connection->reconnect();
266
 
267
  if ( true === $result ) {
268
- $response['status'] = 'in_progress';
269
- $response['authorizeUrl'] = $this->connection->get_authorization_url();
270
  } elseif ( is_wp_error( $result ) ) {
271
  $response = $result;
272
  }
@@ -276,6 +289,19 @@ class REST_Connector {
276
  break;
277
  }
278
 
 
 
 
 
 
 
 
 
 
 
 
 
 
279
  return rest_ensure_response( $response );
280
  }
281
 
105
  'required' => true,
106
  ),
107
  ),
108
+ 'permission_callback' => __CLASS__ . '::jetpack_reconnect_permission_check',
109
  )
110
  );
111
  }
229
  *
230
  * @return bool|WP_Error Whether user has the capability 'jetpack_disconnect'.
231
  */
232
+ public static function jetpack_reconnect_permission_check() {
233
+ if ( current_user_can( 'jetpack_reconnect' ) ) {
234
  return true;
235
  }
236
 
260
 
261
  $response = array();
262
 
263
+ $next = null;
264
+
265
  switch ( $params['action'] ) {
266
  case 'reconnect':
267
+ $result = $this->connection->restore();
268
+
269
+ if ( is_wp_error( $result ) ) {
270
+ $response = $result;
271
+ } elseif ( is_string( $result ) ) {
272
+ $next = $result;
273
+ } else {
274
+ $next = true === $result ? 'completed' : 'failed';
275
+ }
276
+
277
+ break;
278
+ case 'reconnect_force':
279
  $result = $this->connection->reconnect();
280
 
281
  if ( true === $result ) {
282
+ $next = 'authorize';
 
283
  } elseif ( is_wp_error( $result ) ) {
284
  $response = $result;
285
  }
289
  break;
290
  }
291
 
292
+ switch ( $next ) {
293
+ case 'authorize':
294
+ $response['status'] = 'in_progress';
295
+ $response['authorizeUrl'] = $this->connection->get_authorization_url();
296
+ break;
297
+ case 'completed':
298
+ $response['status'] = 'completed';
299
+ break;
300
+ case 'failed':
301
+ $response = new WP_Error( 'Reconnect failed' );
302
+ break;
303
+ }
304
+
305
  return rest_ensure_response( $response );
306
  }
307
 
vendor/automattic/jetpack-connection/src/class-utils.php CHANGED
@@ -82,4 +82,16 @@ class Utils {
82
 
83
  return null;
84
  }
 
 
 
 
 
 
 
 
 
 
 
 
85
  }
82
 
83
  return null;
84
  }
85
+
86
+ /**
87
+ * Add a filter to initialize default values of the constants.
88
+ */
89
+ public static function init_default_constants() {
90
+ add_filter(
91
+ 'jetpack_constant_default_value',
92
+ array( __CLASS__, 'jetpack_api_constant_filter' ),
93
+ 10,
94
+ 2
95
+ );
96
+ }
97
  }
vendor/automattic/jetpack-connection/src/class-xmlrpc-async-call.php ADDED
@@ -0,0 +1,105 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * XMLRPC Async Call class.
4
+ *
5
+ * @package automattic/jetpack-connection
6
+ */
7
+
8
+ namespace Automattic\Jetpack\Connection;
9
+
10
+ use Jetpack_IXR_ClientMulticall;
11
+
12
+ /**
13
+ * Make XMLRPC async calls to WordPress.com
14
+ *
15
+ * This class allows you to enqueue XMLRPC calls that will be grouped and sent
16
+ * at once in a multi-call request at shutdown.
17
+ *
18
+ * Usage:
19
+ *
20
+ * XMLRPC_Async_Call::add_call( 'methodName', get_current_user_id(), $arg1, $arg2, etc... )
21
+ *
22
+ * See XMLRPC_Async_Call::add_call for details
23
+ */
24
+ class XMLRPC_Async_Call {
25
+
26
+ /**
27
+ * Hold the IXR Clients that will be dispatched at shutdown
28
+ *
29
+ * Clients are stored in the following schema:
30
+ * [
31
+ * $blog_id => [
32
+ * $user_id => [
33
+ * arrat of Jetpack_IXR_ClientMulticall
34
+ * ]
35
+ * ]
36
+ * ]
37
+ *
38
+ * @var array
39
+ */
40
+ public static $clients = array();
41
+
42
+ /**
43
+ * Adds a new XMLRPC call to the queue to be processed on shutdown
44
+ *
45
+ * @param string $method The XML-RPC method.
46
+ * @param integer $user_id The user ID used to make the request (will use this user's token); Use 0 for the blog token.
47
+ * @param mixed ...$args This function accepts any number of additional arguments, that will be passed to the call.
48
+ * @return void
49
+ */
50
+ public static function add_call( $method, $user_id = 0, ...$args ) {
51
+ global $blog_id;
52
+
53
+ $client_blog_id = is_multisite() ? $blog_id : 0;
54
+
55
+ if ( ! isset( self::$clients[ $client_blog_id ] ) ) {
56
+ self::$clients[ $client_blog_id ] = array();
57
+ }
58
+
59
+ if ( ! isset( self::$clients[ $client_blog_id ][ $user_id ] ) ) {
60
+ self::$clients[ $client_blog_id ][ $user_id ] = new Jetpack_IXR_ClientMulticall( array( 'user_id' => $user_id ) );
61
+ }
62
+
63
+ if ( function_exists( 'ignore_user_abort' ) ) {
64
+ ignore_user_abort( true );
65
+ }
66
+
67
+ array_unshift( $args, $method );
68
+
69
+ call_user_func_array( array( self::$clients[ $client_blog_id ][ $user_id ], 'addCall' ), $args );
70
+
71
+ if ( false === has_action( 'shutdown', array( 'Automattic\Jetpack\Connection\XMLRPC_Async_Call', 'do_calls' ) ) ) {
72
+ add_action( 'shutdown', array( 'Automattic\Jetpack\Connection\XMLRPC_Async_Call', 'do_calls' ) );
73
+ }
74
+ }
75
+
76
+ /**
77
+ * Trigger the calls at shutdown
78
+ *
79
+ * @return void
80
+ */
81
+ public static function do_calls() {
82
+ foreach ( self::$clients as $client_blog_id => $blog_clients ) {
83
+ if ( $client_blog_id > 0 ) {
84
+ $switch_success = switch_to_blog( $client_blog_id, true );
85
+
86
+ if ( ! $switch_success ) {
87
+ continue;
88
+ }
89
+ }
90
+
91
+ foreach ( $blog_clients as $client ) {
92
+ if ( empty( $client->calls ) ) {
93
+ continue;
94
+ }
95
+
96
+ flush();
97
+ $client->query();
98
+ }
99
+
100
+ if ( $client_blog_id > 0 ) {
101
+ restore_current_blog();
102
+ }
103
+ }
104
+ }
105
+ }
vendor/automattic/jetpack-connection/src/error-handlers/class-invalid-blog-token.php DELETED
@@ -1,94 +0,0 @@
1
- <?php
2
- /**
3
- * The Jetpack Connection error handler class for invalid blog tokens
4
- *
5
- * @package automattic/jetpack-connection
6
- */
7
-
8
- namespace Automattic\Jetpack\Connection\Error_Handlers;
9
-
10
- /**
11
- * This class handles all the error codes that indicates a broken blog token and
12
- * suggests the user to reconnect.
13
- *
14
- * @since 8.7.0
15
- */
16
- class Invalid_Blog_Token {
17
-
18
- /**
19
- * Set up hooks
20
- *
21
- * @since 8.7.0
22
- *
23
- * @param array $errors The array containing verified errors stored in the database.
24
- */
25
- public function __construct( $errors ) {
26
-
27
- /**
28
- * Filters the message to be displayed in the admin notices area when there's a invalid blog token xmlrpc error
29
- *
30
- * Return an empty value to disable the message.
31
- *
32
- * @since 8.7.0
33
- *
34
- * @param string $message The error message.
35
- */
36
- $this->message = apply_filters( 'jetpack_connection_invalid_blog_token_admin_notice', __( 'Your connection with WordPress.com seems to be broken. If you\'re experiencing issues, please try reconnecting.', 'jetpack' ) );
37
-
38
- if ( empty( $this->message ) ) {
39
- return;
40
- }
41
-
42
- // In this class, we will only handle errors with the blog token, so ignoring if there are only errors with user tokens.
43
- if ( ! isset( $errors[0] ) && ! isset( $errors['invalid'] ) ) {
44
- return;
45
- }
46
-
47
- add_action( 'react_connection_errors_initial_state', array( $this, 'jetpack_react_dashboard_error' ) );
48
- // do not add admin notice to the jetpack dashboard.
49
- global $pagenow;
50
- if ( 'admin.php' === $pagenow || isset( $_GET['page'] ) && 'jetpack' === $_GET['page'] ) { // phpcs:ignore
51
- return;
52
- }
53
- add_action( 'admin_notices', array( $this, 'admin_notice' ) );
54
-
55
- }
56
-
57
- /**
58
- * Prints an admin notice for the blog token error
59
- *
60
- * @since 8.7.0
61
- *
62
- * @return void
63
- */
64
- public function admin_notice() {
65
-
66
- if ( ! current_user_can( 'jetpack_connect' ) ) {
67
- return;
68
- }
69
-
70
- ?>
71
- <div class="notice notice-error is-dismissible jetpack-message jp-connect" style="display:block !important;">
72
- <p><?php echo esc_html( $this->message ); ?></p>
73
- </div>
74
- <?php
75
- }
76
-
77
- /**
78
- * Adds the error message to the Jetpack React Dashboard
79
- *
80
- * @param array $errors The array of errors.
81
- * @return array
82
- */
83
- public function jetpack_react_dashboard_error( $errors ) {
84
-
85
- $errors[] = array(
86
- 'code' => 'invalid_blog_token',
87
- 'message' => $this->message,
88
- 'action' => 'reconnect',
89
- );
90
- return $errors;
91
- }
92
-
93
-
94
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/automattic/jetpack-constants/phpunit.xml DELETED
@@ -1,7 +0,0 @@
1
- <phpunit bootstrap="tests/php/bootstrap.php" backupGlobals="false" colors="true">
2
- <testsuites>
3
- <testsuite name="main">
4
- <directory prefix="test" suffix=".php">tests/php</directory>
5
- </testsuite>
6
- </testsuites>
7
- </phpunit>
 
 
 
 
 
 
 
vendor/automattic/jetpack-heartbeat/README.md ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Jetpack Heartbeat Package
2
+
3
+ Sends a daily batch of stats to WP.com using the A8C MC Stats package.
4
+
5
+ These are internal usage stats for Automattic, not visible to site owners.
6
+
7
+ ## Usage
8
+
9
+ ### 1. Make sure Hearbeat is initialized:
10
+
11
+ ```php
12
+ Automattic\Jetpack\Heartbeat::init();
13
+ ```
14
+
15
+ ### 2. Add your stats to the heartbeat
16
+
17
+ Add a filter callback:
18
+
19
+ ```php
20
+ add_filter( 'jetpack_heartbeat_stats_array', 'my_callback' );
21
+ ```
22
+
23
+ In your callback, add the stats you want to the array with new key => value pairs where:
24
+ * key is the stat group name
25
+ * value is the stat name.
26
+
27
+ ```php
28
+ function my_callback( $stats ) {
29
+ $stats['my-plugin'] = 'active';
30
+ return $stats;
31
+ }
32
+ ```
33
+
34
+ This will bump the stats for the 'my-plugin/active' stat.
35
+
36
+ And that's all!
37
+
38
+ Now your stats will be added to the batch of stats that are bumped once a day.
vendor/automattic/jetpack-heartbeat/composer.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "automattic/jetpack-heartbeat",
3
+ "description": "This adds a cronjob that sends a batch of internal automattic stats to wp.com once a day",
4
+ "type": "library",
5
+ "license": "GPL-2.0-or-later",
6
+ "require": {
7
+ "automattic/jetpack-a8c-mc-stats": "1.1.0",
8
+ "automattic/jetpack-options": "1.8.0"
9
+ },
10
+ "require-dev": {
11
+ "phpunit/phpunit": "^5.7 || ^6.5 || ^7.5"
12
+ },
13
+ "autoload": {
14
+ "classmap": [
15
+ "src/"
16
+ ]
17
+ },
18
+ "scripts": {
19
+ "phpunit": [
20
+ "@composer install",
21
+ "./vendor/phpunit/phpunit/phpunit --colors=always"
22
+ ]
23
+ },
24
+ "repositories": [
25
+ {
26
+ "type": "path",
27
+ "url": "../*"
28
+ }
29
+ ],
30
+ "minimum-stability": "dev",
31
+ "prefer-stable": true
32
+ }
vendor/automattic/jetpack-heartbeat/src/class-heartbeat.php ADDED
@@ -0,0 +1,252 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Jetpack Heartbeat package.
4
+ *
5
+ * @package automattic/jetpack-heartbeat
6
+ */
7
+
8
+ namespace Automattic\Jetpack;
9
+
10
+ use Automattic\Jetpack\A8c_Mc_Stats;
11
+ use WP_CLI;
12
+ use Jetpack_Options;
13
+
14
+ /**
15
+ * Heartbeat sends a batch of stats to wp.com once a day
16
+ */
17
+ class Heartbeat {
18
+
19
+ /**
20
+ * Holds the singleton instance of this class
21
+ *
22
+ * @since 2.3.3
23
+ * @var Heartbeat
24
+ */
25
+ private static $instance = false;
26
+
27
+ /**
28
+ * Cronjob identifier
29
+ *
30
+ * @var string
31
+ */
32
+ private $cron_name = 'jetpack_v2_heartbeat';
33
+
34
+ /**
35
+ * Singleton
36
+ *
37
+ * @since 2.3.3
38
+ * @static
39
+ * @return Heartbeat
40
+ */
41
+ public static function init() {
42
+ if ( ! self::$instance ) {
43
+ self::$instance = new Heartbeat();
44
+ }
45
+
46
+ return self::$instance;
47
+ }
48
+
49
+ /**
50
+ * Constructor for singleton
51
+ *
52
+ * @since 2.3.3
53
+ * @return Heartbeat
54
+ */
55
+ private function __construct() {
56
+
57
+ // Schedule the task.
58
+ add_action( $this->cron_name, array( $this, 'cron_exec' ) );
59
+
60
+ if ( ! wp_next_scheduled( $this->cron_name ) ) {
61
+ // Deal with the old pre-3.0 weekly one.
62
+ $timestamp = wp_next_scheduled( 'jetpack_heartbeat' );
63
+ if ( $timestamp ) {
64
+ wp_unschedule_event( $timestamp, 'jetpack_heartbeat' );
65
+ }
66
+
67
+ wp_schedule_event( time(), 'daily', $this->cron_name );
68
+ }
69
+
70
+ add_filter( 'jetpack_xmlrpc_methods', array( __CLASS__, 'jetpack_xmlrpc_methods' ) );
71
+
72
+ if ( defined( 'WP_CLI' ) && WP_CLI ) {
73
+ WP_CLI::add_command( 'jetpack-heartbeat', array( $this, 'cli_callback' ) );
74
+ }
75
+ }
76
+
77
+ /**
78
+ * Method that gets executed on the wp-cron call
79
+ *
80
+ * @since 2.3.3
81
+ * @global string $wp_version
82
+ */
83
+ public function cron_exec() {
84
+
85
+ $a8c_mc_stats = new A8c_Mc_Stats();
86
+
87
+ /*
88
+ * This should run daily. Figuring in for variances in
89
+ * WP_CRON, don't let it run more than every 23 hours at most.
90
+ *
91
+ * i.e. if it ran less than 23 hours ago, fail out.
92
+ */
93
+ $last = (int) Jetpack_Options::get_option( 'last_heartbeat' );
94
+ if ( $last && ( $last + DAY_IN_SECONDS - HOUR_IN_SECONDS > time() ) ) {
95
+ return;
96
+ }
97
+
98
+ /*
99
+ * Check for an identity crisis
100
+ *
101
+ * If one exists:
102
+ * - Bump stat for ID crisis
103
+ * - Email site admin about potential ID crisis
104
+ */
105
+
106
+ // Coming Soon!
107
+
108
+ foreach ( self::generate_stats_array( 'v2-' ) as $key => $value ) {
109
+ if ( is_array( $value ) ) {
110
+ foreach ( $value as $v ) {
111
+ $a8c_mc_stats->add( $key, (string) $v );
112
+ }
113
+ } else {
114
+ $a8c_mc_stats->add( $key, (string) $value );
115
+ }
116
+ }
117
+
118
+ Jetpack_Options::update_option( 'last_heartbeat', time() );
119
+
120
+ $a8c_mc_stats->do_server_side_stats();
121
+
122
+ /**
123
+ * Fires when we synchronize all registered options on heartbeat.
124
+ *
125
+ * @since 3.3.0
126
+ */
127
+ do_action( 'jetpack_heartbeat' );
128
+ }
129
+
130
+ /**
131
+ * Generates heartbeat stats data.
132
+ *
133
+ * @param string $prefix Prefix to add before stats identifier.
134
+ *
135
+ * @return array The stats array.
136
+ */
137
+ public static function generate_stats_array( $prefix = '' ) {
138
+
139
+ /**
140
+ * This filter is used to build the array of stats that are bumped once a day by Jetpack Heartbeat.
141
+ *
142
+ * Filter the array and add key => value pairs where
143
+ * * key is the stat group name
144
+ * * value is the stat name.
145
+ *
146
+ * Example:
147
+ * add_filter( 'jetpack_heartbeat_stats_array', function( $stats ) {
148
+ * $stats['is-https'] = is_ssl() ? 'https' : 'http';
149
+ * });
150
+ *
151
+ * This will bump the stats for the 'is-https/https' or 'is-https/http' stat.
152
+ *
153
+ * @param array $stats The stats to be filtered.
154
+ * @param string $prefix The prefix that will automatically be added at the begining at each stat group name.
155
+ */
156
+ $stats = apply_filters( 'jetpack_heartbeat_stats_array', array(), $prefix );
157
+ $return = array();
158
+
159
+ // Apply prefix to stats.
160
+ foreach ( $stats as $stat => $value ) {
161
+ $return[ "$prefix$stat" ] = $value;
162
+ }
163
+
164
+ return $return;
165
+
166
+ }
167
+
168
+ /**
169
+ * Registers jetpack.getHeartbeatData xmlrpc method
170
+ *
171
+ * @param array $methods The list of methods to be filtered.
172
+ * @return array $methods
173
+ */
174
+ public static function jetpack_xmlrpc_methods( $methods ) {
175
+ $methods['jetpack.getHeartbeatData'] = array( __CLASS__, 'xmlrpc_data_response' );
176
+ return $methods;
177
+ }
178
+
179
+ /**
180
+ * Handles the response for the jetpack.getHeartbeatData xmlrpc method
181
+ *
182
+ * @param array $params The parameters received in the request.
183
+ * @return array $params all the stats that hearbeat handles.
184
+ */
185
+ public static function xmlrpc_data_response( $params = array() ) {
186
+ // The WordPress XML-RPC server sets a default param of array()
187
+ // if no argument is passed on the request and the method handlers get this array in $params.
188
+ // generate_stats_array() needs a string as first argument.
189
+ $params = empty( $params ) ? '' : $params;
190
+ return self::generate_stats_array( $params );
191
+ }
192
+
193
+ /**
194
+ * Clear scheduled events
195
+ *
196
+ * @return void
197
+ */
198
+ public function deactivate() {
199
+ // Deal with the old pre-3.0 weekly one.
200
+ $timestamp = wp_next_scheduled( 'jetpack_heartbeat' );
201
+ if ( $timestamp ) {
202
+ wp_unschedule_event( $timestamp, 'jetpack_heartbeat' );
203
+ }
204
+
205
+ $timestamp = wp_next_scheduled( $this->cron_name );
206
+ wp_unschedule_event( $timestamp, $this->cron_name );
207
+ }
208
+
209
+ /**
210
+ * Interact with the Heartbeat
211
+ *
212
+ * ## OPTIONS
213
+ *
214
+ * inspect (default): Gets the list of data that is going to be sent in the heartbeat and the date/time of the last heartbeat
215
+ *
216
+ * @param array $args Arguments passed via CLI.
217
+ *
218
+ * @return void
219
+ */
220
+ public function cli_callback( $args ) {
221
+
222
+ $allowed_args = array(
223
+ 'inspect',
224
+ );
225
+
226
+ if ( isset( $args[0] ) && ! in_array( $args[0], $allowed_args, true ) ) {
227
+ /* translators: %s is a command like "prompt" */
228
+ WP_CLI::error( sprintf( __( '%s is not a valid command.', 'jetpack' ), $args[0] ) );
229
+ }
230
+
231
+ $stats = self::generate_stats_array();
232
+ $formatted_stats = array();
233
+
234
+ foreach ( $stats as $stat_name => $bin ) {
235
+ $formatted_stats[] = array(
236
+ 'Stat name' => $stat_name,
237
+ 'Bin' => $bin,
238
+ );
239
+ }
240
+
241
+ WP_CLI\Utils\format_items( 'table', $formatted_stats, array( 'Stat name', 'Bin' ) );
242
+
243
+ $last_heartbeat = Jetpack_Options::get_option( 'last_heartbeat' );
244
+
245
+ if ( $last_heartbeat ) {
246
+ $last_date = gmdate( 'Y-m-d H:i:s', $last_heartbeat );
247
+ /* translators: %s is the full datetime of the last heart beat e.g. 2020-01-01 12:21:23 */
248
+ WP_CLI::line( sprintf( __( 'Last heartbeat sent at: %s', 'jetpack' ), $last_date ) );
249
+ }
250
+ }
251
+
252
+ }
vendor/automattic/jetpack-options/composer.json CHANGED
@@ -4,7 +4,7 @@
4
  "type": "library",
5
  "license": "GPL-2.0-or-later",
6
  "require": {
7
- "automattic/jetpack-constants": "1.4.0"
8
  },
9
  "require-dev": {
10
  "phpunit/phpunit": "7.*.*",
4
  "type": "library",
5
  "license": "GPL-2.0-or-later",
6
  "require": {
7
+ "automattic/jetpack-constants": "1.5.0"
8
  },
9
  "require-dev": {
10
  "phpunit/phpunit": "7.*.*",
vendor/automattic/jetpack-options/legacy/class-jetpack-options.php CHANGED
@@ -611,6 +611,7 @@ class Jetpack_Options {
611
  'jetpack_connection_banner_ab',
612
  'jetpack_active_plan',
613
  'jetpack_activation_source',
 
614
  'jetpack_sso_match_by_email',
615
  'jetpack_sso_require_two_step',
616
  'jetpack_sso_remove_login_form',
611
  'jetpack_connection_banner_ab',
612
  'jetpack_active_plan',
613
  'jetpack_activation_source',
614
+ 'jetpack_site_products',
615
  'jetpack_sso_match_by_email',
616
  'jetpack_sso_require_two_step',
617
  'jetpack_sso_remove_login_form',
vendor/automattic/jetpack-roles/phpunit.xml DELETED
@@ -1,7 +0,0 @@
1
- <phpunit bootstrap="tests/php/bootstrap.php" backupGlobals="false" colors="true">
2
- <testsuites>
3
- <testsuite name="main">
4
- <directory prefix="test" suffix=".php">tests/php</directory>
5
- </testsuite>
6
- </testsuites>
7
- </phpunit>
 
 
 
 
 
 
 
vendor/automattic/jetpack-terms-of-service/README.md ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Jetpack Terms of Service
2
+
3
+ A Terms of Service Package that lets us know that
4
+ the master user has agreed to the the terms of service for this site.
5
+
6
+
7
+ ### Usage
8
+
9
+ Agree to the terms of service.
10
+
11
+ ```php
12
+ use Automattic\Jetpack\Terms_Of_Service;
13
+
14
+ $terms_of_service = new Terms_Of_Service();
15
+ $terms_of_service->agree();
16
+ ```
17
+
18
+ Reject the terms of service.
19
+
20
+ ```php
21
+ use Automattic\Jetpack\Terms_Of_Service;
22
+
23
+ $terms_of_service = new Terms_Of_Service();
24
+ $terms_of_service->revoke();
25
+ ```
26
+
27
+ Has the site agreed to the terms of service?
28
+
29
+ ```php
30
+ use Automattic\Jetpack\Terms_Of_Service;
31
+
32
+ $terms_of_service = new Terms_Of_Service();
33
+ $has_agreed = $terms_of_service->has_agreed();
34
+ ```
vendor/automattic/jetpack-terms-of-service/composer.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "automattic/jetpack-terms-of-service",
3
+ "description": "Everything need to manage the terms of service state",
4
+ "type": "library",
5
+ "license": "GPL-2.0-or-later",
6
+ "require": {
7
+ "automattic/jetpack-options": "1.8.0",
8
+ "automattic/jetpack-status": "1.4.0"
9
+ },
10
+ "require-dev": {
11
+ "phpunit/phpunit": "^5.7 || ^6.5 || ^7.5",
12
+ "php-mock/php-mock": "^2.1"
13
+ },
14
+ "autoload": {
15
+ "classmap": [
16
+ "src/"
17
+ ]
18
+ },
19
+ "scripts": {
20
+ "phpunit": [
21
+ "@composer install",
22
+ "./vendor/phpunit/phpunit/phpunit --colors=always"
23
+ ]
24
+ },
25
+ "repositories": [
26
+ {
27
+ "type": "path",
28
+ "url": "../*"
29
+ }
30
+ ],
31
+ "minimum-stability": "dev",
32
+ "prefer-stable": true
33
+ }
vendor/automattic/jetpack-terms-of-service/phpunit.xml.dist ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <phpunit bootstrap="tests/php/bootstrap.php" backupGlobals="false" colors="true">
2
+ <testsuites>
3
+ <testsuite name="general">
4
+ <directory prefix="test" suffix=".php">tests/php</directory>
5
+ </testsuite>
6
+ </testsuites>
7
+ <filter>
8
+ <whitelist processUncoveredFilesFromWhitelist="false">
9
+ <directory suffix=".php">.</directory>
10
+ <exclude>
11
+ <directory suffix=".php">tests</directory>
12
+ <directory suffix=".php">vendor</directory>
13
+ </exclude>
14
+ </whitelist>
15
+ </filter>
16
+ </phpunit>
vendor/automattic/jetpack-terms-of-service/src/class-terms-of-service.php ADDED
@@ -0,0 +1,112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * A Terms of Service class for Jetpack.
4
+ *
5
+ * @package automattic/jetpack-terms-of-service
6
+ */
7
+
8
+ namespace Automattic\Jetpack;
9
+
10
+ use Automattic\Jetpack\Status;
11
+
12
+ /**
13
+ * Class Terms_Of_Service
14
+ *
15
+ * Helper class that is responsible for the state of agreement of the terms of service.
16
+ */
17
+ class Terms_Of_Service {
18
+ /**
19
+ * Jetpack option name where the terms of service state is stored.
20
+ *
21
+ * @var string
22
+ */
23
+ const OPTION_NAME = 'tos_agreed';
24
+
25
+ /**
26
+ * Allow the site to agree to the terms of service.
27
+ */
28
+ public function agree() {
29
+ $this->set_agree();
30
+ /**
31
+ * Acton fired when the master user has agreed to the terms of service.
32
+ *
33
+ * @since 7.9.0
34
+ */
35
+ do_action( 'jetpack_agreed_to_terms_of_service' );
36
+ }
37
+
38
+ /**
39
+ * Allow the site to reject to the terms of service.
40
+ */
41
+ public function reject() {
42
+ $this->set_reject();
43
+ /**
44
+ * Acton fired when the master user has revoked their agreement to the terms of service.
45
+ *
46
+ * @since 7.9.1
47
+ */
48
+ do_action( 'jetpack_reject_terms_of_service' );
49
+ }
50
+
51
+ /**
52
+ * Returns whether the master user has agreed to the terms of service.
53
+ *
54
+ * The following conditions have to be met in order to agree to the terms of service.
55
+ * 1. The master user has gone though the connect flow.
56
+ * 2. The site is not in dev mode.
57
+ * 3. The master user of the site is still connected (deprecated @since 8.9.0).
58
+ *
59
+ * @return bool
60
+ */
61
+ public function has_agreed() {
62
+ if ( $this->is_offline_mode() ) {
63
+ return false;
64
+ }
65
+ /**
66
+ * Before 8.9.0 we used to also check if the master user of the site is connected
67
+ * by calling the Connection related `is_active` method.
68
+ * As of 8.9.0 we have removed this check in order to resolve the
69
+ * circular dependencies it was introducing to composer packages.
70
+ *
71
+ * @since 8.9.0
72
+ */
73
+ return $this->get_raw_has_agreed();
74
+ }
75
+
76
+ /**
77
+ * Abstracted for testing purposes.
78
+ * Tells us if the site is in dev mode.
79
+ *
80
+ * @return bool
81
+ */
82
+ protected function is_offline_mode() {
83
+ return ( new Status() )->is_offline_mode();
84
+ }
85
+
86
+ /**
87
+ * Gets just the Jetpack Option that contains the terms of service state.
88
+ * Abstracted for testing purposes.
89
+ *
90
+ * @return bool
91
+ */
92
+ protected function get_raw_has_agreed() {
93
+ return \Jetpack_Options::get_option( self::OPTION_NAME, false );
94
+ }
95
+
96
+ /**
97
+ * Sets the correct Jetpack Option to mark the that the site has agreed to the terms of service.
98
+ * Abstracted for testing purposes.
99
+ */
100
+ protected function set_agree() {
101
+ \Jetpack_Options::update_option( self::OPTION_NAME, true );
102
+ }
103
+
104
+ /**
105
+ * Sets the correct Jetpack Option to mark that the site has rejected the terms of service.
106
+ * Abstracted for testing purposes.
107
+ */
108
+ protected function set_reject() {
109
+ \Jetpack_Options::update_option( self::OPTION_NAME, false );
110
+ }
111
+
112
+ }
vendor/automattic/jetpack-terms-of-service/tests/php/bootstrap.php ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Bootstrap.
4
+ *
5
+ * @package automattic/jetpack-terms-of-service
6
+ */
7
+
8
+ /**
9
+ * Include composer autoloader.
10
+ */
11
+ require_once __DIR__ . '/../../vendor/autoload.php';
vendor/automattic/jetpack-terms-of-service/tests/php/test-terms-of-service.php ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Tests the TOS package.
4
+ *
5
+ * @package automattic/jetpack-terms-of-service
6
+ */
7
+
8
+ namespace Automattic\Jetpack;
9
+
10
+ use PHPUnit\Framework\TestCase;
11
+ use phpmock\Mock;
12
+ use phpmock\MockBuilder;
13
+
14
+ /**
15
+ * Class Test_Terms_Of_Service
16
+ *
17
+ * @package Automattic\Jetpack
18
+ */
19
+ class Test_Terms_Of_Service extends TestCase {
20
+
21
+ /**
22
+ * Test setup.
23
+ */
24
+ public function setUp() {
25
+ $this->terms_of_service = $this->createPartialMock(
26
+ __NAMESPACE__ . '\\Terms_Of_Service',
27
+ array( 'get_raw_has_agreed', 'is_offline_mode', 'set_agree', 'set_reject' )
28
+ );
29
+ }
30
+
31
+ /**
32
+ * Test teardown.
33
+ */
34
+ public function tearDown() {
35
+ Mock::disableAll();
36
+ }
37
+
38
+ /**
39
+ * Tests the agree function.
40
+ *
41
+ * @covers Automattic\Jetpack\Terms_Of_Service
42
+ */
43
+ public function test_agree() {
44
+ $this->mock_function( 'do_action', null, 'jetpack_agreed_to_terms_of_service' );
45
+ $this->terms_of_service->expects( $this->once() )->method( 'set_agree' );
46
+
47
+ $this->terms_of_service->agree();
48
+ }
49
+
50
+ /**
51
+ * Tests the revoke function.
52
+ *
53
+ * @covers Automattic\Jetpack\Terms_Of_Service
54
+ */
55
+ public function test_revoke() {
56
+ $this->mock_function( 'do_action', null, 'jetpack_reject_terms_of_service' );
57
+ $this->terms_of_service->expects( $this->once() )->method( 'set_reject' );
58
+
59
+ $this->terms_of_service->reject();
60
+ }
61
+
62
+ /**
63
+ * Tests if has_agreed returns correctly if TOS not agreed to.
64
+ *
65
+ * @covers Automattic\Jetpack\Terms_Of_Service
66
+ */
67
+ public function test_returns_false_if_not_agreed() {
68
+ $this->terms_of_service->expects( $this->once() )->method( 'get_raw_has_agreed' )->willReturn( false );
69
+ $this->assertFalse( $this->terms_of_service->has_agreed() );
70
+ }
71
+
72
+ /**
73
+ * Tests if has_agreed returns corrected if agreed but in dev mode.
74
+ *
75
+ * @covers Automattic\Jetpack\Terms_Of_Service
76
+ */
77
+ public function test_returns_false_if_has_agreed_but_is_offline_mode() {
78
+ // is_offline_mode.
79
+ $this->terms_of_service->method( 'get_raw_has_agreed' )->willReturn( true );
80
+ $this->terms_of_service->expects( $this->once() )->method( 'is_offline_mode' )->willReturn( true );
81
+ $this->assertFalse( $this->terms_of_service->has_agreed() );
82
+ }
83
+
84
+ /**
85
+ * Mock a global function and make it return a certain value.
86
+ *
87
+ * @param string $function_name Name of the function.
88
+ * @param mixed $return_value Return value of the function.
89
+ * @param string $called_with Value called with.
90
+ *
91
+ * @return phpmock\Mock The mock object.
92
+ */
93
+ protected function mock_function( $function_name, $return_value = null, $called_with = null ) {
94
+ $builder = new MockBuilder();
95
+ $builder->setNamespace( __NAMESPACE__ )
96
+ ->setName( $function_name )
97
+ ->setFunction(
98
+ function( $value ) use ( &$return_value, $called_with ) {
99
+ if ( $called_with ) {
100
+ $this->assertEquals( $value, $called_with );
101
+ }
102
+ return $return_value;
103
+ }
104
+ );
105
+ return $builder->build()->enable();
106
+ }
107
+ }
vendor/automattic/jetpack-tracking/composer.json ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "automattic/jetpack-tracking",
3
+ "description": "Tracking for Jetpack",
4
+ "type": "library",
5
+ "license": "GPL-2.0-or-later",
6
+ "require": {
7
+ "automattic/jetpack-options": "1.8.0",
8
+ "automattic/jetpack-status": "1.4.0",
9
+ "automattic/jetpack-terms-of-service": "1.6.0"
10
+ },
11
+ "require-dev": {
12
+ "phpunit/phpunit": "^5.7 || ^6.5 || ^7.5",
13
+ "php-mock/php-mock": "^2.1"
14
+ },
15
+ "autoload": {
16
+ "classmap": [
17
+ "legacy",
18
+ "src/"
19
+ ]
20
+ },
21
+ "repositories": [
22
+ {
23
+ "type": "path",
24
+ "url": "../*"
25
+ }
26
+ ],
27
+ "scripts": {
28
+ "phpunit": [
29
+ "@composer install",
30
+ "./vendor/phpunit/phpunit/phpunit --colors=always"
31
+ ]
32
+ },
33
+ "minimum-stability": "dev",
34
+ "prefer-stable": true
35
+ }
vendor/automattic/jetpack-tracking/legacy/class-jetpack-tracks-client.php ADDED
@@ -0,0 +1,228 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Legacy Jetpack Tracks Client
4
+ *
5
+ * @package Jetpack
6
+ */
7
+
8
+ /**
9
+ * Jetpack_Tracks_Client
10
+ *
11
+ * @autounit nosara tracks-client
12
+ *
13
+ * Send Tracks events on behalf of a user
14
+ *
15
+ * Example Usage:
16
+ ```php
17
+ require( dirname(__FILE__).'path/to/tracks/class-jetpack-tracks-client.php' );
18
+
19
+ $result = Jetpack_Tracks_Client::record_event( array(
20
+ '_en' => $event_name, // required
21
+ '_ui' => $user_id, // required unless _ul is provided
22
+ '_ul' => $user_login, // required unless _ui is provided
23
+
24
+ // Optional, but recommended
25
+ '_ts' => $ts_in_ms, // Default: now
26
+ '_via_ip' => $client_ip, // we use it for geo, etc.
27
+
28
+ // Possibly useful to set some context for the event
29
+ '_via_ua' => $client_user_agent,
30
+ '_via_url' => $client_url,
31
+ '_via_ref' => $client_referrer,
32
+
33
+ // For user-targeted tests
34
+ 'abtest_name' => $abtest_name,
35
+ 'abtest_variation' => $abtest_variation,
36
+
37
+ // Your application-specific properties
38
+ 'custom_property' => $some_value,
39
+ ) );
40
+
41
+ if ( is_wp_error( $result ) ) {
42
+ // Handle the error in your app
43
+ }
44
+ ```
45
+ */
46
+ class Jetpack_Tracks_Client {
47
+ const PIXEL = 'https://pixel.wp.com/t.gif';
48
+ const BROWSER_TYPE = 'php-agent';
49
+ const USER_AGENT_SLUG = 'tracks-client';
50
+ const VERSION = '0.3';
51
+
52
+ /**
53
+ * Stores the Terms of Service Object Reference.
54
+ *
55
+ * @var null
56
+ */
57
+ private static $terms_of_service = null;
58
+
59
+ /**
60
+ * Record an event.
61
+ *
62
+ * @param mixed $event Event object to send to Tracks. An array will be cast to object. Required.
63
+ * Properties are included directly in the pixel query string after light validation.
64
+ * @return mixed True on success, WP_Error on failure
65
+ */
66
+ public static function record_event( $event ) {
67
+ if ( ! self::$terms_of_service ) {
68
+ self::$terms_of_service = new \Automattic\Jetpack\Terms_Of_Service();
69
+ }
70
+
71
+ // Don't track users who have opted out or not agreed to our TOS, or are not running an active Jetpack.
72
+ if ( ! self::$terms_of_service->has_agreed() || ! empty( $_COOKIE['tk_opt-out'] ) ) {
73
+ return false;
74
+ }
75
+
76
+ if ( ! $event instanceof Jetpack_Tracks_Event ) {
77
+ $event = new Jetpack_Tracks_Event( $event );
78
+ }
79
+ if ( is_wp_error( $event ) ) {
80
+ return $event;
81
+ }
82
+
83
+ $pixel = $event->build_pixel_url( $event );
84
+
85
+ if ( ! $pixel ) {
86
+ return new WP_Error( 'invalid_pixel', 'cannot generate tracks pixel for given input', 400 );
87
+ }
88
+
89
+ return self::record_pixel( $pixel );
90
+ }
91
+
92
+ /**
93
+ * Synchronously request the pixel.
94
+ *
95
+ * @param string $pixel The wp.com tracking pixel.
96
+ * @return array|bool|WP_Error True if successful. wp_remote_get response or WP_Error if not.
97
+ */
98
+ public static function record_pixel( $pixel ) {
99
+ // Add the Request Timestamp and URL terminator just before the HTTP request.
100
+ $pixel .= '&_rt=' . self::build_timestamp() . '&_=_';
101
+
102
+ $response = wp_remote_get(
103
+ $pixel,
104
+ array(
105
+ 'blocking' => true, // The default, but being explicit here :).
106
+ 'timeout' => 1,
107
+ 'redirection' => 2,
108
+ 'httpversion' => '1.1',
109
+ 'user-agent' => self::get_user_agent(),
110
+ )
111
+ );
112
+
113
+ if ( is_wp_error( $response ) ) {
114
+ return $response;
115
+ }
116
+
117
+ $code = isset( $response['response']['code'] ) ? $response['response']['code'] : 0;
118
+
119
+ if ( 200 !== $code ) {
120
+ return new WP_Error( 'request_failed', 'Tracks pixel request failed', $code );
121
+ }
122
+
123
+ return true;
124
+ }
125
+
126
+ /**
127
+ * Get the user agent.
128
+ *
129
+ * @return string The user agent.
130
+ */
131
+ public static function get_user_agent() {
132
+ return self::USER_AGENT_SLUG . '-v' . self::VERSION;
133
+ }
134
+
135
+ /**
136
+ * Build an event and return its tracking URL
137
+ *
138
+ * @deprecated Call the `build_pixel_url` method on a Jetpack_Tracks_Event object instead.
139
+ * @param array $event Event keys and values.
140
+ * @return string URL of a tracking pixel.
141
+ */
142
+ public static function build_pixel_url( $event ) {
143
+ $_event = new Jetpack_Tracks_Event( $event );
144
+ return $_event->build_pixel_url();
145
+ }
146
+
147
+ /**
148
+ * Validate input for a tracks event.
149
+ *
150
+ * @deprecated Instantiate a Jetpack_Tracks_Event object instead
151
+ * @param array $event Event keys and values.
152
+ * @return mixed Validated keys and values or WP_Error on failure
153
+ */
154
+ private static function validate_and_sanitize( $event ) {
155
+ $_event = new Jetpack_Tracks_Event( $event );
156
+ if ( is_wp_error( $_event ) ) {
157
+ return $_event;
158
+ }
159
+ return get_object_vars( $_event );
160
+ }
161
+
162
+ /**
163
+ * Builds a timestamp.
164
+ *
165
+ * Milliseconds since 1970-01-01.
166
+ *
167
+ * @return string
168
+ */
169
+ public static function build_timestamp() {
170
+ $ts = round( microtime( true ) * 1000 );
171
+ return number_format( $ts, 0, '', '' );
172
+ }
173
+
174
+ /**
175
+ * Grabs the user's anon id from cookies, or generates and sets a new one
176
+ *
177
+ * @return string An anon id for the user
178
+ */
179
+ public static function get_anon_id() {
180
+ static $anon_id = null;
181
+
182
+ if ( ! isset( $anon_id ) ) {
183
+
184
+ // Did the browser send us a cookie?
185
+ if ( isset( $_COOKIE['tk_ai'] ) && preg_match( '#^[A-Za-z0-9+/=]{24}$#', $_COOKIE['tk_ai'] ) ) {
186
+ $anon_id = $_COOKIE['tk_ai'];
187
+ } else {
188
+
189
+ $binary = '';
190
+
191
+ // Generate a new anonId and try to save it in the browser's cookies.
192
+ // Note that base64-encoding an 18 character string generates a 24-character anon id.
193
+ for ( $i = 0; $i < 18; ++$i ) {
194
+ $binary .= chr( wp_rand( 0, 255 ) );
195
+ }
196
+
197
+ $anon_id = 'jetpack:' . base64_encode( $binary ); // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.obfuscation_base64_encode
198
+
199
+ if ( ! headers_sent()
200
+ && ! ( defined( 'REST_REQUEST' ) && REST_REQUEST )
201
+ && ! ( defined( 'XMLRPC_REQUEST' ) && XMLRPC_REQUEST )
202
+ ) {
203
+ setcookie( 'tk_ai', $anon_id );
204
+ }
205
+ }
206
+ }
207
+
208
+ return $anon_id;
209
+ }
210
+
211
+ /**
212
+ * Gets the WordPress.com user's Tracks identity, if connected.
213
+ *
214
+ * @return array|bool
215
+ */
216
+ public static function get_connected_user_tracks_identity() {
217
+ $user_data = Jetpack::get_connected_user_data();
218
+ if ( ! $user_data ) {
219
+ return false;
220
+ }
221
+
222
+ return array(
223
+ 'blogid' => Jetpack_Options::get_option( 'id', 0 ),
224
+ 'userid' => $user_data['ID'],
225
+ 'username' => $user_data['login'],
226
+ );
227
+ }
228
+ }
vendor/automattic/jetpack-tracking/legacy/class-jetpack-tracks-event.php ADDED
@@ -0,0 +1,189 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Class Jetpack_Tracks_Event. Legacy.
4
+ *
5
+ * @package automattic/jetpack-sync
6
+ */
7
+
8
+ /*
9
+ * @autounit nosara tracks-client
10
+ *
11
+ * Example Usage:
12
+ ```php
13
+ require_once( dirname(__FILE__) . 'path/to/tracks/class-jetpack-tracks-event.php' );
14
+
15
+ $event = new Jetpack_Tracks_Event( array(
16
+ '_en' => $event_name, // required
17
+ '_ui' => $user_id, // required unless _ul is provided
18
+ '_ul' => $user_login, // required unless _ui is provided
19
+
20
+ // Optional, but recommended
21
+ '_via_ip' => $client_ip, // for geo, etc.
22
+
23
+ // Possibly useful to set some context for the event
24
+ '_via_ua' => $client_user_agent,
25
+ '_via_url' => $client_url,
26
+ '_via_ref' => $client_referrer,
27
+
28
+ // For user-targeted tests
29
+ 'abtest_name' => $abtest_name,
30
+ 'abtest_variation' => $abtest_variation,
31
+
32
+ // Your application-specific properties
33
+ 'custom_property' => $some_value,
34
+ ) );
35
+
36
+ if ( is_wp_error( $event->error ) ) {
37
+ // Handle the error in your app
38
+ }
39
+
40
+ $bump_and_redirect_pixel = $event->build_signed_pixel_url();
41
+ ```
42
+ */
43
+
44
+ /**
45
+ * Class Jetpack_Tracks_Event
46
+ */
47
+ class Jetpack_Tracks_Event {
48
+ const EVENT_NAME_REGEX = '/^(([a-z0-9]+)_){2}([a-z0-9_]+)$/';
49
+ const PROP_NAME_REGEX = '/^[a-z_][a-z0-9_]*$/';
50
+
51
+ /**
52
+ * Tracks Event Error.
53
+ *
54
+ * @var mixed Error.
55
+ */
56
+ public $error;
57
+
58
+ /**
59
+ * Jetpack_Tracks_Event constructor.
60
+ *
61
+ * @param object $event Tracks event.
62
+ */
63
+ public function __construct( $event ) {
64
+ $_event = self::validate_and_sanitize( $event );
65
+ if ( is_wp_error( $_event ) ) {
66
+ $this->error = $_event;
67
+ return;
68
+ }
69
+
70
+ foreach ( $_event as $key => $value ) {
71
+ $this->{$key} = $value;
72
+ }
73
+ }
74
+
75
+ /**
76
+ * Record a track event.
77
+ */
78
+ public function record() {
79
+ return Jetpack_Tracks_Client::record_event( $this );
80
+ }
81
+
82
+ /**
83
+ * Annotate the event with all relevant info.
84
+ *
85
+ * @param mixed $event Object or (flat) array.
86
+ * @return mixed The transformed event array or WP_Error on failure.
87
+ */
88
+ public static function validate_and_sanitize( $event ) {
89
+ $event = (object) $event;
90
+
91
+ // Required.
92
+ if ( ! $event->_en ) {
93
+ return new WP_Error( 'invalid_event', 'A valid event must be specified via `_en`', 400 );
94
+ }
95
+
96
+ // delete non-routable addresses otherwise geoip will discard the record entirely.
97
+ if ( property_exists( $event, '_via_ip' ) && preg_match( '/^192\.168|^10\./', $event->_via_ip ) ) {
98
+ unset( $event->_via_ip );
99
+ }
100
+
101
+ $validated = array(
102
+ 'browser_type' => Jetpack_Tracks_Client::BROWSER_TYPE,
103
+ '_aua' => Jetpack_Tracks_Client::get_user_agent(),
104
+ );
105
+
106
+ $_event = (object) array_merge( (array) $event, $validated );
107
+
108
+ // If you want to block property names, do it here.
109
+
110
+ // Make sure we have an event timestamp.
111
+ if ( ! isset( $_event->_ts ) ) {
112
+ $_event->_ts = Jetpack_Tracks_Client::build_timestamp();
113
+ }
114
+
115
+ return $_event;
116
+ }
117
+
118
+ /**
119
+ * Build a pixel URL that will send a Tracks event when fired.
120
+ * On error, returns an empty string ('').
121
+ *
122
+ * @return string A pixel URL or empty string ('') if there were invalid args.
123
+ */
124
+ public function build_pixel_url() {
125
+ if ( $this->error ) {
126
+ return '';
127
+ }
128
+
129
+ $args = get_object_vars( $this );
130
+
131
+ // Request Timestamp and URL Terminator must be added just before the HTTP request or not at all.
132
+ unset( $args['_rt'] );
133
+ unset( $args['_'] );
134
+
135
+ $validated = self::validate_and_sanitize( $args );
136
+
137
+ if ( is_wp_error( $validated ) ) {
138
+ return '';
139
+ }
140
+
141
+ return Jetpack_Tracks_Client::PIXEL . '?' . http_build_query( $validated );
142
+ }
143
+
144
+ /**
145
+ * Validate the event name.
146
+ *
147
+ * @param string $name Event name.
148
+ * @return false|int
149
+ */
150
+ public static function event_name_is_valid( $name ) {
151
+ return preg_match( self::EVENT_NAME_REGEX, $name );
152
+ }
153
+
154
+ /**
155
+ * Validates prop name
156
+ *
157
+ * @param string $name Property name.
158
+ *
159
+ * @return false|int Truthy value.
160
+ */
161
+ public static function prop_name_is_valid( $name ) {
162
+ return preg_match( self::PROP_NAME_REGEX, $name );
163
+ }
164
+
165
+ /**
166
+ * Scrutinize event name.
167
+ *
168
+ * @param object $event Tracks event.
169
+ */
170
+ public static function scrutinize_event_names( $event ) {
171
+ if ( ! self::event_name_is_valid( $event->_en ) ) {
172
+ return;
173
+ }
174
+
175
+ $whitelisted_key_names = array(
176
+ 'anonId',
177
+ 'Browser_Type',
178
+ );
179
+
180
+ foreach ( array_keys( (array) $event ) as $key ) {
181
+ if ( in_array( $key, $whitelisted_key_names, true ) ) {
182
+ continue;
183
+ }
184
+ if ( ! self::prop_name_is_valid( $key ) ) {
185
+ return;
186
+ }
187
+ }
188
+ }
189
+ }
vendor/automattic/jetpack-tracking/phpunit.xml.dist ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <phpunit bootstrap="tests/php/bootstrap.php" backupGlobals="false" colors="true">
2
+ <testsuites>
3
+ <testsuite name="main">
4
+ <directory prefix="test" suffix=".php">tests/php</directory>
5
+ </testsuite>
6
+ </testsuites>
7
+ <filter>
8
+ <whitelist processUncoveredFilesFromWhitelist="false">
9
+ <directory suffix=".php">.</directory>
10
+ <exclude>
11
+ <directory suffix=".php">tests</directory>
12
+ <directory suffix=".php">vendor</directory>
13
+ </exclude>
14
+ </whitelist>
15
+ </filter>
16
+ </phpunit>
vendor/automattic/jetpack-tracking/src/class-tracking.php ADDED
@@ -0,0 +1,217 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Nosara Tracks for Jetpack
4
+ *
5
+ * @package automattic/jetpack-tracking
6
+ */
7
+
8
+ namespace Automattic\Jetpack;
9
+
10
+ /**
11
+ * The Tracking class, used to record events in wpcom
12
+ */
13
+ class Tracking {
14
+ /**
15
+ * Slug of the product that we are tracking.
16
+ *
17
+ * @var string
18
+ */
19
+ private $product_name;
20
+
21
+ /**
22
+ * Connection manager object.
23
+ *
24
+ * @var Object
25
+ */
26
+ private $connection;
27
+
28
+ /**
29
+ * Creates the Tracking object.
30
+ *
31
+ * @param String $product_name the slug of the product that we are tracking.
32
+ * @param Automattic\Jetpack\Connection\Manager $connection the connection manager object.
33
+ */
34
+ public function __construct( $product_name = 'jetpack', $connection = null ) {
35
+ $this->product_name = $product_name;
36
+ $this->connection = $connection;
37
+ if ( is_null( $this->connection ) ) {
38
+ // TODO We should always pass a Connection.
39
+ $this->connection = new Connection\Manager();
40
+ }
41
+ }
42
+
43
+ /**
44
+ * Enqueue script necessary for tracking.
45
+ */
46
+ public function enqueue_tracks_scripts() {
47
+ wp_enqueue_script( 'jptracks', plugins_url( '_inc/lib/tracks/tracks-ajax.js', JETPACK__PLUGIN_FILE ), array(), JETPACK__VERSION, true );
48
+ wp_localize_script(
49
+ 'jptracks',
50
+ 'jpTracksAJAX',
51
+ array(
52
+ 'ajaxurl' => admin_url( 'admin-ajax.php' ),
53
+ 'jpTracksAJAX_nonce' => wp_create_nonce( 'jp-tracks-ajax-nonce' ),
54
+ )
55
+ );
56
+ }
57
+
58
+ /**
59
+ * Send an event in Tracks.
60
+ *
61
+ * @param string $event_type Type of the event.
62
+ * @param array $data Data to send with the event.
63
+ * @param mixed $user username, user_id, or WP_user object.
64
+ */
65
+ public function record_user_event( $event_type, $data = array(), $user = null ) {
66
+ if ( ! $user ) {
67
+ $user = wp_get_current_user();
68
+ }
69
+ $site_url = get_option( 'siteurl' );
70
+
71
+ $data['_via_ua'] = isset( $_SERVER['HTTP_USER_AGENT'] ) ? $_SERVER['HTTP_USER_AGENT'] : '';
72
+ $data['_via_ip'] = isset( $_SERVER['REMOTE_ADDR'] ) ? $_SERVER['REMOTE_ADDR'] : '';
73
+ $data['_lg'] = isset( $_SERVER['HTTP_ACCEPT_LANGUAGE'] ) ? $_SERVER['HTTP_ACCEPT_LANGUAGE'] : '';
74
+ $data['blog_url'] = $site_url;
75
+ $data['blog_id'] = \Jetpack_Options::get_option( 'id' );
76
+
77
+ // Top level events should not be namespaced.
78
+ if ( '_aliasUser' !== $event_type ) {
79
+ $event_type = $this->product_name . '_' . $event_type;
80
+ }
81
+
82
+ $data['jetpack_version'] = defined( 'JETPACK__VERSION' ) ? JETPACK__VERSION : '0';
83
+
84
+ return $this->tracks_record_event( $user, $event_type, $data );
85
+ }
86
+
87
+ /**
88
+ * Record an event in Tracks - this is the preferred way to record events from PHP.
89
+ *
90
+ * @param mixed $user username, user_id, or WP_user object.
91
+ * @param string $event_name The name of the event.
92
+ * @param array $properties Custom properties to send with the event.
93
+ * @param int $event_timestamp_millis The time in millis since 1970-01-01 00:00:00 when the event occurred.
94
+ *
95
+ * @return bool true for success | \WP_Error if the event pixel could not be fired
96
+ */
97
+ public function tracks_record_event( $user, $event_name, $properties = array(), $event_timestamp_millis = false ) {
98
+
99
+ // We don't want to track user events during unit tests/CI runs.
100
+ if ( $user instanceof \WP_User && 'wptests_capabilities' === $user->cap_key ) {
101
+ return false;
102
+ }
103
+ $terms_of_service = new Terms_Of_Service();
104
+ $status = new Status();
105
+ // Don't track users who have not agreed to our TOS.
106
+ if ( ! $this->should_enable_tracking( $terms_of_service, $status ) ) {
107
+ return false;
108
+ }
109
+
110
+ $event_obj = $this->tracks_build_event_obj( $user, $event_name, $properties, $event_timestamp_millis );
111
+
112
+ if ( is_wp_error( $event_obj->error ) ) {
113
+ return $event_obj->error;
114
+ }
115
+
116
+ return $event_obj->record();
117
+ }
118
+
119
+ /**
120
+ * Determines whether tracking should be enabled.
121
+ *
122
+ * @param Automattic\Jetpack\Terms_Of_Service $terms_of_service A Terms_Of_Service object.
123
+ * @param Automattic\Jetpack\Status $status A Status object.
124
+ *
125
+ * @return boolean True if tracking should be enabled, else false.
126
+ */
127
+ public function should_enable_tracking( $terms_of_service, $status ) {
128
+ if ( $status->is_offline_mode() ) {
129
+ return false;
130
+ }
131
+
132
+ return $terms_of_service->has_agreed() || $this->connection->is_user_connected();
133
+ }
134
+
135
+ /**
136
+ * Procedurally build a Tracks Event Object.
137
+ * NOTE: Use this only when the simpler Automattic\Jetpack\Tracking->jetpack_tracks_record_event() function won't work for you.
138
+ *
139
+ * @param WP_user $user WP_user object.
140
+ * @param string $event_name The name of the event.
141
+ * @param array $properties Custom properties to send with the event.
142
+ * @param int $event_timestamp_millis The time in millis since 1970-01-01 00:00:00 when the event occurred.
143
+ *
144
+ * @return \Jetpack_Tracks_Event|\WP_Error
145
+ */
146
+ private function tracks_build_event_obj( $user, $event_name, $properties = array(), $event_timestamp_millis = false ) {
147
+ $identity = $this->tracks_get_identity( $user->ID );
148
+
149
+ $properties['user_lang'] = $user->get( 'WPLANG' );
150
+
151
+ $blog_details = array(
152
+ 'blog_lang' => isset( $properties['blog_lang'] ) ? $properties['blog_lang'] : get_bloginfo( 'language' ),
153
+ );
154
+
155
+ $timestamp = ( false !== $event_timestamp_millis ) ? $event_timestamp_millis : round( microtime( true ) * 1000 );
156
+ $timestamp_string = is_string( $timestamp ) ? $timestamp : number_format( $timestamp, 0, '', '' );
157
+
158
+ return new \Jetpack_Tracks_Event(
159
+ array_merge(
160
+ $blog_details,
161
+ (array) $properties,
162
+ $identity,
163
+ array(
164
+ '_en' => $event_name,
165
+ '_ts' => $timestamp_string,
166
+ )
167
+ )
168
+ );
169
+ }
170
+
171
+ /**
172
+ * Get the identity to send to tracks.
173
+ *
174
+ * @param int $user_id The user id of the local user.
175
+ *
176
+ * @return array $identity
177
+ */
178
+ public function tracks_get_identity( $user_id ) {
179
+
180
+ // Meta is set, and user is still connected. Use WPCOM ID.
181
+ $wpcom_id = get_user_meta( $user_id, 'jetpack_tracks_wpcom_id', true );
182
+ if ( $wpcom_id && $this->connection->is_user_connected( $user_id ) ) {
183
+ return array(
184
+ '_ut' => 'wpcom:user_id',
185
+ '_ui' => $wpcom_id,
186
+ );
187
+ }
188
+
189
+ // User is connected, but no meta is set yet. Use WPCOM ID and set meta.
190
+ if ( $this->connection->is_user_connected( $user_id ) ) {
191
+ $wpcom_user_data = $this->connection->get_connected_user_data( $user_id );
192
+ update_user_meta( $user_id, 'jetpack_tracks_wpcom_id', $wpcom_user_data['ID'] );
193
+
194
+ return array(
195
+ '_ut' => 'wpcom:user_id',
196
+ '_ui' => $wpcom_user_data['ID'],
197
+ );
198
+ }
199
+
200
+ // User isn't linked at all. Fall back to anonymous ID.
201
+ $anon_id = get_user_meta( $user_id, 'jetpack_tracks_anon_id', true );
202
+ if ( ! $anon_id ) {
203
+ $anon_id = \Jetpack_Tracks_Client::get_anon_id();
204
+ add_user_meta( $user_id, 'jetpack_tracks_anon_id', $anon_id, false );
205
+ }
206
+
207
+ if ( ! isset( $_COOKIE['tk_ai'] ) && ! headers_sent() ) {
208
+ setcookie( 'tk_ai', $anon_id );
209
+ }
210
+
211
+ return array(
212
+ '_ut' => 'anon',
213
+ '_ui' => $anon_id,
214
+ );
215
+
216
+ }
217
+ }
vendor/automattic/jetpack-tracking/tests/php/bootstrap.php ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Bootstrap.
4
+ *
5
+ * @package automattic/jetpack-tracking
6
+ */
7
+
8
+ /**
9
+ * Includes the Composer autoloader.
10
+ */
11
+ require_once __DIR__ . '/../../vendor/autoload.php';
vendor/automattic/jetpack-tracking/tests/php/test-tracking.php ADDED
@@ -0,0 +1,106 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName
2
+ /**
3
+ * Tests for Automattic\Jetpack\Tracking methods
4
+ *
5
+ * @package automattic/jetpack-tracking
6
+ */
7
+
8
+ namespace Automattic\Jetpack;
9
+
10
+ use PHPUnit\Framework\TestCase;
11
+
12
+ /**
13
+ * Tracking test suite.
14
+ */
15
+ class Test_Tracking extends TestCase {
16
+
17
+ /**
18
+ * Test setup.
19
+ */
20
+ public function setUp() {
21
+ $this->connection = $this->getMockBuilder( 'Automattic\Jetpack\Connection\Manager' )
22
+ ->setMethods( array( 'is_user_connected' ) )
23
+ ->getMock();
24
+ $this->tracking = new Tracking( 'jetpack', $this->connection );
25
+ }
26
+
27
+ /**
28
+ * Tests the Automattic\Jetpack\Tracking::should_enabled_tracking() method.
29
+ *
30
+ * @param array $inputs The test input values.
31
+ * @param boolean $expected_output The expected output of Automattic\Jetpack\Tracking::should_enabled_tracking().
32
+ *
33
+ * @covers Automattic\Jetpack\Tracking::should_enabled_tracking
34
+ * @dataProvider data_provider_test_should_enable_tracking
35
+ */
36
+ public function test_should_enable_tracking( $inputs, $expected_output ) {
37
+ $tos = $this->getMockBuilder( 'Automattic\Jetpack\Terms_Of_Service' )
38
+ ->setMethods( array( 'has_agreed' ) )
39
+ ->getMock();
40
+
41
+ $tos->method( 'has_agreed' )
42
+ ->will( $this->returnValue( $inputs['has_agreed'] ) );
43
+
44
+ $status = $this->getMockBuilder( 'Automattic\Jetpack\Status' )
45
+ ->setMethods( array( 'is_offline_mode' ) )
46
+ ->getMock();
47
+
48
+ $status->method( 'is_offline_mode' )
49
+ ->will( $this->returnValue( $inputs['offline'] ) );
50
+
51
+ $this->connection->method( 'is_user_connected' )
52
+ ->will( $this->returnValue( $inputs['connected'] ) );
53
+
54
+ $this->assertEquals( $expected_output, $this->tracking->should_enable_tracking( $tos, $status ) );
55
+ }
56
+
57
+ /**
58
+ * Data provider for test_should_enable_tracking.
59
+ *
60
+ * @return array
61
+ */
62
+ public function data_provider_test_should_enable_tracking() {
63
+ return array(
64
+ 'offline: true, has agreed: true, connected: true' => array(
65
+ array(
66
+ 'offline' => true,
67
+ 'has_agreed' => true,
68
+ 'connected' => true,
69
+ ),
70
+ false,
71
+ ),
72
+ 'offline: false, has agreed: true, connected: true' => array(
73
+ array(
74
+ 'offline' => false,
75
+ 'has_agreed' => true,
76
+ 'connected' => true,
77
+ ),
78
+ true,
79
+ ),
80
+ 'offline: false, has agreed: true, connected: false' => array(
81
+ array(
82
+ 'offline' => false,
83
+ 'has_agreed' => true,
84
+ 'connected' => false,
85
+ ),
86
+ true,
87
+ ),
88
+ 'offline: false, has agreed: false, connected: true' => array(
89
+ array(
90
+ 'offline' => false,
91
+ 'has_agreed' => false,
92
+ 'connected' => true,
93
+ ),
94
+ true,
95
+ ),
96
+ 'offline: false, has agreed: false, connected: false' => array(
97
+ array(
98
+ 'offline' => false,
99
+ 'has_agreed' => false,
100
+ 'connected' => false,
101
+ ),
102
+ false,
103
+ ),
104
+ );
105
+ }
106
+ }
vendor/class-autoloader-handler.php ADDED
@@ -0,0 +1,140 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file was automatically generated by automattic/jetpack-autoloader.
4
+ *
5
+ * @package automattic/jetpack-autoloader
6
+ */
7
+
8
+ namespace Automattic\Jetpack\Autoloader\jp3418cca783c4a7d647675a3b0ee88cfa;
9
+
10
+ // phpcs:ignore
11
+
12
+ /**
13
+ * This class selects the package version for the autoloader.
14
+ */
15
+ class Autoloader_Handler {
16
+
17
+ // The name of the autoloader function registered by v1.* autoloaders.
18
+ const V1_AUTOLOADER_NAME = 'Automattic\Jetpack\Autoloader\autoloader';
19
+
20
+ /*
21
+ * The autoloader function for v2.* autoloaders is named __NAMESPACE__ . \autoloader.
22
+ * The namespace is defined in AutoloadGenerator as
23
+ * 'Automattic\Jetpack\Autoloader\jp' plus a unique suffix.
24
+ */
25
+ const V2_AUTOLOADER_BASE = 'Automattic\Jetpack\Autoloader\jp';
26
+
27
+ const AUTOLOAD_GENERATOR_CLASS_NAME = 'Automattic\Jetpack\Autoloader\AutoloadGenerator';
28
+
29
+ /**
30
+ * The Plugins_Handler object.
31
+ *
32
+ * @var Plugins_Handler
33
+ */
34
+ private $plugins_handler = null;
35
+
36
+ /**
37
+ * The Version_Selector object.
38
+ *
39
+ * @var Version_Selector
40
+ */
41
+ private $version_selector = null;
42
+
43
+ /**
44
+ * The constructor.
45
+ *
46
+ * @param Plugins_Handler $plugins_handler The Plugins_Handler object.
47
+ * @param Version_Selector $version_selector The Version_Selector object.
48
+ */
49
+ public function __construct( $plugins_handler, $version_selector ) {
50
+ $this->plugins_handler = $plugins_handler;
51
+ $this->version_selector = $version_selector;
52
+ }
53
+
54
+ /**
55
+ * Finds the latest installed autoloader.
56
+ */
57
+ public function find_latest_autoloader() {
58
+ global $jetpack_autoloader_latest_version;
59
+
60
+ $current_autoloader_path = trailingslashit( dirname( __FILE__ ) ) . 'autoload_packages.php';
61
+ $current_autoloader_path = str_replace( '\\', '/', $current_autoloader_path );
62
+
63
+ $selected_autoloader_version = null;
64
+ $selected_autoloader_path = null;
65
+
66
+ $active_plugins_paths = $this->plugins_handler->get_all_active_plugins_paths();
67
+
68
+ foreach ( $active_plugins_paths as $plugin_path ) {
69
+ $classmap_path = trailingslashit( $plugin_path ) . 'vendor/composer/jetpack_autoload_classmap.php';
70
+
71
+ if ( file_exists( $classmap_path ) ) {
72
+ $packages = require $classmap_path;
73
+
74
+ $compare_version = $packages[ self::AUTOLOAD_GENERATOR_CLASS_NAME ]['version'];
75
+ $compare_path = trailingslashit( $plugin_path ) . 'vendor/autoload_packages.php';
76
+
77
+ if ( $this->version_selector->is_version_update_required( $selected_autoloader_version, $compare_version ) ) {
78
+ $selected_autoloader_version = $compare_version;
79
+ $selected_autoloader_path = $compare_path;
80
+ }
81
+ }
82
+ }
83
+
84
+ $jetpack_autoloader_latest_version = $selected_autoloader_version;
85
+
86
+ // $current_autoloader_path is already loaded
87
+ if ( $current_autoloader_path !== $selected_autoloader_path ) {
88
+ require $selected_autoloader_path;
89
+ }
90
+ }
91
+
92
+ /**
93
+ * Get this autoloader's package version.
94
+ *
95
+ * @return String The autoloader's package version.
96
+ */
97
+ public function get_current_autoloader_version() {
98
+ $classmap_file = trailingslashit( dirname( __FILE__ ) ) . 'composer/jetpack_autoload_classmap.php';
99
+ $autoloader_packages = require $classmap_file;
100
+
101
+ return $autoloader_packages[ self::AUTOLOAD_GENERATOR_CLASS_NAME ]['version'];
102
+ }
103
+
104
+
105
+ /**
106
+ * Updates the spl autoloader chain:
107
+ * - Registers this namespace's autoloader function.
108
+ * - If a v1 autoloader function is registered, moves it to the end of the chain.
109
+ * - Removes any other v2 autoloader functions that have already been registered. This
110
+ * can occur when the autoloader is being reset by an activating plugin.
111
+ */
112
+ public function update_autoloader_chain() {
113
+ spl_autoload_register( __NAMESPACE__ . '\autoloader' );
114
+
115
+ $autoload_chain = spl_autoload_functions();
116
+
117
+ foreach ( $autoload_chain as $autoloader ) {
118
+ if ( ! is_string( $autoloader ) ) {
119
+ /*
120
+ * The Jetpack Autoloader functions are registered as strings, so
121
+ * just continue if $autoloader isn't a string.
122
+ */
123
+ continue;
124
+ }
125
+
126
+ if ( self::V1_AUTOLOADER_NAME === $autoloader ) {
127
+ // Move the v1.* autoloader function to the end of the spl autoloader chain.
128
+ spl_autoload_unregister( $autoloader );
129
+ spl_autoload_register( $autoloader );
130
+
131
+ } elseif (
132
+ self::V2_AUTOLOADER_BASE === substr( $autoloader, 0, strlen( self::V2_AUTOLOADER_BASE ) )
133
+ && __NAMESPACE__ !== substr( $autoloader, 0, strlen( __NAMESPACE__ ) )
134
+ ) {
135
+ // Unregister any other v2.* autoloader functions if they're in the chain.
136
+ spl_autoload_unregister( $autoloader );
137
+ }
138
+ }
139
+ }
140
+ }
vendor/class-classes-handler.php ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file was automatically generated by automattic/jetpack-autoloader.
4
+ *
5
+ * @package automattic/jetpack-autoloader
6
+ */
7
+
8
+ namespace Automattic\Jetpack\Autoloader\jp3418cca783c4a7d647675a3b0ee88cfa;
9
+
10
+ // phpcs:ignore
11
+
12
+ /**
13
+ * This class selects the package versions for the package classes.
14
+ */
15
+ class Classes_Handler {
16
+
17
+ /**
18
+ * The Plugins_Handler object.
19
+ *
20
+ * @var Plugins_Handler
21
+ */
22
+ private $plugins_handler = null;
23
+
24
+ /**
25
+ * The Version_Selector object.
26
+ *
27
+ * @var Version_Selector
28
+ */
29
+ private $version_selector = null;
30
+
31
+ /**
32
+ * The constructor.
33
+ *
34
+ * @param Plugins_Handler $plugins_handler The Plugins_Handler object.
35
+ * @param Version_Selector $version_selector The Version_Selector object.
36
+ */
37
+ public function __construct( $plugins_handler, $version_selector ) {
38
+ $this->plugins_handler = $plugins_handler;
39
+ $this->version_selector = $version_selector;
40
+ }
41
+
42
+ /**
43
+ * Adds the version of a package to the $jetpack_packages_classmap global
44
+ * array so that the autoloader is able to find it.
45
+ *
46
+ * @param string $class_name Name of the class that you want to autoload.
47
+ * @param string $version Version of the class.
48
+ * @param string $path Absolute path to the class so that we can load it.
49
+ */
50
+ public function enqueue_package_class( $class_name, $version, $path ) {
51
+ global $jetpack_packages_classmap;
52
+
53
+ if ( isset( $jetpack_packages_classmap[ $class_name ]['version'] ) ) {
54
+ $selected_version = $jetpack_packages_classmap[ $class_name ]['version'];
55
+ } else {
56
+ $selected_version = null;
57
+ }
58
+
59
+ if ( $this->version_selector->is_version_update_required( $selected_version, $version ) ) {
60
+ $jetpack_packages_classmap[ $class_name ] = array(
61
+ 'version' => $version,
62
+ 'path' => $path,
63
+ );
64
+ }
65
+ }
66
+
67
+ /**
68
+ * Creates the path to the plugin's classmap file. The classmap filename is the filename
69
+ * generated by Jetpack Autoloader version >= 2.0.
70
+ *
71
+ * @param String $plugin_path The plugin path.
72
+ *
73
+ * @return String the classmap path.
74
+ */
75
+ public function create_classmap_path( $plugin_path ) {
76
+ return trailingslashit( $plugin_path ) . 'vendor/composer/jetpack_autoload_classmap.php';
77
+ }
78
+
79
+ /**
80
+ * Initializes the classmap.
81
+ */
82
+ public function set_class_paths() {
83
+ $active_plugins_paths = $this->plugins_handler->get_all_active_plugins_paths();
84
+ $classmap_paths = array_map( array( $this, 'create_classmap_path' ), $active_plugins_paths );
85
+
86
+ foreach ( $classmap_paths as $path ) {
87
+ if ( is_readable( $path ) ) {
88
+ $class_map = require $path;
89
+
90
+ if ( is_array( $class_map ) ) {
91
+ foreach ( $class_map as $class_name => $class_info ) {
92
+ $this->enqueue_package_class( $class_name, $class_info['version'], $class_info['path'] );
93
+ }
94
+ }
95
+ }
96
+ }
97
+ }
98
+ }
vendor/class-files-handler.php ADDED
@@ -0,0 +1,112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file was automatically generated by automattic/jetpack-autoloader.
4
+ *
5
+ * @package automattic/jetpack-autoloader
6
+ */
7
+
8
+ namespace Automattic\Jetpack\Autoloader\jp3418cca783c4a7d647675a3b0ee88cfa;
9
+
10
+ // phpcs:ignore
11
+
12
+ /**
13
+ * This class selects the package versions for the package files.
14
+ */
15
+ class Files_Handler {
16
+
17
+ /**
18
+ * The Plugins_Handler object.
19
+ *
20
+ * @var Plugins_Handler
21
+ */
22
+ private $plugins_handler = null;
23
+
24
+ /**
25
+ * The Version_Selector object.
26
+ *
27
+ * @var Version_Selector
28
+ */
29
+ private $version_selector = null;
30
+
31
+ /**
32
+ * The constructor.
33
+ *
34
+ * @param Plugins_Handler $plugins_handler The Plugins_Handler object.
35
+ * @param Version_Selector $version_selector The Version_Selector object.
36
+ */
37
+ public function __construct( $plugins_handler, $version_selector ) {
38
+ $this->plugins_handler = $plugins_handler;
39
+ $this->version_selector = $version_selector;
40
+ }
41
+
42
+ /**
43
+ * Adds the version of a package file to the $jetpack_packages_filemap global
44
+ * array so that we can load the most recent version.
45
+ *
46
+ * @param string $file_identifier Unique id to file assigned by composer based on package name and filename.
47
+ * @param string $version Version of the file.
48
+ * @param string $path Absolute path to the file so that we can load it.
49
+ */
50
+ public function enqueue_package_file( $file_identifier, $version, $path ) {
51
+ global $jetpack_packages_filemap;
52
+
53
+ if ( isset( $jetpack_packages_filemap[ $file_identifier ]['version'] ) ) {
54
+ $selected_version = $jetpack_packages_filemap[ $file_identifier ]['version'];
55
+ } else {
56
+ $selected_version = null;
57
+ }
58
+
59
+ if ( $this->version_selector->is_version_update_required( $selected_version, $version ) ) {
60
+ $jetpack_packages_filemap[ $file_identifier ] = array(
61
+ 'version' => $version,
62
+ 'path' => $path,
63
+ );
64
+ }
65
+ }
66
+
67
+ /**
68
+ * Creates a path to the plugin's filemap. The filemap filename is the filename
69
+ * generated by Jetpack Autoloader version >= 2.0.
70
+ *
71
+ * @param String $plugin_path The plugin path.
72
+ *
73
+ * @return String The filemap path
74
+ */
75
+ public function create_filemap_path( $plugin_path ) {
76
+ return trailingslashit( $plugin_path ) . 'vendor/composer/jetpack_autoload_filemap.php';
77
+ }
78
+
79
+ /**
80
+ * Initializes the filemap.
81
+ */
82
+ public function set_file_paths() {
83
+ $active_plugin_paths = $this->plugins_handler->get_all_active_plugins_paths();
84
+ $filemap_paths = array_map( array( $this, 'create_filemap_path' ), $active_plugin_paths );
85
+
86
+ foreach ( $filemap_paths as $path ) {
87
+ if ( is_readable( $path ) ) {
88
+ $file_map = require $path;
89
+
90
+ if ( is_array( $file_map ) ) {
91
+ foreach ( $file_map as $file_identifier => $file_data ) {
92
+ $this->enqueue_package_file( $file_identifier, $file_data['version'], $file_data['path'] );
93
+ }
94
+ }
95
+ }
96
+ }
97
+ }
98
+
99
+ /**
100
+ * Include latest version of all enqueued files.
101
+ */
102
+ public function file_loader() {
103
+ global $jetpack_packages_filemap;
104
+ foreach ( $jetpack_packages_filemap as $file_identifier => $file_data ) {
105
+ if ( empty( $GLOBALS['__composer_autoload_files'][ $file_identifier ] ) ) {
106
+ require_once $file_data['path'];
107
+
108
+ $GLOBALS['__composer_autoload_files'][ $file_identifier ] = true;
109
+ }
110
+ }
111
+ }
112
+ }
vendor/class-plugins-handler.php ADDED
@@ -0,0 +1,158 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file was automatically generated by automattic/jetpack-autoloader.
4
+ *
5
+ * @package automattic/jetpack-autoloader
6
+ */
7
+
8
+ namespace Automattic\Jetpack\Autoloader\jp3418cca783c4a7d647675a3b0ee88cfa;
9
+
10
+ // phpcs:ignore
11
+
12
+ /**
13
+ * This class provides information about the current plugin and the site's active plugins.
14
+ */
15
+ class Plugins_Handler {
16
+
17
+ /**
18
+ * Returns an array containing the paths of all active plugins and all known activating plugins.
19
+ *
20
+ * @return array An array of plugin paths as strings or an empty array.
21
+ */
22
+ public function get_all_active_plugins_paths() {
23
+ global $jetpack_autoloader_activating_plugins_paths;
24
+
25
+ $active_plugins_paths = $this->get_active_plugins_paths();
26
+ $multisite_plugins_paths = $this->get_multisite_plugins_paths();
27
+ $active_plugins_paths = array_merge( $multisite_plugins_paths, $active_plugins_paths );
28
+
29
+ $activating_plugins_paths = $this->get_plugins_activating_via_request();
30
+ $activating_plugins_paths = array_unique( array_merge( $activating_plugins_paths, $jetpack_autoloader_activating_plugins_paths ) );
31
+
32
+ $plugins_paths = array_unique( array_merge( $active_plugins_paths, $activating_plugins_paths ) );
33
+
34
+ return $plugins_paths;
35
+ }
36
+
37
+ /**
38
+ * Returns an array containing the paths of the active sitewide plugins in a multisite environment.
39
+ *
40
+ * @return array The paths of the active sitewide plugins or an empty array.
41
+ */
42
+ protected function get_multisite_plugins_paths() {
43
+ $plugin_slugs = is_multisite()
44
+ ? array_keys( get_site_option( 'active_sitewide_plugins', array() ) )
45
+ : array();
46
+
47
+ $plugin_slugs = array_filter( $plugin_slugs, array( $this, 'is_directory_plugin' ) );
48
+ return array_map( array( $this, 'create_plugin_path' ), $plugin_slugs );
49
+ }
50
+
51
+ /**
52
+ * Returns an array containing the paths of the currently active plugins.
53
+ *
54
+ * @return array The active plugins' paths or an empty array.
55
+ */
56
+ protected function get_active_plugins_paths() {
57
+ $plugin_slugs = (array) get_option( 'active_plugins', array() );
58
+ $plugin_slugs = array_filter( $plugin_slugs, array( $this, 'is_directory_plugin' ) );
59
+ return array_map( array( $this, 'create_plugin_path' ), $plugin_slugs );
60
+ }
61
+
62
+ /**
63
+ * Adds the plugin directory from the WP_PLUGIN_DIR constant to the plugin slug.
64
+ *
65
+ * @param string $plugin_slug The plugin slug.
66
+ */
67
+ private function create_plugin_path( $plugin_slug ) {
68
+ $plugin_dir = str_replace( '\\', '/', WP_PLUGIN_DIR );
69
+ return trailingslashit( $plugin_dir ) . substr( $plugin_slug, 0, strrpos( $plugin_slug, '/' ) );
70
+ }
71
+
72
+ /**
73
+ * Ensure the plugin has its own directory and not a single-file plugin.
74
+ *
75
+ * @param string $plugin Plugin name, may be prefixed with "/".
76
+ *
77
+ * @return bool
78
+ */
79
+ public function is_directory_plugin( $plugin ) {
80
+ return strlen( $plugin ) > 1 && false !== strpos( $plugin, '/', 1 );
81
+ }
82
+
83
+ /**
84
+ * Checks whether the autoloader should be reset. The autoloader should be reset
85
+ * when a plugin is activating via a method other than a request, for example
86
+ * using WP-CLI. When this occurs, the activating plugin was not known when
87
+ * the autoloader selected the package versions for the classmap and filemap
88
+ * globals, so the autoloader must reselect the versions.
89
+ *
90
+ * If the current plugin is not already known, this method will add it to the
91
+ * $jetpack_autoloader_activating_plugins_paths global.
92
+ *
93
+ * @return boolean True if the autoloder must be reset, else false.
94
+ */
95
+ public function should_autoloader_reset() {
96
+ global $jetpack_autoloader_activating_plugins_paths;
97
+
98
+ $plugins_paths = $this->get_all_active_plugins_paths();
99
+ $current_plugin_path = $this->get_current_plugin_path();
100
+ $plugin_unknown = ! in_array( $current_plugin_path, $plugins_paths, true );
101
+
102
+ if ( $plugin_unknown ) {
103
+ // If the current plugin isn't known, add it to the activating plugins list.
104
+ $jetpack_autoloader_activating_plugins_paths[] = $current_plugin_path;
105
+ }
106
+
107
+ return $plugin_unknown;
108
+ }
109
+
110
+ /**
111
+ * Returns an array containing the names of plugins that are activating via a request.
112
+ *
113
+ * @return array An array of names of the activating plugins or an empty array.
114
+ */
115
+ private function get_plugins_activating_via_request() {
116
+
117
+ // phpcs:disable WordPress.Security.NonceVerification.Recommended
118
+
119
+ $action = isset( $_REQUEST['action'] ) ? $_REQUEST['action'] : false;
120
+ $plugin = isset( $_REQUEST['plugin'] ) ? $_REQUEST['plugin'] : false;
121
+ $nonce = isset( $_REQUEST['_wpnonce'] ) ? $_REQUEST['_wpnonce'] : false;
122
+
123
+ /**
124
+ * Note: we're not actually checking the nonce here becase it's too early
125
+ * in the execution. The pluggable functions are not yet loaded to give
126
+ * plugins a chance to plug their versions. Therefore we're doing the bare
127
+ * minimum: checking whether the nonce exists and it's in the right place.
128
+ * The request will fail later if the nonce doesn't pass the check.
129
+ */
130
+
131
+ // In case of a single plugin activation there will be a plugin slug.
132
+ if ( 'activate' === $action && ! empty( $nonce ) ) {
133
+ return array( $this->create_plugin_path( wp_unslash( $plugin ) ) );
134
+ }
135
+
136
+ $plugins = isset( $_REQUEST['checked'] ) ? $_REQUEST['checked'] : array();
137
+
138
+ // In case of bulk activation there will be an array of plugins.
139
+ if ( 'activate-selected' === $action && ! empty( $nonce ) ) {
140
+ $plugin_slugs = array_map( 'wp_unslash', $plugins );
141
+ return array_map( array( $this, 'create_plugin_path' ), $plugin_slugs );
142
+ }
143
+
144
+ // phpcs:enable WordPress.Security.NonceVerification.Recommended
145
+ return array();
146
+ }
147
+
148
+ /**
149
+ * Returns the path of the current plugin.
150
+ *
151
+ * @return string The path of the current plugin.
152
+ */
153
+ public function get_current_plugin_path() {
154
+ $vendor_path = str_replace( '\\', '/', dirname( __FILE__ ) );
155
+ // Path to the plugin's folder (the parent of the vendor folder).
156
+ return substr( $vendor_path, 0, strrpos( $vendor_path, '/' ) );
157
+ }
158
+ }
vendor/class-version-selector.php ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file was automatically generated by automattic/jetpack-autoloader.
4
+ *
5
+ * @package automattic/jetpack-autoloader
6
+ */
7
+
8
+ namespace Automattic\Jetpack\Autoloader\jp3418cca783c4a7d647675a3b0ee88cfa;
9
+
10
+ // phpcs:ignore
11
+
12
+ /**
13
+ * Used to select package versions.
14
+ */
15
+ class Version_Selector {
16
+
17
+ /**
18
+ * Checks whether the selected package version should be updated. Composer development
19
+ * package versions ('9999999-dev' or versions that start with 'dev-') are favored
20
+ * when the JETPACK_AUTOLOAD_DEV constant is set to true.
21
+ *
22
+ * @param String $selected_version The currently selected package version.
23
+ * @param String $compare_version The package version that is being evaluated to
24
+ * determine if the version needs to be updated.
25
+ *
26
+ * @return Boolean Returns true if the selected package version should be updated,
27
+ * else false.
28
+ */
29
+ public function is_version_update_required( $selected_version, $compare_version ) {
30
+ $use_dev_versions = defined( 'JETPACK_AUTOLOAD_DEV' ) && JETPACK_AUTOLOAD_DEV;
31
+
32
+ if ( is_null( $selected_version ) ) {
33
+ return true;
34
+ }
35
+
36
+ if ( $use_dev_versions && $this->is_package_version_dev( $selected_version ) ) {
37
+ return false;
38
+ }
39
+
40
+ if ( $this->is_package_version_dev( $compare_version ) ) {
41
+ if ( $use_dev_versions ) {
42
+ return true;
43
+ } else {
44
+ return false;
45
+ }
46
+ }
47
+
48
+ if ( version_compare( $selected_version, $compare_version, '<' ) ) {
49
+ return true;
50
+ }
51
+
52
+ return false;
53
+ }
54
+
55
+ /**
56
+ * Checks whether the given package version is a development version.
57
+ *
58
+ * @param String $version The package version.
59
+ *
60
+ * @return Boolean True if the version is a dev version, else false.
61
+ */
62
+ private function is_package_version_dev( $version ) {
63
+ if ( 'dev-' === substr( $version, 0, 4 ) || '9999999-dev' === $version ) {
64
+ return true;
65
+ }
66
+
67
+ return false;
68
+ }
69
+ }
vendor/composer/autoload_classmap.php CHANGED
@@ -6,23 +6,30 @@ $vendorDir = dirname(dirname(__FILE__));
6
  $baseDir = dirname($vendorDir);
7
 
8
  return array(
 
9
  'Automattic\\Jetpack\\Config' => $vendorDir . '/automattic/jetpack-config/src/class-config.php',
10
  'Automattic\\Jetpack\\Connection\\Client' => $vendorDir . '/automattic/jetpack-connection/src/class-client.php',
11
  'Automattic\\Jetpack\\Connection\\Error_Handler' => $vendorDir . '/automattic/jetpack-connection/src/class-error-handler.php',
12
- 'Automattic\\Jetpack\\Connection\\Error_Handlers\\Invalid_Blog_Token' => $vendorDir . '/automattic/jetpack-connection/src/error-handlers/class-invalid-blog-token.php',
13
  'Automattic\\Jetpack\\Connection\\Manager' => $vendorDir . '/automattic/jetpack-connection/src/class-manager.php',
14
  'Automattic\\Jetpack\\Connection\\Manager_Interface' => $vendorDir . '/automattic/jetpack-connection/src/interface-manager.php',
15
  'Automattic\\Jetpack\\Connection\\Plugin' => $vendorDir . '/automattic/jetpack-connection/src/class-plugin.php',
16
  'Automattic\\Jetpack\\Connection\\Plugin_Storage' => $vendorDir . '/automattic/jetpack-connection/src/class-plugin-storage.php',
17
  'Automattic\\Jetpack\\Connection\\REST_Connector' => $vendorDir . '/automattic/jetpack-connection/src/class-rest-connector.php',
 
18
  'Automattic\\Jetpack\\Connection\\Utils' => $vendorDir . '/automattic/jetpack-connection/src/class-utils.php',
 
19
  'Automattic\\Jetpack\\Connection\\XMLRPC_Connector' => $vendorDir . '/automattic/jetpack-connection/src/class-xmlrpc-connector.php',
20
  'Automattic\\Jetpack\\Constants' => $vendorDir . '/automattic/jetpack-constants/src/class-constants.php',
 
21
  'Automattic\\Jetpack\\Roles' => $vendorDir . '/automattic/jetpack-roles/src/class-roles.php',
22
  'Automattic\\Jetpack\\Status' => $vendorDir . '/automattic/jetpack-status/src/class-status.php',
 
 
23
  'Jetpack_IXR_Client' => $vendorDir . '/automattic/jetpack-connection/legacy/class-jetpack-ixr-client.php',
24
  'Jetpack_IXR_ClientMulticall' => $vendorDir . '/automattic/jetpack-connection/legacy/class-jetpack-ixr-clientmulticall.php',
25
  'Jetpack_Options' => $vendorDir . '/automattic/jetpack-options/legacy/class-jetpack-options.php',
26
  'Jetpack_Signature' => $vendorDir . '/automattic/jetpack-connection/legacy/class-jetpack-signature.php',
 
 
27
  'Jetpack_XMLRPC_Server' => $vendorDir . '/automattic/jetpack-connection/legacy/class-jetpack-xmlrpc-server.php',
28
  );
6
  $baseDir = dirname($vendorDir);
7
 
8
  return array(
9
+ 'Automattic\\Jetpack\\A8c_Mc_Stats' => $vendorDir . '/automattic/jetpack-a8c-mc-stats/src/class-a8c-mc-stats.php',
10
  'Automattic\\Jetpack\\Config' => $vendorDir . '/automattic/jetpack-config/src/class-config.php',
11
  'Automattic\\Jetpack\\Connection\\Client' => $vendorDir . '/automattic/jetpack-connection/src/class-client.php',
12
  'Automattic\\Jetpack\\Connection\\Error_Handler' => $vendorDir . '/automattic/jetpack-connection/src/class-error-handler.php',
 
13
  'Automattic\\Jetpack\\Connection\\Manager' => $vendorDir . '/automattic/jetpack-connection/src/class-manager.php',
14
  'Automattic\\Jetpack\\Connection\\Manager_Interface' => $vendorDir . '/automattic/jetpack-connection/src/interface-manager.php',
15
  'Automattic\\Jetpack\\Connection\\Plugin' => $vendorDir . '/automattic/jetpack-connection/src/class-plugin.php',
16
  'Automattic\\Jetpack\\Connection\\Plugin_Storage' => $vendorDir . '/automattic/jetpack-connection/src/class-plugin-storage.php',
17
  'Automattic\\Jetpack\\Connection\\REST_Connector' => $vendorDir . '/automattic/jetpack-connection/src/class-rest-connector.php',
18
+ 'Automattic\\Jetpack\\Connection\\Rest_Authentication' => $vendorDir . '/automattic/jetpack-connection/src/class-rest-authentication.php',
19
  'Automattic\\Jetpack\\Connection\\Utils' => $vendorDir . '/automattic/jetpack-connection/src/class-utils.php',
20
+ 'Automattic\\Jetpack\\Connection\\XMLRPC_Async_Call' => $vendorDir . '/automattic/jetpack-connection/src/class-xmlrpc-async-call.php',
21
  'Automattic\\Jetpack\\Connection\\XMLRPC_Connector' => $vendorDir . '/automattic/jetpack-connection/src/class-xmlrpc-connector.php',
22
  'Automattic\\Jetpack\\Constants' => $vendorDir . '/automattic/jetpack-constants/src/class-constants.php',
23
+ 'Automattic\\Jetpack\\Heartbeat' => $vendorDir . '/automattic/jetpack-heartbeat/src/class-heartbeat.php',
24
  'Automattic\\Jetpack\\Roles' => $vendorDir . '/automattic/jetpack-roles/src/class-roles.php',
25
  'Automattic\\Jetpack\\Status' => $vendorDir . '/automattic/jetpack-status/src/class-status.php',
26
+ 'Automattic\\Jetpack\\Terms_Of_Service' => $vendorDir . '/automattic/jetpack-terms-of-service/src/class-terms-of-service.php',
27
+ 'Automattic\\Jetpack\\Tracking' => $vendorDir . '/automattic/jetpack-tracking/src/class-tracking.php',
28
  'Jetpack_IXR_Client' => $vendorDir . '/automattic/jetpack-connection/legacy/class-jetpack-ixr-client.php',
29
  'Jetpack_IXR_ClientMulticall' => $vendorDir . '/automattic/jetpack-connection/legacy/class-jetpack-ixr-clientmulticall.php',
30
  'Jetpack_Options' => $vendorDir . '/automattic/jetpack-options/legacy/class-jetpack-options.php',
31
  'Jetpack_Signature' => $vendorDir . '/automattic/jetpack-connection/legacy/class-jetpack-signature.php',
32
+ 'Jetpack_Tracks_Client' => $vendorDir . '/automattic/jetpack-tracking/legacy/class-jetpack-tracks-client.php',
33
+ 'Jetpack_Tracks_Event' => $vendorDir . '/automattic/jetpack-tracking/legacy/class-jetpack-tracks-event.php',
34
  'Jetpack_XMLRPC_Server' => $vendorDir . '/automattic/jetpack-connection/legacy/class-jetpack-xmlrpc-server.php',
35
  );
vendor/composer/autoload_psr4.php CHANGED
@@ -6,5 +6,6 @@ $vendorDir = dirname(dirname(__FILE__));
6
  $baseDir = dirname($vendorDir);
7
 
8
  return array(
 
9
  'Automattic\\Jetpack\\Autoloader\\' => array($vendorDir . '/automattic/jetpack-autoloader/src'),
10
  );
6
  $baseDir = dirname($vendorDir);
7
 
8
  return array(
9
+ 'MyCLabs\\Enum\\' => array($vendorDir . '/myclabs/php-enum/src'),
10
  'Automattic\\Jetpack\\Autoloader\\' => array($vendorDir . '/automattic/jetpack-autoloader/src'),
11
  );
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInitbad42693a2a67eb4387853dae504a1bd
6
  {
7
  private static $loader;
8
 
@@ -22,15 +22,15 @@ class ComposerAutoloaderInitbad42693a2a67eb4387853dae504a1bd
22
  return self::$loader;
23
  }
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInitbad42693a2a67eb4387853dae504a1bd', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
- spl_autoload_unregister(array('ComposerAutoloaderInitbad42693a2a67eb4387853dae504a1bd', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require_once __DIR__ . '/autoload_static.php';
32
 
33
- call_user_func(\Composer\Autoload\ComposerStaticInitbad42693a2a67eb4387853dae504a1bd::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
@@ -51,19 +51,19 @@ class ComposerAutoloaderInitbad42693a2a67eb4387853dae504a1bd
51
  $loader->register(true);
52
 
53
  if ($useStaticLoader) {
54
- $includeFiles = Composer\Autoload\ComposerStaticInitbad42693a2a67eb4387853dae504a1bd::$files;
55
  } else {
56
  $includeFiles = require __DIR__ . '/autoload_files.php';
57
  }
58
  foreach ($includeFiles as $fileIdentifier => $file) {
59
- composerRequirebad42693a2a67eb4387853dae504a1bd($fileIdentifier, $file);
60
  }
61
 
62
  return $loader;
63
  }
64
  }
65
 
66
- function composerRequirebad42693a2a67eb4387853dae504a1bd($fileIdentifier, $file)
67
  {
68
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
69
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInitefe3f1811f53b7d0126cc72c1f5a2a15
6
  {
7
  private static $loader;
8
 
22
  return self::$loader;
23
  }
24
 
25
+ spl_autoload_register(array('ComposerAutoloaderInitefe3f1811f53b7d0126cc72c1f5a2a15', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
+ spl_autoload_unregister(array('ComposerAutoloaderInitefe3f1811f53b7d0126cc72c1f5a2a15', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require_once __DIR__ . '/autoload_static.php';
32
 
33
+ call_user_func(\Composer\Autoload\ComposerStaticInitefe3f1811f53b7d0126cc72c1f5a2a15::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
51
  $loader->register(true);
52
 
53
  if ($useStaticLoader) {
54
+ $includeFiles = Composer\Autoload\ComposerStaticInitefe3f1811f53b7d0126cc72c1f5a2a15::$files;
55
  } else {
56
  $includeFiles = require __DIR__ . '/autoload_files.php';
57
  }
58
  foreach ($includeFiles as $fileIdentifier => $file) {
59
+ composerRequireefe3f1811f53b7d0126cc72c1f5a2a15($fileIdentifier, $file);
60
  }
61
 
62
  return $loader;
63
  }
64
  }
65
 
66
+ function composerRequireefe3f1811f53b7d0126cc72c1f5a2a15($fileIdentifier, $file)
67
  {
68
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
69
  require $file;
vendor/composer/autoload_static.php CHANGED
@@ -4,13 +4,17 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInitbad42693a2a67eb4387853dae504a1bd
8
  {
9
  public static $files = array (
10
  'bce4ecd6aabb2a2948e06d0e2c4ea9a6' => __DIR__ . '/..' . '/automattic/jetpack-connection/legacy/load-ixr.php',
11
  );
12
 
13
  public static $prefixLengthsPsr4 = array (
 
 
 
 
14
  'A' =>
15
  array (
16
  'Automattic\\Jetpack\\Autoloader\\' => 30,
@@ -18,6 +22,10 @@ class ComposerStaticInitbad42693a2a67eb4387853dae504a1bd
18
  );
19
 
20
  public static $prefixDirsPsr4 = array (
 
 
 
 
21
  'Automattic\\Jetpack\\Autoloader\\' =>
22
  array (
23
  0 => __DIR__ . '/..' . '/automattic/jetpack-autoloader/src',
@@ -25,33 +33,40 @@ class ComposerStaticInitbad42693a2a67eb4387853dae504a1bd
25
  );
26
 
27
  public static $classMap = array (
 
28
  'Automattic\\Jetpack\\Config' => __DIR__ . '/..' . '/automattic/jetpack-config/src/class-config.php',
29
  'Automattic\\Jetpack\\Connection\\Client' => __DIR__ . '/..' . '/automattic/jetpack-connection/src/class-client.php',
30
  'Automattic\\Jetpack\\Connection\\Error_Handler' => __DIR__ . '/..' . '/automattic/jetpack-connection/src/class-error-handler.php',
31
- 'Automattic\\Jetpack\\Connection\\Error_Handlers\\Invalid_Blog_Token' => __DIR__ . '/..' . '/automattic/jetpack-connection/src/error-handlers/class-invalid-blog-token.php',
32
  'Automattic\\Jetpack\\Connection\\Manager' => __DIR__ . '/..' . '/automattic/jetpack-connection/src/class-manager.php',
33
  'Automattic\\Jetpack\\Connection\\Manager_Interface' => __DIR__ . '/..' . '/automattic/jetpack-connection/src/interface-manager.php',
34
  'Automattic\\Jetpack\\Connection\\Plugin' => __DIR__ . '/..' . '/automattic/jetpack-connection/src/class-plugin.php',
35
  'Automattic\\Jetpack\\Connection\\Plugin_Storage' => __DIR__ . '/..' . '/automattic/jetpack-connection/src/class-plugin-storage.php',
36
  'Automattic\\Jetpack\\Connection\\REST_Connector' => __DIR__ . '/..' . '/automattic/jetpack-connection/src/class-rest-connector.php',
 
37
  'Automattic\\Jetpack\\Connection\\Utils' => __DIR__ . '/..' . '/automattic/jetpack-connection/src/class-utils.php',
 
38
  'Automattic\\Jetpack\\Connection\\XMLRPC_Connector' => __DIR__ . '/..' . '/automattic/jetpack-connection/src/class-xmlrpc-connector.php',
39
  'Automattic\\Jetpack\\Constants' => __DIR__ . '/..' . '/automattic/jetpack-constants/src/class-constants.php',
 
40
  'Automattic\\Jetpack\\Roles' => __DIR__ . '/..' . '/automattic/jetpack-roles/src/class-roles.php',
41
  'Automattic\\Jetpack\\Status' => __DIR__ . '/..' . '/automattic/jetpack-status/src/class-status.php',
 
 
42
  'Jetpack_IXR_Client' => __DIR__ . '/..' . '/automattic/jetpack-connection/legacy/class-jetpack-ixr-client.php',
43
  'Jetpack_IXR_ClientMulticall' => __DIR__ . '/..' . '/automattic/jetpack-connection/legacy/class-jetpack-ixr-clientmulticall.php',
44
  'Jetpack_Options' => __DIR__ . '/..' . '/automattic/jetpack-options/legacy/class-jetpack-options.php',
45
  'Jetpack_Signature' => __DIR__ . '/..' . '/automattic/jetpack-connection/legacy/class-jetpack-signature.php',
 
 
46
  'Jetpack_XMLRPC_Server' => __DIR__ . '/..' . '/automattic/jetpack-connection/legacy/class-jetpack-xmlrpc-server.php',
47
  );
48
 
49
  public static function getInitializer(ClassLoader $loader)
50
  {
51
  return \Closure::bind(function () use ($loader) {
52
- $loader->prefixLengthsPsr4 = ComposerStaticInitbad42693a2a67eb4387853dae504a1bd::$prefixLengthsPsr4;
53
- $loader->prefixDirsPsr4 = ComposerStaticInitbad42693a2a67eb4387853dae504a1bd::$prefixDirsPsr4;
54
- $loader->classMap = ComposerStaticInitbad42693a2a67eb4387853dae504a1bd::$classMap;
55
 
56
  }, null, ClassLoader::class);
57
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInitefe3f1811f53b7d0126cc72c1f5a2a15
8
  {
9
  public static $files = array (
10
  'bce4ecd6aabb2a2948e06d0e2c4ea9a6' => __DIR__ . '/..' . '/automattic/jetpack-connection/legacy/load-ixr.php',
11
  );
12
 
13
  public static $prefixLengthsPsr4 = array (
14
+ 'M' =>
15
+ array (
16
+ 'MyCLabs\\Enum\\' => 13,
17
+ ),
18
  'A' =>
19
  array (
20
  'Automattic\\Jetpack\\Autoloader\\' => 30,
22
  );
23
 
24
  public static $prefixDirsPsr4 = array (
25
+ 'MyCLabs\\Enum\\' =>
26
+ array (
27
+ 0 => __DIR__ . '/..' . '/myclabs/php-enum/src',
28
+ ),
29
  'Automattic\\Jetpack\\Autoloader\\' =>
30
  array (
31
  0 => __DIR__ . '/..' . '/automattic/jetpack-autoloader/src',
33
  );
34
 
35
  public static $classMap = array (
36
+ 'Automattic\\Jetpack\\A8c_Mc_Stats' => __DIR__ . '/..' . '/automattic/jetpack-a8c-mc-stats/src/class-a8c-mc-stats.php',
37
  'Automattic\\Jetpack\\Config' => __DIR__ . '/..' . '/automattic/jetpack-config/src/class-config.php',
38
  'Automattic\\Jetpack\\Connection\\Client' => __DIR__ . '/..' . '/automattic/jetpack-connection/src/class-client.php',
39
  'Automattic\\Jetpack\\Connection\\Error_Handler' => __DIR__ . '/..' . '/automattic/jetpack-connection/src/class-error-handler.php',
 
40
  'Automattic\\Jetpack\\Connection\\Manager' => __DIR__ . '/..' . '/automattic/jetpack-connection/src/class-manager.php',
41
  'Automattic\\Jetpack\\Connection\\Manager_Interface' => __DIR__ . '/..' . '/automattic/jetpack-connection/src/interface-manager.php',
42
  'Automattic\\Jetpack\\Connection\\Plugin' => __DIR__ . '/..' . '/automattic/jetpack-connection/src/class-plugin.php',
43
  'Automattic\\Jetpack\\Connection\\Plugin_Storage' => __DIR__ . '/..' . '/automattic/jetpack-connection/src/class-plugin-storage.php',
44
  'Automattic\\Jetpack\\Connection\\REST_Connector' => __DIR__ . '/..' . '/automattic/jetpack-connection/src/class-rest-connector.php',
45
+ 'Automattic\\Jetpack\\Connection\\Rest_Authentication' => __DIR__ . '/..' . '/automattic/jetpack-connection/src/class-rest-authentication.php',
46
  'Automattic\\Jetpack\\Connection\\Utils' => __DIR__ . '/..' . '/automattic/jetpack-connection/src/class-utils.php',
47
+ 'Automattic\\Jetpack\\Connection\\XMLRPC_Async_Call' => __DIR__ . '/..' . '/automattic/jetpack-connection/src/class-xmlrpc-async-call.php',
48
  'Automattic\\Jetpack\\Connection\\XMLRPC_Connector' => __DIR__ . '/..' . '/automattic/jetpack-connection/src/class-xmlrpc-connector.php',
49
  'Automattic\\Jetpack\\Constants' => __DIR__ . '/..' . '/automattic/jetpack-constants/src/class-constants.php',
50
+ 'Automattic\\Jetpack\\Heartbeat' => __DIR__ . '/..' . '/automattic/jetpack-heartbeat/src/class-heartbeat.php',
51
  'Automattic\\Jetpack\\Roles' => __DIR__ . '/..' . '/automattic/jetpack-roles/src/class-roles.php',
52
  'Automattic\\Jetpack\\Status' => __DIR__ . '/..' . '/automattic/jetpack-status/src/class-status.php',
53
+ 'Automattic\\Jetpack\\Terms_Of_Service' => __DIR__ . '/..' . '/automattic/jetpack-terms-of-service/src/class-terms-of-service.php',
54
+ 'Automattic\\Jetpack\\Tracking' => __DIR__ . '/..' . '/automattic/jetpack-tracking/src/class-tracking.php',
55
  'Jetpack_IXR_Client' => __DIR__ . '/..' . '/automattic/jetpack-connection/legacy/class-jetpack-ixr-client.php',
56
  'Jetpack_IXR_ClientMulticall' => __DIR__ . '/..' . '/automattic/jetpack-connection/legacy/class-jetpack-ixr-clientmulticall.php',
57
  'Jetpack_Options' => __DIR__ . '/..' . '/automattic/jetpack-options/legacy/class-jetpack-options.php',
58
  'Jetpack_Signature' => __DIR__ . '/..' . '/automattic/jetpack-connection/legacy/class-jetpack-signature.php',
59
+ 'Jetpack_Tracks_Client' => __DIR__ . '/..' . '/automattic/jetpack-tracking/legacy/class-jetpack-tracks-client.php',
60
+ 'Jetpack_Tracks_Event' => __DIR__ . '/..' . '/automattic/jetpack-tracking/legacy/class-jetpack-tracks-event.php',
61
  'Jetpack_XMLRPC_Server' => __DIR__ . '/..' . '/automattic/jetpack-connection/legacy/class-jetpack-xmlrpc-server.php',
62
  );
63
 
64
  public static function getInitializer(ClassLoader $loader)
65
  {
66
  return \Closure::bind(function () use ($loader) {
67
+ $loader->prefixLengthsPsr4 = ComposerStaticInitefe3f1811f53b7d0126cc72c1f5a2a15::$prefixLengthsPsr4;
68
+ $loader->prefixDirsPsr4 = ComposerStaticInitefe3f1811f53b7d0126cc72c1f5a2a15::$prefixDirsPsr4;
69
+ $loader->classMap = ComposerStaticInitefe3f1811f53b7d0126cc72c1f5a2a15::$classMap;
70
 
71
  }, null, ClassLoader::class);
72
  }
vendor/composer/installed.json CHANGED
@@ -1,26 +1,58 @@
1
  [
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  {
3
  "name": "automattic/jetpack-autoloader",
4
- "version": "v1.7.0",
5
- "version_normalized": "1.7.0.0",
6
  "source": {
7
  "type": "git",
8
  "url": "https://github.com/Automattic/jetpack-autoloader.git",
9
- "reference": "7c6736eeee0f9fc49fa691fe3e958725efb27ca0"
10
  },
11
  "dist": {
12
  "type": "zip",
13
- "url": "https://api.github.com/repos/Automattic/jetpack-autoloader/zipball/7c6736eeee0f9fc49fa691fe3e958725efb27ca0",
14
- "reference": "7c6736eeee0f9fc49fa691fe3e958725efb27ca0",
15
  "shasum": ""
16
  },
17
  "require": {
18
- "composer-plugin-api": "^1.1"
19
  },
20
  "require-dev": {
21
  "phpunit/phpunit": "^5.7 || ^6.5 || ^7.5"
22
  },
23
- "time": "2020-04-23T02:28:37+00:00",
24
  "type": "composer-plugin",
25
  "extra": {
26
  "class": "Automattic\\Jetpack\\Autoloader\\CustomAutoloaderPlugin"
@@ -39,20 +71,20 @@
39
  },
40
  {
41
  "name": "automattic/jetpack-config",
42
- "version": "v1.3.0",
43
- "version_normalized": "1.3.0.0",
44
  "source": {
45
  "type": "git",
46
  "url": "https://github.com/Automattic/jetpack-config.git",
47
- "reference": "a7ae4b6f32c964fb7ea0f715aa5ba272a1f06113"
48
  },
49
  "dist": {
50
  "type": "zip",
51
- "url": "https://api.github.com/repos/Automattic/jetpack-config/zipball/a7ae4b6f32c964fb7ea0f715aa5ba272a1f06113",
52
- "reference": "a7ae4b6f32c964fb7ea0f715aa5ba272a1f06113",
53
  "shasum": ""
54
  },
55
- "time": "2020-06-26T07:31:13+00:00",
56
  "type": "library",
57
  "installation-source": "dist",
58
  "autoload": {
@@ -68,31 +100,33 @@
68
  },
69
  {
70
  "name": "automattic/jetpack-connection",
71
- "version": "v1.15.2",
72
- "version_normalized": "1.15.2.0",
73
  "source": {
74
  "type": "git",
75
  "url": "https://github.com/Automattic/jetpack-connection.git",
76
- "reference": "eff65e640bcec826962475e87dcb236741a2a762"
77
  },
78
  "dist": {
79
  "type": "zip",
80
- "url": "https://api.github.com/repos/Automattic/jetpack-connection/zipball/eff65e640bcec826962475e87dcb236741a2a762",
81
- "reference": "eff65e640bcec826962475e87dcb236741a2a762",
82
  "shasum": ""
83
  },
84
  "require": {
85
- "automattic/jetpack-constants": "1.4.0",
86
- "automattic/jetpack-options": "1.7.0",
87
- "automattic/jetpack-roles": "1.2.0",
88
- "automattic/jetpack-status": "1.3.0"
 
 
89
  },
90
  "require-dev": {
91
  "automattic/wordbless": "@dev",
92
  "php-mock/php-mock": "^2.1",
93
  "phpunit/phpunit": "^5.7 || ^6.5 || ^7.5"
94
  },
95
- "time": "2020-08-10T15:51:57+00:00",
96
  "type": "library",
97
  "installation-source": "dist",
98
  "autoload": {
@@ -112,24 +146,24 @@
112
  },
113
  {
114
  "name": "automattic/jetpack-constants",
115
- "version": "v1.4.0",
116
- "version_normalized": "1.4.0.0",
117
  "source": {
118
  "type": "git",
119
  "url": "https://github.com/Automattic/jetpack-constants.git",
120
- "reference": "b4210d56948529b43785ce31e0055f435eac1f9f"
121
  },
122
  "dist": {
123
  "type": "zip",
124
- "url": "https://api.github.com/repos/Automattic/jetpack-constants/zipball/b4210d56948529b43785ce31e0055f435eac1f9f",
125
- "reference": "b4210d56948529b43785ce31e0055f435eac1f9f",
126
  "shasum": ""
127
  },
128
  "require-dev": {
129
  "php-mock/php-mock": "^2.1",
130
  "phpunit/phpunit": "^5.7 || ^6.5 || ^7.5"
131
  },
132
- "time": "2020-07-01T15:55:35+00:00",
133
  "type": "library",
134
  "installation-source": "dist",
135
  "autoload": {
@@ -143,29 +177,65 @@
143
  ],
144
  "description": "A wrapper for defining constants in a more testable way."
145
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
146
  {
147
  "name": "automattic/jetpack-options",
148
- "version": "v1.7.0",
149
- "version_normalized": "1.7.0.0",
150
  "source": {
151
  "type": "git",
152
  "url": "https://github.com/Automattic/jetpack-options.git",
153
- "reference": "8006d330476d93a1cb768f30a875f0b17d16f7f6"
154
  },
155
  "dist": {
156
  "type": "zip",
157
- "url": "https://api.github.com/repos/Automattic/jetpack-options/zipball/8006d330476d93a1cb768f30a875f0b17d16f7f6",
158
- "reference": "8006d330476d93a1cb768f30a875f0b17d16f7f6",
159
  "shasum": ""
160
  },
161
  "require": {
162
- "automattic/jetpack-constants": "1.4.0"
163
  },
164
  "require-dev": {
165
  "10up/wp_mock": "0.4.2",
166
  "phpunit/phpunit": "7.*.*"
167
  },
168
- "time": "2020-07-28T14:03:34+00:00",
169
  "type": "library",
170
  "installation-source": "dist",
171
  "autoload": {
@@ -181,24 +251,24 @@
181
  },
182
  {
183
  "name": "automattic/jetpack-roles",
184
- "version": "v1.2.0",
185
- "version_normalized": "1.2.0.0",
186
  "source": {
187
  "type": "git",
188
  "url": "https://github.com/Automattic/jetpack-roles.git",
189
- "reference": "0148108451db7ee5bfb68669671fc50ddb6d1474"
190
  },
191
  "dist": {
192
  "type": "zip",
193
- "url": "https://api.github.com/repos/Automattic/jetpack-roles/zipball/0148108451db7ee5bfb68669671fc50ddb6d1474",
194
- "reference": "0148108451db7ee5bfb68669671fc50ddb6d1474",
195
  "shasum": ""
196
  },
197
  "require-dev": {
198
  "php-mock/php-mock": "^2.1",
199
  "phpunit/phpunit": "^5.7 || ^6.5 || ^7.5"
200
  },
201
- "time": "2020-07-01T15:55:45+00:00",
202
  "type": "library",
203
  "installation-source": "dist",
204
  "autoload": {
@@ -214,17 +284,17 @@
214
  },
215
  {
216
  "name": "automattic/jetpack-status",
217
- "version": "v1.3.0",
218
- "version_normalized": "1.3.0.0",
219
  "source": {
220
  "type": "git",
221
  "url": "https://github.com/Automattic/jetpack-status.git",
222
- "reference": "09bd04d677832f348d3b9d520eecd856c2f0cafb"
223
  },
224
  "dist": {
225
  "type": "zip",
226
- "url": "https://api.github.com/repos/Automattic/jetpack-status/zipball/09bd04d677832f348d3b9d520eecd856c2f0cafb",
227
- "reference": "09bd04d677832f348d3b9d520eecd856c2f0cafb",
228
  "shasum": ""
229
  },
230
  "require-dev": {
@@ -232,7 +302,7 @@
232
  "php-mock/php-mock": "^2.1",
233
  "phpunit/phpunit": "^5.7 || ^6.5 || ^7.5"
234
  },
235
- "time": "2020-07-28T08:21:54+00:00",
236
  "type": "library",
237
  "installation-source": "dist",
238
  "autoload": {
@@ -245,5 +315,128 @@
245
  "GPL-2.0-or-later"
246
  ],
247
  "description": "Used to retrieve information about the current status of Jetpack and the site overall."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
248
  }
249
  ]
1
  [
2
+ {
3
+ "name": "automattic/jetpack-a8c-mc-stats",
4
+ "version": "v1.1.0",
5
+ "version_normalized": "1.1.0.0",
6
+ "source": {
7
+ "type": "git",
8
+ "url": "https://github.com/Automattic/jetpack-a8c-mc-stats.git",
9
+ "reference": "1aac18d4149cac64ec34d19c1d3f45fa69946d31"
10
+ },
11
+ "dist": {
12
+ "type": "zip",
13
+ "url": "https://api.github.com/repos/Automattic/jetpack-a8c-mc-stats/zipball/1aac18d4149cac64ec34d19c1d3f45fa69946d31",
14
+ "reference": "1aac18d4149cac64ec34d19c1d3f45fa69946d31",
15
+ "shasum": ""
16
+ },
17
+ "require-dev": {
18
+ "phpunit/phpunit": "^5.7 || ^6.5 || ^7.5"
19
+ },
20
+ "time": "2020-08-13T14:32:48+00:00",
21
+ "type": "library",
22
+ "installation-source": "dist",
23
+ "autoload": {
24
+ "classmap": [
25
+ "src/"
26
+ ]
27
+ },
28
+ "notification-url": "https://packagist.org/downloads/",
29
+ "license": [
30
+ "GPL-2.0-or-later"
31
+ ],
32
+ "description": "Used to record internal usage stats for Automattic. Not visible to site owners."
33
+ },
34
  {
35
  "name": "automattic/jetpack-autoloader",
36
+ "version": "v2.3.0",
37
+ "version_normalized": "2.3.0.0",
38
  "source": {
39
  "type": "git",
40
  "url": "https://github.com/Automattic/jetpack-autoloader.git",
41
+ "reference": "841976bc8322af907a3efd7acd028a5dec35a5f9"
42
  },
43
  "dist": {
44
  "type": "zip",
45
+ "url": "https://api.github.com/repos/Automattic/jetpack-autoloader/zipball/841976bc8322af907a3efd7acd028a5dec35a5f9",
46
+ "reference": "841976bc8322af907a3efd7acd028a5dec35a5f9",
47
  "shasum": ""
48
  },
49
  "require": {
50
+ "composer-plugin-api": "^1.1 || ^2.0"
51
  },
52
  "require-dev": {
53
  "phpunit/phpunit": "^5.7 || ^6.5 || ^7.5"
54
  },
55
+ "time": "2020-08-21T20:08:55+00:00",
56
  "type": "composer-plugin",
57
  "extra": {
58
  "class": "Automattic\\Jetpack\\Autoloader\\CustomAutoloaderPlugin"
71
  },
72
  {
73
  "name": "automattic/jetpack-config",
74
+ "version": "v1.4.1",
75
+ "version_normalized": "1.4.1.0",
76
  "source": {
77
  "type": "git",
78
  "url": "https://github.com/Automattic/jetpack-config.git",
79
+ "reference": "d247236a6fb30c6747dd8328d8f6fde6847cc0f6"
80
  },
81
  "dist": {
82
  "type": "zip",
83
+ "url": "https://api.github.com/repos/Automattic/jetpack-config/zipball/d247236a6fb30c6747dd8328d8f6fde6847cc0f6",
84
+ "reference": "d247236a6fb30c6747dd8328d8f6fde6847cc0f6",
85
  "shasum": ""
86
  },
87
+ "time": "2020-09-15T17:08:05+00:00",
88
  "type": "library",
89
  "installation-source": "dist",
90
  "autoload": {
100
  },
101
  {
102
  "name": "automattic/jetpack-connection",
103
+ "version": "v1.17.2",
104
+ "version_normalized": "1.17.2.0",
105
  "source": {
106
  "type": "git",
107
  "url": "https://github.com/Automattic/jetpack-connection.git",
108
+ "reference": "f7ef89f17e499eff662871ac1e92c069251cf516"
109
  },
110
  "dist": {
111
  "type": "zip",
112
+ "url": "https://api.github.com/repos/Automattic/jetpack-connection/zipball/f7ef89f17e499eff662871ac1e92c069251cf516",
113
+ "reference": "f7ef89f17e499eff662871ac1e92c069251cf516",
114
  "shasum": ""
115
  },
116
  "require": {
117
+ "automattic/jetpack-constants": "1.5.0",
118
+ "automattic/jetpack-heartbeat": "1.0.0",
119
+ "automattic/jetpack-options": "1.8.0",
120
+ "automattic/jetpack-roles": "1.3.0",
121
+ "automattic/jetpack-status": "1.4.0",
122
+ "automattic/jetpack-tracking": "1.9.1"
123
  },
124
  "require-dev": {
125
  "automattic/wordbless": "@dev",
126
  "php-mock/php-mock": "^2.1",
127
  "phpunit/phpunit": "^5.7 || ^6.5 || ^7.5"
128
  },
129
+ "time": "2020-09-16T13:32:24+00:00",
130
  "type": "library",
131
  "installation-source": "dist",
132
  "autoload": {
146
  },
147
  {
148
  "name": "automattic/jetpack-constants",
149
+ "version": "v1.5.0",
150
+ "version_normalized": "1.5.0.0",
151
  "source": {
152
  "type": "git",
153
  "url": "https://github.com/Automattic/jetpack-constants.git",
154
+ "reference": "9827a2f446b8c4faafaf1c740483031c073a381d"
155
  },
156
  "dist": {
157
  "type": "zip",
158
+ "url": "https://api.github.com/repos/Automattic/jetpack-constants/zipball/9827a2f446b8c4faafaf1c740483031c073a381d",
159
+ "reference": "9827a2f446b8c4faafaf1c740483031c073a381d",
160
  "shasum": ""
161
  },
162
  "require-dev": {
163
  "php-mock/php-mock": "^2.1",
164
  "phpunit/phpunit": "^5.7 || ^6.5 || ^7.5"
165
  },
166
+ "time": "2020-08-13T14:33:09+00:00",
167
  "type": "library",
168
  "installation-source": "dist",
169
  "autoload": {
177
  ],
178
  "description": "A wrapper for defining constants in a more testable way."
179
  },
180
+ {
181
+ "name": "automattic/jetpack-heartbeat",
182
+ "version": "v1.0.0",
183
+ "version_normalized": "1.0.0.0",
184
+ "source": {
185
+ "type": "git",
186
+ "url": "https://github.com/Automattic/jetpack-heartbeat.git",
187
+ "reference": "b7fe6216523cdc066a8a1e4ef1ac438ea4f83c00"
188
+ },
189
+ "dist": {
190
+ "type": "zip",
191
+ "url": "https://api.github.com/repos/Automattic/jetpack-heartbeat/zipball/b7fe6216523cdc066a8a1e4ef1ac438ea4f83c00",
192
+ "reference": "b7fe6216523cdc066a8a1e4ef1ac438ea4f83c00",
193
+ "shasum": ""
194
+ },
195
+ "require": {
196
+ "automattic/jetpack-a8c-mc-stats": "1.1.0",
197
+ "automattic/jetpack-options": "1.8.0"
198
+ },
199
+ "require-dev": {
200
+ "phpunit/phpunit": "^5.7 || ^6.5 || ^7.5"
201
+ },
202
+ "time": "2020-08-26T15:46:56+00:00",
203
+ "type": "library",
204
+ "installation-source": "dist",
205
+ "autoload": {
206
+ "classmap": [
207
+ "src/"
208
+ ]
209
+ },
210
+ "notification-url": "https://packagist.org/downloads/",
211
+ "license": [
212
+ "GPL-2.0-or-later"
213
+ ],
214
+ "description": "This adds a cronjob that sends a batch of internal automattic stats to wp.com once a day"
215
+ },
216
  {
217
  "name": "automattic/jetpack-options",
218
+ "version": "v1.8.0",
219
+ "version_normalized": "1.8.0.0",
220
  "source": {
221
  "type": "git",
222
  "url": "https://github.com/Automattic/jetpack-options.git",
223
+ "reference": "578908ebe1459ac653b10c0799ec8cb7e0ee4924"
224
  },
225
  "dist": {
226
  "type": "zip",
227
+ "url": "https://api.github.com/repos/Automattic/jetpack-options/zipball/578908ebe1459ac653b10c0799ec8cb7e0ee4924",
228
+ "reference": "578908ebe1459ac653b10c0799ec8cb7e0ee4924",
229
  "shasum": ""
230
  },
231
  "require": {
232
+ "automattic/jetpack-constants": "1.5.0"
233
  },
234
  "require-dev": {
235
  "10up/wp_mock": "0.4.2",
236
  "phpunit/phpunit": "7.*.*"
237
  },
238
+ "time": "2020-08-25T11:02:32+00:00",
239
  "type": "library",
240
  "installation-source": "dist",
241
  "autoload": {
251
  },
252
  {
253
  "name": "automattic/jetpack-roles",
254
+ "version": "v1.3.0",
255
+ "version_normalized": "1.3.0.0",
256
  "source": {
257
  "type": "git",
258
  "url": "https://github.com/Automattic/jetpack-roles.git",
259
+ "reference": "242f03921c818dfc1e263bdc3d1ff090d9d7555c"
260
  },
261
  "dist": {
262
  "type": "zip",
263
+ "url": "https://api.github.com/repos/Automattic/jetpack-roles/zipball/242f03921c818dfc1e263bdc3d1ff090d9d7555c",
264
+ "reference": "242f03921c818dfc1e263bdc3d1ff090d9d7555c",
265
  "shasum": ""
266
  },
267
  "require-dev": {
268
  "php-mock/php-mock": "^2.1",
269
  "phpunit/phpunit": "^5.7 || ^6.5 || ^7.5"
270
  },
271
+ "time": "2020-08-13T14:33:36+00:00",
272
  "type": "library",
273
  "installation-source": "dist",
274
  "autoload": {
284
  },
285
  {
286
  "name": "automattic/jetpack-status",
287
+ "version": "v1.4.0",
288
+ "version_normalized": "1.4.0.0",
289
  "source": {
290
  "type": "git",
291
  "url": "https://github.com/Automattic/jetpack-status.git",
292
+ "reference": "6e5bcfdcf6e99006d7c4c9c43d526abd4f2884a8"
293
  },
294
  "dist": {
295
  "type": "zip",
296
+ "url": "https://api.github.com/repos/Automattic/jetpack-status/zipball/6e5bcfdcf6e99006d7c4c9c43d526abd4f2884a8",
297
+ "reference": "6e5bcfdcf6e99006d7c4c9c43d526abd4f2884a8",
298
  "shasum": ""
299
  },
300
  "require-dev": {
302
  "php-mock/php-mock": "^2.1",
303
  "phpunit/phpunit": "^5.7 || ^6.5 || ^7.5"
304
  },
305
+ "time": "2020-08-13T14:33:39+00:00",
306
  "type": "library",
307
  "installation-source": "dist",
308
  "autoload": {
315
  "GPL-2.0-or-later"
316
  ],
317
  "description": "Used to retrieve information about the current status of Jetpack and the site overall."
318
+ },
319
+ {
320
+ "name": "automattic/jetpack-terms-of-service",
321
+ "version": "v1.6.0",
322
+ "version_normalized": "1.6.0.0",
323
+ "source": {
324
+ "type": "git",
325
+ "url": "https://github.com/Automattic/jetpack-terms-of-service.git",
326
+ "reference": "113b5c60571c1af827f2dc78da79117693c8a3c4"
327
+ },
328
+ "dist": {
329
+ "type": "zip",
330
+ "url": "https://api.github.com/repos/Automattic/jetpack-terms-of-service/zipball/113b5c60571c1af827f2dc78da79117693c8a3c4",
331
+ "reference": "113b5c60571c1af827f2dc78da79117693c8a3c4",
332
+ "shasum": ""
333
+ },
334
+ "require": {
335
+ "automattic/jetpack-options": "1.8.0",
336
+ "automattic/jetpack-status": "1.4.0"
337
+ },
338
+ "require-dev": {
339
+ "php-mock/php-mock": "^2.1",
340
+ "phpunit/phpunit": "^5.7 || ^6.5 || ^7.5"
341
+ },
342
+ "time": "2020-08-26T15:48:39+00:00",
343
+ "type": "library",
344
+ "installation-source": "dist",
345
+ "autoload": {
346
+ "classmap": [
347
+ "src/"
348
+ ]
349
+ },
350
+ "notification-url": "https://packagist.org/downloads/",
351
+ "license": [
352
+ "GPL-2.0-or-later"
353
+ ],
354
+ "description": "Everything need to manage the terms of service state"
355
+ },
356
+ {
357
+ "name": "automattic/jetpack-tracking",
358
+ "version": "v1.9.1",
359
+ "version_normalized": "1.9.1.0",
360
+ "source": {
361
+ "type": "git",
362
+ "url": "https://github.com/Automattic/jetpack-tracking.git",
363
+ "reference": "8a5a1efcc789bbd4d8503d131347686f49c43e4b"
364
+ },
365
+ "dist": {
366
+ "type": "zip",
367
+ "url": "https://api.github.com/repos/Automattic/jetpack-tracking/zipball/8a5a1efcc789bbd4d8503d131347686f49c43e4b",
368
+ "reference": "8a5a1efcc789bbd4d8503d131347686f49c43e4b",
369
+ "shasum": ""
370
+ },
371
+ "require": {
372
+ "automattic/jetpack-options": "1.8.0",
373
+ "automattic/jetpack-status": "1.4.0",
374
+ "automattic/jetpack-terms-of-service": "1.6.0"
375
+ },
376
+ "require-dev": {
377
+ "php-mock/php-mock": "^2.1",
378
+ "phpunit/phpunit": "^5.7 || ^6.5 || ^7.5"
379
+ },
380
+ "time": "2020-09-09T10:04:48+00:00",
381
+ "type": "library",
382
+ "installation-source": "dist",
383
+ "autoload": {
384
+ "classmap": [
385
+ "legacy",
386
+ "src/"
387
+ ]
388
+ },
389
+ "notification-url": "https://packagist.org/downloads/",
390
+ "license": [
391
+ "GPL-2.0-or-later"
392
+ ],
393
+ "description": "Tracking for Jetpack"
394
+ },
395
+ {
396
+ "name": "myclabs/php-enum",
397
+ "version": "1.6.6",
398
+ "version_normalized": "1.6.6.0",
399
+ "source": {
400
+ "type": "git",
401
+ "url": "https://github.com/myclabs/php-enum.git",
402
+ "reference": "32c4202886c51fbe5cc3a7c34ec5c9a4a790345e"
403
+ },
404
+ "dist": {
405
+ "type": "zip",
406
+ "url": "https://api.github.com/repos/myclabs/php-enum/zipball/32c4202886c51fbe5cc3a7c34ec5c9a4a790345e",
407
+ "reference": "32c4202886c51fbe5cc3a7c34ec5c9a4a790345e",
408
+ "shasum": ""
409
+ },
410
+ "require": {
411
+ "ext-json": "*",
412
+ "php": ">=5.4"
413
+ },
414
+ "require-dev": {
415
+ "phpunit/phpunit": "^4.8.35|^5.7|^6.0",
416
+ "squizlabs/php_codesniffer": "1.*"
417
+ },
418
+ "time": "2019-02-04T21:18:49+00:00",
419
+ "type": "library",
420
+ "installation-source": "dist",
421
+ "autoload": {
422
+ "psr-4": {
423
+ "MyCLabs\\Enum\\": "src/"
424
+ }
425
+ },
426
+ "notification-url": "https://packagist.org/downloads/",
427
+ "license": [
428
+ "MIT"
429
+ ],
430
+ "authors": [
431
+ {
432
+ "name": "PHP Enum contributors",
433
+ "homepage": "https://github.com/myclabs/php-enum/graphs/contributors"
434
+ }
435
+ ],
436
+ "description": "PHP Enum implementation",
437
+ "homepage": "http://github.com/myclabs/php-enum",
438
+ "keywords": [
439
+ "enum"
440
+ ]
441
  }
442
  ]
vendor/composer/{autoload_classmap_package.php → jetpack_autoload_classmap.php} RENAMED
@@ -6,88 +6,120 @@ $vendorDir = dirname(__DIR__);
6
  $baseDir = dirname($vendorDir);
7
 
8
  return array(
 
 
 
 
9
  'Automattic\\Jetpack\\Autoloader\\AutoloadGenerator' => array(
10
- 'version' => '1.7.0.0',
11
  'path' => $vendorDir . '/automattic/jetpack-autoloader/src/AutoloadGenerator.php'
12
  ),
13
  'Automattic\\Jetpack\\Autoloader\\CustomAutoloaderPlugin' => array(
14
- 'version' => '1.7.0.0',
15
  'path' => $vendorDir . '/automattic/jetpack-autoloader/src/CustomAutoloaderPlugin.php'
16
  ),
17
  'Jetpack_XMLRPC_Server' => array(
18
- 'version' => '1.15.2.0',
19
  'path' => $vendorDir . '/automattic/jetpack-connection/legacy/class-jetpack-xmlrpc-server.php'
20
  ),
21
  'Jetpack_IXR_Client' => array(
22
- 'version' => '1.15.2.0',
23
  'path' => $vendorDir . '/automattic/jetpack-connection/legacy/class-jetpack-ixr-client.php'
24
  ),
25
  'Jetpack_Signature' => array(
26
- 'version' => '1.15.2.0',
27
  'path' => $vendorDir . '/automattic/jetpack-connection/legacy/class-jetpack-signature.php'
28
  ),
29
  'Jetpack_IXR_ClientMulticall' => array(
30
- 'version' => '1.15.2.0',
31
  'path' => $vendorDir . '/automattic/jetpack-connection/legacy/class-jetpack-ixr-clientmulticall.php'
32
  ),
33
  'Automattic\\Jetpack\\Connection\\Error_Handler' => array(
34
- 'version' => '1.15.2.0',
35
  'path' => $vendorDir . '/automattic/jetpack-connection/src/class-error-handler.php'
36
  ),
37
  'Automattic\\Jetpack\\Connection\\REST_Connector' => array(
38
- 'version' => '1.15.2.0',
39
  'path' => $vendorDir . '/automattic/jetpack-connection/src/class-rest-connector.php'
40
  ),
41
  'Automattic\\Jetpack\\Connection\\Plugin_Storage' => array(
42
- 'version' => '1.15.2.0',
43
  'path' => $vendorDir . '/automattic/jetpack-connection/src/class-plugin-storage.php'
44
  ),
45
  'Automattic\\Jetpack\\Connection\\Client' => array(
46
- 'version' => '1.15.2.0',
47
  'path' => $vendorDir . '/automattic/jetpack-connection/src/class-client.php'
48
  ),
 
 
 
 
49
  'Automattic\\Jetpack\\Connection\\Utils' => array(
50
- 'version' => '1.15.2.0',
51
  'path' => $vendorDir . '/automattic/jetpack-connection/src/class-utils.php'
52
  ),
53
  'Automattic\\Jetpack\\Connection\\Manager_Interface' => array(
54
- 'version' => '1.15.2.0',
55
  'path' => $vendorDir . '/automattic/jetpack-connection/src/interface-manager.php'
56
  ),
57
  'Automattic\\Jetpack\\Connection\\Plugin' => array(
58
- 'version' => '1.15.2.0',
59
  'path' => $vendorDir . '/automattic/jetpack-connection/src/class-plugin.php'
60
  ),
61
  'Automattic\\Jetpack\\Connection\\Manager' => array(
62
- 'version' => '1.15.2.0',
63
  'path' => $vendorDir . '/automattic/jetpack-connection/src/class-manager.php'
64
  ),
65
  'Automattic\\Jetpack\\Connection\\XMLRPC_Connector' => array(
66
- 'version' => '1.15.2.0',
67
  'path' => $vendorDir . '/automattic/jetpack-connection/src/class-xmlrpc-connector.php'
68
  ),
69
- 'Automattic\\Jetpack\\Connection\\Error_Handlers\\Invalid_Blog_Token' => array(
70
- 'version' => '1.15.2.0',
71
- 'path' => $vendorDir . '/automattic/jetpack-connection/src/error-handlers/class-invalid-blog-token.php'
72
  ),
73
  'Automattic\\Jetpack\\Config' => array(
74
- 'version' => '1.3.0.0',
75
  'path' => $vendorDir . '/automattic/jetpack-config/src/class-config.php'
76
  ),
77
- 'Jetpack_Options' => array(
78
- 'version' => '1.7.0.0',
79
- 'path' => $vendorDir . '/automattic/jetpack-options/legacy/class-jetpack-options.php'
80
  ),
81
  'Automattic\\Jetpack\\Roles' => array(
82
- 'version' => '1.2.0.0',
83
  'path' => $vendorDir . '/automattic/jetpack-roles/src/class-roles.php'
84
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
85
  'Automattic\\Jetpack\\Status' => array(
86
- 'version' => '1.3.0.0',
87
  'path' => $vendorDir . '/automattic/jetpack-status/src/class-status.php'
88
  ),
 
 
 
 
89
  'Automattic\\Jetpack\\Constants' => array(
90
- 'version' => '1.4.0.0',
91
  'path' => $vendorDir . '/automattic/jetpack-constants/src/class-constants.php'
92
  ),
93
  );
6
  $baseDir = dirname($vendorDir);
7
 
8
  return array(
9
+ 'MyCLabs\\Enum\\Enum' => array(
10
+ 'version' => '1.6.6.0',
11
+ 'path' => $vendorDir . '/myclabs/php-enum/src/Enum.php'
12
+ ),
13
  'Automattic\\Jetpack\\Autoloader\\AutoloadGenerator' => array(
14
+ 'version' => '2.3.0.0',
15
  'path' => $vendorDir . '/automattic/jetpack-autoloader/src/AutoloadGenerator.php'
16
  ),
17
  'Automattic\\Jetpack\\Autoloader\\CustomAutoloaderPlugin' => array(
18
+ 'version' => '2.3.0.0',
19
  'path' => $vendorDir . '/automattic/jetpack-autoloader/src/CustomAutoloaderPlugin.php'
20
  ),
21
  'Jetpack_XMLRPC_Server' => array(
22
+ 'version' => '1.17.2.0',
23
  'path' => $vendorDir . '/automattic/jetpack-connection/legacy/class-jetpack-xmlrpc-server.php'
24
  ),
25
  'Jetpack_IXR_Client' => array(
26
+ 'version' => '1.17.2.0',
27
  'path' => $vendorDir . '/automattic/jetpack-connection/legacy/class-jetpack-ixr-client.php'
28
  ),
29
  'Jetpack_Signature' => array(
30
+ 'version' => '1.17.2.0',
31
  'path' => $vendorDir . '/automattic/jetpack-connection/legacy/class-jetpack-signature.php'
32
  ),
33
  'Jetpack_IXR_ClientMulticall' => array(
34
+ 'version' => '1.17.2.0',
35
  'path' => $vendorDir . '/automattic/jetpack-connection/legacy/class-jetpack-ixr-clientmulticall.php'
36
  ),
37
  'Automattic\\Jetpack\\Connection\\Error_Handler' => array(
38
+ 'version' => '1.17.2.0',
39
  'path' => $vendorDir . '/automattic/jetpack-connection/src/class-error-handler.php'
40
  ),
41
  'Automattic\\Jetpack\\Connection\\REST_Connector' => array(
42
+ 'version' => '1.17.2.0',
43
  'path' => $vendorDir . '/automattic/jetpack-connection/src/class-rest-connector.php'
44
  ),
45
  'Automattic\\Jetpack\\Connection\\Plugin_Storage' => array(
46
+ 'version' => '1.17.2.0',
47
  'path' => $vendorDir . '/automattic/jetpack-connection/src/class-plugin-storage.php'
48
  ),
49
  'Automattic\\Jetpack\\Connection\\Client' => array(
50
+ 'version' => '1.17.2.0',
51
  'path' => $vendorDir . '/automattic/jetpack-connection/src/class-client.php'
52
  ),
53
+ 'Automattic\\Jetpack\\Connection\\Rest_Authentication' => array(
54
+ 'version' => '1.17.2.0',
55
+ 'path' => $vendorDir . '/automattic/jetpack-connection/src/class-rest-authentication.php'
56
+ ),
57
  'Automattic\\Jetpack\\Connection\\Utils' => array(
58
+ 'version' => '1.17.2.0',
59
  'path' => $vendorDir . '/automattic/jetpack-connection/src/class-utils.php'
60
  ),
61
  'Automattic\\Jetpack\\Connection\\Manager_Interface' => array(
62
+ 'version' => '1.17.2.0',
63
  'path' => $vendorDir . '/automattic/jetpack-connection/src/interface-manager.php'
64
  ),
65
  'Automattic\\Jetpack\\Connection\\Plugin' => array(
66
+ 'version' => '1.17.2.0',
67
  'path' => $vendorDir . '/automattic/jetpack-connection/src/class-plugin.php'
68
  ),
69
  'Automattic\\Jetpack\\Connection\\Manager' => array(
70
+ 'version' => '1.17.2.0',
71
  'path' => $vendorDir . '/automattic/jetpack-connection/src/class-manager.php'
72
  ),
73
  'Automattic\\Jetpack\\Connection\\XMLRPC_Connector' => array(
74
+ 'version' => '1.17.2.0',
75
  'path' => $vendorDir . '/automattic/jetpack-connection/src/class-xmlrpc-connector.php'
76
  ),
77
+ 'Automattic\\Jetpack\\Connection\\XMLRPC_Async_Call' => array(
78
+ 'version' => '1.17.2.0',
79
+ 'path' => $vendorDir . '/automattic/jetpack-connection/src/class-xmlrpc-async-call.php'
80
  ),
81
  'Automattic\\Jetpack\\Config' => array(
82
+ 'version' => '1.4.1.0',
83
  'path' => $vendorDir . '/automattic/jetpack-config/src/class-config.php'
84
  ),
85
+ 'Automattic\\Jetpack\\Heartbeat' => array(
86
+ 'version' => '1.0.0.0',
87
+ 'path' => $vendorDir . '/automattic/jetpack-heartbeat/src/class-heartbeat.php'
88
  ),
89
  'Automattic\\Jetpack\\Roles' => array(
90
+ 'version' => '1.3.0.0',
91
  'path' => $vendorDir . '/automattic/jetpack-roles/src/class-roles.php'
92
  ),
93
+ 'Jetpack_Tracks_Client' => array(
94
+ 'version' => '1.9.1.0',
95
+ 'path' => $vendorDir . '/automattic/jetpack-tracking/legacy/class-jetpack-tracks-client.php'
96
+ ),
97
+ 'Jetpack_Tracks_Event' => array(
98
+ 'version' => '1.9.1.0',
99
+ 'path' => $vendorDir . '/automattic/jetpack-tracking/legacy/class-jetpack-tracks-event.php'
100
+ ),
101
+ 'Automattic\\Jetpack\\Tracking' => array(
102
+ 'version' => '1.9.1.0',
103
+ 'path' => $vendorDir . '/automattic/jetpack-tracking/src/class-tracking.php'
104
+ ),
105
+ 'Automattic\\Jetpack\\A8c_Mc_Stats' => array(
106
+ 'version' => '1.1.0.0',
107
+ 'path' => $vendorDir . '/automattic/jetpack-a8c-mc-stats/src/class-a8c-mc-stats.php'
108
+ ),
109
+ 'Automattic\\Jetpack\\Terms_Of_Service' => array(
110
+ 'version' => '1.6.0.0',
111
+ 'path' => $vendorDir . '/automattic/jetpack-terms-of-service/src/class-terms-of-service.php'
112
+ ),
113
  'Automattic\\Jetpack\\Status' => array(
114
+ 'version' => '1.4.0.0',
115
  'path' => $vendorDir . '/automattic/jetpack-status/src/class-status.php'
116
  ),
117
+ 'Jetpack_Options' => array(
118
+ 'version' => '1.8.0.0',
119
+ 'path' => $vendorDir . '/automattic/jetpack-options/legacy/class-jetpack-options.php'
120
+ ),
121
  'Automattic\\Jetpack\\Constants' => array(
122
+ 'version' => '1.5.0.0',
123
  'path' => $vendorDir . '/automattic/jetpack-constants/src/class-constants.php'
124
  ),
125
  );
vendor/composer/{autoload_files_package.php → jetpack_autoload_filemap.php} RENAMED
@@ -7,7 +7,7 @@ $baseDir = dirname($vendorDir);
7
 
8
  return array(
9
  'bce4ecd6aabb2a2948e06d0e2c4ea9a6' => array(
10
- 'version' => '1.15.2.0',
11
  'path' => $vendorDir . '/automattic/jetpack-connection/legacy/load-ixr.php'
12
  ),
13
  );
7
 
8
  return array(
9
  'bce4ecd6aabb2a2948e06d0e2c4ea9a6' => array(
10
+ 'version' => '1.17.2.0',
11
  'path' => $vendorDir . '/automattic/jetpack-connection/legacy/load-ixr.php'
12
  ),
13
  );
vendor/jetpack-autoloader/autoload_functions.php ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file was automatically generated by automattic/jetpack-autoloader.
4
+ *
5
+ * @package automattic/jetpack-autoloader
6
+ */
7
+
8
+ namespace Automattic\Jetpack\Autoloader\jp3418cca783c4a7d647675a3b0ee88cfa;
9
+
10
+ // phpcs:ignore
11
+
12
+ global $jetpack_packages_classmap;
13
+ global $jetpack_packages_filemap;
14
+ global $jetpack_autoloader_activating_plugins_paths;
15
+
16
+ if ( ! is_array( $jetpack_packages_classmap ) ) {
17
+ $jetpack_packages_classmap = array();
18
+ }
19
+
20
+ if ( ! is_array( $jetpack_packages_filemap ) ) {
21
+ $jetpack_packages_filemap = array();
22
+ }
23
+
24
+ if ( ! is_array( $jetpack_autoloader_activating_plugins_paths ) ) {
25
+ $jetpack_autoloader_activating_plugins_paths = array();
26
+ }
27
+
28
+ /**
29
+ * Used for autoloading jetpack packages.
30
+ *
31
+ * @param string $class_name Class Name to load.
32
+ *
33
+ * @return Boolean Whether the class_name was found in the classmap.
34
+ */
35
+ function autoloader( $class_name ) {
36
+ global $jetpack_packages_classmap;
37
+
38
+ if ( isset( $jetpack_packages_classmap[ $class_name ] ) ) {
39
+ require_once $jetpack_packages_classmap[ $class_name ]['path'];
40
+ return true;
41
+ }
42
+
43
+ return false;
44
+ }
45
+
46
+ /**
47
+ * Used for running the code that initializes class and file maps.
48
+ *
49
+ * @param Plugins_Handler $plugins_handler The Plugins_Handler object.
50
+ * @param Version_Selector $version_selector The Version_Selector object.
51
+ */
52
+ function enqueue_files( $plugins_handler, $version_selector ) {
53
+ require_once __DIR__ . '/../class-classes-handler.php';
54
+ require_once __DIR__ . '/../class-files-handler.php';
55
+
56
+ $classes_handler = new Classes_Handler( $plugins_handler, $version_selector );
57
+ $classes_handler->set_class_paths();
58
+
59
+ $files_handler = new Files_Handler( $plugins_handler, $version_selector );
60
+ $files_handler->set_file_paths();
61
+
62
+ $files_handler->file_loader();
63
+ }
64
+
65
+ /**
66
+ * Finds the latest installed autoloader. If this is the latest autoloader, sets
67
+ * up the classmap and filemap.
68
+ */
69
+ function set_up_autoloader() {
70
+ global $jetpack_autoloader_latest_version;
71
+ global $jetpack_packages_classmap;
72
+
73
+ require_once __DIR__ . '/../class-plugins-handler.php';
74
+ require_once __DIR__ . '/../class-version-selector.php';
75
+ require_once __DIR__ . '/../class-autoloader-handler.php';
76
+
77
+ $plugins_handler = new Plugins_Handler();
78
+ $version_selector = new Version_Selector();
79
+ $autoloader_handler = new Autoloader_Handler( $plugins_handler, $version_selector );
80
+
81
+ if ( $plugins_handler->should_autoloader_reset() ) {
82
+ /*
83
+ * The autoloader must be reset when an activating plugin that was
84
+ * previously unknown is detected.
85
+ */
86
+ $jetpack_autoloader_latest_version = null;
87
+ $jetpack_packages_classmap = array();
88
+ }
89
+
90
+ // Find the latest autoloader.
91
+ if ( ! $jetpack_autoloader_latest_version ) {
92
+ $autoloader_handler->find_latest_autoloader();
93
+ }
94
+
95
+ $current_autoloader_version = $autoloader_handler->get_current_autoloader_version();
96
+
97
+ // This is the latest autoloader, so generate the classmap and filemap and register the autoloader function.
98
+ if ( empty( $jetpack_packages_classmap ) && $current_autoloader_version === $jetpack_autoloader_latest_version ) {
99
+ enqueue_files( $plugins_handler, $version_selector );
100
+ $autoloader_handler->update_autoloader_chain();
101
+ }
102
+ }
vendor/myclabs/php-enum/.gitattributes ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ # Auto detect text files and perform LF normalization
2
+ * text=auto
3
+
4
+ tests/ export-ignore
5
+ phpunit.xml export-ignore
6
+ .travis.yml export-ignore
vendor/myclabs/php-enum/.gitignore ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ .DS_Store
2
+ nbproject/*
3
+ .idea/*
4
+ vendor/*
5
+ composer.phar
6
+ composer.lock
vendor/myclabs/php-enum/LICENSE ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ php-enum - PHP Enum implementation http://github.com/myclabs/php-enum
2
+
3
+ Copyright (C) 2015 My C-Labs
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
6
+ associated documentation files (the "Software"), to deal in the Software without restriction,
7
+ including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
8
+ and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
9
+ subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all copies or substantial
12
+ portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
15
+ NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
16
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
17
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
18
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
vendor/myclabs/php-enum/README.md ADDED
@@ -0,0 +1,128 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # PHP Enum implementation inspired from SplEnum
2
+
3
+ [![Build Status](https://travis-ci.org/myclabs/php-enum.png?branch=master)](https://travis-ci.org/myclabs/php-enum)
4
+ [![Latest Stable Version](https://poser.pugx.org/myclabs/php-enum/version.png)](https://packagist.org/packages/myclabs/php-enum)
5
+ [![Total Downloads](https://poser.pugx.org/myclabs/php-enum/downloads.png)](https://packagist.org/packages/myclabs/php-enum)
6
+
7
+ ## Why?
8
+
9
+ First, and mainly, `SplEnum` is not integrated to PHP, you have to install it separately.
10
+
11
+ Using an enum instead of class constants provides the following advantages:
12
+
13
+ - You can type-hint: `function setAction(Action $action) {`
14
+ - You can enrich the enum with methods (e.g. `format`, `parse`, …)
15
+ - You can extend the enum to add new values (make your enum `final` to prevent it)
16
+ - You can get a list of all the possible values (see below)
17
+
18
+ This Enum class is not intended to replace class constants, but only to be used when it makes sense.
19
+
20
+ ## Installation
21
+
22
+ ```
23
+ composer require myclabs/php-enum
24
+ ```
25
+
26
+ ## Declaration
27
+
28
+ ```php
29
+ use MyCLabs\Enum\Enum;
30
+
31
+ /**
32
+ * Action enum
33
+ */
34
+ class Action extends Enum
35
+ {
36
+ private const VIEW = 'view';
37
+ private const EDIT = 'edit';
38
+ }
39
+ ```
40
+
41
+ Note the `private` keyword requires PHP > 7.1, you can omit it on PHP 7.0.
42
+
43
+ ## Usage
44
+
45
+ ```php
46
+ $action = new Action(Action::VIEW);
47
+
48
+ // or
49
+ $action = Action::VIEW();
50
+ ```
51
+
52
+ As you can see, static methods are automatically implemented to provide quick access to an enum value.
53
+
54
+ One advantage over using class constants is to be able to type-hint enum values:
55
+
56
+ ```php
57
+ function setAction(Action $action) {
58
+ // ...
59
+ }
60
+ ```
61
+
62
+ ## Documentation
63
+
64
+ - `__construct()` The constructor checks that the value exist in the enum
65
+ - `__toString()` You can `echo $myValue`, it will display the enum value (value of the constant)
66
+ - `getValue()` Returns the current value of the enum
67
+ - `getKey()` Returns the key of the current value on Enum
68
+ - `equals()` Tests whether enum instances are equal (returns `true` if enum values are equal, `false` otherwise)
69
+
70
+ Static methods:
71
+
72
+ - `toArray()` method Returns all possible values as an array (constant name in key, constant value in value)
73
+ - `keys()` Returns the names (keys) of all constants in the Enum class
74
+ - `values()` Returns instances of the Enum class of all Enum constants (constant name in key, Enum instance in value)
75
+ - `isValid()` Check if tested value is valid on enum set
76
+ - `isValidKey()` Check if tested key is valid on enum set
77
+ - `search()` Return key for searched value
78
+
79
+ ### Static methods
80
+
81
+ ```php
82
+ class Action extends Enum
83
+ {
84
+ private const VIEW = 'view';
85
+ private const EDIT = 'edit';
86
+ }
87
+
88
+ // Static method:
89
+ $action = Action::VIEW();
90
+ $action = Action::EDIT();
91
+ ```
92
+
93
+ Static method helpers are implemented using [`__callStatic()`](http://www.php.net/manual/en/language.oop5.overloading.php#object.callstatic).
94
+
95
+ If you care about IDE autocompletion, you can either implement the static methods yourself:
96
+
97
+ ```php
98
+ class Action extends Enum
99
+ {
100
+ private const VIEW = 'view';
101
+
102
+ /**
103
+ * @return Action
104
+ */
105
+ public static function VIEW() {
106
+ return new Action(self::VIEW);
107
+ }
108
+ }
109
+ ```
110
+
111
+ or you can use phpdoc (this is supported in PhpStorm for example):
112
+
113
+ ```php
114
+ /**
115
+ * @method static Action VIEW()
116
+ * @method static Action EDIT()
117
+ */
118
+ class Action extends Enum
119
+ {
120
+ private const VIEW = 'view';
121
+ private const EDIT = 'edit';
122
+ }
123
+ ```
124
+
125
+ ## Related projects
126
+
127
+ - [Doctrine enum mapping](https://github.com/acelaya/doctrine-enum-type)
128
+ - [Symfony 2/3 ParamConverter integration](https://github.com/Ex3v/MyCLabsEnumParamConverter)
vendor/myclabs/php-enum/composer.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "myclabs/php-enum",
3
+ "type": "library",
4
+ "description": "PHP Enum implementation",
5
+ "keywords": ["enum"],
6
+ "homepage": "http://github.com/myclabs/php-enum",
7
+ "license": "MIT",
8
+ "authors": [
9
+ {
10
+ "name": "PHP Enum contributors",
11
+ "homepage": "https://github.com/myclabs/php-enum/graphs/contributors"
12
+ }
13
+ ],
14
+ "autoload": {
15
+ "psr-4": {
16
+ "MyCLabs\\Enum\\": "src/"
17
+ }
18
+ },
19
+ "autoload-dev": {
20
+ "psr-4": {
21
+ "MyCLabs\\Tests\\Enum\\": "tests/"
22
+ }
23
+ },
24
+ "require": {
25
+ "php": ">=5.4",
26
+ "ext-json": "*"
27
+ },
28
+ "require-dev": {
29
+ "phpunit/phpunit": "^4.8.35|^5.7|^6.0",
30
+ "squizlabs/php_codesniffer": "1.*"
31
+ }
32
+ }
vendor/myclabs/php-enum/src/Enum.php ADDED
@@ -0,0 +1,204 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @link http://github.com/myclabs/php-enum
4
+ * @license http://www.opensource.org/licenses/mit-license.php MIT (see the LICENSE file)
5
+ */
6
+
7
+ namespace MyCLabs\Enum;
8
+
9
+ /**
10
+ * Base Enum class
11
+ *
12
+ * Create an enum by implementing this class and adding class constants.
13
+ *
14
+ * @author Matthieu Napoli <matthieu@mnapoli.fr>
15
+ * @author Daniel Costa <danielcosta@gmail.com>
16
+ * @author Mirosław Filip <mirfilip@gmail.com>
17
+ */
18
+ abstract class Enum implements \JsonSerializable
19
+ {
20
+ /**
21
+ * Enum value
22
+ *
23
+ * @var mixed
24
+ */
25
+ protected $value;
26
+
27
+ /**
28
+ * Store existing constants in a static cache per object.
29
+ *
30
+ * @var array
31
+ */
32
+ protected static $cache = [];
33
+
34
+ /**
35
+ * Creates a new value of some type
36
+ *
37
+ * @param mixed $value
38
+ *
39
+ * @throws \UnexpectedValueException if incompatible type is given.
40
+ */
41
+ public function __construct($value)
42
+ {
43
+ if ($value instanceof static) {
44
+ $this->value = $value->getValue();
45
+
46
+ return;
47
+ }
48
+
49
+ if (!$this->isValid($value)) {
50
+ throw new \UnexpectedValueException("Value '$value' is not part of the enum " . \get_called_class());
51
+ }
52
+
53
+ $this->value = $value;
54
+ }
55
+
56
+ /**
57
+ * @return mixed
58
+ */
59
+ public function getValue()
60
+ {
61
+ return $this->value;
62
+ }
63
+
64
+ /**
65
+ * Returns the enum key (i.e. the constant name).
66
+ *
67
+ * @return mixed
68
+ */
69
+ public function getKey()
70
+ {
71
+ return static::search($this->value);
72
+ }
73
+
74
+ /**
75
+ * @return string
76
+ */
77
+ public function __toString()
78
+ {
79
+ return (string)$this->value;
80
+ }
81
+
82
+ /**
83
+ * Compares one Enum with another.
84
+ *
85
+ * This method is final, for more information read https://github.com/myclabs/php-enum/issues/4
86
+ *
87
+ * @return bool True if Enums are equal, false if not equal
88
+ */
89
+ final public function equals(Enum $enum = null)
90
+ {
91
+ return $enum !== null && $this->getValue() === $enum->getValue() && \get_called_class() === \get_class($enum);
92
+ }
93
+
94
+ /**
95
+ * Returns the names (keys) of all constants in the Enum class
96
+ *
97
+ * @return array
98
+ */
99
+ public static function keys()
100
+ {
101
+ return \array_keys(static::toArray());
102
+ }
103
+
104
+ /**
105
+ * Returns instances of the Enum class of all Enum constants
106
+ *
107
+ * @return static[] Constant name in key, Enum instance in value
108
+ */
109
+ public static function values()
110
+ {
111
+ $values = array();
112
+
113
+ foreach (static::toArray() as $key => $value) {
114
+ $values[$key] = new static($value);
115
+ }
116
+
117
+ return $values;
118
+ }
119
+
120
+ /**
121
+ * Returns all possible values as an array
122
+ *
123
+ * @return array Constant name in key, constant value in value
124
+ */
125
+ public static function toArray()
126
+ {
127
+ $class = \get_called_class();
128
+ if (!isset(static::$cache[$class])) {
129
+ $reflection = new \ReflectionClass($class);
130
+ static::$cache[$class] = $reflection->getConstants();
131
+ }
132
+
133
+ return static::$cache[$class];
134
+ }
135
+
136
+ /**
137
+ * Check if is valid enum value
138
+ *
139
+ * @param $value
140
+ *
141
+ * @return bool
142
+ */
143
+ public static function isValid($value)
144
+ {
145
+ return \in_array($value, static::toArray(), true);
146
+ }
147
+
148
+ /**
149
+ * Check if is valid enum key
150
+ *
151
+ * @param $key
152
+ *
153
+ * @return bool
154
+ */
155
+ public static function isValidKey($key)
156
+ {
157
+ $array = static::toArray();
158
+
159
+ return isset($array[$key]) || \array_key_exists($key, $array);
160
+ }
161
+
162
+ /**
163
+ * Return key for value
164
+ *
165
+ * @param $value
166
+ *
167
+ * @return mixed
168
+ */
169
+ public static function search($value)
170
+ {
171
+ return \array_search($value, static::toArray(), true);
172
+ }
173
+
174
+ /**
175
+ * Returns a value when called statically like so: MyEnum::SOME_VALUE() given SOME_VALUE is a class constant
176
+ *
177
+ * @param string $name
178
+ * @param array $arguments
179
+ *
180
+ * @return static
181
+ * @throws \BadMethodCallException
182
+ */
183
+ public static function __callStatic($name, $arguments)
184
+ {
185
+ $array = static::toArray();
186
+ if (isset($array[$name]) || \array_key_exists($name, $array)) {
187
+ return new static($array[$name]);
188
+ }
189
+
190
+ throw new \BadMethodCallException("No static method or enum constant '$name' in class " . \get_called_class());
191
+ }
192
+
193
+ /**
194
+ * Specify data which should be serialized to JSON. This method returns data that can be serialized by json_encode()
195
+ * natively.
196
+ *
197
+ * @return mixed
198
+ * @link http://php.net/manual/en/jsonserializable.jsonserialize.php
199
+ */
200
+ public function jsonSerialize()
201
+ {
202
+ return $this->getValue();
203
+ }
204
+ }
woocommerce-payments.php CHANGED
@@ -10,7 +10,7 @@
10
  * WC requires at least: 4.0
11
  * WC tested up to: 4.4
12
  * Requires WP: 5.3
13
- * Version: 1.4.1
14
  *
15
  * @package WooCommerce\Payments
16
  */
@@ -62,6 +62,8 @@ function wcpay_jetpack_init() {
62
  ]
63
  );
64
  }
 
 
65
 
66
  // Jetpack-config will initialize the modules on "plugins_loaded" with priority 2, so this code needs to be run before that.
67
  add_action( 'plugins_loaded', 'wcpay_jetpack_init', 1 );
10
  * WC requires at least: 4.0
11
  * WC tested up to: 4.4
12
  * Requires WP: 5.3
13
+ * Version: 1.5.0
14
  *
15
  * @package WooCommerce\Payments
16
  */
62
  ]
63
  );
64
  }
65
+ // Jetpack's Rest_Authentication needs to be initialized even before plugins_loaded.
66
+ Automattic\Jetpack\Connection\Rest_Authentication::init();
67
 
68
  // Jetpack-config will initialize the modules on "plugins_loaded" with priority 2, so this code needs to be run before that.
69
  add_action( 'plugins_loaded', 'wcpay_jetpack_init', 1 );