WooCommerce Gutenberg Products Block - Version 1.3.0

Version Description

  • 2019-01-15 =

  • Feature: Added new blocks: "Featured Product", "Hand-picked Products", "Best Selling Products", "Newest Products", "On Sale Products", "Top Rated Products"

  • Enhancement: Create new "WooCommerce" block category, all blocks are found there now

  • Enhancement: Added a control to "Products by Category" block to control whether products need to match any selected categories or all selected categories

  • Fix: A "Products by Category" block with no category selected will no longer show all products

  • Legacy block: Remove legacy "Products" block from being shown in the block inserter (still loading the block for an existing uses)

  • Legacy block: Fix an issue with imageless products in the legacy "Products" block.

  • Components: Add new Control components ProductControl, ProductsControl, ProductOrderbyControl

  • Components: Update SearchListControl to allow selecting a single item

  • API: Add cat_operator support to products endpoint

  • API: Add product description & short_description to each product

  • API: Add attribute group names to each attribute

  • Build: Update packages

  • Build: Add cssnano to minify CSS

  • Build: Split out node_modules code into separate vendors files

=

Download this release

Release Info

Developer ryelle
Plugin Icon 128x128 WooCommerce Gutenberg Products Block
Version 1.3.0
Comparing to
See all releases

Code changes from version 1.2.0 to 1.3.0

Files changed (70) hide show
  1. assets/css/abstracts/_breakpoints.scss +2 -1
  2. assets/css/abstracts/_mixins.scss +12 -0
  3. assets/css/abstracts/_variables.scss +12 -0
  4. assets/css/product-category-block.scss +0 -69
  5. assets/css/products-grid.scss +53 -0
  6. assets/js/blocks/featured-product/block.js +354 -0
  7. assets/js/blocks/featured-product/index.js +128 -0
  8. assets/js/blocks/featured-product/style.scss +124 -0
  9. assets/js/blocks/handpicked-products/block.js +240 -0
  10. assets/js/blocks/handpicked-products/index.js +91 -0
  11. assets/js/blocks/handpicked-products/style.scss +3 -0
  12. assets/js/blocks/product-best-sellers/block.js +181 -0
  13. assets/js/blocks/product-best-sellers/index.js +54 -0
  14. assets/js/{product-category-block.js → blocks/product-category/block.js} +66 -152
  15. assets/js/blocks/product-category/index.js +73 -0
  16. assets/js/blocks/product-category/style.scss +3 -0
  17. assets/js/blocks/product-new/block.js +174 -0
  18. assets/js/blocks/product-new/index.js +54 -0
  19. assets/js/blocks/product-on-sale/block.js +188 -0
  20. assets/js/blocks/product-on-sale/index.js +62 -0
  21. assets/js/blocks/product-top-rated/block.js +174 -0
  22. assets/js/blocks/product-top-rated/index.js +54 -0
  23. assets/js/components/icons/checkbox-checked.js +22 -0
  24. assets/js/components/icons/checkbox-unchecked.js +22 -0
  25. assets/js/components/icons/index.js +7 -0
  26. assets/js/components/icons/new-releases.js +20 -0
  27. assets/js/components/icons/radio-selected.js +19 -0
  28. assets/js/components/icons/radio-unselected.js +22 -0
  29. assets/js/components/icons/widgets.js +20 -0
  30. assets/js/components/product-attribute-control/index.js +147 -0
  31. assets/js/components/product-attribute-control/style.scss +14 -0
  32. assets/js/components/product-category-control/index.js +64 -58
  33. assets/js/components/product-category-control/style.scss +9 -68
  34. assets/js/components/product-control/index.js +87 -0
  35. assets/js/components/product-orderby-control/index.js +62 -0
  36. assets/js/components/product-preview/index.js +4 -2
  37. assets/js/components/product-preview/style.scss +26 -69
  38. assets/js/components/products-control/index.js +94 -0
  39. assets/js/components/search-list-control/icons.js +0 -48
  40. assets/js/components/search-list-control/index.js +52 -72
  41. assets/js/components/search-list-control/item.js +132 -0
  42. assets/js/components/search-list-control/style.scss +90 -7
  43. assets/js/legacy/products-block.jsx +5 -2
  44. assets/{css → js/legacy}/products-block.scss +0 -0
  45. assets/js/legacy/views/specific-select.jsx +7 -2
  46. assets/js/utils/get-query.js +42 -17
  47. assets/js/utils/get-shortcode.js +51 -14
  48. assets/js/utils/products.js +25 -0
  49. assets/js/utils/shared-attributes.js +19 -10
  50. build/featured-product.css +2 -0
  51. build/featured-product.js +1 -0
  52. build/handpicked-products.css +3 -0
  53. build/handpicked-products.js +1 -0
  54. build/product-best-sellers.css +3 -0
  55. build/product-best-sellers.js +1 -0
  56. build/product-category-block.css +0 -2472
  57. build/product-category.css +4 -0
  58. build/product-category.js +1 -0
  59. build/product-new.css +3 -0
  60. build/product-new.js +1 -0
  61. build/product-on-sale.css +3 -0
  62. build/product-on-sale.js +1 -0
  63. build/product-top-rated.css +3 -0
  64. build/product-top-rated.js +1 -0
  65. build/products-block.css +1 -565
  66. build/products-block.js +1 -1
  67. build/products-grid.css +1 -0
  68. build/products-grid.js +1 -0
  69. build/vendors.css +1 -0
  70. build/{product-category-block.js → vendors.js} +2 -3
assets/css/abstracts/_breakpoints.scss CHANGED
@@ -5,7 +5,8 @@
5
 
6
  // Think very carefully before adding a new breakpoint.
7
  // The list below is based on wp-admin's main breakpoints
8
- $breakpoints: 320px, 400px, 600px, 782px, 960px, 1280px, 1440px;
 
9
 
10
  @mixin breakpoint( $sizes... ) {
11
  @each $size in $sizes {
5
 
6
  // Think very carefully before adding a new breakpoint.
7
  // The list below is based on wp-admin's main breakpoints
8
+ // See https://github.com/WordPress/gutenberg/tree/master/packages/viewport#breakpoints
9
+ $breakpoints: 480px, 600px, 782px, 960px, 1280px, 1440px;
10
 
11
  @mixin breakpoint( $sizes... ) {
12
  @each $size in $sizes {
assets/css/abstracts/_mixins.scss CHANGED
@@ -57,3 +57,15 @@
57
  margin: unset;
58
  overflow: hidden;
59
  }
 
 
 
 
 
 
 
 
 
 
 
 
57
  margin: unset;
58
  overflow: hidden;
59
  }
60
+
61
+ // Create a string-repeat function
62
+ @function repeat($character, $n) {
63
+ @if $n == 0 {
64
+ @return "";
65
+ }
66
+ $c: "";
67
+ @for $i from 1 through $n {
68
+ $c: $c + $character;
69
+ }
70
+ @return $c;
71
+ }
assets/css/abstracts/_variables.scss CHANGED
@@ -5,3 +5,15 @@ $gap: 16px;
5
  $gap-small: 12px;
6
  $gap-smaller: 8px;
7
  $gap-smallest: 4px;
 
 
 
 
 
 
 
 
 
 
 
 
5
  $gap-small: 12px;
6
  $gap-smaller: 8px;
7
  $gap-smallest: 4px;
8
+
9
+ // Variables pulled from Gutenberg.
10
+ // Editor Widths
11
+ $sidebar-width: 280px;
12
+ $content-width: 610px; // For the visual width, subtract 30px (2 * $block-padding + 2px borders). This comes to 580px, which is optimized for 70 characters.
13
+
14
+ // Blocks
15
+ $block-padding: 14px; // Space between block footprint and focus boundaries. These are drawn outside the block footprint, and do not affect the size.
16
+ $block-spacing: 4px; // Vertical space between blocks.
17
+ $block-side-ui-width: 28px; // Width of the movers/drag handle UI.
18
+ $block-side-ui-clearance: 2px; // Space between movers/drag handle UI, and block.
19
+ $block-container-side-padding: $block-side-ui-width + $block-padding + 2 * $block-side-ui-clearance; // Total space left and right of the block footprint.
assets/css/product-category-block.scss DELETED
@@ -1,69 +0,0 @@
1
- // Import the woocommerce components stylesheet
2
- // @todo Move this to a separate file so we can build a cacheable single stylesheet for all blocks.
3
- @import "../../node_modules/@woocommerce/components/build-style/style.css";
4
-
5
- // Hack to hide preview overflow.
6
- .editor-block-preview__content {
7
- overflow: hidden;
8
- }
9
-
10
- .wc-block-products-category {
11
- overflow: hidden;
12
-
13
- &.components-placeholder {
14
- padding: 2em 1em;
15
- }
16
-
17
- .editor-block-preview & {
18
- min-width: 5em;
19
-
20
- .wc-product-preview__title,
21
- .wc-product-preview__price,
22
- .wc-product-preview__add-to-cart {
23
- font-size: 0.6em;
24
- }
25
-
26
- &.cols-2 {
27
- min-width: 2 * 5em;
28
- }
29
- &.cols-3 {
30
- min-width: 3 * 5em;
31
- }
32
- &.cols-4 {
33
- min-width: 4 * 5em;
34
- }
35
- &.cols-5 {
36
- min-width: 5 * 5em;
37
- }
38
- &.cols-6 {
39
- min-width: 6 * 5em;
40
- }
41
-
42
- &.is-loading,
43
- &.is-not-found {
44
- min-width: auto;
45
- }
46
- }
47
- }
48
-
49
- .wc-block-products-category__selection {
50
- width: 100%;
51
- }
52
-
53
- .components-panel {
54
- .woocommerce-search-list {
55
- padding: 0;
56
- }
57
- .woocommerce-search-list__selected {
58
- margin: 0 0 $gap;
59
- padding: 0;
60
- border-top: none;
61
- // 54px is the height of 1 row of tags in the sidebar.
62
- min-height: 54px;
63
- }
64
- .woocommerce-search-list__search {
65
- margin: 0 0 $gap;
66
- padding: 0;
67
- border-top: none;
68
- }
69
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/css/products-grid.scss ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Import the woocommerce components stylesheet
2
+ @import "~@woocommerce/components/build-style/style.css";
3
+
4
+ // Hack to hide preview overflow.
5
+ .editor-block-preview__content {
6
+ overflow: hidden;
7
+ }
8
+
9
+ .wc-block-products-grid {
10
+ overflow: hidden;
11
+ display: flex;
12
+ flex-wrap: wrap;
13
+ justify-content: flex-start;
14
+
15
+ &.is-loading,
16
+ &.is-not-found,
17
+ &.cols-1 {
18
+ display: block;
19
+ }
20
+
21
+ .wc-product-preview {
22
+ flex: 1;
23
+ padding: $gap/2;
24
+ }
25
+
26
+ @for $i from 2 to 7 {
27
+ &.cols-#{$i} .wc-product-preview {
28
+ max-width: calc(#{ 100% / $i });
29
+ min-width: calc(#{ 100% / $i });
30
+ flex: 1;
31
+ }
32
+ }
33
+
34
+ &.components-placeholder {
35
+ padding: 2em 1em;
36
+ }
37
+
38
+ // Styles for "resuable block" preview.
39
+ .editor-block-preview & {
40
+ min-width: 5em;
41
+
42
+ @for $i from 1 to 7 {
43
+ &.cols-#{$i} {
44
+ min-width: $i * 5em;
45
+ }
46
+ }
47
+
48
+ &.is-loading,
49
+ &.is-not-found {
50
+ min-width: auto;
51
+ }
52
+ }
53
+ }
assets/js/blocks/featured-product/block.js ADDED
@@ -0,0 +1,354 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * External dependencies
3
+ */
4
+ import { __ } from '@wordpress/i18n';
5
+ import apiFetch from '@wordpress/api-fetch';
6
+ import {
7
+ AlignmentToolbar,
8
+ BlockControls,
9
+ InspectorControls,
10
+ MediaUpload,
11
+ MediaUploadCheck,
12
+ PanelColorSettings,
13
+ RichText,
14
+ withColors,
15
+ } from '@wordpress/editor';
16
+ import {
17
+ Button,
18
+ IconButton,
19
+ PanelBody,
20
+ Placeholder,
21
+ RangeControl,
22
+ Spinner,
23
+ ToggleControl,
24
+ Toolbar,
25
+ withSpokenMessages,
26
+ } from '@wordpress/components';
27
+ import classnames from 'classnames';
28
+ import { Component, Fragment } from '@wordpress/element';
29
+ import { compose } from '@wordpress/compose';
30
+ import { debounce, isObject } from 'lodash';
31
+ import PropTypes from 'prop-types';
32
+
33
+ /**
34
+ * Internal dependencies
35
+ */
36
+ import ProductControl from '../../components/product-control';
37
+ import {
38
+ getImageSrcFromProduct,
39
+ getImageIdFromProduct,
40
+ } from '../../utils/products';
41
+
42
+ /**
43
+ * Generate a style object given either a product object or URL to an image.
44
+ *
45
+ * @param {object|string} url A product object as returned from the API, or an image URL.
46
+ * @return {object} A style object with a backgroundImage set (if a valid image is provided).
47
+ */
48
+ function backgroundImageStyles( url ) {
49
+ // If `url` is an object, it's actually a product.
50
+ if ( isObject( url ) ) {
51
+ url = getImageSrcFromProduct( url );
52
+ }
53
+ if ( url ) {
54
+ return { backgroundImage: `url(${ url })` };
55
+ }
56
+ return {};
57
+ }
58
+
59
+ /**
60
+ * Convert the selected ratio to the correct background class.
61
+ *
62
+ * @param {number} ratio Selected opacity from 0 to 100.
63
+ * @return {string} The class name, if applicable (not used for ratio 0 or 50).
64
+ */
65
+ function dimRatioToClass( ratio ) {
66
+ return ratio === 0 || ratio === 50 ?
67
+ null :
68
+ `has-background-dim-${ 10 * Math.round( ratio / 10 ) }`;
69
+ }
70
+
71
+ /**
72
+ * Component to handle edit mode of "Featured Product".
73
+ */
74
+ class FeaturedProduct extends Component {
75
+ constructor() {
76
+ super( ...arguments );
77
+ this.state = {
78
+ product: false,
79
+ loaded: false,
80
+ };
81
+
82
+ this.debouncedGetProduct = debounce( this.getProduct.bind( this ), 200 );
83
+ }
84
+
85
+ componentDidMount() {
86
+ this.getProduct();
87
+ }
88
+
89
+ componentDidUpdate( prevProps ) {
90
+ if ( prevProps.attributes.productId !== this.props.attributes.productId ) {
91
+ this.debouncedGetProduct();
92
+ }
93
+ }
94
+
95
+ getProduct() {
96
+ const { productId } = this.props.attributes;
97
+ if ( ! productId ) {
98
+ // We've removed the selected product, or no product is selected yet.
99
+ this.setState( { product: false, loaded: true } );
100
+ return;
101
+ }
102
+ apiFetch( {
103
+ path: `/wc-pb/v3/products/${ productId }`,
104
+ } )
105
+ .then( ( product ) => {
106
+ this.setState( { product, loaded: true } );
107
+ } )
108
+ .catch( () => {
109
+ this.setState( { product: false, loaded: true } );
110
+ } );
111
+ }
112
+
113
+ getInspectorControls() {
114
+ const {
115
+ attributes,
116
+ setAttributes,
117
+ overlayColor,
118
+ setOverlayColor,
119
+ } = this.props;
120
+
121
+ return (
122
+ <InspectorControls key="inspector">
123
+ <PanelBody
124
+ title={ __( 'Product', 'woo-gutenberg-products-block' ) }
125
+ initialOpen={ false }
126
+ >
127
+ <ProductControl
128
+ selected={ attributes.productId || 0 }
129
+ onChange={ ( value = [] ) => {
130
+ const id = value[ 0 ] ? value[ 0 ].id : 0;
131
+ setAttributes( { productId: id, mediaId: 0, mediaSrc: '' } );
132
+ } }
133
+ />
134
+ </PanelBody>
135
+ <PanelBody title={ __( 'Content', 'woo-gutenberg-products-block' ) }>
136
+ <ToggleControl
137
+ label="Show description"
138
+ checked={ attributes.showDesc }
139
+ onChange={ () => setAttributes( { showDesc: ! attributes.showDesc } ) }
140
+ />
141
+ <ToggleControl
142
+ label="Show price"
143
+ checked={ attributes.showPrice }
144
+ onChange={ () => setAttributes( { showPrice: ! attributes.showPrice } ) }
145
+ />
146
+ </PanelBody>
147
+ <PanelColorSettings
148
+ title={ __( 'Overlay', 'woo-gutenberg-products-block' ) }
149
+ colorSettings={ [
150
+ {
151
+ value: overlayColor.color,
152
+ onChange: setOverlayColor,
153
+ label: __( 'Overlay Color', 'woo-gutenberg-products-block' ),
154
+ },
155
+ ] }
156
+ >
157
+ <RangeControl
158
+ label={ __( 'Background Opacity', 'woo-gutenberg-products-block' ) }
159
+ value={ attributes.dimRatio }
160
+ onChange={ ( ratio ) => setAttributes( { dimRatio: ratio } ) }
161
+ min={ 0 }
162
+ max={ 100 }
163
+ step={ 10 }
164
+ />
165
+ </PanelColorSettings>
166
+ </InspectorControls>
167
+ );
168
+ }
169
+
170
+ renderEditMode() {
171
+ const { attributes, debouncedSpeak, setAttributes } = this.props;
172
+ const onDone = () => {
173
+ setAttributes( { editMode: false } );
174
+ debouncedSpeak(
175
+ __(
176
+ 'Showing Featured Product block preview.',
177
+ 'woo-gutenberg-products-block'
178
+ )
179
+ );
180
+ };
181
+
182
+ return (
183
+ <Placeholder
184
+ icon="star-filled"
185
+ label={ __( 'Featured Product', 'woo-gutenberg-products-block' ) }
186
+ className="wc-block-featured-product"
187
+ >
188
+ { __(
189
+ 'Visually highlight a product and encourage prompt action',
190
+ 'woo-gutenberg-products-block'
191
+ ) }
192
+ <div className="wc-block-handpicked-products__selection">
193
+ <ProductControl
194
+ selected={ attributes.productId || 0 }
195
+ onChange={ ( value = [] ) => {
196
+ const id = value[ 0 ] ? value[ 0 ].id : 0;
197
+ setAttributes( { productId: id, mediaId: 0, mediaSrc: '' } );
198
+ } }
199
+ />
200
+ <Button isDefault onClick={ onDone }>
201
+ { __( 'Done', 'woo-gutenberg-products-block' ) }
202
+ </Button>
203
+ </div>
204
+ </Placeholder>
205
+ );
206
+ }
207
+
208
+ render() {
209
+ const { attributes, setAttributes, overlayColor } = this.props;
210
+ const {
211
+ contentAlign,
212
+ dimRatio,
213
+ editMode,
214
+ linkText,
215
+ showDesc,
216
+ showPrice,
217
+ } = attributes;
218
+ const { loaded, product } = this.state;
219
+ const classes = classnames(
220
+ 'wc-block-featured-product',
221
+ {
222
+ 'is-loading': ! product && ! loaded,
223
+ 'is-not-found': ! product && loaded,
224
+ 'has-background-dim': dimRatio !== 0,
225
+ },
226
+ dimRatioToClass( dimRatio ),
227
+ contentAlign !== 'center' && `has-${ contentAlign }-content`
228
+ );
229
+ const mediaId = attributes.mediaId || getImageIdFromProduct( product );
230
+
231
+ const style = !! product ?
232
+ backgroundImageStyles( attributes.mediaSrc || product ) :
233
+ {};
234
+ if ( overlayColor.color ) {
235
+ style.backgroundColor = overlayColor.color;
236
+ }
237
+
238
+ return (
239
+ <Fragment>
240
+ <BlockControls>
241
+ <AlignmentToolbar
242
+ value={ contentAlign }
243
+ onChange={ ( nextAlign ) => {
244
+ setAttributes( { contentAlign: nextAlign } );
245
+ } }
246
+ />
247
+ <Toolbar
248
+ controls={ [
249
+ {
250
+ icon: 'edit',
251
+ title: __( 'Edit' ),
252
+ onClick: () => setAttributes( { editMode: ! editMode } ),
253
+ isActive: editMode,
254
+ },
255
+ ] }
256
+ />
257
+ <MediaUploadCheck>
258
+ <Toolbar>
259
+ <MediaUpload
260
+ onSelect={ ( media ) => {
261
+ setAttributes( { mediaId: media.id, mediaSrc: media.url } );
262
+ } }
263
+ allowedTypes={ [ 'image' ] }
264
+ value={ mediaId }
265
+ render={ ( { open } ) => (
266
+ <IconButton
267
+ className="components-toolbar__control"
268
+ label={ __( 'Edit media' ) }
269
+ icon="format-image"
270
+ onClick={ open }
271
+ />
272
+ ) }
273
+ />
274
+ </Toolbar>
275
+ </MediaUploadCheck>
276
+ </BlockControls>
277
+ { ! attributes.editMode && this.getInspectorControls() }
278
+ { editMode ? (
279
+ this.renderEditMode()
280
+ ) : (
281
+ <Fragment>
282
+ { !! product ? (
283
+ <div className={ classes } style={ style }>
284
+ <h2 className="wc-block-featured-product__title">
285
+ { product.name }
286
+ </h2>
287
+ { showDesc && (
288
+ <div
289
+ className="wc-block-featured-product__description"
290
+ dangerouslySetInnerHTML={ {
291
+ __html: product.short_description,
292
+ } }
293
+ />
294
+ ) }
295
+ { showPrice && (
296
+ <div
297
+ className="wc-block-featured-product__price"
298
+ dangerouslySetInnerHTML={ { __html: product.price_html } }
299
+ />
300
+ ) }
301
+ <div className="wc-block-featured-product__link wp-block-button">
302
+ <RichText
303
+ value={ linkText }
304
+ onChange={ ( value ) => setAttributes( { linkText: value } ) }
305
+ formattingControls={ [ 'bold', 'italic', 'strikethrough' ] }
306
+ className="wp-block-button__link"
307
+ keepPlaceholderOnFocus
308
+ />
309
+ </div>
310
+ </div>
311
+ ) : (
312
+ <Placeholder
313
+ className="wc-block-featured-product"
314
+ icon="star-filled"
315
+ label={ __( 'Featured Product', 'woo-gutenberg-products-block' ) }
316
+ >
317
+ { ! loaded ? (
318
+ <Spinner />
319
+ ) : (
320
+ __( 'No product is selected.', 'woo-gutenberg-products-block' )
321
+ ) }
322
+ </Placeholder>
323
+ ) }
324
+ </Fragment>
325
+ ) }
326
+ </Fragment>
327
+ );
328
+ }
329
+ }
330
+
331
+ FeaturedProduct.propTypes = {
332
+ /**
333
+ * The attributes for this block
334
+ */
335
+ attributes: PropTypes.object.isRequired,
336
+ /**
337
+ * The register block name.
338
+ */
339
+ name: PropTypes.string.isRequired,
340
+ /**
341
+ * A callback to update attributes
342
+ */
343
+ setAttributes: PropTypes.func.isRequired,
344
+ // from withColors
345
+ overlayColor: PropTypes.object,
346
+ setOverlayColor: PropTypes.func.isRequired,
347
+ // from withSpokenMessages
348
+ debouncedSpeak: PropTypes.func.isRequired,
349
+ };
350
+
351
+ export default compose( [
352
+ withColors( { overlayColor: 'background-color' } ),
353
+ withSpokenMessages,
354
+ ] )( FeaturedProduct );
assets/js/blocks/featured-product/index.js ADDED
@@ -0,0 +1,128 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * External dependencies
3
+ */
4
+ import { __ } from '@wordpress/i18n';
5
+ import { registerBlockType } from '@wordpress/blocks';
6
+
7
+ /**
8
+ * Internal dependencies
9
+ */
10
+ import './style.scss';
11
+ import Block from './block';
12
+
13
+ /**
14
+ * Register and run the "Featured Product" block.
15
+ */
16
+ registerBlockType( 'woocommerce/featured-product', {
17
+ title: __( 'Featured Product', 'woo-gutenberg-products-block' ),
18
+ icon: 'star-filled',
19
+ category: 'woocommerce',
20
+ keywords: [ __( 'WooCommerce', 'woo-gutenberg-products-block' ) ],
21
+ description: __(
22
+ 'Visually highlight a product and encourage prompt action.',
23
+ 'woo-gutenberg-products-block'
24
+ ),
25
+ supports: {
26
+ align: [ 'wide', 'full' ],
27
+ },
28
+ attributes: {
29
+ /**
30
+ * Alignment of content inside block.
31
+ */
32
+ contentAlign: {
33
+ type: 'string',
34
+ default: 'center',
35
+ },
36
+
37
+ /**
38
+ * Percentage opacity of overlay.
39
+ */
40
+ dimRatio: {
41
+ type: 'number',
42
+ default: 50,
43
+ },
44
+
45
+ /**
46
+ * Toggle for edit mode in the block preview.
47
+ */
48
+ editMode: {
49
+ type: 'boolean',
50
+ default: true,
51
+ },
52
+
53
+ /**
54
+ * ID for a custom image, overriding the product's featured image.
55
+ */
56
+ mediaId: {
57
+ type: 'number',
58
+ default: 0,
59
+ },
60
+
61
+ /**
62
+ * URL for a custom image, overriding the product's featured image.
63
+ */
64
+ mediaSrc: {
65
+ type: 'string',
66
+ default: '',
67
+ },
68
+
69
+ /**
70
+ * The overlay color, from the color list.
71
+ */
72
+ overlayColor: {
73
+ type: 'string',
74
+ },
75
+
76
+ /**
77
+ * The overlay color, if a custom color value.
78
+ */
79
+ customOverlayColor: {
80
+ type: 'string',
81
+ },
82
+
83
+ /**
84
+ * Text for the product link.
85
+ */
86
+ linkText: {
87
+ type: 'string',
88
+ default: __( 'Shop now', 'woo-gutenberg-products-block' ),
89
+ },
90
+
91
+ /**
92
+ * The product ID to display.
93
+ */
94
+ productId: {
95
+ type: 'number',
96
+ },
97
+
98
+ /**
99
+ * Show the product description.
100
+ */
101
+ showDesc: {
102
+ type: 'boolean',
103
+ default: true,
104
+ },
105
+
106
+ /**
107
+ * Show the product price.
108
+ */
109
+ showPrice: {
110
+ type: 'boolean',
111
+ default: true,
112
+ },
113
+ },
114
+
115
+ /**
116
+ * Renders and manages the block.
117
+ */
118
+ edit( props ) {
119
+ return <Block { ...props } />;
120
+ },
121
+
122
+ /**
123
+ * Block content is rendered in PHP, not via save function.
124
+ */
125
+ save() {
126
+ return null;
127
+ },
128
+ } );
assets/js/blocks/featured-product/style.scss ADDED
@@ -0,0 +1,124 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .wc-block-featured-product {
2
+ position: relative;
3
+ background-color: $black;
4
+ background-size: cover;
5
+ background-position: center center;
6
+ min-height: 500px;
7
+ width: 100%;
8
+ margin: 0 0 1.5em 0;
9
+ display: flex;
10
+ justify-content: center;
11
+ align-items: center;
12
+ overflow: hidden;
13
+ flex-wrap: wrap;
14
+ align-content: center;
15
+
16
+ &.components-placeholder {
17
+ // Reset the background for the placeholders.
18
+ background-color: rgba( 139, 139, 150, .1 );
19
+ }
20
+
21
+ &.has-left-content {
22
+ justify-content: flex-start;
23
+
24
+ .wc-block-featured-product__title,
25
+ .wc-block-featured-product__description,
26
+ .wc-block-featured-product__price,
27
+ .wc-block-featured-product__link {
28
+ margin-left: 0;
29
+ text-align: left;
30
+ }
31
+ }
32
+
33
+ &.has-right-content {
34
+ justify-content: flex-end;
35
+
36
+ .wc-block-featured-product__title,
37
+ .wc-block-featured-product__description,
38
+ .wc-block-featured-product__price,
39
+ .wc-block-featured-product__link {
40
+ margin-right: 0;
41
+ text-align: right;
42
+ }
43
+ }
44
+
45
+ .wc-block-featured-product__title,
46
+ .wc-block-featured-product__description,
47
+ .wc-block-featured-product__price,
48
+ .wc-block-featured-product__link {
49
+ color: $white;
50
+ line-height: 1.25;
51
+ z-index: 1;
52
+ margin-bottom: 0;
53
+ width: 100%;
54
+ padding: 0 48px 16px 48px;
55
+ text-align: center;
56
+
57
+ a,
58
+ a:hover,
59
+ a:focus,
60
+ a:active {
61
+ color: $white;
62
+ }
63
+ }
64
+
65
+ .wc-block-featured-product__title {
66
+ margin-top: 0;
67
+
68
+ &:before {
69
+ display: none;
70
+ }
71
+ }
72
+
73
+ .wc-block-featured-product__description {
74
+ p {
75
+ margin: 0;
76
+ }
77
+ }
78
+
79
+ &.has-background-dim::before {
80
+ content: "";
81
+ position: absolute;
82
+ top: 0;
83
+ left: 0;
84
+ bottom: 0;
85
+ right: 0;
86
+ background-color: inherit;
87
+ opacity: 0.5;
88
+ z-index: 1;
89
+ }
90
+
91
+ @for $i from 1 through 10 {
92
+ &.has-background-dim.has-background-dim-#{ $i * 10 }::before {
93
+ opacity: $i * 0.1;
94
+ }
95
+ }
96
+
97
+ // Apply max-width to floated items that have no intrinsic width
98
+ &.alignleft,
99
+ &.alignright {
100
+ max-width: $content-width / 2;
101
+ width: 100%;
102
+ }
103
+
104
+ // Using flexbox without an assigned height property breaks vertical center alignment in IE11.
105
+ // Appending an empty ::after element tricks IE11 into giving the cover image an implicit height, which sidesteps this issue.
106
+ &::after {
107
+ display: block;
108
+ content: "";
109
+ font-size: 0;
110
+ min-height: inherit;
111
+
112
+ // IE doesn't support flex so omit that.
113
+ @supports (position: sticky) {
114
+ content: none;
115
+ }
116
+ }
117
+
118
+ // Aligned cover blocks should not use our global alignment rules
119
+ &.aligncenter,
120
+ &.alignleft,
121
+ &.alignright {
122
+ display: flex;
123
+ }
124
+ }
assets/js/blocks/handpicked-products/block.js ADDED
@@ -0,0 +1,240 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * External dependencies
3
+ */
4
+ import { __ } from '@wordpress/i18n';
5
+ import { addQueryArgs } from '@wordpress/url';
6
+ import apiFetch from '@wordpress/api-fetch';
7
+ import { BlockControls, InspectorControls } from '@wordpress/editor';
8
+ import {
9
+ Button,
10
+ PanelBody,
11
+ Placeholder,
12
+ RangeControl,
13
+ Spinner,
14
+ Toolbar,
15
+ withSpokenMessages,
16
+ } from '@wordpress/components';
17
+ import { Component, Fragment } from '@wordpress/element';
18
+ import { debounce } from 'lodash';
19
+ import PropTypes from 'prop-types';
20
+
21
+ /**
22
+ * Internal dependencies
23
+ */
24
+ import getQuery from '../../utils/get-query';
25
+ import { IconWidgets } from '../../components/icons';
26
+ import ProductsControl from '../../components/products-control';
27
+ import ProductOrderbyControl from '../../components/product-orderby-control';
28
+ import ProductPreview from '../../components/product-preview';
29
+
30
+ /**
31
+ * Component to handle edit mode of "Hand-picked Products".
32
+ */
33
+ class ProductsBlock extends Component {
34
+ constructor() {
35
+ super( ...arguments );
36
+ this.state = {
37
+ products: [],
38
+ loaded: false,
39
+ };
40
+
41
+ this.debouncedGetProducts = debounce( this.getProducts.bind( this ), 200 );
42
+ }
43
+
44
+ componentDidMount() {
45
+ this.getProducts();
46
+ }
47
+
48
+ componentDidUpdate( prevProps ) {
49
+ const hasChange = [ 'products', 'columns', 'orderby' ].reduce( ( acc, key ) => {
50
+ return acc || prevProps.attributes[ key ] !== this.props.attributes[ key ];
51
+ }, false );
52
+ if ( hasChange ) {
53
+ this.debouncedGetProducts();
54
+ }
55
+ }
56
+
57
+ getProducts() {
58
+ if ( ! this.props.attributes.products.length ) {
59
+ // We've removed all selected products, or products haven't been selected yet.
60
+ this.setState( { products: [], loaded: true } );
61
+ return;
62
+ }
63
+ apiFetch( {
64
+ path: addQueryArgs(
65
+ '/wc-pb/v3/products',
66
+ getQuery( this.props.attributes, this.props.name )
67
+ ),
68
+ } )
69
+ .then( ( products ) => {
70
+ this.setState( { products, loaded: true } );
71
+ } )
72
+ .catch( () => {
73
+ this.setState( { products: [], loaded: true } );
74
+ } );
75
+ }
76
+
77
+ getInspectorControls() {
78
+ const { attributes, setAttributes } = this.props;
79
+ const { columns, orderby } = attributes;
80
+
81
+ return (
82
+ <InspectorControls key="inspector">
83
+ <PanelBody
84
+ title={ __( 'Layout', 'woo-gutenberg-products-block' ) }
85
+ initialOpen
86
+ >
87
+ <RangeControl
88
+ label={ __( 'Columns', 'woo-gutenberg-products-block' ) }
89
+ value={ columns }
90
+ onChange={ ( value ) => setAttributes( { columns: value } ) }
91
+ min={ wc_product_block_data.min_columns }
92
+ max={ wc_product_block_data.max_columns }
93
+ />
94
+ </PanelBody>
95
+ <PanelBody
96
+ title={ __( 'Order By', 'woo-gutenberg-products-block' ) }
97
+ initialOpen={ false }
98
+ >
99
+ <ProductOrderbyControl
100
+ setAttributes={ setAttributes }
101
+ value={ orderby }
102
+ />
103
+ </PanelBody>
104
+ <PanelBody
105
+ title={ __( 'Products', 'woo-gutenberg-products-block' ) }
106
+ initialOpen={ false }
107
+ >
108
+ <ProductsControl
109
+ selected={ attributes.products }
110
+ onChange={ ( value = [] ) => {
111
+ const ids = value.map( ( { id } ) => id );
112
+ setAttributes( { products: ids } );
113
+ } }
114
+ />
115
+ </PanelBody>
116
+ </InspectorControls>
117
+ );
118
+ }
119
+
120
+ renderEditMode() {
121
+ const { attributes, debouncedSpeak, setAttributes } = this.props;
122
+ const onDone = () => {
123
+ setAttributes( { editMode: false } );
124
+ debouncedSpeak(
125
+ __(
126
+ 'Showing Hand-picked Products block preview.',
127
+ 'woo-gutenberg-products-block'
128
+ )
129
+ );
130
+ };
131
+
132
+ return (
133
+ <Placeholder
134
+ icon={ <IconWidgets /> }
135
+ label={ __( 'Hand-picked Products', 'woo-gutenberg-products-block' ) }
136
+ className="wc-block-products-grid wc-block-handpicked-products"
137
+ >
138
+ { __(
139
+ 'Display a selection of hand-picked products in a grid',
140
+ 'woo-gutenberg-products-block'
141
+ ) }
142
+ <div className="wc-block-handpicked-products__selection">
143
+ <ProductsControl
144
+ selected={ attributes.products }
145
+ onChange={ ( value = [] ) => {
146
+ const ids = value.map( ( { id } ) => id );
147
+ setAttributes( { products: ids } );
148
+ } }
149
+ />
150
+ <Button isDefault onClick={ onDone }>
151
+ { __( 'Done', 'woo-gutenberg-products-block' ) }
152
+ </Button>
153
+ </div>
154
+ </Placeholder>
155
+ );
156
+ }
157
+
158
+ render() {
159
+ const { setAttributes } = this.props;
160
+ const { columns, editMode } = this.props.attributes;
161
+ const { loaded, products } = this.state;
162
+ const hasSelectedProducts = products && products.length;
163
+ const classes = [ 'wc-block-products-grid', 'wc-block-handpicked-products' ];
164
+ if ( columns ) {
165
+ classes.push( `cols-${ columns }` );
166
+ }
167
+ if ( ! hasSelectedProducts ) {
168
+ if ( ! loaded ) {
169
+ classes.push( 'is-loading' );
170
+ } else {
171
+ classes.push( 'is-not-found' );
172
+ }
173
+ }
174
+
175
+ return (
176
+ <Fragment>
177
+ <BlockControls>
178
+ <Toolbar
179
+ controls={ [
180
+ {
181
+ icon: 'edit',
182
+ title: __( 'Edit' ),
183
+ onClick: () => setAttributes( { editMode: ! editMode } ),
184
+ isActive: editMode,
185
+ },
186
+ ] }
187
+ />
188
+ </BlockControls>
189
+ { this.getInspectorControls() }
190
+ { editMode ? (
191
+ this.renderEditMode()
192
+ ) : (
193
+ <div className={ classes.join( ' ' ) }>
194
+ { hasSelectedProducts ? (
195
+ products.map( ( product ) => (
196
+ <ProductPreview product={ product } key={ product.id } />
197
+ ) )
198
+ ) : (
199
+ <Placeholder
200
+ icon={ <IconWidgets /> }
201
+ label={ __(
202
+ 'Hand-picked Products',
203
+ 'woo-gutenberg-products-block'
204
+ ) }
205
+ >
206
+ { ! loaded ? (
207
+ <Spinner />
208
+ ) : (
209
+ __(
210
+ 'No products are selected.',
211
+ 'woo-gutenberg-products-block'
212
+ )
213
+ ) }
214
+ </Placeholder>
215
+ ) }
216
+ </div>
217
+ ) }
218
+ </Fragment>
219
+ );
220
+ }
221
+ }
222
+
223
+ ProductsBlock.propTypes = {
224
+ /**
225
+ * The attributes for this block
226
+ */
227
+ attributes: PropTypes.object.isRequired,
228
+ /**
229
+ * The register block name.
230
+ */
231
+ name: PropTypes.string.isRequired,
232
+ /**
233
+ * A callback to update attributes
234
+ */
235
+ setAttributes: PropTypes.func.isRequired,
236
+ // from withSpokenMessages
237
+ debouncedSpeak: PropTypes.func.isRequired,
238
+ };
239
+
240
+ export default withSpokenMessages( ProductsBlock );
assets/js/blocks/handpicked-products/index.js ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * External dependencies
3
+ */
4
+ import { __ } from '@wordpress/i18n';
5
+ import { registerBlockType } from '@wordpress/blocks';
6
+ import { RawHTML } from '@wordpress/element';
7
+
8
+ /**
9
+ * Internal dependencies
10
+ */
11
+ import './style.scss';
12
+ import Block from './block';
13
+ import getShortcode from '../../utils/get-shortcode';
14
+ import { IconWidgets } from '../../components/icons';
15
+
16
+ registerBlockType( 'woocommerce/handpicked-products', {
17
+ title: __( 'Hand-picked Products', 'woo-gutenberg-products-block' ),
18
+ icon: <IconWidgets />,
19
+ category: 'woocommerce',
20
+ keywords: [ __( 'WooCommerce', 'woo-gutenberg-products-block' ) ],
21
+ description: __(
22
+ 'Display a selection of hand-picked products in a grid.',
23
+ 'woo-gutenberg-products-block'
24
+ ),
25
+ supports: {
26
+ align: [ 'wide', 'full' ],
27
+ },
28
+ attributes: {
29
+ /**
30
+ * Alignment of product grid
31
+ */
32
+ align: {
33
+ type: 'string',
34
+ },
35
+
36
+ /**
37
+ * Number of columns.
38
+ */
39
+ columns: {
40
+ type: 'number',
41
+ default: wc_product_block_data.default_columns,
42
+ },
43
+
44
+ /**
45
+ * Toggle for edit mode in the block preview.
46
+ */
47
+ editMode: {
48
+ type: 'boolean',
49
+ default: true,
50
+ },
51
+
52
+ /**
53
+ * How to order the products: 'date', 'popularity', 'price_asc', 'price_desc' 'rating', 'title'.
54
+ */
55
+ orderby: {
56
+ type: 'string',
57
+ default: 'date',
58
+ },
59
+
60
+ /**
61
+ * The list of product IDs to display
62
+ */
63
+ products: {
64
+ type: 'array',
65
+ default: [],
66
+ },
67
+ },
68
+
69
+ /**
70
+ * Renders and manages the block.
71
+ */
72
+ edit( props ) {
73
+ return <Block { ...props } />;
74
+ },
75
+
76
+ /**
77
+ * Save the block content in the post content. Block content is saved as a products shortcode.
78
+ *
79
+ * @return string
80
+ */
81
+ save( props ) {
82
+ const {
83
+ align,
84
+ } = props.attributes; /* eslint-disable-line react/prop-types */
85
+ return (
86
+ <RawHTML className={ align ? `align${ align }` : '' }>
87
+ { getShortcode( props, 'woocommerce/handpicked-products' ) }
88
+ </RawHTML>
89
+ );
90
+ },
91
+ } );
assets/js/blocks/handpicked-products/style.scss ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ .wc-block-handpicked-products__selection {
2
+ width: 100%;
3
+ }
assets/js/blocks/product-best-sellers/block.js ADDED
@@ -0,0 +1,181 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * External dependencies
3
+ */
4
+ import { __ } from '@wordpress/i18n';
5
+ import { addQueryArgs } from '@wordpress/url';
6
+ import apiFetch from '@wordpress/api-fetch';
7
+ import { InspectorControls } from '@wordpress/editor';
8
+ import { Component, Fragment } from '@wordpress/element';
9
+ import { debounce } from 'lodash';
10
+ import Gridicon from 'gridicons';
11
+ import {
12
+ PanelBody,
13
+ Placeholder,
14
+ RangeControl,
15
+ Spinner,
16
+ } from '@wordpress/components';
17
+ import PropTypes from 'prop-types';
18
+
19
+ /**
20
+ * Internal dependencies
21
+ */
22
+ import getQuery from '../../utils/get-query';
23
+ import ProductCategoryControl from '../../components/product-category-control';
24
+ import ProductPreview from '../../components/product-preview';
25
+
26
+ /**
27
+ * Component to handle edit mode of "Best Selling Products".
28
+ */
29
+ class ProductBestSellersBlock extends Component {
30
+ constructor() {
31
+ super( ...arguments );
32
+ this.state = {
33
+ products: [],
34
+ loaded: false,
35
+ };
36
+
37
+ this.debouncedGetProducts = debounce( this.getProducts.bind( this ), 200 );
38
+ }
39
+
40
+ componentDidMount() {
41
+ this.getProducts();
42
+ }
43
+
44
+ componentDidUpdate( prevProps ) {
45
+ const hasChange = [ 'categories', 'catOperator', 'columns', 'rows' ].reduce(
46
+ ( acc, key ) => {
47
+ return acc || prevProps.attributes[ key ] !== this.props.attributes[ key ];
48
+ },
49
+ false
50
+ );
51
+ if ( hasChange ) {
52
+ this.debouncedGetProducts();
53
+ }
54
+ }
55
+
56
+ getProducts() {
57
+ apiFetch( {
58
+ path: addQueryArgs(
59
+ '/wc-pb/v3/products',
60
+ getQuery( this.props.attributes, this.props.name )
61
+ ),
62
+ } )
63
+ .then( ( products ) => {
64
+ this.setState( { products, loaded: true } );
65
+ } )
66
+ .catch( () => {
67
+ this.setState( { products: [], loaded: true } );
68
+ } );
69
+ }
70
+
71
+ getInspectorControls() {
72
+ const { attributes, setAttributes } = this.props;
73
+ const { categories, catOperator, columns, rows } = attributes;
74
+
75
+ return (
76
+ <InspectorControls key="inspector">
77
+ <PanelBody
78
+ title={ __( 'Layout', 'woo-gutenberg-products-block' ) }
79
+ initialOpen
80
+ >
81
+ <RangeControl
82
+ label={ __( 'Columns', 'woo-gutenberg-products-block' ) }
83
+ value={ columns }
84
+ onChange={ ( value ) => setAttributes( { columns: value } ) }
85
+ min={ wc_product_block_data.min_columns }
86
+ max={ wc_product_block_data.max_columns }
87
+ />
88
+ <RangeControl
89
+ label={ __( 'Rows', 'woo-gutenberg-products-block' ) }
90
+ value={ rows }
91
+ onChange={ ( value ) => setAttributes( { rows: value } ) }
92
+ min={ wc_product_block_data.min_rows }
93
+ max={ wc_product_block_data.max_rows }
94
+ />
95
+ </PanelBody>
96
+ <PanelBody
97
+ title={ __(
98
+ 'Filter by Product Category',
99
+ 'woo-gutenberg-products-block'
100
+ ) }
101
+ initialOpen={ false }
102
+ >
103
+ <ProductCategoryControl
104
+ selected={ categories }
105
+ onChange={ ( value = [] ) => {
106
+ const ids = value.map( ( { id } ) => id );
107
+ setAttributes( { categories: ids } );
108
+ } }
109
+ operator={ catOperator }
110
+ onOperatorChange={ ( value = 'any' ) =>
111
+ setAttributes( { catOperator: value } )
112
+ }
113
+ />
114
+ </PanelBody>
115
+ </InspectorControls>
116
+ );
117
+ }
118
+
119
+ render() {
120
+ const { columns } = this.props.attributes;
121
+ const { loaded, products } = this.state;
122
+ const classes = [
123
+ 'wc-block-products-grid',
124
+ 'wc-block-best-selling-products',
125
+ ];
126
+ if ( columns ) {
127
+ classes.push( `cols-${ columns }` );
128
+ }
129
+ if ( products && ! products.length ) {
130
+ if ( ! loaded ) {
131
+ classes.push( 'is-loading' );
132
+ } else {
133
+ classes.push( 'is-not-found' );
134
+ }
135
+ }
136
+
137
+ return (
138
+ <Fragment>
139
+ { this.getInspectorControls() }
140
+ <div className={ classes.join( ' ' ) }>
141
+ { products.length ? (
142
+ products.map( ( product ) => (
143
+ <ProductPreview product={ product } key={ product.id } />
144
+ ) )
145
+ ) : (
146
+ <Placeholder
147
+ icon={ <Gridicon icon="stats-up-alt" /> }
148
+ label={ __(
149
+ 'Best Selling Products',
150
+ 'woo-gutenberg-products-block'
151
+ ) }
152
+ >
153
+ { ! loaded ? (
154
+ <Spinner />
155
+ ) : (
156
+ __( 'No products found.', 'woo-gutenberg-products-block' )
157
+ ) }
158
+ </Placeholder>
159
+ ) }
160
+ </div>
161
+ </Fragment>
162
+ );
163
+ }
164
+ }
165
+
166
+ ProductBestSellersBlock.propTypes = {
167
+ /**
168
+ * The attributes for this block
169
+ */
170
+ attributes: PropTypes.object.isRequired,
171
+ /**
172
+ * The register block name.
173
+ */
174
+ name: PropTypes.string.isRequired,
175
+ /**
176
+ * A callback to update attributes
177
+ */
178
+ setAttributes: PropTypes.func.isRequired,
179
+ };
180
+
181
+ export default ProductBestSellersBlock;
assets/js/blocks/product-best-sellers/index.js ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * External dependencies
3
+ */
4
+ import { __ } from '@wordpress/i18n';
5
+ import Gridicon from 'gridicons';
6
+ import { registerBlockType } from '@wordpress/blocks';
7
+ import { RawHTML } from '@wordpress/element';
8
+
9
+ /**
10
+ * Internal dependencies
11
+ */
12
+ import Block from './block';
13
+ import getShortcode from '../../utils/get-shortcode';
14
+ import sharedAttributes from '../../utils/shared-attributes';
15
+
16
+ registerBlockType( 'woocommerce/product-best-sellers', {
17
+ title: __( 'Best Selling Products', 'woo-gutenberg-products-block' ),
18
+ icon: <Gridicon icon="stats-up-alt" />,
19
+ category: 'woocommerce',
20
+ keywords: [ __( 'WooCommerce', 'woo-gutenberg-products-block' ) ],
21
+ description: __(
22
+ 'Display a grid of your all-time best selling products.',
23
+ 'woo-gutenberg-products-block'
24
+ ),
25
+ supports: {
26
+ align: [ 'wide', 'full' ],
27
+ },
28
+ attributes: {
29
+ ...sharedAttributes,
30
+ },
31
+
32
+ /**
33
+ * Renders and manages the block.
34
+ */
35
+ edit( props ) {
36
+ return <Block { ...props } />;
37
+ },
38
+
39
+ /**
40
+ * Save the block content in the post content. Block content is saved as a products shortcode.
41
+ *
42
+ * @return string
43
+ */
44
+ save( props ) {
45
+ const {
46
+ align,
47
+ } = props.attributes; /* eslint-disable-line react/prop-types */
48
+ return (
49
+ <RawHTML className={ align ? `align${ align }` : '' }>
50
+ { getShortcode( props, 'woocommerce/product-best-sellers' ) }
51
+ </RawHTML>
52
+ );
53
+ },
54
+ } );
assets/js/{product-category-block.js → blocks/product-category/block.js} RENAMED
@@ -1,51 +1,43 @@
1
  /**
2
  * External dependencies
3
  */
4
- import { __ } from '@wordpress/i18n';
5
  import { addQueryArgs } from '@wordpress/url';
6
  import apiFetch from '@wordpress/api-fetch';
7
- import { Component, Fragment, RawHTML } from '@wordpress/element';
8
- import {
9
- BlockAlignmentToolbar,
10
- BlockControls,
11
- InspectorControls,
12
- } from '@wordpress/editor';
13
  import {
14
  Button,
15
  PanelBody,
16
  Placeholder,
17
  RangeControl,
18
- SelectControl,
19
  Spinner,
20
  Toolbar,
21
  withSpokenMessages,
22
  } from '@wordpress/components';
 
 
23
  import PropTypes from 'prop-types';
24
- import { registerBlockType } from '@wordpress/blocks';
25
 
26
  /**
27
  * Internal dependencies
28
  */
29
- import '../css/product-category-block.scss';
30
- import getQuery from './utils/get-query';
31
- import getShortcode from './utils/get-shortcode';
32
- import ProductCategoryControl from './components/product-category-control';
33
- import ProductPreview from './components/product-preview';
34
- import sharedAttributes from './utils/shared-attributes';
35
-
36
- // Only enable center, wide, and full alignments
37
- const validAlignments = [ 'center', 'wide', 'full' ];
38
 
39
  /**
40
  * Component to handle edit mode of "Products by Category".
41
  */
42
- export default class ProductByCategoryBlock extends Component {
43
  constructor() {
44
  super( ...arguments );
45
  this.state = {
46
  products: [],
47
  loaded: false,
48
  };
 
 
49
  }
50
 
51
  componentDidMount() {
@@ -55,21 +47,31 @@ export default class ProductByCategoryBlock extends Component {
55
  }
56
 
57
  componentDidUpdate( prevProps ) {
58
- const hasChange = [ 'rows', 'columns', 'orderby', 'categories' ].reduce(
59
- ( acc, key ) => {
60
- return acc || prevProps.attributes[ key ] !== this.props.attributes[ key ];
61
- },
62
- false
63
- );
 
 
 
64
  if ( hasChange ) {
65
- this.getProducts();
66
  }
67
  }
68
 
69
  getProducts() {
70
- this.setState( { products: [], loaded: false } );
 
 
 
 
71
  apiFetch( {
72
- path: addQueryArgs( '/wc-pb/v3/products', getQuery( this.props.attributes ) ),
 
 
 
73
  } )
74
  .then( ( products ) => {
75
  this.setState( { products, loaded: true } );
@@ -81,7 +83,7 @@ export default class ProductByCategoryBlock extends Component {
81
 
82
  getInspectorControls() {
83
  const { attributes, setAttributes } = this.props;
84
- const { columns, orderby, rows } = attributes;
85
 
86
  return (
87
  <InspectorControls key="inspector">
@@ -95,6 +97,10 @@ export default class ProductByCategoryBlock extends Component {
95
  const ids = value.map( ( { id } ) => id );
96
  setAttributes( { categories: ids } );
97
  } }
 
 
 
 
98
  />
99
  </PanelBody>
100
  <PanelBody
@@ -120,55 +126,9 @@ export default class ProductByCategoryBlock extends Component {
120
  title={ __( 'Order By', 'woo-gutenberg-products-block' ) }
121
  initialOpen={ false }
122
  >
123
- <SelectControl
124
- label={ __( 'Order products by', 'woo-gutenberg-products-block' ) }
125
  value={ orderby }
126
- options={ [
127
- {
128
- label: __(
129
- 'Newness - newest first',
130
- 'woo-gutenberg-products-block'
131
- ),
132
- value: 'date',
133
- },
134
- {
135
- label: __(
136
- 'Price - low to high',
137
- 'woo-gutenberg-products-block'
138
- ),
139
- value: 'price_asc',
140
- },
141
- {
142
- label: __(
143
- 'Price - high to low',
144
- 'woo-gutenberg-products-block'
145
- ),
146
- value: 'price_desc',
147
- },
148
- {
149
- label: __(
150
- 'Rating - highest first',
151
- 'woo-gutenberg-products-block'
152
- ),
153
- value: 'rating',
154
- },
155
- {
156
- label: __( 'Sales - most first', 'woo-gutenberg-products-block' ),
157
- value: 'popularity',
158
- },
159
- {
160
- label: __(
161
- 'Title - alphabetical',
162
- 'woo-gutenberg-products-block'
163
- ),
164
- value: 'title',
165
- },
166
- {
167
- label: __( 'Menu Order', 'woo-gutenberg-products-block' ),
168
- value: 'menu_order',
169
- },
170
- ] }
171
- onChange={ ( value ) => setAttributes( { orderby: value } ) }
172
  />
173
  </PanelBody>
174
  </InspectorControls>
@@ -180,7 +140,10 @@ export default class ProductByCategoryBlock extends Component {
180
  const onDone = () => {
181
  setAttributes( { editMode: false } );
182
  debouncedSpeak(
183
- __( 'Showing product block preview.', 'woo-gutenberg-products-block' )
 
 
 
184
  );
185
  };
186
 
@@ -188,7 +151,7 @@ export default class ProductByCategoryBlock extends Component {
188
  <Placeholder
189
  icon="category"
190
  label={ __( 'Products by Category', 'woo-gutenberg-products-block' ) }
191
- className="wc-block-products-category"
192
  >
193
  { __(
194
  'Display a grid of products from your selected categories',
@@ -201,6 +164,10 @@ export default class ProductByCategoryBlock extends Component {
201
  const ids = value.map( ( { id } ) => id );
202
  setAttributes( { categories: ids } );
203
  } }
 
 
 
 
204
  />
205
  <Button isDefault onClick={ onDone }>
206
  { __( 'Done', 'woo-gutenberg-products-block' ) }
@@ -212,9 +179,9 @@ export default class ProductByCategoryBlock extends Component {
212
 
213
  render() {
214
  const { setAttributes } = this.props;
215
- const { columns, align, editMode } = this.props.attributes;
216
  const { loaded, products } = this.state;
217
- const classes = [ 'wc-block-products-category' ];
218
  if ( columns ) {
219
  classes.push( `cols-${ columns }` );
220
  }
@@ -226,14 +193,21 @@ export default class ProductByCategoryBlock extends Component {
226
  }
227
  }
228
 
 
 
 
 
 
 
 
 
 
 
 
 
229
  return (
230
  <Fragment>
231
  <BlockControls>
232
- <BlockAlignmentToolbar
233
- controls={ validAlignments }
234
- value={ align }
235
- onChange={ ( nextAlign ) => setAttributes( { align: nextAlign } ) }
236
- />
237
  <Toolbar
238
  controls={ [
239
  {
@@ -262,14 +236,7 @@ export default class ProductByCategoryBlock extends Component {
262
  'woo-gutenberg-products-block'
263
  ) }
264
  >
265
- { ! loaded ? (
266
- <Spinner />
267
- ) : (
268
- __(
269
- 'No products in this category.',
270
- 'woo-gutenberg-products-block'
271
- )
272
- ) }
273
  </Placeholder>
274
  ) }
275
  </div>
@@ -284,6 +251,10 @@ ProductByCategoryBlock.propTypes = {
284
  * The attributes for this block
285
  */
286
  attributes: PropTypes.object.isRequired,
 
 
 
 
287
  /**
288
  * A callback to update attributes
289
  */
@@ -292,61 +263,4 @@ ProductByCategoryBlock.propTypes = {
292
  debouncedSpeak: PropTypes.func.isRequired,
293
  };
294
 
295
- const WrappedProductByCategoryBlock = withSpokenMessages(
296
- ProductByCategoryBlock
297
- );
298
-
299
- /**
300
- * Register and run the "Products by Category" block.
301
- */
302
- registerBlockType( 'woocommerce/product-category', {
303
- title: __( 'Products by Category', 'woo-gutenberg-products-block' ),
304
- icon: 'category',
305
- category: 'widgets',
306
- keywords: [ __( 'WooCommerce', 'woo-gutenberg-products-block' ) ],
307
- description: __(
308
- 'Display a grid of products from your selected categories.',
309
- 'woo-gutenberg-products-block'
310
- ),
311
- attributes: {
312
- ...sharedAttributes,
313
- editMode: {
314
- type: 'boolean',
315
- default: true,
316
- },
317
- categories: {
318
- type: 'array',
319
- default: [],
320
- },
321
- },
322
-
323
- getEditWrapperProps( attributes ) {
324
- const { align } = attributes;
325
- if ( -1 !== validAlignments.indexOf( align ) ) {
326
- return { 'data-align': align };
327
- }
328
- },
329
-
330
- /**
331
- * Renders and manages the block.
332
- */
333
- edit( props ) {
334
- return <WrappedProductByCategoryBlock { ...props } />;
335
- },
336
-
337
- /**
338
- * Save the block content in the post content. Block content is saved as a products shortcode.
339
- *
340
- * @return string
341
- */
342
- save( props ) {
343
- const {
344
- align,
345
- } = props.attributes; /* eslint-disable-line react/prop-types */
346
- return (
347
- <RawHTML className={ align ? `align${ align }` : '' }>
348
- { getShortcode( props ) }
349
- </RawHTML>
350
- );
351
- },
352
- } );
1
  /**
2
  * External dependencies
3
  */
4
+ import { __, _n } from '@wordpress/i18n';
5
  import { addQueryArgs } from '@wordpress/url';
6
  import apiFetch from '@wordpress/api-fetch';
7
+ import { BlockControls, InspectorControls } from '@wordpress/editor';
 
 
 
 
 
8
  import {
9
  Button,
10
  PanelBody,
11
  Placeholder,
12
  RangeControl,
 
13
  Spinner,
14
  Toolbar,
15
  withSpokenMessages,
16
  } from '@wordpress/components';
17
+ import { Component, Fragment } from '@wordpress/element';
18
+ import { debounce } from 'lodash';
19
  import PropTypes from 'prop-types';
 
20
 
21
  /**
22
  * Internal dependencies
23
  */
24
+ import getQuery from '../../utils/get-query';
25
+ import ProductCategoryControl from '../../components/product-category-control';
26
+ import ProductOrderbyControl from '../../components/product-orderby-control';
27
+ import ProductPreview from '../../components/product-preview';
 
 
 
 
 
28
 
29
  /**
30
  * Component to handle edit mode of "Products by Category".
31
  */
32
+ class ProductByCategoryBlock extends Component {
33
  constructor() {
34
  super( ...arguments );
35
  this.state = {
36
  products: [],
37
  loaded: false,
38
  };
39
+
40
+ this.debouncedGetProducts = debounce( this.getProducts.bind( this ), 200 );
41
  }
42
 
43
  componentDidMount() {
47
  }
48
 
49
  componentDidUpdate( prevProps ) {
50
+ const hasChange = [
51
+ 'categories',
52
+ 'catOperator',
53
+ 'columns',
54
+ 'orderby',
55
+ 'rows',
56
+ ].reduce( ( acc, key ) => {
57
+ return acc || prevProps.attributes[ key ] !== this.props.attributes[ key ];
58
+ }, false );
59
  if ( hasChange ) {
60
+ this.debouncedGetProducts();
61
  }
62
  }
63
 
64
  getProducts() {
65
+ if ( ! this.props.attributes.categories.length ) {
66
+ // We've removed all selected categories, or no categories have been selected yet.
67
+ this.setState( { products: [], loaded: true } );
68
+ return;
69
+ }
70
  apiFetch( {
71
+ path: addQueryArgs(
72
+ '/wc-pb/v3/products',
73
+ getQuery( this.props.attributes, this.props.name )
74
+ ),
75
  } )
76
  .then( ( products ) => {
77
  this.setState( { products, loaded: true } );
83
 
84
  getInspectorControls() {
85
  const { attributes, setAttributes } = this.props;
86
+ const { columns, catOperator, orderby, rows } = attributes;
87
 
88
  return (
89
  <InspectorControls key="inspector">
97
  const ids = value.map( ( { id } ) => id );
98
  setAttributes( { categories: ids } );
99
  } }
100
+ operator={ catOperator }
101
+ onOperatorChange={ ( value = 'any' ) =>
102
+ setAttributes( { catOperator: value } )
103
+ }
104
  />
105
  </PanelBody>
106
  <PanelBody
126
  title={ __( 'Order By', 'woo-gutenberg-products-block' ) }
127
  initialOpen={ false }
128
  >
129
+ <ProductOrderbyControl
130
+ setAttributes={ setAttributes }
131
  value={ orderby }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
132
  />
133
  </PanelBody>
134
  </InspectorControls>
140
  const onDone = () => {
141
  setAttributes( { editMode: false } );
142
  debouncedSpeak(
143
+ __(
144
+ 'Showing Products by Category block preview.',
145
+ 'woo-gutenberg-products-block'
146
+ )
147
  );
148
  };
149
 
151
  <Placeholder
152
  icon="category"
153
  label={ __( 'Products by Category', 'woo-gutenberg-products-block' ) }
154
+ className="wc-block-products-grid wc-block-products-category"
155
  >
156
  { __(
157
  'Display a grid of products from your selected categories',
164
  const ids = value.map( ( { id } ) => id );
165
  setAttributes( { categories: ids } );
166
  } }
167
+ operator={ attributes.catOperator }
168
+ onOperatorChange={ ( value = 'any' ) =>
169
+ setAttributes( { catOperator: value } )
170
+ }
171
  />
172
  <Button isDefault onClick={ onDone }>
173
  { __( 'Done', 'woo-gutenberg-products-block' ) }
179
 
180
  render() {
181
  const { setAttributes } = this.props;
182
+ const { categories, columns, editMode } = this.props.attributes;
183
  const { loaded, products } = this.state;
184
+ const classes = [ 'wc-block-products-grid', 'wc-block-products-category' ];
185
  if ( columns ) {
186
  classes.push( `cols-${ columns }` );
187
  }
193
  }
194
  }
195
 
196
+ const nothingFound = ! categories.length ?
197
+ __(
198
+ 'Select at least one category to display its products.',
199
+ 'woo-gutenberg-products-block'
200
+ ) :
201
+ _n(
202
+ 'No products in this category.',
203
+ 'No products in these categories.',
204
+ categories.length,
205
+ 'woo-gutenberg-products-block'
206
+ );
207
+
208
  return (
209
  <Fragment>
210
  <BlockControls>
 
 
 
 
 
211
  <Toolbar
212
  controls={ [
213
  {
236
  'woo-gutenberg-products-block'
237
  ) }
238
  >
239
+ { ! loaded ? <Spinner /> : nothingFound }
 
 
 
 
 
 
 
240
  </Placeholder>
241
  ) }
242
  </div>
251
  * The attributes for this block
252
  */
253
  attributes: PropTypes.object.isRequired,
254
+ /**
255
+ * The register block name.
256
+ */
257
+ name: PropTypes.string.isRequired,
258
  /**
259
  * A callback to update attributes
260
  */
263
  debouncedSpeak: PropTypes.func.isRequired,
264
  };
265
 
266
+ export default withSpokenMessages( ProductByCategoryBlock );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/js/blocks/product-category/index.js ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * External dependencies
3
+ */
4
+ import { __ } from '@wordpress/i18n';
5
+ import { registerBlockType } from '@wordpress/blocks';
6
+ import { RawHTML } from '@wordpress/element';
7
+
8
+ /**
9
+ * Internal dependencies
10
+ */
11
+ import './style.scss';
12
+ import Block from './block';
13
+ import getShortcode from '../../utils/get-shortcode';
14
+ import sharedAttributes from '../../utils/shared-attributes';
15
+
16
+ /**
17
+ * Register and run the "Products by Category" block.
18
+ */
19
+ registerBlockType( 'woocommerce/product-category', {
20
+ title: __( 'Products by Category', 'woo-gutenberg-products-block' ),
21
+ icon: 'category',
22
+ category: 'woocommerce',
23
+ keywords: [ __( 'WooCommerce', 'woo-gutenberg-products-block' ) ],
24
+ description: __(
25
+ 'Display a grid of products from your selected categories.',
26
+ 'woo-gutenberg-products-block'
27
+ ),
28
+ supports: {
29
+ align: [ 'wide', 'full' ],
30
+ },
31
+ attributes: {
32
+ ...sharedAttributes,
33
+
34
+ /**
35
+ * Toggle for edit mode in the block preview.
36
+ */
37
+ editMode: {
38
+ type: 'boolean',
39
+ default: true,
40
+ },
41
+
42
+ /**
43
+ * How to order the products: 'date', 'popularity', 'price_asc', 'price_desc' 'rating', 'title'.
44
+ */
45
+ orderby: {
46
+ type: 'string',
47
+ default: 'date',
48
+ },
49
+ },
50
+
51
+ /**
52
+ * Renders and manages the block.
53
+ */
54
+ edit( props ) {
55
+ return <Block { ...props } />;
56
+ },
57
+
58
+ /**
59
+ * Save the block content in the post content. Block content is saved as a products shortcode.
60
+ *
61
+ * @return string
62
+ */
63
+ save( props ) {
64
+ const {
65
+ align,
66
+ } = props.attributes; /* eslint-disable-line react/prop-types */
67
+ return (
68
+ <RawHTML className={ align ? `align${ align }` : '' }>
69
+ { getShortcode( props, 'woocommerce/product-category' ) }
70
+ </RawHTML>
71
+ );
72
+ },
73
+ } );
assets/js/blocks/product-category/style.scss ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ .wc-block-products-category__selection {
2
+ width: 100%;
3
+ }
assets/js/blocks/product-new/block.js ADDED
@@ -0,0 +1,174 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * External dependencies
3
+ */
4
+ import { __ } from '@wordpress/i18n';
5
+ import { addQueryArgs } from '@wordpress/url';
6
+ import apiFetch from '@wordpress/api-fetch';
7
+ import { InspectorControls } from '@wordpress/editor';
8
+ import { Component, Fragment } from '@wordpress/element';
9
+ import { debounce } from 'lodash';
10
+ import {
11
+ PanelBody,
12
+ Placeholder,
13
+ RangeControl,
14
+ Spinner,
15
+ } from '@wordpress/components';
16
+ import PropTypes from 'prop-types';
17
+
18
+ /**
19
+ * Internal dependencies
20
+ */
21
+ import getQuery from '../../utils/get-query';
22
+ import { IconNewReleases } from '../../components/icons';
23
+ import ProductCategoryControl from '../../components/product-category-control';
24
+ import ProductPreview from '../../components/product-preview';
25
+
26
+ /**
27
+ * Component to handle edit mode of "Newest Products".
28
+ */
29
+ class ProductNewestBlock extends Component {
30
+ constructor() {
31
+ super( ...arguments );
32
+ this.state = {
33
+ products: [],
34
+ loaded: false,
35
+ };
36
+
37
+ this.debouncedGetProducts = debounce( this.getProducts.bind( this ), 200 );
38
+ }
39
+
40
+ componentDidMount() {
41
+ if ( this.props.attributes.categories ) {
42
+ this.getProducts();
43
+ }
44
+ }
45
+
46
+ componentDidUpdate( prevProps ) {
47
+ const hasChange = [ 'rows', 'columns', 'categories', 'catOperator' ].reduce( ( acc, key ) => {
48
+ return acc || prevProps.attributes[ key ] !== this.props.attributes[ key ];
49
+ }, false );
50
+ if ( hasChange ) {
51
+ this.debouncedGetProducts();
52
+ }
53
+ }
54
+
55
+ getProducts() {
56
+ apiFetch( {
57
+ path: addQueryArgs(
58
+ '/wc-pb/v3/products',
59
+ getQuery( this.props.attributes, this.props.name )
60
+ ),
61
+ } )
62
+ .then( ( products ) => {
63
+ this.setState( { products, loaded: true } );
64
+ } )
65
+ .catch( () => {
66
+ this.setState( { products: [], loaded: true } );
67
+ } );
68
+ }
69
+
70
+ getInspectorControls() {
71
+ const { attributes, setAttributes } = this.props;
72
+ const { categories, catOperator, columns, rows } = attributes;
73
+
74
+ return (
75
+ <InspectorControls key="inspector">
76
+ <PanelBody
77
+ title={ __( 'Layout', 'woo-gutenberg-products-block' ) }
78
+ initialOpen
79
+ >
80
+ <RangeControl
81
+ label={ __( 'Columns', 'woo-gutenberg-products-block' ) }
82
+ value={ columns }
83
+ onChange={ ( value ) => setAttributes( { columns: value } ) }
84
+ min={ wc_product_block_data.min_columns }
85
+ max={ wc_product_block_data.max_columns }
86
+ />
87
+ <RangeControl
88
+ label={ __( 'Rows', 'woo-gutenberg-products-block' ) }
89
+ value={ rows }
90
+ onChange={ ( value ) => setAttributes( { rows: value } ) }
91
+ min={ wc_product_block_data.min_rows }
92
+ max={ wc_product_block_data.max_rows }
93
+ />
94
+ </PanelBody>
95
+ <PanelBody
96
+ title={ __(
97
+ 'Filter by Product Category',
98
+ 'woo-gutenberg-products-block'
99
+ ) }
100
+ initialOpen={ false }
101
+ >
102
+ <ProductCategoryControl
103
+ selected={ categories }
104
+ onChange={ ( value = [] ) => {
105
+ const ids = value.map( ( { id } ) => id );
106
+ setAttributes( { categories: ids } );
107
+ } }
108
+ operator={ catOperator }
109
+ onOperatorChange={ ( value = 'any' ) =>
110
+ setAttributes( { catOperator: value } )
111
+ }
112
+ />
113
+ </PanelBody>
114
+ </InspectorControls>
115
+ );
116
+ }
117
+
118
+ render() {
119
+ const { columns } = this.props.attributes;
120
+ const { loaded, products } = this.state;
121
+ const classes = [ 'wc-block-products-grid', 'wc-block-newest-products' ];
122
+ if ( columns ) {
123
+ classes.push( `cols-${ columns }` );
124
+ }
125
+ if ( products && ! products.length ) {
126
+ if ( ! loaded ) {
127
+ classes.push( 'is-loading' );
128
+ } else {
129
+ classes.push( 'is-not-found' );
130
+ }
131
+ }
132
+
133
+ return (
134
+ <Fragment>
135
+ { this.getInspectorControls() }
136
+ <div className={ classes.join( ' ' ) }>
137
+ { products.length ? (
138
+ products.map( ( product ) => (
139
+ <ProductPreview product={ product } key={ product.id } />
140
+ ) )
141
+ ) : (
142
+ <Placeholder
143
+ icon={ <IconNewReleases /> }
144
+ label={ __( 'Newest Products', 'woo-gutenberg-products-block' ) }
145
+ >
146
+ { ! loaded ? (
147
+ <Spinner />
148
+ ) : (
149
+ __( 'No products found.', 'woo-gutenberg-products-block' )
150
+ ) }
151
+ </Placeholder>
152
+ ) }
153
+ </div>
154
+ </Fragment>
155
+ );
156
+ }
157
+ }
158
+
159
+ ProductNewestBlock.propTypes = {
160
+ /**
161
+ * The attributes for this block
162
+ */
163
+ attributes: PropTypes.object.isRequired,
164
+ /**
165
+ * The register block name.
166
+ */
167
+ name: PropTypes.string.isRequired,
168
+ /**
169
+ * A callback to update attributes
170
+ */
171
+ setAttributes: PropTypes.func.isRequired,
172
+ };
173
+
174
+ export default ProductNewestBlock;
assets/js/blocks/product-new/index.js ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * External dependencies
3
+ */
4
+ import { __ } from '@wordpress/i18n';
5
+ import { registerBlockType } from '@wordpress/blocks';
6
+ import { RawHTML } from '@wordpress/element';
7
+
8
+ /**
9
+ * Internal dependencies
10
+ */
11
+ import Block from './block';
12
+ import getShortcode from '../../utils/get-shortcode';
13
+ import { IconNewReleases } from '../../components/icons';
14
+ import sharedAttributes from '../../utils/shared-attributes';
15
+
16
+ registerBlockType( 'woocommerce/product-new', {
17
+ title: __( 'Newest Products', 'woo-gutenberg-products-block' ),
18
+ icon: <IconNewReleases />,
19
+ category: 'woocommerce',
20
+ keywords: [ __( 'WooCommerce', 'woo-gutenberg-products-block' ) ],
21
+ description: __(
22
+ 'Display a grid of your newest products.',
23
+ 'woo-gutenberg-products-block'
24
+ ),
25
+ supports: {
26
+ align: [ 'wide', 'full' ],
27
+ },
28
+ attributes: {
29
+ ...sharedAttributes,
30
+ },
31
+
32
+ /**
33
+ * Renders and manages the block.
34
+ */
35
+ edit( props ) {
36
+ return <Block { ...props } />;
37
+ },
38
+
39
+ /**
40
+ * Save the block content in the post content. Block content is saved as a products shortcode.
41
+ *
42
+ * @return string
43
+ */
44
+ save( props ) {
45
+ const {
46
+ align,
47
+ } = props.attributes; /* eslint-disable-line react/prop-types */
48
+ return (
49
+ <RawHTML className={ align ? `align${ align }` : '' }>
50
+ { getShortcode( props, 'woocommerce/product-new' ) }
51
+ </RawHTML>
52
+ );
53
+ },
54
+ } );
assets/js/blocks/product-on-sale/block.js ADDED
@@ -0,0 +1,188 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * External dependencies
3
+ */
4
+ import { __ } from '@wordpress/i18n';
5
+ import { addQueryArgs } from '@wordpress/url';
6
+ import apiFetch from '@wordpress/api-fetch';
7
+ import { InspectorControls } from '@wordpress/editor';
8
+ import { Component, Fragment } from '@wordpress/element';
9
+ import { debounce } from 'lodash';
10
+ import Gridicon from 'gridicons';
11
+ import {
12
+ PanelBody,
13
+ Placeholder,
14
+ RangeControl,
15
+ Spinner,
16
+ } from '@wordpress/components';
17
+ import PropTypes from 'prop-types';
18
+
19
+ /**
20
+ * Internal dependencies
21
+ */
22
+ import getQuery from '../../utils/get-query';
23
+ import ProductCategoryControl from '../../components/product-category-control';
24
+ import ProductOrderbyControl from '../../components/product-orderby-control';
25
+ import ProductPreview from '../../components/product-preview';
26
+
27
+ /**
28
+ * Component to handle edit mode of "On Sale Products".
29
+ */
30
+ class ProductOnSaleBlock extends Component {
31
+ constructor() {
32
+ super( ...arguments );
33
+ this.state = {
34
+ products: [],
35
+ loaded: false,
36
+ };
37
+
38
+ this.debouncedGetProducts = debounce( this.getProducts.bind( this ), 200 );
39
+ }
40
+
41
+ componentDidMount() {
42
+ this.getProducts();
43
+ }
44
+
45
+ componentDidUpdate( prevProps ) {
46
+ const hasChange = [
47
+ 'categories',
48
+ 'catOperator',
49
+ 'columns',
50
+ 'orderby',
51
+ 'rows',
52
+ ].reduce( ( acc, key ) => {
53
+ return acc || prevProps.attributes[ key ] !== this.props.attributes[ key ];
54
+ }, false );
55
+ if ( hasChange ) {
56
+ this.debouncedGetProducts();
57
+ }
58
+ }
59
+
60
+ getProducts() {
61
+ apiFetch( {
62
+ path: addQueryArgs(
63
+ '/wc-pb/v3/products',
64
+ getQuery( this.props.attributes, this.props.name )
65
+ ),
66
+ } )
67
+ .then( ( products ) => {
68
+ this.setState( { products, loaded: true } );
69
+ } )
70
+ .catch( () => {
71
+ this.setState( { products: [], loaded: true } );
72
+ } );
73
+ }
74
+
75
+ getInspectorControls() {
76
+ const { attributes, setAttributes } = this.props;
77
+ const { categories, catOperator, columns, rows, orderby } = attributes;
78
+
79
+ return (
80
+ <InspectorControls key="inspector">
81
+ <PanelBody
82
+ title={ __( 'Layout', 'woo-gutenberg-products-block' ) }
83
+ initialOpen
84
+ >
85
+ <RangeControl
86
+ label={ __( 'Columns', 'woo-gutenberg-products-block' ) }
87
+ value={ columns }
88
+ onChange={ ( value ) => setAttributes( { columns: value } ) }
89
+ min={ wc_product_block_data.min_columns }
90
+ max={ wc_product_block_data.max_columns }
91
+ />
92
+ <RangeControl
93
+ label={ __( 'Rows', 'woo-gutenberg-products-block' ) }
94
+ value={ rows }
95
+ onChange={ ( value ) => setAttributes( { rows: value } ) }
96
+ min={ wc_product_block_data.min_rows }
97
+ max={ wc_product_block_data.max_rows }
98
+ />
99
+ </PanelBody>
100
+ <PanelBody
101
+ title={ __( 'Order By', 'woo-gutenberg-products-block' ) }
102
+ initialOpen={ false }
103
+ >
104
+ <ProductOrderbyControl
105
+ setAttributes={ setAttributes }
106
+ value={ orderby }
107
+ />
108
+ </PanelBody>
109
+ <PanelBody
110
+ title={ __(
111
+ 'Filter by Product Category',
112
+ 'woo-gutenberg-products-block'
113
+ ) }
114
+ initialOpen={ false }
115
+ >
116
+ <ProductCategoryControl
117
+ selected={ categories }
118
+ onChange={ ( value = [] ) => {
119
+ const ids = value.map( ( { id } ) => id );
120
+ setAttributes( { categories: ids } );
121
+ } }
122
+ operator={ catOperator }
123
+ onOperatorChange={ ( value = 'any' ) =>
124
+ setAttributes( { catOperator: value } )
125
+ }
126
+ />
127
+ </PanelBody>
128
+ </InspectorControls>
129
+ );
130
+ }
131
+
132
+ render() {
133
+ const { columns } = this.props.attributes;
134
+ const { loaded, products } = this.state;
135
+ const classes = [ 'wc-block-products-grid', 'wc-block-on-sale-products' ];
136
+ if ( columns ) {
137
+ classes.push( `cols-${ columns }` );
138
+ }
139
+ if ( products && ! products.length ) {
140
+ if ( ! loaded ) {
141
+ classes.push( 'is-loading' );
142
+ } else {
143
+ classes.push( 'is-not-found' );
144
+ }
145
+ }
146
+
147
+ return (
148
+ <Fragment>
149
+ { this.getInspectorControls() }
150
+ <div className={ classes.join( ' ' ) }>
151
+ { products.length ? (
152
+ products.map( ( product ) => (
153
+ <ProductPreview product={ product } key={ product.id } />
154
+ ) )
155
+ ) : (
156
+ <Placeholder
157
+ icon={ <Gridicon icon="tag" /> }
158
+ label={ __( 'On Sale Products', 'woo-gutenberg-products-block' ) }
159
+ >
160
+ { ! loaded ? (
161
+ <Spinner />
162
+ ) : (
163
+ __( 'No products found.', 'woo-gutenberg-products-block' )
164
+ ) }
165
+ </Placeholder>
166
+ ) }
167
+ </div>
168
+ </Fragment>
169
+ );
170
+ }
171
+ }
172
+
173
+ ProductOnSaleBlock.propTypes = {
174
+ /**
175
+ * The attributes for this block
176
+ */
177
+ attributes: PropTypes.object.isRequired,
178
+ /**
179
+ * The register block name.
180
+ */
181
+ name: PropTypes.string.isRequired,
182
+ /**
183
+ * A callback to update attributes
184
+ */
185
+ setAttributes: PropTypes.func.isRequired,
186
+ };
187
+
188
+ export default ProductOnSaleBlock;
assets/js/blocks/product-on-sale/index.js ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * External dependencies
3
+ */
4
+ import { __ } from '@wordpress/i18n';
5
+ import Gridicon from 'gridicons';
6
+ import { registerBlockType } from '@wordpress/blocks';
7
+ import { RawHTML } from '@wordpress/element';
8
+
9
+ /**
10
+ * Internal dependencies
11
+ */
12
+ import Block from './block';
13
+ import getShortcode from '../../utils/get-shortcode';
14
+ import sharedAttributes from '../../utils/shared-attributes';
15
+
16
+ registerBlockType( 'woocommerce/product-on-sale', {
17
+ title: __( 'On Sale Products', 'woo-gutenberg-products-block' ),
18
+ icon: <Gridicon icon="tag" />,
19
+ category: 'woocommerce',
20
+ keywords: [ __( 'WooCommerce', 'woo-gutenberg-products-block' ) ],
21
+ description: __(
22
+ 'Display a grid of on sale products.',
23
+ 'woo-gutenberg-products-block'
24
+ ),
25
+ supports: {
26
+ align: [ 'wide', 'full' ],
27
+ },
28
+ attributes: {
29
+ ...sharedAttributes,
30
+
31
+ /**
32
+ * How to order the products: 'date', 'popularity', 'price_asc', 'price_desc' 'rating', 'title'.
33
+ */
34
+ orderby: {
35
+ type: 'string',
36
+ default: 'date',
37
+ },
38
+ },
39
+
40
+ /**
41
+ * Renders and manages the block.
42
+ */
43
+ edit( props ) {
44
+ return <Block { ...props } />;
45
+ },
46
+
47
+ /**
48
+ * Save the block content in the post content. Block content is saved as a products shortcode.
49
+ *
50
+ * @return string
51
+ */
52
+ save( props ) {
53
+ const {
54
+ align,
55
+ } = props.attributes; /* eslint-disable-line react/prop-types */
56
+ return (
57
+ <RawHTML className={ align ? `align${ align }` : '' }>
58
+ { getShortcode( props, 'woocommerce/product-on-sale' ) }
59
+ </RawHTML>
60
+ );
61
+ },
62
+ } );
assets/js/blocks/product-top-rated/block.js ADDED
@@ -0,0 +1,174 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * External dependencies
3
+ */
4
+ import { __ } from '@wordpress/i18n';
5
+ import { addQueryArgs } from '@wordpress/url';
6
+ import apiFetch from '@wordpress/api-fetch';
7
+ import { InspectorControls } from '@wordpress/editor';
8
+ import { Component, Fragment } from '@wordpress/element';
9
+ import { debounce } from 'lodash';
10
+ import Gridicon from 'gridicons';
11
+ import {
12
+ PanelBody,
13
+ Placeholder,
14
+ RangeControl,
15
+ Spinner,
16
+ } from '@wordpress/components';
17
+ import PropTypes from 'prop-types';
18
+
19
+ /**
20
+ * Internal dependencies
21
+ */
22
+ import getQuery from '../../utils/get-query';
23
+ import ProductCategoryControl from '../../components/product-category-control';
24
+ import ProductPreview from '../../components/product-preview';
25
+
26
+ /**
27
+ * Component to handle edit mode of "Top Rated Products".
28
+ */
29
+ class ProductTopRatedBlock extends Component {
30
+ constructor() {
31
+ super( ...arguments );
32
+ this.state = {
33
+ products: [],
34
+ loaded: false,
35
+ };
36
+
37
+ this.debouncedGetProducts = debounce( this.getProducts.bind( this ), 200 );
38
+ }
39
+
40
+ componentDidMount() {
41
+ if ( this.props.attributes.categories ) {
42
+ this.getProducts();
43
+ }
44
+ }
45
+
46
+ componentDidUpdate( prevProps ) {
47
+ const hasChange = [ 'rows', 'columns', 'categories', 'catOperator' ].reduce( ( acc, key ) => {
48
+ return acc || prevProps.attributes[ key ] !== this.props.attributes[ key ];
49
+ }, false );
50
+ if ( hasChange ) {
51
+ this.debouncedGetProducts();
52
+ }
53
+ }
54
+
55
+ getProducts() {
56
+ apiFetch( {
57
+ path: addQueryArgs(
58
+ '/wc-pb/v3/products',
59
+ getQuery( this.props.attributes, this.props.name )
60
+ ),
61
+ } )
62
+ .then( ( products ) => {
63
+ this.setState( { products, loaded: true } );
64
+ } )
65
+ .catch( () => {
66
+ this.setState( { products: [], loaded: true } );
67
+ } );
68
+ }
69
+
70
+ getInspectorControls() {
71
+ const { attributes, setAttributes } = this.props;
72
+ const { categories, catOperator, columns, rows } = attributes;
73
+
74
+ return (
75
+ <InspectorControls key="inspector">
76
+ <PanelBody
77
+ title={ __( 'Layout', 'woo-gutenberg-products-block' ) }
78
+ initialOpen
79
+ >
80
+ <RangeControl
81
+ label={ __( 'Columns', 'woo-gutenberg-products-block' ) }
82
+ value={ columns }
83
+ onChange={ ( value ) => setAttributes( { columns: value } ) }
84
+ min={ wc_product_block_data.min_columns }
85
+ max={ wc_product_block_data.max_columns }
86
+ />
87
+ <RangeControl
88
+ label={ __( 'Rows', 'woo-gutenberg-products-block' ) }
89
+ value={ rows }
90
+ onChange={ ( value ) => setAttributes( { rows: value } ) }
91
+ min={ wc_product_block_data.min_rows }
92
+ max={ wc_product_block_data.max_rows }
93
+ />
94
+ </PanelBody>
95
+ <PanelBody
96
+ title={ __(
97
+ 'Filter by Product Category',
98
+ 'woo-gutenberg-products-block'
99
+ ) }
100
+ initialOpen={ false }
101
+ >
102
+ <ProductCategoryControl
103
+ selected={ categories }
104
+ onChange={ ( value = [] ) => {
105
+ const ids = value.map( ( { id } ) => id );
106
+ setAttributes( { categories: ids } );
107
+ } }
108
+ operator={ catOperator }
109
+ onOperatorChange={ ( value = 'any' ) =>
110
+ setAttributes( { catOperator: value } )
111
+ }
112
+ />
113
+ </PanelBody>
114
+ </InspectorControls>
115
+ );
116
+ }
117
+
118
+ render() {
119
+ const { columns } = this.props.attributes;
120
+ const { loaded, products } = this.state;
121
+ const classes = [ 'wc-block-products-grid', 'wc-block-top-rated-products' ];
122
+ if ( columns ) {
123
+ classes.push( `cols-${ columns }` );
124
+ }
125
+ if ( products && ! products.length ) {
126
+ if ( ! loaded ) {
127
+ classes.push( 'is-loading' );
128
+ } else {
129
+ classes.push( 'is-not-found' );
130
+ }
131
+ }
132
+
133
+ return (
134
+ <Fragment>
135
+ { this.getInspectorControls() }
136
+ <div className={ classes.join( ' ' ) }>
137
+ { products.length ? (
138
+ products.map( ( product ) => (
139
+ <ProductPreview product={ product } key={ product.id } />
140
+ ) )
141
+ ) : (
142
+ <Placeholder
143
+ icon={ <Gridicon icon="trophy" /> }
144
+ label={ __( 'Top Rated Products', 'woo-gutenberg-products-block' ) }
145
+ >
146
+ { ! loaded ? (
147
+ <Spinner />
148
+ ) : (
149
+ __( 'No products found.', 'woo-gutenberg-products-block' )
150
+ ) }
151
+ </Placeholder>
152
+ ) }
153
+ </div>
154
+ </Fragment>
155
+ );
156
+ }
157
+ }
158
+
159
+ ProductTopRatedBlock.propTypes = {
160
+ /**
161
+ * The attributes for this block
162
+ */
163
+ attributes: PropTypes.object.isRequired,
164
+ /**
165
+ * The register block name.
166
+ */
167
+ name: PropTypes.string.isRequired,
168
+ /**
169
+ * A callback to update attributes
170
+ */
171
+ setAttributes: PropTypes.func.isRequired,
172
+ };
173
+
174
+ export default ProductTopRatedBlock;
assets/js/blocks/product-top-rated/index.js ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * External dependencies
3
+ */
4
+ import { __ } from '@wordpress/i18n';
5
+ import Gridicon from 'gridicons';
6
+ import { registerBlockType } from '@wordpress/blocks';
7
+ import { RawHTML } from '@wordpress/element';
8
+
9
+ /**
10
+ * Internal dependencies
11
+ */
12
+ import Block from './block';
13
+ import getShortcode from '../../utils/get-shortcode';
14
+ import sharedAttributes from '../../utils/shared-attributes';
15
+
16
+ registerBlockType( 'woocommerce/product-top-rated', {
17
+ title: __( 'Top Rated Products', 'woo-gutenberg-products-block' ),
18
+ icon: <Gridicon icon="trophy" />,
19
+ category: 'woocommerce',
20
+ keywords: [ __( 'WooCommerce', 'woo-gutenberg-products-block' ) ],
21
+ description: __(
22
+ 'Display a grid of your top rated products.',
23
+ 'woo-gutenberg-products-block'
24
+ ),
25
+ supports: {
26
+ align: [ 'wide', 'full' ],
27
+ },
28
+ attributes: {
29
+ ...sharedAttributes,
30
+ },
31
+
32
+ /**
33
+ * Renders and manages the block.
34
+ */
35
+ edit( props ) {
36
+ return <Block { ...props } />;
37
+ },
38
+
39
+ /**
40
+ * Save the block content in the post content. Block content is saved as a products shortcode.
41
+ *
42
+ * @return string
43
+ */
44
+ save( props ) {
45
+ const {
46
+ align,
47
+ } = props.attributes; /* eslint-disable-line react/prop-types */
48
+ return (
49
+ <RawHTML className={ align ? `align${ align }` : '' }>
50
+ { getShortcode( props, 'woocommerce/product-top-rated' ) }
51
+ </RawHTML>
52
+ );
53
+ },
54
+ } );
assets/js/components/icons/checkbox-checked.js ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * External dependencies
3
+ */
4
+ import { Icon } from '@wordpress/components';
5
+
6
+ export default () => (
7
+ <Icon
8
+ icon={
9
+ <svg
10
+ xmlns="http://www.w3.org/2000/svg"
11
+ width="24"
12
+ height="24"
13
+ viewBox="0 0 24 24"
14
+ >
15
+ <path
16
+ fill="#1E8CBE"
17
+ d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"
18
+ />
19
+ </svg>
20
+ }
21
+ />
22
+ );
assets/js/components/icons/checkbox-unchecked.js ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * External dependencies
3
+ */
4
+ import { Icon } from '@wordpress/components';
5
+
6
+ export default () => (
7
+ <Icon
8
+ icon={
9
+ <svg
10
+ xmlns="http://www.w3.org/2000/svg"
11
+ width="24"
12
+ height="24"
13
+ viewBox="0 0 24 24"
14
+ >
15
+ <path
16
+ fill="#6C7781"
17
+ d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"
18
+ />
19
+ </svg>
20
+ }
21
+ />
22
+ );
assets/js/components/icons/index.js ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ // Export each icon as a named component.
2
+ export { default as IconCheckChecked } from './checkbox-checked';
3
+ export { default as IconCheckUnchecked } from './checkbox-unchecked';
4
+ export { default as IconNewReleases } from './new-releases';
5
+ export { default as IconRadioSelected } from './radio-selected';
6
+ export { default as IconRadioUnselected } from './radio-unselected';
7
+ export { default as IconWidgets } from './widgets';
assets/js/components/icons/new-releases.js ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * External dependencies
3
+ */
4
+ import { Icon } from '@wordpress/components';
5
+
6
+ export default () => (
7
+ <Icon
8
+ icon={
9
+ <svg
10
+ xmlns="http://www.w3.org/2000/svg"
11
+ width="24"
12
+ height="24"
13
+ viewBox="0 0 24 24"
14
+ >
15
+ <path d="M0 0h24v24H0z" fill="none" />
16
+ <path d="M23 12l-2.44-2.78.34-3.68-3.61-.82-1.89-3.18L12 3 8.6 1.54 6.71 4.72l-3.61.81.34 3.68L1 12l2.44 2.78-.34 3.69 3.61.82 1.89 3.18L12 21l3.4 1.46 1.89-3.18 3.61-.82-.34-3.68L23 12zm-10 5h-2v-2h2v2zm0-4h-2V7h2v6z" />
17
+ </svg>
18
+ }
19
+ />
20
+ );
assets/js/components/icons/radio-selected.js ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * External dependencies
3
+ */
4
+ import { Icon } from '@wordpress/components';
5
+
6
+ export default () => (
7
+ <Icon
8
+ icon={
9
+ <svg
10
+ xmlns="http://www.w3.org/2000/svg"
11
+ width="24"
12
+ height="24"
13
+ viewBox="0 0 24 24"
14
+ >
15
+ <path fill="#1E8CBE" d="M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z" />
16
+ </svg>
17
+ }
18
+ />
19
+ );
assets/js/components/icons/radio-unselected.js ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * External dependencies
3
+ */
4
+ import { Icon } from '@wordpress/components';
5
+
6
+ export default () => (
7
+ <Icon
8
+ icon={
9
+ <svg
10
+ xmlns="http://www.w3.org/2000/svg"
11
+ width="24"
12
+ height="24"
13
+ viewBox="0 0 24 24"
14
+ >
15
+ <path
16
+ fill="#6C7781"
17
+ d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"
18
+ />
19
+ </svg>
20
+ }
21
+ />
22
+ );
assets/js/components/icons/widgets.js ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * External dependencies
3
+ */
4
+ import { Icon } from '@wordpress/components';
5
+
6
+ export default () => (
7
+ <Icon
8
+ icon={
9
+ <svg
10
+ xmlns="http://www.w3.org/2000/svg"
11
+ width="24"
12
+ height="24"
13
+ viewBox="0 0 24 24"
14
+ >
15
+ <path d="M13 13v8h8v-8h-8zM3 21h8v-8H3v8zM3 3v8h8V3H3zm13.66-1.31L11 7.34 16.66 13l5.66-5.66-5.66-5.65z" />
16
+ <path d="M0 0h24v24H0z" fill="none" />
17
+ </svg>
18
+ }
19
+ />
20
+ );
assets/js/components/product-attribute-control/index.js ADDED
@@ -0,0 +1,147 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * External dependencies
3
+ */
4
+ import { __, _n, sprintf } from '@wordpress/i18n';
5
+ import { addQueryArgs } from '@wordpress/url';
6
+ import apiFetch from '@wordpress/api-fetch';
7
+ import { Component } from '@wordpress/element';
8
+ import { find } from 'lodash';
9
+ import PropTypes from 'prop-types';
10
+
11
+ /**
12
+ * Internal dependencies
13
+ */
14
+ import './style.scss';
15
+ import SearchListControl from '../search-list-control';
16
+ import SearchListItem from '../search-list-control/item';
17
+
18
+ class ProductAttributeControl extends Component {
19
+ constructor() {
20
+ super( ...arguments );
21
+ this.state = {
22
+ list: [],
23
+ loading: true,
24
+ };
25
+ }
26
+
27
+ componentDidMount() {
28
+ const getTermsInAttribute = ( { id } ) => {
29
+ return apiFetch( {
30
+ path: addQueryArgs( `/wc-pb/v3/products/attributes/${ id }/terms`, {
31
+ per_page: -1,
32
+ } ),
33
+ } ).then( ( terms ) => terms.map( ( t ) => ( { ...t, parent: id } ) ) );
34
+ };
35
+
36
+ apiFetch( {
37
+ path: addQueryArgs( '/wc-pb/v3/products/attributes', { per_page: -1 } ),
38
+ } )
39
+ .then( ( attributes ) => {
40
+ // Fetch the terms list for each attribute group, then flatten them into one list.
41
+ Promise.all( attributes.map( getTermsInAttribute ) ).then( ( results ) => {
42
+ const list = attributes.map( ( a ) => ( { ...a, parent: 0 } ) );
43
+ results.forEach( ( terms ) => {
44
+ list.push( ...terms );
45
+ } );
46
+ this.setState( { list, loading: false } );
47
+ } );
48
+ } )
49
+ .catch( () => {
50
+ this.setState( { list: [], loading: false } );
51
+ } );
52
+ }
53
+
54
+ renderItem( args ) {
55
+ const { item, search, depth = 0 } = args;
56
+ const classes = [
57
+ 'woocommerce-product-attributes__item',
58
+ 'woocommerce-search-list__item',
59
+ ];
60
+ if ( search.length ) {
61
+ classes.push( 'is-searching' );
62
+ }
63
+ if ( depth === 0 && item.parent !== 0 ) {
64
+ classes.push( 'is-skip-level' );
65
+ }
66
+
67
+ if ( ! item.breadcrumbs.length ) {
68
+ classes.push( 'is-not-active' );
69
+ return (
70
+ <div className={ classes.join( ' ' ) }>
71
+ <span className="woocommerce-search-list__item-label">
72
+ <span className="woocommerce-search-list__item-name">
73
+ { item.name }
74
+ </span>
75
+ </span>
76
+ </div>
77
+ );
78
+ }
79
+
80
+ return (
81
+ <SearchListItem
82
+ className={ classes.join( ' ' ) }
83
+ { ...args }
84
+ showCount
85
+ aria-label={ `${ item.breadcrumbs[ 0 ] }: ${ item.name }` }
86
+ />
87
+ );
88
+ }
89
+
90
+ render() {
91
+ const { list, loading } = this.state;
92
+ const { selected, onChange } = this.props;
93
+
94
+ const messages = {
95
+ clear: __( 'Clear all product attributes', 'woo-gutenberg-products-block' ),
96
+ list: __( 'Product Attributes', 'woo-gutenberg-products-block' ),
97
+ noItems: __(
98
+ "Your store doesn't have any product attributes.",
99
+ 'woo-gutenberg-products-block'
100
+ ),
101
+ search: __(
102
+ 'Search for product attributes',
103
+ 'woo-gutenberg-products-block'
104
+ ),
105
+ selected: ( n ) =>
106
+ sprintf(
107
+ _n(
108
+ '%d attribute selected',
109
+ '%d attributes selected',
110
+ n,
111
+ 'woo-gutenberg-products-block'
112
+ ),
113
+ n
114
+ ),
115
+ updated: __(
116
+ 'Product attribute search results updated.',
117
+ 'woo-gutenberg-products-block'
118
+ ),
119
+ };
120
+
121
+ return (
122
+ <SearchListControl
123
+ className="woocommerce-product-attributes"
124
+ list={ list }
125
+ isLoading={ loading }
126
+ selected={ selected.map( ( { id } ) => find( list, { id } ) ).filter( Boolean ) }
127
+ onChange={ onChange }
128
+ renderItem={ this.renderItem }
129
+ messages={ messages }
130
+ isHierarchical
131
+ />
132
+ );
133
+ }
134
+ }
135
+
136
+ ProductAttributeControl.propTypes = {
137
+ /**
138
+ * Callback to update the selected product attributes.
139
+ */
140
+ onChange: PropTypes.func.isRequired,
141
+ /**
142
+ * The list of currently selected attribute slug/ID pairs.
143
+ */
144
+ selected: PropTypes.array.isRequired,
145
+ };
146
+
147
+ export default ProductAttributeControl;
assets/js/components/product-attribute-control/style.scss ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .woocommerce-search-list__item.woocommerce-product-attributes__item {
2
+ &.is-searching,
3
+ &.is-skip-level {
4
+ .woocommerce-search-list__item-prefix:after {
5
+ content: ":";
6
+ }
7
+ }
8
+
9
+ &.is-not-active {
10
+ @include hover-state {
11
+ background: transparent;
12
+ }
13
+ }
14
+ }
assets/js/components/product-category-control/index.js CHANGED
@@ -4,17 +4,17 @@
4
  import { __, _n, sprintf } from '@wordpress/i18n';
5
  import { addQueryArgs } from '@wordpress/url';
6
  import apiFetch from '@wordpress/api-fetch';
7
- import { Component } from '@wordpress/element';
8
- import { find, first, last } from 'lodash';
9
- import { MenuItem } from '@wordpress/components';
10
  import PropTypes from 'prop-types';
 
11
 
12
  /**
13
  * Internal dependencies
14
  */
15
  import './style.scss';
16
- import { CheckedIcon, UncheckedIcon } from '../search-list-control/icons';
17
  import SearchListControl from '../search-list-control';
 
18
 
19
  class ProductCategoryControl extends Component {
20
  constructor() {
@@ -38,22 +38,10 @@ class ProductCategoryControl extends Component {
38
  } );
39
  }
40
 
41
- getBreadcrumbsForDisplay( breadcrumbs ) {
42
- if ( breadcrumbs.length === 1 ) {
43
- return first( breadcrumbs );
44
- }
45
- if ( breadcrumbs.length === 2 ) {
46
- return first( breadcrumbs ) + ' › ' + last( breadcrumbs );
47
- }
48
-
49
- return first( breadcrumbs ) + ' … ' + last( breadcrumbs );
50
- }
51
-
52
- renderItem( { getHighlightedName, isSelected, item, onSelect, search, depth = 0 } ) {
53
  const classes = [
54
- 'woocommerce-search-list__item',
55
  'woocommerce-product-categories__item',
56
- `depth-${ depth }`,
57
  ];
58
  if ( search.length ) {
59
  classes.push( 'is-searching' );
@@ -67,12 +55,10 @@ class ProductCategoryControl extends Component {
67
  `${ item.breadcrumbs.join( ', ' ) }, ${ item.name }`;
68
 
69
  return (
70
- <MenuItem
71
- key={ item.id }
72
- role="menuitemcheckbox"
73
  className={ classes.join( ' ' ) }
74
- onClick={ onSelect( item ) }
75
- isSelected={ isSelected }
76
  aria-label={ sprintf(
77
  _n(
78
  '%s, has %d product',
@@ -83,39 +69,25 @@ class ProductCategoryControl extends Component {
83
  accessibleName,
84
  item.count
85
  ) }
86
- >
87
- <span className="woocommerce-search-list__item-state">
88
- { isSelected ? <CheckedIcon /> : <UncheckedIcon /> }
89
- </span>
90
- <span className="woocommerce-product-categories__item-label">
91
- { !! item.breadcrumbs.length && (
92
- <span className="woocommerce-product-categories__item-prefix">
93
- { this.getBreadcrumbsForDisplay( item.breadcrumbs ) }
94
- </span>
95
- ) }
96
- <span
97
- className="woocommerce-product-categories__item-name"
98
- dangerouslySetInnerHTML={ {
99
- __html: getHighlightedName( item.name, search ),
100
- } }
101
- />
102
- </span>
103
- <span className="woocommerce-product-categories__item-count">
104
- { item.count }
105
- </span>
106
- </MenuItem>
107
  );
108
  }
109
 
110
  render() {
111
  const { list, loading } = this.state;
112
- const { selected, onChange } = this.props;
113
 
114
  const messages = {
115
  clear: __( 'Clear all product categories', 'woo-gutenberg-products-block' ),
116
  list: __( 'Product Categories', 'woo-gutenberg-products-block' ),
117
- noItems: __( 'Your store doesn\'t have any product categories.', 'woo-gutenberg-products-block' ),
118
- search: __( 'Search for product categories', 'woo-gutenberg-products-block' ),
 
 
 
 
 
 
119
  selected: ( n ) =>
120
  sprintf(
121
  _n(
@@ -126,20 +98,46 @@ class ProductCategoryControl extends Component {
126
  ),
127
  n
128
  ),
129
- updated: __( 'Category search results updated.', 'woo-gutenberg-products-block' ),
 
 
 
130
  };
131
 
132
  return (
133
- <SearchListControl
134
- className="woocommerce-product-categories"
135
- list={ list }
136
- isLoading={ loading }
137
- selected={ selected.map( ( id ) => find( list, { id } ) ).filter( Boolean ) }
138
- onChange={ onChange }
139
- renderItem={ this.renderItem }
140
- messages={ messages }
141
- isHierarchical
142
- />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
143
  );
144
  }
145
  }
@@ -149,6 +147,14 @@ ProductCategoryControl.propTypes = {
149
  * Callback to update the selected product categories.
150
  */
151
  onChange: PropTypes.func.isRequired,
 
 
 
 
 
 
 
 
152
  /**
153
  * The list of currently selected category IDs.
154
  */
4
  import { __, _n, sprintf } from '@wordpress/i18n';
5
  import { addQueryArgs } from '@wordpress/url';
6
  import apiFetch from '@wordpress/api-fetch';
7
+ import { Component, Fragment } from '@wordpress/element';
8
+ import { find } from 'lodash';
 
9
  import PropTypes from 'prop-types';
10
+ import { SelectControl } from '@wordpress/components';
11
 
12
  /**
13
  * Internal dependencies
14
  */
15
  import './style.scss';
 
16
  import SearchListControl from '../search-list-control';
17
+ import SearchListItem from '../search-list-control/item';
18
 
19
  class ProductCategoryControl extends Component {
20
  constructor() {
38
  } );
39
  }
40
 
41
+ renderItem( args ) {
42
+ const { item, search, depth = 0 } = args;
 
 
 
 
 
 
 
 
 
 
43
  const classes = [
 
44
  'woocommerce-product-categories__item',
 
45
  ];
46
  if ( search.length ) {
47
  classes.push( 'is-searching' );
55
  `${ item.breadcrumbs.join( ', ' ) }, ${ item.name }`;
56
 
57
  return (
58
+ <SearchListItem
 
 
59
  className={ classes.join( ' ' ) }
60
+ { ...args }
61
+ showCount
62
  aria-label={ sprintf(
63
  _n(
64
  '%s, has %d product',
69
  accessibleName,
70
  item.count
71
  ) }
72
+ />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
73
  );
74
  }
75
 
76
  render() {
77
  const { list, loading } = this.state;
78
+ const { onChange, onOperatorChange, operator = 'any', selected } = this.props;
79
 
80
  const messages = {
81
  clear: __( 'Clear all product categories', 'woo-gutenberg-products-block' ),
82
  list: __( 'Product Categories', 'woo-gutenberg-products-block' ),
83
+ noItems: __(
84
+ "Your store doesn't have any product categories.",
85
+ 'woo-gutenberg-products-block'
86
+ ),
87
+ search: __(
88
+ 'Search for product categories',
89
+ 'woo-gutenberg-products-block'
90
+ ),
91
  selected: ( n ) =>
92
  sprintf(
93
  _n(
98
  ),
99
  n
100
  ),
101
+ updated: __(
102
+ 'Category search results updated.',
103
+ 'woo-gutenberg-products-block'
104
+ ),
105
  };
106
 
107
  return (
108
+ <Fragment>
109
+ <SearchListControl
110
+ className="woocommerce-product-categories"
111
+ list={ list }
112
+ isLoading={ loading }
113
+ selected={ selected.map( ( id ) => find( list, { id } ) ).filter( Boolean ) }
114
+ onChange={ onChange }
115
+ renderItem={ this.renderItem }
116
+ messages={ messages }
117
+ isHierarchical
118
+ />
119
+ { ( !! onOperatorChange ) && (
120
+ <div className={ selected.length < 2 ? 'screen-reader-text' : '' }>
121
+ <SelectControl
122
+ className="woocommerce-product-categories__operator"
123
+ label={ __( 'Display products matching', 'woo-gutenberg-products-block' ) }
124
+ help={ __( 'Pick at least two categories to use this setting.', 'woo-gutenberg-products-block' ) }
125
+ value={ operator }
126
+ onChange={ onOperatorChange }
127
+ options={ [
128
+ {
129
+ label: __( 'Any selected categories', 'woo-gutenberg-products-block' ),
130
+ value: 'any',
131
+ },
132
+ {
133
+ label: __( 'All selected categories', 'woo-gutenberg-products-block' ),
134
+ value: 'all',
135
+ },
136
+ ] }
137
+ />
138
+ </div>
139
+ ) }
140
+ </Fragment>
141
  );
142
  }
143
  }
147
  * Callback to update the selected product categories.
148
  */
149
  onChange: PropTypes.func.isRequired,
150
+ /**
151
+ * Callback to update the category operator. If not passed in, setting is not used.
152
+ */
153
+ onOperatorChange: PropTypes.func,
154
+ /**
155
+ * Setting for whether products should match all or any selected categories.
156
+ */
157
+ operator: PropTypes.oneOf( [ 'all', 'any' ] ),
158
  /**
159
  * The list of currently selected category IDs.
160
  */
assets/js/components/product-category-control/style.scss CHANGED
@@ -1,75 +1,16 @@
1
- .woocommerce-product-categories {
2
- .woocommerce-product-categories__item {
3
- display: flex;
4
- align-items: center;
5
  }
6
  }
7
 
8
- .woocommerce-product-categories__item-label {
9
- display: flex;
10
- flex: 1;
11
 
12
- // Anything deeper than 5 levels will use this fallback depth
13
- [class*="depth-"] & {
14
- padding-left: $gap-small * 5;
15
- }
16
-
17
- .depth-0 & {
18
- padding-left: 0;
19
- }
20
-
21
- .depth-1 & {
22
- padding-left: $gap-small;
23
- }
24
-
25
- .depth-2 & {
26
- padding-left: $gap-small * 2;
27
- }
28
-
29
- .depth-3 & {
30
- padding-left: $gap-small * 3;
31
- }
32
-
33
- .depth-4 & {
34
- padding-left: $gap-small * 4;
35
- }
36
- }
37
-
38
- .woocommerce-product-categories__item {
39
- .woocommerce-product-categories__item-name {
40
- display: inline-block;
41
- }
42
-
43
- .woocommerce-product-categories__item-prefix {
44
- display: none;
45
- color: $core-grey-dark-300;
46
- }
47
-
48
- &.is-searching, &.is-skip-level {
49
- .woocommerce-product-categories__item-prefix {
50
- display: inline-block;
51
- margin-right: $gap-smallest;
52
-
53
- &:after {
54
- content: ' ›';
55
- }
56
  }
57
  }
58
-
59
- &.is-searching {
60
- .woocommerce-product-categories__item-name {
61
- color: $core-grey-dark-900;
62
- }
63
- }
64
-
65
- .woocommerce-product-categories__item-count {
66
- flex: 0;
67
- padding: $gap-smallest/2 $gap-smaller;
68
- border: 1px solid $core-grey-light-500;
69
- border-radius: 12px;
70
- font-size: 0.8em;
71
- line-height: 1.4;
72
- color: $core-grey-dark-300;
73
- background: $white;
74
- }
75
  }
1
+ .woocommerce-product-categories__operator {
2
+ .components-base-control__help {
3
+ @include visually-hidden;
 
4
  }
5
  }
6
 
7
+ .components-panel {
8
+ .woocommerce-product-categories__operator.components-base-control {
9
+ margin-top: $gap;
10
 
11
+ .components-select-control__input {
12
+ margin-left: 0;
13
+ min-width: 100%;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  }
15
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  }
assets/js/components/product-control/index.js ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * External dependencies
3
+ */
4
+ import { __ } from '@wordpress/i18n';
5
+ import { addQueryArgs } from '@wordpress/url';
6
+ import apiFetch from '@wordpress/api-fetch';
7
+ import { Component, Fragment } from '@wordpress/element';
8
+ import { find } from 'lodash';
9
+ import PropTypes from 'prop-types';
10
+
11
+ /**
12
+ * Internal dependencies
13
+ */
14
+ import SearchListControl from '../search-list-control';
15
+
16
+ class ProductControl extends Component {
17
+ constructor() {
18
+ super( ...arguments );
19
+ this.state = {
20
+ list: [],
21
+ loading: true,
22
+ };
23
+ }
24
+
25
+ componentDidMount() {
26
+ apiFetch( {
27
+ path: addQueryArgs( '/wc-pb/v3/products', {
28
+ per_page: -1,
29
+ status: 'publish',
30
+ } ),
31
+ } )
32
+ .then( ( list ) => {
33
+ this.setState( { list, loading: false } );
34
+ } )
35
+ .catch( () => {
36
+ this.setState( { list: [], loading: false } );
37
+ } );
38
+ }
39
+
40
+ render() {
41
+ const { list, loading } = this.state;
42
+ const { onChange, selected } = this.props;
43
+ const messages = {
44
+ list: __( 'Products', 'woo-gutenberg-products-block' ),
45
+ noItems: __(
46
+ "Your store doesn't have any products.",
47
+ 'woo-gutenberg-products-block'
48
+ ),
49
+ search: __(
50
+ 'Search for a product to display',
51
+ 'woo-gutenberg-products-block'
52
+ ),
53
+ updated: __(
54
+ 'Product search results updated.',
55
+ 'woo-gutenberg-products-block'
56
+ ),
57
+ };
58
+
59
+ // Note: selected prop still needs to be array for SearchListControl.
60
+ return (
61
+ <Fragment>
62
+ <SearchListControl
63
+ className="woocommerce-products"
64
+ list={ list }
65
+ isLoading={ loading }
66
+ isSingle
67
+ selected={ [ find( list, { id: selected } ) ] }
68
+ onChange={ onChange }
69
+ messages={ messages }
70
+ />
71
+ </Fragment>
72
+ );
73
+ }
74
+ }
75
+
76
+ ProductControl.propTypes = {
77
+ /**
78
+ * Callback to update the selected products.
79
+ */
80
+ onChange: PropTypes.func.isRequired,
81
+ /**
82
+ * The ID of the currently selected product.
83
+ */
84
+ selected: PropTypes.number.isRequired,
85
+ };
86
+
87
+ export default ProductControl;
assets/js/components/product-orderby-control/index.js ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * External dependencies
3
+ */
4
+ import { __ } from '@wordpress/i18n';
5
+ import { SelectControl } from '@wordpress/components';
6
+ import PropTypes from 'prop-types';
7
+
8
+ /**
9
+ * A pre-configured SelectControl for product orderby settings.
10
+ */
11
+ const ProductOrderbyControl = ( { value, setAttributes } ) => {
12
+ return (
13
+ <SelectControl
14
+ label={ __( 'Order products by', 'woo-gutenberg-products-block' ) }
15
+ value={ value }
16
+ options={ [
17
+ {
18
+ label: __( 'Newness - newest first', 'woo-gutenberg-products-block' ),
19
+ value: 'date',
20
+ },
21
+ {
22
+ label: __( 'Price - low to high', 'woo-gutenberg-products-block' ),
23
+ value: 'price_asc',
24
+ },
25
+ {
26
+ label: __( 'Price - high to low', 'woo-gutenberg-products-block' ),
27
+ value: 'price_desc',
28
+ },
29
+ {
30
+ label: __( 'Rating - highest first', 'woo-gutenberg-products-block' ),
31
+ value: 'rating',
32
+ },
33
+ {
34
+ label: __( 'Sales - most first', 'woo-gutenberg-products-block' ),
35
+ value: 'popularity',
36
+ },
37
+ {
38
+ label: __( 'Title - alphabetical', 'woo-gutenberg-products-block' ),
39
+ value: 'title',
40
+ },
41
+ {
42
+ label: __( 'Menu Order', 'woo-gutenberg-products-block' ),
43
+ value: 'menu_order',
44
+ },
45
+ ] }
46
+ onChange={ ( orderby ) => setAttributes( { orderby } ) }
47
+ />
48
+ );
49
+ };
50
+
51
+ ProductOrderbyControl.propTypes = {
52
+ /**
53
+ * Callback to update the order setting.
54
+ */
55
+ setAttributes: PropTypes.func.isRequired,
56
+ /**
57
+ * The selected order setting.
58
+ */
59
+ value: PropTypes.string.isRequired,
60
+ };
61
+
62
+ export default ProductOrderbyControl;
assets/js/components/product-preview/index.js CHANGED
@@ -26,8 +26,10 @@ const ProductPreview = ( { product } ) => {
26
  className="wc-product-preview__price"
27
  dangerouslySetInnerHTML={ { __html: product.price_html } }
28
  />
29
- <span className="wc-product-preview__add-to-cart">
30
- { __( 'Add to cart', 'woo-gutenberg-products-block' ) }
 
 
31
  </span>
32
  </div>
33
  );
26
  className="wc-product-preview__price"
27
  dangerouslySetInnerHTML={ { __html: product.price_html } }
28
  />
29
+ <span className="wp-block-button">
30
+ <span className="wc-product-preview__add-to-cart wp-block-button__link">
31
+ { __( 'Add to cart', 'woo-gutenberg-products-block' ) }
32
+ </span>
33
  </span>
34
  </div>
35
  );
assets/js/components/product-preview/style.scss CHANGED
@@ -1,90 +1,47 @@
1
  .wc-product-preview {
2
- float: left;
3
  text-align: center;
4
- margin-right: 3.8%;
5
 
6
- .cols-1 & {
7
- float: none;
8
- margin-right: 0;
9
  }
10
 
11
- .cols-2 & {
12
- width: 48%;
13
-
14
- &:nth-of-type(2n) {
15
- margin-right: 0;
16
- }
17
-
18
- &:nth-of-type(2n+1) {
19
- clear: both;
20
- }
21
- }
22
-
23
- .cols-3 & {
24
- width: 30.75%;
25
-
26
- &:nth-of-type(3n) {
27
- margin-right: 0;
28
- }
29
-
30
- &:nth-of-type(3n+1) {
31
- clear: both;
32
- }
33
  }
34
 
35
- .cols-4 & {
36
- width: 22.05%;
37
-
38
- &:nth-of-type(4n) {
39
- margin-right: 0;
40
- }
41
-
42
- &:nth-of-type(4n+1) {
43
- clear: both;
44
- }
45
  }
46
 
47
- .cols-5 & {
48
- width: 16.9%;
49
-
50
- &:nth-of-type(5n) {
51
- margin-right: 0;
 
52
  }
53
-
54
- &:nth-of-type(5n+1) {
55
- clear: both;
56
  }
57
-
58
  .wc-product-preview__add-to-cart {
59
- font-size: 0.75em;
 
60
  }
61
  }
62
 
63
- .cols-6 & {
64
- width: 13.5%;
65
-
66
- &:nth-of-type(6n) {
67
- margin-right: 0;
68
  }
69
-
70
- &:nth-of-type(6n+1) {
71
- clear: both;
72
  }
73
-
74
  .wc-product-preview__add-to-cart {
75
- font-size: 0.75em;
76
  }
77
  }
78
  }
79
-
80
- .wc-product-preview__add-to-cart {
81
- display: inline-block;
82
- background: #ababab;
83
- border-radius: 1.5em;
84
- color: #fff;
85
- cursor: pointer;
86
- padding: 0.75em 1.25em;
87
- line-height: 1.2em;
88
- margin-top: 0.5em;
89
- margin-bottom: 1em;
90
- }
1
  .wc-product-preview {
 
2
  text-align: center;
3
+ margin-bottom: $gap;
4
 
5
+ .wc-product-preview__title,
6
+ .wc-product-preview__price {
7
+ margin-top: $gap-smallest;
8
  }
9
 
10
+ .wp-block-button {
11
+ margin-bottom: 0;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  }
13
 
14
+ .wc-product-preview__add-to-cart {
15
+ cursor: text;
16
+ margin: $gap-small 0 0;
 
 
 
 
 
 
 
17
  }
18
 
19
+ .cols-4 &,
20
+ .cols-5 &,
21
+ .cols-6 & {
22
+ .wc-product-preview__title {
23
+ font-size: 0.9em;
24
+ line-height: 1.2;
25
  }
26
+ .wc-product-preview__price {
27
+ font-size: 0.8em;
 
28
  }
 
29
  .wc-product-preview__add-to-cart {
30
+ font-size: 0.7em !important;
31
+ line-height: 1.4 !important;
32
  }
33
  }
34
 
35
+ .editor-block-preview & {
36
+ .wc-product-preview__title {
37
+ font-size: 0.7em;
38
+ line-height: 1.2;
 
39
  }
40
+ .wc-product-preview__price {
41
+ font-size: 0.6em;
 
42
  }
 
43
  .wc-product-preview__add-to-cart {
44
+ font-size: 0.6em !important;
45
  }
46
  }
47
  }
 
 
 
 
 
 
 
 
 
 
 
 
assets/js/components/products-control/index.js ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * External dependencies
3
+ */
4
+ import { __, _n, sprintf } from '@wordpress/i18n';
5
+ import { addQueryArgs } from '@wordpress/url';
6
+ import apiFetch from '@wordpress/api-fetch';
7
+ import { Component, Fragment } from '@wordpress/element';
8
+ import { find } from 'lodash';
9
+ import PropTypes from 'prop-types';
10
+
11
+ /**
12
+ * Internal dependencies
13
+ */
14
+ import SearchListControl from '../search-list-control';
15
+
16
+ class ProductsControl extends Component {
17
+ constructor() {
18
+ super( ...arguments );
19
+ this.state = {
20
+ list: [],
21
+ loading: true,
22
+ };
23
+ }
24
+
25
+ componentDidMount() {
26
+ apiFetch( {
27
+ path: addQueryArgs( '/wc-pb/v3/products', { per_page: -1, status: 'publish' } ),
28
+ } )
29
+ .then( ( list ) => {
30
+ this.setState( { list, loading: false } );
31
+ } )
32
+ .catch( () => {
33
+ this.setState( { list: [], loading: false } );
34
+ } );
35
+ }
36
+
37
+ render() {
38
+ const { list, loading } = this.state;
39
+ const { onChange, selected } = this.props;
40
+
41
+ const messages = {
42
+ clear: __( 'Clear all products', 'woo-gutenberg-products-block' ),
43
+ list: __( 'Products', 'woo-gutenberg-products-block' ),
44
+ noItems: __(
45
+ "Your store doesn't have any products.",
46
+ 'woo-gutenberg-products-block'
47
+ ),
48
+ search: __(
49
+ 'Search for products to display',
50
+ 'woo-gutenberg-products-block'
51
+ ),
52
+ selected: ( n ) =>
53
+ sprintf(
54
+ _n(
55
+ '%d product selected',
56
+ '%d products selected',
57
+ n,
58
+ 'woo-gutenberg-products-block'
59
+ ),
60
+ n
61
+ ),
62
+ updated: __(
63
+ 'Product search results updated.',
64
+ 'woo-gutenberg-products-block'
65
+ ),
66
+ };
67
+
68
+ return (
69
+ <Fragment>
70
+ <SearchListControl
71
+ className="woocommerce-products"
72
+ list={ list }
73
+ isLoading={ loading }
74
+ selected={ selected.map( ( id ) => find( list, { id } ) ).filter( Boolean ) }
75
+ onChange={ onChange }
76
+ messages={ messages }
77
+ />
78
+ </Fragment>
79
+ );
80
+ }
81
+ }
82
+
83
+ ProductsControl.propTypes = {
84
+ /**
85
+ * Callback to update the selected products.
86
+ */
87
+ onChange: PropTypes.func.isRequired,
88
+ /**
89
+ * The list of currently selected IDs.
90
+ */
91
+ selected: PropTypes.array.isRequired,
92
+ };
93
+
94
+ export default ProductsControl;
assets/js/components/search-list-control/icons.js DELETED
@@ -1,48 +0,0 @@
1
- /**
2
- * External dependencies
3
- */
4
- import { SVG } from '@wordpress/components';
5
-
6
- export const CheckedIcon = () => (
7
- <SVG
8
- viewBox="0 0 16 16"
9
- width="16"
10
- height="16"
11
- xmlns="http://www.w3.org/2000/svg"
12
- >
13
- <defs>
14
- <path
15
- id="checked"
16
- d="M15.2222 1H2.7778C1.791 1 1 1.8 1 2.7778v12.4444C1 16.2 1.7911 17 2.7778 17h12.4444C16.209 17 17 16.2 17 15.2222V2.7778C17 1.8 16.2089 1 15.2222 1zm-8 12.4444L2.7778 9 4.031 7.7467l3.1911 3.1822 6.7467-6.7467 1.2533 1.2622-8 8z"
17
- />
18
- </defs>
19
- <g fill="none" fillRule="evenodd" transform="translate(-1 -1)">
20
- <mask id="checked-mask" fill="#fff">
21
- <use xlinkHref="#checked" />
22
- </mask>
23
- <path fill="#1E8CBE" d="M0 0h18v18H0z" mask="url(#checked-mask)" />
24
- </g>
25
- </SVG>
26
- );
27
-
28
- export const UncheckedIcon = () => (
29
- <SVG
30
- viewBox="0 0 16 16"
31
- width="16"
32
- height="16"
33
- xmlns="http://www.w3.org/2000/svg"
34
- >
35
- <defs>
36
- <path
37
- id="unchecked"
38
- d="M15.2222 2.7778v12.4444H2.7778V2.7778h12.4444zm0-1.7778H2.7778C1.8 1 1 1.8 1 2.7778v12.4444C1 16.2 1.8 17 2.7778 17h12.4444C16.2 17 17 16.2 17 15.2222V2.7778C17 1.8 16.2 1 15.2222 1z"
39
- />
40
- </defs>
41
- <g fill="none" fillRule="evenodd" transform="translate(-1 -1)">
42
- <mask id="unchecked-mask" fill="#fff">
43
- <use xlinkHref="#unchecked" />
44
- </mask>
45
- <path fill="#6C7781" d="M0 0h18v18H0z" mask="url(#unchecked-mask)" />
46
- </g>
47
- </SVG>
48
- );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/js/components/search-list-control/index.js CHANGED
@@ -4,7 +4,6 @@
4
  import { __, _n, sprintf } from '@wordpress/i18n';
5
  import {
6
  Button,
7
- MenuItem,
8
  MenuGroup,
9
  Spinner,
10
  TextControl,
@@ -22,7 +21,7 @@ import { Tag } from '@woocommerce/components';
22
  */
23
  import './style.scss';
24
  import { buildTermsTree } from './hierarchy';
25
- import { CheckedIcon, UncheckedIcon } from './icons';
26
 
27
  const defaultMessages = {
28
  clear: __( 'Clear all selected items', 'woo-gutenberg-products-block' ),
@@ -51,21 +50,28 @@ export class SearchListControl extends Component {
51
  }
52
 
53
  onRemove( id ) {
54
- const { selected, onChange } = this.props;
55
  return () => {
 
 
 
56
  const i = findIndex( selected, { id } );
57
  onChange( [ ...selected.slice( 0, i ), ...selected.slice( i + 1 ) ] );
58
  };
59
  }
60
 
61
  onSelect( item ) {
62
- const { selected, onChange } = this.props;
63
  return () => {
64
  if ( this.isSelected( item ) ) {
65
  this.onRemove( item.id )();
66
  return;
67
  }
68
- onChange( [ ...selected, item ] );
 
 
 
 
69
  };
70
  }
71
 
@@ -91,50 +97,12 @@ export class SearchListControl extends Component {
91
  return isHierarchical ? buildTermsTree( filteredList, list ) : filteredList;
92
  }
93
 
94
- getHighlightedName( name, search ) {
95
- if ( ! search ) {
96
- return name;
97
- }
98
- const re = new RegExp( escapeRegExp( search ), 'ig' );
99
- return name.replace( re, '<strong>$&</strong>' );
100
- }
101
-
102
- defaultRenderItem( {
103
- depth = 0,
104
- getHighlightedName,
105
- item,
106
- isSelected,
107
- onSelect,
108
- search = '',
109
- } ) {
110
- const classes = [ 'woocommerce-search-list__item' ];
111
- if ( this.props.isHierarchical ) {
112
- classes.push( `depth-${ depth }` );
113
- }
114
-
115
- return (
116
- <MenuItem
117
- key={ item.id }
118
- role="menuitemcheckbox"
119
- className={ classes.join( ' ' ) }
120
- onClick={ onSelect( item ) }
121
- isSelected={ isSelected }
122
- >
123
- <span className="woocommerce-search-list__item-state">
124
- { isSelected ? <CheckedIcon /> : <UncheckedIcon /> }
125
- </span>
126
- <span
127
- className="woocommerce-search-list__item-name"
128
- dangerouslySetInnerHTML={ {
129
- __html: getHighlightedName( item.name, search ),
130
- } }
131
- />
132
- </MenuItem>
133
- );
134
  }
135
 
136
  renderList( list, depth = 0 ) {
137
- const { search } = this.props;
138
  const renderItem = this.props.renderItem || this.defaultRenderItem;
139
  if ( ! list ) {
140
  return null;
@@ -142,10 +110,10 @@ export class SearchListControl extends Component {
142
  return list.map( ( item ) => (
143
  <Fragment key={ item.id }>
144
  { renderItem( {
145
- getHighlightedName: this.getHighlightedName,
146
  item,
147
  isSelected: this.isSelected( item ),
148
  onSelect: this.onSelect,
 
149
  search,
150
  depth,
151
  } ) }
@@ -195,36 +163,44 @@ export class SearchListControl extends Component {
195
  );
196
  }
197
 
198
- render() {
199
- const { className = '', search, selected, setState } = this.props;
200
  const messages = { ...defaultMessages, ...this.props.messages };
 
 
 
 
 
201
  const selectedCount = selected.length;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
202
 
203
  return (
204
  <div className={ `woocommerce-search-list ${ className }` }>
205
- <div className="woocommerce-search-list__selected">
206
- <div className="woocommerce-search-list__selected-header">
207
- <strong>{ messages.selected( selectedCount ) }</strong>
208
- { selectedCount > 0 ? (
209
- <Button
210
- isLink
211
- isDestructive
212
- onClick={ this.onClear }
213
- aria-label={ messages.clear }
214
- >
215
- { __( 'Clear all', 'woo-gutenberg-products-block' ) }
216
- </Button>
217
- ) : null }
218
- </div>
219
- { selected.map( ( item, i ) => (
220
- <Tag
221
- key={ i }
222
- label={ item.name }
223
- id={ item.id }
224
- remove={ this.onRemove }
225
- />
226
- ) ) }
227
- </div>
228
 
229
  <div className="woocommerce-search-list__search">
230
  <TextControl
@@ -255,6 +231,10 @@ SearchListControl.propTypes = {
255
  * Whether the list of items is still loading.
256
  */
257
  isLoading: PropTypes.bool,
 
 
 
 
258
  /**
259
  * A complete list of item objects, each with id, name properties. This is displayed as a
260
  * clickable/keyboard-able list, and possibly filtered by the search term (searches name).
4
  import { __, _n, sprintf } from '@wordpress/i18n';
5
  import {
6
  Button,
 
7
  MenuGroup,
8
  Spinner,
9
  TextControl,
21
  */
22
  import './style.scss';
23
  import { buildTermsTree } from './hierarchy';
24
+ import SearchListItem from './item';
25
 
26
  const defaultMessages = {
27
  clear: __( 'Clear all selected items', 'woo-gutenberg-products-block' ),
50
  }
51
 
52
  onRemove( id ) {
53
+ const { isSingle, onChange, selected } = this.props;
54
  return () => {
55
+ if ( isSingle ) {
56
+ onChange( [] );
57
+ }
58
  const i = findIndex( selected, { id } );
59
  onChange( [ ...selected.slice( 0, i ), ...selected.slice( i + 1 ) ] );
60
  };
61
  }
62
 
63
  onSelect( item ) {
64
+ const { isSingle, onChange, selected } = this.props;
65
  return () => {
66
  if ( this.isSelected( item ) ) {
67
  this.onRemove( item.id )();
68
  return;
69
  }
70
+ if ( isSingle ) {
71
+ onChange( [ item ] );
72
+ } else {
73
+ onChange( [ ...selected, item ] );
74
+ }
75
  };
76
  }
77
 
97
  return isHierarchical ? buildTermsTree( filteredList, list ) : filteredList;
98
  }
99
 
100
+ defaultRenderItem( args ) {
101
+ return <SearchListItem { ...args } />;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
102
  }
103
 
104
  renderList( list, depth = 0 ) {
105
+ const { isSingle, search } = this.props;
106
  const renderItem = this.props.renderItem || this.defaultRenderItem;
107
  if ( ! list ) {
108
  return null;
110
  return list.map( ( item ) => (
111
  <Fragment key={ item.id }>
112
  { renderItem( {
 
113
  item,
114
  isSelected: this.isSelected( item ),
115
  onSelect: this.onSelect,
116
+ isSingle,
117
  search,
118
  depth,
119
  } ) }
163
  );
164
  }
165
 
166
+ renderSelectedSection() {
167
+ const { isLoading, isSingle, selected } = this.props;
168
  const messages = { ...defaultMessages, ...this.props.messages };
169
+
170
+ if ( isLoading || isSingle || ! selected ) {
171
+ return null;
172
+ }
173
+
174
  const selectedCount = selected.length;
175
+ return (
176
+ <div className="woocommerce-search-list__selected">
177
+ <div className="woocommerce-search-list__selected-header">
178
+ <strong>{ messages.selected( selectedCount ) }</strong>
179
+ { selectedCount > 0 ? (
180
+ <Button
181
+ isLink
182
+ isDestructive
183
+ onClick={ this.onClear }
184
+ aria-label={ messages.clear }
185
+ >
186
+ { __( 'Clear all', 'woo-gutenberg-products-block' ) }
187
+ </Button>
188
+ ) : null }
189
+ </div>
190
+ { selected.map( ( item, i ) => (
191
+ <Tag key={ i } label={ item.name } id={ item.id } remove={ this.onRemove } />
192
+ ) ) }
193
+ </div>
194
+ );
195
+ }
196
+
197
+ render() {
198
+ const { className = '', search, setState } = this.props;
199
+ const messages = { ...defaultMessages, ...this.props.messages };
200
 
201
  return (
202
  <div className={ `woocommerce-search-list ${ className }` }>
203
+ { this.renderSelectedSection() }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
204
 
205
  <div className="woocommerce-search-list__search">
206
  <TextControl
231
  * Whether the list of items is still loading.
232
  */
233
  isLoading: PropTypes.bool,
234
+ /**
235
+ * Restrict selections to one item.
236
+ */
237
+ isSingle: PropTypes.bool,
238
  /**
239
  * A complete list of item objects, each with id, name properties. This is displayed as a
240
  * clickable/keyboard-able list, and possibly filtered by the search term (searches name).
assets/js/components/search-list-control/item.js ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * External dependencies
3
+ */
4
+ import { escapeRegExp, first, last } from 'lodash';
5
+ import { MenuItem } from '@wordpress/components';
6
+ import PropTypes from 'prop-types';
7
+
8
+ /**
9
+ * Internal dependencies
10
+ */
11
+ import {
12
+ IconCheckChecked,
13
+ IconCheckUnchecked,
14
+ IconRadioSelected,
15
+ IconRadioUnselected,
16
+ } from '../icons';
17
+
18
+ function getHighlightedName( name, search ) {
19
+ if ( ! search ) {
20
+ return name;
21
+ }
22
+ const re = new RegExp( escapeRegExp( search ), 'ig' );
23
+ return name.replace( re, '<strong>$&</strong>' );
24
+ }
25
+
26
+ function getBreadcrumbsForDisplay( breadcrumbs ) {
27
+ if ( breadcrumbs.length === 1 ) {
28
+ return first( breadcrumbs );
29
+ }
30
+ if ( breadcrumbs.length === 2 ) {
31
+ return first( breadcrumbs ) + ' › ' + last( breadcrumbs );
32
+ }
33
+
34
+ return first( breadcrumbs ) + ' … ' + last( breadcrumbs );
35
+ }
36
+
37
+ const getInteractionIcon = ( isSingle = false, isSelected = false ) => {
38
+ if ( isSingle ) {
39
+ return isSelected ? <IconRadioSelected /> : <IconRadioUnselected />;
40
+ }
41
+ return isSelected ? <IconCheckChecked /> : <IconCheckUnchecked />;
42
+ };
43
+
44
+ const SearchListItem = ( {
45
+ className,
46
+ depth = 0,
47
+ item,
48
+ isSelected,
49
+ isSingle,
50
+ onSelect,
51
+ search = '',
52
+ showCount = false,
53
+ ...props
54
+ } ) => {
55
+ const classes = [ className, 'woocommerce-search-list__item' ];
56
+ classes.push( `depth-${ depth }` );
57
+ if ( isSingle ) {
58
+ classes.push( 'is-radio-button' );
59
+ }
60
+ const hasBreadcrumbs = item.breadcrumbs && item.breadcrumbs.length;
61
+
62
+ return (
63
+ <MenuItem
64
+ role="menuitemcheckbox"
65
+ className={ classes.join( ' ' ) }
66
+ onClick={ onSelect( item ) }
67
+ isSelected={ isSelected }
68
+ { ...props }
69
+ >
70
+ <span className="woocommerce-search-list__item-state">
71
+ { getInteractionIcon( isSingle, isSelected ) }
72
+ </span>
73
+
74
+ <span className="woocommerce-search-list__item-label">
75
+ { hasBreadcrumbs ? (
76
+ <span className="woocommerce-search-list__item-prefix">
77
+ { getBreadcrumbsForDisplay( item.breadcrumbs ) }
78
+ </span>
79
+ ) : null }
80
+ <span
81
+ className="woocommerce-search-list__item-name"
82
+ dangerouslySetInnerHTML={ {
83
+ __html: getHighlightedName( item.name, search ),
84
+ } }
85
+ />
86
+ </span>
87
+
88
+ { !! showCount && (
89
+ <span className="woocommerce-search-list__item-count">
90
+ { item.count }
91
+ </span>
92
+ ) }
93
+ </MenuItem>
94
+ );
95
+ };
96
+
97
+ SearchListItem.propTypes = {
98
+ /**
99
+ * Additional CSS classes.
100
+ */
101
+ className: PropTypes.string,
102
+ /**
103
+ * Depth, non-zero if the list is hierarchical.
104
+ */
105
+ depth: PropTypes.number,
106
+ /**
107
+ * Current item to display.
108
+ */
109
+ item: PropTypes.object,
110
+ /**
111
+ * Whether this item is selected.
112
+ */
113
+ isSelected: PropTypes.bool,
114
+ /**
115
+ * Whether this should only display a single item (controls radio vs checkbox icon).
116
+ */
117
+ isSingle: PropTypes.bool,
118
+ /**
119
+ * Callback for selecting the item.
120
+ */
121
+ onSelect: PropTypes.func,
122
+ /**
123
+ * Search string, used to highlight the substring in the item name.
124
+ */
125
+ search: PropTypes.string,
126
+ /**
127
+ * Toggles the "count" bubble on/off.
128
+ */
129
+ showCount: PropTypes.bool,
130
+ };
131
+
132
+ export default SearchListItem;
assets/js/components/search-list-control/style.scss CHANGED
@@ -36,7 +36,7 @@
36
 
37
  .woocommerce-search-list__list {
38
  padding: 0;
39
- max-height: 18.5em;
40
  overflow-x: hidden;
41
  overflow-y: auto;
42
  border-top: 1px solid $core-grey-light-500;
@@ -85,27 +85,110 @@
85
  display: flex;
86
  align-items: center;
87
  margin-bottom: 0;
88
- padding: $gap;
89
  background: $white;
90
  // !important to keep the border around on hover
91
  border-bottom: 1px solid $core-grey-light-500 !important;
92
  color: $core-grey-dark-500;
93
 
 
 
 
 
 
 
 
 
94
  .woocommerce-search-list__item-state {
95
  flex: 0 0 16px;
96
  margin-right: $gap-smaller;
 
 
97
  }
98
 
99
- .woocommerce-search-list__item-name {
 
100
  flex: 1;
101
  }
102
 
103
- @include hover-state {
104
- background: $core-grey-light-100;
 
 
105
  }
106
 
107
- &:last-of-type {
108
- border-bottom: none !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
109
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
110
  }
111
  }
36
 
37
  .woocommerce-search-list__list {
38
  padding: 0;
39
+ max-height: 17em;
40
  overflow-x: hidden;
41
  overflow-y: auto;
42
  border-top: 1px solid $core-grey-light-500;
85
  display: flex;
86
  align-items: center;
87
  margin-bottom: 0;
88
+ padding: $gap-small $gap;
89
  background: $white;
90
  // !important to keep the border around on hover
91
  border-bottom: 1px solid $core-grey-light-500 !important;
92
  color: $core-grey-dark-500;
93
 
94
+ @include hover-state {
95
+ background: $core-grey-light-100;
96
+ }
97
+
98
+ &:last-child {
99
+ border-bottom: none !important;
100
+ }
101
+
102
  .woocommerce-search-list__item-state {
103
  flex: 0 0 16px;
104
  margin-right: $gap-smaller;
105
+ // Set an explicit height to ensure vertical alignment
106
+ height: 24px;
107
  }
108
 
109
+ .woocommerce-search-list__item-label {
110
+ display: flex;
111
  flex: 1;
112
  }
113
 
114
+ // Anything deeper than 5 levels will use this fallback depth
115
+ &[class*="depth-"] .woocommerce-search-list__item-label:before {
116
+ margin-right: $gap-smallest;
117
+ content: repeat( '— ', 5 );
118
  }
119
 
120
+ &.depth-0 .woocommerce-search-list__item-label:before {
121
+ margin-right: 0;
122
+ content: '';
123
+ }
124
+
125
+ @for $i from 1 to 5 {
126
+ &.depth-#{$i} .woocommerce-search-list__item-label:before {
127
+ content: repeat( '— ', $i );
128
+ }
129
+ }
130
+
131
+ .woocommerce-search-list__item-name {
132
+ display: inline-block;
133
+ }
134
+
135
+ .woocommerce-search-list__item-prefix {
136
+ display: none;
137
+ color: $core-grey-dark-300;
138
+ }
139
+
140
+ &.is-searching,
141
+ &.is-skip-level {
142
+ .woocommerce-search-list__item-label {
143
+ // Un-flex the label, so the prefix (breadcrumbs) and name are aligned.
144
+ display: inline-block;
145
+ }
146
+
147
+ .woocommerce-search-list__item-prefix {
148
+ display: inline;
149
+
150
+ &:after {
151
+ margin-right: $gap-smallest;
152
+ content: " ›";
153
+ }
154
+ }
155
+ }
156
+
157
+ &.is-searching {
158
+ .woocommerce-search-list__item-name {
159
+ color: $core-grey-dark-900;
160
+ }
161
  }
162
+
163
+ .woocommerce-search-list__item-count {
164
+ flex: 0;
165
+ padding: $gap-smallest/2 $gap-smaller;
166
+ border: 1px solid $core-grey-light-500;
167
+ border-radius: 12px;
168
+ font-size: 0.8em;
169
+ line-height: 1.4;
170
+ color: $core-grey-dark-300;
171
+ background: $white;
172
+ }
173
+ }
174
+ }
175
+
176
+ .components-panel {
177
+ .woocommerce-search-list {
178
+ padding: 0;
179
+ }
180
+
181
+ .woocommerce-search-list__selected {
182
+ margin: 0 0 $gap;
183
+ padding: 0;
184
+ border-top: none;
185
+ // 54px is the height of 1 row of tags in the sidebar.
186
+ min-height: 54px;
187
+ }
188
+
189
+ .woocommerce-search-list__search {
190
+ margin: 0 0 $gap;
191
+ padding: 0;
192
+ border-top: none;
193
  }
194
  }
assets/js/legacy/products-block.jsx CHANGED
@@ -5,7 +5,7 @@ const { InspectorControls, BlockControls } = wp.editor;
5
  const { Toolbar, Button, Dashicon, RangeControl, Tooltip, SelectControl } = wp.components;
6
  const { apiFetch } = wp;
7
 
8
- import '../../css/products-block.scss';
9
 
10
  import { ProductsSpecificSelect } from './views/specific-select.jsx';
11
  import { ProductsCategorySelect } from './views/category-select.jsx';
@@ -903,8 +903,11 @@ class ProductsBlock extends Component {
903
  registerBlockType( 'woocommerce/products', {
904
  title: __( 'Products' ),
905
  icon: 'screenoptions',
906
- category: 'widgets',
907
  description: __( 'Display a grid of products from a variety of sources.' ),
 
 
 
908
 
909
  attributes: {
910
 
5
  const { Toolbar, Button, Dashicon, RangeControl, Tooltip, SelectControl } = wp.components;
6
  const { apiFetch } = wp;
7
 
8
+ import './products-block.scss';
9
 
10
  import { ProductsSpecificSelect } from './views/specific-select.jsx';
11
  import { ProductsCategorySelect } from './views/category-select.jsx';
903
  registerBlockType( 'woocommerce/products', {
904
  title: __( 'Products' ),
905
  icon: 'screenoptions',
906
+ category: 'woocommerce',
907
  description: __( 'Display a grid of products from a variety of sources.' ),
908
+ supports: {
909
+ inserter: false,
910
+ },
911
 
912
  attributes: {
913
 
assets/{css → js/legacy}/products-block.scss RENAMED
File without changes
assets/js/legacy/views/specific-select.jsx CHANGED
@@ -307,6 +307,7 @@ class ProductSpecificSearchResultsDropdown extends Component {
307
  product={ product }
308
  addOrRemoveProductCallback={ addOrRemoveProductCallback }
309
  selected={ selectedProducts.includes( product.id ) }
 
310
  />
311
  );
312
  }
@@ -347,13 +348,15 @@ class ProductSpecificSearchResultsDropdownElement extends Component {
347
  render() {
348
  const product = this.props.product;
349
  const icon = this.props.selected ? <Dashicon icon="yes" /> : null;
 
 
350
 
351
  /* eslint-disable jsx-a11y/click-events-have-key-events */
352
  /* eslint-disable jsx-a11y/no-static-element-interactions */
353
  /* reason: This interface will be deprecated, the new component is accessible. */
354
  return (
355
  <div className={ 'wc-products-list-card__content' + ( this.props.selected ? ' wc-products-list-card__content--added' : '' ) } onClick={ this.handleClick }>
356
- <img src={ product.images[ 0 ].src } alt="" />
357
  <span className="wc-products-list-card__content-item-name">{ product.name }</span>
358
  { icon }
359
  </div>
@@ -457,11 +460,13 @@ class ProductSpecificSelectedProducts extends Component {
457
  }
458
 
459
  const productData = PRODUCT_DATA[ productId ];
 
 
460
 
461
  productElements.push(
462
  <li className="wc-products-list-card__item" key={ productData.id + '-specific-select-edit' } >
463
  <div className="wc-products-list-card__content">
464
- <img src={ productData.images[ 0 ].src } alt="" />
465
  <span className="wc-products-list-card__content-item-name">{ productData.name }</span>
466
  <button
467
  type="button"
307
  product={ product }
308
  addOrRemoveProductCallback={ addOrRemoveProductCallback }
309
  selected={ selectedProducts.includes( product.id ) }
310
+ key={ product.id }
311
  />
312
  );
313
  }
348
  render() {
349
  const product = this.props.product;
350
  const icon = this.props.selected ? <Dashicon icon="yes" /> : null;
351
+ const productImage = product.images.length !== 0 ?
352
+ (<img src={ product.images[ 0 ].src } alt={ product.name } />) : null;
353
 
354
  /* eslint-disable jsx-a11y/click-events-have-key-events */
355
  /* eslint-disable jsx-a11y/no-static-element-interactions */
356
  /* reason: This interface will be deprecated, the new component is accessible. */
357
  return (
358
  <div className={ 'wc-products-list-card__content' + ( this.props.selected ? ' wc-products-list-card__content--added' : '' ) } onClick={ this.handleClick }>
359
+ { productImage }
360
  <span className="wc-products-list-card__content-item-name">{ product.name }</span>
361
  { icon }
362
  </div>
460
  }
461
 
462
  const productData = PRODUCT_DATA[ productId ];
463
+ const productImage = productData.images.length !== 0 ?
464
+ (<img src={ productData.images[ 0 ].src } alt={ productData.name } />) : null;
465
 
466
  productElements.push(
467
  <li className="wc-products-list-card__item" key={ productData.id + '-specific-select-edit' } >
468
  <div className="wc-products-list-card__content">
469
+ { productImage }
470
  <span className="wc-products-list-card__content-item-name">{ productData.name }</span>
471
  <button
472
  type="button"
assets/js/utils/get-query.js CHANGED
@@ -1,29 +1,54 @@
1
- export default function getQuery( attributes ) {
2
- const { categories, columns, orderby, rows } = attributes;
3
 
4
  const query = {
5
  status: 'publish',
6
  per_page: rows * columns,
7
  };
8
 
9
- if ( categories ) {
10
  query.category = categories.join( ',' );
 
 
 
11
  }
12
 
13
- if ( 'price_desc' === orderby ) {
14
- query.orderby = 'price';
15
- query.order = 'desc';
16
- } else if ( 'price_asc' === orderby ) {
17
- query.orderby = 'price';
18
- query.order = 'asc';
19
- } else if ( 'title' === orderby ) {
20
- query.orderby = 'title';
21
- query.order = 'asc';
22
- } else if ( 'menu_order' === orderby ) {
23
- query.orderby = 'menu_order';
24
- query.order = 'asc';
25
- } else {
26
- query.orderby = orderby;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
  }
28
 
29
  return query;
1
+ export default function getQuery( attributes, name ) {
2
+ const { categories, catOperator, columns, orderby, products, rows } = attributes;
3
 
4
  const query = {
5
  status: 'publish',
6
  per_page: rows * columns,
7
  };
8
 
9
+ if ( categories && categories.length ) {
10
  query.category = categories.join( ',' );
11
+ if ( catOperator && 'all' === catOperator ) {
12
+ query.cat_operator = 'AND';
13
+ }
14
  }
15
 
16
+ if ( orderby ) {
17
+ if ( 'price_desc' === orderby ) {
18
+ query.orderby = 'price';
19
+ query.order = 'desc';
20
+ } else if ( 'price_asc' === orderby ) {
21
+ query.orderby = 'price';
22
+ query.order = 'asc';
23
+ } else if ( 'title' === orderby ) {
24
+ query.orderby = 'title';
25
+ query.order = 'asc';
26
+ } else if ( 'menu_order' === orderby ) {
27
+ query.orderby = 'menu_order';
28
+ query.order = 'asc';
29
+ } else {
30
+ query.orderby = orderby;
31
+ }
32
+ }
33
+
34
+ // Toggle query parameters depending on block type.
35
+ switch ( name ) {
36
+ case 'woocommerce/product-best-sellers':
37
+ query.orderby = 'popularity';
38
+ break;
39
+ case 'woocommerce/product-top-rated':
40
+ query.orderby = 'rating';
41
+ break;
42
+ case 'woocommerce/product-on-sale':
43
+ query.on_sale = 1;
44
+ break;
45
+ case 'woocommerce/product-new':
46
+ query.orderby = 'date';
47
+ break;
48
+ case 'woocommerce/handpicked-products':
49
+ query.include = products;
50
+ query.per_page = products.length;
51
+ break;
52
  }
53
 
54
  return query;
assets/js/utils/get-shortcode.js CHANGED
@@ -1,22 +1,59 @@
1
- export default function getShortcode( props ) {
2
- const { rows, columns, categories, orderby } = props.attributes;
3
 
4
  const shortcodeAtts = new Map();
5
  shortcodeAtts.set( 'limit', rows * columns );
6
  shortcodeAtts.set( 'columns', columns );
7
- shortcodeAtts.set( 'category', categories.join( ',' ) );
8
 
9
- if ( 'price_desc' === orderby ) {
10
- shortcodeAtts.set( 'orderby', 'price' );
11
- shortcodeAtts.set( 'order', 'DESC' );
12
- } else if ( 'price_asc' === orderby ) {
13
- shortcodeAtts.set( 'orderby', 'price' );
14
- shortcodeAtts.set( 'order', 'ASC' );
15
- } else if ( 'date' === orderby ) {
16
- shortcodeAtts.set( 'orderby', 'date' );
17
- shortcodeAtts.set( 'order', 'DESC' );
18
- } else {
19
- shortcodeAtts.set( 'orderby', orderby );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
  }
21
 
22
  // Build the shortcode string out of the set shortcode attributes.
1
+ export default function getShortcode( { attributes }, name ) {
2
+ const { categories, catOperator, columns, orderby, products, rows } = attributes;
3
 
4
  const shortcodeAtts = new Map();
5
  shortcodeAtts.set( 'limit', rows * columns );
6
  shortcodeAtts.set( 'columns', columns );
 
7
 
8
+ if ( categories && categories.length ) {
9
+ shortcodeAtts.set( 'category', categories.join( ',' ) );
10
+ if ( catOperator && 'all' === catOperator ) {
11
+ shortcodeAtts.set( 'cat_operator', 'AND' );
12
+ }
13
+ }
14
+
15
+ if ( orderby ) {
16
+ if ( 'price_desc' === orderby ) {
17
+ shortcodeAtts.set( 'orderby', 'price' );
18
+ shortcodeAtts.set( 'order', 'DESC' );
19
+ } else if ( 'price_asc' === orderby ) {
20
+ shortcodeAtts.set( 'orderby', 'price' );
21
+ shortcodeAtts.set( 'order', 'ASC' );
22
+ } else if ( 'date' === orderby ) {
23
+ shortcodeAtts.set( 'orderby', 'date' );
24
+ shortcodeAtts.set( 'order', 'DESC' );
25
+ } else {
26
+ shortcodeAtts.set( 'orderby', orderby );
27
+ }
28
+ }
29
+
30
+ // Toggle shortcode atts depending on block type.
31
+ switch ( name ) {
32
+ case 'woocommerce/product-best-sellers':
33
+ shortcodeAtts.set( 'best_selling', '1' );
34
+ break;
35
+ case 'woocommerce/product-top-rated':
36
+ shortcodeAtts.set( 'orderby', 'rating' );
37
+ break;
38
+ case 'woocommerce/product-on-sale':
39
+ shortcodeAtts.set( 'on_sale', '1' );
40
+ break;
41
+ case 'woocommerce/product-new':
42
+ shortcodeAtts.set( 'orderby', 'date' );
43
+ shortcodeAtts.set( 'order', 'DESC' );
44
+ break;
45
+ case 'woocommerce/handpicked-products':
46
+ if ( ! products.length ) {
47
+ return '';
48
+ }
49
+ shortcodeAtts.set( 'ids', products.join( ',' ) );
50
+ shortcodeAtts.set( 'limit', products.length );
51
+ break;
52
+ case 'woocommerce/product-category':
53
+ if ( ! categories || ! categories.length ) {
54
+ return '';
55
+ }
56
+ break;
57
  }
58
 
59
  // Build the shortcode string out of the set shortcode attributes.
assets/js/utils/products.js ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Get the src of the first image attached to a product (the featured image).
3
+ *
4
+ * @param {array} images The array of images, destructured from the product object.
5
+ * @return {string} The full URL to the image.
6
+ */
7
+ export function getImageSrcFromProduct( { images = [] } ) {
8
+ if ( images.length ) {
9
+ return images[ 0 ].src || '';
10
+ }
11
+ return '';
12
+ }
13
+
14
+ /**
15
+ * Get the ID of the first image attached to a product (the featured image).
16
+ *
17
+ * @param {array} images The array of images, destructured from the product object.
18
+ * @return {number} The ID of the image.
19
+ */
20
+ export function getImageIdFromProduct( { images = [] } ) {
21
+ if ( images.length ) {
22
+ return images[ 0 ].id || 0;
23
+ }
24
+ return 0;
25
+ }
assets/js/utils/shared-attributes.js CHANGED
@@ -1,11 +1,4 @@
1
  export default {
2
- /**
3
- * Alignment of product grid
4
- */
5
- align: {
6
- type: 'string',
7
- },
8
-
9
  /**
10
  * Number of columns.
11
  */
@@ -23,10 +16,26 @@ export default {
23
  },
24
 
25
  /**
26
- * How to order the products: 'date', 'popularity', 'price_asc', 'price_desc' 'rating', 'title'.
27
  */
28
- orderby: {
 
 
 
 
 
 
 
 
29
  type: 'string',
30
- default: 'date',
 
 
 
 
 
 
 
 
31
  },
32
  };
1
  export default {
 
 
 
 
 
 
 
2
  /**
3
  * Number of columns.
4
  */
16
  },
17
 
18
  /**
19
+ * Product category, used to display only products in the given categories.
20
  */
21
+ categories: {
22
+ type: 'array',
23
+ default: [],
24
+ },
25
+
26
+ /**
27
+ * Product category operator, used to restrict to products in all or any selected categories.
28
+ */
29
+ catOperator: {
30
  type: 'string',
31
+ default: 'any',
32
+ },
33
+
34
+ /**
35
+ * Product attributes, used to display only products with the given attributes.
36
+ */
37
+ attributes: {
38
+ type: 'array',
39
+ default: [],
40
  },
41
  };
build/featured-product.css ADDED
@@ -0,0 +1,2 @@
 
 
1
+ .wc-block-featured-product{position:relative;background-color:#24292d;background-size:cover;background-position:50%;min-height:500px;width:100%;margin:0 0 1.5em;display:flex;justify-content:center;align-items:center;overflow:hidden;flex-wrap:wrap;align-content:center}.wc-block-featured-product.components-placeholder{background-color:rgba(139,139,150,.1)}.wc-block-featured-product.has-left-content{justify-content:flex-start}.wc-block-featured-product.has-left-content .wc-block-featured-product__description,.wc-block-featured-product.has-left-content .wc-block-featured-product__link,.wc-block-featured-product.has-left-content .wc-block-featured-product__price,.wc-block-featured-product.has-left-content .wc-block-featured-product__title{margin-left:0;text-align:left}.wc-block-featured-product.has-right-content{justify-content:flex-end}.wc-block-featured-product.has-right-content .wc-block-featured-product__description,.wc-block-featured-product.has-right-content .wc-block-featured-product__link,.wc-block-featured-product.has-right-content .wc-block-featured-product__price,.wc-block-featured-product.has-right-content .wc-block-featured-product__title{margin-right:0;text-align:right}.wc-block-featured-product .wc-block-featured-product__description,.wc-block-featured-product .wc-block-featured-product__link,.wc-block-featured-product .wc-block-featured-product__price,.wc-block-featured-product .wc-block-featured-product__title{color:#fff;line-height:1.25;z-index:1;margin-bottom:0;width:100%;padding:0 48px 16px;text-align:center}.wc-block-featured-product .wc-block-featured-product__description a,.wc-block-featured-product .wc-block-featured-product__description a:active,.wc-block-featured-product .wc-block-featured-product__description a:focus,.wc-block-featured-product .wc-block-featured-product__description a:hover,.wc-block-featured-product .wc-block-featured-product__link a,.wc-block-featured-product .wc-block-featured-product__link a:active,.wc-block-featured-product .wc-block-featured-product__link a:focus,.wc-block-featured-product .wc-block-featured-product__link a:hover,.wc-block-featured-product .wc-block-featured-product__price a,.wc-block-featured-product .wc-block-featured-product__price a:active,.wc-block-featured-product .wc-block-featured-product__price a:focus,.wc-block-featured-product .wc-block-featured-product__price a:hover,.wc-block-featured-product .wc-block-featured-product__title a,.wc-block-featured-product .wc-block-featured-product__title a:active,.wc-block-featured-product .wc-block-featured-product__title a:focus,.wc-block-featured-product .wc-block-featured-product__title a:hover{color:#fff}.wc-block-featured-product .wc-block-featured-product__title{margin-top:0}.wc-block-featured-product .wc-block-featured-product__title:before{display:none}.wc-block-featured-product .wc-block-featured-product__description p{margin:0}.wc-block-featured-product.has-background-dim:before{content:"";position:absolute;top:0;left:0;bottom:0;right:0;background-color:inherit;opacity:.5;z-index:1}.wc-block-featured-product.has-background-dim.has-background-dim-10:before{opacity:.1}.wc-block-featured-product.has-background-dim.has-background-dim-20:before{opacity:.2}.wc-block-featured-product.has-background-dim.has-background-dim-30:before{opacity:.3}.wc-block-featured-product.has-background-dim.has-background-dim-40:before{opacity:.4}.wc-block-featured-product.has-background-dim.has-background-dim-50:before{opacity:.5}.wc-block-featured-product.has-background-dim.has-background-dim-60:before{opacity:.6}.wc-block-featured-product.has-background-dim.has-background-dim-70:before{opacity:.7}.wc-block-featured-product.has-background-dim.has-background-dim-80:before{opacity:.8}.wc-block-featured-product.has-background-dim.has-background-dim-90:before{opacity:.9}.wc-block-featured-product.has-background-dim.has-background-dim-100:before{opacity:1}.wc-block-featured-product.alignleft,.wc-block-featured-product.alignright{max-width:305px;width:100%}.wc-block-featured-product:after{display:block;content:"";font-size:0;min-height:inherit}@supports ((position:-webkit-sticky) or (position:sticky)){.wc-block-featured-product:after{content:none}}.wc-block-featured-product.aligncenter,.wc-block-featured-product.alignleft,.wc-block-featured-product.alignright{display:flex}
2
+ @charset "UTF-8";.woocommerce-search-list{width:100%;padding:0 0 16px;text-align:left}.woocommerce-search-list__selected{margin:16px 0;padding:16px 0 0;min-height:76px;border-top:1px solid #e2e4e7}.woocommerce-search-list__selected .woocommerce-search-list__selected-header{margin-bottom:8px}.woocommerce-search-list__selected .woocommerce-search-list__selected-header button{margin-left:12px}.woocommerce-search-list__selected .woocommerce-tag__text{max-width:13em}.woocommerce-search-list__search{margin:16px 0;padding:16px 0 0;border-top:1px solid #e2e4e7}.woocommerce-search-list__search .components-base-control__field{margin-bottom:16px}.woocommerce-search-list__list{padding:0;max-height:17em;overflow-x:hidden;overflow-y:auto;border-top:1px solid #e2e4e7;border-bottom:1px solid #e2e4e7}.woocommerce-search-list__list.is-loading,.woocommerce-search-list__list.is-not-found{padding:12px 0;text-align:center;border:none}.woocommerce-search-list__list.is-not-found .woocommerce-search-list__not-found-icon,.woocommerce-search-list__list.is-not-found .woocommerce-search-list__not-found-text{display:inline-block}.woocommerce-search-list__list.is-not-found .woocommerce-search-list__not-found-icon{margin-right:16px}.woocommerce-search-list__list.is-not-found .woocommerce-search-list__not-found-icon .gridicon{vertical-align:top;margin-top:-1px}.woocommerce-search-list__list .components-spinner{float:none}.woocommerce-search-list__list .components-menu-group__label{clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;width:1px;margin:-1px;overflow:hidden;overflow-wrap:normal!important;word-wrap:normal!important}.woocommerce-search-list__list>[role=menu]{border:1px solid #e2e4e7;border-bottom:none}.woocommerce-search-list__list .woocommerce-search-list__item{display:flex;align-items:center;margin-bottom:0;padding:12px 16px;background:#fff;border-bottom:1px solid #e2e4e7!important;color:#555d66}.woocommerce-search-list__list .woocommerce-search-list__item:active,.woocommerce-search-list__list .woocommerce-search-list__item:focus,.woocommerce-search-list__list .woocommerce-search-list__item:hover{background:#f8f9f9}.woocommerce-search-list__list .woocommerce-search-list__item:last-child{border-bottom:none!important}.woocommerce-search-list__list .woocommerce-search-list__item .woocommerce-search-list__item-state{flex:0 0 16px;margin-right:8px;height:24px}.woocommerce-search-list__list .woocommerce-search-list__item .woocommerce-search-list__item-label{display:flex;flex:1}.woocommerce-search-list__list .woocommerce-search-list__item[class*=depth-] .woocommerce-search-list__item-label:before{margin-right:4px;content:"— — — — — "}.woocommerce-search-list__list .woocommerce-search-list__item.depth-0 .woocommerce-search-list__item-label:before{margin-right:0;content:""}.woocommerce-search-list__list .woocommerce-search-list__item.depth-1 .woocommerce-search-list__item-label:before{content:"— "}.woocommerce-search-list__list .woocommerce-search-list__item.depth-2 .woocommerce-search-list__item-label:before{content:"— — "}.woocommerce-search-list__list .woocommerce-search-list__item.depth-3 .woocommerce-search-list__item-label:before{content:"— — — "}.woocommerce-search-list__list .woocommerce-search-list__item.depth-4 .woocommerce-search-list__item-label:before{content:"— — — — "}.woocommerce-search-list__list .woocommerce-search-list__item .woocommerce-search-list__item-name{display:inline-block}.woocommerce-search-list__list .woocommerce-search-list__item .woocommerce-search-list__item-prefix{display:none;color:#6c7781}.woocommerce-search-list__list .woocommerce-search-list__item.is-searching .woocommerce-search-list__item-label,.woocommerce-search-list__list .woocommerce-search-list__item.is-skip-level .woocommerce-search-list__item-label{display:inline-block}.woocommerce-search-list__list .woocommerce-search-list__item.is-searching .woocommerce-search-list__item-prefix,.woocommerce-search-list__list .woocommerce-search-list__item.is-skip-level .woocommerce-search-list__item-prefix{display:inline}.woocommerce-search-list__list .woocommerce-search-list__item.is-searching .woocommerce-search-list__item-prefix:after,.woocommerce-search-list__list .woocommerce-search-list__item.is-skip-level .woocommerce-search-list__item-prefix:after{margin-right:4px;content:" ›"}.woocommerce-search-list__list .woocommerce-search-list__item.is-searching .woocommerce-search-list__item-name{color:#191e23}.woocommerce-search-list__list .woocommerce-search-list__item .woocommerce-search-list__item-count{flex:0;padding:2px 8px;border:1px solid #e2e4e7;border-radius:12px;font-size:.8em;line-height:1.4;color:#6c7781;background:#fff}.components-panel .woocommerce-search-list{padding:0}.components-panel .woocommerce-search-list__selected{margin:0 0 16px;padding:0;border-top:none;min-height:54px}.components-panel .woocommerce-search-list__search{margin:0 0 16px;padding:0;border-top:none}
build/featured-product.js ADDED
@@ -0,0 +1 @@
 
1
+ !function(e,t){for(var n in t)e[n]=t[n]}(this,function(e){function t(t){for(var r,s,a=t[0],i=t[1],l=t[2],d=0,b=[];d<a.length;d++)s=a[d],o[s]&&b.push(o[s][0]),o[s]=0;for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r]);for(u&&u(t);b.length;)b.shift()();return c.push.apply(c,l||[]),n()}function n(){for(var e,t=0;t<c.length;t++){for(var n=c[t],r=!0,a=1;a<n.length;a++){var i=n[a];0!==o[i]&&(r=!1)}r&&(c.splice(t--,1),e=s(s.s=n[0]))}return e}var r={},o={1:0},c=[];function s(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,s),n.l=!0,n.exports}s.m=e,s.c=r,s.d=function(e,t,n){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(e,t){if(1&t&&(e=s(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(s.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)s.d(n,r,function(t){return e[t]}.bind(null,r));return n},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="";var a=window.webpackJsonp=window.webpackJsonp||[],i=a.push.bind(a);a.push=t,a=a.slice();for(var l=0;l<a.length;l++)t(a[l]);var u=i;return c.push([869,0]),n()}({0:function(e,t){!function(){e.exports=this.wp.element}()},14:function(e,t){!function(){e.exports=this.wp.compose}()},16:function(e,t){!function(){e.exports=this.wp.apiFetch}()},17:function(e,t,n){"use strict";var r=n(0),o=n(3),c=function(){return Object(r.createElement)(o.Icon,{icon:Object(r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(r.createElement)("path",{fill:"#1E8CBE",d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}))})},s=function(){return Object(r.createElement)(o.Icon,{icon:Object(r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(r.createElement)("path",{fill:"#6C7781",d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}))})},a=function(){return Object(r.createElement)(o.Icon,{icon:Object(r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(r.createElement)("path",{d:"M0 0h24v24H0z",fill:"none"}),Object(r.createElement)("path",{d:"M23 12l-2.44-2.78.34-3.68-3.61-.82-1.89-3.18L12 3 8.6 1.54 6.71 4.72l-3.61.81.34 3.68L1 12l2.44 2.78-.34 3.69 3.61.82 1.89 3.18L12 21l3.4 1.46 1.89-3.18 3.61-.82-.34-3.68L23 12zm-10 5h-2v-2h2v2zm0-4h-2V7h2v6z"}))})},i=function(){return Object(r.createElement)(o.Icon,{icon:Object(r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(r.createElement)("path",{fill:"#1E8CBE",d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}))})},l=function(){return Object(r.createElement)(o.Icon,{icon:Object(r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(r.createElement)("path",{fill:"#6C7781",d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}))})},u=function(){return Object(r.createElement)(o.Icon,{icon:Object(r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(r.createElement)("path",{d:"M13 13v8h8v-8h-8zM3 21h8v-8H3v8zM3 3v8h8V3H3zm13.66-1.31L11 7.34 16.66 13l5.66-5.66-5.66-5.65z"}),Object(r.createElement)("path",{d:"M0 0h24v24H0z",fill:"none"}))})};n.d(t,"a",function(){return c}),n.d(t,"b",function(){return s}),n.d(t,"c",function(){return a}),n.d(t,"d",function(){return i}),n.d(t,"e",function(){return l}),n.d(t,"f",function(){return u})},177:function(e,t,n){var r=n(178);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(28)(r,o);r.locals&&(e.exports=r.locals)},178:function(e,t,n){},181:function(e,t){!function(){e.exports=this.wp.data}()},2:function(e,t){!function(){e.exports=this.wp.i18n}()},220:function(e,t,n){var r={"./af":46,"./af.js":46,"./ar":47,"./ar-dz":48,"./ar-dz.js":48,"./ar-kw":49,"./ar-kw.js":49,"./ar-ly":50,"./ar-ly.js":50,"./ar-ma":51,"./ar-ma.js":51,"./ar-sa":52,"./ar-sa.js":52,"./ar-tn":53,"./ar-tn.js":53,"./ar.js":47,"./az":54,"./az.js":54,"./be":55,"./be.js":55,"./bg":56,"./bg.js":56,"./bm":57,"./bm.js":57,"./bn":58,"./bn.js":58,"./bo":59,"./bo.js":59,"./br":60,"./br.js":60,"./bs":61,"./bs.js":61,"./ca":62,"./ca.js":62,"./cs":63,"./cs.js":63,"./cv":64,"./cv.js":64,"./cy":65,"./cy.js":65,"./da":66,"./da.js":66,"./de":67,"./de-at":68,"./de-at.js":68,"./de-ch":69,"./de-ch.js":69,"./de.js":67,"./dv":70,"./dv.js":70,"./el":71,"./el.js":71,"./en-au":72,"./en-au.js":72,"./en-ca":73,"./en-ca.js":73,"./en-gb":74,"./en-gb.js":74,"./en-ie":75,"./en-ie.js":75,"./en-il":76,"./en-il.js":76,"./en-nz":77,"./en-nz.js":77,"./eo":78,"./eo.js":78,"./es":79,"./es-do":80,"./es-do.js":80,"./es-us":81,"./es-us.js":81,"./es.js":79,"./et":82,"./et.js":82,"./eu":83,"./eu.js":83,"./fa":84,"./fa.js":84,"./fi":85,"./fi.js":85,"./fo":86,"./fo.js":86,"./fr":87,"./fr-ca":88,"./fr-ca.js":88,"./fr-ch":89,"./fr-ch.js":89,"./fr.js":87,"./fy":90,"./fy.js":90,"./gd":91,"./gd.js":91,"./gl":92,"./gl.js":92,"./gom-latn":93,"./gom-latn.js":93,"./gu":94,"./gu.js":94,"./he":95,"./he.js":95,"./hi":96,"./hi.js":96,"./hr":97,"./hr.js":97,"./hu":98,"./hu.js":98,"./hy-am":99,"./hy-am.js":99,"./id":100,"./id.js":100,"./is":101,"./is.js":101,"./it":102,"./it.js":102,"./ja":103,"./ja.js":103,"./jv":104,"./jv.js":104,"./ka":105,"./ka.js":105,"./kk":106,"./kk.js":106,"./km":107,"./km.js":107,"./kn":108,"./kn.js":108,"./ko":109,"./ko.js":109,"./ky":110,"./ky.js":110,"./lb":111,"./lb.js":111,"./lo":112,"./lo.js":112,"./lt":113,"./lt.js":113,"./lv":114,"./lv.js":114,"./me":115,"./me.js":115,"./mi":116,"./mi.js":116,"./mk":117,"./mk.js":117,"./ml":118,"./ml.js":118,"./mn":119,"./mn.js":119,"./mr":120,"./mr.js":120,"./ms":121,"./ms-my":122,"./ms-my.js":122,"./ms.js":121,"./mt":123,"./mt.js":123,"./my":124,"./my.js":124,"./nb":125,"./nb.js":125,"./ne":126,"./ne.js":126,"./nl":127,"./nl-be":128,"./nl-be.js":128,"./nl.js":127,"./nn":129,"./nn.js":129,"./pa-in":130,"./pa-in.js":130,"./pl":131,"./pl.js":131,"./pt":132,"./pt-br":133,"./pt-br.js":133,"./pt.js":132,"./ro":134,"./ro.js":134,"./ru":135,"./ru.js":135,"./sd":136,"./sd.js":136,"./se":137,"./se.js":137,"./si":138,"./si.js":138,"./sk":139,"./sk.js":139,"./sl":140,"./sl.js":140,"./sq":141,"./sq.js":141,"./sr":142,"./sr-cyrl":143,"./sr-cyrl.js":143,"./sr.js":142,"./ss":144,"./ss.js":144,"./sv":145,"./sv.js":145,"./sw":146,"./sw.js":146,"./ta":147,"./ta.js":147,"./te":148,"./te.js":148,"./tet":149,"./tet.js":149,"./tg":150,"./tg.js":150,"./th":151,"./th.js":151,"./tl-ph":152,"./tl-ph.js":152,"./tlh":153,"./tlh.js":153,"./tr":154,"./tr.js":154,"./tzl":155,"./tzl.js":155,"./tzm":156,"./tzm-latn":157,"./tzm-latn.js":157,"./tzm.js":156,"./ug-cn":158,"./ug-cn.js":158,"./uk":159,"./uk.js":159,"./ur":160,"./ur.js":160,"./uz":161,"./uz-latn":162,"./uz-latn.js":162,"./uz.js":161,"./vi":163,"./vi.js":163,"./x-pseudo":164,"./x-pseudo.js":164,"./yo":165,"./yo.js":165,"./zh-cn":166,"./zh-cn.js":166,"./zh-hk":167,"./zh-hk.js":167,"./zh-tw":168,"./zh-tw.js":168};function o(e){var t=c(e);return n(t)}function c(e){var t=r[e];if(!(t+1)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return t}o.keys=function(){return Object.keys(r)},o.resolve=c,e.exports=o,o.id=220},223:function(e,t){},224:function(e,t){},226:function(e,t){},227:function(e,t){},23:function(e,t){!function(){e.exports=this.wp.url}()},24:function(e,t,n){"use strict";var r=n(27),o=n.n(r),c=n(172),s=n.n(c),a=n(0),i=n(4),l=n(3),u=n(1),d=n.n(u),b=n(17);function m(e,t){if(!t)return e;var n=new RegExp(Object(i.escapeRegExp)(t),"ig");return e.replace(n,"<strong>$&</strong>")}var p=function(e){var t=e.className,n=e.depth,r=void 0===n?0:n,c=e.item,u=e.isSelected,d=e.isSingle,p=e.onSelect,h=e.search,j=void 0===h?"":h,g=e.showCount,f=void 0!==g&&g,v=s()(e,["className","depth","item","isSelected","isSingle","onSelect","search","showCount"]),O=[t,"woocommerce-search-list__item"];O.push("depth-".concat(r)),d&&O.push("is-radio-button");var w,k=c.breadcrumbs&&c.breadcrumbs.length;return Object(a.createElement)(l.MenuItem,o()({role:"menuitemcheckbox",className:O.join(" "),onClick:p(c),isSelected:u},v),Object(a.createElement)("span",{className:"woocommerce-search-list__item-state"},function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?t?Object(a.createElement)(b.d,null):Object(a.createElement)(b.e,null):t?Object(a.createElement)(b.a,null):Object(a.createElement)(b.b,null)}(d,u)),Object(a.createElement)("span",{className:"woocommerce-search-list__item-label"},k?Object(a.createElement)("span",{className:"woocommerce-search-list__item-prefix"},1===(w=c.breadcrumbs).length?Object(i.first)(w):2===w.length?Object(i.first)(w)+" › "+Object(i.last)(w):Object(i.first)(w)+" … "+Object(i.last)(w)):null,Object(a.createElement)("span",{className:"woocommerce-search-list__item-name",dangerouslySetInnerHTML:{__html:m(c.name,j)}})),!!f&&Object(a.createElement)("span",{className:"woocommerce-search-list__item-count"},c.count))};p.propTypes={className:d.a.string,depth:d.a.number,item:d.a.object,isSelected:d.a.bool,isSingle:d.a.bool,onSelect:d.a.func,search:d.a.string,showCount:d.a.bool},t.a=p},25:function(e,t){!function(){e.exports=this.wp.editor}()},3:function(e,t){!function(){e.exports=this.wp.components}()},31:function(e,t){!function(){e.exports=this.wp.blocks}()},32:function(e,t,n){"use strict";var r=n(13),o=n.n(r),c=n(15),s=n.n(c),a=n(8),i=n.n(a),l=n(9),u=n.n(l),d=n(10),b=n.n(d),m=n(11),p=n.n(m),h=n(12),j=n.n(h),g=n(5),f=n.n(g),v=n(0),O=n(2),w=n(3),k=n(14),_=n(4),y=n(19),E=n.n(y),S=n(1),C=n.n(S),x=n(173);n(177);function I(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=Object(_.groupBy)(e,"parent"),r=Object(_.keyBy)(t,"id"),c=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!t.parent)return t.name?[t.name]:[];var n=e(r[t.parent]);return[].concat(s()(n),[t.name])},a=function e(t){return t.map(function(t){var s=n[t.id];return delete n[t.id],o()({},t,{breadcrumbs:c(r[t.parent]),children:s&&s.length?e(s):[]})})},i=a(n[0]||[]);return delete n[0],Object(_.forEach)(n,function(e){i.push.apply(i,s()(a(e||[])))}),i}var z=n(24),N={clear:Object(O.__)("Clear all selected items","woo-gutenberg-products-block"),list:Object(O.__)("Results","woo-gutenberg-products-block"),noItems:Object(O.__)("No items found.","woo-gutenberg-products-block"),noResults:Object(O.__)("No results for %s","woo-gutenberg-products-block"),search:Object(O.__)("Search for items","woo-gutenberg-products-block"),selected:function(e){return Object(O.sprintf)(Object(O._n)("%d item selected","%d items selected",e,"woo-gutenberg-products-block"),e)},updated:Object(O.__)("Search results updated.","woo-gutenberg-products-block")},M=function(e){function t(){var e;return i()(this,t),(e=b()(this,p()(t).apply(this,arguments))).onSelect=e.onSelect.bind(f()(f()(e))),e.onRemove=e.onRemove.bind(f()(f()(e))),e.onClear=e.onClear.bind(f()(f()(e))),e.isSelected=e.isSelected.bind(f()(f()(e))),e.defaultRenderItem=e.defaultRenderItem.bind(f()(f()(e))),e.renderList=e.renderList.bind(f()(f()(e))),e}return j()(t,e),u()(t,[{key:"onRemove",value:function(e){var t=this.props,n=t.isSingle,r=t.onChange,o=t.selected;return function(){n&&r([]);var t=Object(_.findIndex)(o,{id:e});r([].concat(s()(o.slice(0,t)),s()(o.slice(t+1))))}}},{key:"onSelect",value:function(e){var t=this,n=this.props,r=n.isSingle,o=n.onChange,c=n.selected;return function(){t.isSelected(e)?t.onRemove(e.id)():o(r?[e]:[].concat(s()(c),[e]))}}},{key:"onClear",value:function(){this.props.onChange([])}},{key:"isSelected",value:function(e){return-1!==Object(_.findIndex)(this.props.selected,{id:e.id})}},{key:"getFilteredList",value:function(e,t){var n=this.props.isHierarchical;if(!t)return n?I(e):e;var r=o()({},N,this.props.messages),c=new RegExp(Object(_.escapeRegExp)(t),"i");this.props.debouncedSpeak(r.updated);var s=e.map(function(e){return!!c.test(e.name)&&e}).filter(Boolean);return n?I(s,e):s}},{key:"defaultRenderItem",value:function(e){return Object(v.createElement)(z.a,e)}},{key:"renderList",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=this.props,o=r.isSingle,c=r.search,s=this.props.renderItem||this.defaultRenderItem;return e?e.map(function(e){return Object(v.createElement)(v.Fragment,{key:e.id},s({item:e,isSelected:t.isSelected(e),onSelect:t.onSelect,isSingle:o,search:c,depth:n}),t.renderList(e.children,n+1))}):null}},{key:"renderListSection",value:function(){var e=this.props,t=e.isLoading,n=e.search,r=this.getFilteredList(this.props.list,n),c=o()({},N,this.props.messages);return t?Object(v.createElement)("div",{className:"woocommerce-search-list__list is-loading"},Object(v.createElement)(w.Spinner,null)):r.length?Object(v.createElement)(w.MenuGroup,{label:c.list,className:"woocommerce-search-list__list"},this.renderList(r)):Object(v.createElement)("div",{className:"woocommerce-search-list__list is-not-found"},Object(v.createElement)("span",{className:"woocommerce-search-list__not-found-icon"},Object(v.createElement)(E.a,{icon:"notice-outline",role:"img","aria-hidden":"true",focusable:"false"})),Object(v.createElement)("span",{className:"woocommerce-search-list__not-found-text"},n?Object(O.sprintf)(c.noResults,n):c.noItems))}},{key:"renderSelectedSection",value:function(){var e=this,t=this.props,n=t.isLoading,r=t.isSingle,c=t.selected,s=o()({},N,this.props.messages);if(n||r||!c)return null;var a=c.length;return Object(v.createElement)("div",{className:"woocommerce-search-list__selected"},Object(v.createElement)("div",{className:"woocommerce-search-list__selected-header"},Object(v.createElement)("strong",null,s.selected(a)),a>0?Object(v.createElement)(w.Button,{isLink:!0,isDestructive:!0,onClick:this.onClear,"aria-label":s.clear},Object(O.__)("Clear all","woo-gutenberg-products-block")):null),c.map(function(t,n){return Object(v.createElement)(x.a,{key:n,label:t.name,id:t.id,remove:e.onRemove})}))}},{key:"render",value:function(){var e=this.props,t=e.className,n=void 0===t?"":t,r=e.search,c=e.setState,s=o()({},N,this.props.messages);return Object(v.createElement)("div",{className:"woocommerce-search-list ".concat(n)},this.renderSelectedSection(),Object(v.createElement)("div",{className:"woocommerce-search-list__search"},Object(v.createElement)(w.TextControl,{label:s.search,type:"search",value:r,onChange:function(e){return c({search:e})}})),this.renderListSection())}}]),t}(v.Component);M.propTypes={className:C.a.string,isHierarchical:C.a.bool,isLoading:C.a.bool,isSingle:C.a.bool,list:C.a.arrayOf(C.a.shape({id:C.a.number,name:C.a.string})),messages:C.a.shape({clear:C.a.string,list:C.a.string,noItems:C.a.string,noResults:C.a.string,search:C.a.string,selected:C.a.func,updated:C.a.string}),onChange:C.a.func.isRequired,renderItem:C.a.func,selected:C.a.array.isRequired,search:C.a.string,setState:C.a.func,debouncedSpeak:C.a.func,instanceId:C.a.number};t.a=Object(k.compose)([Object(k.withState)({search:""}),w.withSpokenMessages,k.withInstanceId])(M)},4:function(e,t){!function(){e.exports=this.lodash}()},865:function(e,t,n){var r=n(866);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(28)(r,o);r.locals&&(e.exports=r.locals)},866:function(e,t,n){},869:function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(2),c=n(31),s=(n(865),n(8)),a=n.n(s),i=n(9),l=n.n(i),u=n(10),d=n.n(u),b=n(11),m=n.n(b),p=n(12),h=n.n(p),j=n(5),g=n.n(j),f=n(16),v=n.n(f),O=n(25),w=n(3),k=n(7),_=n.n(k),y=n(14),E=n(4),S=n(1),C=n.n(S),x=n(23),I=n(32),z=function(e){function t(){var e;return a()(this,t),(e=d()(this,m()(t).apply(this,arguments))).state={list:[],loading:!0},e}return h()(t,e),l()(t,[{key:"componentDidMount",value:function(){var e=this;v()({path:Object(x.addQueryArgs)("/wc-pb/v3/products",{per_page:-1,status:"publish"})}).then(function(t){e.setState({list:t,loading:!1})}).catch(function(){e.setState({list:[],loading:!1})})}},{key:"render",value:function(){var e=this.state,t=e.list,n=e.loading,c=this.props,s=c.onChange,a=c.selected,i={list:Object(o.__)("Products","woo-gutenberg-products-block"),noItems:Object(o.__)("Your store doesn't have any products.","woo-gutenberg-products-block"),search:Object(o.__)("Search for a product to display","woo-gutenberg-products-block"),updated:Object(o.__)("Product search results updated.","woo-gutenberg-products-block")};return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(I.a,{className:"woocommerce-products",list:t,isLoading:n,isSingle:!0,selected:[Object(E.find)(t,{id:a})],onChange:s,messages:i}))}}]),t}(r.Component);z.propTypes={onChange:C.a.func.isRequired,selected:C.a.number.isRequired};var N=z;var M=function(e){function t(){var e;return a()(this,t),(e=d()(this,m()(t).apply(this,arguments))).state={product:!1,loaded:!1},e.debouncedGetProduct=Object(E.debounce)(e.getProduct.bind(g()(g()(e))),200),e}return h()(t,e),l()(t,[{key:"componentDidMount",value:function(){this.getProduct()}},{key:"componentDidUpdate",value:function(e){e.attributes.productId!==this.props.attributes.productId&&this.debouncedGetProduct()}},{key:"getProduct",value:function(){var e=this,t=this.props.attributes.productId;t?v()({path:"/wc-pb/v3/products/".concat(t)}).then(function(t){e.setState({product:t,loaded:!0})}).catch(function(){e.setState({product:!1,loaded:!0})}):this.setState({product:!1,loaded:!0})}},{key:"getInspectorControls",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,c=e.overlayColor,s=e.setOverlayColor;return Object(r.createElement)(O.InspectorControls,{key:"inspector"},Object(r.createElement)(w.PanelBody,{title:Object(o.__)("Product","woo-gutenberg-products-block"),initialOpen:!1},Object(r.createElement)(N,{selected:t.productId||0,onChange:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e[0]?e[0].id:0;n({productId:t,mediaId:0,mediaSrc:""})}})),Object(r.createElement)(w.PanelBody,{title:Object(o.__)("Content","woo-gutenberg-products-block")},Object(r.createElement)(w.ToggleControl,{label:"Show description",checked:t.showDesc,onChange:function(){return n({showDesc:!t.showDesc})}}),Object(r.createElement)(w.ToggleControl,{label:"Show price",checked:t.showPrice,onChange:function(){return n({showPrice:!t.showPrice})}})),Object(r.createElement)(O.PanelColorSettings,{title:Object(o.__)("Overlay","woo-gutenberg-products-block"),colorSettings:[{value:c.color,onChange:s,label:Object(o.__)("Overlay Color","woo-gutenberg-products-block")}]},Object(r.createElement)(w.RangeControl,{label:Object(o.__)("Background Opacity","woo-gutenberg-products-block"),value:t.dimRatio,onChange:function(e){return n({dimRatio:e})},min:0,max:100,step:10})))}},{key:"renderEditMode",value:function(){var e=this.props,t=e.attributes,n=e.debouncedSpeak,c=e.setAttributes;return Object(r.createElement)(w.Placeholder,{icon:"star-filled",label:Object(o.__)("Featured Product","woo-gutenberg-products-block"),className:"wc-block-featured-product"},Object(o.__)("Visually highlight a product and encourage prompt action","woo-gutenberg-products-block"),Object(r.createElement)("div",{className:"wc-block-handpicked-products__selection"},Object(r.createElement)(N,{selected:t.productId||0,onChange:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e[0]?e[0].id:0;c({productId:t,mediaId:0,mediaSrc:""})}}),Object(r.createElement)(w.Button,{isDefault:!0,onClick:function(){c({editMode:!1}),n(Object(o.__)("Showing Featured Product block preview.","woo-gutenberg-products-block"))}},Object(o.__)("Done","woo-gutenberg-products-block"))))}},{key:"render",value:function(){var e,t,n,c=this.props,s=c.attributes,a=c.setAttributes,i=c.overlayColor,l=s.contentAlign,u=s.dimRatio,d=s.editMode,b=s.linkText,m=s.showDesc,p=s.showPrice,h=this.state,j=h.loaded,g=h.product,f=_()("wc-block-featured-product",{"is-loading":!g&&!j,"is-not-found":!g&&j,"has-background-dim":0!==u},0===(e=u)||50===e?null:"has-background-dim-".concat(10*Math.round(e/10)),"center"!==l&&"has-".concat(l,"-content")),v=s.mediaId||(t=g.images,(n=void 0===t?[]:t).length&&n[0].id||0),k=g?function(e){var t,n;return Object(E.isObject)(e)&&(t=e.images,e=(n=void 0===t?[]:t).length&&n[0].src||""),e?{backgroundImage:"url(".concat(e,")")}:{}}(s.mediaSrc||g):{};return i.color&&(k.backgroundColor=i.color),Object(r.createElement)(r.Fragment,null,Object(r.createElement)(O.BlockControls,null,Object(r.createElement)(O.AlignmentToolbar,{value:l,onChange:function(e){a({contentAlign:e})}}),Object(r.createElement)(w.Toolbar,{controls:[{icon:"edit",title:Object(o.__)("Edit"),onClick:function(){return a({editMode:!d})},isActive:d}]}),Object(r.createElement)(O.MediaUploadCheck,null,Object(r.createElement)(w.Toolbar,null,Object(r.createElement)(O.MediaUpload,{onSelect:function(e){a({mediaId:e.id,mediaSrc:e.url})},allowedTypes:["image"],value:v,render:function(e){var t=e.open;return Object(r.createElement)(w.IconButton,{className:"components-toolbar__control",label:Object(o.__)("Edit media"),icon:"format-image",onClick:t})}})))),!s.editMode&&this.getInspectorControls(),d?this.renderEditMode():Object(r.createElement)(r.Fragment,null,g?Object(r.createElement)("div",{className:f,style:k},Object(r.createElement)("h2",{className:"wc-block-featured-product__title"},g.name),m&&Object(r.createElement)("div",{className:"wc-block-featured-product__description",dangerouslySetInnerHTML:{__html:g.short_description}}),p&&Object(r.createElement)("div",{className:"wc-block-featured-product__price",dangerouslySetInnerHTML:{__html:g.price_html}}),Object(r.createElement)("div",{className:"wc-block-featured-product__link wp-block-button"},Object(r.createElement)(O.RichText,{value:b,onChange:function(e){return a({linkText:e})},formattingControls:["bold","italic","strikethrough"],className:"wp-block-button__link",keepPlaceholderOnFocus:!0}))):Object(r.createElement)(w.Placeholder,{className:"wc-block-featured-product",icon:"star-filled",label:Object(o.__)("Featured Product","woo-gutenberg-products-block")},j?Object(o.__)("No product is selected.","woo-gutenberg-products-block"):Object(r.createElement)(w.Spinner,null))))}}]),t}(r.Component);M.propTypes={attributes:C.a.object.isRequired,name:C.a.string.isRequired,setAttributes:C.a.func.isRequired,overlayColor:C.a.object,setOverlayColor:C.a.func.isRequired,debouncedSpeak:C.a.func.isRequired};var R=Object(y.compose)([Object(O.withColors)({overlayColor:"background-color"}),w.withSpokenMessages])(M);Object(c.registerBlockType)("woocommerce/featured-product",{title:Object(o.__)("Featured Product","woo-gutenberg-products-block"),icon:"star-filled",category:"woocommerce",keywords:[Object(o.__)("WooCommerce","woo-gutenberg-products-block")],description:Object(o.__)("Visually highlight a product and encourage prompt action.","woo-gutenberg-products-block"),supports:{align:["wide","full"]},attributes:{contentAlign:{type:"string",default:"center"},dimRatio:{type:"number",default:50},editMode:{type:"boolean",default:!0},mediaId:{type:"number",default:0},mediaSrc:{type:"string",default:""},overlayColor:{type:"string"},customOverlayColor:{type:"string"},linkText:{type:"string",default:Object(o.__)("Shop now","woo-gutenberg-products-block")},productId:{type:"number"},showDesc:{type:"boolean",default:!0},showPrice:{type:"boolean",default:!0}},edit:function(e){return Object(r.createElement)(R,e)},save:function(){return null}})}}));
build/handpicked-products.css ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ .wc-block-handpicked-products__selection{width:100%}
2
+ @charset "UTF-8";.woocommerce-search-list{width:100%;padding:0 0 16px;text-align:left}.woocommerce-search-list__selected{margin:16px 0;padding:16px 0 0;min-height:76px;border-top:1px solid #e2e4e7}.woocommerce-search-list__selected .woocommerce-search-list__selected-header{margin-bottom:8px}.woocommerce-search-list__selected .woocommerce-search-list__selected-header button{margin-left:12px}.woocommerce-search-list__selected .woocommerce-tag__text{max-width:13em}.woocommerce-search-list__search{margin:16px 0;padding:16px 0 0;border-top:1px solid #e2e4e7}.woocommerce-search-list__search .components-base-control__field{margin-bottom:16px}.woocommerce-search-list__list{padding:0;max-height:17em;overflow-x:hidden;overflow-y:auto;border-top:1px solid #e2e4e7;border-bottom:1px solid #e2e4e7}.woocommerce-search-list__list.is-loading,.woocommerce-search-list__list.is-not-found{padding:12px 0;text-align:center;border:none}.woocommerce-search-list__list.is-not-found .woocommerce-search-list__not-found-icon,.woocommerce-search-list__list.is-not-found .woocommerce-search-list__not-found-text{display:inline-block}.woocommerce-search-list__list.is-not-found .woocommerce-search-list__not-found-icon{margin-right:16px}.woocommerce-search-list__list.is-not-found .woocommerce-search-list__not-found-icon .gridicon{vertical-align:top;margin-top:-1px}.woocommerce-search-list__list .components-spinner{float:none}.woocommerce-search-list__list .components-menu-group__label{clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;width:1px;margin:-1px;overflow:hidden;overflow-wrap:normal!important;word-wrap:normal!important}.woocommerce-search-list__list>[role=menu]{border:1px solid #e2e4e7;border-bottom:none}.woocommerce-search-list__list .woocommerce-search-list__item{display:flex;align-items:center;margin-bottom:0;padding:12px 16px;background:#fff;border-bottom:1px solid #e2e4e7!important;color:#555d66}.woocommerce-search-list__list .woocommerce-search-list__item:active,.woocommerce-search-list__list .woocommerce-search-list__item:focus,.woocommerce-search-list__list .woocommerce-search-list__item:hover{background:#f8f9f9}.woocommerce-search-list__list .woocommerce-search-list__item:last-child{border-bottom:none!important}.woocommerce-search-list__list .woocommerce-search-list__item .woocommerce-search-list__item-state{flex:0 0 16px;margin-right:8px;height:24px}.woocommerce-search-list__list .woocommerce-search-list__item .woocommerce-search-list__item-label{display:flex;flex:1}.woocommerce-search-list__list .woocommerce-search-list__item[class*=depth-] .woocommerce-search-list__item-label:before{margin-right:4px;content:"— — — — — "}.woocommerce-search-list__list .woocommerce-search-list__item.depth-0 .woocommerce-search-list__item-label:before{margin-right:0;content:""}.woocommerce-search-list__list .woocommerce-search-list__item.depth-1 .woocommerce-search-list__item-label:before{content:"— "}.woocommerce-search-list__list .woocommerce-search-list__item.depth-2 .woocommerce-search-list__item-label:before{content:"— — "}.woocommerce-search-list__list .woocommerce-search-list__item.depth-3 .woocommerce-search-list__item-label:before{content:"— — — "}.woocommerce-search-list__list .woocommerce-search-list__item.depth-4 .woocommerce-search-list__item-label:before{content:"— — — — "}.woocommerce-search-list__list .woocommerce-search-list__item .woocommerce-search-list__item-name{display:inline-block}.woocommerce-search-list__list .woocommerce-search-list__item .woocommerce-search-list__item-prefix{display:none;color:#6c7781}.woocommerce-search-list__list .woocommerce-search-list__item.is-searching .woocommerce-search-list__item-label,.woocommerce-search-list__list .woocommerce-search-list__item.is-skip-level .woocommerce-search-list__item-label{display:inline-block}.woocommerce-search-list__list .woocommerce-search-list__item.is-searching .woocommerce-search-list__item-prefix,.woocommerce-search-list__list .woocommerce-search-list__item.is-skip-level .woocommerce-search-list__item-prefix{display:inline}.woocommerce-search-list__list .woocommerce-search-list__item.is-searching .woocommerce-search-list__item-prefix:after,.woocommerce-search-list__list .woocommerce-search-list__item.is-skip-level .woocommerce-search-list__item-prefix:after{margin-right:4px;content:" ›"}.woocommerce-search-list__list .woocommerce-search-list__item.is-searching .woocommerce-search-list__item-name{color:#191e23}.woocommerce-search-list__list .woocommerce-search-list__item .woocommerce-search-list__item-count{flex:0;padding:2px 8px;border:1px solid #e2e4e7;border-radius:12px;font-size:.8em;line-height:1.4;color:#6c7781;background:#fff}.components-panel .woocommerce-search-list{padding:0}.components-panel .woocommerce-search-list__selected{margin:0 0 16px;padding:0;border-top:none;min-height:54px}.components-panel .woocommerce-search-list__search{margin:0 0 16px;padding:0;border-top:none}
3
+ .wc-product-preview{text-align:center;margin-bottom:16px}.wc-product-preview .wc-product-preview__price,.wc-product-preview .wc-product-preview__title{margin-top:4px}.wc-product-preview .wp-block-button{margin-bottom:0}.wc-product-preview .wc-product-preview__add-to-cart{cursor:text;margin:12px 0 0}.cols-4 .wc-product-preview .wc-product-preview__title,.cols-5 .wc-product-preview .wc-product-preview__title,.cols-6 .wc-product-preview .wc-product-preview__title{font-size:.9em;line-height:1.2}.cols-4 .wc-product-preview .wc-product-preview__price,.cols-5 .wc-product-preview .wc-product-preview__price,.cols-6 .wc-product-preview .wc-product-preview__price{font-size:.8em}.cols-4 .wc-product-preview .wc-product-preview__add-to-cart,.cols-5 .wc-product-preview .wc-product-preview__add-to-cart,.cols-6 .wc-product-preview .wc-product-preview__add-to-cart{font-size:.7em!important;line-height:1.4!important}.editor-block-preview .wc-product-preview .wc-product-preview__title{font-size:.7em;line-height:1.2}.editor-block-preview .wc-product-preview .wc-product-preview__price{font-size:.6em}.editor-block-preview .wc-product-preview .wc-product-preview__add-to-cart{font-size:.6em!important}
build/handpicked-products.js ADDED
@@ -0,0 +1 @@
 
1
+ !function(e,t){for(var r in t)e[r]=t[r]}(this,function(e){function t(t){for(var n,s,a=t[0],i=t[1],l=t[2],d=0,p=[];d<a.length;d++)s=a[d],c[s]&&p.push(c[s][0]),c[s]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(u&&u(t);p.length;)p.shift()();return o.push.apply(o,l||[]),r()}function r(){for(var e,t=0;t<o.length;t++){for(var r=o[t],n=!0,a=1;a<r.length;a++){var i=r[a];0!==c[i]&&(n=!1)}n&&(o.splice(t--,1),e=s(s.s=r[0]))}return e}var n={},c={2:0},o=[];function s(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,s),r.l=!0,r.exports}s.m=e,s.c=n,s.d=function(e,t,r){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(e,t){if(1&t&&(e=s(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(s.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)s.d(r,n,function(t){return e[t]}.bind(null,n));return r},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="";var a=window.webpackJsonp=window.webpackJsonp||[],i=a.push.bind(a);a.push=t,a=a.slice();for(var l=0;l<a.length;l++)t(a[l]);var u=i;return o.push([871,0]),r()}({0:function(e,t){!function(){e.exports=this.wp.element}()},14:function(e,t){!function(){e.exports=this.wp.compose}()},16:function(e,t){!function(){e.exports=this.wp.apiFetch}()},17:function(e,t,r){"use strict";var n=r(0),c=r(3),o=function(){return Object(n.createElement)(c.Icon,{icon:Object(n.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(n.createElement)("path",{fill:"#1E8CBE",d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}))})},s=function(){return Object(n.createElement)(c.Icon,{icon:Object(n.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(n.createElement)("path",{fill:"#6C7781",d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}))})},a=function(){return Object(n.createElement)(c.Icon,{icon:Object(n.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(n.createElement)("path",{d:"M0 0h24v24H0z",fill:"none"}),Object(n.createElement)("path",{d:"M23 12l-2.44-2.78.34-3.68-3.61-.82-1.89-3.18L12 3 8.6 1.54 6.71 4.72l-3.61.81.34 3.68L1 12l2.44 2.78-.34 3.69 3.61.82 1.89 3.18L12 21l3.4 1.46 1.89-3.18 3.61-.82-.34-3.68L23 12zm-10 5h-2v-2h2v2zm0-4h-2V7h2v6z"}))})},i=function(){return Object(n.createElement)(c.Icon,{icon:Object(n.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(n.createElement)("path",{fill:"#1E8CBE",d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}))})},l=function(){return Object(n.createElement)(c.Icon,{icon:Object(n.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(n.createElement)("path",{fill:"#6C7781",d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}))})},u=function(){return Object(n.createElement)(c.Icon,{icon:Object(n.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(n.createElement)("path",{d:"M13 13v8h8v-8h-8zM3 21h8v-8H3v8zM3 3v8h8V3H3zm13.66-1.31L11 7.34 16.66 13l5.66-5.66-5.66-5.65z"}),Object(n.createElement)("path",{d:"M0 0h24v24H0z",fill:"none"}))})};r.d(t,"a",function(){return o}),r.d(t,"b",function(){return s}),r.d(t,"c",function(){return a}),r.d(t,"d",function(){return i}),r.d(t,"e",function(){return l}),r.d(t,"f",function(){return u})},177:function(e,t,r){var n=r(178);"string"==typeof n&&(n=[[e.i,n,""]]);var c={hmr:!0,transform:void 0,insertInto:void 0};r(28)(n,c);n.locals&&(e.exports=n.locals)},178:function(e,t,r){},181:function(e,t){!function(){e.exports=this.wp.data}()},187:function(e,t,r){var n=r(188);"string"==typeof n&&(n=[[e.i,n,""]]);var c={hmr:!0,transform:void 0,insertInto:void 0};r(28)(n,c);n.locals&&(e.exports=n.locals)},188:function(e,t,r){},2:function(e,t){!function(){e.exports=this.wp.i18n}()},212:function(e,t,r){"use strict";var n=r(0),c=r(2),o=r(3),s=r(1),a=r.n(s),i=function(e){var t=e.value,r=e.setAttributes;return Object(n.createElement)(o.SelectControl,{label:Object(c.__)("Order products by","woo-gutenberg-products-block"),value:t,options:[{label:Object(c.__)("Newness - newest first","woo-gutenberg-products-block"),value:"date"},{label:Object(c.__)("Price - low to high","woo-gutenberg-products-block"),value:"price_asc"},{label:Object(c.__)("Price - high to low","woo-gutenberg-products-block"),value:"price_desc"},{label:Object(c.__)("Rating - highest first","woo-gutenberg-products-block"),value:"rating"},{label:Object(c.__)("Sales - most first","woo-gutenberg-products-block"),value:"popularity"},{label:Object(c.__)("Title - alphabetical","woo-gutenberg-products-block"),value:"title"},{label:Object(c.__)("Menu Order","woo-gutenberg-products-block"),value:"menu_order"}],onChange:function(e){return r({orderby:e})}})};i.propTypes={setAttributes:a.a.func.isRequired,value:a.a.string.isRequired},t.a=i},220:function(e,t,r){var n={"./af":46,"./af.js":46,"./ar":47,"./ar-dz":48,"./ar-dz.js":48,"./ar-kw":49,"./ar-kw.js":49,"./ar-ly":50,"./ar-ly.js":50,"./ar-ma":51,"./ar-ma.js":51,"./ar-sa":52,"./ar-sa.js":52,"./ar-tn":53,"./ar-tn.js":53,"./ar.js":47,"./az":54,"./az.js":54,"./be":55,"./be.js":55,"./bg":56,"./bg.js":56,"./bm":57,"./bm.js":57,"./bn":58,"./bn.js":58,"./bo":59,"./bo.js":59,"./br":60,"./br.js":60,"./bs":61,"./bs.js":61,"./ca":62,"./ca.js":62,"./cs":63,"./cs.js":63,"./cv":64,"./cv.js":64,"./cy":65,"./cy.js":65,"./da":66,"./da.js":66,"./de":67,"./de-at":68,"./de-at.js":68,"./de-ch":69,"./de-ch.js":69,"./de.js":67,"./dv":70,"./dv.js":70,"./el":71,"./el.js":71,"./en-au":72,"./en-au.js":72,"./en-ca":73,"./en-ca.js":73,"./en-gb":74,"./en-gb.js":74,"./en-ie":75,"./en-ie.js":75,"./en-il":76,"./en-il.js":76,"./en-nz":77,"./en-nz.js":77,"./eo":78,"./eo.js":78,"./es":79,"./es-do":80,"./es-do.js":80,"./es-us":81,"./es-us.js":81,"./es.js":79,"./et":82,"./et.js":82,"./eu":83,"./eu.js":83,"./fa":84,"./fa.js":84,"./fi":85,"./fi.js":85,"./fo":86,"./fo.js":86,"./fr":87,"./fr-ca":88,"./fr-ca.js":88,"./fr-ch":89,"./fr-ch.js":89,"./fr.js":87,"./fy":90,"./fy.js":90,"./gd":91,"./gd.js":91,"./gl":92,"./gl.js":92,"./gom-latn":93,"./gom-latn.js":93,"./gu":94,"./gu.js":94,"./he":95,"./he.js":95,"./hi":96,"./hi.js":96,"./hr":97,"./hr.js":97,"./hu":98,"./hu.js":98,"./hy-am":99,"./hy-am.js":99,"./id":100,"./id.js":100,"./is":101,"./is.js":101,"./it":102,"./it.js":102,"./ja":103,"./ja.js":103,"./jv":104,"./jv.js":104,"./ka":105,"./ka.js":105,"./kk":106,"./kk.js":106,"./km":107,"./km.js":107,"./kn":108,"./kn.js":108,"./ko":109,"./ko.js":109,"./ky":110,"./ky.js":110,"./lb":111,"./lb.js":111,"./lo":112,"./lo.js":112,"./lt":113,"./lt.js":113,"./lv":114,"./lv.js":114,"./me":115,"./me.js":115,"./mi":116,"./mi.js":116,"./mk":117,"./mk.js":117,"./ml":118,"./ml.js":118,"./mn":119,"./mn.js":119,"./mr":120,"./mr.js":120,"./ms":121,"./ms-my":122,"./ms-my.js":122,"./ms.js":121,"./mt":123,"./mt.js":123,"./my":124,"./my.js":124,"./nb":125,"./nb.js":125,"./ne":126,"./ne.js":126,"./nl":127,"./nl-be":128,"./nl-be.js":128,"./nl.js":127,"./nn":129,"./nn.js":129,"./pa-in":130,"./pa-in.js":130,"./pl":131,"./pl.js":131,"./pt":132,"./pt-br":133,"./pt-br.js":133,"./pt.js":132,"./ro":134,"./ro.js":134,"./ru":135,"./ru.js":135,"./sd":136,"./sd.js":136,"./se":137,"./se.js":137,"./si":138,"./si.js":138,"./sk":139,"./sk.js":139,"./sl":140,"./sl.js":140,"./sq":141,"./sq.js":141,"./sr":142,"./sr-cyrl":143,"./sr-cyrl.js":143,"./sr.js":142,"./ss":144,"./ss.js":144,"./sv":145,"./sv.js":145,"./sw":146,"./sw.js":146,"./ta":147,"./ta.js":147,"./te":148,"./te.js":148,"./tet":149,"./tet.js":149,"./tg":150,"./tg.js":150,"./th":151,"./th.js":151,"./tl-ph":152,"./tl-ph.js":152,"./tlh":153,"./tlh.js":153,"./tr":154,"./tr.js":154,"./tzl":155,"./tzl.js":155,"./tzm":156,"./tzm-latn":157,"./tzm-latn.js":157,"./tzm.js":156,"./ug-cn":158,"./ug-cn.js":158,"./uk":159,"./uk.js":159,"./ur":160,"./ur.js":160,"./uz":161,"./uz-latn":162,"./uz-latn.js":162,"./uz.js":161,"./vi":163,"./vi.js":163,"./x-pseudo":164,"./x-pseudo.js":164,"./yo":165,"./yo.js":165,"./zh-cn":166,"./zh-cn.js":166,"./zh-hk":167,"./zh-hk.js":167,"./zh-tw":168,"./zh-tw.js":168};function c(e){var t=o(e);return r(t)}function o(e){var t=n[e];if(!(t+1)){var r=new Error("Cannot find module '"+e+"'");throw r.code="MODULE_NOT_FOUND",r}return t}c.keys=function(){return Object.keys(n)},c.resolve=o,e.exports=c,c.id=220},223:function(e,t){},224:function(e,t){},226:function(e,t){},227:function(e,t){},23:function(e,t){!function(){e.exports=this.wp.url}()},24:function(e,t,r){"use strict";var n=r(27),c=r.n(n),o=r(172),s=r.n(o),a=r(0),i=r(4),l=r(3),u=r(1),d=r.n(u),p=r(17);function b(e,t){if(!t)return e;var r=new RegExp(Object(i.escapeRegExp)(t),"ig");return e.replace(r,"<strong>$&</strong>")}var m=function(e){var t=e.className,r=e.depth,n=void 0===r?0:r,o=e.item,u=e.isSelected,d=e.isSingle,m=e.onSelect,h=e.search,j=void 0===h?"":h,g=e.showCount,f=void 0!==g&&g,v=s()(e,["className","depth","item","isSelected","isSingle","onSelect","search","showCount"]),w=[t,"woocommerce-search-list__item"];w.push("depth-".concat(n)),d&&w.push("is-radio-button");var O,_=o.breadcrumbs&&o.breadcrumbs.length;return Object(a.createElement)(l.MenuItem,c()({role:"menuitemcheckbox",className:w.join(" "),onClick:m(o),isSelected:u},v),Object(a.createElement)("span",{className:"woocommerce-search-list__item-state"},function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?t?Object(a.createElement)(p.d,null):Object(a.createElement)(p.e,null):t?Object(a.createElement)(p.a,null):Object(a.createElement)(p.b,null)}(d,u)),Object(a.createElement)("span",{className:"woocommerce-search-list__item-label"},_?Object(a.createElement)("span",{className:"woocommerce-search-list__item-prefix"},1===(O=o.breadcrumbs).length?Object(i.first)(O):2===O.length?Object(i.first)(O)+" › "+Object(i.last)(O):Object(i.first)(O)+" … "+Object(i.last)(O)):null,Object(a.createElement)("span",{className:"woocommerce-search-list__item-name",dangerouslySetInnerHTML:{__html:b(o.name,j)}})),!!f&&Object(a.createElement)("span",{className:"woocommerce-search-list__item-count"},o.count))};m.propTypes={className:d.a.string,depth:d.a.number,item:d.a.object,isSelected:d.a.bool,isSingle:d.a.bool,onSelect:d.a.func,search:d.a.string,showCount:d.a.bool},t.a=m},25:function(e,t){!function(){e.exports=this.wp.editor}()},3:function(e,t){!function(){e.exports=this.wp.components}()},31:function(e,t){!function(){e.exports=this.wp.blocks}()},32:function(e,t,r){"use strict";var n=r(13),c=r.n(n),o=r(15),s=r.n(o),a=r(8),i=r.n(a),l=r(9),u=r.n(l),d=r(10),p=r.n(d),b=r(11),m=r.n(b),h=r(12),j=r.n(h),g=r(5),f=r.n(g),v=r(0),w=r(2),O=r(3),_=r(14),k=r(4),y=r(19),E=r.n(y),S=r(1),C=r.n(S),x=r(173);r(177);function z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=Object(k.groupBy)(e,"parent"),n=Object(k.keyBy)(t,"id"),o=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!t.parent)return t.name?[t.name]:[];var r=e(n[t.parent]);return[].concat(s()(r),[t.name])},a=function e(t){return t.map(function(t){var s=r[t.id];return delete r[t.id],c()({},t,{breadcrumbs:o(n[t.parent]),children:s&&s.length?e(s):[]})})},i=a(r[0]||[]);return delete r[0],Object(k.forEach)(r,function(e){i.push.apply(i,s()(a(e||[])))}),i}var N=r(24),M={clear:Object(w.__)("Clear all selected items","woo-gutenberg-products-block"),list:Object(w.__)("Results","woo-gutenberg-products-block"),noItems:Object(w.__)("No items found.","woo-gutenberg-products-block"),noResults:Object(w.__)("No results for %s","woo-gutenberg-products-block"),search:Object(w.__)("Search for items","woo-gutenberg-products-block"),selected:function(e){return Object(w.sprintf)(Object(w._n)("%d item selected","%d items selected",e,"woo-gutenberg-products-block"),e)},updated:Object(w.__)("Search results updated.","woo-gutenberg-products-block")},R=function(e){function t(){var e;return i()(this,t),(e=p()(this,m()(t).apply(this,arguments))).onSelect=e.onSelect.bind(f()(f()(e))),e.onRemove=e.onRemove.bind(f()(f()(e))),e.onClear=e.onClear.bind(f()(f()(e))),e.isSelected=e.isSelected.bind(f()(f()(e))),e.defaultRenderItem=e.defaultRenderItem.bind(f()(f()(e))),e.renderList=e.renderList.bind(f()(f()(e))),e}return j()(t,e),u()(t,[{key:"onRemove",value:function(e){var t=this.props,r=t.isSingle,n=t.onChange,c=t.selected;return function(){r&&n([]);var t=Object(k.findIndex)(c,{id:e});n([].concat(s()(c.slice(0,t)),s()(c.slice(t+1))))}}},{key:"onSelect",value:function(e){var t=this,r=this.props,n=r.isSingle,c=r.onChange,o=r.selected;return function(){t.isSelected(e)?t.onRemove(e.id)():c(n?[e]:[].concat(s()(o),[e]))}}},{key:"onClear",value:function(){this.props.onChange([])}},{key:"isSelected",value:function(e){return-1!==Object(k.findIndex)(this.props.selected,{id:e.id})}},{key:"getFilteredList",value:function(e,t){var r=this.props.isHierarchical;if(!t)return r?z(e):e;var n=c()({},M,this.props.messages),o=new RegExp(Object(k.escapeRegExp)(t),"i");this.props.debouncedSpeak(n.updated);var s=e.map(function(e){return!!o.test(e.name)&&e}).filter(Boolean);return r?z(s,e):s}},{key:"defaultRenderItem",value:function(e){return Object(v.createElement)(N.a,e)}},{key:"renderList",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.props,c=n.isSingle,o=n.search,s=this.props.renderItem||this.defaultRenderItem;return e?e.map(function(e){return Object(v.createElement)(v.Fragment,{key:e.id},s({item:e,isSelected:t.isSelected(e),onSelect:t.onSelect,isSingle:c,search:o,depth:r}),t.renderList(e.children,r+1))}):null}},{key:"renderListSection",value:function(){var e=this.props,t=e.isLoading,r=e.search,n=this.getFilteredList(this.props.list,r),o=c()({},M,this.props.messages);return t?Object(v.createElement)("div",{className:"woocommerce-search-list__list is-loading"},Object(v.createElement)(O.Spinner,null)):n.length?Object(v.createElement)(O.MenuGroup,{label:o.list,className:"woocommerce-search-list__list"},this.renderList(n)):Object(v.createElement)("div",{className:"woocommerce-search-list__list is-not-found"},Object(v.createElement)("span",{className:"woocommerce-search-list__not-found-icon"},Object(v.createElement)(E.a,{icon:"notice-outline",role:"img","aria-hidden":"true",focusable:"false"})),Object(v.createElement)("span",{className:"woocommerce-search-list__not-found-text"},r?Object(w.sprintf)(o.noResults,r):o.noItems))}},{key:"renderSelectedSection",value:function(){var e=this,t=this.props,r=t.isLoading,n=t.isSingle,o=t.selected,s=c()({},M,this.props.messages);if(r||n||!o)return null;var a=o.length;return Object(v.createElement)("div",{className:"woocommerce-search-list__selected"},Object(v.createElement)("div",{className:"woocommerce-search-list__selected-header"},Object(v.createElement)("strong",null,s.selected(a)),a>0?Object(v.createElement)(O.Button,{isLink:!0,isDestructive:!0,onClick:this.onClear,"aria-label":s.clear},Object(w.__)("Clear all","woo-gutenberg-products-block")):null),o.map(function(t,r){return Object(v.createElement)(x.a,{key:r,label:t.name,id:t.id,remove:e.onRemove})}))}},{key:"render",value:function(){var e=this.props,t=e.className,r=void 0===t?"":t,n=e.search,o=e.setState,s=c()({},M,this.props.messages);return Object(v.createElement)("div",{className:"woocommerce-search-list ".concat(r)},this.renderSelectedSection(),Object(v.createElement)("div",{className:"woocommerce-search-list__search"},Object(v.createElement)(O.TextControl,{label:s.search,type:"search",value:n,onChange:function(e){return o({search:e})}})),this.renderListSection())}}]),t}(v.Component);R.propTypes={className:C.a.string,isHierarchical:C.a.bool,isLoading:C.a.bool,isSingle:C.a.bool,list:C.a.arrayOf(C.a.shape({id:C.a.number,name:C.a.string})),messages:C.a.shape({clear:C.a.string,list:C.a.string,noItems:C.a.string,noResults:C.a.string,search:C.a.string,selected:C.a.func,updated:C.a.string}),onChange:C.a.func.isRequired,renderItem:C.a.func,selected:C.a.array.isRequired,search:C.a.string,setState:C.a.func,debouncedSpeak:C.a.func,instanceId:C.a.number};t.a=Object(_.compose)([Object(_.withState)({search:""}),O.withSpokenMessages,_.withInstanceId])(R)},38:function(e,t,r){"use strict";function n(e,t){var r=e.categories,n=e.catOperator,c=e.columns,o=e.orderby,s=e.products,a={status:"publish",per_page:e.rows*c};switch(r&&r.length&&(a.category=r.join(","),n&&"all"===n&&(a.cat_operator="AND")),o&&("price_desc"===o?(a.orderby="price",a.order="desc"):"price_asc"===o?(a.orderby="price",a.order="asc"):"title"===o?(a.orderby="title",a.order="asc"):"menu_order"===o?(a.orderby="menu_order",a.order="asc"):a.orderby=o),t){case"woocommerce/product-best-sellers":a.orderby="popularity";break;case"woocommerce/product-top-rated":a.orderby="rating";break;case"woocommerce/product-on-sale":a.on_sale=1;break;case"woocommerce/product-new":a.orderby="date";break;case"woocommerce/handpicked-products":a.include=s,a.per_page=s.length}return a}r.d(t,"a",function(){return n})},39:function(e,t,r){"use strict";var n=r(0),c=r(2),o=r(1),s=r.n(o),a=(r(187),function(e){var t=e.product,r=null;return t.images.length&&(r=Object(n.createElement)("img",{src:t.images[0].src,alt:""})),Object(n.createElement)("div",{className:"wc-product-preview"},r,Object(n.createElement)("div",{className:"wc-product-preview__title"},t.name),Object(n.createElement)("div",{className:"wc-product-preview__price",dangerouslySetInnerHTML:{__html:t.price_html}}),Object(n.createElement)("span",{className:"wp-block-button"},Object(n.createElement)("span",{className:"wc-product-preview__add-to-cart wp-block-button__link"},Object(c.__)("Add to cart","woo-gutenberg-products-block"))))});a.propTypes={product:s.a.shape({id:s.a.number,images:s.a.array,name:s.a.string,price_html:s.a.string}).isRequired},t.a=a},4:function(e,t){!function(){e.exports=this.lodash}()},40:function(e,t,r){"use strict";r.d(t,"a",function(){return o});var n=r(171),c=r.n(n);function o(e,t){var r=e.attributes,n=r.categories,o=r.catOperator,s=r.columns,a=r.orderby,i=r.products,l=r.rows,u=new Map;switch(u.set("limit",l*s),u.set("columns",s),n&&n.length&&(u.set("category",n.join(",")),o&&"all"===o&&u.set("cat_operator","AND")),a&&("price_desc"===a?(u.set("orderby","price"),u.set("order","DESC")):"price_asc"===a?(u.set("orderby","price"),u.set("order","ASC")):"date"===a?(u.set("orderby","date"),u.set("order","DESC")):u.set("orderby",a)),t){case"woocommerce/product-best-sellers":u.set("best_selling","1");break;case"woocommerce/product-top-rated":u.set("orderby","rating");break;case"woocommerce/product-on-sale":u.set("on_sale","1");break;case"woocommerce/product-new":u.set("orderby","date"),u.set("order","DESC");break;case"woocommerce/handpicked-products":if(!i.length)return"";u.set("ids",i.join(",")),u.set("limit",i.length);break;case"woocommerce/product-category":if(!n||!n.length)return""}var d="[products",p=!0,b=!1,m=void 0;try{for(var h,j=u[Symbol.iterator]();!(p=(h=j.next()).done);p=!0){var g=c()(h.value,2);d+=" "+g[0]+'="'+g[1]+'"'}}catch(e){b=!0,m=e}finally{try{p||null==j.return||j.return()}finally{if(b)throw m}}return d+="]"}},546:function(e,t,r){var n=r(547);"string"==typeof n&&(n=[[e.i,n,""]]);var c={hmr:!0,transform:void 0,insertInto:void 0};r(28)(n,c);n.locals&&(e.exports=n.locals)},547:function(e,t,r){},871:function(e,t,r){"use strict";r.r(t);var n=r(0),c=r(2),o=r(31),s=(r(546),r(8)),a=r.n(s),i=r(9),l=r.n(i),u=r(10),d=r.n(u),p=r(11),b=r.n(p),m=r(12),h=r.n(m),j=r(5),g=r.n(j),f=r(23),v=r(16),w=r.n(v),O=r(25),_=r(3),k=r(4),y=r(1),E=r.n(y),S=r(38),C=r(17),x=r(32),z=function(e){function t(){var e;return a()(this,t),(e=d()(this,b()(t).apply(this,arguments))).state={list:[],loading:!0},e}return h()(t,e),l()(t,[{key:"componentDidMount",value:function(){var e=this;w()({path:Object(f.addQueryArgs)("/wc-pb/v3/products",{per_page:-1,status:"publish"})}).then(function(t){e.setState({list:t,loading:!1})}).catch(function(){e.setState({list:[],loading:!1})})}},{key:"render",value:function(){var e=this.state,t=e.list,r=e.loading,o=this.props,s=o.onChange,a=o.selected,i={clear:Object(c.__)("Clear all products","woo-gutenberg-products-block"),list:Object(c.__)("Products","woo-gutenberg-products-block"),noItems:Object(c.__)("Your store doesn't have any products.","woo-gutenberg-products-block"),search:Object(c.__)("Search for products to display","woo-gutenberg-products-block"),selected:function(e){return Object(c.sprintf)(Object(c._n)("%d product selected","%d products selected",e,"woo-gutenberg-products-block"),e)},updated:Object(c.__)("Product search results updated.","woo-gutenberg-products-block")};return Object(n.createElement)(n.Fragment,null,Object(n.createElement)(x.a,{className:"woocommerce-products",list:t,isLoading:r,selected:a.map(function(e){return Object(k.find)(t,{id:e})}).filter(Boolean),onChange:s,messages:i}))}}]),t}(n.Component);z.propTypes={onChange:E.a.func.isRequired,selected:E.a.array.isRequired};var N=z,M=r(212),R=r(39),I=function(e){function t(){var e;return a()(this,t),(e=d()(this,b()(t).apply(this,arguments))).state={products:[],loaded:!1},e.debouncedGetProducts=Object(k.debounce)(e.getProducts.bind(g()(g()(e))),200),e}return h()(t,e),l()(t,[{key:"componentDidMount",value:function(){this.getProducts()}},{key:"componentDidUpdate",value:function(e){var t=this;["products","columns","orderby"].reduce(function(r,n){return r||e.attributes[n]!==t.props.attributes[n]},!1)&&this.debouncedGetProducts()}},{key:"getProducts",value:function(){var e=this;this.props.attributes.products.length?w()({path:Object(f.addQueryArgs)("/wc-pb/v3/products",Object(S.a)(this.props.attributes,this.props.name))}).then(function(t){e.setState({products:t,loaded:!0})}).catch(function(){e.setState({products:[],loaded:!0})}):this.setState({products:[],loaded:!0})}},{key:"getInspectorControls",value:function(){var e=this.props,t=e.attributes,r=e.setAttributes,o=t.columns,s=t.orderby;return Object(n.createElement)(O.InspectorControls,{key:"inspector"},Object(n.createElement)(_.PanelBody,{title:Object(c.__)("Layout","woo-gutenberg-products-block"),initialOpen:!0},Object(n.createElement)(_.RangeControl,{label:Object(c.__)("Columns","woo-gutenberg-products-block"),value:o,onChange:function(e){return r({columns:e})},min:wc_product_block_data.min_columns,max:wc_product_block_data.max_columns})),Object(n.createElement)(_.PanelBody,{title:Object(c.__)("Order By","woo-gutenberg-products-block"),initialOpen:!1},Object(n.createElement)(M.a,{setAttributes:r,value:s})),Object(n.createElement)(_.PanelBody,{title:Object(c.__)("Products","woo-gutenberg-products-block"),initialOpen:!1},Object(n.createElement)(N,{selected:t.products,onChange:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(function(e){return e.id});r({products:e})}})))}},{key:"renderEditMode",value:function(){var e=this.props,t=e.attributes,r=e.debouncedSpeak,o=e.setAttributes;return Object(n.createElement)(_.Placeholder,{icon:Object(n.createElement)(C.f,null),label:Object(c.__)("Hand-picked Products","woo-gutenberg-products-block"),className:"wc-block-products-grid wc-block-handpicked-products"},Object(c.__)("Display a selection of hand-picked products in a grid","woo-gutenberg-products-block"),Object(n.createElement)("div",{className:"wc-block-handpicked-products__selection"},Object(n.createElement)(N,{selected:t.products,onChange:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(function(e){return e.id});o({products:e})}}),Object(n.createElement)(_.Button,{isDefault:!0,onClick:function(){o({editMode:!1}),r(Object(c.__)("Showing Hand-picked Products block preview.","woo-gutenberg-products-block"))}},Object(c.__)("Done","woo-gutenberg-products-block"))))}},{key:"render",value:function(){var e=this.props.setAttributes,t=this.props.attributes,r=t.columns,o=t.editMode,s=this.state,a=s.loaded,i=s.products,l=i&&i.length,u=["wc-block-products-grid","wc-block-handpicked-products"];return r&&u.push("cols-".concat(r)),l||(a?u.push("is-not-found"):u.push("is-loading")),Object(n.createElement)(n.Fragment,null,Object(n.createElement)(O.BlockControls,null,Object(n.createElement)(_.Toolbar,{controls:[{icon:"edit",title:Object(c.__)("Edit"),onClick:function(){return e({editMode:!o})},isActive:o}]})),this.getInspectorControls(),o?this.renderEditMode():Object(n.createElement)("div",{className:u.join(" ")},l?i.map(function(e){return Object(n.createElement)(R.a,{product:e,key:e.id})}):Object(n.createElement)(_.Placeholder,{icon:Object(n.createElement)(C.f,null),label:Object(c.__)("Hand-picked Products","woo-gutenberg-products-block")},a?Object(c.__)("No products are selected.","woo-gutenberg-products-block"):Object(n.createElement)(_.Spinner,null))))}}]),t}(n.Component);I.propTypes={attributes:E.a.object.isRequired,name:E.a.string.isRequired,setAttributes:E.a.func.isRequired,debouncedSpeak:E.a.func.isRequired};var L=Object(_.withSpokenMessages)(I),P=r(40);Object(o.registerBlockType)("woocommerce/handpicked-products",{title:Object(c.__)("Hand-picked Products","woo-gutenberg-products-block"),icon:Object(n.createElement)(C.f,null),category:"woocommerce",keywords:[Object(c.__)("WooCommerce","woo-gutenberg-products-block")],description:Object(c.__)("Display a selection of hand-picked products in a grid.","woo-gutenberg-products-block"),supports:{align:["wide","full"]},attributes:{align:{type:"string"},columns:{type:"number",default:wc_product_block_data.default_columns},editMode:{type:"boolean",default:!0},orderby:{type:"string",default:"date"},products:{type:"array",default:[]}},edit:function(e){return Object(n.createElement)(L,e)},save:function(e){var t=e.attributes.align;return Object(n.createElement)(n.RawHTML,{className:t?"align".concat(t):""},Object(P.a)(e,"woocommerce/handpicked-products"))}})}}));
build/product-best-sellers.css ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ .woocommerce-product-categories__operator .components-base-control__help{clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;width:1px;margin:-1px;overflow:hidden;overflow-wrap:normal!important;word-wrap:normal!important}.components-panel .woocommerce-product-categories__operator.components-base-control{margin-top:16px}.components-panel .woocommerce-product-categories__operator.components-base-control .components-select-control__input{margin-left:0;min-width:100%}
2
+ @charset "UTF-8";.woocommerce-search-list{width:100%;padding:0 0 16px;text-align:left}.woocommerce-search-list__selected{margin:16px 0;padding:16px 0 0;min-height:76px;border-top:1px solid #e2e4e7}.woocommerce-search-list__selected .woocommerce-search-list__selected-header{margin-bottom:8px}.woocommerce-search-list__selected .woocommerce-search-list__selected-header button{margin-left:12px}.woocommerce-search-list__selected .woocommerce-tag__text{max-width:13em}.woocommerce-search-list__search{margin:16px 0;padding:16px 0 0;border-top:1px solid #e2e4e7}.woocommerce-search-list__search .components-base-control__field{margin-bottom:16px}.woocommerce-search-list__list{padding:0;max-height:17em;overflow-x:hidden;overflow-y:auto;border-top:1px solid #e2e4e7;border-bottom:1px solid #e2e4e7}.woocommerce-search-list__list.is-loading,.woocommerce-search-list__list.is-not-found{padding:12px 0;text-align:center;border:none}.woocommerce-search-list__list.is-not-found .woocommerce-search-list__not-found-icon,.woocommerce-search-list__list.is-not-found .woocommerce-search-list__not-found-text{display:inline-block}.woocommerce-search-list__list.is-not-found .woocommerce-search-list__not-found-icon{margin-right:16px}.woocommerce-search-list__list.is-not-found .woocommerce-search-list__not-found-icon .gridicon{vertical-align:top;margin-top:-1px}.woocommerce-search-list__list .components-spinner{float:none}.woocommerce-search-list__list .components-menu-group__label{clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;width:1px;margin:-1px;overflow:hidden;overflow-wrap:normal!important;word-wrap:normal!important}.woocommerce-search-list__list>[role=menu]{border:1px solid #e2e4e7;border-bottom:none}.woocommerce-search-list__list .woocommerce-search-list__item{display:flex;align-items:center;margin-bottom:0;padding:12px 16px;background:#fff;border-bottom:1px solid #e2e4e7!important;color:#555d66}.woocommerce-search-list__list .woocommerce-search-list__item:active,.woocommerce-search-list__list .woocommerce-search-list__item:focus,.woocommerce-search-list__list .woocommerce-search-list__item:hover{background:#f8f9f9}.woocommerce-search-list__list .woocommerce-search-list__item:last-child{border-bottom:none!important}.woocommerce-search-list__list .woocommerce-search-list__item .woocommerce-search-list__item-state{flex:0 0 16px;margin-right:8px;height:24px}.woocommerce-search-list__list .woocommerce-search-list__item .woocommerce-search-list__item-label{display:flex;flex:1}.woocommerce-search-list__list .woocommerce-search-list__item[class*=depth-] .woocommerce-search-list__item-label:before{margin-right:4px;content:"— — — — — "}.woocommerce-search-list__list .woocommerce-search-list__item.depth-0 .woocommerce-search-list__item-label:before{margin-right:0;content:""}.woocommerce-search-list__list .woocommerce-search-list__item.depth-1 .woocommerce-search-list__item-label:before{content:"— "}.woocommerce-search-list__list .woocommerce-search-list__item.depth-2 .woocommerce-search-list__item-label:before{content:"— — "}.woocommerce-search-list__list .woocommerce-search-list__item.depth-3 .woocommerce-search-list__item-label:before{content:"— — — "}.woocommerce-search-list__list .woocommerce-search-list__item.depth-4 .woocommerce-search-list__item-label:before{content:"— — — — "}.woocommerce-search-list__list .woocommerce-search-list__item .woocommerce-search-list__item-name{display:inline-block}.woocommerce-search-list__list .woocommerce-search-list__item .woocommerce-search-list__item-prefix{display:none;color:#6c7781}.woocommerce-search-list__list .woocommerce-search-list__item.is-searching .woocommerce-search-list__item-label,.woocommerce-search-list__list .woocommerce-search-list__item.is-skip-level .woocommerce-search-list__item-label{display:inline-block}.woocommerce-search-list__list .woocommerce-search-list__item.is-searching .woocommerce-search-list__item-prefix,.woocommerce-search-list__list .woocommerce-search-list__item.is-skip-level .woocommerce-search-list__item-prefix{display:inline}.woocommerce-search-list__list .woocommerce-search-list__item.is-searching .woocommerce-search-list__item-prefix:after,.woocommerce-search-list__list .woocommerce-search-list__item.is-skip-level .woocommerce-search-list__item-prefix:after{margin-right:4px;content:" ›"}.woocommerce-search-list__list .woocommerce-search-list__item.is-searching .woocommerce-search-list__item-name{color:#191e23}.woocommerce-search-list__list .woocommerce-search-list__item .woocommerce-search-list__item-count{flex:0;padding:2px 8px;border:1px solid #e2e4e7;border-radius:12px;font-size:.8em;line-height:1.4;color:#6c7781;background:#fff}.components-panel .woocommerce-search-list{padding:0}.components-panel .woocommerce-search-list__selected{margin:0 0 16px;padding:0;border-top:none;min-height:54px}.components-panel .woocommerce-search-list__search{margin:0 0 16px;padding:0;border-top:none}
3
+ .wc-product-preview{text-align:center;margin-bottom:16px}.wc-product-preview .wc-product-preview__price,.wc-product-preview .wc-product-preview__title{margin-top:4px}.wc-product-preview .wp-block-button{margin-bottom:0}.wc-product-preview .wc-product-preview__add-to-cart{cursor:text;margin:12px 0 0}.cols-4 .wc-product-preview .wc-product-preview__title,.cols-5 .wc-product-preview .wc-product-preview__title,.cols-6 .wc-product-preview .wc-product-preview__title{font-size:.9em;line-height:1.2}.cols-4 .wc-product-preview .wc-product-preview__price,.cols-5 .wc-product-preview .wc-product-preview__price,.cols-6 .wc-product-preview .wc-product-preview__price{font-size:.8em}.cols-4 .wc-product-preview .wc-product-preview__add-to-cart,.cols-5 .wc-product-preview .wc-product-preview__add-to-cart,.cols-6 .wc-product-preview .wc-product-preview__add-to-cart{font-size:.7em!important;line-height:1.4!important}.editor-block-preview .wc-product-preview .wc-product-preview__title{font-size:.7em;line-height:1.2}.editor-block-preview .wc-product-preview .wc-product-preview__price{font-size:.6em}.editor-block-preview .wc-product-preview .wc-product-preview__add-to-cart{font-size:.6em!important}
build/product-best-sellers.js ADDED
@@ -0,0 +1 @@
 
1
+ !function(e,t){for(var r in t)e[r]=t[r]}(this,function(e){function t(t){for(var n,s,a=t[0],i=t[1],l=t[2],d=0,p=[];d<a.length;d++)s=a[d],c[s]&&p.push(c[s][0]),c[s]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(u&&u(t);p.length;)p.shift()();return o.push.apply(o,l||[]),r()}function r(){for(var e,t=0;t<o.length;t++){for(var r=o[t],n=!0,a=1;a<r.length;a++){var i=r[a];0!==c[i]&&(n=!1)}n&&(o.splice(t--,1),e=s(s.s=r[0]))}return e}var n={},c={3:0},o=[];function s(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,s),r.l=!0,r.exports}s.m=e,s.c=n,s.d=function(e,t,r){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(e,t){if(1&t&&(e=s(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(s.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)s.d(r,n,function(t){return e[t]}.bind(null,n));return r},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="";var a=window.webpackJsonp=window.webpackJsonp||[],i=a.push.bind(a);a.push=t,a=a.slice();for(var l=0;l<a.length;l++)t(a[l]);var u=i;return o.push([875,0]),r()}({0:function(e,t){!function(){e.exports=this.wp.element}()},14:function(e,t){!function(){e.exports=this.wp.compose}()},16:function(e,t){!function(){e.exports=this.wp.apiFetch}()},17:function(e,t,r){"use strict";var n=r(0),c=r(3),o=function(){return Object(n.createElement)(c.Icon,{icon:Object(n.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(n.createElement)("path",{fill:"#1E8CBE",d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}))})},s=function(){return Object(n.createElement)(c.Icon,{icon:Object(n.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(n.createElement)("path",{fill:"#6C7781",d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}))})},a=function(){return Object(n.createElement)(c.Icon,{icon:Object(n.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(n.createElement)("path",{d:"M0 0h24v24H0z",fill:"none"}),Object(n.createElement)("path",{d:"M23 12l-2.44-2.78.34-3.68-3.61-.82-1.89-3.18L12 3 8.6 1.54 6.71 4.72l-3.61.81.34 3.68L1 12l2.44 2.78-.34 3.69 3.61.82 1.89 3.18L12 21l3.4 1.46 1.89-3.18 3.61-.82-.34-3.68L23 12zm-10 5h-2v-2h2v2zm0-4h-2V7h2v6z"}))})},i=function(){return Object(n.createElement)(c.Icon,{icon:Object(n.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(n.createElement)("path",{fill:"#1E8CBE",d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}))})},l=function(){return Object(n.createElement)(c.Icon,{icon:Object(n.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(n.createElement)("path",{fill:"#6C7781",d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}))})},u=function(){return Object(n.createElement)(c.Icon,{icon:Object(n.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(n.createElement)("path",{d:"M13 13v8h8v-8h-8zM3 21h8v-8H3v8zM3 3v8h8V3H3zm13.66-1.31L11 7.34 16.66 13l5.66-5.66-5.66-5.65z"}),Object(n.createElement)("path",{d:"M0 0h24v24H0z",fill:"none"}))})};r.d(t,"a",function(){return o}),r.d(t,"b",function(){return s}),r.d(t,"c",function(){return a}),r.d(t,"d",function(){return i}),r.d(t,"e",function(){return l}),r.d(t,"f",function(){return u})},170:function(e,t,r){"use strict";t.a={columns:{type:"number",default:wc_product_block_data.default_columns},rows:{type:"number",default:wc_product_block_data.default_rows},categories:{type:"array",default:[]},catOperator:{type:"string",default:"any"},attributes:{type:"array",default:[]}}},177:function(e,t,r){var n=r(178);"string"==typeof n&&(n=[[e.i,n,""]]);var c={hmr:!0,transform:void 0,insertInto:void 0};r(28)(n,c);n.locals&&(e.exports=n.locals)},178:function(e,t,r){},181:function(e,t){!function(){e.exports=this.wp.data}()},187:function(e,t,r){var n=r(188);"string"==typeof n&&(n=[[e.i,n,""]]);var c={hmr:!0,transform:void 0,insertInto:void 0};r(28)(n,c);n.locals&&(e.exports=n.locals)},188:function(e,t,r){},2:function(e,t){!function(){e.exports=this.wp.i18n}()},200:function(e,t,r){var n=r(201);"string"==typeof n&&(n=[[e.i,n,""]]);var c={hmr:!0,transform:void 0,insertInto:void 0};r(28)(n,c);n.locals&&(e.exports=n.locals)},201:function(e,t,r){},220:function(e,t,r){var n={"./af":46,"./af.js":46,"./ar":47,"./ar-dz":48,"./ar-dz.js":48,"./ar-kw":49,"./ar-kw.js":49,"./ar-ly":50,"./ar-ly.js":50,"./ar-ma":51,"./ar-ma.js":51,"./ar-sa":52,"./ar-sa.js":52,"./ar-tn":53,"./ar-tn.js":53,"./ar.js":47,"./az":54,"./az.js":54,"./be":55,"./be.js":55,"./bg":56,"./bg.js":56,"./bm":57,"./bm.js":57,"./bn":58,"./bn.js":58,"./bo":59,"./bo.js":59,"./br":60,"./br.js":60,"./bs":61,"./bs.js":61,"./ca":62,"./ca.js":62,"./cs":63,"./cs.js":63,"./cv":64,"./cv.js":64,"./cy":65,"./cy.js":65,"./da":66,"./da.js":66,"./de":67,"./de-at":68,"./de-at.js":68,"./de-ch":69,"./de-ch.js":69,"./de.js":67,"./dv":70,"./dv.js":70,"./el":71,"./el.js":71,"./en-au":72,"./en-au.js":72,"./en-ca":73,"./en-ca.js":73,"./en-gb":74,"./en-gb.js":74,"./en-ie":75,"./en-ie.js":75,"./en-il":76,"./en-il.js":76,"./en-nz":77,"./en-nz.js":77,"./eo":78,"./eo.js":78,"./es":79,"./es-do":80,"./es-do.js":80,"./es-us":81,"./es-us.js":81,"./es.js":79,"./et":82,"./et.js":82,"./eu":83,"./eu.js":83,"./fa":84,"./fa.js":84,"./fi":85,"./fi.js":85,"./fo":86,"./fo.js":86,"./fr":87,"./fr-ca":88,"./fr-ca.js":88,"./fr-ch":89,"./fr-ch.js":89,"./fr.js":87,"./fy":90,"./fy.js":90,"./gd":91,"./gd.js":91,"./gl":92,"./gl.js":92,"./gom-latn":93,"./gom-latn.js":93,"./gu":94,"./gu.js":94,"./he":95,"./he.js":95,"./hi":96,"./hi.js":96,"./hr":97,"./hr.js":97,"./hu":98,"./hu.js":98,"./hy-am":99,"./hy-am.js":99,"./id":100,"./id.js":100,"./is":101,"./is.js":101,"./it":102,"./it.js":102,"./ja":103,"./ja.js":103,"./jv":104,"./jv.js":104,"./ka":105,"./ka.js":105,"./kk":106,"./kk.js":106,"./km":107,"./km.js":107,"./kn":108,"./kn.js":108,"./ko":109,"./ko.js":109,"./ky":110,"./ky.js":110,"./lb":111,"./lb.js":111,"./lo":112,"./lo.js":112,"./lt":113,"./lt.js":113,"./lv":114,"./lv.js":114,"./me":115,"./me.js":115,"./mi":116,"./mi.js":116,"./mk":117,"./mk.js":117,"./ml":118,"./ml.js":118,"./mn":119,"./mn.js":119,"./mr":120,"./mr.js":120,"./ms":121,"./ms-my":122,"./ms-my.js":122,"./ms.js":121,"./mt":123,"./mt.js":123,"./my":124,"./my.js":124,"./nb":125,"./nb.js":125,"./ne":126,"./ne.js":126,"./nl":127,"./nl-be":128,"./nl-be.js":128,"./nl.js":127,"./nn":129,"./nn.js":129,"./pa-in":130,"./pa-in.js":130,"./pl":131,"./pl.js":131,"./pt":132,"./pt-br":133,"./pt-br.js":133,"./pt.js":132,"./ro":134,"./ro.js":134,"./ru":135,"./ru.js":135,"./sd":136,"./sd.js":136,"./se":137,"./se.js":137,"./si":138,"./si.js":138,"./sk":139,"./sk.js":139,"./sl":140,"./sl.js":140,"./sq":141,"./sq.js":141,"./sr":142,"./sr-cyrl":143,"./sr-cyrl.js":143,"./sr.js":142,"./ss":144,"./ss.js":144,"./sv":145,"./sv.js":145,"./sw":146,"./sw.js":146,"./ta":147,"./ta.js":147,"./te":148,"./te.js":148,"./tet":149,"./tet.js":149,"./tg":150,"./tg.js":150,"./th":151,"./th.js":151,"./tl-ph":152,"./tl-ph.js":152,"./tlh":153,"./tlh.js":153,"./tr":154,"./tr.js":154,"./tzl":155,"./tzl.js":155,"./tzm":156,"./tzm-latn":157,"./tzm-latn.js":157,"./tzm.js":156,"./ug-cn":158,"./ug-cn.js":158,"./uk":159,"./uk.js":159,"./ur":160,"./ur.js":160,"./uz":161,"./uz-latn":162,"./uz-latn.js":162,"./uz.js":161,"./vi":163,"./vi.js":163,"./x-pseudo":164,"./x-pseudo.js":164,"./yo":165,"./yo.js":165,"./zh-cn":166,"./zh-cn.js":166,"./zh-hk":167,"./zh-hk.js":167,"./zh-tw":168,"./zh-tw.js":168};function c(e){var t=o(e);return r(t)}function o(e){var t=n[e];if(!(t+1)){var r=new Error("Cannot find module '"+e+"'");throw r.code="MODULE_NOT_FOUND",r}return t}c.keys=function(){return Object.keys(n)},c.resolve=o,e.exports=c,c.id=220},223:function(e,t){},224:function(e,t){},226:function(e,t){},227:function(e,t){},23:function(e,t){!function(){e.exports=this.wp.url}()},24:function(e,t,r){"use strict";var n=r(27),c=r.n(n),o=r(172),s=r.n(o),a=r(0),i=r(4),l=r(3),u=r(1),d=r.n(u),p=r(17);function m(e,t){if(!t)return e;var r=new RegExp(Object(i.escapeRegExp)(t),"ig");return e.replace(r,"<strong>$&</strong>")}var b=function(e){var t=e.className,r=e.depth,n=void 0===r?0:r,o=e.item,u=e.isSelected,d=e.isSingle,b=e.onSelect,h=e.search,j=void 0===h?"":h,g=e.showCount,f=void 0!==g&&g,v=s()(e,["className","depth","item","isSelected","isSingle","onSelect","search","showCount"]),w=[t,"woocommerce-search-list__item"];w.push("depth-".concat(n)),d&&w.push("is-radio-button");var O,_=o.breadcrumbs&&o.breadcrumbs.length;return Object(a.createElement)(l.MenuItem,c()({role:"menuitemcheckbox",className:w.join(" "),onClick:b(o),isSelected:u},v),Object(a.createElement)("span",{className:"woocommerce-search-list__item-state"},function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?t?Object(a.createElement)(p.d,null):Object(a.createElement)(p.e,null):t?Object(a.createElement)(p.a,null):Object(a.createElement)(p.b,null)}(d,u)),Object(a.createElement)("span",{className:"woocommerce-search-list__item-label"},_?Object(a.createElement)("span",{className:"woocommerce-search-list__item-prefix"},1===(O=o.breadcrumbs).length?Object(i.first)(O):2===O.length?Object(i.first)(O)+" › "+Object(i.last)(O):Object(i.first)(O)+" … "+Object(i.last)(O)):null,Object(a.createElement)("span",{className:"woocommerce-search-list__item-name",dangerouslySetInnerHTML:{__html:m(o.name,j)}})),!!f&&Object(a.createElement)("span",{className:"woocommerce-search-list__item-count"},o.count))};b.propTypes={className:d.a.string,depth:d.a.number,item:d.a.object,isSelected:d.a.bool,isSingle:d.a.bool,onSelect:d.a.func,search:d.a.string,showCount:d.a.bool},t.a=b},25:function(e,t){!function(){e.exports=this.wp.editor}()},3:function(e,t){!function(){e.exports=this.wp.components}()},31:function(e,t){!function(){e.exports=this.wp.blocks}()},32:function(e,t,r){"use strict";var n=r(13),c=r.n(n),o=r(15),s=r.n(o),a=r(8),i=r.n(a),l=r(9),u=r.n(l),d=r(10),p=r.n(d),m=r(11),b=r.n(m),h=r(12),j=r.n(h),g=r(5),f=r.n(g),v=r(0),w=r(2),O=r(3),_=r(14),y=r(4),k=r(19),E=r.n(k),S=r(1),C=r.n(S),x=r(173);r(177);function z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=Object(y.groupBy)(e,"parent"),n=Object(y.keyBy)(t,"id"),o=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!t.parent)return t.name?[t.name]:[];var r=e(n[t.parent]);return[].concat(s()(r),[t.name])},a=function e(t){return t.map(function(t){var s=r[t.id];return delete r[t.id],c()({},t,{breadcrumbs:o(n[t.parent]),children:s&&s.length?e(s):[]})})},i=a(r[0]||[]);return delete r[0],Object(y.forEach)(r,function(e){i.push.apply(i,s()(a(e||[])))}),i}var N=r(24),I={clear:Object(w.__)("Clear all selected items","woo-gutenberg-products-block"),list:Object(w.__)("Results","woo-gutenberg-products-block"),noItems:Object(w.__)("No items found.","woo-gutenberg-products-block"),noResults:Object(w.__)("No results for %s","woo-gutenberg-products-block"),search:Object(w.__)("Search for items","woo-gutenberg-products-block"),selected:function(e){return Object(w.sprintf)(Object(w._n)("%d item selected","%d items selected",e,"woo-gutenberg-products-block"),e)},updated:Object(w.__)("Search results updated.","woo-gutenberg-products-block")},R=function(e){function t(){var e;return i()(this,t),(e=p()(this,b()(t).apply(this,arguments))).onSelect=e.onSelect.bind(f()(f()(e))),e.onRemove=e.onRemove.bind(f()(f()(e))),e.onClear=e.onClear.bind(f()(f()(e))),e.isSelected=e.isSelected.bind(f()(f()(e))),e.defaultRenderItem=e.defaultRenderItem.bind(f()(f()(e))),e.renderList=e.renderList.bind(f()(f()(e))),e}return j()(t,e),u()(t,[{key:"onRemove",value:function(e){var t=this.props,r=t.isSingle,n=t.onChange,c=t.selected;return function(){r&&n([]);var t=Object(y.findIndex)(c,{id:e});n([].concat(s()(c.slice(0,t)),s()(c.slice(t+1))))}}},{key:"onSelect",value:function(e){var t=this,r=this.props,n=r.isSingle,c=r.onChange,o=r.selected;return function(){t.isSelected(e)?t.onRemove(e.id)():c(n?[e]:[].concat(s()(o),[e]))}}},{key:"onClear",value:function(){this.props.onChange([])}},{key:"isSelected",value:function(e){return-1!==Object(y.findIndex)(this.props.selected,{id:e.id})}},{key:"getFilteredList",value:function(e,t){var r=this.props.isHierarchical;if(!t)return r?z(e):e;var n=c()({},I,this.props.messages),o=new RegExp(Object(y.escapeRegExp)(t),"i");this.props.debouncedSpeak(n.updated);var s=e.map(function(e){return!!o.test(e.name)&&e}).filter(Boolean);return r?z(s,e):s}},{key:"defaultRenderItem",value:function(e){return Object(v.createElement)(N.a,e)}},{key:"renderList",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.props,c=n.isSingle,o=n.search,s=this.props.renderItem||this.defaultRenderItem;return e?e.map(function(e){return Object(v.createElement)(v.Fragment,{key:e.id},s({item:e,isSelected:t.isSelected(e),onSelect:t.onSelect,isSingle:c,search:o,depth:r}),t.renderList(e.children,r+1))}):null}},{key:"renderListSection",value:function(){var e=this.props,t=e.isLoading,r=e.search,n=this.getFilteredList(this.props.list,r),o=c()({},I,this.props.messages);return t?Object(v.createElement)("div",{className:"woocommerce-search-list__list is-loading"},Object(v.createElement)(O.Spinner,null)):n.length?Object(v.createElement)(O.MenuGroup,{label:o.list,className:"woocommerce-search-list__list"},this.renderList(n)):Object(v.createElement)("div",{className:"woocommerce-search-list__list is-not-found"},Object(v.createElement)("span",{className:"woocommerce-search-list__not-found-icon"},Object(v.createElement)(E.a,{icon:"notice-outline",role:"img","aria-hidden":"true",focusable:"false"})),Object(v.createElement)("span",{className:"woocommerce-search-list__not-found-text"},r?Object(w.sprintf)(o.noResults,r):o.noItems))}},{key:"renderSelectedSection",value:function(){var e=this,t=this.props,r=t.isLoading,n=t.isSingle,o=t.selected,s=c()({},I,this.props.messages);if(r||n||!o)return null;var a=o.length;return Object(v.createElement)("div",{className:"woocommerce-search-list__selected"},Object(v.createElement)("div",{className:"woocommerce-search-list__selected-header"},Object(v.createElement)("strong",null,s.selected(a)),a>0?Object(v.createElement)(O.Button,{isLink:!0,isDestructive:!0,onClick:this.onClear,"aria-label":s.clear},Object(w.__)("Clear all","woo-gutenberg-products-block")):null),o.map(function(t,r){return Object(v.createElement)(x.a,{key:r,label:t.name,id:t.id,remove:e.onRemove})}))}},{key:"render",value:function(){var e=this.props,t=e.className,r=void 0===t?"":t,n=e.search,o=e.setState,s=c()({},I,this.props.messages);return Object(v.createElement)("div",{className:"woocommerce-search-list ".concat(r)},this.renderSelectedSection(),Object(v.createElement)("div",{className:"woocommerce-search-list__search"},Object(v.createElement)(O.TextControl,{label:s.search,type:"search",value:n,onChange:function(e){return o({search:e})}})),this.renderListSection())}}]),t}(v.Component);R.propTypes={className:C.a.string,isHierarchical:C.a.bool,isLoading:C.a.bool,isSingle:C.a.bool,list:C.a.arrayOf(C.a.shape({id:C.a.number,name:C.a.string})),messages:C.a.shape({clear:C.a.string,list:C.a.string,noItems:C.a.string,noResults:C.a.string,search:C.a.string,selected:C.a.func,updated:C.a.string}),onChange:C.a.func.isRequired,renderItem:C.a.func,selected:C.a.array.isRequired,search:C.a.string,setState:C.a.func,debouncedSpeak:C.a.func,instanceId:C.a.number};t.a=Object(_.compose)([Object(_.withState)({search:""}),O.withSpokenMessages,_.withInstanceId])(R)},38:function(e,t,r){"use strict";function n(e,t){var r=e.categories,n=e.catOperator,c=e.columns,o=e.orderby,s=e.products,a={status:"publish",per_page:e.rows*c};switch(r&&r.length&&(a.category=r.join(","),n&&"all"===n&&(a.cat_operator="AND")),o&&("price_desc"===o?(a.orderby="price",a.order="desc"):"price_asc"===o?(a.orderby="price",a.order="asc"):"title"===o?(a.orderby="title",a.order="asc"):"menu_order"===o?(a.orderby="menu_order",a.order="asc"):a.orderby=o),t){case"woocommerce/product-best-sellers":a.orderby="popularity";break;case"woocommerce/product-top-rated":a.orderby="rating";break;case"woocommerce/product-on-sale":a.on_sale=1;break;case"woocommerce/product-new":a.orderby="date";break;case"woocommerce/handpicked-products":a.include=s,a.per_page=s.length}return a}r.d(t,"a",function(){return n})},39:function(e,t,r){"use strict";var n=r(0),c=r(2),o=r(1),s=r.n(o),a=(r(187),function(e){var t=e.product,r=null;return t.images.length&&(r=Object(n.createElement)("img",{src:t.images[0].src,alt:""})),Object(n.createElement)("div",{className:"wc-product-preview"},r,Object(n.createElement)("div",{className:"wc-product-preview__title"},t.name),Object(n.createElement)("div",{className:"wc-product-preview__price",dangerouslySetInnerHTML:{__html:t.price_html}}),Object(n.createElement)("span",{className:"wp-block-button"},Object(n.createElement)("span",{className:"wc-product-preview__add-to-cart wp-block-button__link"},Object(c.__)("Add to cart","woo-gutenberg-products-block"))))});a.propTypes={product:s.a.shape({id:s.a.number,images:s.a.array,name:s.a.string,price_html:s.a.string}).isRequired},t.a=a},4:function(e,t){!function(){e.exports=this.lodash}()},40:function(e,t,r){"use strict";r.d(t,"a",function(){return o});var n=r(171),c=r.n(n);function o(e,t){var r=e.attributes,n=r.categories,o=r.catOperator,s=r.columns,a=r.orderby,i=r.products,l=r.rows,u=new Map;switch(u.set("limit",l*s),u.set("columns",s),n&&n.length&&(u.set("category",n.join(",")),o&&"all"===o&&u.set("cat_operator","AND")),a&&("price_desc"===a?(u.set("orderby","price"),u.set("order","DESC")):"price_asc"===a?(u.set("orderby","price"),u.set("order","ASC")):"date"===a?(u.set("orderby","date"),u.set("order","DESC")):u.set("orderby",a)),t){case"woocommerce/product-best-sellers":u.set("best_selling","1");break;case"woocommerce/product-top-rated":u.set("orderby","rating");break;case"woocommerce/product-on-sale":u.set("on_sale","1");break;case"woocommerce/product-new":u.set("orderby","date"),u.set("order","DESC");break;case"woocommerce/handpicked-products":if(!i.length)return"";u.set("ids",i.join(",")),u.set("limit",i.length);break;case"woocommerce/product-category":if(!n||!n.length)return""}var d="[products",p=!0,m=!1,b=void 0;try{for(var h,j=u[Symbol.iterator]();!(p=(h=j.next()).done);p=!0){var g=c()(h.value,2);d+=" "+g[0]+'="'+g[1]+'"'}}catch(e){m=!0,b=e}finally{try{p||null==j.return||j.return()}finally{if(m)throw b}}return d+="]"}},44:function(e,t,r){"use strict";var n=r(27),c=r.n(n),o=r(8),s=r.n(o),a=r(9),i=r.n(a),l=r(10),u=r.n(l),d=r(11),p=r.n(d),m=r(12),b=r.n(m),h=r(5),j=r.n(h),g=r(0),f=r(2),v=r(23),w=r(16),O=r.n(w),_=r(4),y=r(1),k=r.n(y),E=r(3),S=(r(200),r(32)),C=r(24),x=function(e){function t(){var e;return s()(this,t),(e=u()(this,p()(t).apply(this,arguments))).state={list:[],loading:!0},e.renderItem=e.renderItem.bind(j()(j()(e))),e}return b()(t,e),i()(t,[{key:"componentDidMount",value:function(){var e=this;O()({path:Object(v.addQueryArgs)("/wc-pb/v3/products/categories",{per_page:-1})}).then(function(t){e.setState({list:t,loading:!1})}).catch(function(){e.setState({list:[],loading:!1})})}},{key:"renderItem",value:function(e){var t=e.item,r=e.search,n=e.depth,o=void 0===n?0:n,s=["woocommerce-product-categories__item"];r.length&&s.push("is-searching"),0===o&&0!==t.parent&&s.push("is-skip-level");var a=t.breadcrumbs.length?"".concat(t.breadcrumbs.join(", "),", ").concat(t.name):t.name;return Object(g.createElement)(C.a,c()({className:s.join(" ")},e,{showCount:!0,"aria-label":Object(f.sprintf)(Object(f._n)("%s, has %d product","%s, has %d products",t.count,"woo-gutenberg-products-block"),a,t.count)}))}},{key:"render",value:function(){var e=this.state,t=e.list,r=e.loading,n=this.props,c=n.onChange,o=n.onOperatorChange,s=n.operator,a=void 0===s?"any":s,i=n.selected,l={clear:Object(f.__)("Clear all product categories","woo-gutenberg-products-block"),list:Object(f.__)("Product Categories","woo-gutenberg-products-block"),noItems:Object(f.__)("Your store doesn't have any product categories.","woo-gutenberg-products-block"),search:Object(f.__)("Search for product categories","woo-gutenberg-products-block"),selected:function(e){return Object(f.sprintf)(Object(f._n)("%d category selected","%d categories selected",e,"woo-gutenberg-products-block"),e)},updated:Object(f.__)("Category search results updated.","woo-gutenberg-products-block")};return Object(g.createElement)(g.Fragment,null,Object(g.createElement)(S.a,{className:"woocommerce-product-categories",list:t,isLoading:r,selected:i.map(function(e){return Object(_.find)(t,{id:e})}).filter(Boolean),onChange:c,renderItem:this.renderItem,messages:l,isHierarchical:!0}),!!o&&Object(g.createElement)("div",{className:i.length<2?"screen-reader-text":""},Object(g.createElement)(E.SelectControl,{className:"woocommerce-product-categories__operator",label:Object(f.__)("Display products matching","woo-gutenberg-products-block"),help:Object(f.__)("Pick at least two categories to use this setting.","woo-gutenberg-products-block"),value:a,onChange:o,options:[{label:Object(f.__)("Any selected categories","woo-gutenberg-products-block"),value:"any"},{label:Object(f.__)("All selected categories","woo-gutenberg-products-block"),value:"all"}]})))}}]),t}(g.Component);x.propTypes={onChange:k.a.func.isRequired,onOperatorChange:k.a.func,operator:k.a.oneOf(["all","any"]),selected:k.a.array.isRequired},t.a=x},875:function(e,t,r){"use strict";r.r(t);var n=r(13),c=r.n(n),o=r(0),s=r(2),a=r(19),i=r.n(a),l=r(31),u=r(8),d=r.n(u),p=r(9),m=r.n(p),b=r(10),h=r.n(b),j=r(11),g=r.n(j),f=r(12),v=r.n(f),w=r(5),O=r.n(w),_=r(23),y=r(16),k=r.n(y),E=r(25),S=r(4),C=r(3),x=r(1),z=r.n(x),N=r(38),I=r(44),R=r(39),L=function(e){function t(){var e;return d()(this,t),(e=h()(this,g()(t).apply(this,arguments))).state={products:[],loaded:!1},e.debouncedGetProducts=Object(S.debounce)(e.getProducts.bind(O()(O()(e))),200),e}return v()(t,e),m()(t,[{key:"componentDidMount",value:function(){this.getProducts()}},{key:"componentDidUpdate",value:function(e){var t=this;["categories","catOperator","columns","rows"].reduce(function(r,n){return r||e.attributes[n]!==t.props.attributes[n]},!1)&&this.debouncedGetProducts()}},{key:"getProducts",value:function(){var e=this;k()({path:Object(_.addQueryArgs)("/wc-pb/v3/products",Object(N.a)(this.props.attributes,this.props.name))}).then(function(t){e.setState({products:t,loaded:!0})}).catch(function(){e.setState({products:[],loaded:!0})})}},{key:"getInspectorControls",value:function(){var e=this.props,t=e.attributes,r=e.setAttributes,n=t.categories,c=t.catOperator,a=t.columns,i=t.rows;return Object(o.createElement)(E.InspectorControls,{key:"inspector"},Object(o.createElement)(C.PanelBody,{title:Object(s.__)("Layout","woo-gutenberg-products-block"),initialOpen:!0},Object(o.createElement)(C.RangeControl,{label:Object(s.__)("Columns","woo-gutenberg-products-block"),value:a,onChange:function(e){return r({columns:e})},min:wc_product_block_data.min_columns,max:wc_product_block_data.max_columns}),Object(o.createElement)(C.RangeControl,{label:Object(s.__)("Rows","woo-gutenberg-products-block"),value:i,onChange:function(e){return r({rows:e})},min:wc_product_block_data.min_rows,max:wc_product_block_data.max_rows})),Object(o.createElement)(C.PanelBody,{title:Object(s.__)("Filter by Product Category","woo-gutenberg-products-block"),initialOpen:!1},Object(o.createElement)(I.a,{selected:n,onChange:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(function(e){return e.id});r({categories:e})},operator:c,onOperatorChange:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"any";return r({catOperator:e})}})))}},{key:"render",value:function(){var e=this.props.attributes.columns,t=this.state,r=t.loaded,n=t.products,c=["wc-block-products-grid","wc-block-best-selling-products"];return e&&c.push("cols-".concat(e)),n&&!n.length&&(r?c.push("is-not-found"):c.push("is-loading")),Object(o.createElement)(o.Fragment,null,this.getInspectorControls(),Object(o.createElement)("div",{className:c.join(" ")},n.length?n.map(function(e){return Object(o.createElement)(R.a,{product:e,key:e.id})}):Object(o.createElement)(C.Placeholder,{icon:Object(o.createElement)(i.a,{icon:"stats-up-alt"}),label:Object(s.__)("Best Selling Products","woo-gutenberg-products-block")},r?Object(s.__)("No products found.","woo-gutenberg-products-block"):Object(o.createElement)(C.Spinner,null))))}}]),t}(o.Component);L.propTypes={attributes:z.a.object.isRequired,name:z.a.string.isRequired,setAttributes:z.a.func.isRequired};var M=L,P=r(40),B=r(170);Object(l.registerBlockType)("woocommerce/product-best-sellers",{title:Object(s.__)("Best Selling Products","woo-gutenberg-products-block"),icon:Object(o.createElement)(i.a,{icon:"stats-up-alt"}),category:"woocommerce",keywords:[Object(s.__)("WooCommerce","woo-gutenberg-products-block")],description:Object(s.__)("Display a grid of your all-time best selling products.","woo-gutenberg-products-block"),supports:{align:["wide","full"]},attributes:c()({},B.a),edit:function(e){return Object(o.createElement)(M,e)},save:function(e){var t=e.attributes.align;return Object(o.createElement)(o.RawHTML,{className:t?"align".concat(t):""},Object(P.a)(e,"woocommerce/product-best-sellers"))}})}}));
build/product-category-block.css DELETED
@@ -1,2472 +0,0 @@
1
- /** @format */
2
- /** @format */
3
- /** @format */
4
- /* stylelint-disable block-closing-brace-newline-after */
5
- /* stylelint-enable */
6
- /** @format */
7
- /**
8
- * Internal Dependencies
9
- */
10
- /** @format */
11
- @keyframes slide-in-left {
12
- 0% {
13
- transform: translateX(100%); }
14
- 100% {
15
- transform: translateX(0); } }
16
-
17
- @keyframes slide-out-left {
18
- 0% {
19
- transform: translateX(-100%); }
20
- 100% {
21
- transform: translateX(-200%); } }
22
-
23
- @keyframes slide-in-right {
24
- 0% {
25
- transform: translateX(-100%); }
26
- 100% {
27
- transform: translateX(0); } }
28
-
29
- @keyframes slide-out-right {
30
- 0% {
31
- transform: translateX(-100%); }
32
- 100% {
33
- transform: translateX(0%); } }
34
-
35
- /**
36
- The CSSTransition element creates a containing div without a class
37
- */
38
- .woocommerce-slide-animation > div {
39
- width: 100%;
40
- white-space: nowrap;
41
- overflow: hidden;
42
- display: flex; }
43
-
44
- .woocommerce-slide-animation.animate-left .slide-enter-active {
45
- animation: slide-in-left;
46
- animation-duration: 200ms; }
47
-
48
- .woocommerce-slide-animation.animate-left .slide-exit-active {
49
- animation: slide-out-left;
50
- animation-duration: 200ms; }
51
-
52
- .woocommerce-slide-animation.animate-right .slide-enter-active {
53
- animation: slide-in-right;
54
- animation-duration: 200ms; }
55
-
56
- .woocommerce-slide-animation.animate-right .slide-exit-active {
57
- animation: slide-out-right;
58
- animation-duration: 200ms; }
59
-
60
- @media screen and (prefers-reduced-motion: reduce) {
61
- .woocommerce-slide-animation .slide-enter-active,
62
- .woocommerce-slide-animation .slide-exit-active {
63
- animation: none !important; } }
64
-
65
- /** @format */
66
- .woocommerce-calendar {
67
- width: 100%;
68
- background-color: #f8f9f9;
69
- border-top: 1px solid #ccd0d4;
70
- height: 396px; }
71
- .woocommerce-calendar.is-mobile {
72
- height: 100%;
73
- min-height: 537px; }
74
-
75
- .woocommerce-calendar__react-dates {
76
- width: 100%;
77
- overflow-x: hidden; }
78
- .woocommerce-calendar__react-dates .DayPicker {
79
- margin: 0 auto; }
80
- .woocommerce-calendar__react-dates .CalendarMonth_table {
81
- margin-top: 10px; }
82
- .woocommerce-calendar__react-dates .CalendarDay__selected_span {
83
- background: #95588a;
84
- border: 1px solid #ccd0d4; }
85
- .woocommerce-calendar__react-dates .CalendarDay__selected {
86
- background: #622557;
87
- border: 1px solid #ccd0d4; }
88
- .woocommerce-calendar__react-dates .CalendarDay__hovered_span {
89
- background: #95588a;
90
- border: 1px solid #e2e4e7;
91
- color: white; }
92
- .woocommerce-calendar__react-dates .CalendarDay__blocked_out_of_range {
93
- color: #a2aab2; }
94
- .woocommerce-calendar__react-dates .DayPicker_transitionContainer,
95
- .woocommerce-calendar__react-dates .CalendarMonthGrid,
96
- .woocommerce-calendar__react-dates .CalendarMonth,
97
- .woocommerce-calendar__react-dates .DayPicker {
98
- background-color: #f8f9f9; }
99
- .woocommerce-calendar__react-dates .DayPicker_weekHeader_li {
100
- color: #606a73; }
101
- .woocommerce-calendar__react-dates .DayPickerNavigation_button:focus {
102
- outline: 2px solid #bfe7f3; }
103
-
104
- .woocommerce-calendar__inputs {
105
- padding: 1em;
106
- width: 100%;
107
- max-width: 500px;
108
- display: grid;
109
- grid-template-columns: 43% 14% 43%;
110
- margin: 0 auto; }
111
- .woocommerce-calendar__inputs .components-base-control {
112
- margin: 0; }
113
-
114
- .woocommerce-calendar__inputs-to {
115
- display: flex;
116
- align-items: center;
117
- justify-content: center;
118
- grid-column-start: 2; }
119
-
120
- .woocommerce-calendar__input {
121
- position: relative; }
122
- .woocommerce-calendar__input .dashicons-calendar {
123
- position: absolute;
124
- top: 50%;
125
- transform: translateY(-50%);
126
- left: 10px; }
127
- .woocommerce-calendar__input .dashicons-calendar path {
128
- fill: #6c7781; }
129
- .woocommerce-calendar__input:first-child {
130
- grid-column-start: 1; }
131
- .woocommerce-calendar__input:last-child {
132
- grid-column-start: 3; }
133
- .woocommerce-calendar__input.is-empty .dashicons-calendar path {
134
- fill: #6c7781; }
135
- .woocommerce-calendar__input.is-error .dashicons-calendar path {
136
- fill: #d94f4f; }
137
- .woocommerce-calendar__input.is-error .woocommerce-calendar__input-text {
138
- border: 1px solid #d94f4f;
139
- box-shadow: inset 0 0 8px #d94f4f; }
140
- .woocommerce-calendar__input.is-error .woocommerce-calendar__input-text:focus {
141
- box-shadow: inset 0 0 8px #d94f4f, 0 0 6px rgba(30, 140, 190, 0.8); }
142
- .woocommerce-calendar__input .woocommerce-calendar__input-text {
143
- color: #555d66;
144
- border-radius: 3px;
145
- padding: 10px 10px 10px 30px;
146
- width: 100%;
147
- font-size: 13px;
148
- font-size: 0.8125rem; }
149
- .woocommerce-calendar__input .woocommerce-calendar__input-text:-ms-input-placeholder {
150
- color: #6c7781; }
151
- .woocommerce-calendar__input .woocommerce-calendar__input-text::-ms-input-placeholder {
152
- color: #6c7781; }
153
- .woocommerce-calendar__input .woocommerce-calendar__input-text::placeholder {
154
- color: #6c7781; }
155
- .woocommerce-calendar__input .woocommerce-calendar__input-text:focus + span .woocommerce-calendar__input-error {
156
- display: block; }
157
-
158
- .woocommerce-filters-date__content .woocommerce-calendar__input-error {
159
- display: none; }
160
- .woocommerce-filters-date__content .woocommerce-calendar__input-error .components-popover__content {
161
- background-color: #606a73;
162
- color: white;
163
- padding: 0.5em;
164
- border: none; }
165
- .woocommerce-filters-date__content .woocommerce-calendar__input-error.components-popover .components-popover__content {
166
- min-width: 100px;
167
- width: 100px;
168
- text-align: center; }
169
- .woocommerce-filters-date__content .woocommerce-calendar__input-error.components-popover:not(.no-arrow):not(.is-mobile).is-bottom::before {
170
- border-bottom-color: #606a73;
171
- z-index: 1;
172
- top: -6px; }
173
-
174
- .woocommerce-filters-date__content.is-mobile .woocommerce-calendar__input-error .components-popover__content {
175
- height: initial; }
176
-
177
- /** @format */
178
- .woocommerce-card {
179
- margin-bottom: 24px;
180
- background: white;
181
- border: 1px solid #ccd0d4; }
182
- @media (max-width: 782px) {
183
- .woocommerce-card {
184
- margin-left: -16px;
185
- margin-right: -16px;
186
- margin-bottom: 12px;
187
- border-left: none;
188
- border-right: none;
189
- width: auto; } }
190
-
191
- .woocommerce-card__header {
192
- padding: 13px 16px;
193
- border-bottom: 1px solid #ccd0d4;
194
- display: grid;
195
- align-items: center; }
196
- .has-action .woocommerce-card__header {
197
- grid-template-columns: auto 1fr; }
198
- .has-menu .woocommerce-card__header {
199
- grid-template-columns: auto 24px; }
200
- .has-menu.has-action .woocommerce-card__header {
201
- grid-gap: 12px;
202
- grid-template-columns: auto 1fr 24px; }
203
-
204
- .woocommerce-card__header-item {
205
- -ms-grid-row-align: center; }
206
- .woocommerce-card__header-item:nth-child(1) {
207
- grid-column-start: 1;
208
- grid-column-end: 2;
209
- grid-row-start: 1;
210
- grid-row-end: 2; }
211
- .woocommerce-card__header-item:nth-child(2) {
212
- grid-column-start: 2;
213
- grid-column-end: 3;
214
- grid-row-start: 1;
215
- grid-row-end: 2; }
216
- .woocommerce-card__header-item:nth-child(3) {
217
- grid-column-start: 3;
218
- grid-column-end: 4;
219
- grid-row-start: 1;
220
- grid-row-end: 2; }
221
-
222
- .woocommerce-card__action,
223
- .woocommerce-card__menu {
224
- text-align: right; }
225
-
226
- .woocommerce-card__body {
227
- padding: 16px; }
228
-
229
- .woocommerce-ellipsis-menu__toggle {
230
- padding: 0; }
231
-
232
- .woocommerce-card__title {
233
- margin: 0;
234
- padding: 3px 0;
235
- font-size: 15px;
236
- font-size: 0.9375rem;
237
- line-height: 1.2;
238
- font-weight: 600; }
239
-
240
- /** @format */
241
- .woocommerce-count {
242
- border: 1px solid;
243
- border-radius: 10px;
244
- padding: 0 8px;
245
- font-weight: bold; }
246
-
247
- /** @format */
248
- .woocommerce-page .woocommerce-dropdown-button {
249
- background-color: white;
250
- position: relative;
251
- border: 1px solid #e2e4e7;
252
- color: #555d66;
253
- border-radius: 4px;
254
- padding: 0 40px 0 0;
255
- width: 100%; }
256
- .woocommerce-page .woocommerce-dropdown-button::after {
257
- content: '';
258
- position: absolute;
259
- right: 14px;
260
- top: 50%;
261
- transform: translateY(-50%);
262
- width: 0;
263
- height: 0;
264
- border-style: solid;
265
- border-width: 6px 6px 0 6px;
266
- border-color: #555d66 transparent transparent transparent;
267
- transition: transform ease 0.2s; }
268
- @media screen and (prefers-reduced-motion: reduce) {
269
- .woocommerce-page .woocommerce-dropdown-button::after {
270
- transition: none; } }
271
- .woocommerce-page .woocommerce-dropdown-button.is-open::after {
272
- transform: translateY(-50%) rotate(180deg); }
273
- .woocommerce-page .woocommerce-dropdown-button:hover, .woocommerce-page .woocommerce-dropdown-button:active, .woocommerce-page .woocommerce-dropdown-button.is-open {
274
- background-color: #f8f9f9; }
275
- .woocommerce-page .woocommerce-dropdown-button.is-multi-line .woocommerce-dropdown-button__labels {
276
- flex-direction: column; }
277
-
278
- .woocommerce-dropdown-button__labels {
279
- text-align: left;
280
- padding: 8px 12px;
281
- min-height: 48px;
282
- display: flex;
283
- align-items: center;
284
- width: 100%;
285
- justify-content: space-around; }
286
- @media (max-width: 400px) {
287
- .woocommerce-dropdown-button__labels {
288
- min-height: 46px; } }
289
- .woocommerce-dropdown-button__labels span {
290
- width: 100%;
291
- text-align: left; }
292
- .woocommerce-dropdown-button__labels span:last-child {
293
- font-size: 12px;
294
- font-size: 0.75rem;
295
- margin: 0; }
296
- .woocommerce-dropdown-button__labels span:first-child {
297
- font-size: 13px;
298
- font-size: 0.8125rem;
299
- font-weight: 600; }
300
- @media (max-width: 400px) {
301
- .woocommerce-dropdown-button__labels span:last-child {
302
- font-size: 10px;
303
- font-size: 0.625rem; }
304
- .woocommerce-dropdown-button__labels span:first-child {
305
- font-size: 12px;
306
- font-size: 0.75rem; } }
307
-
308
- /** @format */
309
- .woocommerce-ellipsis-menu__toggle {
310
- height: 24px;
311
- justify-content: center;
312
- vertical-align: middle;
313
- width: 24px; }
314
- .woocommerce-ellipsis-menu__toggle .dashicon {
315
- transform: rotate(90deg); }
316
-
317
- .woocommerce-ellipsis-menu__popover {
318
- text-align: left; }
319
- .woocommerce-ellipsis-menu__popover:not(.is-mobile)::before, .woocommerce-ellipsis-menu__popover:not(.is-mobile)::after {
320
- margin-left: -16px; }
321
- .woocommerce-ellipsis-menu__popover .components-popover__content {
322
- width: 182px;
323
- padding: 2px; }
324
- .woocommerce-ellipsis-menu__popover .components-form-toggle.is-checked .components-form-toggle__track {
325
- background-color: #95588a; }
326
- .woocommerce-ellipsis-menu__popover .woocommerce-ellipsis-menu__content {
327
- width: 100%; }
328
- .woocommerce-ellipsis-menu__popover .woocommerce-ellipsis-menu__title,
329
- .woocommerce-ellipsis-menu__popover .woocommerce-ellipsis-menu__item {
330
- padding: 10px 12px 4px; }
331
- .woocommerce-ellipsis-menu__popover .woocommerce-ellipsis-menu__item:focus {
332
- box-shadow: inset 0 0 0 1px #6c7781, inset 0 0 0 2px #fff;
333
- outline: 2px solid transparent;
334
- outline-offset: -2px; }
335
- .woocommerce-ellipsis-menu__popover .woocommerce-ellipsis-menu__item .components-base-control__label {
336
- margin-bottom: 0; }
337
- .woocommerce-ellipsis-menu__popover .woocommerce-ellipsis-menu__title {
338
- color: #6c7781;
339
- padding-bottom: 8px; }
340
- .woocommerce-ellipsis-menu__popover .components-base-control {
341
- margin: 0; }
342
-
343
- /** @format */
344
- .woocommerce-empty-content {
345
- text-align: center; }
346
- .woocommerce-empty-content .woocommerce-empty-content__actions .components-button + .components-button {
347
- margin-left: 16px; }
348
-
349
- /** @format */
350
- .woocommerce-filters-advanced {
351
- margin: 24px 0; }
352
- .woocommerce-filters-advanced .woocommerce-card__header {
353
- padding: 8px 16px; }
354
- .woocommerce-filters-advanced .woocommerce-card__body {
355
- padding: 0; }
356
- .woocommerce-filters-advanced .components-select-control__input {
357
- height: 38px;
358
- padding: 0;
359
- margin: 0; }
360
- .woocommerce-filters-advanced .components-base-control__field {
361
- margin-bottom: 0; }
362
-
363
- .woocommerce-filters-advanced__title-select {
364
- width: 70px;
365
- display: inline-block;
366
- margin: 0 8px; }
367
-
368
- .woocommerce-filters-advanced__list {
369
- margin: 0; }
370
-
371
- .woocommerce-filters-advanced__list-item {
372
- padding: 0 16px 0 0;
373
- margin: 0;
374
- display: grid;
375
- grid-template-columns: auto 40px;
376
- background-color: #f8f9f9;
377
- border-bottom: 1px solid #ccd0d4; }
378
- .woocommerce-filters-advanced__list-item fieldset {
379
- padding: 8px 8px 8px 16px; }
380
- .woocommerce-filters-advanced__list-item:hover {
381
- background-color: #f3f4f5; }
382
- .woocommerce-filters-advanced__list-item .woocommerce-filters-advanced__remove {
383
- width: 40px;
384
- height: 38px;
385
- align-self: center; }
386
- .woocommerce-filters-advanced__list-item .components-form-token-field {
387
- border-radius: 4px; }
388
-
389
- .woocommerce-filters-advanced__add-filter {
390
- padding: 12px;
391
- margin: 0;
392
- color: #95588a;
393
- display: block;
394
- background-color: #f8f9f9;
395
- border-bottom: 1px solid #ccd0d4; }
396
- .woocommerce-filters-advanced__add-filter:hover {
397
- background-color: #f3f4f5; }
398
- .woocommerce-filters-advanced__add-filter div div {
399
- display: inline-block; }
400
- .woocommerce-filters-advanced__add-filter .components-popover:not(.is-mobile) .components-popover__content {
401
- min-width: 180px; }
402
-
403
- .woocommerce-filters-advanced__fieldset {
404
- display: flex;
405
- align-items: center;
406
- white-space: nowrap; }
407
- .woocommerce-filters-advanced__fieldset > div {
408
- padding: 0 4px; }
409
- @media (max-width: 782px) {
410
- .woocommerce-filters-advanced__fieldset > div {
411
- display: block;
412
- margin: 0;
413
- width: 100%;
414
- padding: 4px 0; } }
415
- @media (max-width: 782px) {
416
- .woocommerce-filters-advanced__fieldset {
417
- display: block; } }
418
- .woocommerce-filters-advanced__fieldset.is-english {
419
- display: grid;
420
- grid-template-columns: 100px 150px auto; }
421
- @media (max-width: 782px) {
422
- .woocommerce-filters-advanced__fieldset.is-english {
423
- display: block; } }
424
-
425
- .woocommerce-filters-advanced__rule {
426
- width: 150px; }
427
-
428
- .woocommerce-filters-advanced__input {
429
- width: 100%; }
430
-
431
- .woocommerce-filters-advanced__add-filter-dropdown {
432
- display: inline-block; }
433
-
434
- .woocommerce-filters-advanced__add-button {
435
- color: inherit;
436
- padding: 8px; }
437
- .woocommerce-filters-advanced__add-button svg {
438
- fill: currentColor; }
439
- .woocommerce-filters-advanced__add-button.components-icon-button:not(:disabled):not([aria-disabled='true']):not(.is-default):hover {
440
- color: #c88bbd; }
441
- .woocommerce-filters-advanced__add-button:not(:disabled):not([aria-disabled='true']):focus {
442
- color: #95588a;
443
- background-color: transparent; }
444
-
445
- .woocommerce-filters-advanced__controls {
446
- padding: 8px 16px;
447
- display: flex;
448
- align-items: center; }
449
- .woocommerce-filters-advanced__controls .components-button {
450
- margin-right: 16px; }
451
-
452
- .woocommerce-filters-advanced__add-dropdown {
453
- padding: 8px 0; }
454
- .woocommerce-filters-advanced__add-dropdown li {
455
- margin: 0; }
456
- .woocommerce-filters-advanced__add-dropdown .components-button {
457
- width: 100%;
458
- padding: 8px; }
459
- .woocommerce-filters-advanced__add-dropdown .components-button:hover {
460
- background-color: #f3f4f5; }
461
- .woocommerce-filters-advanced__add-dropdown .components-button:not(:disabled):not([aria-disabled='true']):focus {
462
- background-color: #edeff0;
463
- box-shadow: none; }
464
-
465
- /** @format */
466
- .woocommerce-filters-date__content.is-mobile .components-popover__header {
467
- border: none;
468
- height: 0; }
469
-
470
- .woocommerce-filters-date__content.is-mobile .components-popover__close {
471
- transform: translateY(22px); }
472
-
473
- .woocommerce-filters-date__content.is-mobile .components-tab-panel__tab-content {
474
- height: calc(100% - 36px); }
475
-
476
- .woocommerce-filters-date__tabs {
477
- height: calc(100% - 42px); }
478
- .woocommerce-filters-date__tabs .components-tab-panel__tabs {
479
- display: grid;
480
- grid-template-columns: 1fr 1fr;
481
- border-radius: 5px;
482
- margin: 0 1em 1em 1em; }
483
- .woocommerce-filters-date__tabs .components-tab-panel__tab-content {
484
- display: flex;
485
- flex-direction: column;
486
- align-items: center; }
487
-
488
- .woocommerce-filters-date__tab:nth-child(1) {
489
- grid-column-start: 1;
490
- grid-column-end: 2;
491
- grid-row-start: 1;
492
- grid-row-end: 2; }
493
-
494
- .woocommerce-filters-date__tab:nth-child(2) {
495
- grid-column-start: 2;
496
- grid-column-end: 3;
497
- grid-row-start: 1;
498
- grid-row-end: 2; }
499
-
500
- .woocommerce-filters-date__tab {
501
- outline: none;
502
- border: 1px solid #95588a;
503
- padding: 8px;
504
- margin: 0;
505
- border-radius: 4px 0 0 4px;
506
- color: #95588a;
507
- background-color: transparent; }
508
- .woocommerce-filters-date__tab:hover {
509
- background-color: #f8f4f7;
510
- cursor: pointer; }
511
- .woocommerce-filters-date__tab:last-child {
512
- border-radius: 0 4px 4px 0; }
513
- .woocommerce-filters-date__tab.is-active {
514
- background-color: #95588a;
515
- color: white; }
516
- .woocommerce-filters-date__tab:focus {
517
- box-shadow: inset 0 -1px 0 #00435d, 0 0 0 2px #bfe7f3; }
518
-
519
- .woocommerce-filters-date__text {
520
- font-size: 12px;
521
- font-size: 0.75rem;
522
- font-weight: 100;
523
- text-transform: uppercase;
524
- text-align: center;
525
- color: #6c7781;
526
- width: 100%;
527
- margin: 0;
528
- padding: 1em;
529
- background-color: white; }
530
-
531
- .woocommerce-filters-date__content-controls {
532
- display: flex;
533
- flex-direction: column;
534
- width: 100%;
535
- align-items: center;
536
- padding-bottom: 1em;
537
- background-color: white; }
538
- .woocommerce-filters-date__content-controls.is-custom {
539
- border-top: 1px solid #ccd0d4; }
540
- .woocommerce-filters-date__content-controls.is-sticky-bottom {
541
- position: absolute;
542
- bottom: 0; }
543
-
544
- .woocommerce-filters-date__button-group {
545
- padding-top: 1em;
546
- display: flex;
547
- justify-content: center;
548
- width: 100%; }
549
- .woocommerce-filters-date__button-group .woocommerce-filters-date__button.is-button {
550
- justify-content: center;
551
- width: 40%;
552
- height: 34px;
553
- margin: 0 12px; }
554
-
555
- .woocommerce-filters-date__content.is-center:not(.is-mobile) > .components-popover__content {
556
- transform: none;
557
- margin-left: -160px; }
558
-
559
- /** @format */
560
- .woocommerce-filters-filter__content.is-mobile .components-popover__header-title {
561
- font-size: 12px;
562
- font-size: 0.75rem;
563
- font-weight: 100;
564
- text-transform: uppercase;
565
- text-align: center;
566
- color: #555d66; }
567
-
568
- .woocommerce-filters-filter__content.is-mobile .woocommerce-filters-filter__content-list-item:last-child {
569
- border-bottom: 1px solid #ccd0d4; }
570
-
571
- .woocommerce-filters-filter__content-list {
572
- margin: 0;
573
- width: 100%;
574
- min-width: 100%; }
575
-
576
- .woocommerce-filters-filter__content-list-item {
577
- border-bottom: 1px solid #ccd0d4;
578
- margin: 0; }
579
- .woocommerce-filters-filter__content-list-item:last-child {
580
- border-bottom: none; }
581
- .woocommerce-filters-filter__content-list-item.is-selected .woocommerce-filters-filter__button {
582
- background-color: white; }
583
- .woocommerce-filters-filter__content-list-item.is-selected .woocommerce-filters-filter__button.components-button:not(:disabled):not([aria-disabled='true']):focus {
584
- background-color: white; }
585
- .woocommerce-filters-filter__content-list-item.is-selected .woocommerce-filters-filter__button::before {
586
- content: '';
587
- width: 8px;
588
- height: 8px;
589
- background-color: #95588a;
590
- position: absolute;
591
- top: 50%;
592
- left: 1em;
593
- transform: translate(50%, -50%); }
594
- .woocommerce-filters-filter__content-list-item .woocommerce-filters-filter__button {
595
- position: relative;
596
- display: block;
597
- width: 100%;
598
- padding: 1em 1em 1em 3em;
599
- background-color: #f8f9f9;
600
- text-align: left; }
601
- .woocommerce-filters-filter__content-list-item .woocommerce-filters-filter__button.components-button {
602
- color: #555d66; }
603
- .woocommerce-filters-filter__content-list-item .woocommerce-filters-filter__button:hover {
604
- background-color: #f3f4f5;
605
- color: #555d66; }
606
- .woocommerce-filters-filter__content-list-item .woocommerce-filters-filter__button.components-button:not(:disabled):not([aria-disabled='true']):focus {
607
- background-color: #f8f9f9; }
608
- .woocommerce-filters-filter__content-list-item .woocommerce-filters-filter__button .dashicon {
609
- position: absolute;
610
- left: 1em;
611
- top: 50%;
612
- transform: translate(0, -50%); }
613
-
614
- /** @format */
615
- .woocommerce-filters .components-base-control__field {
616
- margin-bottom: 0; }
617
-
618
- .woocommerce-filters__basic-filters {
619
- display: flex;
620
- margin-bottom: 24px; }
621
- @media (max-width: 1280px) {
622
- .woocommerce-filters__basic-filters {
623
- flex-direction: column; } }
624
-
625
- .woocommerce-filters-filter {
626
- width: 33.3%;
627
- padding: 0 12px;
628
- min-height: 82px;
629
- display: flex;
630
- flex-direction: column;
631
- justify-content: flex-end; }
632
- .woocommerce-filters-filter:first-child {
633
- padding-left: 0; }
634
- .woocommerce-filters-filter:last-child {
635
- padding-right: 0; }
636
- @media (max-width: 1280px) {
637
- .woocommerce-filters-filter {
638
- width: 50%;
639
- padding: 0;
640
- min-height: 78px; } }
641
- @media (max-width: 782px) {
642
- .woocommerce-filters-filter {
643
- width: 100%; } }
644
-
645
- .woocommerce-filters-label {
646
- margin: 7px 0;
647
- display: block; }
648
- @media (max-width: 1280px) {
649
- .woocommerce-filters-label {
650
- margin: 5px 0; } }
651
-
652
- .woocommerce-filters-date__content .components-popover__content,
653
- .woocommerce-filters-filter__content .components-popover__content {
654
- width: 320px;
655
- border: 1px solid #ccd0d4;
656
- background-color: white; }
657
-
658
- .woocommerce-filters-date__content.is-mobile .components-popover__content,
659
- .woocommerce-filters-filter__content.is-mobile .components-popover__content {
660
- width: 100%;
661
- height: 100%;
662
- border: none; }
663
-
664
- .woocommerce-filters__compare .woocommerce-card__body {
665
- padding: 0; }
666
-
667
- .woocommerce-filters__compare-body {
668
- padding: 16px;
669
- background-color: #f8f9f9;
670
- border-bottom: 1px solid #e2e4e7; }
671
-
672
- .woocommerce-filters__compare-footer {
673
- padding: 16px;
674
- display: flex;
675
- align-items: center; }
676
- .woocommerce-filters__compare-footer .components-button {
677
- margin-right: 16px; }
678
-
679
- .woocommerce-filters-filter__search .woocommerce-search__autocomplete-results {
680
- position: static; }
681
-
682
- .woocommerce-filters-filter__search .woocommerce-search__inline-container {
683
- overflow: hidden; }
684
- .woocommerce-filters-filter__search .woocommerce-search__inline-container:not(.is-active) {
685
- border: none; }
686
-
687
- /** @format */
688
- .woocommerce-flag.is-round {
689
- overflow: hidden;
690
- border-radius: 50%; }
691
- .woocommerce-flag.is-round img {
692
- width: auto;
693
- height: 100%; }
694
-
695
- .woocommerce-flag .woocommerce-flag__fallback {
696
- background: #e2e4e7; }
697
-
698
- /** @format */
699
- .woocommerce-gravatar {
700
- border-radius: 50%; }
701
-
702
- /** @format */
703
- .woocommerce-order-status {
704
- display: flex;
705
- align-items: center; }
706
-
707
- .woocommerce-order-status__indicator {
708
- width: 16px;
709
- height: 16px;
710
- display: block;
711
- background: #ccd0d4;
712
- margin-right: 8px;
713
- border-radius: 50%;
714
- border: 3px solid #e2e4e7; }
715
- .woocommerce-order-status__indicator.is-processing {
716
- background: #4ab866;
717
- border-color: #93d5a4; }
718
- .woocommerce-order-status__indicator.is-on-hold {
719
- background: #ffb900;
720
- border-color: #ffd566; }
721
-
722
- /** @format */
723
- .woocommerce-pagination {
724
- display: flex;
725
- flex-direction: row;
726
- flex-wrap: nowrap;
727
- justify-content: center;
728
- align-items: center; }
729
- @media (max-width: 782px) {
730
- .woocommerce-pagination {
731
- flex-direction: column; } }
732
- .woocommerce-pagination input {
733
- border-radius: 4px; }
734
-
735
- .woocommerce-pagination__page-arrows {
736
- display: flex;
737
- flex-direction: row; }
738
-
739
- .woocommerce-pagination__page-arrows-buttons {
740
- display: inline-flex;
741
- align-items: baseline;
742
- border: 1px solid #b5bfc9;
743
- border-bottom: 2px solid #b5bfc9;
744
- border-radius: 4px;
745
- background: #f0f2f4; }
746
- .woocommerce-pagination__page-arrows-buttons .components-button:not(:disabled):not([aria-disabled='true']) {
747
- color: #24292d;
748
- height: 30px;
749
- width: 32px;
750
- justify-content: center; }
751
- .woocommerce-pagination__page-arrows-buttons .components-icon-button:not(:disabled):not([aria-disabled='true']):hover {
752
- color: #666666; }
753
- .woocommerce-pagination__page-arrows-buttons button:first-child {
754
- border-right: 2px solid #d3d9de; }
755
- .woocommerce-pagination__page-arrows-buttons .woocommerce-pagination__link {
756
- padding: 4px; }
757
-
758
- .woocommerce-pagination__page-arrows-label {
759
- margin-top: 8px;
760
- margin-right: 8px; }
761
-
762
- .woocommerce-pagination__page-picker {
763
- margin-left: 16px; }
764
- @media (max-width: 782px) {
765
- .woocommerce-pagination__page-picker {
766
- margin-top: 16px;
767
- margin-left: 0; } }
768
- .woocommerce-pagination__page-picker .woocommerce-pagination__page-picker-input {
769
- margin-left: 8px;
770
- width: 60px;
771
- height: 34px;
772
- box-shadow: none; }
773
-
774
- .woocommerce-pagination__per-page-picker {
775
- margin-left: 16px; }
776
- @media (max-width: 782px) {
777
- .woocommerce-pagination__per-page-picker {
778
- margin-top: 16px;
779
- margin-left: 0; } }
780
- .woocommerce-pagination__per-page-picker .components-base-control {
781
- margin-bottom: 0; }
782
- .woocommerce-pagination__per-page-picker .components-base-control__field {
783
- display: flex;
784
- flex-direction: row;
785
- align-items: baseline;
786
- margin-bottom: 0; }
787
- .woocommerce-pagination__per-page-picker .components-select-control__input {
788
- width: 60px;
789
- height: 34px;
790
- box-shadow: none; }
791
- .woocommerce-pagination__per-page-picker .components-base-control__label {
792
- margin-right: 8px; }
793
-
794
- .woocommerce-pagination__page-picker-input.has-error,
795
- .woocommerce-pagination__page-picker-input.has-error:focus {
796
- border-color: #d94f4f;
797
- box-shadow: 0 0 2px #d94f4f; }
798
-
799
- /** @format */
800
- .woocommerce-product-image {
801
- border-radius: 50%; }
802
-
803
- /** @format */
804
- .woocommerce-rating {
805
- position: relative;
806
- vertical-align: middle;
807
- display: inline-block;
808
- overflow: hidden; }
809
- .woocommerce-rating .gridicon {
810
- fill: #d7dade; }
811
- .woocommerce-rating .woocommerce-rating__star-outline {
812
- position: absolute;
813
- left: 0;
814
- top: 0;
815
- white-space: nowrap;
816
- overflow: hidden; }
817
- .woocommerce-rating .woocommerce-rating__star-outline .gridicon {
818
- fill: #555d66; }
819
-
820
- /** @format */
821
- .woocommerce-search {
822
- position: relative; }
823
- .woocommerce-search .woocommerce-search__icon {
824
- position: absolute;
825
- top: 10px;
826
- left: 10px;
827
- fill: #a2aab2; }
828
- .woocommerce-search .woocommerce-search__inline-container {
829
- width: 100%;
830
- padding: 2px 2px 2px 36px;
831
- border: 1px solid #ccd0d4;
832
- background-color: white; }
833
- .woocommerce-search .woocommerce-search__inline-container.is-active {
834
- border-color: #00a0d2;
835
- box-shadow: inset 0 0 0 #00435d, 0 0 1px 2px #bfe7f3; }
836
- .woocommerce-search .woocommerce-search__inline-container .woocommerce-search__token-list {
837
- display: inline-block; }
838
- .woocommerce-search .woocommerce-search__inline-input,
839
- .woocommerce-search .woocommerce-search__inline-input:focus {
840
- border: none;
841
- outline: none;
842
- box-shadow: none;
843
- padding: 6px 0; }
844
- .woocommerce-search .woocommerce-search__input {
845
- width: 100%;
846
- padding: 8px 12px 8px 36px;
847
- border: 1px solid #ccd0d4; }
848
- .woocommerce-search .woocommerce-search__autocomplete-results {
849
- display: flex;
850
- flex-direction: column;
851
- align-items: stretch;
852
- border: 1px solid #ccd0d4;
853
- position: absolute;
854
- top: 36px;
855
- left: 0;
856
- right: 0;
857
- z-index: 10; }
858
- .woocommerce-search .woocommerce-search__autocomplete-results:empty {
859
- display: none; }
860
- .woocommerce-search .woocommerce-search__autocomplete-results.is-static-results {
861
- position: static; }
862
- .woocommerce-search .woocommerce-search__autocomplete-result {
863
- margin-bottom: 0;
864
- display: flex;
865
- flex-direction: row;
866
- flex-grow: 1;
867
- flex-shrink: 0;
868
- align-items: center;
869
- padding: 12px;
870
- color: #95588a;
871
- text-decoration: underline;
872
- text-align: left;
873
- background: #f8f9f9;
874
- border-bottom: 1px solid #e2e4e7; }
875
- .woocommerce-search .woocommerce-search__autocomplete-result:last-of-type {
876
- border-bottom: none; }
877
- .woocommerce-search .woocommerce-search__autocomplete-result:hover {
878
- box-shadow: none;
879
- color: #95588a;
880
- background: #f3f4f5; }
881
- .woocommerce-search .woocommerce-search__autocomplete-result.is-selected, .woocommerce-search .woocommerce-search__autocomplete-result:focus, .woocommerce-search .woocommerce-search__autocomplete-result:active {
882
- color: #95588a;
883
- background: white;
884
- box-shadow: inset 0 0 0 1px #f3f4f5, inset 0 0 0 2px #24292d; }
885
- .woocommerce-search .woocommerce-search__autocomplete-result .woocommerce-search__result-thumbnail {
886
- margin-right: 12px; }
887
-
888
- /** @format */
889
- .woocommerce-section-header {
890
- padding: 13px;
891
- border-bottom: none;
892
- display: flex;
893
- justify-content: space-between; }
894
- @media (max-width: 782px) {
895
- .woocommerce-section-header {
896
- margin-left: -16px;
897
- margin-right: -16px;
898
- margin-bottom: 12px;
899
- border-left: none;
900
- border-right: none;
901
- width: auto; } }
902
- .woocommerce-section-header hr {
903
- align-self: center;
904
- flex-grow: 1;
905
- height: 1px;
906
- margin: 0 10px; }
907
-
908
- .woocommerce-section-header__actions,
909
- .woocommerce-section-header__menu {
910
- text-align: right; }
911
-
912
- .woocommerce-section-header__actions {
913
- display: flex;
914
- flex-grow: 1;
915
- justify-content: flex-end; }
916
-
917
- .woocommerce-ellipsis-menu__toggle {
918
- padding: 0; }
919
-
920
- .woocommerce-section-header__menu {
921
- display: flex;
922
- flex-direction: column;
923
- justify-content: center; }
924
-
925
- .woocommerce-section-header__title {
926
- margin: 0 16px 0 0;
927
- padding: 3px 0;
928
- font-size: 15px;
929
- font-size: 0.9375rem;
930
- line-height: 2.2;
931
- font-weight: 600; }
932
-
933
- /** @format */
934
- .woocommerce-segmented-selection {
935
- width: 100%;
936
- color: #555d66; }
937
-
938
- .woocommerce-segmented-selection__container {
939
- width: 100%;
940
- grid-template-columns: 1fr 1fr;
941
- display: grid;
942
- border-top: 1px solid #ccd0d4;
943
- border-bottom: 1px solid #ccd0d4;
944
- background-color: #ccd0d4; }
945
-
946
- .woocommerce-segmented-selection__item {
947
- display: block; }
948
- .woocommerce-segmented-selection__item:nth-child(1) {
949
- grid-column-start: 1;
950
- grid-column-end: 2;
951
- grid-row-start: 1;
952
- grid-row-end: 2; }
953
- .woocommerce-segmented-selection__item:nth-child(2) {
954
- grid-column-start: 2;
955
- grid-column-end: 3;
956
- grid-row-start: 1;
957
- grid-row-end: 2; }
958
- .woocommerce-segmented-selection__item:nth-child(3) {
959
- grid-column-start: 1;
960
- grid-column-end: 2;
961
- grid-row-start: 2;
962
- grid-row-end: 3; }
963
- .woocommerce-segmented-selection__item:nth-child(4) {
964
- grid-column-start: 2;
965
- grid-column-end: 3;
966
- grid-row-start: 2;
967
- grid-row-end: 3; }
968
- .woocommerce-segmented-selection__item:nth-child(5) {
969
- grid-column-start: 1;
970
- grid-column-end: 2;
971
- grid-row-start: 3;
972
- grid-row-end: 4; }
973
- .woocommerce-segmented-selection__item:nth-child(6) {
974
- grid-column-start: 2;
975
- grid-column-end: 3;
976
- grid-row-start: 3;
977
- grid-row-end: 4; }
978
- .woocommerce-segmented-selection__item:nth-child(7) {
979
- grid-column-start: 1;
980
- grid-column-end: 2;
981
- grid-row-start: 4;
982
- grid-row-end: 5; }
983
- .woocommerce-segmented-selection__item:nth-child(8) {
984
- grid-column-start: 2;
985
- grid-column-end: 3;
986
- grid-row-start: 4;
987
- grid-row-end: 5; }
988
- .woocommerce-segmented-selection__item:nth-child(9) {
989
- grid-column-start: 1;
990
- grid-column-end: 2;
991
- grid-row-start: 5;
992
- grid-row-end: 6; }
993
- .woocommerce-segmented-selection__item:nth-child(10) {
994
- grid-column-start: 2;
995
- grid-column-end: 3;
996
- grid-row-start: 5;
997
- grid-row-end: 6; }
998
- .woocommerce-segmented-selection__item:nth-child(2n) {
999
- border-left: 1px solid #ccd0d4;
1000
- border-top: 1px solid #ccd0d4; }
1001
- .woocommerce-segmented-selection__item:nth-child(2n + 1) {
1002
- border-top: 1px solid #ccd0d4; }
1003
- .woocommerce-segmented-selection__item:nth-child(-n + 2) {
1004
- border-top: 0; }
1005
-
1006
- .woocommerce-segmented-selection__label {
1007
- background-color: #f8f9f9;
1008
- padding: 12px 12px 12px 36px;
1009
- position: relative;
1010
- display: block;
1011
- height: 100%; }
1012
- .woocommerce-segmented-selection__label:active {
1013
- background-color: #f3f4f5; }
1014
- .woocommerce-segmented-selection__label:hover {
1015
- background-color: #f3f4f5; }
1016
-
1017
- .woocommerce-segmented-selection__input {
1018
- opacity: 0;
1019
- position: absolute;
1020
- left: -9999px; }
1021
- .woocommerce-segmented-selection__input:active + label .woocommerce-segmented-selection__label {
1022
- background-color: #f3f4f5; }
1023
- .woocommerce-segmented-selection__input:checked + label .woocommerce-segmented-selection__label {
1024
- background-color: white;
1025
- font-weight: 600; }
1026
- .woocommerce-segmented-selection__input:checked + label .woocommerce-segmented-selection__label::before {
1027
- content: '';
1028
- width: 8px;
1029
- height: 8px;
1030
- background-color: #95588a;
1031
- position: absolute;
1032
- top: 50%;
1033
- transform: translate(-20px, -50%); }
1034
- .woocommerce-segmented-selection__input:focus + label .woocommerce-segmented-selection__label {
1035
- box-shadow: inset 0 0 0 1px #24292d; }
1036
-
1037
- /** @format */
1038
- .woocommerce-split-button {
1039
- display: flex;
1040
- align-items: center;
1041
- padding: 4px 0 4px 0; }
1042
- .woocommerce-split-button .woocommerce-split-button__menu {
1043
- padding: 0; }
1044
- .woocommerce-split-button .woocommerce-split-button__main-action,
1045
- .woocommerce-split-button .woocommerce-split-button__menu-toggle {
1046
- line-height: 26px;
1047
- height: 42px;
1048
- border-radius: 3px;
1049
- white-space: nowrap;
1050
- border-width: 1px;
1051
- border-style: solid;
1052
- color: #555d66;
1053
- border-color: #b5bcc2;
1054
- background: #f3f4f5;
1055
- box-shadow: inset 0 -1px 0 #b5bcc2;
1056
- vertical-align: top; }
1057
- .woocommerce-split-button .woocommerce-split-button__main-action {
1058
- padding: 0 12px;
1059
- border-top-right-radius: 0;
1060
- border-bottom-right-radius: 0;
1061
- border-right: 0;
1062
- height: 32px; }
1063
- .woocommerce-split-button .woocommerce-split-button__menu-toggle {
1064
- border-top-left-radius: 0;
1065
- border-bottom-left-radius: 0;
1066
- padding: 4px;
1067
- height: 32px;
1068
- width: 32px; }
1069
- .woocommerce-split-button .woocommerce-split-button__menu-popover.is-mobile {
1070
- top: 46px; }
1071
- .woocommerce-split-button .woocommerce-split-button__main-action.components-button:not(:disabled):not([aria-disabled='true']):not(.is-default):hover,
1072
- .woocommerce-split-button .woocommerce-split-button__menu-toggle.components-icon-button:not(:disabled):not([aria-disabled='true']):not(.is-default):hover {
1073
- background-color: #fafafa;
1074
- border-color: #78848f;
1075
- box-shadow: inset 0 -1px 0 #b5bcc2; }
1076
- .woocommerce-split-button .woocommerce-split-button__menu-toggle.components-icon-button:not(:disabled):not([aria-disabled='true']):not(.is-default):focus,
1077
- .woocommerce-split-button .woocommerce-split-button__main-action.components-button:not(:disabled):not([aria-disabled='true']):not(.is-default):focus {
1078
- background-color: #fafafa;
1079
- border: 1px solid #555d66;
1080
- box-shadow: inset 0 -1px 0 #6c7781, 0 0 0 2px #bfe7f3; }
1081
- .woocommerce-split-button .woocommerce-split-button__main-action.components-button .gridicon,
1082
- .woocommerce-split-button .woocommerce-split-button__main-action.components-button .dashicon {
1083
- width: 18px;
1084
- height: 18px; }
1085
- .woocommerce-split-button.has-label .woocommerce-split-button__main-action.components-button .gridicon,
1086
- .woocommerce-split-button.has-label .woocommerce-split-button__main-action.components-button .dashicon {
1087
- margin-right: 8px; }
1088
- .woocommerce-split-button .woocommerce-split-button__menu-wrapper {
1089
- width: 100%;
1090
- padding: 4px; }
1091
- .woocommerce-split-button .woocommerce-split-button__menu-wrapper .components-button,
1092
- .woocommerce-split-button .woocommerce-split-button__menu-wrapper .components-icon-button {
1093
- color: #555d66;
1094
- margin-top: 4px;
1095
- margin-bottom: 4px; }
1096
- .woocommerce-split-button .woocommerce-split-button__menu-wrapper .components-button:not(:disabled):not([aria-disabled='true']):not(.is-default):hover {
1097
- background-color: white;
1098
- color: #24292d;
1099
- box-shadow: inset 0 0 0 1px #e2e4e7, inset 0 0 0 2px white, 0 1px 1px rgba(25, 30, 35, 0.2); }
1100
- .woocommerce-split-button .woocommerce-split-button__menu-item {
1101
- width: 100%;
1102
- padding: 4px;
1103
- border-radius: 0;
1104
- outline: none;
1105
- cursor: pointer; }
1106
- .woocommerce-split-button .woocommerce-split-button__menu-item .dashicon {
1107
- margin-right: 8px; }
1108
- .woocommerce-split-button .dashicons-arrow-down {
1109
- fill: #555d66;
1110
- height: 20px;
1111
- width: 20px; }
1112
- .woocommerce-split-button .woocommerce-split-button__menu-toggle.is-active,
1113
- .woocommerce-split-button .woocommerce-split-button__menu-toggle.is-active:hover,
1114
- .woocommerce-split-button .woocommerce-split-button__menu-toggle.is-active > svg,
1115
- .woocommerce-split-button .woocommerce-split-button__menu-toggle.is-active:hover > svg {
1116
- background: initial; }
1117
- .woocommerce-split-button .woocommerce-split-button__menu-toggle.is-active,
1118
- .woocommerce-split-button .woocommerce-split-button__menu-toggle.is-active:hover {
1119
- border-color: #b5bcc2; }
1120
-
1121
- .woocommerce-split-button.is-primary .woocommerce-split-button__main-action,
1122
- .woocommerce-split-button.is-primary .woocommerce-split-button__menu-toggle {
1123
- background: #95588a;
1124
- color: white;
1125
- border-color: #7c3f71;
1126
- box-shadow: inset 0 -1px 0 #7c3f71; }
1127
-
1128
- .woocommerce-split-button.is-primary .woocommerce-split-button__main-action.components-button:not(:disabled):not([aria-disabled='true']):not(.is-default):hover,
1129
- .woocommerce-split-button.is-primary .woocommerce-split-button__menu-toggle.components-icon-button:not(:disabled):not([aria-disabled='true']):not(.is-default):hover {
1130
- color: white;
1131
- background-color: #7c3f71;
1132
- border-color: #622557;
1133
- box-shadow: inset 0 -1px 0 #622557; }
1134
-
1135
- .woocommerce-split-button.is-primary .woocommerce-split-button__menu-toggle.components-icon-button:not(:disabled):not([aria-disabled='true']):not(.is-default):focus,
1136
- .woocommerce-split-button.is-primary .woocommerce-split-button__main-action.components-button:not(:disabled):not([aria-disabled='true']):not(.is-default):focus {
1137
- color: white;
1138
- background-color: #7c3f71;
1139
- box-shadow: inset 0 -1px 0 #622557, 0 0 0 2px #ffd7ff;
1140
- border: 1px solid #622557; }
1141
-
1142
- .woocommerce-split-button.is-primary .dashicons-arrow-down {
1143
- fill: white; }
1144
-
1145
- /** @format */
1146
- .woocommerce-summary {
1147
- margin: 16px 0;
1148
- display: grid;
1149
- border-width: 1px 0 0 1px;
1150
- border-style: solid;
1151
- border-color: #ccd0d4;
1152
- background-color: #edeff0;
1153
- box-shadow: inset -1px -1px 0 #ccd0d4; }
1154
- @media (max-width: 782px) {
1155
- .woocommerce-summary.is-placeholder {
1156
- border-top: 0; }
1157
- .woocommerce-summary .woocommerce-summary__item-container.is-placeholder {
1158
- border-top: 1px solid #ccd0d4; } }
1159
- .woocommerce-summary .components-popover.components-popover {
1160
- position: static !important;
1161
- top: auto !important;
1162
- left: auto !important;
1163
- right: auto !important;
1164
- bottom: auto !important;
1165
- margin-top: 0 !important;
1166
- margin-left: 0; }
1167
- .woocommerce-summary .components-popover.components-popover .components-popover__header {
1168
- display: none; }
1169
- .woocommerce-summary .components-popover.components-popover .components-popover__content {
1170
- position: static;
1171
- left: auto;
1172
- right: auto;
1173
- margin: 0;
1174
- width: 100%;
1175
- max-width: 100% !important;
1176
- max-height: 100% !important;
1177
- box-shadow: none;
1178
- border: none;
1179
- transform: none; }
1180
- .woocommerce-summary .components-popover.components-popover .components-popover__content .woocommerce-summary__item.is-selected {
1181
- display: none; }
1182
- .components-popover__content .woocommerce-summary {
1183
- max-height: 100%;
1184
- margin-top: 0;
1185
- margin-bottom: 0;
1186
- overflow-y: scroll;
1187
- border: none; }
1188
- .woocommerce-summary .woocommerce-summary__item-data {
1189
- display: flex;
1190
- flex-wrap: wrap; }
1191
- .woocommerce-summary .woocommerce-summary__item-value,
1192
- .woocommerce-summary .woocommerce-summary__item-delta {
1193
- flex: 1 0 auto; }
1194
- .woocommerce-summary .woocommerce-summary__item-delta {
1195
- flex: 0 1 auto;
1196
- display: flex;
1197
- flex-wrap: none; }
1198
- .woocommerce-summary, .woocommerce-summary.has-one-item, .woocommerce-summary.has-1-items {
1199
- grid-template-columns: 1fr; }
1200
- .woocommerce-summary.has-2-items {
1201
- grid-template-columns: repeat(2, 1fr); }
1202
- .woocommerce-summary.has-2-items .woocommerce-summary__item-container:nth-of-type(2n) .woocommerce-summary__item {
1203
- border-right-color: #ccd0d4; }
1204
- .woocommerce-summary.has-3-items {
1205
- grid-template-columns: repeat(3, 1fr); }
1206
- .woocommerce-summary.has-3-items .woocommerce-summary__item-container:nth-of-type(3n) .woocommerce-summary__item {
1207
- border-right-color: #ccd0d4; }
1208
- .woocommerce-summary.has-4-items, .woocommerce-summary.has-7-items, .woocommerce-summary.has-8-items {
1209
- grid-template-columns: repeat(4, 1fr); }
1210
- .woocommerce-summary.has-4-items .woocommerce-summary__item-container:nth-of-type(4n) .woocommerce-summary__item, .woocommerce-summary.has-7-items .woocommerce-summary__item-container:nth-of-type(4n) .woocommerce-summary__item, .woocommerce-summary.has-8-items .woocommerce-summary__item-container:nth-of-type(4n) .woocommerce-summary__item {
1211
- border-right-color: #ccd0d4; }
1212
- .woocommerce-summary.has-5-items, .woocommerce-summary.has-9-items, .woocommerce-summary.has-10-items {
1213
- grid-template-columns: repeat(5, 1fr); }
1214
- .woocommerce-summary.has-5-items .woocommerce-summary__item-container:nth-of-type(5n) .woocommerce-summary__item, .woocommerce-summary.has-9-items .woocommerce-summary__item-container:nth-of-type(5n) .woocommerce-summary__item, .woocommerce-summary.has-10-items .woocommerce-summary__item-container:nth-of-type(5n) .woocommerce-summary__item {
1215
- border-right-color: #ccd0d4; }
1216
- .woocommerce-summary.has-5-items .woocommerce-summary__item-value,
1217
- .woocommerce-summary.has-5-items .woocommerce-summary__item-delta, .woocommerce-summary.has-9-items .woocommerce-summary__item-value,
1218
- .woocommerce-summary.has-9-items .woocommerce-summary__item-delta, .woocommerce-summary.has-10-items .woocommerce-summary__item-value,
1219
- .woocommerce-summary.has-10-items .woocommerce-summary__item-delta {
1220
- min-width: 100%; }
1221
- .woocommerce-summary.has-5-items .woocommerce-summary__item-prev-label,
1222
- .woocommerce-summary.has-5-items .woocommerce-summary__item-prev-value, .woocommerce-summary.has-9-items .woocommerce-summary__item-prev-label,
1223
- .woocommerce-summary.has-9-items .woocommerce-summary__item-prev-value, .woocommerce-summary.has-10-items .woocommerce-summary__item-prev-label,
1224
- .woocommerce-summary.has-10-items .woocommerce-summary__item-prev-value {
1225
- display: block; }
1226
- .woocommerce-summary.has-6-items {
1227
- grid-template-columns: repeat(6, 1fr); }
1228
- .woocommerce-summary.has-6-items .woocommerce-summary__item-container:nth-of-type(6n) .woocommerce-summary__item {
1229
- border-right-color: #ccd0d4; }
1230
- .woocommerce-summary.has-6-items .woocommerce-summary__item-value,
1231
- .woocommerce-summary.has-6-items .woocommerce-summary__item-delta {
1232
- min-width: 100%; }
1233
- .woocommerce-summary.has-6-items .woocommerce-summary__item-prev-label,
1234
- .woocommerce-summary.has-6-items .woocommerce-summary__item-prev-value {
1235
- display: block; }
1236
- @media (max-width: 1440px) {
1237
- .woocommerce-summary.has-4-items .woocommerce-summary__item-value,
1238
- .woocommerce-summary.has-4-items .woocommerce-summary__item-delta, .woocommerce-summary.has-7-items .woocommerce-summary__item-value,
1239
- .woocommerce-summary.has-7-items .woocommerce-summary__item-delta, .woocommerce-summary.has-8-items .woocommerce-summary__item-value,
1240
- .woocommerce-summary.has-8-items .woocommerce-summary__item-delta {
1241
- min-width: 100%; }
1242
- .woocommerce-summary.has-4-items .woocommerce-summary__item-prev-label,
1243
- .woocommerce-summary.has-4-items .woocommerce-summary__item-prev-value, .woocommerce-summary.has-7-items .woocommerce-summary__item-prev-label,
1244
- .woocommerce-summary.has-7-items .woocommerce-summary__item-prev-value, .woocommerce-summary.has-8-items .woocommerce-summary__item-prev-label,
1245
- .woocommerce-summary.has-8-items .woocommerce-summary__item-prev-value {
1246
- display: block; }
1247
- .woocommerce-summary.has-6-items, .woocommerce-summary.has-9-items {
1248
- grid-template-columns: repeat(3, 1fr); }
1249
- .woocommerce-summary.has-6-items .woocommerce-summary__item-container:nth-of-type(3n) .woocommerce-summary__item, .woocommerce-summary.has-9-items .woocommerce-summary__item-container:nth-of-type(3n) .woocommerce-summary__item {
1250
- border-right-color: #ccd0d4; }
1251
- .woocommerce-summary.has-6-items .woocommerce-summary__item-value,
1252
- .woocommerce-summary.has-6-items .woocommerce-summary__item-delta, .woocommerce-summary.has-9-items .woocommerce-summary__item-value,
1253
- .woocommerce-summary.has-9-items .woocommerce-summary__item-delta {
1254
- min-width: auto; }
1255
- .woocommerce-summary.has-6-items .woocommerce-summary__item-prev-label,
1256
- .woocommerce-summary.has-6-items .woocommerce-summary__item-prev-value, .woocommerce-summary.has-9-items .woocommerce-summary__item-prev-label,
1257
- .woocommerce-summary.has-9-items .woocommerce-summary__item-prev-value {
1258
- display: inline; }
1259
- .woocommerce-summary.has-10-items {
1260
- grid-template-columns: repeat(4, 1fr); }
1261
- .woocommerce-summary.has-10-items .woocommerce-summary__item-container:nth-of-type(4n) .woocommerce-summary__item {
1262
- border-right-color: #ccd0d4; }
1263
- .woocommerce-summary.has-9-items .woocommerce-summary__item-container:nth-of-type(5n) .woocommerce-summary__item, .woocommerce-summary.has-10-items .woocommerce-summary__item-container:nth-of-type(5n) .woocommerce-summary__item {
1264
- border-right-color: #e2e4e7; } }
1265
- @media (max-width: 960px) {
1266
- .woocommerce-summary .woocommerce-summary__item {
1267
- border-right-color: #ccd0d4; } }
1268
- @media (max-width: 782px) {
1269
- .woocommerce-summary .woocommerce-summary__item-container.is-dropdown-button,
1270
- .woocommerce-summary .woocommerce-summary__item-container:only-child {
1271
- margin-left: -16px;
1272
- margin-right: -16px;
1273
- width: auto; }
1274
- .woocommerce-summary .woocommerce-summary__item-container.is-dropdown-button .woocommerce-summary__item,
1275
- .woocommerce-summary .woocommerce-summary__item-container:only-child .woocommerce-summary__item {
1276
- border-right: none; }
1277
- .woocommerce-summary .components-popover.components-popover {
1278
- margin-left: -16px;
1279
- margin-right: -16px; }
1280
- .woocommerce-summary .components-popover.components-popover .woocommerce-summary__item-container {
1281
- margin-left: 0;
1282
- margin-right: 0; } }
1283
-
1284
- .woocommerce-summary__item-container {
1285
- margin-bottom: 0;
1286
- width: 100%; }
1287
- .woocommerce-summary__item-container:last-of-type .woocommerce-summary__item {
1288
- border-right-color: #ccd0d4 !important; }
1289
- .woocommerce-summary__item-container.is-dropdown-button {
1290
- padding: 0;
1291
- list-style: none;
1292
- border-bottom: 1px solid #ccd0d4;
1293
- border-right: 1px solid #ccd0d4; }
1294
- .woocommerce-summary__item-container.is-dropdown-button .components-button {
1295
- text-align: left;
1296
- display: block; }
1297
- @media (max-width: 782px) {
1298
- .woocommerce-summary__item-container.is-dropdown-button {
1299
- border-right: none; } }
1300
- .woocommerce-summary__item-container.is-placeholder .woocommerce-summary__item-label {
1301
- animation: loading-fade 1.6s ease-in-out infinite;
1302
- background-color: #e2e4e7;
1303
- color: transparent;
1304
- display: inline-block;
1305
- height: 16px;
1306
- max-width: 110px;
1307
- width: 70%; }
1308
- .woocommerce-summary__item-container.is-placeholder .woocommerce-summary__item-label::after {
1309
- content: '\A0'; }
1310
- .woocommerce-summary__item-container.is-placeholder .woocommerce-summary__item-data {
1311
- justify-content: space-between; }
1312
- .woocommerce-summary__item-container.is-placeholder .woocommerce-summary__item-value,
1313
- .woocommerce-summary__item-container.is-placeholder .woocommerce-summary__item-prev-value {
1314
- animation: loading-fade 1.6s ease-in-out infinite;
1315
- background-color: #e2e4e7;
1316
- color: transparent;
1317
- display: inline-block;
1318
- height: 16px;
1319
- max-width: 140px;
1320
- width: 80%; }
1321
- .woocommerce-summary__item-container.is-placeholder .woocommerce-summary__item-value::after,
1322
- .woocommerce-summary__item-container.is-placeholder .woocommerce-summary__item-prev-value::after {
1323
- content: '\A0'; }
1324
- .woocommerce-summary__item-container.is-placeholder .woocommerce-summary__item-delta-value {
1325
- animation: loading-fade 1.6s ease-in-out infinite;
1326
- background-color: #e2e4e7;
1327
- color: transparent;
1328
- display: inline-block;
1329
- height: 16px;
1330
- width: 20px; }
1331
- .woocommerce-summary__item-container.is-placeholder .woocommerce-summary__item-delta-value::after {
1332
- content: '\A0'; }
1333
-
1334
- .has-1-items .woocommerce-summary__item-container:nth-child(1) {
1335
- grid-column-start: 1;
1336
- grid-column-end: 2;
1337
- grid-row-start: 1;
1338
- grid-row-end: 2; }
1339
-
1340
- .has-2-items .woocommerce-summary__item-container:nth-child(1) {
1341
- grid-column-start: 1;
1342
- grid-column-end: 2;
1343
- grid-row-start: 1;
1344
- grid-row-end: 2; }
1345
-
1346
- .has-2-items .woocommerce-summary__item-container:nth-child(2) {
1347
- grid-column-start: 2;
1348
- grid-column-end: 3;
1349
- grid-row-start: 1;
1350
- grid-row-end: 2; }
1351
-
1352
- .has-3-items .woocommerce-summary__item-container:nth-child(1) {
1353
- grid-column-start: 1;
1354
- grid-column-end: 2;
1355
- grid-row-start: 1;
1356
- grid-row-end: 2; }
1357
-
1358
- .has-3-items .woocommerce-summary__item-container:nth-child(2) {
1359
- grid-column-start: 2;
1360
- grid-column-end: 3;
1361
- grid-row-start: 1;
1362
- grid-row-end: 2; }
1363
-
1364
- .has-3-items .woocommerce-summary__item-container:nth-child(3) {
1365
- grid-column-start: 3;
1366
- grid-column-end: 4;
1367
- grid-row-start: 1;
1368
- grid-row-end: 2; }
1369
-
1370
- .has-4-items .woocommerce-summary__item-container:nth-child(1) {
1371
- grid-column-start: 1;
1372
- grid-column-end: 2;
1373
- grid-row-start: 1;
1374
- grid-row-end: 2; }
1375
-
1376
- .has-4-items .woocommerce-summary__item-container:nth-child(2) {
1377
- grid-column-start: 2;
1378
- grid-column-end: 3;
1379
- grid-row-start: 1;
1380
- grid-row-end: 2; }
1381
-
1382
- .has-4-items .woocommerce-summary__item-container:nth-child(3) {
1383
- grid-column-start: 3;
1384
- grid-column-end: 4;
1385
- grid-row-start: 1;
1386
- grid-row-end: 2; }
1387
-
1388
- .has-4-items .woocommerce-summary__item-container:nth-child(4) {
1389
- grid-column-start: 4;
1390
- grid-column-end: 5;
1391
- grid-row-start: 1;
1392
- grid-row-end: 2; }
1393
-
1394
- .has-5-items .woocommerce-summary__item-container:nth-child(1) {
1395
- grid-column-start: 1;
1396
- grid-column-end: 2;
1397
- grid-row-start: 1;
1398
- grid-row-end: 2; }
1399
-
1400
- .has-5-items .woocommerce-summary__item-container:nth-child(2) {
1401
- grid-column-start: 2;
1402
- grid-column-end: 3;
1403
- grid-row-start: 1;
1404
- grid-row-end: 2; }
1405
-
1406
- .has-5-items .woocommerce-summary__item-container:nth-child(3) {
1407
- grid-column-start: 3;
1408
- grid-column-end: 4;
1409
- grid-row-start: 1;
1410
- grid-row-end: 2; }
1411
-
1412
- .has-5-items .woocommerce-summary__item-container:nth-child(4) {
1413
- grid-column-start: 4;
1414
- grid-column-end: 5;
1415
- grid-row-start: 1;
1416
- grid-row-end: 2; }
1417
-
1418
- .has-5-items .woocommerce-summary__item-container:nth-child(5) {
1419
- grid-column-start: 5;
1420
- grid-column-end: 6;
1421
- grid-row-start: 1;
1422
- grid-row-end: 2; }
1423
-
1424
- .has-6-items .woocommerce-summary__item-container:nth-child(1) {
1425
- grid-column-start: 1;
1426
- grid-column-end: 2;
1427
- grid-row-start: 1;
1428
- grid-row-end: 2; }
1429
-
1430
- .has-6-items .woocommerce-summary__item-container:nth-child(2) {
1431
- grid-column-start: 2;
1432
- grid-column-end: 3;
1433
- grid-row-start: 1;
1434
- grid-row-end: 2; }
1435
-
1436
- .has-6-items .woocommerce-summary__item-container:nth-child(3) {
1437
- grid-column-start: 3;
1438
- grid-column-end: 4;
1439
- grid-row-start: 1;
1440
- grid-row-end: 2; }
1441
-
1442
- .has-6-items .woocommerce-summary__item-container:nth-child(4) {
1443
- grid-column-start: 4;
1444
- grid-column-end: 5;
1445
- grid-row-start: 1;
1446
- grid-row-end: 2; }
1447
-
1448
- .has-6-items .woocommerce-summary__item-container:nth-child(5) {
1449
- grid-column-start: 5;
1450
- grid-column-end: 6;
1451
- grid-row-start: 1;
1452
- grid-row-end: 2; }
1453
-
1454
- .has-6-items .woocommerce-summary__item-container:nth-child(6) {
1455
- grid-column-start: 6;
1456
- grid-column-end: 7;
1457
- grid-row-start: 1;
1458
- grid-row-end: 2; }
1459
-
1460
- @media (max-width: 1440px) {
1461
- .has-6-items .woocommerce-summary__item-container:nth-child(1) {
1462
- grid-column-start: 1;
1463
- grid-column-end: 2;
1464
- grid-row-start: 1;
1465
- grid-row-end: 2; }
1466
- .has-6-items .woocommerce-summary__item-container:nth-child(2) {
1467
- grid-column-start: 2;
1468
- grid-column-end: 3;
1469
- grid-row-start: 1;
1470
- grid-row-end: 2; }
1471
- .has-6-items .woocommerce-summary__item-container:nth-child(3) {
1472
- grid-column-start: 3;
1473
- grid-column-end: 4;
1474
- grid-row-start: 1;
1475
- grid-row-end: 2; }
1476
- .has-6-items .woocommerce-summary__item-container:nth-child(4) {
1477
- grid-column-start: 1;
1478
- grid-column-end: 2;
1479
- grid-row-start: 2;
1480
- grid-row-end: 3; }
1481
- .has-6-items .woocommerce-summary__item-container:nth-child(5) {
1482
- grid-column-start: 2;
1483
- grid-column-end: 3;
1484
- grid-row-start: 2;
1485
- grid-row-end: 3; }
1486
- .has-6-items .woocommerce-summary__item-container:nth-child(6) {
1487
- grid-column-start: 3;
1488
- grid-column-end: 4;
1489
- grid-row-start: 2;
1490
- grid-row-end: 3; } }
1491
-
1492
- .has-7-items .woocommerce-summary__item-container:nth-child(1) {
1493
- grid-column-start: 1;
1494
- grid-column-end: 2;
1495
- grid-row-start: 1;
1496
- grid-row-end: 2; }
1497
-
1498
- .has-7-items .woocommerce-summary__item-container:nth-child(2) {
1499
- grid-column-start: 2;
1500
- grid-column-end: 3;
1501
- grid-row-start: 1;
1502
- grid-row-end: 2; }
1503
-
1504
- .has-7-items .woocommerce-summary__item-container:nth-child(3) {
1505
- grid-column-start: 3;
1506
- grid-column-end: 4;
1507
- grid-row-start: 1;
1508
- grid-row-end: 2; }
1509
-
1510
- .has-7-items .woocommerce-summary__item-container:nth-child(4) {
1511
- grid-column-start: 4;
1512
- grid-column-end: 5;
1513
- grid-row-start: 1;
1514
- grid-row-end: 2; }
1515
-
1516
- .has-7-items .woocommerce-summary__item-container:nth-child(5) {
1517
- grid-column-start: 1;
1518
- grid-column-end: 2;
1519
- grid-row-start: 2;
1520
- grid-row-end: 3; }
1521
-
1522
- .has-7-items .woocommerce-summary__item-container:nth-child(6) {
1523
- grid-column-start: 2;
1524
- grid-column-end: 3;
1525
- grid-row-start: 2;
1526
- grid-row-end: 3; }
1527
-
1528
- .has-7-items .woocommerce-summary__item-container:nth-child(7) {
1529
- grid-column-start: 3;
1530
- grid-column-end: 4;
1531
- grid-row-start: 2;
1532
- grid-row-end: 3; }
1533
-
1534
- .has-8-items .woocommerce-summary__item-container:nth-child(1) {
1535
- grid-column-start: 1;
1536
- grid-column-end: 2;
1537
- grid-row-start: 1;
1538
- grid-row-end: 2; }
1539
-
1540
- .has-8-items .woocommerce-summary__item-container:nth-child(2) {
1541
- grid-column-start: 2;
1542
- grid-column-end: 3;
1543
- grid-row-start: 1;
1544
- grid-row-end: 2; }
1545
-
1546
- .has-8-items .woocommerce-summary__item-container:nth-child(3) {
1547
- grid-column-start: 3;
1548
- grid-column-end: 4;
1549
- grid-row-start: 1;
1550
- grid-row-end: 2; }
1551
-
1552
- .has-8-items .woocommerce-summary__item-container:nth-child(4) {
1553
- grid-column-start: 4;
1554
- grid-column-end: 5;
1555
- grid-row-start: 1;
1556
- grid-row-end: 2; }
1557
-
1558
- .has-8-items .woocommerce-summary__item-container:nth-child(5) {
1559
- grid-column-start: 1;
1560
- grid-column-end: 2;
1561
- grid-row-start: 2;
1562
- grid-row-end: 3; }
1563
-
1564
- .has-8-items .woocommerce-summary__item-container:nth-child(6) {
1565
- grid-column-start: 2;
1566
- grid-column-end: 3;
1567
- grid-row-start: 2;
1568
- grid-row-end: 3; }
1569
-
1570
- .has-8-items .woocommerce-summary__item-container:nth-child(7) {
1571
- grid-column-start: 3;
1572
- grid-column-end: 4;
1573
- grid-row-start: 2;
1574
- grid-row-end: 3; }
1575
-
1576
- .has-8-items .woocommerce-summary__item-container:nth-child(8) {
1577
- grid-column-start: 4;
1578
- grid-column-end: 5;
1579
- grid-row-start: 2;
1580
- grid-row-end: 3; }
1581
-
1582
- .has-9-items .woocommerce-summary__item-container:nth-child(1) {
1583
- grid-column-start: 1;
1584
- grid-column-end: 2;
1585
- grid-row-start: 1;
1586
- grid-row-end: 2; }
1587
-
1588
- .has-9-items .woocommerce-summary__item-container:nth-child(2) {
1589
- grid-column-start: 2;
1590
- grid-column-end: 3;
1591
- grid-row-start: 1;
1592
- grid-row-end: 2; }
1593
-
1594
- .has-9-items .woocommerce-summary__item-container:nth-child(3) {
1595
- grid-column-start: 3;
1596
- grid-column-end: 4;
1597
- grid-row-start: 1;
1598
- grid-row-end: 2; }
1599
-
1600
- .has-9-items .woocommerce-summary__item-container:nth-child(4) {
1601
- grid-column-start: 4;
1602
- grid-column-end: 5;
1603
- grid-row-start: 1;
1604
- grid-row-end: 2; }
1605
-
1606
- .has-9-items .woocommerce-summary__item-container:nth-child(5) {
1607
- grid-column-start: 5;
1608
- grid-column-end: 6;
1609
- grid-row-start: 1;
1610
- grid-row-end: 2; }
1611
-
1612
- .has-9-items .woocommerce-summary__item-container:nth-child(6) {
1613
- grid-column-start: 1;
1614
- grid-column-end: 2;
1615
- grid-row-start: 2;
1616
- grid-row-end: 3; }
1617
-
1618
- .has-9-items .woocommerce-summary__item-container:nth-child(7) {
1619
- grid-column-start: 2;
1620
- grid-column-end: 3;
1621
- grid-row-start: 2;
1622
- grid-row-end: 3; }
1623
-
1624
- .has-9-items .woocommerce-summary__item-container:nth-child(8) {
1625
- grid-column-start: 3;
1626
- grid-column-end: 4;
1627
- grid-row-start: 2;
1628
- grid-row-end: 3; }
1629
-
1630
- .has-9-items .woocommerce-summary__item-container:nth-child(9) {
1631
- grid-column-start: 4;
1632
- grid-column-end: 5;
1633
- grid-row-start: 2;
1634
- grid-row-end: 3; }
1635
-
1636
- @media (max-width: 1440px) {
1637
- .has-9-items .woocommerce-summary__item-container:nth-child(1) {
1638
- grid-column-start: 1;
1639
- grid-column-end: 2;
1640
- grid-row-start: 1;
1641
- grid-row-end: 2; }
1642
- .has-9-items .woocommerce-summary__item-container:nth-child(2) {
1643
- grid-column-start: 2;
1644
- grid-column-end: 3;
1645
- grid-row-start: 1;
1646
- grid-row-end: 2; }
1647
- .has-9-items .woocommerce-summary__item-container:nth-child(3) {
1648
- grid-column-start: 3;
1649
- grid-column-end: 4;
1650
- grid-row-start: 1;
1651
- grid-row-end: 2; }
1652
- .has-9-items .woocommerce-summary__item-container:nth-child(4) {
1653
- grid-column-start: 1;
1654
- grid-column-end: 2;
1655
- grid-row-start: 2;
1656
- grid-row-end: 3; }
1657
- .has-9-items .woocommerce-summary__item-container:nth-child(5) {
1658
- grid-column-start: 2;
1659
- grid-column-end: 3;
1660
- grid-row-start: 2;
1661
- grid-row-end: 3; }
1662
- .has-9-items .woocommerce-summary__item-container:nth-child(6) {
1663
- grid-column-start: 3;
1664
- grid-column-end: 4;
1665
- grid-row-start: 2;
1666
- grid-row-end: 3; }
1667
- .has-9-items .woocommerce-summary__item-container:nth-child(7) {
1668
- grid-column-start: 1;
1669
- grid-column-end: 2;
1670
- grid-row-start: 3;
1671
- grid-row-end: 4; }
1672
- .has-9-items .woocommerce-summary__item-container:nth-child(8) {
1673
- grid-column-start: 2;
1674
- grid-column-end: 3;
1675
- grid-row-start: 3;
1676
- grid-row-end: 4; }
1677
- .has-9-items .woocommerce-summary__item-container:nth-child(9) {
1678
- grid-column-start: 3;
1679
- grid-column-end: 4;
1680
- grid-row-start: 3;
1681
- grid-row-end: 4; } }
1682
-
1683
- .has-10-items .woocommerce-summary__item-container:nth-child(1) {
1684
- grid-column-start: 1;
1685
- grid-column-end: 2;
1686
- grid-row-start: 1;
1687
- grid-row-end: 2; }
1688
-
1689
- .has-10-items .woocommerce-summary__item-container:nth-child(2) {
1690
- grid-column-start: 2;
1691
- grid-column-end: 3;
1692
- grid-row-start: 1;
1693
- grid-row-end: 2; }
1694
-
1695
- .has-10-items .woocommerce-summary__item-container:nth-child(3) {
1696
- grid-column-start: 3;
1697
- grid-column-end: 4;
1698
- grid-row-start: 1;
1699
- grid-row-end: 2; }
1700
-
1701
- .has-10-items .woocommerce-summary__item-container:nth-child(4) {
1702
- grid-column-start: 4;
1703
- grid-column-end: 5;
1704
- grid-row-start: 1;
1705
- grid-row-end: 2; }
1706
-
1707
- .has-10-items .woocommerce-summary__item-container:nth-child(5) {
1708
- grid-column-start: 5;
1709
- grid-column-end: 6;
1710
- grid-row-start: 1;
1711
- grid-row-end: 2; }
1712
-
1713
- .has-10-items .woocommerce-summary__item-container:nth-child(6) {
1714
- grid-column-start: 1;
1715
- grid-column-end: 2;
1716
- grid-row-start: 2;
1717
- grid-row-end: 3; }
1718
-
1719
- .has-10-items .woocommerce-summary__item-container:nth-child(7) {
1720
- grid-column-start: 2;
1721
- grid-column-end: 3;
1722
- grid-row-start: 2;
1723
- grid-row-end: 3; }
1724
-
1725
- .has-10-items .woocommerce-summary__item-container:nth-child(8) {
1726
- grid-column-start: 3;
1727
- grid-column-end: 4;
1728
- grid-row-start: 2;
1729
- grid-row-end: 3; }
1730
-
1731
- .has-10-items .woocommerce-summary__item-container:nth-child(9) {
1732
- grid-column-start: 4;
1733
- grid-column-end: 5;
1734
- grid-row-start: 2;
1735
- grid-row-end: 3; }
1736
-
1737
- .has-10-items .woocommerce-summary__item-container:nth-child(10) {
1738
- grid-column-start: 5;
1739
- grid-column-end: 6;
1740
- grid-row-start: 2;
1741
- grid-row-end: 3; }
1742
-
1743
- @media (max-width: 1440px) {
1744
- .has-10-items .woocommerce-summary__item-container:nth-child(1) {
1745
- grid-column-start: 1;
1746
- grid-column-end: 2;
1747
- grid-row-start: 1;
1748
- grid-row-end: 2; }
1749
- .has-10-items .woocommerce-summary__item-container:nth-child(2) {
1750
- grid-column-start: 2;
1751
- grid-column-end: 3;
1752
- grid-row-start: 1;
1753
- grid-row-end: 2; }
1754
- .has-10-items .woocommerce-summary__item-container:nth-child(3) {
1755
- grid-column-start: 3;
1756
- grid-column-end: 4;
1757
- grid-row-start: 1;
1758
- grid-row-end: 2; }
1759
- .has-10-items .woocommerce-summary__item-container:nth-child(4) {
1760
- grid-column-start: 4;
1761
- grid-column-end: 5;
1762
- grid-row-start: 1;
1763
- grid-row-end: 2; }
1764
- .has-10-items .woocommerce-summary__item-container:nth-child(5) {
1765
- grid-column-start: 1;
1766
- grid-column-end: 2;
1767
- grid-row-start: 2;
1768
- grid-row-end: 3; }
1769
- .has-10-items .woocommerce-summary__item-container:nth-child(6) {
1770
- grid-column-start: 2;
1771
- grid-column-end: 3;
1772
- grid-row-start: 2;
1773
- grid-row-end: 3; }
1774
- .has-10-items .woocommerce-summary__item-container:nth-child(7) {
1775
- grid-column-start: 3;
1776
- grid-column-end: 4;
1777
- grid-row-start: 2;
1778
- grid-row-end: 3; }
1779
- .has-10-items .woocommerce-summary__item-container:nth-child(8) {
1780
- grid-column-start: 4;
1781
- grid-column-end: 5;
1782
- grid-row-start: 2;
1783
- grid-row-end: 3; }
1784
- .has-10-items .woocommerce-summary__item-container:nth-child(9) {
1785
- grid-column-start: 1;
1786
- grid-column-end: 2;
1787
- grid-row-start: 3;
1788
- grid-row-end: 4; }
1789
- .has-10-items .woocommerce-summary__item-container:nth-child(10) {
1790
- grid-column-start: 2;
1791
- grid-column-end: 3;
1792
- grid-row-start: 3;
1793
- grid-row-end: 4; } }
1794
-
1795
- @media (max-width: 960px) {
1796
- .woocommerce-summary > .woocommerce-summary__item-container:nth-child(1) {
1797
- grid-column-start: 1;
1798
- grid-column-end: 2;
1799
- grid-row-start: 1;
1800
- grid-row-end: 2; }
1801
- .woocommerce-summary > .woocommerce-summary__item-container:nth-child(2) {
1802
- grid-column-start: 1;
1803
- grid-column-end: 2;
1804
- grid-row-start: 2;
1805
- grid-row-end: 3; }
1806
- .woocommerce-summary > .woocommerce-summary__item-container:nth-child(3) {
1807
- grid-column-start: 1;
1808
- grid-column-end: 2;
1809
- grid-row-start: 3;
1810
- grid-row-end: 4; }
1811
- .woocommerce-summary > .woocommerce-summary__item-container:nth-child(4) {
1812
- grid-column-start: 1;
1813
- grid-column-end: 2;
1814
- grid-row-start: 4;
1815
- grid-row-end: 5; }
1816
- .woocommerce-summary > .woocommerce-summary__item-container:nth-child(5) {
1817
- grid-column-start: 1;
1818
- grid-column-end: 2;
1819
- grid-row-start: 5;
1820
- grid-row-end: 6; }
1821
- .woocommerce-summary > .woocommerce-summary__item-container:nth-child(6) {
1822
- grid-column-start: 1;
1823
- grid-column-end: 2;
1824
- grid-row-start: 6;
1825
- grid-row-end: 7; }
1826
- .woocommerce-summary > .woocommerce-summary__item-container:nth-child(7) {
1827
- grid-column-start: 1;
1828
- grid-column-end: 2;
1829
- grid-row-start: 7;
1830
- grid-row-end: 8; }
1831
- .woocommerce-summary > .woocommerce-summary__item-container:nth-child(8) {
1832
- grid-column-start: 1;
1833
- grid-column-end: 2;
1834
- grid-row-start: 8;
1835
- grid-row-end: 9; }
1836
- .woocommerce-summary > .woocommerce-summary__item-container:nth-child(9) {
1837
- grid-column-start: 1;
1838
- grid-column-end: 2;
1839
- grid-row-start: 9;
1840
- grid-row-end: 10; }
1841
- .woocommerce-summary > .woocommerce-summary__item-container:nth-child(10) {
1842
- grid-column-start: 1;
1843
- grid-column-end: 2;
1844
- grid-row-start: 10;
1845
- grid-row-end: 11; } }
1846
-
1847
- .woocommerce-summary__item {
1848
- display: block;
1849
- padding: 16px;
1850
- background-color: #f8f9f9;
1851
- border-bottom: 1px solid #ccd0d4;
1852
- border-right: 1px solid #e2e4e7;
1853
- text-decoration: none; }
1854
- .woocommerce-summary__item:hover {
1855
- background-color: #f3f4f5; }
1856
- .woocommerce-summary__item:active {
1857
- background-color: #edeff0; }
1858
- .woocommerce-summary__item:focus {
1859
- box-shadow: inset -1px -1px 0 #6c7781, inset 1px 1px 0 #6c7781 !important; }
1860
- .woocommerce-summary__item.is-selected:focus {
1861
- box-shadow: inset -1px -1px 0 #6c7781, inset 1px 0 0 #6c7781, inset 0 4px 0 #95588a !important; }
1862
- .is-dropdown-button .woocommerce-summary__item {
1863
- position: relative;
1864
- width: 100%;
1865
- padding-right: 56px; }
1866
- @media (max-width: 782px) {
1867
- .is-dropdown-button .woocommerce-summary__item {
1868
- border-right: none; } }
1869
- .woocommerce-summary__item .woocommerce-summary__item-label {
1870
- display: block;
1871
- margin-bottom: 16px;
1872
- font-size: 11px;
1873
- font-size: 0.6875rem;
1874
- text-transform: uppercase;
1875
- color: #6c7781; }
1876
- .woocommerce-summary__item .woocommerce-summary__item-value {
1877
- margin-bottom: 4px;
1878
- font-size: 18px;
1879
- font-size: 1.125rem;
1880
- font-weight: 500;
1881
- color: #191e23; }
1882
- .woocommerce-summary__item .woocommerce-summary__item-delta {
1883
- margin-bottom: 12px;
1884
- font-size: 18px;
1885
- font-size: 1.125rem;
1886
- font-weight: 300;
1887
- color: #555d66; }
1888
- .woocommerce-summary__item.is-selected {
1889
- background: white;
1890
- box-shadow: inset 0 4px 0 #95588a; }
1891
- .woocommerce-summary__item.is-selected .woocommerce-summary__item-value {
1892
- font-weight: 600; }
1893
- .woocommerce-summary__item.is-selected .woocommerce-summary__item-delta {
1894
- font-weight: 400; }
1895
- .woocommerce-summary__item.is-good-trend .woocommerce-summary__item-delta {
1896
- color: #4ab866; }
1897
- .woocommerce-summary__item.is-bad-trend .woocommerce-summary__item-delta {
1898
- color: #d94f4f; }
1899
- .woocommerce-summary__item .woocommerce-summary__item-delta-icon {
1900
- vertical-align: middle;
1901
- margin-right: 3px;
1902
- fill: currentColor; }
1903
- .woocommerce-summary__item .woocommerce-summary__item-delta-icon.gridicons-arrow-up {
1904
- transform: rotate(45deg); }
1905
- .woocommerce-summary__item .woocommerce-summary__item-delta-icon.gridicons-arrow-down {
1906
- transform: rotate(-45deg); }
1907
- .woocommerce-summary__item .woocommerce-summary__item-prev-label,
1908
- .woocommerce-summary__item .woocommerce-summary__item-prev-value {
1909
- font-size: 13px;
1910
- font-size: 0.8125rem;
1911
- color: #555d66; }
1912
- .woocommerce-summary__item .woocommerce-summary__toggle {
1913
- position: absolute;
1914
- top: 44px;
1915
- right: 16px;
1916
- transition: transform ease 0.2s; }
1917
- @media screen and (prefers-reduced-motion: reduce) {
1918
- .woocommerce-summary__item .woocommerce-summary__toggle {
1919
- transition: none; } }
1920
- .is-dropdown-expanded .woocommerce-summary__item .woocommerce-summary__toggle {
1921
- transform: rotate(-180deg); }
1922
- .components-popover__content .woocommerce-summary__item .woocommerce-summary__item-label {
1923
- margin-bottom: 0; }
1924
- .components-popover__content .woocommerce-summary__item .woocommerce-summary__item-value,
1925
- .components-popover__content .woocommerce-summary__item .woocommerce-summary__item-delta {
1926
- font-size: 13px;
1927
- font-size: 0.8125rem;
1928
- margin-bottom: 0; }
1929
- .components-popover__content .woocommerce-summary__item .woocommerce-summary__item-prev-label,
1930
- .components-popover__content .woocommerce-summary__item .woocommerce-summary__item-prev-value {
1931
- font-size: 11px;
1932
- font-size: 0.6875rem; }
1933
-
1934
- .woocommerce-card .woocommerce-summary {
1935
- background-color: #f8f9f9;
1936
- border: none; }
1937
-
1938
- .woocommerce-card .woocommerce-summary__item {
1939
- background-color: white; }
1940
- .woocommerce-card .woocommerce-summary__item:hover {
1941
- background-color: #f3f4f5; }
1942
- .woocommerce-card .woocommerce-summary__item:active {
1943
- background-color: #edeff0; }
1944
-
1945
- .woocommerce-card .woocommerce-summary__item.is-selected {
1946
- margin-top: 0;
1947
- box-shadow: none; }
1948
-
1949
- /** @format */
1950
- .woocommerce-table .woocommerce-card__body {
1951
- padding: 0;
1952
- position: relative; }
1953
-
1954
- .woocommerce-table .woocommerce-search {
1955
- flex-grow: 1; }
1956
-
1957
- .woocommerce-table .woocommerce-card__action {
1958
- justify-self: flex-end;
1959
- margin: -13px 0; }
1960
-
1961
- .woocommerce-table .woocommerce-card__menu {
1962
- justify-self: flex-end; }
1963
-
1964
- .woocommerce-table.has-compare .woocommerce-card__action {
1965
- align-items: center;
1966
- text-align: left;
1967
- display: grid;
1968
- width: 100%;
1969
- grid-template-columns: auto 1fr auto; }
1970
- .woocommerce-table.has-compare .woocommerce-card__action .woocommerce-table__compare {
1971
- align-self: center;
1972
- grid-column-start: 1;
1973
- grid-column-end: 2; }
1974
- .woocommerce-table.has-compare .woocommerce-card__action .woocommerce-search {
1975
- align-self: center;
1976
- grid-column-start: 2;
1977
- grid-column-end: 3; }
1978
- .woocommerce-table.has-compare .woocommerce-card__action .woocommerce-table__download-button {
1979
- align-self: center;
1980
- grid-column-start: 3;
1981
- grid-column-end: 4; }
1982
-
1983
- @media (max-width: 960px) {
1984
- .woocommerce-table.has-compare .woocommerce-card__action {
1985
- grid-area: 1 / 1 / 3 / 4;
1986
- grid-gap: 12px;
1987
- grid-template-columns: auto 1fr 24px;
1988
- margin: 0; }
1989
- .woocommerce-table.has-compare .woocommerce-card__action .woocommerce-table__compare {
1990
- display: flex;
1991
- grid-area: 2 / 1 / 3 / 2; }
1992
- .woocommerce-table.has-compare .woocommerce-card__action .woocommerce-search {
1993
- grid-area: 2 / 2 / 3 / 4;
1994
- margin-right: 0; }
1995
- .woocommerce-table.has-compare .woocommerce-card__action .woocommerce-table__download-button {
1996
- grid-area: 1 / 2 / 2 / 3;
1997
- justify-self: end;
1998
- margin: -6px 0; } }
1999
-
2000
- .woocommerce-table.has-compare .woocommerce-search {
2001
- margin: 0 16px; }
2002
-
2003
- .woocommerce-table.has-compare .woocommerce-compare-button {
2004
- padding: 3px 12px;
2005
- height: auto; }
2006
-
2007
- .woocommerce-table.is-empty {
2008
- align-items: center;
2009
- background: #f8f9f9;
2010
- color: #555d66;
2011
- display: flex;
2012
- height: calc(16px + 1.1375rem + 1px + (32px + 1.1375rem + 1px) * 5);
2013
- height: calc(16px + 1.1375rem + 1px + (32px + 1.1375rem + 1px) * var(--number-of-rows));
2014
- justify-content: center;
2015
- padding: 16px;
2016
- text-align: center; }
2017
-
2018
- .woocommerce-table button.woocommerce-table__download-button.is-link {
2019
- padding: 6px 12px;
2020
- color: #000;
2021
- text-decoration: none; }
2022
- .woocommerce-table button.woocommerce-table__download-button.is-link svg {
2023
- margin-right: 8px;
2024
- height: 24px;
2025
- width: 24px; }
2026
- @media (max-width: 782px) {
2027
- .woocommerce-table button.woocommerce-table__download-button.is-link svg {
2028
- margin-right: 0; }
2029
- .woocommerce-table button.woocommerce-table__download-button.is-link .woocommerce-table__download-button__label {
2030
- display: none; } }
2031
-
2032
- .woocommerce-table .woocommerce-pagination {
2033
- padding-top: 16px;
2034
- padding-bottom: 16px;
2035
- z-index: 1;
2036
- background: white;
2037
- position: relative; }
2038
-
2039
- .woocommerce-table__caption {
2040
- font-size: 24px;
2041
- font-size: 1.5rem;
2042
- text-align: left; }
2043
-
2044
- .woocommerce-table__table {
2045
- overflow-x: auto; }
2046
- .woocommerce-table__table::after {
2047
- content: '';
2048
- position: absolute;
2049
- right: 0;
2050
- top: 0;
2051
- width: 41px;
2052
- height: 100%;
2053
- background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2));
2054
- opacity: 0;
2055
- pointer-events: none;
2056
- transition: opacity 0.3s; }
2057
- .woocommerce-table__table.is-scrollable::after {
2058
- opacity: 1; }
2059
- .woocommerce-table__table table {
2060
- border-collapse: collapse;
2061
- width: 100%; }
2062
- .woocommerce-table__table tr:hover,
2063
- .woocommerce-table__table tr:focus-within {
2064
- background-color: #f3f4f5; }
2065
- .woocommerce-table__table tr:hover td,
2066
- .woocommerce-table__table tr:hover th,
2067
- .woocommerce-table__table tr:focus-within td,
2068
- .woocommerce-table__table tr:focus-within th {
2069
- background: transparent; }
2070
-
2071
- .woocommerce-table__header,
2072
- .woocommerce-table__item {
2073
- font-size: 13px;
2074
- font-size: 0.8125rem;
2075
- padding: 16px 24px;
2076
- border-bottom: 1px solid #e2e4e7;
2077
- text-align: left; }
2078
- .woocommerce-table__header > a:only-child,
2079
- .woocommerce-table__item > a:only-child {
2080
- display: block; }
2081
- .woocommerce-table__header a:hover, .woocommerce-table__header a:focus,
2082
- .woocommerce-table__item a:hover,
2083
- .woocommerce-table__item a:focus {
2084
- color: #622557; }
2085
- .woocommerce-table__header .is-placeholder,
2086
- .woocommerce-table__item .is-placeholder {
2087
- animation: loading-fade 1.6s ease-in-out infinite;
2088
- background-color: #e2e4e7;
2089
- color: transparent;
2090
- display: inline-block;
2091
- height: 16px;
2092
- max-width: 120px;
2093
- width: 80%; }
2094
- .woocommerce-table__header .is-placeholder::after,
2095
- .woocommerce-table__item .is-placeholder::after {
2096
- content: '\A0'; }
2097
- .woocommerce-table__header:not(.is-left-aligned),
2098
- .woocommerce-table__item:not(.is-left-aligned) {
2099
- text-align: right; }
2100
- .rtl .woocommerce-table__header:not(.is-left-aligned), .rtl
2101
- .woocommerce-table__item:not(.is-left-aligned) {
2102
- text-align: left; }
2103
- .woocommerce-table__header:not(.is-left-aligned) button,
2104
- .woocommerce-table__item:not(.is-left-aligned) button {
2105
- justify-content: flex-end; }
2106
- .woocommerce-table__header.is-numeric .is-placeholder,
2107
- .woocommerce-table__item.is-numeric .is-placeholder {
2108
- max-width: 40px; }
2109
- .woocommerce-table__header.is-sorted,
2110
- .woocommerce-table__item.is-sorted {
2111
- background-color: #f8f9f9; }
2112
- .woocommerce-table__header.is-checkbox-column,
2113
- .woocommerce-table__item.is-checkbox-column {
2114
- width: 33px;
2115
- max-width: 33px;
2116
- padding-right: 0;
2117
- padding-left: 16px; }
2118
- .woocommerce-table__header.is-checkbox-column + th,
2119
- .woocommerce-table__item.is-checkbox-column + th {
2120
- border-left: 0; }
2121
-
2122
- th.woocommerce-table__item {
2123
- font-weight: normal; }
2124
-
2125
- .woocommerce-table__header {
2126
- padding: 8px 24px;
2127
- background-color: #f8f9fa;
2128
- border-bottom: 1px solid #ccd0d4;
2129
- font-weight: bold;
2130
- white-space: nowrap; }
2131
- .woocommerce-table__header + .woocommerce-table__header {
2132
- border-left: 1px solid #ccd0d4; }
2133
- .rtl .woocommerce-table__header + .woocommerce-table__header {
2134
- border-left: 0;
2135
- border-right: 1px solid #ccd0d4; }
2136
- .woocommerce-table__header.is-left-aligned.is-sortable {
2137
- padding-left: 16px; }
2138
- .woocommerce-table__header.is-left-aligned.is-sortable svg {
2139
- display: inline-flex;
2140
- order: 1;
2141
- margin-left: 0; }
2142
- .woocommerce-table__header .components-button.is-button {
2143
- height: auto;
2144
- width: 100%;
2145
- padding: 8px 24px 8px 0;
2146
- vertical-align: middle;
2147
- line-height: 1;
2148
- border: none;
2149
- background: transparent;
2150
- box-shadow: none !important; }
2151
- .rtl .woocommerce-table__header .components-button.is-button {
2152
- padding: 8px 0 8px 24px; }
2153
- .woocommerce-table__header .components-button.is-button:hover {
2154
- box-shadow: none !important; }
2155
- .woocommerce-table__header .components-button.is-button:active {
2156
- box-shadow: none !important; }
2157
- .woocommerce-table__header.is-sortable {
2158
- padding: 0; }
2159
- .woocommerce-table__header.is-sortable .gridicon {
2160
- visibility: hidden;
2161
- margin-left: 4px; }
2162
- .woocommerce-table__header.is-sortable.is-sorted .components-button .gridicon,
2163
- .woocommerce-table__header.is-sortable .components-button:hover .gridicon,
2164
- .woocommerce-table__header.is-sortable .components-button:focus .gridicon {
2165
- visibility: visible; }
2166
-
2167
- .woocommerce-table__summary {
2168
- margin: 0;
2169
- padding: 16px 0;
2170
- text-align: center;
2171
- z-index: 1;
2172
- background: #fff;
2173
- position: relative; }
2174
-
2175
- .woocommerce-table__summary-item {
2176
- display: inline-block;
2177
- margin-bottom: 0;
2178
- margin-left: 8px;
2179
- margin-right: 8px; }
2180
- .woocommerce-table__summary-item .woocommerce-table__summary-label,
2181
- .woocommerce-table__summary-item .woocommerce-table__summary-value {
2182
- display: inline-block; }
2183
- .woocommerce-table__summary-item .woocommerce-table__summary-label {
2184
- margin-left: 4px; }
2185
- .woocommerce-table__summary-item .woocommerce-table__summary-value {
2186
- font-weight: 600; }
2187
-
2188
- /** @format */
2189
- .woocommerce-tag {
2190
- display: inline-flex;
2191
- margin: 2px 4px 2px 0;
2192
- overflow: hidden; }
2193
- .woocommerce-tag .woocommerce-tag__text,
2194
- .woocommerce-tag .woocommerce-tag__remove.components-icon-button {
2195
- display: inline-block;
2196
- line-height: 24px;
2197
- background: #e2e4e7;
2198
- transition: all 0.2s cubic-bezier(0.4, 1, 0.4, 1); }
2199
- .woocommerce-tag .woocommerce-tag__text {
2200
- align-self: center;
2201
- padding: 0 8px;
2202
- border-radius: 12px;
2203
- color: #555d66;
2204
- white-space: nowrap;
2205
- overflow: hidden;
2206
- text-overflow: ellipsis; }
2207
- .woocommerce-tag.has-remove .woocommerce-tag__text {
2208
- padding: 0 4px 0 8px;
2209
- border-radius: 12px 0 0 12px; }
2210
- .woocommerce-tag .woocommerce-tag__remove.components-icon-button {
2211
- cursor: pointer;
2212
- padding: 0 2px;
2213
- border-radius: 0 12px 12px 0;
2214
- color: #555d66;
2215
- line-height: 10px;
2216
- text-indent: 0; }
2217
- .woocommerce-tag .woocommerce-tag__remove.components-icon-button:hover {
2218
- color: #32373c; }
2219
-
2220
- /** @format */
2221
- .woocommerce-view-more-list {
2222
- padding-left: 4px;
2223
- margin: 0 0 0 4px;
2224
- vertical-align: middle; }
2225
- .rtl .woocommerce-view-more-list {
2226
- margin: 0 4px 0 0; }
2227
-
2228
- .woocommerce-view-more-list__popover {
2229
- margin: 0;
2230
- padding: 16px;
2231
- text-align: left; }
2232
-
2233
- .woocommerce-view-more-list__popover__item {
2234
- display: block;
2235
- margin: 16px 0; }
2236
- .woocommerce-view-more-list__popover__item:first-child {
2237
- margin-top: 0; }
2238
- .woocommerce-view-more-list__popover__item:last-child {
2239
- margin-bottom: 0; }
2240
-
2241
- /* stylelint-disable block-closing-brace-newline-after */
2242
- /* stylelint-enable */
2243
- .editor-block-preview__content {
2244
- overflow: hidden; }
2245
-
2246
- .wc-block-products-category {
2247
- overflow: hidden; }
2248
- .wc-block-products-category.components-placeholder {
2249
- padding: 2em 1em; }
2250
- .editor-block-preview .wc-block-products-category {
2251
- min-width: 5em; }
2252
- .editor-block-preview .wc-block-products-category .wc-product-preview__title,
2253
- .editor-block-preview .wc-block-products-category .wc-product-preview__price,
2254
- .editor-block-preview .wc-block-products-category .wc-product-preview__add-to-cart {
2255
- font-size: 0.6em; }
2256
- .editor-block-preview .wc-block-products-category.cols-2 {
2257
- min-width: 10em; }
2258
- .editor-block-preview .wc-block-products-category.cols-3 {
2259
- min-width: 15em; }
2260
- .editor-block-preview .wc-block-products-category.cols-4 {
2261
- min-width: 20em; }
2262
- .editor-block-preview .wc-block-products-category.cols-5 {
2263
- min-width: 25em; }
2264
- .editor-block-preview .wc-block-products-category.cols-6 {
2265
- min-width: 30em; }
2266
- .editor-block-preview .wc-block-products-category.is-loading, .editor-block-preview .wc-block-products-category.is-not-found {
2267
- min-width: auto; }
2268
-
2269
- .wc-block-products-category__selection {
2270
- width: 100%; }
2271
-
2272
- .components-panel .woocommerce-search-list {
2273
- padding: 0; }
2274
-
2275
- .components-panel .woocommerce-search-list__selected {
2276
- margin: 0 0 16px;
2277
- padding: 0;
2278
- border-top: none;
2279
- min-height: 54px; }
2280
-
2281
- .components-panel .woocommerce-search-list__search {
2282
- margin: 0 0 16px;
2283
- padding: 0;
2284
- border-top: none; }
2285
-
2286
- @charset "UTF-8";
2287
- /* stylelint-disable block-closing-brace-newline-after */
2288
- /* stylelint-enable */
2289
- .woocommerce-product-categories .woocommerce-product-categories__item {
2290
- display: flex;
2291
- align-items: center; }
2292
-
2293
- .woocommerce-product-categories__item-label {
2294
- display: flex;
2295
- flex: 1; }
2296
- [class*="depth-"] .woocommerce-product-categories__item-label {
2297
- padding-left: 60px; }
2298
- .depth-0 .woocommerce-product-categories__item-label {
2299
- padding-left: 0; }
2300
- .depth-1 .woocommerce-product-categories__item-label {
2301
- padding-left: 12px; }
2302
- .depth-2 .woocommerce-product-categories__item-label {
2303
- padding-left: 24px; }
2304
- .depth-3 .woocommerce-product-categories__item-label {
2305
- padding-left: 36px; }
2306
- .depth-4 .woocommerce-product-categories__item-label {
2307
- padding-left: 48px; }
2308
-
2309
- .woocommerce-product-categories__item .woocommerce-product-categories__item-name {
2310
- display: inline-block; }
2311
-
2312
- .woocommerce-product-categories__item .woocommerce-product-categories__item-prefix {
2313
- display: none;
2314
- color: #6c7781; }
2315
-
2316
- .woocommerce-product-categories__item.is-searching .woocommerce-product-categories__item-prefix, .woocommerce-product-categories__item.is-skip-level .woocommerce-product-categories__item-prefix {
2317
- display: inline-block;
2318
- margin-right: 4px; }
2319
- .woocommerce-product-categories__item.is-searching .woocommerce-product-categories__item-prefix:after, .woocommerce-product-categories__item.is-skip-level .woocommerce-product-categories__item-prefix:after {
2320
- content: ' \203A'; }
2321
-
2322
- .woocommerce-product-categories__item.is-searching .woocommerce-product-categories__item-name {
2323
- color: #191e23; }
2324
-
2325
- .woocommerce-product-categories__item .woocommerce-product-categories__item-count {
2326
- flex: 0;
2327
- padding: 2px 8px;
2328
- border: 1px solid #e2e4e7;
2329
- border-radius: 12px;
2330
- font-size: 0.8em;
2331
- line-height: 1.4;
2332
- color: #6c7781;
2333
- background: #fff; }
2334
-
2335
- /* stylelint-disable block-closing-brace-newline-after */
2336
- /* stylelint-enable */
2337
- .woocommerce-search-list {
2338
- width: 100%;
2339
- padding: 0 0 16px;
2340
- text-align: left; }
2341
-
2342
- .woocommerce-search-list__selected {
2343
- margin: 16px 0;
2344
- padding: 16px 0 0;
2345
- min-height: 76px;
2346
- border-top: 1px solid #e2e4e7; }
2347
- .woocommerce-search-list__selected .woocommerce-search-list__selected-header {
2348
- margin-bottom: 8px; }
2349
- .woocommerce-search-list__selected .woocommerce-search-list__selected-header button {
2350
- margin-left: 12px; }
2351
- .woocommerce-search-list__selected .woocommerce-tag__text {
2352
- max-width: 13em; }
2353
-
2354
- .woocommerce-search-list__search {
2355
- margin: 16px 0;
2356
- padding: 16px 0 0;
2357
- border-top: 1px solid #e2e4e7; }
2358
- .woocommerce-search-list__search .components-base-control__field {
2359
- margin-bottom: 16px; }
2360
-
2361
- .woocommerce-search-list__list {
2362
- padding: 0;
2363
- max-height: 18.5em;
2364
- overflow-x: hidden;
2365
- overflow-y: auto;
2366
- border-top: 1px solid #e2e4e7;
2367
- border-bottom: 1px solid #e2e4e7; }
2368
- .woocommerce-search-list__list.is-loading {
2369
- padding: 12px 0;
2370
- text-align: center;
2371
- border: none; }
2372
- .woocommerce-search-list__list.is-not-found {
2373
- padding: 12px 0;
2374
- text-align: center;
2375
- border: none; }
2376
- .woocommerce-search-list__list.is-not-found .woocommerce-search-list__not-found-icon,
2377
- .woocommerce-search-list__list.is-not-found .woocommerce-search-list__not-found-text {
2378
- display: inline-block; }
2379
- .woocommerce-search-list__list.is-not-found .woocommerce-search-list__not-found-icon {
2380
- margin-right: 16px; }
2381
- .woocommerce-search-list__list.is-not-found .woocommerce-search-list__not-found-icon .gridicon {
2382
- vertical-align: top;
2383
- margin-top: -1px; }
2384
- .woocommerce-search-list__list .components-spinner {
2385
- float: none; }
2386
- .woocommerce-search-list__list .components-menu-group__label {
2387
- clip: rect(1px, 1px, 1px, 1px);
2388
- -webkit-clip-path: inset(50%);
2389
- clip-path: inset(50%);
2390
- height: 1px;
2391
- width: 1px;
2392
- margin: -1px;
2393
- overflow: hidden;
2394
- /* Many screen reader and browser combinations announce broken words as they would appear visually. */
2395
- overflow-wrap: normal !important;
2396
- word-wrap: normal !important; }
2397
- .woocommerce-search-list__list > [role="menu"] {
2398
- border: 1px solid #e2e4e7;
2399
- border-bottom: none; }
2400
- .woocommerce-search-list__list .woocommerce-search-list__item {
2401
- display: flex;
2402
- align-items: center;
2403
- margin-bottom: 0;
2404
- padding: 16px;
2405
- background: #fff;
2406
- border-bottom: 1px solid #e2e4e7 !important;
2407
- color: #555d66; }
2408
- .woocommerce-search-list__list .woocommerce-search-list__item .woocommerce-search-list__item-state {
2409
- flex: 0 0 16px;
2410
- margin-right: 8px; }
2411
- .woocommerce-search-list__list .woocommerce-search-list__item .woocommerce-search-list__item-name {
2412
- flex: 1; }
2413
- .woocommerce-search-list__list .woocommerce-search-list__item:hover, .woocommerce-search-list__list .woocommerce-search-list__item:active, .woocommerce-search-list__list .woocommerce-search-list__item:focus {
2414
- background: #f8f9f9; }
2415
- .woocommerce-search-list__list .woocommerce-search-list__item:last-of-type {
2416
- border-bottom: none !important; }
2417
-
2418
- /* stylelint-disable block-closing-brace-newline-after */
2419
- /* stylelint-enable */
2420
- .wc-product-preview {
2421
- float: left;
2422
- text-align: center;
2423
- margin-right: 3.8%; }
2424
- .cols-1 .wc-product-preview {
2425
- float: none;
2426
- margin-right: 0; }
2427
- .cols-2 .wc-product-preview {
2428
- width: 48%; }
2429
- .cols-2 .wc-product-preview:nth-of-type(2n) {
2430
- margin-right: 0; }
2431
- .cols-2 .wc-product-preview:nth-of-type(2n+1) {
2432
- clear: both; }
2433
- .cols-3 .wc-product-preview {
2434
- width: 30.75%; }
2435
- .cols-3 .wc-product-preview:nth-of-type(3n) {
2436
- margin-right: 0; }
2437
- .cols-3 .wc-product-preview:nth-of-type(3n+1) {
2438
- clear: both; }
2439
- .cols-4 .wc-product-preview {
2440
- width: 22.05%; }
2441
- .cols-4 .wc-product-preview:nth-of-type(4n) {
2442
- margin-right: 0; }
2443
- .cols-4 .wc-product-preview:nth-of-type(4n+1) {
2444
- clear: both; }
2445
- .cols-5 .wc-product-preview {
2446
- width: 16.9%; }
2447
- .cols-5 .wc-product-preview:nth-of-type(5n) {
2448
- margin-right: 0; }
2449
- .cols-5 .wc-product-preview:nth-of-type(5n+1) {
2450
- clear: both; }
2451
- .cols-5 .wc-product-preview .wc-product-preview__add-to-cart {
2452
- font-size: 0.75em; }
2453
- .cols-6 .wc-product-preview {
2454
- width: 13.5%; }
2455
- .cols-6 .wc-product-preview:nth-of-type(6n) {
2456
- margin-right: 0; }
2457
- .cols-6 .wc-product-preview:nth-of-type(6n+1) {
2458
- clear: both; }
2459
- .cols-6 .wc-product-preview .wc-product-preview__add-to-cart {
2460
- font-size: 0.75em; }
2461
-
2462
- .wc-product-preview__add-to-cart {
2463
- display: inline-block;
2464
- background: #ababab;
2465
- border-radius: 1.5em;
2466
- color: #fff;
2467
- cursor: pointer;
2468
- padding: 0.75em 1.25em;
2469
- line-height: 1.2em;
2470
- margin-top: 0.5em;
2471
- margin-bottom: 1em; }
2472
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
build/product-category.css ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ .wc-block-products-category__selection{width:100%}
2
+ .woocommerce-product-categories__operator .components-base-control__help{clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;width:1px;margin:-1px;overflow:hidden;overflow-wrap:normal!important;word-wrap:normal!important}.components-panel .woocommerce-product-categories__operator.components-base-control{margin-top:16px}.components-panel .woocommerce-product-categories__operator.components-base-control .components-select-control__input{margin-left:0;min-width:100%}
3
+ @charset "UTF-8";.woocommerce-search-list{width:100%;padding:0 0 16px;text-align:left}.woocommerce-search-list__selected{margin:16px 0;padding:16px 0 0;min-height:76px;border-top:1px solid #e2e4e7}.woocommerce-search-list__selected .woocommerce-search-list__selected-header{margin-bottom:8px}.woocommerce-search-list__selected .woocommerce-search-list__selected-header button{margin-left:12px}.woocommerce-search-list__selected .woocommerce-tag__text{max-width:13em}.woocommerce-search-list__search{margin:16px 0;padding:16px 0 0;border-top:1px solid #e2e4e7}.woocommerce-search-list__search .components-base-control__field{margin-bottom:16px}.woocommerce-search-list__list{padding:0;max-height:17em;overflow-x:hidden;overflow-y:auto;border-top:1px solid #e2e4e7;border-bottom:1px solid #e2e4e7}.woocommerce-search-list__list.is-loading,.woocommerce-search-list__list.is-not-found{padding:12px 0;text-align:center;border:none}.woocommerce-search-list__list.is-not-found .woocommerce-search-list__not-found-icon,.woocommerce-search-list__list.is-not-found .woocommerce-search-list__not-found-text{display:inline-block}.woocommerce-search-list__list.is-not-found .woocommerce-search-list__not-found-icon{margin-right:16px}.woocommerce-search-list__list.is-not-found .woocommerce-search-list__not-found-icon .gridicon{vertical-align:top;margin-top:-1px}.woocommerce-search-list__list .components-spinner{float:none}.woocommerce-search-list__list .components-menu-group__label{clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;width:1px;margin:-1px;overflow:hidden;overflow-wrap:normal!important;word-wrap:normal!important}.woocommerce-search-list__list>[role=menu]{border:1px solid #e2e4e7;border-bottom:none}.woocommerce-search-list__list .woocommerce-search-list__item{display:flex;align-items:center;margin-bottom:0;padding:12px 16px;background:#fff;border-bottom:1px solid #e2e4e7!important;color:#555d66}.woocommerce-search-list__list .woocommerce-search-list__item:active,.woocommerce-search-list__list .woocommerce-search-list__item:focus,.woocommerce-search-list__list .woocommerce-search-list__item:hover{background:#f8f9f9}.woocommerce-search-list__list .woocommerce-search-list__item:last-child{border-bottom:none!important}.woocommerce-search-list__list .woocommerce-search-list__item .woocommerce-search-list__item-state{flex:0 0 16px;margin-right:8px;height:24px}.woocommerce-search-list__list .woocommerce-search-list__item .woocommerce-search-list__item-label{display:flex;flex:1}.woocommerce-search-list__list .woocommerce-search-list__item[class*=depth-] .woocommerce-search-list__item-label:before{margin-right:4px;content:"— — — — — "}.woocommerce-search-list__list .woocommerce-search-list__item.depth-0 .woocommerce-search-list__item-label:before{margin-right:0;content:""}.woocommerce-search-list__list .woocommerce-search-list__item.depth-1 .woocommerce-search-list__item-label:before{content:"— "}.woocommerce-search-list__list .woocommerce-search-list__item.depth-2 .woocommerce-search-list__item-label:before{content:"— — "}.woocommerce-search-list__list .woocommerce-search-list__item.depth-3 .woocommerce-search-list__item-label:before{content:"— — — "}.woocommerce-search-list__list .woocommerce-search-list__item.depth-4 .woocommerce-search-list__item-label:before{content:"— — — — "}.woocommerce-search-list__list .woocommerce-search-list__item .woocommerce-search-list__item-name{display:inline-block}.woocommerce-search-list__list .woocommerce-search-list__item .woocommerce-search-list__item-prefix{display:none;color:#6c7781}.woocommerce-search-list__list .woocommerce-search-list__item.is-searching .woocommerce-search-list__item-label,.woocommerce-search-list__list .woocommerce-search-list__item.is-skip-level .woocommerce-search-list__item-label{display:inline-block}.woocommerce-search-list__list .woocommerce-search-list__item.is-searching .woocommerce-search-list__item-prefix,.woocommerce-search-list__list .woocommerce-search-list__item.is-skip-level .woocommerce-search-list__item-prefix{display:inline}.woocommerce-search-list__list .woocommerce-search-list__item.is-searching .woocommerce-search-list__item-prefix:after,.woocommerce-search-list__list .woocommerce-search-list__item.is-skip-level .woocommerce-search-list__item-prefix:after{margin-right:4px;content:" ›"}.woocommerce-search-list__list .woocommerce-search-list__item.is-searching .woocommerce-search-list__item-name{color:#191e23}.woocommerce-search-list__list .woocommerce-search-list__item .woocommerce-search-list__item-count{flex:0;padding:2px 8px;border:1px solid #e2e4e7;border-radius:12px;font-size:.8em;line-height:1.4;color:#6c7781;background:#fff}.components-panel .woocommerce-search-list{padding:0}.components-panel .woocommerce-search-list__selected{margin:0 0 16px;padding:0;border-top:none;min-height:54px}.components-panel .woocommerce-search-list__search{margin:0 0 16px;padding:0;border-top:none}
4
+ .wc-product-preview{text-align:center;margin-bottom:16px}.wc-product-preview .wc-product-preview__price,.wc-product-preview .wc-product-preview__title{margin-top:4px}.wc-product-preview .wp-block-button{margin-bottom:0}.wc-product-preview .wc-product-preview__add-to-cart{cursor:text;margin:12px 0 0}.cols-4 .wc-product-preview .wc-product-preview__title,.cols-5 .wc-product-preview .wc-product-preview__title,.cols-6 .wc-product-preview .wc-product-preview__title{font-size:.9em;line-height:1.2}.cols-4 .wc-product-preview .wc-product-preview__price,.cols-5 .wc-product-preview .wc-product-preview__price,.cols-6 .wc-product-preview .wc-product-preview__price{font-size:.8em}.cols-4 .wc-product-preview .wc-product-preview__add-to-cart,.cols-5 .wc-product-preview .wc-product-preview__add-to-cart,.cols-6 .wc-product-preview .wc-product-preview__add-to-cart{font-size:.7em!important;line-height:1.4!important}.editor-block-preview .wc-product-preview .wc-product-preview__title{font-size:.7em;line-height:1.2}.editor-block-preview .wc-product-preview .wc-product-preview__price{font-size:.6em}.editor-block-preview .wc-product-preview .wc-product-preview__add-to-cart{font-size:.6em!important}
build/product-category.js ADDED
@@ -0,0 +1 @@
 
1
+ !function(e,t){for(var r in t)e[r]=t[r]}(this,function(e){function t(t){for(var n,s,a=t[0],i=t[1],l=t[2],d=0,p=[];d<a.length;d++)s=a[d],o[s]&&p.push(o[s][0]),o[s]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(u&&u(t);p.length;)p.shift()();return c.push.apply(c,l||[]),r()}function r(){for(var e,t=0;t<c.length;t++){for(var r=c[t],n=!0,a=1;a<r.length;a++){var i=r[a];0!==o[i]&&(n=!1)}n&&(c.splice(t--,1),e=s(s.s=r[0]))}return e}var n={},o={4:0},c=[];function s(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,s),r.l=!0,r.exports}s.m=e,s.c=n,s.d=function(e,t,r){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(e,t){if(1&t&&(e=s(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(s.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)s.d(r,n,function(t){return e[t]}.bind(null,n));return r},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="";var a=window.webpackJsonp=window.webpackJsonp||[],i=a.push.bind(a);a.push=t,a=a.slice();for(var l=0;l<a.length;l++)t(a[l]);var u=i;return c.push([872,0]),r()}({0:function(e,t){!function(){e.exports=this.wp.element}()},14:function(e,t){!function(){e.exports=this.wp.compose}()},16:function(e,t){!function(){e.exports=this.wp.apiFetch}()},17:function(e,t,r){"use strict";var n=r(0),o=r(3),c=function(){return Object(n.createElement)(o.Icon,{icon:Object(n.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(n.createElement)("path",{fill:"#1E8CBE",d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}))})},s=function(){return Object(n.createElement)(o.Icon,{icon:Object(n.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(n.createElement)("path",{fill:"#6C7781",d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}))})},a=function(){return Object(n.createElement)(o.Icon,{icon:Object(n.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(n.createElement)("path",{d:"M0 0h24v24H0z",fill:"none"}),Object(n.createElement)("path",{d:"M23 12l-2.44-2.78.34-3.68-3.61-.82-1.89-3.18L12 3 8.6 1.54 6.71 4.72l-3.61.81.34 3.68L1 12l2.44 2.78-.34 3.69 3.61.82 1.89 3.18L12 21l3.4 1.46 1.89-3.18 3.61-.82-.34-3.68L23 12zm-10 5h-2v-2h2v2zm0-4h-2V7h2v6z"}))})},i=function(){return Object(n.createElement)(o.Icon,{icon:Object(n.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(n.createElement)("path",{fill:"#1E8CBE",d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}))})},l=function(){return Object(n.createElement)(o.Icon,{icon:Object(n.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(n.createElement)("path",{fill:"#6C7781",d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}))})},u=function(){return Object(n.createElement)(o.Icon,{icon:Object(n.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(n.createElement)("path",{d:"M13 13v8h8v-8h-8zM3 21h8v-8H3v8zM3 3v8h8V3H3zm13.66-1.31L11 7.34 16.66 13l5.66-5.66-5.66-5.65z"}),Object(n.createElement)("path",{d:"M0 0h24v24H0z",fill:"none"}))})};r.d(t,"a",function(){return c}),r.d(t,"b",function(){return s}),r.d(t,"c",function(){return a}),r.d(t,"d",function(){return i}),r.d(t,"e",function(){return l}),r.d(t,"f",function(){return u})},170:function(e,t,r){"use strict";t.a={columns:{type:"number",default:wc_product_block_data.default_columns},rows:{type:"number",default:wc_product_block_data.default_rows},categories:{type:"array",default:[]},catOperator:{type:"string",default:"any"},attributes:{type:"array",default:[]}}},177:function(e,t,r){var n=r(178);"string"==typeof n&&(n=[[e.i,n,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};r(28)(n,o);n.locals&&(e.exports=n.locals)},178:function(e,t,r){},181:function(e,t){!function(){e.exports=this.wp.data}()},187:function(e,t,r){var n=r(188);"string"==typeof n&&(n=[[e.i,n,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};r(28)(n,o);n.locals&&(e.exports=n.locals)},188:function(e,t,r){},2:function(e,t){!function(){e.exports=this.wp.i18n}()},200:function(e,t,r){var n=r(201);"string"==typeof n&&(n=[[e.i,n,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};r(28)(n,o);n.locals&&(e.exports=n.locals)},201:function(e,t,r){},212:function(e,t,r){"use strict";var n=r(0),o=r(2),c=r(3),s=r(1),a=r.n(s),i=function(e){var t=e.value,r=e.setAttributes;return Object(n.createElement)(c.SelectControl,{label:Object(o.__)("Order products by","woo-gutenberg-products-block"),value:t,options:[{label:Object(o.__)("Newness - newest first","woo-gutenberg-products-block"),value:"date"},{label:Object(o.__)("Price - low to high","woo-gutenberg-products-block"),value:"price_asc"},{label:Object(o.__)("Price - high to low","woo-gutenberg-products-block"),value:"price_desc"},{label:Object(o.__)("Rating - highest first","woo-gutenberg-products-block"),value:"rating"},{label:Object(o.__)("Sales - most first","woo-gutenberg-products-block"),value:"popularity"},{label:Object(o.__)("Title - alphabetical","woo-gutenberg-products-block"),value:"title"},{label:Object(o.__)("Menu Order","woo-gutenberg-products-block"),value:"menu_order"}],onChange:function(e){return r({orderby:e})}})};i.propTypes={setAttributes:a.a.func.isRequired,value:a.a.string.isRequired},t.a=i},220:function(e,t,r){var n={"./af":46,"./af.js":46,"./ar":47,"./ar-dz":48,"./ar-dz.js":48,"./ar-kw":49,"./ar-kw.js":49,"./ar-ly":50,"./ar-ly.js":50,"./ar-ma":51,"./ar-ma.js":51,"./ar-sa":52,"./ar-sa.js":52,"./ar-tn":53,"./ar-tn.js":53,"./ar.js":47,"./az":54,"./az.js":54,"./be":55,"./be.js":55,"./bg":56,"./bg.js":56,"./bm":57,"./bm.js":57,"./bn":58,"./bn.js":58,"./bo":59,"./bo.js":59,"./br":60,"./br.js":60,"./bs":61,"./bs.js":61,"./ca":62,"./ca.js":62,"./cs":63,"./cs.js":63,"./cv":64,"./cv.js":64,"./cy":65,"./cy.js":65,"./da":66,"./da.js":66,"./de":67,"./de-at":68,"./de-at.js":68,"./de-ch":69,"./de-ch.js":69,"./de.js":67,"./dv":70,"./dv.js":70,"./el":71,"./el.js":71,"./en-au":72,"./en-au.js":72,"./en-ca":73,"./en-ca.js":73,"./en-gb":74,"./en-gb.js":74,"./en-ie":75,"./en-ie.js":75,"./en-il":76,"./en-il.js":76,"./en-nz":77,"./en-nz.js":77,"./eo":78,"./eo.js":78,"./es":79,"./es-do":80,"./es-do.js":80,"./es-us":81,"./es-us.js":81,"./es.js":79,"./et":82,"./et.js":82,"./eu":83,"./eu.js":83,"./fa":84,"./fa.js":84,"./fi":85,"./fi.js":85,"./fo":86,"./fo.js":86,"./fr":87,"./fr-ca":88,"./fr-ca.js":88,"./fr-ch":89,"./fr-ch.js":89,"./fr.js":87,"./fy":90,"./fy.js":90,"./gd":91,"./gd.js":91,"./gl":92,"./gl.js":92,"./gom-latn":93,"./gom-latn.js":93,"./gu":94,"./gu.js":94,"./he":95,"./he.js":95,"./hi":96,"./hi.js":96,"./hr":97,"./hr.js":97,"./hu":98,"./hu.js":98,"./hy-am":99,"./hy-am.js":99,"./id":100,"./id.js":100,"./is":101,"./is.js":101,"./it":102,"./it.js":102,"./ja":103,"./ja.js":103,"./jv":104,"./jv.js":104,"./ka":105,"./ka.js":105,"./kk":106,"./kk.js":106,"./km":107,"./km.js":107,"./kn":108,"./kn.js":108,"./ko":109,"./ko.js":109,"./ky":110,"./ky.js":110,"./lb":111,"./lb.js":111,"./lo":112,"./lo.js":112,"./lt":113,"./lt.js":113,"./lv":114,"./lv.js":114,"./me":115,"./me.js":115,"./mi":116,"./mi.js":116,"./mk":117,"./mk.js":117,"./ml":118,"./ml.js":118,"./mn":119,"./mn.js":119,"./mr":120,"./mr.js":120,"./ms":121,"./ms-my":122,"./ms-my.js":122,"./ms.js":121,"./mt":123,"./mt.js":123,"./my":124,"./my.js":124,"./nb":125,"./nb.js":125,"./ne":126,"./ne.js":126,"./nl":127,"./nl-be":128,"./nl-be.js":128,"./nl.js":127,"./nn":129,"./nn.js":129,"./pa-in":130,"./pa-in.js":130,"./pl":131,"./pl.js":131,"./pt":132,"./pt-br":133,"./pt-br.js":133,"./pt.js":132,"./ro":134,"./ro.js":134,"./ru":135,"./ru.js":135,"./sd":136,"./sd.js":136,"./se":137,"./se.js":137,"./si":138,"./si.js":138,"./sk":139,"./sk.js":139,"./sl":140,"./sl.js":140,"./sq":141,"./sq.js":141,"./sr":142,"./sr-cyrl":143,"./sr-cyrl.js":143,"./sr.js":142,"./ss":144,"./ss.js":144,"./sv":145,"./sv.js":145,"./sw":146,"./sw.js":146,"./ta":147,"./ta.js":147,"./te":148,"./te.js":148,"./tet":149,"./tet.js":149,"./tg":150,"./tg.js":150,"./th":151,"./th.js":151,"./tl-ph":152,"./tl-ph.js":152,"./tlh":153,"./tlh.js":153,"./tr":154,"./tr.js":154,"./tzl":155,"./tzl.js":155,"./tzm":156,"./tzm-latn":157,"./tzm-latn.js":157,"./tzm.js":156,"./ug-cn":158,"./ug-cn.js":158,"./uk":159,"./uk.js":159,"./ur":160,"./ur.js":160,"./uz":161,"./uz-latn":162,"./uz-latn.js":162,"./uz.js":161,"./vi":163,"./vi.js":163,"./x-pseudo":164,"./x-pseudo.js":164,"./yo":165,"./yo.js":165,"./zh-cn":166,"./zh-cn.js":166,"./zh-hk":167,"./zh-hk.js":167,"./zh-tw":168,"./zh-tw.js":168};function o(e){var t=c(e);return r(t)}function c(e){var t=n[e];if(!(t+1)){var r=new Error("Cannot find module '"+e+"'");throw r.code="MODULE_NOT_FOUND",r}return t}o.keys=function(){return Object.keys(n)},o.resolve=c,e.exports=o,o.id=220},223:function(e,t){},224:function(e,t){},226:function(e,t){},227:function(e,t){},23:function(e,t){!function(){e.exports=this.wp.url}()},24:function(e,t,r){"use strict";var n=r(27),o=r.n(n),c=r(172),s=r.n(c),a=r(0),i=r(4),l=r(3),u=r(1),d=r.n(u),p=r(17);function b(e,t){if(!t)return e;var r=new RegExp(Object(i.escapeRegExp)(t),"ig");return e.replace(r,"<strong>$&</strong>")}var m=function(e){var t=e.className,r=e.depth,n=void 0===r?0:r,c=e.item,u=e.isSelected,d=e.isSingle,m=e.onSelect,g=e.search,h=void 0===g?"":g,j=e.showCount,f=void 0!==j&&j,v=s()(e,["className","depth","item","isSelected","isSingle","onSelect","search","showCount"]),w=[t,"woocommerce-search-list__item"];w.push("depth-".concat(n)),d&&w.push("is-radio-button");var O,_=c.breadcrumbs&&c.breadcrumbs.length;return Object(a.createElement)(l.MenuItem,o()({role:"menuitemcheckbox",className:w.join(" "),onClick:m(c),isSelected:u},v),Object(a.createElement)("span",{className:"woocommerce-search-list__item-state"},function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?t?Object(a.createElement)(p.d,null):Object(a.createElement)(p.e,null):t?Object(a.createElement)(p.a,null):Object(a.createElement)(p.b,null)}(d,u)),Object(a.createElement)("span",{className:"woocommerce-search-list__item-label"},_?Object(a.createElement)("span",{className:"woocommerce-search-list__item-prefix"},1===(O=c.breadcrumbs).length?Object(i.first)(O):2===O.length?Object(i.first)(O)+" › "+Object(i.last)(O):Object(i.first)(O)+" … "+Object(i.last)(O)):null,Object(a.createElement)("span",{className:"woocommerce-search-list__item-name",dangerouslySetInnerHTML:{__html:b(c.name,h)}})),!!f&&Object(a.createElement)("span",{className:"woocommerce-search-list__item-count"},c.count))};m.propTypes={className:d.a.string,depth:d.a.number,item:d.a.object,isSelected:d.a.bool,isSingle:d.a.bool,onSelect:d.a.func,search:d.a.string,showCount:d.a.bool},t.a=m},25:function(e,t){!function(){e.exports=this.wp.editor}()},3:function(e,t){!function(){e.exports=this.wp.components}()},31:function(e,t){!function(){e.exports=this.wp.blocks}()},32:function(e,t,r){"use strict";var n=r(13),o=r.n(n),c=r(15),s=r.n(c),a=r(8),i=r.n(a),l=r(9),u=r.n(l),d=r(10),p=r.n(d),b=r(11),m=r.n(b),g=r(12),h=r.n(g),j=r(5),f=r.n(j),v=r(0),w=r(2),O=r(3),_=r(14),y=r(4),k=r(19),E=r.n(k),S=r(1),C=r.n(S),x=r(173);r(177);function N(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=Object(y.groupBy)(e,"parent"),n=Object(y.keyBy)(t,"id"),c=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!t.parent)return t.name?[t.name]:[];var r=e(n[t.parent]);return[].concat(s()(r),[t.name])},a=function e(t){return t.map(function(t){var s=r[t.id];return delete r[t.id],o()({},t,{breadcrumbs:c(n[t.parent]),children:s&&s.length?e(s):[]})})},i=a(r[0]||[]);return delete r[0],Object(y.forEach)(r,function(e){i.push.apply(i,s()(a(e||[])))}),i}var z=r(24),I={clear:Object(w.__)("Clear all selected items","woo-gutenberg-products-block"),list:Object(w.__)("Results","woo-gutenberg-products-block"),noItems:Object(w.__)("No items found.","woo-gutenberg-products-block"),noResults:Object(w.__)("No results for %s","woo-gutenberg-products-block"),search:Object(w.__)("Search for items","woo-gutenberg-products-block"),selected:function(e){return Object(w.sprintf)(Object(w._n)("%d item selected","%d items selected",e,"woo-gutenberg-products-block"),e)},updated:Object(w.__)("Search results updated.","woo-gutenberg-products-block")},R=function(e){function t(){var e;return i()(this,t),(e=p()(this,m()(t).apply(this,arguments))).onSelect=e.onSelect.bind(f()(f()(e))),e.onRemove=e.onRemove.bind(f()(f()(e))),e.onClear=e.onClear.bind(f()(f()(e))),e.isSelected=e.isSelected.bind(f()(f()(e))),e.defaultRenderItem=e.defaultRenderItem.bind(f()(f()(e))),e.renderList=e.renderList.bind(f()(f()(e))),e}return h()(t,e),u()(t,[{key:"onRemove",value:function(e){var t=this.props,r=t.isSingle,n=t.onChange,o=t.selected;return function(){r&&n([]);var t=Object(y.findIndex)(o,{id:e});n([].concat(s()(o.slice(0,t)),s()(o.slice(t+1))))}}},{key:"onSelect",value:function(e){var t=this,r=this.props,n=r.isSingle,o=r.onChange,c=r.selected;return function(){t.isSelected(e)?t.onRemove(e.id)():o(n?[e]:[].concat(s()(c),[e]))}}},{key:"onClear",value:function(){this.props.onChange([])}},{key:"isSelected",value:function(e){return-1!==Object(y.findIndex)(this.props.selected,{id:e.id})}},{key:"getFilteredList",value:function(e,t){var r=this.props.isHierarchical;if(!t)return r?N(e):e;var n=o()({},I,this.props.messages),c=new RegExp(Object(y.escapeRegExp)(t),"i");this.props.debouncedSpeak(n.updated);var s=e.map(function(e){return!!c.test(e.name)&&e}).filter(Boolean);return r?N(s,e):s}},{key:"defaultRenderItem",value:function(e){return Object(v.createElement)(z.a,e)}},{key:"renderList",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.props,o=n.isSingle,c=n.search,s=this.props.renderItem||this.defaultRenderItem;return e?e.map(function(e){return Object(v.createElement)(v.Fragment,{key:e.id},s({item:e,isSelected:t.isSelected(e),onSelect:t.onSelect,isSingle:o,search:c,depth:r}),t.renderList(e.children,r+1))}):null}},{key:"renderListSection",value:function(){var e=this.props,t=e.isLoading,r=e.search,n=this.getFilteredList(this.props.list,r),c=o()({},I,this.props.messages);return t?Object(v.createElement)("div",{className:"woocommerce-search-list__list is-loading"},Object(v.createElement)(O.Spinner,null)):n.length?Object(v.createElement)(O.MenuGroup,{label:c.list,className:"woocommerce-search-list__list"},this.renderList(n)):Object(v.createElement)("div",{className:"woocommerce-search-list__list is-not-found"},Object(v.createElement)("span",{className:"woocommerce-search-list__not-found-icon"},Object(v.createElement)(E.a,{icon:"notice-outline",role:"img","aria-hidden":"true",focusable:"false"})),Object(v.createElement)("span",{className:"woocommerce-search-list__not-found-text"},r?Object(w.sprintf)(c.noResults,r):c.noItems))}},{key:"renderSelectedSection",value:function(){var e=this,t=this.props,r=t.isLoading,n=t.isSingle,c=t.selected,s=o()({},I,this.props.messages);if(r||n||!c)return null;var a=c.length;return Object(v.createElement)("div",{className:"woocommerce-search-list__selected"},Object(v.createElement)("div",{className:"woocommerce-search-list__selected-header"},Object(v.createElement)("strong",null,s.selected(a)),a>0?Object(v.createElement)(O.Button,{isLink:!0,isDestructive:!0,onClick:this.onClear,"aria-label":s.clear},Object(w.__)("Clear all","woo-gutenberg-products-block")):null),c.map(function(t,r){return Object(v.createElement)(x.a,{key:r,label:t.name,id:t.id,remove:e.onRemove})}))}},{key:"render",value:function(){var e=this.props,t=e.className,r=void 0===t?"":t,n=e.search,c=e.setState,s=o()({},I,this.props.messages);return Object(v.createElement)("div",{className:"woocommerce-search-list ".concat(r)},this.renderSelectedSection(),Object(v.createElement)("div",{className:"woocommerce-search-list__search"},Object(v.createElement)(O.TextControl,{label:s.search,type:"search",value:n,onChange:function(e){return c({search:e})}})),this.renderListSection())}}]),t}(v.Component);R.propTypes={className:C.a.string,isHierarchical:C.a.bool,isLoading:C.a.bool,isSingle:C.a.bool,list:C.a.arrayOf(C.a.shape({id:C.a.number,name:C.a.string})),messages:C.a.shape({clear:C.a.string,list:C.a.string,noItems:C.a.string,noResults:C.a.string,search:C.a.string,selected:C.a.func,updated:C.a.string}),onChange:C.a.func.isRequired,renderItem:C.a.func,selected:C.a.array.isRequired,search:C.a.string,setState:C.a.func,debouncedSpeak:C.a.func,instanceId:C.a.number};t.a=Object(_.compose)([Object(_.withState)({search:""}),O.withSpokenMessages,_.withInstanceId])(R)},38:function(e,t,r){"use strict";function n(e,t){var r=e.categories,n=e.catOperator,o=e.columns,c=e.orderby,s=e.products,a={status:"publish",per_page:e.rows*o};switch(r&&r.length&&(a.category=r.join(","),n&&"all"===n&&(a.cat_operator="AND")),c&&("price_desc"===c?(a.orderby="price",a.order="desc"):"price_asc"===c?(a.orderby="price",a.order="asc"):"title"===c?(a.orderby="title",a.order="asc"):"menu_order"===c?(a.orderby="menu_order",a.order="asc"):a.orderby=c),t){case"woocommerce/product-best-sellers":a.orderby="popularity";break;case"woocommerce/product-top-rated":a.orderby="rating";break;case"woocommerce/product-on-sale":a.on_sale=1;break;case"woocommerce/product-new":a.orderby="date";break;case"woocommerce/handpicked-products":a.include=s,a.per_page=s.length}return a}r.d(t,"a",function(){return n})},39:function(e,t,r){"use strict";var n=r(0),o=r(2),c=r(1),s=r.n(c),a=(r(187),function(e){var t=e.product,r=null;return t.images.length&&(r=Object(n.createElement)("img",{src:t.images[0].src,alt:""})),Object(n.createElement)("div",{className:"wc-product-preview"},r,Object(n.createElement)("div",{className:"wc-product-preview__title"},t.name),Object(n.createElement)("div",{className:"wc-product-preview__price",dangerouslySetInnerHTML:{__html:t.price_html}}),Object(n.createElement)("span",{className:"wp-block-button"},Object(n.createElement)("span",{className:"wc-product-preview__add-to-cart wp-block-button__link"},Object(o.__)("Add to cart","woo-gutenberg-products-block"))))});a.propTypes={product:s.a.shape({id:s.a.number,images:s.a.array,name:s.a.string,price_html:s.a.string}).isRequired},t.a=a},4:function(e,t){!function(){e.exports=this.lodash}()},40:function(e,t,r){"use strict";r.d(t,"a",function(){return c});var n=r(171),o=r.n(n);function c(e,t){var r=e.attributes,n=r.categories,c=r.catOperator,s=r.columns,a=r.orderby,i=r.products,l=r.rows,u=new Map;switch(u.set("limit",l*s),u.set("columns",s),n&&n.length&&(u.set("category",n.join(",")),c&&"all"===c&&u.set("cat_operator","AND")),a&&("price_desc"===a?(u.set("orderby","price"),u.set("order","DESC")):"price_asc"===a?(u.set("orderby","price"),u.set("order","ASC")):"date"===a?(u.set("orderby","date"),u.set("order","DESC")):u.set("orderby",a)),t){case"woocommerce/product-best-sellers":u.set("best_selling","1");break;case"woocommerce/product-top-rated":u.set("orderby","rating");break;case"woocommerce/product-on-sale":u.set("on_sale","1");break;case"woocommerce/product-new":u.set("orderby","date"),u.set("order","DESC");break;case"woocommerce/handpicked-products":if(!i.length)return"";u.set("ids",i.join(",")),u.set("limit",i.length);break;case"woocommerce/product-category":if(!n||!n.length)return""}var d="[products",p=!0,b=!1,m=void 0;try{for(var g,h=u[Symbol.iterator]();!(p=(g=h.next()).done);p=!0){var j=o()(g.value,2);d+=" "+j[0]+'="'+j[1]+'"'}}catch(e){b=!0,m=e}finally{try{p||null==h.return||h.return()}finally{if(b)throw m}}return d+="]"}},44:function(e,t,r){"use strict";var n=r(27),o=r.n(n),c=r(8),s=r.n(c),a=r(9),i=r.n(a),l=r(10),u=r.n(l),d=r(11),p=r.n(d),b=r(12),m=r.n(b),g=r(5),h=r.n(g),j=r(0),f=r(2),v=r(23),w=r(16),O=r.n(w),_=r(4),y=r(1),k=r.n(y),E=r(3),S=(r(200),r(32)),C=r(24),x=function(e){function t(){var e;return s()(this,t),(e=u()(this,p()(t).apply(this,arguments))).state={list:[],loading:!0},e.renderItem=e.renderItem.bind(h()(h()(e))),e}return m()(t,e),i()(t,[{key:"componentDidMount",value:function(){var e=this;O()({path:Object(v.addQueryArgs)("/wc-pb/v3/products/categories",{per_page:-1})}).then(function(t){e.setState({list:t,loading:!1})}).catch(function(){e.setState({list:[],loading:!1})})}},{key:"renderItem",value:function(e){var t=e.item,r=e.search,n=e.depth,c=void 0===n?0:n,s=["woocommerce-product-categories__item"];r.length&&s.push("is-searching"),0===c&&0!==t.parent&&s.push("is-skip-level");var a=t.breadcrumbs.length?"".concat(t.breadcrumbs.join(", "),", ").concat(t.name):t.name;return Object(j.createElement)(C.a,o()({className:s.join(" ")},e,{showCount:!0,"aria-label":Object(f.sprintf)(Object(f._n)("%s, has %d product","%s, has %d products",t.count,"woo-gutenberg-products-block"),a,t.count)}))}},{key:"render",value:function(){var e=this.state,t=e.list,r=e.loading,n=this.props,o=n.onChange,c=n.onOperatorChange,s=n.operator,a=void 0===s?"any":s,i=n.selected,l={clear:Object(f.__)("Clear all product categories","woo-gutenberg-products-block"),list:Object(f.__)("Product Categories","woo-gutenberg-products-block"),noItems:Object(f.__)("Your store doesn't have any product categories.","woo-gutenberg-products-block"),search:Object(f.__)("Search for product categories","woo-gutenberg-products-block"),selected:function(e){return Object(f.sprintf)(Object(f._n)("%d category selected","%d categories selected",e,"woo-gutenberg-products-block"),e)},updated:Object(f.__)("Category search results updated.","woo-gutenberg-products-block")};return Object(j.createElement)(j.Fragment,null,Object(j.createElement)(S.a,{className:"woocommerce-product-categories",list:t,isLoading:r,selected:i.map(function(e){return Object(_.find)(t,{id:e})}).filter(Boolean),onChange:o,renderItem:this.renderItem,messages:l,isHierarchical:!0}),!!c&&Object(j.createElement)("div",{className:i.length<2?"screen-reader-text":""},Object(j.createElement)(E.SelectControl,{className:"woocommerce-product-categories__operator",label:Object(f.__)("Display products matching","woo-gutenberg-products-block"),help:Object(f.__)("Pick at least two categories to use this setting.","woo-gutenberg-products-block"),value:a,onChange:c,options:[{label:Object(f.__)("Any selected categories","woo-gutenberg-products-block"),value:"any"},{label:Object(f.__)("All selected categories","woo-gutenberg-products-block"),value:"all"}]})))}}]),t}(j.Component);x.propTypes={onChange:k.a.func.isRequired,onOperatorChange:k.a.func,operator:k.a.oneOf(["all","any"]),selected:k.a.array.isRequired},t.a=x},863:function(e,t,r){var n=r(864);"string"==typeof n&&(n=[[e.i,n,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};r(28)(n,o);n.locals&&(e.exports=n.locals)},864:function(e,t,r){},872:function(e,t,r){"use strict";r.r(t);var n=r(13),o=r.n(n),c=r(0),s=r(2),a=r(31),i=(r(863),r(8)),l=r.n(i),u=r(9),d=r.n(u),p=r(10),b=r.n(p),m=r(11),g=r.n(m),h=r(12),j=r.n(h),f=r(5),v=r.n(f),w=r(23),O=r(16),_=r.n(O),y=r(25),k=r(3),E=r(4),S=r(1),C=r.n(S),x=r(38),N=r(44),z=r(212),I=r(39),R=function(e){function t(){var e;return l()(this,t),(e=b()(this,g()(t).apply(this,arguments))).state={products:[],loaded:!1},e.debouncedGetProducts=Object(E.debounce)(e.getProducts.bind(v()(v()(e))),200),e}return j()(t,e),d()(t,[{key:"componentDidMount",value:function(){this.props.attributes.categories&&this.getProducts()}},{key:"componentDidUpdate",value:function(e){var t=this;["categories","catOperator","columns","orderby","rows"].reduce(function(r,n){return r||e.attributes[n]!==t.props.attributes[n]},!1)&&this.debouncedGetProducts()}},{key:"getProducts",value:function(){var e=this;this.props.attributes.categories.length?_()({path:Object(w.addQueryArgs)("/wc-pb/v3/products",Object(x.a)(this.props.attributes,this.props.name))}).then(function(t){e.setState({products:t,loaded:!0})}).catch(function(){e.setState({products:[],loaded:!0})}):this.setState({products:[],loaded:!0})}},{key:"getInspectorControls",value:function(){var e=this.props,t=e.attributes,r=e.setAttributes,n=t.columns,o=t.catOperator,a=t.orderby,i=t.rows;return Object(c.createElement)(y.InspectorControls,{key:"inspector"},Object(c.createElement)(k.PanelBody,{title:Object(s.__)("Product Category","woo-gutenberg-products-block"),initialOpen:!1},Object(c.createElement)(N.a,{selected:t.categories,onChange:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(function(e){return e.id});r({categories:e})},operator:o,onOperatorChange:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"any";return r({catOperator:e})}})),Object(c.createElement)(k.PanelBody,{title:Object(s.__)("Layout","woo-gutenberg-products-block"),initialOpen:!0},Object(c.createElement)(k.RangeControl,{label:Object(s.__)("Columns","woo-gutenberg-products-block"),value:n,onChange:function(e){return r({columns:e})},min:wc_product_block_data.min_columns,max:wc_product_block_data.max_columns}),Object(c.createElement)(k.RangeControl,{label:Object(s.__)("Rows","woo-gutenberg-products-block"),value:i,onChange:function(e){return r({rows:e})},min:wc_product_block_data.min_rows,max:wc_product_block_data.max_rows})),Object(c.createElement)(k.PanelBody,{title:Object(s.__)("Order By","woo-gutenberg-products-block"),initialOpen:!1},Object(c.createElement)(z.a,{setAttributes:r,value:a})))}},{key:"renderEditMode",value:function(){var e=this.props,t=e.attributes,r=e.debouncedSpeak,n=e.setAttributes;return Object(c.createElement)(k.Placeholder,{icon:"category",label:Object(s.__)("Products by Category","woo-gutenberg-products-block"),className:"wc-block-products-grid wc-block-products-category"},Object(s.__)("Display a grid of products from your selected categories","woo-gutenberg-products-block"),Object(c.createElement)("div",{className:"wc-block-products-category__selection"},Object(c.createElement)(N.a,{selected:t.categories,onChange:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(function(e){return e.id});n({categories:e})},operator:t.catOperator,onOperatorChange:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"any";return n({catOperator:e})}}),Object(c.createElement)(k.Button,{isDefault:!0,onClick:function(){n({editMode:!1}),r(Object(s.__)("Showing Products by Category block preview.","woo-gutenberg-products-block"))}},Object(s.__)("Done","woo-gutenberg-products-block"))))}},{key:"render",value:function(){var e=this.props.setAttributes,t=this.props.attributes,r=t.categories,n=t.columns,o=t.editMode,a=this.state,i=a.loaded,l=a.products,u=["wc-block-products-grid","wc-block-products-category"];n&&u.push("cols-".concat(n)),l&&!l.length&&(i?u.push("is-not-found"):u.push("is-loading"));var d=r.length?Object(s._n)("No products in this category.","No products in these categories.",r.length,"woo-gutenberg-products-block"):Object(s.__)("Select at least one category to display its products.","woo-gutenberg-products-block");return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(y.BlockControls,null,Object(c.createElement)(k.Toolbar,{controls:[{icon:"edit",title:Object(s.__)("Edit"),onClick:function(){return e({editMode:!o})},isActive:o}]})),this.getInspectorControls(),o?this.renderEditMode():Object(c.createElement)("div",{className:u.join(" ")},l.length?l.map(function(e){return Object(c.createElement)(I.a,{product:e,key:e.id})}):Object(c.createElement)(k.Placeholder,{icon:"category",label:Object(s.__)("Products by Category","woo-gutenberg-products-block")},i?d:Object(c.createElement)(k.Spinner,null))))}}]),t}(c.Component);R.propTypes={attributes:C.a.object.isRequired,name:C.a.string.isRequired,setAttributes:C.a.func.isRequired,debouncedSpeak:C.a.func.isRequired};var M=Object(k.withSpokenMessages)(R),L=r(40),P=r(170);Object(a.registerBlockType)("woocommerce/product-category",{title:Object(s.__)("Products by Category","woo-gutenberg-products-block"),icon:"category",category:"woocommerce",keywords:[Object(s.__)("WooCommerce","woo-gutenberg-products-block")],description:Object(s.__)("Display a grid of products from your selected categories.","woo-gutenberg-products-block"),supports:{align:["wide","full"]},attributes:o()({},P.a,{editMode:{type:"boolean",default:!0},orderby:{type:"string",default:"date"}}),edit:function(e){return Object(c.createElement)(M,e)},save:function(e){var t=e.attributes.align;return Object(c.createElement)(c.RawHTML,{className:t?"align".concat(t):""},Object(L.a)(e,"woocommerce/product-category"))}})}}));
build/product-new.css ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ .woocommerce-product-categories__operator .components-base-control__help{clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;width:1px;margin:-1px;overflow:hidden;overflow-wrap:normal!important;word-wrap:normal!important}.components-panel .woocommerce-product-categories__operator.components-base-control{margin-top:16px}.components-panel .woocommerce-product-categories__operator.components-base-control .components-select-control__input{margin-left:0;min-width:100%}
2
+ @charset "UTF-8";.woocommerce-search-list{width:100%;padding:0 0 16px;text-align:left}.woocommerce-search-list__selected{margin:16px 0;padding:16px 0 0;min-height:76px;border-top:1px solid #e2e4e7}.woocommerce-search-list__selected .woocommerce-search-list__selected-header{margin-bottom:8px}.woocommerce-search-list__selected .woocommerce-search-list__selected-header button{margin-left:12px}.woocommerce-search-list__selected .woocommerce-tag__text{max-width:13em}.woocommerce-search-list__search{margin:16px 0;padding:16px 0 0;border-top:1px solid #e2e4e7}.woocommerce-search-list__search .components-base-control__field{margin-bottom:16px}.woocommerce-search-list__list{padding:0;max-height:17em;overflow-x:hidden;overflow-y:auto;border-top:1px solid #e2e4e7;border-bottom:1px solid #e2e4e7}.woocommerce-search-list__list.is-loading,.woocommerce-search-list__list.is-not-found{padding:12px 0;text-align:center;border:none}.woocommerce-search-list__list.is-not-found .woocommerce-search-list__not-found-icon,.woocommerce-search-list__list.is-not-found .woocommerce-search-list__not-found-text{display:inline-block}.woocommerce-search-list__list.is-not-found .woocommerce-search-list__not-found-icon{margin-right:16px}.woocommerce-search-list__list.is-not-found .woocommerce-search-list__not-found-icon .gridicon{vertical-align:top;margin-top:-1px}.woocommerce-search-list__list .components-spinner{float:none}.woocommerce-search-list__list .components-menu-group__label{clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;width:1px;margin:-1px;overflow:hidden;overflow-wrap:normal!important;word-wrap:normal!important}.woocommerce-search-list__list>[role=menu]{border:1px solid #e2e4e7;border-bottom:none}.woocommerce-search-list__list .woocommerce-search-list__item{display:flex;align-items:center;margin-bottom:0;padding:12px 16px;background:#fff;border-bottom:1px solid #e2e4e7!important;color:#555d66}.woocommerce-search-list__list .woocommerce-search-list__item:active,.woocommerce-search-list__list .woocommerce-search-list__item:focus,.woocommerce-search-list__list .woocommerce-search-list__item:hover{background:#f8f9f9}.woocommerce-search-list__list .woocommerce-search-list__item:last-child{border-bottom:none!important}.woocommerce-search-list__list .woocommerce-search-list__item .woocommerce-search-list__item-state{flex:0 0 16px;margin-right:8px;height:24px}.woocommerce-search-list__list .woocommerce-search-list__item .woocommerce-search-list__item-label{display:flex;flex:1}.woocommerce-search-list__list .woocommerce-search-list__item[class*=depth-] .woocommerce-search-list__item-label:before{margin-right:4px;content:"— — — — — "}.woocommerce-search-list__list .woocommerce-search-list__item.depth-0 .woocommerce-search-list__item-label:before{margin-right:0;content:""}.woocommerce-search-list__list .woocommerce-search-list__item.depth-1 .woocommerce-search-list__item-label:before{content:"— "}.woocommerce-search-list__list .woocommerce-search-list__item.depth-2 .woocommerce-search-list__item-label:before{content:"— — "}.woocommerce-search-list__list .woocommerce-search-list__item.depth-3 .woocommerce-search-list__item-label:before{content:"— — — "}.woocommerce-search-list__list .woocommerce-search-list__item.depth-4 .woocommerce-search-list__item-label:before{content:"— — — — "}.woocommerce-search-list__list .woocommerce-search-list__item .woocommerce-search-list__item-name{display:inline-block}.woocommerce-search-list__list .woocommerce-search-list__item .woocommerce-search-list__item-prefix{display:none;color:#6c7781}.woocommerce-search-list__list .woocommerce-search-list__item.is-searching .woocommerce-search-list__item-label,.woocommerce-search-list__list .woocommerce-search-list__item.is-skip-level .woocommerce-search-list__item-label{display:inline-block}.woocommerce-search-list__list .woocommerce-search-list__item.is-searching .woocommerce-search-list__item-prefix,.woocommerce-search-list__list .woocommerce-search-list__item.is-skip-level .woocommerce-search-list__item-prefix{display:inline}.woocommerce-search-list__list .woocommerce-search-list__item.is-searching .woocommerce-search-list__item-prefix:after,.woocommerce-search-list__list .woocommerce-search-list__item.is-skip-level .woocommerce-search-list__item-prefix:after{margin-right:4px;content:" ›"}.woocommerce-search-list__list .woocommerce-search-list__item.is-searching .woocommerce-search-list__item-name{color:#191e23}.woocommerce-search-list__list .woocommerce-search-list__item .woocommerce-search-list__item-count{flex:0;padding:2px 8px;border:1px solid #e2e4e7;border-radius:12px;font-size:.8em;line-height:1.4;color:#6c7781;background:#fff}.components-panel .woocommerce-search-list{padding:0}.components-panel .woocommerce-search-list__selected{margin:0 0 16px;padding:0;border-top:none;min-height:54px}.components-panel .woocommerce-search-list__search{margin:0 0 16px;padding:0;border-top:none}
3
+ .wc-product-preview{text-align:center;margin-bottom:16px}.wc-product-preview .wc-product-preview__price,.wc-product-preview .wc-product-preview__title{margin-top:4px}.wc-product-preview .wp-block-button{margin-bottom:0}.wc-product-preview .wc-product-preview__add-to-cart{cursor:text;margin:12px 0 0}.cols-4 .wc-product-preview .wc-product-preview__title,.cols-5 .wc-product-preview .wc-product-preview__title,.cols-6 .wc-product-preview .wc-product-preview__title{font-size:.9em;line-height:1.2}.cols-4 .wc-product-preview .wc-product-preview__price,.cols-5 .wc-product-preview .wc-product-preview__price,.cols-6 .wc-product-preview .wc-product-preview__price{font-size:.8em}.cols-4 .wc-product-preview .wc-product-preview__add-to-cart,.cols-5 .wc-product-preview .wc-product-preview__add-to-cart,.cols-6 .wc-product-preview .wc-product-preview__add-to-cart{font-size:.7em!important;line-height:1.4!important}.editor-block-preview .wc-product-preview .wc-product-preview__title{font-size:.7em;line-height:1.2}.editor-block-preview .wc-product-preview .wc-product-preview__price{font-size:.6em}.editor-block-preview .wc-product-preview .wc-product-preview__add-to-cart{font-size:.6em!important}
build/product-new.js ADDED
@@ -0,0 +1 @@
 
1
+ !function(e,t){for(var r in t)e[r]=t[r]}(this,function(e){function t(t){for(var n,s,a=t[0],i=t[1],l=t[2],d=0,p=[];d<a.length;d++)s=a[d],c[s]&&p.push(c[s][0]),c[s]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(u&&u(t);p.length;)p.shift()();return o.push.apply(o,l||[]),r()}function r(){for(var e,t=0;t<o.length;t++){for(var r=o[t],n=!0,a=1;a<r.length;a++){var i=r[a];0!==c[i]&&(n=!1)}n&&(o.splice(t--,1),e=s(s.s=r[0]))}return e}var n={},c={5:0},o=[];function s(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,s),r.l=!0,r.exports}s.m=e,s.c=n,s.d=function(e,t,r){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(e,t){if(1&t&&(e=s(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(s.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)s.d(r,n,function(t){return e[t]}.bind(null,n));return r},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="";var a=window.webpackJsonp=window.webpackJsonp||[],i=a.push.bind(a);a.push=t,a=a.slice();for(var l=0;l<a.length;l++)t(a[l]);var u=i;return o.push([873,0]),r()}({0:function(e,t){!function(){e.exports=this.wp.element}()},14:function(e,t){!function(){e.exports=this.wp.compose}()},16:function(e,t){!function(){e.exports=this.wp.apiFetch}()},17:function(e,t,r){"use strict";var n=r(0),c=r(3),o=function(){return Object(n.createElement)(c.Icon,{icon:Object(n.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(n.createElement)("path",{fill:"#1E8CBE",d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}))})},s=function(){return Object(n.createElement)(c.Icon,{icon:Object(n.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(n.createElement)("path",{fill:"#6C7781",d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}))})},a=function(){return Object(n.createElement)(c.Icon,{icon:Object(n.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(n.createElement)("path",{d:"M0 0h24v24H0z",fill:"none"}),Object(n.createElement)("path",{d:"M23 12l-2.44-2.78.34-3.68-3.61-.82-1.89-3.18L12 3 8.6 1.54 6.71 4.72l-3.61.81.34 3.68L1 12l2.44 2.78-.34 3.69 3.61.82 1.89 3.18L12 21l3.4 1.46 1.89-3.18 3.61-.82-.34-3.68L23 12zm-10 5h-2v-2h2v2zm0-4h-2V7h2v6z"}))})},i=function(){return Object(n.createElement)(c.Icon,{icon:Object(n.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(n.createElement)("path",{fill:"#1E8CBE",d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}))})},l=function(){return Object(n.createElement)(c.Icon,{icon:Object(n.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(n.createElement)("path",{fill:"#6C7781",d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}))})},u=function(){return Object(n.createElement)(c.Icon,{icon:Object(n.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(n.createElement)("path",{d:"M13 13v8h8v-8h-8zM3 21h8v-8H3v8zM3 3v8h8V3H3zm13.66-1.31L11 7.34 16.66 13l5.66-5.66-5.66-5.65z"}),Object(n.createElement)("path",{d:"M0 0h24v24H0z",fill:"none"}))})};r.d(t,"a",function(){return o}),r.d(t,"b",function(){return s}),r.d(t,"c",function(){return a}),r.d(t,"d",function(){return i}),r.d(t,"e",function(){return l}),r.d(t,"f",function(){return u})},170:function(e,t,r){"use strict";t.a={columns:{type:"number",default:wc_product_block_data.default_columns},rows:{type:"number",default:wc_product_block_data.default_rows},categories:{type:"array",default:[]},catOperator:{type:"string",default:"any"},attributes:{type:"array",default:[]}}},177:function(e,t,r){var n=r(178);"string"==typeof n&&(n=[[e.i,n,""]]);var c={hmr:!0,transform:void 0,insertInto:void 0};r(28)(n,c);n.locals&&(e.exports=n.locals)},178:function(e,t,r){},181:function(e,t){!function(){e.exports=this.wp.data}()},187:function(e,t,r){var n=r(188);"string"==typeof n&&(n=[[e.i,n,""]]);var c={hmr:!0,transform:void 0,insertInto:void 0};r(28)(n,c);n.locals&&(e.exports=n.locals)},188:function(e,t,r){},2:function(e,t){!function(){e.exports=this.wp.i18n}()},200:function(e,t,r){var n=r(201);"string"==typeof n&&(n=[[e.i,n,""]]);var c={hmr:!0,transform:void 0,insertInto:void 0};r(28)(n,c);n.locals&&(e.exports=n.locals)},201:function(e,t,r){},220:function(e,t,r){var n={"./af":46,"./af.js":46,"./ar":47,"./ar-dz":48,"./ar-dz.js":48,"./ar-kw":49,"./ar-kw.js":49,"./ar-ly":50,"./ar-ly.js":50,"./ar-ma":51,"./ar-ma.js":51,"./ar-sa":52,"./ar-sa.js":52,"./ar-tn":53,"./ar-tn.js":53,"./ar.js":47,"./az":54,"./az.js":54,"./be":55,"./be.js":55,"./bg":56,"./bg.js":56,"./bm":57,"./bm.js":57,"./bn":58,"./bn.js":58,"./bo":59,"./bo.js":59,"./br":60,"./br.js":60,"./bs":61,"./bs.js":61,"./ca":62,"./ca.js":62,"./cs":63,"./cs.js":63,"./cv":64,"./cv.js":64,"./cy":65,"./cy.js":65,"./da":66,"./da.js":66,"./de":67,"./de-at":68,"./de-at.js":68,"./de-ch":69,"./de-ch.js":69,"./de.js":67,"./dv":70,"./dv.js":70,"./el":71,"./el.js":71,"./en-au":72,"./en-au.js":72,"./en-ca":73,"./en-ca.js":73,"./en-gb":74,"./en-gb.js":74,"./en-ie":75,"./en-ie.js":75,"./en-il":76,"./en-il.js":76,"./en-nz":77,"./en-nz.js":77,"./eo":78,"./eo.js":78,"./es":79,"./es-do":80,"./es-do.js":80,"./es-us":81,"./es-us.js":81,"./es.js":79,"./et":82,"./et.js":82,"./eu":83,"./eu.js":83,"./fa":84,"./fa.js":84,"./fi":85,"./fi.js":85,"./fo":86,"./fo.js":86,"./fr":87,"./fr-ca":88,"./fr-ca.js":88,"./fr-ch":89,"./fr-ch.js":89,"./fr.js":87,"./fy":90,"./fy.js":90,"./gd":91,"./gd.js":91,"./gl":92,"./gl.js":92,"./gom-latn":93,"./gom-latn.js":93,"./gu":94,"./gu.js":94,"./he":95,"./he.js":95,"./hi":96,"./hi.js":96,"./hr":97,"./hr.js":97,"./hu":98,"./hu.js":98,"./hy-am":99,"./hy-am.js":99,"./id":100,"./id.js":100,"./is":101,"./is.js":101,"./it":102,"./it.js":102,"./ja":103,"./ja.js":103,"./jv":104,"./jv.js":104,"./ka":105,"./ka.js":105,"./kk":106,"./kk.js":106,"./km":107,"./km.js":107,"./kn":108,"./kn.js":108,"./ko":109,"./ko.js":109,"./ky":110,"./ky.js":110,"./lb":111,"./lb.js":111,"./lo":112,"./lo.js":112,"./lt":113,"./lt.js":113,"./lv":114,"./lv.js":114,"./me":115,"./me.js":115,"./mi":116,"./mi.js":116,"./mk":117,"./mk.js":117,"./ml":118,"./ml.js":118,"./mn":119,"./mn.js":119,"./mr":120,"./mr.js":120,"./ms":121,"./ms-my":122,"./ms-my.js":122,"./ms.js":121,"./mt":123,"./mt.js":123,"./my":124,"./my.js":124,"./nb":125,"./nb.js":125,"./ne":126,"./ne.js":126,"./nl":127,"./nl-be":128,"./nl-be.js":128,"./nl.js":127,"./nn":129,"./nn.js":129,"./pa-in":130,"./pa-in.js":130,"./pl":131,"./pl.js":131,"./pt":132,"./pt-br":133,"./pt-br.js":133,"./pt.js":132,"./ro":134,"./ro.js":134,"./ru":135,"./ru.js":135,"./sd":136,"./sd.js":136,"./se":137,"./se.js":137,"./si":138,"./si.js":138,"./sk":139,"./sk.js":139,"./sl":140,"./sl.js":140,"./sq":141,"./sq.js":141,"./sr":142,"./sr-cyrl":143,"./sr-cyrl.js":143,"./sr.js":142,"./ss":144,"./ss.js":144,"./sv":145,"./sv.js":145,"./sw":146,"./sw.js":146,"./ta":147,"./ta.js":147,"./te":148,"./te.js":148,"./tet":149,"./tet.js":149,"./tg":150,"./tg.js":150,"./th":151,"./th.js":151,"./tl-ph":152,"./tl-ph.js":152,"./tlh":153,"./tlh.js":153,"./tr":154,"./tr.js":154,"./tzl":155,"./tzl.js":155,"./tzm":156,"./tzm-latn":157,"./tzm-latn.js":157,"./tzm.js":156,"./ug-cn":158,"./ug-cn.js":158,"./uk":159,"./uk.js":159,"./ur":160,"./ur.js":160,"./uz":161,"./uz-latn":162,"./uz-latn.js":162,"./uz.js":161,"./vi":163,"./vi.js":163,"./x-pseudo":164,"./x-pseudo.js":164,"./yo":165,"./yo.js":165,"./zh-cn":166,"./zh-cn.js":166,"./zh-hk":167,"./zh-hk.js":167,"./zh-tw":168,"./zh-tw.js":168};function c(e){var t=o(e);return r(t)}function o(e){var t=n[e];if(!(t+1)){var r=new Error("Cannot find module '"+e+"'");throw r.code="MODULE_NOT_FOUND",r}return t}c.keys=function(){return Object.keys(n)},c.resolve=o,e.exports=c,c.id=220},223:function(e,t){},224:function(e,t){},226:function(e,t){},227:function(e,t){},23:function(e,t){!function(){e.exports=this.wp.url}()},24:function(e,t,r){"use strict";var n=r(27),c=r.n(n),o=r(172),s=r.n(o),a=r(0),i=r(4),l=r(3),u=r(1),d=r.n(u),p=r(17);function m(e,t){if(!t)return e;var r=new RegExp(Object(i.escapeRegExp)(t),"ig");return e.replace(r,"<strong>$&</strong>")}var b=function(e){var t=e.className,r=e.depth,n=void 0===r?0:r,o=e.item,u=e.isSelected,d=e.isSingle,b=e.onSelect,h=e.search,j=void 0===h?"":h,g=e.showCount,f=void 0!==g&&g,v=s()(e,["className","depth","item","isSelected","isSingle","onSelect","search","showCount"]),w=[t,"woocommerce-search-list__item"];w.push("depth-".concat(n)),d&&w.push("is-radio-button");var O,_=o.breadcrumbs&&o.breadcrumbs.length;return Object(a.createElement)(l.MenuItem,c()({role:"menuitemcheckbox",className:w.join(" "),onClick:b(o),isSelected:u},v),Object(a.createElement)("span",{className:"woocommerce-search-list__item-state"},function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?t?Object(a.createElement)(p.d,null):Object(a.createElement)(p.e,null):t?Object(a.createElement)(p.a,null):Object(a.createElement)(p.b,null)}(d,u)),Object(a.createElement)("span",{className:"woocommerce-search-list__item-label"},_?Object(a.createElement)("span",{className:"woocommerce-search-list__item-prefix"},1===(O=o.breadcrumbs).length?Object(i.first)(O):2===O.length?Object(i.first)(O)+" › "+Object(i.last)(O):Object(i.first)(O)+" … "+Object(i.last)(O)):null,Object(a.createElement)("span",{className:"woocommerce-search-list__item-name",dangerouslySetInnerHTML:{__html:m(o.name,j)}})),!!f&&Object(a.createElement)("span",{className:"woocommerce-search-list__item-count"},o.count))};b.propTypes={className:d.a.string,depth:d.a.number,item:d.a.object,isSelected:d.a.bool,isSingle:d.a.bool,onSelect:d.a.func,search:d.a.string,showCount:d.a.bool},t.a=b},25:function(e,t){!function(){e.exports=this.wp.editor}()},3:function(e,t){!function(){e.exports=this.wp.components}()},31:function(e,t){!function(){e.exports=this.wp.blocks}()},32:function(e,t,r){"use strict";var n=r(13),c=r.n(n),o=r(15),s=r.n(o),a=r(8),i=r.n(a),l=r(9),u=r.n(l),d=r(10),p=r.n(d),m=r(11),b=r.n(m),h=r(12),j=r.n(h),g=r(5),f=r.n(g),v=r(0),w=r(2),O=r(3),_=r(14),y=r(4),k=r(19),E=r.n(k),S=r(1),C=r.n(S),x=r(173);r(177);function N(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=Object(y.groupBy)(e,"parent"),n=Object(y.keyBy)(t,"id"),o=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!t.parent)return t.name?[t.name]:[];var r=e(n[t.parent]);return[].concat(s()(r),[t.name])},a=function e(t){return t.map(function(t){var s=r[t.id];return delete r[t.id],c()({},t,{breadcrumbs:o(n[t.parent]),children:s&&s.length?e(s):[]})})},i=a(r[0]||[]);return delete r[0],Object(y.forEach)(r,function(e){i.push.apply(i,s()(a(e||[])))}),i}var z=r(24),I={clear:Object(w.__)("Clear all selected items","woo-gutenberg-products-block"),list:Object(w.__)("Results","woo-gutenberg-products-block"),noItems:Object(w.__)("No items found.","woo-gutenberg-products-block"),noResults:Object(w.__)("No results for %s","woo-gutenberg-products-block"),search:Object(w.__)("Search for items","woo-gutenberg-products-block"),selected:function(e){return Object(w.sprintf)(Object(w._n)("%d item selected","%d items selected",e,"woo-gutenberg-products-block"),e)},updated:Object(w.__)("Search results updated.","woo-gutenberg-products-block")},R=function(e){function t(){var e;return i()(this,t),(e=p()(this,b()(t).apply(this,arguments))).onSelect=e.onSelect.bind(f()(f()(e))),e.onRemove=e.onRemove.bind(f()(f()(e))),e.onClear=e.onClear.bind(f()(f()(e))),e.isSelected=e.isSelected.bind(f()(f()(e))),e.defaultRenderItem=e.defaultRenderItem.bind(f()(f()(e))),e.renderList=e.renderList.bind(f()(f()(e))),e}return j()(t,e),u()(t,[{key:"onRemove",value:function(e){var t=this.props,r=t.isSingle,n=t.onChange,c=t.selected;return function(){r&&n([]);var t=Object(y.findIndex)(c,{id:e});n([].concat(s()(c.slice(0,t)),s()(c.slice(t+1))))}}},{key:"onSelect",value:function(e){var t=this,r=this.props,n=r.isSingle,c=r.onChange,o=r.selected;return function(){t.isSelected(e)?t.onRemove(e.id)():c(n?[e]:[].concat(s()(o),[e]))}}},{key:"onClear",value:function(){this.props.onChange([])}},{key:"isSelected",value:function(e){return-1!==Object(y.findIndex)(this.props.selected,{id:e.id})}},{key:"getFilteredList",value:function(e,t){var r=this.props.isHierarchical;if(!t)return r?N(e):e;var n=c()({},I,this.props.messages),o=new RegExp(Object(y.escapeRegExp)(t),"i");this.props.debouncedSpeak(n.updated);var s=e.map(function(e){return!!o.test(e.name)&&e}).filter(Boolean);return r?N(s,e):s}},{key:"defaultRenderItem",value:function(e){return Object(v.createElement)(z.a,e)}},{key:"renderList",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.props,c=n.isSingle,o=n.search,s=this.props.renderItem||this.defaultRenderItem;return e?e.map(function(e){return Object(v.createElement)(v.Fragment,{key:e.id},s({item:e,isSelected:t.isSelected(e),onSelect:t.onSelect,isSingle:c,search:o,depth:r}),t.renderList(e.children,r+1))}):null}},{key:"renderListSection",value:function(){var e=this.props,t=e.isLoading,r=e.search,n=this.getFilteredList(this.props.list,r),o=c()({},I,this.props.messages);return t?Object(v.createElement)("div",{className:"woocommerce-search-list__list is-loading"},Object(v.createElement)(O.Spinner,null)):n.length?Object(v.createElement)(O.MenuGroup,{label:o.list,className:"woocommerce-search-list__list"},this.renderList(n)):Object(v.createElement)("div",{className:"woocommerce-search-list__list is-not-found"},Object(v.createElement)("span",{className:"woocommerce-search-list__not-found-icon"},Object(v.createElement)(E.a,{icon:"notice-outline",role:"img","aria-hidden":"true",focusable:"false"})),Object(v.createElement)("span",{className:"woocommerce-search-list__not-found-text"},r?Object(w.sprintf)(o.noResults,r):o.noItems))}},{key:"renderSelectedSection",value:function(){var e=this,t=this.props,r=t.isLoading,n=t.isSingle,o=t.selected,s=c()({},I,this.props.messages);if(r||n||!o)return null;var a=o.length;return Object(v.createElement)("div",{className:"woocommerce-search-list__selected"},Object(v.createElement)("div",{className:"woocommerce-search-list__selected-header"},Object(v.createElement)("strong",null,s.selected(a)),a>0?Object(v.createElement)(O.Button,{isLink:!0,isDestructive:!0,onClick:this.onClear,"aria-label":s.clear},Object(w.__)("Clear all","woo-gutenberg-products-block")):null),o.map(function(t,r){return Object(v.createElement)(x.a,{key:r,label:t.name,id:t.id,remove:e.onRemove})}))}},{key:"render",value:function(){var e=this.props,t=e.className,r=void 0===t?"":t,n=e.search,o=e.setState,s=c()({},I,this.props.messages);return Object(v.createElement)("div",{className:"woocommerce-search-list ".concat(r)},this.renderSelectedSection(),Object(v.createElement)("div",{className:"woocommerce-search-list__search"},Object(v.createElement)(O.TextControl,{label:s.search,type:"search",value:n,onChange:function(e){return o({search:e})}})),this.renderListSection())}}]),t}(v.Component);R.propTypes={className:C.a.string,isHierarchical:C.a.bool,isLoading:C.a.bool,isSingle:C.a.bool,list:C.a.arrayOf(C.a.shape({id:C.a.number,name:C.a.string})),messages:C.a.shape({clear:C.a.string,list:C.a.string,noItems:C.a.string,noResults:C.a.string,search:C.a.string,selected:C.a.func,updated:C.a.string}),onChange:C.a.func.isRequired,renderItem:C.a.func,selected:C.a.array.isRequired,search:C.a.string,setState:C.a.func,debouncedSpeak:C.a.func,instanceId:C.a.number};t.a=Object(_.compose)([Object(_.withState)({search:""}),O.withSpokenMessages,_.withInstanceId])(R)},38:function(e,t,r){"use strict";function n(e,t){var r=e.categories,n=e.catOperator,c=e.columns,o=e.orderby,s=e.products,a={status:"publish",per_page:e.rows*c};switch(r&&r.length&&(a.category=r.join(","),n&&"all"===n&&(a.cat_operator="AND")),o&&("price_desc"===o?(a.orderby="price",a.order="desc"):"price_asc"===o?(a.orderby="price",a.order="asc"):"title"===o?(a.orderby="title",a.order="asc"):"menu_order"===o?(a.orderby="menu_order",a.order="asc"):a.orderby=o),t){case"woocommerce/product-best-sellers":a.orderby="popularity";break;case"woocommerce/product-top-rated":a.orderby="rating";break;case"woocommerce/product-on-sale":a.on_sale=1;break;case"woocommerce/product-new":a.orderby="date";break;case"woocommerce/handpicked-products":a.include=s,a.per_page=s.length}return a}r.d(t,"a",function(){return n})},39:function(e,t,r){"use strict";var n=r(0),c=r(2),o=r(1),s=r.n(o),a=(r(187),function(e){var t=e.product,r=null;return t.images.length&&(r=Object(n.createElement)("img",{src:t.images[0].src,alt:""})),Object(n.createElement)("div",{className:"wc-product-preview"},r,Object(n.createElement)("div",{className:"wc-product-preview__title"},t.name),Object(n.createElement)("div",{className:"wc-product-preview__price",dangerouslySetInnerHTML:{__html:t.price_html}}),Object(n.createElement)("span",{className:"wp-block-button"},Object(n.createElement)("span",{className:"wc-product-preview__add-to-cart wp-block-button__link"},Object(c.__)("Add to cart","woo-gutenberg-products-block"))))});a.propTypes={product:s.a.shape({id:s.a.number,images:s.a.array,name:s.a.string,price_html:s.a.string}).isRequired},t.a=a},4:function(e,t){!function(){e.exports=this.lodash}()},40:function(e,t,r){"use strict";r.d(t,"a",function(){return o});var n=r(171),c=r.n(n);function o(e,t){var r=e.attributes,n=r.categories,o=r.catOperator,s=r.columns,a=r.orderby,i=r.products,l=r.rows,u=new Map;switch(u.set("limit",l*s),u.set("columns",s),n&&n.length&&(u.set("category",n.join(",")),o&&"all"===o&&u.set("cat_operator","AND")),a&&("price_desc"===a?(u.set("orderby","price"),u.set("order","DESC")):"price_asc"===a?(u.set("orderby","price"),u.set("order","ASC")):"date"===a?(u.set("orderby","date"),u.set("order","DESC")):u.set("orderby",a)),t){case"woocommerce/product-best-sellers":u.set("best_selling","1");break;case"woocommerce/product-top-rated":u.set("orderby","rating");break;case"woocommerce/product-on-sale":u.set("on_sale","1");break;case"woocommerce/product-new":u.set("orderby","date"),u.set("order","DESC");break;case"woocommerce/handpicked-products":if(!i.length)return"";u.set("ids",i.join(",")),u.set("limit",i.length);break;case"woocommerce/product-category":if(!n||!n.length)return""}var d="[products",p=!0,m=!1,b=void 0;try{for(var h,j=u[Symbol.iterator]();!(p=(h=j.next()).done);p=!0){var g=c()(h.value,2);d+=" "+g[0]+'="'+g[1]+'"'}}catch(e){m=!0,b=e}finally{try{p||null==j.return||j.return()}finally{if(m)throw b}}return d+="]"}},44:function(e,t,r){"use strict";var n=r(27),c=r.n(n),o=r(8),s=r.n(o),a=r(9),i=r.n(a),l=r(10),u=r.n(l),d=r(11),p=r.n(d),m=r(12),b=r.n(m),h=r(5),j=r.n(h),g=r(0),f=r(2),v=r(23),w=r(16),O=r.n(w),_=r(4),y=r(1),k=r.n(y),E=r(3),S=(r(200),r(32)),C=r(24),x=function(e){function t(){var e;return s()(this,t),(e=u()(this,p()(t).apply(this,arguments))).state={list:[],loading:!0},e.renderItem=e.renderItem.bind(j()(j()(e))),e}return b()(t,e),i()(t,[{key:"componentDidMount",value:function(){var e=this;O()({path:Object(v.addQueryArgs)("/wc-pb/v3/products/categories",{per_page:-1})}).then(function(t){e.setState({list:t,loading:!1})}).catch(function(){e.setState({list:[],loading:!1})})}},{key:"renderItem",value:function(e){var t=e.item,r=e.search,n=e.depth,o=void 0===n?0:n,s=["woocommerce-product-categories__item"];r.length&&s.push("is-searching"),0===o&&0!==t.parent&&s.push("is-skip-level");var a=t.breadcrumbs.length?"".concat(t.breadcrumbs.join(", "),", ").concat(t.name):t.name;return Object(g.createElement)(C.a,c()({className:s.join(" ")},e,{showCount:!0,"aria-label":Object(f.sprintf)(Object(f._n)("%s, has %d product","%s, has %d products",t.count,"woo-gutenberg-products-block"),a,t.count)}))}},{key:"render",value:function(){var e=this.state,t=e.list,r=e.loading,n=this.props,c=n.onChange,o=n.onOperatorChange,s=n.operator,a=void 0===s?"any":s,i=n.selected,l={clear:Object(f.__)("Clear all product categories","woo-gutenberg-products-block"),list:Object(f.__)("Product Categories","woo-gutenberg-products-block"),noItems:Object(f.__)("Your store doesn't have any product categories.","woo-gutenberg-products-block"),search:Object(f.__)("Search for product categories","woo-gutenberg-products-block"),selected:function(e){return Object(f.sprintf)(Object(f._n)("%d category selected","%d categories selected",e,"woo-gutenberg-products-block"),e)},updated:Object(f.__)("Category search results updated.","woo-gutenberg-products-block")};return Object(g.createElement)(g.Fragment,null,Object(g.createElement)(S.a,{className:"woocommerce-product-categories",list:t,isLoading:r,selected:i.map(function(e){return Object(_.find)(t,{id:e})}).filter(Boolean),onChange:c,renderItem:this.renderItem,messages:l,isHierarchical:!0}),!!o&&Object(g.createElement)("div",{className:i.length<2?"screen-reader-text":""},Object(g.createElement)(E.SelectControl,{className:"woocommerce-product-categories__operator",label:Object(f.__)("Display products matching","woo-gutenberg-products-block"),help:Object(f.__)("Pick at least two categories to use this setting.","woo-gutenberg-products-block"),value:a,onChange:o,options:[{label:Object(f.__)("Any selected categories","woo-gutenberg-products-block"),value:"any"},{label:Object(f.__)("All selected categories","woo-gutenberg-products-block"),value:"all"}]})))}}]),t}(g.Component);x.propTypes={onChange:k.a.func.isRequired,onOperatorChange:k.a.func,operator:k.a.oneOf(["all","any"]),selected:k.a.array.isRequired},t.a=x},873:function(e,t,r){"use strict";r.r(t);var n=r(13),c=r.n(n),o=r(0),s=r(2),a=r(31),i=r(8),l=r.n(i),u=r(9),d=r.n(u),p=r(10),m=r.n(p),b=r(11),h=r.n(b),j=r(12),g=r.n(j),f=r(5),v=r.n(f),w=r(23),O=r(16),_=r.n(O),y=r(25),k=r(4),E=r(3),S=r(1),C=r.n(S),x=r(38),N=r(17),z=r(44),I=r(39),R=function(e){function t(){var e;return l()(this,t),(e=m()(this,h()(t).apply(this,arguments))).state={products:[],loaded:!1},e.debouncedGetProducts=Object(k.debounce)(e.getProducts.bind(v()(v()(e))),200),e}return g()(t,e),d()(t,[{key:"componentDidMount",value:function(){this.props.attributes.categories&&this.getProducts()}},{key:"componentDidUpdate",value:function(e){var t=this;["rows","columns","categories","catOperator"].reduce(function(r,n){return r||e.attributes[n]!==t.props.attributes[n]},!1)&&this.debouncedGetProducts()}},{key:"getProducts",value:function(){var e=this;_()({path:Object(w.addQueryArgs)("/wc-pb/v3/products",Object(x.a)(this.props.attributes,this.props.name))}).then(function(t){e.setState({products:t,loaded:!0})}).catch(function(){e.setState({products:[],loaded:!0})})}},{key:"getInspectorControls",value:function(){var e=this.props,t=e.attributes,r=e.setAttributes,n=t.categories,c=t.catOperator,a=t.columns,i=t.rows;return Object(o.createElement)(y.InspectorControls,{key:"inspector"},Object(o.createElement)(E.PanelBody,{title:Object(s.__)("Layout","woo-gutenberg-products-block"),initialOpen:!0},Object(o.createElement)(E.RangeControl,{label:Object(s.__)("Columns","woo-gutenberg-products-block"),value:a,onChange:function(e){return r({columns:e})},min:wc_product_block_data.min_columns,max:wc_product_block_data.max_columns}),Object(o.createElement)(E.RangeControl,{label:Object(s.__)("Rows","woo-gutenberg-products-block"),value:i,onChange:function(e){return r({rows:e})},min:wc_product_block_data.min_rows,max:wc_product_block_data.max_rows})),Object(o.createElement)(E.PanelBody,{title:Object(s.__)("Filter by Product Category","woo-gutenberg-products-block"),initialOpen:!1},Object(o.createElement)(z.a,{selected:n,onChange:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(function(e){return e.id});r({categories:e})},operator:c,onOperatorChange:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"any";return r({catOperator:e})}})))}},{key:"render",value:function(){var e=this.props.attributes.columns,t=this.state,r=t.loaded,n=t.products,c=["wc-block-products-grid","wc-block-newest-products"];return e&&c.push("cols-".concat(e)),n&&!n.length&&(r?c.push("is-not-found"):c.push("is-loading")),Object(o.createElement)(o.Fragment,null,this.getInspectorControls(),Object(o.createElement)("div",{className:c.join(" ")},n.length?n.map(function(e){return Object(o.createElement)(I.a,{product:e,key:e.id})}):Object(o.createElement)(E.Placeholder,{icon:Object(o.createElement)(N.c,null),label:Object(s.__)("Newest Products","woo-gutenberg-products-block")},r?Object(s.__)("No products found.","woo-gutenberg-products-block"):Object(o.createElement)(E.Spinner,null))))}}]),t}(o.Component);R.propTypes={attributes:C.a.object.isRequired,name:C.a.string.isRequired,setAttributes:C.a.func.isRequired};var L=R,M=r(40),P=r(170);Object(a.registerBlockType)("woocommerce/product-new",{title:Object(s.__)("Newest Products","woo-gutenberg-products-block"),icon:Object(o.createElement)(N.c,null),category:"woocommerce",keywords:[Object(s.__)("WooCommerce","woo-gutenberg-products-block")],description:Object(s.__)("Display a grid of your newest products.","woo-gutenberg-products-block"),supports:{align:["wide","full"]},attributes:c()({},P.a),edit:function(e){return Object(o.createElement)(L,e)},save:function(e){var t=e.attributes.align;return Object(o.createElement)(o.RawHTML,{className:t?"align".concat(t):""},Object(M.a)(e,"woocommerce/product-new"))}})}}));
build/product-on-sale.css ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ .woocommerce-product-categories__operator .components-base-control__help{clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;width:1px;margin:-1px;overflow:hidden;overflow-wrap:normal!important;word-wrap:normal!important}.components-panel .woocommerce-product-categories__operator.components-base-control{margin-top:16px}.components-panel .woocommerce-product-categories__operator.components-base-control .components-select-control__input{margin-left:0;min-width:100%}
2
+ @charset "UTF-8";.woocommerce-search-list{width:100%;padding:0 0 16px;text-align:left}.woocommerce-search-list__selected{margin:16px 0;padding:16px 0 0;min-height:76px;border-top:1px solid #e2e4e7}.woocommerce-search-list__selected .woocommerce-search-list__selected-header{margin-bottom:8px}.woocommerce-search-list__selected .woocommerce-search-list__selected-header button{margin-left:12px}.woocommerce-search-list__selected .woocommerce-tag__text{max-width:13em}.woocommerce-search-list__search{margin:16px 0;padding:16px 0 0;border-top:1px solid #e2e4e7}.woocommerce-search-list__search .components-base-control__field{margin-bottom:16px}.woocommerce-search-list__list{padding:0;max-height:17em;overflow-x:hidden;overflow-y:auto;border-top:1px solid #e2e4e7;border-bottom:1px solid #e2e4e7}.woocommerce-search-list__list.is-loading,.woocommerce-search-list__list.is-not-found{padding:12px 0;text-align:center;border:none}.woocommerce-search-list__list.is-not-found .woocommerce-search-list__not-found-icon,.woocommerce-search-list__list.is-not-found .woocommerce-search-list__not-found-text{display:inline-block}.woocommerce-search-list__list.is-not-found .woocommerce-search-list__not-found-icon{margin-right:16px}.woocommerce-search-list__list.is-not-found .woocommerce-search-list__not-found-icon .gridicon{vertical-align:top;margin-top:-1px}.woocommerce-search-list__list .components-spinner{float:none}.woocommerce-search-list__list .components-menu-group__label{clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;width:1px;margin:-1px;overflow:hidden;overflow-wrap:normal!important;word-wrap:normal!important}.woocommerce-search-list__list>[role=menu]{border:1px solid #e2e4e7;border-bottom:none}.woocommerce-search-list__list .woocommerce-search-list__item{display:flex;align-items:center;margin-bottom:0;padding:12px 16px;background:#fff;border-bottom:1px solid #e2e4e7!important;color:#555d66}.woocommerce-search-list__list .woocommerce-search-list__item:active,.woocommerce-search-list__list .woocommerce-search-list__item:focus,.woocommerce-search-list__list .woocommerce-search-list__item:hover{background:#f8f9f9}.woocommerce-search-list__list .woocommerce-search-list__item:last-child{border-bottom:none!important}.woocommerce-search-list__list .woocommerce-search-list__item .woocommerce-search-list__item-state{flex:0 0 16px;margin-right:8px;height:24px}.woocommerce-search-list__list .woocommerce-search-list__item .woocommerce-search-list__item-label{display:flex;flex:1}.woocommerce-search-list__list .woocommerce-search-list__item[class*=depth-] .woocommerce-search-list__item-label:before{margin-right:4px;content:"— — — — — "}.woocommerce-search-list__list .woocommerce-search-list__item.depth-0 .woocommerce-search-list__item-label:before{margin-right:0;content:""}.woocommerce-search-list__list .woocommerce-search-list__item.depth-1 .woocommerce-search-list__item-label:before{content:"— "}.woocommerce-search-list__list .woocommerce-search-list__item.depth-2 .woocommerce-search-list__item-label:before{content:"— — "}.woocommerce-search-list__list .woocommerce-search-list__item.depth-3 .woocommerce-search-list__item-label:before{content:"— — — "}.woocommerce-search-list__list .woocommerce-search-list__item.depth-4 .woocommerce-search-list__item-label:before{content:"— — — — "}.woocommerce-search-list__list .woocommerce-search-list__item .woocommerce-search-list__item-name{display:inline-block}.woocommerce-search-list__list .woocommerce-search-list__item .woocommerce-search-list__item-prefix{display:none;color:#6c7781}.woocommerce-search-list__list .woocommerce-search-list__item.is-searching .woocommerce-search-list__item-label,.woocommerce-search-list__list .woocommerce-search-list__item.is-skip-level .woocommerce-search-list__item-label{display:inline-block}.woocommerce-search-list__list .woocommerce-search-list__item.is-searching .woocommerce-search-list__item-prefix,.woocommerce-search-list__list .woocommerce-search-list__item.is-skip-level .woocommerce-search-list__item-prefix{display:inline}.woocommerce-search-list__list .woocommerce-search-list__item.is-searching .woocommerce-search-list__item-prefix:after,.woocommerce-search-list__list .woocommerce-search-list__item.is-skip-level .woocommerce-search-list__item-prefix:after{margin-right:4px;content:" ›"}.woocommerce-search-list__list .woocommerce-search-list__item.is-searching .woocommerce-search-list__item-name{color:#191e23}.woocommerce-search-list__list .woocommerce-search-list__item .woocommerce-search-list__item-count{flex:0;padding:2px 8px;border:1px solid #e2e4e7;border-radius:12px;font-size:.8em;line-height:1.4;color:#6c7781;background:#fff}.components-panel .woocommerce-search-list{padding:0}.components-panel .woocommerce-search-list__selected{margin:0 0 16px;padding:0;border-top:none;min-height:54px}.components-panel .woocommerce-search-list__search{margin:0 0 16px;padding:0;border-top:none}
3
+ .wc-product-preview{text-align:center;margin-bottom:16px}.wc-product-preview .wc-product-preview__price,.wc-product-preview .wc-product-preview__title{margin-top:4px}.wc-product-preview .wp-block-button{margin-bottom:0}.wc-product-preview .wc-product-preview__add-to-cart{cursor:text;margin:12px 0 0}.cols-4 .wc-product-preview .wc-product-preview__title,.cols-5 .wc-product-preview .wc-product-preview__title,.cols-6 .wc-product-preview .wc-product-preview__title{font-size:.9em;line-height:1.2}.cols-4 .wc-product-preview .wc-product-preview__price,.cols-5 .wc-product-preview .wc-product-preview__price,.cols-6 .wc-product-preview .wc-product-preview__price{font-size:.8em}.cols-4 .wc-product-preview .wc-product-preview__add-to-cart,.cols-5 .wc-product-preview .wc-product-preview__add-to-cart,.cols-6 .wc-product-preview .wc-product-preview__add-to-cart{font-size:.7em!important;line-height:1.4!important}.editor-block-preview .wc-product-preview .wc-product-preview__title{font-size:.7em;line-height:1.2}.editor-block-preview .wc-product-preview .wc-product-preview__price{font-size:.6em}.editor-block-preview .wc-product-preview .wc-product-preview__add-to-cart{font-size:.6em!important}
build/product-on-sale.js ADDED
@@ -0,0 +1 @@
 
1
+ !function(e,t){for(var r in t)e[r]=t[r]}(this,function(e){function t(t){for(var n,s,a=t[0],i=t[1],l=t[2],d=0,p=[];d<a.length;d++)s=a[d],o[s]&&p.push(o[s][0]),o[s]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(u&&u(t);p.length;)p.shift()();return c.push.apply(c,l||[]),r()}function r(){for(var e,t=0;t<c.length;t++){for(var r=c[t],n=!0,a=1;a<r.length;a++){var i=r[a];0!==o[i]&&(n=!1)}n&&(c.splice(t--,1),e=s(s.s=r[0]))}return e}var n={},o={6:0},c=[];function s(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,s),r.l=!0,r.exports}s.m=e,s.c=n,s.d=function(e,t,r){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(e,t){if(1&t&&(e=s(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(s.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)s.d(r,n,function(t){return e[t]}.bind(null,n));return r},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="";var a=window.webpackJsonp=window.webpackJsonp||[],i=a.push.bind(a);a.push=t,a=a.slice();for(var l=0;l<a.length;l++)t(a[l]);var u=i;return c.push([876,0]),r()}({0:function(e,t){!function(){e.exports=this.wp.element}()},14:function(e,t){!function(){e.exports=this.wp.compose}()},16:function(e,t){!function(){e.exports=this.wp.apiFetch}()},17:function(e,t,r){"use strict";var n=r(0),o=r(3),c=function(){return Object(n.createElement)(o.Icon,{icon:Object(n.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(n.createElement)("path",{fill:"#1E8CBE",d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}))})},s=function(){return Object(n.createElement)(o.Icon,{icon:Object(n.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(n.createElement)("path",{fill:"#6C7781",d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}))})},a=function(){return Object(n.createElement)(o.Icon,{icon:Object(n.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(n.createElement)("path",{d:"M0 0h24v24H0z",fill:"none"}),Object(n.createElement)("path",{d:"M23 12l-2.44-2.78.34-3.68-3.61-.82-1.89-3.18L12 3 8.6 1.54 6.71 4.72l-3.61.81.34 3.68L1 12l2.44 2.78-.34 3.69 3.61.82 1.89 3.18L12 21l3.4 1.46 1.89-3.18 3.61-.82-.34-3.68L23 12zm-10 5h-2v-2h2v2zm0-4h-2V7h2v6z"}))})},i=function(){return Object(n.createElement)(o.Icon,{icon:Object(n.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(n.createElement)("path",{fill:"#1E8CBE",d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}))})},l=function(){return Object(n.createElement)(o.Icon,{icon:Object(n.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(n.createElement)("path",{fill:"#6C7781",d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}))})},u=function(){return Object(n.createElement)(o.Icon,{icon:Object(n.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(n.createElement)("path",{d:"M13 13v8h8v-8h-8zM3 21h8v-8H3v8zM3 3v8h8V3H3zm13.66-1.31L11 7.34 16.66 13l5.66-5.66-5.66-5.65z"}),Object(n.createElement)("path",{d:"M0 0h24v24H0z",fill:"none"}))})};r.d(t,"a",function(){return c}),r.d(t,"b",function(){return s}),r.d(t,"c",function(){return a}),r.d(t,"d",function(){return i}),r.d(t,"e",function(){return l}),r.d(t,"f",function(){return u})},170:function(e,t,r){"use strict";t.a={columns:{type:"number",default:wc_product_block_data.default_columns},rows:{type:"number",default:wc_product_block_data.default_rows},categories:{type:"array",default:[]},catOperator:{type:"string",default:"any"},attributes:{type:"array",default:[]}}},177:function(e,t,r){var n=r(178);"string"==typeof n&&(n=[[e.i,n,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};r(28)(n,o);n.locals&&(e.exports=n.locals)},178:function(e,t,r){},181:function(e,t){!function(){e.exports=this.wp.data}()},187:function(e,t,r){var n=r(188);"string"==typeof n&&(n=[[e.i,n,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};r(28)(n,o);n.locals&&(e.exports=n.locals)},188:function(e,t,r){},2:function(e,t){!function(){e.exports=this.wp.i18n}()},200:function(e,t,r){var n=r(201);"string"==typeof n&&(n=[[e.i,n,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};r(28)(n,o);n.locals&&(e.exports=n.locals)},201:function(e,t,r){},212:function(e,t,r){"use strict";var n=r(0),o=r(2),c=r(3),s=r(1),a=r.n(s),i=function(e){var t=e.value,r=e.setAttributes;return Object(n.createElement)(c.SelectControl,{label:Object(o.__)("Order products by","woo-gutenberg-products-block"),value:t,options:[{label:Object(o.__)("Newness - newest first","woo-gutenberg-products-block"),value:"date"},{label:Object(o.__)("Price - low to high","woo-gutenberg-products-block"),value:"price_asc"},{label:Object(o.__)("Price - high to low","woo-gutenberg-products-block"),value:"price_desc"},{label:Object(o.__)("Rating - highest first","woo-gutenberg-products-block"),value:"rating"},{label:Object(o.__)("Sales - most first","woo-gutenberg-products-block"),value:"popularity"},{label:Object(o.__)("Title - alphabetical","woo-gutenberg-products-block"),value:"title"},{label:Object(o.__)("Menu Order","woo-gutenberg-products-block"),value:"menu_order"}],onChange:function(e){return r({orderby:e})}})};i.propTypes={setAttributes:a.a.func.isRequired,value:a.a.string.isRequired},t.a=i},220:function(e,t,r){var n={"./af":46,"./af.js":46,"./ar":47,"./ar-dz":48,"./ar-dz.js":48,"./ar-kw":49,"./ar-kw.js":49,"./ar-ly":50,"./ar-ly.js":50,"./ar-ma":51,"./ar-ma.js":51,"./ar-sa":52,"./ar-sa.js":52,"./ar-tn":53,"./ar-tn.js":53,"./ar.js":47,"./az":54,"./az.js":54,"./be":55,"./be.js":55,"./bg":56,"./bg.js":56,"./bm":57,"./bm.js":57,"./bn":58,"./bn.js":58,"./bo":59,"./bo.js":59,"./br":60,"./br.js":60,"./bs":61,"./bs.js":61,"./ca":62,"./ca.js":62,"./cs":63,"./cs.js":63,"./cv":64,"./cv.js":64,"./cy":65,"./cy.js":65,"./da":66,"./da.js":66,"./de":67,"./de-at":68,"./de-at.js":68,"./de-ch":69,"./de-ch.js":69,"./de.js":67,"./dv":70,"./dv.js":70,"./el":71,"./el.js":71,"./en-au":72,"./en-au.js":72,"./en-ca":73,"./en-ca.js":73,"./en-gb":74,"./en-gb.js":74,"./en-ie":75,"./en-ie.js":75,"./en-il":76,"./en-il.js":76,"./en-nz":77,"./en-nz.js":77,"./eo":78,"./eo.js":78,"./es":79,"./es-do":80,"./es-do.js":80,"./es-us":81,"./es-us.js":81,"./es.js":79,"./et":82,"./et.js":82,"./eu":83,"./eu.js":83,"./fa":84,"./fa.js":84,"./fi":85,"./fi.js":85,"./fo":86,"./fo.js":86,"./fr":87,"./fr-ca":88,"./fr-ca.js":88,"./fr-ch":89,"./fr-ch.js":89,"./fr.js":87,"./fy":90,"./fy.js":90,"./gd":91,"./gd.js":91,"./gl":92,"./gl.js":92,"./gom-latn":93,"./gom-latn.js":93,"./gu":94,"./gu.js":94,"./he":95,"./he.js":95,"./hi":96,"./hi.js":96,"./hr":97,"./hr.js":97,"./hu":98,"./hu.js":98,"./hy-am":99,"./hy-am.js":99,"./id":100,"./id.js":100,"./is":101,"./is.js":101,"./it":102,"./it.js":102,"./ja":103,"./ja.js":103,"./jv":104,"./jv.js":104,"./ka":105,"./ka.js":105,"./kk":106,"./kk.js":106,"./km":107,"./km.js":107,"./kn":108,"./kn.js":108,"./ko":109,"./ko.js":109,"./ky":110,"./ky.js":110,"./lb":111,"./lb.js":111,"./lo":112,"./lo.js":112,"./lt":113,"./lt.js":113,"./lv":114,"./lv.js":114,"./me":115,"./me.js":115,"./mi":116,"./mi.js":116,"./mk":117,"./mk.js":117,"./ml":118,"./ml.js":118,"./mn":119,"./mn.js":119,"./mr":120,"./mr.js":120,"./ms":121,"./ms-my":122,"./ms-my.js":122,"./ms.js":121,"./mt":123,"./mt.js":123,"./my":124,"./my.js":124,"./nb":125,"./nb.js":125,"./ne":126,"./ne.js":126,"./nl":127,"./nl-be":128,"./nl-be.js":128,"./nl.js":127,"./nn":129,"./nn.js":129,"./pa-in":130,"./pa-in.js":130,"./pl":131,"./pl.js":131,"./pt":132,"./pt-br":133,"./pt-br.js":133,"./pt.js":132,"./ro":134,"./ro.js":134,"./ru":135,"./ru.js":135,"./sd":136,"./sd.js":136,"./se":137,"./se.js":137,"./si":138,"./si.js":138,"./sk":139,"./sk.js":139,"./sl":140,"./sl.js":140,"./sq":141,"./sq.js":141,"./sr":142,"./sr-cyrl":143,"./sr-cyrl.js":143,"./sr.js":142,"./ss":144,"./ss.js":144,"./sv":145,"./sv.js":145,"./sw":146,"./sw.js":146,"./ta":147,"./ta.js":147,"./te":148,"./te.js":148,"./tet":149,"./tet.js":149,"./tg":150,"./tg.js":150,"./th":151,"./th.js":151,"./tl-ph":152,"./tl-ph.js":152,"./tlh":153,"./tlh.js":153,"./tr":154,"./tr.js":154,"./tzl":155,"./tzl.js":155,"./tzm":156,"./tzm-latn":157,"./tzm-latn.js":157,"./tzm.js":156,"./ug-cn":158,"./ug-cn.js":158,"./uk":159,"./uk.js":159,"./ur":160,"./ur.js":160,"./uz":161,"./uz-latn":162,"./uz-latn.js":162,"./uz.js":161,"./vi":163,"./vi.js":163,"./x-pseudo":164,"./x-pseudo.js":164,"./yo":165,"./yo.js":165,"./zh-cn":166,"./zh-cn.js":166,"./zh-hk":167,"./zh-hk.js":167,"./zh-tw":168,"./zh-tw.js":168};function o(e){var t=c(e);return r(t)}function c(e){var t=n[e];if(!(t+1)){var r=new Error("Cannot find module '"+e+"'");throw r.code="MODULE_NOT_FOUND",r}return t}o.keys=function(){return Object.keys(n)},o.resolve=c,e.exports=o,o.id=220},223:function(e,t){},224:function(e,t){},226:function(e,t){},227:function(e,t){},23:function(e,t){!function(){e.exports=this.wp.url}()},24:function(e,t,r){"use strict";var n=r(27),o=r.n(n),c=r(172),s=r.n(c),a=r(0),i=r(4),l=r(3),u=r(1),d=r.n(u),p=r(17);function b(e,t){if(!t)return e;var r=new RegExp(Object(i.escapeRegExp)(t),"ig");return e.replace(r,"<strong>$&</strong>")}var m=function(e){var t=e.className,r=e.depth,n=void 0===r?0:r,c=e.item,u=e.isSelected,d=e.isSingle,m=e.onSelect,h=e.search,g=void 0===h?"":h,j=e.showCount,f=void 0!==j&&j,v=s()(e,["className","depth","item","isSelected","isSingle","onSelect","search","showCount"]),w=[t,"woocommerce-search-list__item"];w.push("depth-".concat(n)),d&&w.push("is-radio-button");var O,_=c.breadcrumbs&&c.breadcrumbs.length;return Object(a.createElement)(l.MenuItem,o()({role:"menuitemcheckbox",className:w.join(" "),onClick:m(c),isSelected:u},v),Object(a.createElement)("span",{className:"woocommerce-search-list__item-state"},function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?t?Object(a.createElement)(p.d,null):Object(a.createElement)(p.e,null):t?Object(a.createElement)(p.a,null):Object(a.createElement)(p.b,null)}(d,u)),Object(a.createElement)("span",{className:"woocommerce-search-list__item-label"},_?Object(a.createElement)("span",{className:"woocommerce-search-list__item-prefix"},1===(O=c.breadcrumbs).length?Object(i.first)(O):2===O.length?Object(i.first)(O)+" › "+Object(i.last)(O):Object(i.first)(O)+" … "+Object(i.last)(O)):null,Object(a.createElement)("span",{className:"woocommerce-search-list__item-name",dangerouslySetInnerHTML:{__html:b(c.name,g)}})),!!f&&Object(a.createElement)("span",{className:"woocommerce-search-list__item-count"},c.count))};m.propTypes={className:d.a.string,depth:d.a.number,item:d.a.object,isSelected:d.a.bool,isSingle:d.a.bool,onSelect:d.a.func,search:d.a.string,showCount:d.a.bool},t.a=m},25:function(e,t){!function(){e.exports=this.wp.editor}()},3:function(e,t){!function(){e.exports=this.wp.components}()},31:function(e,t){!function(){e.exports=this.wp.blocks}()},32:function(e,t,r){"use strict";var n=r(13),o=r.n(n),c=r(15),s=r.n(c),a=r(8),i=r.n(a),l=r(9),u=r.n(l),d=r(10),p=r.n(d),b=r(11),m=r.n(b),h=r(12),g=r.n(h),j=r(5),f=r.n(j),v=r(0),w=r(2),O=r(3),_=r(14),y=r(4),k=r(19),E=r.n(k),S=r(1),C=r.n(S),x=r(173);r(177);function z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=Object(y.groupBy)(e,"parent"),n=Object(y.keyBy)(t,"id"),c=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!t.parent)return t.name?[t.name]:[];var r=e(n[t.parent]);return[].concat(s()(r),[t.name])},a=function e(t){return t.map(function(t){var s=r[t.id];return delete r[t.id],o()({},t,{breadcrumbs:c(n[t.parent]),children:s&&s.length?e(s):[]})})},i=a(r[0]||[]);return delete r[0],Object(y.forEach)(r,function(e){i.push.apply(i,s()(a(e||[])))}),i}var N=r(24),I={clear:Object(w.__)("Clear all selected items","woo-gutenberg-products-block"),list:Object(w.__)("Results","woo-gutenberg-products-block"),noItems:Object(w.__)("No items found.","woo-gutenberg-products-block"),noResults:Object(w.__)("No results for %s","woo-gutenberg-products-block"),search:Object(w.__)("Search for items","woo-gutenberg-products-block"),selected:function(e){return Object(w.sprintf)(Object(w._n)("%d item selected","%d items selected",e,"woo-gutenberg-products-block"),e)},updated:Object(w.__)("Search results updated.","woo-gutenberg-products-block")},R=function(e){function t(){var e;return i()(this,t),(e=p()(this,m()(t).apply(this,arguments))).onSelect=e.onSelect.bind(f()(f()(e))),e.onRemove=e.onRemove.bind(f()(f()(e))),e.onClear=e.onClear.bind(f()(f()(e))),e.isSelected=e.isSelected.bind(f()(f()(e))),e.defaultRenderItem=e.defaultRenderItem.bind(f()(f()(e))),e.renderList=e.renderList.bind(f()(f()(e))),e}return g()(t,e),u()(t,[{key:"onRemove",value:function(e){var t=this.props,r=t.isSingle,n=t.onChange,o=t.selected;return function(){r&&n([]);var t=Object(y.findIndex)(o,{id:e});n([].concat(s()(o.slice(0,t)),s()(o.slice(t+1))))}}},{key:"onSelect",value:function(e){var t=this,r=this.props,n=r.isSingle,o=r.onChange,c=r.selected;return function(){t.isSelected(e)?t.onRemove(e.id)():o(n?[e]:[].concat(s()(c),[e]))}}},{key:"onClear",value:function(){this.props.onChange([])}},{key:"isSelected",value:function(e){return-1!==Object(y.findIndex)(this.props.selected,{id:e.id})}},{key:"getFilteredList",value:function(e,t){var r=this.props.isHierarchical;if(!t)return r?z(e):e;var n=o()({},I,this.props.messages),c=new RegExp(Object(y.escapeRegExp)(t),"i");this.props.debouncedSpeak(n.updated);var s=e.map(function(e){return!!c.test(e.name)&&e}).filter(Boolean);return r?z(s,e):s}},{key:"defaultRenderItem",value:function(e){return Object(v.createElement)(N.a,e)}},{key:"renderList",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.props,o=n.isSingle,c=n.search,s=this.props.renderItem||this.defaultRenderItem;return e?e.map(function(e){return Object(v.createElement)(v.Fragment,{key:e.id},s({item:e,isSelected:t.isSelected(e),onSelect:t.onSelect,isSingle:o,search:c,depth:r}),t.renderList(e.children,r+1))}):null}},{key:"renderListSection",value:function(){var e=this.props,t=e.isLoading,r=e.search,n=this.getFilteredList(this.props.list,r),c=o()({},I,this.props.messages);return t?Object(v.createElement)("div",{className:"woocommerce-search-list__list is-loading"},Object(v.createElement)(O.Spinner,null)):n.length?Object(v.createElement)(O.MenuGroup,{label:c.list,className:"woocommerce-search-list__list"},this.renderList(n)):Object(v.createElement)("div",{className:"woocommerce-search-list__list is-not-found"},Object(v.createElement)("span",{className:"woocommerce-search-list__not-found-icon"},Object(v.createElement)(E.a,{icon:"notice-outline",role:"img","aria-hidden":"true",focusable:"false"})),Object(v.createElement)("span",{className:"woocommerce-search-list__not-found-text"},r?Object(w.sprintf)(c.noResults,r):c.noItems))}},{key:"renderSelectedSection",value:function(){var e=this,t=this.props,r=t.isLoading,n=t.isSingle,c=t.selected,s=o()({},I,this.props.messages);if(r||n||!c)return null;var a=c.length;return Object(v.createElement)("div",{className:"woocommerce-search-list__selected"},Object(v.createElement)("div",{className:"woocommerce-search-list__selected-header"},Object(v.createElement)("strong",null,s.selected(a)),a>0?Object(v.createElement)(O.Button,{isLink:!0,isDestructive:!0,onClick:this.onClear,"aria-label":s.clear},Object(w.__)("Clear all","woo-gutenberg-products-block")):null),c.map(function(t,r){return Object(v.createElement)(x.a,{key:r,label:t.name,id:t.id,remove:e.onRemove})}))}},{key:"render",value:function(){var e=this.props,t=e.className,r=void 0===t?"":t,n=e.search,c=e.setState,s=o()({},I,this.props.messages);return Object(v.createElement)("div",{className:"woocommerce-search-list ".concat(r)},this.renderSelectedSection(),Object(v.createElement)("div",{className:"woocommerce-search-list__search"},Object(v.createElement)(O.TextControl,{label:s.search,type:"search",value:n,onChange:function(e){return c({search:e})}})),this.renderListSection())}}]),t}(v.Component);R.propTypes={className:C.a.string,isHierarchical:C.a.bool,isLoading:C.a.bool,isSingle:C.a.bool,list:C.a.arrayOf(C.a.shape({id:C.a.number,name:C.a.string})),messages:C.a.shape({clear:C.a.string,list:C.a.string,noItems:C.a.string,noResults:C.a.string,search:C.a.string,selected:C.a.func,updated:C.a.string}),onChange:C.a.func.isRequired,renderItem:C.a.func,selected:C.a.array.isRequired,search:C.a.string,setState:C.a.func,debouncedSpeak:C.a.func,instanceId:C.a.number};t.a=Object(_.compose)([Object(_.withState)({search:""}),O.withSpokenMessages,_.withInstanceId])(R)},38:function(e,t,r){"use strict";function n(e,t){var r=e.categories,n=e.catOperator,o=e.columns,c=e.orderby,s=e.products,a={status:"publish",per_page:e.rows*o};switch(r&&r.length&&(a.category=r.join(","),n&&"all"===n&&(a.cat_operator="AND")),c&&("price_desc"===c?(a.orderby="price",a.order="desc"):"price_asc"===c?(a.orderby="price",a.order="asc"):"title"===c?(a.orderby="title",a.order="asc"):"menu_order"===c?(a.orderby="menu_order",a.order="asc"):a.orderby=c),t){case"woocommerce/product-best-sellers":a.orderby="popularity";break;case"woocommerce/product-top-rated":a.orderby="rating";break;case"woocommerce/product-on-sale":a.on_sale=1;break;case"woocommerce/product-new":a.orderby="date";break;case"woocommerce/handpicked-products":a.include=s,a.per_page=s.length}return a}r.d(t,"a",function(){return n})},39:function(e,t,r){"use strict";var n=r(0),o=r(2),c=r(1),s=r.n(c),a=(r(187),function(e){var t=e.product,r=null;return t.images.length&&(r=Object(n.createElement)("img",{src:t.images[0].src,alt:""})),Object(n.createElement)("div",{className:"wc-product-preview"},r,Object(n.createElement)("div",{className:"wc-product-preview__title"},t.name),Object(n.createElement)("div",{className:"wc-product-preview__price",dangerouslySetInnerHTML:{__html:t.price_html}}),Object(n.createElement)("span",{className:"wp-block-button"},Object(n.createElement)("span",{className:"wc-product-preview__add-to-cart wp-block-button__link"},Object(o.__)("Add to cart","woo-gutenberg-products-block"))))});a.propTypes={product:s.a.shape({id:s.a.number,images:s.a.array,name:s.a.string,price_html:s.a.string}).isRequired},t.a=a},4:function(e,t){!function(){e.exports=this.lodash}()},40:function(e,t,r){"use strict";r.d(t,"a",function(){return c});var n=r(171),o=r.n(n);function c(e,t){var r=e.attributes,n=r.categories,c=r.catOperator,s=r.columns,a=r.orderby,i=r.products,l=r.rows,u=new Map;switch(u.set("limit",l*s),u.set("columns",s),n&&n.length&&(u.set("category",n.join(",")),c&&"all"===c&&u.set("cat_operator","AND")),a&&("price_desc"===a?(u.set("orderby","price"),u.set("order","DESC")):"price_asc"===a?(u.set("orderby","price"),u.set("order","ASC")):"date"===a?(u.set("orderby","date"),u.set("order","DESC")):u.set("orderby",a)),t){case"woocommerce/product-best-sellers":u.set("best_selling","1");break;case"woocommerce/product-top-rated":u.set("orderby","rating");break;case"woocommerce/product-on-sale":u.set("on_sale","1");break;case"woocommerce/product-new":u.set("orderby","date"),u.set("order","DESC");break;case"woocommerce/handpicked-products":if(!i.length)return"";u.set("ids",i.join(",")),u.set("limit",i.length);break;case"woocommerce/product-category":if(!n||!n.length)return""}var d="[products",p=!0,b=!1,m=void 0;try{for(var h,g=u[Symbol.iterator]();!(p=(h=g.next()).done);p=!0){var j=o()(h.value,2);d+=" "+j[0]+'="'+j[1]+'"'}}catch(e){b=!0,m=e}finally{try{p||null==g.return||g.return()}finally{if(b)throw m}}return d+="]"}},44:function(e,t,r){"use strict";var n=r(27),o=r.n(n),c=r(8),s=r.n(c),a=r(9),i=r.n(a),l=r(10),u=r.n(l),d=r(11),p=r.n(d),b=r(12),m=r.n(b),h=r(5),g=r.n(h),j=r(0),f=r(2),v=r(23),w=r(16),O=r.n(w),_=r(4),y=r(1),k=r.n(y),E=r(3),S=(r(200),r(32)),C=r(24),x=function(e){function t(){var e;return s()(this,t),(e=u()(this,p()(t).apply(this,arguments))).state={list:[],loading:!0},e.renderItem=e.renderItem.bind(g()(g()(e))),e}return m()(t,e),i()(t,[{key:"componentDidMount",value:function(){var e=this;O()({path:Object(v.addQueryArgs)("/wc-pb/v3/products/categories",{per_page:-1})}).then(function(t){e.setState({list:t,loading:!1})}).catch(function(){e.setState({list:[],loading:!1})})}},{key:"renderItem",value:function(e){var t=e.item,r=e.search,n=e.depth,c=void 0===n?0:n,s=["woocommerce-product-categories__item"];r.length&&s.push("is-searching"),0===c&&0!==t.parent&&s.push("is-skip-level");var a=t.breadcrumbs.length?"".concat(t.breadcrumbs.join(", "),", ").concat(t.name):t.name;return Object(j.createElement)(C.a,o()({className:s.join(" ")},e,{showCount:!0,"aria-label":Object(f.sprintf)(Object(f._n)("%s, has %d product","%s, has %d products",t.count,"woo-gutenberg-products-block"),a,t.count)}))}},{key:"render",value:function(){var e=this.state,t=e.list,r=e.loading,n=this.props,o=n.onChange,c=n.onOperatorChange,s=n.operator,a=void 0===s?"any":s,i=n.selected,l={clear:Object(f.__)("Clear all product categories","woo-gutenberg-products-block"),list:Object(f.__)("Product Categories","woo-gutenberg-products-block"),noItems:Object(f.__)("Your store doesn't have any product categories.","woo-gutenberg-products-block"),search:Object(f.__)("Search for product categories","woo-gutenberg-products-block"),selected:function(e){return Object(f.sprintf)(Object(f._n)("%d category selected","%d categories selected",e,"woo-gutenberg-products-block"),e)},updated:Object(f.__)("Category search results updated.","woo-gutenberg-products-block")};return Object(j.createElement)(j.Fragment,null,Object(j.createElement)(S.a,{className:"woocommerce-product-categories",list:t,isLoading:r,selected:i.map(function(e){return Object(_.find)(t,{id:e})}).filter(Boolean),onChange:o,renderItem:this.renderItem,messages:l,isHierarchical:!0}),!!c&&Object(j.createElement)("div",{className:i.length<2?"screen-reader-text":""},Object(j.createElement)(E.SelectControl,{className:"woocommerce-product-categories__operator",label:Object(f.__)("Display products matching","woo-gutenberg-products-block"),help:Object(f.__)("Pick at least two categories to use this setting.","woo-gutenberg-products-block"),value:a,onChange:c,options:[{label:Object(f.__)("Any selected categories","woo-gutenberg-products-block"),value:"any"},{label:Object(f.__)("All selected categories","woo-gutenberg-products-block"),value:"all"}]})))}}]),t}(j.Component);x.propTypes={onChange:k.a.func.isRequired,onOperatorChange:k.a.func,operator:k.a.oneOf(["all","any"]),selected:k.a.array.isRequired},t.a=x},876:function(e,t,r){"use strict";r.r(t);var n=r(13),o=r.n(n),c=r(0),s=r(2),a=r(19),i=r.n(a),l=r(31),u=r(8),d=r.n(u),p=r(9),b=r.n(p),m=r(10),h=r.n(m),g=r(11),j=r.n(g),f=r(12),v=r.n(f),w=r(5),O=r.n(w),_=r(23),y=r(16),k=r.n(y),E=r(25),S=r(4),C=r(3),x=r(1),z=r.n(x),N=r(38),I=r(44),R=r(212),L=r(39),M=function(e){function t(){var e;return d()(this,t),(e=h()(this,j()(t).apply(this,arguments))).state={products:[],loaded:!1},e.debouncedGetProducts=Object(S.debounce)(e.getProducts.bind(O()(O()(e))),200),e}return v()(t,e),b()(t,[{key:"componentDidMount",value:function(){this.getProducts()}},{key:"componentDidUpdate",value:function(e){var t=this;["categories","catOperator","columns","orderby","rows"].reduce(function(r,n){return r||e.attributes[n]!==t.props.attributes[n]},!1)&&this.debouncedGetProducts()}},{key:"getProducts",value:function(){var e=this;k()({path:Object(_.addQueryArgs)("/wc-pb/v3/products",Object(N.a)(this.props.attributes,this.props.name))}).then(function(t){e.setState({products:t,loaded:!0})}).catch(function(){e.setState({products:[],loaded:!0})})}},{key:"getInspectorControls",value:function(){var e=this.props,t=e.attributes,r=e.setAttributes,n=t.categories,o=t.catOperator,a=t.columns,i=t.rows,l=t.orderby;return Object(c.createElement)(E.InspectorControls,{key:"inspector"},Object(c.createElement)(C.PanelBody,{title:Object(s.__)("Layout","woo-gutenberg-products-block"),initialOpen:!0},Object(c.createElement)(C.RangeControl,{label:Object(s.__)("Columns","woo-gutenberg-products-block"),value:a,onChange:function(e){return r({columns:e})},min:wc_product_block_data.min_columns,max:wc_product_block_data.max_columns}),Object(c.createElement)(C.RangeControl,{label:Object(s.__)("Rows","woo-gutenberg-products-block"),value:i,onChange:function(e){return r({rows:e})},min:wc_product_block_data.min_rows,max:wc_product_block_data.max_rows})),Object(c.createElement)(C.PanelBody,{title:Object(s.__)("Order By","woo-gutenberg-products-block"),initialOpen:!1},Object(c.createElement)(R.a,{setAttributes:r,value:l})),Object(c.createElement)(C.PanelBody,{title:Object(s.__)("Filter by Product Category","woo-gutenberg-products-block"),initialOpen:!1},Object(c.createElement)(I.a,{selected:n,onChange:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(function(e){return e.id});r({categories:e})},operator:o,onOperatorChange:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"any";return r({catOperator:e})}})))}},{key:"render",value:function(){var e=this.props.attributes.columns,t=this.state,r=t.loaded,n=t.products,o=["wc-block-products-grid","wc-block-on-sale-products"];return e&&o.push("cols-".concat(e)),n&&!n.length&&(r?o.push("is-not-found"):o.push("is-loading")),Object(c.createElement)(c.Fragment,null,this.getInspectorControls(),Object(c.createElement)("div",{className:o.join(" ")},n.length?n.map(function(e){return Object(c.createElement)(L.a,{product:e,key:e.id})}):Object(c.createElement)(C.Placeholder,{icon:Object(c.createElement)(i.a,{icon:"tag"}),label:Object(s.__)("On Sale Products","woo-gutenberg-products-block")},r?Object(s.__)("No products found.","woo-gutenberg-products-block"):Object(c.createElement)(C.Spinner,null))))}}]),t}(c.Component);M.propTypes={attributes:z.a.object.isRequired,name:z.a.string.isRequired,setAttributes:z.a.func.isRequired};var P=M,B=r(40),T=r(170);Object(l.registerBlockType)("woocommerce/product-on-sale",{title:Object(s.__)("On Sale Products","woo-gutenberg-products-block"),icon:Object(c.createElement)(i.a,{icon:"tag"}),category:"woocommerce",keywords:[Object(s.__)("WooCommerce","woo-gutenberg-products-block")],description:Object(s.__)("Display a grid of on sale products.","woo-gutenberg-products-block"),supports:{align:["wide","full"]},attributes:o()({},T.a,{orderby:{type:"string",default:"date"}}),edit:function(e){return Object(c.createElement)(P,e)},save:function(e){var t=e.attributes.align;return Object(c.createElement)(c.RawHTML,{className:t?"align".concat(t):""},Object(B.a)(e,"woocommerce/product-on-sale"))}})}}));
build/product-top-rated.css ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ .woocommerce-product-categories__operator .components-base-control__help{clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;width:1px;margin:-1px;overflow:hidden;overflow-wrap:normal!important;word-wrap:normal!important}.components-panel .woocommerce-product-categories__operator.components-base-control{margin-top:16px}.components-panel .woocommerce-product-categories__operator.components-base-control .components-select-control__input{margin-left:0;min-width:100%}
2
+ @charset "UTF-8";.woocommerce-search-list{width:100%;padding:0 0 16px;text-align:left}.woocommerce-search-list__selected{margin:16px 0;padding:16px 0 0;min-height:76px;border-top:1px solid #e2e4e7}.woocommerce-search-list__selected .woocommerce-search-list__selected-header{margin-bottom:8px}.woocommerce-search-list__selected .woocommerce-search-list__selected-header button{margin-left:12px}.woocommerce-search-list__selected .woocommerce-tag__text{max-width:13em}.woocommerce-search-list__search{margin:16px 0;padding:16px 0 0;border-top:1px solid #e2e4e7}.woocommerce-search-list__search .components-base-control__field{margin-bottom:16px}.woocommerce-search-list__list{padding:0;max-height:17em;overflow-x:hidden;overflow-y:auto;border-top:1px solid #e2e4e7;border-bottom:1px solid #e2e4e7}.woocommerce-search-list__list.is-loading,.woocommerce-search-list__list.is-not-found{padding:12px 0;text-align:center;border:none}.woocommerce-search-list__list.is-not-found .woocommerce-search-list__not-found-icon,.woocommerce-search-list__list.is-not-found .woocommerce-search-list__not-found-text{display:inline-block}.woocommerce-search-list__list.is-not-found .woocommerce-search-list__not-found-icon{margin-right:16px}.woocommerce-search-list__list.is-not-found .woocommerce-search-list__not-found-icon .gridicon{vertical-align:top;margin-top:-1px}.woocommerce-search-list__list .components-spinner{float:none}.woocommerce-search-list__list .components-menu-group__label{clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;width:1px;margin:-1px;overflow:hidden;overflow-wrap:normal!important;word-wrap:normal!important}.woocommerce-search-list__list>[role=menu]{border:1px solid #e2e4e7;border-bottom:none}.woocommerce-search-list__list .woocommerce-search-list__item{display:flex;align-items:center;margin-bottom:0;padding:12px 16px;background:#fff;border-bottom:1px solid #e2e4e7!important;color:#555d66}.woocommerce-search-list__list .woocommerce-search-list__item:active,.woocommerce-search-list__list .woocommerce-search-list__item:focus,.woocommerce-search-list__list .woocommerce-search-list__item:hover{background:#f8f9f9}.woocommerce-search-list__list .woocommerce-search-list__item:last-child{border-bottom:none!important}.woocommerce-search-list__list .woocommerce-search-list__item .woocommerce-search-list__item-state{flex:0 0 16px;margin-right:8px;height:24px}.woocommerce-search-list__list .woocommerce-search-list__item .woocommerce-search-list__item-label{display:flex;flex:1}.woocommerce-search-list__list .woocommerce-search-list__item[class*=depth-] .woocommerce-search-list__item-label:before{margin-right:4px;content:"— — — — — "}.woocommerce-search-list__list .woocommerce-search-list__item.depth-0 .woocommerce-search-list__item-label:before{margin-right:0;content:""}.woocommerce-search-list__list .woocommerce-search-list__item.depth-1 .woocommerce-search-list__item-label:before{content:"— "}.woocommerce-search-list__list .woocommerce-search-list__item.depth-2 .woocommerce-search-list__item-label:before{content:"— — "}.woocommerce-search-list__list .woocommerce-search-list__item.depth-3 .woocommerce-search-list__item-label:before{content:"— — — "}.woocommerce-search-list__list .woocommerce-search-list__item.depth-4 .woocommerce-search-list__item-label:before{content:"— — — — "}.woocommerce-search-list__list .woocommerce-search-list__item .woocommerce-search-list__item-name{display:inline-block}.woocommerce-search-list__list .woocommerce-search-list__item .woocommerce-search-list__item-prefix{display:none;color:#6c7781}.woocommerce-search-list__list .woocommerce-search-list__item.is-searching .woocommerce-search-list__item-label,.woocommerce-search-list__list .woocommerce-search-list__item.is-skip-level .woocommerce-search-list__item-label{display:inline-block}.woocommerce-search-list__list .woocommerce-search-list__item.is-searching .woocommerce-search-list__item-prefix,.woocommerce-search-list__list .woocommerce-search-list__item.is-skip-level .woocommerce-search-list__item-prefix{display:inline}.woocommerce-search-list__list .woocommerce-search-list__item.is-searching .woocommerce-search-list__item-prefix:after,.woocommerce-search-list__list .woocommerce-search-list__item.is-skip-level .woocommerce-search-list__item-prefix:after{margin-right:4px;content:" ›"}.woocommerce-search-list__list .woocommerce-search-list__item.is-searching .woocommerce-search-list__item-name{color:#191e23}.woocommerce-search-list__list .woocommerce-search-list__item .woocommerce-search-list__item-count{flex:0;padding:2px 8px;border:1px solid #e2e4e7;border-radius:12px;font-size:.8em;line-height:1.4;color:#6c7781;background:#fff}.components-panel .woocommerce-search-list{padding:0}.components-panel .woocommerce-search-list__selected{margin:0 0 16px;padding:0;border-top:none;min-height:54px}.components-panel .woocommerce-search-list__search{margin:0 0 16px;padding:0;border-top:none}
3
+ .wc-product-preview{text-align:center;margin-bottom:16px}.wc-product-preview .wc-product-preview__price,.wc-product-preview .wc-product-preview__title{margin-top:4px}.wc-product-preview .wp-block-button{margin-bottom:0}.wc-product-preview .wc-product-preview__add-to-cart{cursor:text;margin:12px 0 0}.cols-4 .wc-product-preview .wc-product-preview__title,.cols-5 .wc-product-preview .wc-product-preview__title,.cols-6 .wc-product-preview .wc-product-preview__title{font-size:.9em;line-height:1.2}.cols-4 .wc-product-preview .wc-product-preview__price,.cols-5 .wc-product-preview .wc-product-preview__price,.cols-6 .wc-product-preview .wc-product-preview__price{font-size:.8em}.cols-4 .wc-product-preview .wc-product-preview__add-to-cart,.cols-5 .wc-product-preview .wc-product-preview__add-to-cart,.cols-6 .wc-product-preview .wc-product-preview__add-to-cart{font-size:.7em!important;line-height:1.4!important}.editor-block-preview .wc-product-preview .wc-product-preview__title{font-size:.7em;line-height:1.2}.editor-block-preview .wc-product-preview .wc-product-preview__price{font-size:.6em}.editor-block-preview .wc-product-preview .wc-product-preview__add-to-cart{font-size:.6em!important}
build/product-top-rated.js ADDED
@@ -0,0 +1 @@
 
1
+ !function(e,t){for(var r in t)e[r]=t[r]}(this,function(e){function t(t){for(var n,s,a=t[0],i=t[1],l=t[2],d=0,p=[];d<a.length;d++)s=a[d],o[s]&&p.push(o[s][0]),o[s]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(u&&u(t);p.length;)p.shift()();return c.push.apply(c,l||[]),r()}function r(){for(var e,t=0;t<c.length;t++){for(var r=c[t],n=!0,a=1;a<r.length;a++){var i=r[a];0!==o[i]&&(n=!1)}n&&(c.splice(t--,1),e=s(s.s=r[0]))}return e}var n={},o={7:0},c=[];function s(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,s),r.l=!0,r.exports}s.m=e,s.c=n,s.d=function(e,t,r){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(e,t){if(1&t&&(e=s(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(s.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)s.d(r,n,function(t){return e[t]}.bind(null,n));return r},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="";var a=window.webpackJsonp=window.webpackJsonp||[],i=a.push.bind(a);a.push=t,a=a.slice();for(var l=0;l<a.length;l++)t(a[l]);var u=i;return c.push([874,0]),r()}({0:function(e,t){!function(){e.exports=this.wp.element}()},14:function(e,t){!function(){e.exports=this.wp.compose}()},16:function(e,t){!function(){e.exports=this.wp.apiFetch}()},17:function(e,t,r){"use strict";var n=r(0),o=r(3),c=function(){return Object(n.createElement)(o.Icon,{icon:Object(n.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(n.createElement)("path",{fill:"#1E8CBE",d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}))})},s=function(){return Object(n.createElement)(o.Icon,{icon:Object(n.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(n.createElement)("path",{fill:"#6C7781",d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}))})},a=function(){return Object(n.createElement)(o.Icon,{icon:Object(n.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(n.createElement)("path",{d:"M0 0h24v24H0z",fill:"none"}),Object(n.createElement)("path",{d:"M23 12l-2.44-2.78.34-3.68-3.61-.82-1.89-3.18L12 3 8.6 1.54 6.71 4.72l-3.61.81.34 3.68L1 12l2.44 2.78-.34 3.69 3.61.82 1.89 3.18L12 21l3.4 1.46 1.89-3.18 3.61-.82-.34-3.68L23 12zm-10 5h-2v-2h2v2zm0-4h-2V7h2v6z"}))})},i=function(){return Object(n.createElement)(o.Icon,{icon:Object(n.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(n.createElement)("path",{fill:"#1E8CBE",d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}))})},l=function(){return Object(n.createElement)(o.Icon,{icon:Object(n.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(n.createElement)("path",{fill:"#6C7781",d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}))})},u=function(){return Object(n.createElement)(o.Icon,{icon:Object(n.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(n.createElement)("path",{d:"M13 13v8h8v-8h-8zM3 21h8v-8H3v8zM3 3v8h8V3H3zm13.66-1.31L11 7.34 16.66 13l5.66-5.66-5.66-5.65z"}),Object(n.createElement)("path",{d:"M0 0h24v24H0z",fill:"none"}))})};r.d(t,"a",function(){return c}),r.d(t,"b",function(){return s}),r.d(t,"c",function(){return a}),r.d(t,"d",function(){return i}),r.d(t,"e",function(){return l}),r.d(t,"f",function(){return u})},170:function(e,t,r){"use strict";t.a={columns:{type:"number",default:wc_product_block_data.default_columns},rows:{type:"number",default:wc_product_block_data.default_rows},categories:{type:"array",default:[]},catOperator:{type:"string",default:"any"},attributes:{type:"array",default:[]}}},177:function(e,t,r){var n=r(178);"string"==typeof n&&(n=[[e.i,n,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};r(28)(n,o);n.locals&&(e.exports=n.locals)},178:function(e,t,r){},181:function(e,t){!function(){e.exports=this.wp.data}()},187:function(e,t,r){var n=r(188);"string"==typeof n&&(n=[[e.i,n,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};r(28)(n,o);n.locals&&(e.exports=n.locals)},188:function(e,t,r){},2:function(e,t){!function(){e.exports=this.wp.i18n}()},200:function(e,t,r){var n=r(201);"string"==typeof n&&(n=[[e.i,n,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};r(28)(n,o);n.locals&&(e.exports=n.locals)},201:function(e,t,r){},220:function(e,t,r){var n={"./af":46,"./af.js":46,"./ar":47,"./ar-dz":48,"./ar-dz.js":48,"./ar-kw":49,"./ar-kw.js":49,"./ar-ly":50,"./ar-ly.js":50,"./ar-ma":51,"./ar-ma.js":51,"./ar-sa":52,"./ar-sa.js":52,"./ar-tn":53,"./ar-tn.js":53,"./ar.js":47,"./az":54,"./az.js":54,"./be":55,"./be.js":55,"./bg":56,"./bg.js":56,"./bm":57,"./bm.js":57,"./bn":58,"./bn.js":58,"./bo":59,"./bo.js":59,"./br":60,"./br.js":60,"./bs":61,"./bs.js":61,"./ca":62,"./ca.js":62,"./cs":63,"./cs.js":63,"./cv":64,"./cv.js":64,"./cy":65,"./cy.js":65,"./da":66,"./da.js":66,"./de":67,"./de-at":68,"./de-at.js":68,"./de-ch":69,"./de-ch.js":69,"./de.js":67,"./dv":70,"./dv.js":70,"./el":71,"./el.js":71,"./en-au":72,"./en-au.js":72,"./en-ca":73,"./en-ca.js":73,"./en-gb":74,"./en-gb.js":74,"./en-ie":75,"./en-ie.js":75,"./en-il":76,"./en-il.js":76,"./en-nz":77,"./en-nz.js":77,"./eo":78,"./eo.js":78,"./es":79,"./es-do":80,"./es-do.js":80,"./es-us":81,"./es-us.js":81,"./es.js":79,"./et":82,"./et.js":82,"./eu":83,"./eu.js":83,"./fa":84,"./fa.js":84,"./fi":85,"./fi.js":85,"./fo":86,"./fo.js":86,"./fr":87,"./fr-ca":88,"./fr-ca.js":88,"./fr-ch":89,"./fr-ch.js":89,"./fr.js":87,"./fy":90,"./fy.js":90,"./gd":91,"./gd.js":91,"./gl":92,"./gl.js":92,"./gom-latn":93,"./gom-latn.js":93,"./gu":94,"./gu.js":94,"./he":95,"./he.js":95,"./hi":96,"./hi.js":96,"./hr":97,"./hr.js":97,"./hu":98,"./hu.js":98,"./hy-am":99,"./hy-am.js":99,"./id":100,"./id.js":100,"./is":101,"./is.js":101,"./it":102,"./it.js":102,"./ja":103,"./ja.js":103,"./jv":104,"./jv.js":104,"./ka":105,"./ka.js":105,"./kk":106,"./kk.js":106,"./km":107,"./km.js":107,"./kn":108,"./kn.js":108,"./ko":109,"./ko.js":109,"./ky":110,"./ky.js":110,"./lb":111,"./lb.js":111,"./lo":112,"./lo.js":112,"./lt":113,"./lt.js":113,"./lv":114,"./lv.js":114,"./me":115,"./me.js":115,"./mi":116,"./mi.js":116,"./mk":117,"./mk.js":117,"./ml":118,"./ml.js":118,"./mn":119,"./mn.js":119,"./mr":120,"./mr.js":120,"./ms":121,"./ms-my":122,"./ms-my.js":122,"./ms.js":121,"./mt":123,"./mt.js":123,"./my":124,"./my.js":124,"./nb":125,"./nb.js":125,"./ne":126,"./ne.js":126,"./nl":127,"./nl-be":128,"./nl-be.js":128,"./nl.js":127,"./nn":129,"./nn.js":129,"./pa-in":130,"./pa-in.js":130,"./pl":131,"./pl.js":131,"./pt":132,"./pt-br":133,"./pt-br.js":133,"./pt.js":132,"./ro":134,"./ro.js":134,"./ru":135,"./ru.js":135,"./sd":136,"./sd.js":136,"./se":137,"./se.js":137,"./si":138,"./si.js":138,"./sk":139,"./sk.js":139,"./sl":140,"./sl.js":140,"./sq":141,"./sq.js":141,"./sr":142,"./sr-cyrl":143,"./sr-cyrl.js":143,"./sr.js":142,"./ss":144,"./ss.js":144,"./sv":145,"./sv.js":145,"./sw":146,"./sw.js":146,"./ta":147,"./ta.js":147,"./te":148,"./te.js":148,"./tet":149,"./tet.js":149,"./tg":150,"./tg.js":150,"./th":151,"./th.js":151,"./tl-ph":152,"./tl-ph.js":152,"./tlh":153,"./tlh.js":153,"./tr":154,"./tr.js":154,"./tzl":155,"./tzl.js":155,"./tzm":156,"./tzm-latn":157,"./tzm-latn.js":157,"./tzm.js":156,"./ug-cn":158,"./ug-cn.js":158,"./uk":159,"./uk.js":159,"./ur":160,"./ur.js":160,"./uz":161,"./uz-latn":162,"./uz-latn.js":162,"./uz.js":161,"./vi":163,"./vi.js":163,"./x-pseudo":164,"./x-pseudo.js":164,"./yo":165,"./yo.js":165,"./zh-cn":166,"./zh-cn.js":166,"./zh-hk":167,"./zh-hk.js":167,"./zh-tw":168,"./zh-tw.js":168};function o(e){var t=c(e);return r(t)}function c(e){var t=n[e];if(!(t+1)){var r=new Error("Cannot find module '"+e+"'");throw r.code="MODULE_NOT_FOUND",r}return t}o.keys=function(){return Object.keys(n)},o.resolve=c,e.exports=o,o.id=220},223:function(e,t){},224:function(e,t){},226:function(e,t){},227:function(e,t){},23:function(e,t){!function(){e.exports=this.wp.url}()},24:function(e,t,r){"use strict";var n=r(27),o=r.n(n),c=r(172),s=r.n(c),a=r(0),i=r(4),l=r(3),u=r(1),d=r.n(u),p=r(17);function m(e,t){if(!t)return e;var r=new RegExp(Object(i.escapeRegExp)(t),"ig");return e.replace(r,"<strong>$&</strong>")}var b=function(e){var t=e.className,r=e.depth,n=void 0===r?0:r,c=e.item,u=e.isSelected,d=e.isSingle,b=e.onSelect,h=e.search,j=void 0===h?"":h,g=e.showCount,f=void 0!==g&&g,v=s()(e,["className","depth","item","isSelected","isSingle","onSelect","search","showCount"]),w=[t,"woocommerce-search-list__item"];w.push("depth-".concat(n)),d&&w.push("is-radio-button");var O,_=c.breadcrumbs&&c.breadcrumbs.length;return Object(a.createElement)(l.MenuItem,o()({role:"menuitemcheckbox",className:w.join(" "),onClick:b(c),isSelected:u},v),Object(a.createElement)("span",{className:"woocommerce-search-list__item-state"},function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?t?Object(a.createElement)(p.d,null):Object(a.createElement)(p.e,null):t?Object(a.createElement)(p.a,null):Object(a.createElement)(p.b,null)}(d,u)),Object(a.createElement)("span",{className:"woocommerce-search-list__item-label"},_?Object(a.createElement)("span",{className:"woocommerce-search-list__item-prefix"},1===(O=c.breadcrumbs).length?Object(i.first)(O):2===O.length?Object(i.first)(O)+" › "+Object(i.last)(O):Object(i.first)(O)+" … "+Object(i.last)(O)):null,Object(a.createElement)("span",{className:"woocommerce-search-list__item-name",dangerouslySetInnerHTML:{__html:m(c.name,j)}})),!!f&&Object(a.createElement)("span",{className:"woocommerce-search-list__item-count"},c.count))};b.propTypes={className:d.a.string,depth:d.a.number,item:d.a.object,isSelected:d.a.bool,isSingle:d.a.bool,onSelect:d.a.func,search:d.a.string,showCount:d.a.bool},t.a=b},25:function(e,t){!function(){e.exports=this.wp.editor}()},3:function(e,t){!function(){e.exports=this.wp.components}()},31:function(e,t){!function(){e.exports=this.wp.blocks}()},32:function(e,t,r){"use strict";var n=r(13),o=r.n(n),c=r(15),s=r.n(c),a=r(8),i=r.n(a),l=r(9),u=r.n(l),d=r(10),p=r.n(d),m=r(11),b=r.n(m),h=r(12),j=r.n(h),g=r(5),f=r.n(g),v=r(0),w=r(2),O=r(3),_=r(14),y=r(4),k=r(19),E=r.n(k),S=r(1),C=r.n(S),x=r(173);r(177);function z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=Object(y.groupBy)(e,"parent"),n=Object(y.keyBy)(t,"id"),c=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!t.parent)return t.name?[t.name]:[];var r=e(n[t.parent]);return[].concat(s()(r),[t.name])},a=function e(t){return t.map(function(t){var s=r[t.id];return delete r[t.id],o()({},t,{breadcrumbs:c(n[t.parent]),children:s&&s.length?e(s):[]})})},i=a(r[0]||[]);return delete r[0],Object(y.forEach)(r,function(e){i.push.apply(i,s()(a(e||[])))}),i}var N=r(24),I={clear:Object(w.__)("Clear all selected items","woo-gutenberg-products-block"),list:Object(w.__)("Results","woo-gutenberg-products-block"),noItems:Object(w.__)("No items found.","woo-gutenberg-products-block"),noResults:Object(w.__)("No results for %s","woo-gutenberg-products-block"),search:Object(w.__)("Search for items","woo-gutenberg-products-block"),selected:function(e){return Object(w.sprintf)(Object(w._n)("%d item selected","%d items selected",e,"woo-gutenberg-products-block"),e)},updated:Object(w.__)("Search results updated.","woo-gutenberg-products-block")},R=function(e){function t(){var e;return i()(this,t),(e=p()(this,b()(t).apply(this,arguments))).onSelect=e.onSelect.bind(f()(f()(e))),e.onRemove=e.onRemove.bind(f()(f()(e))),e.onClear=e.onClear.bind(f()(f()(e))),e.isSelected=e.isSelected.bind(f()(f()(e))),e.defaultRenderItem=e.defaultRenderItem.bind(f()(f()(e))),e.renderList=e.renderList.bind(f()(f()(e))),e}return j()(t,e),u()(t,[{key:"onRemove",value:function(e){var t=this.props,r=t.isSingle,n=t.onChange,o=t.selected;return function(){r&&n([]);var t=Object(y.findIndex)(o,{id:e});n([].concat(s()(o.slice(0,t)),s()(o.slice(t+1))))}}},{key:"onSelect",value:function(e){var t=this,r=this.props,n=r.isSingle,o=r.onChange,c=r.selected;return function(){t.isSelected(e)?t.onRemove(e.id)():o(n?[e]:[].concat(s()(c),[e]))}}},{key:"onClear",value:function(){this.props.onChange([])}},{key:"isSelected",value:function(e){return-1!==Object(y.findIndex)(this.props.selected,{id:e.id})}},{key:"getFilteredList",value:function(e,t){var r=this.props.isHierarchical;if(!t)return r?z(e):e;var n=o()({},I,this.props.messages),c=new RegExp(Object(y.escapeRegExp)(t),"i");this.props.debouncedSpeak(n.updated);var s=e.map(function(e){return!!c.test(e.name)&&e}).filter(Boolean);return r?z(s,e):s}},{key:"defaultRenderItem",value:function(e){return Object(v.createElement)(N.a,e)}},{key:"renderList",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.props,o=n.isSingle,c=n.search,s=this.props.renderItem||this.defaultRenderItem;return e?e.map(function(e){return Object(v.createElement)(v.Fragment,{key:e.id},s({item:e,isSelected:t.isSelected(e),onSelect:t.onSelect,isSingle:o,search:c,depth:r}),t.renderList(e.children,r+1))}):null}},{key:"renderListSection",value:function(){var e=this.props,t=e.isLoading,r=e.search,n=this.getFilteredList(this.props.list,r),c=o()({},I,this.props.messages);return t?Object(v.createElement)("div",{className:"woocommerce-search-list__list is-loading"},Object(v.createElement)(O.Spinner,null)):n.length?Object(v.createElement)(O.MenuGroup,{label:c.list,className:"woocommerce-search-list__list"},this.renderList(n)):Object(v.createElement)("div",{className:"woocommerce-search-list__list is-not-found"},Object(v.createElement)("span",{className:"woocommerce-search-list__not-found-icon"},Object(v.createElement)(E.a,{icon:"notice-outline",role:"img","aria-hidden":"true",focusable:"false"})),Object(v.createElement)("span",{className:"woocommerce-search-list__not-found-text"},r?Object(w.sprintf)(c.noResults,r):c.noItems))}},{key:"renderSelectedSection",value:function(){var e=this,t=this.props,r=t.isLoading,n=t.isSingle,c=t.selected,s=o()({},I,this.props.messages);if(r||n||!c)return null;var a=c.length;return Object(v.createElement)("div",{className:"woocommerce-search-list__selected"},Object(v.createElement)("div",{className:"woocommerce-search-list__selected-header"},Object(v.createElement)("strong",null,s.selected(a)),a>0?Object(v.createElement)(O.Button,{isLink:!0,isDestructive:!0,onClick:this.onClear,"aria-label":s.clear},Object(w.__)("Clear all","woo-gutenberg-products-block")):null),c.map(function(t,r){return Object(v.createElement)(x.a,{key:r,label:t.name,id:t.id,remove:e.onRemove})}))}},{key:"render",value:function(){var e=this.props,t=e.className,r=void 0===t?"":t,n=e.search,c=e.setState,s=o()({},I,this.props.messages);return Object(v.createElement)("div",{className:"woocommerce-search-list ".concat(r)},this.renderSelectedSection(),Object(v.createElement)("div",{className:"woocommerce-search-list__search"},Object(v.createElement)(O.TextControl,{label:s.search,type:"search",value:n,onChange:function(e){return c({search:e})}})),this.renderListSection())}}]),t}(v.Component);R.propTypes={className:C.a.string,isHierarchical:C.a.bool,isLoading:C.a.bool,isSingle:C.a.bool,list:C.a.arrayOf(C.a.shape({id:C.a.number,name:C.a.string})),messages:C.a.shape({clear:C.a.string,list:C.a.string,noItems:C.a.string,noResults:C.a.string,search:C.a.string,selected:C.a.func,updated:C.a.string}),onChange:C.a.func.isRequired,renderItem:C.a.func,selected:C.a.array.isRequired,search:C.a.string,setState:C.a.func,debouncedSpeak:C.a.func,instanceId:C.a.number};t.a=Object(_.compose)([Object(_.withState)({search:""}),O.withSpokenMessages,_.withInstanceId])(R)},38:function(e,t,r){"use strict";function n(e,t){var r=e.categories,n=e.catOperator,o=e.columns,c=e.orderby,s=e.products,a={status:"publish",per_page:e.rows*o};switch(r&&r.length&&(a.category=r.join(","),n&&"all"===n&&(a.cat_operator="AND")),c&&("price_desc"===c?(a.orderby="price",a.order="desc"):"price_asc"===c?(a.orderby="price",a.order="asc"):"title"===c?(a.orderby="title",a.order="asc"):"menu_order"===c?(a.orderby="menu_order",a.order="asc"):a.orderby=c),t){case"woocommerce/product-best-sellers":a.orderby="popularity";break;case"woocommerce/product-top-rated":a.orderby="rating";break;case"woocommerce/product-on-sale":a.on_sale=1;break;case"woocommerce/product-new":a.orderby="date";break;case"woocommerce/handpicked-products":a.include=s,a.per_page=s.length}return a}r.d(t,"a",function(){return n})},39:function(e,t,r){"use strict";var n=r(0),o=r(2),c=r(1),s=r.n(c),a=(r(187),function(e){var t=e.product,r=null;return t.images.length&&(r=Object(n.createElement)("img",{src:t.images[0].src,alt:""})),Object(n.createElement)("div",{className:"wc-product-preview"},r,Object(n.createElement)("div",{className:"wc-product-preview__title"},t.name),Object(n.createElement)("div",{className:"wc-product-preview__price",dangerouslySetInnerHTML:{__html:t.price_html}}),Object(n.createElement)("span",{className:"wp-block-button"},Object(n.createElement)("span",{className:"wc-product-preview__add-to-cart wp-block-button__link"},Object(o.__)("Add to cart","woo-gutenberg-products-block"))))});a.propTypes={product:s.a.shape({id:s.a.number,images:s.a.array,name:s.a.string,price_html:s.a.string}).isRequired},t.a=a},4:function(e,t){!function(){e.exports=this.lodash}()},40:function(e,t,r){"use strict";r.d(t,"a",function(){return c});var n=r(171),o=r.n(n);function c(e,t){var r=e.attributes,n=r.categories,c=r.catOperator,s=r.columns,a=r.orderby,i=r.products,l=r.rows,u=new Map;switch(u.set("limit",l*s),u.set("columns",s),n&&n.length&&(u.set("category",n.join(",")),c&&"all"===c&&u.set("cat_operator","AND")),a&&("price_desc"===a?(u.set("orderby","price"),u.set("order","DESC")):"price_asc"===a?(u.set("orderby","price"),u.set("order","ASC")):"date"===a?(u.set("orderby","date"),u.set("order","DESC")):u.set("orderby",a)),t){case"woocommerce/product-best-sellers":u.set("best_selling","1");break;case"woocommerce/product-top-rated":u.set("orderby","rating");break;case"woocommerce/product-on-sale":u.set("on_sale","1");break;case"woocommerce/product-new":u.set("orderby","date"),u.set("order","DESC");break;case"woocommerce/handpicked-products":if(!i.length)return"";u.set("ids",i.join(",")),u.set("limit",i.length);break;case"woocommerce/product-category":if(!n||!n.length)return""}var d="[products",p=!0,m=!1,b=void 0;try{for(var h,j=u[Symbol.iterator]();!(p=(h=j.next()).done);p=!0){var g=o()(h.value,2);d+=" "+g[0]+'="'+g[1]+'"'}}catch(e){m=!0,b=e}finally{try{p||null==j.return||j.return()}finally{if(m)throw b}}return d+="]"}},44:function(e,t,r){"use strict";var n=r(27),o=r.n(n),c=r(8),s=r.n(c),a=r(9),i=r.n(a),l=r(10),u=r.n(l),d=r(11),p=r.n(d),m=r(12),b=r.n(m),h=r(5),j=r.n(h),g=r(0),f=r(2),v=r(23),w=r(16),O=r.n(w),_=r(4),y=r(1),k=r.n(y),E=r(3),S=(r(200),r(32)),C=r(24),x=function(e){function t(){var e;return s()(this,t),(e=u()(this,p()(t).apply(this,arguments))).state={list:[],loading:!0},e.renderItem=e.renderItem.bind(j()(j()(e))),e}return b()(t,e),i()(t,[{key:"componentDidMount",value:function(){var e=this;O()({path:Object(v.addQueryArgs)("/wc-pb/v3/products/categories",{per_page:-1})}).then(function(t){e.setState({list:t,loading:!1})}).catch(function(){e.setState({list:[],loading:!1})})}},{key:"renderItem",value:function(e){var t=e.item,r=e.search,n=e.depth,c=void 0===n?0:n,s=["woocommerce-product-categories__item"];r.length&&s.push("is-searching"),0===c&&0!==t.parent&&s.push("is-skip-level");var a=t.breadcrumbs.length?"".concat(t.breadcrumbs.join(", "),", ").concat(t.name):t.name;return Object(g.createElement)(C.a,o()({className:s.join(" ")},e,{showCount:!0,"aria-label":Object(f.sprintf)(Object(f._n)("%s, has %d product","%s, has %d products",t.count,"woo-gutenberg-products-block"),a,t.count)}))}},{key:"render",value:function(){var e=this.state,t=e.list,r=e.loading,n=this.props,o=n.onChange,c=n.onOperatorChange,s=n.operator,a=void 0===s?"any":s,i=n.selected,l={clear:Object(f.__)("Clear all product categories","woo-gutenberg-products-block"),list:Object(f.__)("Product Categories","woo-gutenberg-products-block"),noItems:Object(f.__)("Your store doesn't have any product categories.","woo-gutenberg-products-block"),search:Object(f.__)("Search for product categories","woo-gutenberg-products-block"),selected:function(e){return Object(f.sprintf)(Object(f._n)("%d category selected","%d categories selected",e,"woo-gutenberg-products-block"),e)},updated:Object(f.__)("Category search results updated.","woo-gutenberg-products-block")};return Object(g.createElement)(g.Fragment,null,Object(g.createElement)(S.a,{className:"woocommerce-product-categories",list:t,isLoading:r,selected:i.map(function(e){return Object(_.find)(t,{id:e})}).filter(Boolean),onChange:o,renderItem:this.renderItem,messages:l,isHierarchical:!0}),!!c&&Object(g.createElement)("div",{className:i.length<2?"screen-reader-text":""},Object(g.createElement)(E.SelectControl,{className:"woocommerce-product-categories__operator",label:Object(f.__)("Display products matching","woo-gutenberg-products-block"),help:Object(f.__)("Pick at least two categories to use this setting.","woo-gutenberg-products-block"),value:a,onChange:c,options:[{label:Object(f.__)("Any selected categories","woo-gutenberg-products-block"),value:"any"},{label:Object(f.__)("All selected categories","woo-gutenberg-products-block"),value:"all"}]})))}}]),t}(g.Component);x.propTypes={onChange:k.a.func.isRequired,onOperatorChange:k.a.func,operator:k.a.oneOf(["all","any"]),selected:k.a.array.isRequired},t.a=x},874:function(e,t,r){"use strict";r.r(t);var n=r(13),o=r.n(n),c=r(0),s=r(2),a=r(19),i=r.n(a),l=r(31),u=r(8),d=r.n(u),p=r(9),m=r.n(p),b=r(10),h=r.n(b),j=r(11),g=r.n(j),f=r(12),v=r.n(f),w=r(5),O=r.n(w),_=r(23),y=r(16),k=r.n(y),E=r(25),S=r(4),C=r(3),x=r(1),z=r.n(x),N=r(38),I=r(44),R=r(39),L=function(e){function t(){var e;return d()(this,t),(e=h()(this,g()(t).apply(this,arguments))).state={products:[],loaded:!1},e.debouncedGetProducts=Object(S.debounce)(e.getProducts.bind(O()(O()(e))),200),e}return v()(t,e),m()(t,[{key:"componentDidMount",value:function(){this.props.attributes.categories&&this.getProducts()}},{key:"componentDidUpdate",value:function(e){var t=this;["rows","columns","categories","catOperator"].reduce(function(r,n){return r||e.attributes[n]!==t.props.attributes[n]},!1)&&this.debouncedGetProducts()}},{key:"getProducts",value:function(){var e=this;k()({path:Object(_.addQueryArgs)("/wc-pb/v3/products",Object(N.a)(this.props.attributes,this.props.name))}).then(function(t){e.setState({products:t,loaded:!0})}).catch(function(){e.setState({products:[],loaded:!0})})}},{key:"getInspectorControls",value:function(){var e=this.props,t=e.attributes,r=e.setAttributes,n=t.categories,o=t.catOperator,a=t.columns,i=t.rows;return Object(c.createElement)(E.InspectorControls,{key:"inspector"},Object(c.createElement)(C.PanelBody,{title:Object(s.__)("Layout","woo-gutenberg-products-block"),initialOpen:!0},Object(c.createElement)(C.RangeControl,{label:Object(s.__)("Columns","woo-gutenberg-products-block"),value:a,onChange:function(e){return r({columns:e})},min:wc_product_block_data.min_columns,max:wc_product_block_data.max_columns}),Object(c.createElement)(C.RangeControl,{label:Object(s.__)("Rows","woo-gutenberg-products-block"),value:i,onChange:function(e){return r({rows:e})},min:wc_product_block_data.min_rows,max:wc_product_block_data.max_rows})),Object(c.createElement)(C.PanelBody,{title:Object(s.__)("Filter by Product Category","woo-gutenberg-products-block"),initialOpen:!1},Object(c.createElement)(I.a,{selected:n,onChange:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(function(e){return e.id});r({categories:e})},operator:o,onOperatorChange:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"any";return r({catOperator:e})}})))}},{key:"render",value:function(){var e=this.props.attributes.columns,t=this.state,r=t.loaded,n=t.products,o=["wc-block-products-grid","wc-block-top-rated-products"];return e&&o.push("cols-".concat(e)),n&&!n.length&&(r?o.push("is-not-found"):o.push("is-loading")),Object(c.createElement)(c.Fragment,null,this.getInspectorControls(),Object(c.createElement)("div",{className:o.join(" ")},n.length?n.map(function(e){return Object(c.createElement)(R.a,{product:e,key:e.id})}):Object(c.createElement)(C.Placeholder,{icon:Object(c.createElement)(i.a,{icon:"trophy"}),label:Object(s.__)("Top Rated Products","woo-gutenberg-products-block")},r?Object(s.__)("No products found.","woo-gutenberg-products-block"):Object(c.createElement)(C.Spinner,null))))}}]),t}(c.Component);L.propTypes={attributes:z.a.object.isRequired,name:z.a.string.isRequired,setAttributes:z.a.func.isRequired};var M=L,P=r(40),B=r(170);Object(l.registerBlockType)("woocommerce/product-top-rated",{title:Object(s.__)("Top Rated Products","woo-gutenberg-products-block"),icon:Object(c.createElement)(i.a,{icon:"trophy"}),category:"woocommerce",keywords:[Object(s.__)("WooCommerce","woo-gutenberg-products-block")],description:Object(s.__)("Display a grid of your top rated products.","woo-gutenberg-products-block"),supports:{align:["wide","full"]},attributes:o()({},B.a),edit:function(e){return Object(c.createElement)(M,e)},save:function(e){var t=e.attributes.align;return Object(c.createElement)(c.RawHTML,{className:t?"align".concat(t):""},Object(P.a)(e,"woocommerce/product-top-rated"))}})}}));
build/products-block.css CHANGED
@@ -1,565 +1 @@
1
- /* stylelint-disable block-closing-brace-newline-after */
2
- /* stylelint-enable */
3
- /**
4
- * Products block preview mode.
5
- */
6
- .wc-products-block-preview {
7
- overflow: hidden; }
8
- .wc-products-block-preview .product-preview {
9
- float: left;
10
- text-align: center;
11
- margin-right: 3.8%; }
12
- .wc-products-block-preview.cols-1 .product-preview {
13
- float: none;
14
- margin-right: 0; }
15
- .wc-products-block-preview.cols-2 .product-preview {
16
- width: 48%; }
17
- .wc-products-block-preview.cols-2 .product-preview:nth-of-type(2n) {
18
- margin-right: 0; }
19
- .wc-products-block-preview.cols-2 .product-preview:nth-of-type(2n + 1) {
20
- clear: both; }
21
- .wc-products-block-preview.cols-3 .product-preview {
22
- width: 30.75%; }
23
- .wc-products-block-preview.cols-3 .product-preview:nth-of-type(3n) {
24
- margin-right: 0; }
25
- .wc-products-block-preview.cols-3 .product-preview:nth-of-type(3n + 1) {
26
- clear: both; }
27
- .wc-products-block-preview.cols-4 .product-preview {
28
- width: 22.05%; }
29
- .wc-products-block-preview.cols-4 .product-preview:nth-of-type(4n) {
30
- margin-right: 0; }
31
- .wc-products-block-preview.cols-4 .product-preview:nth-of-type(4n + 1) {
32
- clear: both; }
33
- .wc-products-block-preview.cols-5 .product-preview {
34
- width: 16.9%; }
35
- .wc-products-block-preview.cols-5 .product-preview:nth-of-type(5n) {
36
- margin-right: 0; }
37
- .wc-products-block-preview.cols-5 .product-preview:nth-of-type(5n + 1) {
38
- clear: both; }
39
- .wc-products-block-preview.cols-5 .product-preview .product-add-to-cart {
40
- font-size: 0.75em; }
41
- .wc-products-block-preview.cols-6 .product-preview {
42
- width: 13.5%; }
43
- .wc-products-block-preview.cols-6 .product-preview:nth-of-type(6n) {
44
- margin-right: 0; }
45
- .wc-products-block-preview.cols-6 .product-preview:nth-of-type(6n + 1) {
46
- clear: both; }
47
- .wc-products-block-preview.cols-6 .product-preview .product-add-to-cart {
48
- font-size: 0.75em; }
49
- .wc-products-block-preview .product-add-to-cart {
50
- display: inline-block;
51
- background: #ababab;
52
- border-radius: 1.5em;
53
- color: #fff;
54
- cursor: pointer;
55
- padding: 0.75em 1.25em;
56
- line-height: 1.2em;
57
- margin-top: 0.5em;
58
- margin-bottom: 1em; }
59
- .editor-block-preview .wc-products-block-preview {
60
- min-width: 5em; }
61
- .editor-block-preview .wc-products-block-preview .product-title,
62
- .editor-block-preview .wc-products-block-preview .product-price,
63
- .editor-block-preview .wc-products-block-preview .product-add-to-cart {
64
- font-size: 0.6em !important; }
65
- .editor-block-preview .wc-products-block-preview.cols-2 {
66
- min-width: 10em; }
67
- .editor-block-preview .wc-products-block-preview.cols-3 {
68
- min-width: 15em; }
69
- .editor-block-preview .wc-products-block-preview.cols-4 {
70
- min-width: 20em; }
71
- .editor-block-preview .wc-products-block-preview.cols-5 {
72
- min-width: 25em; }
73
- .editor-block-preview .wc-products-block-preview.cols-6 {
74
- min-width: 30em; }
75
-
76
- /**
77
- * General styling
78
- */
79
- .wc-products-settings {
80
- background-color: #f8f9f9;
81
- font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;
82
- font-size: 13px;
83
- position: relative; }
84
-
85
- /* Block title */
86
- .wc-products-settings__title {
87
- margin: 0;
88
- padding: 1.5rem 0;
89
- text-align: center;
90
- border-bottom: 1px solid #e6eaee; }
91
- .wc-products-settings__title .dashicon {
92
- vertical-align: top;
93
- margin-right: 0.25em; }
94
-
95
- /* Block footer */
96
- .wc-products-settings__footer {
97
- margin: 2em 0 0;
98
- padding: 1.5em 0;
99
- border-top: 1px solid #e6eaee;
100
- text-align: center; }
101
- .wc-products-settings__footer .button {
102
- padding-left: 1.5em;
103
- padding-right: 1.5em; }
104
-
105
- .wc-products-settings-heading + .wc-products-settings__footer,
106
- .wc-products-display-options--popover + .wc-products-settings__footer {
107
- margin-top: -2em;
108
- border-top: none; }
109
-
110
- /**
111
- * Menu
112
- */
113
- /* Select an option description */
114
- p.wc-products-block-description {
115
- margin: 2em 0 1.5em 0;
116
- font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;
117
- font-size: 1em;
118
- text-align: center; }
119
-
120
- /* Select option */
121
- .wc-products-display-options {
122
- margin: 0 0 2.5em; }
123
-
124
- .wc-products-display-options__option {
125
- display: flex;
126
- align-items: flex-start;
127
- flex-wrap: wrap;
128
- margin: 0 auto;
129
- padding: 1.25em 1.5em;
130
- max-width: 80%;
131
- background: #fff;
132
- border-width: 1px 1px 0;
133
- border-style: solid;
134
- border-color: #e6eaee;
135
- cursor: pointer; }
136
- .wc-products-display-options__option:last-of-type {
137
- border-bottom-width: 1px; }
138
- .wc-products-display-options__option--featured, .wc-products-display-options__option--best_selling, .wc-products-display-options__option--top_rated, .wc-products-display-options__option--on_sale, .wc-products-display-options__option--attribute {
139
- display: none;
140
- background-color: #fdfdfd;
141
- padding-top: 1em;
142
- padding-bottom: 1em; }
143
- .wc-products-display-options__option--featured .wc-products-display-options__option-title, .wc-products-display-options__option--best_selling .wc-products-display-options__option-title, .wc-products-display-options__option--top_rated .wc-products-display-options__option-title, .wc-products-display-options__option--on_sale .wc-products-display-options__option-title, .wc-products-display-options__option--attribute .wc-products-display-options__option-title {
144
- font-size: 1.15em; }
145
- .wc-products-display-options__option--featured .wc-products-display-options__icon .dashicon, .wc-products-display-options__option--best_selling .wc-products-display-options__icon .dashicon, .wc-products-display-options__option--top_rated .wc-products-display-options__icon .dashicon, .wc-products-display-options__option--on_sale .wc-products-display-options__icon .dashicon, .wc-products-display-options__option--attribute .wc-products-display-options__icon .dashicon {
146
- height: 20px;
147
- width: 20px; }
148
- .wc-products-display-options__option--current {
149
- cursor: default; }
150
- .wc-products-display-options__option--current .wc-products-display-options__option-title {
151
- color: #86909b; }
152
-
153
- .wc-products-display-options__option-content {
154
- width: 85%;
155
- -ms-grid-row-align: center;
156
- align-self: center; }
157
-
158
- .wc-products-display-options__option-title {
159
- display: block;
160
- font-size: 1.25em; }
161
-
162
- p.wc-products-display-options__option-description {
163
- margin: 0;
164
- font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;
165
- font-size: 1em;
166
- color: #86909b; }
167
-
168
- .wc-products-display-options__icon {
169
- -ms-grid-row-align: center;
170
- align-self: center;
171
- margin-left: auto;
172
- color: #b9bcc2; }
173
- .wc-products-display-options__icon .dashicon {
174
- height: 25px;
175
- width: 25px; }
176
-
177
- /* Select options popover */
178
- .wc-products-display-options--popover {
179
- position: absolute;
180
- right: -2em;
181
- max-width: 60%;
182
- margin: 0;
183
- z-index: 999;
184
- box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.1);
185
- margin-top: -2.15em; }
186
- .wc-products-display-options--popover .wc-products-display-options__option {
187
- margin: 0;
188
- max-width: none; }
189
-
190
- .wc-products-display-options--popover__arrow {
191
- width: 2em;
192
- height: 1.25em;
193
- position: absolute;
194
- top: -1.15em;
195
- right: 30%;
196
- overflow: hidden; }
197
- .wc-products-display-options--popover__arrow::after {
198
- content: "";
199
- position: absolute;
200
- width: 1.25em;
201
- height: 1.25em;
202
- background: #fff;
203
- -webkit-transform: rotate(45deg);
204
- transform: rotate(45deg);
205
- top: 0.625em;
206
- left: 0.3125em;
207
- box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.1);
208
- border: 1px solid #e6eaee; }
209
-
210
- /* Select options extended */
211
- .wc-products-display-options--extended .wc-products-display-options__option--featured, .wc-products-display-options--extended .wc-products-display-options__option--best_selling, .wc-products-display-options--extended .wc-products-display-options__option--top_rated, .wc-products-display-options--extended .wc-products-display-options__option--on_sale, .wc-products-display-options--extended .wc-products-display-options__option--attribute {
212
- display: flex; }
213
-
214
- .wc-products-display-options--extended:not(.wc-products-display-options--popover) .wc-products-display-options__option--category {
215
- border-bottom-width: 1px; }
216
-
217
- .wc-products-display-options--extended:not(.wc-products-display-options--popover) .wc-products-display-options__option--filter {
218
- margin-top: 0.5em; }
219
-
220
- .wc-products-display-options--extended:not(.wc-products-display-options--popover) .wc-products-display-options__option--attribute {
221
- margin-bottom: 0.5em;
222
- border-bottom-width: 1px; }
223
-
224
- /**
225
- * Settings heading
226
- */
227
- .wc-products-settings-heading {
228
- margin: 0 0 2em 0;
229
- padding: 1em 2em;
230
- text-align: center;
231
- border-bottom: 1px solid #e6eaee; }
232
-
233
- /**
234
- * List Card
235
- */
236
- .wc-products-list-card {
237
- position: relative;
238
- margin-left: auto;
239
- margin-right: auto;
240
- padding: 0 1em;
241
- overflow: hidden;
242
- box-sizing: border-box; }
243
- .wc-products-list-card .wc-products-list-card__input-wrapper {
244
- position: relative;
245
- background: #fff;
246
- margin: 0 0 1em; }
247
- .wc-products-list-card .wc-products-list-card__input-wrapper .dashicon {
248
- position: absolute;
249
- top: calc(1em - 1px);
250
- left: 1em;
251
- z-index: 1; }
252
- .wc-products-list-card input[type="search"] {
253
- position: relative;
254
- width: 100%;
255
- margin: 0;
256
- padding: 1em 1.25em 1em 3em;
257
- border-radius: 0;
258
- background: transparent;
259
- border-color: #e6eaee;
260
- box-shadow: none;
261
- z-index: 2; }
262
- .wc-products-list-card .wc-products-list-card__results {
263
- max-height: 200px;
264
- overflow-y: auto;
265
- overflow-x: hidden;
266
- box-sizing: border-box; }
267
- .wc-products-list-card .wc-products-list-card__results ul {
268
- list-style: none; }
269
- .wc-products-list-card .wc-products-list-card__results ul li {
270
- margin: 0;
271
- border: 1px solid #e6eaee;
272
- border-bottom-width: 0; }
273
- .wc-products-list-card .wc-products-list-card__results ul li:last-child {
274
- border-bottom-width: 1px; }
275
- .wc-products-list-card .wc-products-list-card__content {
276
- display: flex;
277
- align-items: center;
278
- flex-direction: row;
279
- padding: 0.75em 1.25em;
280
- background: #fff;
281
- border-bottom: 1px solid #e6eaee; }
282
- .wc-products-list-card::after {
283
- content: "";
284
- position: absolute;
285
- left: 0;
286
- bottom: 0;
287
- width: 100%;
288
- height: 1.5em;
289
- background: linear-gradient(rgba(255, 255, 255, 0.1) 0, #f8f9f9 100%); }
290
-
291
- /**
292
- * Categories / Attributes
293
- */
294
- .wc-products-list-card--taxonomy .wc-products-list-card__taxonomy-count {
295
- text-align: center;
296
- width: 30px;
297
- font-size: 0.8em;
298
- border: 1px solid #e9e9e9;
299
- border-radius: 1em;
300
- color: #aaa; }
301
-
302
- .wc-products-list-card--taxonomy input[type="checkbox"] {
303
- position: relative;
304
- margin-top: 0;
305
- margin-right: 0.75em;
306
- border-radius: 0; }
307
-
308
- /**
309
- * Categories
310
- */
311
- .wc-products-list-card--taxonomy-category .wc-products-list-card__results {
312
- padding-bottom: 1.3em; }
313
- .wc-products-list-card--taxonomy-category .wc-products-list-card__results ul li {
314
- margin-top: -1px; }
315
- .wc-products-list-card--taxonomy-category .wc-products-list-card__results ul li:first-child {
316
- margin-top: 0; }
317
- .wc-products-list-card--taxonomy-category .wc-products-list-card__results ul li:last-child {
318
- border-bottom-width: 0; }
319
- .wc-products-list-card--taxonomy-category .wc-products-list-card__results ul li ul {
320
- display: none;
321
- padding: 1em 1.25em 1em 3.25em;
322
- background: #fdfdfd;
323
- border-bottom: 1px solid #e6eaee; }
324
- .wc-products-list-card--taxonomy-category .wc-products-list-card__results ul li ul li {
325
- margin-bottom: 0.25em;
326
- border: none; }
327
- .wc-products-list-card--taxonomy-category .wc-products-list-card__results ul li ul li:last-child {
328
- margin-bottom: 0; }
329
- .wc-products-list-card--taxonomy-category .wc-products-list-card__results ul li.wc-products-list-card__accordion-open {
330
- margin: 0.5em 0; }
331
- .wc-products-list-card--taxonomy-category .wc-products-list-card__results ul li.wc-products-list-card__accordion-open:first-child {
332
- margin-top: 0; }
333
- .wc-products-list-card--taxonomy-category .wc-products-list-card__results ul li.wc-products-list-card__accordion-open:last-child {
334
- margin-bottom: 0; }
335
- .wc-products-list-card--taxonomy-category .wc-products-list-card__results ul li.wc-products-list-card__accordion-open ul {
336
- display: block; }
337
- .wc-products-list-card--taxonomy-category .wc-products-list-card__results ul li.wc-products-list-card__accordion-open ul li label {
338
- display: flex;
339
- align-items: center;
340
- flex-direction: row; }
341
- .wc-products-list-card--taxonomy-category .wc-products-list-card__results ul li.wc-products-list-card__accordion-open ul li .wc-products-list-card__taxonomy-count {
342
- margin-left: auto; }
343
-
344
- .wc-products-list-card--taxonomy-category .wc-products-list-card__accordion-button {
345
- cursor: pointer;
346
- color: #666;
347
- margin: 0 1em 0 auto;
348
- padding: 0 0 0 0.75em;
349
- border: none;
350
- border-radius: 0;
351
- background: none;
352
- outline: none;
353
- text-decoration: none; }
354
- .wc-products-list-card--taxonomy-category .wc-products-list-card__accordion-button .dashicon {
355
- align-self: center;
356
- display: flex; }
357
-
358
- .wc-products-list-card--taxonomy-category input[type="checkbox"]:indeterminate::before {
359
- position: absolute;
360
- top: 0;
361
- bottom: 0;
362
- right: 0;
363
- left: 0;
364
- content: "";
365
- margin: 42% 20%;
366
- width: 60%;
367
- background: #0073aa; }
368
-
369
- /**
370
- * Attributes
371
- */
372
- .wc-products-list-card--taxonomy-atributes .wc-products-list-card__results {
373
- padding-bottom: 1.3em; }
374
- .wc-products-list-card--taxonomy-atributes .wc-products-list-card__results ul {
375
- padding: 1em 1.25em 1em 3.25em;
376
- background: #fdfdfd;
377
- border-bottom: 1px solid #e6eaee; }
378
- .wc-products-list-card--taxonomy-atributes .wc-products-list-card__results ul li {
379
- margin-bottom: 0.25em;
380
- border: none; }
381
- .wc-products-list-card--taxonomy-atributes .wc-products-list-card__results ul li .wc-products-list-card__content {
382
- padding: 0;
383
- background: transparent;
384
- border: none; }
385
-
386
- .wc-products-list-card--taxonomy-atributes__atribute {
387
- margin: -1px 0 0;
388
- border-width: 1px 1px 0;
389
- border-style: solid;
390
- border-color: #e6eaee; }
391
- .wc-products-list-card--taxonomy-atributes__atribute:first-child {
392
- margin-top: 0; }
393
- .wc-products-list-card--taxonomy-atributes__atribute.wc-products-list-card__accordion-open {
394
- margin-top: 0.5em;
395
- margin-bottom: 0.5em; }
396
- .wc-products-list-card--taxonomy-atributes__atribute.wc-products-list-card__accordion-open:first-child {
397
- margin-top: 0; }
398
- .wc-products-list-card--taxonomy-atributes__atribute.wc-products-list-card__accordion-open:last-child {
399
- margin-bottom: 0; }
400
-
401
- .wc-products-list-card--taxonomy-atributes .wc-products-list-card__taxonomy-count {
402
- margin-left: auto; }
403
-
404
- .wc-products-list-card--taxonomy-atributes input[type="radio"] {
405
- position: relative;
406
- margin-top: 0;
407
- margin-right: 0.75em;
408
- border-radius: 100%; }
409
-
410
- /**
411
- * Specific
412
- */
413
- .wc-products-list-card--specific {
414
- overflow: visible; }
415
- .wc-products-list-card--specific::after {
416
- content: none; }
417
- .wc-products-list-card--specific .wc-products-list-card__item {
418
- position: relative;
419
- border: none; }
420
- .wc-products-list-card--specific .wc-products-list-card__item img {
421
- margin: 0;
422
- outline: 4px solid #00a0d2;
423
- outline-offset: -4px; }
424
- .wc-products-list-card--specific .wc-products-list-card__item button {
425
- position: absolute;
426
- top: 0;
427
- right: 0;
428
- background: #00a0d2;
429
- padding: 0;
430
- margin: 0;
431
- border: none;
432
- margin-left: auto;
433
- line-height: 10px;
434
- cursor: pointer; }
435
- .wc-products-list-card--specific .wc-products-list-card__item .dashicon {
436
- color: #fff; }
437
- .wc-products-list-card--specific .wc-products-list-card__input-wrapper {
438
- margin: 0; }
439
- .wc-products-list-card--specific .wc-products-list-card__results-wrapper--cols-1 .wc-products-list-card__item {
440
- width: 100%; }
441
- .wc-products-list-card--specific .wc-products-list-card__results-wrapper--cols-2 .wc-products-list-card__item {
442
- width: 50%; }
443
- .wc-products-list-card--specific .wc-products-list-card__results-wrapper--cols-3 .wc-products-list-card__item {
444
- width: 33.33333%; }
445
- .wc-products-list-card--specific .wc-products-list-card__results-wrapper--cols-4 .wc-products-list-card__item {
446
- width: 25%; }
447
- .wc-products-list-card--specific .wc-products-list-card__results-wrapper--cols-5 .wc-products-list-card__item {
448
- width: 20%; }
449
- .wc-products-list-card--specific .wc-products-list-card__results-wrapper--cols-6 .wc-products-list-card__item {
450
- width: 16.66667%; }
451
- .wc-products-list-card--specific .wc-products-list-card__results {
452
- max-height: none;
453
- overflow: visible; }
454
- .wc-products-list-card--specific .wc-products-list-card__results h3 {
455
- margin: 0 0 1em;
456
- font-size: 1em; }
457
- .wc-products-list-card--specific .wc-products-list-card__results ul {
458
- display: flex;
459
- flex-wrap: wrap;
460
- margin: 0 -0.5em -1em; }
461
- .wc-products-list-card--specific .wc-products-list-card__results ul li {
462
- border: none;
463
- padding: 0 0.5em;
464
- margin: 0 0 1em; }
465
- .wc-products-list-card--specific .wc-products-list-card__results .wc-products-list-card__content {
466
- position: relative;
467
- display: block;
468
- padding: 0;
469
- background: transparent;
470
- border: none; }
471
-
472
- .wc-products-list-card__search-wrapper {
473
- position: relative;
474
- margin: 0 0 1.5em; }
475
-
476
- .wc-products-list-card__search-results {
477
- width: 100%;
478
- list-style: none;
479
- background: #fff;
480
- margin: -1px 0 0;
481
- border: 1px solid #e6eaee;
482
- box-shadow: 0 1px 3px #e6eaee; }
483
- .wc-products-list-card__search-results > div {
484
- max-height: 175px;
485
- overflow-y: auto; }
486
- .wc-products-list-card__search-results .wc-products-list-card__content {
487
- position: relative;
488
- border-width: 1px 0 0;
489
- border-style: solid;
490
- border-color: #e6eaee;
491
- transition: opacity 0.7s;
492
- cursor: pointer;
493
- color: #00a0d2; }
494
- .wc-products-list-card__search-results .wc-products-list-card__content--added {
495
- background-color: #f7fcff; }
496
- .wc-products-list-card__search-results .wc-products-list-card__content:hover {
497
- background-color: #f7fcff; }
498
- .wc-products-list-card__search-results .wc-products-list-card__content--transition-exit-active {
499
- opacity: 0; }
500
- .wc-products-list-card__search-results .wc-products-list-card__content:first-child {
501
- border-top-width: 0; }
502
- .wc-products-list-card__search-results .wc-products-list-card__content img {
503
- -o-object-fit: cover;
504
- object-fit: cover;
505
- -o-object-position: center;
506
- object-position: center;
507
- width: 2.5em;
508
- height: 2.5em;
509
- margin: 0 1em 0 0; }
510
- .wc-products-list-card__search-results .wc-products-list-card__content .dashicon {
511
- color: #0073aa;
512
- margin-left: auto; }
513
-
514
- .wc-products-list-card__search-wrapper--with-results + .wc-products-list-card__results-wrapper .wc-products-list-card__item img {
515
- outline: none; }
516
-
517
- .wc-products-list-card__search-wrapper--with-results + .wc-products-list-card__results-wrapper .wc-products-list-card__item button {
518
- display: none; }
519
-
520
- .wc-products-list-card__search-no-results {
521
- display: block;
522
- margin: 1em 0 0; }
523
-
524
- .wc-products-list-card__search-no-selected {
525
- display: block;
526
- margin: -0.75em 0 0; }
527
-
528
- .wc-products-list-card__results-wrapper {
529
- position: relative;
530
- overflow: hidden; }
531
-
532
- @media only screen and (min-width: 700px) {
533
- .wc-products-settings-heading {
534
- display: flex;
535
- justify-content: space-between; }
536
- .wc-products-list-card {
537
- max-width: 480px; } }
538
-
539
- /**
540
- * Sidebar area
541
- */
542
- .edit-post-sidebar .wc-products-scope-descriptions {
543
- margin-bottom: 1.5em;
544
- position: relative;
545
- padding-left: 46px;
546
- padding-top: 1em;
547
- padding-bottom: 1.5em;
548
- border-bottom: 1px solid #e6eaee;
549
- display: flex;
550
- justify-content: space-between; }
551
-
552
- .edit-post-sidebar h3 {
553
- font-weight: 500;
554
- margin-bottom: 5px;
555
- color: #555d66; }
556
-
557
- .edit-post-sidebar .scope-description {
558
- font-size: 12px; }
559
-
560
- .edit-post-sidebar .wc-products-scope-description--edit-quicklink {
561
- margin-left: 1em;
562
- min-width: 24px; }
563
- .edit-post-sidebar .wc-products-scope-description--edit-quicklink a {
564
- cursor: pointer; }
565
-
1
+ .wc-products-block-preview{overflow:hidden}.wc-products-block-preview .product-preview{float:left;text-align:center;margin-right:3.8%}.wc-products-block-preview.cols-1 .product-preview{float:none;margin-right:0}.wc-products-block-preview.cols-2 .product-preview{width:48%}.wc-products-block-preview.cols-2 .product-preview:nth-of-type(2n){margin-right:0}.wc-products-block-preview.cols-2 .product-preview:nth-of-type(odd){clear:both}.wc-products-block-preview.cols-3 .product-preview{width:30.75%}.wc-products-block-preview.cols-3 .product-preview:nth-of-type(3n){margin-right:0}.wc-products-block-preview.cols-3 .product-preview:nth-of-type(3n+1){clear:both}.wc-products-block-preview.cols-4 .product-preview{width:22.05%}.wc-products-block-preview.cols-4 .product-preview:nth-of-type(4n){margin-right:0}.wc-products-block-preview.cols-4 .product-preview:nth-of-type(4n+1){clear:both}.wc-products-block-preview.cols-5 .product-preview{width:16.9%}.wc-products-block-preview.cols-5 .product-preview:nth-of-type(5n){margin-right:0}.wc-products-block-preview.cols-5 .product-preview:nth-of-type(5n+1){clear:both}.wc-products-block-preview.cols-5 .product-preview .product-add-to-cart{font-size:.75em}.wc-products-block-preview.cols-6 .product-preview{width:13.5%}.wc-products-block-preview.cols-6 .product-preview:nth-of-type(6n){margin-right:0}.wc-products-block-preview.cols-6 .product-preview:nth-of-type(6n+1){clear:both}.wc-products-block-preview.cols-6 .product-preview .product-add-to-cart{font-size:.75em}.wc-products-block-preview .product-add-to-cart{display:inline-block;background:#ababab;border-radius:1.5em;color:#fff;cursor:pointer;padding:.75em 1.25em;line-height:1.2em;margin-top:.5em;margin-bottom:1em}.editor-block-preview .wc-products-block-preview{min-width:5em}.editor-block-preview .wc-products-block-preview .product-add-to-cart,.editor-block-preview .wc-products-block-preview .product-price,.editor-block-preview .wc-products-block-preview .product-title{font-size:.6em!important}.editor-block-preview .wc-products-block-preview.cols-2{min-width:10em}.editor-block-preview .wc-products-block-preview.cols-3{min-width:15em}.editor-block-preview .wc-products-block-preview.cols-4{min-width:20em}.editor-block-preview .wc-products-block-preview.cols-5{min-width:25em}.editor-block-preview .wc-products-block-preview.cols-6{min-width:30em}.wc-products-settings{background-color:#f8f9f9;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;position:relative}.wc-products-settings__title{margin:0;padding:1.5rem 0;text-align:center;border-bottom:1px solid #e6eaee}.wc-products-settings__title .dashicon{vertical-align:top;margin-right:.25em}.wc-products-settings__footer{margin:2em 0 0;padding:1.5em 0;border-top:1px solid #e6eaee;text-align:center}.wc-products-settings__footer .button{padding-left:1.5em;padding-right:1.5em}.wc-products-display-options--popover+.wc-products-settings__footer,.wc-products-settings-heading+.wc-products-settings__footer{margin-top:-2em;border-top:none}p.wc-products-block-description{margin:2em 0 1.5em;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:1em;text-align:center}.wc-products-display-options{margin:0 0 2.5em}.wc-products-display-options__option{display:flex;align-items:flex-start;flex-wrap:wrap;margin:0 auto;padding:1.25em 1.5em;max-width:80%;background:#fff;border:solid #e6eaee;border-width:1px 1px 0;cursor:pointer}.wc-products-display-options__option:last-of-type{border-bottom-width:1px}.wc-products-display-options__option--attribute,.wc-products-display-options__option--best_selling,.wc-products-display-options__option--featured,.wc-products-display-options__option--on_sale,.wc-products-display-options__option--top_rated{display:none;background-color:#fdfdfd;padding-top:1em;padding-bottom:1em}.wc-products-display-options__option--attribute .wc-products-display-options__option-title,.wc-products-display-options__option--best_selling .wc-products-display-options__option-title,.wc-products-display-options__option--featured .wc-products-display-options__option-title,.wc-products-display-options__option--on_sale .wc-products-display-options__option-title,.wc-products-display-options__option--top_rated .wc-products-display-options__option-title{font-size:1.15em}.wc-products-display-options__option--attribute .wc-products-display-options__icon .dashicon,.wc-products-display-options__option--best_selling .wc-products-display-options__icon .dashicon,.wc-products-display-options__option--featured .wc-products-display-options__icon .dashicon,.wc-products-display-options__option--on_sale .wc-products-display-options__icon .dashicon,.wc-products-display-options__option--top_rated .wc-products-display-options__icon .dashicon{height:20px;width:20px}.wc-products-display-options__option--current{cursor:default}.wc-products-display-options__option--current .wc-products-display-options__option-title{color:#86909b}.wc-products-display-options__option-content{width:85%;align-self:center}.wc-products-display-options__option-title{display:block;font-size:1.25em}p.wc-products-display-options__option-description{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:1em;color:#86909b}.wc-products-display-options__icon{align-self:center;margin-left:auto;color:#b9bcc2}.wc-products-display-options__icon .dashicon{height:25px;width:25px}.wc-products-display-options--popover{position:absolute;right:-2em;max-width:60%;z-index:999;box-shadow:0 2px 10px 0 rgba(0,0,0,.1);margin:-2.15em 0 0}.wc-products-display-options--popover .wc-products-display-options__option{margin:0;max-width:none}.wc-products-display-options--popover__arrow{width:2em;height:1.25em;position:absolute;top:-1.15em;right:30%;overflow:hidden}.wc-products-display-options--popover__arrow:after{content:"";position:absolute;width:1.25em;height:1.25em;background:#fff;transform:rotate(45deg);top:.625em;left:.3125em;box-shadow:0 2px 10px 0 rgba(0,0,0,.1);border:1px solid #e6eaee}.wc-products-display-options--extended .wc-products-display-options__option--attribute,.wc-products-display-options--extended .wc-products-display-options__option--best_selling,.wc-products-display-options--extended .wc-products-display-options__option--featured,.wc-products-display-options--extended .wc-products-display-options__option--on_sale,.wc-products-display-options--extended .wc-products-display-options__option--top_rated{display:flex}.wc-products-display-options--extended:not(.wc-products-display-options--popover) .wc-products-display-options__option--category{border-bottom-width:1px}.wc-products-display-options--extended:not(.wc-products-display-options--popover) .wc-products-display-options__option--filter{margin-top:.5em}.wc-products-display-options--extended:not(.wc-products-display-options--popover) .wc-products-display-options__option--attribute{margin-bottom:.5em;border-bottom-width:1px}.wc-products-settings-heading{margin:0 0 2em;padding:1em 2em;text-align:center;border-bottom:1px solid #e6eaee}.wc-products-list-card{position:relative;margin-left:auto;margin-right:auto;padding:0 1em;overflow:hidden;box-sizing:border-box}.wc-products-list-card .wc-products-list-card__input-wrapper{position:relative;background:#fff;margin:0 0 1em}.wc-products-list-card .wc-products-list-card__input-wrapper .dashicon{position:absolute;top:calc(1em - 1px);left:1em;z-index:1}.wc-products-list-card input[type=search]{position:relative;width:100%;margin:0;padding:1em 1.25em 1em 3em;border-radius:0;background:transparent;border-color:#e6eaee;box-shadow:none;z-index:2}.wc-products-list-card .wc-products-list-card__results{max-height:200px;overflow-y:auto;overflow-x:hidden;box-sizing:border-box}.wc-products-list-card .wc-products-list-card__results ul{list-style:none}.wc-products-list-card .wc-products-list-card__results ul li{margin:0;border:solid #e6eaee;border-width:1px 1px 0}.wc-products-list-card .wc-products-list-card__results ul li:last-child{border-bottom-width:1px}.wc-products-list-card .wc-products-list-card__content{display:flex;align-items:center;flex-direction:row;padding:.75em 1.25em;background:#fff;border-bottom:1px solid #e6eaee}.wc-products-list-card:after{content:"";position:absolute;left:0;bottom:0;width:100%;height:1.5em;background:linear-gradient(hsla(0,0%,100%,.1),#f8f9f9)}.wc-products-list-card--taxonomy .wc-products-list-card__taxonomy-count{text-align:center;width:30px;font-size:.8em;border:1px solid #e9e9e9;border-radius:1em;color:#aaa}.wc-products-list-card--taxonomy input[type=checkbox]{position:relative;margin-top:0;margin-right:.75em;border-radius:0}.wc-products-list-card--taxonomy-category .wc-products-list-card__results{padding-bottom:1.3em}.wc-products-list-card--taxonomy-category .wc-products-list-card__results ul li{margin-top:-1px}.wc-products-list-card--taxonomy-category .wc-products-list-card__results ul li:first-child{margin-top:0}.wc-products-list-card--taxonomy-category .wc-products-list-card__results ul li:last-child{border-bottom-width:0}.wc-products-list-card--taxonomy-category .wc-products-list-card__results ul li ul{display:none;padding:1em 1.25em 1em 3.25em;background:#fdfdfd;border-bottom:1px solid #e6eaee}.wc-products-list-card--taxonomy-category .wc-products-list-card__results ul li ul li{margin-bottom:.25em;border:none}.wc-products-list-card--taxonomy-category .wc-products-list-card__results ul li ul li:last-child{margin-bottom:0}.wc-products-list-card--taxonomy-category .wc-products-list-card__results ul li.wc-products-list-card__accordion-open{margin:.5em 0}.wc-products-list-card--taxonomy-category .wc-products-list-card__results ul li.wc-products-list-card__accordion-open:first-child{margin-top:0}.wc-products-list-card--taxonomy-category .wc-products-list-card__results ul li.wc-products-list-card__accordion-open:last-child{margin-bottom:0}.wc-products-list-card--taxonomy-category .wc-products-list-card__results ul li.wc-products-list-card__accordion-open ul{display:block}.wc-products-list-card--taxonomy-category .wc-products-list-card__results ul li.wc-products-list-card__accordion-open ul li label{display:flex;align-items:center;flex-direction:row}.wc-products-list-card--taxonomy-category .wc-products-list-card__results ul li.wc-products-list-card__accordion-open ul li .wc-products-list-card__taxonomy-count{margin-left:auto}.wc-products-list-card--taxonomy-category .wc-products-list-card__accordion-button{cursor:pointer;color:#666;margin:0 1em 0 auto;padding:0 0 0 .75em;border:none;border-radius:0;background:none;outline:none;text-decoration:none}.wc-products-list-card--taxonomy-category .wc-products-list-card__accordion-button .dashicon{align-self:center;display:flex}.wc-products-list-card--taxonomy-category input[type=checkbox]:indeterminate:before{position:absolute;top:0;bottom:0;right:0;left:0;content:"";margin:42% 20%;width:60%;background:#0073aa}.wc-products-list-card--taxonomy-atributes .wc-products-list-card__results{padding-bottom:1.3em}.wc-products-list-card--taxonomy-atributes .wc-products-list-card__results ul{padding:1em 1.25em 1em 3.25em;background:#fdfdfd;border-bottom:1px solid #e6eaee}.wc-products-list-card--taxonomy-atributes .wc-products-list-card__results ul li{margin-bottom:.25em;border:none}.wc-products-list-card--taxonomy-atributes .wc-products-list-card__results ul li .wc-products-list-card__content{padding:0;background:transparent;border:none}.wc-products-list-card--taxonomy-atributes__atribute{margin:-1px 0 0;border:solid #e6eaee;border-width:1px 1px 0}.wc-products-list-card--taxonomy-atributes__atribute:first-child{margin-top:0}.wc-products-list-card--taxonomy-atributes__atribute.wc-products-list-card__accordion-open{margin-top:.5em;margin-bottom:.5em}.wc-products-list-card--taxonomy-atributes__atribute.wc-products-list-card__accordion-open:first-child{margin-top:0}.wc-products-list-card--taxonomy-atributes__atribute.wc-products-list-card__accordion-open:last-child{margin-bottom:0}.wc-products-list-card--taxonomy-atributes .wc-products-list-card__taxonomy-count{margin-left:auto}.wc-products-list-card--taxonomy-atributes input[type=radio]{position:relative;margin-top:0;margin-right:.75em;border-radius:100%}.wc-products-list-card--specific{overflow:visible}.wc-products-list-card--specific:after{content:none}.wc-products-list-card--specific .wc-products-list-card__item{position:relative;border:none}.wc-products-list-card--specific .wc-products-list-card__item img{margin:0;outline:4px solid #00a0d2;outline-offset:-4px}.wc-products-list-card--specific .wc-products-list-card__item button{position:absolute;top:0;right:0;background:#00a0d2;padding:0;border:none;margin:0 0 0 auto;line-height:10px;cursor:pointer}.wc-products-list-card--specific .wc-products-list-card__item .dashicon{color:#fff}.wc-products-list-card--specific .wc-products-list-card__input-wrapper{margin:0}.wc-products-list-card--specific .wc-products-list-card__results-wrapper--cols-1 .wc-products-list-card__item{width:100%}.wc-products-list-card--specific .wc-products-list-card__results-wrapper--cols-2 .wc-products-list-card__item{width:50%}.wc-products-list-card--specific .wc-products-list-card__results-wrapper--cols-3 .wc-products-list-card__item{width:33.33333%}.wc-products-list-card--specific .wc-products-list-card__results-wrapper--cols-4 .wc-products-list-card__item{width:25%}.wc-products-list-card--specific .wc-products-list-card__results-wrapper--cols-5 .wc-products-list-card__item{width:20%}.wc-products-list-card--specific .wc-products-list-card__results-wrapper--cols-6 .wc-products-list-card__item{width:16.66667%}.wc-products-list-card--specific .wc-products-list-card__results{max-height:none;overflow:visible}.wc-products-list-card--specific .wc-products-list-card__results h3{margin:0 0 1em;font-size:1em}.wc-products-list-card--specific .wc-products-list-card__results ul{display:flex;flex-wrap:wrap;margin:0 -.5em -1em}.wc-products-list-card--specific .wc-products-list-card__results ul li{border:none;padding:0 .5em;margin:0 0 1em}.wc-products-list-card--specific .wc-products-list-card__results .wc-products-list-card__content{position:relative;display:block;padding:0;background:transparent;border:none}.wc-products-list-card__search-wrapper{position:relative;margin:0 0 1.5em}.wc-products-list-card__search-results{width:100%;list-style:none;background:#fff;margin:-1px 0 0;border:1px solid #e6eaee;box-shadow:0 1px 3px #e6eaee}.wc-products-list-card__search-results>div{max-height:175px;overflow-y:auto}.wc-products-list-card__search-results .wc-products-list-card__content{position:relative;border:solid #e6eaee;border-width:1px 0 0;transition:opacity .7s;cursor:pointer;color:#00a0d2}.wc-products-list-card__search-results .wc-products-list-card__content--added,.wc-products-list-card__search-results .wc-products-list-card__content:hover{background-color:#f7fcff}.wc-products-list-card__search-results .wc-products-list-card__content--transition-exit-active{opacity:0}.wc-products-list-card__search-results .wc-products-list-card__content:first-child{border-top-width:0}.wc-products-list-card__search-results .wc-products-list-card__content img{-o-object-fit:cover;object-fit:cover;-o-object-position:center;object-position:center;width:2.5em;height:2.5em;margin:0 1em 0 0}.wc-products-list-card__search-results .wc-products-list-card__content .dashicon{color:#0073aa;margin-left:auto}.wc-products-list-card__search-wrapper--with-results+.wc-products-list-card__results-wrapper .wc-products-list-card__item img{outline:none}.wc-products-list-card__search-wrapper--with-results+.wc-products-list-card__results-wrapper .wc-products-list-card__item button{display:none}.wc-products-list-card__search-no-results{display:block;margin:1em 0 0}.wc-products-list-card__search-no-selected{display:block;margin:-.75em 0 0}.wc-products-list-card__results-wrapper{position:relative;overflow:hidden}@media only screen and (min-width:700px){.wc-products-settings-heading{display:flex;justify-content:space-between}.wc-products-list-card{max-width:480px}}.edit-post-sidebar .wc-products-scope-descriptions{margin-bottom:1.5em;position:relative;padding-left:46px;padding-top:1em;padding-bottom:1.5em;border-bottom:1px solid #e6eaee;display:flex;justify-content:space-between}.edit-post-sidebar h3{font-weight:500;margin-bottom:5px;color:#555d66}.edit-post-sidebar .scope-description{font-size:12px}.edit-post-sidebar .wc-products-scope-description--edit-quicklink{margin-left:1em;min-width:24px}.edit-post-sidebar .wc-products-scope-description--edit-quicklink a{cursor:pointer}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
build/products-block.js CHANGED
@@ -1 +1 @@
1
- !function(e,t){for(var r in t)e[r]=t[r]}(this,function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=748)}({0:function(e,t){!function(){e.exports=this.wp.element}()},107:function(e,t,r){var n=r(135),i=r(136),s=r(137);e.exports=function(e,t){return n(e)||i(e,t)||s()}},12:function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},13:function(e,t){function r(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}e.exports=function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}},135:function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},136:function(e,t){e.exports=function(e,t){var r=[],n=!0,i=!1,s=void 0;try{for(var a,o=e[Symbol.iterator]();!(n=(a=o.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,s=e}finally{try{n||null==o.return||o.return()}finally{if(i)throw s}}return r}},137:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},138:function(e,t){function r(e){return(r="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 n(t){return"function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?e.exports=n=function(e){return r(e)}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)},n(t)}e.exports=n},139:function(e,t){function r(t,n){return e.exports=r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(t,n)}e.exports=r},14:function(e,t,r){var n=r(138),i=r(6);e.exports=function(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?i(e):t}},140:function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var r=t.protocol+"//"+t.host,n=r+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){var i,s=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(s)?e:(i=0===s.indexOf("//")?s:0===s.indexOf("/")?r+s:n+s.replace(/^\.\//,""),"url("+JSON.stringify(i)+")")})}},141:function(e,t){e.exports=function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}},142:function(e,t){e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},143:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},15:function(e,t){function r(t){return e.exports=r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(t)}e.exports=r},16:function(e,t,r){var n=r(139);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&n(e,t)}},37:function(e,t,r){var n=r(141),i=r(142),s=r(143);e.exports=function(e){return n(e)||i(e)||s()}},451:function(e,t){function r(){return e.exports=r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},r.apply(this,arguments)}e.exports=r},462:function(e,t,r){var n=r(463);"string"==typeof n&&(n=[[e.i,n,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};r(69)(n,i);n.locals&&(e.exports=n.locals)},463:function(e,t,r){},6:function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},69:function(e,t,r){var n,i,s={},a=(n=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===i&&(i=n.apply(this,arguments)),i}),o=function(e){var t={};return function(e,r){if("function"==typeof e)return e();if(void 0===t[e]){var n=function(e,t){return t?t.querySelector(e):document.querySelector(e)}.call(this,e,r);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}}(),c=null,l=0,u=[],d=r(140);function p(e,t){for(var r=0;r<e.length;r++){var n=e[r],i=s[n.id];if(i){i.refs++;for(var a=0;a<i.parts.length;a++)i.parts[a](n.parts[a]);for(;a<n.parts.length;a++)i.parts.push(v(n.parts[a],t))}else{var o=[];for(a=0;a<n.parts.length;a++)o.push(v(n.parts[a],t));s[n.id]={id:n.id,refs:1,parts:o}}}}function h(e,t){for(var r=[],n={},i=0;i<e.length;i++){var s=e[i],a=t.base?s[0]+t.base:s[0],o={css:s[1],media:s[2],sourceMap:s[3]};n[a]?n[a].parts.push(o):r.push(n[a]={id:a,parts:[o]})}return r}function f(e,t){var r=o(e.insertInto);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var n=u[u.length-1];if("top"===e.insertAt)n?n.nextSibling?r.insertBefore(t,n.nextSibling):r.appendChild(t):r.insertBefore(t,r.firstChild),u.push(t);else if("bottom"===e.insertAt)r.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var i=o(e.insertAt.before,r);r.insertBefore(t,i)}}function b(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=u.indexOf(e);t>=0&&u.splice(t,1)}function y(e){var t=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var n=function(){0;return r.nc}();n&&(e.attrs.nonce=n)}return m(t,e.attrs),f(e,t),t}function m(e,t){Object.keys(t).forEach(function(r){e.setAttribute(r,t[r])})}function v(e,t){var r,n,i,s;if(t.transform&&e.css){if(!(s="function"==typeof t.transform?t.transform(e.css):t.transform.default(e.css)))return function(){};e.css=s}if(t.singleton){var a=l++;r=c||(c=y(t)),n=w.bind(null,r,a,!1),i=w.bind(null,r,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(r=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",m(t,e.attrs),f(e,t),t}(t),n=function(e,t,r){var n=r.css,i=r.sourceMap,s=void 0===t.convertToAbsoluteUrls&&i;(t.convertToAbsoluteUrls||s)&&(n=d(n));i&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var a=new Blob([n],{type:"text/css"}),o=e.href;e.href=URL.createObjectURL(a),o&&URL.revokeObjectURL(o)}.bind(null,r,t),i=function(){b(r),r.href&&URL.revokeObjectURL(r.href)}):(r=y(t),n=function(e,t){var r=t.css,n=t.media;n&&e.setAttribute("media",n);if(e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}.bind(null,r),i=function(){b(r)});return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else i()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=a()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var r=h(e,t);return p(r,t),function(e){for(var n=[],i=0;i<r.length;i++){var a=r[i];(o=s[a.id]).refs--,n.push(o)}e&&p(h(e,t),t);for(i=0;i<n.length;i++){var o;if(0===(o=n[i]).refs){for(var c=0;c<o.parts.length;c++)o.parts[c]();delete s[o.id]}}}};var g,_=(g=[],function(e,t){return g[e]=t,g.filter(Boolean).join("\n")});function w(e,t,r,n){var i=r?"":n.css;if(e.styleSheet)e.styleSheet.cssText=_(t,i);else{var s=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(s,a[t]):e.appendChild(s)}}},748:function(e,t,r){"use strict";r.r(t);var n=r(107),i=r.n(n),s=r(451),a=r.n(s),o=r(6),c=r.n(o),l=r(12),u=r.n(l),d=r(13),p=r.n(d),h=r(14),f=r.n(h),b=r(15),y=r.n(b),m=r(16),v=r.n(m),g=r(0),_=(r(462),wp.i18n.__),w=wp.element.Component,O=wp.components.Dashicon,k=wp.apiFetch,j={},E=function(e){function t(e){var r;return u()(this,t),(r=f()(this,y()(t).call(this,e))).state={selectedProducts:e.selected_display_setting||[]},r}return v()(t,e),p()(t,[{key:"addOrRemoveProduct",value:function(e){var t=this.state.selectedProducts;t.includes(e)?t=t.filter(function(t){return t!==e}):t.push(e),this.setState({selectedProducts:t}),this.props.update_display_setting_callback(t.slice())}},{key:"render",value:function(){return Object(g.createElement)("div",{className:"wc-products-list-card wc-products-list-card--specific"},Object(g.createElement)(S,{addOrRemoveProductCallback:this.addOrRemoveProduct.bind(this),selectedProducts:this.state.selectedProducts}),Object(g.createElement)(T,{columns:this.props.attributes.columns,productIds:this.state.selectedProducts,addOrRemoveProduct:this.addOrRemoveProduct.bind(this)}))}}]),t}(w),S=function(e){function t(e){var r;return u()(this,t),(r=f()(this,y()(t).call(this,e))).state={searchText:"",dropdownOpen:!1},r.updateSearchResults=r.updateSearchResults.bind(c()(c()(r))),r.setWrapperRef=r.setWrapperRef.bind(c()(c()(r))),r.handleClickOutside=r.handleClickOutside.bind(c()(c()(r))),r.isDropdownOpen=r.isDropdownOpen.bind(c()(c()(r))),r}return v()(t,e),p()(t,[{key:"componentDidMount",value:function(){document.addEventListener("mousedown",this.handleClickOutside)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mousedown",this.handleClickOutside)}},{key:"setWrapperRef",value:function(e){this.wrapperRef=e}},{key:"handleClickOutside",value:function(e){this.wrapperRef&&!this.wrapperRef.contains(e.target)&&this.setState({searchText:""})}},{key:"isDropdownOpen",value:function(e){this.setState({dropdownOpen:!!e})}},{key:"updateSearchResults",value:function(e){this.setState({searchText:e.target.value})}},{key:"render",value:function(){var e="wc-products-list-card__search-wrapper";return Object(g.createElement)("div",{className:e+(this.state.dropdownOpen?" "+e+"--with-results":""),ref:this.setWrapperRef},Object(g.createElement)("div",{className:"wc-products-list-card__input-wrapper"},Object(g.createElement)(O,{icon:"search"}),Object(g.createElement)("input",{type:"search",className:"wc-products-list-card__search",value:this.state.searchText,placeholder:_("Search for products to display"),onChange:this.updateSearchResults})),Object(g.createElement)(x,{searchString:this.state.searchText,addOrRemoveProductCallback:this.props.addOrRemoveProductCallback,selectedProducts:this.props.selectedProducts,isDropdownOpenCallback:this.isDropdownOpen}))}}]),t}(w),x=function(e){function t(e){var r;return u()(this,t),(r=f()(this,y()(t).call(this,e))).state={products:[],query:"",loaded:!1},r.updateResults=r.updateResults.bind(c()(c()(r))),r.getQuery=r.getQuery.bind(c()(c()(r))),r}return v()(t,e),p()(t,[{key:"componentDidMount",value:function(){this.updateResults()}},{key:"componentDidUpdate",value:function(){this.getQuery()!==this.state.query&&this.updateResults()}},{key:"getQuery",value:function(){return this.props.searchString.length?"/wc-pb/v3/products?per_page=10&status=publish&search="+this.props.searchString:""}},{key:"updateResults",value:function(){var e=this,t=this.getQuery();e.setState({query:t,loaded:!1}),t.length?k({path:t}).then(function(r){t===e.getQuery()&&e.setState({products:r,loaded:!0})}):e.setState({products:[],loaded:!0})}},{key:"render",value:function(){if(!this.state.loaded||!this.state.query.length)return null;if(0===this.state.products.length)return Object(g.createElement)("span",{className:"wc-products-list-card__search-no-results"}," ",_("No products found")," ");var e=!0,t=!1,r=void 0;try{for(var n,i=this.state.products[Symbol.iterator]();!(e=(n=i.next()).done);e=!0){var s=n.value;j[s.id]=s}}catch(e){t=!0,r=e}finally{try{e||null==i.return||i.return()}finally{if(t)throw r}}return Object(g.createElement)(C,{products:this.state.products,addOrRemoveProductCallback:this.props.addOrRemoveProductCallback,selectedProducts:this.props.selectedProducts,isDropdownOpenCallback:this.props.isDropdownOpenCallback})}}]),t}(w),C=function(e){function t(){return u()(this,t),f()(this,y()(t).apply(this,arguments))}return v()(t,e),p()(t,[{key:"componentDidMount",value:function(){this.props.isDropdownOpenCallback(!0)}},{key:"componentWillUnmount",value:function(){this.props.isDropdownOpenCallback(!1)}},{key:"render",value:function(){var e=this.props,t=e.products,r=e.addOrRemoveProductCallback,n=e.selectedProducts,i=[],s=!0,a=!1,o=void 0;try{for(var c,l=t[Symbol.iterator]();!(s=(c=l.next()).done);s=!0){var u=c.value;i.push(Object(g.createElement)(P,{product:u,addOrRemoveProductCallback:r,selected:n.includes(u.id)}))}}catch(e){a=!0,o=e}finally{try{s||null==l.return||l.return()}finally{if(a)throw o}}return Object(g.createElement)("div",{role:"menu",className:"wc-products-list-card__search-results","aria-orientation":"vertical","aria-label":_("Products list")},Object(g.createElement)("div",null,i))}}]),t}(w),P=function(e){function t(e){var r;return u()(this,t),(r=f()(this,y()(t).call(this,e))).handleClick=r.handleClick.bind(c()(c()(r))),r}return v()(t,e),p()(t,[{key:"handleClick",value:function(){this.props.addOrRemoveProductCallback(this.props.product.id)}},{key:"render",value:function(){var e=this.props.product,t=this.props.selected?Object(g.createElement)(O,{icon:"yes"}):null;return Object(g.createElement)("div",{className:"wc-products-list-card__content"+(this.props.selected?" wc-products-list-card__content--added":""),onClick:this.handleClick},Object(g.createElement)("img",{src:e.images[0].src,alt:""}),Object(g.createElement)("span",{className:"wc-products-list-card__content-item-name"},e.name),t)}}]),t}(w),T=function(e){function t(e){var r;return u()(this,t),(r=f()(this,y()(t).call(this,e))).state={query:"",loaded:!1},r.updateProductCache=r.updateProductCache.bind(c()(c()(r))),r.getQuery=r.getQuery.bind(c()(c()(r))),r}return v()(t,e),p()(t,[{key:"componentDidMount",value:function(){this.updateProductCache()}},{key:"componentDidUpdate",value:function(){this.state.loaded&&this.getQuery()!==this.state.query&&this.updateProductCache()}},{key:"getQuery",value:function(){if(!this.props.productIds.length)return"";var e=[],t=!0,r=!1,n=void 0;try{for(var i,s=this.props.productIds[Symbol.iterator]();!(t=(i=s.next()).done);t=!0){var a=i.value;j.hasOwnProperty(a)||e.push(a)}}catch(e){r=!0,n=e}finally{try{t||null==s.return||s.return()}finally{if(r)throw n}}return e.length?"/wc-pb/v3/products?include="+e.join(","):""}},{key:"updateProductCache",value:function(){var e=this,t=this.getQuery();e.setState({query:t,loaded:!1}),t.length&&k({path:t}).then(function(t){if(t.length){var r=!0,n=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done);r=!0){var o=s.value;j[o.id]=o}}catch(e){n=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(n)throw i}}}e.setState({loaded:!0})})}},{key:"render",value:function(){var e=this,t=[],r=!0,n=!1,i=void 0;try{for(var s,a=function(){var r=s.value;if(!j.hasOwnProperty(r))return"continue";var n=j[r];t.push(Object(g.createElement)("li",{className:"wc-products-list-card__item",key:n.id+"-specific-select-edit"},Object(g.createElement)("div",{className:"wc-products-list-card__content"},Object(g.createElement)("img",{src:n.images[0].src,alt:""}),Object(g.createElement)("span",{className:"wc-products-list-card__content-item-name"},n.name),Object(g.createElement)("button",{type:"button",id:"product-"+n.id,onClick:function(){e.props.addOrRemoveProduct(n.id)}},Object(g.createElement)(O,{icon:"no-alt"})))))},o=this.props.productIds[Symbol.iterator]();!(r=(s=o.next()).done);r=!0)a()}catch(e){n=!0,i=e}finally{try{r||null==o.return||o.return()}finally{if(n)throw i}}return Object(g.createElement)("div",{className:"wc-products-list-card__results-wrapper wc-products-list-card__results-wrapper--cols-"+this.props.columns},Object(g.createElement)("div",{role:"menu",className:"wc-products-list-card__results","aria-orientation":"vertical","aria-label":_("Selected products")},t.length>0&&Object(g.createElement)("h3",null,_("Selected products")),Object(g.createElement)("ul",null,t)))}}]),t}(w),N=r(37),R=r.n(N),A=wp.i18n.__,Q=wp.element.Component,D=wp.components.Dashicon,I=wp.apiFetch,L=function(e){function t(e){var r;return u()(this,t),(r=f()(this,y()(t).call(this,e))).state={selectedCategories:e.selected_display_setting,openAccordion:[],filterQuery:"",firstLoad:!0},r.checkboxChange=r.checkboxChange.bind(c()(c()(r))),r.accordionToggle=r.accordionToggle.bind(c()(c()(r))),r.filterResults=r.filterResults.bind(c()(c()(r))),r.setFirstLoad=r.setFirstLoad.bind(c()(c()(r))),r}return v()(t,e),p()(t,[{key:"checkboxChange",value:function(e,t){var r,n=this.state.selectedCategories;(n=n.filter(function(e){return!t.includes(e)}),e)&&(r=n).push.apply(r,R()(t));this.setState({selectedCategories:n}),this.props.update_display_setting_callback(n)}},{key:"accordionToggle",value:function(e){var t=this.state.openAccordion;t.includes(e)?t=t.filter(function(t){return t!==e}):t.push(e),this.setState({openAccordion:t})}},{key:"filterResults",value:function(e){this.setState({filterQuery:e.target.value})}},{key:"setFirstLoad",value:function(e){this.setState({firstLoad:!!e})}},{key:"render",value:function(){return Object(g.createElement)("div",{className:"wc-products-list-card wc-products-list-card--taxonomy wc-products-list-card--taxonomy-category"},Object(g.createElement)(M,{filterResults:this.filterResults}),Object(g.createElement)(U,{filterQuery:this.state.filterQuery,selectedCategories:this.state.selectedCategories,checkboxChange:this.checkboxChange,accordionToggle:this.accordionToggle,openAccordion:this.state.openAccordion,firstLoad:this.state.firstLoad,setFirstLoad:this.setFirstLoad}))}}]),t}(Q),M=function(e){var t=e.filterResults;return Object(g.createElement)("div",{className:"wc-products-list-card__input-wrapper"},Object(g.createElement)(D,{icon:"search"}),Object(g.createElement)("input",{className:"wc-products-list-card__search",type:"search",placeholder:A("Search for categories"),onChange:t}))},U=function(e){function t(e){var r;return u()(this,t),(r=f()(this,y()(t).call(this,e))).state={categories:[],loaded:!1,query:""},r.updatePreview=r.updatePreview.bind(c()(c()(r))),r.getQuery=r.getQuery.bind(c()(c()(r))),r}return v()(t,e),p()(t,[{key:"componentDidMount",value:function(){this.getQuery()!==this.state.query&&this.updatePreview()}},{key:"componentDidUpdate",value:function(){this.getQuery()!==this.state.query&&this.state.loaded&&this.updatePreview()}},{key:"getQuery",value:function(){return"/wc-pb/v3/products/categories"}},{key:"updatePreview",value:function(){var e=this,t=this.getQuery();e.setState({loaded:!1}),I({path:t}).then(function(r){e.setState({categories:r,loaded:!0,query:t})})}},{key:"render",value:function(){var e=this.props,t=e.filterQuery,r=e.selectedCategories,n=e.checkboxChange,i=e.accordionToggle,s=e.openAccordion,a=e.firstLoad,o=e.setFirstLoad;if(!this.state.loaded)return A("Loading");if(0===this.state.categories.length)return A("No categories found");var c=function e(t,r){var n=[];return r.filter(function(e){return e.parent===t.id}).forEach(function(t){n.push(t),n.push.apply(n,R()(e(t,r)))}),n},l=function(e){var t=e.category,r=e.categories,n="arrow-down-alt2";s.includes(t.id)&&(n="arrow-up-alt2");var a=null;return function(e,t){return!!c(e,t).length}(t,r)||(a={visibility:"hidden"}),Object(g.createElement)("button",{onClick:function(){return i(t.id)},className:"wc-products-list-card__accordion-button",style:a,type:"button"},Object(g.createElement)(D,{icon:n}))},u=this.state.categories;return""!==t&&(u=u.filter(function(e){return e.slug.includes(t.toLowerCase())})),Object(g.createElement)("div",{className:"wc-products-list-card__results"},Object(g.createElement)(function e(t){var d=t.categories,p=t.parent,h=d.filter(function(e){return e.parent===p});return a&&r.length>0&&(u.filter(function(e){return 0===e.parent}).forEach(function(e){var t=c(e,u),n=!0,a=!1,o=void 0;try{for(var l,d=t[Symbol.iterator]();!(n=(l=d.next()).done);n=!0){var p=l.value;if(r.includes(p.id)&&!s.includes(e.id)){i(e.id);break}}}catch(e){a=!0,o=e}finally{try{n||null==d.return||d.return()}finally{if(a)throw o}}}),o(!1)),h.length>0&&Object(g.createElement)("ul",null,h.map(function(t){return Object(g.createElement)("li",{key:t.id,className:s.includes(t.id)?"wc-products-list-card__item wc-products-list-card__accordion-open":"wc-products-list-card__item"},Object(g.createElement)("label",{className:0===t.parent?"wc-products-list-card__content":"",htmlFor:"product-category-"+t.id},Object(g.createElement)("input",{type:"checkbox",id:"product-category-"+t.id,value:t.id,checked:r.includes(t.id),onChange:function(e){return function(e,t,r){var i=c(t,r).map(function(e){return e.id});i.push(t.id),n(e.target.checked,i)}(e,t,d)},ref:function(e){return e&&(e.indeterminate=function(e,t){if(r.includes(e.id))return!1;var n=c(e,t).map(function(e){return e.id}),i=!0,s=!1,a=void 0;try{for(var o,l=n[Symbol.iterator]();!(i=(o=l.next()).done);i=!0){var u=o.value;if(r.includes(u))return!0}}catch(e){s=!0,a=e}finally{try{i||null==l.return||l.return()}finally{if(s)throw a}}return!1}(t,d))}})," ",t.name,0===t.parent&&Object(g.createElement)(l,{category:t,categories:d}),Object(g.createElement)("span",{className:"wc-products-list-card__taxonomy-count"},t.count)),Object(g.createElement)(e,{categories:d,parent:t.id}))}))},{categories:u,parent:0}))}}]),t}(Q),q=wp.i18n.__,F=wp.element.Component,B=wp.components.Dashicon,W=wp.apiFetch;function H(e,t){return e+","+t}function $(e){return e.split(",")[0]}var G=function(e){function t(e){var r;return u()(this,t),(r=f()(this,y()(t).call(this,e))).state={selectedAttribute:e.selected_display_setting.length?e.selected_display_setting[0]:"",selectedTerms:e.selected_display_setting.length>1?e.selected_display_setting.slice(1):[],filterQuery:""},r.setSelectedAttribute=r.setSelectedAttribute.bind(c()(c()(r))),r.addTerm=r.addTerm.bind(c()(c()(r))),r.removeTerm=r.removeTerm.bind(c()(c()(r))),r}return v()(t,e),p()(t,[{key:"setSelectedAttribute",value:function(e){this.setState({selectedAttribute:e,selectedTerms:[]}),this.props.update_display_setting_callback([e])}},{key:"addTerm",value:function(e){var t=this.state.selectedTerms;t.push(e),this.setState({selectedTerms:t});var r=[this.state.selectedAttribute];r=r.concat(t),this.props.update_display_setting_callback(r)}},{key:"removeTerm",value:function(e){var t=[],r=!0,n=!1,i=void 0;try{for(var s,a=this.state.selectedTerms[Symbol.iterator]();!(r=(s=a.next()).done);r=!0){var o=s.value;o!==e&&t.push(o)}}catch(e){n=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(n)throw i}}this.setState({selectedTerms:t});var c=[this.state.selectedAttribute];c=c.concat(t),this.props.update_display_setting_callback(c)}},{key:"updateFilter",value:function(e){this.setState({filterQuery:e.target.value})}},{key:"render",value:function(){return Object(g.createElement)("div",{className:"wc-products-list-card wc-products-list-card--taxonomy wc-products-list-card--taxonomy-atributes"},Object(g.createElement)(J,{updateFilter:this.updateFilter.bind(this)}),Object(g.createElement)(z,{selectedAttribute:this.state.selectedAttribute,selectedTerms:this.state.selectedTerms,filterQuery:this.state.filterQuery,setSelectedAttribute:this.setSelectedAttribute.bind(this),addTerm:this.addTerm.bind(this),removeTerm:this.removeTerm.bind(this)}))}}]),t}(F),J=function(e){return Object(g.createElement)("div",{className:"wc-products-list-card__input-wrapper"},Object(g.createElement)(B,{icon:"search"}),Object(g.createElement)("input",{className:"wc-products-list-card__search",type:"search",placeholder:q("Search for attributes"),onChange:e.updateFilter}))},z=function(e){function t(e){var r;return u()(this,t),(r=f()(this,y()(t).call(this,e))).state={attributes:[],loaded:!1,query:""},r.updatePreview=r.updatePreview.bind(c()(c()(r))),r.getQuery=r.getQuery.bind(c()(c()(r))),r}return v()(t,e),p()(t,[{key:"componentDidMount",value:function(){this.getQuery()!==this.state.query&&this.updatePreview()}},{key:"componentDidUpdate",value:function(){this.getQuery()!==this.state.query&&this.state.loaded&&this.updatePreview()}},{key:"getQuery",value:function(){return"/wc-pb/v3/products/attributes"}},{key:"updatePreview",value:function(){var e=this,t=this.getQuery();e.setState({loaded:!1}),W({path:t}).then(function(r){e.setState({attributes:r,loaded:!0,query:t})})}},{key:"render",value:function(){var e=this.props,t=e.selectedAttribute,r=e.filterQuery,n=e.selectedTerms,i=e.setSelectedAttribute,s=e.addTerm,a=e.removeTerm;if(!this.state.loaded)return Object(g.createElement)("ul",null,Object(g.createElement)("li",null,q("Loading")));if(0===this.state.attributes.length)return Object(g.createElement)("ul",null,Object(g.createElement)("li",null,q("No attributes found")));var o=r.toLowerCase(),c=[],l=!0,u=!1,d=void 0;try{for(var p,h=this.state.attributes[Symbol.iterator]();!(l=(p=h.next()).done);l=!0){var f=p.value;o.length&&-1===f.name.toLowerCase().indexOf(o)||c.push(Object(g.createElement)(K,{attribute:f,selectedAttribute:t,selectedTerms:n,setSelectedAttribute:i,addTerm:s,removeTerm:a}))}}catch(e){u=!0,d=e}finally{try{l||null==h.return||h.return()}finally{if(u)throw d}}return Object(g.createElement)("div",{className:"wc-products-list-card__results"},c)}}]),t}(F),K=function(e){function t(e){var r;return u()(this,t),(r=f()(this,y()(t).call(this,e))).handleAttributeChange=r.handleAttributeChange.bind(c()(c()(r))),r.handleTermChange=r.handleTermChange.bind(c()(c()(r))),r}return v()(t,e),p()(t,[{key:"handleAttributeChange",value:function(e){e.target.checked&&this.props.setSelectedAttribute(e.target.value)}},{key:"handleTermChange",value:function(e){e.target.checked?this.props.addTerm(e.target.value):this.props.removeTerm(e.target.value)}},{key:"render",value:function(){var e=this.props.selectedAttribute===H(this.props.attribute.slug,this.props.attribute.id),t=null;e&&(t=Object(g.createElement)(V,{attribute:this.props.attribute,selectedTerms:this.props.selectedTerms,addTerm:this.props.addTerm,removeTerm:this.props.removeTerm}));var r=["wc-products-list-card--taxonomy-atributes__atribute"];e&&r.push("wc-products-list-card__accordion-open");var n=H(this.props.attribute.slug,this.props.attribute.id);return Object(g.createElement)("div",{className:r.join(" ")},Object(g.createElement)("div",null,Object(g.createElement)("label",{className:"wc-products-list-card__content",htmlFor:"attribute-".concat(n)},Object(g.createElement)("input",{type:"radio",id:"attribute-".concat(n),value:n,onChange:this.handleAttributeChange,checked:e}),this.props.attribute.name)),t)}}]),t}(F),V=function(e){function t(e){var r;return u()(this,t),(r=f()(this,y()(t).call(this,e))).state={terms:[],loaded:!1,query:""},r.updatePreview=r.updatePreview.bind(c()(c()(r))),r.getQuery=r.getQuery.bind(c()(c()(r))),r}return v()(t,e),p()(t,[{key:"componentDidMount",value:function(){this.getQuery()!==this.state.query&&this.updatePreview()}},{key:"componentDidUpdate",value:function(){this.getQuery()!==this.state.query&&this.state.loaded&&this.updatePreview()}},{key:"getQuery",value:function(){return"/wc-pb/v3/products/attributes/"+this.props.attribute.id+"/terms"}},{key:"updatePreview",value:function(){var e=this,t=this.getQuery();e.setState({loaded:!1}),W({path:t}).then(function(r){e.setState({terms:r,loaded:!0,query:t})})}},{key:"render",value:function(){var e=this.props,t=e.selectedTerms,r=e.addTerm,n=e.removeTerm;if(!this.state.loaded)return Object(g.createElement)("ul",null,Object(g.createElement)("li",null,q("Loading")));if(0===this.state.terms.length)return Object(g.createElement)("ul",null,Object(g.createElement)("li",null,q("No terms found")));function i(e){e.target.checked?r(e.target.value):n(e.target.value)}return Object(g.createElement)("ul",null,this.state.terms.map(function(e,r){return Object(g.createElement)("li",{className:"wc-products-list-card__item",key:r},Object(g.createElement)("label",{className:"wc-products-list-card__content",htmlFor:"term-".concat(e.id)},Object(g.createElement)("input",{type:"checkbox",id:"term-".concat(e.id),value:e.id,onChange:i,checked:t.includes(String(e.id))}),e.name,Object(g.createElement)("span",{className:"wc-products-list-card__taxonomy-count"},e.count)))}))}}]),t}(F);r.d(t,"ProductPreview",function(){return ve});var X=wp.i18n.__,Y=wp.element,Z=Y.Component,ee=Y.RawHTML,te=wp.blocks.registerBlockType,re=wp.editor,ne=re.InspectorControls,ie=re.BlockControls,se=wp.components,ae=se.Toolbar,oe=se.Button,ce=se.Dashicon,le=se.RangeControl,ue=se.Tooltip,de=se.SelectControl,pe=wp.apiFetch,he={specific:{title:X("Individual products"),description:X("Hand-pick which products to display"),value:"specific"},category:{title:X("Product category"),description:X("Display products from a specific category or multiple categories"),value:"category"},filter:{title:X("Filter products"),description:X("E.g. featured products, or products with a specific attribute like size or color"),value:"filter",group_container:"filter"},featured:{title:X("Featured products"),description:"",value:"featured"},on_sale:{title:X("On sale"),description:"",value:"on_sale"},best_selling:{title:X("Best sellers"),description:"",value:"best_selling",no_orderby:!0},top_rated:{title:X("Top rated"),description:"",value:"top_rated",no_orderby:!0},attribute:{title:X("Attribute"),description:"",value:"attribute"},all:{title:X("All products"),description:X("Display all products ordered chronologically, alphabetically, by price, by rating or by sales"),value:"all"}};function fe(e){return!(he.hasOwnProperty(e)&&he[e].hasOwnProperty("no_orderby")&&he[e].no_orderby)}var be=function(e){function t(){return u()(this,t),f()(this,y()(t).apply(this,arguments))}return v()(t,e),p()(t,[{key:"render",value:function(){var e=this,t="arrow-right-alt2";"filter"===this.props.value&&this.props.extended&&(t="arrow-down-alt2");var r="wc-products-display-options__option wc-products-display-options__option--"+this.props.value;return this.props.current===this.props.value&&(t="yes",r+=" wc-products-display-options__option--current"),Object(g.createElement)("div",{className:r,onClick:function(){e.props.current!==e.props.value&&e.props.update_display_callback(e.props.value)}},Object(g.createElement)("div",{className:"wc-products-display-options__option-content"},Object(g.createElement)("span",{className:"wc-products-display-options__option-title"},this.props.title),Object(g.createElement)("p",{className:"wc-products-display-options__option-description"},this.props.description)),Object(g.createElement)("div",{className:"wc-products-display-options__icon"},Object(g.createElement)(ce,{icon:t})))}}]),t}(Z),ye=function(e){function t(e){var r;return u()(this,t),(r=f()(this,y()(t).call(this,e))).setWrapperRef=r.setWrapperRef.bind(c()(c()(r))),r.handleClickOutside=r.handleClickOutside.bind(c()(c()(r))),r}return v()(t,e),p()(t,[{key:"componentDidMount",value:function(){this.props.existing&&document.addEventListener("mousedown",this.handleClickOutside)}},{key:"componentWillUnmount",value:function(){this.props.existing&&document.removeEventListener("mousedown",this.handleClickOutside)}},{key:"setWrapperRef",value:function(e){this.wrapperRef=e}},{key:"handleClickOutside",value:function(e){this.wrapperRef&&!this.wrapperRef.contains(e.target)&&"wc-products-settings-heading__change-button button-link"!==e.target.getAttribute("class")&&this.props.closeMenu()}},{key:"render",value:function(){var e="wc-products-display-options";this.props.extended&&(e+=" wc-products-display-options--extended"),this.props.existing&&(e+=" wc-products-display-options--popover");var t=[];for(var r in he)t.push(Object(g.createElement)(be,a()({},he[r],{update_display_callback:this.props.update_display_callback,extended:this.props.extended,current:this.props.current,key:r})));var n=Object(g.createElement)("span",{className:"wc-products-display-options--popover__arrow"}),i=Object(g.createElement)("p",{className:"wc-products-block-description"},X("Choose which products you'd like to display:"));return Object(g.createElement)("div",{className:e,ref:this.setWrapperRef},this.props.existing&&n,!this.props.existing&&i,t)}}]),t}(Z),me=function(e){function t(e){var r;return u()(this,t),(r=f()(this,y()(t).call(this,e))).state={display:e.selected_display,menu_visible:!e.selected_display,expanded_group:""},r.updateDisplay=r.updateDisplay.bind(c()(c()(r))),r.closeMenu=r.closeMenu.bind(c()(c()(r))),r}return v()(t,e),p()(t,[{key:"updateDisplay",value:function(e){var t={display:e,menu_visible:!1,expanded_group:""},r="undefined"!==he[e].group_container&&he[e].group_container;r&&(t={menu_visible:!0,expanded_group:e},this.state.expanded_group===he[e].group_container&&(t.expanded_group="")),this.setState(t),r||this.props.update_display_callback(e)}},{key:"closeMenu",value:function(){this.setState({menu_visible:!1})}},{key:"render",value:function(){var e=this,t=null;"specific"===this.state.display?t=Object(g.createElement)(E,this.props):"category"===this.state.display?t=Object(g.createElement)(L,this.props):"attribute"===this.state.display&&(t=Object(g.createElement)(G,this.props));var r=this.state.menu_visible?Object(g.createElement)(ye,{extended:!!this.state.expanded_group,existing:!!this.state.display,current:this.state.display,closeMenu:this.closeMenu,update_display_callback:this.updateDisplay}):null,n=null;if(this.state.display){var i=["featured","on_sale","attribute","best_selling","top_rated"].includes(this.state.display)?this.state.display:"",s=Object(g.createElement)("button",{type:"button",className:"wc-products-settings-heading__change-button button-link",onClick:function(){e.setState({menu_visible:!e.state.menu_visible,expanded_group:i})}},X("Display different products"));n=Object(g.createElement)("div",{className:"wc-products-settings-heading"},Object(g.createElement)("div",{className:"wc-products-settings-heading__current"},X("Displaying "),Object(g.createElement)("strong",null,X(he[this.state.display].title))),Object(g.createElement)("div",{className:"wc-products-settings-heading__change"},s))}var a=Object(g.createElement)("button",{type:"button",className:"button wc-products-settings__footer-button",onClick:this.props.done_callback},X("Done"));if(["","specific","category","attribute"].includes(this.state.display)&&!this.props.selected_display_setting.length){var o={"":X("Please select which products you'd like to display"),specific:X("Please search for and select products to display"),category:X("Please select at least one category to display"),attribute:X("Please select an attribute")};a=Object(g.createElement)(ue,{text:o[this.state.display]},Object(g.createElement)("button",{type:"button",className:"button wc-products-settings__footer-button disabled"},X("Done")))}return Object(g.createElement)("div",{className:"wc-products-settings "+(this.state.expanded_group?"expanded-group-"+this.state.expanded_group:"")},Object(g.createElement)("h4",{className:"wc-products-settings__title"},Object(g.createElement)(ce,{icon:"screenoptions"})," ",X("Products")),n,r,t,Object(g.createElement)("div",{className:"wc-products-settings__footer"},a))}}]),t}(Z),ve=function(e){function t(){return u()(this,t),f()(this,y()(t).apply(this,arguments))}return v()(t,e),p()(t,[{key:"render",value:function(){var e=this.props.product,t=null;return e.images.length&&(t=Object(g.createElement)("img",{src:e.images[0].src,alt:""})),Object(g.createElement)("div",{className:"product-preview",key:e.id+"-preview"},t,Object(g.createElement)("div",{className:"product-title"},e.name),Object(g.createElement)("div",{className:"product-price",dangerouslySetInnerHTML:{__html:e.price_html}}),Object(g.createElement)("span",{className:"product-add-to-cart"},X("Add to cart")))}}]),t}(Z),ge=function(e){function t(e){var r;return u()(this,t),(r=f()(this,y()(t).call(this,e))).state={products:[],loaded:!1,query:""},r.updatePreview=r.updatePreview.bind(c()(c()(r))),r.getQuery=r.getQuery.bind(c()(c()(r))),r}return v()(t,e),p()(t,[{key:"componentDidMount",value:function(){this.updatePreview()}},{key:"componentDidUpdate",value:function(){this.getQuery()!==this.state.query&&this.state.loaded&&this.updatePreview()}},{key:"getQuery",value:function(){var e=this.props.attributes,t=e.columns,r=e.rows,n=e.display,i=e.display_setting,s=e.orderby,a={status:"publish",per_page:r*t};"specific"===n?(a.include=i.join(","),a.per_page=i.length):"category"===n?a.category=i.join(","):"attribute"===n&&i.length?(a.attribute=$(i[0]),i.length>1&&(a.attribute_term=i.slice(1).join(","))):"featured"===n?a.featured=1:"on_sale"===n&&(a.on_sale=1),fe(n)&&("price_desc"===s?(a.orderby="price",a.order="desc"):"price_asc"===s?(a.orderby="price",a.order="asc"):"title"===s?(a.orderby="title",a.order="asc"):a.orderby=s);for(var o="?",c=Object.keys(a),l=0;l<c.length;l++){var u=c[l];o+=u+"="+a[u]+"&"}return"/wc-pb/v3/products"+o}},{key:"updatePreview",value:function(){var e=this,t=this.getQuery();e.setState({loaded:!1,query:t}),pe({path:t}).then(function(t){e.setState({products:t,loaded:!0})})}},{key:"render",value:function(){if(!this.state.loaded)return X("Loading");if(0===this.state.products.length)return X("No products found");var e="wc-products-block-preview cols-"+this.props.attributes.columns,t=this;return Object(g.createElement)("div",{className:e},this.state.products.map(function(e){return Object(g.createElement)(ve,{key:e.id,product:e,attributes:t.props.attributes})}))}}]),t}(Z),_e=function(e){function t(e){var r;return u()(this,t),(r=f()(this,y()(t).call(this,e))).state={categoriesInfo:[],categoriesQuery:"",attributeInfo:!1,attributeQuery:"",termsInfo:[],termsQuery:""},r.updateInfo=r.updateInfo.bind(c()(c()(r))),r.getQueries=r.getQueries.bind(c()(c()(r))),r}return v()(t,e),p()(t,[{key:"componentDidMount",value:function(){this.updateInfo()}},{key:"componentDidUpdate",value:function(){var e=this.getQueries();this.state.categoriesQuery===e.categories&&this.state.attributeQuery===e.attribute&&this.state.termsQuery===e.terms||this.updateInfo()}},{key:"getQueries",value:function(){var e=this.props.attributes,t=e.display,r=e.display_setting,n={attribute:"",terms:"",categories:""};if("attribute"===t&&r.length){var i=r[0].split(",")[1],s=r.slice(1).join(", ");n.attribute="/wc-pb/v3/products/attributes/"+i,s.length&&(n.terms="/wc-pb/v3/products/attributes/"+i+"/terms?include="+s)}else"category"===t&&r.length&&(n.categories="/wc-pb/v3/products/categories?include="+r.join(","));return n}},{key:"updateInfo",value:function(){var e=this,t=this.getQueries();this.setState({categoriesQuery:t.categories,attributeQuery:t.attribute,termsQuery:t.terms}),t.categories.length?pe({path:t.categories}).then(function(t){e.setState({categoriesInfo:t})}):e.setState({categoriesInfo:[]}),t.attribute.length?pe({path:t.attribute}).then(function(t){e.setState({attributeInfo:t})}):e.setState({attributeInfo:!1}),t.terms.length?pe({path:t.terms}).then(function(t){e.setState({termsInfo:t})}):e.setState({termsInfo:[]})}},{key:"render",value:function(){var e=[he[this.props.attributes.display].title];if(this.state.categoriesInfo.length){var t=X("Product categories: "),r=[],n=!0,i=!1,s=void 0;try{for(var a,o=this.state.categoriesInfo[Symbol.iterator]();!(n=(a=o.next()).done);n=!0){var c=a.value;r.push(c.name)}}catch(e){i=!0,s=e}finally{try{n||null==o.return||o.return()}finally{if(i)throw s}}e=[t+=r.join(", ")]}else if(this.state.attributeInfo&&(e=[X("Attribute: ")+this.state.attributeInfo.name],this.state.termsInfo.length)){var l=X("Terms: "),u=[],d=!0,p=!1,h=void 0;try{for(var f,b=this.state.termsInfo[Symbol.iterator]();!(d=(f=b.next()).done);d=!0){var y=f.value;u.push(y.name)}}catch(e){p=!0,h=e}finally{try{d||null==b.return||b.return()}finally{if(p)throw h}}l+=u.join(", "),e.push(l)}return Object(g.createElement)("div",null,e.map(function(e,t){return Object(g.createElement)("div",{className:"scope-description",key:t},e)}))}}]),t}(Z),we=function(e){function t(e){var r;return u()(this,t),(r=f()(this,y()(t).call(this,e))).getInspectorControls=r.getInspectorControls.bind(c()(c()(r))),r.getToolbarControls=r.getToolbarControls.bind(c()(c()(r))),r.getBlockDescription=r.getBlockDescription.bind(c()(c()(r))),r.getPreview=r.getPreview.bind(c()(c()(r))),r.getSettingsEditor=r.getSettingsEditor.bind(c()(c()(r))),r}return v()(t,e),p()(t,[{key:"getInspectorControls",value:function(){var e=this.props,t=e.attributes,r=e.setAttributes,n=t.rows,i=t.columns,s=t.display,a=t.orderby,o=Object(g.createElement)(le,{label:X("Columns"),value:i,onChange:function(e){return r({columns:e})},min:wc_product_block_data.min_columns,max:wc_product_block_data.max_columns}),c=null;fe(s)&&(c=Object(g.createElement)(de,{key:"query-panel-select",label:X("Order Products By"),value:a,options:[{label:X("Newness - newest first"),value:"date"},{label:X("Price - low to high"),value:"price_asc"},{label:X("Price - high to low"),value:"price_desc"},{label:X("Rating - highest first"),value:"rating"},{label:X("Sales - most first"),value:"popularity"},{label:X("Title - alphabetical"),value:"title"}],onChange:function(e){return r({orderby:e})}}));var l=null;return"specific"!==s&&(l=Object(g.createElement)(le,{label:X("Rows"),value:n,onChange:function(e){return r({rows:e})},min:wc_product_block_data.min_rows,max:wc_product_block_data.max_rows})),Object(g.createElement)(ne,{key:"inspector"},this.getBlockDescription(),Object(g.createElement)("h3",null,X("Layout")),o,l,c)}},{key:"getToolbarControls",value:function(){var e=this.props,t=e.attributes,r=e.setAttributes,n=t.display,i=t.display_setting,s=t.edit_mode,a=["","specific","category","attribute"].includes(n)&&!i.length,o=[{icon:"edit",title:X("Edit"),onClick:a?function(){}:function(){return r({edit_mode:!s})},isActive:s}];return Object(g.createElement)(ie,{key:"controls"},Object(g.createElement)(ae,{controls:o}))}},{key:"getBlockDescription",value:function(){var e=this.props,t=e.attributes,r=e.setAttributes;if(!t.display.length)return null;var n=null;return t.edit_mode||(n=Object(g.createElement)("div",{className:"wc-products-scope-description--edit-quicklink"},Object(g.createElement)(oe,{isLink:!0,onClick:function(){r({edit_mode:!0})}},X("Edit")))),Object(g.createElement)("div",{className:"wc-products-scope-descriptions"},Object(g.createElement)("div",{className:"wc-products-scope-details"},Object(g.createElement)("h3",null,X("Current Source")),Object(g.createElement)(_e,{attributes:t})),n)}},{key:"getPreview",value:function(){return Object(g.createElement)(ge,{key:"preview",attributes:this.props.attributes})}},{key:"getSettingsEditor",value:function(){var e=this.props,t=e.attributes,r=e.setAttributes,n=t.display,i=t.display_setting;return Object(g.createElement)(me,{key:"settings-editor",attributes:t,selected_display:n,selected_display_setting:i,update_display_callback:function(e){n!==e&&r({display:e,display_setting:[],edit_mode:["specific","attribute","category"].includes(e)})},update_display_setting_callback:function(e){return r({display_setting:e})},done_callback:function(){return r({edit_mode:!1})}})}},{key:"render",value:function(){var e=this.props.attributes.edit_mode;return[this.getInspectorControls(),this.getToolbarControls(),e?this.getSettingsEditor():this.getPreview()]}}]),t}(Z);te("woocommerce/products",{title:X("Products"),icon:"screenoptions",category:"widgets",description:X("Display a grid of products from a variety of sources."),attributes:{columns:{type:"number",default:wc_product_block_data.default_columns},rows:{type:"number",default:wc_product_block_data.default_rows},display:{type:"string",default:""},display_setting:{type:"array",default:[]},orderby:{type:"string",default:"date"},edit_mode:{type:"boolean",default:!0}},edit:function(e){return Object(g.createElement)(we,e)},save:function(e){var t=e.attributes,r=t.rows,n=t.columns,s=t.display,a=t.display_setting,o=t.orderby,c=new Map;if("specific"!==s&&c.set("limit",r*n),c.set("columns",n),"specific"===s)c.set("ids",a.join(","));else if("category"===s)c.set("category",a.join(","));else if("featured"===s)c.set("visibility","featured");else if("on_sale"===s)c.set("on_sale","1");else if("best_selling"===s)c.set("best_selling","1");else if("top_rated"===s)c.set("top_rated","1");else if("attribute"===s){var l=a.length?$(a[0]):"",u=a.length>1?a.slice(1).join(","):"";c.set("attribute",l),u.length&&c.set("terms",u)}fe(s)&&("price_desc"===o?(c.set("orderby","price"),c.set("order","DESC")):"price_asc"===o?(c.set("orderby","price"),c.set("order","ASC")):"date"===o?(c.set("orderby","date"),c.set("order","DESC")):c.set("orderby",o));var d="[products",p=!0,h=!1,f=void 0;try{for(var b,y=c[Symbol.iterator]();!(p=(b=y.next()).done);p=!0){var m=i()(b.value,2);d+=" "+m[0]+'="'+m[1]+'"'}}catch(e){h=!0,f=e}finally{try{p||null==y.return||y.return()}finally{if(h)throw f}}return d+="]",Object(g.createElement)(ee,null,d)}})}}));
1
+ !function(e,t){for(var r in t)e[r]=t[r]}(this,function(e){function t(t){for(var s,a,c=t[0],o=t[1],l=t[2],d=0,p=[];d<c.length;d++)a=c[d],i[a]&&p.push(i[a][0]),i[a]=0;for(s in o)Object.prototype.hasOwnProperty.call(o,s)&&(e[s]=o[s]);for(u&&u(t);p.length;)p.shift()();return n.push.apply(n,l||[]),r()}function r(){for(var e,t=0;t<n.length;t++){for(var r=n[t],s=!0,c=1;c<r.length;c++){var o=r[c];0!==i[o]&&(s=!1)}s&&(n.splice(t--,1),e=a(a.s=r[0]))}return e}var s={},i={8:0},n=[];function a(t){if(s[t])return s[t].exports;var r=s[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,a),r.l=!0,r.exports}a.m=e,a.c=s,a.d=function(e,t,r){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(a.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)a.d(r,s,function(t){return e[t]}.bind(null,s));return r},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="";var c=window.webpackJsonp=window.webpackJsonp||[],o=c.push.bind(c);c.push=t,c=c.slice();for(var l=0;l<c.length;l++)t(c[l]);var u=o;return n.push([870,0]),r()}({0:function(e,t){!function(){e.exports=this.wp.element}()},540:function(e,t,r){var s=r(541);"string"==typeof s&&(s=[[e.i,s,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};r(28)(s,i);s.locals&&(e.exports=s.locals)},541:function(e,t,r){},870:function(e,t,r){"use strict";r.r(t);var s=r(171),i=r.n(s),n=r(27),a=r.n(n),c=r(5),o=r.n(c),l=r(8),u=r.n(l),d=r(9),p=r.n(d),h=r(10),m=r.n(h),b=r(11),f=r.n(b),y=r(12),v=r.n(y),g=r(0),_=(r(540),wp.i18n.__),w=wp.element.Component,k=wp.components.Dashicon,O=wp.apiFetch,j={},E=function(e){function t(e){var r;return u()(this,t),(r=m()(this,f()(t).call(this,e))).state={selectedProducts:e.selected_display_setting||[]},r}return v()(t,e),p()(t,[{key:"addOrRemoveProduct",value:function(e){var t=this.state.selectedProducts;t.includes(e)?t=t.filter(function(t){return t!==e}):t.push(e),this.setState({selectedProducts:t}),this.props.update_display_setting_callback(t.slice())}},{key:"render",value:function(){return Object(g.createElement)("div",{className:"wc-products-list-card wc-products-list-card--specific"},Object(g.createElement)(C,{addOrRemoveProductCallback:this.addOrRemoveProduct.bind(this),selectedProducts:this.state.selectedProducts}),Object(g.createElement)(T,{columns:this.props.attributes.columns,productIds:this.state.selectedProducts,addOrRemoveProduct:this.addOrRemoveProduct.bind(this)}))}}]),t}(w),C=function(e){function t(e){var r;return u()(this,t),(r=m()(this,f()(t).call(this,e))).state={searchText:"",dropdownOpen:!1},r.updateSearchResults=r.updateSearchResults.bind(o()(o()(r))),r.setWrapperRef=r.setWrapperRef.bind(o()(o()(r))),r.handleClickOutside=r.handleClickOutside.bind(o()(o()(r))),r.isDropdownOpen=r.isDropdownOpen.bind(o()(o()(r))),r}return v()(t,e),p()(t,[{key:"componentDidMount",value:function(){document.addEventListener("mousedown",this.handleClickOutside)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mousedown",this.handleClickOutside)}},{key:"setWrapperRef",value:function(e){this.wrapperRef=e}},{key:"handleClickOutside",value:function(e){this.wrapperRef&&!this.wrapperRef.contains(e.target)&&this.setState({searchText:""})}},{key:"isDropdownOpen",value:function(e){this.setState({dropdownOpen:!!e})}},{key:"updateSearchResults",value:function(e){this.setState({searchText:e.target.value})}},{key:"render",value:function(){var e="wc-products-list-card__search-wrapper";return Object(g.createElement)("div",{className:e+(this.state.dropdownOpen?" "+e+"--with-results":""),ref:this.setWrapperRef},Object(g.createElement)("div",{className:"wc-products-list-card__input-wrapper"},Object(g.createElement)(k,{icon:"search"}),Object(g.createElement)("input",{type:"search",className:"wc-products-list-card__search",value:this.state.searchText,placeholder:_("Search for products to display"),onChange:this.updateSearchResults})),Object(g.createElement)(S,{searchString:this.state.searchText,addOrRemoveProductCallback:this.props.addOrRemoveProductCallback,selectedProducts:this.props.selectedProducts,isDropdownOpenCallback:this.isDropdownOpen}))}}]),t}(w),S=function(e){function t(e){var r;return u()(this,t),(r=m()(this,f()(t).call(this,e))).state={products:[],query:"",loaded:!1},r.updateResults=r.updateResults.bind(o()(o()(r))),r.getQuery=r.getQuery.bind(o()(o()(r))),r}return v()(t,e),p()(t,[{key:"componentDidMount",value:function(){this.updateResults()}},{key:"componentDidUpdate",value:function(){this.getQuery()!==this.state.query&&this.updateResults()}},{key:"getQuery",value:function(){return this.props.searchString.length?"/wc-pb/v3/products?per_page=10&status=publish&search="+this.props.searchString:""}},{key:"updateResults",value:function(){var e=this,t=this.getQuery();e.setState({query:t,loaded:!1}),t.length?O({path:t}).then(function(r){t===e.getQuery()&&e.setState({products:r,loaded:!0})}):e.setState({products:[],loaded:!0})}},{key:"render",value:function(){if(!this.state.loaded||!this.state.query.length)return null;if(0===this.state.products.length)return Object(g.createElement)("span",{className:"wc-products-list-card__search-no-results"}," ",_("No products found")," ");var e=!0,t=!1,r=void 0;try{for(var s,i=this.state.products[Symbol.iterator]();!(e=(s=i.next()).done);e=!0){var n=s.value;j[n.id]=n}}catch(e){t=!0,r=e}finally{try{e||null==i.return||i.return()}finally{if(t)throw r}}return Object(g.createElement)(P,{products:this.state.products,addOrRemoveProductCallback:this.props.addOrRemoveProductCallback,selectedProducts:this.props.selectedProducts,isDropdownOpenCallback:this.props.isDropdownOpenCallback})}}]),t}(w),P=function(e){function t(){return u()(this,t),m()(this,f()(t).apply(this,arguments))}return v()(t,e),p()(t,[{key:"componentDidMount",value:function(){this.props.isDropdownOpenCallback(!0)}},{key:"componentWillUnmount",value:function(){this.props.isDropdownOpenCallback(!1)}},{key:"render",value:function(){var e=this.props,t=e.products,r=e.addOrRemoveProductCallback,s=e.selectedProducts,i=[],n=!0,a=!1,c=void 0;try{for(var o,l=t[Symbol.iterator]();!(n=(o=l.next()).done);n=!0){var u=o.value;i.push(Object(g.createElement)(x,{product:u,addOrRemoveProductCallback:r,selected:s.includes(u.id),key:u.id}))}}catch(e){a=!0,c=e}finally{try{n||null==l.return||l.return()}finally{if(a)throw c}}return Object(g.createElement)("div",{role:"menu",className:"wc-products-list-card__search-results","aria-orientation":"vertical","aria-label":_("Products list")},Object(g.createElement)("div",null,i))}}]),t}(w),x=function(e){function t(e){var r;return u()(this,t),(r=m()(this,f()(t).call(this,e))).handleClick=r.handleClick.bind(o()(o()(r))),r}return v()(t,e),p()(t,[{key:"handleClick",value:function(){this.props.addOrRemoveProductCallback(this.props.product.id)}},{key:"render",value:function(){var e=this.props.product,t=this.props.selected?Object(g.createElement)(k,{icon:"yes"}):null,r=0!==e.images.length?Object(g.createElement)("img",{src:e.images[0].src,alt:e.name}):null;return Object(g.createElement)("div",{className:"wc-products-list-card__content"+(this.props.selected?" wc-products-list-card__content--added":""),onClick:this.handleClick},r,Object(g.createElement)("span",{className:"wc-products-list-card__content-item-name"},e.name),t)}}]),t}(w),T=function(e){function t(e){var r;return u()(this,t),(r=m()(this,f()(t).call(this,e))).state={query:"",loaded:!1},r.updateProductCache=r.updateProductCache.bind(o()(o()(r))),r.getQuery=r.getQuery.bind(o()(o()(r))),r}return v()(t,e),p()(t,[{key:"componentDidMount",value:function(){this.updateProductCache()}},{key:"componentDidUpdate",value:function(){this.state.loaded&&this.getQuery()!==this.state.query&&this.updateProductCache()}},{key:"getQuery",value:function(){if(!this.props.productIds.length)return"";var e=[],t=!0,r=!1,s=void 0;try{for(var i,n=this.props.productIds[Symbol.iterator]();!(t=(i=n.next()).done);t=!0){var a=i.value;j.hasOwnProperty(a)||e.push(a)}}catch(e){r=!0,s=e}finally{try{t||null==n.return||n.return()}finally{if(r)throw s}}return e.length?"/wc-pb/v3/products?include="+e.join(","):""}},{key:"updateProductCache",value:function(){var e=this,t=this.getQuery();e.setState({query:t,loaded:!1}),t.length&&O({path:t}).then(function(t){if(t.length){var r=!0,s=!1,i=void 0;try{for(var n,a=t[Symbol.iterator]();!(r=(n=a.next()).done);r=!0){var c=n.value;j[c.id]=c}}catch(e){s=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(s)throw i}}}e.setState({loaded:!0})})}},{key:"render",value:function(){var e=this,t=[],r=!0,s=!1,i=void 0;try{for(var n,a=function(){var r=n.value;if(!j.hasOwnProperty(r))return"continue";var s=j[r],i=0!==s.images.length?Object(g.createElement)("img",{src:s.images[0].src,alt:s.name}):null;t.push(Object(g.createElement)("li",{className:"wc-products-list-card__item",key:s.id+"-specific-select-edit"},Object(g.createElement)("div",{className:"wc-products-list-card__content"},i,Object(g.createElement)("span",{className:"wc-products-list-card__content-item-name"},s.name),Object(g.createElement)("button",{type:"button",id:"product-"+s.id,onClick:function(){e.props.addOrRemoveProduct(s.id)}},Object(g.createElement)(k,{icon:"no-alt"})))))},c=this.props.productIds[Symbol.iterator]();!(r=(n=c.next()).done);r=!0)a()}catch(e){s=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(s)throw i}}return Object(g.createElement)("div",{className:"wc-products-list-card__results-wrapper wc-products-list-card__results-wrapper--cols-"+this.props.columns},Object(g.createElement)("div",{role:"menu",className:"wc-products-list-card__results","aria-orientation":"vertical","aria-label":_("Selected products")},t.length>0&&Object(g.createElement)("h3",null,_("Selected products")),Object(g.createElement)("ul",null,t)))}}]),t}(w),N=r(15),Q=r.n(N),D=wp.i18n.__,R=wp.element.Component,A=wp.components.Dashicon,I=wp.apiFetch,L=function(e){function t(e){var r;return u()(this,t),(r=m()(this,f()(t).call(this,e))).state={selectedCategories:e.selected_display_setting,openAccordion:[],filterQuery:"",firstLoad:!0},r.checkboxChange=r.checkboxChange.bind(o()(o()(r))),r.accordionToggle=r.accordionToggle.bind(o()(o()(r))),r.filterResults=r.filterResults.bind(o()(o()(r))),r.setFirstLoad=r.setFirstLoad.bind(o()(o()(r))),r}return v()(t,e),p()(t,[{key:"checkboxChange",value:function(e,t){var r,s=this.state.selectedCategories;(s=s.filter(function(e){return!t.includes(e)}),e)&&(r=s).push.apply(r,Q()(t));this.setState({selectedCategories:s}),this.props.update_display_setting_callback(s)}},{key:"accordionToggle",value:function(e){var t=this.state.openAccordion;t.includes(e)?t=t.filter(function(t){return t!==e}):t.push(e),this.setState({openAccordion:t})}},{key:"filterResults",value:function(e){this.setState({filterQuery:e.target.value})}},{key:"setFirstLoad",value:function(e){this.setState({firstLoad:!!e})}},{key:"render",value:function(){return Object(g.createElement)("div",{className:"wc-products-list-card wc-products-list-card--taxonomy wc-products-list-card--taxonomy-category"},Object(g.createElement)(q,{filterResults:this.filterResults}),Object(g.createElement)(M,{filterQuery:this.state.filterQuery,selectedCategories:this.state.selectedCategories,checkboxChange:this.checkboxChange,accordionToggle:this.accordionToggle,openAccordion:this.state.openAccordion,firstLoad:this.state.firstLoad,setFirstLoad:this.setFirstLoad}))}}]),t}(R),q=function(e){var t=e.filterResults;return Object(g.createElement)("div",{className:"wc-products-list-card__input-wrapper"},Object(g.createElement)(A,{icon:"search"}),Object(g.createElement)("input",{className:"wc-products-list-card__search",type:"search",placeholder:D("Search for categories"),onChange:t}))},M=function(e){function t(e){var r;return u()(this,t),(r=m()(this,f()(t).call(this,e))).state={categories:[],loaded:!1,query:""},r.updatePreview=r.updatePreview.bind(o()(o()(r))),r.getQuery=r.getQuery.bind(o()(o()(r))),r}return v()(t,e),p()(t,[{key:"componentDidMount",value:function(){this.getQuery()!==this.state.query&&this.updatePreview()}},{key:"componentDidUpdate",value:function(){this.getQuery()!==this.state.query&&this.state.loaded&&this.updatePreview()}},{key:"getQuery",value:function(){return"/wc-pb/v3/products/categories"}},{key:"updatePreview",value:function(){var e=this,t=this.getQuery();e.setState({loaded:!1}),I({path:t}).then(function(r){e.setState({categories:r,loaded:!0,query:t})})}},{key:"render",value:function(){var e=this.props,t=e.filterQuery,r=e.selectedCategories,s=e.checkboxChange,i=e.accordionToggle,n=e.openAccordion,a=e.firstLoad,c=e.setFirstLoad;if(!this.state.loaded)return D("Loading");if(0===this.state.categories.length)return D("No categories found");var o=function e(t,r){var s=[];return r.filter(function(e){return e.parent===t.id}).forEach(function(t){s.push(t),s.push.apply(s,Q()(e(t,r)))}),s},l=function(e){var t=e.category,r=e.categories,s="arrow-down-alt2";n.includes(t.id)&&(s="arrow-up-alt2");var a=null;return function(e,t){return!!o(e,t).length}(t,r)||(a={visibility:"hidden"}),Object(g.createElement)("button",{onClick:function(){return i(t.id)},className:"wc-products-list-card__accordion-button",style:a,type:"button"},Object(g.createElement)(A,{icon:s}))},u=this.state.categories;return""!==t&&(u=u.filter(function(e){return e.slug.includes(t.toLowerCase())})),Object(g.createElement)("div",{className:"wc-products-list-card__results"},Object(g.createElement)(function e(t){var d=t.categories,p=t.parent,h=d.filter(function(e){return e.parent===p});return a&&r.length>0&&(u.filter(function(e){return 0===e.parent}).forEach(function(e){var t=o(e,u),s=!0,a=!1,c=void 0;try{for(var l,d=t[Symbol.iterator]();!(s=(l=d.next()).done);s=!0){var p=l.value;if(r.includes(p.id)&&!n.includes(e.id)){i(e.id);break}}}catch(e){a=!0,c=e}finally{try{s||null==d.return||d.return()}finally{if(a)throw c}}}),c(!1)),h.length>0&&Object(g.createElement)("ul",null,h.map(function(t){return Object(g.createElement)("li",{key:t.id,className:n.includes(t.id)?"wc-products-list-card__item wc-products-list-card__accordion-open":"wc-products-list-card__item"},Object(g.createElement)("label",{className:0===t.parent?"wc-products-list-card__content":"",htmlFor:"product-category-"+t.id},Object(g.createElement)("input",{type:"checkbox",id:"product-category-"+t.id,value:t.id,checked:r.includes(t.id),onChange:function(e){return function(e,t,r){var i=o(t,r).map(function(e){return e.id});i.push(t.id),s(e.target.checked,i)}(e,t,d)},ref:function(e){return e&&(e.indeterminate=function(e,t){if(r.includes(e.id))return!1;var s=o(e,t).map(function(e){return e.id}),i=!0,n=!1,a=void 0;try{for(var c,l=s[Symbol.iterator]();!(i=(c=l.next()).done);i=!0){var u=c.value;if(r.includes(u))return!0}}catch(e){n=!0,a=e}finally{try{i||null==l.return||l.return()}finally{if(n)throw a}}return!1}(t,d))}})," ",t.name,0===t.parent&&Object(g.createElement)(l,{category:t,categories:d}),Object(g.createElement)("span",{className:"wc-products-list-card__taxonomy-count"},t.count)),Object(g.createElement)(e,{categories:d,parent:t.id}))}))},{categories:u,parent:0}))}}]),t}(R),F=wp.i18n.__,W=wp.element.Component,U=wp.components.Dashicon,B=wp.apiFetch;function H(e,t){return e+","+t}function J(e){return e.split(",")[0]}var z=function(e){function t(e){var r;return u()(this,t),(r=m()(this,f()(t).call(this,e))).state={selectedAttribute:e.selected_display_setting.length?e.selected_display_setting[0]:"",selectedTerms:e.selected_display_setting.length>1?e.selected_display_setting.slice(1):[],filterQuery:""},r.setSelectedAttribute=r.setSelectedAttribute.bind(o()(o()(r))),r.addTerm=r.addTerm.bind(o()(o()(r))),r.removeTerm=r.removeTerm.bind(o()(o()(r))),r}return v()(t,e),p()(t,[{key:"setSelectedAttribute",value:function(e){this.setState({selectedAttribute:e,selectedTerms:[]}),this.props.update_display_setting_callback([e])}},{key:"addTerm",value:function(e){var t=this.state.selectedTerms;t.push(e),this.setState({selectedTerms:t});var r=[this.state.selectedAttribute];r=r.concat(t),this.props.update_display_setting_callback(r)}},{key:"removeTerm",value:function(e){var t=[],r=!0,s=!1,i=void 0;try{for(var n,a=this.state.selectedTerms[Symbol.iterator]();!(r=(n=a.next()).done);r=!0){var c=n.value;c!==e&&t.push(c)}}catch(e){s=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(s)throw i}}this.setState({selectedTerms:t});var o=[this.state.selectedAttribute];o=o.concat(t),this.props.update_display_setting_callback(o)}},{key:"updateFilter",value:function(e){this.setState({filterQuery:e.target.value})}},{key:"render",value:function(){return Object(g.createElement)("div",{className:"wc-products-list-card wc-products-list-card--taxonomy wc-products-list-card--taxonomy-atributes"},Object(g.createElement)(G,{updateFilter:this.updateFilter.bind(this)}),Object(g.createElement)(K,{selectedAttribute:this.state.selectedAttribute,selectedTerms:this.state.selectedTerms,filterQuery:this.state.filterQuery,setSelectedAttribute:this.setSelectedAttribute.bind(this),addTerm:this.addTerm.bind(this),removeTerm:this.removeTerm.bind(this)}))}}]),t}(W),G=function(e){return Object(g.createElement)("div",{className:"wc-products-list-card__input-wrapper"},Object(g.createElement)(U,{icon:"search"}),Object(g.createElement)("input",{className:"wc-products-list-card__search",type:"search",placeholder:F("Search for attributes"),onChange:e.updateFilter}))},K=function(e){function t(e){var r;return u()(this,t),(r=m()(this,f()(t).call(this,e))).state={attributes:[],loaded:!1,query:""},r.updatePreview=r.updatePreview.bind(o()(o()(r))),r.getQuery=r.getQuery.bind(o()(o()(r))),r}return v()(t,e),p()(t,[{key:"componentDidMount",value:function(){this.getQuery()!==this.state.query&&this.updatePreview()}},{key:"componentDidUpdate",value:function(){this.getQuery()!==this.state.query&&this.state.loaded&&this.updatePreview()}},{key:"getQuery",value:function(){return"/wc-pb/v3/products/attributes"}},{key:"updatePreview",value:function(){var e=this,t=this.getQuery();e.setState({loaded:!1}),B({path:t}).then(function(r){e.setState({attributes:r,loaded:!0,query:t})})}},{key:"render",value:function(){var e=this.props,t=e.selectedAttribute,r=e.filterQuery,s=e.selectedTerms,i=e.setSelectedAttribute,n=e.addTerm,a=e.removeTerm;if(!this.state.loaded)return Object(g.createElement)("ul",null,Object(g.createElement)("li",null,F("Loading")));if(0===this.state.attributes.length)return Object(g.createElement)("ul",null,Object(g.createElement)("li",null,F("No attributes found")));var c=r.toLowerCase(),o=[],l=!0,u=!1,d=void 0;try{for(var p,h=this.state.attributes[Symbol.iterator]();!(l=(p=h.next()).done);l=!0){var m=p.value;c.length&&-1===m.name.toLowerCase().indexOf(c)||o.push(Object(g.createElement)(V,{attribute:m,selectedAttribute:t,selectedTerms:s,setSelectedAttribute:i,addTerm:n,removeTerm:a}))}}catch(e){u=!0,d=e}finally{try{l||null==h.return||h.return()}finally{if(u)throw d}}return Object(g.createElement)("div",{className:"wc-products-list-card__results"},o)}}]),t}(W),V=function(e){function t(e){var r;return u()(this,t),(r=m()(this,f()(t).call(this,e))).handleAttributeChange=r.handleAttributeChange.bind(o()(o()(r))),r.handleTermChange=r.handleTermChange.bind(o()(o()(r))),r}return v()(t,e),p()(t,[{key:"handleAttributeChange",value:function(e){e.target.checked&&this.props.setSelectedAttribute(e.target.value)}},{key:"handleTermChange",value:function(e){e.target.checked?this.props.addTerm(e.target.value):this.props.removeTerm(e.target.value)}},{key:"render",value:function(){var e=this.props.selectedAttribute===H(this.props.attribute.slug,this.props.attribute.id),t=null;e&&(t=Object(g.createElement)(X,{attribute:this.props.attribute,selectedTerms:this.props.selectedTerms,addTerm:this.props.addTerm,removeTerm:this.props.removeTerm}));var r=["wc-products-list-card--taxonomy-atributes__atribute"];e&&r.push("wc-products-list-card__accordion-open");var s=H(this.props.attribute.slug,this.props.attribute.id);return Object(g.createElement)("div",{className:r.join(" ")},Object(g.createElement)("div",null,Object(g.createElement)("label",{className:"wc-products-list-card__content",htmlFor:"attribute-".concat(s)},Object(g.createElement)("input",{type:"radio",id:"attribute-".concat(s),value:s,onChange:this.handleAttributeChange,checked:e}),this.props.attribute.name)),t)}}]),t}(W),X=function(e){function t(e){var r;return u()(this,t),(r=m()(this,f()(t).call(this,e))).state={terms:[],loaded:!1,query:""},r.updatePreview=r.updatePreview.bind(o()(o()(r))),r.getQuery=r.getQuery.bind(o()(o()(r))),r}return v()(t,e),p()(t,[{key:"componentDidMount",value:function(){this.getQuery()!==this.state.query&&this.updatePreview()}},{key:"componentDidUpdate",value:function(){this.getQuery()!==this.state.query&&this.state.loaded&&this.updatePreview()}},{key:"getQuery",value:function(){return"/wc-pb/v3/products/attributes/"+this.props.attribute.id+"/terms"}},{key:"updatePreview",value:function(){var e=this,t=this.getQuery();e.setState({loaded:!1}),B({path:t}).then(function(r){e.setState({terms:r,loaded:!0,query:t})})}},{key:"render",value:function(){var e=this.props,t=e.selectedTerms,r=e.addTerm,s=e.removeTerm;if(!this.state.loaded)return Object(g.createElement)("ul",null,Object(g.createElement)("li",null,F("Loading")));if(0===this.state.terms.length)return Object(g.createElement)("ul",null,Object(g.createElement)("li",null,F("No terms found")));function i(e){e.target.checked?r(e.target.value):s(e.target.value)}return Object(g.createElement)("ul",null,this.state.terms.map(function(e,r){return Object(g.createElement)("li",{className:"wc-products-list-card__item",key:r},Object(g.createElement)("label",{className:"wc-products-list-card__content",htmlFor:"term-".concat(e.id)},Object(g.createElement)("input",{type:"checkbox",id:"term-".concat(e.id),value:e.id,onChange:i,checked:t.includes(String(e.id))}),e.name,Object(g.createElement)("span",{className:"wc-products-list-card__taxonomy-count"},e.count)))}))}}]),t}(W);r.d(t,"ProductPreview",function(){return ve});var Y=wp.i18n.__,Z=wp.element,$=Z.Component,ee=Z.RawHTML,te=wp.blocks.registerBlockType,re=wp.editor,se=re.InspectorControls,ie=re.BlockControls,ne=wp.components,ae=ne.Toolbar,ce=ne.Button,oe=ne.Dashicon,le=ne.RangeControl,ue=ne.Tooltip,de=ne.SelectControl,pe=wp.apiFetch,he={specific:{title:Y("Individual products"),description:Y("Hand-pick which products to display"),value:"specific"},category:{title:Y("Product category"),description:Y("Display products from a specific category or multiple categories"),value:"category"},filter:{title:Y("Filter products"),description:Y("E.g. featured products, or products with a specific attribute like size or color"),value:"filter",group_container:"filter"},featured:{title:Y("Featured products"),description:"",value:"featured"},on_sale:{title:Y("On sale"),description:"",value:"on_sale"},best_selling:{title:Y("Best sellers"),description:"",value:"best_selling",no_orderby:!0},top_rated:{title:Y("Top rated"),description:"",value:"top_rated",no_orderby:!0},attribute:{title:Y("Attribute"),description:"",value:"attribute"},all:{title:Y("All products"),description:Y("Display all products ordered chronologically, alphabetically, by price, by rating or by sales"),value:"all"}};function me(e){return!(he.hasOwnProperty(e)&&he[e].hasOwnProperty("no_orderby")&&he[e].no_orderby)}var be=function(e){function t(){return u()(this,t),m()(this,f()(t).apply(this,arguments))}return v()(t,e),p()(t,[{key:"render",value:function(){var e=this,t="arrow-right-alt2";"filter"===this.props.value&&this.props.extended&&(t="arrow-down-alt2");var r="wc-products-display-options__option wc-products-display-options__option--"+this.props.value;return this.props.current===this.props.value&&(t="yes",r+=" wc-products-display-options__option--current"),Object(g.createElement)("div",{className:r,onClick:function(){e.props.current!==e.props.value&&e.props.update_display_callback(e.props.value)}},Object(g.createElement)("div",{className:"wc-products-display-options__option-content"},Object(g.createElement)("span",{className:"wc-products-display-options__option-title"},this.props.title),Object(g.createElement)("p",{className:"wc-products-display-options__option-description"},this.props.description)),Object(g.createElement)("div",{className:"wc-products-display-options__icon"},Object(g.createElement)(oe,{icon:t})))}}]),t}($),fe=function(e){function t(e){var r;return u()(this,t),(r=m()(this,f()(t).call(this,e))).setWrapperRef=r.setWrapperRef.bind(o()(o()(r))),r.handleClickOutside=r.handleClickOutside.bind(o()(o()(r))),r}return v()(t,e),p()(t,[{key:"componentDidMount",value:function(){this.props.existing&&document.addEventListener("mousedown",this.handleClickOutside)}},{key:"componentWillUnmount",value:function(){this.props.existing&&document.removeEventListener("mousedown",this.handleClickOutside)}},{key:"setWrapperRef",value:function(e){this.wrapperRef=e}},{key:"handleClickOutside",value:function(e){this.wrapperRef&&!this.wrapperRef.contains(e.target)&&"wc-products-settings-heading__change-button button-link"!==e.target.getAttribute("class")&&this.props.closeMenu()}},{key:"render",value:function(){var e="wc-products-display-options";this.props.extended&&(e+=" wc-products-display-options--extended"),this.props.existing&&(e+=" wc-products-display-options--popover");var t=[];for(var r in he)t.push(Object(g.createElement)(be,a()({},he[r],{update_display_callback:this.props.update_display_callback,extended:this.props.extended,current:this.props.current,key:r})));var s=Object(g.createElement)("span",{className:"wc-products-display-options--popover__arrow"}),i=Object(g.createElement)("p",{className:"wc-products-block-description"},Y("Choose which products you'd like to display:"));return Object(g.createElement)("div",{className:e,ref:this.setWrapperRef},this.props.existing&&s,!this.props.existing&&i,t)}}]),t}($),ye=function(e){function t(e){var r;return u()(this,t),(r=m()(this,f()(t).call(this,e))).state={display:e.selected_display,menu_visible:!e.selected_display,expanded_group:""},r.updateDisplay=r.updateDisplay.bind(o()(o()(r))),r.closeMenu=r.closeMenu.bind(o()(o()(r))),r}return v()(t,e),p()(t,[{key:"updateDisplay",value:function(e){var t={display:e,menu_visible:!1,expanded_group:""},r="undefined"!==he[e].group_container&&he[e].group_container;r&&(t={menu_visible:!0,expanded_group:e},this.state.expanded_group===he[e].group_container&&(t.expanded_group="")),this.setState(t),r||this.props.update_display_callback(e)}},{key:"closeMenu",value:function(){this.setState({menu_visible:!1})}},{key:"render",value:function(){var e=this,t=null;"specific"===this.state.display?t=Object(g.createElement)(E,this.props):"category"===this.state.display?t=Object(g.createElement)(L,this.props):"attribute"===this.state.display&&(t=Object(g.createElement)(z,this.props));var r=this.state.menu_visible?Object(g.createElement)(fe,{extended:!!this.state.expanded_group,existing:!!this.state.display,current:this.state.display,closeMenu:this.closeMenu,update_display_callback:this.updateDisplay}):null,s=null;if(this.state.display){var i=["featured","on_sale","attribute","best_selling","top_rated"].includes(this.state.display)?this.state.display:"",n=Object(g.createElement)("button",{type:"button",className:"wc-products-settings-heading__change-button button-link",onClick:function(){e.setState({menu_visible:!e.state.menu_visible,expanded_group:i})}},Y("Display different products"));s=Object(g.createElement)("div",{className:"wc-products-settings-heading"},Object(g.createElement)("div",{className:"wc-products-settings-heading__current"},Y("Displaying "),Object(g.createElement)("strong",null,Y(he[this.state.display].title))),Object(g.createElement)("div",{className:"wc-products-settings-heading__change"},n))}var a=Object(g.createElement)("button",{type:"button",className:"button wc-products-settings__footer-button",onClick:this.props.done_callback},Y("Done"));if(["","specific","category","attribute"].includes(this.state.display)&&!this.props.selected_display_setting.length){var c={"":Y("Please select which products you'd like to display"),specific:Y("Please search for and select products to display"),category:Y("Please select at least one category to display"),attribute:Y("Please select an attribute")};a=Object(g.createElement)(ue,{text:c[this.state.display]},Object(g.createElement)("button",{type:"button",className:"button wc-products-settings__footer-button disabled"},Y("Done")))}return Object(g.createElement)("div",{className:"wc-products-settings "+(this.state.expanded_group?"expanded-group-"+this.state.expanded_group:"")},Object(g.createElement)("h4",{className:"wc-products-settings__title"},Object(g.createElement)(oe,{icon:"screenoptions"})," ",Y("Products")),s,r,t,Object(g.createElement)("div",{className:"wc-products-settings__footer"},a))}}]),t}($),ve=function(e){function t(){return u()(this,t),m()(this,f()(t).apply(this,arguments))}return v()(t,e),p()(t,[{key:"render",value:function(){var e=this.props.product,t=null;return e.images.length&&(t=Object(g.createElement)("img",{src:e.images[0].src,alt:""})),Object(g.createElement)("div",{className:"product-preview",key:e.id+"-preview"},t,Object(g.createElement)("div",{className:"product-title"},e.name),Object(g.createElement)("div",{className:"product-price",dangerouslySetInnerHTML:{__html:e.price_html}}),Object(g.createElement)("span",{className:"product-add-to-cart"},Y("Add to cart")))}}]),t}($),ge=function(e){function t(e){var r;return u()(this,t),(r=m()(this,f()(t).call(this,e))).state={products:[],loaded:!1,query:""},r.updatePreview=r.updatePreview.bind(o()(o()(r))),r.getQuery=r.getQuery.bind(o()(o()(r))),r}return v()(t,e),p()(t,[{key:"componentDidMount",value:function(){this.updatePreview()}},{key:"componentDidUpdate",value:function(){this.getQuery()!==this.state.query&&this.state.loaded&&this.updatePreview()}},{key:"getQuery",value:function(){var e=this.props.attributes,t=e.columns,r=e.rows,s=e.display,i=e.display_setting,n=e.orderby,a={status:"publish",per_page:r*t};"specific"===s?(a.include=i.join(","),a.per_page=i.length):"category"===s?a.category=i.join(","):"attribute"===s&&i.length?(a.attribute=J(i[0]),i.length>1&&(a.attribute_term=i.slice(1).join(","))):"featured"===s?a.featured=1:"on_sale"===s&&(a.on_sale=1),me(s)&&("price_desc"===n?(a.orderby="price",a.order="desc"):"price_asc"===n?(a.orderby="price",a.order="asc"):"title"===n?(a.orderby="title",a.order="asc"):a.orderby=n);for(var c="?",o=Object.keys(a),l=0;l<o.length;l++){var u=o[l];c+=u+"="+a[u]+"&"}return"/wc-pb/v3/products"+c}},{key:"updatePreview",value:function(){var e=this,t=this.getQuery();e.setState({loaded:!1,query:t}),pe({path:t}).then(function(t){e.setState({products:t,loaded:!0})})}},{key:"render",value:function(){if(!this.state.loaded)return Y("Loading");if(0===this.state.products.length)return Y("No products found");var e="wc-products-block-preview cols-"+this.props.attributes.columns,t=this;return Object(g.createElement)("div",{className:e},this.state.products.map(function(e){return Object(g.createElement)(ve,{key:e.id,product:e,attributes:t.props.attributes})}))}}]),t}($),_e=function(e){function t(e){var r;return u()(this,t),(r=m()(this,f()(t).call(this,e))).state={categoriesInfo:[],categoriesQuery:"",attributeInfo:!1,attributeQuery:"",termsInfo:[],termsQuery:""},r.updateInfo=r.updateInfo.bind(o()(o()(r))),r.getQueries=r.getQueries.bind(o()(o()(r))),r}return v()(t,e),p()(t,[{key:"componentDidMount",value:function(){this.updateInfo()}},{key:"componentDidUpdate",value:function(){var e=this.getQueries();this.state.categoriesQuery===e.categories&&this.state.attributeQuery===e.attribute&&this.state.termsQuery===e.terms||this.updateInfo()}},{key:"getQueries",value:function(){var e=this.props.attributes,t=e.display,r=e.display_setting,s={attribute:"",terms:"",categories:""};if("attribute"===t&&r.length){var i=r[0].split(",")[1],n=r.slice(1).join(", ");s.attribute="/wc-pb/v3/products/attributes/"+i,n.length&&(s.terms="/wc-pb/v3/products/attributes/"+i+"/terms?include="+n)}else"category"===t&&r.length&&(s.categories="/wc-pb/v3/products/categories?include="+r.join(","));return s}},{key:"updateInfo",value:function(){var e=this,t=this.getQueries();this.setState({categoriesQuery:t.categories,attributeQuery:t.attribute,termsQuery:t.terms}),t.categories.length?pe({path:t.categories}).then(function(t){e.setState({categoriesInfo:t})}):e.setState({categoriesInfo:[]}),t.attribute.length?pe({path:t.attribute}).then(function(t){e.setState({attributeInfo:t})}):e.setState({attributeInfo:!1}),t.terms.length?pe({path:t.terms}).then(function(t){e.setState({termsInfo:t})}):e.setState({termsInfo:[]})}},{key:"render",value:function(){var e=[he[this.props.attributes.display].title];if(this.state.categoriesInfo.length){var t=Y("Product categories: "),r=[],s=!0,i=!1,n=void 0;try{for(var a,c=this.state.categoriesInfo[Symbol.iterator]();!(s=(a=c.next()).done);s=!0){var o=a.value;r.push(o.name)}}catch(e){i=!0,n=e}finally{try{s||null==c.return||c.return()}finally{if(i)throw n}}e=[t+=r.join(", ")]}else if(this.state.attributeInfo&&(e=[Y("Attribute: ")+this.state.attributeInfo.name],this.state.termsInfo.length)){var l=Y("Terms: "),u=[],d=!0,p=!1,h=void 0;try{for(var m,b=this.state.termsInfo[Symbol.iterator]();!(d=(m=b.next()).done);d=!0){var f=m.value;u.push(f.name)}}catch(e){p=!0,h=e}finally{try{d||null==b.return||b.return()}finally{if(p)throw h}}l+=u.join(", "),e.push(l)}return Object(g.createElement)("div",null,e.map(function(e,t){return Object(g.createElement)("div",{className:"scope-description",key:t},e)}))}}]),t}($),we=function(e){function t(e){var r;return u()(this,t),(r=m()(this,f()(t).call(this,e))).getInspectorControls=r.getInspectorControls.bind(o()(o()(r))),r.getToolbarControls=r.getToolbarControls.bind(o()(o()(r))),r.getBlockDescription=r.getBlockDescription.bind(o()(o()(r))),r.getPreview=r.getPreview.bind(o()(o()(r))),r.getSettingsEditor=r.getSettingsEditor.bind(o()(o()(r))),r}return v()(t,e),p()(t,[{key:"getInspectorControls",value:function(){var e=this.props,t=e.attributes,r=e.setAttributes,s=t.rows,i=t.columns,n=t.display,a=t.orderby,c=Object(g.createElement)(le,{label:Y("Columns"),value:i,onChange:function(e){return r({columns:e})},min:wc_product_block_data.min_columns,max:wc_product_block_data.max_columns}),o=null;me(n)&&(o=Object(g.createElement)(de,{key:"query-panel-select",label:Y("Order Products By"),value:a,options:[{label:Y("Newness - newest first"),value:"date"},{label:Y("Price - low to high"),value:"price_asc"},{label:Y("Price - high to low"),value:"price_desc"},{label:Y("Rating - highest first"),value:"rating"},{label:Y("Sales - most first"),value:"popularity"},{label:Y("Title - alphabetical"),value:"title"}],onChange:function(e){return r({orderby:e})}}));var l=null;return"specific"!==n&&(l=Object(g.createElement)(le,{label:Y("Rows"),value:s,onChange:function(e){return r({rows:e})},min:wc_product_block_data.min_rows,max:wc_product_block_data.max_rows})),Object(g.createElement)(se,{key:"inspector"},this.getBlockDescription(),Object(g.createElement)("h3",null,Y("Layout")),c,l,o)}},{key:"getToolbarControls",value:function(){var e=this.props,t=e.attributes,r=e.setAttributes,s=t.display,i=t.display_setting,n=t.edit_mode,a=["","specific","category","attribute"].includes(s)&&!i.length,c=[{icon:"edit",title:Y("Edit"),onClick:a?function(){}:function(){return r({edit_mode:!n})},isActive:n}];return Object(g.createElement)(ie,{key:"controls"},Object(g.createElement)(ae,{controls:c}))}},{key:"getBlockDescription",value:function(){var e=this.props,t=e.attributes,r=e.setAttributes;if(!t.display.length)return null;var s=null;return t.edit_mode||(s=Object(g.createElement)("div",{className:"wc-products-scope-description--edit-quicklink"},Object(g.createElement)(ce,{isLink:!0,onClick:function(){r({edit_mode:!0})}},Y("Edit")))),Object(g.createElement)("div",{className:"wc-products-scope-descriptions"},Object(g.createElement)("div",{className:"wc-products-scope-details"},Object(g.createElement)("h3",null,Y("Current Source")),Object(g.createElement)(_e,{attributes:t})),s)}},{key:"getPreview",value:function(){return Object(g.createElement)(ge,{key:"preview",attributes:this.props.attributes})}},{key:"getSettingsEditor",value:function(){var e=this.props,t=e.attributes,r=e.setAttributes,s=t.display,i=t.display_setting;return Object(g.createElement)(ye,{key:"settings-editor",attributes:t,selected_display:s,selected_display_setting:i,update_display_callback:function(e){s!==e&&r({display:e,display_setting:[],edit_mode:["specific","attribute","category"].includes(e)})},update_display_setting_callback:function(e){return r({display_setting:e})},done_callback:function(){return r({edit_mode:!1})}})}},{key:"render",value:function(){var e=this.props.attributes.edit_mode;return[this.getInspectorControls(),this.getToolbarControls(),e?this.getSettingsEditor():this.getPreview()]}}]),t}($);te("woocommerce/products",{title:Y("Products"),icon:"screenoptions",category:"woocommerce",description:Y("Display a grid of products from a variety of sources."),supports:{inserter:!1},attributes:{columns:{type:"number",default:wc_product_block_data.default_columns},rows:{type:"number",default:wc_product_block_data.default_rows},display:{type:"string",default:""},display_setting:{type:"array",default:[]},orderby:{type:"string",default:"date"},edit_mode:{type:"boolean",default:!0}},edit:function(e){return Object(g.createElement)(we,e)},save:function(e){var t=e.attributes,r=t.rows,s=t.columns,n=t.display,a=t.display_setting,c=t.orderby,o=new Map;if("specific"!==n&&o.set("limit",r*s),o.set("columns",s),"specific"===n)o.set("ids",a.join(","));else if("category"===n)o.set("category",a.join(","));else if("featured"===n)o.set("visibility","featured");else if("on_sale"===n)o.set("on_sale","1");else if("best_selling"===n)o.set("best_selling","1");else if("top_rated"===n)o.set("top_rated","1");else if("attribute"===n){var l=a.length?J(a[0]):"",u=a.length>1?a.slice(1).join(","):"";o.set("attribute",l),u.length&&o.set("terms",u)}me(n)&&("price_desc"===c?(o.set("orderby","price"),o.set("order","DESC")):"price_asc"===c?(o.set("orderby","price"),o.set("order","ASC")):"date"===c?(o.set("orderby","date"),o.set("order","DESC")):o.set("orderby",c));var d="[products",p=!0,h=!1,m=void 0;try{for(var b,f=o[Symbol.iterator]();!(p=(b=f.next()).done);p=!0){var y=i()(b.value,2);d+=" "+y[0]+'="'+y[1]+'"'}}catch(e){h=!0,m=e}finally{try{p||null==f.return||f.return()}finally{if(h)throw m}}return d+="]",Object(g.createElement)(ee,null,d)}})}}));
build/products-grid.css ADDED
@@ -0,0 +1 @@
 
1
+ .editor-block-preview__content{overflow:hidden}.wc-block-products-grid{overflow:hidden;display:flex;flex-wrap:wrap;justify-content:flex-start}.wc-block-products-grid.cols-1,.wc-block-products-grid.is-loading,.wc-block-products-grid.is-not-found{display:block}.wc-block-products-grid .wc-product-preview{flex:1;padding:8px}.wc-block-products-grid.cols-2 .wc-product-preview{max-width:50%;min-width:50%;flex:1}.wc-block-products-grid.cols-3 .wc-product-preview{max-width:33.33333%;min-width:33.33333%;flex:1}.wc-block-products-grid.cols-4 .wc-product-preview{max-width:25%;min-width:25%;flex:1}.wc-block-products-grid.cols-5 .wc-product-preview{max-width:20%;min-width:20%;flex:1}.wc-block-products-grid.cols-6 .wc-product-preview{max-width:16.66667%;min-width:16.66667%;flex:1}.wc-block-products-grid.components-placeholder{padding:2em 1em}.editor-block-preview .wc-block-products-grid,.editor-block-preview .wc-block-products-grid.cols-1{min-width:5em}.editor-block-preview .wc-block-products-grid.cols-2{min-width:10em}.editor-block-preview .wc-block-products-grid.cols-3{min-width:15em}.editor-block-preview .wc-block-products-grid.cols-4{min-width:20em}.editor-block-preview .wc-block-products-grid.cols-5{min-width:25em}.editor-block-preview .wc-block-products-grid.cols-6{min-width:30em}.editor-block-preview .wc-block-products-grid.is-loading,.editor-block-preview .wc-block-products-grid.is-not-found{min-width:auto}
build/products-grid.js ADDED
@@ -0,0 +1 @@
 
1
+ !function(r,e){for(var n in e)r[n]=e[n]}(this,function(r){function e(e){for(var t,i,f=e[0],l=e[1],a=e[2],p=0,s=[];p<f.length;p++)i=f[p],o[i]&&s.push(o[i][0]),o[i]=0;for(t in l)Object.prototype.hasOwnProperty.call(l,t)&&(r[t]=l[t]);for(c&&c(e);s.length;)s.shift()();return u.push.apply(u,a||[]),n()}function n(){for(var r,e=0;e<u.length;e++){for(var n=u[e],t=!0,f=1;f<n.length;f++){var l=n[f];0!==o[l]&&(t=!1)}t&&(u.splice(e--,1),r=i(i.s=n[0]))}return r}var t={},o={9:0},u=[];function i(e){if(t[e])return t[e].exports;var n=t[e]={i:e,l:!1,exports:{}};return r[e].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=r,i.c=t,i.d=function(r,e,n){i.o(r,e)||Object.defineProperty(r,e,{enumerable:!0,get:n})},i.r=function(r){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},i.t=function(r,e){if(1&e&&(r=i(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var t in r)i.d(n,t,function(e){return r[e]}.bind(null,t));return n},i.n=function(r){var e=r&&r.__esModule?function(){return r.default}:function(){return r};return i.d(e,"a",e),e},i.o=function(r,e){return Object.prototype.hasOwnProperty.call(r,e)},i.p="";var f=window.webpackJsonp=window.webpackJsonp||[],l=f.push.bind(f);f.push=e,f=f.slice();for(var a=0;a<f.length;a++)e(f[a]);var c=l;return u.push([867,0]),n()}({867:function(r,e,n){var t=n(868);"string"==typeof t&&(t=[[r.i,t,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(28)(t,o);t.locals&&(r.exports=t.locals)},868:function(r,e,n){}}));
build/vendors.css ADDED
@@ -0,0 +1 @@
 
1
+ @keyframes slide-in-left{0%{transform:translateX(100%)}to{transform:translateX(0)}}@keyframes slide-out-left{0%{transform:translateX(-100%)}to{transform:translateX(-200%)}}@keyframes slide-in-right{0%{transform:translateX(-100%)}to{transform:translateX(0)}}@keyframes slide-out-right{0%{transform:translateX(-100%)}to{transform:translateX(0)}}.woocommerce-slide-animation>div{width:100%;white-space:nowrap;overflow:hidden;display:flex}.woocommerce-slide-animation.animate-left .slide-enter-active{animation:slide-in-left;animation-duration:.2s}.woocommerce-slide-animation.animate-left .slide-exit-active{animation:slide-out-left;animation-duration:.2s}.woocommerce-slide-animation.animate-right .slide-enter-active{animation:slide-in-right;animation-duration:.2s}.woocommerce-slide-animation.animate-right .slide-exit-active{animation:slide-out-right;animation-duration:.2s}@media screen and (prefers-reduced-motion:reduce){.woocommerce-slide-animation .slide-enter-active,.woocommerce-slide-animation .slide-exit-active{animation:none!important}}.woocommerce-calendar{width:100%;background-color:#f8f9f9;border-top:1px solid #ccd0d4;height:396px}.woocommerce-calendar.is-mobile{height:100%;min-height:537px}.woocommerce-calendar__react-dates{width:100%;overflow-x:hidden}.woocommerce-calendar__react-dates .DayPicker{margin:0 auto}.woocommerce-calendar__react-dates .CalendarMonth_table{margin-top:10px}.woocommerce-calendar__react-dates .CalendarDay__selected_span{background:#95588a;border:1px solid #ccd0d4}.woocommerce-calendar__react-dates .CalendarDay__selected{background:#622557;border:1px solid #ccd0d4}.woocommerce-calendar__react-dates .CalendarDay__hovered_span{background:#95588a;border:1px solid #e2e4e7;color:#fff}.woocommerce-calendar__react-dates .CalendarDay__blocked_out_of_range{color:#a2aab2}.woocommerce-calendar__react-dates .CalendarMonth,.woocommerce-calendar__react-dates .CalendarMonthGrid,.woocommerce-calendar__react-dates .DayPicker,.woocommerce-calendar__react-dates .DayPicker_transitionContainer{background-color:#f8f9f9}.woocommerce-calendar__react-dates .DayPicker_weekHeader_li{color:#606a73}.woocommerce-calendar__react-dates .DayPickerNavigation_button:focus{outline:2px solid #bfe7f3}.woocommerce-calendar__inputs{padding:1em;width:100%;max-width:500px;display:grid;grid-template-columns:43% 14% 43%;margin:0 auto}.woocommerce-calendar__inputs .components-base-control{margin:0}.woocommerce-calendar__inputs-to{display:flex;align-items:center;justify-content:center;grid-column-start:2}.woocommerce-calendar__input{position:relative}.woocommerce-calendar__input .dashicons-calendar{position:absolute;top:50%;transform:translateY(-50%);left:10px}.woocommerce-calendar__input .dashicons-calendar path{fill:#6c7781}.woocommerce-calendar__input:first-child{grid-column-start:1}.woocommerce-calendar__input:last-child{grid-column-start:3}.woocommerce-calendar__input.is-empty .dashicons-calendar path{fill:#6c7781}.woocommerce-calendar__input.is-error .dashicons-calendar path{fill:#d94f4f}.woocommerce-calendar__input.is-error .woocommerce-calendar__input-text{border:1px solid #d94f4f;box-shadow:inset 0 0 8px #d94f4f}.woocommerce-calendar__input.is-error .woocommerce-calendar__input-text:focus{box-shadow:inset 0 0 8px #d94f4f,0 0 6px rgba(30,140,190,.8)}.woocommerce-calendar__input .woocommerce-calendar__input-text{color:#555d66;border-radius:3px;padding:10px 10px 10px 30px;width:100%;font-size:13px;font-size:.8125rem}.woocommerce-calendar__input .woocommerce-calendar__input-text:-ms-input-placeholder{color:#6c7781}.woocommerce-calendar__input .woocommerce-calendar__input-text::-ms-input-placeholder{color:#6c7781}.woocommerce-calendar__input .woocommerce-calendar__input-text::placeholder{color:#6c7781}.woocommerce-calendar__input .woocommerce-calendar__input-text:focus+span .woocommerce-calendar__input-error{display:block}.woocommerce-filters-date__content .woocommerce-calendar__input-error{display:none}.woocommerce-filters-date__content .woocommerce-calendar__input-error .components-popover__content{background-color:#606a73;color:#fff;padding:.5em;border:none}.woocommerce-filters-date__content .woocommerce-calendar__input-error.components-popover .components-popover__content{min-width:100px;width:100px;text-align:center}.woocommerce-filters-date__content .woocommerce-calendar__input-error.components-popover:not(.no-arrow):not(.is-mobile).is-bottom:before{border-bottom-color:#606a73;z-index:1;top:-6px}.woocommerce-filters-date__content.is-mobile .woocommerce-calendar__input-error .components-popover__content{height:auto}.woocommerce-card{margin-bottom:24px;background:#fff;border:1px solid #ccd0d4}@media (max-width:782px){.woocommerce-card{margin-left:-16px;margin-right:-16px;margin-bottom:12px;border-left:none;border-right:none;width:auto}}.woocommerce-card__header{padding:13px 16px;border-bottom:1px solid #ccd0d4;display:grid;align-items:center}.has-action .woocommerce-card__header{grid-template-columns:auto 1fr}.has-menu .woocommerce-card__header{grid-template-columns:auto 24px}.has-menu.has-action .woocommerce-card__header{grid-gap:12px;grid-template-columns:auto 1fr 24px}.woocommerce-card__header-item{-ms-grid-row-align:center}.woocommerce-card__header-item:first-child{grid-column-start:1;grid-column-end:2;grid-row-start:1;grid-row-end:2}.woocommerce-card__header-item:nth-child(2){grid-column-start:2;grid-column-end:3;grid-row-start:1;grid-row-end:2}.woocommerce-card__header-item:nth-child(3){grid-column-start:3;grid-column-end:4;grid-row-start:1;grid-row-end:2}.woocommerce-card__action,.woocommerce-card__menu{text-align:right}.woocommerce-card__body{padding:16px}.woocommerce-card__title{margin:0;padding:3px 0;font-size:15px;font-size:.9375rem;line-height:1.2;font-weight:600}.woocommerce-chart{margin-top:-16px;margin-bottom:24px;background:#fff;border:1px solid #ccd0d4;border-top:0}@media (max-width:782px){.woocommerce-chart{margin-left:-16px;margin-right:-16px;margin-bottom:12px;border-left:none;border-right:none;width:auto}}.woocommerce-chart .woocommerce-chart__header{min-height:50px;border-bottom:1px solid #ccd0d4;display:flex;flex-flow:row wrap;justify-content:space-between;align-items:center;width:100%}.woocommerce-chart .woocommerce-chart__header .woocommerce-chart__title{height:18px;color:#24292d;font-size:15px;font-weight:600;line-height:18px;margin-left:16px;margin-right:16px}.woocommerce-chart .woocommerce-chart__header .woocommerce-chart__type-button.components-icon-button{color:#ccd0d4}.woocommerce-chart .woocommerce-chart__header .woocommerce-chart__type-button.components-icon-button.woocommerce-chart__type-button-selected{color:#555d66}.woocommerce-chart .woocommerce-chart__header .woocommerce-chart__type-button.components-icon-button:hover{box-shadow:none}.woocommerce-chart .woocommerce-chart__body{display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-start;width:100%}.woocommerce-chart .woocommerce-chart__body.woocommerce-chart__body-column{flex-direction:column}.woocommerce-chart .woocommerce-chart__footer{width:100%}.woocommerce-chart-placeholder{animation:loading-fade 1.6s ease-in-out infinite;background-color:#e2e4e7;color:transparent;padding:0;width:100%}.woocommerce-chart-placeholder:after{content:"\00a0"}.woocommerce-chart__interval-select{align-items:start;border-right:1px solid #ccd0d4;display:flex;flex-direction:column;justify-content:center;margin:0 0 0 auto;min-height:50px;padding:8px 16px 0}@media (max-width:782px){.woocommerce-chart__interval-select{padding:0 16px;margin-top:-8px}}.rtl .woocommerce-chart__interval-select{margin:0 auto 0 0;border-right:0;border-left:1px solid #ccd0d4}@media (max-width:782px){.rtl .woocommerce-chart__interval-select{border-left:0}}@media (max-width:782px){.woocommerce-chart__interval-select{border-right:0;min-height:0;order:1;width:100%}}#wpbody .woocommerce-chart__interval-select .components-select-control__input{font-size:13px;font-size:.8125rem;border:0;box-shadow:none}.woocommerce-chart__types{padding:0 8px}.woocommerce-legend.has-total{padding-bottom:50px;position:relative}.woocommerce-legend.woocommerce-legend__direction-column{border-right:1px solid #ccd0d4;min-width:320px}.woocommerce-chart__footer .woocommerce-legend.woocommerce-legend__direction-column{border-right:none}.woocommerce-legend__list{color:#24292d;display:flex;height:100%;margin:0}.woocommerce-legend__direction-column .woocommerce-legend__list{flex-direction:column;height:300px;overflow:auto}.woocommerce-chart__footer .woocommerce-legend__direction-column .woocommerce-legend__list{border-top:1px solid #ccd0d4;height:100%;max-height:none;min-height:none}.has-total.woocommerce-legend__direction-column .woocommerce-legend__list{height:250px}.woocommerce-chart__footer .has-total.woocommerce-legend__direction-column .woocommerce-legend__list{height:auto;max-height:220px;min-height:none}.woocommerce-legend__direction-row .woocommerce-legend__list{flex-direction:row}.woocommerce-legend__item>button{display:flex;justify-content:center;align-items:center;background-color:#fff;color:#555d66;display:inline-flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;width:100%;border:none;padding:0}.woocommerce-legend__item>button .woocommerce-legend__item-container{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;position:relative;padding:3px 0 3px 24px;cursor:pointer;font-size:13px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%}.woocommerce-legend__item>button .woocommerce-legend__item-container:hover input~.woocommerce-legend__item-checkmark{background-color:#f3f4f5}.woocommerce-legend__item>button .woocommerce-legend__item-container .woocommerce-legend__item-checkmark{border:1px solid #a2aab2;position:absolute;top:4px;left:0;height:16px;width:16px;background-color:#fff}.woocommerce-legend__item>button .woocommerce-legend__item-container .woocommerce-legend__item-checkmark:after{content:"";position:absolute;display:none}.woocommerce-legend__item>button .woocommerce-legend__item-container .woocommerce-legend__item-checkmark.woocommerce-legend__item-checkmark-checked{background-color:currentColor;border-color:currentColor}.woocommerce-legend__item>button .woocommerce-legend__item-container .woocommerce-legend__item-checkmark.woocommerce-legend__item-checkmark-checked:after{display:block;left:5px;top:2px;width:3px;height:6px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}.woocommerce-legend__item>button .woocommerce-legend__item-container .woocommerce-legend__item-total{font-weight:700}.woocommerce-legend__item>button:focus{outline:none}.woocommerce-legend__item>button:focus .woocommerce-legend__item-container .woocommerce-legend__item-checkmark{outline:2px solid #a2aab2}.woocommerce-legend__item>button:hover{background-color:#f8f9f9}.woocommerce-legend__direction-column .woocommerce-legend__item{margin:2px 0;padding:0}.woocommerce-legend__direction-column .woocommerce-legend__item>button{height:32px;padding:0 17px}.woocommerce-legend__direction-column .woocommerce-legend__item:first-child{margin-top:12px}.woocommerce-legend__direction-column .woocommerce-legend__item:last-child:after{content:"";display:block;height:12px;width:100%}.woocommerce-legend__direction-row .woocommerce-legend__item{padding:0;margin:0}.woocommerce-legend__direction-row .woocommerce-legend__item>button{padding:0 17px}.woocommerce-legend__direction-row .woocommerce-legend__item>button .woocommerce-legend__item-container{height:50px;align-items:center}.woocommerce-legend__direction-row .woocommerce-legend__item>button .woocommerce-legend__item-container .woocommerce-legend__item-checkmark{top:17px}.woocommerce-legend__direction-row .woocommerce-legend__item>button .woocommerce-legend__item-container .woocommerce-legend__item-title{margin-right:17px}.woocommerce-legend__total{align-items:center;background:#fff;border-top:1px solid #ccd0d4;bottom:0;color:#555d66;display:flex;height:50px;justify-content:center;left:0;position:absolute;right:0;text-transform:uppercase}.woocommerce-legend__total:before{background:linear-gradient(180deg,transparent,rgba(0,0,0,.2));bottom:100%;content:"";height:20px;left:0;opacity:0;pointer-events:none;position:absolute;right:0;transition:opacity .3s}.is-scrollable .woocommerce-legend__total:before{opacity:1}.d3-chart__container{position:relative;width:100%}.d3-chart__container svg{overflow:visible}.d3-chart__container .d3-chart__tooltip{border:1px solid #ccd0d4;position:absolute;display:flex;min-width:324px;height:auto;background-color:#fff;text-align:left;padding:17px;box-shadow:0 3px 20px 0 rgba(18,24,30,.1),0 1px 3px 0 rgba(18,24,30,.1);flex-direction:column;flex-wrap:nowrap;justify-content:flex-start;pointer-events:none;visibility:hidden;z-index:1}@media (max-width:600px){.d3-chart__container .d3-chart__tooltip{min-width:auto;width:calc(100% - 48px)}}.d3-chart__container .d3-chart__tooltip h4{text-align:left;line-height:18px;width:100%;text-transform:uppercase;font-size:11px;color:#6c7781;margin-top:0}.d3-chart__container .d3-chart__tooltip ul{list-style:none;margin-bottom:2px;margin-top:2px;font-size:14px}.d3-chart__container .d3-chart__tooltip ul li{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;align-items:center}.d3-chart__container .d3-chart__tooltip ul li.key-row{display:flex;flex-direction:row;justify-content:space-between;width:100%}.d3-chart__container .d3-chart__tooltip ul li.key-row .key-container{width:100%;min-width:100px}.d3-chart__container .d3-chart__tooltip ul li.key-row .key-container .key-color{display:inline-block;width:16px;height:16px;margin-right:8px}.d3-chart__container .d3-chart__tooltip ul li.key-row .key-container .key-key{margin-right:6px}.d3-chart__container .d3-chart__tooltip ul li.key-row .key-value{font-weight:600}.d3-chart__container .bargrouprect{shape-rendering:crispEdges}.d3-chart__container .grid .tick line{stroke:#e2e4e7;stroke-width:1;shape-rendering:crispEdges}.d3-chart__container .grid .tick:first-child line{stroke:#555d66}.d3-chart__container .grid .tick:last-child line{opacity:0}.d3-chart__container .tick{padding-top:10px;stroke-width:1}.d3-chart__container .y-axis{text-anchor:start}.d3-chart__container .y-axis.ticktext{fill:#555d66}.d3-chart__container .axis-month .tick text,.d3-chart__container .y-axis .tick text{font-size:10px}.d3-chart__container .focus-grid line{stroke:#ccd0d4;stroke-width:1px}.d3-base{background:transparent;position:relative;width:100%;height:100%}.woocommerce-count{border:1px solid;border-radius:10px;padding:0 8px;font-weight:700}.woocommerce-page .woocommerce-dropdown-button{background-color:#fff;position:relative;border:1px solid #e2e4e7;color:#555d66;border-radius:4px;padding:0 40px 0 0;width:100%}.woocommerce-page .woocommerce-dropdown-button:after{content:"";position:absolute;right:14px;top:50%;transform:translateY(-50%);width:0;height:0;border-color:#555d66 transparent transparent;border-style:solid;border-width:6px 6px 0;transition:transform .2s ease}@media screen and (prefers-reduced-motion:reduce){.woocommerce-page .woocommerce-dropdown-button:after{transition:none}}.woocommerce-page .woocommerce-dropdown-button.is-open:after{transform:translateY(-50%) rotate(180deg)}.woocommerce-page .woocommerce-dropdown-button.is-open,.woocommerce-page .woocommerce-dropdown-button:active,.woocommerce-page .woocommerce-dropdown-button:hover{background-color:#f8f9f9}.woocommerce-page .woocommerce-dropdown-button.is-multi-line .woocommerce-dropdown-button__labels{flex-direction:column}.woocommerce-dropdown-button__labels{text-align:left;padding:8px 12px;min-height:48px;display:flex;align-items:center;width:100%;justify-content:space-around}@media (max-width:400px){.woocommerce-dropdown-button__labels{min-height:46px}}.woocommerce-dropdown-button__labels span{width:100%;text-align:left}.woocommerce-dropdown-button__labels span:last-child{font-size:12px;font-size:.75rem;margin:0}.woocommerce-dropdown-button__labels span:first-child{font-size:13px;font-size:.8125rem;font-weight:600}@media (max-width:400px){.woocommerce-dropdown-button__labels span:last-child{font-size:10px;font-size:.625rem}.woocommerce-dropdown-button__labels span:first-child{font-size:12px;font-size:.75rem}}.woocommerce-ellipsis-menu__toggle{height:24px;justify-content:center;vertical-align:middle;width:24px}.woocommerce-ellipsis-menu__toggle .dashicon{transform:rotate(90deg)}.woocommerce-ellipsis-menu__popover{text-align:left}.woocommerce-ellipsis-menu__popover:not(.is-mobile):after,.woocommerce-ellipsis-menu__popover:not(.is-mobile):before{margin-left:-16px}.woocommerce-ellipsis-menu__popover .components-popover__content{width:182px;padding:2px}.woocommerce-ellipsis-menu__popover .components-form-toggle.is-checked .components-form-toggle__track{background-color:#95588a}.woocommerce-ellipsis-menu__popover .woocommerce-ellipsis-menu__content{width:100%}.woocommerce-ellipsis-menu__popover .woocommerce-ellipsis-menu__item,.woocommerce-ellipsis-menu__popover .woocommerce-ellipsis-menu__title{padding:10px 12px 4px}.woocommerce-ellipsis-menu__popover .woocommerce-ellipsis-menu__item:focus{box-shadow:inset 0 0 0 1px #6c7781,inset 0 0 0 2px #fff;outline:2px solid transparent;outline-offset:-2px}.woocommerce-ellipsis-menu__popover .woocommerce-ellipsis-menu__item .components-base-control__label{margin-bottom:0}.woocommerce-ellipsis-menu__popover .woocommerce-ellipsis-menu__title{color:#6c7781;padding-bottom:8px}.woocommerce-ellipsis-menu__popover .components-base-control{margin:0}.woocommerce-empty-content{text-align:center}.woocommerce-empty-content .woocommerce-empty-content__actions .components-button+.components-button{margin-left:16px}.woocommerce-filters-advanced{margin:24px 0}.woocommerce-filters-advanced .woocommerce-card__header{padding:8px 16px}.woocommerce-filters-advanced .woocommerce-card__body{padding:0}.woocommerce-filters-advanced .components-select-control__input{height:38px;padding:0;margin:0}.woocommerce-filters-advanced .components-base-control__field{margin-bottom:0}.woocommerce-filters-advanced__title-select{width:70px;display:inline-block;margin:0 8px}.woocommerce-filters-advanced__list{margin:0}.woocommerce-filters-advanced__list-item{padding:0 16px 0 0;margin:0;display:grid;grid-template-columns:auto 40px;background-color:#f8f9f9;border-bottom:1px solid #ccd0d4}.woocommerce-filters-advanced__list-item fieldset{padding:8px 8px 8px 16px}.woocommerce-filters-advanced__list-item:hover{background-color:#f3f4f5}.woocommerce-filters-advanced__list-item .woocommerce-filters-advanced__remove{width:40px;height:38px;align-self:center}.woocommerce-filters-advanced__list-item .components-form-token-field{border-radius:4px}.woocommerce-filters-advanced__add-filter{padding:12px;margin:0;color:#95588a;display:block;background-color:#f8f9f9;border-bottom:1px solid #ccd0d4}.woocommerce-filters-advanced__add-filter:hover{background-color:#f3f4f5}.woocommerce-filters-advanced__add-filter div div{display:inline-block}.woocommerce-filters-advanced__add-filter .components-popover:not(.is-mobile) .components-popover__content{min-width:180px}.woocommerce-filters-advanced__fieldset{display:flex;align-items:center;white-space:nowrap}.woocommerce-filters-advanced__fieldset>div{padding:0 4px}@media (max-width:782px){.woocommerce-filters-advanced__fieldset>div{display:block;margin:0;width:100%;padding:4px 0}}@media (max-width:782px){.woocommerce-filters-advanced__fieldset{display:block}}.woocommerce-filters-advanced__fieldset.is-english{display:grid;grid-template-columns:100px 150px auto}@media (max-width:782px){.woocommerce-filters-advanced__fieldset.is-english{display:block}}.woocommerce-filters-advanced__rule{width:150px}.woocommerce-filters-advanced__input{width:100%}.woocommerce-filters-advanced__add-filter-dropdown{display:inline-block}.woocommerce-filters-advanced__add-button{color:inherit;padding:8px}.woocommerce-filters-advanced__add-button svg{fill:currentColor}.woocommerce-filters-advanced__add-button.components-icon-button:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#c88bbd}.woocommerce-filters-advanced__add-button:not(:disabled):not([aria-disabled=true]):focus{color:#95588a;background-color:transparent}.woocommerce-filters-advanced__controls{padding:8px 16px;display:flex;align-items:center}.woocommerce-filters-advanced__controls .components-button{margin-right:16px}.woocommerce-filters-advanced__add-dropdown{padding:8px 0}.woocommerce-filters-advanced__add-dropdown li{margin:0}.woocommerce-filters-advanced__add-dropdown .components-button{width:100%;padding:8px}.woocommerce-filters-advanced__add-dropdown .components-button:hover{background-color:#f3f4f5}.woocommerce-filters-advanced__add-dropdown .components-button:not(:disabled):not([aria-disabled=true]):focus{background-color:#edeff0;box-shadow:none}.woocommerce-filters-advanced__input-numeric-range{align-items:center;display:grid;grid-template-columns:1fr}.woocommerce-filters-advanced__input-numeric-range.is-between{grid-template-columns:1fr 36px 1fr}.woocommerce-filters-advanced__input-numeric-range input{height:38px;margin:0}.woocommerce-filters-advanced__input-numeric-range .separator{padding:0 8px}@media (max-width:782px){.woocommerce-filters-advanced__input-numeric-range .separator{padding:0}}.woocommerce-filters-date__content.is-mobile .components-popover__header{border:none;height:0}.woocommerce-filters-date__content.is-mobile .components-popover__close{transform:translateY(22px)}.woocommerce-filters-date__content.is-mobile .components-tab-panel__tab-content{height:calc(100% - 36px)}.woocommerce-filters-date__tabs{height:calc(100% - 42px)}.woocommerce-filters-date__tabs .components-tab-panel__tabs{display:grid;grid-template-columns:1fr 1fr;border-radius:5px;margin:0 1em 1em}.woocommerce-filters-date__tabs .components-tab-panel__tab-content{display:flex;flex-direction:column;align-items:center}.woocommerce-filters-date__tab:first-child{grid-column-start:1;grid-column-end:2;grid-row-start:1;grid-row-end:2}.woocommerce-filters-date__tab:nth-child(2){grid-column-start:2;grid-column-end:3;grid-row-start:1;grid-row-end:2}.woocommerce-filters-date__tab{outline:none;border:1px solid #95588a;padding:8px;margin:0;border-radius:4px 0 0 4px;color:#95588a;background-color:transparent}.woocommerce-filters-date__tab:hover{background-color:#f8f4f7;cursor:pointer}.woocommerce-filters-date__tab:last-child{border-radius:0 4px 4px 0}.woocommerce-filters-date__tab.is-active{background-color:#95588a;color:#fff}.woocommerce-filters-date__tab:focus{box-shadow:inset 0 -1px 0 #00435d,0 0 0 2px #bfe7f3}.woocommerce-filters-date__text{font-size:12px;font-size:.75rem;font-weight:100;text-transform:uppercase;text-align:center;color:#6c7781;width:100%;margin:0;padding:1em;background-color:#fff}.woocommerce-filters-date__content-controls{display:flex;flex-direction:column;width:100%;align-items:center;padding-bottom:1em;background-color:#fff}.woocommerce-filters-date__content-controls.is-custom{border-top:1px solid #ccd0d4}.woocommerce-filters-date__content-controls.is-sticky-bottom{position:absolute;bottom:0}.woocommerce-filters-date__button-group{padding-top:1em;display:flex;justify-content:center;width:100%}.woocommerce-filters-date__button-group .woocommerce-filters-date__button.is-button{justify-content:center;width:40%;height:34px;margin:0 12px}.woocommerce-filters-date__content.is-center:not(.is-mobile)>.components-popover__content{transform:none;margin-left:-160px}.woocommerce-filters-filter__content.is-mobile .components-popover__header-title{font-size:12px;font-size:.75rem;font-weight:100;text-transform:uppercase;text-align:center;color:#555d66}.woocommerce-filters-filter__content.is-mobile .woocommerce-filters-filter__content-list-item:last-child{border-bottom:1px solid #ccd0d4}.woocommerce-filters-filter__content-list{margin:0;width:100%;min-width:100%}.woocommerce-filters-filter__content-list-item{border-bottom:1px solid #ccd0d4;margin:0}.woocommerce-filters-filter__content-list-item:last-child{border-bottom:none}.woocommerce-filters-filter__content-list-item.is-selected .woocommerce-filters-filter__button,.woocommerce-filters-filter__content-list-item.is-selected .woocommerce-filters-filter__button.components-button:not(:disabled):not([aria-disabled=true]):focus{background-color:#fff}.woocommerce-filters-filter__content-list-item.is-selected .woocommerce-filters-filter__button:before{content:"";width:8px;height:8px;background-color:#95588a;position:absolute;top:50%;left:1em;transform:translate(50%,-50%)}.woocommerce-filters-filter__content-list-item .woocommerce-filters-filter__button{position:relative;display:block;width:100%;padding:1em 1em 1em 3em;background-color:#f8f9f9;text-align:left}.woocommerce-filters-filter__content-list-item .woocommerce-filters-filter__button.components-button{color:#555d66}.woocommerce-filters-filter__content-list-item .woocommerce-filters-filter__button:hover{background-color:#f3f4f5;color:#555d66}.woocommerce-filters-filter__content-list-item .woocommerce-filters-filter__button.components-button:not(:disabled):not([aria-disabled=true]):focus{background-color:#f8f9f9}.woocommerce-filters-filter__content-list-item .woocommerce-filters-filter__button .dashicon{position:absolute;left:1em;top:50%;transform:translateY(-50%)}.woocommerce-filters .components-base-control__field{margin-bottom:0}.woocommerce-filters__basic-filters{display:flex;margin-bottom:24px}@media (max-width:1280px){.woocommerce-filters__basic-filters{flex-direction:column}}.woocommerce-filters-filter{width:33.3%;padding:0 12px;min-height:82px;display:flex;flex-direction:column;justify-content:flex-end}.woocommerce-filters-filter:first-child{padding-left:0}.woocommerce-filters-filter:last-child{padding-right:0}@media (max-width:1280px){.woocommerce-filters-filter{width:50%;padding:0;min-height:78px}}@media (max-width:782px){.woocommerce-filters-filter{width:100%}}.woocommerce-filters-label{margin:7px 0;display:block}@media (max-width:1280px){.woocommerce-filters-label{margin:5px 0}}.woocommerce-filters-date__content .components-popover__content,.woocommerce-filters-filter__content .components-popover__content{width:320px;border:1px solid #ccd0d4;background-color:#fff}.woocommerce-filters-date__content.is-mobile .components-popover__content,.woocommerce-filters-filter__content.is-mobile .components-popover__content{width:100%;height:100%;border:none}.woocommerce-filters__compare .woocommerce-card__body{padding:0}.woocommerce-filters__compare-body{padding:16px;background-color:#f8f9f9;border-bottom:1px solid #e2e4e7}.woocommerce-filters__compare-footer{padding:16px;display:flex;align-items:center}.woocommerce-filters__compare-footer .components-button{margin-right:16px}.woocommerce-filters-filter__search .woocommerce-search__autocomplete-results{position:static}.woocommerce-filters-filter__search .woocommerce-search__inline-container{overflow:hidden}.woocommerce-filters-filter__search .woocommerce-search__inline-container:not(.is-active){border:none}.woocommerce-flag.is-round{overflow:hidden;border-radius:50%}.woocommerce-flag.is-round img{width:auto;height:100%}.woocommerce-flag .woocommerce-flag__fallback{background:#e2e4e7}.woocommerce-gravatar{border-radius:50%}.woocommerce-order-status{display:flex;align-items:center}.woocommerce-order-status__indicator{width:16px;height:16px;display:block;background:#ccd0d4;margin-right:8px;border-radius:50%;border:3px solid #e2e4e7}.woocommerce-order-status__indicator.is-processing{background:#4ab866;border-color:#93d5a4}.woocommerce-order-status__indicator.is-on-hold{background:#ffb900;border-color:#ffd566}.woocommerce-pagination{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:center;align-items:center}@media (max-width:782px){.woocommerce-pagination{flex-direction:column}}.woocommerce-pagination input{border-radius:4px}.woocommerce-pagination__page-arrows{display:flex;flex-direction:row}.woocommerce-pagination__page-arrows-buttons{display:inline-flex;align-items:baseline;border:solid #b5bfc9;border-width:1px 1px 2px;border-radius:4px;background:#f0f2f4}.woocommerce-pagination__page-arrows-buttons .components-button:not(:disabled):not([aria-disabled=true]){color:#24292d;height:30px;width:32px;justify-content:center}.woocommerce-pagination__page-arrows-buttons .components-icon-button:not(:disabled):not([aria-disabled=true]):hover{color:#666}.woocommerce-pagination__page-arrows-buttons button:first-child{border-right:2px solid #d3d9de}.woocommerce-pagination__page-arrows-buttons .woocommerce-pagination__link{padding:4px}.woocommerce-pagination__page-arrows-label{margin-top:8px;margin-right:8px}.woocommerce-pagination__page-picker{margin-left:16px}@media (max-width:782px){.woocommerce-pagination__page-picker{margin-top:16px;margin-left:0}}.woocommerce-pagination__page-picker .woocommerce-pagination__page-picker-input{margin-left:8px;width:60px;height:34px;box-shadow:none}.woocommerce-pagination__per-page-picker{margin-left:16px}@media (max-width:782px){.woocommerce-pagination__per-page-picker{margin-top:16px;margin-left:0}}.woocommerce-pagination__per-page-picker .components-base-control{margin-bottom:0}.woocommerce-pagination__per-page-picker .components-base-control__field{display:flex;flex-direction:row;align-items:baseline;margin-bottom:0}.woocommerce-pagination__per-page-picker .components-select-control__input{width:60px;height:34px;box-shadow:none}.woocommerce-pagination__per-page-picker .components-base-control__label{margin-right:8px}.woocommerce-pagination__page-picker-input.has-error,.woocommerce-pagination__page-picker-input.has-error:focus{border-color:#d94f4f;box-shadow:0 0 2px #d94f4f}.woocommerce-product-image{border-radius:50%}.woocommerce-rating{position:relative;vertical-align:middle;display:inline-block;overflow:hidden}.woocommerce-rating .gridicon{fill:#d7dade}.woocommerce-rating .woocommerce-rating__star-outline{position:absolute;left:0;top:0;white-space:nowrap;overflow:hidden}.woocommerce-rating .woocommerce-rating__star-outline .gridicon{fill:#555d66}.woocommerce-search{position:relative}.woocommerce-search .woocommerce-search__icon{position:absolute;top:10px;left:10px;fill:#a2aab2}.woocommerce-search .woocommerce-search__inline-container{width:100%;padding:2px 2px 2px 36px;border:1px solid #ccd0d4;background-color:#fff}.woocommerce-search .woocommerce-search__inline-container.is-active{border-color:#00a0d2;box-shadow:inset 0 0 0 #00435d,0 0 1px 2px #bfe7f3}.woocommerce-search .woocommerce-search__inline-container .woocommerce-search__token-list{display:inline-block}.woocommerce-search .woocommerce-search__inline-input,.woocommerce-search .woocommerce-search__inline-input:focus{border:none;outline:none;box-shadow:none;padding:6px 0}.woocommerce-search .woocommerce-search__input{width:100%;padding:8px 12px 8px 36px;border:1px solid #ccd0d4}.woocommerce-search .woocommerce-search__autocomplete-results{display:flex;flex-direction:column;align-items:stretch;border:1px solid #ccd0d4;position:absolute;top:36px;left:0;right:0;z-index:10}.woocommerce-search .woocommerce-search__autocomplete-results:empty{display:none}.woocommerce-search .woocommerce-search__autocomplete-results.is-static-results{position:static}.woocommerce-search .woocommerce-search__autocomplete-result{margin-bottom:0;display:flex;flex-direction:row;flex-grow:1;flex-shrink:0;align-items:center;padding:12px;color:#95588a;text-decoration:underline;text-align:left;background:#f8f9f9;border-bottom:1px solid #e2e4e7}.woocommerce-search .woocommerce-search__autocomplete-result:last-of-type{border-bottom:none}.woocommerce-search .woocommerce-search__autocomplete-result:hover{box-shadow:none;color:#95588a;background:#f3f4f5}.woocommerce-search .woocommerce-search__autocomplete-result.is-selected,.woocommerce-search .woocommerce-search__autocomplete-result:active,.woocommerce-search .woocommerce-search__autocomplete-result:focus{color:#95588a;background:#fff;box-shadow:inset 0 0 0 1px #f3f4f5,inset 0 0 0 2px #24292d}.woocommerce-search .woocommerce-search__autocomplete-result .woocommerce-search__result-thumbnail{margin-right:12px}.woocommerce-section-header{padding:13px;border-bottom:none;display:flex;justify-content:space-between}@media (max-width:782px){.woocommerce-section-header{margin-left:-16px;margin-right:-16px;margin-bottom:12px;border-left:none;border-right:none;width:auto}}.woocommerce-section-header hr{align-self:center;flex-grow:1;height:1px;margin:0 10px}.woocommerce-section-header__actions,.woocommerce-section-header__menu{text-align:right}.woocommerce-section-header__actions{display:flex;flex-grow:1;justify-content:flex-end}.woocommerce-ellipsis-menu__toggle{padding:0}.woocommerce-section-header__menu{display:flex;flex-direction:column;justify-content:center}.woocommerce-section-header__title{margin:0 16px 0 0;padding:3px 0;font-size:15px;font-size:.9375rem;line-height:2.2;font-weight:600}.woocommerce-segmented-selection{width:100%;color:#555d66}.woocommerce-segmented-selection__container{width:100%;grid-template-columns:1fr 1fr;display:grid;border-top:1px solid #ccd0d4;border-bottom:1px solid #ccd0d4;background-color:#ccd0d4}.woocommerce-segmented-selection__item{display:block}.woocommerce-segmented-selection__item:first-child{grid-column-start:1;grid-column-end:2;grid-row-start:1;grid-row-end:2}.woocommerce-segmented-selection__item:nth-child(2){grid-column-start:2;grid-column-end:3;grid-row-start:1;grid-row-end:2}.woocommerce-segmented-selection__item:nth-child(3){grid-column-start:1;grid-column-end:2;grid-row-start:2;grid-row-end:3}.woocommerce-segmented-selection__item:nth-child(4){grid-column-start:2;grid-column-end:3;grid-row-start:2;grid-row-end:3}.woocommerce-segmented-selection__item:nth-child(5){grid-column-start:1;grid-column-end:2;grid-row-start:3;grid-row-end:4}.woocommerce-segmented-selection__item:nth-child(6){grid-column-start:2;grid-column-end:3;grid-row-start:3;grid-row-end:4}.woocommerce-segmented-selection__item:nth-child(7){grid-column-start:1;grid-column-end:2;grid-row-start:4;grid-row-end:5}.woocommerce-segmented-selection__item:nth-child(8){grid-column-start:2;grid-column-end:3;grid-row-start:4;grid-row-end:5}.woocommerce-segmented-selection__item:nth-child(9){grid-column-start:1;grid-column-end:2;grid-row-start:5;grid-row-end:6}.woocommerce-segmented-selection__item:nth-child(10){grid-column-start:2;grid-column-end:3;grid-row-start:5;grid-row-end:6}.woocommerce-segmented-selection__item:nth-child(2n){border-left:1px solid #ccd0d4;border-top:1px solid #ccd0d4}.woocommerce-segmented-selection__item:nth-child(odd){border-top:1px solid #ccd0d4}.woocommerce-segmented-selection__item:nth-child(-n+2){border-top:0}.woocommerce-segmented-selection__label{background-color:#f8f9f9;padding:12px 12px 12px 36px;position:relative;display:block;height:100%}.woocommerce-segmented-selection__label:active,.woocommerce-segmented-selection__label:hover{background-color:#f3f4f5}.woocommerce-segmented-selection__input{opacity:0;position:absolute;left:-9999px}.woocommerce-segmented-selection__input:active+label .woocommerce-segmented-selection__label{background-color:#f3f4f5}.woocommerce-segmented-selection__input:checked+label .woocommerce-segmented-selection__label{background-color:#fff;font-weight:600}.woocommerce-segmented-selection__input:checked+label .woocommerce-segmented-selection__label:before{content:"";width:8px;height:8px;background-color:#95588a;position:absolute;top:50%;transform:translate(-20px,-50%)}.woocommerce-segmented-selection__input:focus+label .woocommerce-segmented-selection__label{box-shadow:inset 0 0 0 1px #24292d}.woocommerce-split-button{display:flex;align-items:center;padding:4px 0}.woocommerce-split-button .woocommerce-split-button__menu{padding:0}.woocommerce-split-button .woocommerce-split-button__main-action,.woocommerce-split-button .woocommerce-split-button__menu-toggle{line-height:26px;height:42px;border-radius:3px;white-space:nowrap;color:#555d66;border:1px solid #b5bcc2;background:#f3f4f5;box-shadow:inset 0 -1px 0 #b5bcc2;vertical-align:top}.woocommerce-split-button .woocommerce-split-button__main-action{padding:0 12px;border-top-right-radius:0;border-bottom-right-radius:0;border-right:0;height:32px}.woocommerce-split-button .woocommerce-split-button__menu-toggle{border-top-left-radius:0;border-bottom-left-radius:0;padding:4px;height:32px;width:32px}.woocommerce-split-button .woocommerce-split-button__menu-popover.is-mobile{top:46px}.woocommerce-split-button .woocommerce-split-button__main-action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-default):hover,.woocommerce-split-button .woocommerce-split-button__menu-toggle.components-icon-button:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{background-color:#fafafa;border-color:#78848f;box-shadow:inset 0 -1px 0 #b5bcc2}.woocommerce-split-button .woocommerce-split-button__main-action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-default):focus,.woocommerce-split-button .woocommerce-split-button__menu-toggle.components-icon-button:not(:disabled):not([aria-disabled=true]):not(.is-default):focus{background-color:#fafafa;border:1px solid #555d66;box-shadow:inset 0 -1px 0 #6c7781,0 0 0 2px #bfe7f3}.woocommerce-split-button .woocommerce-split-button__main-action.components-button .dashicon,.woocommerce-split-button .woocommerce-split-button__main-action.components-button .gridicon{width:18px;height:18px}.woocommerce-split-button.has-label .woocommerce-split-button__main-action.components-button .dashicon,.woocommerce-split-button.has-label .woocommerce-split-button__main-action.components-button .gridicon{margin-right:8px}.woocommerce-split-button .woocommerce-split-button__menu-wrapper{width:100%;padding:4px}.woocommerce-split-button .woocommerce-split-button__menu-wrapper .components-button,.woocommerce-split-button .woocommerce-split-button__menu-wrapper .components-icon-button{color:#555d66;margin-top:4px;margin-bottom:4px}.woocommerce-split-button .woocommerce-split-button__menu-wrapper .components-button:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{background-color:#fff;color:#24292d;box-shadow:inset 0 0 0 1px #e2e4e7,inset 0 0 0 2px #fff,0 1px 1px rgba(25,30,35,.2)}.woocommerce-split-button .woocommerce-split-button__menu-item{width:100%;padding:4px;border-radius:0;outline:none;cursor:pointer}.woocommerce-split-button .woocommerce-split-button__menu-item .dashicon{margin-right:8px}.woocommerce-split-button .dashicons-arrow-down{fill:#555d66;height:20px;width:20px}.woocommerce-split-button .woocommerce-split-button__menu-toggle.is-active,.woocommerce-split-button .woocommerce-split-button__menu-toggle.is-active:hover,.woocommerce-split-button .woocommerce-split-button__menu-toggle.is-active:hover>svg,.woocommerce-split-button .woocommerce-split-button__menu-toggle.is-active>svg{background:initial}.woocommerce-split-button .woocommerce-split-button__menu-toggle.is-active,.woocommerce-split-button .woocommerce-split-button__menu-toggle.is-active:hover{border-color:#b5bcc2}.woocommerce-split-button.is-primary .woocommerce-split-button__main-action,.woocommerce-split-button.is-primary .woocommerce-split-button__menu-toggle{background:#95588a;color:#fff;border-color:#7c3f71;box-shadow:inset 0 -1px 0 #7c3f71}.woocommerce-split-button.is-primary .woocommerce-split-button__main-action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-default):hover,.woocommerce-split-button.is-primary .woocommerce-split-button__menu-toggle.components-icon-button:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{color:#fff;background-color:#7c3f71;border-color:#622557;box-shadow:inset 0 -1px 0 #622557}.woocommerce-split-button.is-primary .woocommerce-split-button__main-action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-default):focus,.woocommerce-split-button.is-primary .woocommerce-split-button__menu-toggle.components-icon-button:not(:disabled):not([aria-disabled=true]):not(.is-default):focus{color:#fff;background-color:#7c3f71;box-shadow:inset 0 -1px 0 #622557,0 0 0 2px #ffd7ff;border:1px solid #622557}.woocommerce-split-button.is-primary .dashicons-arrow-down{fill:#fff}.woocommerce-summary{margin:16px 0;display:grid;border-color:#ccd0d4;border-style:solid;border-width:1px 0 0 1px;background-color:#edeff0;box-shadow:inset -1px -1px 0 #ccd0d4}@media (max-width:782px){.woocommerce-summary.is-placeholder{border-top:0}.woocommerce-summary .woocommerce-summary__item-container.is-placeholder{border-top:1px solid #ccd0d4}}.woocommerce-summary .components-popover.components-popover{position:static!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;margin-top:0!important;margin-left:0}.woocommerce-summary .components-popover.components-popover .components-popover__header{display:none}.woocommerce-summary .components-popover.components-popover .components-popover__content{position:static;left:auto;right:auto;margin:0;width:100%;max-width:100%!important;max-height:100%!important;box-shadow:none;border:none;transform:none}.woocommerce-summary .components-popover.components-popover .components-popover__content .woocommerce-summary__item.is-selected{display:none}.components-popover__content .woocommerce-summary{max-height:100%;margin-top:0;margin-bottom:0;overflow-y:scroll;border:none}.woocommerce-summary .woocommerce-summary__item-data{display:flex;flex-wrap:wrap}.woocommerce-summary .woocommerce-summary__item-delta,.woocommerce-summary .woocommerce-summary__item-value{flex:1 0 auto}.woocommerce-summary .woocommerce-summary__item-delta{flex:0 1 auto;display:flex;flex-wrap:none}.woocommerce-summary,.woocommerce-summary.has-1-items,.woocommerce-summary.has-one-item{grid-template-columns:1fr}.woocommerce-summary.has-2-items{grid-template-columns:repeat(2,1fr)}.woocommerce-summary.has-2-items .woocommerce-summary__item-container:nth-of-type(2n) .woocommerce-summary__item{border-right-color:#ccd0d4}.woocommerce-summary.has-3-items{grid-template-columns:repeat(3,1fr)}.woocommerce-summary.has-3-items .woocommerce-summary__item-container:nth-of-type(3n) .woocommerce-summary__item{border-right-color:#ccd0d4}.woocommerce-summary.has-4-items,.woocommerce-summary.has-7-items,.woocommerce-summary.has-8-items{grid-template-columns:repeat(4,1fr)}.woocommerce-summary.has-4-items .woocommerce-summary__item-container:nth-of-type(4n) .woocommerce-summary__item,.woocommerce-summary.has-7-items .woocommerce-summary__item-container:nth-of-type(4n) .woocommerce-summary__item,.woocommerce-summary.has-8-items .woocommerce-summary__item-container:nth-of-type(4n) .woocommerce-summary__item{border-right-color:#ccd0d4}.woocommerce-summary.has-5-items,.woocommerce-summary.has-9-items,.woocommerce-summary.has-10-items{grid-template-columns:repeat(5,1fr)}.woocommerce-summary.has-5-items .woocommerce-summary__item-container:nth-of-type(5n) .woocommerce-summary__item,.woocommerce-summary.has-9-items .woocommerce-summary__item-container:nth-of-type(5n) .woocommerce-summary__item,.woocommerce-summary.has-10-items .woocommerce-summary__item-container:nth-of-type(5n) .woocommerce-summary__item{border-right-color:#ccd0d4}.woocommerce-summary.has-5-items .woocommerce-summary__item-delta,.woocommerce-summary.has-5-items .woocommerce-summary__item-value,.woocommerce-summary.has-9-items .woocommerce-summary__item-delta,.woocommerce-summary.has-9-items .woocommerce-summary__item-value,.woocommerce-summary.has-10-items .woocommerce-summary__item-delta,.woocommerce-summary.has-10-items .woocommerce-summary__item-value{min-width:100%}.woocommerce-summary.has-5-items .woocommerce-summary__item-prev-label,.woocommerce-summary.has-5-items .woocommerce-summary__item-prev-value,.woocommerce-summary.has-9-items .woocommerce-summary__item-prev-label,.woocommerce-summary.has-9-items .woocommerce-summary__item-prev-value,.woocommerce-summary.has-10-items .woocommerce-summary__item-prev-label,.woocommerce-summary.has-10-items .woocommerce-summary__item-prev-value{display:block}.woocommerce-summary.has-6-items{grid-template-columns:repeat(6,1fr)}.woocommerce-summary.has-6-items .woocommerce-summary__item-container:nth-of-type(6n) .woocommerce-summary__item{border-right-color:#ccd0d4}.woocommerce-summary.has-6-items .woocommerce-summary__item-delta,.woocommerce-summary.has-6-items .woocommerce-summary__item-value{min-width:100%}.woocommerce-summary.has-6-items .woocommerce-summary__item-prev-label,.woocommerce-summary.has-6-items .woocommerce-summary__item-prev-value{display:block}@media (max-width:1440px){.woocommerce-summary.has-4-items .woocommerce-summary__item-delta,.woocommerce-summary.has-4-items .woocommerce-summary__item-value,.woocommerce-summary.has-7-items .woocommerce-summary__item-delta,.woocommerce-summary.has-7-items .woocommerce-summary__item-value,.woocommerce-summary.has-8-items .woocommerce-summary__item-delta,.woocommerce-summary.has-8-items .woocommerce-summary__item-value{min-width:100%}.woocommerce-summary.has-4-items .woocommerce-summary__item-prev-label,.woocommerce-summary.has-4-items .woocommerce-summary__item-prev-value,.woocommerce-summary.has-7-items .woocommerce-summary__item-prev-label,.woocommerce-summary.has-7-items .woocommerce-summary__item-prev-value,.woocommerce-summary.has-8-items .woocommerce-summary__item-prev-label,.woocommerce-summary.has-8-items .woocommerce-summary__item-prev-value{display:block}.woocommerce-summary.has-6-items,.woocommerce-summary.has-9-items{grid-template-columns:repeat(3,1fr)}.woocommerce-summary.has-6-items .woocommerce-summary__item-container:nth-of-type(3n) .woocommerce-summary__item,.woocommerce-summary.has-9-items .woocommerce-summary__item-container:nth-of-type(3n) .woocommerce-summary__item{border-right-color:#ccd0d4}.woocommerce-summary.has-6-items .woocommerce-summary__item-delta,.woocommerce-summary.has-6-items .woocommerce-summary__item-value,.woocommerce-summary.has-9-items .woocommerce-summary__item-delta,.woocommerce-summary.has-9-items .woocommerce-summary__item-value{min-width:auto}.woocommerce-summary.has-6-items .woocommerce-summary__item-prev-label,.woocommerce-summary.has-6-items .woocommerce-summary__item-prev-value,.woocommerce-summary.has-9-items .woocommerce-summary__item-prev-label,.woocommerce-summary.has-9-items .woocommerce-summary__item-prev-value{display:inline}.woocommerce-summary.has-10-items{grid-template-columns:repeat(4,1fr)}.woocommerce-summary.has-10-items .woocommerce-summary__item-container:nth-of-type(4n) .woocommerce-summary__item{border-right-color:#ccd0d4}.woocommerce-summary.has-9-items .woocommerce-summary__item-container:nth-of-type(5n) .woocommerce-summary__item,.woocommerce-summary.has-10-items .woocommerce-summary__item-container:nth-of-type(5n) .woocommerce-summary__item{border-right-color:#e2e4e7}}@media (max-width:960px){.woocommerce-summary .woocommerce-summary__item{border-right-color:#ccd0d4}}@media (max-width:782px){.woocommerce-summary .woocommerce-summary__item-container.is-dropdown-button,.woocommerce-summary .woocommerce-summary__item-container:only-child{margin-left:-16px;margin-right:-16px;width:auto}.woocommerce-summary .woocommerce-summary__item-container.is-dropdown-button .woocommerce-summary__item,.woocommerce-summary .woocommerce-summary__item-container:only-child .woocommerce-summary__item{border-right:none}.woocommerce-summary .components-popover.components-popover{margin-left:-16px;margin-right:-16px}.woocommerce-summary .components-popover.components-popover .woocommerce-summary__item-container{margin-left:0;margin-right:0}}.woocommerce-summary__item-container{margin-bottom:0;width:100%}.woocommerce-summary__item-container:last-of-type .woocommerce-summary__item{border-right-color:#ccd0d4!important}.woocommerce-summary__item-container.is-dropdown-button{padding:0;list-style:none;border-bottom:1px solid #ccd0d4;border-right:1px solid #ccd0d4}.woocommerce-summary__item-container.is-dropdown-button .components-button{text-align:left;display:block}@media (max-width:782px){.woocommerce-summary__item-container.is-dropdown-button{border-right:none}}.woocommerce-summary__item-container.is-placeholder .woocommerce-summary__item-label{animation:loading-fade 1.6s ease-in-out infinite;background-color:#e2e4e7;color:transparent;display:inline-block;height:16px;max-width:110px;width:70%}.woocommerce-summary__item-container.is-placeholder .woocommerce-summary__item-label:after{content:"\00a0"}.woocommerce-summary__item-container.is-placeholder .woocommerce-summary__item-data{justify-content:space-between}.woocommerce-summary__item-container.is-placeholder .woocommerce-summary__item-prev-value,.woocommerce-summary__item-container.is-placeholder .woocommerce-summary__item-value{animation:loading-fade 1.6s ease-in-out infinite;background-color:#e2e4e7;color:transparent;display:inline-block;height:16px;max-width:140px;width:80%}.woocommerce-summary__item-container.is-placeholder .woocommerce-summary__item-prev-value:after,.woocommerce-summary__item-container.is-placeholder .woocommerce-summary__item-value:after{content:"\00a0"}.woocommerce-summary__item-container.is-placeholder .woocommerce-summary__item-delta-value{animation:loading-fade 1.6s ease-in-out infinite;background-color:#e2e4e7;color:transparent;display:inline-block;height:16px;width:20px}.woocommerce-summary__item-container.is-placeholder .woocommerce-summary__item-delta-value:after{content:"\00a0"}.has-1-items .woocommerce-summary__item-container:first-child,.has-2-items .woocommerce-summary__item-container:first-child{grid-column-start:1;grid-column-end:2;grid-row-start:1;grid-row-end:2}.has-2-items .woocommerce-summary__item-container:nth-child(2){grid-column-start:2;grid-column-end:3;grid-row-start:1;grid-row-end:2}.has-3-items .woocommerce-summary__item-container:first-child{grid-column-start:1;grid-column-end:2;grid-row-start:1;grid-row-end:2}.has-3-items .woocommerce-summary__item-container:nth-child(2){grid-column-start:2;grid-column-end:3;grid-row-start:1;grid-row-end:2}.has-3-items .woocommerce-summary__item-container:nth-child(3){grid-column-start:3;grid-column-end:4;grid-row-start:1;grid-row-end:2}.has-4-items .woocommerce-summary__item-container:first-child{grid-column-start:1;grid-column-end:2;grid-row-start:1;grid-row-end:2}.has-4-items .woocommerce-summary__item-container:nth-child(2){grid-column-start:2;grid-column-end:3;grid-row-start:1;grid-row-end:2}.has-4-items .woocommerce-summary__item-container:nth-child(3){grid-column-start:3;grid-column-end:4;grid-row-start:1;grid-row-end:2}.has-4-items .woocommerce-summary__item-container:nth-child(4){grid-column-start:4;grid-column-end:5;grid-row-start:1;grid-row-end:2}.has-5-items .woocommerce-summary__item-container:first-child{grid-column-start:1;grid-column-end:2;grid-row-start:1;grid-row-end:2}.has-5-items .woocommerce-summary__item-container:nth-child(2){grid-column-start:2;grid-column-end:3;grid-row-start:1;grid-row-end:2}.has-5-items .woocommerce-summary__item-container:nth-child(3){grid-column-start:3;grid-column-end:4;grid-row-start:1;grid-row-end:2}.has-5-items .woocommerce-summary__item-container:nth-child(4){grid-column-start:4;grid-column-end:5;grid-row-start:1;grid-row-end:2}.has-5-items .woocommerce-summary__item-container:nth-child(5){grid-column-start:5;grid-column-end:6;grid-row-start:1;grid-row-end:2}.has-6-items .woocommerce-summary__item-container:first-child{grid-column-start:1;grid-column-end:2;grid-row-start:1;grid-row-end:2}.has-6-items .woocommerce-summary__item-container:nth-child(2){grid-column-start:2;grid-column-end:3;grid-row-start:1;grid-row-end:2}.has-6-items .woocommerce-summary__item-container:nth-child(3){grid-column-start:3;grid-column-end:4;grid-row-start:1;grid-row-end:2}.has-6-items .woocommerce-summary__item-container:nth-child(4){grid-column-start:4;grid-column-end:5;grid-row-start:1;grid-row-end:2}.has-6-items .woocommerce-summary__item-container:nth-child(5){grid-column-start:5;grid-column-end:6;grid-row-start:1;grid-row-end:2}.has-6-items .woocommerce-summary__item-container:nth-child(6){grid-column-start:6;grid-column-end:7;grid-row-start:1;grid-row-end:2}@media (max-width:1440px){.has-6-items .woocommerce-summary__item-container:first-child{grid-column-start:1;grid-column-end:2;grid-row-start:1;grid-row-end:2}.has-6-items .woocommerce-summary__item-container:nth-child(2){grid-column-start:2;grid-column-end:3;grid-row-start:1;grid-row-end:2}.has-6-items .woocommerce-summary__item-container:nth-child(3){grid-column-start:3;grid-column-end:4;grid-row-start:1;grid-row-end:2}.has-6-items .woocommerce-summary__item-container:nth-child(4){grid-column-start:1;grid-column-end:2;grid-row-start:2;grid-row-end:3}.has-6-items .woocommerce-summary__item-container:nth-child(5){grid-column-start:2;grid-column-end:3;grid-row-start:2;grid-row-end:3}.has-6-items .woocommerce-summary__item-container:nth-child(6){grid-column-start:3;grid-column-end:4;grid-row-start:2;grid-row-end:3}}.has-7-items .woocommerce-summary__item-container:first-child{grid-column-start:1;grid-column-end:2;grid-row-start:1;grid-row-end:2}.has-7-items .woocommerce-summary__item-container:nth-child(2){grid-column-start:2;grid-column-end:3;grid-row-start:1;grid-row-end:2}.has-7-items .woocommerce-summary__item-container:nth-child(3){grid-column-start:3;grid-column-end:4;grid-row-start:1;grid-row-end:2}.has-7-items .woocommerce-summary__item-container:nth-child(4){grid-column-start:4;grid-column-end:5;grid-row-start:1;grid-row-end:2}.has-7-items .woocommerce-summary__item-container:nth-child(5){grid-column-start:1;grid-column-end:2;grid-row-start:2;grid-row-end:3}.has-7-items .woocommerce-summary__item-container:nth-child(6){grid-column-start:2;grid-column-end:3;grid-row-start:2;grid-row-end:3}.has-7-items .woocommerce-summary__item-container:nth-child(7){grid-column-start:3;grid-column-end:4;grid-row-start:2;grid-row-end:3}.has-8-items .woocommerce-summary__item-container:first-child{grid-column-start:1;grid-column-end:2;grid-row-start:1;grid-row-end:2}.has-8-items .woocommerce-summary__item-container:nth-child(2){grid-column-start:2;grid-column-end:3;grid-row-start:1;grid-row-end:2}.has-8-items .woocommerce-summary__item-container:nth-child(3){grid-column-start:3;grid-column-end:4;grid-row-start:1;grid-row-end:2}.has-8-items .woocommerce-summary__item-container:nth-child(4){grid-column-start:4;grid-column-end:5;grid-row-start:1;grid-row-end:2}.has-8-items .woocommerce-summary__item-container:nth-child(5){grid-column-start:1;grid-column-end:2;grid-row-start:2;grid-row-end:3}.has-8-items .woocommerce-summary__item-container:nth-child(6){grid-column-start:2;grid-column-end:3;grid-row-start:2;grid-row-end:3}.has-8-items .woocommerce-summary__item-container:nth-child(7){grid-column-start:3;grid-column-end:4;grid-row-start:2;grid-row-end:3}.has-8-items .woocommerce-summary__item-container:nth-child(8){grid-column-start:4;grid-column-end:5;grid-row-start:2;grid-row-end:3}.has-9-items .woocommerce-summary__item-container:first-child{grid-column-start:1;grid-column-end:2;grid-row-start:1;grid-row-end:2}.has-9-items .woocommerce-summary__item-container:nth-child(2){grid-column-start:2;grid-column-end:3;grid-row-start:1;grid-row-end:2}.has-9-items .woocommerce-summary__item-container:nth-child(3){grid-column-start:3;grid-column-end:4;grid-row-start:1;grid-row-end:2}.has-9-items .woocommerce-summary__item-container:nth-child(4){grid-column-start:4;grid-column-end:5;grid-row-start:1;grid-row-end:2}.has-9-items .woocommerce-summary__item-container:nth-child(5){grid-column-start:5;grid-column-end:6;grid-row-start:1;grid-row-end:2}.has-9-items .woocommerce-summary__item-container:nth-child(6){grid-column-start:1;grid-column-end:2;grid-row-start:2;grid-row-end:3}.has-9-items .woocommerce-summary__item-container:nth-child(7){grid-column-start:2;grid-column-end:3;grid-row-start:2;grid-row-end:3}.has-9-items .woocommerce-summary__item-container:nth-child(8){grid-column-start:3;grid-column-end:4;grid-row-start:2;grid-row-end:3}.has-9-items .woocommerce-summary__item-container:nth-child(9){grid-column-start:4;grid-column-end:5;grid-row-start:2;grid-row-end:3}@media (max-width:1440px){.has-9-items .woocommerce-summary__item-container:first-child{grid-column-start:1;grid-column-end:2;grid-row-start:1;grid-row-end:2}.has-9-items .woocommerce-summary__item-container:nth-child(2){grid-column-start:2;grid-column-end:3;grid-row-start:1;grid-row-end:2}.has-9-items .woocommerce-summary__item-container:nth-child(3){grid-column-start:3;grid-column-end:4;grid-row-start:1;grid-row-end:2}.has-9-items .woocommerce-summary__item-container:nth-child(4){grid-column-start:1;grid-column-end:2;grid-row-start:2;grid-row-end:3}.has-9-items .woocommerce-summary__item-container:nth-child(5){grid-column-start:2;grid-column-end:3;grid-row-start:2;grid-row-end:3}.has-9-items .woocommerce-summary__item-container:nth-child(6){grid-column-start:3;grid-column-end:4;grid-row-start:2;grid-row-end:3}.has-9-items .woocommerce-summary__item-container:nth-child(7){grid-column-start:1;grid-column-end:2;grid-row-start:3;grid-row-end:4}.has-9-items .woocommerce-summary__item-container:nth-child(8){grid-column-start:2;grid-column-end:3;grid-row-start:3;grid-row-end:4}.has-9-items .woocommerce-summary__item-container:nth-child(9){grid-column-start:3;grid-column-end:4;grid-row-start:3;grid-row-end:4}}.has-10-items .woocommerce-summary__item-container:first-child{grid-column-start:1;grid-column-end:2;grid-row-start:1;grid-row-end:2}.has-10-items .woocommerce-summary__item-container:nth-child(2){grid-column-start:2;grid-column-end:3;grid-row-start:1;grid-row-end:2}.has-10-items .woocommerce-summary__item-container:nth-child(3){grid-column-start:3;grid-column-end:4;grid-row-start:1;grid-row-end:2}.has-10-items .woocommerce-summary__item-container:nth-child(4){grid-column-start:4;grid-column-end:5;grid-row-start:1;grid-row-end:2}.has-10-items .woocommerce-summary__item-container:nth-child(5){grid-column-start:5;grid-column-end:6;grid-row-start:1;grid-row-end:2}.has-10-items .woocommerce-summary__item-container:nth-child(6){grid-column-start:1;grid-column-end:2;grid-row-start:2;grid-row-end:3}.has-10-items .woocommerce-summary__item-container:nth-child(7){grid-column-start:2;grid-column-end:3;grid-row-start:2;grid-row-end:3}.has-10-items .woocommerce-summary__item-container:nth-child(8){grid-column-start:3;grid-column-end:4;grid-row-start:2;grid-row-end:3}.has-10-items .woocommerce-summary__item-container:nth-child(9){grid-column-start:4;grid-column-end:5;grid-row-start:2;grid-row-end:3}.has-10-items .woocommerce-summary__item-container:nth-child(10){grid-column-start:5;grid-column-end:6;grid-row-start:2;grid-row-end:3}@media (max-width:1440px){.has-10-items .woocommerce-summary__item-container:first-child{grid-column-start:1;grid-column-end:2;grid-row-start:1;grid-row-end:2}.has-10-items .woocommerce-summary__item-container:nth-child(2){grid-column-start:2;grid-column-end:3;grid-row-start:1;grid-row-end:2}.has-10-items .woocommerce-summary__item-container:nth-child(3){grid-column-start:3;grid-column-end:4;grid-row-start:1;grid-row-end:2}.has-10-items .woocommerce-summary__item-container:nth-child(4){grid-column-start:4;grid-column-end:5;grid-row-start:1;grid-row-end:2}.has-10-items .woocommerce-summary__item-container:nth-child(5){grid-column-start:1;grid-column-end:2;grid-row-start:2;grid-row-end:3}.has-10-items .woocommerce-summary__item-container:nth-child(6){grid-column-start:2;grid-column-end:3;grid-row-start:2;grid-row-end:3}.has-10-items .woocommerce-summary__item-container:nth-child(7){grid-column-start:3;grid-column-end:4;grid-row-start:2;grid-row-end:3}.has-10-items .woocommerce-summary__item-container:nth-child(8){grid-column-start:4;grid-column-end:5;grid-row-start:2;grid-row-end:3}.has-10-items .woocommerce-summary__item-container:nth-child(9){grid-column-start:1;grid-column-end:2;grid-row-start:3;grid-row-end:4}.has-10-items .woocommerce-summary__item-container:nth-child(10){grid-column-start:2;grid-column-end:3;grid-row-start:3;grid-row-end:4}}@media (max-width:960px){.woocommerce-summary>.woocommerce-summary__item-container:first-child{grid-column-start:1;grid-column-end:2;grid-row-start:1;grid-row-end:2}.woocommerce-summary>.woocommerce-summary__item-container:nth-child(2){grid-column-start:1;grid-column-end:2;grid-row-start:2;grid-row-end:3}.woocommerce-summary>.woocommerce-summary__item-container:nth-child(3){grid-column-start:1;grid-column-end:2;grid-row-start:3;grid-row-end:4}.woocommerce-summary>.woocommerce-summary__item-container:nth-child(4){grid-column-start:1;grid-column-end:2;grid-row-start:4;grid-row-end:5}.woocommerce-summary>.woocommerce-summary__item-container:nth-child(5){grid-column-start:1;grid-column-end:2;grid-row-start:5;grid-row-end:6}.woocommerce-summary>.woocommerce-summary__item-container:nth-child(6){grid-column-start:1;grid-column-end:2;grid-row-start:6;grid-row-end:7}.woocommerce-summary>.woocommerce-summary__item-container:nth-child(7){grid-column-start:1;grid-column-end:2;grid-row-start:7;grid-row-end:8}.woocommerce-summary>.woocommerce-summary__item-container:nth-child(8){grid-column-start:1;grid-column-end:2;grid-row-start:8;grid-row-end:9}.woocommerce-summary>.woocommerce-summary__item-container:nth-child(9){grid-column-start:1;grid-column-end:2;grid-row-start:9;grid-row-end:10}.woocommerce-summary>.woocommerce-summary__item-container:nth-child(10){grid-column-start:1;grid-column-end:2;grid-row-start:10;grid-row-end:11}}.woocommerce-summary__item{display:block;padding:16px;background-color:#f8f9f9;border-bottom:1px solid #ccd0d4;border-right:1px solid #e2e4e7;text-decoration:none}.woocommerce-summary__item:hover{background-color:#f3f4f5}.woocommerce-summary__item:active{background-color:#edeff0}.woocommerce-summary__item:focus{box-shadow:inset -1px -1px 0 #6c7781,inset 1px 1px 0 #6c7781!important}.woocommerce-summary__item.is-selected:focus{box-shadow:inset -1px -1px 0 #6c7781,inset 1px 0 0 #6c7781,inset 0 4px 0 #95588a!important}.is-dropdown-button .woocommerce-summary__item{position:relative;width:100%;padding-right:56px}@media (max-width:782px){.is-dropdown-button .woocommerce-summary__item{border-right:none}}.woocommerce-summary__item .woocommerce-summary__item-label{display:block;margin-bottom:16px;font-size:11px;font-size:.6875rem;text-transform:uppercase;color:#6c7781}.woocommerce-summary__item .woocommerce-summary__item-value{margin-bottom:4px;font-size:18px;font-size:1.125rem;font-weight:500;color:#191e23}.woocommerce-summary__item .woocommerce-summary__item-delta{margin-bottom:12px;font-size:18px;font-size:1.125rem;font-weight:300;color:#555d66}.woocommerce-summary__item.is-selected{background:#fff;box-shadow:inset 0 4px 0 #95588a}.woocommerce-summary__item.is-selected .woocommerce-summary__item-value{font-weight:600}.woocommerce-summary__item.is-selected .woocommerce-summary__item-delta{font-weight:400}.woocommerce-summary__item.is-good-trend .woocommerce-summary__item-delta{color:#4ab866}.woocommerce-summary__item.is-bad-trend .woocommerce-summary__item-delta{color:#d94f4f}.woocommerce-summary__item .woocommerce-summary__item-delta-icon{vertical-align:middle;margin-right:3px;fill:currentColor}.woocommerce-summary__item .woocommerce-summary__item-delta-icon.gridicons-arrow-up{transform:rotate(45deg)}.woocommerce-summary__item .woocommerce-summary__item-delta-icon.gridicons-arrow-down{transform:rotate(-45deg)}.woocommerce-summary__item .woocommerce-summary__item-prev-label,.woocommerce-summary__item .woocommerce-summary__item-prev-value{font-size:13px;font-size:.8125rem;color:#555d66}.woocommerce-summary__item .woocommerce-summary__toggle{position:absolute;top:44px;right:16px;transition:transform .2s ease}@media screen and (prefers-reduced-motion:reduce){.woocommerce-summary__item .woocommerce-summary__toggle{transition:none}}.is-dropdown-expanded .woocommerce-summary__item .woocommerce-summary__toggle{transform:rotate(-180deg)}.components-popover__content .woocommerce-summary__item .woocommerce-summary__item-label{margin-bottom:0}.components-popover__content .woocommerce-summary__item .woocommerce-summary__item-delta,.components-popover__content .woocommerce-summary__item .woocommerce-summary__item-value{font-size:13px;font-size:.8125rem;margin-bottom:0}.components-popover__content .woocommerce-summary__item .woocommerce-summary__item-prev-label,.components-popover__content .woocommerce-summary__item .woocommerce-summary__item-prev-value{font-size:11px;font-size:.6875rem}.woocommerce-card .woocommerce-summary{background-color:#f8f9f9;border:none}.woocommerce-card .woocommerce-summary__item{background-color:#fff}.woocommerce-card .woocommerce-summary__item:hover{background-color:#f3f4f5}.woocommerce-card .woocommerce-summary__item:active{background-color:#edeff0}.woocommerce-card .woocommerce-summary__item.is-selected{margin-top:0;box-shadow:none}.woocommerce-table .woocommerce-card__body{padding:0;position:relative}.woocommerce-table .woocommerce-search{flex-grow:1}.woocommerce-table .woocommerce-card__action{justify-self:flex-end;margin:-13px 0}.woocommerce-table .woocommerce-card__menu{justify-self:flex-end}.woocommerce-table.has-compare .woocommerce-card__action{align-items:center;text-align:left;display:grid;width:100%;grid-template-columns:auto 1fr auto}.woocommerce-table.has-compare .woocommerce-card__action .woocommerce-table__compare{align-self:center;grid-column-start:1;grid-column-end:2}.woocommerce-table.has-compare .woocommerce-card__action .woocommerce-search{align-self:center;grid-column-start:2;grid-column-end:3}.woocommerce-table.has-compare .woocommerce-card__action .woocommerce-table__download-button{align-self:center;grid-column-start:3;grid-column-end:4}@media (max-width:960px){.woocommerce-table.has-compare .woocommerce-card__action{grid-area:1/1/3/4;grid-gap:12px;grid-template-columns:auto 1fr 24px;margin:0}.woocommerce-table.has-compare .woocommerce-card__action .woocommerce-table__compare{display:flex;grid-area:2/1/3/2}.woocommerce-table.has-compare .woocommerce-card__action .woocommerce-search{grid-area:2/2/3/4;margin-right:0}.woocommerce-table.has-compare .woocommerce-card__action .woocommerce-table__download-button{grid-area:1/2/2/3;justify-self:end;margin:-6px 0}}.woocommerce-table.has-compare .woocommerce-search{margin:0 16px}.woocommerce-table.has-compare .woocommerce-compare-button{padding:3px 12px;height:auto}.woocommerce-table.is-empty{align-items:center;background:#f8f9f9;color:#555d66;display:flex;height:calc(17px + 1.1375rem + 165px + 5.6875rem);height:calc(17px + 1.1375rem + (33px + 1.1375rem)*var(--number-of-rows));justify-content:center;padding:16px;text-align:center}.woocommerce-table button.woocommerce-table__download-button.is-link{padding:6px 12px;color:#000;text-decoration:none}.woocommerce-table button.woocommerce-table__download-button.is-link svg{margin-right:8px;height:24px;width:24px}@media (max-width:782px){.woocommerce-table button.woocommerce-table__download-button.is-link svg{margin-right:0}.woocommerce-table button.woocommerce-table__download-button.is-link .woocommerce-table__download-button__label{display:none}}.woocommerce-table .woocommerce-pagination{padding-top:16px;padding-bottom:16px;z-index:1;background:#fff;position:relative}.woocommerce-table__caption{font-size:24px;font-size:1.5rem;text-align:left}.woocommerce-table__table{overflow-x:auto}.woocommerce-table__table:after{content:"";position:absolute;right:0;top:0;width:41px;height:100%;background:linear-gradient(90deg,transparent,rgba(0,0,0,.2));opacity:0;pointer-events:none;transition:opacity .3s}.woocommerce-table__table.is-scrollable:after{opacity:1}.woocommerce-table__table table{border-collapse:collapse;width:100%}.woocommerce-table__table tr:focus-within,.woocommerce-table__table tr:hover{background-color:#f3f4f5}.woocommerce-table__table tr:focus-within td,.woocommerce-table__table tr:focus-within th,.woocommerce-table__table tr:hover td,.woocommerce-table__table tr:hover th{background:transparent}.woocommerce-table__header,.woocommerce-table__item{font-size:13px;font-size:.8125rem;padding:16px 24px;border-bottom:1px solid #e2e4e7;text-align:left}.woocommerce-table__header>a:only-child,.woocommerce-table__item>a:only-child{display:block}.woocommerce-table__header a:focus,.woocommerce-table__header a:hover,.woocommerce-table__item a:focus,.woocommerce-table__item a:hover{color:#622557}.woocommerce-table__header .is-placeholder,.woocommerce-table__item .is-placeholder{animation:loading-fade 1.6s ease-in-out infinite;background-color:#e2e4e7;color:transparent;display:inline-block;height:16px;max-width:120px;width:80%}.woocommerce-table__header .is-placeholder:after,.woocommerce-table__item .is-placeholder:after{content:"\00a0"}.woocommerce-table__header:not(.is-left-aligned),.woocommerce-table__item:not(.is-left-aligned){text-align:right}.rtl .woocommerce-table__header:not(.is-left-aligned),.rtl .woocommerce-table__item:not(.is-left-aligned){text-align:left}.woocommerce-table__header:not(.is-left-aligned) button,.woocommerce-table__item:not(.is-left-aligned) button{justify-content:flex-end}.woocommerce-table__header.is-numeric .is-placeholder,.woocommerce-table__item.is-numeric .is-placeholder{max-width:40px}.woocommerce-table__header.is-sorted,.woocommerce-table__item.is-sorted{background-color:#f8f9f9}.woocommerce-table__header.is-checkbox-column,.woocommerce-table__item.is-checkbox-column{width:33px;max-width:33px;padding-right:0;padding-left:16px}.woocommerce-table__header.is-checkbox-column+th,.woocommerce-table__item.is-checkbox-column+th{border-left:0}th.woocommerce-table__item{font-weight:400}.woocommerce-table__header{padding:8px 24px;background-color:#f8f9fa;border-bottom:1px solid #ccd0d4;font-weight:700;white-space:nowrap}.woocommerce-table__header+.woocommerce-table__header{border-left:1px solid #ccd0d4}.rtl .woocommerce-table__header+.woocommerce-table__header{border-left:0;border-right:1px solid #ccd0d4}.woocommerce-table__header.is-left-aligned.is-sortable{padding-left:16px}.woocommerce-table__header.is-left-aligned.is-sortable svg{display:inline-flex;order:1;margin-left:0}.woocommerce-table__header .components-button.is-button{height:auto;width:100%;padding:8px 24px 8px 0;vertical-align:middle;line-height:1;border:none;background:transparent;box-shadow:none!important}.rtl .woocommerce-table__header .components-button.is-button{padding:8px 0 8px 24px}.woocommerce-table__header .components-button.is-button:active,.woocommerce-table__header .components-button.is-button:hover{box-shadow:none!important}.woocommerce-table__header.is-sortable{padding:0}.woocommerce-table__header.is-sortable .gridicon{visibility:hidden;margin-left:4px}.woocommerce-table__header.is-sortable .components-button:focus .gridicon,.woocommerce-table__header.is-sortable .components-button:hover .gridicon,.woocommerce-table__header.is-sortable.is-sorted .components-button .gridicon{visibility:visible}.woocommerce-table__summary{margin:0;padding:16px 0;text-align:center;z-index:1;background:#fff;position:relative}.woocommerce-table__summary-item{display:inline-block;margin-bottom:0;margin-left:8px;margin-right:8px}.woocommerce-table__summary-item .woocommerce-table__summary-label,.woocommerce-table__summary-item .woocommerce-table__summary-value{display:inline-block}.woocommerce-table__summary-item .woocommerce-table__summary-label{margin-left:4px}.woocommerce-table__summary-item .woocommerce-table__summary-value{font-weight:600}.woocommerce-tag{display:inline-flex;margin:2px 4px 2px 0;overflow:hidden}.woocommerce-tag .woocommerce-tag__remove.components-icon-button,.woocommerce-tag .woocommerce-tag__text{display:inline-block;line-height:24px;background:#e2e4e7;transition:all .2s cubic-bezier(.4,1,.4,1)}.woocommerce-tag .woocommerce-tag__text{align-self:center;padding:0 8px;border-radius:12px;color:#555d66;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.woocommerce-tag.has-remove .woocommerce-tag__text{padding:0 4px 0 8px;border-radius:12px 0 0 12px}.woocommerce-tag .woocommerce-tag__remove.components-icon-button{cursor:pointer;padding:0 2px;border-radius:0 12px 12px 0;color:#555d66;line-height:10px;text-indent:0}.woocommerce-tag .woocommerce-tag__remove.components-icon-button:hover{color:#32373c}.text-control-with-affixes{display:inline-flex;flex-direction:row;width:100%}.text-control-with-affixes input[type=email],.text-control-with-affixes input[type=number],.text-control-with-affixes input[type=password],.text-control-with-affixes input[type=text],.text-control-with-affixes input[type=url]{flex-grow:1;margin:0}.text-control-with-affixes input[type=email]:disabled,.text-control-with-affixes input[type=number]:disabled,.text-control-with-affixes input[type=password]:disabled,.text-control-with-affixes input[type=text]:disabled,.text-control-with-affixes input[type=url]:disabled{border-right-width:0}.text-control-with-affixes input[type=email]:disabled+.text-control-with-affixes__suffix,.text-control-with-affixes input[type=number]:disabled+.text-control-with-affixes__suffix,.text-control-with-affixes input[type=password]:disabled+.text-control-with-affixes__suffix,.text-control-with-affixes input[type=text]:disabled+.text-control-with-affixes__suffix,.text-control-with-affixes input[type=url]:disabled+.text-control-with-affixes__suffix{border-left:1px solid #e2e4e7}.text-control-with-affixes__prefix,.text-control-with-affixes__suffix{position:relative;background:#fff;border:1px solid #e2e4e7;color:#555d66;padding:7px 14px;white-space:nowrap;flex:1 0 auto;font-size:14px;line-height:1.5}.text-control-with-affixes__prefix{border-right:none}.text-control-with-affixes__prefix+input[type=email]:disabled,.text-control-with-affixes__prefix+input[type=number]:disabled,.text-control-with-affixes__prefix+input[type=password]:disabled,.text-control-with-affixes__prefix+input[type=text]:disabled,.text-control-with-affixes__prefix+input[type=url]:disabled{border-left-color:#e2e4e7;border-right-width:1px}.text-control-with-affixes__suffix{border-left:none}.woocommerce-view-more-list{padding-left:4px;margin:0 0 0 4px;vertical-align:middle}.rtl .woocommerce-view-more-list{margin:0 4px 0 0}.woocommerce-view-more-list__popover{margin:0;padding:16px;text-align:left}.woocommerce-view-more-list__popover__item{display:block;margin:16px 0}.woocommerce-view-more-list__popover__item:first-child{margin-top:0}.woocommerce-view-more-list__popover__item:last-child{margin-bottom:0}
build/{product-category-block.js → vendors.js} RENAMED
@@ -1,4 +1,4 @@
1
- !function(e,t){for(var a in t)e[a]=t[a]}(this,function(e){var t={};function a(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,a),i.l=!0,i.exports}return a.m=e,a.c=t,a.d=function(e,t,o){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(a.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)a.d(o,i,function(t){return e[t]}.bind(null,i));return o},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=747)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t,a){e.exports=a(465)()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t,a){(function(e){e.exports=function(){"use strict";var t,o;function i(){return t.apply(null,arguments)}function n(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function r(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function c(e){return void 0===e}function l(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function s(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function p(e,t){var a,o=[];for(a=0;a<e.length;++a)o.push(t(e[a],a));return o}function d(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function f(e,t){for(var a in t)d(t,a)&&(e[a]=t[a]);return d(t,"toString")&&(e.toString=t.toString),d(t,"valueOf")&&(e.valueOf=t.valueOf),e}function b(e,t,a,o){return Wt(e,t,a,o,!0).utc()}function h(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function M(e){if(null==e._isValid){var t=h(e),a=o.call(t.parsedDateParts,function(e){return null!=e}),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&a);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function z(e){var t=b(NaN);return null!=e?f(h(t),e):h(t).userInvalidated=!0,t}o=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),a=t.length>>>0,o=0;o<a;o++)if(o in t&&e.call(this,t[o],o,t))return!0;return!1};var m=i.momentProperties=[];function u(e,t){var a,o,i;if(c(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),c(t._i)||(e._i=t._i),c(t._f)||(e._f=t._f),c(t._l)||(e._l=t._l),c(t._strict)||(e._strict=t._strict),c(t._tzm)||(e._tzm=t._tzm),c(t._isUTC)||(e._isUTC=t._isUTC),c(t._offset)||(e._offset=t._offset),c(t._pf)||(e._pf=h(t)),c(t._locale)||(e._locale=t._locale),m.length>0)for(a=0;a<m.length;a++)o=m[a],c(i=t[o])||(e[o]=i);return e}var O=!1;function C(e){u(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===O&&(O=!0,i.updateOffset(this),O=!1)}function A(e){return e instanceof C||null!=e&&null!=e._isAMomentObject}function E(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function k(e){var t=+e,a=0;return 0!==t&&isFinite(t)&&(a=E(t)),a}function g(e,t,a){var o,i=Math.min(e.length,t.length),n=Math.abs(e.length-t.length),r=0;for(o=0;o<i;o++)(a&&e[o]!==t[o]||!a&&k(e[o])!==k(t[o]))&&r++;return r+n}function y(e){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function q(e,t){var a=!0;return f(function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,e),a){for(var o,n=[],r=0;r<arguments.length;r++){if(o="","object"==typeof arguments[r]){for(var c in o+="\n["+r+"] ",arguments[0])o+=c+": "+arguments[0][c]+", ";o=o.slice(0,-2)}else o=arguments[r];n.push(o)}y(e+"\nArguments: "+Array.prototype.slice.call(n).join("")+"\n"+(new Error).stack),a=!1}return t.apply(this,arguments)},t)}var v,w={};function W(e,t){null!=i.deprecationHandler&&i.deprecationHandler(e,t),w[e]||(y(t),w[e]=!0)}function _(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function L(e,t){var a,o=f({},e);for(a in t)d(t,a)&&(r(e[a])&&r(t[a])?(o[a]={},f(o[a],e[a]),f(o[a],t[a])):null!=t[a]?o[a]=t[a]:delete o[a]);for(a in e)d(e,a)&&!d(t,a)&&r(e[a])&&(o[a]=f({},o[a]));return o}function R(e){null!=e&&this.set(e)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,v=Object.keys?Object.keys:function(e){var t,a=[];for(t in e)d(e,t)&&a.push(t);return a};var B={};function x(e,t){var a=e.toLowerCase();B[a]=B[a+"s"]=B[t]=e}function S(e){return"string"==typeof e?B[e]||B[e.toLowerCase()]:void 0}function N(e){var t,a,o={};for(a in e)d(e,a)&&(t=S(a))&&(o[t]=e[a]);return o}var T={};function X(e,t){T[e]=t}function D(e,t,a){var o=""+Math.abs(e),i=t-o.length,n=e>=0;return(n?a?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+o}var H=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,F=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,P={},j={};function I(e,t,a,o){var i=o;"string"==typeof o&&(i=function(){return this[o]()}),e&&(j[e]=i),t&&(j[t[0]]=function(){return D(i.apply(this,arguments),t[1],t[2])}),a&&(j[a]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function Y(e,t){return e.isValid()?(t=V(t,e.localeData()),P[t]=P[t]||function(e){var t,a,o,i=e.match(H);for(t=0,a=i.length;t<a;t++)j[i[t]]?i[t]=j[i[t]]:i[t]=(o=i[t]).match(/\[[\s\S]/)?o.replace(/^\[|\]$/g,""):o.replace(/\\/g,"");return function(t){var o,n="";for(o=0;o<a;o++)n+=_(i[o])?i[o].call(t,e):i[o];return n}}(t),P[t](e)):e.localeData().invalidDate()}function V(e,t){var a=5;function o(e){return t.longDateFormat(e)||e}for(F.lastIndex=0;a>=0&&F.test(e);)e=e.replace(F,o),F.lastIndex=0,a-=1;return e}var U=/\d/,G=/\d\d/,K=/\d{3}/,J=/\d{4}/,Z=/[+-]?\d{6}/,Q=/\d\d?/,$=/\d\d\d\d?/,ee=/\d\d\d\d\d\d?/,te=/\d{1,3}/,ae=/\d{1,4}/,oe=/[+-]?\d{1,6}/,ie=/\d+/,ne=/[+-]?\d+/,re=/Z|[+-]\d\d:?\d\d/gi,ce=/Z|[+-]\d\d(?::?\d\d)?/gi,le=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,se={};function pe(e,t,a){se[e]=_(t)?t:function(e,o){return e&&a?a:t}}function de(e,t){return d(se,e)?se[e](t._strict,t._locale):new RegExp(fe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,a,o,i){return t||a||o||i})))}function fe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var be={};function he(e,t){var a,o=t;for("string"==typeof e&&(e=[e]),l(t)&&(o=function(e,a){a[t]=k(e)}),a=0;a<e.length;a++)be[e[a]]=o}function Me(e,t){he(e,function(e,a,o,i){o._w=o._w||{},t(e,o._w,o,i)})}function ze(e,t,a){null!=t&&d(be,e)&&be[e](t,a._a,a,e)}var me=0,ue=1,Oe=2,Ce=3,Ae=4,Ee=5,ke=6,ge=7,ye=8;function qe(e){return ve(e)?366:365}function ve(e){return e%4==0&&e%100!=0||e%400==0}I("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),I(0,["YY",2],0,function(){return this.year()%100}),I(0,["YYYY",4],0,"year"),I(0,["YYYYY",5],0,"year"),I(0,["YYYYYY",6,!0],0,"year"),x("year","y"),X("year",1),pe("Y",ne),pe("YY",Q,G),pe("YYYY",ae,J),pe("YYYYY",oe,Z),pe("YYYYYY",oe,Z),he(["YYYYY","YYYYYY"],me),he("YYYY",function(e,t){t[me]=2===e.length?i.parseTwoDigitYear(e):k(e)}),he("YY",function(e,t){t[me]=i.parseTwoDigitYear(e)}),he("Y",function(e,t){t[me]=parseInt(e,10)}),i.parseTwoDigitYear=function(e){return k(e)+(k(e)>68?1900:2e3)};var we,We=_e("FullYear",!0);function _e(e,t){return function(a){return null!=a?(Re(this,e,a),i.updateOffset(this,t),this):Le(this,e)}}function Le(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Re(e,t,a){e.isValid()&&!isNaN(a)&&("FullYear"===t&&ve(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](a,e.month(),Be(a,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](a))}function Be(e,t){if(isNaN(e)||isNaN(t))return NaN;var a,o=(t%(a=12)+a)%a;return e+=(t-o)/12,1===o?ve(e)?29:28:31-o%7%2}we=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},I("M",["MM",2],"Mo",function(){return this.month()+1}),I("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),I("MMMM",0,0,function(e){return this.localeData().months(this,e)}),x("month","M"),X("month",8),pe("M",Q),pe("MM",Q,G),pe("MMM",function(e,t){return t.monthsShortRegex(e)}),pe("MMMM",function(e,t){return t.monthsRegex(e)}),he(["M","MM"],function(e,t){t[ue]=k(e)-1}),he(["MMM","MMMM"],function(e,t,a,o){var i=a._locale.monthsParse(e,o,a._strict);null!=i?t[ue]=i:h(a).invalidMonth=e});var xe=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Se="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ne="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Te(e,t){var a;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=k(t);else if(!l(t=e.localeData().monthsParse(t)))return e;return a=Math.min(e.date(),Be(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,a),e}function Xe(e){return null!=e?(Te(this,e),i.updateOffset(this,!0),this):Le(this,"Month")}var De=le,He=le;function Fe(){function e(e,t){return t.length-e.length}var t,a,o=[],i=[],n=[];for(t=0;t<12;t++)a=b([2e3,t]),o.push(this.monthsShort(a,"")),i.push(this.months(a,"")),n.push(this.months(a,"")),n.push(this.monthsShort(a,""));for(o.sort(e),i.sort(e),n.sort(e),t=0;t<12;t++)o[t]=fe(o[t]),i[t]=fe(i[t]);for(t=0;t<24;t++)n[t]=fe(n[t]);this._monthsRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Pe(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function je(e,t,a){var o=7+t-a,i=(7+Pe(e,0,o).getUTCDay()-t)%7;return-i+o-1}function Ie(e,t,a,o,i){var n,r,c=(7+a-o)%7,l=je(e,o,i),s=1+7*(t-1)+c+l;return s<=0?r=qe(n=e-1)+s:s>qe(e)?(n=e+1,r=s-qe(e)):(n=e,r=s),{year:n,dayOfYear:r}}function Ye(e,t,a){var o,i,n=je(e.year(),t,a),r=Math.floor((e.dayOfYear()-n-1)/7)+1;return r<1?(i=e.year()-1,o=r+Ve(i,t,a)):r>Ve(e.year(),t,a)?(o=r-Ve(e.year(),t,a),i=e.year()+1):(i=e.year(),o=r),{week:o,year:i}}function Ve(e,t,a){var o=je(e,t,a),i=je(e+1,t,a);return(qe(e)-o+i)/7}I("w",["ww",2],"wo","week"),I("W",["WW",2],"Wo","isoWeek"),x("week","w"),x("isoWeek","W"),X("week",5),X("isoWeek",5),pe("w",Q),pe("ww",Q,G),pe("W",Q),pe("WW",Q,G),Me(["w","ww","W","WW"],function(e,t,a,o){t[o.substr(0,1)]=k(e)}),I("d",0,"do","day"),I("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),I("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),I("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),I("e",0,0,"weekday"),I("E",0,0,"isoWeekday"),x("day","d"),x("weekday","e"),x("isoWeekday","E"),X("day",11),X("weekday",11),X("isoWeekday",11),pe("d",Q),pe("e",Q),pe("E",Q),pe("dd",function(e,t){return t.weekdaysMinRegex(e)}),pe("ddd",function(e,t){return t.weekdaysShortRegex(e)}),pe("dddd",function(e,t){return t.weekdaysRegex(e)}),Me(["dd","ddd","dddd"],function(e,t,a,o){var i=a._locale.weekdaysParse(e,o,a._strict);null!=i?t.d=i:h(a).invalidWeekday=e}),Me(["d","e","E"],function(e,t,a,o){t[o]=k(e)});var Ue="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ge="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ke="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Je=le,Ze=le,Qe=le;function $e(){function e(e,t){return t.length-e.length}var t,a,o,i,n,r=[],c=[],l=[],s=[];for(t=0;t<7;t++)a=b([2e3,1]).day(t),o=this.weekdaysMin(a,""),i=this.weekdaysShort(a,""),n=this.weekdays(a,""),r.push(o),c.push(i),l.push(n),s.push(o),s.push(i),s.push(n);for(r.sort(e),c.sort(e),l.sort(e),s.sort(e),t=0;t<7;t++)c[t]=fe(c[t]),l[t]=fe(l[t]),s[t]=fe(s[t]);this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+r.join("|")+")","i")}function et(){return this.hours()%12||12}function tt(e,t){I(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function at(e,t){return t._meridiemParse}I("H",["HH",2],0,"hour"),I("h",["hh",2],0,et),I("k",["kk",2],0,function(){return this.hours()||24}),I("hmm",0,0,function(){return""+et.apply(this)+D(this.minutes(),2)}),I("hmmss",0,0,function(){return""+et.apply(this)+D(this.minutes(),2)+D(this.seconds(),2)}),I("Hmm",0,0,function(){return""+this.hours()+D(this.minutes(),2)}),I("Hmmss",0,0,function(){return""+this.hours()+D(this.minutes(),2)+D(this.seconds(),2)}),tt("a",!0),tt("A",!1),x("hour","h"),X("hour",13),pe("a",at),pe("A",at),pe("H",Q),pe("h",Q),pe("k",Q),pe("HH",Q,G),pe("hh",Q,G),pe("kk",Q,G),pe("hmm",$),pe("hmmss",ee),pe("Hmm",$),pe("Hmmss",ee),he(["H","HH"],Ce),he(["k","kk"],function(e,t,a){var o=k(e);t[Ce]=24===o?0:o}),he(["a","A"],function(e,t,a){a._isPm=a._locale.isPM(e),a._meridiem=e}),he(["h","hh"],function(e,t,a){t[Ce]=k(e),h(a).bigHour=!0}),he("hmm",function(e,t,a){var o=e.length-2;t[Ce]=k(e.substr(0,o)),t[Ae]=k(e.substr(o)),h(a).bigHour=!0}),he("hmmss",function(e,t,a){var o=e.length-4,i=e.length-2;t[Ce]=k(e.substr(0,o)),t[Ae]=k(e.substr(o,2)),t[Ee]=k(e.substr(i)),h(a).bigHour=!0}),he("Hmm",function(e,t,a){var o=e.length-2;t[Ce]=k(e.substr(0,o)),t[Ae]=k(e.substr(o))}),he("Hmmss",function(e,t,a){var o=e.length-4,i=e.length-2;t[Ce]=k(e.substr(0,o)),t[Ae]=k(e.substr(o,2)),t[Ee]=k(e.substr(i))});var ot,it=_e("Hours",!0),nt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Se,monthsShort:Ne,week:{dow:0,doy:6},weekdays:Ue,weekdaysMin:Ke,weekdaysShort:Ge,meridiemParse:/[ap]\.?m?\.?/i},rt={},ct={};function lt(e){return e?e.toLowerCase().replace("_","-"):e}function st(t){var o=null;if(!rt[t]&&void 0!==e&&e&&e.exports)try{o=ot._abbr,a(584)("./"+t),pt(o)}catch(e){}return rt[t]}function pt(e,t){var a;return e&&((a=c(t)?ft(e):dt(e,t))?ot=a:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),ot._abbr}function dt(e,t){if(null!==t){var a,o=nt;if(t.abbr=e,null!=rt[e])W("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),o=rt[e]._config;else if(null!=t.parentLocale)if(null!=rt[t.parentLocale])o=rt[t.parentLocale]._config;else{if(null==(a=st(t.parentLocale)))return ct[t.parentLocale]||(ct[t.parentLocale]=[]),ct[t.parentLocale].push({name:e,config:t}),null;o=a._config}return rt[e]=new R(L(o,t)),ct[e]&&ct[e].forEach(function(e){dt(e.name,e.config)}),pt(e),rt[e]}return delete rt[e],null}function ft(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return ot;if(!n(e)){if(t=st(e))return t;e=[e]}return function(e){for(var t,a,o,i,n=0;n<e.length;){for(i=lt(e[n]).split("-"),t=i.length,a=(a=lt(e[n+1]))?a.split("-"):null;t>0;){if(o=st(i.slice(0,t).join("-")))return o;if(a&&a.length>=t&&g(i,a,!0)>=t-1)break;t--}n++}return ot}(e)}function bt(e){var t,a=e._a;return a&&-2===h(e).overflow&&(t=a[ue]<0||a[ue]>11?ue:a[Oe]<1||a[Oe]>Be(a[me],a[ue])?Oe:a[Ce]<0||a[Ce]>24||24===a[Ce]&&(0!==a[Ae]||0!==a[Ee]||0!==a[ke])?Ce:a[Ae]<0||a[Ae]>59?Ae:a[Ee]<0||a[Ee]>59?Ee:a[ke]<0||a[ke]>999?ke:-1,h(e)._overflowDayOfYear&&(t<me||t>Oe)&&(t=Oe),h(e)._overflowWeeks&&-1===t&&(t=ge),h(e)._overflowWeekday&&-1===t&&(t=ye),h(e).overflow=t),e}function ht(e,t,a){return null!=e?e:null!=t?t:a}function Mt(e){var t,a,o,n,r,c=[];if(!e._d){for(o=function(e){var t=new Date(i.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[Oe]&&null==e._a[ue]&&function(e){var t,a,o,i,n,r,c,l;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)n=1,r=4,a=ht(t.GG,e._a[me],Ye(_t(),1,4).year),o=ht(t.W,1),((i=ht(t.E,1))<1||i>7)&&(l=!0);else{n=e._locale._week.dow,r=e._locale._week.doy;var s=Ye(_t(),n,r);a=ht(t.gg,e._a[me],s.year),o=ht(t.w,s.week),null!=t.d?((i=t.d)<0||i>6)&&(l=!0):null!=t.e?(i=t.e+n,(t.e<0||t.e>6)&&(l=!0)):i=n}o<1||o>Ve(a,n,r)?h(e)._overflowWeeks=!0:null!=l?h(e)._overflowWeekday=!0:(c=Ie(a,o,i,n,r),e._a[me]=c.year,e._dayOfYear=c.dayOfYear)}(e),null!=e._dayOfYear&&(r=ht(e._a[me],o[me]),(e._dayOfYear>qe(r)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),a=Pe(r,0,e._dayOfYear),e._a[ue]=a.getUTCMonth(),e._a[Oe]=a.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=c[t]=o[t];for(;t<7;t++)e._a[t]=c[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Ce]&&0===e._a[Ae]&&0===e._a[Ee]&&0===e._a[ke]&&(e._nextDay=!0,e._a[Ce]=0),e._d=(e._useUTC?Pe:function(e,t,a,o,i,n,r){var c=new Date(e,t,a,o,i,n,r);return e<100&&e>=0&&isFinite(c.getFullYear())&&c.setFullYear(e),c}).apply(null,c),n=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ce]=24),e._w&&void 0!==e._w.d&&e._w.d!==n&&(h(e).weekdayMismatch=!0)}}var zt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,mt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ut=/Z|[+-]\d\d(?::?\d\d)?/,Ot=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Ct=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],At=/^\/?Date\((\-?\d+)/i;function Et(e){var t,a,o,i,n,r,c=e._i,l=zt.exec(c)||mt.exec(c);if(l){for(h(e).iso=!0,t=0,a=Ot.length;t<a;t++)if(Ot[t][1].exec(l[1])){i=Ot[t][0],o=!1!==Ot[t][2];break}if(null==i)return void(e._isValid=!1);if(l[3]){for(t=0,a=Ct.length;t<a;t++)if(Ct[t][1].exec(l[3])){n=(l[2]||" ")+Ct[t][0];break}if(null==n)return void(e._isValid=!1)}if(!o&&null!=n)return void(e._isValid=!1);if(l[4]){if(!ut.exec(l[4]))return void(e._isValid=!1);r="Z"}e._f=i+(n||"")+(r||""),vt(e)}else e._isValid=!1}var kt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function gt(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}var yt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function qt(e){var t,a,o,i,n,r,c,l=kt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(l){var s=(t=l[4],a=l[3],o=l[2],i=l[5],n=l[6],r=l[7],c=[gt(t),Ne.indexOf(a),parseInt(o,10),parseInt(i,10),parseInt(n,10)],r&&c.push(parseInt(r,10)),c);if(!function(e,t,a){if(e){var o=Ge.indexOf(e),i=new Date(t[0],t[1],t[2]).getDay();if(o!==i)return h(a).weekdayMismatch=!0,a._isValid=!1,!1}return!0}(l[1],s,e))return;e._a=s,e._tzm=function(e,t,a){if(e)return yt[e];if(t)return 0;var o=parseInt(a,10),i=o%100,n=(o-i)/100;return 60*n+i}(l[8],l[9],l[10]),e._d=Pe.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),h(e).rfc2822=!0}else e._isValid=!1}function vt(e){if(e._f!==i.ISO_8601)if(e._f!==i.RFC_2822){e._a=[],h(e).empty=!0;var t,a,o,n,r,c=""+e._i,l=c.length,s=0;for(o=V(e._f,e._locale).match(H)||[],t=0;t<o.length;t++)n=o[t],(a=(c.match(de(n,e))||[])[0])&&((r=c.substr(0,c.indexOf(a))).length>0&&h(e).unusedInput.push(r),c=c.slice(c.indexOf(a)+a.length),s+=a.length),j[n]?(a?h(e).empty=!1:h(e).unusedTokens.push(n),ze(n,a,e)):e._strict&&!a&&h(e).unusedTokens.push(n);h(e).charsLeftOver=l-s,c.length>0&&h(e).unusedInput.push(c),e._a[Ce]<=12&&!0===h(e).bigHour&&e._a[Ce]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[Ce]=(p=e._locale,d=e._a[Ce],null==(f=e._meridiem)?d:null!=p.meridiemHour?p.meridiemHour(d,f):null!=p.isPM?((b=p.isPM(f))&&d<12&&(d+=12),b||12!==d||(d=0),d):d),Mt(e),bt(e)}else qt(e);else Et(e);var p,d,f,b}function wt(e){var t=e._i,a=e._f;return e._locale=e._locale||ft(e._l),null===t||void 0===a&&""===t?z({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),A(t)?new C(bt(t)):(s(t)?e._d=t:n(a)?function(e){var t,a,o,i,n;if(0===e._f.length)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<e._f.length;i++)n=0,t=u({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],vt(t),M(t)&&(n+=h(t).charsLeftOver,n+=10*h(t).unusedTokens.length,h(t).score=n,(null==o||n<o)&&(o=n,a=t));f(e,a||t)}(e):a?vt(e):function(e){var t=e._i;c(t)?e._d=new Date(i.now()):s(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=At.exec(e._i);null===t?(Et(e),!1===e._isValid&&(delete e._isValid,qt(e),!1===e._isValid&&(delete e._isValid,i.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):n(t)?(e._a=p(t.slice(0),function(e){return parseInt(e,10)}),Mt(e)):r(t)?function(e){if(!e._d){var t=N(e._i);e._a=p([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),Mt(e)}}(e):l(t)?e._d=new Date(t):i.createFromInputFallback(e)}(e),M(e)||(e._d=null),e))}function Wt(e,t,a,o,i){var c,l={};return!0!==a&&!1!==a||(o=a,a=void 0),(r(e)&&function(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}(e)||n(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=i,l._l=a,l._i=e,l._f=t,l._strict=o,(c=new C(bt(wt(l))))._nextDay&&(c.add(1,"d"),c._nextDay=void 0),c}function _t(e,t,a,o){return Wt(e,t,a,o,!1)}i.createFromInputFallback=q("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),i.ISO_8601=function(){},i.RFC_2822=function(){};var Lt=q("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=_t.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:z()}),Rt=q("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=_t.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:z()});function Bt(e,t){var a,o;if(1===t.length&&n(t[0])&&(t=t[0]),!t.length)return _t();for(a=t[0],o=1;o<t.length;++o)t[o].isValid()&&!t[o][e](a)||(a=t[o]);return a}var xt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function St(e){var t=N(e),a=t.year||0,o=t.quarter||0,i=t.month||0,n=t.week||0,r=t.day||0,c=t.hour||0,l=t.minute||0,s=t.second||0,p=t.millisecond||0;this._isValid=function(e){for(var t in e)if(-1===we.call(xt,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var a=!1,o=0;o<xt.length;++o)if(e[xt[o]]){if(a)return!1;parseFloat(e[xt[o]])!==k(e[xt[o]])&&(a=!0)}return!0}(t),this._milliseconds=+p+1e3*s+6e4*l+1e3*c*60*60,this._days=+r+7*n,this._months=+i+3*o+12*a,this._data={},this._locale=ft(),this._bubble()}function Nt(e){return e instanceof St}function Tt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Xt(e,t){I(e,0,0,function(){var e=this.utcOffset(),a="+";return e<0&&(e=-e,a="-"),a+D(~~(e/60),2)+t+D(~~e%60,2)})}Xt("Z",":"),Xt("ZZ",""),pe("Z",ce),pe("ZZ",ce),he(["Z","ZZ"],function(e,t,a){a._useUTC=!0,a._tzm=Ht(ce,e)});var Dt=/([\+\-]|\d\d)/gi;function Ht(e,t){var a=(t||"").match(e);if(null===a)return null;var o=a[a.length-1]||[],i=(o+"").match(Dt)||["-",0,0],n=60*i[1]+k(i[2]);return 0===n?0:"+"===i[0]?n:-n}function Ft(e,t){var a,o;return t._isUTC?(a=t.clone(),o=(A(e)||s(e)?e.valueOf():_t(e).valueOf())-a.valueOf(),a._d.setTime(a._d.valueOf()+o),i.updateOffset(a,!1),a):_t(e).local()}function Pt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function jt(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var It=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Yt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Vt(e,t){var a,o,i,n,r,c,s=e,p=null;return Nt(e)?s={ms:e._milliseconds,d:e._days,M:e._months}:l(e)?(s={},t?s[t]=e:s.milliseconds=e):(p=It.exec(e))?(a="-"===p[1]?-1:1,s={y:0,d:k(p[Oe])*a,h:k(p[Ce])*a,m:k(p[Ae])*a,s:k(p[Ee])*a,ms:k(Tt(1e3*p[ke]))*a}):(p=Yt.exec(e))?(a="-"===p[1]?-1:(p[1],1),s={y:Ut(p[2],a),M:Ut(p[3],a),w:Ut(p[4],a),d:Ut(p[5],a),h:Ut(p[6],a),m:Ut(p[7],a),s:Ut(p[8],a)}):null==s?s={}:"object"==typeof s&&("from"in s||"to"in s)&&(n=_t(s.from),r=_t(s.to),i=n.isValid()&&r.isValid()?(r=Ft(r,n),n.isBefore(r)?c=Gt(n,r):((c=Gt(r,n)).milliseconds=-c.milliseconds,c.months=-c.months),c):{milliseconds:0,months:0},(s={}).ms=i.milliseconds,s.M=i.months),o=new St(s),Nt(e)&&d(e,"_locale")&&(o._locale=e._locale),o}function Ut(e,t){var a=e&&parseFloat(e.replace(",","."));return(isNaN(a)?0:a)*t}function Gt(e,t){var a={milliseconds:0,months:0};return a.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(a.months,"M").isAfter(t)&&--a.months,a.milliseconds=+t-+e.clone().add(a.months,"M"),a}function Kt(e,t){return function(a,o){var i;return null===o||isNaN(+o)||(W(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=a,a=o,o=i),Jt(this,Vt(a="string"==typeof a?+a:a,o),e),this}}function Jt(e,t,a,o){var n=t._milliseconds,r=Tt(t._days),c=Tt(t._months);e.isValid()&&(o=null==o||o,c&&Te(e,Le(e,"Month")+c*a),r&&Re(e,"Date",Le(e,"Date")+r*a),n&&e._d.setTime(e._d.valueOf()+n*a),o&&i.updateOffset(e,r||c))}Vt.fn=St.prototype,Vt.invalid=function(){return Vt(NaN)};var Zt=Kt(1,"add"),Qt=Kt(-1,"subtract");function $t(e,t){var a,o,i=12*(t.year()-e.year())+(t.month()-e.month()),n=e.clone().add(i,"months");return t-n<0?(a=e.clone().add(i-1,"months"),o=(t-n)/(n-a)):(a=e.clone().add(i+1,"months"),o=(t-n)/(a-n)),-(i+o)||0}function ea(e){var t;return void 0===e?this._locale._abbr:(null!=(t=ft(e))&&(this._locale=t),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ta=q("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function aa(){return this._locale}function oa(e,t){I(0,[e,e.length],0,t)}function ia(e,t,a,o,i){var n;return null==e?Ye(this,o,i).year:(n=Ve(e,o,i),t>n&&(t=n),function(e,t,a,o,i){var n=Ie(e,t,a,o,i),r=Pe(n.year,0,n.dayOfYear);return this.year(r.getUTCFullYear()),this.month(r.getUTCMonth()),this.date(r.getUTCDate()),this}.call(this,e,t,a,o,i))}I(0,["gg",2],0,function(){return this.weekYear()%100}),I(0,["GG",2],0,function(){return this.isoWeekYear()%100}),oa("gggg","weekYear"),oa("ggggg","weekYear"),oa("GGGG","isoWeekYear"),oa("GGGGG","isoWeekYear"),x("weekYear","gg"),x("isoWeekYear","GG"),X("weekYear",1),X("isoWeekYear",1),pe("G",ne),pe("g",ne),pe("GG",Q,G),pe("gg",Q,G),pe("GGGG",ae,J),pe("gggg",ae,J),pe("GGGGG",oe,Z),pe("ggggg",oe,Z),Me(["gggg","ggggg","GGGG","GGGGG"],function(e,t,a,o){t[o.substr(0,2)]=k(e)}),Me(["gg","GG"],function(e,t,a,o){t[o]=i.parseTwoDigitYear(e)}),I("Q",0,"Qo","quarter"),x("quarter","Q"),X("quarter",7),pe("Q",U),he("Q",function(e,t){t[ue]=3*(k(e)-1)}),I("D",["DD",2],"Do","date"),x("date","D"),X("date",9),pe("D",Q),pe("DD",Q,G),pe("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),he(["D","DD"],Oe),he("Do",function(e,t){t[Oe]=k(e.match(Q)[0])});var na=_e("Date",!0);I("DDD",["DDDD",3],"DDDo","dayOfYear"),x("dayOfYear","DDD"),X("dayOfYear",4),pe("DDD",te),pe("DDDD",K),he(["DDD","DDDD"],function(e,t,a){a._dayOfYear=k(e)}),I("m",["mm",2],0,"minute"),x("minute","m"),X("minute",14),pe("m",Q),pe("mm",Q,G),he(["m","mm"],Ae);var ra=_e("Minutes",!1);I("s",["ss",2],0,"second"),x("second","s"),X("second",15),pe("s",Q),pe("ss",Q,G),he(["s","ss"],Ee);var ca,la=_e("Seconds",!1);for(I("S",0,0,function(){return~~(this.millisecond()/100)}),I(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),I(0,["SSS",3],0,"millisecond"),I(0,["SSSS",4],0,function(){return 10*this.millisecond()}),I(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),I(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),I(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),I(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),I(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),x("millisecond","ms"),X("millisecond",16),pe("S",te,U),pe("SS",te,G),pe("SSS",te,K),ca="SSSS";ca.length<=9;ca+="S")pe(ca,ie);function sa(e,t){t[ke]=k(1e3*("0."+e))}for(ca="S";ca.length<=9;ca+="S")he(ca,sa);var pa=_e("Milliseconds",!1);I("z",0,0,"zoneAbbr"),I("zz",0,0,"zoneName");var da=C.prototype;function fa(e){return e}da.add=Zt,da.calendar=function(e,t){var a=e||_t(),o=Ft(a,this).startOf("day"),n=i.calendarFormat(this,o)||"sameElse",r=t&&(_(t[n])?t[n].call(this,a):t[n]);return this.format(r||this.localeData().calendar(n,this,_t(a)))},da.clone=function(){return new C(this)},da.diff=function(e,t,a){var o,i,n;if(!this.isValid())return NaN;if(!(o=Ft(e,this)).isValid())return NaN;switch(i=6e4*(o.utcOffset()-this.utcOffset()),t=S(t)){case"year":n=$t(this,o)/12;break;case"month":n=$t(this,o);break;case"quarter":n=$t(this,o)/3;break;case"second":n=(this-o)/1e3;break;case"minute":n=(this-o)/6e4;break;case"hour":n=(this-o)/36e5;break;case"day":n=(this-o-i)/864e5;break;case"week":n=(this-o-i)/6048e5;break;default:n=this-o}return a?n:E(n)},da.endOf=function(e){return void 0===(e=S(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))},da.format=function(e){e||(e=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var t=Y(this,e);return this.localeData().postformat(t)},da.from=function(e,t){return this.isValid()&&(A(e)&&e.isValid()||_t(e).isValid())?Vt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},da.fromNow=function(e){return this.from(_t(),e)},da.to=function(e,t){return this.isValid()&&(A(e)&&e.isValid()||_t(e).isValid())?Vt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},da.toNow=function(e){return this.to(_t(),e)},da.get=function(e){return _(this[e=S(e)])?this[e]():this},da.invalidAt=function(){return h(this).overflow},da.isAfter=function(e,t){var a=A(e)?e:_t(e);return!(!this.isValid()||!a.isValid())&&("millisecond"===(t=S(c(t)?"millisecond":t))?this.valueOf()>a.valueOf():a.valueOf()<this.clone().startOf(t).valueOf())},da.isBefore=function(e,t){var a=A(e)?e:_t(e);return!(!this.isValid()||!a.isValid())&&("millisecond"===(t=S(c(t)?"millisecond":t))?this.valueOf()<a.valueOf():this.clone().endOf(t).valueOf()<a.valueOf())},da.isBetween=function(e,t,a,o){return("("===(o=o||"()")[0]?this.isAfter(e,a):!this.isBefore(e,a))&&(")"===o[1]?this.isBefore(t,a):!this.isAfter(t,a))},da.isSame=function(e,t){var a,o=A(e)?e:_t(e);return!(!this.isValid()||!o.isValid())&&("millisecond"===(t=S(t||"millisecond"))?this.valueOf()===o.valueOf():(a=o.valueOf(),this.clone().startOf(t).valueOf()<=a&&a<=this.clone().endOf(t).valueOf()))},da.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},da.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},da.isValid=function(){return M(this)},da.lang=ta,da.locale=ea,da.localeData=aa,da.max=Rt,da.min=Lt,da.parsingFlags=function(){return f({},h(this))},da.set=function(e,t){if("object"==typeof e)for(var a=function(e){var t=[];for(var a in e)t.push({unit:a,priority:T[a]});return t.sort(function(e,t){return e.priority-t.priority}),t}(e=N(e)),o=0;o<a.length;o++)this[a[o].unit](e[a[o].unit]);else if(_(this[e=S(e)]))return this[e](t);return this},da.startOf=function(e){switch(e=S(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this},da.subtract=Qt,da.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},da.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},da.toDate=function(){return new Date(this.valueOf())},da.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,a=t?this.clone().utc():this;return a.year()<0||a.year()>9999?Y(a,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):_(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Y(a,"Z")):Y(a,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},da.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var a="["+e+'("]',o=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=t+'[")]';return this.format(a+o+"-MM-DD[T]HH:mm:ss.SSS"+i)},da.toJSON=function(){return this.isValid()?this.toISOString():null},da.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},da.unix=function(){return Math.floor(this.valueOf()/1e3)},da.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},da.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},da.year=We,da.isLeapYear=function(){return ve(this.year())},da.weekYear=function(e){return ia.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},da.isoWeekYear=function(e){return ia.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},da.quarter=da.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},da.month=Xe,da.daysInMonth=function(){return Be(this.year(),this.month())},da.week=da.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},da.isoWeek=da.isoWeeks=function(e){var t=Ye(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},da.weeksInYear=function(){var e=this.localeData()._week;return Ve(this.year(),e.dow,e.doy)},da.isoWeeksInYear=function(){return Ve(this.year(),1,4)},da.date=na,da.day=da.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},da.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},da.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},da.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},da.hour=da.hours=it,da.minute=da.minutes=ra,da.second=da.seconds=la,da.millisecond=da.milliseconds=pa,da.utcOffset=function(e,t,a){var o,n=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Ht(ce,e)))return this}else Math.abs(e)<16&&!a&&(e*=60);return!this._isUTC&&t&&(o=Pt(this)),this._offset=e,this._isUTC=!0,null!=o&&this.add(o,"m"),n!==e&&(!t||this._changeInProgress?Jt(this,Vt(e-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?n:Pt(this)},da.utc=function(e){return this.utcOffset(0,e)},da.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Pt(this),"m")),this},da.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Ht(re,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},da.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?_t(e).utcOffset():0,(this.utcOffset()-e)%60==0)},da.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},da.isLocal=function(){return!!this.isValid()&&!this._isUTC},da.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},da.isUtc=jt,da.isUTC=jt,da.zoneAbbr=function(){return this._isUTC?"UTC":""},da.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},da.dates=q("dates accessor is deprecated. Use date instead.",na),da.months=q("months accessor is deprecated. Use month instead",Xe),da.years=q("years accessor is deprecated. Use year instead",We),da.zone=q("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),da.isDSTShifted=q("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!c(this._isDSTShifted))return this._isDSTShifted;var e={};if(u(e,this),(e=wt(e))._a){var t=e._isUTC?b(e._a):_t(e._a);this._isDSTShifted=this.isValid()&&g(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var ba=R.prototype;function ha(e,t,a,o){var i=ft(),n=b().set(o,t);return i[a](n,e)}function Ma(e,t,a){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return ha(e,t,a,"month");var o,i=[];for(o=0;o<12;o++)i[o]=ha(e,o,a,"month");return i}function za(e,t,a,o){"boolean"==typeof e?(l(t)&&(a=t,t=void 0),t=t||""):(a=t=e,e=!1,l(t)&&(a=t,t=void 0),t=t||"");var i,n=ft(),r=e?n._week.dow:0;if(null!=a)return ha(t,(a+r)%7,o,"day");var c=[];for(i=0;i<7;i++)c[i]=ha(t,(i+r)%7,o,"day");return c}ba.calendar=function(e,t,a){var o=this._calendar[e]||this._calendar.sameElse;return _(o)?o.call(t,a):o},ba.longDateFormat=function(e){var t=this._longDateFormat[e],a=this._longDateFormat[e.toUpperCase()];return t||!a?t:(this._longDateFormat[e]=a.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},ba.invalidDate=function(){return this._invalidDate},ba.ordinal=function(e){return this._ordinal.replace("%d",e)},ba.preparse=fa,ba.postformat=fa,ba.relativeTime=function(e,t,a,o){var i=this._relativeTime[a];return _(i)?i(e,t,a,o):i.replace(/%d/i,e)},ba.pastFuture=function(e,t){var a=this._relativeTime[e>0?"future":"past"];return _(a)?a(t):a.replace(/%s/i,t)},ba.set=function(e){var t,a;for(a in e)_(t=e[a])?this[a]=t:this["_"+a]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},ba.months=function(e,t){return e?n(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||xe).test(t)?"format":"standalone"][e.month()]:n(this._months)?this._months:this._months.standalone},ba.monthsShort=function(e,t){return e?n(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[xe.test(t)?"format":"standalone"][e.month()]:n(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},ba.monthsParse=function(e,t,a){var o,i,n;if(this._monthsParseExact)return function(e,t,a){var o,i,n,r=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],o=0;o<12;++o)n=b([2e3,o]),this._shortMonthsParse[o]=this.monthsShort(n,"").toLocaleLowerCase(),this._longMonthsParse[o]=this.months(n,"").toLocaleLowerCase();return a?"MMM"===t?-1!==(i=we.call(this._shortMonthsParse,r))?i:null:-1!==(i=we.call(this._longMonthsParse,r))?i:null:"MMM"===t?-1!==(i=we.call(this._shortMonthsParse,r))?i:-1!==(i=we.call(this._longMonthsParse,r))?i:null:-1!==(i=we.call(this._longMonthsParse,r))?i:-1!==(i=we.call(this._shortMonthsParse,r))?i:null}.call(this,e,t,a);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),o=0;o<12;o++){if(i=b([2e3,o]),a&&!this._longMonthsParse[o]&&(this._longMonthsParse[o]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[o]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),a||this._monthsParse[o]||(n="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[o]=new RegExp(n.replace(".",""),"i")),a&&"MMMM"===t&&this._longMonthsParse[o].test(e))return o;if(a&&"MMM"===t&&this._shortMonthsParse[o].test(e))return o;if(!a&&this._monthsParse[o].test(e))return o}},ba.monthsRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||Fe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(d(this,"_monthsRegex")||(this._monthsRegex=He),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},ba.monthsShortRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||Fe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(d(this,"_monthsShortRegex")||(this._monthsShortRegex=De),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},ba.week=function(e){return Ye(e,this._week.dow,this._week.doy).week},ba.firstDayOfYear=function(){return this._week.doy},ba.firstDayOfWeek=function(){return this._week.dow},ba.weekdays=function(e,t){return e?n(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:n(this._weekdays)?this._weekdays:this._weekdays.standalone},ba.weekdaysMin=function(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin},ba.weekdaysShort=function(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort},ba.weekdaysParse=function(e,t,a){var o,i,n;if(this._weekdaysParseExact)return function(e,t,a){var o,i,n,r=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],o=0;o<7;++o)n=b([2e3,1]).day(o),this._minWeekdaysParse[o]=this.weekdaysMin(n,"").toLocaleLowerCase(),this._shortWeekdaysParse[o]=this.weekdaysShort(n,"").toLocaleLowerCase(),this._weekdaysParse[o]=this.weekdays(n,"").toLocaleLowerCase();return a?"dddd"===t?-1!==(i=we.call(this._weekdaysParse,r))?i:null:"ddd"===t?-1!==(i=we.call(this._shortWeekdaysParse,r))?i:null:-1!==(i=we.call(this._minWeekdaysParse,r))?i:null:"dddd"===t?-1!==(i=we.call(this._weekdaysParse,r))?i:-1!==(i=we.call(this._shortWeekdaysParse,r))?i:-1!==(i=we.call(this._minWeekdaysParse,r))?i:null:"ddd"===t?-1!==(i=we.call(this._shortWeekdaysParse,r))?i:-1!==(i=we.call(this._weekdaysParse,r))?i:-1!==(i=we.call(this._minWeekdaysParse,r))?i:null:-1!==(i=we.call(this._minWeekdaysParse,r))?i:-1!==(i=we.call(this._weekdaysParse,r))?i:-1!==(i=we.call(this._shortWeekdaysParse,r))?i:null}.call(this,e,t,a);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;o<7;o++){if(i=b([2e3,1]).day(o),a&&!this._fullWeekdaysParse[o]&&(this._fullWeekdaysParse[o]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[o]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[o]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[o]||(n="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[o]=new RegExp(n.replace(".",""),"i")),a&&"dddd"===t&&this._fullWeekdaysParse[o].test(e))return o;if(a&&"ddd"===t&&this._shortWeekdaysParse[o].test(e))return o;if(a&&"dd"===t&&this._minWeekdaysParse[o].test(e))return o;if(!a&&this._weekdaysParse[o].test(e))return o}},ba.weekdaysRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||$e.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=Je),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},ba.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||$e.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ze),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},ba.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||$e.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Qe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},ba.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},ba.meridiem=function(e,t,a){return e>11?a?"pm":"PM":a?"am":"AM"},pt("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,a=1===k(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+a}}),i.lang=q("moment.lang is deprecated. Use moment.locale instead.",pt),i.langData=q("moment.langData is deprecated. Use moment.localeData instead.",ft);var ma=Math.abs;function ua(e,t,a,o){var i=Vt(t,a);return e._milliseconds+=o*i._milliseconds,e._days+=o*i._days,e._months+=o*i._months,e._bubble()}function Oa(e){return e<0?Math.floor(e):Math.ceil(e)}function Ca(e){return 4800*e/146097}function Aa(e){return 146097*e/4800}function Ea(e){return function(){return this.as(e)}}var ka=Ea("ms"),ga=Ea("s"),ya=Ea("m"),qa=Ea("h"),va=Ea("d"),wa=Ea("w"),Wa=Ea("M"),_a=Ea("y");function La(e){return function(){return this.isValid()?this._data[e]:NaN}}var Ra=La("milliseconds"),Ba=La("seconds"),xa=La("minutes"),Sa=La("hours"),Na=La("days"),Ta=La("months"),Xa=La("years"),Da=Math.round,Ha={ss:44,s:45,m:45,h:22,d:26,M:11},Fa=Math.abs;function Pa(e){return(e>0)-(e<0)||+e}function ja(){if(!this.isValid())return this.localeData().invalidDate();var e,t,a=Fa(this._milliseconds)/1e3,o=Fa(this._days),i=Fa(this._months);e=E(a/60),t=E(e/60),a%=60,e%=60;var n=E(i/12),r=i%=12,c=o,l=t,s=e,p=a?a.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var f=d<0?"-":"",b=Pa(this._months)!==Pa(d)?"-":"",h=Pa(this._days)!==Pa(d)?"-":"",M=Pa(this._milliseconds)!==Pa(d)?"-":"";return f+"P"+(n?b+n+"Y":"")+(r?b+r+"M":"")+(c?h+c+"D":"")+(l||s||p?"T":"")+(l?M+l+"H":"")+(s?M+s+"M":"")+(p?M+p+"S":"")}var Ia=St.prototype;return Ia.isValid=function(){return this._isValid},Ia.abs=function(){var e=this._data;return this._milliseconds=ma(this._milliseconds),this._days=ma(this._days),this._months=ma(this._months),e.milliseconds=ma(e.milliseconds),e.seconds=ma(e.seconds),e.minutes=ma(e.minutes),e.hours=ma(e.hours),e.months=ma(e.months),e.years=ma(e.years),this},Ia.add=function(e,t){return ua(this,e,t,1)},Ia.subtract=function(e,t){return ua(this,e,t,-1)},Ia.as=function(e){if(!this.isValid())return NaN;var t,a,o=this._milliseconds;if("month"===(e=S(e))||"year"===e)return t=this._days+o/864e5,a=this._months+Ca(t),"month"===e?a:a/12;switch(t=this._days+Math.round(Aa(this._months)),e){case"week":return t/7+o/6048e5;case"day":return t+o/864e5;case"hour":return 24*t+o/36e5;case"minute":return 1440*t+o/6e4;case"second":return 86400*t+o/1e3;case"millisecond":return Math.floor(864e5*t)+o;default:throw new Error("Unknown unit "+e)}},Ia.asMilliseconds=ka,Ia.asSeconds=ga,Ia.asMinutes=ya,Ia.asHours=qa,Ia.asDays=va,Ia.asWeeks=wa,Ia.asMonths=Wa,Ia.asYears=_a,Ia.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*k(this._months/12):NaN},Ia._bubble=function(){var e,t,a,o,i,n=this._milliseconds,r=this._days,c=this._months,l=this._data;return n>=0&&r>=0&&c>=0||n<=0&&r<=0&&c<=0||(n+=864e5*Oa(Aa(c)+r),r=0,c=0),l.milliseconds=n%1e3,e=E(n/1e3),l.seconds=e%60,t=E(e/60),l.minutes=t%60,a=E(t/60),l.hours=a%24,r+=E(a/24),i=E(Ca(r)),c+=i,r-=Oa(Aa(i)),o=E(c/12),c%=12,l.days=r,l.months=c,l.years=o,this},Ia.clone=function(){return Vt(this)},Ia.get=function(e){return e=S(e),this.isValid()?this[e+"s"]():NaN},Ia.milliseconds=Ra,Ia.seconds=Ba,Ia.minutes=xa,Ia.hours=Sa,Ia.days=Na,Ia.weeks=function(){return E(this.days()/7)},Ia.months=Ta,Ia.years=Xa,Ia.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),a=function(e,t,a){var o=Vt(e).abs(),i=Da(o.as("s")),n=Da(o.as("m")),r=Da(o.as("h")),c=Da(o.as("d")),l=Da(o.as("M")),s=Da(o.as("y")),p=i<=Ha.ss&&["s",i]||i<Ha.s&&["ss",i]||n<=1&&["m"]||n<Ha.m&&["mm",n]||r<=1&&["h"]||r<Ha.h&&["hh",r]||c<=1&&["d"]||c<Ha.d&&["dd",c]||l<=1&&["M"]||l<Ha.M&&["MM",l]||s<=1&&["y"]||["yy",s];return p[2]=t,p[3]=+e>0,p[4]=a,function(e,t,a,o,i){return i.relativeTime(t||1,!!a,e,o)}.apply(null,p)}(this,!e,t);return e&&(a=t.pastFuture(+this,a)),t.postformat(a)},Ia.toISOString=ja,Ia.toString=ja,Ia.toJSON=ja,Ia.locale=ea,Ia.localeData=aa,Ia.toIsoString=q("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ja),Ia.lang=ta,I("X",0,0,"unix"),I("x",0,0,"valueOf"),pe("x",ne),pe("X",/[+-]?\d+(\.\d{1,3})?/),he("X",function(e,t,a){a._d=new Date(1e3*parseFloat(e,10))}),he("x",function(e,t,a){a._d=new Date(k(e))}),i.version="2.22.2",t=_t,i.fn=da,i.min=function(){return Bt("isBefore",[].slice.call(arguments,0))},i.max=function(){return Bt("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=b,i.unix=function(e){return _t(1e3*e)},i.months=function(e,t){return Ma(e,t,"months")},i.isDate=s,i.locale=pt,i.invalid=z,i.duration=Vt,i.isMoment=A,i.weekdays=function(e,t,a){return za(e,t,a,"weekdays")},i.parseZone=function(){return _t.apply(null,arguments).parseZone()},i.localeData=ft,i.isDuration=Nt,i.monthsShort=function(e,t){return Ma(e,t,"monthsShort")},i.weekdaysMin=function(e,t,a){return za(e,t,a,"weekdaysMin")},i.defineLocale=dt,i.updateLocale=function(e,t){if(null!=t){var a,o,i=nt;null!=(o=st(e))&&(i=o._config),t=L(i,t),(a=new R(t)).parentLocale=rt[e],rt[e]=a,pt(e)}else null!=rt[e]&&(null!=rt[e].parentLocale?rt[e]=rt[e].parentLocale:null!=rt[e]&&delete rt[e]);return rt[e]},i.locales=function(){return v(rt)},i.weekdaysShort=function(e,t,a){return za(e,t,a,"weekdaysShort")},i.normalizeUnits=S,i.relativeTimeRounding=function(e){return void 0===e?Da:"function"==typeof e&&(Da=e,!0)},i.relativeTimeThreshold=function(e,t){return void 0!==Ha[e]&&(void 0===t?Ha[e]:(Ha[e]=t,"s"===e&&(Ha.ss=t-1),!0))},i.calendarFormat=function(e,t){var a=e.diff(t,"days",!0);return a<-6?"sameElse":a<-1?"lastWeek":a<0?"lastDay":a<1?"sameDay":a<2?"nextDay":a<7?"nextWeek":"sameElse"},i.prototype=da,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},i}()}).call(this,a(175)(e))},function(e,t){!function(){e.exports=this.lodash}()},function(e,t){!function(){e.exports=this.wp.components}()},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t,a){var o;
2
  /*!
3
  Copyright (c) 2017 Jed Watson.
4
  Licensed under the MIT License (MIT), see
@@ -9,20 +9,20 @@
9
  Licensed under the MIT License (MIT), see
10
  http://jedwatson.github.io/classnames
11
  */
12
- !function(){"use strict";var a={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var n=typeof o;if("string"===n||"number"===n)e.push(o);else if(Array.isArray(o)&&o.length){var r=i.apply(null,o);r&&e.push(r)}else if("object"===n)for(var c in o)a.call(o,c)&&o[c]&&e.push(c)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(o=function(){return i}.apply(t,[]))||(e.exports=o)}()},function(e,t,a){"use strict";e.exports=a(471)},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 a=function(){};a.prototype=t.prototype,e.prototype=new a,e.prototype.constructor=e}},function(e,t,a){var o=a(21),i=o.Buffer;function n(e,t){for(var a in e)t[a]=e[a]}function r(e,t,a){return i(e,t,a)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=o:(n(o,t),t.Buffer=r),n(i,r),r.from=function(e,t,a){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,a)},r.alloc=function(e,t,a){if("number"!=typeof e)throw new TypeError("Argument must be a number");var o=i(e);return void 0!==t?"string"==typeof a?o.fill(t,a):o.fill(t):o.fill(0),o},r.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},r.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o.SlowBuffer(e)}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MODIFIER_KEY_NAMES=t.DEFAULT_VERTICAL_SPACING=t.FANG_HEIGHT_PX=t.FANG_WIDTH_PX=t.WEEKDAYS=t.BLOCKED_MODIFIER=t.DAY_SIZE=t.OPEN_UP=t.OPEN_DOWN=t.ANCHOR_RIGHT=t.ANCHOR_LEFT=t.INFO_POSITION_AFTER=t.INFO_POSITION_BEFORE=t.INFO_POSITION_BOTTOM=t.INFO_POSITION_TOP=t.ICON_AFTER_POSITION=t.ICON_BEFORE_POSITION=t.VERTICAL_SCROLLABLE=t.VERTICAL_ORIENTATION=t.HORIZONTAL_ORIENTATION=t.END_DATE=t.START_DATE=t.ISO_MONTH_FORMAT=t.ISO_FORMAT=t.DISPLAY_FORMAT=void 0;t.DISPLAY_FORMAT="L";t.ISO_FORMAT="YYYY-MM-DD";t.ISO_MONTH_FORMAT="YYYY-MM";t.START_DATE="startDate";t.END_DATE="endDate";t.HORIZONTAL_ORIENTATION="horizontal";t.VERTICAL_ORIENTATION="vertical";t.VERTICAL_SCROLLABLE="verticalScrollable";t.ICON_BEFORE_POSITION="before";t.ICON_AFTER_POSITION="after";t.INFO_POSITION_TOP="top";t.INFO_POSITION_BOTTOM="bottom";t.INFO_POSITION_BEFORE="before";t.INFO_POSITION_AFTER="after";t.ANCHOR_LEFT="left";t.ANCHOR_RIGHT="right";t.OPEN_DOWN="down";t.OPEN_UP="up";t.DAY_SIZE=39;t.BLOCKED_MODIFIER="blocked";t.WEEKDAYS=[0,1,2,3,4,5,6];t.FANG_WIDTH_PX=20;t.FANG_HEIGHT_PX=10;t.DEFAULT_VERTICAL_SPACING=22;var o=new Set(["Shift","Control","Alt","Meta"]);t.MODIFIER_KEY_NAMES=o},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function a(e,t){for(var a=0;a<t.length;a++){var o=t[a];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}e.exports=function(e,t,o){return t&&a(e.prototype,t),o&&a(e,o),e}},function(e,t,a){var o=a(138),i=a(6);e.exports=function(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?i(e):t}},function(e,t){function a(t){return e.exports=a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},a(t)}e.exports=a},function(e,t,a){var o=a(139);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}},function(e,t){var a=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=a)},function(e,t,a){e.exports=a(606)},function(e,t,a){(function(e){!function(e,t){"use strict";function o(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var a=function(){};a.prototype=t.prototype,e.prototype=new a,e.prototype.constructor=e}function n(e,t,a){if(n.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(a=t,t=10),this._init(e||0,t||10,a||"be"))}var r;"object"==typeof e?e.exports=n:t.BN=n,n.BN=n,n.wordSize=26;try{r=a(686).Buffer}catch(e){}function c(e,t,a){for(var o=0,i=Math.min(e.length,a),n=t;n<i;n++){var r=e.charCodeAt(n)-48;o<<=4,o|=r>=49&&r<=54?r-49+10:r>=17&&r<=22?r-17+10:15&r}return o}function l(e,t,a,o){for(var i=0,n=Math.min(e.length,a),r=t;r<n;r++){var c=e.charCodeAt(r)-48;i*=o,i+=c>=49?c-49+10:c>=17?c-17+10:c}return i}n.isBN=function(e){return e instanceof n||null!==e&&"object"==typeof e&&e.constructor.wordSize===n.wordSize&&Array.isArray(e.words)},n.max=function(e,t){return e.cmp(t)>0?e:t},n.min=function(e,t){return e.cmp(t)<0?e:t},n.prototype._init=function(e,t,a){if("number"==typeof e)return this._initNumber(e,t,a);if("object"==typeof e)return this._initArray(e,t,a);"hex"===t&&(t=16),o(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===a&&this._initArray(this.toArray(),t,a)},n.prototype._initNumber=function(e,t,a){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(o(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===a&&this._initArray(this.toArray(),t,a)},n.prototype._initArray=function(e,t,a){if(o("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var n,r,c=0;if("be"===a)for(i=e.length-1,n=0;i>=0;i-=3)r=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[n]|=r<<c&67108863,this.words[n+1]=r>>>26-c&67108863,(c+=24)>=26&&(c-=26,n++);else if("le"===a)for(i=0,n=0;i<e.length;i+=3)r=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[n]|=r<<c&67108863,this.words[n+1]=r>>>26-c&67108863,(c+=24)>=26&&(c-=26,n++);return this.strip()},n.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var a=0;a<this.length;a++)this.words[a]=0;var o,i,n=0;for(a=e.length-6,o=0;a>=t;a-=6)i=c(e,a,a+6),this.words[o]|=i<<n&67108863,this.words[o+1]|=i>>>26-n&4194303,(n+=24)>=26&&(n-=26,o++);a+6!==t&&(i=c(e,t,a+6),this.words[o]|=i<<n&67108863,this.words[o+1]|=i>>>26-n&4194303),this.strip()},n.prototype._parseBase=function(e,t,a){this.words=[0],this.length=1;for(var o=0,i=1;i<=67108863;i*=t)o++;o--,i=i/t|0;for(var n=e.length-a,r=n%o,c=Math.min(n,n-r)+a,s=0,p=a;p<c;p+=o)s=l(e,p,p+o,t),this.imuln(i),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s);if(0!==r){var d=1;for(s=l(e,p,e.length,t),p=0;p<r;p++)d*=t;this.imuln(d),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s)}},n.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},n.prototype.clone=function(){var e=new n(null);return this.copy(e),e},n.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},n.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},n.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},n.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var s=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],p=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(e,t,a){a.negative=t.negative^e.negative;var o=e.length+t.length|0;a.length=o,o=o-1|0;var i=0|e.words[0],n=0|t.words[0],r=i*n,c=67108863&r,l=r/67108864|0;a.words[0]=c;for(var s=1;s<o;s++){for(var p=l>>>26,d=67108863&l,f=Math.min(s,t.length-1),b=Math.max(0,s-e.length+1);b<=f;b++){var h=s-b|0;p+=(r=(i=0|e.words[h])*(n=0|t.words[b])+d)/67108864|0,d=67108863&r}a.words[s]=0|d,l=0|p}return 0!==l?a.words[s]=0|l:a.length--,a.strip()}n.prototype.toString=function(e,t){var a;if(t=0|t||1,16===(e=e||10)||"hex"===e){a="";for(var i=0,n=0,r=0;r<this.length;r++){var c=this.words[r],l=(16777215&(c<<i|n)).toString(16);a=0!==(n=c>>>24-i&16777215)||r!==this.length-1?s[6-l.length]+l+a:l+a,(i+=2)>=26&&(i-=26,r--)}for(0!==n&&(a=n.toString(16)+a);a.length%t!=0;)a="0"+a;return 0!==this.negative&&(a="-"+a),a}if(e===(0|e)&&e>=2&&e<=36){var f=p[e],b=d[e];a="";var h=this.clone();for(h.negative=0;!h.isZero();){var M=h.modn(b).toString(e);a=(h=h.idivn(b)).isZero()?M+a:s[f-M.length]+M+a}for(this.isZero()&&(a="0"+a);a.length%t!=0;)a="0"+a;return 0!==this.negative&&(a="-"+a),a}o(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&o(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(e,t){return o(void 0!==r),this.toArrayLike(r,e,t)},n.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},n.prototype.toArrayLike=function(e,t,a){var i=this.byteLength(),n=a||Math.max(1,i);o(i<=n,"byte array longer than desired length"),o(n>0,"Requested array length <= 0"),this.strip();var r,c,l="le"===t,s=new e(n),p=this.clone();if(l){for(c=0;!p.isZero();c++)r=p.andln(255),p.iushrn(8),s[c]=r;for(;c<n;c++)s[c]=0}else{for(c=0;c<n-i;c++)s[c]=0;for(c=0;!p.isZero();c++)r=p.andln(255),p.iushrn(8),s[n-c-1]=r}return s},Math.clz32?n.prototype._countBits=function(e){return 32-Math.clz32(e)}:n.prototype._countBits=function(e){var t=e,a=0;return t>=4096&&(a+=13,t>>>=13),t>=64&&(a+=7,t>>>=7),t>=8&&(a+=4,t>>>=4),t>=2&&(a+=2,t>>>=2),a+t},n.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,a=0;return 0==(8191&t)&&(a+=13,t>>>=13),0==(127&t)&&(a+=7,t>>>=7),0==(15&t)&&(a+=4,t>>>=4),0==(3&t)&&(a+=2,t>>>=2),0==(1&t)&&a++,a},n.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var a=this._zeroBits(this.words[t]);if(e+=a,26!==a)break}return e},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},n.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return 0!==this.negative},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},n.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},n.prototype.ior=function(e){return o(0==(this.negative|e.negative)),this.iuor(e)},n.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},n.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},n.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var a=0;a<t.length;a++)this.words[a]=this.words[a]&e.words[a];return this.length=t.length,this.strip()},n.prototype.iand=function(e){return o(0==(this.negative|e.negative)),this.iuand(e)},n.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},n.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},n.prototype.iuxor=function(e){var t,a;this.length>e.length?(t=this,a=e):(t=e,a=this);for(var o=0;o<a.length;o++)this.words[o]=t.words[o]^a.words[o];if(this!==t)for(;o<t.length;o++)this.words[o]=t.words[o];return this.length=t.length,this.strip()},n.prototype.ixor=function(e){return o(0==(this.negative|e.negative)),this.iuxor(e)},n.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},n.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},n.prototype.inotn=function(e){o("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),a=e%26;this._expand(t),a>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return a>0&&(this.words[i]=~this.words[i]&67108863>>26-a),this.strip()},n.prototype.notn=function(e){return this.clone().inotn(e)},n.prototype.setn=function(e,t){o("number"==typeof e&&e>=0);var a=e/26|0,i=e%26;return this._expand(a+1),this.words[a]=t?this.words[a]|1<<i:this.words[a]&~(1<<i),this.strip()},n.prototype.iadd=function(e){var t,a,o;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(a=this,o=e):(a=e,o=this);for(var i=0,n=0;n<o.length;n++)t=(0|a.words[n])+(0|o.words[n])+i,this.words[n]=67108863&t,i=t>>>26;for(;0!==i&&n<a.length;n++)t=(0|a.words[n])+i,this.words[n]=67108863&t,i=t>>>26;if(this.length=a.length,0!==i)this.words[this.length]=i,this.length++;else if(a!==this)for(;n<a.length;n++)this.words[n]=a.words[n];return this},n.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},n.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var a,o,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(a=this,o=e):(a=e,o=this);for(var n=0,r=0;r<o.length;r++)n=(t=(0|a.words[r])-(0|o.words[r])+n)>>26,this.words[r]=67108863&t;for(;0!==n&&r<a.length;r++)n=(t=(0|a.words[r])+n)>>26,this.words[r]=67108863&t;if(0===n&&r<a.length&&a!==this)for(;r<a.length;r++)this.words[r]=a.words[r];return this.length=Math.max(this.length,r),a!==this&&(this.negative=1),this.strip()},n.prototype.sub=function(e){return this.clone().isub(e)};var b=function(e,t,a){var o,i,n,r=e.words,c=t.words,l=a.words,s=0,p=0|r[0],d=8191&p,f=p>>>13,b=0|r[1],h=8191&b,M=b>>>13,z=0|r[2],m=8191&z,u=z>>>13,O=0|r[3],C=8191&O,A=O>>>13,E=0|r[4],k=8191&E,g=E>>>13,y=0|r[5],q=8191&y,v=y>>>13,w=0|r[6],W=8191&w,_=w>>>13,L=0|r[7],R=8191&L,B=L>>>13,x=0|r[8],S=8191&x,N=x>>>13,T=0|r[9],X=8191&T,D=T>>>13,H=0|c[0],F=8191&H,P=H>>>13,j=0|c[1],I=8191&j,Y=j>>>13,V=0|c[2],U=8191&V,G=V>>>13,K=0|c[3],J=8191&K,Z=K>>>13,Q=0|c[4],$=8191&Q,ee=Q>>>13,te=0|c[5],ae=8191&te,oe=te>>>13,ie=0|c[6],ne=8191&ie,re=ie>>>13,ce=0|c[7],le=8191&ce,se=ce>>>13,pe=0|c[8],de=8191&pe,fe=pe>>>13,be=0|c[9],he=8191&be,Me=be>>>13;a.negative=e.negative^t.negative,a.length=19;var ze=(s+(o=Math.imul(d,F))|0)+((8191&(i=(i=Math.imul(d,P))+Math.imul(f,F)|0))<<13)|0;s=((n=Math.imul(f,P))+(i>>>13)|0)+(ze>>>26)|0,ze&=67108863,o=Math.imul(h,F),i=(i=Math.imul(h,P))+Math.imul(M,F)|0,n=Math.imul(M,P);var me=(s+(o=o+Math.imul(d,I)|0)|0)+((8191&(i=(i=i+Math.imul(d,Y)|0)+Math.imul(f,I)|0))<<13)|0;s=((n=n+Math.imul(f,Y)|0)+(i>>>13)|0)+(me>>>26)|0,me&=67108863,o=Math.imul(m,F),i=(i=Math.imul(m,P))+Math.imul(u,F)|0,n=Math.imul(u,P),o=o+Math.imul(h,I)|0,i=(i=i+Math.imul(h,Y)|0)+Math.imul(M,I)|0,n=n+Math.imul(M,Y)|0;var ue=(s+(o=o+Math.imul(d,U)|0)|0)+((8191&(i=(i=i+Math.imul(d,G)|0)+Math.imul(f,U)|0))<<13)|0;s=((n=n+Math.imul(f,G)|0)+(i>>>13)|0)+(ue>>>26)|0,ue&=67108863,o=Math.imul(C,F),i=(i=Math.imul(C,P))+Math.imul(A,F)|0,n=Math.imul(A,P),o=o+Math.imul(m,I)|0,i=(i=i+Math.imul(m,Y)|0)+Math.imul(u,I)|0,n=n+Math.imul(u,Y)|0,o=o+Math.imul(h,U)|0,i=(i=i+Math.imul(h,G)|0)+Math.imul(M,U)|0,n=n+Math.imul(M,G)|0;var Oe=(s+(o=o+Math.imul(d,J)|0)|0)+((8191&(i=(i=i+Math.imul(d,Z)|0)+Math.imul(f,J)|0))<<13)|0;s=((n=n+Math.imul(f,Z)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,o=Math.imul(k,F),i=(i=Math.imul(k,P))+Math.imul(g,F)|0,n=Math.imul(g,P),o=o+Math.imul(C,I)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(A,I)|0,n=n+Math.imul(A,Y)|0,o=o+Math.imul(m,U)|0,i=(i=i+Math.imul(m,G)|0)+Math.imul(u,U)|0,n=n+Math.imul(u,G)|0,o=o+Math.imul(h,J)|0,i=(i=i+Math.imul(h,Z)|0)+Math.imul(M,J)|0,n=n+Math.imul(M,Z)|0;var Ce=(s+(o=o+Math.imul(d,$)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(f,$)|0))<<13)|0;s=((n=n+Math.imul(f,ee)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,o=Math.imul(q,F),i=(i=Math.imul(q,P))+Math.imul(v,F)|0,n=Math.imul(v,P),o=o+Math.imul(k,I)|0,i=(i=i+Math.imul(k,Y)|0)+Math.imul(g,I)|0,n=n+Math.imul(g,Y)|0,o=o+Math.imul(C,U)|0,i=(i=i+Math.imul(C,G)|0)+Math.imul(A,U)|0,n=n+Math.imul(A,G)|0,o=o+Math.imul(m,J)|0,i=(i=i+Math.imul(m,Z)|0)+Math.imul(u,J)|0,n=n+Math.imul(u,Z)|0,o=o+Math.imul(h,$)|0,i=(i=i+Math.imul(h,ee)|0)+Math.imul(M,$)|0,n=n+Math.imul(M,ee)|0;var Ae=(s+(o=o+Math.imul(d,ae)|0)|0)+((8191&(i=(i=i+Math.imul(d,oe)|0)+Math.imul(f,ae)|0))<<13)|0;s=((n=n+Math.imul(f,oe)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,o=Math.imul(W,F),i=(i=Math.imul(W,P))+Math.imul(_,F)|0,n=Math.imul(_,P),o=o+Math.imul(q,I)|0,i=(i=i+Math.imul(q,Y)|0)+Math.imul(v,I)|0,n=n+Math.imul(v,Y)|0,o=o+Math.imul(k,U)|0,i=(i=i+Math.imul(k,G)|0)+Math.imul(g,U)|0,n=n+Math.imul(g,G)|0,o=o+Math.imul(C,J)|0,i=(i=i+Math.imul(C,Z)|0)+Math.imul(A,J)|0,n=n+Math.imul(A,Z)|0,o=o+Math.imul(m,$)|0,i=(i=i+Math.imul(m,ee)|0)+Math.imul(u,$)|0,n=n+Math.imul(u,ee)|0,o=o+Math.imul(h,ae)|0,i=(i=i+Math.imul(h,oe)|0)+Math.imul(M,ae)|0,n=n+Math.imul(M,oe)|0;var Ee=(s+(o=o+Math.imul(d,ne)|0)|0)+((8191&(i=(i=i+Math.imul(d,re)|0)+Math.imul(f,ne)|0))<<13)|0;s=((n=n+Math.imul(f,re)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,o=Math.imul(R,F),i=(i=Math.imul(R,P))+Math.imul(B,F)|0,n=Math.imul(B,P),o=o+Math.imul(W,I)|0,i=(i=i+Math.imul(W,Y)|0)+Math.imul(_,I)|0,n=n+Math.imul(_,Y)|0,o=o+Math.imul(q,U)|0,i=(i=i+Math.imul(q,G)|0)+Math.imul(v,U)|0,n=n+Math.imul(v,G)|0,o=o+Math.imul(k,J)|0,i=(i=i+Math.imul(k,Z)|0)+Math.imul(g,J)|0,n=n+Math.imul(g,Z)|0,o=o+Math.imul(C,$)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(A,$)|0,n=n+Math.imul(A,ee)|0,o=o+Math.imul(m,ae)|0,i=(i=i+Math.imul(m,oe)|0)+Math.imul(u,ae)|0,n=n+Math.imul(u,oe)|0,o=o+Math.imul(h,ne)|0,i=(i=i+Math.imul(h,re)|0)+Math.imul(M,ne)|0,n=n+Math.imul(M,re)|0;var ke=(s+(o=o+Math.imul(d,le)|0)|0)+((8191&(i=(i=i+Math.imul(d,se)|0)+Math.imul(f,le)|0))<<13)|0;s=((n=n+Math.imul(f,se)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,o=Math.imul(S,F),i=(i=Math.imul(S,P))+Math.imul(N,F)|0,n=Math.imul(N,P),o=o+Math.imul(R,I)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(B,I)|0,n=n+Math.imul(B,Y)|0,o=o+Math.imul(W,U)|0,i=(i=i+Math.imul(W,G)|0)+Math.imul(_,U)|0,n=n+Math.imul(_,G)|0,o=o+Math.imul(q,J)|0,i=(i=i+Math.imul(q,Z)|0)+Math.imul(v,J)|0,n=n+Math.imul(v,Z)|0,o=o+Math.imul(k,$)|0,i=(i=i+Math.imul(k,ee)|0)+Math.imul(g,$)|0,n=n+Math.imul(g,ee)|0,o=o+Math.imul(C,ae)|0,i=(i=i+Math.imul(C,oe)|0)+Math.imul(A,ae)|0,n=n+Math.imul(A,oe)|0,o=o+Math.imul(m,ne)|0,i=(i=i+Math.imul(m,re)|0)+Math.imul(u,ne)|0,n=n+Math.imul(u,re)|0,o=o+Math.imul(h,le)|0,i=(i=i+Math.imul(h,se)|0)+Math.imul(M,le)|0,n=n+Math.imul(M,se)|0;var ge=(s+(o=o+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,fe)|0)+Math.imul(f,de)|0))<<13)|0;s=((n=n+Math.imul(f,fe)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,o=Math.imul(X,F),i=(i=Math.imul(X,P))+Math.imul(D,F)|0,n=Math.imul(D,P),o=o+Math.imul(S,I)|0,i=(i=i+Math.imul(S,Y)|0)+Math.imul(N,I)|0,n=n+Math.imul(N,Y)|0,o=o+Math.imul(R,U)|0,i=(i=i+Math.imul(R,G)|0)+Math.imul(B,U)|0,n=n+Math.imul(B,G)|0,o=o+Math.imul(W,J)|0,i=(i=i+Math.imul(W,Z)|0)+Math.imul(_,J)|0,n=n+Math.imul(_,Z)|0,o=o+Math.imul(q,$)|0,i=(i=i+Math.imul(q,ee)|0)+Math.imul(v,$)|0,n=n+Math.imul(v,ee)|0,o=o+Math.imul(k,ae)|0,i=(i=i+Math.imul(k,oe)|0)+Math.imul(g,ae)|0,n=n+Math.imul(g,oe)|0,o=o+Math.imul(C,ne)|0,i=(i=i+Math.imul(C,re)|0)+Math.imul(A,ne)|0,n=n+Math.imul(A,re)|0,o=o+Math.imul(m,le)|0,i=(i=i+Math.imul(m,se)|0)+Math.imul(u,le)|0,n=n+Math.imul(u,se)|0,o=o+Math.imul(h,de)|0,i=(i=i+Math.imul(h,fe)|0)+Math.imul(M,de)|0,n=n+Math.imul(M,fe)|0;var ye=(s+(o=o+Math.imul(d,he)|0)|0)+((8191&(i=(i=i+Math.imul(d,Me)|0)+Math.imul(f,he)|0))<<13)|0;s=((n=n+Math.imul(f,Me)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,o=Math.imul(X,I),i=(i=Math.imul(X,Y))+Math.imul(D,I)|0,n=Math.imul(D,Y),o=o+Math.imul(S,U)|0,i=(i=i+Math.imul(S,G)|0)+Math.imul(N,U)|0,n=n+Math.imul(N,G)|0,o=o+Math.imul(R,J)|0,i=(i=i+Math.imul(R,Z)|0)+Math.imul(B,J)|0,n=n+Math.imul(B,Z)|0,o=o+Math.imul(W,$)|0,i=(i=i+Math.imul(W,ee)|0)+Math.imul(_,$)|0,n=n+Math.imul(_,ee)|0,o=o+Math.imul(q,ae)|0,i=(i=i+Math.imul(q,oe)|0)+Math.imul(v,ae)|0,n=n+Math.imul(v,oe)|0,o=o+Math.imul(k,ne)|0,i=(i=i+Math.imul(k,re)|0)+Math.imul(g,ne)|0,n=n+Math.imul(g,re)|0,o=o+Math.imul(C,le)|0,i=(i=i+Math.imul(C,se)|0)+Math.imul(A,le)|0,n=n+Math.imul(A,se)|0,o=o+Math.imul(m,de)|0,i=(i=i+Math.imul(m,fe)|0)+Math.imul(u,de)|0,n=n+Math.imul(u,fe)|0;var qe=(s+(o=o+Math.imul(h,he)|0)|0)+((8191&(i=(i=i+Math.imul(h,Me)|0)+Math.imul(M,he)|0))<<13)|0;s=((n=n+Math.imul(M,Me)|0)+(i>>>13)|0)+(qe>>>26)|0,qe&=67108863,o=Math.imul(X,U),i=(i=Math.imul(X,G))+Math.imul(D,U)|0,n=Math.imul(D,G),o=o+Math.imul(S,J)|0,i=(i=i+Math.imul(S,Z)|0)+Math.imul(N,J)|0,n=n+Math.imul(N,Z)|0,o=o+Math.imul(R,$)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(B,$)|0,n=n+Math.imul(B,ee)|0,o=o+Math.imul(W,ae)|0,i=(i=i+Math.imul(W,oe)|0)+Math.imul(_,ae)|0,n=n+Math.imul(_,oe)|0,o=o+Math.imul(q,ne)|0,i=(i=i+Math.imul(q,re)|0)+Math.imul(v,ne)|0,n=n+Math.imul(v,re)|0,o=o+Math.imul(k,le)|0,i=(i=i+Math.imul(k,se)|0)+Math.imul(g,le)|0,n=n+Math.imul(g,se)|0,o=o+Math.imul(C,de)|0,i=(i=i+Math.imul(C,fe)|0)+Math.imul(A,de)|0,n=n+Math.imul(A,fe)|0;var ve=(s+(o=o+Math.imul(m,he)|0)|0)+((8191&(i=(i=i+Math.imul(m,Me)|0)+Math.imul(u,he)|0))<<13)|0;s=((n=n+Math.imul(u,Me)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,o=Math.imul(X,J),i=(i=Math.imul(X,Z))+Math.imul(D,J)|0,n=Math.imul(D,Z),o=o+Math.imul(S,$)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(N,$)|0,n=n+Math.imul(N,ee)|0,o=o+Math.imul(R,ae)|0,i=(i=i+Math.imul(R,oe)|0)+Math.imul(B,ae)|0,n=n+Math.imul(B,oe)|0,o=o+Math.imul(W,ne)|0,i=(i=i+Math.imul(W,re)|0)+Math.imul(_,ne)|0,n=n+Math.imul(_,re)|0,o=o+Math.imul(q,le)|0,i=(i=i+Math.imul(q,se)|0)+Math.imul(v,le)|0,n=n+Math.imul(v,se)|0,o=o+Math.imul(k,de)|0,i=(i=i+Math.imul(k,fe)|0)+Math.imul(g,de)|0,n=n+Math.imul(g,fe)|0;var we=(s+(o=o+Math.imul(C,he)|0)|0)+((8191&(i=(i=i+Math.imul(C,Me)|0)+Math.imul(A,he)|0))<<13)|0;s=((n=n+Math.imul(A,Me)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,o=Math.imul(X,$),i=(i=Math.imul(X,ee))+Math.imul(D,$)|0,n=Math.imul(D,ee),o=o+Math.imul(S,ae)|0,i=(i=i+Math.imul(S,oe)|0)+Math.imul(N,ae)|0,n=n+Math.imul(N,oe)|0,o=o+Math.imul(R,ne)|0,i=(i=i+Math.imul(R,re)|0)+Math.imul(B,ne)|0,n=n+Math.imul(B,re)|0,o=o+Math.imul(W,le)|0,i=(i=i+Math.imul(W,se)|0)+Math.imul(_,le)|0,n=n+Math.imul(_,se)|0,o=o+Math.imul(q,de)|0,i=(i=i+Math.imul(q,fe)|0)+Math.imul(v,de)|0,n=n+Math.imul(v,fe)|0;var We=(s+(o=o+Math.imul(k,he)|0)|0)+((8191&(i=(i=i+Math.imul(k,Me)|0)+Math.imul(g,he)|0))<<13)|0;s=((n=n+Math.imul(g,Me)|0)+(i>>>13)|0)+(We>>>26)|0,We&=67108863,o=Math.imul(X,ae),i=(i=Math.imul(X,oe))+Math.imul(D,ae)|0,n=Math.imul(D,oe),o=o+Math.imul(S,ne)|0,i=(i=i+Math.imul(S,re)|0)+Math.imul(N,ne)|0,n=n+Math.imul(N,re)|0,o=o+Math.imul(R,le)|0,i=(i=i+Math.imul(R,se)|0)+Math.imul(B,le)|0,n=n+Math.imul(B,se)|0,o=o+Math.imul(W,de)|0,i=(i=i+Math.imul(W,fe)|0)+Math.imul(_,de)|0,n=n+Math.imul(_,fe)|0;var _e=(s+(o=o+Math.imul(q,he)|0)|0)+((8191&(i=(i=i+Math.imul(q,Me)|0)+Math.imul(v,he)|0))<<13)|0;s=((n=n+Math.imul(v,Me)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,o=Math.imul(X,ne),i=(i=Math.imul(X,re))+Math.imul(D,ne)|0,n=Math.imul(D,re),o=o+Math.imul(S,le)|0,i=(i=i+Math.imul(S,se)|0)+Math.imul(N,le)|0,n=n+Math.imul(N,se)|0,o=o+Math.imul(R,de)|0,i=(i=i+Math.imul(R,fe)|0)+Math.imul(B,de)|0,n=n+Math.imul(B,fe)|0;var Le=(s+(o=o+Math.imul(W,he)|0)|0)+((8191&(i=(i=i+Math.imul(W,Me)|0)+Math.imul(_,he)|0))<<13)|0;s=((n=n+Math.imul(_,Me)|0)+(i>>>13)|0)+(Le>>>26)|0,Le&=67108863,o=Math.imul(X,le),i=(i=Math.imul(X,se))+Math.imul(D,le)|0,n=Math.imul(D,se),o=o+Math.imul(S,de)|0,i=(i=i+Math.imul(S,fe)|0)+Math.imul(N,de)|0,n=n+Math.imul(N,fe)|0;var Re=(s+(o=o+Math.imul(R,he)|0)|0)+((8191&(i=(i=i+Math.imul(R,Me)|0)+Math.imul(B,he)|0))<<13)|0;s=((n=n+Math.imul(B,Me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,o=Math.imul(X,de),i=(i=Math.imul(X,fe))+Math.imul(D,de)|0,n=Math.imul(D,fe);var Be=(s+(o=o+Math.imul(S,he)|0)|0)+((8191&(i=(i=i+Math.imul(S,Me)|0)+Math.imul(N,he)|0))<<13)|0;s=((n=n+Math.imul(N,Me)|0)+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863;var xe=(s+(o=Math.imul(X,he))|0)+((8191&(i=(i=Math.imul(X,Me))+Math.imul(D,he)|0))<<13)|0;return s=((n=Math.imul(D,Me))+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,l[0]=ze,l[1]=me,l[2]=ue,l[3]=Oe,l[4]=Ce,l[5]=Ae,l[6]=Ee,l[7]=ke,l[8]=ge,l[9]=ye,l[10]=qe,l[11]=ve,l[12]=we,l[13]=We,l[14]=_e,l[15]=Le,l[16]=Re,l[17]=Be,l[18]=xe,0!==s&&(l[19]=s,a.length++),a};function h(e,t,a){return(new M).mulp(e,t,a)}function M(e,t){this.x=e,this.y=t}Math.imul||(b=f),n.prototype.mulTo=function(e,t){var a=this.length+e.length;return 10===this.length&&10===e.length?b(this,e,t):a<63?f(this,e,t):a<1024?function(e,t,a){a.negative=t.negative^e.negative,a.length=e.length+t.length;for(var o=0,i=0,n=0;n<a.length-1;n++){var r=i;i=0;for(var c=67108863&o,l=Math.min(n,t.length-1),s=Math.max(0,n-e.length+1);s<=l;s++){var p=n-s,d=(0|e.words[p])*(0|t.words[s]),f=67108863&d;c=67108863&(f=f+c|0),i+=(r=(r=r+(d/67108864|0)|0)+(f>>>26)|0)>>>26,r&=67108863}a.words[n]=c,o=r,r=i}return 0!==o?a.words[n]=o:a.length--,a.strip()}(this,e,t):h(this,e,t)},M.prototype.makeRBT=function(e){for(var t=new Array(e),a=n.prototype._countBits(e)-1,o=0;o<e;o++)t[o]=this.revBin(o,a,e);return t},M.prototype.revBin=function(e,t,a){if(0===e||e===a-1)return e;for(var o=0,i=0;i<t;i++)o|=(1&e)<<t-i-1,e>>=1;return o},M.prototype.permute=function(e,t,a,o,i,n){for(var r=0;r<n;r++)o[r]=t[e[r]],i[r]=a[e[r]]},M.prototype.transform=function(e,t,a,o,i,n){this.permute(n,e,t,a,o,i);for(var r=1;r<i;r<<=1)for(var c=r<<1,l=Math.cos(2*Math.PI/c),s=Math.sin(2*Math.PI/c),p=0;p<i;p+=c)for(var d=l,f=s,b=0;b<r;b++){var h=a[p+b],M=o[p+b],z=a[p+b+r],m=o[p+b+r],u=d*z-f*m;m=d*m+f*z,z=u,a[p+b]=h+z,o[p+b]=M+m,a[p+b+r]=h-z,o[p+b+r]=M-m,b!==c&&(u=l*d-s*f,f=l*f+s*d,d=u)}},M.prototype.guessLen13b=function(e,t){var a=1|Math.max(t,e),o=1&a,i=0;for(a=a/2|0;a;a>>>=1)i++;return 1<<i+1+o},M.prototype.conjugate=function(e,t,a){if(!(a<=1))for(var o=0;o<a/2;o++){var i=e[o];e[o]=e[a-o-1],e[a-o-1]=i,i=t[o],t[o]=-t[a-o-1],t[a-o-1]=-i}},M.prototype.normalize13b=function(e,t){for(var a=0,o=0;o<t/2;o++){var i=8192*Math.round(e[2*o+1]/t)+Math.round(e[2*o]/t)+a;e[o]=67108863&i,a=i<67108864?0:i/67108864|0}return e},M.prototype.convert13b=function(e,t,a,i){for(var n=0,r=0;r<t;r++)n+=0|e[r],a[2*r]=8191&n,n>>>=13,a[2*r+1]=8191&n,n>>>=13;for(r=2*t;r<i;++r)a[r]=0;o(0===n),o(0==(-8192&n))},M.prototype.stub=function(e){for(var t=new Array(e),a=0;a<e;a++)t[a]=0;return t},M.prototype.mulp=function(e,t,a){var o=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(o),n=this.stub(o),r=new Array(o),c=new Array(o),l=new Array(o),s=new Array(o),p=new Array(o),d=new Array(o),f=a.words;f.length=o,this.convert13b(e.words,e.length,r,o),this.convert13b(t.words,t.length,s,o),this.transform(r,n,c,l,o,i),this.transform(s,n,p,d,o,i);for(var b=0;b<o;b++){var h=c[b]*p[b]-l[b]*d[b];l[b]=c[b]*d[b]+l[b]*p[b],c[b]=h}return this.conjugate(c,l,o),this.transform(c,l,f,n,o,i),this.conjugate(f,n,o),this.normalize13b(f,o),a.negative=e.negative^t.negative,a.length=e.length+t.length,a.strip()},n.prototype.mul=function(e){var t=new n(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},n.prototype.mulf=function(e){var t=new n(null);return t.words=new Array(this.length+e.length),h(this,e,t)},n.prototype.imul=function(e){return this.clone().mulTo(e,this)},n.prototype.imuln=function(e){o("number"==typeof e),o(e<67108864);for(var t=0,a=0;a<this.length;a++){var i=(0|this.words[a])*e,n=(67108863&i)+(67108863&t);t>>=26,t+=i/67108864|0,t+=n>>>26,this.words[a]=67108863&n}return 0!==t&&(this.words[a]=t,this.length++),this},n.prototype.muln=function(e){return this.clone().imuln(e)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),a=0;a<t.length;a++){var o=a/26|0,i=a%26;t[a]=(e.words[o]&1<<i)>>>i}return t}(e);if(0===t.length)return new n(1);for(var a=this,o=0;o<t.length&&0===t[o];o++,a=a.sqr());if(++o<t.length)for(var i=a.sqr();o<t.length;o++,i=i.sqr())0!==t[o]&&(a=a.mul(i));return a},n.prototype.iushln=function(e){o("number"==typeof e&&e>=0);var t,a=e%26,i=(e-a)/26,n=67108863>>>26-a<<26-a;if(0!==a){var r=0;for(t=0;t<this.length;t++){var c=this.words[t]&n,l=(0|this.words[t])-c<<a;this.words[t]=l|r,r=c>>>26-a}r&&(this.words[t]=r,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this.strip()},n.prototype.ishln=function(e){return o(0===this.negative),this.iushln(e)},n.prototype.iushrn=function(e,t,a){var i;o("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var n=e%26,r=Math.min((e-n)/26,this.length),c=67108863^67108863>>>n<<n,l=a;if(i-=r,i=Math.max(0,i),l){for(var s=0;s<r;s++)l.words[s]=this.words[s];l.length=r}if(0===r);else if(this.length>r)for(this.length-=r,s=0;s<this.length;s++)this.words[s]=this.words[s+r];else this.words[0]=0,this.length=1;var p=0;for(s=this.length-1;s>=0&&(0!==p||s>=i);s--){var d=0|this.words[s];this.words[s]=p<<26-n|d>>>n,p=d&c}return l&&0!==p&&(l.words[l.length++]=p),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},n.prototype.ishrn=function(e,t,a){return o(0===this.negative),this.iushrn(e,t,a)},n.prototype.shln=function(e){return this.clone().ishln(e)},n.prototype.ushln=function(e){return this.clone().iushln(e)},n.prototype.shrn=function(e){return this.clone().ishrn(e)},n.prototype.ushrn=function(e){return this.clone().iushrn(e)},n.prototype.testn=function(e){o("number"==typeof e&&e>=0);var t=e%26,a=(e-t)/26,i=1<<t;return!(this.length<=a)&&!!(this.words[a]&i)},n.prototype.imaskn=function(e){o("number"==typeof e&&e>=0);var t=e%26,a=(e-t)/26;if(o(0===this.negative,"imaskn works only with positive numbers"),this.length<=a)return this;if(0!==t&&a++,this.length=Math.min(a,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this.strip()},n.prototype.maskn=function(e){return this.clone().imaskn(e)},n.prototype.iaddn=function(e){return o("number"==typeof e),o(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},n.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},n.prototype.isubn=function(e){if(o("number"==typeof e),o(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},n.prototype.addn=function(e){return this.clone().iaddn(e)},n.prototype.subn=function(e){return this.clone().isubn(e)},n.prototype.iabs=function(){return this.negative=0,this},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(e,t,a){var i,n,r=e.length+a;this._expand(r);var c=0;for(i=0;i<e.length;i++){n=(0|this.words[i+a])+c;var l=(0|e.words[i])*t;c=((n-=67108863&l)>>26)-(l/67108864|0),this.words[i+a]=67108863&n}for(;i<this.length-a;i++)c=(n=(0|this.words[i+a])+c)>>26,this.words[i+a]=67108863&n;if(0===c)return this.strip();for(o(-1===c),c=0,i=0;i<this.length;i++)c=(n=-(0|this.words[i])+c)>>26,this.words[i]=67108863&n;return this.negative=1,this.strip()},n.prototype._wordDiv=function(e,t){var a=(this.length,e.length),o=this.clone(),i=e,r=0|i.words[i.length-1];0!==(a=26-this._countBits(r))&&(i=i.ushln(a),o.iushln(a),r=0|i.words[i.length-1]);var c,l=o.length-i.length;if("mod"!==t){(c=new n(null)).length=l+1,c.words=new Array(c.length);for(var s=0;s<c.length;s++)c.words[s]=0}var p=o.clone()._ishlnsubmul(i,1,l);0===p.negative&&(o=p,c&&(c.words[l]=1));for(var d=l-1;d>=0;d--){var f=67108864*(0|o.words[i.length+d])+(0|o.words[i.length+d-1]);for(f=Math.min(f/r|0,67108863),o._ishlnsubmul(i,f,d);0!==o.negative;)f--,o.negative=0,o._ishlnsubmul(i,1,d),o.isZero()||(o.negative^=1);c&&(c.words[d]=f)}return c&&c.strip(),o.strip(),"div"!==t&&0!==a&&o.iushrn(a),{div:c||null,mod:o}},n.prototype.divmod=function(e,t,a){return o(!e.isZero()),this.isZero()?{div:new n(0),mod:new n(0)}:0!==this.negative&&0===e.negative?(c=this.neg().divmod(e,t),"mod"!==t&&(i=c.div.neg()),"div"!==t&&(r=c.mod.neg(),a&&0!==r.negative&&r.iadd(e)),{div:i,mod:r}):0===this.negative&&0!==e.negative?(c=this.divmod(e.neg(),t),"mod"!==t&&(i=c.div.neg()),{div:i,mod:c.mod}):0!=(this.negative&e.negative)?(c=this.neg().divmod(e.neg(),t),"div"!==t&&(r=c.mod.neg(),a&&0!==r.negative&&r.isub(e)),{div:c.div,mod:r}):e.length>this.length||this.cmp(e)<0?{div:new n(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new n(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new n(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,r,c},n.prototype.div=function(e){return this.divmod(e,"div",!1).div},n.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},n.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},n.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var a=0!==t.div.negative?t.mod.isub(e):t.mod,o=e.ushrn(1),i=e.andln(1),n=a.cmp(o);return n<0||1===i&&0===n?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},n.prototype.modn=function(e){o(e<=67108863);for(var t=(1<<26)%e,a=0,i=this.length-1;i>=0;i--)a=(t*a+(0|this.words[i]))%e;return a},n.prototype.idivn=function(e){o(e<=67108863);for(var t=0,a=this.length-1;a>=0;a--){var i=(0|this.words[a])+67108864*t;this.words[a]=i/e|0,t=i%e}return this.strip()},n.prototype.divn=function(e){return this.clone().idivn(e)},n.prototype.egcd=function(e){o(0===e.negative),o(!e.isZero());var t=this,a=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new n(1),r=new n(0),c=new n(0),l=new n(1),s=0;t.isEven()&&a.isEven();)t.iushrn(1),a.iushrn(1),++s;for(var p=a.clone(),d=t.clone();!t.isZero();){for(var f=0,b=1;0==(t.words[0]&b)&&f<26;++f,b<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(i.isOdd()||r.isOdd())&&(i.iadd(p),r.isub(d)),i.iushrn(1),r.iushrn(1);for(var h=0,M=1;0==(a.words[0]&M)&&h<26;++h,M<<=1);if(h>0)for(a.iushrn(h);h-- >0;)(c.isOdd()||l.isOdd())&&(c.iadd(p),l.isub(d)),c.iushrn(1),l.iushrn(1);t.cmp(a)>=0?(t.isub(a),i.isub(c),r.isub(l)):(a.isub(t),c.isub(i),l.isub(r))}return{a:c,b:l,gcd:a.iushln(s)}},n.prototype._invmp=function(e){o(0===e.negative),o(!e.isZero());var t=this,a=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,r=new n(1),c=new n(0),l=a.clone();t.cmpn(1)>0&&a.cmpn(1)>0;){for(var s=0,p=1;0==(t.words[0]&p)&&s<26;++s,p<<=1);if(s>0)for(t.iushrn(s);s-- >0;)r.isOdd()&&r.iadd(l),r.iushrn(1);for(var d=0,f=1;0==(a.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(a.iushrn(d);d-- >0;)c.isOdd()&&c.iadd(l),c.iushrn(1);t.cmp(a)>=0?(t.isub(a),r.isub(c)):(a.isub(t),c.isub(r))}return(i=0===t.cmpn(1)?r:c).cmpn(0)<0&&i.iadd(e),i},n.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),a=e.clone();t.negative=0,a.negative=0;for(var o=0;t.isEven()&&a.isEven();o++)t.iushrn(1),a.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;a.isEven();)a.iushrn(1);var i=t.cmp(a);if(i<0){var n=t;t=a,a=n}else if(0===i||0===a.cmpn(1))break;t.isub(a)}return a.iushln(o)},n.prototype.invm=function(e){return this.egcd(e).a.umod(e)},n.prototype.isEven=function(){return 0==(1&this.words[0])},n.prototype.isOdd=function(){return 1==(1&this.words[0])},n.prototype.andln=function(e){return this.words[0]&e},n.prototype.bincn=function(e){o("number"==typeof e);var t=e%26,a=(e-t)/26,i=1<<t;if(this.length<=a)return this._expand(a+1),this.words[a]|=i,this;for(var n=i,r=a;0!==n&&r<this.length;r++){var c=0|this.words[r];n=(c+=n)>>>26,c&=67108863,this.words[r]=c}return 0!==n&&(this.words[r]=n,this.length++),this},n.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},n.prototype.cmpn=function(e){var t,a=e<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)t=1;else{a&&(e=-e),o(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},n.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},n.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,a=this.length-1;a>=0;a--){var o=0|this.words[a],i=0|e.words[a];if(o!==i){o<i?t=-1:o>i&&(t=1);break}}return t},n.prototype.gtn=function(e){return 1===this.cmpn(e)},n.prototype.gt=function(e){return 1===this.cmp(e)},n.prototype.gten=function(e){return this.cmpn(e)>=0},n.prototype.gte=function(e){return this.cmp(e)>=0},n.prototype.ltn=function(e){return-1===this.cmpn(e)},n.prototype.lt=function(e){return-1===this.cmp(e)},n.prototype.lten=function(e){return this.cmpn(e)<=0},n.prototype.lte=function(e){return this.cmp(e)<=0},n.prototype.eqn=function(e){return 0===this.cmpn(e)},n.prototype.eq=function(e){return 0===this.cmp(e)},n.red=function(e){return new E(e)},n.prototype.toRed=function(e){return o(!this.red,"Already a number in reduction context"),o(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},n.prototype.fromRed=function(){return o(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(e){return this.red=e,this},n.prototype.forceRed=function(e){return o(!this.red,"Already a number in reduction context"),this._forceRed(e)},n.prototype.redAdd=function(e){return o(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},n.prototype.redIAdd=function(e){return o(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},n.prototype.redSub=function(e){return o(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},n.prototype.redISub=function(e){return o(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},n.prototype.redShl=function(e){return o(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},n.prototype.redMul=function(e){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},n.prototype.redIMul=function(e){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},n.prototype.redSqr=function(){return o(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return o(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return o(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return o(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return o(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(e){return o(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var z={k256:null,p224:null,p192:null,p25519:null};function m(e,t){this.name=e,this.p=new n(t,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function u(){m.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function O(){m.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function C(){m.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function A(){m.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(e){if("string"==typeof e){var t=n._prime(e);this.m=t.p,this.prime=t}else o(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){E.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new n(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}m.prototype._tmp=function(){var e=new n(null);return e.words=new Array(Math.ceil(this.n/13)),e},m.prototype.ireduce=function(e){var t,a=e;do{this.split(a,this.tmp),t=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(t>this.n);var o=t<this.n?-1:a.ucmp(this.p);return 0===o?(a.words[0]=0,a.length=1):o>0?a.isub(this.p):a.strip(),a},m.prototype.split=function(e,t){e.iushrn(this.n,0,t)},m.prototype.imulK=function(e){return e.imul(this.k)},i(u,m),u.prototype.split=function(e,t){for(var a=Math.min(e.length,9),o=0;o<a;o++)t.words[o]=e.words[o];if(t.length=a,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(t.words[t.length++]=4194303&i,o=10;o<e.length;o++){var n=0|e.words[o];e.words[o-10]=(4194303&n)<<4|i>>>22,i=n}i>>>=22,e.words[o-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},u.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,a=0;a<e.length;a++){var o=0|e.words[a];t+=977*o,e.words[a]=67108863&t,t=64*o+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(O,m),i(C,m),i(A,m),A.prototype.imulK=function(e){for(var t=0,a=0;a<e.length;a++){var o=19*(0|e.words[a])+t,i=67108863&o;o>>>=26,e.words[a]=i,t=o}return 0!==t&&(e.words[e.length++]=t),e},n._prime=function(e){if(z[e])return z[e];var t;if("k256"===e)t=new u;else if("p224"===e)t=new O;else if("p192"===e)t=new C;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new A}return z[e]=t,t},E.prototype._verify1=function(e){o(0===e.negative,"red works only with positives"),o(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,t){o(0==(e.negative|t.negative),"red works only with positives"),o(e.red&&e.red===t.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.prototype.add=function(e,t){this._verify2(e,t);var a=e.add(t);return a.cmp(this.m)>=0&&a.isub(this.m),a._forceRed(this)},E.prototype.iadd=function(e,t){this._verify2(e,t);var a=e.iadd(t);return a.cmp(this.m)>=0&&a.isub(this.m),a},E.prototype.sub=function(e,t){this._verify2(e,t);var a=e.sub(t);return a.cmpn(0)<0&&a.iadd(this.m),a._forceRed(this)},E.prototype.isub=function(e,t){this._verify2(e,t);var a=e.isub(t);return a.cmpn(0)<0&&a.iadd(this.m),a},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(o(t%2==1),3===t){var a=this.m.add(new n(1)).iushrn(2);return this.pow(e,a)}for(var i=this.m.subn(1),r=0;!i.isZero()&&0===i.andln(1);)r++,i.iushrn(1);o(!i.isZero());var c=new n(1).toRed(this),l=c.redNeg(),s=this.m.subn(1).iushrn(1),p=this.m.bitLength();for(p=new n(2*p*p).toRed(this);0!==this.pow(p,s).cmp(l);)p.redIAdd(l);for(var d=this.pow(p,i),f=this.pow(e,i.addn(1).iushrn(1)),b=this.pow(e,i),h=r;0!==b.cmp(c);){for(var M=b,z=0;0!==M.cmp(c);z++)M=M.redSqr();o(z<h);var m=this.pow(d,new n(1).iushln(h-z-1));f=f.redMul(m),d=m.redSqr(),b=b.redMul(d),h=z}return f},E.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},E.prototype.pow=function(e,t){if(t.isZero())return new n(1).toRed(this);if(0===t.cmpn(1))return e.clone();var a=new Array(16);a[0]=new n(1).toRed(this),a[1]=e;for(var o=2;o<a.length;o++)a[o]=this.mul(a[o-1],e);var i=a[0],r=0,c=0,l=t.bitLength()%26;for(0===l&&(l=26),o=t.length-1;o>=0;o--){for(var s=t.words[o],p=l-1;p>=0;p--){var d=s>>p&1;i!==a[0]&&(i=this.sqr(i)),0!==d||0!==r?(r<<=1,r|=d,(4===++c||0===o&&0===p)&&(i=this.mul(i,a[r]),c=0,r=0)):c=0}l=26}return i},E.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},n.mont=function(e){return new k(e)},i(k,E),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var a=e.imul(t),o=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=a.isub(o).iushrn(this.shift),n=i;return i.cmp(this.m)>=0?n=i.isub(this.m):i.cmpn(0)<0&&(n=i.iadd(this.m)),n._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new n(0)._forceRed(this);var a=e.mul(t),o=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=a.isub(o).iushrn(this.shift),r=i;return i.cmp(this.m)>=0?r=i.isub(this.m):i.cmpn(0)<0&&(r=i.iadd(this.m)),r._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,a(175)(e))},function(e,t){!function(){e.exports=this.wp.compose}()},function(e,t,a){"use strict";(function(e){
13
  /*!
14
  * The buffer module from node.js, for the browser.
15
  *
16
  * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
17
  * @license MIT
18
  */
19
- var o=a(648),i=a(649),n=a(415);function r(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(e,t){if(r()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,a){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,a);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return d(this,e)}return s(this,e,t,a)}function s(e,t,a,o){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,a,o){if(t.byteLength,a<0||t.byteLength<a)throw new RangeError("'offset' is out of bounds");if(t.byteLength<a+(o||0))throw new RangeError("'length' is out of bounds");t=void 0===a&&void 0===o?new Uint8Array(t):void 0===o?new Uint8Array(t,a):new Uint8Array(t,a,o);l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=f(e,t);return e}(e,t,a,o):"string"==typeof t?function(e,t,a){"string"==typeof a&&""!==a||(a="utf8");if(!l.isEncoding(a))throw new TypeError('"encoding" must be a valid string encoding');var o=0|h(t,a),i=(e=c(e,o)).write(t,a);i!==o&&(e=e.slice(0,i));return e}(e,t,a):function(e,t){if(l.isBuffer(t)){var a=0|b(t.length);return 0===(e=c(e,a)).length?e:(t.copy(e,0,0,a),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(o=t.length)!=o?c(e,0):f(e,t);if("Buffer"===t.type&&n(t.data))return f(e,t.data)}var o;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function p(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t){if(p(t),e=c(e,t<0?0:0|b(t)),!l.TYPED_ARRAY_SUPPORT)for(var a=0;a<t;++a)e[a]=0;return e}function f(e,t){var a=t.length<0?0:0|b(t.length);e=c(e,a);for(var o=0;o<a;o+=1)e[o]=255&t[o];return e}function b(e){if(e>=r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r().toString(16)+" bytes");return 0|e}function h(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var a=e.length;if(0===a)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return a;case"utf8":case"utf-8":case void 0:return H(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*a;case"hex":return a>>>1;case"base64":return F(e).length;default:if(o)return H(e).length;t=(""+t).toLowerCase(),o=!0}}function M(e,t,a){var o=e[t];e[t]=e[a],e[a]=o}function z(e,t,a,o,i){if(0===e.length)return-1;if("string"==typeof a?(o=a,a=0):a>2147483647?a=2147483647:a<-2147483648&&(a=-2147483648),a=+a,isNaN(a)&&(a=i?0:e.length-1),a<0&&(a=e.length+a),a>=e.length){if(i)return-1;a=e.length-1}else if(a<0){if(!i)return-1;a=0}if("string"==typeof t&&(t=l.from(t,o)),l.isBuffer(t))return 0===t.length?-1:m(e,t,a,o,i);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,a):Uint8Array.prototype.lastIndexOf.call(e,t,a):m(e,[t],a,o,i);throw new TypeError("val must be string, number or Buffer")}function m(e,t,a,o,i){var n,r=1,c=e.length,l=t.length;if(void 0!==o&&("ucs2"===(o=String(o).toLowerCase())||"ucs-2"===o||"utf16le"===o||"utf-16le"===o)){if(e.length<2||t.length<2)return-1;r=2,c/=2,l/=2,a/=2}function s(e,t){return 1===r?e[t]:e.readUInt16BE(t*r)}if(i){var p=-1;for(n=a;n<c;n++)if(s(e,n)===s(t,-1===p?0:n-p)){if(-1===p&&(p=n),n-p+1===l)return p*r}else-1!==p&&(n-=n-p),p=-1}else for(a+l>c&&(a=c-l),n=a;n>=0;n--){for(var d=!0,f=0;f<l;f++)if(s(e,n+f)!==s(t,f)){d=!1;break}if(d)return n}return-1}function u(e,t,a,o){a=Number(a)||0;var i=e.length-a;o?(o=Number(o))>i&&(o=i):o=i;var n=t.length;if(n%2!=0)throw new TypeError("Invalid hex string");o>n/2&&(o=n/2);for(var r=0;r<o;++r){var c=parseInt(t.substr(2*r,2),16);if(isNaN(c))return r;e[a+r]=c}return r}function O(e,t,a,o){return P(H(t,e.length-a),e,a,o)}function C(e,t,a,o){return P(function(e){for(var t=[],a=0;a<e.length;++a)t.push(255&e.charCodeAt(a));return t}(t),e,a,o)}function A(e,t,a,o){return C(e,t,a,o)}function E(e,t,a,o){return P(F(t),e,a,o)}function k(e,t,a,o){return P(function(e,t){for(var a,o,i,n=[],r=0;r<e.length&&!((t-=2)<0);++r)a=e.charCodeAt(r),o=a>>8,i=a%256,n.push(i),n.push(o);return n}(t,e.length-a),e,a,o)}function g(e,t,a){return 0===t&&a===e.length?o.fromByteArray(e):o.fromByteArray(e.slice(t,a))}function y(e,t,a){a=Math.min(e.length,a);for(var o=[],i=t;i<a;){var n,r,c,l,s=e[i],p=null,d=s>239?4:s>223?3:s>191?2:1;if(i+d<=a)switch(d){case 1:s<128&&(p=s);break;case 2:128==(192&(n=e[i+1]))&&(l=(31&s)<<6|63&n)>127&&(p=l);break;case 3:n=e[i+1],r=e[i+2],128==(192&n)&&128==(192&r)&&(l=(15&s)<<12|(63&n)<<6|63&r)>2047&&(l<55296||l>57343)&&(p=l);break;case 4:n=e[i+1],r=e[i+2],c=e[i+3],128==(192&n)&&128==(192&r)&&128==(192&c)&&(l=(15&s)<<18|(63&n)<<12|(63&r)<<6|63&c)>65535&&l<1114112&&(p=l)}null===p?(p=65533,d=1):p>65535&&(p-=65536,o.push(p>>>10&1023|55296),p=56320|1023&p),o.push(p),i+=d}return function(e){var t=e.length;if(t<=q)return String.fromCharCode.apply(String,e);var a="",o=0;for(;o<t;)a+=String.fromCharCode.apply(String,e.slice(o,o+=q));return a}(o)}t.Buffer=l,t.SlowBuffer=function(e){+e!=e&&(e=0);return l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=r(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,a){return s(null,e,t,a)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,a){return function(e,t,a,o){return p(t),t<=0?c(e,t):void 0!==a?"string"==typeof o?c(e,t).fill(a,o):c(e,t).fill(a):c(e,t)}(null,e,t,a)},l.allocUnsafe=function(e){return d(null,e)},l.allocUnsafeSlow=function(e){return d(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var a=e.length,o=t.length,i=0,n=Math.min(a,o);i<n;++i)if(e[i]!==t[i]){a=e[i],o=t[i];break}return a<o?-1:o<a?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!n(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var a;if(void 0===t)for(t=0,a=0;a<e.length;++a)t+=e[a].length;var o=l.allocUnsafe(t),i=0;for(a=0;a<e.length;++a){var r=e[a];if(!l.isBuffer(r))throw new TypeError('"list" argument must be an Array of Buffers');r.copy(o,i),i+=r.length}return o},l.byteLength=h,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)M(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)M(this,t,t+3),M(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)M(this,t,t+7),M(this,t+1,t+6),M(this,t+2,t+5),M(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?y(this,0,e):function(e,t,a){var o=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===a||a>this.length)&&(a=this.length),a<=0)return"";if((a>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return W(this,t,a);case"utf8":case"utf-8":return y(this,t,a);case"ascii":return v(this,t,a);case"latin1":case"binary":return w(this,t,a);case"base64":return g(this,t,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,t,a);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",a=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,a).match(/.{2}/g).join(" "),this.length>a&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,a,o,i){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===a&&(a=e?e.length:0),void 0===o&&(o=0),void 0===i&&(i=this.length),t<0||a>e.length||o<0||i>this.length)throw new RangeError("out of range index");if(o>=i&&t>=a)return 0;if(o>=i)return-1;if(t>=a)return 1;if(this===e)return 0;for(var n=(i>>>=0)-(o>>>=0),r=(a>>>=0)-(t>>>=0),c=Math.min(n,r),s=this.slice(o,i),p=e.slice(t,a),d=0;d<c;++d)if(s[d]!==p[d]){n=s[d],r=p[d];break}return n<r?-1:r<n?1:0},l.prototype.includes=function(e,t,a){return-1!==this.indexOf(e,t,a)},l.prototype.indexOf=function(e,t,a){return z(this,e,t,a,!0)},l.prototype.lastIndexOf=function(e,t,a){return z(this,e,t,a,!1)},l.prototype.write=function(e,t,a,o){if(void 0===t)o="utf8",a=this.length,t=0;else if(void 0===a&&"string"==typeof t)o=t,a=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(a)?(a|=0,void 0===o&&(o="utf8")):(o=a,a=void 0)}var i=this.length-t;if((void 0===a||a>i)&&(a=i),e.length>0&&(a<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");for(var n=!1;;)switch(o){case"hex":return u(this,e,t,a);case"utf8":case"utf-8":return O(this,e,t,a);case"ascii":return C(this,e,t,a);case"latin1":case"binary":return A(this,e,t,a);case"base64":return E(this,e,t,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,a);default:if(n)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),n=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var q=4096;function v(e,t,a){var o="";a=Math.min(e.length,a);for(var i=t;i<a;++i)o+=String.fromCharCode(127&e[i]);return o}function w(e,t,a){var o="";a=Math.min(e.length,a);for(var i=t;i<a;++i)o+=String.fromCharCode(e[i]);return o}function W(e,t,a){var o=e.length;(!t||t<0)&&(t=0),(!a||a<0||a>o)&&(a=o);for(var i="",n=t;n<a;++n)i+=D(e[n]);return i}function _(e,t,a){for(var o=e.slice(t,a),i="",n=0;n<o.length;n+=2)i+=String.fromCharCode(o[n]+256*o[n+1]);return i}function L(e,t,a){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>a)throw new RangeError("Trying to access beyond buffer length")}function R(e,t,a,o,i,n){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<n)throw new RangeError('"value" argument is out of bounds');if(a+o>e.length)throw new RangeError("Index out of range")}function B(e,t,a,o){t<0&&(t=65535+t+1);for(var i=0,n=Math.min(e.length-a,2);i<n;++i)e[a+i]=(t&255<<8*(o?i:1-i))>>>8*(o?i:1-i)}function x(e,t,a,o){t<0&&(t=4294967295+t+1);for(var i=0,n=Math.min(e.length-a,4);i<n;++i)e[a+i]=t>>>8*(o?i:3-i)&255}function S(e,t,a,o,i,n){if(a+o>e.length)throw new RangeError("Index out of range");if(a<0)throw new RangeError("Index out of range")}function N(e,t,a,o,n){return n||S(e,0,a,4),i.write(e,t,a,o,23,4),a+4}function T(e,t,a,o,n){return n||S(e,0,a,8),i.write(e,t,a,o,52,8),a+8}l.prototype.slice=function(e,t){var a,o=this.length;if((e=~~e)<0?(e+=o)<0&&(e=0):e>o&&(e=o),(t=void 0===t?o:~~t)<0?(t+=o)<0&&(t=0):t>o&&(t=o),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(a=this.subarray(e,t)).__proto__=l.prototype;else{var i=t-e;a=new l(i,void 0);for(var n=0;n<i;++n)a[n]=this[n+e]}return a},l.prototype.readUIntLE=function(e,t,a){e|=0,t|=0,a||L(e,t,this.length);for(var o=this[e],i=1,n=0;++n<t&&(i*=256);)o+=this[e+n]*i;return o},l.prototype.readUIntBE=function(e,t,a){e|=0,t|=0,a||L(e,t,this.length);for(var o=this[e+--t],i=1;t>0&&(i*=256);)o+=this[e+--t]*i;return o},l.prototype.readUInt8=function(e,t){return t||L(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||L(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||L(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||L(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||L(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,a){e|=0,t|=0,a||L(e,t,this.length);for(var o=this[e],i=1,n=0;++n<t&&(i*=256);)o+=this[e+n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},l.prototype.readIntBE=function(e,t,a){e|=0,t|=0,a||L(e,t,this.length);for(var o=t,i=1,n=this[e+--o];o>0&&(i*=256);)n+=this[e+--o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},l.prototype.readInt8=function(e,t){return t||L(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||L(e,2,this.length);var a=this[e]|this[e+1]<<8;return 32768&a?4294901760|a:a},l.prototype.readInt16BE=function(e,t){t||L(e,2,this.length);var a=this[e+1]|this[e]<<8;return 32768&a?4294901760|a:a},l.prototype.readInt32LE=function(e,t){return t||L(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||L(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||L(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||L(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||L(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||L(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,a,o){(e=+e,t|=0,a|=0,o)||R(this,e,t,a,Math.pow(2,8*a)-1,0);var i=1,n=0;for(this[t]=255&e;++n<a&&(i*=256);)this[t+n]=e/i&255;return t+a},l.prototype.writeUIntBE=function(e,t,a,o){(e=+e,t|=0,a|=0,o)||R(this,e,t,a,Math.pow(2,8*a)-1,0);var i=a-1,n=1;for(this[t+i]=255&e;--i>=0&&(n*=256);)this[t+i]=e/n&255;return t+a},l.prototype.writeUInt8=function(e,t,a){return e=+e,t|=0,a||R(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,a){return e=+e,t|=0,a||R(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):B(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,a){return e=+e,t|=0,a||R(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):B(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,a){return e=+e,t|=0,a||R(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):x(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,a){return e=+e,t|=0,a||R(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):x(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,a,o){if(e=+e,t|=0,!o){var i=Math.pow(2,8*a-1);R(this,e,t,a,i-1,-i)}var n=0,r=1,c=0;for(this[t]=255&e;++n<a&&(r*=256);)e<0&&0===c&&0!==this[t+n-1]&&(c=1),this[t+n]=(e/r>>0)-c&255;return t+a},l.prototype.writeIntBE=function(e,t,a,o){if(e=+e,t|=0,!o){var i=Math.pow(2,8*a-1);R(this,e,t,a,i-1,-i)}var n=a-1,r=1,c=0;for(this[t+n]=255&e;--n>=0&&(r*=256);)e<0&&0===c&&0!==this[t+n+1]&&(c=1),this[t+n]=(e/r>>0)-c&255;return t+a},l.prototype.writeInt8=function(e,t,a){return e=+e,t|=0,a||R(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,a){return e=+e,t|=0,a||R(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):B(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,a){return e=+e,t|=0,a||R(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):B(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,a){return e=+e,t|=0,a||R(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):x(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,a){return e=+e,t|=0,a||R(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):x(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,a){return N(this,e,t,!0,a)},l.prototype.writeFloatBE=function(e,t,a){return N(this,e,t,!1,a)},l.prototype.writeDoubleLE=function(e,t,a){return T(this,e,t,!0,a)},l.prototype.writeDoubleBE=function(e,t,a){return T(this,e,t,!1,a)},l.prototype.copy=function(e,t,a,o){if(a||(a=0),o||0===o||(o=this.length),t>=e.length&&(t=e.length),t||(t=0),o>0&&o<a&&(o=a),o===a)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(a<0||a>=this.length)throw new RangeError("sourceStart out of bounds");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-t<o-a&&(o=e.length-t+a);var i,n=o-a;if(this===e&&a<t&&t<o)for(i=n-1;i>=0;--i)e[i+t]=this[i+a];else if(n<1e3||!l.TYPED_ARRAY_SUPPORT)for(i=0;i<n;++i)e[i+t]=this[i+a];else Uint8Array.prototype.set.call(e,this.subarray(a,a+n),t);return n},l.prototype.fill=function(e,t,a,o){if("string"==typeof e){if("string"==typeof t?(o=t,t=0,a=this.length):"string"==typeof a&&(o=a,a=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==o&&"string"!=typeof o)throw new TypeError("encoding must be a string");if("string"==typeof o&&!l.isEncoding(o))throw new TypeError("Unknown encoding: "+o)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<a)throw new RangeError("Out of range index");if(a<=t)return this;var n;if(t>>>=0,a=void 0===a?this.length:a>>>0,e||(e=0),"number"==typeof e)for(n=t;n<a;++n)this[n]=e;else{var r=l.isBuffer(e)?e:H(new l(e,o).toString()),c=r.length;for(n=0;n<a-t;++n)this[n+t]=r[n%c]}return this};var X=/[^+\/0-9A-Za-z-_]/g;function D(e){return e<16?"0"+e.toString(16):e.toString(16)}function H(e,t){var a;t=t||1/0;for(var o=e.length,i=null,n=[],r=0;r<o;++r){if((a=e.charCodeAt(r))>55295&&a<57344){if(!i){if(a>56319){(t-=3)>-1&&n.push(239,191,189);continue}if(r+1===o){(t-=3)>-1&&n.push(239,191,189);continue}i=a;continue}if(a<56320){(t-=3)>-1&&n.push(239,191,189),i=a;continue}a=65536+(i-55296<<10|a-56320)}else i&&(t-=3)>-1&&n.push(239,191,189);if(i=null,a<128){if((t-=1)<0)break;n.push(a)}else if(a<2048){if((t-=2)<0)break;n.push(a>>6|192,63&a|128)}else if(a<65536){if((t-=3)<0)break;n.push(a>>12|224,a>>6&63|128,63&a|128)}else{if(!(a<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;n.push(a>>18|240,a>>12&63|128,a>>6&63|128,63&a|128)}}return n}function F(e){return o.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(X,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function P(e,t,a,o){for(var i=0;i<o&&!(i+a>=t.length||i>=e.length);++i)t[i+a]=e[i];return i}}).call(this,a(32))},function(e,t,a){"use strict";e.exports=function(){}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CalendarDayPhrases=t.DayPickerNavigationPhrases=t.DayPickerKeyboardShortcutsPhrases=t.DayPickerPhrases=t.SingleDatePickerInputPhrases=t.SingleDatePickerPhrases=t.DateRangePickerInputPhrases=t.DateRangePickerPhrases=t.default=void 0;var o="Interact with the calendar and add the check-in date for your trip.",i="Move backward to switch to the previous month.",n="Move forward to switch to the next month.",r="page up and page down keys",c="Home and end keys",l="Escape key",s="Select the date in focus.",p="Move backward (left) and forward (right) by one day.",d="Move backward (up) and forward (down) by one week.",f="Return to the date input field.",b="Press the down arrow key to interact with the calendar and\n select a date. Press the question mark key to get the keyboard shortcuts for changing dates.",h=function(e){var t=e.date;return"Choose ".concat(t," as your check-in date. It’s available.")},M=function(e){var t=e.date;return"Choose ".concat(t," as your check-out date. It’s available.")},z=function(e){return e.date},m=function(e){var t=e.date;return"Not available. ".concat(t)},u=function(e){var t=e.date;return"Selected. ".concat(t)},O={calendarLabel:"Calendar",closeDatePicker:"Close",focusStartDate:o,clearDate:"Clear Date",clearDates:"Clear Dates",jumpToPrevMonth:i,jumpToNextMonth:n,keyboardShortcuts:"Keyboard Shortcuts",showKeyboardShortcutsPanel:"Open the keyboard shortcuts panel.",hideKeyboardShortcutsPanel:"Close the shortcuts panel.",openThisPanel:"Open this panel.",enterKey:"Enter key",leftArrowRightArrow:"Right and left arrow keys",upArrowDownArrow:"up and down arrow keys",pageUpPageDown:r,homeEnd:c,escape:l,questionMark:"Question mark",selectFocusedDate:s,moveFocusByOneDay:p,moveFocusByOneWeek:d,moveFocusByOneMonth:"Switch months.",moveFocustoStartAndEndOfWeek:"Go to the first or last day of a week.",returnFocusToInput:f,keyboardNavigationInstructions:b,chooseAvailableStartDate:h,chooseAvailableEndDate:M,dateIsUnavailable:m,dateIsSelected:u};t.default=O;var C={calendarLabel:"Calendar",closeDatePicker:"Close",clearDates:"Clear Dates",focusStartDate:o,jumpToPrevMonth:i,jumpToNextMonth:n,keyboardShortcuts:"Keyboard Shortcuts",showKeyboardShortcutsPanel:"Open the keyboard shortcuts panel.",hideKeyboardShortcutsPanel:"Close the shortcuts panel.",openThisPanel:"Open this panel.",enterKey:"Enter key",leftArrowRightArrow:"Right and left arrow keys",upArrowDownArrow:"up and down arrow keys",pageUpPageDown:r,homeEnd:c,escape:l,questionMark:"Question mark",selectFocusedDate:s,moveFocusByOneDay:p,moveFocusByOneWeek:d,moveFocusByOneMonth:"Switch months.",moveFocustoStartAndEndOfWeek:"Go to the first or last day of a week.",returnFocusToInput:f,keyboardNavigationInstructions:b,chooseAvailableStartDate:h,chooseAvailableEndDate:M,dateIsUnavailable:m,dateIsSelected:u};t.DateRangePickerPhrases=C;var A={focusStartDate:o,clearDates:"Clear Dates",keyboardNavigationInstructions:b};t.DateRangePickerInputPhrases=A;var E={calendarLabel:"Calendar",closeDatePicker:"Close",clearDate:"Clear Date",jumpToPrevMonth:i,jumpToNextMonth:n,keyboardShortcuts:"Keyboard Shortcuts",showKeyboardShortcutsPanel:"Open the keyboard shortcuts panel.",hideKeyboardShortcutsPanel:"Close the shortcuts panel.",openThisPanel:"Open this panel.",enterKey:"Enter key",leftArrowRightArrow:"Right and left arrow keys",upArrowDownArrow:"up and down arrow keys",pageUpPageDown:r,homeEnd:c,escape:l,questionMark:"Question mark",selectFocusedDate:s,moveFocusByOneDay:p,moveFocusByOneWeek:d,moveFocusByOneMonth:"Switch months.",moveFocustoStartAndEndOfWeek:"Go to the first or last day of a week.",returnFocusToInput:f,keyboardNavigationInstructions:b,chooseAvailableDate:z,dateIsUnavailable:m,dateIsSelected:u};t.SingleDatePickerPhrases=E;var k={clearDate:"Clear Date",keyboardNavigationInstructions:b};t.SingleDatePickerInputPhrases=k;var g={calendarLabel:"Calendar",jumpToPrevMonth:i,jumpToNextMonth:n,keyboardShortcuts:"Keyboard Shortcuts",showKeyboardShortcutsPanel:"Open the keyboard shortcuts panel.",hideKeyboardShortcutsPanel:"Close the shortcuts panel.",openThisPanel:"Open this panel.",enterKey:"Enter key",leftArrowRightArrow:"Right and left arrow keys",upArrowDownArrow:"up and down arrow keys",pageUpPageDown:r,homeEnd:c,escape:l,questionMark:"Question mark",selectFocusedDate:s,moveFocusByOneDay:p,moveFocusByOneWeek:d,moveFocusByOneMonth:"Switch months.",moveFocustoStartAndEndOfWeek:"Go to the first or last day of a week.",returnFocusToInput:f,chooseAvailableStartDate:h,chooseAvailableEndDate:M,chooseAvailableDate:z,dateIsUnavailable:m,dateIsSelected:u};t.DayPickerPhrases=g;var y={keyboardShortcuts:"Keyboard Shortcuts",showKeyboardShortcutsPanel:"Open the keyboard shortcuts panel.",hideKeyboardShortcutsPanel:"Close the shortcuts panel.",openThisPanel:"Open this panel.",enterKey:"Enter key",leftArrowRightArrow:"Right and left arrow keys",upArrowDownArrow:"up and down arrow keys",pageUpPageDown:r,homeEnd:c,escape:l,questionMark:"Question mark",selectFocusedDate:s,moveFocusByOneDay:p,moveFocusByOneWeek:d,moveFocusByOneMonth:"Switch months.",moveFocustoStartAndEndOfWeek:"Go to the first or last day of a week.",returnFocusToInput:f};t.DayPickerKeyboardShortcutsPhrases=y;var q={jumpToPrevMonth:i,jumpToNextMonth:n};t.DayPickerNavigationPhrases=q;var v={chooseAvailableDate:z,dateIsUnavailable:m,dateIsSelected:u};t.CalendarDayPhrases=v},function(e,t){var a=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=a)},function(e,t,a){var o=a(231)("wks"),i=a(162),n=a(39).Symbol,r="function"==typeof n;(e.exports=function(e){return o[e]||(o[e]=r&&n[e]||(r?n:i)("Symbol."+e))}).store=o},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return Object.keys(e).reduce(function(e,t){return function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{},o=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(a).filter(function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),o.forEach(function(t){n(e,t,a[t])})}return e}({},e,n({},t,i.default.oneOfType([i.default.string,i.default.func,i.default.node])))},{})};var o,i=(o=a(1))&&o.__esModule?o:{default:o};function n(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t,a=1;a<arguments.length;a++)for(var o in t=arguments[a])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i=function(){function e(e,t){for(var a,o=0;o<t.length;o++)(a=t[o]).enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}return function(t,a,o){return a&&e(t.prototype,a),o&&e(t,o),t}}(),n=a(8),r=l(n),c=l(a(1));function l(e){return e&&e.__esModule?e:{default:e}}var s=function(e,t){return 0<=t.indexOf(e)},p=function(e){return 0==e%18},d=["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"],f=["gridicons-arrow-down","gridicons-arrow-up","gridicons-comment","gridicons-clear-formatting","gridicons-flag","gridicons-menu","gridicons-reader","gridicons-strikethrough"],b=["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"],h=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,n.PureComponent),i(t,[{key:"render",value:function(){var e=this.props,t=e.size,a=e.onClick,i=e.icon,n=e.className,c=function(e,t){var a={};for(var o in e)0<=t.indexOf(o)||Object.prototype.hasOwnProperty.call(e,o)&&(a[o]=e[o]);return a}(e,["size","onClick","icon","className"]),l="gridicons-"+i,h=void 0,M=["gridicon",l,n,!!(s(l,d)&&p(t))&&"needs-offset",!!(s(l,f)&&p(t))&&"needs-offset-x",!!(s(l,b)&&p(t))&&"needs-offset-y"].filter(Boolean).join(" ");switch(l){default:h=r.default.createElement("svg",o({height:t,width:t},c));break;case"gridicons-add-image":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M4 19h16v-2H4v2zm13-6H7v2h10v-2zM4 9v2h16V9H4zm13-4H7v2h10V5z"})));break;case"gridicons-align-image-center":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M3 5h18v2H3V5zm0 14h18v-2H3v2zm5-4h8V9H8v6z"})));break;case"gridicons-align-image-left":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M3 5h18v2H3V5zm0 14h18v-2H3v2zm0-4h8V9H3v6zm10 0h8v-2h-8v2zm0-4h8V9h-8v2z"})));break;case"gridicons-align-image-none":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M21 7H3V5h18v2zm0 10H3v2h18v-2zM11 9H3v6h8V9z"})));break;case"gridicons-align-image-right":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M21 7H3V5h18v2zm0 10H3v2h18v-2zm0-8h-8v6h8V9zm-10 4H3v2h8v-2zm0-4H3v2h8V9z"})));break;case"gridicons-align-justify":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M4 19h16v-2H4v2zm16-6H4v2h16v-2zM4 9v2h16V9H4zm16-4H4v2h16V5z"})));break;case"gridicons-align-left":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M4 19h16v-2H4v2zm10-6H4v2h10v-2zM4 9v2h16V9H4zm10-4H4v2h10V5z"})));break;case"gridicons-align-right":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M20 17H4v2h16v-2zm-10-2h10v-2H10v2zM4 9v2h16V9H4zm6-2h10V5H10v2z"})));break;case"gridicons-arrow-down":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M20 9l-8 8-8-8 1.414-1.414L12 14.172l6.586-6.586"})));break;case"gridicons-chevron-left":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M14 20l-8-8 8-8 1.414 1.414L8.828 12l6.586 6.586"})));break;case"gridicons-chevron-right":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M10 20l8-8-8-8-1.414 1.414L15.172 12l-6.586 6.586"})));break;case"gridicons-chevron-up":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M4 15l8-8 8 8-1.414 1.414L12 9.828l-6.586 6.586"})));break;case"gridicons-clear-formatting":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}),r.default.createElement("g",null,r.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"}),r.default.createElement("path",{d:"M21 7h-4V3h-2v4h-4v2h4v4h2V9h4"})));break;case"gridicons-credit-card":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M7 10l5 5 5-5"})));break;case"gridicons-ellipsis-circle":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M10 19h4v-2h-4v2zm-4-6h12v-2H6v2zM3 5v2h18V5H3z"})));break;case"gridicons-flag":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M18 20h-3v-6H9v6H6V5.01h3V11h6V5.01h3V20z"})));break;case"gridicons-heart-outline":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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"}),r.default.createElement("path",{d:"M11.002 7v5.3l3.2 4.298 1.6-1.197-2.8-3.7V7"})));break;case"gridicons-house":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M2 19h20v3H2zM12 2L2 6v2h20V6M17 10h3v7h-3zM10.5 10h3v7h-3zM4 10h3v7H4z"})));break;case"gridicons-italic":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M21 6v2H3V6h18zM3 18h18v-2H3v2zm0-5h18v-2H3v2z"})));break;case"gridicons-menus":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M6 11h12v2H6z"})));break;case"gridicons-minus":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M3 11h18v2H3z"})));break;case"gridicons-money":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M10 3h8l-4 6h4L6 21l4-9H6l4-9"})));break;case"gridicons-pages":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M18 11h-5V6h-2v5H6v2h5v5h2v-5h5"})));break;case"gridicons-plus":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M21 13h-8v8h-2v-8H3v-2h8V3h2v8h8v2z"})));break;case"gridicons-popout":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M16 19H3v-2h13v2zm5-10H3v2h18V9zM3 5v2h11V5H3zm14 0v2h4V5h-4zm-6 8v2h10v-2H11zm-8 0v2h5v-2H3z"})));break;case"gridicons-print":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M20 14v-3h-2v3h-3v2h3v3h2v-3h3v-2"}),r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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"}),r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M13 4v2h3.59L6 16.59V13H4v7h7v-2H7.41L18 7.41V11h2V4h-7"})));break;case"gridicons-rotate":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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-spam":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M21 21H3v-2h18v2zM8 10H4v7h4v-7zm6-7h-4v14h4V3zm6 3h-4v11h4V6z"})));break;case"gridicons-stats-down-alt":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M21 21H3v-2h18v2zM8 3H4v14h4V3zm6 3h-4v11h4V6zm6 4h-4v7h4v-7z"})));break;case"gridicons-stats-down":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M21 21H3v-2h18v2zM8 10H4v7h4v-7zm6-4h-4v11h4V6zm6-3h-4v14h4V3z"})));break;case"gridicons-stats-up":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[0],[,function(e,t,a){e.exports=a(548)()},,,,function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t,a){(function(e){e.exports=function(){"use strict";var t,o;function i(){return t.apply(null,arguments)}function n(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function r(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function c(e){return void 0===e}function l(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function s(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function p(e,t){var a,o=[];for(a=0;a<e.length;++a)o.push(t(e[a],a));return o}function d(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function f(e,t){for(var a in t)d(t,a)&&(e[a]=t[a]);return d(t,"toString")&&(e.toString=t.toString),d(t,"valueOf")&&(e.valueOf=t.valueOf),e}function b(e,t,a,o){return Wt(e,t,a,o,!0).utc()}function h(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function M(e){if(null==e._isValid){var t=h(e),a=o.call(t.parsedDateParts,function(e){return null!=e}),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&a);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function m(e){var t=b(NaN);return null!=e?f(h(t),e):h(t).userInvalidated=!0,t}o=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),a=t.length>>>0,o=0;o<a;o++)if(o in t&&e.call(this,t[o],o,t))return!0;return!1};var z=i.momentProperties=[];function u(e,t){var a,o,i;if(c(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),c(t._i)||(e._i=t._i),c(t._f)||(e._f=t._f),c(t._l)||(e._l=t._l),c(t._strict)||(e._strict=t._strict),c(t._tzm)||(e._tzm=t._tzm),c(t._isUTC)||(e._isUTC=t._isUTC),c(t._offset)||(e._offset=t._offset),c(t._pf)||(e._pf=h(t)),c(t._locale)||(e._locale=t._locale),z.length>0)for(a=0;a<z.length;a++)o=z[a],c(i=t[o])||(e[o]=i);return e}var O=!1;function C(e){u(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===O&&(O=!0,i.updateOffset(this),O=!1)}function A(e){return e instanceof C||null!=e&&null!=e._isAMomentObject}function E(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function k(e){var t=+e,a=0;return 0!==t&&isFinite(t)&&(a=E(t)),a}function g(e,t,a){var o,i=Math.min(e.length,t.length),n=Math.abs(e.length-t.length),r=0;for(o=0;o<i;o++)(a&&e[o]!==t[o]||!a&&k(e[o])!==k(t[o]))&&r++;return r+n}function y(e){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function q(e,t){var a=!0;return f(function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,e),a){for(var o,n=[],r=0;r<arguments.length;r++){if(o="","object"==typeof arguments[r]){for(var c in o+="\n["+r+"] ",arguments[0])o+=c+": "+arguments[0][c]+", ";o=o.slice(0,-2)}else o=arguments[r];n.push(o)}y(e+"\nArguments: "+Array.prototype.slice.call(n).join("")+"\n"+(new Error).stack),a=!1}return t.apply(this,arguments)},t)}var v,w={};function W(e,t){null!=i.deprecationHandler&&i.deprecationHandler(e,t),w[e]||(y(t),w[e]=!0)}function _(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function L(e,t){var a,o=f({},e);for(a in t)d(t,a)&&(r(e[a])&&r(t[a])?(o[a]={},f(o[a],e[a]),f(o[a],t[a])):null!=t[a]?o[a]=t[a]:delete o[a]);for(a in e)d(e,a)&&!d(t,a)&&r(e[a])&&(o[a]=f({},o[a]));return o}function R(e){null!=e&&this.set(e)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,v=Object.keys?Object.keys:function(e){var t,a=[];for(t in e)d(e,t)&&a.push(t);return a};var x={};function B(e,t){var a=e.toLowerCase();x[a]=x[a+"s"]=x[t]=e}function S(e){return"string"==typeof e?x[e]||x[e.toLowerCase()]:void 0}function N(e){var t,a,o={};for(a in e)d(e,a)&&(t=S(a))&&(o[t]=e[a]);return o}var T={};function X(e,t){T[e]=t}function D(e,t,a){var o=""+Math.abs(e),i=t-o.length,n=e>=0;return(n?a?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+o}var F=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,H=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,P={},j={};function I(e,t,a,o){var i=o;"string"==typeof o&&(i=function(){return this[o]()}),e&&(j[e]=i),t&&(j[t[0]]=function(){return D(i.apply(this,arguments),t[1],t[2])}),a&&(j[a]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function Y(e,t){return e.isValid()?(t=V(t,e.localeData()),P[t]=P[t]||function(e){var t,a,o,i=e.match(F);for(t=0,a=i.length;t<a;t++)j[i[t]]?i[t]=j[i[t]]:i[t]=(o=i[t]).match(/\[[\s\S]/)?o.replace(/^\[|\]$/g,""):o.replace(/\\/g,"");return function(t){var o,n="";for(o=0;o<a;o++)n+=_(i[o])?i[o].call(t,e):i[o];return n}}(t),P[t](e)):e.localeData().invalidDate()}function V(e,t){var a=5;function o(e){return t.longDateFormat(e)||e}for(H.lastIndex=0;a>=0&&H.test(e);)e=e.replace(H,o),H.lastIndex=0,a-=1;return e}var U=/\d/,G=/\d\d/,K=/\d{3}/,J=/\d{4}/,Z=/[+-]?\d{6}/,Q=/\d\d?/,$=/\d\d\d\d?/,ee=/\d\d\d\d\d\d?/,te=/\d{1,3}/,ae=/\d{1,4}/,oe=/[+-]?\d{1,6}/,ie=/\d+/,ne=/[+-]?\d+/,re=/Z|[+-]\d\d:?\d\d/gi,ce=/Z|[+-]\d\d(?::?\d\d)?/gi,le=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,se={};function pe(e,t,a){se[e]=_(t)?t:function(e,o){return e&&a?a:t}}function de(e,t){return d(se,e)?se[e](t._strict,t._locale):new RegExp(fe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,a,o,i){return t||a||o||i})))}function fe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var be={};function he(e,t){var a,o=t;for("string"==typeof e&&(e=[e]),l(t)&&(o=function(e,a){a[t]=k(e)}),a=0;a<e.length;a++)be[e[a]]=o}function Me(e,t){he(e,function(e,a,o,i){o._w=o._w||{},t(e,o._w,o,i)})}function me(e,t,a){null!=t&&d(be,e)&&be[e](t,a._a,a,e)}var ze=0,ue=1,Oe=2,Ce=3,Ae=4,Ee=5,ke=6,ge=7,ye=8;function qe(e){return ve(e)?366:365}function ve(e){return e%4==0&&e%100!=0||e%400==0}I("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),I(0,["YY",2],0,function(){return this.year()%100}),I(0,["YYYY",4],0,"year"),I(0,["YYYYY",5],0,"year"),I(0,["YYYYYY",6,!0],0,"year"),B("year","y"),X("year",1),pe("Y",ne),pe("YY",Q,G),pe("YYYY",ae,J),pe("YYYYY",oe,Z),pe("YYYYYY",oe,Z),he(["YYYYY","YYYYYY"],ze),he("YYYY",function(e,t){t[ze]=2===e.length?i.parseTwoDigitYear(e):k(e)}),he("YY",function(e,t){t[ze]=i.parseTwoDigitYear(e)}),he("Y",function(e,t){t[ze]=parseInt(e,10)}),i.parseTwoDigitYear=function(e){return k(e)+(k(e)>68?1900:2e3)};var we,We=_e("FullYear",!0);function _e(e,t){return function(a){return null!=a?(Re(this,e,a),i.updateOffset(this,t),this):Le(this,e)}}function Le(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Re(e,t,a){e.isValid()&&!isNaN(a)&&("FullYear"===t&&ve(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](a,e.month(),xe(a,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](a))}function xe(e,t){if(isNaN(e)||isNaN(t))return NaN;var a,o=(t%(a=12)+a)%a;return e+=(t-o)/12,1===o?ve(e)?29:28:31-o%7%2}we=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},I("M",["MM",2],"Mo",function(){return this.month()+1}),I("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),I("MMMM",0,0,function(e){return this.localeData().months(this,e)}),B("month","M"),X("month",8),pe("M",Q),pe("MM",Q,G),pe("MMM",function(e,t){return t.monthsShortRegex(e)}),pe("MMMM",function(e,t){return t.monthsRegex(e)}),he(["M","MM"],function(e,t){t[ue]=k(e)-1}),he(["MMM","MMMM"],function(e,t,a,o){var i=a._locale.monthsParse(e,o,a._strict);null!=i?t[ue]=i:h(a).invalidMonth=e});var Be=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Se="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ne="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Te(e,t){var a;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=k(t);else if(!l(t=e.localeData().monthsParse(t)))return e;return a=Math.min(e.date(),xe(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,a),e}function Xe(e){return null!=e?(Te(this,e),i.updateOffset(this,!0),this):Le(this,"Month")}var De=le,Fe=le;function He(){function e(e,t){return t.length-e.length}var t,a,o=[],i=[],n=[];for(t=0;t<12;t++)a=b([2e3,t]),o.push(this.monthsShort(a,"")),i.push(this.months(a,"")),n.push(this.months(a,"")),n.push(this.monthsShort(a,""));for(o.sort(e),i.sort(e),n.sort(e),t=0;t<12;t++)o[t]=fe(o[t]),i[t]=fe(i[t]);for(t=0;t<24;t++)n[t]=fe(n[t]);this._monthsRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Pe(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function je(e,t,a){var o=7+t-a,i=(7+Pe(e,0,o).getUTCDay()-t)%7;return-i+o-1}function Ie(e,t,a,o,i){var n,r,c=(7+a-o)%7,l=je(e,o,i),s=1+7*(t-1)+c+l;return s<=0?r=qe(n=e-1)+s:s>qe(e)?(n=e+1,r=s-qe(e)):(n=e,r=s),{year:n,dayOfYear:r}}function Ye(e,t,a){var o,i,n=je(e.year(),t,a),r=Math.floor((e.dayOfYear()-n-1)/7)+1;return r<1?(i=e.year()-1,o=r+Ve(i,t,a)):r>Ve(e.year(),t,a)?(o=r-Ve(e.year(),t,a),i=e.year()+1):(i=e.year(),o=r),{week:o,year:i}}function Ve(e,t,a){var o=je(e,t,a),i=je(e+1,t,a);return(qe(e)-o+i)/7}I("w",["ww",2],"wo","week"),I("W",["WW",2],"Wo","isoWeek"),B("week","w"),B("isoWeek","W"),X("week",5),X("isoWeek",5),pe("w",Q),pe("ww",Q,G),pe("W",Q),pe("WW",Q,G),Me(["w","ww","W","WW"],function(e,t,a,o){t[o.substr(0,1)]=k(e)}),I("d",0,"do","day"),I("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),I("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),I("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),I("e",0,0,"weekday"),I("E",0,0,"isoWeekday"),B("day","d"),B("weekday","e"),B("isoWeekday","E"),X("day",11),X("weekday",11),X("isoWeekday",11),pe("d",Q),pe("e",Q),pe("E",Q),pe("dd",function(e,t){return t.weekdaysMinRegex(e)}),pe("ddd",function(e,t){return t.weekdaysShortRegex(e)}),pe("dddd",function(e,t){return t.weekdaysRegex(e)}),Me(["dd","ddd","dddd"],function(e,t,a,o){var i=a._locale.weekdaysParse(e,o,a._strict);null!=i?t.d=i:h(a).invalidWeekday=e}),Me(["d","e","E"],function(e,t,a,o){t[o]=k(e)});var Ue="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ge="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ke="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Je=le,Ze=le,Qe=le;function $e(){function e(e,t){return t.length-e.length}var t,a,o,i,n,r=[],c=[],l=[],s=[];for(t=0;t<7;t++)a=b([2e3,1]).day(t),o=this.weekdaysMin(a,""),i=this.weekdaysShort(a,""),n=this.weekdays(a,""),r.push(o),c.push(i),l.push(n),s.push(o),s.push(i),s.push(n);for(r.sort(e),c.sort(e),l.sort(e),s.sort(e),t=0;t<7;t++)c[t]=fe(c[t]),l[t]=fe(l[t]),s[t]=fe(s[t]);this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+r.join("|")+")","i")}function et(){return this.hours()%12||12}function tt(e,t){I(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function at(e,t){return t._meridiemParse}I("H",["HH",2],0,"hour"),I("h",["hh",2],0,et),I("k",["kk",2],0,function(){return this.hours()||24}),I("hmm",0,0,function(){return""+et.apply(this)+D(this.minutes(),2)}),I("hmmss",0,0,function(){return""+et.apply(this)+D(this.minutes(),2)+D(this.seconds(),2)}),I("Hmm",0,0,function(){return""+this.hours()+D(this.minutes(),2)}),I("Hmmss",0,0,function(){return""+this.hours()+D(this.minutes(),2)+D(this.seconds(),2)}),tt("a",!0),tt("A",!1),B("hour","h"),X("hour",13),pe("a",at),pe("A",at),pe("H",Q),pe("h",Q),pe("k",Q),pe("HH",Q,G),pe("hh",Q,G),pe("kk",Q,G),pe("hmm",$),pe("hmmss",ee),pe("Hmm",$),pe("Hmmss",ee),he(["H","HH"],Ce),he(["k","kk"],function(e,t,a){var o=k(e);t[Ce]=24===o?0:o}),he(["a","A"],function(e,t,a){a._isPm=a._locale.isPM(e),a._meridiem=e}),he(["h","hh"],function(e,t,a){t[Ce]=k(e),h(a).bigHour=!0}),he("hmm",function(e,t,a){var o=e.length-2;t[Ce]=k(e.substr(0,o)),t[Ae]=k(e.substr(o)),h(a).bigHour=!0}),he("hmmss",function(e,t,a){var o=e.length-4,i=e.length-2;t[Ce]=k(e.substr(0,o)),t[Ae]=k(e.substr(o,2)),t[Ee]=k(e.substr(i)),h(a).bigHour=!0}),he("Hmm",function(e,t,a){var o=e.length-2;t[Ce]=k(e.substr(0,o)),t[Ae]=k(e.substr(o))}),he("Hmmss",function(e,t,a){var o=e.length-4,i=e.length-2;t[Ce]=k(e.substr(0,o)),t[Ae]=k(e.substr(o,2)),t[Ee]=k(e.substr(i))});var ot,it=_e("Hours",!0),nt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Se,monthsShort:Ne,week:{dow:0,doy:6},weekdays:Ue,weekdaysMin:Ke,weekdaysShort:Ge,meridiemParse:/[ap]\.?m?\.?/i},rt={},ct={};function lt(e){return e?e.toLowerCase().replace("_","-"):e}function st(t){var o=null;if(!rt[t]&&void 0!==e&&e&&e.exports)try{o=ot._abbr,a(220)("./"+t),pt(o)}catch(e){}return rt[t]}function pt(e,t){var a;return e&&((a=c(t)?ft(e):dt(e,t))?ot=a:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),ot._abbr}function dt(e,t){if(null!==t){var a,o=nt;if(t.abbr=e,null!=rt[e])W("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),o=rt[e]._config;else if(null!=t.parentLocale)if(null!=rt[t.parentLocale])o=rt[t.parentLocale]._config;else{if(null==(a=st(t.parentLocale)))return ct[t.parentLocale]||(ct[t.parentLocale]=[]),ct[t.parentLocale].push({name:e,config:t}),null;o=a._config}return rt[e]=new R(L(o,t)),ct[e]&&ct[e].forEach(function(e){dt(e.name,e.config)}),pt(e),rt[e]}return delete rt[e],null}function ft(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return ot;if(!n(e)){if(t=st(e))return t;e=[e]}return function(e){for(var t,a,o,i,n=0;n<e.length;){for(i=lt(e[n]).split("-"),t=i.length,a=(a=lt(e[n+1]))?a.split("-"):null;t>0;){if(o=st(i.slice(0,t).join("-")))return o;if(a&&a.length>=t&&g(i,a,!0)>=t-1)break;t--}n++}return ot}(e)}function bt(e){var t,a=e._a;return a&&-2===h(e).overflow&&(t=a[ue]<0||a[ue]>11?ue:a[Oe]<1||a[Oe]>xe(a[ze],a[ue])?Oe:a[Ce]<0||a[Ce]>24||24===a[Ce]&&(0!==a[Ae]||0!==a[Ee]||0!==a[ke])?Ce:a[Ae]<0||a[Ae]>59?Ae:a[Ee]<0||a[Ee]>59?Ee:a[ke]<0||a[ke]>999?ke:-1,h(e)._overflowDayOfYear&&(t<ze||t>Oe)&&(t=Oe),h(e)._overflowWeeks&&-1===t&&(t=ge),h(e)._overflowWeekday&&-1===t&&(t=ye),h(e).overflow=t),e}function ht(e,t,a){return null!=e?e:null!=t?t:a}function Mt(e){var t,a,o,n,r,c=[];if(!e._d){for(o=function(e){var t=new Date(i.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[Oe]&&null==e._a[ue]&&function(e){var t,a,o,i,n,r,c,l;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)n=1,r=4,a=ht(t.GG,e._a[ze],Ye(_t(),1,4).year),o=ht(t.W,1),((i=ht(t.E,1))<1||i>7)&&(l=!0);else{n=e._locale._week.dow,r=e._locale._week.doy;var s=Ye(_t(),n,r);a=ht(t.gg,e._a[ze],s.year),o=ht(t.w,s.week),null!=t.d?((i=t.d)<0||i>6)&&(l=!0):null!=t.e?(i=t.e+n,(t.e<0||t.e>6)&&(l=!0)):i=n}o<1||o>Ve(a,n,r)?h(e)._overflowWeeks=!0:null!=l?h(e)._overflowWeekday=!0:(c=Ie(a,o,i,n,r),e._a[ze]=c.year,e._dayOfYear=c.dayOfYear)}(e),null!=e._dayOfYear&&(r=ht(e._a[ze],o[ze]),(e._dayOfYear>qe(r)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),a=Pe(r,0,e._dayOfYear),e._a[ue]=a.getUTCMonth(),e._a[Oe]=a.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=c[t]=o[t];for(;t<7;t++)e._a[t]=c[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Ce]&&0===e._a[Ae]&&0===e._a[Ee]&&0===e._a[ke]&&(e._nextDay=!0,e._a[Ce]=0),e._d=(e._useUTC?Pe:function(e,t,a,o,i,n,r){var c=new Date(e,t,a,o,i,n,r);return e<100&&e>=0&&isFinite(c.getFullYear())&&c.setFullYear(e),c}).apply(null,c),n=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ce]=24),e._w&&void 0!==e._w.d&&e._w.d!==n&&(h(e).weekdayMismatch=!0)}}var mt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,zt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ut=/Z|[+-]\d\d(?::?\d\d)?/,Ot=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Ct=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],At=/^\/?Date\((\-?\d+)/i;function Et(e){var t,a,o,i,n,r,c=e._i,l=mt.exec(c)||zt.exec(c);if(l){for(h(e).iso=!0,t=0,a=Ot.length;t<a;t++)if(Ot[t][1].exec(l[1])){i=Ot[t][0],o=!1!==Ot[t][2];break}if(null==i)return void(e._isValid=!1);if(l[3]){for(t=0,a=Ct.length;t<a;t++)if(Ct[t][1].exec(l[3])){n=(l[2]||" ")+Ct[t][0];break}if(null==n)return void(e._isValid=!1)}if(!o&&null!=n)return void(e._isValid=!1);if(l[4]){if(!ut.exec(l[4]))return void(e._isValid=!1);r="Z"}e._f=i+(n||"")+(r||""),vt(e)}else e._isValid=!1}var kt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function gt(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}var yt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function qt(e){var t,a,o,i,n,r,c,l=kt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(l){var s=(t=l[4],a=l[3],o=l[2],i=l[5],n=l[6],r=l[7],c=[gt(t),Ne.indexOf(a),parseInt(o,10),parseInt(i,10),parseInt(n,10)],r&&c.push(parseInt(r,10)),c);if(!function(e,t,a){if(e){var o=Ge.indexOf(e),i=new Date(t[0],t[1],t[2]).getDay();if(o!==i)return h(a).weekdayMismatch=!0,a._isValid=!1,!1}return!0}(l[1],s,e))return;e._a=s,e._tzm=function(e,t,a){if(e)return yt[e];if(t)return 0;var o=parseInt(a,10),i=o%100,n=(o-i)/100;return 60*n+i}(l[8],l[9],l[10]),e._d=Pe.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),h(e).rfc2822=!0}else e._isValid=!1}function vt(e){if(e._f!==i.ISO_8601)if(e._f!==i.RFC_2822){e._a=[],h(e).empty=!0;var t,a,o,n,r,c=""+e._i,l=c.length,s=0;for(o=V(e._f,e._locale).match(F)||[],t=0;t<o.length;t++)n=o[t],(a=(c.match(de(n,e))||[])[0])&&((r=c.substr(0,c.indexOf(a))).length>0&&h(e).unusedInput.push(r),c=c.slice(c.indexOf(a)+a.length),s+=a.length),j[n]?(a?h(e).empty=!1:h(e).unusedTokens.push(n),me(n,a,e)):e._strict&&!a&&h(e).unusedTokens.push(n);h(e).charsLeftOver=l-s,c.length>0&&h(e).unusedInput.push(c),e._a[Ce]<=12&&!0===h(e).bigHour&&e._a[Ce]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[Ce]=(p=e._locale,d=e._a[Ce],null==(f=e._meridiem)?d:null!=p.meridiemHour?p.meridiemHour(d,f):null!=p.isPM?((b=p.isPM(f))&&d<12&&(d+=12),b||12!==d||(d=0),d):d),Mt(e),bt(e)}else qt(e);else Et(e);var p,d,f,b}function wt(e){var t=e._i,a=e._f;return e._locale=e._locale||ft(e._l),null===t||void 0===a&&""===t?m({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),A(t)?new C(bt(t)):(s(t)?e._d=t:n(a)?function(e){var t,a,o,i,n;if(0===e._f.length)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<e._f.length;i++)n=0,t=u({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],vt(t),M(t)&&(n+=h(t).charsLeftOver,n+=10*h(t).unusedTokens.length,h(t).score=n,(null==o||n<o)&&(o=n,a=t));f(e,a||t)}(e):a?vt(e):function(e){var t=e._i;c(t)?e._d=new Date(i.now()):s(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=At.exec(e._i);null===t?(Et(e),!1===e._isValid&&(delete e._isValid,qt(e),!1===e._isValid&&(delete e._isValid,i.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):n(t)?(e._a=p(t.slice(0),function(e){return parseInt(e,10)}),Mt(e)):r(t)?function(e){if(!e._d){var t=N(e._i);e._a=p([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),Mt(e)}}(e):l(t)?e._d=new Date(t):i.createFromInputFallback(e)}(e),M(e)||(e._d=null),e))}function Wt(e,t,a,o,i){var c,l={};return!0!==a&&!1!==a||(o=a,a=void 0),(r(e)&&function(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}(e)||n(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=i,l._l=a,l._i=e,l._f=t,l._strict=o,(c=new C(bt(wt(l))))._nextDay&&(c.add(1,"d"),c._nextDay=void 0),c}function _t(e,t,a,o){return Wt(e,t,a,o,!1)}i.createFromInputFallback=q("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),i.ISO_8601=function(){},i.RFC_2822=function(){};var Lt=q("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=_t.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:m()}),Rt=q("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=_t.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:m()});function xt(e,t){var a,o;if(1===t.length&&n(t[0])&&(t=t[0]),!t.length)return _t();for(a=t[0],o=1;o<t.length;++o)t[o].isValid()&&!t[o][e](a)||(a=t[o]);return a}var Bt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function St(e){var t=N(e),a=t.year||0,o=t.quarter||0,i=t.month||0,n=t.week||0,r=t.day||0,c=t.hour||0,l=t.minute||0,s=t.second||0,p=t.millisecond||0;this._isValid=function(e){for(var t in e)if(-1===we.call(Bt,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var a=!1,o=0;o<Bt.length;++o)if(e[Bt[o]]){if(a)return!1;parseFloat(e[Bt[o]])!==k(e[Bt[o]])&&(a=!0)}return!0}(t),this._milliseconds=+p+1e3*s+6e4*l+1e3*c*60*60,this._days=+r+7*n,this._months=+i+3*o+12*a,this._data={},this._locale=ft(),this._bubble()}function Nt(e){return e instanceof St}function Tt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Xt(e,t){I(e,0,0,function(){var e=this.utcOffset(),a="+";return e<0&&(e=-e,a="-"),a+D(~~(e/60),2)+t+D(~~e%60,2)})}Xt("Z",":"),Xt("ZZ",""),pe("Z",ce),pe("ZZ",ce),he(["Z","ZZ"],function(e,t,a){a._useUTC=!0,a._tzm=Ft(ce,e)});var Dt=/([\+\-]|\d\d)/gi;function Ft(e,t){var a=(t||"").match(e);if(null===a)return null;var o=a[a.length-1]||[],i=(o+"").match(Dt)||["-",0,0],n=60*i[1]+k(i[2]);return 0===n?0:"+"===i[0]?n:-n}function Ht(e,t){var a,o;return t._isUTC?(a=t.clone(),o=(A(e)||s(e)?e.valueOf():_t(e).valueOf())-a.valueOf(),a._d.setTime(a._d.valueOf()+o),i.updateOffset(a,!1),a):_t(e).local()}function Pt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function jt(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var It=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Yt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Vt(e,t){var a,o,i,n,r,c,s=e,p=null;return Nt(e)?s={ms:e._milliseconds,d:e._days,M:e._months}:l(e)?(s={},t?s[t]=e:s.milliseconds=e):(p=It.exec(e))?(a="-"===p[1]?-1:1,s={y:0,d:k(p[Oe])*a,h:k(p[Ce])*a,m:k(p[Ae])*a,s:k(p[Ee])*a,ms:k(Tt(1e3*p[ke]))*a}):(p=Yt.exec(e))?(a="-"===p[1]?-1:(p[1],1),s={y:Ut(p[2],a),M:Ut(p[3],a),w:Ut(p[4],a),d:Ut(p[5],a),h:Ut(p[6],a),m:Ut(p[7],a),s:Ut(p[8],a)}):null==s?s={}:"object"==typeof s&&("from"in s||"to"in s)&&(n=_t(s.from),r=_t(s.to),i=n.isValid()&&r.isValid()?(r=Ht(r,n),n.isBefore(r)?c=Gt(n,r):((c=Gt(r,n)).milliseconds=-c.milliseconds,c.months=-c.months),c):{milliseconds:0,months:0},(s={}).ms=i.milliseconds,s.M=i.months),o=new St(s),Nt(e)&&d(e,"_locale")&&(o._locale=e._locale),o}function Ut(e,t){var a=e&&parseFloat(e.replace(",","."));return(isNaN(a)?0:a)*t}function Gt(e,t){var a={milliseconds:0,months:0};return a.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(a.months,"M").isAfter(t)&&--a.months,a.milliseconds=+t-+e.clone().add(a.months,"M"),a}function Kt(e,t){return function(a,o){var i;return null===o||isNaN(+o)||(W(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=a,a=o,o=i),Jt(this,Vt(a="string"==typeof a?+a:a,o),e),this}}function Jt(e,t,a,o){var n=t._milliseconds,r=Tt(t._days),c=Tt(t._months);e.isValid()&&(o=null==o||o,c&&Te(e,Le(e,"Month")+c*a),r&&Re(e,"Date",Le(e,"Date")+r*a),n&&e._d.setTime(e._d.valueOf()+n*a),o&&i.updateOffset(e,r||c))}Vt.fn=St.prototype,Vt.invalid=function(){return Vt(NaN)};var Zt=Kt(1,"add"),Qt=Kt(-1,"subtract");function $t(e,t){var a,o,i=12*(t.year()-e.year())+(t.month()-e.month()),n=e.clone().add(i,"months");return t-n<0?(a=e.clone().add(i-1,"months"),o=(t-n)/(n-a)):(a=e.clone().add(i+1,"months"),o=(t-n)/(a-n)),-(i+o)||0}function ea(e){var t;return void 0===e?this._locale._abbr:(null!=(t=ft(e))&&(this._locale=t),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ta=q("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function aa(){return this._locale}function oa(e,t){I(0,[e,e.length],0,t)}function ia(e,t,a,o,i){var n;return null==e?Ye(this,o,i).year:(n=Ve(e,o,i),t>n&&(t=n),function(e,t,a,o,i){var n=Ie(e,t,a,o,i),r=Pe(n.year,0,n.dayOfYear);return this.year(r.getUTCFullYear()),this.month(r.getUTCMonth()),this.date(r.getUTCDate()),this}.call(this,e,t,a,o,i))}I(0,["gg",2],0,function(){return this.weekYear()%100}),I(0,["GG",2],0,function(){return this.isoWeekYear()%100}),oa("gggg","weekYear"),oa("ggggg","weekYear"),oa("GGGG","isoWeekYear"),oa("GGGGG","isoWeekYear"),B("weekYear","gg"),B("isoWeekYear","GG"),X("weekYear",1),X("isoWeekYear",1),pe("G",ne),pe("g",ne),pe("GG",Q,G),pe("gg",Q,G),pe("GGGG",ae,J),pe("gggg",ae,J),pe("GGGGG",oe,Z),pe("ggggg",oe,Z),Me(["gggg","ggggg","GGGG","GGGGG"],function(e,t,a,o){t[o.substr(0,2)]=k(e)}),Me(["gg","GG"],function(e,t,a,o){t[o]=i.parseTwoDigitYear(e)}),I("Q",0,"Qo","quarter"),B("quarter","Q"),X("quarter",7),pe("Q",U),he("Q",function(e,t){t[ue]=3*(k(e)-1)}),I("D",["DD",2],"Do","date"),B("date","D"),X("date",9),pe("D",Q),pe("DD",Q,G),pe("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),he(["D","DD"],Oe),he("Do",function(e,t){t[Oe]=k(e.match(Q)[0])});var na=_e("Date",!0);I("DDD",["DDDD",3],"DDDo","dayOfYear"),B("dayOfYear","DDD"),X("dayOfYear",4),pe("DDD",te),pe("DDDD",K),he(["DDD","DDDD"],function(e,t,a){a._dayOfYear=k(e)}),I("m",["mm",2],0,"minute"),B("minute","m"),X("minute",14),pe("m",Q),pe("mm",Q,G),he(["m","mm"],Ae);var ra=_e("Minutes",!1);I("s",["ss",2],0,"second"),B("second","s"),X("second",15),pe("s",Q),pe("ss",Q,G),he(["s","ss"],Ee);var ca,la=_e("Seconds",!1);for(I("S",0,0,function(){return~~(this.millisecond()/100)}),I(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),I(0,["SSS",3],0,"millisecond"),I(0,["SSSS",4],0,function(){return 10*this.millisecond()}),I(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),I(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),I(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),I(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),I(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),B("millisecond","ms"),X("millisecond",16),pe("S",te,U),pe("SS",te,G),pe("SSS",te,K),ca="SSSS";ca.length<=9;ca+="S")pe(ca,ie);function sa(e,t){t[ke]=k(1e3*("0."+e))}for(ca="S";ca.length<=9;ca+="S")he(ca,sa);var pa=_e("Milliseconds",!1);I("z",0,0,"zoneAbbr"),I("zz",0,0,"zoneName");var da=C.prototype;function fa(e){return e}da.add=Zt,da.calendar=function(e,t){var a=e||_t(),o=Ht(a,this).startOf("day"),n=i.calendarFormat(this,o)||"sameElse",r=t&&(_(t[n])?t[n].call(this,a):t[n]);return this.format(r||this.localeData().calendar(n,this,_t(a)))},da.clone=function(){return new C(this)},da.diff=function(e,t,a){var o,i,n;if(!this.isValid())return NaN;if(!(o=Ht(e,this)).isValid())return NaN;switch(i=6e4*(o.utcOffset()-this.utcOffset()),t=S(t)){case"year":n=$t(this,o)/12;break;case"month":n=$t(this,o);break;case"quarter":n=$t(this,o)/3;break;case"second":n=(this-o)/1e3;break;case"minute":n=(this-o)/6e4;break;case"hour":n=(this-o)/36e5;break;case"day":n=(this-o-i)/864e5;break;case"week":n=(this-o-i)/6048e5;break;default:n=this-o}return a?n:E(n)},da.endOf=function(e){return void 0===(e=S(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))},da.format=function(e){e||(e=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var t=Y(this,e);return this.localeData().postformat(t)},da.from=function(e,t){return this.isValid()&&(A(e)&&e.isValid()||_t(e).isValid())?Vt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},da.fromNow=function(e){return this.from(_t(),e)},da.to=function(e,t){return this.isValid()&&(A(e)&&e.isValid()||_t(e).isValid())?Vt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},da.toNow=function(e){return this.to(_t(),e)},da.get=function(e){return _(this[e=S(e)])?this[e]():this},da.invalidAt=function(){return h(this).overflow},da.isAfter=function(e,t){var a=A(e)?e:_t(e);return!(!this.isValid()||!a.isValid())&&("millisecond"===(t=S(c(t)?"millisecond":t))?this.valueOf()>a.valueOf():a.valueOf()<this.clone().startOf(t).valueOf())},da.isBefore=function(e,t){var a=A(e)?e:_t(e);return!(!this.isValid()||!a.isValid())&&("millisecond"===(t=S(c(t)?"millisecond":t))?this.valueOf()<a.valueOf():this.clone().endOf(t).valueOf()<a.valueOf())},da.isBetween=function(e,t,a,o){return("("===(o=o||"()")[0]?this.isAfter(e,a):!this.isBefore(e,a))&&(")"===o[1]?this.isBefore(t,a):!this.isAfter(t,a))},da.isSame=function(e,t){var a,o=A(e)?e:_t(e);return!(!this.isValid()||!o.isValid())&&("millisecond"===(t=S(t||"millisecond"))?this.valueOf()===o.valueOf():(a=o.valueOf(),this.clone().startOf(t).valueOf()<=a&&a<=this.clone().endOf(t).valueOf()))},da.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},da.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},da.isValid=function(){return M(this)},da.lang=ta,da.locale=ea,da.localeData=aa,da.max=Rt,da.min=Lt,da.parsingFlags=function(){return f({},h(this))},da.set=function(e,t){if("object"==typeof e)for(var a=function(e){var t=[];for(var a in e)t.push({unit:a,priority:T[a]});return t.sort(function(e,t){return e.priority-t.priority}),t}(e=N(e)),o=0;o<a.length;o++)this[a[o].unit](e[a[o].unit]);else if(_(this[e=S(e)]))return this[e](t);return this},da.startOf=function(e){switch(e=S(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this},da.subtract=Qt,da.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},da.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},da.toDate=function(){return new Date(this.valueOf())},da.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,a=t?this.clone().utc():this;return a.year()<0||a.year()>9999?Y(a,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):_(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Y(a,"Z")):Y(a,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},da.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var a="["+e+'("]',o=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=t+'[")]';return this.format(a+o+"-MM-DD[T]HH:mm:ss.SSS"+i)},da.toJSON=function(){return this.isValid()?this.toISOString():null},da.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},da.unix=function(){return Math.floor(this.valueOf()/1e3)},da.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},da.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},da.year=We,da.isLeapYear=function(){return ve(this.year())},da.weekYear=function(e){return ia.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},da.isoWeekYear=function(e){return ia.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},da.quarter=da.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},da.month=Xe,da.daysInMonth=function(){return xe(this.year(),this.month())},da.week=da.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},da.isoWeek=da.isoWeeks=function(e){var t=Ye(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},da.weeksInYear=function(){var e=this.localeData()._week;return Ve(this.year(),e.dow,e.doy)},da.isoWeeksInYear=function(){return Ve(this.year(),1,4)},da.date=na,da.day=da.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},da.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},da.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},da.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},da.hour=da.hours=it,da.minute=da.minutes=ra,da.second=da.seconds=la,da.millisecond=da.milliseconds=pa,da.utcOffset=function(e,t,a){var o,n=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Ft(ce,e)))return this}else Math.abs(e)<16&&!a&&(e*=60);return!this._isUTC&&t&&(o=Pt(this)),this._offset=e,this._isUTC=!0,null!=o&&this.add(o,"m"),n!==e&&(!t||this._changeInProgress?Jt(this,Vt(e-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?n:Pt(this)},da.utc=function(e){return this.utcOffset(0,e)},da.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Pt(this),"m")),this},da.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Ft(re,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},da.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?_t(e).utcOffset():0,(this.utcOffset()-e)%60==0)},da.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},da.isLocal=function(){return!!this.isValid()&&!this._isUTC},da.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},da.isUtc=jt,da.isUTC=jt,da.zoneAbbr=function(){return this._isUTC?"UTC":""},da.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},da.dates=q("dates accessor is deprecated. Use date instead.",na),da.months=q("months accessor is deprecated. Use month instead",Xe),da.years=q("years accessor is deprecated. Use year instead",We),da.zone=q("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),da.isDSTShifted=q("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!c(this._isDSTShifted))return this._isDSTShifted;var e={};if(u(e,this),(e=wt(e))._a){var t=e._isUTC?b(e._a):_t(e._a);this._isDSTShifted=this.isValid()&&g(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var ba=R.prototype;function ha(e,t,a,o){var i=ft(),n=b().set(o,t);return i[a](n,e)}function Ma(e,t,a){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return ha(e,t,a,"month");var o,i=[];for(o=0;o<12;o++)i[o]=ha(e,o,a,"month");return i}function ma(e,t,a,o){"boolean"==typeof e?(l(t)&&(a=t,t=void 0),t=t||""):(a=t=e,e=!1,l(t)&&(a=t,t=void 0),t=t||"");var i,n=ft(),r=e?n._week.dow:0;if(null!=a)return ha(t,(a+r)%7,o,"day");var c=[];for(i=0;i<7;i++)c[i]=ha(t,(i+r)%7,o,"day");return c}ba.calendar=function(e,t,a){var o=this._calendar[e]||this._calendar.sameElse;return _(o)?o.call(t,a):o},ba.longDateFormat=function(e){var t=this._longDateFormat[e],a=this._longDateFormat[e.toUpperCase()];return t||!a?t:(this._longDateFormat[e]=a.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},ba.invalidDate=function(){return this._invalidDate},ba.ordinal=function(e){return this._ordinal.replace("%d",e)},ba.preparse=fa,ba.postformat=fa,ba.relativeTime=function(e,t,a,o){var i=this._relativeTime[a];return _(i)?i(e,t,a,o):i.replace(/%d/i,e)},ba.pastFuture=function(e,t){var a=this._relativeTime[e>0?"future":"past"];return _(a)?a(t):a.replace(/%s/i,t)},ba.set=function(e){var t,a;for(a in e)_(t=e[a])?this[a]=t:this["_"+a]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},ba.months=function(e,t){return e?n(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Be).test(t)?"format":"standalone"][e.month()]:n(this._months)?this._months:this._months.standalone},ba.monthsShort=function(e,t){return e?n(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Be.test(t)?"format":"standalone"][e.month()]:n(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},ba.monthsParse=function(e,t,a){var o,i,n;if(this._monthsParseExact)return function(e,t,a){var o,i,n,r=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],o=0;o<12;++o)n=b([2e3,o]),this._shortMonthsParse[o]=this.monthsShort(n,"").toLocaleLowerCase(),this._longMonthsParse[o]=this.months(n,"").toLocaleLowerCase();return a?"MMM"===t?-1!==(i=we.call(this._shortMonthsParse,r))?i:null:-1!==(i=we.call(this._longMonthsParse,r))?i:null:"MMM"===t?-1!==(i=we.call(this._shortMonthsParse,r))?i:-1!==(i=we.call(this._longMonthsParse,r))?i:null:-1!==(i=we.call(this._longMonthsParse,r))?i:-1!==(i=we.call(this._shortMonthsParse,r))?i:null}.call(this,e,t,a);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),o=0;o<12;o++){if(i=b([2e3,o]),a&&!this._longMonthsParse[o]&&(this._longMonthsParse[o]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[o]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),a||this._monthsParse[o]||(n="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[o]=new RegExp(n.replace(".",""),"i")),a&&"MMMM"===t&&this._longMonthsParse[o].test(e))return o;if(a&&"MMM"===t&&this._shortMonthsParse[o].test(e))return o;if(!a&&this._monthsParse[o].test(e))return o}},ba.monthsRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||He.call(this),e?this._monthsStrictRegex:this._monthsRegex):(d(this,"_monthsRegex")||(this._monthsRegex=Fe),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},ba.monthsShortRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||He.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(d(this,"_monthsShortRegex")||(this._monthsShortRegex=De),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},ba.week=function(e){return Ye(e,this._week.dow,this._week.doy).week},ba.firstDayOfYear=function(){return this._week.doy},ba.firstDayOfWeek=function(){return this._week.dow},ba.weekdays=function(e,t){return e?n(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:n(this._weekdays)?this._weekdays:this._weekdays.standalone},ba.weekdaysMin=function(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin},ba.weekdaysShort=function(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort},ba.weekdaysParse=function(e,t,a){var o,i,n;if(this._weekdaysParseExact)return function(e,t,a){var o,i,n,r=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],o=0;o<7;++o)n=b([2e3,1]).day(o),this._minWeekdaysParse[o]=this.weekdaysMin(n,"").toLocaleLowerCase(),this._shortWeekdaysParse[o]=this.weekdaysShort(n,"").toLocaleLowerCase(),this._weekdaysParse[o]=this.weekdays(n,"").toLocaleLowerCase();return a?"dddd"===t?-1!==(i=we.call(this._weekdaysParse,r))?i:null:"ddd"===t?-1!==(i=we.call(this._shortWeekdaysParse,r))?i:null:-1!==(i=we.call(this._minWeekdaysParse,r))?i:null:"dddd"===t?-1!==(i=we.call(this._weekdaysParse,r))?i:-1!==(i=we.call(this._shortWeekdaysParse,r))?i:-1!==(i=we.call(this._minWeekdaysParse,r))?i:null:"ddd"===t?-1!==(i=we.call(this._shortWeekdaysParse,r))?i:-1!==(i=we.call(this._weekdaysParse,r))?i:-1!==(i=we.call(this._minWeekdaysParse,r))?i:null:-1!==(i=we.call(this._minWeekdaysParse,r))?i:-1!==(i=we.call(this._weekdaysParse,r))?i:-1!==(i=we.call(this._shortWeekdaysParse,r))?i:null}.call(this,e,t,a);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;o<7;o++){if(i=b([2e3,1]).day(o),a&&!this._fullWeekdaysParse[o]&&(this._fullWeekdaysParse[o]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[o]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[o]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[o]||(n="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[o]=new RegExp(n.replace(".",""),"i")),a&&"dddd"===t&&this._fullWeekdaysParse[o].test(e))return o;if(a&&"ddd"===t&&this._shortWeekdaysParse[o].test(e))return o;if(a&&"dd"===t&&this._minWeekdaysParse[o].test(e))return o;if(!a&&this._weekdaysParse[o].test(e))return o}},ba.weekdaysRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||$e.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=Je),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},ba.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||$e.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ze),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},ba.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||$e.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Qe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},ba.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},ba.meridiem=function(e,t,a){return e>11?a?"pm":"PM":a?"am":"AM"},pt("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,a=1===k(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+a}}),i.lang=q("moment.lang is deprecated. Use moment.locale instead.",pt),i.langData=q("moment.langData is deprecated. Use moment.localeData instead.",ft);var za=Math.abs;function ua(e,t,a,o){var i=Vt(t,a);return e._milliseconds+=o*i._milliseconds,e._days+=o*i._days,e._months+=o*i._months,e._bubble()}function Oa(e){return e<0?Math.floor(e):Math.ceil(e)}function Ca(e){return 4800*e/146097}function Aa(e){return 146097*e/4800}function Ea(e){return function(){return this.as(e)}}var ka=Ea("ms"),ga=Ea("s"),ya=Ea("m"),qa=Ea("h"),va=Ea("d"),wa=Ea("w"),Wa=Ea("M"),_a=Ea("y");function La(e){return function(){return this.isValid()?this._data[e]:NaN}}var Ra=La("milliseconds"),xa=La("seconds"),Ba=La("minutes"),Sa=La("hours"),Na=La("days"),Ta=La("months"),Xa=La("years"),Da=Math.round,Fa={ss:44,s:45,m:45,h:22,d:26,M:11},Ha=Math.abs;function Pa(e){return(e>0)-(e<0)||+e}function ja(){if(!this.isValid())return this.localeData().invalidDate();var e,t,a=Ha(this._milliseconds)/1e3,o=Ha(this._days),i=Ha(this._months);e=E(a/60),t=E(e/60),a%=60,e%=60;var n=E(i/12),r=i%=12,c=o,l=t,s=e,p=a?a.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var f=d<0?"-":"",b=Pa(this._months)!==Pa(d)?"-":"",h=Pa(this._days)!==Pa(d)?"-":"",M=Pa(this._milliseconds)!==Pa(d)?"-":"";return f+"P"+(n?b+n+"Y":"")+(r?b+r+"M":"")+(c?h+c+"D":"")+(l||s||p?"T":"")+(l?M+l+"H":"")+(s?M+s+"M":"")+(p?M+p+"S":"")}var Ia=St.prototype;return Ia.isValid=function(){return this._isValid},Ia.abs=function(){var e=this._data;return this._milliseconds=za(this._milliseconds),this._days=za(this._days),this._months=za(this._months),e.milliseconds=za(e.milliseconds),e.seconds=za(e.seconds),e.minutes=za(e.minutes),e.hours=za(e.hours),e.months=za(e.months),e.years=za(e.years),this},Ia.add=function(e,t){return ua(this,e,t,1)},Ia.subtract=function(e,t){return ua(this,e,t,-1)},Ia.as=function(e){if(!this.isValid())return NaN;var t,a,o=this._milliseconds;if("month"===(e=S(e))||"year"===e)return t=this._days+o/864e5,a=this._months+Ca(t),"month"===e?a:a/12;switch(t=this._days+Math.round(Aa(this._months)),e){case"week":return t/7+o/6048e5;case"day":return t+o/864e5;case"hour":return 24*t+o/36e5;case"minute":return 1440*t+o/6e4;case"second":return 86400*t+o/1e3;case"millisecond":return Math.floor(864e5*t)+o;default:throw new Error("Unknown unit "+e)}},Ia.asMilliseconds=ka,Ia.asSeconds=ga,Ia.asMinutes=ya,Ia.asHours=qa,Ia.asDays=va,Ia.asWeeks=wa,Ia.asMonths=Wa,Ia.asYears=_a,Ia.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*k(this._months/12):NaN},Ia._bubble=function(){var e,t,a,o,i,n=this._milliseconds,r=this._days,c=this._months,l=this._data;return n>=0&&r>=0&&c>=0||n<=0&&r<=0&&c<=0||(n+=864e5*Oa(Aa(c)+r),r=0,c=0),l.milliseconds=n%1e3,e=E(n/1e3),l.seconds=e%60,t=E(e/60),l.minutes=t%60,a=E(t/60),l.hours=a%24,r+=E(a/24),i=E(Ca(r)),c+=i,r-=Oa(Aa(i)),o=E(c/12),c%=12,l.days=r,l.months=c,l.years=o,this},Ia.clone=function(){return Vt(this)},Ia.get=function(e){return e=S(e),this.isValid()?this[e+"s"]():NaN},Ia.milliseconds=Ra,Ia.seconds=xa,Ia.minutes=Ba,Ia.hours=Sa,Ia.days=Na,Ia.weeks=function(){return E(this.days()/7)},Ia.months=Ta,Ia.years=Xa,Ia.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),a=function(e,t,a){var o=Vt(e).abs(),i=Da(o.as("s")),n=Da(o.as("m")),r=Da(o.as("h")),c=Da(o.as("d")),l=Da(o.as("M")),s=Da(o.as("y")),p=i<=Fa.ss&&["s",i]||i<Fa.s&&["ss",i]||n<=1&&["m"]||n<Fa.m&&["mm",n]||r<=1&&["h"]||r<Fa.h&&["hh",r]||c<=1&&["d"]||c<Fa.d&&["dd",c]||l<=1&&["M"]||l<Fa.M&&["MM",l]||s<=1&&["y"]||["yy",s];return p[2]=t,p[3]=+e>0,p[4]=a,function(e,t,a,o,i){return i.relativeTime(t||1,!!a,e,o)}.apply(null,p)}(this,!e,t);return e&&(a=t.pastFuture(+this,a)),t.postformat(a)},Ia.toISOString=ja,Ia.toString=ja,Ia.toJSON=ja,Ia.locale=ea,Ia.localeData=aa,Ia.toIsoString=q("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ja),Ia.lang=ta,I("X",0,0,"unix"),I("x",0,0,"valueOf"),pe("x",ne),pe("X",/[+-]?\d+(\.\d{1,3})?/),he("X",function(e,t,a){a._d=new Date(1e3*parseFloat(e,10))}),he("x",function(e,t,a){a._d=new Date(k(e))}),i.version="2.22.2",t=_t,i.fn=da,i.min=function(){return xt("isBefore",[].slice.call(arguments,0))},i.max=function(){return xt("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=b,i.unix=function(e){return _t(1e3*e)},i.months=function(e,t){return Ma(e,t,"months")},i.isDate=s,i.locale=pt,i.invalid=m,i.duration=Vt,i.isMoment=A,i.weekdays=function(e,t,a){return ma(e,t,a,"weekdays")},i.parseZone=function(){return _t.apply(null,arguments).parseZone()},i.localeData=ft,i.isDuration=Nt,i.monthsShort=function(e,t){return Ma(e,t,"monthsShort")},i.weekdaysMin=function(e,t,a){return ma(e,t,a,"weekdaysMin")},i.defineLocale=dt,i.updateLocale=function(e,t){if(null!=t){var a,o,i=nt;null!=(o=st(e))&&(i=o._config),t=L(i,t),(a=new R(t)).parentLocale=rt[e],rt[e]=a,pt(e)}else null!=rt[e]&&(null!=rt[e].parentLocale?rt[e]=rt[e].parentLocale:null!=rt[e]&&delete rt[e]);return rt[e]},i.locales=function(){return v(rt)},i.weekdaysShort=function(e,t,a){return ma(e,t,a,"weekdaysShort")},i.normalizeUnits=S,i.relativeTimeRounding=function(e){return void 0===e?Da:"function"==typeof e&&(Da=e,!0)},i.relativeTimeThreshold=function(e,t){return void 0!==Fa[e]&&(void 0===t?Fa[e]:(Fa[e]=t,"s"===e&&(Fa.ss=t-1),!0))},i.calendarFormat=function(e,t){var a=e.diff(t,"days",!0);return a<-6?"sameElse":a<-1?"lastWeek":a<0?"lastDay":a<1?"sameDay":a<2?"nextDay":a<7?"nextWeek":"sameElse"},i.prototype=da,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},i}()}).call(this,a(360)(e))},function(e,t,a){var o;
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 a={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var n=typeof o;if("string"===n||"number"===n)e.push(o);else if(Array.isArray(o)&&o.length){var r=i.apply(null,o);r&&e.push(r)}else if("object"===n)for(var c in o)a.call(o,c)&&o[c]&&e.push(c)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(o=function(){return i}.apply(t,[]))||(e.exports=o)}()},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function a(e,t){for(var a=0;a<t.length;a++){var o=t[a];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}e.exports=function(e,t,o){return t&&a(e.prototype,t),o&&a(e,o),e}},function(e,t,a){var o=a(538),i=a(5);e.exports=function(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?i(e):t}},function(e,t){function a(t){return e.exports=a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},a(t)}e.exports=a},function(e,t,a){var o=a(539);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}},function(e,t,a){var o=a(550);e.exports=function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{},i=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(a).filter(function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),i.forEach(function(t){o(e,t,a[t])})}return e}},,function(e,t,a){var o=a(543),i=a(544),n=a(545);e.exports=function(e){return o(e)||i(e)||n()}},,,function(e,t,a){"use strict";e.exports=a(551)},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t,a=1;a<arguments.length;a++)for(var o in t=arguments[a])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i=function(){function e(e,t){for(var a,o=0;o<t.length;o++)(a=t[o]).enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}return function(t,a,o){return a&&e(t.prototype,a),o&&e(t,o),t}}(),n=a(18),r=l(n),c=l(a(1));function l(e){return e&&e.__esModule?e:{default:e}}var s=function(e,t){return 0<=t.indexOf(e)},p=function(e){return 0==e%18},d=["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"],f=["gridicons-arrow-down","gridicons-arrow-up","gridicons-comment","gridicons-clear-formatting","gridicons-flag","gridicons-menu","gridicons-reader","gridicons-strikethrough"],b=["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"],h=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,n.PureComponent),i(t,[{key:"render",value:function(){var e=this.props,t=e.size,a=e.onClick,i=e.icon,n=e.className,c=function(e,t){var a={};for(var o in e)0<=t.indexOf(o)||Object.prototype.hasOwnProperty.call(e,o)&&(a[o]=e[o]);return a}(e,["size","onClick","icon","className"]),l="gridicons-"+i,h=void 0,M=["gridicon",l,n,!!(s(l,d)&&p(t))&&"needs-offset",!!(s(l,f)&&p(t))&&"needs-offset-x",!!(s(l,b)&&p(t))&&"needs-offset-y"].filter(Boolean).join(" ");switch(l){default:h=r.default.createElement("svg",o({height:t,width:t},c));break;case"gridicons-add-image":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M4 19h16v-2H4v2zm13-6H7v2h10v-2zM4 9v2h16V9H4zm13-4H7v2h10V5z"})));break;case"gridicons-align-image-center":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M3 5h18v2H3V5zm0 14h18v-2H3v2zm5-4h8V9H8v6z"})));break;case"gridicons-align-image-left":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M3 5h18v2H3V5zm0 14h18v-2H3v2zm0-4h8V9H3v6zm10 0h8v-2h-8v2zm0-4h8V9h-8v2z"})));break;case"gridicons-align-image-none":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M21 7H3V5h18v2zm0 10H3v2h18v-2zM11 9H3v6h8V9z"})));break;case"gridicons-align-image-right":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M21 7H3V5h18v2zm0 10H3v2h18v-2zm0-8h-8v6h8V9zm-10 4H3v2h8v-2zm0-4H3v2h8V9z"})));break;case"gridicons-align-justify":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M4 19h16v-2H4v2zm16-6H4v2h16v-2zM4 9v2h16V9H4zm16-4H4v2h16V5z"})));break;case"gridicons-align-left":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M4 19h16v-2H4v2zm10-6H4v2h10v-2zM4 9v2h16V9H4zm10-4H4v2h10V5z"})));break;case"gridicons-align-right":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M20 17H4v2h16v-2zm-10-2h10v-2H10v2zM4 9v2h16V9H4zm6-2h10V5H10v2z"})));break;case"gridicons-arrow-down":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M20 9l-8 8-8-8 1.414-1.414L12 14.172l6.586-6.586"})));break;case"gridicons-chevron-left":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M14 20l-8-8 8-8 1.414 1.414L8.828 12l6.586 6.586"})));break;case"gridicons-chevron-right":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M10 20l8-8-8-8-1.414 1.414L15.172 12l-6.586 6.586"})));break;case"gridicons-chevron-up":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M4 15l8-8 8 8-1.414 1.414L12 9.828l-6.586 6.586"})));break;case"gridicons-clear-formatting":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}),r.default.createElement("g",null,r.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"}),r.default.createElement("path",{d:"M21 7h-4V3h-2v4h-4v2h4v4h2V9h4"})));break;case"gridicons-credit-card":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M7 10l5 5 5-5"})));break;case"gridicons-ellipsis-circle":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M10 19h4v-2h-4v2zm-4-6h12v-2H6v2zM3 5v2h18V5H3z"})));break;case"gridicons-flag":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M18 20h-3v-6H9v6H6V5.01h3V11h6V5.01h3V20z"})));break;case"gridicons-heart-outline":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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"}),r.default.createElement("path",{d:"M11.002 7v5.3l3.2 4.298 1.6-1.197-2.8-3.7V7"})));break;case"gridicons-house":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M2 19h20v3H2zM12 2L2 6v2h20V6M17 10h3v7h-3zM10.5 10h3v7h-3zM4 10h3v7H4z"})));break;case"gridicons-italic":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M21 6v2H3V6h18zM3 18h18v-2H3v2zm0-5h18v-2H3v2z"})));break;case"gridicons-menus":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M6 11h12v2H6z"})));break;case"gridicons-minus":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M3 11h18v2H3z"})));break;case"gridicons-money":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M10 3h8l-4 6h4L6 21l4-9H6l4-9"})));break;case"gridicons-pages":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M18 11h-5V6h-2v5H6v2h5v5h2v-5h5"})));break;case"gridicons-plus":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M21 13h-8v8h-2v-8H3v-2h8V3h2v8h8v2z"})));break;case"gridicons-popout":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M16 19H3v-2h13v2zm5-10H3v2h18V9zM3 5v2h11V5H3zm14 0v2h4V5h-4zm-6 8v2h10v-2H11zm-8 0v2h5v-2H3z"})));break;case"gridicons-print":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M20 14v-3h-2v3h-3v2h3v3h2v-3h3v-2"}),r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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"}),r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M13 4v2h3.59L6 16.59V13H4v7h7v-2H7.41L18 7.41V11h2V4h-7"})));break;case"gridicons-rotate":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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-spam":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M21 21H3v-2h18v2zM8 10H4v7h4v-7zm6-7h-4v14h4V3zm6 3h-4v11h4V6z"})));break;case"gridicons-stats-down-alt":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M21 21H3v-2h18v2zM8 3H4v14h4V3zm6 3h-4v11h4V6zm6 4h-4v7h4v-7z"})));break;case"gridicons-stats-down":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M21 21H3v-2h18v2zM8 10H4v7h4v-7zm6-4h-4v11h4V6zm6-3h-4v14h4V3z"})));break;case"gridicons-stats-up":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("circle",{cx:"15",cy:"8",r:"4"}),r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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"}),r.default.createElement("path",{d:"M11 7H9v2H7v2h2v2h2v-2h2V9h-2"})));break;case"gridicons-zoom-out":h=r.default.createElement("svg",o({className:M,height:t,width:t,onClick:a},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.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"}),r.default.createElement("path",{d:"M7 9h6v2H7z"})))}return h}}]),t}();h.defaultProps={size:24},h.propTypes={icon:c.default.string.isRequired,size:c.default.number,onClick:c.default.func,className:c.default.string},t.default=h,e.exports=t.default},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 a=function(){};a.prototype=t.prototype,e.prototype=new a,e.prototype.constructor=e}},function(e,t,a){var o=a(34),i=o.Buffer;function n(e,t){for(var a in e)t[a]=e[a]}function r(e,t,a){return i(e,t,a)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=o:(n(o,t),t.Buffer=r),n(i,r),r.from=function(e,t,a){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,a)},r.alloc=function(e,t,a){if("number"!=typeof e)throw new TypeError("Argument must be a number");var o=i(e);return void 0!==t?"string"==typeof a?o.fill(t,a):o.fill(t):o.fill(0),o},r.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},r.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o.SlowBuffer(e)}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MODIFIER_KEY_NAMES=t.DEFAULT_VERTICAL_SPACING=t.FANG_HEIGHT_PX=t.FANG_WIDTH_PX=t.WEEKDAYS=t.BLOCKED_MODIFIER=t.DAY_SIZE=t.OPEN_UP=t.OPEN_DOWN=t.ANCHOR_RIGHT=t.ANCHOR_LEFT=t.INFO_POSITION_AFTER=t.INFO_POSITION_BEFORE=t.INFO_POSITION_BOTTOM=t.INFO_POSITION_TOP=t.ICON_AFTER_POSITION=t.ICON_BEFORE_POSITION=t.VERTICAL_SCROLLABLE=t.VERTICAL_ORIENTATION=t.HORIZONTAL_ORIENTATION=t.END_DATE=t.START_DATE=t.ISO_MONTH_FORMAT=t.ISO_FORMAT=t.DISPLAY_FORMAT=void 0;t.DISPLAY_FORMAT="L";t.ISO_FORMAT="YYYY-MM-DD";t.ISO_MONTH_FORMAT="YYYY-MM";t.START_DATE="startDate";t.END_DATE="endDate";t.HORIZONTAL_ORIENTATION="horizontal";t.VERTICAL_ORIENTATION="vertical";t.VERTICAL_SCROLLABLE="verticalScrollable";t.ICON_BEFORE_POSITION="before";t.ICON_AFTER_POSITION="after";t.INFO_POSITION_TOP="top";t.INFO_POSITION_BOTTOM="bottom";t.INFO_POSITION_BEFORE="before";t.INFO_POSITION_AFTER="after";t.ANCHOR_LEFT="left";t.ANCHOR_RIGHT="right";t.OPEN_DOWN="down";t.OPEN_UP="up";t.DAY_SIZE=39;t.BLOCKED_MODIFIER="blocked";t.WEEKDAYS=[0,1,2,3,4,5,6];t.FANG_WIDTH_PX=20;t.FANG_HEIGHT_PX=10;t.DEFAULT_VERTICAL_SPACING=22;var o=new Set(["Shift","Control","Alt","Meta"]);t.MODIFIER_KEY_NAMES=o},,,,function(e,t){var a=e.exports={version:"2.6.2"};"number"==typeof __e&&(__e=a)},function(e,t){function a(){return e.exports=a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(e[o]=a[o])}return e},a.apply(this,arguments)}e.exports=a},function(e,t,a){var o,i,n={},r=(o=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===i&&(i=o.apply(this,arguments)),i}),c=function(e){var t={};return function(e,a){if("function"==typeof e)return e();if(void 0===t[e]){var o=function(e,t){return t?t.querySelector(e):document.querySelector(e)}.call(this,e,a);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(e){o=null}t[e]=o}return t[e]}}(),l=null,s=0,p=[],d=a(542);function f(e,t){for(var a=0;a<e.length;a++){var o=e[a],i=n[o.id];if(i){i.refs++;for(var r=0;r<i.parts.length;r++)i.parts[r](o.parts[r]);for(;r<o.parts.length;r++)i.parts.push(u(o.parts[r],t))}else{var c=[];for(r=0;r<o.parts.length;r++)c.push(u(o.parts[r],t));n[o.id]={id:o.id,refs:1,parts:c}}}}function b(e,t){for(var a=[],o={},i=0;i<e.length;i++){var n=e[i],r=t.base?n[0]+t.base:n[0],c={css:n[1],media:n[2],sourceMap:n[3]};o[r]?o[r].parts.push(c):a.push(o[r]={id:r,parts:[c]})}return a}function h(e,t){var a=c(e.insertInto);if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var o=p[p.length-1];if("top"===e.insertAt)o?o.nextSibling?a.insertBefore(t,o.nextSibling):a.appendChild(t):a.insertBefore(t,a.firstChild),p.push(t);else if("bottom"===e.insertAt)a.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var i=c(e.insertAt.before,a);a.insertBefore(t,i)}}function M(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=p.indexOf(e);t>=0&&p.splice(t,1)}function m(e){var t=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var o=function(){0;return a.nc}();o&&(e.attrs.nonce=o)}return z(t,e.attrs),h(e,t),t}function z(e,t){Object.keys(t).forEach(function(a){e.setAttribute(a,t[a])})}function u(e,t){var a,o,i,n;if(t.transform&&e.css){if(!(n="function"==typeof t.transform?t.transform(e.css):t.transform.default(e.css)))return function(){};e.css=n}if(t.singleton){var r=s++;a=l||(l=m(t)),o=A.bind(null,a,r,!1),i=A.bind(null,a,r,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(a=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",z(t,e.attrs),h(e,t),t}(t),o=function(e,t,a){var o=a.css,i=a.sourceMap,n=void 0===t.convertToAbsoluteUrls&&i;(t.convertToAbsoluteUrls||n)&&(o=d(o));i&&(o+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var r=new Blob([o],{type:"text/css"}),c=e.href;e.href=URL.createObjectURL(r),c&&URL.revokeObjectURL(c)}.bind(null,a,t),i=function(){M(a),a.href&&URL.revokeObjectURL(a.href)}):(a=m(t),o=function(e,t){var a=t.css,o=t.media;o&&e.setAttribute("media",o);if(e.styleSheet)e.styleSheet.cssText=a;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(a))}}.bind(null,a),i=function(){M(a)});return o(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;o(e=t)}else i()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=r()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var a=b(e,t);return f(a,t),function(e){for(var o=[],i=0;i<a.length;i++){var r=a[i];(c=n[r.id]).refs--,o.push(c)}e&&f(b(e,t),t);for(i=0;i<o.length;i++){var c;if(0===(c=o[i]).refs){for(var l=0;l<c.parts.length;l++)c.parts[l]();delete n[c.id]}}}};var O,C=(O=[],function(e,t){return O[e]=t,O.filter(Boolean).join("\n")});function A(e,t,a,o){var i=a?"":o.css;if(e.styleSheet)e.styleSheet.cssText=C(t,i);else{var n=document.createTextNode(i),r=e.childNodes;r[t]&&e.removeChild(r[t]),r.length?e.insertBefore(n,r[t]):e.appendChild(n)}}},function(e,t,a){e.exports=a(734)},function(e,t,a){(function(e){!function(e,t){"use strict";function o(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var a=function(){};a.prototype=t.prototype,e.prototype=new a,e.prototype.constructor=e}function n(e,t,a){if(n.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(a=t,t=10),this._init(e||0,t||10,a||"be"))}var r;"object"==typeof e?e.exports=n:t.BN=n,n.BN=n,n.wordSize=26;try{r=a(226).Buffer}catch(e){}function c(e,t,a){for(var o=0,i=Math.min(e.length,a),n=t;n<i;n++){var r=e.charCodeAt(n)-48;o<<=4,o|=r>=49&&r<=54?r-49+10:r>=17&&r<=22?r-17+10:15&r}return o}function l(e,t,a,o){for(var i=0,n=Math.min(e.length,a),r=t;r<n;r++){var c=e.charCodeAt(r)-48;i*=o,i+=c>=49?c-49+10:c>=17?c-17+10:c}return i}n.isBN=function(e){return e instanceof n||null!==e&&"object"==typeof e&&e.constructor.wordSize===n.wordSize&&Array.isArray(e.words)},n.max=function(e,t){return e.cmp(t)>0?e:t},n.min=function(e,t){return e.cmp(t)<0?e:t},n.prototype._init=function(e,t,a){if("number"==typeof e)return this._initNumber(e,t,a);if("object"==typeof e)return this._initArray(e,t,a);"hex"===t&&(t=16),o(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===a&&this._initArray(this.toArray(),t,a)},n.prototype._initNumber=function(e,t,a){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(o(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===a&&this._initArray(this.toArray(),t,a)},n.prototype._initArray=function(e,t,a){if(o("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var n,r,c=0;if("be"===a)for(i=e.length-1,n=0;i>=0;i-=3)r=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[n]|=r<<c&67108863,this.words[n+1]=r>>>26-c&67108863,(c+=24)>=26&&(c-=26,n++);else if("le"===a)for(i=0,n=0;i<e.length;i+=3)r=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[n]|=r<<c&67108863,this.words[n+1]=r>>>26-c&67108863,(c+=24)>=26&&(c-=26,n++);return this.strip()},n.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var a=0;a<this.length;a++)this.words[a]=0;var o,i,n=0;for(a=e.length-6,o=0;a>=t;a-=6)i=c(e,a,a+6),this.words[o]|=i<<n&67108863,this.words[o+1]|=i>>>26-n&4194303,(n+=24)>=26&&(n-=26,o++);a+6!==t&&(i=c(e,t,a+6),this.words[o]|=i<<n&67108863,this.words[o+1]|=i>>>26-n&4194303),this.strip()},n.prototype._parseBase=function(e,t,a){this.words=[0],this.length=1;for(var o=0,i=1;i<=67108863;i*=t)o++;o--,i=i/t|0;for(var n=e.length-a,r=n%o,c=Math.min(n,n-r)+a,s=0,p=a;p<c;p+=o)s=l(e,p,p+o,t),this.imuln(i),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s);if(0!==r){var d=1;for(s=l(e,p,e.length,t),p=0;p<r;p++)d*=t;this.imuln(d),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s)}},n.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},n.prototype.clone=function(){var e=new n(null);return this.copy(e),e},n.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},n.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},n.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},n.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var s=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],p=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(e,t,a){a.negative=t.negative^e.negative;var o=e.length+t.length|0;a.length=o,o=o-1|0;var i=0|e.words[0],n=0|t.words[0],r=i*n,c=67108863&r,l=r/67108864|0;a.words[0]=c;for(var s=1;s<o;s++){for(var p=l>>>26,d=67108863&l,f=Math.min(s,t.length-1),b=Math.max(0,s-e.length+1);b<=f;b++){var h=s-b|0;p+=(r=(i=0|e.words[h])*(n=0|t.words[b])+d)/67108864|0,d=67108863&r}a.words[s]=0|d,l=0|p}return 0!==l?a.words[s]=0|l:a.length--,a.strip()}n.prototype.toString=function(e,t){var a;if(t=0|t||1,16===(e=e||10)||"hex"===e){a="";for(var i=0,n=0,r=0;r<this.length;r++){var c=this.words[r],l=(16777215&(c<<i|n)).toString(16);a=0!==(n=c>>>24-i&16777215)||r!==this.length-1?s[6-l.length]+l+a:l+a,(i+=2)>=26&&(i-=26,r--)}for(0!==n&&(a=n.toString(16)+a);a.length%t!=0;)a="0"+a;return 0!==this.negative&&(a="-"+a),a}if(e===(0|e)&&e>=2&&e<=36){var f=p[e],b=d[e];a="";var h=this.clone();for(h.negative=0;!h.isZero();){var M=h.modn(b).toString(e);a=(h=h.idivn(b)).isZero()?M+a:s[f-M.length]+M+a}for(this.isZero()&&(a="0"+a);a.length%t!=0;)a="0"+a;return 0!==this.negative&&(a="-"+a),a}o(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&o(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(e,t){return o(void 0!==r),this.toArrayLike(r,e,t)},n.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},n.prototype.toArrayLike=function(e,t,a){var i=this.byteLength(),n=a||Math.max(1,i);o(i<=n,"byte array longer than desired length"),o(n>0,"Requested array length <= 0"),this.strip();var r,c,l="le"===t,s=new e(n),p=this.clone();if(l){for(c=0;!p.isZero();c++)r=p.andln(255),p.iushrn(8),s[c]=r;for(;c<n;c++)s[c]=0}else{for(c=0;c<n-i;c++)s[c]=0;for(c=0;!p.isZero();c++)r=p.andln(255),p.iushrn(8),s[n-c-1]=r}return s},Math.clz32?n.prototype._countBits=function(e){return 32-Math.clz32(e)}:n.prototype._countBits=function(e){var t=e,a=0;return t>=4096&&(a+=13,t>>>=13),t>=64&&(a+=7,t>>>=7),t>=8&&(a+=4,t>>>=4),t>=2&&(a+=2,t>>>=2),a+t},n.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,a=0;return 0==(8191&t)&&(a+=13,t>>>=13),0==(127&t)&&(a+=7,t>>>=7),0==(15&t)&&(a+=4,t>>>=4),0==(3&t)&&(a+=2,t>>>=2),0==(1&t)&&a++,a},n.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var a=this._zeroBits(this.words[t]);if(e+=a,26!==a)break}return e},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},n.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return 0!==this.negative},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},n.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},n.prototype.ior=function(e){return o(0==(this.negative|e.negative)),this.iuor(e)},n.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},n.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},n.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var a=0;a<t.length;a++)this.words[a]=this.words[a]&e.words[a];return this.length=t.length,this.strip()},n.prototype.iand=function(e){return o(0==(this.negative|e.negative)),this.iuand(e)},n.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},n.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},n.prototype.iuxor=function(e){var t,a;this.length>e.length?(t=this,a=e):(t=e,a=this);for(var o=0;o<a.length;o++)this.words[o]=t.words[o]^a.words[o];if(this!==t)for(;o<t.length;o++)this.words[o]=t.words[o];return this.length=t.length,this.strip()},n.prototype.ixor=function(e){return o(0==(this.negative|e.negative)),this.iuxor(e)},n.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},n.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},n.prototype.inotn=function(e){o("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),a=e%26;this._expand(t),a>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return a>0&&(this.words[i]=~this.words[i]&67108863>>26-a),this.strip()},n.prototype.notn=function(e){return this.clone().inotn(e)},n.prototype.setn=function(e,t){o("number"==typeof e&&e>=0);var a=e/26|0,i=e%26;return this._expand(a+1),this.words[a]=t?this.words[a]|1<<i:this.words[a]&~(1<<i),this.strip()},n.prototype.iadd=function(e){var t,a,o;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(a=this,o=e):(a=e,o=this);for(var i=0,n=0;n<o.length;n++)t=(0|a.words[n])+(0|o.words[n])+i,this.words[n]=67108863&t,i=t>>>26;for(;0!==i&&n<a.length;n++)t=(0|a.words[n])+i,this.words[n]=67108863&t,i=t>>>26;if(this.length=a.length,0!==i)this.words[this.length]=i,this.length++;else if(a!==this)for(;n<a.length;n++)this.words[n]=a.words[n];return this},n.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},n.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var a,o,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(a=this,o=e):(a=e,o=this);for(var n=0,r=0;r<o.length;r++)n=(t=(0|a.words[r])-(0|o.words[r])+n)>>26,this.words[r]=67108863&t;for(;0!==n&&r<a.length;r++)n=(t=(0|a.words[r])+n)>>26,this.words[r]=67108863&t;if(0===n&&r<a.length&&a!==this)for(;r<a.length;r++)this.words[r]=a.words[r];return this.length=Math.max(this.length,r),a!==this&&(this.negative=1),this.strip()},n.prototype.sub=function(e){return this.clone().isub(e)};var b=function(e,t,a){var o,i,n,r=e.words,c=t.words,l=a.words,s=0,p=0|r[0],d=8191&p,f=p>>>13,b=0|r[1],h=8191&b,M=b>>>13,m=0|r[2],z=8191&m,u=m>>>13,O=0|r[3],C=8191&O,A=O>>>13,E=0|r[4],k=8191&E,g=E>>>13,y=0|r[5],q=8191&y,v=y>>>13,w=0|r[6],W=8191&w,_=w>>>13,L=0|r[7],R=8191&L,x=L>>>13,B=0|r[8],S=8191&B,N=B>>>13,T=0|r[9],X=8191&T,D=T>>>13,F=0|c[0],H=8191&F,P=F>>>13,j=0|c[1],I=8191&j,Y=j>>>13,V=0|c[2],U=8191&V,G=V>>>13,K=0|c[3],J=8191&K,Z=K>>>13,Q=0|c[4],$=8191&Q,ee=Q>>>13,te=0|c[5],ae=8191&te,oe=te>>>13,ie=0|c[6],ne=8191&ie,re=ie>>>13,ce=0|c[7],le=8191&ce,se=ce>>>13,pe=0|c[8],de=8191&pe,fe=pe>>>13,be=0|c[9],he=8191&be,Me=be>>>13;a.negative=e.negative^t.negative,a.length=19;var me=(s+(o=Math.imul(d,H))|0)+((8191&(i=(i=Math.imul(d,P))+Math.imul(f,H)|0))<<13)|0;s=((n=Math.imul(f,P))+(i>>>13)|0)+(me>>>26)|0,me&=67108863,o=Math.imul(h,H),i=(i=Math.imul(h,P))+Math.imul(M,H)|0,n=Math.imul(M,P);var ze=(s+(o=o+Math.imul(d,I)|0)|0)+((8191&(i=(i=i+Math.imul(d,Y)|0)+Math.imul(f,I)|0))<<13)|0;s=((n=n+Math.imul(f,Y)|0)+(i>>>13)|0)+(ze>>>26)|0,ze&=67108863,o=Math.imul(z,H),i=(i=Math.imul(z,P))+Math.imul(u,H)|0,n=Math.imul(u,P),o=o+Math.imul(h,I)|0,i=(i=i+Math.imul(h,Y)|0)+Math.imul(M,I)|0,n=n+Math.imul(M,Y)|0;var ue=(s+(o=o+Math.imul(d,U)|0)|0)+((8191&(i=(i=i+Math.imul(d,G)|0)+Math.imul(f,U)|0))<<13)|0;s=((n=n+Math.imul(f,G)|0)+(i>>>13)|0)+(ue>>>26)|0,ue&=67108863,o=Math.imul(C,H),i=(i=Math.imul(C,P))+Math.imul(A,H)|0,n=Math.imul(A,P),o=o+Math.imul(z,I)|0,i=(i=i+Math.imul(z,Y)|0)+Math.imul(u,I)|0,n=n+Math.imul(u,Y)|0,o=o+Math.imul(h,U)|0,i=(i=i+Math.imul(h,G)|0)+Math.imul(M,U)|0,n=n+Math.imul(M,G)|0;var Oe=(s+(o=o+Math.imul(d,J)|0)|0)+((8191&(i=(i=i+Math.imul(d,Z)|0)+Math.imul(f,J)|0))<<13)|0;s=((n=n+Math.imul(f,Z)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,o=Math.imul(k,H),i=(i=Math.imul(k,P))+Math.imul(g,H)|0,n=Math.imul(g,P),o=o+Math.imul(C,I)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(A,I)|0,n=n+Math.imul(A,Y)|0,o=o+Math.imul(z,U)|0,i=(i=i+Math.imul(z,G)|0)+Math.imul(u,U)|0,n=n+Math.imul(u,G)|0,o=o+Math.imul(h,J)|0,i=(i=i+Math.imul(h,Z)|0)+Math.imul(M,J)|0,n=n+Math.imul(M,Z)|0;var Ce=(s+(o=o+Math.imul(d,$)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(f,$)|0))<<13)|0;s=((n=n+Math.imul(f,ee)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,o=Math.imul(q,H),i=(i=Math.imul(q,P))+Math.imul(v,H)|0,n=Math.imul(v,P),o=o+Math.imul(k,I)|0,i=(i=i+Math.imul(k,Y)|0)+Math.imul(g,I)|0,n=n+Math.imul(g,Y)|0,o=o+Math.imul(C,U)|0,i=(i=i+Math.imul(C,G)|0)+Math.imul(A,U)|0,n=n+Math.imul(A,G)|0,o=o+Math.imul(z,J)|0,i=(i=i+Math.imul(z,Z)|0)+Math.imul(u,J)|0,n=n+Math.imul(u,Z)|0,o=o+Math.imul(h,$)|0,i=(i=i+Math.imul(h,ee)|0)+Math.imul(M,$)|0,n=n+Math.imul(M,ee)|0;var Ae=(s+(o=o+Math.imul(d,ae)|0)|0)+((8191&(i=(i=i+Math.imul(d,oe)|0)+Math.imul(f,ae)|0))<<13)|0;s=((n=n+Math.imul(f,oe)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,o=Math.imul(W,H),i=(i=Math.imul(W,P))+Math.imul(_,H)|0,n=Math.imul(_,P),o=o+Math.imul(q,I)|0,i=(i=i+Math.imul(q,Y)|0)+Math.imul(v,I)|0,n=n+Math.imul(v,Y)|0,o=o+Math.imul(k,U)|0,i=(i=i+Math.imul(k,G)|0)+Math.imul(g,U)|0,n=n+Math.imul(g,G)|0,o=o+Math.imul(C,J)|0,i=(i=i+Math.imul(C,Z)|0)+Math.imul(A,J)|0,n=n+Math.imul(A,Z)|0,o=o+Math.imul(z,$)|0,i=(i=i+Math.imul(z,ee)|0)+Math.imul(u,$)|0,n=n+Math.imul(u,ee)|0,o=o+Math.imul(h,ae)|0,i=(i=i+Math.imul(h,oe)|0)+Math.imul(M,ae)|0,n=n+Math.imul(M,oe)|0;var Ee=(s+(o=o+Math.imul(d,ne)|0)|0)+((8191&(i=(i=i+Math.imul(d,re)|0)+Math.imul(f,ne)|0))<<13)|0;s=((n=n+Math.imul(f,re)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,o=Math.imul(R,H),i=(i=Math.imul(R,P))+Math.imul(x,H)|0,n=Math.imul(x,P),o=o+Math.imul(W,I)|0,i=(i=i+Math.imul(W,Y)|0)+Math.imul(_,I)|0,n=n+Math.imul(_,Y)|0,o=o+Math.imul(q,U)|0,i=(i=i+Math.imul(q,G)|0)+Math.imul(v,U)|0,n=n+Math.imul(v,G)|0,o=o+Math.imul(k,J)|0,i=(i=i+Math.imul(k,Z)|0)+Math.imul(g,J)|0,n=n+Math.imul(g,Z)|0,o=o+Math.imul(C,$)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(A,$)|0,n=n+Math.imul(A,ee)|0,o=o+Math.imul(z,ae)|0,i=(i=i+Math.imul(z,oe)|0)+Math.imul(u,ae)|0,n=n+Math.imul(u,oe)|0,o=o+Math.imul(h,ne)|0,i=(i=i+Math.imul(h,re)|0)+Math.imul(M,ne)|0,n=n+Math.imul(M,re)|0;var ke=(s+(o=o+Math.imul(d,le)|0)|0)+((8191&(i=(i=i+Math.imul(d,se)|0)+Math.imul(f,le)|0))<<13)|0;s=((n=n+Math.imul(f,se)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,o=Math.imul(S,H),i=(i=Math.imul(S,P))+Math.imul(N,H)|0,n=Math.imul(N,P),o=o+Math.imul(R,I)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(x,I)|0,n=n+Math.imul(x,Y)|0,o=o+Math.imul(W,U)|0,i=(i=i+Math.imul(W,G)|0)+Math.imul(_,U)|0,n=n+Math.imul(_,G)|0,o=o+Math.imul(q,J)|0,i=(i=i+Math.imul(q,Z)|0)+Math.imul(v,J)|0,n=n+Math.imul(v,Z)|0,o=o+Math.imul(k,$)|0,i=(i=i+Math.imul(k,ee)|0)+Math.imul(g,$)|0,n=n+Math.imul(g,ee)|0,o=o+Math.imul(C,ae)|0,i=(i=i+Math.imul(C,oe)|0)+Math.imul(A,ae)|0,n=n+Math.imul(A,oe)|0,o=o+Math.imul(z,ne)|0,i=(i=i+Math.imul(z,re)|0)+Math.imul(u,ne)|0,n=n+Math.imul(u,re)|0,o=o+Math.imul(h,le)|0,i=(i=i+Math.imul(h,se)|0)+Math.imul(M,le)|0,n=n+Math.imul(M,se)|0;var ge=(s+(o=o+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,fe)|0)+Math.imul(f,de)|0))<<13)|0;s=((n=n+Math.imul(f,fe)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,o=Math.imul(X,H),i=(i=Math.imul(X,P))+Math.imul(D,H)|0,n=Math.imul(D,P),o=o+Math.imul(S,I)|0,i=(i=i+Math.imul(S,Y)|0)+Math.imul(N,I)|0,n=n+Math.imul(N,Y)|0,o=o+Math.imul(R,U)|0,i=(i=i+Math.imul(R,G)|0)+Math.imul(x,U)|0,n=n+Math.imul(x,G)|0,o=o+Math.imul(W,J)|0,i=(i=i+Math.imul(W,Z)|0)+Math.imul(_,J)|0,n=n+Math.imul(_,Z)|0,o=o+Math.imul(q,$)|0,i=(i=i+Math.imul(q,ee)|0)+Math.imul(v,$)|0,n=n+Math.imul(v,ee)|0,o=o+Math.imul(k,ae)|0,i=(i=i+Math.imul(k,oe)|0)+Math.imul(g,ae)|0,n=n+Math.imul(g,oe)|0,o=o+Math.imul(C,ne)|0,i=(i=i+Math.imul(C,re)|0)+Math.imul(A,ne)|0,n=n+Math.imul(A,re)|0,o=o+Math.imul(z,le)|0,i=(i=i+Math.imul(z,se)|0)+Math.imul(u,le)|0,n=n+Math.imul(u,se)|0,o=o+Math.imul(h,de)|0,i=(i=i+Math.imul(h,fe)|0)+Math.imul(M,de)|0,n=n+Math.imul(M,fe)|0;var ye=(s+(o=o+Math.imul(d,he)|0)|0)+((8191&(i=(i=i+Math.imul(d,Me)|0)+Math.imul(f,he)|0))<<13)|0;s=((n=n+Math.imul(f,Me)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,o=Math.imul(X,I),i=(i=Math.imul(X,Y))+Math.imul(D,I)|0,n=Math.imul(D,Y),o=o+Math.imul(S,U)|0,i=(i=i+Math.imul(S,G)|0)+Math.imul(N,U)|0,n=n+Math.imul(N,G)|0,o=o+Math.imul(R,J)|0,i=(i=i+Math.imul(R,Z)|0)+Math.imul(x,J)|0,n=n+Math.imul(x,Z)|0,o=o+Math.imul(W,$)|0,i=(i=i+Math.imul(W,ee)|0)+Math.imul(_,$)|0,n=n+Math.imul(_,ee)|0,o=o+Math.imul(q,ae)|0,i=(i=i+Math.imul(q,oe)|0)+Math.imul(v,ae)|0,n=n+Math.imul(v,oe)|0,o=o+Math.imul(k,ne)|0,i=(i=i+Math.imul(k,re)|0)+Math.imul(g,ne)|0,n=n+Math.imul(g,re)|0,o=o+Math.imul(C,le)|0,i=(i=i+Math.imul(C,se)|0)+Math.imul(A,le)|0,n=n+Math.imul(A,se)|0,o=o+Math.imul(z,de)|0,i=(i=i+Math.imul(z,fe)|0)+Math.imul(u,de)|0,n=n+Math.imul(u,fe)|0;var qe=(s+(o=o+Math.imul(h,he)|0)|0)+((8191&(i=(i=i+Math.imul(h,Me)|0)+Math.imul(M,he)|0))<<13)|0;s=((n=n+Math.imul(M,Me)|0)+(i>>>13)|0)+(qe>>>26)|0,qe&=67108863,o=Math.imul(X,U),i=(i=Math.imul(X,G))+Math.imul(D,U)|0,n=Math.imul(D,G),o=o+Math.imul(S,J)|0,i=(i=i+Math.imul(S,Z)|0)+Math.imul(N,J)|0,n=n+Math.imul(N,Z)|0,o=o+Math.imul(R,$)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(x,$)|0,n=n+Math.imul(x,ee)|0,o=o+Math.imul(W,ae)|0,i=(i=i+Math.imul(W,oe)|0)+Math.imul(_,ae)|0,n=n+Math.imul(_,oe)|0,o=o+Math.imul(q,ne)|0,i=(i=i+Math.imul(q,re)|0)+Math.imul(v,ne)|0,n=n+Math.imul(v,re)|0,o=o+Math.imul(k,le)|0,i=(i=i+Math.imul(k,se)|0)+Math.imul(g,le)|0,n=n+Math.imul(g,se)|0,o=o+Math.imul(C,de)|0,i=(i=i+Math.imul(C,fe)|0)+Math.imul(A,de)|0,n=n+Math.imul(A,fe)|0;var ve=(s+(o=o+Math.imul(z,he)|0)|0)+((8191&(i=(i=i+Math.imul(z,Me)|0)+Math.imul(u,he)|0))<<13)|0;s=((n=n+Math.imul(u,Me)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,o=Math.imul(X,J),i=(i=Math.imul(X,Z))+Math.imul(D,J)|0,n=Math.imul(D,Z),o=o+Math.imul(S,$)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(N,$)|0,n=n+Math.imul(N,ee)|0,o=o+Math.imul(R,ae)|0,i=(i=i+Math.imul(R,oe)|0)+Math.imul(x,ae)|0,n=n+Math.imul(x,oe)|0,o=o+Math.imul(W,ne)|0,i=(i=i+Math.imul(W,re)|0)+Math.imul(_,ne)|0,n=n+Math.imul(_,re)|0,o=o+Math.imul(q,le)|0,i=(i=i+Math.imul(q,se)|0)+Math.imul(v,le)|0,n=n+Math.imul(v,se)|0,o=o+Math.imul(k,de)|0,i=(i=i+Math.imul(k,fe)|0)+Math.imul(g,de)|0,n=n+Math.imul(g,fe)|0;var we=(s+(o=o+Math.imul(C,he)|0)|0)+((8191&(i=(i=i+Math.imul(C,Me)|0)+Math.imul(A,he)|0))<<13)|0;s=((n=n+Math.imul(A,Me)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,o=Math.imul(X,$),i=(i=Math.imul(X,ee))+Math.imul(D,$)|0,n=Math.imul(D,ee),o=o+Math.imul(S,ae)|0,i=(i=i+Math.imul(S,oe)|0)+Math.imul(N,ae)|0,n=n+Math.imul(N,oe)|0,o=o+Math.imul(R,ne)|0,i=(i=i+Math.imul(R,re)|0)+Math.imul(x,ne)|0,n=n+Math.imul(x,re)|0,o=o+Math.imul(W,le)|0,i=(i=i+Math.imul(W,se)|0)+Math.imul(_,le)|0,n=n+Math.imul(_,se)|0,o=o+Math.imul(q,de)|0,i=(i=i+Math.imul(q,fe)|0)+Math.imul(v,de)|0,n=n+Math.imul(v,fe)|0;var We=(s+(o=o+Math.imul(k,he)|0)|0)+((8191&(i=(i=i+Math.imul(k,Me)|0)+Math.imul(g,he)|0))<<13)|0;s=((n=n+Math.imul(g,Me)|0)+(i>>>13)|0)+(We>>>26)|0,We&=67108863,o=Math.imul(X,ae),i=(i=Math.imul(X,oe))+Math.imul(D,ae)|0,n=Math.imul(D,oe),o=o+Math.imul(S,ne)|0,i=(i=i+Math.imul(S,re)|0)+Math.imul(N,ne)|0,n=n+Math.imul(N,re)|0,o=o+Math.imul(R,le)|0,i=(i=i+Math.imul(R,se)|0)+Math.imul(x,le)|0,n=n+Math.imul(x,se)|0,o=o+Math.imul(W,de)|0,i=(i=i+Math.imul(W,fe)|0)+Math.imul(_,de)|0,n=n+Math.imul(_,fe)|0;var _e=(s+(o=o+Math.imul(q,he)|0)|0)+((8191&(i=(i=i+Math.imul(q,Me)|0)+Math.imul(v,he)|0))<<13)|0;s=((n=n+Math.imul(v,Me)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,o=Math.imul(X,ne),i=(i=Math.imul(X,re))+Math.imul(D,ne)|0,n=Math.imul(D,re),o=o+Math.imul(S,le)|0,i=(i=i+Math.imul(S,se)|0)+Math.imul(N,le)|0,n=n+Math.imul(N,se)|0,o=o+Math.imul(R,de)|0,i=(i=i+Math.imul(R,fe)|0)+Math.imul(x,de)|0,n=n+Math.imul(x,fe)|0;var Le=(s+(o=o+Math.imul(W,he)|0)|0)+((8191&(i=(i=i+Math.imul(W,Me)|0)+Math.imul(_,he)|0))<<13)|0;s=((n=n+Math.imul(_,Me)|0)+(i>>>13)|0)+(Le>>>26)|0,Le&=67108863,o=Math.imul(X,le),i=(i=Math.imul(X,se))+Math.imul(D,le)|0,n=Math.imul(D,se),o=o+Math.imul(S,de)|0,i=(i=i+Math.imul(S,fe)|0)+Math.imul(N,de)|0,n=n+Math.imul(N,fe)|0;var Re=(s+(o=o+Math.imul(R,he)|0)|0)+((8191&(i=(i=i+Math.imul(R,Me)|0)+Math.imul(x,he)|0))<<13)|0;s=((n=n+Math.imul(x,Me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,o=Math.imul(X,de),i=(i=Math.imul(X,fe))+Math.imul(D,de)|0,n=Math.imul(D,fe);var xe=(s+(o=o+Math.imul(S,he)|0)|0)+((8191&(i=(i=i+Math.imul(S,Me)|0)+Math.imul(N,he)|0))<<13)|0;s=((n=n+Math.imul(N,Me)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863;var Be=(s+(o=Math.imul(X,he))|0)+((8191&(i=(i=Math.imul(X,Me))+Math.imul(D,he)|0))<<13)|0;return s=((n=Math.imul(D,Me))+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,l[0]=me,l[1]=ze,l[2]=ue,l[3]=Oe,l[4]=Ce,l[5]=Ae,l[6]=Ee,l[7]=ke,l[8]=ge,l[9]=ye,l[10]=qe,l[11]=ve,l[12]=we,l[13]=We,l[14]=_e,l[15]=Le,l[16]=Re,l[17]=xe,l[18]=Be,0!==s&&(l[19]=s,a.length++),a};function h(e,t,a){return(new M).mulp(e,t,a)}function M(e,t){this.x=e,this.y=t}Math.imul||(b=f),n.prototype.mulTo=function(e,t){var a=this.length+e.length;return 10===this.length&&10===e.length?b(this,e,t):a<63?f(this,e,t):a<1024?function(e,t,a){a.negative=t.negative^e.negative,a.length=e.length+t.length;for(var o=0,i=0,n=0;n<a.length-1;n++){var r=i;i=0;for(var c=67108863&o,l=Math.min(n,t.length-1),s=Math.max(0,n-e.length+1);s<=l;s++){var p=n-s,d=(0|e.words[p])*(0|t.words[s]),f=67108863&d;c=67108863&(f=f+c|0),i+=(r=(r=r+(d/67108864|0)|0)+(f>>>26)|0)>>>26,r&=67108863}a.words[n]=c,o=r,r=i}return 0!==o?a.words[n]=o:a.length--,a.strip()}(this,e,t):h(this,e,t)},M.prototype.makeRBT=function(e){for(var t=new Array(e),a=n.prototype._countBits(e)-1,o=0;o<e;o++)t[o]=this.revBin(o,a,e);return t},M.prototype.revBin=function(e,t,a){if(0===e||e===a-1)return e;for(var o=0,i=0;i<t;i++)o|=(1&e)<<t-i-1,e>>=1;return o},M.prototype.permute=function(e,t,a,o,i,n){for(var r=0;r<n;r++)o[r]=t[e[r]],i[r]=a[e[r]]},M.prototype.transform=function(e,t,a,o,i,n){this.permute(n,e,t,a,o,i);for(var r=1;r<i;r<<=1)for(var c=r<<1,l=Math.cos(2*Math.PI/c),s=Math.sin(2*Math.PI/c),p=0;p<i;p+=c)for(var d=l,f=s,b=0;b<r;b++){var h=a[p+b],M=o[p+b],m=a[p+b+r],z=o[p+b+r],u=d*m-f*z;z=d*z+f*m,m=u,a[p+b]=h+m,o[p+b]=M+z,a[p+b+r]=h-m,o[p+b+r]=M-z,b!==c&&(u=l*d-s*f,f=l*f+s*d,d=u)}},M.prototype.guessLen13b=function(e,t){var a=1|Math.max(t,e),o=1&a,i=0;for(a=a/2|0;a;a>>>=1)i++;return 1<<i+1+o},M.prototype.conjugate=function(e,t,a){if(!(a<=1))for(var o=0;o<a/2;o++){var i=e[o];e[o]=e[a-o-1],e[a-o-1]=i,i=t[o],t[o]=-t[a-o-1],t[a-o-1]=-i}},M.prototype.normalize13b=function(e,t){for(var a=0,o=0;o<t/2;o++){var i=8192*Math.round(e[2*o+1]/t)+Math.round(e[2*o]/t)+a;e[o]=67108863&i,a=i<67108864?0:i/67108864|0}return e},M.prototype.convert13b=function(e,t,a,i){for(var n=0,r=0;r<t;r++)n+=0|e[r],a[2*r]=8191&n,n>>>=13,a[2*r+1]=8191&n,n>>>=13;for(r=2*t;r<i;++r)a[r]=0;o(0===n),o(0==(-8192&n))},M.prototype.stub=function(e){for(var t=new Array(e),a=0;a<e;a++)t[a]=0;return t},M.prototype.mulp=function(e,t,a){var o=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(o),n=this.stub(o),r=new Array(o),c=new Array(o),l=new Array(o),s=new Array(o),p=new Array(o),d=new Array(o),f=a.words;f.length=o,this.convert13b(e.words,e.length,r,o),this.convert13b(t.words,t.length,s,o),this.transform(r,n,c,l,o,i),this.transform(s,n,p,d,o,i);for(var b=0;b<o;b++){var h=c[b]*p[b]-l[b]*d[b];l[b]=c[b]*d[b]+l[b]*p[b],c[b]=h}return this.conjugate(c,l,o),this.transform(c,l,f,n,o,i),this.conjugate(f,n,o),this.normalize13b(f,o),a.negative=e.negative^t.negative,a.length=e.length+t.length,a.strip()},n.prototype.mul=function(e){var t=new n(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},n.prototype.mulf=function(e){var t=new n(null);return t.words=new Array(this.length+e.length),h(this,e,t)},n.prototype.imul=function(e){return this.clone().mulTo(e,this)},n.prototype.imuln=function(e){o("number"==typeof e),o(e<67108864);for(var t=0,a=0;a<this.length;a++){var i=(0|this.words[a])*e,n=(67108863&i)+(67108863&t);t>>=26,t+=i/67108864|0,t+=n>>>26,this.words[a]=67108863&n}return 0!==t&&(this.words[a]=t,this.length++),this},n.prototype.muln=function(e){return this.clone().imuln(e)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),a=0;a<t.length;a++){var o=a/26|0,i=a%26;t[a]=(e.words[o]&1<<i)>>>i}return t}(e);if(0===t.length)return new n(1);for(var a=this,o=0;o<t.length&&0===t[o];o++,a=a.sqr());if(++o<t.length)for(var i=a.sqr();o<t.length;o++,i=i.sqr())0!==t[o]&&(a=a.mul(i));return a},n.prototype.iushln=function(e){o("number"==typeof e&&e>=0);var t,a=e%26,i=(e-a)/26,n=67108863>>>26-a<<26-a;if(0!==a){var r=0;for(t=0;t<this.length;t++){var c=this.words[t]&n,l=(0|this.words[t])-c<<a;this.words[t]=l|r,r=c>>>26-a}r&&(this.words[t]=r,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this.strip()},n.prototype.ishln=function(e){return o(0===this.negative),this.iushln(e)},n.prototype.iushrn=function(e,t,a){var i;o("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var n=e%26,r=Math.min((e-n)/26,this.length),c=67108863^67108863>>>n<<n,l=a;if(i-=r,i=Math.max(0,i),l){for(var s=0;s<r;s++)l.words[s]=this.words[s];l.length=r}if(0===r);else if(this.length>r)for(this.length-=r,s=0;s<this.length;s++)this.words[s]=this.words[s+r];else this.words[0]=0,this.length=1;var p=0;for(s=this.length-1;s>=0&&(0!==p||s>=i);s--){var d=0|this.words[s];this.words[s]=p<<26-n|d>>>n,p=d&c}return l&&0!==p&&(l.words[l.length++]=p),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},n.prototype.ishrn=function(e,t,a){return o(0===this.negative),this.iushrn(e,t,a)},n.prototype.shln=function(e){return this.clone().ishln(e)},n.prototype.ushln=function(e){return this.clone().iushln(e)},n.prototype.shrn=function(e){return this.clone().ishrn(e)},n.prototype.ushrn=function(e){return this.clone().iushrn(e)},n.prototype.testn=function(e){o("number"==typeof e&&e>=0);var t=e%26,a=(e-t)/26,i=1<<t;return!(this.length<=a)&&!!(this.words[a]&i)},n.prototype.imaskn=function(e){o("number"==typeof e&&e>=0);var t=e%26,a=(e-t)/26;if(o(0===this.negative,"imaskn works only with positive numbers"),this.length<=a)return this;if(0!==t&&a++,this.length=Math.min(a,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this.strip()},n.prototype.maskn=function(e){return this.clone().imaskn(e)},n.prototype.iaddn=function(e){return o("number"==typeof e),o(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},n.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},n.prototype.isubn=function(e){if(o("number"==typeof e),o(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},n.prototype.addn=function(e){return this.clone().iaddn(e)},n.prototype.subn=function(e){return this.clone().isubn(e)},n.prototype.iabs=function(){return this.negative=0,this},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(e,t,a){var i,n,r=e.length+a;this._expand(r);var c=0;for(i=0;i<e.length;i++){n=(0|this.words[i+a])+c;var l=(0|e.words[i])*t;c=((n-=67108863&l)>>26)-(l/67108864|0),this.words[i+a]=67108863&n}for(;i<this.length-a;i++)c=(n=(0|this.words[i+a])+c)>>26,this.words[i+a]=67108863&n;if(0===c)return this.strip();for(o(-1===c),c=0,i=0;i<this.length;i++)c=(n=-(0|this.words[i])+c)>>26,this.words[i]=67108863&n;return this.negative=1,this.strip()},n.prototype._wordDiv=function(e,t){var a=(this.length,e.length),o=this.clone(),i=e,r=0|i.words[i.length-1];0!==(a=26-this._countBits(r))&&(i=i.ushln(a),o.iushln(a),r=0|i.words[i.length-1]);var c,l=o.length-i.length;if("mod"!==t){(c=new n(null)).length=l+1,c.words=new Array(c.length);for(var s=0;s<c.length;s++)c.words[s]=0}var p=o.clone()._ishlnsubmul(i,1,l);0===p.negative&&(o=p,c&&(c.words[l]=1));for(var d=l-1;d>=0;d--){var f=67108864*(0|o.words[i.length+d])+(0|o.words[i.length+d-1]);for(f=Math.min(f/r|0,67108863),o._ishlnsubmul(i,f,d);0!==o.negative;)f--,o.negative=0,o._ishlnsubmul(i,1,d),o.isZero()||(o.negative^=1);c&&(c.words[d]=f)}return c&&c.strip(),o.strip(),"div"!==t&&0!==a&&o.iushrn(a),{div:c||null,mod:o}},n.prototype.divmod=function(e,t,a){return o(!e.isZero()),this.isZero()?{div:new n(0),mod:new n(0)}:0!==this.negative&&0===e.negative?(c=this.neg().divmod(e,t),"mod"!==t&&(i=c.div.neg()),"div"!==t&&(r=c.mod.neg(),a&&0!==r.negative&&r.iadd(e)),{div:i,mod:r}):0===this.negative&&0!==e.negative?(c=this.divmod(e.neg(),t),"mod"!==t&&(i=c.div.neg()),{div:i,mod:c.mod}):0!=(this.negative&e.negative)?(c=this.neg().divmod(e.neg(),t),"div"!==t&&(r=c.mod.neg(),a&&0!==r.negative&&r.isub(e)),{div:c.div,mod:r}):e.length>this.length||this.cmp(e)<0?{div:new n(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new n(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new n(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,r,c},n.prototype.div=function(e){return this.divmod(e,"div",!1).div},n.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},n.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},n.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var a=0!==t.div.negative?t.mod.isub(e):t.mod,o=e.ushrn(1),i=e.andln(1),n=a.cmp(o);return n<0||1===i&&0===n?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},n.prototype.modn=function(e){o(e<=67108863);for(var t=(1<<26)%e,a=0,i=this.length-1;i>=0;i--)a=(t*a+(0|this.words[i]))%e;return a},n.prototype.idivn=function(e){o(e<=67108863);for(var t=0,a=this.length-1;a>=0;a--){var i=(0|this.words[a])+67108864*t;this.words[a]=i/e|0,t=i%e}return this.strip()},n.prototype.divn=function(e){return this.clone().idivn(e)},n.prototype.egcd=function(e){o(0===e.negative),o(!e.isZero());var t=this,a=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new n(1),r=new n(0),c=new n(0),l=new n(1),s=0;t.isEven()&&a.isEven();)t.iushrn(1),a.iushrn(1),++s;for(var p=a.clone(),d=t.clone();!t.isZero();){for(var f=0,b=1;0==(t.words[0]&b)&&f<26;++f,b<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(i.isOdd()||r.isOdd())&&(i.iadd(p),r.isub(d)),i.iushrn(1),r.iushrn(1);for(var h=0,M=1;0==(a.words[0]&M)&&h<26;++h,M<<=1);if(h>0)for(a.iushrn(h);h-- >0;)(c.isOdd()||l.isOdd())&&(c.iadd(p),l.isub(d)),c.iushrn(1),l.iushrn(1);t.cmp(a)>=0?(t.isub(a),i.isub(c),r.isub(l)):(a.isub(t),c.isub(i),l.isub(r))}return{a:c,b:l,gcd:a.iushln(s)}},n.prototype._invmp=function(e){o(0===e.negative),o(!e.isZero());var t=this,a=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,r=new n(1),c=new n(0),l=a.clone();t.cmpn(1)>0&&a.cmpn(1)>0;){for(var s=0,p=1;0==(t.words[0]&p)&&s<26;++s,p<<=1);if(s>0)for(t.iushrn(s);s-- >0;)r.isOdd()&&r.iadd(l),r.iushrn(1);for(var d=0,f=1;0==(a.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(a.iushrn(d);d-- >0;)c.isOdd()&&c.iadd(l),c.iushrn(1);t.cmp(a)>=0?(t.isub(a),r.isub(c)):(a.isub(t),c.isub(r))}return(i=0===t.cmpn(1)?r:c).cmpn(0)<0&&i.iadd(e),i},n.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),a=e.clone();t.negative=0,a.negative=0;for(var o=0;t.isEven()&&a.isEven();o++)t.iushrn(1),a.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;a.isEven();)a.iushrn(1);var i=t.cmp(a);if(i<0){var n=t;t=a,a=n}else if(0===i||0===a.cmpn(1))break;t.isub(a)}return a.iushln(o)},n.prototype.invm=function(e){return this.egcd(e).a.umod(e)},n.prototype.isEven=function(){return 0==(1&this.words[0])},n.prototype.isOdd=function(){return 1==(1&this.words[0])},n.prototype.andln=function(e){return this.words[0]&e},n.prototype.bincn=function(e){o("number"==typeof e);var t=e%26,a=(e-t)/26,i=1<<t;if(this.length<=a)return this._expand(a+1),this.words[a]|=i,this;for(var n=i,r=a;0!==n&&r<this.length;r++){var c=0|this.words[r];n=(c+=n)>>>26,c&=67108863,this.words[r]=c}return 0!==n&&(this.words[r]=n,this.length++),this},n.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},n.prototype.cmpn=function(e){var t,a=e<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)t=1;else{a&&(e=-e),o(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},n.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},n.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,a=this.length-1;a>=0;a--){var o=0|this.words[a],i=0|e.words[a];if(o!==i){o<i?t=-1:o>i&&(t=1);break}}return t},n.prototype.gtn=function(e){return 1===this.cmpn(e)},n.prototype.gt=function(e){return 1===this.cmp(e)},n.prototype.gten=function(e){return this.cmpn(e)>=0},n.prototype.gte=function(e){return this.cmp(e)>=0},n.prototype.ltn=function(e){return-1===this.cmpn(e)},n.prototype.lt=function(e){return-1===this.cmp(e)},n.prototype.lten=function(e){return this.cmpn(e)<=0},n.prototype.lte=function(e){return this.cmp(e)<=0},n.prototype.eqn=function(e){return 0===this.cmpn(e)},n.prototype.eq=function(e){return 0===this.cmp(e)},n.red=function(e){return new E(e)},n.prototype.toRed=function(e){return o(!this.red,"Already a number in reduction context"),o(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},n.prototype.fromRed=function(){return o(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(e){return this.red=e,this},n.prototype.forceRed=function(e){return o(!this.red,"Already a number in reduction context"),this._forceRed(e)},n.prototype.redAdd=function(e){return o(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},n.prototype.redIAdd=function(e){return o(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},n.prototype.redSub=function(e){return o(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},n.prototype.redISub=function(e){return o(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},n.prototype.redShl=function(e){return o(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},n.prototype.redMul=function(e){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},n.prototype.redIMul=function(e){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},n.prototype.redSqr=function(){return o(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return o(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return o(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return o(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return o(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(e){return o(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var m={k256:null,p224:null,p192:null,p25519:null};function z(e,t){this.name=e,this.p=new n(t,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function u(){z.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function O(){z.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function C(){z.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function A(){z.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(e){if("string"==typeof e){var t=n._prime(e);this.m=t.p,this.prime=t}else o(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){E.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new n(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}z.prototype._tmp=function(){var e=new n(null);return e.words=new Array(Math.ceil(this.n/13)),e},z.prototype.ireduce=function(e){var t,a=e;do{this.split(a,this.tmp),t=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(t>this.n);var o=t<this.n?-1:a.ucmp(this.p);return 0===o?(a.words[0]=0,a.length=1):o>0?a.isub(this.p):a.strip(),a},z.prototype.split=function(e,t){e.iushrn(this.n,0,t)},z.prototype.imulK=function(e){return e.imul(this.k)},i(u,z),u.prototype.split=function(e,t){for(var a=Math.min(e.length,9),o=0;o<a;o++)t.words[o]=e.words[o];if(t.length=a,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(t.words[t.length++]=4194303&i,o=10;o<e.length;o++){var n=0|e.words[o];e.words[o-10]=(4194303&n)<<4|i>>>22,i=n}i>>>=22,e.words[o-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},u.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,a=0;a<e.length;a++){var o=0|e.words[a];t+=977*o,e.words[a]=67108863&t,t=64*o+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(O,z),i(C,z),i(A,z),A.prototype.imulK=function(e){for(var t=0,a=0;a<e.length;a++){var o=19*(0|e.words[a])+t,i=67108863&o;o>>>=26,e.words[a]=i,t=o}return 0!==t&&(e.words[e.length++]=t),e},n._prime=function(e){if(m[e])return m[e];var t;if("k256"===e)t=new u;else if("p224"===e)t=new O;else if("p192"===e)t=new C;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new A}return m[e]=t,t},E.prototype._verify1=function(e){o(0===e.negative,"red works only with positives"),o(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,t){o(0==(e.negative|t.negative),"red works only with positives"),o(e.red&&e.red===t.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.prototype.add=function(e,t){this._verify2(e,t);var a=e.add(t);return a.cmp(this.m)>=0&&a.isub(this.m),a._forceRed(this)},E.prototype.iadd=function(e,t){this._verify2(e,t);var a=e.iadd(t);return a.cmp(this.m)>=0&&a.isub(this.m),a},E.prototype.sub=function(e,t){this._verify2(e,t);var a=e.sub(t);return a.cmpn(0)<0&&a.iadd(this.m),a._forceRed(this)},E.prototype.isub=function(e,t){this._verify2(e,t);var a=e.isub(t);return a.cmpn(0)<0&&a.iadd(this.m),a},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(o(t%2==1),3===t){var a=this.m.add(new n(1)).iushrn(2);return this.pow(e,a)}for(var i=this.m.subn(1),r=0;!i.isZero()&&0===i.andln(1);)r++,i.iushrn(1);o(!i.isZero());var c=new n(1).toRed(this),l=c.redNeg(),s=this.m.subn(1).iushrn(1),p=this.m.bitLength();for(p=new n(2*p*p).toRed(this);0!==this.pow(p,s).cmp(l);)p.redIAdd(l);for(var d=this.pow(p,i),f=this.pow(e,i.addn(1).iushrn(1)),b=this.pow(e,i),h=r;0!==b.cmp(c);){for(var M=b,m=0;0!==M.cmp(c);m++)M=M.redSqr();o(m<h);var z=this.pow(d,new n(1).iushln(h-m-1));f=f.redMul(z),d=z.redSqr(),b=b.redMul(d),h=m}return f},E.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},E.prototype.pow=function(e,t){if(t.isZero())return new n(1).toRed(this);if(0===t.cmpn(1))return e.clone();var a=new Array(16);a[0]=new n(1).toRed(this),a[1]=e;for(var o=2;o<a.length;o++)a[o]=this.mul(a[o-1],e);var i=a[0],r=0,c=0,l=t.bitLength()%26;for(0===l&&(l=26),o=t.length-1;o>=0;o--){for(var s=t.words[o],p=l-1;p>=0;p--){var d=s>>p&1;i!==a[0]&&(i=this.sqr(i)),0!==d||0!==r?(r<<=1,r|=d,(4===++c||0===o&&0===p)&&(i=this.mul(i,a[r]),c=0,r=0)):c=0}l=26}return i},E.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},n.mont=function(e){return new k(e)},i(k,E),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var a=e.imul(t),o=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=a.isub(o).iushrn(this.shift),n=i;return i.cmp(this.m)>=0?n=i.isub(this.m):i.cmpn(0)<0&&(n=i.iadd(this.m)),n._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new n(0)._forceRed(this);var a=e.mul(t),o=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=a.isub(o).iushrn(this.shift),r=i;return i.cmp(this.m)>=0?r=i.isub(this.m):i.cmpn(0)<0&&(r=i.iadd(this.m)),r._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,a(360)(e))},,,function(e,t,a){var o=a(36),i=a(26),n=a(196),r=a(206),c=a(215),l=function(e,t,a){var s,p,d,f=e&l.F,b=e&l.G,h=e&l.S,M=e&l.P,m=e&l.B,z=e&l.W,u=b?i:i[t]||(i[t]={}),O=u.prototype,C=b?o:h?o[t]:(o[t]||{}).prototype;for(s in b&&(a=t),a)(p=!f&&C&&void 0!==C[s])&&c(u,s)||(d=p?C[s]:a[s],u[s]=b&&"function"!=typeof C[s]?a[s]:m&&p?n(d,o):z&&C[s]==d?function(e){var t=function(t,a,o){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,a)}return new e(t,a,o)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(d):M&&"function"==typeof d?n(Function.call,d):d,M&&((u.virtual||(u.virtual={}))[s]=d,e&l.R&&O&&!O[s]&&r(O,s,d)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t,a){"use strict";(function(e){
13
  /*!
14
  * The buffer module from node.js, for the browser.
15
  *
16
  * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
17
  * @license MIT
18
  */