Version Description
2019-02-12 =
Feature: Added new block: "Products by Attribute"
Enhancement: Added the ability to resize the Featured Product block (a default and minimum height can be set by your theme)
Enhancement: Updated button on Featured Product block to match core button block behavior
Components: Added new control component
GridLayoutControl
to manage row/column layout valuesComponents: Updated
ProductAttributeControl
to list only attribute types, then once selected, list terms in that attributeUX: Remove ability to change selected product in Featured Product block, to prevent "sticky" product links.
Fix: A product without an image will now use the placeholder image in grid-layout block previews
Fix: Previously, there was a PHP notice when a Featured Product has no background image
Fix: There is now an enforced limit on column and row counts (which can be set by your theme)
API: Added
attr_operator
support to products endpoint to compare product attribute termsBuild: Update packages
Build: Remove unnecessary internationalization build step
Release Info
Developer | ryelle |
Plugin | WooCommerce Gutenberg Products Block |
Version | 1.4.0 |
Comparing to | |
See all releases |
Code changes from version 1.3.1 to 1.4.0
- assets/js/blocks/featured-product/block.js +62 -54
- assets/js/blocks/featured-product/index.js +10 -1
- assets/js/blocks/featured-product/style.scss +26 -11
- assets/js/blocks/product-best-sellers/block.js +6 -19
- assets/js/blocks/product-category/block.js +5 -14
- assets/js/blocks/product-new/block.js +6 -19
- assets/js/blocks/product-on-sale/block.js +6 -19
- assets/js/blocks/product-top-rated/block.js +6 -19
- assets/js/blocks/products-by-attribute/block.js +261 -0
- assets/js/blocks/products-by-attribute/index.js +100 -0
- assets/js/blocks/products-by-attribute/style.scss +3 -0
- assets/js/components/grid-layout-control/index.js +63 -0
- assets/js/components/product-attribute-control/index.js +157 -40
- assets/js/components/product-attribute-control/style.scss +47 -1
- assets/js/components/product-category-control/index.js +5 -1
- assets/js/components/product-preview/index.js +4 -0
- assets/js/components/search-list-control/style.scss +14 -0
- assets/js/utils/get-query.js +20 -2
- assets/js/utils/get-shortcode.js +25 -2
- assets/js/utils/shared-attributes.js +0 -8
- build/featured-product.css +2 -2
- build/featured-product.js +1 -1
- build/handpicked-products.css +1 -1
- build/handpicked-products.js +1 -1
- build/product-best-sellers.css +1 -1
- build/product-best-sellers.js +1 -1
- build/product-category.css +1 -1
- build/product-category.js +1 -1
- build/product-new.css +1 -1
- build/product-new.js +1 -1
- build/product-on-sale.css +1 -1
- build/product-on-sale.js +1 -1
- build/product-top-rated.css +1 -1
- build/product-top-rated.js +1 -1
- build/products-attribute.css +4 -0
- build/products-attribute.js +1 -0
- build/products-block.js +1 -1
- build/products-grid.js +1 -1
- build/vendors.css +1 -1
- build/vendors.js +2 -2
@@ -6,11 +6,11 @@ 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 {
|
@@ -19,6 +19,7 @@ import {
|
|
19 |
PanelBody,
|
20 |
Placeholder,
|
21 |
RangeControl,
|
|
|
22 |
Spinner,
|
23 |
ToggleControl,
|
24 |
Toolbar,
|
@@ -39,6 +40,11 @@ import {
|
|
39 |
getImageIdFromProduct,
|
40 |
} from '../../utils/products';
|
41 |
|
|
|
|
|
|
|
|
|
|
|
42 |
/**
|
43 |
* Generate a style object given either a product object or URL to an image.
|
44 |
*
|
@@ -120,18 +126,6 @@ class FeaturedProduct extends Component {
|
|
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', 'woo-gutenberg-products-block' ) }
|
@@ -206,12 +200,12 @@ class FeaturedProduct extends Component {
|
|
206 |
}
|
207 |
|
208 |
render() {
|
209 |
-
const { attributes,
|
210 |
const {
|
211 |
contentAlign,
|
212 |
dimRatio,
|
213 |
editMode,
|
214 |
-
|
215 |
showDesc,
|
216 |
showPrice,
|
217 |
} = attributes;
|
@@ -219,6 +213,7 @@ class FeaturedProduct extends Component {
|
|
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,
|
@@ -235,6 +230,10 @@ class FeaturedProduct extends Component {
|
|
235 |
style.backgroundColor = overlayColor.color;
|
236 |
}
|
237 |
|
|
|
|
|
|
|
|
|
238 |
return (
|
239 |
<Fragment>
|
240 |
<BlockControls>
|
@@ -244,16 +243,6 @@ class FeaturedProduct extends Component {
|
|
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
|
@@ -280,34 +269,49 @@ class FeaturedProduct extends Component {
|
|
280 |
) : (
|
281 |
<Fragment>
|
282 |
{ !! product ? (
|
283 |
-
<
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
{
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
309 |
</div>
|
310 |
-
</
|
311 |
) : (
|
312 |
<Placeholder
|
313 |
className="wc-block-featured-product"
|
@@ -330,15 +334,19 @@ class FeaturedProduct extends Component {
|
|
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
|
6 |
import {
|
7 |
AlignmentToolbar,
|
8 |
BlockControls,
|
9 |
+
InnerBlocks,
|
10 |
InspectorControls,
|
11 |
MediaUpload,
|
12 |
MediaUploadCheck,
|
13 |
PanelColorSettings,
|
|
|
14 |
withColors,
|
15 |
} from '@wordpress/editor';
|
16 |
import {
|
19 |
PanelBody,
|
20 |
Placeholder,
|
21 |
RangeControl,
|
22 |
+
ResizableBox,
|
23 |
Spinner,
|
24 |
ToggleControl,
|
25 |
Toolbar,
|
40 |
getImageIdFromProduct,
|
41 |
} from '../../utils/products';
|
42 |
|
43 |
+
/**
|
44 |
+
* The min-height for the block content.
|
45 |
+
*/
|
46 |
+
const MIN_HEIGHT = wc_product_block_data.min_height;
|
47 |
+
|
48 |
/**
|
49 |
* Generate a style object given either a product object or URL to an image.
|
50 |
*
|
126 |
|
127 |
return (
|
128 |
<InspectorControls key="inspector">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
129 |
<PanelBody title={ __( 'Content', 'woo-gutenberg-products-block' ) }>
|
130 |
<ToggleControl
|
131 |
label={ __( 'Show description', 'woo-gutenberg-products-block' ) }
|
200 |
}
|
201 |
|
202 |
render() {
|
203 |
+
const { attributes, isSelected, overlayColor, setAttributes } = this.props;
|
204 |
const {
|
205 |
contentAlign,
|
206 |
dimRatio,
|
207 |
editMode,
|
208 |
+
height,
|
209 |
showDesc,
|
210 |
showPrice,
|
211 |
} = attributes;
|
213 |
const classes = classnames(
|
214 |
'wc-block-featured-product',
|
215 |
{
|
216 |
+
'is-selected': isSelected,
|
217 |
'is-loading': ! product && ! loaded,
|
218 |
'is-not-found': ! product && loaded,
|
219 |
'has-background-dim': dimRatio !== 0,
|
230 |
style.backgroundColor = overlayColor.color;
|
231 |
}
|
232 |
|
233 |
+
const onResizeStop = ( event, direction, elt ) => {
|
234 |
+
setAttributes( { height: parseInt( elt.style.height ) } );
|
235 |
+
};
|
236 |
+
|
237 |
return (
|
238 |
<Fragment>
|
239 |
<BlockControls>
|
243 |
setAttributes( { contentAlign: nextAlign } );
|
244 |
} }
|
245 |
/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
246 |
<MediaUploadCheck>
|
247 |
<Toolbar>
|
248 |
<MediaUpload
|
269 |
) : (
|
270 |
<Fragment>
|
271 |
{ !! product ? (
|
272 |
+
<ResizableBox
|
273 |
+
className={ classes }
|
274 |
+
size={ { height } }
|
275 |
+
minHeight={ MIN_HEIGHT }
|
276 |
+
enable={ { bottom: true } }
|
277 |
+
onResizeStop={ onResizeStop }
|
278 |
+
style={ style }
|
279 |
+
>
|
280 |
+
<div className="wc-block-featured-product__wrapper">
|
281 |
+
<h2 className="wc-block-featured-product__title">
|
282 |
+
{ product.name }
|
283 |
+
</h2>
|
284 |
+
{ showDesc && (
|
285 |
+
<div
|
286 |
+
className="wc-block-featured-product__description"
|
287 |
+
dangerouslySetInnerHTML={ {
|
288 |
+
__html: product.short_description,
|
289 |
+
} }
|
290 |
+
/>
|
291 |
+
) }
|
292 |
+
{ showPrice && (
|
293 |
+
<div
|
294 |
+
className="wc-block-featured-product__price"
|
295 |
+
dangerouslySetInnerHTML={ { __html: product.price_html } }
|
296 |
+
/>
|
297 |
+
) }
|
298 |
+
<div className="wc-block-featured-product__link">
|
299 |
+
<InnerBlocks
|
300 |
+
template={ [
|
301 |
+
[
|
302 |
+
'core/button',
|
303 |
+
{
|
304 |
+
text: __( 'Shop now', 'woo-gutenberg-products-block' ),
|
305 |
+
url: product.permalink,
|
306 |
+
align: 'center',
|
307 |
+
},
|
308 |
+
],
|
309 |
+
] }
|
310 |
+
templateLock="all"
|
311 |
+
/>
|
312 |
+
</div>
|
313 |
</div>
|
314 |
+
</ResizableBox>
|
315 |
) : (
|
316 |
<Placeholder
|
317 |
className="wc-block-featured-product"
|
334 |
|
335 |
FeaturedProduct.propTypes = {
|
336 |
/**
|
337 |
+
* The attributes for this block.
|
338 |
*/
|
339 |
attributes: PropTypes.object.isRequired,
|
340 |
+
/**
|
341 |
+
* Whether this block is currently active.
|
342 |
+
*/
|
343 |
+
isSelected: PropTypes.bool.isRequired,
|
344 |
/**
|
345 |
* The register block name.
|
346 |
*/
|
347 |
name: PropTypes.string.isRequired,
|
348 |
/**
|
349 |
+
* A callback to update attributes.
|
350 |
*/
|
351 |
setAttributes: PropTypes.func.isRequired,
|
352 |
// from withColors
|
@@ -2,6 +2,7 @@
|
|
2 |
* External dependencies
|
3 |
*/
|
4 |
import { __ } from '@wordpress/i18n';
|
|
|
5 |
import { registerBlockType } from '@wordpress/blocks';
|
6 |
|
7 |
/**
|
@@ -50,6 +51,14 @@ registerBlockType( 'woocommerce/featured-product', {
|
|
50 |
default: true,
|
51 |
},
|
52 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
/**
|
54 |
* ID for a custom image, overriding the product's featured image.
|
55 |
*/
|
@@ -123,6 +132,6 @@ registerBlockType( 'woocommerce/featured-product', {
|
|
123 |
* Block content is rendered in PHP, not via save function.
|
124 |
*/
|
125 |
save() {
|
126 |
-
return
|
127 |
},
|
128 |
} );
|
2 |
* External dependencies
|
3 |
*/
|
4 |
import { __ } from '@wordpress/i18n';
|
5 |
+
import { InnerBlocks } from '@wordpress/editor';
|
6 |
import { registerBlockType } from '@wordpress/blocks';
|
7 |
|
8 |
/**
|
51 |
default: true,
|
52 |
},
|
53 |
|
54 |
+
/**
|
55 |
+
* A fixed height for the block.
|
56 |
+
*/
|
57 |
+
height: {
|
58 |
+
type: 'number',
|
59 |
+
default: wc_product_block_data.default_height,
|
60 |
+
},
|
61 |
+
|
62 |
/**
|
63 |
* ID for a custom image, overriding the product's featured image.
|
64 |
*/
|
132 |
* Block content is rendered in PHP, not via save function.
|
133 |
*/
|
134 |
save() {
|
135 |
+
return <InnerBlocks.Content />;
|
136 |
},
|
137 |
} );
|
@@ -3,28 +3,39 @@
|
|
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 |
}
|
@@ -35,8 +46,7 @@
|
|
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 |
}
|
@@ -44,14 +54,10 @@
|
|
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,
|
@@ -62,6 +68,15 @@
|
|
62 |
}
|
63 |
}
|
64 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
.wc-block-featured-product__title {
|
66 |
margin-top: 0;
|
67 |
|
3 |
background-color: $black;
|
4 |
background-size: cover;
|
5 |
background-position: center center;
|
|
|
6 |
width: 100%;
|
7 |
margin: 0 0 1.5em 0;
|
8 |
display: flex;
|
9 |
justify-content: center;
|
10 |
align-items: center;
|
|
|
11 |
flex-wrap: wrap;
|
12 |
align-content: center;
|
13 |
|
14 |
+
.wc-block-featured-product__wrapper {
|
15 |
+
overflow: hidden;
|
16 |
+
height: 100%;
|
17 |
+
display: flex;
|
18 |
+
justify-content: center;
|
19 |
+
align-items: center;
|
20 |
+
flex-wrap: wrap;
|
21 |
+
align-content: center;
|
22 |
+
}
|
23 |
+
|
24 |
&.components-placeholder {
|
25 |
// Reset the background for the placeholders.
|
26 |
background-color: rgba( 139, 139, 150, .1 );
|
27 |
}
|
28 |
|
29 |
+
.components-resizable-box__handle {
|
30 |
+
z-index: 10;
|
31 |
+
}
|
32 |
+
|
33 |
&.has-left-content {
|
34 |
justify-content: flex-start;
|
35 |
|
36 |
.wc-block-featured-product__title,
|
37 |
.wc-block-featured-product__description,
|
38 |
+
.wc-block-featured-product__price {
|
|
|
39 |
margin-left: 0;
|
40 |
text-align: left;
|
41 |
}
|
46 |
|
47 |
.wc-block-featured-product__title,
|
48 |
.wc-block-featured-product__description,
|
49 |
+
.wc-block-featured-product__price {
|
|
|
50 |
margin-right: 0;
|
51 |
text-align: right;
|
52 |
}
|
54 |
|
55 |
.wc-block-featured-product__title,
|
56 |
.wc-block-featured-product__description,
|
57 |
+
.wc-block-featured-product__price {
|
|
|
58 |
color: $white;
|
59 |
line-height: 1.25;
|
|
|
60 |
margin-bottom: 0;
|
|
|
|
|
61 |
text-align: center;
|
62 |
|
63 |
a,
|
68 |
}
|
69 |
}
|
70 |
|
71 |
+
.wc-block-featured-product__title,
|
72 |
+
.wc-block-featured-product__description,
|
73 |
+
.wc-block-featured-product__price,
|
74 |
+
.wc-block-featured-product__link {
|
75 |
+
width: 100%;
|
76 |
+
padding: 0 48px 16px 48px;
|
77 |
+
z-index: 1;
|
78 |
+
}
|
79 |
+
|
80 |
.wc-block-featured-product__title {
|
81 |
margin-top: 0;
|
82 |
|
@@ -8,18 +8,14 @@ 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 |
|
@@ -78,19 +74,10 @@ class ProductBestSellersBlock extends Component {
|
|
78 |
title={ __( 'Layout', 'woo-gutenberg-products-block' ) }
|
79 |
initialOpen
|
80 |
>
|
81 |
-
<
|
82 |
-
|
83 |
-
|
84 |
-
|
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
|
8 |
import { Component, Fragment } from '@wordpress/element';
|
9 |
import { debounce } from 'lodash';
|
10 |
import Gridicon from 'gridicons';
|
11 |
+
import { PanelBody, Placeholder, Spinner } from '@wordpress/components';
|
|
|
|
|
|
|
|
|
|
|
12 |
import PropTypes from 'prop-types';
|
13 |
|
14 |
/**
|
15 |
* Internal dependencies
|
16 |
*/
|
17 |
import getQuery from '../../utils/get-query';
|
18 |
+
import GridLayoutControl from '../../components/grid-layout-control';
|
19 |
import ProductCategoryControl from '../../components/product-category-control';
|
20 |
import ProductPreview from '../../components/product-preview';
|
21 |
|
74 |
title={ __( 'Layout', 'woo-gutenberg-products-block' ) }
|
75 |
initialOpen
|
76 |
>
|
77 |
+
<GridLayoutControl
|
78 |
+
columns={ columns }
|
79 |
+
rows={ rows }
|
80 |
+
setAttributes={ setAttributes }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
/>
|
82 |
</PanelBody>
|
83 |
<PanelBody
|
@@ -9,7 +9,6 @@ import {
|
|
9 |
Button,
|
10 |
PanelBody,
|
11 |
Placeholder,
|
12 |
-
RangeControl,
|
13 |
Spinner,
|
14 |
Toolbar,
|
15 |
withSpokenMessages,
|
@@ -22,6 +21,7 @@ import PropTypes from 'prop-types';
|
|
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';
|
@@ -107,19 +107,10 @@ class ProductByCategoryBlock extends Component {
|
|
107 |
title={ __( 'Layout', 'woo-gutenberg-products-block' ) }
|
108 |
initialOpen
|
109 |
>
|
110 |
-
<
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
min={ wc_product_block_data.min_columns }
|
115 |
-
max={ wc_product_block_data.max_columns }
|
116 |
-
/>
|
117 |
-
<RangeControl
|
118 |
-
label={ __( 'Rows', 'woo-gutenberg-products-block' ) }
|
119 |
-
value={ rows }
|
120 |
-
onChange={ ( value ) => setAttributes( { rows: value } ) }
|
121 |
-
min={ wc_product_block_data.min_rows }
|
122 |
-
max={ wc_product_block_data.max_rows }
|
123 |
/>
|
124 |
</PanelBody>
|
125 |
<PanelBody
|
9 |
Button,
|
10 |
PanelBody,
|
11 |
Placeholder,
|
|
|
12 |
Spinner,
|
13 |
Toolbar,
|
14 |
withSpokenMessages,
|
21 |
* Internal dependencies
|
22 |
*/
|
23 |
import getQuery from '../../utils/get-query';
|
24 |
+
import GridLayoutControl from '../../components/grid-layout-control';
|
25 |
import ProductCategoryControl from '../../components/product-category-control';
|
26 |
import ProductOrderbyControl from '../../components/product-orderby-control';
|
27 |
import ProductPreview from '../../components/product-preview';
|
107 |
title={ __( 'Layout', 'woo-gutenberg-products-block' ) }
|
108 |
initialOpen
|
109 |
>
|
110 |
+
<GridLayoutControl
|
111 |
+
columns={ columns }
|
112 |
+
rows={ rows }
|
113 |
+
setAttributes={ setAttributes }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
/>
|
115 |
</PanelBody>
|
116 |
<PanelBody
|
@@ -7,18 +7,14 @@ 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';
|
@@ -77,19 +73,10 @@ class ProductNewestBlock extends Component {
|
|
77 |
title={ __( 'Layout', 'woo-gutenberg-products-block' ) }
|
78 |
initialOpen
|
79 |
>
|
80 |
-
<
|
81 |
-
|
82 |
-
|
83 |
-
|
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
|
7 |
import { InspectorControls } from '@wordpress/editor';
|
8 |
import { Component, Fragment } from '@wordpress/element';
|
9 |
import { debounce } from 'lodash';
|
10 |
+
import { PanelBody, Placeholder, Spinner } from '@wordpress/components';
|
|
|
|
|
|
|
|
|
|
|
11 |
import PropTypes from 'prop-types';
|
12 |
|
13 |
/**
|
14 |
* Internal dependencies
|
15 |
*/
|
16 |
import getQuery from '../../utils/get-query';
|
17 |
+
import GridLayoutControl from '../../components/grid-layout-control';
|
18 |
import { IconNewReleases } from '../../components/icons';
|
19 |
import ProductCategoryControl from '../../components/product-category-control';
|
20 |
import ProductPreview from '../../components/product-preview';
|
73 |
title={ __( 'Layout', 'woo-gutenberg-products-block' ) }
|
74 |
initialOpen
|
75 |
>
|
76 |
+
<GridLayoutControl
|
77 |
+
columns={ columns }
|
78 |
+
rows={ rows }
|
79 |
+
setAttributes={ setAttributes }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
/>
|
81 |
</PanelBody>
|
82 |
<PanelBody
|
@@ -8,18 +8,14 @@ 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';
|
@@ -82,19 +78,10 @@ class ProductOnSaleBlock extends Component {
|
|
82 |
title={ __( 'Layout', 'woo-gutenberg-products-block' ) }
|
83 |
initialOpen
|
84 |
>
|
85 |
-
<
|
86 |
-
|
87 |
-
|
88 |
-
|
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
|
8 |
import { Component, Fragment } from '@wordpress/element';
|
9 |
import { debounce } from 'lodash';
|
10 |
import Gridicon from 'gridicons';
|
11 |
+
import { PanelBody, Placeholder, Spinner } from '@wordpress/components';
|
|
|
|
|
|
|
|
|
|
|
12 |
import PropTypes from 'prop-types';
|
13 |
|
14 |
/**
|
15 |
* Internal dependencies
|
16 |
*/
|
17 |
import getQuery from '../../utils/get-query';
|
18 |
+
import GridLayoutControl from '../../components/grid-layout-control';
|
19 |
import ProductCategoryControl from '../../components/product-category-control';
|
20 |
import ProductOrderbyControl from '../../components/product-orderby-control';
|
21 |
import ProductPreview from '../../components/product-preview';
|
78 |
title={ __( 'Layout', 'woo-gutenberg-products-block' ) }
|
79 |
initialOpen
|
80 |
>
|
81 |
+
<GridLayoutControl
|
82 |
+
columns={ columns }
|
83 |
+
rows={ rows }
|
84 |
+
setAttributes={ setAttributes }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
85 |
/>
|
86 |
</PanelBody>
|
87 |
<PanelBody
|
@@ -8,18 +8,14 @@ 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 |
|
@@ -77,19 +73,10 @@ class ProductTopRatedBlock extends Component {
|
|
77 |
title={ __( 'Layout', 'woo-gutenberg-products-block' ) }
|
78 |
initialOpen
|
79 |
>
|
80 |
-
<
|
81 |
-
|
82 |
-
|
83 |
-
|
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
|
8 |
import { Component, Fragment } from '@wordpress/element';
|
9 |
import { debounce } from 'lodash';
|
10 |
import Gridicon from 'gridicons';
|
11 |
+
import { PanelBody, Placeholder, Spinner } from '@wordpress/components';
|
|
|
|
|
|
|
|
|
|
|
12 |
import PropTypes from 'prop-types';
|
13 |
|
14 |
/**
|
15 |
* Internal dependencies
|
16 |
*/
|
17 |
import getQuery from '../../utils/get-query';
|
18 |
+
import GridLayoutControl from '../../components/grid-layout-control';
|
19 |
import ProductCategoryControl from '../../components/product-category-control';
|
20 |
import ProductPreview from '../../components/product-preview';
|
21 |
|
73 |
title={ __( 'Layout', 'woo-gutenberg-products-block' ) }
|
74 |
initialOpen
|
75 |
>
|
76 |
+
<GridLayoutControl
|
77 |
+
columns={ columns }
|
78 |
+
rows={ rows }
|
79 |
+
setAttributes={ setAttributes }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
/>
|
81 |
</PanelBody>
|
82 |
<PanelBody
|
@@ -0,0 +1,261 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
Spinner,
|
13 |
+
Toolbar,
|
14 |
+
withSpokenMessages,
|
15 |
+
} from '@wordpress/components';
|
16 |
+
import { Component, Fragment } from '@wordpress/element';
|
17 |
+
import { debounce } from 'lodash';
|
18 |
+
import Gridicon from 'gridicons';
|
19 |
+
import PropTypes from 'prop-types';
|
20 |
+
|
21 |
+
/**
|
22 |
+
* Internal dependencies
|
23 |
+
*/
|
24 |
+
import getQuery from '../../utils/get-query';
|
25 |
+
import GridLayoutControl from '../../components/grid-layout-control';
|
26 |
+
import ProductAttributeControl from '../../components/product-attribute-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 "Products by Attribute".
|
32 |
+
*/
|
33 |
+
class ProductsByAttributeBlock 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 |
+
if ( this.props.attributes.attributes ) {
|
46 |
+
this.getProducts();
|
47 |
+
}
|
48 |
+
}
|
49 |
+
|
50 |
+
componentDidUpdate( prevProps ) {
|
51 |
+
const hasChange = [
|
52 |
+
'attributes',
|
53 |
+
'attrOperator',
|
54 |
+
'columns',
|
55 |
+
'orderby',
|
56 |
+
'rows',
|
57 |
+
].reduce( ( acc, key ) => {
|
58 |
+
return acc || prevProps.attributes[ key ] !== this.props.attributes[ key ];
|
59 |
+
}, false );
|
60 |
+
if ( hasChange ) {
|
61 |
+
this.debouncedGetProducts();
|
62 |
+
}
|
63 |
+
}
|
64 |
+
|
65 |
+
getProducts() {
|
66 |
+
const blockAttributes = this.props.attributes;
|
67 |
+
if ( ! blockAttributes.attributes.length ) {
|
68 |
+
// We've removed all selected attributes, or no attributes have been selected yet.
|
69 |
+
this.setState( { products: [], loaded: true } );
|
70 |
+
return;
|
71 |
+
}
|
72 |
+
apiFetch( {
|
73 |
+
path: addQueryArgs(
|
74 |
+
'/wc-pb/v3/products',
|
75 |
+
getQuery( blockAttributes, this.props.name )
|
76 |
+
),
|
77 |
+
} )
|
78 |
+
.then( ( products ) => {
|
79 |
+
this.setState( { products, loaded: true } );
|
80 |
+
} )
|
81 |
+
.catch( () => {
|
82 |
+
this.setState( { products: [], loaded: true } );
|
83 |
+
} );
|
84 |
+
}
|
85 |
+
|
86 |
+
getInspectorControls() {
|
87 |
+
const { setAttributes } = this.props;
|
88 |
+
const { attributes, attrOperator, columns, orderby, rows } = this.props.attributes;
|
89 |
+
|
90 |
+
return (
|
91 |
+
<InspectorControls key="inspector">
|
92 |
+
<PanelBody
|
93 |
+
title={ __( 'Layout', 'woo-gutenberg-products-block' ) }
|
94 |
+
initialOpen
|
95 |
+
>
|
96 |
+
<GridLayoutControl
|
97 |
+
columns={ columns }
|
98 |
+
rows={ rows }
|
99 |
+
setAttributes={ setAttributes }
|
100 |
+
/>
|
101 |
+
</PanelBody>
|
102 |
+
<PanelBody
|
103 |
+
title={ __(
|
104 |
+
'Filter by Product Attribute',
|
105 |
+
'woo-gutenberg-products-block'
|
106 |
+
) }
|
107 |
+
initialOpen={ false }
|
108 |
+
>
|
109 |
+
<ProductAttributeControl
|
110 |
+
selected={ attributes }
|
111 |
+
onChange={ ( value = [] ) => {
|
112 |
+
const result = value.map( ( { id, attr_slug } ) => ( { // eslint-disable-line camelcase
|
113 |
+
id,
|
114 |
+
attr_slug,
|
115 |
+
} ) );
|
116 |
+
setAttributes( { attributes: result } );
|
117 |
+
} }
|
118 |
+
operator={ attrOperator }
|
119 |
+
onOperatorChange={ ( value = 'any' ) =>
|
120 |
+
setAttributes( { attrOperator: value } )
|
121 |
+
}
|
122 |
+
/>
|
123 |
+
</PanelBody>
|
124 |
+
<PanelBody
|
125 |
+
title={ __( 'Order By', 'woo-gutenberg-products-block' ) }
|
126 |
+
initialOpen={ false }
|
127 |
+
>
|
128 |
+
<ProductOrderbyControl
|
129 |
+
setAttributes={ setAttributes }
|
130 |
+
value={ orderby }
|
131 |
+
/>
|
132 |
+
</PanelBody>
|
133 |
+
</InspectorControls>
|
134 |
+
);
|
135 |
+
}
|
136 |
+
|
137 |
+
renderEditMode() {
|
138 |
+
const { debouncedSpeak, setAttributes } = this.props;
|
139 |
+
const blockAttributes = this.props.attributes;
|
140 |
+
const onDone = () => {
|
141 |
+
setAttributes( { editMode: false } );
|
142 |
+
debouncedSpeak(
|
143 |
+
__(
|
144 |
+
'Showing Products by Attribute block preview.',
|
145 |
+
'woo-gutenberg-products-block'
|
146 |
+
)
|
147 |
+
);
|
148 |
+
};
|
149 |
+
|
150 |
+
return (
|
151 |
+
<Placeholder
|
152 |
+
icon={ <Gridicon icon="custom-post-type" /> }
|
153 |
+
label={ __( 'Products by Attribute', 'woo-gutenberg-products-block' ) }
|
154 |
+
className="wc-block-products-grid wc-block-products-attribute"
|
155 |
+
>
|
156 |
+
{ __(
|
157 |
+
'Display a grid of products from your selected attributes.',
|
158 |
+
'woo-gutenberg-products-block'
|
159 |
+
) }
|
160 |
+
<div className="wc-block-products-attribute__selection">
|
161 |
+
<ProductAttributeControl
|
162 |
+
selected={ blockAttributes.attributes }
|
163 |
+
onChange={ ( value = [] ) => {
|
164 |
+
const result = value.map( ( { id, attr_slug } ) => ( { // eslint-disable-line camelcase
|
165 |
+
id,
|
166 |
+
attr_slug,
|
167 |
+
} ) );
|
168 |
+
setAttributes( { attributes: result } );
|
169 |
+
} }
|
170 |
+
operator={ blockAttributes.attrOperator }
|
171 |
+
onOperatorChange={ ( value = 'any' ) =>
|
172 |
+
setAttributes( { attrOperator: value } )
|
173 |
+
}
|
174 |
+
/>
|
175 |
+
<Button isDefault onClick={ onDone }>
|
176 |
+
{ __( 'Done', 'woo-gutenberg-products-block' ) }
|
177 |
+
</Button>
|
178 |
+
</div>
|
179 |
+
</Placeholder>
|
180 |
+
);
|
181 |
+
}
|
182 |
+
|
183 |
+
render() {
|
184 |
+
const { setAttributes } = this.props;
|
185 |
+
const { columns, editMode } = this.props.attributes;
|
186 |
+
const { loaded, products } = this.state;
|
187 |
+
const classes = [ 'wc-block-products-grid', 'wc-block-products-attribute' ];
|
188 |
+
if ( columns ) {
|
189 |
+
classes.push( `cols-${ columns }` );
|
190 |
+
}
|
191 |
+
if ( products && ! products.length ) {
|
192 |
+
if ( ! loaded ) {
|
193 |
+
classes.push( 'is-loading' );
|
194 |
+
} else {
|
195 |
+
classes.push( 'is-not-found' );
|
196 |
+
}
|
197 |
+
}
|
198 |
+
|
199 |
+
return (
|
200 |
+
<Fragment>
|
201 |
+
<BlockControls>
|
202 |
+
<Toolbar
|
203 |
+
controls={ [
|
204 |
+
{
|
205 |
+
icon: 'edit',
|
206 |
+
title: __( 'Edit' ),
|
207 |
+
onClick: () => setAttributes( { editMode: ! editMode } ),
|
208 |
+
isActive: editMode,
|
209 |
+
},
|
210 |
+
] }
|
211 |
+
/>
|
212 |
+
</BlockControls>
|
213 |
+
{ this.getInspectorControls() }
|
214 |
+
{ editMode ? (
|
215 |
+
this.renderEditMode()
|
216 |
+
) : (
|
217 |
+
<div className={ classes.join( ' ' ) }>
|
218 |
+
{ products.length ? (
|
219 |
+
products.map( ( product ) => (
|
220 |
+
<ProductPreview product={ product } key={ product.id } />
|
221 |
+
) )
|
222 |
+
) : (
|
223 |
+
<Placeholder
|
224 |
+
icon={ <Gridicon icon="custom-post-type" /> }
|
225 |
+
label={ __(
|
226 |
+
'Products by Attribute',
|
227 |
+
'woo-gutenberg-products-block'
|
228 |
+
) }
|
229 |
+
>
|
230 |
+
{ ! loaded ? (
|
231 |
+
<Spinner />
|
232 |
+
) : (
|
233 |
+
__( 'No products found.', 'woo-gutenberg-products-block' )
|
234 |
+
) }
|
235 |
+
</Placeholder>
|
236 |
+
) }
|
237 |
+
</div>
|
238 |
+
) }
|
239 |
+
</Fragment>
|
240 |
+
);
|
241 |
+
}
|
242 |
+
}
|
243 |
+
|
244 |
+
ProductsByAttributeBlock.propTypes = {
|
245 |
+
/**
|
246 |
+
* The attributes for this block
|
247 |
+
*/
|
248 |
+
attributes: PropTypes.object.isRequired,
|
249 |
+
/**
|
250 |
+
* The register block name.
|
251 |
+
*/
|
252 |
+
name: PropTypes.string.isRequired,
|
253 |
+
/**
|
254 |
+
* A callback to update attributes
|
255 |
+
*/
|
256 |
+
setAttributes: PropTypes.func.isRequired,
|
257 |
+
// from withSpokenMessages
|
258 |
+
debouncedSpeak: PropTypes.func.isRequired,
|
259 |
+
};
|
260 |
+
|
261 |
+
export default withSpokenMessages( ProductsByAttributeBlock );
|
@@ -0,0 +1,100 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* External dependencies
|
3 |
+
*/
|
4 |
+
import { __ } from '@wordpress/i18n';
|
5 |
+
import Gridicon from 'gridicons';
|
6 |
+
import { RawHTML } from '@wordpress/element';
|
7 |
+
import { registerBlockType } from '@wordpress/blocks';
|
8 |
+
|
9 |
+
/**
|
10 |
+
* Internal dependencies
|
11 |
+
*/
|
12 |
+
import './style.scss';
|
13 |
+
import Block from './block';
|
14 |
+
import getShortcode from '../../utils/get-shortcode';
|
15 |
+
|
16 |
+
registerBlockType( 'woocommerce/products-by-attribute', {
|
17 |
+
title: __( 'Products by Attribute', 'woo-gutenberg-products-block' ),
|
18 |
+
icon: <Gridicon icon="custom-post-type" />,
|
19 |
+
category: 'woocommerce',
|
20 |
+
keywords: [ __( 'WooCommerce', 'woo-gutenberg-products-block' ) ],
|
21 |
+
description: __(
|
22 |
+
'Display a grid of products from your selected attributes.',
|
23 |
+
'woo-gutenberg-products-block'
|
24 |
+
),
|
25 |
+
supports: {
|
26 |
+
align: [ 'wide', 'full' ],
|
27 |
+
},
|
28 |
+
attributes: {
|
29 |
+
/**
|
30 |
+
* Product attributes, used to display only products with the given attributes.
|
31 |
+
*/
|
32 |
+
attributes: {
|
33 |
+
type: 'array',
|
34 |
+
default: [],
|
35 |
+
},
|
36 |
+
|
37 |
+
/**
|
38 |
+
* Product attribute operator, used to restrict to products in all or any selected attributes.
|
39 |
+
*/
|
40 |
+
attrOperator: {
|
41 |
+
type: 'string',
|
42 |
+
default: 'any',
|
43 |
+
},
|
44 |
+
|
45 |
+
/**
|
46 |
+
* Number of columns.
|
47 |
+
*/
|
48 |
+
columns: {
|
49 |
+
type: 'number',
|
50 |
+
default: wc_product_block_data.default_columns,
|
51 |
+
},
|
52 |
+
|
53 |
+
/**
|
54 |
+
* Toggle for edit mode in the block preview.
|
55 |
+
*/
|
56 |
+
editMode: {
|
57 |
+
type: 'boolean',
|
58 |
+
default: true,
|
59 |
+
},
|
60 |
+
|
61 |
+
/**
|
62 |
+
* How to order the products: 'date', 'popularity', 'price_asc', 'price_desc' 'rating', 'title'.
|
63 |
+
*/
|
64 |
+
orderby: {
|
65 |
+
type: 'string',
|
66 |
+
default: 'date',
|
67 |
+
},
|
68 |
+
|
69 |
+
/**
|
70 |
+
* Number of rows.
|
71 |
+
*/
|
72 |
+
rows: {
|
73 |
+
type: 'number',
|
74 |
+
default: wc_product_block_data.default_rows,
|
75 |
+
},
|
76 |
+
},
|
77 |
+
|
78 |
+
/**
|
79 |
+
* Renders and manages the block.
|
80 |
+
*/
|
81 |
+
edit( props ) {
|
82 |
+
return <Block { ...props } />;
|
83 |
+
},
|
84 |
+
|
85 |
+
/**
|
86 |
+
* Save the block content in the post content. Block content is saved as a products shortcode.
|
87 |
+
*
|
88 |
+
* @return string
|
89 |
+
*/
|
90 |
+
save( props ) {
|
91 |
+
const {
|
92 |
+
align,
|
93 |
+
} = props.attributes; /* eslint-disable-line react/prop-types */
|
94 |
+
return (
|
95 |
+
<RawHTML className={ align ? `align${ align }` : '' }>
|
96 |
+
{ getShortcode( props, 'woocommerce/products-by-attribute' ) }
|
97 |
+
</RawHTML>
|
98 |
+
);
|
99 |
+
},
|
100 |
+
} );
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
1 |
+
.wc-block-products-attribute__selection {
|
2 |
+
width: 100%;
|
3 |
+
}
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* External dependencies
|
3 |
+
*/
|
4 |
+
import { __ } from '@wordpress/i18n';
|
5 |
+
import { clamp, isNaN } from 'lodash';
|
6 |
+
import { Fragment } from '@wordpress/element';
|
7 |
+
import PropTypes from 'prop-types';
|
8 |
+
import { RangeControl } from '@wordpress/components';
|
9 |
+
|
10 |
+
/**
|
11 |
+
* A combination of range controls for product grid layout settings.
|
12 |
+
*/
|
13 |
+
const GridLayoutControl = ( { columns, rows, setAttributes } ) => {
|
14 |
+
return (
|
15 |
+
<Fragment>
|
16 |
+
<RangeControl
|
17 |
+
label={ __( 'Columns', 'woo-gutenberg-products-block' ) }
|
18 |
+
value={ columns }
|
19 |
+
onChange={ ( value ) => {
|
20 |
+
const newValue = clamp(
|
21 |
+
value,
|
22 |
+
wc_product_block_data.min_columns,
|
23 |
+
wc_product_block_data.max_columns
|
24 |
+
);
|
25 |
+
setAttributes( { columns: isNaN( newValue ) ? '' : newValue } );
|
26 |
+
} }
|
27 |
+
min={ wc_product_block_data.min_columns }
|
28 |
+
max={ wc_product_block_data.max_columns }
|
29 |
+
/>
|
30 |
+
<RangeControl
|
31 |
+
label={ __( 'Rows', 'woo-gutenberg-products-block' ) }
|
32 |
+
value={ rows }
|
33 |
+
onChange={ ( value ) => {
|
34 |
+
const newValue = clamp(
|
35 |
+
value,
|
36 |
+
wc_product_block_data.min_rows,
|
37 |
+
wc_product_block_data.max_rows
|
38 |
+
);
|
39 |
+
setAttributes( { rows: isNaN( newValue ) ? '' : newValue } );
|
40 |
+
} }
|
41 |
+
min={ wc_product_block_data.min_rows }
|
42 |
+
max={ wc_product_block_data.max_rows }
|
43 |
+
/>
|
44 |
+
</Fragment>
|
45 |
+
);
|
46 |
+
};
|
47 |
+
|
48 |
+
GridLayoutControl.propTypes = {
|
49 |
+
/**
|
50 |
+
* The current columns count.
|
51 |
+
*/
|
52 |
+
columns: PropTypes.oneOfType( [ PropTypes.number, PropTypes.string ] ).isRequired,
|
53 |
+
/**
|
54 |
+
* The current rows count.
|
55 |
+
*/
|
56 |
+
rows: PropTypes.oneOfType( [ PropTypes.number, PropTypes.string ] ).isRequired,
|
57 |
+
/**
|
58 |
+
* Callback to update the layout settings.
|
59 |
+
*/
|
60 |
+
setAttributes: PropTypes.func.isRequired,
|
61 |
+
};
|
62 |
+
|
63 |
+
export default GridLayoutControl;
|
@@ -4,9 +4,10 @@
|
|
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
|
@@ -21,29 +22,29 @@ class ProductAttributeControl extends Component {
|
|
21 |
this.state = {
|
22 |
list: [],
|
23 |
loading: true,
|
|
|
|
|
|
|
24 |
};
|
|
|
|
|
|
|
|
|
25 |
}
|
26 |
|
27 |
componentDidMount() {
|
28 |
-
const
|
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( (
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
}
|
46 |
-
|
47 |
} );
|
48 |
} )
|
49 |
.catch( () => {
|
@@ -51,8 +52,50 @@ class ProductAttributeControl extends Component {
|
|
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',
|
@@ -65,16 +108,39 @@ class ProductAttributeControl extends Component {
|
|
65 |
}
|
66 |
|
67 |
if ( ! item.breadcrumbs.length ) {
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
78 |
}
|
79 |
|
80 |
return (
|
@@ -88,8 +154,10 @@ class ProductAttributeControl extends Component {
|
|
88 |
}
|
89 |
|
90 |
render() {
|
91 |
-
const { list, loading } = this.state;
|
92 |
-
const {
|
|
|
|
|
93 |
|
94 |
const messages = {
|
95 |
clear: __( 'Clear all product attributes', 'woo-gutenberg-products-block' ),
|
@@ -119,16 +187,53 @@ class ProductAttributeControl extends Component {
|
|
119 |
};
|
120 |
|
121 |
return (
|
122 |
-
<
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
132 |
);
|
133 |
}
|
134 |
}
|
@@ -138,10 +243,22 @@ ProductAttributeControl.propTypes = {
|
|
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;
|
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 { debounce, find } from 'lodash';
|
9 |
import PropTypes from 'prop-types';
|
10 |
+
import { SelectControl, Spinner } from '@wordpress/components';
|
11 |
|
12 |
/**
|
13 |
* Internal dependencies
|
22 |
this.state = {
|
23 |
list: [],
|
24 |
loading: true,
|
25 |
+
attribute: 0,
|
26 |
+
termsList: {},
|
27 |
+
termsLoading: true,
|
28 |
};
|
29 |
+
|
30 |
+
this.debouncedGetTerms = debounce( this.getTerms.bind( this ), 200 );
|
31 |
+
this.renderItem = this.renderItem.bind( this );
|
32 |
+
this.onSelectAttribute = this.onSelectAttribute.bind( this );
|
33 |
}
|
34 |
|
35 |
componentDidMount() {
|
36 |
+
const { selected } = this.props;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
apiFetch( {
|
38 |
path: addQueryArgs( '/wc-pb/v3/products/attributes', { per_page: -1 } ),
|
39 |
} )
|
40 |
+
.then( ( list ) => {
|
41 |
+
list = list.map( ( item ) => ( { ...item, parent: 0 } ) );
|
42 |
+
this.setState( ( { attribute } ) => {
|
43 |
+
if ( ! attribute && selected.length > 0 ) {
|
44 |
+
const item = find( list, { slug: selected[ 0 ].attr_slug } );
|
45 |
+
attribute = item ? item.id : 0;
|
46 |
+
}
|
47 |
+
return { list, attribute, loading: false };
|
48 |
} );
|
49 |
} )
|
50 |
.catch( () => {
|
52 |
} );
|
53 |
}
|
54 |
|
55 |
+
componentDidUpdate( prevProps, prevState ) {
|
56 |
+
if ( prevState.attribute !== this.state.attribute ) {
|
57 |
+
this.debouncedGetTerms();
|
58 |
+
}
|
59 |
+
}
|
60 |
+
|
61 |
+
getTerms() {
|
62 |
+
const { attribute, termsList } = this.state;
|
63 |
+
if ( ! attribute ) {
|
64 |
+
return;
|
65 |
+
}
|
66 |
+
if ( ! termsList[ attribute ] ) {
|
67 |
+
this.setState( { termsLoading: true } );
|
68 |
+
}
|
69 |
+
|
70 |
+
apiFetch( {
|
71 |
+
path: addQueryArgs( `/wc-pb/v3/products/attributes/${ attribute }/terms`, {
|
72 |
+
per_page: -1,
|
73 |
+
} ),
|
74 |
+
} )
|
75 |
+
.then( ( terms ) => {
|
76 |
+
terms = terms.map( ( term ) => ( { ...term, parent: attribute } ) );
|
77 |
+
this.setState( ( prevState ) => ( {
|
78 |
+
termsList: { ...prevState.termsList, [ attribute ]: terms },
|
79 |
+
termsLoading: false,
|
80 |
+
} ) );
|
81 |
+
} )
|
82 |
+
.catch( () => {
|
83 |
+
this.setState( { termsLoading: false } );
|
84 |
+
} );
|
85 |
+
}
|
86 |
+
|
87 |
+
onSelectAttribute( item ) {
|
88 |
+
return () => {
|
89 |
+
this.props.onChange( [] );
|
90 |
+
this.setState( {
|
91 |
+
attribute: item.id === this.state.attribute ? 0 : item.id,
|
92 |
+
} );
|
93 |
+
};
|
94 |
+
}
|
95 |
+
|
96 |
renderItem( args ) {
|
97 |
const { item, search, depth = 0 } = args;
|
98 |
+
const { attribute, termsLoading } = this.state;
|
99 |
const classes = [
|
100 |
'woocommerce-product-attributes__item',
|
101 |
'woocommerce-search-list__item',
|
108 |
}
|
109 |
|
110 |
if ( ! item.breadcrumbs.length ) {
|
111 |
+
return [
|
112 |
+
<SearchListItem
|
113 |
+
key={ `attr-${ item.id }` }
|
114 |
+
{ ...args }
|
115 |
+
className={ classes.join( ' ' ) }
|
116 |
+
isSelected={ attribute === item.id }
|
117 |
+
onSelect={ this.onSelectAttribute }
|
118 |
+
isSingle
|
119 |
+
disabled={ '0' === item.count }
|
120 |
+
aria-expanded={ attribute === item.id }
|
121 |
+
aria-label={ sprintf(
|
122 |
+
_n(
|
123 |
+
'%s, has %d term',
|
124 |
+
'%s, has %d terms',
|
125 |
+
item.count,
|
126 |
+
'woo-gutenberg-products-block'
|
127 |
+
),
|
128 |
+
item.name,
|
129 |
+
item.count
|
130 |
+
) }
|
131 |
+
/>,
|
132 |
+
attribute === item.id && termsLoading && (
|
133 |
+
<div
|
134 |
+
key="loading"
|
135 |
+
className={
|
136 |
+
'woocommerce-search-list__item woocommerce-product-attributes__item' +
|
137 |
+
'depth-1 is-loading is-not-active'
|
138 |
+
}
|
139 |
+
>
|
140 |
+
<Spinner />
|
141 |
+
</div>
|
142 |
+
),
|
143 |
+
];
|
144 |
}
|
145 |
|
146 |
return (
|
154 |
}
|
155 |
|
156 |
render() {
|
157 |
+
const { attribute, list, loading, termsList } = this.state;
|
158 |
+
const { onChange, onOperatorChange, operator, selected } = this.props;
|
159 |
+
const currentTerms = termsList[ attribute ] || [];
|
160 |
+
const currentList = [ ...list, ...currentTerms ];
|
161 |
|
162 |
const messages = {
|
163 |
clear: __( 'Clear all product attributes', 'woo-gutenberg-products-block' ),
|
187 |
};
|
188 |
|
189 |
return (
|
190 |
+
<Fragment>
|
191 |
+
<SearchListControl
|
192 |
+
className="woocommerce-product-attributes"
|
193 |
+
list={ currentList }
|
194 |
+
isLoading={ loading }
|
195 |
+
selected={ selected
|
196 |
+
.map( ( { id } ) => find( currentList, { id } ) )
|
197 |
+
.filter( Boolean ) }
|
198 |
+
onChange={ onChange }
|
199 |
+
renderItem={ this.renderItem }
|
200 |
+
messages={ messages }
|
201 |
+
isHierarchical
|
202 |
+
/>
|
203 |
+
{ !! onOperatorChange && (
|
204 |
+
<div className={ selected.length < 2 ? 'screen-reader-text' : '' }>
|
205 |
+
<SelectControl
|
206 |
+
className="woocommerce-product-attributes__operator"
|
207 |
+
label={ __(
|
208 |
+
'Display products matching',
|
209 |
+
'woo-gutenberg-products-block'
|
210 |
+
) }
|
211 |
+
help={ __(
|
212 |
+
'Pick at least two attributes to use this setting.',
|
213 |
+
'woo-gutenberg-products-block'
|
214 |
+
) }
|
215 |
+
value={ operator }
|
216 |
+
onChange={ onOperatorChange }
|
217 |
+
options={ [
|
218 |
+
{
|
219 |
+
label: __(
|
220 |
+
'Any selected attributes',
|
221 |
+
'woo-gutenberg-products-block'
|
222 |
+
),
|
223 |
+
value: 'any',
|
224 |
+
},
|
225 |
+
{
|
226 |
+
label: __(
|
227 |
+
'All selected attributes',
|
228 |
+
'woo-gutenberg-products-block'
|
229 |
+
),
|
230 |
+
value: 'all',
|
231 |
+
},
|
232 |
+
] }
|
233 |
+
/>
|
234 |
+
</div>
|
235 |
+
) }
|
236 |
+
</Fragment>
|
237 |
);
|
238 |
}
|
239 |
}
|
243 |
* Callback to update the selected product attributes.
|
244 |
*/
|
245 |
onChange: PropTypes.func.isRequired,
|
246 |
+
/**
|
247 |
+
* Callback to update the category operator. If not passed in, setting is not used.
|
248 |
+
*/
|
249 |
+
onOperatorChange: PropTypes.func,
|
250 |
+
/**
|
251 |
+
* Setting for whether products should match all or any selected categories.
|
252 |
+
*/
|
253 |
+
operator: PropTypes.oneOf( [ 'all', 'any' ] ),
|
254 |
/**
|
255 |
* The list of currently selected attribute slug/ID pairs.
|
256 |
*/
|
257 |
selected: PropTypes.array.isRequired,
|
258 |
};
|
259 |
|
260 |
+
ProductAttributeControl.defaultProps = {
|
261 |
+
operator: 'any',
|
262 |
+
};
|
263 |
+
|
264 |
export default ProductAttributeControl;
|
@@ -1,3 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
.woocommerce-search-list__item.woocommerce-product-attributes__item {
|
2 |
&.is-searching,
|
3 |
&.is-skip-level {
|
@@ -8,7 +25,36 @@
|
|
8 |
|
9 |
&.is-not-active {
|
10 |
@include hover-state {
|
11 |
-
background:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
}
|
13 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
}
|
1 |
+
.woocommerce-product-attributes__operator {
|
2 |
+
.components-base-control__help {
|
3 |
+
@include visually-hidden;
|
4 |
+
}
|
5 |
+
}
|
6 |
+
|
7 |
+
.components-panel {
|
8 |
+
.woocommerce-product-attributes__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 |
+
}
|
17 |
+
|
18 |
.woocommerce-search-list__item.woocommerce-product-attributes__item {
|
19 |
&.is-searching,
|
20 |
&.is-skip-level {
|
25 |
|
26 |
&.is-not-active {
|
27 |
@include hover-state {
|
28 |
+
background: $white;
|
29 |
+
}
|
30 |
+
}
|
31 |
+
|
32 |
+
&.is-loading {
|
33 |
+
justify-content: center;
|
34 |
+
|
35 |
+
.components-spinner {
|
36 |
+
margin-bottom: $gap-small;
|
37 |
}
|
38 |
}
|
39 |
+
|
40 |
+
&.depth-0::after {
|
41 |
+
margin-left: $gap-smaller;
|
42 |
+
content: '';
|
43 |
+
height: $gap-large;
|
44 |
+
width: $gap-large;
|
45 |
+
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z" fill="#{$core-grey-dark-300}" /></svg>');
|
46 |
+
background-repeat: no-repeat;
|
47 |
+
background-position: center right;
|
48 |
+
background-size: contain;
|
49 |
+
}
|
50 |
+
|
51 |
+
&.depth-0[aria-expanded="true"]::after {
|
52 |
+
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z" fill="#{$core-grey-dark-300}" /></svg>');
|
53 |
+
}
|
54 |
+
|
55 |
+
&[disabled].depth-0::after {
|
56 |
+
margin-left: 0;
|
57 |
+
width: auto;
|
58 |
+
background: none;
|
59 |
+
}
|
60 |
}
|
@@ -75,7 +75,7 @@ class ProductCategoryControl extends Component {
|
|
75 |
|
76 |
render() {
|
77 |
const { list, loading } = this.state;
|
78 |
-
const { onChange, onOperatorChange, operator
|
79 |
|
80 |
const messages = {
|
81 |
clear: __( 'Clear all product categories', 'woo-gutenberg-products-block' ),
|
@@ -161,4 +161,8 @@ ProductCategoryControl.propTypes = {
|
|
161 |
selected: PropTypes.array.isRequired,
|
162 |
};
|
163 |
|
|
|
|
|
|
|
|
|
164 |
export default ProductCategoryControl;
|
75 |
|
76 |
render() {
|
77 |
const { list, loading } = this.state;
|
78 |
+
const { onChange, onOperatorChange, operator, selected } = this.props;
|
79 |
|
80 |
const messages = {
|
81 |
clear: __( 'Clear all product categories', 'woo-gutenberg-products-block' ),
|
161 |
selected: PropTypes.array.isRequired,
|
162 |
};
|
163 |
|
164 |
+
ProductCategoryControl.defaultProps = {
|
165 |
+
operator: 'any',
|
166 |
+
};
|
167 |
+
|
168 |
export default ProductCategoryControl;
|
@@ -13,9 +13,13 @@ import './style.scss';
|
|
13 |
* Display a preview for a given product.
|
14 |
*/
|
15 |
const ProductPreview = ( { product } ) => {
|
|
|
|
|
16 |
let image = null;
|
17 |
if ( product.images.length ) {
|
18 |
image = <img src={ product.images[ 0 ].src } alt="" />;
|
|
|
|
|
19 |
}
|
20 |
|
21 |
return (
|
13 |
* Display a preview for a given product.
|
14 |
*/
|
15 |
const ProductPreview = ( { product } ) => {
|
16 |
+
const { placeholderImgSrc } = wc_product_block_data; /* eslint-disable-line camelcase */
|
17 |
+
|
18 |
let image = null;
|
19 |
if ( product.images.length ) {
|
20 |
image = <img src={ product.images[ 0 ].src } alt="" />;
|
21 |
+
} else {
|
22 |
+
image = <img src={ placeholderImgSrc } alt="" />;
|
23 |
}
|
24 |
|
25 |
return (
|
@@ -70,6 +70,7 @@
|
|
70 |
|
71 |
.components-spinner {
|
72 |
float: none;
|
|
|
73 |
}
|
74 |
|
75 |
.components-menu-group__label {
|
@@ -111,6 +112,19 @@
|
|
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;
|
70 |
|
71 |
.components-spinner {
|
72 |
float: none;
|
73 |
+
margin: 0 auto;
|
74 |
}
|
75 |
|
76 |
.components-menu-group__label {
|
112 |
flex: 1;
|
113 |
}
|
114 |
|
115 |
+
&.depth-0 + .depth-1 {
|
116 |
+
// Hide the border on the preceding list item
|
117 |
+
margin-top: -1px;
|
118 |
+
}
|
119 |
+
|
120 |
+
&:not(.depth-0) {
|
121 |
+
border-bottom: 0 !important;
|
122 |
+
}
|
123 |
+
|
124 |
+
&:not(.depth-0) + .depth-0 {
|
125 |
+
border-top: 1px solid $core-grey-light-500;
|
126 |
+
}
|
127 |
+
|
128 |
// Anything deeper than 5 levels will use this fallback depth
|
129 |
&[class*="depth-"] .woocommerce-search-list__item-label:before {
|
130 |
margin-right: $gap-smallest;
|
@@ -1,5 +1,14 @@
|
|
1 |
-
export default function getQuery(
|
2 |
-
const {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
4 |
const query = {
|
5 |
status: 'publish',
|
@@ -31,6 +40,15 @@ export default function getQuery( attributes, name ) {
|
|
31 |
}
|
32 |
}
|
33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
// Toggle query parameters depending on block type.
|
35 |
switch ( name ) {
|
36 |
case 'woocommerce/product-best-sellers':
|
1 |
+
export default function getQuery( blockAttributes, name ) {
|
2 |
+
const {
|
3 |
+
attributes,
|
4 |
+
attrOperator,
|
5 |
+
categories,
|
6 |
+
catOperator,
|
7 |
+
orderby,
|
8 |
+
products,
|
9 |
+
} = blockAttributes;
|
10 |
+
const columns = blockAttributes.columns || wc_product_block_data.default_columns;
|
11 |
+
const rows = blockAttributes.rows || wc_product_block_data.default_rows;
|
12 |
|
13 |
const query = {
|
14 |
status: 'publish',
|
40 |
}
|
41 |
}
|
42 |
|
43 |
+
if ( attributes && attributes.length > 0 ) {
|
44 |
+
query.attribute_term = attributes.map( ( { id } ) => id ).join( ',' );
|
45 |
+
query.attribute = attributes[ 0 ].attr_slug;
|
46 |
+
|
47 |
+
if ( attrOperator ) {
|
48 |
+
query.attr_operator = 'all' === attrOperator ? 'AND' : 'IN';
|
49 |
+
}
|
50 |
+
}
|
51 |
+
|
52 |
// Toggle query parameters depending on block type.
|
53 |
switch ( name ) {
|
54 |
case 'woocommerce/product-best-sellers':
|
@@ -1,5 +1,15 @@
|
|
1 |
-
export default function getShortcode(
|
2 |
-
const
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
4 |
const shortcodeAtts = new Map();
|
5 |
shortcodeAtts.set( 'limit', rows * columns );
|
@@ -12,6 +22,14 @@ export default function getShortcode( { attributes }, name ) {
|
|
12 |
}
|
13 |
}
|
14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
if ( orderby ) {
|
16 |
if ( 'price_desc' === orderby ) {
|
17 |
shortcodeAtts.set( 'orderby', 'price' );
|
@@ -54,6 +72,11 @@ export default function getShortcode( { attributes }, name ) {
|
|
54 |
return '';
|
55 |
}
|
56 |
break;
|
|
|
|
|
|
|
|
|
|
|
57 |
}
|
58 |
|
59 |
// Build the shortcode string out of the set shortcode attributes.
|
1 |
+
export default function getShortcode( props, name ) {
|
2 |
+
const blockAttributes = props.attributes;
|
3 |
+
const {
|
4 |
+
attributes,
|
5 |
+
attrOperator,
|
6 |
+
categories,
|
7 |
+
catOperator,
|
8 |
+
orderby,
|
9 |
+
products,
|
10 |
+
} = blockAttributes;
|
11 |
+
const columns = blockAttributes.columns || wc_product_block_data.default_columns;
|
12 |
+
const rows = blockAttributes.rows || wc_product_block_data.default_rows;
|
13 |
|
14 |
const shortcodeAtts = new Map();
|
15 |
shortcodeAtts.set( 'limit', rows * columns );
|
22 |
}
|
23 |
}
|
24 |
|
25 |
+
if ( attributes && attributes.length ) {
|
26 |
+
shortcodeAtts.set( 'terms', attributes.map( ( { id } ) => id ).join( ',' ) );
|
27 |
+
shortcodeAtts.set( 'attribute', attributes[ 0 ].attr_slug );
|
28 |
+
if ( attrOperator && 'all' === attrOperator ) {
|
29 |
+
shortcodeAtts.set( 'terms_operator', 'AND' );
|
30 |
+
}
|
31 |
+
}
|
32 |
+
|
33 |
if ( orderby ) {
|
34 |
if ( 'price_desc' === orderby ) {
|
35 |
shortcodeAtts.set( 'orderby', 'price' );
|
72 |
return '';
|
73 |
}
|
74 |
break;
|
75 |
+
case 'woocommerce/products-by-attribute':
|
76 |
+
if ( ! attributes || ! attributes.length ) {
|
77 |
+
return '';
|
78 |
+
}
|
79 |
+
break;
|
80 |
}
|
81 |
|
82 |
// Build the shortcode string out of the set shortcode attributes.
|
@@ -30,12 +30,4 @@ export default {
|
|
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 |
};
|
30 |
type: 'string',
|
31 |
default: 'any',
|
32 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
};
|
@@ -1,2 +1,2 @@
|
|
1 |
-
.wc-block-featured-product{position:relative;background-color:#24292d;background-size:cover;background-position:50%;
|
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}
|
1 |
+
.wc-block-featured-product{position:relative;background-color:#24292d;background-size:cover;background-position:50%;width:100%;margin:0 0 1.5em}.wc-block-featured-product,.wc-block-featured-product .wc-block-featured-product__wrapper{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;align-content:center}.wc-block-featured-product .wc-block-featured-product__wrapper{overflow:hidden;height:100%}.wc-block-featured-product.components-placeholder{background-color:rgba(139,139,150,.1)}.wc-block-featured-product .components-resizable-box__handle{z-index:10}.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__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__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__price,.wc-block-featured-product .wc-block-featured-product__title{color:#fff;line-height:1.25;margin-bottom:0;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__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__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{width:100%;padding:0 48px 16px;z-index:1}.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;margin:0 auto}.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.depth-0+.depth-1{margin-top:-1px}.woocommerce-search-list__list .woocommerce-search-list__item:not(.depth-0){border-bottom:0!important}.woocommerce-search-list__list .woocommerce-search-list__item:not(.depth-0)+.depth-0{border-top:1px solid #e2e4e7}.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}
|
@@ -1 +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([711,0]),n()}({0:function(e,t){!function(){e.exports=this.wp.element}()},14:function(e,t){!function(){e.exports=this.wp.apiFetch}()},15:function(e,t){!function(){e.exports=this.wp.compose}()},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})},173:function(e,t,n){var r=n(174);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(27)(r,o);r.locals&&(e.exports=r.locals)},174:function(e,t,n){},177:function(e,t){!function(){e.exports=this.wp.data}()},199:function(e,t,n){var r={"./af":42,"./af.js":42,"./ar":43,"./ar-dz":44,"./ar-dz.js":44,"./ar-kw":45,"./ar-kw.js":45,"./ar-ly":46,"./ar-ly.js":46,"./ar-ma":47,"./ar-ma.js":47,"./ar-sa":48,"./ar-sa.js":48,"./ar-tn":49,"./ar-tn.js":49,"./ar.js":43,"./az":50,"./az.js":50,"./be":51,"./be.js":51,"./bg":52,"./bg.js":52,"./bm":53,"./bm.js":53,"./bn":54,"./bn.js":54,"./bo":55,"./bo.js":55,"./br":56,"./br.js":56,"./bs":57,"./bs.js":57,"./ca":58,"./ca.js":58,"./cs":59,"./cs.js":59,"./cv":60,"./cv.js":60,"./cy":61,"./cy.js":61,"./da":62,"./da.js":62,"./de":63,"./de-at":64,"./de-at.js":64,"./de-ch":65,"./de-ch.js":65,"./de.js":63,"./dv":66,"./dv.js":66,"./el":67,"./el.js":67,"./en-au":68,"./en-au.js":68,"./en-ca":69,"./en-ca.js":69,"./en-gb":70,"./en-gb.js":70,"./en-ie":71,"./en-ie.js":71,"./en-il":72,"./en-il.js":72,"./en-nz":73,"./en-nz.js":73,"./eo":74,"./eo.js":74,"./es":75,"./es-do":76,"./es-do.js":76,"./es-us":77,"./es-us.js":77,"./es.js":75,"./et":78,"./et.js":78,"./eu":79,"./eu.js":79,"./fa":80,"./fa.js":80,"./fi":81,"./fi.js":81,"./fo":82,"./fo.js":82,"./fr":83,"./fr-ca":84,"./fr-ca.js":84,"./fr-ch":85,"./fr-ch.js":85,"./fr.js":83,"./fy":86,"./fy.js":86,"./gd":87,"./gd.js":87,"./gl":88,"./gl.js":88,"./gom-latn":89,"./gom-latn.js":89,"./gu":90,"./gu.js":90,"./he":91,"./he.js":91,"./hi":92,"./hi.js":92,"./hr":93,"./hr.js":93,"./hu":94,"./hu.js":94,"./hy-am":95,"./hy-am.js":95,"./id":96,"./id.js":96,"./is":97,"./is.js":97,"./it":98,"./it.js":98,"./ja":99,"./ja.js":99,"./jv":100,"./jv.js":100,"./ka":101,"./ka.js":101,"./kk":102,"./kk.js":102,"./km":103,"./km.js":103,"./kn":104,"./kn.js":104,"./ko":105,"./ko.js":105,"./ky":106,"./ky.js":106,"./lb":107,"./lb.js":107,"./lo":108,"./lo.js":108,"./lt":109,"./lt.js":109,"./lv":110,"./lv.js":110,"./me":111,"./me.js":111,"./mi":112,"./mi.js":112,"./mk":113,"./mk.js":113,"./ml":114,"./ml.js":114,"./mn":115,"./mn.js":115,"./mr":116,"./mr.js":116,"./ms":117,"./ms-my":118,"./ms-my.js":118,"./ms.js":117,"./mt":119,"./mt.js":119,"./my":120,"./my.js":120,"./nb":121,"./nb.js":121,"./ne":122,"./ne.js":122,"./nl":123,"./nl-be":124,"./nl-be.js":124,"./nl.js":123,"./nn":125,"./nn.js":125,"./pa-in":126,"./pa-in.js":126,"./pl":127,"./pl.js":127,"./pt":128,"./pt-br":129,"./pt-br.js":129,"./pt.js":128,"./ro":130,"./ro.js":130,"./ru":131,"./ru.js":131,"./sd":132,"./sd.js":132,"./se":133,"./se.js":133,"./si":134,"./si.js":134,"./sk":135,"./sk.js":135,"./sl":136,"./sl.js":136,"./sq":137,"./sq.js":137,"./sr":138,"./sr-cyrl":139,"./sr-cyrl.js":139,"./sr.js":138,"./ss":140,"./ss.js":140,"./sv":141,"./sv.js":141,"./sw":142,"./sw.js":142,"./ta":143,"./ta.js":143,"./te":144,"./te.js":144,"./tet":145,"./tet.js":145,"./tg":146,"./tg.js":146,"./th":147,"./th.js":147,"./tl-ph":148,"./tl-ph.js":148,"./tlh":149,"./tlh.js":149,"./tr":150,"./tr.js":150,"./tzl":151,"./tzl.js":151,"./tzm":152,"./tzm-latn":153,"./tzm-latn.js":153,"./tzm.js":152,"./ug-cn":154,"./ug-cn.js":154,"./uk":155,"./uk.js":155,"./ur":156,"./ur.js":156,"./uz":157,"./uz-latn":158,"./uz-latn.js":158,"./uz.js":157,"./vi":159,"./vi.js":159,"./x-pseudo":160,"./x-pseudo.js":160,"./yo":161,"./yo.js":161,"./zh-cn":162,"./zh-cn.js":162,"./zh-hk":163,"./zh-hk.js":163,"./zh-tw":164,"./zh-tw.js":164};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=199},2:function(e,t){!function(){e.exports=this.wp.i18n}()},202:function(e,t){},203:function(e,t){},205:function(e,t){},206:function(e,t){},23:function(e,t){!function(){e.exports=this.wp.url}()},24:function(e,t,n){"use strict";var r=n(26),o=n.n(r),c=n(168),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:d?"menuitemradio":"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}()},30:function(e,t){!function(){e.exports=this.wp.blocks}()},31:function(e,t,n){"use strict";var r=n(13),o=n.n(r),c=n(16),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(6),f=n.n(g),v=n(0),O=n(2),w=n(3),k=n(15),_=n(4),y=n(19),E=n.n(y),S=n(1),C=n.n(S),x=n(169);n(173);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}()},707:function(e,t,n){var r=n(708);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(27)(r,o);r.locals&&(e.exports=r.locals)},708:function(e,t,n){},711:function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(2),c=n(30),s=(n(707),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(6),g=n.n(j),f=n(14),v=n.n(f),O=n(25),w=n(3),k=n(7),_=n.n(k),y=n(15),E=n(4),S=n(1),C=n.n(S),x=n(23),I=n(31),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:Object(o.__)("Show description","woo-gutenberg-products-block"),checked:t.showDesc,onChange:function(){return n({showDesc:!t.showDesc})}}),Object(r.createElement)(w.ToggleControl,{label:Object(o.__)("Show price","woo-gutenberg-products-block"),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}})}}));
|
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([621,0]),n()}({0:function(e,t){!function(){e.exports=this.wp.element}()},15:function(e,t){!function(){e.exports=this.wp.apiFetch}()},16:function(e,t){!function(){e.exports=this.wp.compose}()},167:function(e,t,n){var r=n(168);"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)},168:function(e,t,n){},17:function(e,t,n){"use strict";var r=n(0),o=n(4),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){!function(){e.exports=this.wp.data}()},185:function(e,t,n){var r={"./af":40,"./af.js":40,"./ar":41,"./ar-dz":42,"./ar-dz.js":42,"./ar-kw":43,"./ar-kw.js":43,"./ar-ly":44,"./ar-ly.js":44,"./ar-ma":45,"./ar-ma.js":45,"./ar-sa":46,"./ar-sa.js":46,"./ar-tn":47,"./ar-tn.js":47,"./ar.js":41,"./az":48,"./az.js":48,"./be":49,"./be.js":49,"./bg":50,"./bg.js":50,"./bm":51,"./bm.js":51,"./bn":52,"./bn.js":52,"./bo":53,"./bo.js":53,"./br":54,"./br.js":54,"./bs":55,"./bs.js":55,"./ca":56,"./ca.js":56,"./cs":57,"./cs.js":57,"./cv":58,"./cv.js":58,"./cy":59,"./cy.js":59,"./da":60,"./da.js":60,"./de":61,"./de-at":62,"./de-at.js":62,"./de-ch":63,"./de-ch.js":63,"./de.js":61,"./dv":64,"./dv.js":64,"./el":65,"./el.js":65,"./en-au":66,"./en-au.js":66,"./en-ca":67,"./en-ca.js":67,"./en-gb":68,"./en-gb.js":68,"./en-ie":69,"./en-ie.js":69,"./en-il":70,"./en-il.js":70,"./en-nz":71,"./en-nz.js":71,"./eo":72,"./eo.js":72,"./es":73,"./es-do":74,"./es-do.js":74,"./es-us":75,"./es-us.js":75,"./es.js":73,"./et":76,"./et.js":76,"./eu":77,"./eu.js":77,"./fa":78,"./fa.js":78,"./fi":79,"./fi.js":79,"./fo":80,"./fo.js":80,"./fr":81,"./fr-ca":82,"./fr-ca.js":82,"./fr-ch":83,"./fr-ch.js":83,"./fr.js":81,"./fy":84,"./fy.js":84,"./gd":85,"./gd.js":85,"./gl":86,"./gl.js":86,"./gom-latn":87,"./gom-latn.js":87,"./gu":88,"./gu.js":88,"./he":89,"./he.js":89,"./hi":90,"./hi.js":90,"./hr":91,"./hr.js":91,"./hu":92,"./hu.js":92,"./hy-am":93,"./hy-am.js":93,"./id":94,"./id.js":94,"./is":95,"./is.js":95,"./it":96,"./it.js":96,"./ja":97,"./ja.js":97,"./jv":98,"./jv.js":98,"./ka":99,"./ka.js":99,"./kk":100,"./kk.js":100,"./km":101,"./km.js":101,"./kn":102,"./kn.js":102,"./ko":103,"./ko.js":103,"./ky":104,"./ky.js":104,"./lb":105,"./lb.js":105,"./lo":106,"./lo.js":106,"./lt":107,"./lt.js":107,"./lv":108,"./lv.js":108,"./me":109,"./me.js":109,"./mi":110,"./mi.js":110,"./mk":111,"./mk.js":111,"./ml":112,"./ml.js":112,"./mn":113,"./mn.js":113,"./mr":114,"./mr.js":114,"./ms":115,"./ms-my":116,"./ms-my.js":116,"./ms.js":115,"./mt":117,"./mt.js":117,"./my":118,"./my.js":118,"./nb":119,"./nb.js":119,"./ne":120,"./ne.js":120,"./nl":121,"./nl-be":122,"./nl-be.js":122,"./nl.js":121,"./nn":123,"./nn.js":123,"./pa-in":124,"./pa-in.js":124,"./pl":125,"./pl.js":125,"./pt":126,"./pt-br":127,"./pt-br.js":127,"./pt.js":126,"./ro":128,"./ro.js":128,"./ru":129,"./ru.js":129,"./sd":130,"./sd.js":130,"./se":131,"./se.js":131,"./si":132,"./si.js":132,"./sk":133,"./sk.js":133,"./sl":134,"./sl.js":134,"./sq":135,"./sq.js":135,"./sr":136,"./sr-cyrl":137,"./sr-cyrl.js":137,"./sr.js":136,"./ss":138,"./ss.js":138,"./sv":139,"./sv.js":139,"./sw":140,"./sw.js":140,"./ta":141,"./ta.js":141,"./te":142,"./te.js":142,"./tet":143,"./tet.js":143,"./tg":144,"./tg.js":144,"./th":145,"./th.js":145,"./tl-ph":146,"./tl-ph.js":146,"./tlh":147,"./tlh.js":147,"./tr":148,"./tr.js":148,"./tzl":149,"./tzl.js":149,"./tzm":150,"./tzm-latn":151,"./tzm-latn.js":151,"./tzm.js":150,"./ug-cn":152,"./ug-cn.js":152,"./uk":153,"./uk.js":153,"./ur":154,"./ur.js":154,"./uz":155,"./uz-latn":156,"./uz-latn.js":156,"./uz.js":155,"./vi":157,"./vi.js":157,"./x-pseudo":158,"./x-pseudo.js":158,"./yo":159,"./yo.js":159,"./zh-cn":160,"./zh-cn.js":160,"./zh-hk":161,"./zh-hk.js":161,"./zh-tw":162,"./zh-tw.js":162};function o(e){var t=c(e);return n(t)}function c(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=c,e.exports=o,o.id=185},188:function(e,t){},189:function(e,t){},191:function(e,t){},192:function(e,t){},2:function(e,t){!function(){e.exports=this.wp.i18n}()},21:function(e,t){!function(){e.exports=this.wp.url}()},23:function(e,t,n){"use strict";var r=n(26),o=n.n(r),c=n(164),s=n.n(c),a=n(0),i=n(3),l=n(4),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,_=c.breadcrumbs&&c.breadcrumbs.length;return Object(a.createElement)(l.MenuItem,o()({role:d?"menuitemradio":"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"},_?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},24:function(e,t){!function(){e.exports=this.wp.editor}()},29:function(e,t){!function(){e.exports=this.wp.blocks}()},3:function(e,t){!function(){e.exports=this.lodash}()},30:function(e,t,n){"use strict";var r=n(13),o=n.n(r),c=n(14),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(4),_=n(16),k=n(3),y=n(18),E=n.n(y),S=n(1),C=n.n(S),x=n(165);n(167);function I(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=Object(k.groupBy)(e,"parent"),r=Object(k.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(k.forEach)(n,function(e){i.push.apply(i,s()(a(e||[])))}),i}var z=n(23),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")},R=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(k.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(k.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(k.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);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:""}),w.withSpokenMessages,_.withInstanceId])(R)},4:function(e,t){!function(){e.exports=this.wp.components}()},616:function(e,t,n){var r=n(617);"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)},617:function(e,t,n){},621:function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(2),c=n(24),s=n(29),a=(n(616),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(15),O=n.n(v),w=n(4),_=n(7),k=n.n(_),y=n(16),E=n(3),S=n(1),C=n.n(S),x=n(21),I=n(30),z=function(e){function t(){var e;return i()(this,t),(e=b()(this,p()(t).apply(this,arguments))).state={list:[],loading:!0},e}return j()(t,e),u()(t,[{key:"componentDidMount",value:function(){var e=this;O()({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 R=wc_product_block_data.min_height;var M=function(e){function t(){var e;return i()(this,t),(e=b()(this,p()(t).apply(this,arguments))).state={product:!1,loaded:!1},e.debouncedGetProduct=Object(E.debounce)(e.getProduct.bind(f()(f()(e))),200),e}return j()(t,e),u()(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?O()({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,s=e.overlayColor,a=e.setOverlayColor;return Object(r.createElement)(c.InspectorControls,{key:"inspector"},Object(r.createElement)(w.PanelBody,{title:Object(o.__)("Content","woo-gutenberg-products-block")},Object(r.createElement)(w.ToggleControl,{label:Object(o.__)("Show description","woo-gutenberg-products-block"),checked:t.showDesc,onChange:function(){return n({showDesc:!t.showDesc})}}),Object(r.createElement)(w.ToggleControl,{label:Object(o.__)("Show price","woo-gutenberg-products-block"),checked:t.showPrice,onChange:function(){return n({showPrice:!t.showPrice})}})),Object(r.createElement)(c.PanelColorSettings,{title:Object(o.__)("Overlay","woo-gutenberg-products-block"),colorSettings:[{value:s.color,onChange:a,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,s=this.props,a=s.attributes,i=s.isSelected,l=s.overlayColor,u=s.setAttributes,d=a.contentAlign,b=a.dimRatio,m=a.editMode,p=a.height,h=a.showDesc,j=a.showPrice,g=this.state,f=g.loaded,v=g.product,O=k()("wc-block-featured-product",{"is-selected":i,"is-loading":!v&&!f,"is-not-found":!v&&f,"has-background-dim":0!==b},0===(e=b)||50===e?null:"has-background-dim-".concat(10*Math.round(e/10)),"center"!==d&&"has-".concat(d,"-content")),_=a.mediaId||(t=v.images,(n=void 0===t?[]:t).length&&n[0].id||0),y=v?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,")")}:{}}(a.mediaSrc||v):{};l.color&&(y.backgroundColor=l.color);return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(c.BlockControls,null,Object(r.createElement)(c.AlignmentToolbar,{value:d,onChange:function(e){u({contentAlign:e})}}),Object(r.createElement)(c.MediaUploadCheck,null,Object(r.createElement)(w.Toolbar,null,Object(r.createElement)(c.MediaUpload,{onSelect:function(e){u({mediaId:e.id,mediaSrc:e.url})},allowedTypes:["image"],value:_,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})}})))),!a.editMode&&this.getInspectorControls(),m?this.renderEditMode():Object(r.createElement)(r.Fragment,null,v?Object(r.createElement)(w.ResizableBox,{className:O,size:{height:p},minHeight:R,enable:{bottom:!0},onResizeStop:function(e,t,n){u({height:parseInt(n.style.height)})},style:y},Object(r.createElement)("div",{className:"wc-block-featured-product__wrapper"},Object(r.createElement)("h2",{className:"wc-block-featured-product__title"},v.name),h&&Object(r.createElement)("div",{className:"wc-block-featured-product__description",dangerouslySetInnerHTML:{__html:v.short_description}}),j&&Object(r.createElement)("div",{className:"wc-block-featured-product__price",dangerouslySetInnerHTML:{__html:v.price_html}}),Object(r.createElement)("div",{className:"wc-block-featured-product__link"},Object(r.createElement)(c.InnerBlocks,{template:[["core/button",{text:Object(o.__)("Shop now","woo-gutenberg-products-block"),url:v.permalink,align:"center"}]],templateLock:"all"})))):Object(r.createElement)(w.Placeholder,{className:"wc-block-featured-product",icon:"star-filled",label:Object(o.__)("Featured Product","woo-gutenberg-products-block")},f?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,isSelected:C.a.bool.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 L=Object(y.compose)([Object(c.withColors)({overlayColor:"background-color"}),w.withSpokenMessages])(M);Object(s.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},height:{type:"number",default:wc_product_block_data.default_height},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)(L,e)},save:function(){return Object(r.createElement)(c.InnerBlocks.Content,null)}})}}));
|
@@ -1,3 +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}
|
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;margin:0 auto}.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.depth-0+.depth-1{margin-top:-1px}.woocommerce-search-list__list .woocommerce-search-list__item:not(.depth-0){border-bottom:0!important}.woocommerce-search-list__list .woocommerce-search-list__item:not(.depth-0)+.depth-0{border-top:1px solid #e2e4e7}.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}
|
@@ -1 +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([713,0]),r()}({0:function(e,t){!function(){e.exports=this.wp.element}()},14:function(e,t){!function(){e.exports=this.wp.apiFetch}()},15:function(e,t){!function(){e.exports=this.wp.compose}()},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})},173:function(e,t,r){var n=r(174);"string"==typeof n&&(n=[[e.i,n,""]]);var c={hmr:!0,transform:void 0,insertInto:void 0};r(27)(n,c);n.locals&&(e.exports=n.locals)},174:function(e,t,r){},177:function(e,t){!function(){e.exports=this.wp.data}()},179:function(e,t,r){var n=r(180);"string"==typeof n&&(n=[[e.i,n,""]]);var c={hmr:!0,transform:void 0,insertInto:void 0};r(27)(n,c);n.locals&&(e.exports=n.locals)},180:function(e,t,r){},193: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},199:function(e,t,r){var n={"./af":42,"./af.js":42,"./ar":43,"./ar-dz":44,"./ar-dz.js":44,"./ar-kw":45,"./ar-kw.js":45,"./ar-ly":46,"./ar-ly.js":46,"./ar-ma":47,"./ar-ma.js":47,"./ar-sa":48,"./ar-sa.js":48,"./ar-tn":49,"./ar-tn.js":49,"./ar.js":43,"./az":50,"./az.js":50,"./be":51,"./be.js":51,"./bg":52,"./bg.js":52,"./bm":53,"./bm.js":53,"./bn":54,"./bn.js":54,"./bo":55,"./bo.js":55,"./br":56,"./br.js":56,"./bs":57,"./bs.js":57,"./ca":58,"./ca.js":58,"./cs":59,"./cs.js":59,"./cv":60,"./cv.js":60,"./cy":61,"./cy.js":61,"./da":62,"./da.js":62,"./de":63,"./de-at":64,"./de-at.js":64,"./de-ch":65,"./de-ch.js":65,"./de.js":63,"./dv":66,"./dv.js":66,"./el":67,"./el.js":67,"./en-au":68,"./en-au.js":68,"./en-ca":69,"./en-ca.js":69,"./en-gb":70,"./en-gb.js":70,"./en-ie":71,"./en-ie.js":71,"./en-il":72,"./en-il.js":72,"./en-nz":73,"./en-nz.js":73,"./eo":74,"./eo.js":74,"./es":75,"./es-do":76,"./es-do.js":76,"./es-us":77,"./es-us.js":77,"./es.js":75,"./et":78,"./et.js":78,"./eu":79,"./eu.js":79,"./fa":80,"./fa.js":80,"./fi":81,"./fi.js":81,"./fo":82,"./fo.js":82,"./fr":83,"./fr-ca":84,"./fr-ca.js":84,"./fr-ch":85,"./fr-ch.js":85,"./fr.js":83,"./fy":86,"./fy.js":86,"./gd":87,"./gd.js":87,"./gl":88,"./gl.js":88,"./gom-latn":89,"./gom-latn.js":89,"./gu":90,"./gu.js":90,"./he":91,"./he.js":91,"./hi":92,"./hi.js":92,"./hr":93,"./hr.js":93,"./hu":94,"./hu.js":94,"./hy-am":95,"./hy-am.js":95,"./id":96,"./id.js":96,"./is":97,"./is.js":97,"./it":98,"./it.js":98,"./ja":99,"./ja.js":99,"./jv":100,"./jv.js":100,"./ka":101,"./ka.js":101,"./kk":102,"./kk.js":102,"./km":103,"./km.js":103,"./kn":104,"./kn.js":104,"./ko":105,"./ko.js":105,"./ky":106,"./ky.js":106,"./lb":107,"./lb.js":107,"./lo":108,"./lo.js":108,"./lt":109,"./lt.js":109,"./lv":110,"./lv.js":110,"./me":111,"./me.js":111,"./mi":112,"./mi.js":112,"./mk":113,"./mk.js":113,"./ml":114,"./ml.js":114,"./mn":115,"./mn.js":115,"./mr":116,"./mr.js":116,"./ms":117,"./ms-my":118,"./ms-my.js":118,"./ms.js":117,"./mt":119,"./mt.js":119,"./my":120,"./my.js":120,"./nb":121,"./nb.js":121,"./ne":122,"./ne.js":122,"./nl":123,"./nl-be":124,"./nl-be.js":124,"./nl.js":123,"./nn":125,"./nn.js":125,"./pa-in":126,"./pa-in.js":126,"./pl":127,"./pl.js":127,"./pt":128,"./pt-br":129,"./pt-br.js":129,"./pt.js":128,"./ro":130,"./ro.js":130,"./ru":131,"./ru.js":131,"./sd":132,"./sd.js":132,"./se":133,"./se.js":133,"./si":134,"./si.js":134,"./sk":135,"./sk.js":135,"./sl":136,"./sl.js":136,"./sq":137,"./sq.js":137,"./sr":138,"./sr-cyrl":139,"./sr-cyrl.js":139,"./sr.js":138,"./ss":140,"./ss.js":140,"./sv":141,"./sv.js":141,"./sw":142,"./sw.js":142,"./ta":143,"./ta.js":143,"./te":144,"./te.js":144,"./tet":145,"./tet.js":145,"./tg":146,"./tg.js":146,"./th":147,"./th.js":147,"./tl-ph":148,"./tl-ph.js":148,"./tlh":149,"./tlh.js":149,"./tr":150,"./tr.js":150,"./tzl":151,"./tzl.js":151,"./tzm":152,"./tzm-latn":153,"./tzm-latn.js":153,"./tzm.js":152,"./ug-cn":154,"./ug-cn.js":154,"./uk":155,"./uk.js":155,"./ur":156,"./ur.js":156,"./uz":157,"./uz-latn":158,"./uz-latn.js":158,"./uz.js":157,"./vi":159,"./vi.js":159,"./x-pseudo":160,"./x-pseudo.js":160,"./yo":161,"./yo.js":161,"./zh-cn":162,"./zh-cn.js":162,"./zh-hk":163,"./zh-hk.js":163,"./zh-tw":164,"./zh-tw.js":164};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=199},2:function(e,t){!function(){e.exports=this.wp.i18n}()},202:function(e,t){},203:function(e,t){},205:function(e,t){},206:function(e,t){},23:function(e,t){!function(){e.exports=this.wp.url}()},24:function(e,t,r){"use strict";var n=r(26),c=r.n(n),o=r(168),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:d?"menuitemradio":"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}()},30:function(e,t){!function(){e.exports=this.wp.blocks}()},31:function(e,t,r){"use strict";var n=r(13),c=r.n(n),o=r(16),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(6),f=r.n(g),v=r(0),w=r(2),O=r(3),_=r(15),k=r(4),y=r(19),E=r.n(y),S=r(1),C=r.n(S),x=r(169);r(173);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)},36: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})},37:function(e,t,r){"use strict";var n=r(0),c=r(2),o=r(1),s=r.n(o),a=(r(179),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},38:function(e,t,r){"use strict";r.d(t,"a",function(){return o});var n=r(167),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+="]"}},4:function(e,t){!function(){e.exports=this.lodash}()},449:function(e,t,r){var n=r(450);"string"==typeof n&&(n=[[e.i,n,""]]);var c={hmr:!0,transform:void 0,insertInto:void 0};r(27)(n,c);n.locals&&(e.exports=n.locals)},450:function(e,t,r){},713:function(e,t,r){"use strict";r.r(t);var n=r(0),c=r(2),o=r(30),s=(r(449),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(6),g=r.n(j),f=r(23),v=r(14),w=r.n(v),O=r(25),_=r(3),k=r(4),y=r(1),E=r.n(y),S=r(36),C=r(17),x=r(31),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(193),R=r(37),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(38);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"))}})}}));
|
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([622,0]),r()}({0:function(e,t){!function(){e.exports=this.wp.element}()},15:function(e,t){!function(){e.exports=this.wp.apiFetch}()},16:function(e,t){!function(){e.exports=this.wp.compose}()},167:function(e,t,r){var n=r(168);"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)},168:function(e,t,r){},17:function(e,t,r){"use strict";var n=r(0),c=r(4),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})},175:function(e,t,r){var n=r(176);"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)},176:function(e,t,r){},177:function(e,t){!function(){e.exports=this.wp.data}()},179:function(e,t,r){"use strict";var n=r(0),c=r(2),o=r(4),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},185:function(e,t,r){var n={"./af":40,"./af.js":40,"./ar":41,"./ar-dz":42,"./ar-dz.js":42,"./ar-kw":43,"./ar-kw.js":43,"./ar-ly":44,"./ar-ly.js":44,"./ar-ma":45,"./ar-ma.js":45,"./ar-sa":46,"./ar-sa.js":46,"./ar-tn":47,"./ar-tn.js":47,"./ar.js":41,"./az":48,"./az.js":48,"./be":49,"./be.js":49,"./bg":50,"./bg.js":50,"./bm":51,"./bm.js":51,"./bn":52,"./bn.js":52,"./bo":53,"./bo.js":53,"./br":54,"./br.js":54,"./bs":55,"./bs.js":55,"./ca":56,"./ca.js":56,"./cs":57,"./cs.js":57,"./cv":58,"./cv.js":58,"./cy":59,"./cy.js":59,"./da":60,"./da.js":60,"./de":61,"./de-at":62,"./de-at.js":62,"./de-ch":63,"./de-ch.js":63,"./de.js":61,"./dv":64,"./dv.js":64,"./el":65,"./el.js":65,"./en-au":66,"./en-au.js":66,"./en-ca":67,"./en-ca.js":67,"./en-gb":68,"./en-gb.js":68,"./en-ie":69,"./en-ie.js":69,"./en-il":70,"./en-il.js":70,"./en-nz":71,"./en-nz.js":71,"./eo":72,"./eo.js":72,"./es":73,"./es-do":74,"./es-do.js":74,"./es-us":75,"./es-us.js":75,"./es.js":73,"./et":76,"./et.js":76,"./eu":77,"./eu.js":77,"./fa":78,"./fa.js":78,"./fi":79,"./fi.js":79,"./fo":80,"./fo.js":80,"./fr":81,"./fr-ca":82,"./fr-ca.js":82,"./fr-ch":83,"./fr-ch.js":83,"./fr.js":81,"./fy":84,"./fy.js":84,"./gd":85,"./gd.js":85,"./gl":86,"./gl.js":86,"./gom-latn":87,"./gom-latn.js":87,"./gu":88,"./gu.js":88,"./he":89,"./he.js":89,"./hi":90,"./hi.js":90,"./hr":91,"./hr.js":91,"./hu":92,"./hu.js":92,"./hy-am":93,"./hy-am.js":93,"./id":94,"./id.js":94,"./is":95,"./is.js":95,"./it":96,"./it.js":96,"./ja":97,"./ja.js":97,"./jv":98,"./jv.js":98,"./ka":99,"./ka.js":99,"./kk":100,"./kk.js":100,"./km":101,"./km.js":101,"./kn":102,"./kn.js":102,"./ko":103,"./ko.js":103,"./ky":104,"./ky.js":104,"./lb":105,"./lb.js":105,"./lo":106,"./lo.js":106,"./lt":107,"./lt.js":107,"./lv":108,"./lv.js":108,"./me":109,"./me.js":109,"./mi":110,"./mi.js":110,"./mk":111,"./mk.js":111,"./ml":112,"./ml.js":112,"./mn":113,"./mn.js":113,"./mr":114,"./mr.js":114,"./ms":115,"./ms-my":116,"./ms-my.js":116,"./ms.js":115,"./mt":117,"./mt.js":117,"./my":118,"./my.js":118,"./nb":119,"./nb.js":119,"./ne":120,"./ne.js":120,"./nl":121,"./nl-be":122,"./nl-be.js":122,"./nl.js":121,"./nn":123,"./nn.js":123,"./pa-in":124,"./pa-in.js":124,"./pl":125,"./pl.js":125,"./pt":126,"./pt-br":127,"./pt-br.js":127,"./pt.js":126,"./ro":128,"./ro.js":128,"./ru":129,"./ru.js":129,"./sd":130,"./sd.js":130,"./se":131,"./se.js":131,"./si":132,"./si.js":132,"./sk":133,"./sk.js":133,"./sl":134,"./sl.js":134,"./sq":135,"./sq.js":135,"./sr":136,"./sr-cyrl":137,"./sr-cyrl.js":137,"./sr.js":136,"./ss":138,"./ss.js":138,"./sv":139,"./sv.js":139,"./sw":140,"./sw.js":140,"./ta":141,"./ta.js":141,"./te":142,"./te.js":142,"./tet":143,"./tet.js":143,"./tg":144,"./tg.js":144,"./th":145,"./th.js":145,"./tl-ph":146,"./tl-ph.js":146,"./tlh":147,"./tlh.js":147,"./tr":148,"./tr.js":148,"./tzl":149,"./tzl.js":149,"./tzm":150,"./tzm-latn":151,"./tzm-latn.js":151,"./tzm.js":150,"./ug-cn":152,"./ug-cn.js":152,"./uk":153,"./uk.js":153,"./ur":154,"./ur.js":154,"./uz":155,"./uz-latn":156,"./uz-latn.js":156,"./uz.js":155,"./vi":157,"./vi.js":157,"./x-pseudo":158,"./x-pseudo.js":158,"./yo":159,"./yo.js":159,"./zh-cn":160,"./zh-cn.js":160,"./zh-hk":161,"./zh-hk.js":161,"./zh-tw":162,"./zh-tw.js":162};function c(e){var t=o(e);return r(t)}function o(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}c.keys=function(){return Object.keys(n)},c.resolve=o,e.exports=c,c.id=185},188:function(e,t){},189:function(e,t){},191:function(e,t){},192:function(e,t){},2:function(e,t){!function(){e.exports=this.wp.i18n}()},21:function(e,t){!function(){e.exports=this.wp.url}()},23:function(e,t,r){"use strict";var n=r(26),c=r.n(n),o=r(164),s=r.n(o),a=r(0),i=r(3),l=r(4),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:d?"menuitemradio":"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"},O?Object(a.createElement)("span",{className:"woocommerce-search-list__item-prefix"},1===(_=o.breadcrumbs).length?Object(i.first)(_):2===_.length?Object(i.first)(_)+" › "+Object(i.last)(_):Object(i.first)(_)+" … "+Object(i.last)(_)):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},24:function(e,t){!function(){e.exports=this.wp.editor}()},29:function(e,t){!function(){e.exports=this.wp.blocks}()},3:function(e,t){!function(){e.exports=this.lodash}()},30:function(e,t,r){"use strict";var n=r(13),c=r.n(n),o=r(14),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),_=r(4),O=r(16),k=r(3),y=r(18),E=r.n(y),S=r(1),C=r.n(S),x=r(165);r(167);function N(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 z=r(23),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")},M=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?N(e):e;var n=c()({},I,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?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)(_.Spinner,null)):n.length?Object(v.createElement)(_.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)(_.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)(_.TextControl,{label:s.search,type:"search",value:n,onChange:function(e){return o({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(O.compose)([Object(O.withState)({search:""}),_.withSpokenMessages,O.withInstanceId])(M)},33:function(e,t,r){"use strict";function n(e,t){var r=e.attributes,n=e.attrOperator,c=e.categories,o=e.catOperator,s=e.orderby,a=e.products,i=e.columns||wc_product_block_data.default_columns,l={status:"publish",per_page:(e.rows||wc_product_block_data.default_rows)*i};switch(c&&c.length&&(l.category=c.join(","),o&&"all"===o&&(l.cat_operator="AND")),s&&("price_desc"===s?(l.orderby="price",l.order="desc"):"price_asc"===s?(l.orderby="price",l.order="asc"):"title"===s?(l.orderby="title",l.order="asc"):"menu_order"===s?(l.orderby="menu_order",l.order="asc"):l.orderby=s),r&&r.length>0&&(l.attribute_term=r.map(function(e){return e.id}).join(","),l.attribute=r[0].attr_slug,n&&(l.attr_operator="all"===n?"AND":"IN")),t){case"woocommerce/product-best-sellers":l.orderby="popularity";break;case"woocommerce/product-top-rated":l.orderby="rating";break;case"woocommerce/product-on-sale":l.on_sale=1;break;case"woocommerce/product-new":l.orderby="date";break;case"woocommerce/handpicked-products":l.include=a,l.per_page=a.length}return l}r.d(t,"a",function(){return n})},34:function(e,t,r){"use strict";var n=r(0),c=r(2),o=r(1),s=r.n(o),a=(r(175),function(e){var t=e.product,r=wc_product_block_data.placeholderImgSrc,o=null;return o=t.images.length?Object(n.createElement)("img",{src:t.images[0].src,alt:""}):Object(n.createElement)("img",{src:r,alt:""}),Object(n.createElement)("div",{className:"wc-product-preview"},o,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},35:function(e,t,r){"use strict";r.d(t,"a",function(){return o});var n=r(163),c=r.n(n);function o(e,t){var r=e.attributes,n=r.attributes,o=r.attrOperator,s=r.categories,a=r.catOperator,i=r.orderby,l=r.products,u=r.columns||wc_product_block_data.default_columns,d=r.rows||wc_product_block_data.default_rows,p=new Map;switch(p.set("limit",d*u),p.set("columns",u),s&&s.length&&(p.set("category",s.join(",")),a&&"all"===a&&p.set("cat_operator","AND")),n&&n.length&&(p.set("terms",n.map(function(e){return e.id}).join(",")),p.set("attribute",n[0].attr_slug),o&&"all"===o&&p.set("terms_operator","AND")),i&&("price_desc"===i?(p.set("orderby","price"),p.set("order","DESC")):"price_asc"===i?(p.set("orderby","price"),p.set("order","ASC")):"date"===i?(p.set("orderby","date"),p.set("order","DESC")):p.set("orderby",i)),t){case"woocommerce/product-best-sellers":p.set("best_selling","1");break;case"woocommerce/product-top-rated":p.set("orderby","rating");break;case"woocommerce/product-on-sale":p.set("on_sale","1");break;case"woocommerce/product-new":p.set("orderby","date"),p.set("order","DESC");break;case"woocommerce/handpicked-products":if(!l.length)return"";p.set("ids",l.join(",")),p.set("limit",l.length);break;case"woocommerce/product-category":if(!s||!s.length)return"";break;case"woocommerce/products-by-attribute":if(!n||!n.length)return""}var b="[products",m=!0,h=!1,j=void 0;try{for(var g,f=p[Symbol.iterator]();!(m=(g=f.next()).done);m=!0){var v=c()(g.value,2);b+=" "+v[0]+'="'+v[1]+'"'}}catch(e){h=!0,j=e}finally{try{m||null==f.return||f.return()}finally{if(h)throw j}}return b+="]"}},392:function(e,t,r){var n=r(393);"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)},393:function(e,t,r){},4:function(e,t){!function(){e.exports=this.wp.components}()},622:function(e,t,r){"use strict";r.r(t);var n=r(0),c=r(2),o=r(29),s=(r(392),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(21),v=r(15),w=r.n(v),_=r(24),O=r(4),k=r(3),y=r(1),E=r.n(y),S=r(33),C=r(17),x=r(30),N=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);N.propTypes={onChange:E.a.func.isRequired,selected:E.a.array.isRequired};var z=N,I=r(179),M=r(34),R=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)(_.InspectorControls,{key:"inspector"},Object(n.createElement)(O.PanelBody,{title:Object(c.__)("Layout","woo-gutenberg-products-block"),initialOpen:!0},Object(n.createElement)(O.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)(O.PanelBody,{title:Object(c.__)("Order By","woo-gutenberg-products-block"),initialOpen:!1},Object(n.createElement)(I.a,{setAttributes:r,value:s})),Object(n.createElement)(O.PanelBody,{title:Object(c.__)("Products","woo-gutenberg-products-block"),initialOpen:!1},Object(n.createElement)(z,{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)(O.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)(z,{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)(O.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)(_.BlockControls,null,Object(n.createElement)(O.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)(M.a,{product:e,key:e.id})}):Object(n.createElement)(O.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)(O.Spinner,null))))}}]),t}(n.Component);R.propTypes={attributes:E.a.object.isRequired,name:E.a.string.isRequired,setAttributes:E.a.func.isRequired,debouncedSpeak:E.a.func.isRequired};var L=Object(O.withSpokenMessages)(R),P=r(35);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"))}})}}));
|
@@ -1,3 +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}
|
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;margin:0 auto}.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.depth-0+.depth-1{margin-top:-1px}.woocommerce-search-list__list .woocommerce-search-list__item:not(.depth-0){border-bottom:0!important}.woocommerce-search-list__list .woocommerce-search-list__item:not(.depth-0)+.depth-0{border-top:1px solid #e2e4e7}.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}
|
@@ -1 +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([717,0]),r()}({0:function(e,t){!function(){e.exports=this.wp.element}()},14:function(e,t){!function(){e.exports=this.wp.apiFetch}()},15:function(e,t){!function(){e.exports=this.wp.compose}()},166: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:[]}}},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})},173:function(e,t,r){var n=r(174);"string"==typeof n&&(n=[[e.i,n,""]]);var c={hmr:!0,transform:void 0,insertInto:void 0};r(27)(n,c);n.locals&&(e.exports=n.locals)},174:function(e,t,r){},177:function(e,t){!function(){e.exports=this.wp.data}()},179:function(e,t,r){var n=r(180);"string"==typeof n&&(n=[[e.i,n,""]]);var c={hmr:!0,transform:void 0,insertInto:void 0};r(27)(n,c);n.locals&&(e.exports=n.locals)},180:function(e,t,r){},185:function(e,t,r){var n=r(186);"string"==typeof n&&(n=[[e.i,n,""]]);var c={hmr:!0,transform:void 0,insertInto:void 0};r(27)(n,c);n.locals&&(e.exports=n.locals)},186:function(e,t,r){},199:function(e,t,r){var n={"./af":42,"./af.js":42,"./ar":43,"./ar-dz":44,"./ar-dz.js":44,"./ar-kw":45,"./ar-kw.js":45,"./ar-ly":46,"./ar-ly.js":46,"./ar-ma":47,"./ar-ma.js":47,"./ar-sa":48,"./ar-sa.js":48,"./ar-tn":49,"./ar-tn.js":49,"./ar.js":43,"./az":50,"./az.js":50,"./be":51,"./be.js":51,"./bg":52,"./bg.js":52,"./bm":53,"./bm.js":53,"./bn":54,"./bn.js":54,"./bo":55,"./bo.js":55,"./br":56,"./br.js":56,"./bs":57,"./bs.js":57,"./ca":58,"./ca.js":58,"./cs":59,"./cs.js":59,"./cv":60,"./cv.js":60,"./cy":61,"./cy.js":61,"./da":62,"./da.js":62,"./de":63,"./de-at":64,"./de-at.js":64,"./de-ch":65,"./de-ch.js":65,"./de.js":63,"./dv":66,"./dv.js":66,"./el":67,"./el.js":67,"./en-au":68,"./en-au.js":68,"./en-ca":69,"./en-ca.js":69,"./en-gb":70,"./en-gb.js":70,"./en-ie":71,"./en-ie.js":71,"./en-il":72,"./en-il.js":72,"./en-nz":73,"./en-nz.js":73,"./eo":74,"./eo.js":74,"./es":75,"./es-do":76,"./es-do.js":76,"./es-us":77,"./es-us.js":77,"./es.js":75,"./et":78,"./et.js":78,"./eu":79,"./eu.js":79,"./fa":80,"./fa.js":80,"./fi":81,"./fi.js":81,"./fo":82,"./fo.js":82,"./fr":83,"./fr-ca":84,"./fr-ca.js":84,"./fr-ch":85,"./fr-ch.js":85,"./fr.js":83,"./fy":86,"./fy.js":86,"./gd":87,"./gd.js":87,"./gl":88,"./gl.js":88,"./gom-latn":89,"./gom-latn.js":89,"./gu":90,"./gu.js":90,"./he":91,"./he.js":91,"./hi":92,"./hi.js":92,"./hr":93,"./hr.js":93,"./hu":94,"./hu.js":94,"./hy-am":95,"./hy-am.js":95,"./id":96,"./id.js":96,"./is":97,"./is.js":97,"./it":98,"./it.js":98,"./ja":99,"./ja.js":99,"./jv":100,"./jv.js":100,"./ka":101,"./ka.js":101,"./kk":102,"./kk.js":102,"./km":103,"./km.js":103,"./kn":104,"./kn.js":104,"./ko":105,"./ko.js":105,"./ky":106,"./ky.js":106,"./lb":107,"./lb.js":107,"./lo":108,"./lo.js":108,"./lt":109,"./lt.js":109,"./lv":110,"./lv.js":110,"./me":111,"./me.js":111,"./mi":112,"./mi.js":112,"./mk":113,"./mk.js":113,"./ml":114,"./ml.js":114,"./mn":115,"./mn.js":115,"./mr":116,"./mr.js":116,"./ms":117,"./ms-my":118,"./ms-my.js":118,"./ms.js":117,"./mt":119,"./mt.js":119,"./my":120,"./my.js":120,"./nb":121,"./nb.js":121,"./ne":122,"./ne.js":122,"./nl":123,"./nl-be":124,"./nl-be.js":124,"./nl.js":123,"./nn":125,"./nn.js":125,"./pa-in":126,"./pa-in.js":126,"./pl":127,"./pl.js":127,"./pt":128,"./pt-br":129,"./pt-br.js":129,"./pt.js":128,"./ro":130,"./ro.js":130,"./ru":131,"./ru.js":131,"./sd":132,"./sd.js":132,"./se":133,"./se.js":133,"./si":134,"./si.js":134,"./sk":135,"./sk.js":135,"./sl":136,"./sl.js":136,"./sq":137,"./sq.js":137,"./sr":138,"./sr-cyrl":139,"./sr-cyrl.js":139,"./sr.js":138,"./ss":140,"./ss.js":140,"./sv":141,"./sv.js":141,"./sw":142,"./sw.js":142,"./ta":143,"./ta.js":143,"./te":144,"./te.js":144,"./tet":145,"./tet.js":145,"./tg":146,"./tg.js":146,"./th":147,"./th.js":147,"./tl-ph":148,"./tl-ph.js":148,"./tlh":149,"./tlh.js":149,"./tr":150,"./tr.js":150,"./tzl":151,"./tzl.js":151,"./tzm":152,"./tzm-latn":153,"./tzm-latn.js":153,"./tzm.js":152,"./ug-cn":154,"./ug-cn.js":154,"./uk":155,"./uk.js":155,"./ur":156,"./ur.js":156,"./uz":157,"./uz-latn":158,"./uz-latn.js":158,"./uz.js":157,"./vi":159,"./vi.js":159,"./x-pseudo":160,"./x-pseudo.js":160,"./yo":161,"./yo.js":161,"./zh-cn":162,"./zh-cn.js":162,"./zh-hk":163,"./zh-hk.js":163,"./zh-tw":164,"./zh-tw.js":164};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=199},2:function(e,t){!function(){e.exports=this.wp.i18n}()},202:function(e,t){},203:function(e,t){},205:function(e,t){},206:function(e,t){},23:function(e,t){!function(){e.exports=this.wp.url}()},24:function(e,t,r){"use strict";var n=r(26),c=r.n(n),o=r(168),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:d?"menuitemradio":"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}()},30:function(e,t){!function(){e.exports=this.wp.blocks}()},31:function(e,t,r){"use strict";var n=r(13),c=r.n(n),o=r(16),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(6),f=r.n(g),v=r(0),w=r(2),O=r(3),_=r(15),y=r(4),k=r(19),E=r.n(k),S=r(1),C=r.n(S),x=r(169);r(173);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)},36: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})},37:function(e,t,r){"use strict";var n=r(0),c=r(2),o=r(1),s=r.n(o),a=(r(179),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},38:function(e,t,r){"use strict";r.d(t,"a",function(){return o});var n=r(167),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+="]"}},4:function(e,t){!function(){e.exports=this.lodash}()},40:function(e,t,r){"use strict";var n=r(26),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(6),j=r.n(h),g=r(0),f=r(2),v=r(23),w=r(14),O=r.n(w),_=r(4),y=r(1),k=r.n(y),E=r(3),S=(r(185),r(31)),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},717: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(30),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(6),O=r.n(w),_=r(23),y=r(14),k=r.n(y),E=r(25),S=r(4),C=r(3),x=r(1),z=r.n(x),N=r(36),I=r(40),R=r(37),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(38),B=r(166);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"))}})}}));
|
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([626,0]),r()}({0:function(e,t){!function(){e.exports=this.wp.element}()},15:function(e,t){!function(){e.exports=this.wp.apiFetch}()},16:function(e,t){!function(){e.exports=this.wp.compose}()},167:function(e,t,r){var n=r(168);"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)},168:function(e,t,r){},169:function(e,t,r){"use strict";var n=r(26),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(21),w=r(15),_=r.n(w),O=r(3),y=r(1),k=r.n(y),E=r(4),S=(r(182),r(30)),C=r(23),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;_()({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=n.selected,i={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:a.map(function(e){return Object(O.find)(t,{id:e})}).filter(Boolean),onChange:c,renderItem:this.renderItem,messages:i,isHierarchical:!0}),!!o&&Object(g.createElement)("div",{className:a.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:s,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},x.defaultProps={operator:"any"},t.a=x},17:function(e,t,r){"use strict";var n=r(0),c=r(4),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})},171: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"}}},175:function(e,t,r){var n=r(176);"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)},176:function(e,t,r){},177:function(e,t){!function(){e.exports=this.wp.data}()},182:function(e,t,r){var n=r(183);"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)},183:function(e,t,r){},185:function(e,t,r){var n={"./af":40,"./af.js":40,"./ar":41,"./ar-dz":42,"./ar-dz.js":42,"./ar-kw":43,"./ar-kw.js":43,"./ar-ly":44,"./ar-ly.js":44,"./ar-ma":45,"./ar-ma.js":45,"./ar-sa":46,"./ar-sa.js":46,"./ar-tn":47,"./ar-tn.js":47,"./ar.js":41,"./az":48,"./az.js":48,"./be":49,"./be.js":49,"./bg":50,"./bg.js":50,"./bm":51,"./bm.js":51,"./bn":52,"./bn.js":52,"./bo":53,"./bo.js":53,"./br":54,"./br.js":54,"./bs":55,"./bs.js":55,"./ca":56,"./ca.js":56,"./cs":57,"./cs.js":57,"./cv":58,"./cv.js":58,"./cy":59,"./cy.js":59,"./da":60,"./da.js":60,"./de":61,"./de-at":62,"./de-at.js":62,"./de-ch":63,"./de-ch.js":63,"./de.js":61,"./dv":64,"./dv.js":64,"./el":65,"./el.js":65,"./en-au":66,"./en-au.js":66,"./en-ca":67,"./en-ca.js":67,"./en-gb":68,"./en-gb.js":68,"./en-ie":69,"./en-ie.js":69,"./en-il":70,"./en-il.js":70,"./en-nz":71,"./en-nz.js":71,"./eo":72,"./eo.js":72,"./es":73,"./es-do":74,"./es-do.js":74,"./es-us":75,"./es-us.js":75,"./es.js":73,"./et":76,"./et.js":76,"./eu":77,"./eu.js":77,"./fa":78,"./fa.js":78,"./fi":79,"./fi.js":79,"./fo":80,"./fo.js":80,"./fr":81,"./fr-ca":82,"./fr-ca.js":82,"./fr-ch":83,"./fr-ch.js":83,"./fr.js":81,"./fy":84,"./fy.js":84,"./gd":85,"./gd.js":85,"./gl":86,"./gl.js":86,"./gom-latn":87,"./gom-latn.js":87,"./gu":88,"./gu.js":88,"./he":89,"./he.js":89,"./hi":90,"./hi.js":90,"./hr":91,"./hr.js":91,"./hu":92,"./hu.js":92,"./hy-am":93,"./hy-am.js":93,"./id":94,"./id.js":94,"./is":95,"./is.js":95,"./it":96,"./it.js":96,"./ja":97,"./ja.js":97,"./jv":98,"./jv.js":98,"./ka":99,"./ka.js":99,"./kk":100,"./kk.js":100,"./km":101,"./km.js":101,"./kn":102,"./kn.js":102,"./ko":103,"./ko.js":103,"./ky":104,"./ky.js":104,"./lb":105,"./lb.js":105,"./lo":106,"./lo.js":106,"./lt":107,"./lt.js":107,"./lv":108,"./lv.js":108,"./me":109,"./me.js":109,"./mi":110,"./mi.js":110,"./mk":111,"./mk.js":111,"./ml":112,"./ml.js":112,"./mn":113,"./mn.js":113,"./mr":114,"./mr.js":114,"./ms":115,"./ms-my":116,"./ms-my.js":116,"./ms.js":115,"./mt":117,"./mt.js":117,"./my":118,"./my.js":118,"./nb":119,"./nb.js":119,"./ne":120,"./ne.js":120,"./nl":121,"./nl-be":122,"./nl-be.js":122,"./nl.js":121,"./nn":123,"./nn.js":123,"./pa-in":124,"./pa-in.js":124,"./pl":125,"./pl.js":125,"./pt":126,"./pt-br":127,"./pt-br.js":127,"./pt.js":126,"./ro":128,"./ro.js":128,"./ru":129,"./ru.js":129,"./sd":130,"./sd.js":130,"./se":131,"./se.js":131,"./si":132,"./si.js":132,"./sk":133,"./sk.js":133,"./sl":134,"./sl.js":134,"./sq":135,"./sq.js":135,"./sr":136,"./sr-cyrl":137,"./sr-cyrl.js":137,"./sr.js":136,"./ss":138,"./ss.js":138,"./sv":139,"./sv.js":139,"./sw":140,"./sw.js":140,"./ta":141,"./ta.js":141,"./te":142,"./te.js":142,"./tet":143,"./tet.js":143,"./tg":144,"./tg.js":144,"./th":145,"./th.js":145,"./tl-ph":146,"./tl-ph.js":146,"./tlh":147,"./tlh.js":147,"./tr":148,"./tr.js":148,"./tzl":149,"./tzl.js":149,"./tzm":150,"./tzm-latn":151,"./tzm-latn.js":151,"./tzm.js":150,"./ug-cn":152,"./ug-cn.js":152,"./uk":153,"./uk.js":153,"./ur":154,"./ur.js":154,"./uz":155,"./uz-latn":156,"./uz-latn.js":156,"./uz.js":155,"./vi":157,"./vi.js":157,"./x-pseudo":158,"./x-pseudo.js":158,"./yo":159,"./yo.js":159,"./zh-cn":160,"./zh-cn.js":160,"./zh-hk":161,"./zh-hk.js":161,"./zh-tw":162,"./zh-tw.js":162};function c(e){var t=o(e);return r(t)}function o(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}c.keys=function(){return Object.keys(n)},c.resolve=o,e.exports=c,c.id=185},188:function(e,t){},189:function(e,t){},191:function(e,t){},192:function(e,t){},2:function(e,t){!function(){e.exports=this.wp.i18n}()},21:function(e,t){!function(){e.exports=this.wp.url}()},23:function(e,t,r){"use strict";var n=r(26),c=r.n(n),o=r(164),s=r.n(o),a=r(0),i=r(3),l=r(4),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:d?"menuitemradio":"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"},O?Object(a.createElement)("span",{className:"woocommerce-search-list__item-prefix"},1===(_=o.breadcrumbs).length?Object(i.first)(_):2===_.length?Object(i.first)(_)+" › "+Object(i.last)(_):Object(i.first)(_)+" … "+Object(i.last)(_)):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},24:function(e,t){!function(){e.exports=this.wp.editor}()},29:function(e,t){!function(){e.exports=this.wp.blocks}()},3:function(e,t){!function(){e.exports=this.lodash}()},30:function(e,t,r){"use strict";var n=r(13),c=r.n(n),o=r(14),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),_=r(4),O=r(16),y=r(3),k=r(18),E=r.n(k),S=r(1),C=r.n(S),x=r(165);r(167);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(23),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)(_.Spinner,null)):n.length?Object(v.createElement)(_.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)(_.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)(_.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(O.compose)([Object(O.withState)({search:""}),_.withSpokenMessages,O.withInstanceId])(R)},33:function(e,t,r){"use strict";function n(e,t){var r=e.attributes,n=e.attrOperator,c=e.categories,o=e.catOperator,s=e.orderby,a=e.products,i=e.columns||wc_product_block_data.default_columns,l={status:"publish",per_page:(e.rows||wc_product_block_data.default_rows)*i};switch(c&&c.length&&(l.category=c.join(","),o&&"all"===o&&(l.cat_operator="AND")),s&&("price_desc"===s?(l.orderby="price",l.order="desc"):"price_asc"===s?(l.orderby="price",l.order="asc"):"title"===s?(l.orderby="title",l.order="asc"):"menu_order"===s?(l.orderby="menu_order",l.order="asc"):l.orderby=s),r&&r.length>0&&(l.attribute_term=r.map(function(e){return e.id}).join(","),l.attribute=r[0].attr_slug,n&&(l.attr_operator="all"===n?"AND":"IN")),t){case"woocommerce/product-best-sellers":l.orderby="popularity";break;case"woocommerce/product-top-rated":l.orderby="rating";break;case"woocommerce/product-on-sale":l.on_sale=1;break;case"woocommerce/product-new":l.orderby="date";break;case"woocommerce/handpicked-products":l.include=a,l.per_page=a.length}return l}r.d(t,"a",function(){return n})},34:function(e,t,r){"use strict";var n=r(0),c=r(2),o=r(1),s=r.n(o),a=(r(175),function(e){var t=e.product,r=wc_product_block_data.placeholderImgSrc,o=null;return o=t.images.length?Object(n.createElement)("img",{src:t.images[0].src,alt:""}):Object(n.createElement)("img",{src:r,alt:""}),Object(n.createElement)("div",{className:"wc-product-preview"},o,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},35:function(e,t,r){"use strict";r.d(t,"a",function(){return o});var n=r(163),c=r.n(n);function o(e,t){var r=e.attributes,n=r.attributes,o=r.attrOperator,s=r.categories,a=r.catOperator,i=r.orderby,l=r.products,u=r.columns||wc_product_block_data.default_columns,d=r.rows||wc_product_block_data.default_rows,p=new Map;switch(p.set("limit",d*u),p.set("columns",u),s&&s.length&&(p.set("category",s.join(",")),a&&"all"===a&&p.set("cat_operator","AND")),n&&n.length&&(p.set("terms",n.map(function(e){return e.id}).join(",")),p.set("attribute",n[0].attr_slug),o&&"all"===o&&p.set("terms_operator","AND")),i&&("price_desc"===i?(p.set("orderby","price"),p.set("order","DESC")):"price_asc"===i?(p.set("orderby","price"),p.set("order","ASC")):"date"===i?(p.set("orderby","date"),p.set("order","DESC")):p.set("orderby",i)),t){case"woocommerce/product-best-sellers":p.set("best_selling","1");break;case"woocommerce/product-top-rated":p.set("orderby","rating");break;case"woocommerce/product-on-sale":p.set("on_sale","1");break;case"woocommerce/product-new":p.set("orderby","date"),p.set("order","DESC");break;case"woocommerce/handpicked-products":if(!l.length)return"";p.set("ids",l.join(",")),p.set("limit",l.length);break;case"woocommerce/product-category":if(!s||!s.length)return"";break;case"woocommerce/products-by-attribute":if(!n||!n.length)return""}var m="[products",b=!0,h=!1,j=void 0;try{for(var g,f=p[Symbol.iterator]();!(b=(g=f.next()).done);b=!0){var v=c()(g.value,2);m+=" "+v[0]+'="'+v[1]+'"'}}catch(e){h=!0,j=e}finally{try{b||null==f.return||f.return()}finally{if(h)throw j}}return m+="]"}},39:function(e,t,r){"use strict";var n=r(0),c=r(2),o=r(3),s=r(1),a=r.n(s),i=r(4),l=function(e){var t=e.columns,r=e.rows,s=e.setAttributes;return Object(n.createElement)(n.Fragment,null,Object(n.createElement)(i.RangeControl,{label:Object(c.__)("Columns","woo-gutenberg-products-block"),value:t,onChange:function(e){var t=Object(o.clamp)(e,wc_product_block_data.min_columns,wc_product_block_data.max_columns);s({columns:Object(o.isNaN)(t)?"":t})},min:wc_product_block_data.min_columns,max:wc_product_block_data.max_columns}),Object(n.createElement)(i.RangeControl,{label:Object(c.__)("Rows","woo-gutenberg-products-block"),value:r,onChange:function(e){var t=Object(o.clamp)(e,wc_product_block_data.min_rows,wc_product_block_data.max_rows);s({rows:Object(o.isNaN)(t)?"":t})},min:wc_product_block_data.min_rows,max:wc_product_block_data.max_rows}))};l.propTypes={columns:a.a.oneOfType([a.a.number,a.a.string]).isRequired,rows:a.a.oneOfType([a.a.number,a.a.string]).isRequired,setAttributes:a.a.func.isRequired},t.a=l},4:function(e,t){!function(){e.exports=this.wp.components}()},626: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(18),i=r.n(a),l=r(29),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),_=r.n(w),O=r(21),y=r(15),k=r.n(y),E=r(24),S=r(3),C=r(4),x=r(1),N=r.n(x),z=r(33),I=r(39),R=r(169),L=r(34),M=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(_()(_()(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(O.addQueryArgs)("/wc-pb/v3/products",Object(z.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)(I.a,{columns:a,rows:i,setAttributes:r})),Object(o.createElement)(C.PanelBody,{title:Object(s.__)("Filter by Product Category","woo-gutenberg-products-block"),initialOpen:!1},Object(o.createElement)(R.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)(L.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);M.propTypes={attributes:N.a.object.isRequired,name:N.a.string.isRequired,setAttributes:N.a.func.isRequired};var P=M,B=r(35),T=r(171);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()({},T.a),edit:function(e){return Object(o.createElement)(P,e)},save:function(e){var t=e.attributes.align;return Object(o.createElement)(o.RawHTML,{className:t?"align".concat(t):""},Object(B.a)(e,"woocommerce/product-best-sellers"))}})}}));
|
@@ -1,4 +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}
|
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;margin:0 auto}.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.depth-0+.depth-1{margin-top:-1px}.woocommerce-search-list__list .woocommerce-search-list__item:not(.depth-0){border-bottom:0!important}.woocommerce-search-list__list .woocommerce-search-list__item:not(.depth-0)+.depth-0{border-top:1px solid #e2e4e7}.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}
|
@@ -1 +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([714,0]),r()}({0:function(e,t){!function(){e.exports=this.wp.element}()},14:function(e,t){!function(){e.exports=this.wp.apiFetch}()},15:function(e,t){!function(){e.exports=this.wp.compose}()},166: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:[]}}},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})},173:function(e,t,r){var n=r(174);"string"==typeof n&&(n=[[e.i,n,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};r(27)(n,o);n.locals&&(e.exports=n.locals)},174:function(e,t,r){},177:function(e,t){!function(){e.exports=this.wp.data}()},179:function(e,t,r){var n=r(180);"string"==typeof n&&(n=[[e.i,n,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};r(27)(n,o);n.locals&&(e.exports=n.locals)},180:function(e,t,r){},185:function(e,t,r){var n=r(186);"string"==typeof n&&(n=[[e.i,n,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};r(27)(n,o);n.locals&&(e.exports=n.locals)},186:function(e,t,r){},193: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},199:function(e,t,r){var n={"./af":42,"./af.js":42,"./ar":43,"./ar-dz":44,"./ar-dz.js":44,"./ar-kw":45,"./ar-kw.js":45,"./ar-ly":46,"./ar-ly.js":46,"./ar-ma":47,"./ar-ma.js":47,"./ar-sa":48,"./ar-sa.js":48,"./ar-tn":49,"./ar-tn.js":49,"./ar.js":43,"./az":50,"./az.js":50,"./be":51,"./be.js":51,"./bg":52,"./bg.js":52,"./bm":53,"./bm.js":53,"./bn":54,"./bn.js":54,"./bo":55,"./bo.js":55,"./br":56,"./br.js":56,"./bs":57,"./bs.js":57,"./ca":58,"./ca.js":58,"./cs":59,"./cs.js":59,"./cv":60,"./cv.js":60,"./cy":61,"./cy.js":61,"./da":62,"./da.js":62,"./de":63,"./de-at":64,"./de-at.js":64,"./de-ch":65,"./de-ch.js":65,"./de.js":63,"./dv":66,"./dv.js":66,"./el":67,"./el.js":67,"./en-au":68,"./en-au.js":68,"./en-ca":69,"./en-ca.js":69,"./en-gb":70,"./en-gb.js":70,"./en-ie":71,"./en-ie.js":71,"./en-il":72,"./en-il.js":72,"./en-nz":73,"./en-nz.js":73,"./eo":74,"./eo.js":74,"./es":75,"./es-do":76,"./es-do.js":76,"./es-us":77,"./es-us.js":77,"./es.js":75,"./et":78,"./et.js":78,"./eu":79,"./eu.js":79,"./fa":80,"./fa.js":80,"./fi":81,"./fi.js":81,"./fo":82,"./fo.js":82,"./fr":83,"./fr-ca":84,"./fr-ca.js":84,"./fr-ch":85,"./fr-ch.js":85,"./fr.js":83,"./fy":86,"./fy.js":86,"./gd":87,"./gd.js":87,"./gl":88,"./gl.js":88,"./gom-latn":89,"./gom-latn.js":89,"./gu":90,"./gu.js":90,"./he":91,"./he.js":91,"./hi":92,"./hi.js":92,"./hr":93,"./hr.js":93,"./hu":94,"./hu.js":94,"./hy-am":95,"./hy-am.js":95,"./id":96,"./id.js":96,"./is":97,"./is.js":97,"./it":98,"./it.js":98,"./ja":99,"./ja.js":99,"./jv":100,"./jv.js":100,"./ka":101,"./ka.js":101,"./kk":102,"./kk.js":102,"./km":103,"./km.js":103,"./kn":104,"./kn.js":104,"./ko":105,"./ko.js":105,"./ky":106,"./ky.js":106,"./lb":107,"./lb.js":107,"./lo":108,"./lo.js":108,"./lt":109,"./lt.js":109,"./lv":110,"./lv.js":110,"./me":111,"./me.js":111,"./mi":112,"./mi.js":112,"./mk":113,"./mk.js":113,"./ml":114,"./ml.js":114,"./mn":115,"./mn.js":115,"./mr":116,"./mr.js":116,"./ms":117,"./ms-my":118,"./ms-my.js":118,"./ms.js":117,"./mt":119,"./mt.js":119,"./my":120,"./my.js":120,"./nb":121,"./nb.js":121,"./ne":122,"./ne.js":122,"./nl":123,"./nl-be":124,"./nl-be.js":124,"./nl.js":123,"./nn":125,"./nn.js":125,"./pa-in":126,"./pa-in.js":126,"./pl":127,"./pl.js":127,"./pt":128,"./pt-br":129,"./pt-br.js":129,"./pt.js":128,"./ro":130,"./ro.js":130,"./ru":131,"./ru.js":131,"./sd":132,"./sd.js":132,"./se":133,"./se.js":133,"./si":134,"./si.js":134,"./sk":135,"./sk.js":135,"./sl":136,"./sl.js":136,"./sq":137,"./sq.js":137,"./sr":138,"./sr-cyrl":139,"./sr-cyrl.js":139,"./sr.js":138,"./ss":140,"./ss.js":140,"./sv":141,"./sv.js":141,"./sw":142,"./sw.js":142,"./ta":143,"./ta.js":143,"./te":144,"./te.js":144,"./tet":145,"./tet.js":145,"./tg":146,"./tg.js":146,"./th":147,"./th.js":147,"./tl-ph":148,"./tl-ph.js":148,"./tlh":149,"./tlh.js":149,"./tr":150,"./tr.js":150,"./tzl":151,"./tzl.js":151,"./tzm":152,"./tzm-latn":153,"./tzm-latn.js":153,"./tzm.js":152,"./ug-cn":154,"./ug-cn.js":154,"./uk":155,"./uk.js":155,"./ur":156,"./ur.js":156,"./uz":157,"./uz-latn":158,"./uz-latn.js":158,"./uz.js":157,"./vi":159,"./vi.js":159,"./x-pseudo":160,"./x-pseudo.js":160,"./yo":161,"./yo.js":161,"./zh-cn":162,"./zh-cn.js":162,"./zh-hk":163,"./zh-hk.js":163,"./zh-tw":164,"./zh-tw.js":164};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=199},2:function(e,t){!function(){e.exports=this.wp.i18n}()},202:function(e,t){},203:function(e,t){},205:function(e,t){},206:function(e,t){},23:function(e,t){!function(){e.exports=this.wp.url}()},24:function(e,t,r){"use strict";var n=r(26),o=r.n(n),c=r(168),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:d?"menuitemradio":"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}()},30:function(e,t){!function(){e.exports=this.wp.blocks}()},31:function(e,t,r){"use strict";var n=r(13),o=r.n(n),c=r(16),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(6),f=r.n(j),v=r(0),w=r(2),O=r(3),_=r(15),y=r(4),k=r(19),E=r.n(k),S=r(1),C=r.n(S),x=r(169);r(173);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)},36: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})},37:function(e,t,r){"use strict";var n=r(0),o=r(2),c=r(1),s=r.n(c),a=(r(179),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},38:function(e,t,r){"use strict";r.d(t,"a",function(){return c});var n=r(167),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+="]"}},4:function(e,t){!function(){e.exports=this.lodash}()},40:function(e,t,r){"use strict";var n=r(26),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(6),h=r.n(g),j=r(0),f=r(2),v=r(23),w=r(14),O=r.n(w),_=r(4),y=r(1),k=r.n(y),E=r(3),S=(r(185),r(31)),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},705:function(e,t,r){var n=r(706);"string"==typeof n&&(n=[[e.i,n,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};r(27)(n,o);n.locals&&(e.exports=n.locals)},706:function(e,t,r){},714: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(30),i=(r(705),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(6),v=r.n(f),w=r(23),O=r(14),_=r.n(O),y=r(25),k=r(3),E=r(4),S=r(1),C=r.n(S),x=r(36),N=r(40),z=r(193),I=r(37),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(38),P=r(166);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"))}})}}));
|
1 |
+
!function(e,t){for(var r in t)e[r]=t[r]}(this,function(e){function t(t){for(var o,s,a=t[0],i=t[1],l=t[2],d=0,b=[];d<a.length;d++)s=a[d],n[s]&&b.push(n[s][0]),n[s]=0;for(o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o]);for(u&&u(t);b.length;)b.shift()();return c.push.apply(c,l||[]),r()}function r(){for(var e,t=0;t<c.length;t++){for(var r=c[t],o=!0,a=1;a<r.length;a++){var i=r[a];0!==n[i]&&(o=!1)}o&&(c.splice(t--,1),e=s(s.s=r[0]))}return e}var o={},n={4:0},c=[];function s(t){if(o[t])return o[t].exports;var r=o[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=o,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 o in e)s.d(r,o,function(t){return e[t]}.bind(null,o));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([628,0]),r()}({0:function(e,t){!function(){e.exports=this.wp.element}()},15:function(e,t){!function(){e.exports=this.wp.apiFetch}()},16:function(e,t){!function(){e.exports=this.wp.compose}()},167:function(e,t,r){var o=r(168);"string"==typeof o&&(o=[[e.i,o,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};r(28)(o,n);o.locals&&(e.exports=o.locals)},168:function(e,t,r){},169:function(e,t,r){"use strict";var o=r(26),n=r.n(o),c=r(8),s=r.n(c),a=r(9),i=r.n(a),l=r(10),u=r.n(l),d=r(11),b=r.n(d),p=r(12),m=r.n(p),g=r(5),h=r.n(g),j=r(0),f=r(2),_=r(21),v=r(15),w=r.n(v),O=r(3),y=r(1),k=r.n(y),E=r(4),S=(r(182),r(30)),C=r(23),x=function(e){function t(){var e;return s()(this,t),(e=u()(this,b()(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;w()({path:Object(_.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,o=e.depth,c=void 0===o?0:o,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,n()({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,o=this.props,n=o.onChange,c=o.onOperatorChange,s=o.operator,a=o.selected,i={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:a.map(function(e){return Object(O.find)(t,{id:e})}).filter(Boolean),onChange:n,renderItem:this.renderItem,messages:i,isHierarchical:!0}),!!c&&Object(j.createElement)("div",{className:a.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:s,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},x.defaultProps={operator:"any"},t.a=x},17:function(e,t,r){"use strict";var o=r(0),n=r(4),c=function(){return Object(o.createElement)(n.Icon,{icon:Object(o.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(o.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(o.createElement)(n.Icon,{icon:Object(o.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(o.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(o.createElement)(n.Icon,{icon:Object(o.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(o.createElement)("path",{d:"M0 0h24v24H0z",fill:"none"}),Object(o.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(o.createElement)(n.Icon,{icon:Object(o.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(o.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(o.createElement)(n.Icon,{icon:Object(o.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(o.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(o.createElement)(n.Icon,{icon:Object(o.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(o.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(o.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})},171: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"}}},175:function(e,t,r){var o=r(176);"string"==typeof o&&(o=[[e.i,o,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};r(28)(o,n);o.locals&&(e.exports=o.locals)},176:function(e,t,r){},177:function(e,t){!function(){e.exports=this.wp.data}()},179:function(e,t,r){"use strict";var o=r(0),n=r(2),c=r(4),s=r(1),a=r.n(s),i=function(e){var t=e.value,r=e.setAttributes;return Object(o.createElement)(c.SelectControl,{label:Object(n.__)("Order products by","woo-gutenberg-products-block"),value:t,options:[{label:Object(n.__)("Newness - newest first","woo-gutenberg-products-block"),value:"date"},{label:Object(n.__)("Price - low to high","woo-gutenberg-products-block"),value:"price_asc"},{label:Object(n.__)("Price - high to low","woo-gutenberg-products-block"),value:"price_desc"},{label:Object(n.__)("Rating - highest first","woo-gutenberg-products-block"),value:"rating"},{label:Object(n.__)("Sales - most first","woo-gutenberg-products-block"),value:"popularity"},{label:Object(n.__)("Title - alphabetical","woo-gutenberg-products-block"),value:"title"},{label:Object(n.__)("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},182:function(e,t,r){var o=r(183);"string"==typeof o&&(o=[[e.i,o,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};r(28)(o,n);o.locals&&(e.exports=o.locals)},183:function(e,t,r){},185:function(e,t,r){var o={"./af":40,"./af.js":40,"./ar":41,"./ar-dz":42,"./ar-dz.js":42,"./ar-kw":43,"./ar-kw.js":43,"./ar-ly":44,"./ar-ly.js":44,"./ar-ma":45,"./ar-ma.js":45,"./ar-sa":46,"./ar-sa.js":46,"./ar-tn":47,"./ar-tn.js":47,"./ar.js":41,"./az":48,"./az.js":48,"./be":49,"./be.js":49,"./bg":50,"./bg.js":50,"./bm":51,"./bm.js":51,"./bn":52,"./bn.js":52,"./bo":53,"./bo.js":53,"./br":54,"./br.js":54,"./bs":55,"./bs.js":55,"./ca":56,"./ca.js":56,"./cs":57,"./cs.js":57,"./cv":58,"./cv.js":58,"./cy":59,"./cy.js":59,"./da":60,"./da.js":60,"./de":61,"./de-at":62,"./de-at.js":62,"./de-ch":63,"./de-ch.js":63,"./de.js":61,"./dv":64,"./dv.js":64,"./el":65,"./el.js":65,"./en-au":66,"./en-au.js":66,"./en-ca":67,"./en-ca.js":67,"./en-gb":68,"./en-gb.js":68,"./en-ie":69,"./en-ie.js":69,"./en-il":70,"./en-il.js":70,"./en-nz":71,"./en-nz.js":71,"./eo":72,"./eo.js":72,"./es":73,"./es-do":74,"./es-do.js":74,"./es-us":75,"./es-us.js":75,"./es.js":73,"./et":76,"./et.js":76,"./eu":77,"./eu.js":77,"./fa":78,"./fa.js":78,"./fi":79,"./fi.js":79,"./fo":80,"./fo.js":80,"./fr":81,"./fr-ca":82,"./fr-ca.js":82,"./fr-ch":83,"./fr-ch.js":83,"./fr.js":81,"./fy":84,"./fy.js":84,"./gd":85,"./gd.js":85,"./gl":86,"./gl.js":86,"./gom-latn":87,"./gom-latn.js":87,"./gu":88,"./gu.js":88,"./he":89,"./he.js":89,"./hi":90,"./hi.js":90,"./hr":91,"./hr.js":91,"./hu":92,"./hu.js":92,"./hy-am":93,"./hy-am.js":93,"./id":94,"./id.js":94,"./is":95,"./is.js":95,"./it":96,"./it.js":96,"./ja":97,"./ja.js":97,"./jv":98,"./jv.js":98,"./ka":99,"./ka.js":99,"./kk":100,"./kk.js":100,"./km":101,"./km.js":101,"./kn":102,"./kn.js":102,"./ko":103,"./ko.js":103,"./ky":104,"./ky.js":104,"./lb":105,"./lb.js":105,"./lo":106,"./lo.js":106,"./lt":107,"./lt.js":107,"./lv":108,"./lv.js":108,"./me":109,"./me.js":109,"./mi":110,"./mi.js":110,"./mk":111,"./mk.js":111,"./ml":112,"./ml.js":112,"./mn":113,"./mn.js":113,"./mr":114,"./mr.js":114,"./ms":115,"./ms-my":116,"./ms-my.js":116,"./ms.js":115,"./mt":117,"./mt.js":117,"./my":118,"./my.js":118,"./nb":119,"./nb.js":119,"./ne":120,"./ne.js":120,"./nl":121,"./nl-be":122,"./nl-be.js":122,"./nl.js":121,"./nn":123,"./nn.js":123,"./pa-in":124,"./pa-in.js":124,"./pl":125,"./pl.js":125,"./pt":126,"./pt-br":127,"./pt-br.js":127,"./pt.js":126,"./ro":128,"./ro.js":128,"./ru":129,"./ru.js":129,"./sd":130,"./sd.js":130,"./se":131,"./se.js":131,"./si":132,"./si.js":132,"./sk":133,"./sk.js":133,"./sl":134,"./sl.js":134,"./sq":135,"./sq.js":135,"./sr":136,"./sr-cyrl":137,"./sr-cyrl.js":137,"./sr.js":136,"./ss":138,"./ss.js":138,"./sv":139,"./sv.js":139,"./sw":140,"./sw.js":140,"./ta":141,"./ta.js":141,"./te":142,"./te.js":142,"./tet":143,"./tet.js":143,"./tg":144,"./tg.js":144,"./th":145,"./th.js":145,"./tl-ph":146,"./tl-ph.js":146,"./tlh":147,"./tlh.js":147,"./tr":148,"./tr.js":148,"./tzl":149,"./tzl.js":149,"./tzm":150,"./tzm-latn":151,"./tzm-latn.js":151,"./tzm.js":150,"./ug-cn":152,"./ug-cn.js":152,"./uk":153,"./uk.js":153,"./ur":154,"./ur.js":154,"./uz":155,"./uz-latn":156,"./uz-latn.js":156,"./uz.js":155,"./vi":157,"./vi.js":157,"./x-pseudo":158,"./x-pseudo.js":158,"./yo":159,"./yo.js":159,"./zh-cn":160,"./zh-cn.js":160,"./zh-hk":161,"./zh-hk.js":161,"./zh-tw":162,"./zh-tw.js":162};function n(e){var t=c(e);return r(t)}function c(e){if(!r.o(o,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return o[e]}n.keys=function(){return Object.keys(o)},n.resolve=c,e.exports=n,n.id=185},188:function(e,t){},189:function(e,t){},191:function(e,t){},192:function(e,t){},2:function(e,t){!function(){e.exports=this.wp.i18n}()},21:function(e,t){!function(){e.exports=this.wp.url}()},23:function(e,t,r){"use strict";var o=r(26),n=r.n(o),c=r(164),s=r.n(c),a=r(0),i=r(3),l=r(4),u=r(1),d=r.n(u),b=r(17);function p(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,o=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,_=s()(e,["className","depth","item","isSelected","isSingle","onSelect","search","showCount"]),v=[t,"woocommerce-search-list__item"];v.push("depth-".concat(o)),d&&v.push("is-radio-button");var w,O=c.breadcrumbs&&c.breadcrumbs.length;return Object(a.createElement)(l.MenuItem,n()({role:d?"menuitemradio":"menuitemcheckbox",className:v.join(" "),onClick:m(c),isSelected:u},_),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"},O?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:p(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},24:function(e,t){!function(){e.exports=this.wp.editor}()},29:function(e,t){!function(){e.exports=this.wp.blocks}()},3:function(e,t){!function(){e.exports=this.lodash}()},30:function(e,t,r){"use strict";var o=r(13),n=r.n(o),c=r(14),s=r.n(c),a=r(8),i=r.n(a),l=r(9),u=r.n(l),d=r(10),b=r.n(d),p=r(11),m=r.n(p),g=r(12),h=r.n(g),j=r(5),f=r.n(j),_=r(0),v=r(2),w=r(4),O=r(16),y=r(3),k=r(18),E=r.n(k),S=r(1),C=r.n(S),x=r(165);r(167);function N(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=Object(y.groupBy)(e,"parent"),o=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(o[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],n()({},t,{breadcrumbs:c(o[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(23),I={clear:Object(v.__)("Clear all selected items","woo-gutenberg-products-block"),list:Object(v.__)("Results","woo-gutenberg-products-block"),noItems:Object(v.__)("No items found.","woo-gutenberg-products-block"),noResults:Object(v.__)("No results for %s","woo-gutenberg-products-block"),search:Object(v.__)("Search for items","woo-gutenberg-products-block"),selected:function(e){return Object(v.sprintf)(Object(v._n)("%d item selected","%d items selected",e,"woo-gutenberg-products-block"),e)},updated:Object(v.__)("Search results updated.","woo-gutenberg-products-block")},R=function(e){function t(){var e;return i()(this,t),(e=b()(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,o=t.onChange,n=t.selected;return function(){r&&o([]);var t=Object(y.findIndex)(n,{id:e});o([].concat(s()(n.slice(0,t)),s()(n.slice(t+1))))}}},{key:"onSelect",value:function(e){var t=this,r=this.props,o=r.isSingle,n=r.onChange,c=r.selected;return function(){t.isSelected(e)?t.onRemove(e.id)():n(o?[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 o=n()({},I,this.props.messages),c=new RegExp(Object(y.escapeRegExp)(t),"i");this.props.debouncedSpeak(o.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(_.createElement)(z.a,e)}},{key:"renderList",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=this.props,n=o.isSingle,c=o.search,s=this.props.renderItem||this.defaultRenderItem;return e?e.map(function(e){return Object(_.createElement)(_.Fragment,{key:e.id},s({item:e,isSelected:t.isSelected(e),onSelect:t.onSelect,isSingle:n,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,o=this.getFilteredList(this.props.list,r),c=n()({},I,this.props.messages);return t?Object(_.createElement)("div",{className:"woocommerce-search-list__list is-loading"},Object(_.createElement)(w.Spinner,null)):o.length?Object(_.createElement)(w.MenuGroup,{label:c.list,className:"woocommerce-search-list__list"},this.renderList(o)):Object(_.createElement)("div",{className:"woocommerce-search-list__list is-not-found"},Object(_.createElement)("span",{className:"woocommerce-search-list__not-found-icon"},Object(_.createElement)(E.a,{icon:"notice-outline",role:"img","aria-hidden":"true",focusable:"false"})),Object(_.createElement)("span",{className:"woocommerce-search-list__not-found-text"},r?Object(v.sprintf)(c.noResults,r):c.noItems))}},{key:"renderSelectedSection",value:function(){var e=this,t=this.props,r=t.isLoading,o=t.isSingle,c=t.selected,s=n()({},I,this.props.messages);if(r||o||!c)return null;var a=c.length;return Object(_.createElement)("div",{className:"woocommerce-search-list__selected"},Object(_.createElement)("div",{className:"woocommerce-search-list__selected-header"},Object(_.createElement)("strong",null,s.selected(a)),a>0?Object(_.createElement)(w.Button,{isLink:!0,isDestructive:!0,onClick:this.onClear,"aria-label":s.clear},Object(v.__)("Clear all","woo-gutenberg-products-block")):null),c.map(function(t,r){return Object(_.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,o=e.search,c=e.setState,s=n()({},I,this.props.messages);return Object(_.createElement)("div",{className:"woocommerce-search-list ".concat(r)},this.renderSelectedSection(),Object(_.createElement)("div",{className:"woocommerce-search-list__search"},Object(_.createElement)(w.TextControl,{label:s.search,type:"search",value:o,onChange:function(e){return c({search:e})}})),this.renderListSection())}}]),t}(_.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(O.compose)([Object(O.withState)({search:""}),w.withSpokenMessages,O.withInstanceId])(R)},33:function(e,t,r){"use strict";function o(e,t){var r=e.attributes,o=e.attrOperator,n=e.categories,c=e.catOperator,s=e.orderby,a=e.products,i=e.columns||wc_product_block_data.default_columns,l={status:"publish",per_page:(e.rows||wc_product_block_data.default_rows)*i};switch(n&&n.length&&(l.category=n.join(","),c&&"all"===c&&(l.cat_operator="AND")),s&&("price_desc"===s?(l.orderby="price",l.order="desc"):"price_asc"===s?(l.orderby="price",l.order="asc"):"title"===s?(l.orderby="title",l.order="asc"):"menu_order"===s?(l.orderby="menu_order",l.order="asc"):l.orderby=s),r&&r.length>0&&(l.attribute_term=r.map(function(e){return e.id}).join(","),l.attribute=r[0].attr_slug,o&&(l.attr_operator="all"===o?"AND":"IN")),t){case"woocommerce/product-best-sellers":l.orderby="popularity";break;case"woocommerce/product-top-rated":l.orderby="rating";break;case"woocommerce/product-on-sale":l.on_sale=1;break;case"woocommerce/product-new":l.orderby="date";break;case"woocommerce/handpicked-products":l.include=a,l.per_page=a.length}return l}r.d(t,"a",function(){return o})},34:function(e,t,r){"use strict";var o=r(0),n=r(2),c=r(1),s=r.n(c),a=(r(175),function(e){var t=e.product,r=wc_product_block_data.placeholderImgSrc,c=null;return c=t.images.length?Object(o.createElement)("img",{src:t.images[0].src,alt:""}):Object(o.createElement)("img",{src:r,alt:""}),Object(o.createElement)("div",{className:"wc-product-preview"},c,Object(o.createElement)("div",{className:"wc-product-preview__title"},t.name),Object(o.createElement)("div",{className:"wc-product-preview__price",dangerouslySetInnerHTML:{__html:t.price_html}}),Object(o.createElement)("span",{className:"wp-block-button"},Object(o.createElement)("span",{className:"wc-product-preview__add-to-cart wp-block-button__link"},Object(n.__)("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},35:function(e,t,r){"use strict";r.d(t,"a",function(){return c});var o=r(163),n=r.n(o);function c(e,t){var r=e.attributes,o=r.attributes,c=r.attrOperator,s=r.categories,a=r.catOperator,i=r.orderby,l=r.products,u=r.columns||wc_product_block_data.default_columns,d=r.rows||wc_product_block_data.default_rows,b=new Map;switch(b.set("limit",d*u),b.set("columns",u),s&&s.length&&(b.set("category",s.join(",")),a&&"all"===a&&b.set("cat_operator","AND")),o&&o.length&&(b.set("terms",o.map(function(e){return e.id}).join(",")),b.set("attribute",o[0].attr_slug),c&&"all"===c&&b.set("terms_operator","AND")),i&&("price_desc"===i?(b.set("orderby","price"),b.set("order","DESC")):"price_asc"===i?(b.set("orderby","price"),b.set("order","ASC")):"date"===i?(b.set("orderby","date"),b.set("order","DESC")):b.set("orderby",i)),t){case"woocommerce/product-best-sellers":b.set("best_selling","1");break;case"woocommerce/product-top-rated":b.set("orderby","rating");break;case"woocommerce/product-on-sale":b.set("on_sale","1");break;case"woocommerce/product-new":b.set("orderby","date"),b.set("order","DESC");break;case"woocommerce/handpicked-products":if(!l.length)return"";b.set("ids",l.join(",")),b.set("limit",l.length);break;case"woocommerce/product-category":if(!s||!s.length)return"";break;case"woocommerce/products-by-attribute":if(!o||!o.length)return""}var p="[products",m=!0,g=!1,h=void 0;try{for(var j,f=b[Symbol.iterator]();!(m=(j=f.next()).done);m=!0){var _=n()(j.value,2);p+=" "+_[0]+'="'+_[1]+'"'}}catch(e){g=!0,h=e}finally{try{m||null==f.return||f.return()}finally{if(g)throw h}}return p+="]"}},39:function(e,t,r){"use strict";var o=r(0),n=r(2),c=r(3),s=r(1),a=r.n(s),i=r(4),l=function(e){var t=e.columns,r=e.rows,s=e.setAttributes;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(i.RangeControl,{label:Object(n.__)("Columns","woo-gutenberg-products-block"),value:t,onChange:function(e){var t=Object(c.clamp)(e,wc_product_block_data.min_columns,wc_product_block_data.max_columns);s({columns:Object(c.isNaN)(t)?"":t})},min:wc_product_block_data.min_columns,max:wc_product_block_data.max_columns}),Object(o.createElement)(i.RangeControl,{label:Object(n.__)("Rows","woo-gutenberg-products-block"),value:r,onChange:function(e){var t=Object(c.clamp)(e,wc_product_block_data.min_rows,wc_product_block_data.max_rows);s({rows:Object(c.isNaN)(t)?"":t})},min:wc_product_block_data.min_rows,max:wc_product_block_data.max_rows}))};l.propTypes={columns:a.a.oneOfType([a.a.number,a.a.string]).isRequired,rows:a.a.oneOfType([a.a.number,a.a.string]).isRequired,setAttributes:a.a.func.isRequired},t.a=l},4:function(e,t){!function(){e.exports=this.wp.components}()},610:function(e,t,r){var o=r(611);"string"==typeof o&&(o=[[e.i,o,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};r(28)(o,n);o.locals&&(e.exports=o.locals)},611:function(e,t,r){},628:function(e,t,r){"use strict";r.r(t);var o=r(13),n=r.n(o),c=r(0),s=r(2),a=r(29),i=(r(610),r(8)),l=r.n(i),u=r(9),d=r.n(u),b=r(10),p=r.n(b),m=r(11),g=r.n(m),h=r(12),j=r.n(h),f=r(5),_=r.n(f),v=r(21),w=r(15),O=r.n(w),y=r(24),k=r(4),E=r(3),S=r(1),C=r.n(S),x=r(33),N=r(39),z=r(169),I=r(179),R=r(34),M=function(e){function t(){var e;return l()(this,t),(e=p()(this,g()(t).apply(this,arguments))).state={products:[],loaded:!1},e.debouncedGetProducts=Object(E.debounce)(e.getProducts.bind(_()(_()(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,o){return r||e.attributes[o]!==t.props.attributes[o]},!1)&&this.debouncedGetProducts()}},{key:"getProducts",value:function(){var e=this;this.props.attributes.categories.length?O()({path:Object(v.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,o=t.columns,n=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)(z.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:n,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)(N.a,{columns:o,rows:i,setAttributes:r})),Object(c.createElement)(k.PanelBody,{title:Object(s.__)("Order By","woo-gutenberg-products-block"),initialOpen:!1},Object(c.createElement)(I.a,{setAttributes:r,value:a})))}},{key:"renderEditMode",value:function(){var e=this.props,t=e.attributes,r=e.debouncedSpeak,o=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)(z.a,{selected:t.categories,onChange:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(function(e){return e.id});o({categories:e})},operator:t.catOperator,onOperatorChange:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"any";return o({catOperator:e})}}),Object(c.createElement)(k.Button,{isDefault:!0,onClick:function(){o({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,o=t.columns,n=t.editMode,a=this.state,i=a.loaded,l=a.products,u=["wc-block-products-grid","wc-block-products-category"];o&&u.push("cols-".concat(o)),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:!n})},isActive:n}]})),this.getInspectorControls(),n?this.renderEditMode():Object(c.createElement)("div",{className:u.join(" ")},l.length?l.map(function(e){return Object(c.createElement)(R.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);M.propTypes={attributes:C.a.object.isRequired,name:C.a.string.isRequired,setAttributes:C.a.func.isRequired,debouncedSpeak:C.a.func.isRequired};var L=Object(k.withSpokenMessages)(M),P=r(35),A=r(171);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:n()({},A.a,{editMode:{type:"boolean",default:!0},orderby:{type:"string",default:"date"}}),edit:function(e){return Object(c.createElement)(L,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-category"))}})}}));
|
@@ -1,3 +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}
|
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;margin:0 auto}.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.depth-0+.depth-1{margin-top:-1px}.woocommerce-search-list__list .woocommerce-search-list__item:not(.depth-0){border-bottom:0!important}.woocommerce-search-list__list .woocommerce-search-list__item:not(.depth-0)+.depth-0{border-top:1px solid #e2e4e7}.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}
|
@@ -1 +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([715,0]),r()}({0:function(e,t){!function(){e.exports=this.wp.element}()},14:function(e,t){!function(){e.exports=this.wp.apiFetch}()},15:function(e,t){!function(){e.exports=this.wp.compose}()},166: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:[]}}},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})},173:function(e,t,r){var n=r(174);"string"==typeof n&&(n=[[e.i,n,""]]);var c={hmr:!0,transform:void 0,insertInto:void 0};r(27)(n,c);n.locals&&(e.exports=n.locals)},174:function(e,t,r){},177:function(e,t){!function(){e.exports=this.wp.data}()},179:function(e,t,r){var n=r(180);"string"==typeof n&&(n=[[e.i,n,""]]);var c={hmr:!0,transform:void 0,insertInto:void 0};r(27)(n,c);n.locals&&(e.exports=n.locals)},180:function(e,t,r){},185:function(e,t,r){var n=r(186);"string"==typeof n&&(n=[[e.i,n,""]]);var c={hmr:!0,transform:void 0,insertInto:void 0};r(27)(n,c);n.locals&&(e.exports=n.locals)},186:function(e,t,r){},199:function(e,t,r){var n={"./af":42,"./af.js":42,"./ar":43,"./ar-dz":44,"./ar-dz.js":44,"./ar-kw":45,"./ar-kw.js":45,"./ar-ly":46,"./ar-ly.js":46,"./ar-ma":47,"./ar-ma.js":47,"./ar-sa":48,"./ar-sa.js":48,"./ar-tn":49,"./ar-tn.js":49,"./ar.js":43,"./az":50,"./az.js":50,"./be":51,"./be.js":51,"./bg":52,"./bg.js":52,"./bm":53,"./bm.js":53,"./bn":54,"./bn.js":54,"./bo":55,"./bo.js":55,"./br":56,"./br.js":56,"./bs":57,"./bs.js":57,"./ca":58,"./ca.js":58,"./cs":59,"./cs.js":59,"./cv":60,"./cv.js":60,"./cy":61,"./cy.js":61,"./da":62,"./da.js":62,"./de":63,"./de-at":64,"./de-at.js":64,"./de-ch":65,"./de-ch.js":65,"./de.js":63,"./dv":66,"./dv.js":66,"./el":67,"./el.js":67,"./en-au":68,"./en-au.js":68,"./en-ca":69,"./en-ca.js":69,"./en-gb":70,"./en-gb.js":70,"./en-ie":71,"./en-ie.js":71,"./en-il":72,"./en-il.js":72,"./en-nz":73,"./en-nz.js":73,"./eo":74,"./eo.js":74,"./es":75,"./es-do":76,"./es-do.js":76,"./es-us":77,"./es-us.js":77,"./es.js":75,"./et":78,"./et.js":78,"./eu":79,"./eu.js":79,"./fa":80,"./fa.js":80,"./fi":81,"./fi.js":81,"./fo":82,"./fo.js":82,"./fr":83,"./fr-ca":84,"./fr-ca.js":84,"./fr-ch":85,"./fr-ch.js":85,"./fr.js":83,"./fy":86,"./fy.js":86,"./gd":87,"./gd.js":87,"./gl":88,"./gl.js":88,"./gom-latn":89,"./gom-latn.js":89,"./gu":90,"./gu.js":90,"./he":91,"./he.js":91,"./hi":92,"./hi.js":92,"./hr":93,"./hr.js":93,"./hu":94,"./hu.js":94,"./hy-am":95,"./hy-am.js":95,"./id":96,"./id.js":96,"./is":97,"./is.js":97,"./it":98,"./it.js":98,"./ja":99,"./ja.js":99,"./jv":100,"./jv.js":100,"./ka":101,"./ka.js":101,"./kk":102,"./kk.js":102,"./km":103,"./km.js":103,"./kn":104,"./kn.js":104,"./ko":105,"./ko.js":105,"./ky":106,"./ky.js":106,"./lb":107,"./lb.js":107,"./lo":108,"./lo.js":108,"./lt":109,"./lt.js":109,"./lv":110,"./lv.js":110,"./me":111,"./me.js":111,"./mi":112,"./mi.js":112,"./mk":113,"./mk.js":113,"./ml":114,"./ml.js":114,"./mn":115,"./mn.js":115,"./mr":116,"./mr.js":116,"./ms":117,"./ms-my":118,"./ms-my.js":118,"./ms.js":117,"./mt":119,"./mt.js":119,"./my":120,"./my.js":120,"./nb":121,"./nb.js":121,"./ne":122,"./ne.js":122,"./nl":123,"./nl-be":124,"./nl-be.js":124,"./nl.js":123,"./nn":125,"./nn.js":125,"./pa-in":126,"./pa-in.js":126,"./pl":127,"./pl.js":127,"./pt":128,"./pt-br":129,"./pt-br.js":129,"./pt.js":128,"./ro":130,"./ro.js":130,"./ru":131,"./ru.js":131,"./sd":132,"./sd.js":132,"./se":133,"./se.js":133,"./si":134,"./si.js":134,"./sk":135,"./sk.js":135,"./sl":136,"./sl.js":136,"./sq":137,"./sq.js":137,"./sr":138,"./sr-cyrl":139,"./sr-cyrl.js":139,"./sr.js":138,"./ss":140,"./ss.js":140,"./sv":141,"./sv.js":141,"./sw":142,"./sw.js":142,"./ta":143,"./ta.js":143,"./te":144,"./te.js":144,"./tet":145,"./tet.js":145,"./tg":146,"./tg.js":146,"./th":147,"./th.js":147,"./tl-ph":148,"./tl-ph.js":148,"./tlh":149,"./tlh.js":149,"./tr":150,"./tr.js":150,"./tzl":151,"./tzl.js":151,"./tzm":152,"./tzm-latn":153,"./tzm-latn.js":153,"./tzm.js":152,"./ug-cn":154,"./ug-cn.js":154,"./uk":155,"./uk.js":155,"./ur":156,"./ur.js":156,"./uz":157,"./uz-latn":158,"./uz-latn.js":158,"./uz.js":157,"./vi":159,"./vi.js":159,"./x-pseudo":160,"./x-pseudo.js":160,"./yo":161,"./yo.js":161,"./zh-cn":162,"./zh-cn.js":162,"./zh-hk":163,"./zh-hk.js":163,"./zh-tw":164,"./zh-tw.js":164};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=199},2:function(e,t){!function(){e.exports=this.wp.i18n}()},202:function(e,t){},203:function(e,t){},205:function(e,t){},206:function(e,t){},23:function(e,t){!function(){e.exports=this.wp.url}()},24:function(e,t,r){"use strict";var n=r(26),c=r.n(n),o=r(168),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:d?"menuitemradio":"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}()},30:function(e,t){!function(){e.exports=this.wp.blocks}()},31:function(e,t,r){"use strict";var n=r(13),c=r.n(n),o=r(16),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(6),f=r.n(g),v=r(0),w=r(2),O=r(3),_=r(15),y=r(4),k=r(19),E=r.n(k),S=r(1),C=r.n(S),x=r(169);r(173);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)},36: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})},37:function(e,t,r){"use strict";var n=r(0),c=r(2),o=r(1),s=r.n(o),a=(r(179),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},38:function(e,t,r){"use strict";r.d(t,"a",function(){return o});var n=r(167),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+="]"}},4:function(e,t){!function(){e.exports=this.lodash}()},40:function(e,t,r){"use strict";var n=r(26),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(6),j=r.n(h),g=r(0),f=r(2),v=r(23),w=r(14),O=r.n(w),_=r(4),y=r(1),k=r.n(y),E=r(3),S=(r(185),r(31)),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},715: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(30),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(6),v=r.n(f),w=r(23),O=r(14),_=r.n(O),y=r(25),k=r(4),E=r(3),S=r(1),C=r.n(S),x=r(36),N=r(17),z=r(40),I=r(37),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(38),P=r(166);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"))}})}}));
|
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([624,0]),r()}({0:function(e,t){!function(){e.exports=this.wp.element}()},15:function(e,t){!function(){e.exports=this.wp.apiFetch}()},16:function(e,t){!function(){e.exports=this.wp.compose}()},167:function(e,t,r){var n=r(168);"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)},168:function(e,t,r){},169:function(e,t,r){"use strict";var n=r(26),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),w=r(21),v=r(15),_=r.n(v),O=r(3),y=r(1),k=r.n(y),E=r(4),S=(r(182),r(30)),C=r(23),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;_()({path:Object(w.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=n.selected,i={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:a.map(function(e){return Object(O.find)(t,{id:e})}).filter(Boolean),onChange:c,renderItem:this.renderItem,messages:i,isHierarchical:!0}),!!o&&Object(g.createElement)("div",{className:a.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:s,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},x.defaultProps={operator:"any"},t.a=x},17:function(e,t,r){"use strict";var n=r(0),c=r(4),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})},171: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"}}},175:function(e,t,r){var n=r(176);"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)},176:function(e,t,r){},177:function(e,t){!function(){e.exports=this.wp.data}()},182:function(e,t,r){var n=r(183);"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)},183:function(e,t,r){},185:function(e,t,r){var n={"./af":40,"./af.js":40,"./ar":41,"./ar-dz":42,"./ar-dz.js":42,"./ar-kw":43,"./ar-kw.js":43,"./ar-ly":44,"./ar-ly.js":44,"./ar-ma":45,"./ar-ma.js":45,"./ar-sa":46,"./ar-sa.js":46,"./ar-tn":47,"./ar-tn.js":47,"./ar.js":41,"./az":48,"./az.js":48,"./be":49,"./be.js":49,"./bg":50,"./bg.js":50,"./bm":51,"./bm.js":51,"./bn":52,"./bn.js":52,"./bo":53,"./bo.js":53,"./br":54,"./br.js":54,"./bs":55,"./bs.js":55,"./ca":56,"./ca.js":56,"./cs":57,"./cs.js":57,"./cv":58,"./cv.js":58,"./cy":59,"./cy.js":59,"./da":60,"./da.js":60,"./de":61,"./de-at":62,"./de-at.js":62,"./de-ch":63,"./de-ch.js":63,"./de.js":61,"./dv":64,"./dv.js":64,"./el":65,"./el.js":65,"./en-au":66,"./en-au.js":66,"./en-ca":67,"./en-ca.js":67,"./en-gb":68,"./en-gb.js":68,"./en-ie":69,"./en-ie.js":69,"./en-il":70,"./en-il.js":70,"./en-nz":71,"./en-nz.js":71,"./eo":72,"./eo.js":72,"./es":73,"./es-do":74,"./es-do.js":74,"./es-us":75,"./es-us.js":75,"./es.js":73,"./et":76,"./et.js":76,"./eu":77,"./eu.js":77,"./fa":78,"./fa.js":78,"./fi":79,"./fi.js":79,"./fo":80,"./fo.js":80,"./fr":81,"./fr-ca":82,"./fr-ca.js":82,"./fr-ch":83,"./fr-ch.js":83,"./fr.js":81,"./fy":84,"./fy.js":84,"./gd":85,"./gd.js":85,"./gl":86,"./gl.js":86,"./gom-latn":87,"./gom-latn.js":87,"./gu":88,"./gu.js":88,"./he":89,"./he.js":89,"./hi":90,"./hi.js":90,"./hr":91,"./hr.js":91,"./hu":92,"./hu.js":92,"./hy-am":93,"./hy-am.js":93,"./id":94,"./id.js":94,"./is":95,"./is.js":95,"./it":96,"./it.js":96,"./ja":97,"./ja.js":97,"./jv":98,"./jv.js":98,"./ka":99,"./ka.js":99,"./kk":100,"./kk.js":100,"./km":101,"./km.js":101,"./kn":102,"./kn.js":102,"./ko":103,"./ko.js":103,"./ky":104,"./ky.js":104,"./lb":105,"./lb.js":105,"./lo":106,"./lo.js":106,"./lt":107,"./lt.js":107,"./lv":108,"./lv.js":108,"./me":109,"./me.js":109,"./mi":110,"./mi.js":110,"./mk":111,"./mk.js":111,"./ml":112,"./ml.js":112,"./mn":113,"./mn.js":113,"./mr":114,"./mr.js":114,"./ms":115,"./ms-my":116,"./ms-my.js":116,"./ms.js":115,"./mt":117,"./mt.js":117,"./my":118,"./my.js":118,"./nb":119,"./nb.js":119,"./ne":120,"./ne.js":120,"./nl":121,"./nl-be":122,"./nl-be.js":122,"./nl.js":121,"./nn":123,"./nn.js":123,"./pa-in":124,"./pa-in.js":124,"./pl":125,"./pl.js":125,"./pt":126,"./pt-br":127,"./pt-br.js":127,"./pt.js":126,"./ro":128,"./ro.js":128,"./ru":129,"./ru.js":129,"./sd":130,"./sd.js":130,"./se":131,"./se.js":131,"./si":132,"./si.js":132,"./sk":133,"./sk.js":133,"./sl":134,"./sl.js":134,"./sq":135,"./sq.js":135,"./sr":136,"./sr-cyrl":137,"./sr-cyrl.js":137,"./sr.js":136,"./ss":138,"./ss.js":138,"./sv":139,"./sv.js":139,"./sw":140,"./sw.js":140,"./ta":141,"./ta.js":141,"./te":142,"./te.js":142,"./tet":143,"./tet.js":143,"./tg":144,"./tg.js":144,"./th":145,"./th.js":145,"./tl-ph":146,"./tl-ph.js":146,"./tlh":147,"./tlh.js":147,"./tr":148,"./tr.js":148,"./tzl":149,"./tzl.js":149,"./tzm":150,"./tzm-latn":151,"./tzm-latn.js":151,"./tzm.js":150,"./ug-cn":152,"./ug-cn.js":152,"./uk":153,"./uk.js":153,"./ur":154,"./ur.js":154,"./uz":155,"./uz-latn":156,"./uz-latn.js":156,"./uz.js":155,"./vi":157,"./vi.js":157,"./x-pseudo":158,"./x-pseudo.js":158,"./yo":159,"./yo.js":159,"./zh-cn":160,"./zh-cn.js":160,"./zh-hk":161,"./zh-hk.js":161,"./zh-tw":162,"./zh-tw.js":162};function c(e){var t=o(e);return r(t)}function o(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}c.keys=function(){return Object.keys(n)},c.resolve=o,e.exports=c,c.id=185},188:function(e,t){},189:function(e,t){},191:function(e,t){},192:function(e,t){},2:function(e,t){!function(){e.exports=this.wp.i18n}()},21:function(e,t){!function(){e.exports=this.wp.url}()},23:function(e,t,r){"use strict";var n=r(26),c=r.n(n),o=r(164),s=r.n(o),a=r(0),i=r(3),l=r(4),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,w=s()(e,["className","depth","item","isSelected","isSingle","onSelect","search","showCount"]),v=[t,"woocommerce-search-list__item"];v.push("depth-".concat(n)),d&&v.push("is-radio-button");var _,O=o.breadcrumbs&&o.breadcrumbs.length;return Object(a.createElement)(l.MenuItem,c()({role:d?"menuitemradio":"menuitemcheckbox",className:v.join(" "),onClick:b(o),isSelected:u},w),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"},O?Object(a.createElement)("span",{className:"woocommerce-search-list__item-prefix"},1===(_=o.breadcrumbs).length?Object(i.first)(_):2===_.length?Object(i.first)(_)+" › "+Object(i.last)(_):Object(i.first)(_)+" … "+Object(i.last)(_)):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},24:function(e,t){!function(){e.exports=this.wp.editor}()},29:function(e,t){!function(){e.exports=this.wp.blocks}()},3:function(e,t){!function(){e.exports=this.lodash}()},30:function(e,t,r){"use strict";var n=r(13),c=r.n(n),o=r(14),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),w=r(0),v=r(2),_=r(4),O=r(16),y=r(3),k=r(18),E=r.n(k),S=r(1),C=r.n(S),x=r(165);r(167);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(23),I={clear:Object(v.__)("Clear all selected items","woo-gutenberg-products-block"),list:Object(v.__)("Results","woo-gutenberg-products-block"),noItems:Object(v.__)("No items found.","woo-gutenberg-products-block"),noResults:Object(v.__)("No results for %s","woo-gutenberg-products-block"),search:Object(v.__)("Search for items","woo-gutenberg-products-block"),selected:function(e){return Object(v.sprintf)(Object(v._n)("%d item selected","%d items selected",e,"woo-gutenberg-products-block"),e)},updated:Object(v.__)("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(w.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(w.createElement)(w.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(w.createElement)("div",{className:"woocommerce-search-list__list is-loading"},Object(w.createElement)(_.Spinner,null)):n.length?Object(w.createElement)(_.MenuGroup,{label:o.list,className:"woocommerce-search-list__list"},this.renderList(n)):Object(w.createElement)("div",{className:"woocommerce-search-list__list is-not-found"},Object(w.createElement)("span",{className:"woocommerce-search-list__not-found-icon"},Object(w.createElement)(E.a,{icon:"notice-outline",role:"img","aria-hidden":"true",focusable:"false"})),Object(w.createElement)("span",{className:"woocommerce-search-list__not-found-text"},r?Object(v.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(w.createElement)("div",{className:"woocommerce-search-list__selected"},Object(w.createElement)("div",{className:"woocommerce-search-list__selected-header"},Object(w.createElement)("strong",null,s.selected(a)),a>0?Object(w.createElement)(_.Button,{isLink:!0,isDestructive:!0,onClick:this.onClear,"aria-label":s.clear},Object(v.__)("Clear all","woo-gutenberg-products-block")):null),o.map(function(t,r){return Object(w.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(w.createElement)("div",{className:"woocommerce-search-list ".concat(r)},this.renderSelectedSection(),Object(w.createElement)("div",{className:"woocommerce-search-list__search"},Object(w.createElement)(_.TextControl,{label:s.search,type:"search",value:n,onChange:function(e){return o({search:e})}})),this.renderListSection())}}]),t}(w.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(O.compose)([Object(O.withState)({search:""}),_.withSpokenMessages,O.withInstanceId])(R)},33:function(e,t,r){"use strict";function n(e,t){var r=e.attributes,n=e.attrOperator,c=e.categories,o=e.catOperator,s=e.orderby,a=e.products,i=e.columns||wc_product_block_data.default_columns,l={status:"publish",per_page:(e.rows||wc_product_block_data.default_rows)*i};switch(c&&c.length&&(l.category=c.join(","),o&&"all"===o&&(l.cat_operator="AND")),s&&("price_desc"===s?(l.orderby="price",l.order="desc"):"price_asc"===s?(l.orderby="price",l.order="asc"):"title"===s?(l.orderby="title",l.order="asc"):"menu_order"===s?(l.orderby="menu_order",l.order="asc"):l.orderby=s),r&&r.length>0&&(l.attribute_term=r.map(function(e){return e.id}).join(","),l.attribute=r[0].attr_slug,n&&(l.attr_operator="all"===n?"AND":"IN")),t){case"woocommerce/product-best-sellers":l.orderby="popularity";break;case"woocommerce/product-top-rated":l.orderby="rating";break;case"woocommerce/product-on-sale":l.on_sale=1;break;case"woocommerce/product-new":l.orderby="date";break;case"woocommerce/handpicked-products":l.include=a,l.per_page=a.length}return l}r.d(t,"a",function(){return n})},34:function(e,t,r){"use strict";var n=r(0),c=r(2),o=r(1),s=r.n(o),a=(r(175),function(e){var t=e.product,r=wc_product_block_data.placeholderImgSrc,o=null;return o=t.images.length?Object(n.createElement)("img",{src:t.images[0].src,alt:""}):Object(n.createElement)("img",{src:r,alt:""}),Object(n.createElement)("div",{className:"wc-product-preview"},o,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},35:function(e,t,r){"use strict";r.d(t,"a",function(){return o});var n=r(163),c=r.n(n);function o(e,t){var r=e.attributes,n=r.attributes,o=r.attrOperator,s=r.categories,a=r.catOperator,i=r.orderby,l=r.products,u=r.columns||wc_product_block_data.default_columns,d=r.rows||wc_product_block_data.default_rows,p=new Map;switch(p.set("limit",d*u),p.set("columns",u),s&&s.length&&(p.set("category",s.join(",")),a&&"all"===a&&p.set("cat_operator","AND")),n&&n.length&&(p.set("terms",n.map(function(e){return e.id}).join(",")),p.set("attribute",n[0].attr_slug),o&&"all"===o&&p.set("terms_operator","AND")),i&&("price_desc"===i?(p.set("orderby","price"),p.set("order","DESC")):"price_asc"===i?(p.set("orderby","price"),p.set("order","ASC")):"date"===i?(p.set("orderby","date"),p.set("order","DESC")):p.set("orderby",i)),t){case"woocommerce/product-best-sellers":p.set("best_selling","1");break;case"woocommerce/product-top-rated":p.set("orderby","rating");break;case"woocommerce/product-on-sale":p.set("on_sale","1");break;case"woocommerce/product-new":p.set("orderby","date"),p.set("order","DESC");break;case"woocommerce/handpicked-products":if(!l.length)return"";p.set("ids",l.join(",")),p.set("limit",l.length);break;case"woocommerce/product-category":if(!s||!s.length)return"";break;case"woocommerce/products-by-attribute":if(!n||!n.length)return""}var m="[products",b=!0,h=!1,j=void 0;try{for(var g,f=p[Symbol.iterator]();!(b=(g=f.next()).done);b=!0){var w=c()(g.value,2);m+=" "+w[0]+'="'+w[1]+'"'}}catch(e){h=!0,j=e}finally{try{b||null==f.return||f.return()}finally{if(h)throw j}}return m+="]"}},39:function(e,t,r){"use strict";var n=r(0),c=r(2),o=r(3),s=r(1),a=r.n(s),i=r(4),l=function(e){var t=e.columns,r=e.rows,s=e.setAttributes;return Object(n.createElement)(n.Fragment,null,Object(n.createElement)(i.RangeControl,{label:Object(c.__)("Columns","woo-gutenberg-products-block"),value:t,onChange:function(e){var t=Object(o.clamp)(e,wc_product_block_data.min_columns,wc_product_block_data.max_columns);s({columns:Object(o.isNaN)(t)?"":t})},min:wc_product_block_data.min_columns,max:wc_product_block_data.max_columns}),Object(n.createElement)(i.RangeControl,{label:Object(c.__)("Rows","woo-gutenberg-products-block"),value:r,onChange:function(e){var t=Object(o.clamp)(e,wc_product_block_data.min_rows,wc_product_block_data.max_rows);s({rows:Object(o.isNaN)(t)?"":t})},min:wc_product_block_data.min_rows,max:wc_product_block_data.max_rows}))};l.propTypes={columns:a.a.oneOfType([a.a.number,a.a.string]).isRequired,rows:a.a.oneOfType([a.a.number,a.a.string]).isRequired,setAttributes:a.a.func.isRequired},t.a=l},4:function(e,t){!function(){e.exports=this.wp.components}()},624: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(29),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),w=r.n(f),v=r(21),_=r(15),O=r.n(_),y=r(24),k=r(3),E=r(4),S=r(1),C=r.n(S),x=r(33),N=r(39),z=r(17),I=r(169),R=r(34),L=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(w()(w()(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;O()({path:Object(v.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)(N.a,{columns:a,rows:i,setAttributes:r})),Object(o.createElement)(E.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-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)(R.a,{product:e,key:e.id})}):Object(o.createElement)(E.Placeholder,{icon:Object(o.createElement)(z.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);L.propTypes={attributes:C.a.object.isRequired,name:C.a.string.isRequired,setAttributes:C.a.func.isRequired};var M=L,P=r(35),B=r(171);Object(a.registerBlockType)("woocommerce/product-new",{title:Object(s.__)("Newest Products","woo-gutenberg-products-block"),icon:Object(o.createElement)(z.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()({},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-new"))}})}}));
|
@@ -1,3 +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}
|
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;margin:0 auto}.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.depth-0+.depth-1{margin-top:-1px}.woocommerce-search-list__list .woocommerce-search-list__item:not(.depth-0){border-bottom:0!important}.woocommerce-search-list__list .woocommerce-search-list__item:not(.depth-0)+.depth-0{border-top:1px solid #e2e4e7}.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}
|
@@ -1 +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([718,0]),r()}({0:function(e,t){!function(){e.exports=this.wp.element}()},14:function(e,t){!function(){e.exports=this.wp.apiFetch}()},15:function(e,t){!function(){e.exports=this.wp.compose}()},166: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:[]}}},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})},173:function(e,t,r){var n=r(174);"string"==typeof n&&(n=[[e.i,n,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};r(27)(n,o);n.locals&&(e.exports=n.locals)},174:function(e,t,r){},177:function(e,t){!function(){e.exports=this.wp.data}()},179:function(e,t,r){var n=r(180);"string"==typeof n&&(n=[[e.i,n,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};r(27)(n,o);n.locals&&(e.exports=n.locals)},180:function(e,t,r){},185:function(e,t,r){var n=r(186);"string"==typeof n&&(n=[[e.i,n,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};r(27)(n,o);n.locals&&(e.exports=n.locals)},186:function(e,t,r){},193: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},199:function(e,t,r){var n={"./af":42,"./af.js":42,"./ar":43,"./ar-dz":44,"./ar-dz.js":44,"./ar-kw":45,"./ar-kw.js":45,"./ar-ly":46,"./ar-ly.js":46,"./ar-ma":47,"./ar-ma.js":47,"./ar-sa":48,"./ar-sa.js":48,"./ar-tn":49,"./ar-tn.js":49,"./ar.js":43,"./az":50,"./az.js":50,"./be":51,"./be.js":51,"./bg":52,"./bg.js":52,"./bm":53,"./bm.js":53,"./bn":54,"./bn.js":54,"./bo":55,"./bo.js":55,"./br":56,"./br.js":56,"./bs":57,"./bs.js":57,"./ca":58,"./ca.js":58,"./cs":59,"./cs.js":59,"./cv":60,"./cv.js":60,"./cy":61,"./cy.js":61,"./da":62,"./da.js":62,"./de":63,"./de-at":64,"./de-at.js":64,"./de-ch":65,"./de-ch.js":65,"./de.js":63,"./dv":66,"./dv.js":66,"./el":67,"./el.js":67,"./en-au":68,"./en-au.js":68,"./en-ca":69,"./en-ca.js":69,"./en-gb":70,"./en-gb.js":70,"./en-ie":71,"./en-ie.js":71,"./en-il":72,"./en-il.js":72,"./en-nz":73,"./en-nz.js":73,"./eo":74,"./eo.js":74,"./es":75,"./es-do":76,"./es-do.js":76,"./es-us":77,"./es-us.js":77,"./es.js":75,"./et":78,"./et.js":78,"./eu":79,"./eu.js":79,"./fa":80,"./fa.js":80,"./fi":81,"./fi.js":81,"./fo":82,"./fo.js":82,"./fr":83,"./fr-ca":84,"./fr-ca.js":84,"./fr-ch":85,"./fr-ch.js":85,"./fr.js":83,"./fy":86,"./fy.js":86,"./gd":87,"./gd.js":87,"./gl":88,"./gl.js":88,"./gom-latn":89,"./gom-latn.js":89,"./gu":90,"./gu.js":90,"./he":91,"./he.js":91,"./hi":92,"./hi.js":92,"./hr":93,"./hr.js":93,"./hu":94,"./hu.js":94,"./hy-am":95,"./hy-am.js":95,"./id":96,"./id.js":96,"./is":97,"./is.js":97,"./it":98,"./it.js":98,"./ja":99,"./ja.js":99,"./jv":100,"./jv.js":100,"./ka":101,"./ka.js":101,"./kk":102,"./kk.js":102,"./km":103,"./km.js":103,"./kn":104,"./kn.js":104,"./ko":105,"./ko.js":105,"./ky":106,"./ky.js":106,"./lb":107,"./lb.js":107,"./lo":108,"./lo.js":108,"./lt":109,"./lt.js":109,"./lv":110,"./lv.js":110,"./me":111,"./me.js":111,"./mi":112,"./mi.js":112,"./mk":113,"./mk.js":113,"./ml":114,"./ml.js":114,"./mn":115,"./mn.js":115,"./mr":116,"./mr.js":116,"./ms":117,"./ms-my":118,"./ms-my.js":118,"./ms.js":117,"./mt":119,"./mt.js":119,"./my":120,"./my.js":120,"./nb":121,"./nb.js":121,"./ne":122,"./ne.js":122,"./nl":123,"./nl-be":124,"./nl-be.js":124,"./nl.js":123,"./nn":125,"./nn.js":125,"./pa-in":126,"./pa-in.js":126,"./pl":127,"./pl.js":127,"./pt":128,"./pt-br":129,"./pt-br.js":129,"./pt.js":128,"./ro":130,"./ro.js":130,"./ru":131,"./ru.js":131,"./sd":132,"./sd.js":132,"./se":133,"./se.js":133,"./si":134,"./si.js":134,"./sk":135,"./sk.js":135,"./sl":136,"./sl.js":136,"./sq":137,"./sq.js":137,"./sr":138,"./sr-cyrl":139,"./sr-cyrl.js":139,"./sr.js":138,"./ss":140,"./ss.js":140,"./sv":141,"./sv.js":141,"./sw":142,"./sw.js":142,"./ta":143,"./ta.js":143,"./te":144,"./te.js":144,"./tet":145,"./tet.js":145,"./tg":146,"./tg.js":146,"./th":147,"./th.js":147,"./tl-ph":148,"./tl-ph.js":148,"./tlh":149,"./tlh.js":149,"./tr":150,"./tr.js":150,"./tzl":151,"./tzl.js":151,"./tzm":152,"./tzm-latn":153,"./tzm-latn.js":153,"./tzm.js":152,"./ug-cn":154,"./ug-cn.js":154,"./uk":155,"./uk.js":155,"./ur":156,"./ur.js":156,"./uz":157,"./uz-latn":158,"./uz-latn.js":158,"./uz.js":157,"./vi":159,"./vi.js":159,"./x-pseudo":160,"./x-pseudo.js":160,"./yo":161,"./yo.js":161,"./zh-cn":162,"./zh-cn.js":162,"./zh-hk":163,"./zh-hk.js":163,"./zh-tw":164,"./zh-tw.js":164};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=199},2:function(e,t){!function(){e.exports=this.wp.i18n}()},202:function(e,t){},203:function(e,t){},205:function(e,t){},206:function(e,t){},23:function(e,t){!function(){e.exports=this.wp.url}()},24:function(e,t,r){"use strict";var n=r(26),o=r.n(n),c=r(168),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:d?"menuitemradio":"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}()},30:function(e,t){!function(){e.exports=this.wp.blocks}()},31:function(e,t,r){"use strict";var n=r(13),o=r.n(n),c=r(16),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(6),f=r.n(j),v=r(0),w=r(2),O=r(3),_=r(15),y=r(4),k=r(19),E=r.n(k),S=r(1),C=r.n(S),x=r(169);r(173);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)},36: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})},37:function(e,t,r){"use strict";var n=r(0),o=r(2),c=r(1),s=r.n(c),a=(r(179),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},38:function(e,t,r){"use strict";r.d(t,"a",function(){return c});var n=r(167),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+="]"}},4:function(e,t){!function(){e.exports=this.lodash}()},40:function(e,t,r){"use strict";var n=r(26),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(6),g=r.n(h),j=r(0),f=r(2),v=r(23),w=r(14),O=r.n(w),_=r(4),y=r(1),k=r.n(y),E=r(3),S=(r(185),r(31)),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},718: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(30),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(6),O=r.n(w),_=r(23),y=r(14),k=r.n(y),E=r(25),S=r(4),C=r(3),x=r(1),z=r.n(x),N=r(36),I=r(40),R=r(193),L=r(37),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(38),T=r(166);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"))}})}}));
|
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([625,0]),r()}({0:function(e,t){!function(){e.exports=this.wp.element}()},15:function(e,t){!function(){e.exports=this.wp.apiFetch}()},16:function(e,t){!function(){e.exports=this.wp.compose}()},167:function(e,t,r){var n=r(168);"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)},168:function(e,t,r){},169:function(e,t,r){"use strict";var n=r(26),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),_=r(21),v=r(15),w=r.n(v),O=r(3),y=r(1),k=r.n(y),E=r(4),S=(r(182),r(30)),C=r(23),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;w()({path:Object(_.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=n.selected,i={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:a.map(function(e){return Object(O.find)(t,{id:e})}).filter(Boolean),onChange:o,renderItem:this.renderItem,messages:i,isHierarchical:!0}),!!c&&Object(j.createElement)("div",{className:a.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:s,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},x.defaultProps={operator:"any"},t.a=x},17:function(e,t,r){"use strict";var n=r(0),o=r(4),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})},171: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"}}},175:function(e,t,r){var n=r(176);"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)},176:function(e,t,r){},177:function(e,t){!function(){e.exports=this.wp.data}()},179:function(e,t,r){"use strict";var n=r(0),o=r(2),c=r(4),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},182:function(e,t,r){var n=r(183);"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)},183:function(e,t,r){},185:function(e,t,r){var n={"./af":40,"./af.js":40,"./ar":41,"./ar-dz":42,"./ar-dz.js":42,"./ar-kw":43,"./ar-kw.js":43,"./ar-ly":44,"./ar-ly.js":44,"./ar-ma":45,"./ar-ma.js":45,"./ar-sa":46,"./ar-sa.js":46,"./ar-tn":47,"./ar-tn.js":47,"./ar.js":41,"./az":48,"./az.js":48,"./be":49,"./be.js":49,"./bg":50,"./bg.js":50,"./bm":51,"./bm.js":51,"./bn":52,"./bn.js":52,"./bo":53,"./bo.js":53,"./br":54,"./br.js":54,"./bs":55,"./bs.js":55,"./ca":56,"./ca.js":56,"./cs":57,"./cs.js":57,"./cv":58,"./cv.js":58,"./cy":59,"./cy.js":59,"./da":60,"./da.js":60,"./de":61,"./de-at":62,"./de-at.js":62,"./de-ch":63,"./de-ch.js":63,"./de.js":61,"./dv":64,"./dv.js":64,"./el":65,"./el.js":65,"./en-au":66,"./en-au.js":66,"./en-ca":67,"./en-ca.js":67,"./en-gb":68,"./en-gb.js":68,"./en-ie":69,"./en-ie.js":69,"./en-il":70,"./en-il.js":70,"./en-nz":71,"./en-nz.js":71,"./eo":72,"./eo.js":72,"./es":73,"./es-do":74,"./es-do.js":74,"./es-us":75,"./es-us.js":75,"./es.js":73,"./et":76,"./et.js":76,"./eu":77,"./eu.js":77,"./fa":78,"./fa.js":78,"./fi":79,"./fi.js":79,"./fo":80,"./fo.js":80,"./fr":81,"./fr-ca":82,"./fr-ca.js":82,"./fr-ch":83,"./fr-ch.js":83,"./fr.js":81,"./fy":84,"./fy.js":84,"./gd":85,"./gd.js":85,"./gl":86,"./gl.js":86,"./gom-latn":87,"./gom-latn.js":87,"./gu":88,"./gu.js":88,"./he":89,"./he.js":89,"./hi":90,"./hi.js":90,"./hr":91,"./hr.js":91,"./hu":92,"./hu.js":92,"./hy-am":93,"./hy-am.js":93,"./id":94,"./id.js":94,"./is":95,"./is.js":95,"./it":96,"./it.js":96,"./ja":97,"./ja.js":97,"./jv":98,"./jv.js":98,"./ka":99,"./ka.js":99,"./kk":100,"./kk.js":100,"./km":101,"./km.js":101,"./kn":102,"./kn.js":102,"./ko":103,"./ko.js":103,"./ky":104,"./ky.js":104,"./lb":105,"./lb.js":105,"./lo":106,"./lo.js":106,"./lt":107,"./lt.js":107,"./lv":108,"./lv.js":108,"./me":109,"./me.js":109,"./mi":110,"./mi.js":110,"./mk":111,"./mk.js":111,"./ml":112,"./ml.js":112,"./mn":113,"./mn.js":113,"./mr":114,"./mr.js":114,"./ms":115,"./ms-my":116,"./ms-my.js":116,"./ms.js":115,"./mt":117,"./mt.js":117,"./my":118,"./my.js":118,"./nb":119,"./nb.js":119,"./ne":120,"./ne.js":120,"./nl":121,"./nl-be":122,"./nl-be.js":122,"./nl.js":121,"./nn":123,"./nn.js":123,"./pa-in":124,"./pa-in.js":124,"./pl":125,"./pl.js":125,"./pt":126,"./pt-br":127,"./pt-br.js":127,"./pt.js":126,"./ro":128,"./ro.js":128,"./ru":129,"./ru.js":129,"./sd":130,"./sd.js":130,"./se":131,"./se.js":131,"./si":132,"./si.js":132,"./sk":133,"./sk.js":133,"./sl":134,"./sl.js":134,"./sq":135,"./sq.js":135,"./sr":136,"./sr-cyrl":137,"./sr-cyrl.js":137,"./sr.js":136,"./ss":138,"./ss.js":138,"./sv":139,"./sv.js":139,"./sw":140,"./sw.js":140,"./ta":141,"./ta.js":141,"./te":142,"./te.js":142,"./tet":143,"./tet.js":143,"./tg":144,"./tg.js":144,"./th":145,"./th.js":145,"./tl-ph":146,"./tl-ph.js":146,"./tlh":147,"./tlh.js":147,"./tr":148,"./tr.js":148,"./tzl":149,"./tzl.js":149,"./tzm":150,"./tzm-latn":151,"./tzm-latn.js":151,"./tzm.js":150,"./ug-cn":152,"./ug-cn.js":152,"./uk":153,"./uk.js":153,"./ur":154,"./ur.js":154,"./uz":155,"./uz-latn":156,"./uz-latn.js":156,"./uz.js":155,"./vi":157,"./vi.js":157,"./x-pseudo":158,"./x-pseudo.js":158,"./yo":159,"./yo.js":159,"./zh-cn":160,"./zh-cn.js":160,"./zh-hk":161,"./zh-hk.js":161,"./zh-tw":162,"./zh-tw.js":162};function o(e){var t=c(e);return r(t)}function c(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}o.keys=function(){return Object.keys(n)},o.resolve=c,e.exports=o,o.id=185},188:function(e,t){},189:function(e,t){},191:function(e,t){},192:function(e,t){},2:function(e,t){!function(){e.exports=this.wp.i18n}()},21:function(e,t){!function(){e.exports=this.wp.url}()},23:function(e,t,r){"use strict";var n=r(26),o=r.n(n),c=r(164),s=r.n(c),a=r(0),i=r(3),l=r(4),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,_=s()(e,["className","depth","item","isSelected","isSingle","onSelect","search","showCount"]),v=[t,"woocommerce-search-list__item"];v.push("depth-".concat(n)),d&&v.push("is-radio-button");var w,O=c.breadcrumbs&&c.breadcrumbs.length;return Object(a.createElement)(l.MenuItem,o()({role:d?"menuitemradio":"menuitemcheckbox",className:v.join(" "),onClick:m(c),isSelected:u},_),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"},O?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: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},24:function(e,t){!function(){e.exports=this.wp.editor}()},29:function(e,t){!function(){e.exports=this.wp.blocks}()},3:function(e,t){!function(){e.exports=this.lodash}()},30:function(e,t,r){"use strict";var n=r(13),o=r.n(n),c=r(14),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),_=r(0),v=r(2),w=r(4),O=r(16),y=r(3),k=r(18),E=r.n(k),S=r(1),C=r.n(S),x=r(165);r(167);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(23),I={clear:Object(v.__)("Clear all selected items","woo-gutenberg-products-block"),list:Object(v.__)("Results","woo-gutenberg-products-block"),noItems:Object(v.__)("No items found.","woo-gutenberg-products-block"),noResults:Object(v.__)("No results for %s","woo-gutenberg-products-block"),search:Object(v.__)("Search for items","woo-gutenberg-products-block"),selected:function(e){return Object(v.sprintf)(Object(v._n)("%d item selected","%d items selected",e,"woo-gutenberg-products-block"),e)},updated:Object(v.__)("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(_.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(_.createElement)(_.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(_.createElement)("div",{className:"woocommerce-search-list__list is-loading"},Object(_.createElement)(w.Spinner,null)):n.length?Object(_.createElement)(w.MenuGroup,{label:c.list,className:"woocommerce-search-list__list"},this.renderList(n)):Object(_.createElement)("div",{className:"woocommerce-search-list__list is-not-found"},Object(_.createElement)("span",{className:"woocommerce-search-list__not-found-icon"},Object(_.createElement)(E.a,{icon:"notice-outline",role:"img","aria-hidden":"true",focusable:"false"})),Object(_.createElement)("span",{className:"woocommerce-search-list__not-found-text"},r?Object(v.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(_.createElement)("div",{className:"woocommerce-search-list__selected"},Object(_.createElement)("div",{className:"woocommerce-search-list__selected-header"},Object(_.createElement)("strong",null,s.selected(a)),a>0?Object(_.createElement)(w.Button,{isLink:!0,isDestructive:!0,onClick:this.onClear,"aria-label":s.clear},Object(v.__)("Clear all","woo-gutenberg-products-block")):null),c.map(function(t,r){return Object(_.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(_.createElement)("div",{className:"woocommerce-search-list ".concat(r)},this.renderSelectedSection(),Object(_.createElement)("div",{className:"woocommerce-search-list__search"},Object(_.createElement)(w.TextControl,{label:s.search,type:"search",value:n,onChange:function(e){return c({search:e})}})),this.renderListSection())}}]),t}(_.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(O.compose)([Object(O.withState)({search:""}),w.withSpokenMessages,O.withInstanceId])(R)},33:function(e,t,r){"use strict";function n(e,t){var r=e.attributes,n=e.attrOperator,o=e.categories,c=e.catOperator,s=e.orderby,a=e.products,i=e.columns||wc_product_block_data.default_columns,l={status:"publish",per_page:(e.rows||wc_product_block_data.default_rows)*i};switch(o&&o.length&&(l.category=o.join(","),c&&"all"===c&&(l.cat_operator="AND")),s&&("price_desc"===s?(l.orderby="price",l.order="desc"):"price_asc"===s?(l.orderby="price",l.order="asc"):"title"===s?(l.orderby="title",l.order="asc"):"menu_order"===s?(l.orderby="menu_order",l.order="asc"):l.orderby=s),r&&r.length>0&&(l.attribute_term=r.map(function(e){return e.id}).join(","),l.attribute=r[0].attr_slug,n&&(l.attr_operator="all"===n?"AND":"IN")),t){case"woocommerce/product-best-sellers":l.orderby="popularity";break;case"woocommerce/product-top-rated":l.orderby="rating";break;case"woocommerce/product-on-sale":l.on_sale=1;break;case"woocommerce/product-new":l.orderby="date";break;case"woocommerce/handpicked-products":l.include=a,l.per_page=a.length}return l}r.d(t,"a",function(){return n})},34:function(e,t,r){"use strict";var n=r(0),o=r(2),c=r(1),s=r.n(c),a=(r(175),function(e){var t=e.product,r=wc_product_block_data.placeholderImgSrc,c=null;return c=t.images.length?Object(n.createElement)("img",{src:t.images[0].src,alt:""}):Object(n.createElement)("img",{src:r,alt:""}),Object(n.createElement)("div",{className:"wc-product-preview"},c,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},35:function(e,t,r){"use strict";r.d(t,"a",function(){return c});var n=r(163),o=r.n(n);function c(e,t){var r=e.attributes,n=r.attributes,c=r.attrOperator,s=r.categories,a=r.catOperator,i=r.orderby,l=r.products,u=r.columns||wc_product_block_data.default_columns,d=r.rows||wc_product_block_data.default_rows,p=new Map;switch(p.set("limit",d*u),p.set("columns",u),s&&s.length&&(p.set("category",s.join(",")),a&&"all"===a&&p.set("cat_operator","AND")),n&&n.length&&(p.set("terms",n.map(function(e){return e.id}).join(",")),p.set("attribute",n[0].attr_slug),c&&"all"===c&&p.set("terms_operator","AND")),i&&("price_desc"===i?(p.set("orderby","price"),p.set("order","DESC")):"price_asc"===i?(p.set("orderby","price"),p.set("order","ASC")):"date"===i?(p.set("orderby","date"),p.set("order","DESC")):p.set("orderby",i)),t){case"woocommerce/product-best-sellers":p.set("best_selling","1");break;case"woocommerce/product-top-rated":p.set("orderby","rating");break;case"woocommerce/product-on-sale":p.set("on_sale","1");break;case"woocommerce/product-new":p.set("orderby","date"),p.set("order","DESC");break;case"woocommerce/handpicked-products":if(!l.length)return"";p.set("ids",l.join(",")),p.set("limit",l.length);break;case"woocommerce/product-category":if(!s||!s.length)return"";break;case"woocommerce/products-by-attribute":if(!n||!n.length)return""}var b="[products",m=!0,g=!1,h=void 0;try{for(var j,f=p[Symbol.iterator]();!(m=(j=f.next()).done);m=!0){var _=o()(j.value,2);b+=" "+_[0]+'="'+_[1]+'"'}}catch(e){g=!0,h=e}finally{try{m||null==f.return||f.return()}finally{if(g)throw h}}return b+="]"}},39:function(e,t,r){"use strict";var n=r(0),o=r(2),c=r(3),s=r(1),a=r.n(s),i=r(4),l=function(e){var t=e.columns,r=e.rows,s=e.setAttributes;return Object(n.createElement)(n.Fragment,null,Object(n.createElement)(i.RangeControl,{label:Object(o.__)("Columns","woo-gutenberg-products-block"),value:t,onChange:function(e){var t=Object(c.clamp)(e,wc_product_block_data.min_columns,wc_product_block_data.max_columns);s({columns:Object(c.isNaN)(t)?"":t})},min:wc_product_block_data.min_columns,max:wc_product_block_data.max_columns}),Object(n.createElement)(i.RangeControl,{label:Object(o.__)("Rows","woo-gutenberg-products-block"),value:r,onChange:function(e){var t=Object(c.clamp)(e,wc_product_block_data.min_rows,wc_product_block_data.max_rows);s({rows:Object(c.isNaN)(t)?"":t})},min:wc_product_block_data.min_rows,max:wc_product_block_data.max_rows}))};l.propTypes={columns:a.a.oneOfType([a.a.number,a.a.string]).isRequired,rows:a.a.oneOfType([a.a.number,a.a.string]).isRequired,setAttributes:a.a.func.isRequired},t.a=l},4:function(e,t){!function(){e.exports=this.wp.components}()},625: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(18),i=r.n(a),l=r(29),u=r(8),d=r.n(u),p=r(9),b=r.n(p),m=r(10),g=r.n(m),h=r(11),j=r.n(h),f=r(12),_=r.n(f),v=r(5),w=r.n(v),O=r(21),y=r(15),k=r.n(y),E=r(24),S=r(3),C=r(4),x=r(1),N=r.n(x),z=r(33),I=r(39),R=r(169),L=r(179),M=r(34),P=function(e){function t(){var e;return d()(this,t),(e=g()(this,j()(t).apply(this,arguments))).state={products:[],loaded:!1},e.debouncedGetProducts=Object(S.debounce)(e.getProducts.bind(w()(w()(e))),200),e}return _()(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(O.addQueryArgs)("/wc-pb/v3/products",Object(z.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)(I.a,{columns:a,rows:i,setAttributes:r})),Object(c.createElement)(C.PanelBody,{title:Object(s.__)("Order By","woo-gutenberg-products-block"),initialOpen:!1},Object(c.createElement)(L.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)(R.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)(M.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);P.propTypes={attributes:N.a.object.isRequired,name:N.a.string.isRequired,setAttributes:N.a.func.isRequired};var A=P,B=r(35),T=r(171);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)(A,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"))}})}}));
|
@@ -1,3 +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}
|
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;margin:0 auto}.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.depth-0+.depth-1{margin-top:-1px}.woocommerce-search-list__list .woocommerce-search-list__item:not(.depth-0){border-bottom:0!important}.woocommerce-search-list__list .woocommerce-search-list__item:not(.depth-0)+.depth-0{border-top:1px solid #e2e4e7}.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}
|
@@ -1 +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([716,0]),r()}({0:function(e,t){!function(){e.exports=this.wp.element}()},14:function(e,t){!function(){e.exports=this.wp.apiFetch}()},15:function(e,t){!function(){e.exports=this.wp.compose}()},166: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:[]}}},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})},173:function(e,t,r){var n=r(174);"string"==typeof n&&(n=[[e.i,n,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};r(27)(n,o);n.locals&&(e.exports=n.locals)},174:function(e,t,r){},177:function(e,t){!function(){e.exports=this.wp.data}()},179:function(e,t,r){var n=r(180);"string"==typeof n&&(n=[[e.i,n,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};r(27)(n,o);n.locals&&(e.exports=n.locals)},180:function(e,t,r){},185:function(e,t,r){var n=r(186);"string"==typeof n&&(n=[[e.i,n,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};r(27)(n,o);n.locals&&(e.exports=n.locals)},186:function(e,t,r){},199:function(e,t,r){var n={"./af":42,"./af.js":42,"./ar":43,"./ar-dz":44,"./ar-dz.js":44,"./ar-kw":45,"./ar-kw.js":45,"./ar-ly":46,"./ar-ly.js":46,"./ar-ma":47,"./ar-ma.js":47,"./ar-sa":48,"./ar-sa.js":48,"./ar-tn":49,"./ar-tn.js":49,"./ar.js":43,"./az":50,"./az.js":50,"./be":51,"./be.js":51,"./bg":52,"./bg.js":52,"./bm":53,"./bm.js":53,"./bn":54,"./bn.js":54,"./bo":55,"./bo.js":55,"./br":56,"./br.js":56,"./bs":57,"./bs.js":57,"./ca":58,"./ca.js":58,"./cs":59,"./cs.js":59,"./cv":60,"./cv.js":60,"./cy":61,"./cy.js":61,"./da":62,"./da.js":62,"./de":63,"./de-at":64,"./de-at.js":64,"./de-ch":65,"./de-ch.js":65,"./de.js":63,"./dv":66,"./dv.js":66,"./el":67,"./el.js":67,"./en-au":68,"./en-au.js":68,"./en-ca":69,"./en-ca.js":69,"./en-gb":70,"./en-gb.js":70,"./en-ie":71,"./en-ie.js":71,"./en-il":72,"./en-il.js":72,"./en-nz":73,"./en-nz.js":73,"./eo":74,"./eo.js":74,"./es":75,"./es-do":76,"./es-do.js":76,"./es-us":77,"./es-us.js":77,"./es.js":75,"./et":78,"./et.js":78,"./eu":79,"./eu.js":79,"./fa":80,"./fa.js":80,"./fi":81,"./fi.js":81,"./fo":82,"./fo.js":82,"./fr":83,"./fr-ca":84,"./fr-ca.js":84,"./fr-ch":85,"./fr-ch.js":85,"./fr.js":83,"./fy":86,"./fy.js":86,"./gd":87,"./gd.js":87,"./gl":88,"./gl.js":88,"./gom-latn":89,"./gom-latn.js":89,"./gu":90,"./gu.js":90,"./he":91,"./he.js":91,"./hi":92,"./hi.js":92,"./hr":93,"./hr.js":93,"./hu":94,"./hu.js":94,"./hy-am":95,"./hy-am.js":95,"./id":96,"./id.js":96,"./is":97,"./is.js":97,"./it":98,"./it.js":98,"./ja":99,"./ja.js":99,"./jv":100,"./jv.js":100,"./ka":101,"./ka.js":101,"./kk":102,"./kk.js":102,"./km":103,"./km.js":103,"./kn":104,"./kn.js":104,"./ko":105,"./ko.js":105,"./ky":106,"./ky.js":106,"./lb":107,"./lb.js":107,"./lo":108,"./lo.js":108,"./lt":109,"./lt.js":109,"./lv":110,"./lv.js":110,"./me":111,"./me.js":111,"./mi":112,"./mi.js":112,"./mk":113,"./mk.js":113,"./ml":114,"./ml.js":114,"./mn":115,"./mn.js":115,"./mr":116,"./mr.js":116,"./ms":117,"./ms-my":118,"./ms-my.js":118,"./ms.js":117,"./mt":119,"./mt.js":119,"./my":120,"./my.js":120,"./nb":121,"./nb.js":121,"./ne":122,"./ne.js":122,"./nl":123,"./nl-be":124,"./nl-be.js":124,"./nl.js":123,"./nn":125,"./nn.js":125,"./pa-in":126,"./pa-in.js":126,"./pl":127,"./pl.js":127,"./pt":128,"./pt-br":129,"./pt-br.js":129,"./pt.js":128,"./ro":130,"./ro.js":130,"./ru":131,"./ru.js":131,"./sd":132,"./sd.js":132,"./se":133,"./se.js":133,"./si":134,"./si.js":134,"./sk":135,"./sk.js":135,"./sl":136,"./sl.js":136,"./sq":137,"./sq.js":137,"./sr":138,"./sr-cyrl":139,"./sr-cyrl.js":139,"./sr.js":138,"./ss":140,"./ss.js":140,"./sv":141,"./sv.js":141,"./sw":142,"./sw.js":142,"./ta":143,"./ta.js":143,"./te":144,"./te.js":144,"./tet":145,"./tet.js":145,"./tg":146,"./tg.js":146,"./th":147,"./th.js":147,"./tl-ph":148,"./tl-ph.js":148,"./tlh":149,"./tlh.js":149,"./tr":150,"./tr.js":150,"./tzl":151,"./tzl.js":151,"./tzm":152,"./tzm-latn":153,"./tzm-latn.js":153,"./tzm.js":152,"./ug-cn":154,"./ug-cn.js":154,"./uk":155,"./uk.js":155,"./ur":156,"./ur.js":156,"./uz":157,"./uz-latn":158,"./uz-latn.js":158,"./uz.js":157,"./vi":159,"./vi.js":159,"./x-pseudo":160,"./x-pseudo.js":160,"./yo":161,"./yo.js":161,"./zh-cn":162,"./zh-cn.js":162,"./zh-hk":163,"./zh-hk.js":163,"./zh-tw":164,"./zh-tw.js":164};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=199},2:function(e,t){!function(){e.exports=this.wp.i18n}()},202:function(e,t){},203:function(e,t){},205:function(e,t){},206:function(e,t){},23:function(e,t){!function(){e.exports=this.wp.url}()},24:function(e,t,r){"use strict";var n=r(26),o=r.n(n),c=r(168),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:d?"menuitemradio":"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}()},30:function(e,t){!function(){e.exports=this.wp.blocks}()},31:function(e,t,r){"use strict";var n=r(13),o=r.n(n),c=r(16),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(6),f=r.n(g),v=r(0),w=r(2),O=r(3),_=r(15),y=r(4),k=r(19),E=r.n(k),S=r(1),C=r.n(S),x=r(169);r(173);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)},36: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})},37:function(e,t,r){"use strict";var n=r(0),o=r(2),c=r(1),s=r.n(c),a=(r(179),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},38:function(e,t,r){"use strict";r.d(t,"a",function(){return c});var n=r(167),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+="]"}},4:function(e,t){!function(){e.exports=this.lodash}()},40:function(e,t,r){"use strict";var n=r(26),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(6),j=r.n(h),g=r(0),f=r(2),v=r(23),w=r(14),O=r.n(w),_=r(4),y=r(1),k=r.n(y),E=r(3),S=(r(185),r(31)),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},716: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(30),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(6),O=r.n(w),_=r(23),y=r(14),k=r.n(y),E=r(25),S=r(4),C=r(3),x=r(1),z=r.n(x),N=r(36),I=r(40),R=r(37),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(38),B=r(166);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"))}})}}));
|
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([627,0]),r()}({0:function(e,t){!function(){e.exports=this.wp.element}()},15:function(e,t){!function(){e.exports=this.wp.apiFetch}()},16:function(e,t){!function(){e.exports=this.wp.compose}()},167:function(e,t,r){var n=r(168);"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)},168:function(e,t,r){},169:function(e,t,r){"use strict";var n=r(26),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(21),w=r(15),_=r.n(w),O=r(3),y=r(1),k=r.n(y),E=r(4),S=(r(182),r(30)),C=r(23),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;_()({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=n.selected,i={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:a.map(function(e){return Object(O.find)(t,{id:e})}).filter(Boolean),onChange:o,renderItem:this.renderItem,messages:i,isHierarchical:!0}),!!c&&Object(g.createElement)("div",{className:a.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:s,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},x.defaultProps={operator:"any"},t.a=x},17:function(e,t,r){"use strict";var n=r(0),o=r(4),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})},171: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"}}},175:function(e,t,r){var n=r(176);"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)},176:function(e,t,r){},177:function(e,t){!function(){e.exports=this.wp.data}()},182:function(e,t,r){var n=r(183);"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)},183:function(e,t,r){},185:function(e,t,r){var n={"./af":40,"./af.js":40,"./ar":41,"./ar-dz":42,"./ar-dz.js":42,"./ar-kw":43,"./ar-kw.js":43,"./ar-ly":44,"./ar-ly.js":44,"./ar-ma":45,"./ar-ma.js":45,"./ar-sa":46,"./ar-sa.js":46,"./ar-tn":47,"./ar-tn.js":47,"./ar.js":41,"./az":48,"./az.js":48,"./be":49,"./be.js":49,"./bg":50,"./bg.js":50,"./bm":51,"./bm.js":51,"./bn":52,"./bn.js":52,"./bo":53,"./bo.js":53,"./br":54,"./br.js":54,"./bs":55,"./bs.js":55,"./ca":56,"./ca.js":56,"./cs":57,"./cs.js":57,"./cv":58,"./cv.js":58,"./cy":59,"./cy.js":59,"./da":60,"./da.js":60,"./de":61,"./de-at":62,"./de-at.js":62,"./de-ch":63,"./de-ch.js":63,"./de.js":61,"./dv":64,"./dv.js":64,"./el":65,"./el.js":65,"./en-au":66,"./en-au.js":66,"./en-ca":67,"./en-ca.js":67,"./en-gb":68,"./en-gb.js":68,"./en-ie":69,"./en-ie.js":69,"./en-il":70,"./en-il.js":70,"./en-nz":71,"./en-nz.js":71,"./eo":72,"./eo.js":72,"./es":73,"./es-do":74,"./es-do.js":74,"./es-us":75,"./es-us.js":75,"./es.js":73,"./et":76,"./et.js":76,"./eu":77,"./eu.js":77,"./fa":78,"./fa.js":78,"./fi":79,"./fi.js":79,"./fo":80,"./fo.js":80,"./fr":81,"./fr-ca":82,"./fr-ca.js":82,"./fr-ch":83,"./fr-ch.js":83,"./fr.js":81,"./fy":84,"./fy.js":84,"./gd":85,"./gd.js":85,"./gl":86,"./gl.js":86,"./gom-latn":87,"./gom-latn.js":87,"./gu":88,"./gu.js":88,"./he":89,"./he.js":89,"./hi":90,"./hi.js":90,"./hr":91,"./hr.js":91,"./hu":92,"./hu.js":92,"./hy-am":93,"./hy-am.js":93,"./id":94,"./id.js":94,"./is":95,"./is.js":95,"./it":96,"./it.js":96,"./ja":97,"./ja.js":97,"./jv":98,"./jv.js":98,"./ka":99,"./ka.js":99,"./kk":100,"./kk.js":100,"./km":101,"./km.js":101,"./kn":102,"./kn.js":102,"./ko":103,"./ko.js":103,"./ky":104,"./ky.js":104,"./lb":105,"./lb.js":105,"./lo":106,"./lo.js":106,"./lt":107,"./lt.js":107,"./lv":108,"./lv.js":108,"./me":109,"./me.js":109,"./mi":110,"./mi.js":110,"./mk":111,"./mk.js":111,"./ml":112,"./ml.js":112,"./mn":113,"./mn.js":113,"./mr":114,"./mr.js":114,"./ms":115,"./ms-my":116,"./ms-my.js":116,"./ms.js":115,"./mt":117,"./mt.js":117,"./my":118,"./my.js":118,"./nb":119,"./nb.js":119,"./ne":120,"./ne.js":120,"./nl":121,"./nl-be":122,"./nl-be.js":122,"./nl.js":121,"./nn":123,"./nn.js":123,"./pa-in":124,"./pa-in.js":124,"./pl":125,"./pl.js":125,"./pt":126,"./pt-br":127,"./pt-br.js":127,"./pt.js":126,"./ro":128,"./ro.js":128,"./ru":129,"./ru.js":129,"./sd":130,"./sd.js":130,"./se":131,"./se.js":131,"./si":132,"./si.js":132,"./sk":133,"./sk.js":133,"./sl":134,"./sl.js":134,"./sq":135,"./sq.js":135,"./sr":136,"./sr-cyrl":137,"./sr-cyrl.js":137,"./sr.js":136,"./ss":138,"./ss.js":138,"./sv":139,"./sv.js":139,"./sw":140,"./sw.js":140,"./ta":141,"./ta.js":141,"./te":142,"./te.js":142,"./tet":143,"./tet.js":143,"./tg":144,"./tg.js":144,"./th":145,"./th.js":145,"./tl-ph":146,"./tl-ph.js":146,"./tlh":147,"./tlh.js":147,"./tr":148,"./tr.js":148,"./tzl":149,"./tzl.js":149,"./tzm":150,"./tzm-latn":151,"./tzm-latn.js":151,"./tzm.js":150,"./ug-cn":152,"./ug-cn.js":152,"./uk":153,"./uk.js":153,"./ur":154,"./ur.js":154,"./uz":155,"./uz-latn":156,"./uz-latn.js":156,"./uz.js":155,"./vi":157,"./vi.js":157,"./x-pseudo":158,"./x-pseudo.js":158,"./yo":159,"./yo.js":159,"./zh-cn":160,"./zh-cn.js":160,"./zh-hk":161,"./zh-hk.js":161,"./zh-tw":162,"./zh-tw.js":162};function o(e){var t=c(e);return r(t)}function c(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}o.keys=function(){return Object.keys(n)},o.resolve=c,e.exports=o,o.id=185},188:function(e,t){},189:function(e,t){},191:function(e,t){},192:function(e,t){},2:function(e,t){!function(){e.exports=this.wp.i18n}()},21:function(e,t){!function(){e.exports=this.wp.url}()},23:function(e,t,r){"use strict";var n=r(26),o=r.n(n),c=r(164),s=r.n(c),a=r(0),i=r(3),l=r(4),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:d?"menuitemradio":"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"},O?Object(a.createElement)("span",{className:"woocommerce-search-list__item-prefix"},1===(_=c.breadcrumbs).length?Object(i.first)(_):2===_.length?Object(i.first)(_)+" › "+Object(i.last)(_):Object(i.first)(_)+" … "+Object(i.last)(_)):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},24:function(e,t){!function(){e.exports=this.wp.editor}()},29:function(e,t){!function(){e.exports=this.wp.blocks}()},3:function(e,t){!function(){e.exports=this.lodash}()},30:function(e,t,r){"use strict";var n=r(13),o=r.n(n),c=r(14),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),_=r(4),O=r(16),y=r(3),k=r(18),E=r.n(k),S=r(1),C=r.n(S),x=r(165);r(167);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(23),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?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)(_.Spinner,null)):n.length?Object(v.createElement)(_.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)(_.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)(_.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(O.compose)([Object(O.withState)({search:""}),_.withSpokenMessages,O.withInstanceId])(R)},33:function(e,t,r){"use strict";function n(e,t){var r=e.attributes,n=e.attrOperator,o=e.categories,c=e.catOperator,s=e.orderby,a=e.products,i=e.columns||wc_product_block_data.default_columns,l={status:"publish",per_page:(e.rows||wc_product_block_data.default_rows)*i};switch(o&&o.length&&(l.category=o.join(","),c&&"all"===c&&(l.cat_operator="AND")),s&&("price_desc"===s?(l.orderby="price",l.order="desc"):"price_asc"===s?(l.orderby="price",l.order="asc"):"title"===s?(l.orderby="title",l.order="asc"):"menu_order"===s?(l.orderby="menu_order",l.order="asc"):l.orderby=s),r&&r.length>0&&(l.attribute_term=r.map(function(e){return e.id}).join(","),l.attribute=r[0].attr_slug,n&&(l.attr_operator="all"===n?"AND":"IN")),t){case"woocommerce/product-best-sellers":l.orderby="popularity";break;case"woocommerce/product-top-rated":l.orderby="rating";break;case"woocommerce/product-on-sale":l.on_sale=1;break;case"woocommerce/product-new":l.orderby="date";break;case"woocommerce/handpicked-products":l.include=a,l.per_page=a.length}return l}r.d(t,"a",function(){return n})},34:function(e,t,r){"use strict";var n=r(0),o=r(2),c=r(1),s=r.n(c),a=(r(175),function(e){var t=e.product,r=wc_product_block_data.placeholderImgSrc,c=null;return c=t.images.length?Object(n.createElement)("img",{src:t.images[0].src,alt:""}):Object(n.createElement)("img",{src:r,alt:""}),Object(n.createElement)("div",{className:"wc-product-preview"},c,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},35:function(e,t,r){"use strict";r.d(t,"a",function(){return c});var n=r(163),o=r.n(n);function c(e,t){var r=e.attributes,n=r.attributes,c=r.attrOperator,s=r.categories,a=r.catOperator,i=r.orderby,l=r.products,u=r.columns||wc_product_block_data.default_columns,d=r.rows||wc_product_block_data.default_rows,p=new Map;switch(p.set("limit",d*u),p.set("columns",u),s&&s.length&&(p.set("category",s.join(",")),a&&"all"===a&&p.set("cat_operator","AND")),n&&n.length&&(p.set("terms",n.map(function(e){return e.id}).join(",")),p.set("attribute",n[0].attr_slug),c&&"all"===c&&p.set("terms_operator","AND")),i&&("price_desc"===i?(p.set("orderby","price"),p.set("order","DESC")):"price_asc"===i?(p.set("orderby","price"),p.set("order","ASC")):"date"===i?(p.set("orderby","date"),p.set("order","DESC")):p.set("orderby",i)),t){case"woocommerce/product-best-sellers":p.set("best_selling","1");break;case"woocommerce/product-top-rated":p.set("orderby","rating");break;case"woocommerce/product-on-sale":p.set("on_sale","1");break;case"woocommerce/product-new":p.set("orderby","date"),p.set("order","DESC");break;case"woocommerce/handpicked-products":if(!l.length)return"";p.set("ids",l.join(",")),p.set("limit",l.length);break;case"woocommerce/product-category":if(!s||!s.length)return"";break;case"woocommerce/products-by-attribute":if(!n||!n.length)return""}var m="[products",b=!0,h=!1,j=void 0;try{for(var g,f=p[Symbol.iterator]();!(b=(g=f.next()).done);b=!0){var v=o()(g.value,2);m+=" "+v[0]+'="'+v[1]+'"'}}catch(e){h=!0,j=e}finally{try{b||null==f.return||f.return()}finally{if(h)throw j}}return m+="]"}},39:function(e,t,r){"use strict";var n=r(0),o=r(2),c=r(3),s=r(1),a=r.n(s),i=r(4),l=function(e){var t=e.columns,r=e.rows,s=e.setAttributes;return Object(n.createElement)(n.Fragment,null,Object(n.createElement)(i.RangeControl,{label:Object(o.__)("Columns","woo-gutenberg-products-block"),value:t,onChange:function(e){var t=Object(c.clamp)(e,wc_product_block_data.min_columns,wc_product_block_data.max_columns);s({columns:Object(c.isNaN)(t)?"":t})},min:wc_product_block_data.min_columns,max:wc_product_block_data.max_columns}),Object(n.createElement)(i.RangeControl,{label:Object(o.__)("Rows","woo-gutenberg-products-block"),value:r,onChange:function(e){var t=Object(c.clamp)(e,wc_product_block_data.min_rows,wc_product_block_data.max_rows);s({rows:Object(c.isNaN)(t)?"":t})},min:wc_product_block_data.min_rows,max:wc_product_block_data.max_rows}))};l.propTypes={columns:a.a.oneOfType([a.a.number,a.a.string]).isRequired,rows:a.a.oneOfType([a.a.number,a.a.string]).isRequired,setAttributes:a.a.func.isRequired},t.a=l},4:function(e,t){!function(){e.exports=this.wp.components}()},627: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(18),i=r.n(a),l=r(29),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),_=r.n(w),O=r(21),y=r(15),k=r.n(y),E=r(24),S=r(3),C=r(4),x=r(1),N=r.n(x),z=r(33),I=r(39),R=r(169),L=r(34),M=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(_()(_()(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(O.addQueryArgs)("/wc-pb/v3/products",Object(z.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)(I.a,{columns:a,rows:i,setAttributes:r})),Object(c.createElement)(C.PanelBody,{title:Object(s.__)("Filter by Product Category","woo-gutenberg-products-block"),initialOpen:!1},Object(c.createElement)(R.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)(L.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);M.propTypes={attributes:N.a.object.isRequired,name:N.a.string.isRequired,setAttributes:N.a.func.isRequired};var P=M,T=r(35),B=r(171);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)(P,e)},save:function(e){var t=e.attributes.align;return Object(c.createElement)(c.RawHTML,{className:t?"align".concat(t):""},Object(T.a)(e,"woocommerce/product-top-rated"))}})}}));
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
1 |
+
.wc-block-products-attribute__selection{width:100%}
|
2 |
+
.woocommerce-product-attributes__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-attributes__operator.components-base-control{margin-top:16px}.components-panel .woocommerce-product-attributes__operator.components-base-control .components-select-control__input{margin-left:0;min-width:100%}.woocommerce-search-list__item.woocommerce-product-attributes__item.is-searching .woocommerce-search-list__item-prefix:after,.woocommerce-search-list__item.woocommerce-product-attributes__item.is-skip-level .woocommerce-search-list__item-prefix:after{content:":"}.woocommerce-search-list__item.woocommerce-product-attributes__item.is-not-active:active,.woocommerce-search-list__item.woocommerce-product-attributes__item.is-not-active:focus,.woocommerce-search-list__item.woocommerce-product-attributes__item.is-not-active:hover{background:#fff}.woocommerce-search-list__item.woocommerce-product-attributes__item.is-loading{justify-content:center}.woocommerce-search-list__item.woocommerce-product-attributes__item.is-loading .components-spinner{margin-bottom:12px}.woocommerce-search-list__item.woocommerce-product-attributes__item.depth-0:after{margin-left:8px;content:"";height:24px;width:24px;background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z" fill="#6c7781" /></svg>');background-repeat:no-repeat;background-position:100%;background-size:contain}.woocommerce-search-list__item.woocommerce-product-attributes__item.depth-0[aria-expanded=true]:after{background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z" fill="#6c7781" /></svg>')}.woocommerce-search-list__item.woocommerce-product-attributes__item[disabled].depth-0:after{margin-left:0;width:auto;background:none}
|
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;margin:0 auto}.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.depth-0+.depth-1{margin-top:-1px}.woocommerce-search-list__list .woocommerce-search-list__item:not(.depth-0){border-bottom:0!important}.woocommerce-search-list__list .woocommerce-search-list__item:not(.depth-0)+.depth-0{border-top:1px solid #e2e4e7}.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}
|
@@ -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,b=[];d<a.length;d++)s=a[d],o[s]&&b.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);b.length;)b.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={8: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([623,0]),r()}({0:function(e,t){!function(){e.exports=this.wp.element}()},15:function(e,t){!function(){e.exports=this.wp.apiFetch}()},16:function(e,t){!function(){e.exports=this.wp.compose}()},167:function(e,t,r){var n=r(168);"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)},168:function(e,t,r){},17:function(e,t,r){"use strict";var n=r(0),o=r(4),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})},175:function(e,t,r){var n=r(176);"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)},176:function(e,t,r){},177:function(e,t){!function(){e.exports=this.wp.data}()},179:function(e,t,r){"use strict";var n=r(0),o=r(2),c=r(4),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},185:function(e,t,r){var n={"./af":40,"./af.js":40,"./ar":41,"./ar-dz":42,"./ar-dz.js":42,"./ar-kw":43,"./ar-kw.js":43,"./ar-ly":44,"./ar-ly.js":44,"./ar-ma":45,"./ar-ma.js":45,"./ar-sa":46,"./ar-sa.js":46,"./ar-tn":47,"./ar-tn.js":47,"./ar.js":41,"./az":48,"./az.js":48,"./be":49,"./be.js":49,"./bg":50,"./bg.js":50,"./bm":51,"./bm.js":51,"./bn":52,"./bn.js":52,"./bo":53,"./bo.js":53,"./br":54,"./br.js":54,"./bs":55,"./bs.js":55,"./ca":56,"./ca.js":56,"./cs":57,"./cs.js":57,"./cv":58,"./cv.js":58,"./cy":59,"./cy.js":59,"./da":60,"./da.js":60,"./de":61,"./de-at":62,"./de-at.js":62,"./de-ch":63,"./de-ch.js":63,"./de.js":61,"./dv":64,"./dv.js":64,"./el":65,"./el.js":65,"./en-au":66,"./en-au.js":66,"./en-ca":67,"./en-ca.js":67,"./en-gb":68,"./en-gb.js":68,"./en-ie":69,"./en-ie.js":69,"./en-il":70,"./en-il.js":70,"./en-nz":71,"./en-nz.js":71,"./eo":72,"./eo.js":72,"./es":73,"./es-do":74,"./es-do.js":74,"./es-us":75,"./es-us.js":75,"./es.js":73,"./et":76,"./et.js":76,"./eu":77,"./eu.js":77,"./fa":78,"./fa.js":78,"./fi":79,"./fi.js":79,"./fo":80,"./fo.js":80,"./fr":81,"./fr-ca":82,"./fr-ca.js":82,"./fr-ch":83,"./fr-ch.js":83,"./fr.js":81,"./fy":84,"./fy.js":84,"./gd":85,"./gd.js":85,"./gl":86,"./gl.js":86,"./gom-latn":87,"./gom-latn.js":87,"./gu":88,"./gu.js":88,"./he":89,"./he.js":89,"./hi":90,"./hi.js":90,"./hr":91,"./hr.js":91,"./hu":92,"./hu.js":92,"./hy-am":93,"./hy-am.js":93,"./id":94,"./id.js":94,"./is":95,"./is.js":95,"./it":96,"./it.js":96,"./ja":97,"./ja.js":97,"./jv":98,"./jv.js":98,"./ka":99,"./ka.js":99,"./kk":100,"./kk.js":100,"./km":101,"./km.js":101,"./kn":102,"./kn.js":102,"./ko":103,"./ko.js":103,"./ky":104,"./ky.js":104,"./lb":105,"./lb.js":105,"./lo":106,"./lo.js":106,"./lt":107,"./lt.js":107,"./lv":108,"./lv.js":108,"./me":109,"./me.js":109,"./mi":110,"./mi.js":110,"./mk":111,"./mk.js":111,"./ml":112,"./ml.js":112,"./mn":113,"./mn.js":113,"./mr":114,"./mr.js":114,"./ms":115,"./ms-my":116,"./ms-my.js":116,"./ms.js":115,"./mt":117,"./mt.js":117,"./my":118,"./my.js":118,"./nb":119,"./nb.js":119,"./ne":120,"./ne.js":120,"./nl":121,"./nl-be":122,"./nl-be.js":122,"./nl.js":121,"./nn":123,"./nn.js":123,"./pa-in":124,"./pa-in.js":124,"./pl":125,"./pl.js":125,"./pt":126,"./pt-br":127,"./pt-br.js":127,"./pt.js":126,"./ro":128,"./ro.js":128,"./ru":129,"./ru.js":129,"./sd":130,"./sd.js":130,"./se":131,"./se.js":131,"./si":132,"./si.js":132,"./sk":133,"./sk.js":133,"./sl":134,"./sl.js":134,"./sq":135,"./sq.js":135,"./sr":136,"./sr-cyrl":137,"./sr-cyrl.js":137,"./sr.js":136,"./ss":138,"./ss.js":138,"./sv":139,"./sv.js":139,"./sw":140,"./sw.js":140,"./ta":141,"./ta.js":141,"./te":142,"./te.js":142,"./tet":143,"./tet.js":143,"./tg":144,"./tg.js":144,"./th":145,"./th.js":145,"./tl-ph":146,"./tl-ph.js":146,"./tlh":147,"./tlh.js":147,"./tr":148,"./tr.js":148,"./tzl":149,"./tzl.js":149,"./tzm":150,"./tzm-latn":151,"./tzm-latn.js":151,"./tzm.js":150,"./ug-cn":152,"./ug-cn.js":152,"./uk":153,"./uk.js":153,"./ur":154,"./ur.js":154,"./uz":155,"./uz-latn":156,"./uz-latn.js":156,"./uz.js":155,"./vi":157,"./vi.js":157,"./x-pseudo":158,"./x-pseudo.js":158,"./yo":159,"./yo.js":159,"./zh-cn":160,"./zh-cn.js":160,"./zh-hk":161,"./zh-hk.js":161,"./zh-tw":162,"./zh-tw.js":162};function o(e){var t=c(e);return r(t)}function c(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}o.keys=function(){return Object.keys(n)},o.resolve=c,e.exports=o,o.id=185},188:function(e,t){},189:function(e,t){},191:function(e,t){},192:function(e,t){},2:function(e,t){!function(){e.exports=this.wp.i18n}()},21:function(e,t){!function(){e.exports=this.wp.url}()},23:function(e,t,r){"use strict";var n=r(26),o=r.n(n),c=r(164),s=r.n(c),a=r(0),i=r(3),l=r(4),u=r(1),d=r.n(u),b=r(17);function p(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,_=s()(e,["className","depth","item","isSelected","isSingle","onSelect","search","showCount"]),v=[t,"woocommerce-search-list__item"];v.push("depth-".concat(n)),d&&v.push("is-radio-button");var w,O=c.breadcrumbs&&c.breadcrumbs.length;return Object(a.createElement)(l.MenuItem,o()({role:d?"menuitemradio":"menuitemcheckbox",className:v.join(" "),onClick:m(c),isSelected:u},_),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"},O?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:p(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},24:function(e,t){!function(){e.exports=this.wp.editor}()},29:function(e,t){!function(){e.exports=this.wp.blocks}()},3:function(e,t){!function(){e.exports=this.lodash}()},30:function(e,t,r){"use strict";var n=r(13),o=r.n(n),c=r(14),s=r.n(c),a=r(8),i=r.n(a),l=r(9),u=r.n(l),d=r(10),b=r.n(d),p=r(11),m=r.n(p),h=r(12),g=r.n(h),j=r(5),f=r.n(j),_=r(0),v=r(2),w=r(4),O=r(16),y=r(3),k=r(18),E=r.n(k),S=r(1),C=r.n(S),x=r(165);r(167);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(23),I={clear:Object(v.__)("Clear all selected items","woo-gutenberg-products-block"),list:Object(v.__)("Results","woo-gutenberg-products-block"),noItems:Object(v.__)("No items found.","woo-gutenberg-products-block"),noResults:Object(v.__)("No results for %s","woo-gutenberg-products-block"),search:Object(v.__)("Search for items","woo-gutenberg-products-block"),selected:function(e){return Object(v.sprintf)(Object(v._n)("%d item selected","%d items selected",e,"woo-gutenberg-products-block"),e)},updated:Object(v.__)("Search results updated.","woo-gutenberg-products-block")},L=function(e){function t(){var e;return i()(this,t),(e=b()(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?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(_.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(_.createElement)(_.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(_.createElement)("div",{className:"woocommerce-search-list__list is-loading"},Object(_.createElement)(w.Spinner,null)):n.length?Object(_.createElement)(w.MenuGroup,{label:c.list,className:"woocommerce-search-list__list"},this.renderList(n)):Object(_.createElement)("div",{className:"woocommerce-search-list__list is-not-found"},Object(_.createElement)("span",{className:"woocommerce-search-list__not-found-icon"},Object(_.createElement)(E.a,{icon:"notice-outline",role:"img","aria-hidden":"true",focusable:"false"})),Object(_.createElement)("span",{className:"woocommerce-search-list__not-found-text"},r?Object(v.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(_.createElement)("div",{className:"woocommerce-search-list__selected"},Object(_.createElement)("div",{className:"woocommerce-search-list__selected-header"},Object(_.createElement)("strong",null,s.selected(a)),a>0?Object(_.createElement)(w.Button,{isLink:!0,isDestructive:!0,onClick:this.onClear,"aria-label":s.clear},Object(v.__)("Clear all","woo-gutenberg-products-block")):null),c.map(function(t,r){return Object(_.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(_.createElement)("div",{className:"woocommerce-search-list ".concat(r)},this.renderSelectedSection(),Object(_.createElement)("div",{className:"woocommerce-search-list__search"},Object(_.createElement)(w.TextControl,{label:s.search,type:"search",value:n,onChange:function(e){return c({search:e})}})),this.renderListSection())}}]),t}(_.Component);L.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(O.compose)([Object(O.withState)({search:""}),w.withSpokenMessages,O.withInstanceId])(L)},33:function(e,t,r){"use strict";function n(e,t){var r=e.attributes,n=e.attrOperator,o=e.categories,c=e.catOperator,s=e.orderby,a=e.products,i=e.columns||wc_product_block_data.default_columns,l={status:"publish",per_page:(e.rows||wc_product_block_data.default_rows)*i};switch(o&&o.length&&(l.category=o.join(","),c&&"all"===c&&(l.cat_operator="AND")),s&&("price_desc"===s?(l.orderby="price",l.order="desc"):"price_asc"===s?(l.orderby="price",l.order="asc"):"title"===s?(l.orderby="title",l.order="asc"):"menu_order"===s?(l.orderby="menu_order",l.order="asc"):l.orderby=s),r&&r.length>0&&(l.attribute_term=r.map(function(e){return e.id}).join(","),l.attribute=r[0].attr_slug,n&&(l.attr_operator="all"===n?"AND":"IN")),t){case"woocommerce/product-best-sellers":l.orderby="popularity";break;case"woocommerce/product-top-rated":l.orderby="rating";break;case"woocommerce/product-on-sale":l.on_sale=1;break;case"woocommerce/product-new":l.orderby="date";break;case"woocommerce/handpicked-products":l.include=a,l.per_page=a.length}return l}r.d(t,"a",function(){return n})},34:function(e,t,r){"use strict";var n=r(0),o=r(2),c=r(1),s=r.n(c),a=(r(175),function(e){var t=e.product,r=wc_product_block_data.placeholderImgSrc,c=null;return c=t.images.length?Object(n.createElement)("img",{src:t.images[0].src,alt:""}):Object(n.createElement)("img",{src:r,alt:""}),Object(n.createElement)("div",{className:"wc-product-preview"},c,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},35:function(e,t,r){"use strict";r.d(t,"a",function(){return c});var n=r(163),o=r.n(n);function c(e,t){var r=e.attributes,n=r.attributes,c=r.attrOperator,s=r.categories,a=r.catOperator,i=r.orderby,l=r.products,u=r.columns||wc_product_block_data.default_columns,d=r.rows||wc_product_block_data.default_rows,b=new Map;switch(b.set("limit",d*u),b.set("columns",u),s&&s.length&&(b.set("category",s.join(",")),a&&"all"===a&&b.set("cat_operator","AND")),n&&n.length&&(b.set("terms",n.map(function(e){return e.id}).join(",")),b.set("attribute",n[0].attr_slug),c&&"all"===c&&b.set("terms_operator","AND")),i&&("price_desc"===i?(b.set("orderby","price"),b.set("order","DESC")):"price_asc"===i?(b.set("orderby","price"),b.set("order","ASC")):"date"===i?(b.set("orderby","date"),b.set("order","DESC")):b.set("orderby",i)),t){case"woocommerce/product-best-sellers":b.set("best_selling","1");break;case"woocommerce/product-top-rated":b.set("orderby","rating");break;case"woocommerce/product-on-sale":b.set("on_sale","1");break;case"woocommerce/product-new":b.set("orderby","date"),b.set("order","DESC");break;case"woocommerce/handpicked-products":if(!l.length)return"";b.set("ids",l.join(",")),b.set("limit",l.length);break;case"woocommerce/product-category":if(!s||!s.length)return"";break;case"woocommerce/products-by-attribute":if(!n||!n.length)return""}var p="[products",m=!0,h=!1,g=void 0;try{for(var j,f=b[Symbol.iterator]();!(m=(j=f.next()).done);m=!0){var _=o()(j.value,2);p+=" "+_[0]+'="'+_[1]+'"'}}catch(e){h=!0,g=e}finally{try{m||null==f.return||f.return()}finally{if(h)throw g}}return p+="]"}},39:function(e,t,r){"use strict";var n=r(0),o=r(2),c=r(3),s=r(1),a=r.n(s),i=r(4),l=function(e){var t=e.columns,r=e.rows,s=e.setAttributes;return Object(n.createElement)(n.Fragment,null,Object(n.createElement)(i.RangeControl,{label:Object(o.__)("Columns","woo-gutenberg-products-block"),value:t,onChange:function(e){var t=Object(c.clamp)(e,wc_product_block_data.min_columns,wc_product_block_data.max_columns);s({columns:Object(c.isNaN)(t)?"":t})},min:wc_product_block_data.min_columns,max:wc_product_block_data.max_columns}),Object(n.createElement)(i.RangeControl,{label:Object(o.__)("Rows","woo-gutenberg-products-block"),value:r,onChange:function(e){var t=Object(c.clamp)(e,wc_product_block_data.min_rows,wc_product_block_data.max_rows);s({rows:Object(c.isNaN)(t)?"":t})},min:wc_product_block_data.min_rows,max:wc_product_block_data.max_rows}))};l.propTypes={columns:a.a.oneOfType([a.a.number,a.a.string]).isRequired,rows:a.a.oneOfType([a.a.number,a.a.string]).isRequired,setAttributes:a.a.func.isRequired},t.a=l},4:function(e,t){!function(){e.exports=this.wp.components}()},612:function(e,t,r){var n=r(613);"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)},613:function(e,t,r){},614:function(e,t,r){var n=r(615);"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)},615:function(e,t,r){},623:function(e,t,r){"use strict";r.r(t);var n=r(0),o=r(2),c=r(18),s=r.n(c),a=r(29),i=(r(612),r(8)),l=r.n(i),u=r(9),d=r.n(u),b=r(10),p=r.n(b),m=r(11),h=r.n(m),g=r(12),j=r.n(g),f=r(5),_=r.n(f),v=r(21),w=r(15),O=r.n(w),y=r(24),k=r(4),E=r(3),S=r(1),C=r.n(S),x=r(33),N=r(39),z=r(14),I=r.n(z),L=r(26),R=r.n(L),A=r(273),M=r.n(A),P=r(13),T=r.n(P),B=(r(614),r(30)),D=r(23),q=function(e){function t(){var e;return l()(this,t),(e=p()(this,h()(t).apply(this,arguments))).state={list:[],loading:!0,attribute:0,termsList:{},termsLoading:!0},e.debouncedGetTerms=Object(E.debounce)(e.getTerms.bind(_()(_()(e))),200),e.renderItem=e.renderItem.bind(_()(_()(e))),e.onSelectAttribute=e.onSelectAttribute.bind(_()(_()(e))),e}return j()(t,e),d()(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props.selected;O()({path:Object(v.addQueryArgs)("/wc-pb/v3/products/attributes",{per_page:-1})}).then(function(r){r=r.map(function(e){return T()({},e,{parent:0})}),e.setState(function(e){var n=e.attribute;if(!n&&t.length>0){var o=Object(E.find)(r,{slug:t[0].attr_slug});n=o?o.id:0}return{list:r,attribute:n,loading:!1}})}).catch(function(){e.setState({list:[],loading:!1})})}},{key:"componentDidUpdate",value:function(e,t){t.attribute!==this.state.attribute&&this.debouncedGetTerms()}},{key:"getTerms",value:function(){var e=this,t=this.state,r=t.attribute,n=t.termsList;r&&(n[r]||this.setState({termsLoading:!0}),O()({path:Object(v.addQueryArgs)("/wc-pb/v3/products/attributes/".concat(r,"/terms"),{per_page:-1})}).then(function(t){t=t.map(function(e){return T()({},e,{parent:r})}),e.setState(function(e){return{termsList:T()({},e.termsList,M()({},r,t)),termsLoading:!1}})}).catch(function(){e.setState({termsLoading:!1})}))}},{key:"onSelectAttribute",value:function(e){var t=this;return function(){t.props.onChange([]),t.setState({attribute:e.id===t.state.attribute?0:e.id})}}},{key:"renderItem",value:function(e){var t=e.item,r=e.search,c=e.depth,s=void 0===c?0:c,a=this.state,i=a.attribute,l=a.termsLoading,u=["woocommerce-product-attributes__item","woocommerce-search-list__item"];return r.length&&u.push("is-searching"),0===s&&0!==t.parent&&u.push("is-skip-level"),t.breadcrumbs.length?Object(n.createElement)(D.a,R()({className:u.join(" ")},e,{showCount:!0,"aria-label":"".concat(t.breadcrumbs[0],": ").concat(t.name)})):[Object(n.createElement)(D.a,R()({key:"attr-".concat(t.id)},e,{className:u.join(" "),isSelected:i===t.id,onSelect:this.onSelectAttribute,isSingle:!0,disabled:"0"===t.count,"aria-expanded":i===t.id,"aria-label":Object(o.sprintf)(Object(o._n)("%s, has %d term","%s, has %d terms",t.count,"woo-gutenberg-products-block"),t.name,t.count)})),i===t.id&&l&&Object(n.createElement)("div",{key:"loading",className:"woocommerce-search-list__item woocommerce-product-attributes__itemdepth-1 is-loading is-not-active"},Object(n.createElement)(k.Spinner,null))]}},{key:"render",value:function(){var e=this.state,t=e.attribute,r=e.list,c=e.loading,s=e.termsList,a=this.props,i=a.onChange,l=a.onOperatorChange,u=a.operator,d=a.selected,b=s[t]||[],p=[].concat(I()(r),I()(b)),m={clear:Object(o.__)("Clear all product attributes","woo-gutenberg-products-block"),list:Object(o.__)("Product Attributes","woo-gutenberg-products-block"),noItems:Object(o.__)("Your store doesn't have any product attributes.","woo-gutenberg-products-block"),search:Object(o.__)("Search for product attributes","woo-gutenberg-products-block"),selected:function(e){return Object(o.sprintf)(Object(o._n)("%d attribute selected","%d attributes selected",e,"woo-gutenberg-products-block"),e)},updated:Object(o.__)("Product attribute search results updated.","woo-gutenberg-products-block")};return Object(n.createElement)(n.Fragment,null,Object(n.createElement)(B.a,{className:"woocommerce-product-attributes",list:p,isLoading:c,selected:d.map(function(e){var t=e.id;return Object(E.find)(p,{id:t})}).filter(Boolean),onChange:i,renderItem:this.renderItem,messages:m,isHierarchical:!0}),!!l&&Object(n.createElement)("div",{className:d.length<2?"screen-reader-text":""},Object(n.createElement)(k.SelectControl,{className:"woocommerce-product-attributes__operator",label:Object(o.__)("Display products matching","woo-gutenberg-products-block"),help:Object(o.__)("Pick at least two attributes to use this setting.","woo-gutenberg-products-block"),value:u,onChange:l,options:[{label:Object(o.__)("Any selected attributes","woo-gutenberg-products-block"),value:"any"},{label:Object(o.__)("All selected attributes","woo-gutenberg-products-block"),value:"all"}]})))}}]),t}(n.Component);q.propTypes={onChange:C.a.func.isRequired,onOperatorChange:C.a.func,operator:C.a.oneOf(["all","any"]),selected:C.a.array.isRequired},q.defaultProps={operator:"any"};var H=q,F=r(179),G=r(34),V=function(e){function t(){var e;return l()(this,t),(e=p()(this,h()(t).apply(this,arguments))).state={products:[],loaded:!1},e.debouncedGetProducts=Object(E.debounce)(e.getProducts.bind(_()(_()(e))),200),e}return j()(t,e),d()(t,[{key:"componentDidMount",value:function(){this.props.attributes.attributes&&this.getProducts()}},{key:"componentDidUpdate",value:function(e){var t=this;["attributes","attrOperator","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,t=this.props.attributes;t.attributes.length?O()({path:Object(v.addQueryArgs)("/wc-pb/v3/products",Object(x.a)(t,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.setAttributes,t=this.props.attributes,r=t.attributes,c=t.attrOperator,s=t.columns,a=t.orderby,i=t.rows;return Object(n.createElement)(y.InspectorControls,{key:"inspector"},Object(n.createElement)(k.PanelBody,{title:Object(o.__)("Layout","woo-gutenberg-products-block"),initialOpen:!0},Object(n.createElement)(N.a,{columns:s,rows:i,setAttributes:e})),Object(n.createElement)(k.PanelBody,{title:Object(o.__)("Filter by Product Attribute","woo-gutenberg-products-block"),initialOpen:!1},Object(n.createElement)(H,{selected:r,onChange:function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(function(e){return{id:e.id,attr_slug:e.attr_slug}});e({attributes:t})},operator:c,onOperatorChange:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"any";return e({attrOperator:t})}})),Object(n.createElement)(k.PanelBody,{title:Object(o.__)("Order By","woo-gutenberg-products-block"),initialOpen:!1},Object(n.createElement)(F.a,{setAttributes:e,value:a})))}},{key:"renderEditMode",value:function(){var e=this.props,t=e.debouncedSpeak,r=e.setAttributes,c=this.props.attributes;return Object(n.createElement)(k.Placeholder,{icon:Object(n.createElement)(s.a,{icon:"custom-post-type"}),label:Object(o.__)("Products by Attribute","woo-gutenberg-products-block"),className:"wc-block-products-grid wc-block-products-attribute"},Object(o.__)("Display a grid of products from your selected attributes.","woo-gutenberg-products-block"),Object(n.createElement)("div",{className:"wc-block-products-attribute__selection"},Object(n.createElement)(H,{selected:c.attributes,onChange:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(function(e){return{id:e.id,attr_slug:e.attr_slug}});r({attributes:e})},operator:c.attrOperator,onOperatorChange:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"any";return r({attrOperator:e})}}),Object(n.createElement)(k.Button,{isDefault:!0,onClick:function(){r({editMode:!1}),t(Object(o.__)("Showing Products by Attribute block preview.","woo-gutenberg-products-block"))}},Object(o.__)("Done","woo-gutenberg-products-block"))))}},{key:"render",value:function(){var e=this.props.setAttributes,t=this.props.attributes,r=t.columns,c=t.editMode,a=this.state,i=a.loaded,l=a.products,u=["wc-block-products-grid","wc-block-products-attribute"];return r&&u.push("cols-".concat(r)),l&&!l.length&&(i?u.push("is-not-found"):u.push("is-loading")),Object(n.createElement)(n.Fragment,null,Object(n.createElement)(y.BlockControls,null,Object(n.createElement)(k.Toolbar,{controls:[{icon:"edit",title:Object(o.__)("Edit"),onClick:function(){return e({editMode:!c})},isActive:c}]})),this.getInspectorControls(),c?this.renderEditMode():Object(n.createElement)("div",{className:u.join(" ")},l.length?l.map(function(e){return Object(n.createElement)(G.a,{product:e,key:e.id})}):Object(n.createElement)(k.Placeholder,{icon:Object(n.createElement)(s.a,{icon:"custom-post-type"}),label:Object(o.__)("Products by Attribute","woo-gutenberg-products-block")},i?Object(o.__)("No products found.","woo-gutenberg-products-block"):Object(n.createElement)(k.Spinner,null))))}}]),t}(n.Component);V.propTypes={attributes:C.a.object.isRequired,name:C.a.string.isRequired,setAttributes:C.a.func.isRequired,debouncedSpeak:C.a.func.isRequired};var U=Object(k.withSpokenMessages)(V),Q=r(35);Object(a.registerBlockType)("woocommerce/products-by-attribute",{title:Object(o.__)("Products by Attribute","woo-gutenberg-products-block"),icon:Object(n.createElement)(s.a,{icon:"custom-post-type"}),category:"woocommerce",keywords:[Object(o.__)("WooCommerce","woo-gutenberg-products-block")],description:Object(o.__)("Display a grid of products from your selected attributes.","woo-gutenberg-products-block"),supports:{align:["wide","full"]},attributes:{attributes:{type:"array",default:[]},attrOperator:{type:"string",default:"any"},columns:{type:"number",default:wc_product_block_data.default_columns},editMode:{type:"boolean",default:!0},orderby:{type:"string",default:"date"},rows:{type:"number",default:wc_product_block_data.default_rows}},edit:function(e){return Object(n.createElement)(U,e)},save:function(e){var t=e.attributes.align;return Object(n.createElement)(n.RawHTML,{className:t?"align".concat(t):""},Object(Q.a)(e,"woocommerce/products-by-attribute"))}})}}));
|
@@ -1 +1 @@
|
|
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([712,0]),r()}({0:function(e,t){!function(){e.exports=this.wp.element}()},443:function(e,t,r){var s=r(444);"string"==typeof s&&(s=[[e.i,s,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};r(27)(s,i);s.locals&&(e.exports=s.locals)},444:function(e,t,r){},712:function(e,t,r){"use strict";r.r(t);var s=r(167),i=r.n(s),n=r(26),a=r.n(n),c=r(6),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(443),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(16),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)}})}}));
|
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={9: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([620,0]),r()}({0:function(e,t){!function(){e.exports=this.wp.element}()},386:function(e,t,r){var s=r(387);"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)},387:function(e,t,r){},620:function(e,t,r){"use strict";r.r(t);var s=r(163),i=r.n(s),n=r(26),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(386),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(14),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)}})}}));
|
@@ -1 +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={
|
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={10: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([618,0]),n()}({618:function(r,e,n){var t=n(619);"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)},619:function(r,e,n){}}));
|
@@ -1 +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__react-dates.is-core-datepicker .components-datetime__date{padding-left:0}.woocommerce-calendar__react-dates.is-core-datepicker .CalendarDay__default{background-color:transparent}.woocommerce-calendar__react-dates.is-core-datepicker .CalendarDay__selected{background:#622557;border:none}.woocommerce-calendar__inputs{padding:1em;width:100%;max-width:500px;display:-ms-grid;display:grid;-ms-grid-columns:43% 14% 43%;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;-ms-grid-column:2;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{-ms-grid-column:1;grid-column-start:1}.woocommerce-calendar__input:last-child{-ms-grid-column:3;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.is-mobile .woocommerce-calendar__input-error .components-popover__content{height:auto}.woocommerce-calendar__input-error{display:none}.woocommerce-calendar__input-error .components-popover__content{background-color:#606a73;color:#fff;padding:.5em;border:none}.woocommerce-calendar__input-error.components-popover .components-popover__content{min-width:100px;width:100px;text-align:center}.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-calendar__input-error.components-popover:not(.no-arrow):not(.is-mobile).is-top:after{border-top-color:#606a73;z-index:1;top:0}.woocommerce-calendar__date-picker-title{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-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:-ms-grid;display:grid;align-items:center}.has-action .woocommerce-card__header{-ms-grid-columns:auto 1fr;grid-template-columns:auto 1fr}.has-menu .woocommerce-card__header{-ms-grid-columns:auto 24px;grid-template-columns:auto 24px}.has-menu.has-action .woocommerce-card__header{grid-gap:12px;-ms-grid-columns:auto 1fr 24px;grid-template-columns:auto 1fr 24px}.woocommerce-card__header-item{-ms-grid-row-align:center}.woocommerce-card__header-item:first-child{-ms-grid-column:1;grid-column-start:1;-ms-grid-column-span:1;grid-column-end:2;-ms-grid-row:1;grid-row-start:1;-ms-grid-row-span:1;grid-row-end:2}.woocommerce-card__header-item:nth-child(2){-ms-grid-column:2;grid-column-start:2;-ms-grid-column-span:1;grid-column-end:3;-ms-grid-row:1;grid-row-start:1;-ms-grid-row-span:1;grid-row-end:2}.woocommerce-card__header-item:nth-child(3){-ms-grid-column:3;grid-column-start:3;-ms-grid-column-span:1;grid-column-end:4;-ms-grid-row:1;grid-row-start:1;-ms-grid-row-span: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__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%;display:flex;align-items:center;justify-content:center}.woocommerce-chart-placeholder:after{content:"\00a0"}.woocommerce-chart-placeholder .components-spinner{margin:0}.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-chart__type-button{background:transparent!important}.woocommerce-chart__type-button.components-icon-button{color:#ccd0d4}.woocommerce-chart__type-button.components-icon-button.woocommerce-chart__type-button-selected{color:#555d66}.woocommerce-chart__type-button.components-icon-button:hover{box-shadow:none!important}.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;overflow-x:auto;overflow-y:hidden;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:-ms-grid;display:grid;-ms-grid-columns:auto 40px;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;-ms-grid-row-align:center;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}.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:-ms-grid;display:grid;-ms-grid-columns:100px 150px auto;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-range{align-items:center;display:-ms-grid;display:grid;-ms-grid-columns:1fr;grid-template-columns:1fr}.woocommerce-filters-advanced__input-range.is-between{-ms-grid-columns:1fr 36px 1fr;grid-template-columns:1fr 36px 1fr}.woocommerce-filters-advanced__input-range input{height:38px;margin:0}.woocommerce-filters-advanced__input-range .separator{padding:0 8px}@media (max-width:782px){.woocommerce-filters-advanced__input-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:-ms-grid;display:grid;-ms-grid-columns:1fr 1fr;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{-ms-grid-column:1;grid-column-start:1;-ms-grid-column-span:1;grid-column-end:2;-ms-grid-row:1;grid-row-start:1;-ms-grid-row-span:1;grid-row-end:2}.woocommerce-filters-date__tab:nth-child(2){-ms-grid-column:2;grid-column-start:2;-ms-grid-column-span:1;grid-column-end:3;-ms-grid-row:1;grid-row-start:1;-ms-grid-row-span: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 .woocommerce-calendar__input-error .components-popover__content,.woocommerce-filters-filter__content .woocommerce-calendar__input-error .components-popover__content{background-color:#606a73}.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:not(.has-inline-tags) .woocommerce-tag{margin:8px 6px 0 0}.woocommerce-search.has-inline-tags .woocommerce-search__icon{top:50%;transform:translateY(-50%)}.woocommerce-search .woocommerce-search__inline-container{width:100%;padding:4px 2px 4px 36px;border:1px solid #ccd0d4;background-color:#fff;display:flex;align-items:center}.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;padding:1px 0}.woocommerce-search .woocommerce-search__inline-input,.woocommerce-search .woocommerce-search__inline-input:focus{border:none;outline:none;box-shadow:none;padding:2px 0;line-height:20px;min-width:70px;font-size:inherit;vertical-align:middle}.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;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{-ms-grid-row-align:center;align-self:center;flex-grow:1;height:1px;margin:0 10px}@media (max-width:782px){.woocommerce-section-header.has-interval-select{position:relative;padding-bottom:30px}.woocommerce-section-header.has-interval-select .woocommerce-chart__interval-select{position:absolute;left:0;bottom:0;padding-left:6px}}.woocommerce-section-header__actions,.woocommerce-section-header__menu{text-align:right}.woocommerce-section-header__actions{display:flex;flex-grow:1;justify-content:flex-end;align-items:center}.woocommerce-section-header__actions .components-base-control{padding-top:0;min-height:34px}.woocommerce-section-header__actions .components-base-control__field{margin-bottom:0}.woocommerce-section-header__actions .components-base-control__field select{background:transparent}.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:18px;font-size:1.125rem;line-height:2.2;font-weight:600}.woocommerce-segmented-selection{width:100%;color:#555d66}.woocommerce-segmented-selection__container{width:100%;-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr;display:-ms-grid;display:grid;border-top:1px solid #ccd0d4;border-bottom:1px solid #ccd0d4;background-color:#ccd0d4}.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:-ms-grid;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{-ms-grid-columns:1fr;grid-template-columns:1fr}.woocommerce-summary.has-2-items{-ms-grid-columns:(1fr)[2];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{-ms-grid-columns:(1fr)[3];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{-ms-grid-columns:(1fr)[4];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{-ms-grid-columns:(1fr)[5];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{-ms-grid-columns:(1fr)[6];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{-ms-grid-columns:(1fr)[3];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{-ms-grid-columns:(1fr)[4];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"}.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,.woocommerce-table.has-search .woocommerce-card__action{align-items:center;text-align:left;display:-ms-grid;display:grid;width:100%;-ms-grid-columns:auto 1fr auto;grid-template-columns:auto 1fr auto}@media (max-width:960px){.woocommerce-table.has-compare .woocommerce-card__action,.woocommerce-table.has-search .woocommerce-card__action{-ms-grid-row:1;-ms-grid-row-span:2;-ms-grid-column:1;-ms-grid-column-span:3;grid-area:1/1/3/4;grid-gap:12px;-ms-grid-columns:auto 1fr 24px;grid-template-columns:auto 1fr 24px;margin:0}.woocommerce-table.has-compare .woocommerce-card__action .woocommerce-table__compare,.woocommerce-table.has-search .woocommerce-card__action .woocommerce-table__compare{display:flex;-ms-grid-row:2;-ms-grid-row-span:1;-ms-grid-column:1;-ms-grid-column-span:1;grid-area:2/1/3/2}.woocommerce-table.has-compare .woocommerce-card__action .woocommerce-search,.woocommerce-table.has-search .woocommerce-card__action .woocommerce-search{-ms-grid-row:2;-ms-grid-row-span:1;-ms-grid-column:2;-ms-grid-column-span:2;grid-area:2/2/3/4;margin-right:0}.woocommerce-table.has-compare .woocommerce-card__action .woocommerce-table__download-button,.woocommerce-table.has-search .woocommerce-card__action .woocommerce-table__download-button{-ms-grid-row:1;-ms-grid-row-span:1;-ms-grid-column:2;-ms-grid-column-span:1;grid-area:1/2/2/3;-ms-grid-column-align:end;justify-self:end;margin:-6px 0}}.woocommerce-table.has-compare.has-search .woocommerce-card__action,.woocommerce-table.has-search.has-search .woocommerce-card__action{-ms-grid-columns:1fr auto;grid-template-columns:1fr auto}.woocommerce-table.has-compare.has-search .woocommerce-card__action .woocommerce-search,.woocommerce-table.has-search.has-search .woocommerce-card__action .woocommerce-search{-ms-grid-row-align:center;align-self:center;-ms-grid-column:1;grid-column-start:1;-ms-grid-column-span:1;grid-column-end:2}.woocommerce-table.has-compare.has-search .woocommerce-card__action .woocommerce-table__download-button,.woocommerce-table.has-search.has-search .woocommerce-card__action .woocommerce-table__download-button{-ms-grid-row-align:center;align-self:center;-ms-grid-column:2;grid-column-start:2;-ms-grid-column-span:1;grid-column-end:3}@media (max-width:960px){.woocommerce-table.has-compare.has-search .woocommerce-card__action,.woocommerce-table.has-search.has-search .woocommerce-card__action{-ms-grid-row:1;-ms-grid-row-span:2;-ms-grid-column:1;-ms-grid-column-span:3;grid-area:1/1/3/4;-ms-grid-columns:auto 1fr 24px;grid-template-columns:auto 1fr 24px}.woocommerce-table.has-compare.has-search .woocommerce-card__action .woocommerce-search,.woocommerce-table.has-search.has-search .woocommerce-card__action .woocommerce-search{-ms-grid-row:2;-ms-grid-row-span:1;-ms-grid-column:1;-ms-grid-column-span:3;grid-area:2/1/3/4;margin-left:0}.woocommerce-table.has-compare.has-search .woocommerce-card__action .woocommerce-table__download-button,.woocommerce-table.has-search.has-search .woocommerce-card__action .woocommerce-table__download-button{-ms-grid-row:1;-ms-grid-row-span:1;-ms-grid-column:2;-ms-grid-column-span:1;grid-area:1/2/2/3}}.woocommerce-table.has-compare .woocommerce-search,.woocommerce-table.has-search .woocommerce-search{margin:0 16px}.woocommerce-table.has-compare .woocommerce-compare-button,.woocommerce-table.has-search .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:1px 4px 1px 0;overflow:hidden;vertical-align:middle}.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{-ms-grid-row-align:center;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}
|
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__react-dates.is-core-datepicker .components-datetime__date{padding-left:0}.woocommerce-calendar__react-dates.is-core-datepicker .CalendarDay__default{background-color:transparent}.woocommerce-calendar__react-dates.is-core-datepicker .CalendarDay__selected{background:#622557;border:none}.woocommerce-calendar__inputs{padding:1em;width:100%;max-width:500px;display:-ms-grid;display:grid;-ms-grid-columns:43% 14% 43%;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;-ms-grid-column:2;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{-ms-grid-column:1;grid-column-start:1}.woocommerce-calendar__input:last-child{-ms-grid-column:3;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.is-mobile .woocommerce-calendar__input-error .components-popover__content{height:auto}.woocommerce-calendar__input-error{display:none}.woocommerce-calendar__input-error .components-popover__content{background-color:#606a73;color:#fff;padding:.5em;border:none}.woocommerce-calendar__input-error.components-popover .components-popover__content{min-width:100px;width:100px;text-align:center}.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-calendar__input-error.components-popover:not(.no-arrow):not(.is-mobile).is-top:after{border-top-color:#606a73;z-index:1;top:0}.woocommerce-calendar__date-picker-title{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-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:-ms-grid;display:grid;align-items:center}.has-action .woocommerce-card__header{-ms-grid-columns:auto 1fr;grid-template-columns:auto 1fr}.has-menu .woocommerce-card__header{-ms-grid-columns:auto 24px;grid-template-columns:auto 24px}.has-menu.has-action .woocommerce-card__header{grid-gap:12px;-ms-grid-columns:auto 1fr 24px;grid-template-columns:auto 1fr 24px}.woocommerce-card__header-item{-ms-grid-row-align:center}.woocommerce-card__header-item:first-child{-ms-grid-column:1;grid-column-start:1;-ms-grid-column-span:1;grid-column-end:2;-ms-grid-row:1;grid-row-start:1;-ms-grid-row-span:1;grid-row-end:2}.woocommerce-card__header-item:nth-child(2){-ms-grid-column:2;grid-column-start:2;-ms-grid-column-span:1;grid-column-end:3;-ms-grid-row:1;grid-row-start:1;-ms-grid-row-span:1;grid-row-end:2}.woocommerce-card__header-item:nth-child(3){-ms-grid-column:3;grid-column-start:3;-ms-grid-column-span:1;grid-column-end:4;-ms-grid-row:1;grid-row-start:1;-ms-grid-row-span: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__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%;display:flex;align-items:center;justify-content:center}.woocommerce-chart-placeholder:after{content:"\00a0"}.woocommerce-chart-placeholder .components-spinner{margin:0}.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-chart__type-button{background:transparent!important}.woocommerce-chart__type-button.components-icon-button{color:#ccd0d4}.woocommerce-chart__type-button.components-icon-button.woocommerce-chart__type-button-selected{color:#555d66}.woocommerce-chart__type-button.components-icon-button:hover{box-shadow:none!important}.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}.woocommerce-chart__body-row .d3-chart__container{width:calc(100% - 320px)}.d3-chart__container{position:relative}.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;overflow-x:auto;overflow-y:hidden;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}@media (max-width:782px){.woocommerce-filters-advanced{margin:16px 0;border:1px solid #ccd0d4}}@media (max-width:400px){.woocommerce-filters-advanced{margin:12px 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:-ms-grid;display:grid;-ms-grid-columns:auto 40px;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;-ms-grid-row-align:center;align-self:center}@media (max-width:400px){.woocommerce-filters-advanced__list-item .woocommerce-filters-advanced__remove{position:absolute;top:0;right:4px}}.woocommerce-filters-advanced__list-item .components-form-token-field{border-radius:4px}@media (max-width:400px){.woocommerce-filters-advanced__list-item{display:block;position:relative;padding:8px 8px 0 0}}.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}.woocommerce-filters-advanced__fieldset>div{padding:0 4px}@media (max-width:782px){.woocommerce-filters-advanced__fieldset>div{width:100%;padding:4px 0}}@media (max-width:782px){.woocommerce-filters-advanced__fieldset{display:block}}.woocommerce-filters-advanced__fieldset.is-english{display:-ms-grid;display:grid;-ms-grid-columns:100px 150px auto;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-range{align-items:center;display:-ms-grid;display:grid;-ms-grid-columns:1fr;grid-template-columns:1fr}.woocommerce-filters-advanced__input-range.is-between{-ms-grid-columns:1fr 36px 1fr;grid-template-columns:1fr 36px 1fr}.woocommerce-filters-advanced__input-range input{height:38px;margin:0}.woocommerce-filters-advanced__input-range .separator{text-align:center}.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:-ms-grid;display:grid;-ms-grid-columns:1fr 1fr;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{-ms-grid-column:1;grid-column-start:1;-ms-grid-column-span:1;grid-column-end:2;-ms-grid-row:1;grid-row-start:1;-ms-grid-row-span:1;grid-row-end:2}.woocommerce-filters-date__tab:nth-child(2){-ms-grid-column:2;grid-column-start:2;-ms-grid-column-span:1;grid-column-end:3;-ms-grid-row:1;grid-row-start:1;-ms-grid-row-span: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}@media (max-width:400px){.woocommerce-filters{margin-left:-8px;margin-right:-8px}}.woocommerce-filters__basic-filters{display:flex;margin-bottom:24px}@media (max-width:1280px){.woocommerce-filters__basic-filters{flex-direction:column}}@media (max-width:782px){.woocommerce-filters__basic-filters{margin-bottom:16px}}.woocommerce-filters-filter{width:25%;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:1440px){.woocommerce-filters-filter{width:33.3%}}@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 .woocommerce-calendar__input-error .components-popover__content,.woocommerce-filters-filter__content .woocommerce-calendar__input-error .components-popover__content{background-color:#606a73}.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 span{vertical-align:middle}.woocommerce-flag .woocommerce-flag__fallback{background:#e2e4e7;color:transparent;width:24px;height:18px;display:block;overflow:hidden}.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:not(.has-inline-tags) .woocommerce-tag{margin:8px 6px 0 0}.woocommerce-search.has-inline-tags .woocommerce-search__icon{top:50%;transform:translateY(-50%)}.woocommerce-search .woocommerce-search__inline-container{width:100%;padding:4px 2px 4px 36px;border:1px solid #ccd0d4;background-color:#fff;display:flex;align-items:center;position:relative}.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;padding:1px 0}.woocommerce-search .woocommerce-search__inline-input,.woocommerce-search .woocommerce-search__inline-input:focus{border:none;outline:none;box-shadow:none;padding:2px 0;line-height:20px;min-width:70px;font-size:inherit;vertical-align:middle}.woocommerce-search .woocommerce-search__inline-input:focus[type=number]::-webkit-inner-spin-button,.woocommerce-search .woocommerce-search__inline-input:focus[type=number]::-webkit-outer-spin-button,.woocommerce-search .woocommerce-search__inline-input[type=number]::-webkit-inner-spin-button,.woocommerce-search .woocommerce-search__inline-input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin: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;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-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-search__result-name{text-decoration:underline}.woocommerce-search__clear{position:absolute;right:10px;top:calc(50% - 10px)}.woocommerce-search__clear>.dashicon{color:#c9c9c9}.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{-ms-grid-row-align:center;align-self:center;flex-grow:1;height:1px;margin:0 10px}@media (max-width:782px){.woocommerce-section-header.has-interval-select{position:relative;padding-bottom:30px}.woocommerce-section-header.has-interval-select .woocommerce-chart__interval-select{position:absolute;left:0;bottom:0;padding-left:6px}}.woocommerce-section-header__actions,.woocommerce-section-header__menu{text-align:right}.woocommerce-section-header__actions{display:flex;flex-grow:1;justify-content:flex-end;align-items:center}.woocommerce-section-header__actions .components-base-control{padding-top:0;min-height:34px}.woocommerce-section-header__actions .components-base-control__field{margin-bottom:0}.woocommerce-section-header__actions .components-base-control__field select{background:transparent}.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:18px;font-size:1.125rem;line-height:2.2;font-weight:600}.woocommerce-segmented-selection{width:100%;color:#555d66}.woocommerce-segmented-selection__container{width:100%;-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr;display:-ms-grid;display:grid;border-top:1px solid #ccd0d4;border-bottom:1px solid #ccd0d4;background-color:#ccd0d4}.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:-ms-grid;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{-ms-grid-columns:1fr;grid-template-columns:1fr}.woocommerce-summary.has-2-items{-ms-grid-columns:(1fr)[2];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{-ms-grid-columns:(1fr)[3];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{-ms-grid-columns:(1fr)[4];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{-ms-grid-columns:(1fr)[5];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{-ms-grid-columns:(1fr)[6];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{-ms-grid-columns:(1fr)[3];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{-ms-grid-columns:(1fr)[4];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"}.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,.woocommerce-table.has-search .woocommerce-card__action{align-items:center;text-align:left;display:-ms-grid;display:grid;width:100%;-ms-grid-columns:auto 1fr auto;grid-template-columns:auto 1fr auto}@media (max-width:960px){.woocommerce-table.has-compare .woocommerce-card__action,.woocommerce-table.has-search .woocommerce-card__action{-ms-grid-row:1;-ms-grid-row-span:2;-ms-grid-column:1;-ms-grid-column-span:3;grid-area:1/1/3/4;grid-gap:12px;-ms-grid-columns:auto 1fr 24px;grid-template-columns:auto 1fr 24px;margin:0}.woocommerce-table.has-compare .woocommerce-card__action .woocommerce-table__compare,.woocommerce-table.has-search .woocommerce-card__action .woocommerce-table__compare{display:flex;-ms-grid-row:2;-ms-grid-row-span:1;-ms-grid-column:1;-ms-grid-column-span:1;grid-area:2/1/3/2}.woocommerce-table.has-compare .woocommerce-card__action .woocommerce-search,.woocommerce-table.has-search .woocommerce-card__action .woocommerce-search{-ms-grid-row:2;-ms-grid-row-span:1;-ms-grid-column:2;-ms-grid-column-span:2;grid-area:2/2/3/4;margin-right:0}.woocommerce-table.has-compare .woocommerce-card__action .woocommerce-table__download-button,.woocommerce-table.has-search .woocommerce-card__action .woocommerce-table__download-button{-ms-grid-row:1;-ms-grid-row-span:1;-ms-grid-column:2;-ms-grid-column-span:1;grid-area:1/2/2/3;-ms-grid-column-align:end;justify-self:end;margin:-6px 0}}.woocommerce-table.has-compare.has-search:not(.has-compare) .woocommerce-card__action,.woocommerce-table.has-search.has-search:not(.has-compare) .woocommerce-card__action{-ms-grid-columns:1fr auto;grid-template-columns:1fr auto}.woocommerce-table.has-compare.has-search:not(.has-compare) .woocommerce-card__action .woocommerce-search,.woocommerce-table.has-search.has-search:not(.has-compare) .woocommerce-card__action .woocommerce-search{-ms-grid-row-align:center;align-self:center;-ms-grid-column:1;grid-column-start:1;-ms-grid-column-span:1;grid-column-end:2}.woocommerce-table.has-compare.has-search:not(.has-compare) .woocommerce-card__action .woocommerce-table__download-button,.woocommerce-table.has-search.has-search:not(.has-compare) .woocommerce-card__action .woocommerce-table__download-button{-ms-grid-row-align:center;align-self:center;-ms-grid-column:2;grid-column-start:2;-ms-grid-column-span:1;grid-column-end:3}@media (max-width:960px){.woocommerce-table.has-compare.has-search:not(.has-compare) .woocommerce-card__action,.woocommerce-table.has-search.has-search:not(.has-compare) .woocommerce-card__action{-ms-grid-row:1;-ms-grid-row-span:2;-ms-grid-column:1;-ms-grid-column-span:3;grid-area:1/1/3/4;-ms-grid-columns:auto 1fr 24px;grid-template-columns:auto 1fr 24px}.woocommerce-table.has-compare.has-search:not(.has-compare) .woocommerce-card__action .woocommerce-search,.woocommerce-table.has-search.has-search:not(.has-compare) .woocommerce-card__action .woocommerce-search{-ms-grid-row:2;-ms-grid-row-span:1;-ms-grid-column:1;-ms-grid-column-span:3;grid-area:2/1/3/4;margin-left:0}.woocommerce-table.has-compare.has-search:not(.has-compare) .woocommerce-card__action .woocommerce-table__download-button,.woocommerce-table.has-search.has-search:not(.has-compare) .woocommerce-card__action .woocommerce-table__download-button{-ms-grid-row:1;-ms-grid-row-span:1;-ms-grid-column:2;-ms-grid-column-span:1;grid-area:1/2/2/3}}.woocommerce-table.has-compare .woocommerce-search,.woocommerce-table.has-search .woocommerce-search{margin:0 16px}.woocommerce-table.has-compare .woocommerce-compare-button,.woocommerce-table.has-search .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:1px 4px 1px 0;overflow:hidden;vertical-align:middle}.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{-ms-grid-row-align:center;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}
|
@@ -1,4 +1,4 @@
|
|
1 |
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],[,function(e,t,a){e.exports=a(451)()},,,,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(199)("./"+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(284)(e))},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,19 +9,19 @@
|
|
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(441),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(442);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(453);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(446),i=a(447),n=a(448);e.exports=function(e){return o(e)||i(e)||n()}},,function(e,t,a){"use strict";e.exports=a(454)},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(32),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){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(445);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(579)},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(205).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(284)(e))},,,function(e,t,a){"use strict";(function(e){
|
1 |
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],[,function(e,t,n){e.exports=n(394)()},,,,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,n){(function(e){e.exports=function(){"use strict";var t,o;function r(){return t.apply(null,arguments)}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function c(e){return void 0===e}function p(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function b(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function M(e,t){var n,o=[];for(n=0;n<e.length;++n)o.push(t(e[n],n));return o}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function d(e,t){for(var n in t)s(t,n)&&(e[n]=t[n]);return s(t,"toString")&&(e.toString=t.toString),s(t,"valueOf")&&(e.valueOf=t.valueOf),e}function z(e,t,n,o){return wt(e,t,n,o,!0).utc()}function u(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 l(e){if(null==e._isValid){var t=u(e),n=o.call(t.parsedDateParts,function(e){return null!=e}),r=!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&&n);if(e._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return r;e._isValid=r}return e._isValid}function O(e){var t=z(NaN);return null!=e?d(u(t),e):u(t).userInvalidated=!0,t}o=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,o=0;o<n;o++)if(o in t&&e.call(this,t[o],o,t))return!0;return!1};var f=r.momentProperties=[];function A(e,t){var n,o,r;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=u(t)),c(t._locale)||(e._locale=t._locale),f.length>0)for(n=0;n<f.length;n++)o=f[n],c(r=t[o])||(e[o]=r);return e}var h=!1;function q(e){A(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===h&&(h=!0,r.updateOffset(this),h=!1)}function m(e){return e instanceof q||null!=e&&null!=e._isAMomentObject}function W(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function _(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=W(t)),n}function y(e,t,n){var o,r=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),i=0;for(o=0;o<r;o++)(n&&e[o]!==t[o]||!n&&_(e[o])!==_(t[o]))&&i++;return i+a}function g(e){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function v(e,t){var n=!0;return d(function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){for(var o,a=[],i=0;i<arguments.length;i++){if(o="","object"==typeof arguments[i]){for(var c in o+="\n["+i+"] ",arguments[0])o+=c+": "+arguments[0][c]+", ";o=o.slice(0,-2)}else o=arguments[i];a.push(o)}g(e+"\nArguments: "+Array.prototype.slice.call(a).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)},t)}var L,R={};function w(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),R[e]||(g(t),R[e]=!0)}function B(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function k(e,t){var n,o=d({},e);for(n in t)s(t,n)&&(i(e[n])&&i(t[n])?(o[n]={},d(o[n],e[n]),d(o[n],t[n])):null!=t[n]?o[n]=t[n]:delete o[n]);for(n in e)s(e,n)&&!s(t,n)&&i(e[n])&&(o[n]=d({},o[n]));return o}function X(e){null!=e&&this.set(e)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,L=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)s(e,t)&&n.push(t);return n};var N={};function T(e,t){var n=e.toLowerCase();N[n]=N[n+"s"]=N[t]=e}function S(e){return"string"==typeof e?N[e]||N[e.toLowerCase()]:void 0}function E(e){var t,n,o={};for(n in e)s(e,n)&&(t=S(n))&&(o[t]=e[n]);return o}var D={};function F(e,t){D[e]=t}function x(e,t,n){var o=""+Math.abs(e),r=t-o.length,a=e>=0;return(a?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+o}var C=/(\[[^\[]*\])|(\\)?([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 Y(e,t,n,o){var r=o;"string"==typeof o&&(r=function(){return this[o]()}),e&&(j[e]=r),t&&(j[t[0]]=function(){return x(r.apply(this,arguments),t[1],t[2])}),n&&(j[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function I(e,t){return e.isValid()?(t=U(t,e.localeData()),P[t]=P[t]||function(e){var t,n,o,r=e.match(C);for(t=0,n=r.length;t<n;t++)j[r[t]]?r[t]=j[r[t]]:r[t]=(o=r[t]).match(/\[[\s\S]/)?o.replace(/^\[|\]$/g,""):o.replace(/\\/g,"");return function(t){var o,a="";for(o=0;o<n;o++)a+=B(r[o])?r[o].call(t,e):r[o];return a}}(t),P[t](e)):e.localeData().invalidDate()}function U(e,t){var n=5;function o(e){return t.longDateFormat(e)||e}for(H.lastIndex=0;n>=0&&H.test(e);)e=e.replace(H,o),H.lastIndex=0,n-=1;return e}var V=/\d/,K=/\d\d/,G=/\d{3}/,J=/\d{4}/,$=/[+-]?\d{6}/,Q=/\d\d?/,Z=/\d\d\d\d?/,ee=/\d\d\d\d\d\d?/,te=/\d{1,3}/,ne=/\d{1,4}/,oe=/[+-]?\d{1,6}/,re=/\d+/,ae=/[+-]?\d+/,ie=/Z|[+-]\d\d:?\d\d/gi,ce=/Z|[+-]\d\d(?::?\d\d)?/gi,pe=/[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,be={};function Me(e,t,n){be[e]=B(t)?t:function(e,o){return e&&n?n:t}}function se(e,t){return s(be,e)?be[e](t._strict,t._locale):new RegExp(de(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,o,r){return t||n||o||r})))}function de(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var ze={};function ue(e,t){var n,o=t;for("string"==typeof e&&(e=[e]),p(t)&&(o=function(e,n){n[t]=_(e)}),n=0;n<e.length;n++)ze[e[n]]=o}function le(e,t){ue(e,function(e,n,o,r){o._w=o._w||{},t(e,o._w,o,r)})}function Oe(e,t,n){null!=t&&s(ze,e)&&ze[e](t,n._a,n,e)}var fe=0,Ae=1,he=2,qe=3,me=4,We=5,_e=6,ye=7,ge=8;function ve(e){return Le(e)?366:365}function Le(e){return e%4==0&&e%100!=0||e%400==0}Y("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),Y(0,["YY",2],0,function(){return this.year()%100}),Y(0,["YYYY",4],0,"year"),Y(0,["YYYYY",5],0,"year"),Y(0,["YYYYYY",6,!0],0,"year"),T("year","y"),F("year",1),Me("Y",ae),Me("YY",Q,K),Me("YYYY",ne,J),Me("YYYYY",oe,$),Me("YYYYYY",oe,$),ue(["YYYYY","YYYYYY"],fe),ue("YYYY",function(e,t){t[fe]=2===e.length?r.parseTwoDigitYear(e):_(e)}),ue("YY",function(e,t){t[fe]=r.parseTwoDigitYear(e)}),ue("Y",function(e,t){t[fe]=parseInt(e,10)}),r.parseTwoDigitYear=function(e){return _(e)+(_(e)>68?1900:2e3)};var Re,we=Be("FullYear",!0);function Be(e,t){return function(n){return null!=n?(Xe(this,e,n),r.updateOffset(this,t),this):ke(this,e)}}function ke(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Xe(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&Le(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Ne(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Ne(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,o=(t%(n=12)+n)%n;return e+=(t-o)/12,1===o?Le(e)?29:28:31-o%7%2}Re=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},Y("M",["MM",2],"Mo",function(){return this.month()+1}),Y("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),Y("MMMM",0,0,function(e){return this.localeData().months(this,e)}),T("month","M"),F("month",8),Me("M",Q),Me("MM",Q,K),Me("MMM",function(e,t){return t.monthsShortRegex(e)}),Me("MMMM",function(e,t){return t.monthsRegex(e)}),ue(["M","MM"],function(e,t){t[Ae]=_(e)-1}),ue(["MMM","MMMM"],function(e,t,n,o){var r=n._locale.monthsParse(e,o,n._strict);null!=r?t[Ae]=r:u(n).invalidMonth=e});var Te=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Se="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ee="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function De(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=_(t);else if(!p(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Ne(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Fe(e){return null!=e?(De(this,e),r.updateOffset(this,!0),this):ke(this,"Month")}var xe=pe,Ce=pe;function He(){function e(e,t){return t.length-e.length}var t,n,o=[],r=[],a=[];for(t=0;t<12;t++)n=z([2e3,t]),o.push(this.monthsShort(n,"")),r.push(this.months(n,"")),a.push(this.months(n,"")),a.push(this.monthsShort(n,""));for(o.sort(e),r.sort(e),a.sort(e),t=0;t<12;t++)o[t]=de(o[t]),r[t]=de(r[t]);for(t=0;t<24;t++)a[t]=de(a[t]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.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,n){var o=7+t-n,r=(7+Pe(e,0,o).getUTCDay()-t)%7;return-r+o-1}function Ye(e,t,n,o,r){var a,i,c=(7+n-o)%7,p=je(e,o,r),b=1+7*(t-1)+c+p;return b<=0?i=ve(a=e-1)+b:b>ve(e)?(a=e+1,i=b-ve(e)):(a=e,i=b),{year:a,dayOfYear:i}}function Ie(e,t,n){var o,r,a=je(e.year(),t,n),i=Math.floor((e.dayOfYear()-a-1)/7)+1;return i<1?(r=e.year()-1,o=i+Ue(r,t,n)):i>Ue(e.year(),t,n)?(o=i-Ue(e.year(),t,n),r=e.year()+1):(r=e.year(),o=i),{week:o,year:r}}function Ue(e,t,n){var o=je(e,t,n),r=je(e+1,t,n);return(ve(e)-o+r)/7}Y("w",["ww",2],"wo","week"),Y("W",["WW",2],"Wo","isoWeek"),T("week","w"),T("isoWeek","W"),F("week",5),F("isoWeek",5),Me("w",Q),Me("ww",Q,K),Me("W",Q),Me("WW",Q,K),le(["w","ww","W","WW"],function(e,t,n,o){t[o.substr(0,1)]=_(e)}),Y("d",0,"do","day"),Y("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),Y("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),Y("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),Y("e",0,0,"weekday"),Y("E",0,0,"isoWeekday"),T("day","d"),T("weekday","e"),T("isoWeekday","E"),F("day",11),F("weekday",11),F("isoWeekday",11),Me("d",Q),Me("e",Q),Me("E",Q),Me("dd",function(e,t){return t.weekdaysMinRegex(e)}),Me("ddd",function(e,t){return t.weekdaysShortRegex(e)}),Me("dddd",function(e,t){return t.weekdaysRegex(e)}),le(["dd","ddd","dddd"],function(e,t,n,o){var r=n._locale.weekdaysParse(e,o,n._strict);null!=r?t.d=r:u(n).invalidWeekday=e}),le(["d","e","E"],function(e,t,n,o){t[o]=_(e)});var Ve="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ke="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ge="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Je=pe,$e=pe,Qe=pe;function Ze(){function e(e,t){return t.length-e.length}var t,n,o,r,a,i=[],c=[],p=[],b=[];for(t=0;t<7;t++)n=z([2e3,1]).day(t),o=this.weekdaysMin(n,""),r=this.weekdaysShort(n,""),a=this.weekdays(n,""),i.push(o),c.push(r),p.push(a),b.push(o),b.push(r),b.push(a);for(i.sort(e),c.sort(e),p.sort(e),b.sort(e),t=0;t<7;t++)c[t]=de(c[t]),p[t]=de(p[t]),b[t]=de(b[t]);this._weekdaysRegex=new RegExp("^("+b.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+p.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function et(){return this.hours()%12||12}function tt(e,t){Y(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function nt(e,t){return t._meridiemParse}Y("H",["HH",2],0,"hour"),Y("h",["hh",2],0,et),Y("k",["kk",2],0,function(){return this.hours()||24}),Y("hmm",0,0,function(){return""+et.apply(this)+x(this.minutes(),2)}),Y("hmmss",0,0,function(){return""+et.apply(this)+x(this.minutes(),2)+x(this.seconds(),2)}),Y("Hmm",0,0,function(){return""+this.hours()+x(this.minutes(),2)}),Y("Hmmss",0,0,function(){return""+this.hours()+x(this.minutes(),2)+x(this.seconds(),2)}),tt("a",!0),tt("A",!1),T("hour","h"),F("hour",13),Me("a",nt),Me("A",nt),Me("H",Q),Me("h",Q),Me("k",Q),Me("HH",Q,K),Me("hh",Q,K),Me("kk",Q,K),Me("hmm",Z),Me("hmmss",ee),Me("Hmm",Z),Me("Hmmss",ee),ue(["H","HH"],qe),ue(["k","kk"],function(e,t,n){var o=_(e);t[qe]=24===o?0:o}),ue(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ue(["h","hh"],function(e,t,n){t[qe]=_(e),u(n).bigHour=!0}),ue("hmm",function(e,t,n){var o=e.length-2;t[qe]=_(e.substr(0,o)),t[me]=_(e.substr(o)),u(n).bigHour=!0}),ue("hmmss",function(e,t,n){var o=e.length-4,r=e.length-2;t[qe]=_(e.substr(0,o)),t[me]=_(e.substr(o,2)),t[We]=_(e.substr(r)),u(n).bigHour=!0}),ue("Hmm",function(e,t,n){var o=e.length-2;t[qe]=_(e.substr(0,o)),t[me]=_(e.substr(o))}),ue("Hmmss",function(e,t,n){var o=e.length-4,r=e.length-2;t[qe]=_(e.substr(0,o)),t[me]=_(e.substr(o,2)),t[We]=_(e.substr(r))});var ot,rt=Be("Hours",!0),at={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:Ee,week:{dow:0,doy:6},weekdays:Ve,weekdaysMin:Ge,weekdaysShort:Ke,meridiemParse:/[ap]\.?m?\.?/i},it={},ct={};function pt(e){return e?e.toLowerCase().replace("_","-"):e}function bt(t){var o=null;if(!it[t]&&void 0!==e&&e&&e.exports)try{o=ot._abbr,n(185)("./"+t),Mt(o)}catch(e){}return it[t]}function Mt(e,t){var n;return e&&((n=c(t)?dt(e):st(e,t))?ot=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),ot._abbr}function st(e,t){if(null!==t){var n,o=at;if(t.abbr=e,null!=it[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=it[e]._config;else if(null!=t.parentLocale)if(null!=it[t.parentLocale])o=it[t.parentLocale]._config;else{if(null==(n=bt(t.parentLocale)))return ct[t.parentLocale]||(ct[t.parentLocale]=[]),ct[t.parentLocale].push({name:e,config:t}),null;o=n._config}return it[e]=new X(k(o,t)),ct[e]&&ct[e].forEach(function(e){st(e.name,e.config)}),Mt(e),it[e]}return delete it[e],null}function dt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return ot;if(!a(e)){if(t=bt(e))return t;e=[e]}return function(e){for(var t,n,o,r,a=0;a<e.length;){for(r=pt(e[a]).split("-"),t=r.length,n=(n=pt(e[a+1]))?n.split("-"):null;t>0;){if(o=bt(r.slice(0,t).join("-")))return o;if(n&&n.length>=t&&y(r,n,!0)>=t-1)break;t--}a++}return ot}(e)}function zt(e){var t,n=e._a;return n&&-2===u(e).overflow&&(t=n[Ae]<0||n[Ae]>11?Ae:n[he]<1||n[he]>Ne(n[fe],n[Ae])?he:n[qe]<0||n[qe]>24||24===n[qe]&&(0!==n[me]||0!==n[We]||0!==n[_e])?qe:n[me]<0||n[me]>59?me:n[We]<0||n[We]>59?We:n[_e]<0||n[_e]>999?_e:-1,u(e)._overflowDayOfYear&&(t<fe||t>he)&&(t=he),u(e)._overflowWeeks&&-1===t&&(t=ye),u(e)._overflowWeekday&&-1===t&&(t=ge),u(e).overflow=t),e}function ut(e,t,n){return null!=e?e:null!=t?t:n}function lt(e){var t,n,o,a,i,c=[];if(!e._d){for(o=function(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[he]&&null==e._a[Ae]&&function(e){var t,n,o,r,a,i,c,p;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)a=1,i=4,n=ut(t.GG,e._a[fe],Ie(Bt(),1,4).year),o=ut(t.W,1),((r=ut(t.E,1))<1||r>7)&&(p=!0);else{a=e._locale._week.dow,i=e._locale._week.doy;var b=Ie(Bt(),a,i);n=ut(t.gg,e._a[fe],b.year),o=ut(t.w,b.week),null!=t.d?((r=t.d)<0||r>6)&&(p=!0):null!=t.e?(r=t.e+a,(t.e<0||t.e>6)&&(p=!0)):r=a}o<1||o>Ue(n,a,i)?u(e)._overflowWeeks=!0:null!=p?u(e)._overflowWeekday=!0:(c=Ye(n,o,r,a,i),e._a[fe]=c.year,e._dayOfYear=c.dayOfYear)}(e),null!=e._dayOfYear&&(i=ut(e._a[fe],o[fe]),(e._dayOfYear>ve(i)||0===e._dayOfYear)&&(u(e)._overflowDayOfYear=!0),n=Pe(i,0,e._dayOfYear),e._a[Ae]=n.getUTCMonth(),e._a[he]=n.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[qe]&&0===e._a[me]&&0===e._a[We]&&0===e._a[_e]&&(e._nextDay=!0,e._a[qe]=0),e._d=(e._useUTC?Pe:function(e,t,n,o,r,a,i){var c=new Date(e,t,n,o,r,a,i);return e<100&&e>=0&&isFinite(c.getFullYear())&&c.setFullYear(e),c}).apply(null,c),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[qe]=24),e._w&&void 0!==e._w.d&&e._w.d!==a&&(u(e).weekdayMismatch=!0)}}var Ot=/^\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)?)?$/,ft=/^\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)?)?$/,At=/Z|[+-]\d\d(?::?\d\d)?/,ht=[["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}/]],qt=[["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/]],mt=/^\/?Date\((\-?\d+)/i;function Wt(e){var t,n,o,r,a,i,c=e._i,p=Ot.exec(c)||ft.exec(c);if(p){for(u(e).iso=!0,t=0,n=ht.length;t<n;t++)if(ht[t][1].exec(p[1])){r=ht[t][0],o=!1!==ht[t][2];break}if(null==r)return void(e._isValid=!1);if(p[3]){for(t=0,n=qt.length;t<n;t++)if(qt[t][1].exec(p[3])){a=(p[2]||" ")+qt[t][0];break}if(null==a)return void(e._isValid=!1)}if(!o&&null!=a)return void(e._isValid=!1);if(p[4]){if(!At.exec(p[4]))return void(e._isValid=!1);i="Z"}e._f=r+(a||"")+(i||""),Lt(e)}else e._isValid=!1}var _t=/^(?:(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 yt(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}var gt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function vt(e){var t,n,o,r,a,i,c,p=_t.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(p){var b=(t=p[4],n=p[3],o=p[2],r=p[5],a=p[6],i=p[7],c=[yt(t),Ee.indexOf(n),parseInt(o,10),parseInt(r,10),parseInt(a,10)],i&&c.push(parseInt(i,10)),c);if(!function(e,t,n){if(e){var o=Ke.indexOf(e),r=new Date(t[0],t[1],t[2]).getDay();if(o!==r)return u(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}(p[1],b,e))return;e._a=b,e._tzm=function(e,t,n){if(e)return gt[e];if(t)return 0;var o=parseInt(n,10),r=o%100,a=(o-r)/100;return 60*a+r}(p[8],p[9],p[10]),e._d=Pe.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),u(e).rfc2822=!0}else e._isValid=!1}function Lt(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],u(e).empty=!0;var t,n,o,a,i,c=""+e._i,p=c.length,b=0;for(o=U(e._f,e._locale).match(C)||[],t=0;t<o.length;t++)a=o[t],(n=(c.match(se(a,e))||[])[0])&&((i=c.substr(0,c.indexOf(n))).length>0&&u(e).unusedInput.push(i),c=c.slice(c.indexOf(n)+n.length),b+=n.length),j[a]?(n?u(e).empty=!1:u(e).unusedTokens.push(a),Oe(a,n,e)):e._strict&&!n&&u(e).unusedTokens.push(a);u(e).charsLeftOver=p-b,c.length>0&&u(e).unusedInput.push(c),e._a[qe]<=12&&!0===u(e).bigHour&&e._a[qe]>0&&(u(e).bigHour=void 0),u(e).parsedDateParts=e._a.slice(0),u(e).meridiem=e._meridiem,e._a[qe]=(M=e._locale,s=e._a[qe],null==(d=e._meridiem)?s:null!=M.meridiemHour?M.meridiemHour(s,d):null!=M.isPM?((z=M.isPM(d))&&s<12&&(s+=12),z||12!==s||(s=0),s):s),lt(e),zt(e)}else vt(e);else Wt(e);var M,s,d,z}function Rt(e){var t=e._i,n=e._f;return e._locale=e._locale||dt(e._l),null===t||void 0===n&&""===t?O({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),m(t)?new q(zt(t)):(b(t)?e._d=t:a(n)?function(e){var t,n,o,r,a;if(0===e._f.length)return u(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;r<e._f.length;r++)a=0,t=A({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],Lt(t),l(t)&&(a+=u(t).charsLeftOver,a+=10*u(t).unusedTokens.length,u(t).score=a,(null==o||a<o)&&(o=a,n=t));d(e,n||t)}(e):n?Lt(e):function(e){var t=e._i;c(t)?e._d=new Date(r.now()):b(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=mt.exec(e._i);null===t?(Wt(e),!1===e._isValid&&(delete e._isValid,vt(e),!1===e._isValid&&(delete e._isValid,r.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):a(t)?(e._a=M(t.slice(0),function(e){return parseInt(e,10)}),lt(e)):i(t)?function(e){if(!e._d){var t=E(e._i);e._a=M([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),lt(e)}}(e):p(t)?e._d=new Date(t):r.createFromInputFallback(e)}(e),l(e)||(e._d=null),e))}function wt(e,t,n,o,r){var c,p={};return!0!==n&&!1!==n||(o=n,n=void 0),(i(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)||a(e)&&0===e.length)&&(e=void 0),p._isAMomentObject=!0,p._useUTC=p._isUTC=r,p._l=n,p._i=e,p._f=t,p._strict=o,(c=new q(zt(Rt(p))))._nextDay&&(c.add(1,"d"),c._nextDay=void 0),c}function Bt(e,t,n,o){return wt(e,t,n,o,!1)}r.createFromInputFallback=v("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":""))}),r.ISO_8601=function(){},r.RFC_2822=function(){};var kt=v("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Bt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:O()}),Xt=v("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Bt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:O()});function Nt(e,t){var n,o;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return Bt();for(n=t[0],o=1;o<t.length;++o)t[o].isValid()&&!t[o][e](n)||(n=t[o]);return n}var Tt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function St(e){var t=E(e),n=t.year||0,o=t.quarter||0,r=t.month||0,a=t.week||0,i=t.day||0,c=t.hour||0,p=t.minute||0,b=t.second||0,M=t.millisecond||0;this._isValid=function(e){for(var t in e)if(-1===Re.call(Tt,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,o=0;o<Tt.length;++o)if(e[Tt[o]]){if(n)return!1;parseFloat(e[Tt[o]])!==_(e[Tt[o]])&&(n=!0)}return!0}(t),this._milliseconds=+M+1e3*b+6e4*p+1e3*c*60*60,this._days=+i+7*a,this._months=+r+3*o+12*n,this._data={},this._locale=dt(),this._bubble()}function Et(e){return e instanceof St}function Dt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Ft(e,t){Y(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+x(~~(e/60),2)+t+x(~~e%60,2)})}Ft("Z",":"),Ft("ZZ",""),Me("Z",ce),Me("ZZ",ce),ue(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Ct(ce,e)});var xt=/([\+\-]|\d\d)/gi;function Ct(e,t){var n=(t||"").match(e);if(null===n)return null;var o=n[n.length-1]||[],r=(o+"").match(xt)||["-",0,0],a=60*r[1]+_(r[2]);return 0===a?0:"+"===r[0]?a:-a}function Ht(e,t){var n,o;return t._isUTC?(n=t.clone(),o=(m(e)||b(e)?e.valueOf():Bt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+o),r.updateOffset(n,!1),n):Bt(e).local()}function Pt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function jt(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Yt=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,It=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ut(e,t){var n,o,r,a,i,c,b=e,M=null;return Et(e)?b={ms:e._milliseconds,d:e._days,M:e._months}:p(e)?(b={},t?b[t]=e:b.milliseconds=e):(M=Yt.exec(e))?(n="-"===M[1]?-1:1,b={y:0,d:_(M[he])*n,h:_(M[qe])*n,m:_(M[me])*n,s:_(M[We])*n,ms:_(Dt(1e3*M[_e]))*n}):(M=It.exec(e))?(n="-"===M[1]?-1:(M[1],1),b={y:Vt(M[2],n),M:Vt(M[3],n),w:Vt(M[4],n),d:Vt(M[5],n),h:Vt(M[6],n),m:Vt(M[7],n),s:Vt(M[8],n)}):null==b?b={}:"object"==typeof b&&("from"in b||"to"in b)&&(a=Bt(b.from),i=Bt(b.to),r=a.isValid()&&i.isValid()?(i=Ht(i,a),a.isBefore(i)?c=Kt(a,i):((c=Kt(i,a)).milliseconds=-c.milliseconds,c.months=-c.months),c):{milliseconds:0,months:0},(b={}).ms=r.milliseconds,b.M=r.months),o=new St(b),Et(e)&&s(e,"_locale")&&(o._locale=e._locale),o}function Vt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Kt(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Gt(e,t){return function(n,o){var r;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."),r=n,n=o,o=r),Jt(this,Ut(n="string"==typeof n?+n:n,o),e),this}}function Jt(e,t,n,o){var a=t._milliseconds,i=Dt(t._days),c=Dt(t._months);e.isValid()&&(o=null==o||o,c&&De(e,ke(e,"Month")+c*n),i&&Xe(e,"Date",ke(e,"Date")+i*n),a&&e._d.setTime(e._d.valueOf()+a*n),o&&r.updateOffset(e,i||c))}Ut.fn=St.prototype,Ut.invalid=function(){return Ut(NaN)};var $t=Gt(1,"add"),Qt=Gt(-1,"subtract");function Zt(e,t){var n,o,r=12*(t.year()-e.year())+(t.month()-e.month()),a=e.clone().add(r,"months");return t-a<0?(n=e.clone().add(r-1,"months"),o=(t-a)/(a-n)):(n=e.clone().add(r+1,"months"),o=(t-a)/(n-a)),-(r+o)||0}function en(e){var t;return void 0===e?this._locale._abbr:(null!=(t=dt(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var tn=v("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 nn(){return this._locale}function on(e,t){Y(0,[e,e.length],0,t)}function rn(e,t,n,o,r){var a;return null==e?Ie(this,o,r).year:(a=Ue(e,o,r),t>a&&(t=a),function(e,t,n,o,r){var a=Ye(e,t,n,o,r),i=Pe(a.year,0,a.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}.call(this,e,t,n,o,r))}Y(0,["gg",2],0,function(){return this.weekYear()%100}),Y(0,["GG",2],0,function(){return this.isoWeekYear()%100}),on("gggg","weekYear"),on("ggggg","weekYear"),on("GGGG","isoWeekYear"),on("GGGGG","isoWeekYear"),T("weekYear","gg"),T("isoWeekYear","GG"),F("weekYear",1),F("isoWeekYear",1),Me("G",ae),Me("g",ae),Me("GG",Q,K),Me("gg",Q,K),Me("GGGG",ne,J),Me("gggg",ne,J),Me("GGGGG",oe,$),Me("ggggg",oe,$),le(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,o){t[o.substr(0,2)]=_(e)}),le(["gg","GG"],function(e,t,n,o){t[o]=r.parseTwoDigitYear(e)}),Y("Q",0,"Qo","quarter"),T("quarter","Q"),F("quarter",7),Me("Q",V),ue("Q",function(e,t){t[Ae]=3*(_(e)-1)}),Y("D",["DD",2],"Do","date"),T("date","D"),F("date",9),Me("D",Q),Me("DD",Q,K),Me("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),ue(["D","DD"],he),ue("Do",function(e,t){t[he]=_(e.match(Q)[0])});var an=Be("Date",!0);Y("DDD",["DDDD",3],"DDDo","dayOfYear"),T("dayOfYear","DDD"),F("dayOfYear",4),Me("DDD",te),Me("DDDD",G),ue(["DDD","DDDD"],function(e,t,n){n._dayOfYear=_(e)}),Y("m",["mm",2],0,"minute"),T("minute","m"),F("minute",14),Me("m",Q),Me("mm",Q,K),ue(["m","mm"],me);var cn=Be("Minutes",!1);Y("s",["ss",2],0,"second"),T("second","s"),F("second",15),Me("s",Q),Me("ss",Q,K),ue(["s","ss"],We);var pn,bn=Be("Seconds",!1);for(Y("S",0,0,function(){return~~(this.millisecond()/100)}),Y(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Y(0,["SSS",3],0,"millisecond"),Y(0,["SSSS",4],0,function(){return 10*this.millisecond()}),Y(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),Y(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),Y(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),Y(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),Y(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),T("millisecond","ms"),F("millisecond",16),Me("S",te,V),Me("SS",te,K),Me("SSS",te,G),pn="SSSS";pn.length<=9;pn+="S")Me(pn,re);function Mn(e,t){t[_e]=_(1e3*("0."+e))}for(pn="S";pn.length<=9;pn+="S")ue(pn,Mn);var sn=Be("Milliseconds",!1);Y("z",0,0,"zoneAbbr"),Y("zz",0,0,"zoneName");var dn=q.prototype;function zn(e){return e}dn.add=$t,dn.calendar=function(e,t){var n=e||Bt(),o=Ht(n,this).startOf("day"),a=r.calendarFormat(this,o)||"sameElse",i=t&&(B(t[a])?t[a].call(this,n):t[a]);return this.format(i||this.localeData().calendar(a,this,Bt(n)))},dn.clone=function(){return new q(this)},dn.diff=function(e,t,n){var o,r,a;if(!this.isValid())return NaN;if(!(o=Ht(e,this)).isValid())return NaN;switch(r=6e4*(o.utcOffset()-this.utcOffset()),t=S(t)){case"year":a=Zt(this,o)/12;break;case"month":a=Zt(this,o);break;case"quarter":a=Zt(this,o)/3;break;case"second":a=(this-o)/1e3;break;case"minute":a=(this-o)/6e4;break;case"hour":a=(this-o)/36e5;break;case"day":a=(this-o-r)/864e5;break;case"week":a=(this-o-r)/6048e5;break;default:a=this-o}return n?a:W(a)},dn.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"))},dn.format=function(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=I(this,e);return this.localeData().postformat(t)},dn.from=function(e,t){return this.isValid()&&(m(e)&&e.isValid()||Bt(e).isValid())?Ut({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},dn.fromNow=function(e){return this.from(Bt(),e)},dn.to=function(e,t){return this.isValid()&&(m(e)&&e.isValid()||Bt(e).isValid())?Ut({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},dn.toNow=function(e){return this.to(Bt(),e)},dn.get=function(e){return B(this[e=S(e)])?this[e]():this},dn.invalidAt=function(){return u(this).overflow},dn.isAfter=function(e,t){var n=m(e)?e:Bt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=S(c(t)?"millisecond":t))?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},dn.isBefore=function(e,t){var n=m(e)?e:Bt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=S(c(t)?"millisecond":t))?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},dn.isBetween=function(e,t,n,o){return("("===(o=o||"()")[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===o[1]?this.isBefore(t,n):!this.isAfter(t,n))},dn.isSame=function(e,t){var n,o=m(e)?e:Bt(e);return!(!this.isValid()||!o.isValid())&&("millisecond"===(t=S(t||"millisecond"))?this.valueOf()===o.valueOf():(n=o.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},dn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},dn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},dn.isValid=function(){return l(this)},dn.lang=tn,dn.locale=en,dn.localeData=nn,dn.max=Xt,dn.min=kt,dn.parsingFlags=function(){return d({},u(this))},dn.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t=[];for(var n in e)t.push({unit:n,priority:D[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}(e=E(e)),o=0;o<n.length;o++)this[n[o].unit](e[n[o].unit]);else if(B(this[e=S(e)]))return this[e](t);return this},dn.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},dn.subtract=Qt,dn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},dn.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()}},dn.toDate=function(){return new Date(this.valueOf())},dn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?I(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):B(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",I(n,"Z")):I(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},dn.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 n="["+e+'("]',o=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r=t+'[")]';return this.format(n+o+"-MM-DD[T]HH:mm:ss.SSS"+r)},dn.toJSON=function(){return this.isValid()?this.toISOString():null},dn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},dn.unix=function(){return Math.floor(this.valueOf()/1e3)},dn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},dn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},dn.year=we,dn.isLeapYear=function(){return Le(this.year())},dn.weekYear=function(e){return rn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},dn.isoWeekYear=function(e){return rn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},dn.quarter=dn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},dn.month=Fe,dn.daysInMonth=function(){return Ne(this.year(),this.month())},dn.week=dn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},dn.isoWeek=dn.isoWeeks=function(e){var t=Ie(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},dn.weeksInYear=function(){var e=this.localeData()._week;return Ue(this.year(),e.dow,e.doy)},dn.isoWeeksInYear=function(){return Ue(this.year(),1,4)},dn.date=an,dn.day=dn.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},dn.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")},dn.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},dn.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")},dn.hour=dn.hours=rt,dn.minute=dn.minutes=cn,dn.second=dn.seconds=bn,dn.millisecond=dn.milliseconds=sn,dn.utcOffset=function(e,t,n){var o,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Ct(ce,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(o=Pt(this)),this._offset=e,this._isUTC=!0,null!=o&&this.add(o,"m"),a!==e&&(!t||this._changeInProgress?Jt(this,Ut(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:Pt(this)},dn.utc=function(e){return this.utcOffset(0,e)},dn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Pt(this),"m")),this},dn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Ct(ie,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},dn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Bt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},dn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},dn.isLocal=function(){return!!this.isValid()&&!this._isUTC},dn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},dn.isUtc=jt,dn.isUTC=jt,dn.zoneAbbr=function(){return this._isUTC?"UTC":""},dn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},dn.dates=v("dates accessor is deprecated. Use date instead.",an),dn.months=v("months accessor is deprecated. Use month instead",Fe),dn.years=v("years accessor is deprecated. Use year instead",we),dn.zone=v("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()}),dn.isDSTShifted=v("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(A(e,this),(e=Rt(e))._a){var t=e._isUTC?z(e._a):Bt(e._a);this._isDSTShifted=this.isValid()&&y(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var un=X.prototype;function ln(e,t,n,o){var r=dt(),a=z().set(o,t);return r[n](a,e)}function On(e,t,n){if(p(e)&&(t=e,e=void 0),e=e||"",null!=t)return ln(e,t,n,"month");var o,r=[];for(o=0;o<12;o++)r[o]=ln(e,o,n,"month");return r}function fn(e,t,n,o){"boolean"==typeof e?(p(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,p(t)&&(n=t,t=void 0),t=t||"");var r,a=dt(),i=e?a._week.dow:0;if(null!=n)return ln(t,(n+i)%7,o,"day");var c=[];for(r=0;r<7;r++)c[r]=ln(t,(r+i)%7,o,"day");return c}un.calendar=function(e,t,n){var o=this._calendar[e]||this._calendar.sameElse;return B(o)?o.call(t,n):o},un.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},un.invalidDate=function(){return this._invalidDate},un.ordinal=function(e){return this._ordinal.replace("%d",e)},un.preparse=zn,un.postformat=zn,un.relativeTime=function(e,t,n,o){var r=this._relativeTime[n];return B(r)?r(e,t,n,o):r.replace(/%d/i,e)},un.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return B(n)?n(t):n.replace(/%s/i,t)},un.set=function(e){var t,n;for(n in e)B(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},un.months=function(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Te).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone},un.monthsShort=function(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Te.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},un.monthsParse=function(e,t,n){var o,r,a;if(this._monthsParseExact)return function(e,t,n){var o,r,a,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],o=0;o<12;++o)a=z([2e3,o]),this._shortMonthsParse[o]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[o]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(r=Re.call(this._shortMonthsParse,i))?r:null:-1!==(r=Re.call(this._longMonthsParse,i))?r:null:"MMM"===t?-1!==(r=Re.call(this._shortMonthsParse,i))?r:-1!==(r=Re.call(this._longMonthsParse,i))?r:null:-1!==(r=Re.call(this._longMonthsParse,i))?r:-1!==(r=Re.call(this._shortMonthsParse,i))?r:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),o=0;o<12;o++){if(r=z([2e3,o]),n&&!this._longMonthsParse[o]&&(this._longMonthsParse[o]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[o]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[o]||(a="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[o]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[o].test(e))return o;if(n&&"MMM"===t&&this._shortMonthsParse[o].test(e))return o;if(!n&&this._monthsParse[o].test(e))return o}},un.monthsRegex=function(e){return this._monthsParseExact?(s(this,"_monthsRegex")||He.call(this),e?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=Ce),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},un.monthsShortRegex=function(e){return this._monthsParseExact?(s(this,"_monthsRegex")||He.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=xe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},un.week=function(e){return Ie(e,this._week.dow,this._week.doy).week},un.firstDayOfYear=function(){return this._week.doy},un.firstDayOfWeek=function(){return this._week.dow},un.weekdays=function(e,t){return e?a(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:a(this._weekdays)?this._weekdays:this._weekdays.standalone},un.weekdaysMin=function(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin},un.weekdaysShort=function(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort},un.weekdaysParse=function(e,t,n){var o,r,a;if(this._weekdaysParseExact)return function(e,t,n){var o,r,a,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],o=0;o<7;++o)a=z([2e3,1]).day(o),this._minWeekdaysParse[o]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[o]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[o]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(r=Re.call(this._weekdaysParse,i))?r:null:"ddd"===t?-1!==(r=Re.call(this._shortWeekdaysParse,i))?r:null:-1!==(r=Re.call(this._minWeekdaysParse,i))?r:null:"dddd"===t?-1!==(r=Re.call(this._weekdaysParse,i))?r:-1!==(r=Re.call(this._shortWeekdaysParse,i))?r:-1!==(r=Re.call(this._minWeekdaysParse,i))?r:null:"ddd"===t?-1!==(r=Re.call(this._shortWeekdaysParse,i))?r:-1!==(r=Re.call(this._weekdaysParse,i))?r:-1!==(r=Re.call(this._minWeekdaysParse,i))?r:null:-1!==(r=Re.call(this._minWeekdaysParse,i))?r:-1!==(r=Re.call(this._weekdaysParse,i))?r:-1!==(r=Re.call(this._shortWeekdaysParse,i))?r:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;o<7;o++){if(r=z([2e3,1]).day(o),n&&!this._fullWeekdaysParse[o]&&(this._fullWeekdaysParse[o]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[o]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[o]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[o]||(a="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[o]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[o].test(e))return o;if(n&&"ddd"===t&&this._shortWeekdaysParse[o].test(e))return o;if(n&&"dd"===t&&this._minWeekdaysParse[o].test(e))return o;if(!n&&this._weekdaysParse[o].test(e))return o}},un.weekdaysRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Ze.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=Je),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},un.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Ze.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=$e),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},un.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Ze.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Qe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},un.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},un.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},Mt("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===_(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),r.lang=v("moment.lang is deprecated. Use moment.locale instead.",Mt),r.langData=v("moment.langData is deprecated. Use moment.localeData instead.",dt);var An=Math.abs;function hn(e,t,n,o){var r=Ut(t,n);return e._milliseconds+=o*r._milliseconds,e._days+=o*r._days,e._months+=o*r._months,e._bubble()}function qn(e){return e<0?Math.floor(e):Math.ceil(e)}function mn(e){return 4800*e/146097}function Wn(e){return 146097*e/4800}function _n(e){return function(){return this.as(e)}}var yn=_n("ms"),gn=_n("s"),vn=_n("m"),Ln=_n("h"),Rn=_n("d"),wn=_n("w"),Bn=_n("M"),kn=_n("y");function Xn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Nn=Xn("milliseconds"),Tn=Xn("seconds"),Sn=Xn("minutes"),En=Xn("hours"),Dn=Xn("days"),Fn=Xn("months"),xn=Xn("years"),Cn=Math.round,Hn={ss:44,s:45,m:45,h:22,d:26,M:11},Pn=Math.abs;function jn(e){return(e>0)-(e<0)||+e}function Yn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=Pn(this._milliseconds)/1e3,o=Pn(this._days),r=Pn(this._months);e=W(n/60),t=W(e/60),n%=60,e%=60;var a=W(r/12),i=r%=12,c=o,p=t,b=e,M=n?n.toFixed(3).replace(/\.?0+$/,""):"",s=this.asSeconds();if(!s)return"P0D";var d=s<0?"-":"",z=jn(this._months)!==jn(s)?"-":"",u=jn(this._days)!==jn(s)?"-":"",l=jn(this._milliseconds)!==jn(s)?"-":"";return d+"P"+(a?z+a+"Y":"")+(i?z+i+"M":"")+(c?u+c+"D":"")+(p||b||M?"T":"")+(p?l+p+"H":"")+(b?l+b+"M":"")+(M?l+M+"S":"")}var In=St.prototype;return In.isValid=function(){return this._isValid},In.abs=function(){var e=this._data;return this._milliseconds=An(this._milliseconds),this._days=An(this._days),this._months=An(this._months),e.milliseconds=An(e.milliseconds),e.seconds=An(e.seconds),e.minutes=An(e.minutes),e.hours=An(e.hours),e.months=An(e.months),e.years=An(e.years),this},In.add=function(e,t){return hn(this,e,t,1)},In.subtract=function(e,t){return hn(this,e,t,-1)},In.as=function(e){if(!this.isValid())return NaN;var t,n,o=this._milliseconds;if("month"===(e=S(e))||"year"===e)return t=this._days+o/864e5,n=this._months+mn(t),"month"===e?n:n/12;switch(t=this._days+Math.round(Wn(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)}},In.asMilliseconds=yn,In.asSeconds=gn,In.asMinutes=vn,In.asHours=Ln,In.asDays=Rn,In.asWeeks=wn,In.asMonths=Bn,In.asYears=kn,In.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*_(this._months/12):NaN},In._bubble=function(){var e,t,n,o,r,a=this._milliseconds,i=this._days,c=this._months,p=this._data;return a>=0&&i>=0&&c>=0||a<=0&&i<=0&&c<=0||(a+=864e5*qn(Wn(c)+i),i=0,c=0),p.milliseconds=a%1e3,e=W(a/1e3),p.seconds=e%60,t=W(e/60),p.minutes=t%60,n=W(t/60),p.hours=n%24,i+=W(n/24),r=W(mn(i)),c+=r,i-=qn(Wn(r)),o=W(c/12),c%=12,p.days=i,p.months=c,p.years=o,this},In.clone=function(){return Ut(this)},In.get=function(e){return e=S(e),this.isValid()?this[e+"s"]():NaN},In.milliseconds=Nn,In.seconds=Tn,In.minutes=Sn,In.hours=En,In.days=Dn,In.weeks=function(){return W(this.days()/7)},In.months=Fn,In.years=xn,In.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var o=Ut(e).abs(),r=Cn(o.as("s")),a=Cn(o.as("m")),i=Cn(o.as("h")),c=Cn(o.as("d")),p=Cn(o.as("M")),b=Cn(o.as("y")),M=r<=Hn.ss&&["s",r]||r<Hn.s&&["ss",r]||a<=1&&["m"]||a<Hn.m&&["mm",a]||i<=1&&["h"]||i<Hn.h&&["hh",i]||c<=1&&["d"]||c<Hn.d&&["dd",c]||p<=1&&["M"]||p<Hn.M&&["MM",p]||b<=1&&["y"]||["yy",b];return M[2]=t,M[3]=+e>0,M[4]=n,function(e,t,n,o,r){return r.relativeTime(t||1,!!n,e,o)}.apply(null,M)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},In.toISOString=Yn,In.toString=Yn,In.toJSON=Yn,In.locale=en,In.localeData=nn,In.toIsoString=v("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Yn),In.lang=tn,Y("X",0,0,"unix"),Y("x",0,0,"valueOf"),Me("x",ae),Me("X",/[+-]?\d+(\.\d{1,3})?/),ue("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),ue("x",function(e,t,n){n._d=new Date(_(e))}),r.version="2.22.2",t=Bt,r.fn=dn,r.min=function(){return Nt("isBefore",[].slice.call(arguments,0))},r.max=function(){return Nt("isAfter",[].slice.call(arguments,0))},r.now=function(){return Date.now?Date.now():+new Date},r.utc=z,r.unix=function(e){return Bt(1e3*e)},r.months=function(e,t){return On(e,t,"months")},r.isDate=b,r.locale=Mt,r.invalid=O,r.duration=Ut,r.isMoment=m,r.weekdays=function(e,t,n){return fn(e,t,n,"weekdays")},r.parseZone=function(){return Bt.apply(null,arguments).parseZone()},r.localeData=dt,r.isDuration=Et,r.monthsShort=function(e,t){return On(e,t,"monthsShort")},r.weekdaysMin=function(e,t,n){return fn(e,t,n,"weekdaysMin")},r.defineLocale=st,r.updateLocale=function(e,t){if(null!=t){var n,o,r=at;null!=(o=bt(e))&&(r=o._config),t=k(r,t),(n=new X(t)).parentLocale=it[e],it[e]=n,Mt(e)}else null!=it[e]&&(null!=it[e].parentLocale?it[e]=it[e].parentLocale:null!=it[e]&&delete it[e]);return it[e]},r.locales=function(){return L(it)},r.weekdaysShort=function(e,t,n){return fn(e,t,n,"weekdaysShort")},r.normalizeUnits=S,r.relativeTimeRounding=function(e){return void 0===e?Cn:"function"==typeof e&&(Cn=e,!0)},r.relativeTimeThreshold=function(e,t){return void 0!==Hn[e]&&(void 0===t?Hn[e]:(Hn[e]=t,"s"===e&&(Hn.ss=t-1),!0))},r.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},r.prototype=dn,r.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"},r}()}).call(this,n(241)(e))},function(e,t,n){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 n={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var a=typeof o;if("string"===a||"number"===a)e.push(o);else if(Array.isArray(o)&&o.length){var i=r.apply(null,o);i&&e.push(i)}else if("object"===a)for(var c in o)n.call(o,c)&&o[c]&&e.push(c)}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(o=function(){return r}.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 n(e,t){for(var n=0;n<t.length;n++){var o=t[n];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&&n(e.prototype,t),o&&n(e,o),e}},function(e,t,n){var o=n(384),r=n(5);e.exports=function(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?r(e):t}},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t,n){var o=n(385);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,n){var o=n(273);e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){o(e,t,n[t])})}return e}},function(e,t,n){var o=n(389),r=n(390),a=n(391);e.exports=function(e){return o(e)||r(e)||a()}},,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r=function(){function e(e,t){for(var n,o=0;o<t.length;o++)(n=t[o]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=n(19),i=p(a),c=p(n(1));function p(e){return e&&e.__esModule?e:{default:e}}var b=function(e,t){return 0<=t.indexOf(e)},M=function(e){return 0==e%18},s=["gridicons-add-outline","gridicons-add","gridicons-align-image-center","gridicons-align-image-left","gridicons-align-image-none","gridicons-align-image-right","gridicons-attachment","gridicons-bold","gridicons-bookmark-outline","gridicons-bookmark","gridicons-calendar","gridicons-cart","gridicons-create","gridicons-custom-post-type","gridicons-external","gridicons-folder","gridicons-heading","gridicons-help-outline","gridicons-help","gridicons-history","gridicons-info-outline","gridicons-info","gridicons-italic","gridicons-layout-blocks","gridicons-link-break","gridicons-link","gridicons-list-checkmark","gridicons-list-ordered","gridicons-list-unordered","gridicons-menus","gridicons-minus","gridicons-my-sites","gridicons-notice-outline","gridicons-notice","gridicons-plus-small","gridicons-plus","gridicons-popout","gridicons-posts","gridicons-scheduled","gridicons-share-ios","gridicons-star-outline","gridicons-star","gridicons-stats","gridicons-status","gridicons-thumbs-up","gridicons-textcolor","gridicons-time","gridicons-trophy","gridicons-user-circle","gridicons-reader-follow","gridicons-reader-following"],d=["gridicons-arrow-down","gridicons-arrow-up","gridicons-comment","gridicons-clear-formatting","gridicons-flag","gridicons-menu","gridicons-reader","gridicons-strikethrough"],z=["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"],u=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,a.PureComponent),r(t,[{key:"render",value:function(){var e=this.props,t=e.size,n=e.onClick,r=e.icon,a=e.className,c=function(e,t){var n={};for(var o in e)0<=t.indexOf(o)||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(e,["size","onClick","icon","className"]),p="gridicons-"+r,u=void 0,l=["gridicon",p,a,!!(b(p,s)&&M(t))&&"needs-offset",!!(b(p,d)&&M(t))&&"needs-offset-x",!!(b(p,z)&&M(t))&&"needs-offset-y"].filter(Boolean).join(" ");switch(p){default:u=i.default.createElement("svg",o({height:t,width:t},c));break;case"gridicons-add-image":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.createElement("path",{d:"M4 19h16v-2H4v2zm13-6H7v2h10v-2zM4 9v2h16V9H4zm13-4H7v2h10V5z"})));break;case"gridicons-align-image-center":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.createElement("path",{d:"M3 5h18v2H3V5zm0 14h18v-2H3v2zm5-4h8V9H8v6z"})));break;case"gridicons-align-image-left":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.createElement("path",{d:"M3 5h18v2H3V5zm0 14h18v-2H3v2zm0-4h8V9H3v6zm10 0h8v-2h-8v2zm0-4h8V9h-8v2z"})));break;case"gridicons-align-image-none":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.createElement("path",{d:"M21 7H3V5h18v2zm0 10H3v2h18v-2zM11 9H3v6h8V9z"})));break;case"gridicons-align-image-right":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.createElement("path",{d:"M21 7H3V5h18v2zm0 10H3v2h18v-2zm0-8h-8v6h8V9zm-10 4H3v2h8v-2zm0-4H3v2h8V9z"})));break;case"gridicons-align-justify":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.createElement("path",{d:"M4 19h16v-2H4v2zm16-6H4v2h16v-2zM4 9v2h16V9H4zm16-4H4v2h16V5z"})));break;case"gridicons-align-left":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.createElement("path",{d:"M4 19h16v-2H4v2zm10-6H4v2h10v-2zM4 9v2h16V9H4zm10-4H4v2h10V5z"})));break;case"gridicons-align-right":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.createElement("path",{d:"M20 17H4v2h16v-2zm-10-2h10v-2H10v2zM4 9v2h16V9H4zm6-2h10V5H10v2z"})));break;case"gridicons-arrow-down":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.createElement("path",{d:"M20 9l-8 8-8-8 1.414-1.414L12 14.172l6.586-6.586"})));break;case"gridicons-chevron-left":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.createElement("path",{d:"M14 20l-8-8 8-8 1.414 1.414L8.828 12l6.586 6.586"})));break;case"gridicons-chevron-right":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.createElement("path",{d:"M10 20l8-8-8-8-1.414 1.414L15.172 12l-6.586 6.586"})));break;case"gridicons-chevron-up":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.createElement("path",{d:"M4 15l8-8 8 8-1.414 1.414L12 9.828l-6.586 6.586"})));break;case"gridicons-clear-formatting":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}),i.default.createElement("g",null,i.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"}),i.default.createElement("path",{d:"M21 7h-4V3h-2v4h-4v2h4v4h2V9h4"})));break;case"gridicons-credit-card":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.createElement("path",{d:"M7 10l5 5 5-5"})));break;case"gridicons-ellipsis-circle":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}),i.default.createElement("g",null,i.default.createElement("path",{d:"M10 19h4v-2h-4v2zm-4-6h12v-2H6v2zM3 5v2h18V5H3z"})));break;case"gridicons-flag":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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":u=i.default.createElement("svg",o({className:l,height:t,width:t,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.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.
|