Version Description
- New: Add generateblocks.editor.cssAttrs filter
- New: Add generateblocks_headline_selector_tagname filter
- New: Add generateblocks.editor.panelContents filter
- New: Add Add generateblocks.frontend.containerTagName filter
- New: Add generateblocks.editor.headlineDisableFormatting filter
- New: Add generateblocks.editor.beforeHeadlineElement filter
- New: Add generateblocks.editor.urlInputMoreOptions filter
- New: Admin header
- Fix: Fix gradient when no stop value is found
- Fix: Translations in the editor
- Fix: Force inner container z-index when pseudo in use
- Fix: Headline text input when has icon but no text
- Tweak: Merge bg image and gradient controls into one tab
- Tweak: Prepare for Global Styles in Pro
- Tweak: Remove duplicate .gb-container class from CSS
- Tweak: Add script translations file for settings JS
- Tweak: Hide color picker label element if no label
- Tweak: Update domPurify
- Tweak: Import WP packages instead of defining them
- Tweak: Add border-radius to pseudo background image elements
- Tweak: Change Element Tag label to Tag Name
- Tweak: Add placeholder to Headline block
- Tweak: Remove add grid item button from toolbar when selecting layout
Download this release
Release Info
Developer | edge22 |
Plugin | GenerateBlocks |
Version | 1.3.0 |
Comparing to | |
See all releases |
Code changes from version 1.2.0 to 1.3.0
- assets/css/dashboard.css +3 -19
- assets/images/add-blocks.png +0 -0
- assets/images/gb-logo-black.svg +0 -73
- dist/blocks.asset.php +1 -1
- dist/blocks.css +2 -2
- dist/blocks.js +14 -14
- dist/dashboard.asset.php +1 -1
- dist/dashboard.css +1 -1
- dist/dashboard.js +1 -1
- includes/class-settings.php +4 -2
- includes/dashboard.php +37 -26
- includes/generate-css.php +45 -24
- plugin.php +2 -2
- readme.txt +27 -2
- src/blocks/button-container/block.js +9 -4
- src/blocks/button-container/css/desktop.js +7 -2
- src/blocks/button-container/css/main.js +8 -5
- src/blocks/button-container/css/mobile.js +8 -5
- src/blocks/button-container/css/tablet-only.js +7 -2
- src/blocks/button-container/css/tablet.js +8 -5
- src/blocks/button-container/deprecated.js +4 -4
- src/blocks/button-container/edit.js +18 -15
- src/blocks/button/block.js +7 -2
- src/blocks/button/css/desktop.js +7 -2
- src/blocks/button/css/main.js +8 -5
- src/blocks/button/css/mobile.js +8 -5
- src/blocks/button/css/tablet-only.js +7 -2
- src/blocks/button/css/tablet.js +8 -5
- src/blocks/button/deprecated.js +4 -4
- src/blocks/button/edit.js +16 -16
- src/blocks/button/save.js +4 -4
- src/blocks/container/block-controls.js +14 -14
- src/blocks/container/block.js +6 -6
- src/blocks/container/css/desktop.js +9 -3
- src/blocks/container/css/main.js +14 -7
- src/blocks/container/css/mobile.js +9 -3
- src/blocks/container/css/tablet-only.js +9 -3
- src/blocks/container/css/tablet.js +9 -3
- src/blocks/container/deprecated.js +5 -5
- src/blocks/container/edit.js +224 -238
- src/blocks/container/editor.scss +9 -0
- src/blocks/grid/block.js +9 -4
- src/blocks/grid/css/desktop.js +7 -2
- src/blocks/grid/css/main.js +8 -5
- src/blocks/grid/css/mobile.js +8 -5
- src/blocks/grid/css/tablet-only.js +7 -2
- src/blocks/grid/css/tablet.js +8 -5
- src/blocks/grid/deprecated.js +4 -4
- src/blocks/grid/edit.js +42 -40
- src/blocks/headline/block.js +7 -2
- src/blocks/headline/css/desktop.js +7 -2
- src/blocks/headline/css/main.js +9 -3
- src/blocks/headline/css/mobile.js +9 -3
- src/blocks/headline/css/tablet-only.js +7 -2
- src/blocks/headline/css/tablet.js +9 -3
- src/blocks/headline/deprecated.js +4 -4
- src/blocks/headline/edit.js +21 -15
- src/blocks/headline/editor.scss +1 -1
- src/blocks/headline/element-icons.js +2 -2
- src/blocks/headline/markformat.js +12 -15
- src/blocks/headline/save.js +4 -4
- src/blocks/headline/transforms.js +2 -2
- src/components/apply-filters/index.js +5 -3
- src/components/color-picker/index.js +15 -9
- src/components/dimensions/index.js +12 -10
- src/components/element/index.js +3 -1
- src/components/gradient/index.js +20 -10
- src/components/icon-picker/index.js +8 -8
- src/components/icon-picker/svgs-general.js +3 -1
- src/components/icon-picker/svgs-social.js +3 -1
- src/components/panel-area/index.js +12 -8
- src/components/responsive-tabs/index.js +8 -8
- src/components/typography/index.js +6 -6
- src/components/unit-picker/index.js +6 -6
- src/components/url-input/index.js +14 -8
- src/dashboard.js +9 -11
- src/dashboard.scss +22 -11
- src/utils/get-background-image/index.js +2 -2
assets/css/dashboard.css
CHANGED
@@ -1,20 +1,3 @@
|
|
1 |
-
h1.gblocks-logo {
|
2 |
-
display: flex;
|
3 |
-
align-items: center;
|
4 |
-
justify-content: center;
|
5 |
-
}
|
6 |
-
|
7 |
-
.gblocks-version {
|
8 |
-
font-size: 10px;
|
9 |
-
padding: 2px 5px;
|
10 |
-
background: rgba(0,0,0,0.1);
|
11 |
-
display: block;
|
12 |
-
margin-left: 5px;
|
13 |
-
margin-bottom: 2px;
|
14 |
-
font-weight: normal;
|
15 |
-
border-radius: 2px;
|
16 |
-
}
|
17 |
-
|
18 |
.gblocks-sub-navigation {
|
19 |
display: flex;
|
20 |
justify-content: center;
|
@@ -27,10 +10,11 @@ h1.gblocks-logo {
|
|
27 |
|
28 |
.gblocks-dashboard-intro-content {
|
29 |
padding: 60px;
|
30 |
-
font-size:
|
31 |
line-height: 1.8;
|
32 |
text-align: center;
|
33 |
margin: 0 auto;
|
|
|
34 |
}
|
35 |
|
36 |
.gblocks-dashboard-intro-image {
|
@@ -77,7 +61,7 @@ h1.gblocks-logo {
|
|
77 |
|
78 |
.gblocks-block p {
|
79 |
font-size: 15px;
|
80 |
-
|
81 |
}
|
82 |
|
83 |
.gblocks-button {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
.gblocks-sub-navigation {
|
2 |
display: flex;
|
3 |
justify-content: center;
|
10 |
|
11 |
.gblocks-dashboard-intro-content {
|
12 |
padding: 60px;
|
13 |
+
font-size: 30px;
|
14 |
line-height: 1.8;
|
15 |
text-align: center;
|
16 |
margin: 0 auto;
|
17 |
+
max-width: 700px;
|
18 |
}
|
19 |
|
20 |
.gblocks-dashboard-intro-image {
|
61 |
|
62 |
.gblocks-block p {
|
63 |
font-size: 15px;
|
64 |
+
margin: 0 0 1em;
|
65 |
}
|
66 |
|
67 |
.gblocks-button {
|
assets/images/add-blocks.png
DELETED
Binary file
|
assets/images/gb-logo-black.svg
DELETED
@@ -1,73 +0,0 @@
|
|
1 |
-
<?xml version="1.0" encoding="utf-8"?>
|
2 |
-
<!-- Generator: Adobe Illustrator 24.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
3 |
-
<svg version="1.1" id="Layer_10" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
4 |
-
viewBox="0 0 300 83.093" style="enable-background:new 0 0 300 83.093;" xml:space="preserve">
|
5 |
-
<style type="text/css">
|
6 |
-
.st0{fill:#111111;}
|
7 |
-
</style>
|
8 |
-
<g>
|
9 |
-
<path class="st0" d="M100.756,41.161v8.645c-1.027,0.938-3.567,2.63-8.132,2.63c-6.771,0-11.427-4.807-11.427-10.913
|
10 |
-
c0-6.076,4.656-10.883,11.548-10.883c4.414,0,6.651,1.572,7.437,2.086l-2.207,4.021c-0.514-0.302-2.267-1.33-5.079-1.33
|
11 |
-
c-3.809,0-6.438,2.357-6.438,6.107c0,3.779,2.871,6.378,6.469,6.378c1.21,0,2.267-0.212,3.144-0.664v-6.076H100.756z"/>
|
12 |
-
<path class="st0" d="M117.604,46.139h-10.224c0.545,1.186,1.859,2.083,3.718,2.083c2.147,0,3.173-1.058,3.685-1.442l2.019,3.621
|
13 |
-
c-0.769,0.737-2.692,2.051-6.282,2.051c-4.712,0-8.237-3.365-8.237-7.66s3.269-7.661,7.821-7.661c4.647,0,7.564,3.398,7.564,7.821
|
14 |
-
C117.668,45.498,117.604,46.139,117.604,46.139z M107.347,43.094h5.512c-0.224-1.186-1.25-2.019-2.564-2.019
|
15 |
-
C108.853,41.075,107.796,41.684,107.347,43.094z"/>
|
16 |
-
<path class="st0" d="M134.715,44.023v8.141h-5.064v-7.403c0-1.859-1.09-3.077-2.661-3.077c-1.666,0-2.82,1.186-2.82,3.077v7.403
|
17 |
-
h-5.064V37.421h3.525l0.192,2.371c0.898-1.507,2.693-2.661,5.385-2.661C132.215,37.132,134.715,39.793,134.715,44.023z"/>
|
18 |
-
<path class="st0" d="M151.418,46.139h-10.224c0.545,1.186,1.859,2.083,3.718,2.083c2.147,0,3.173-1.058,3.685-1.442l2.019,3.621
|
19 |
-
c-0.769,0.737-2.692,2.051-6.282,2.051c-4.712,0-8.237-3.365-8.237-7.66s3.269-7.661,7.821-7.661c4.647,0,7.564,3.398,7.564,7.821
|
20 |
-
C151.482,45.498,151.418,46.139,151.418,46.139z M141.162,43.094h5.512c-0.224-1.186-1.25-2.019-2.564-2.019
|
21 |
-
C142.668,41.075,141.61,41.684,141.162,43.094z"/>
|
22 |
-
<path class="st0" d="M163.475,37.26l-0.416,5.032c-0.449-0.192-0.801-0.32-1.539-0.32c-1.987,0-3.429,1.09-3.429,3.141v7.051
|
23 |
-
h-5.064V37.421h4.167l0.192,2.692c0.48-1.73,2.371-2.981,4.744-2.981C162.609,37.132,163.058,37.164,163.475,37.26z"/>
|
24 |
-
<path class="st0" d="M179.885,37.421v14.743h-4.488l-0.192-1.731c-1.058,1.154-2.5,2.019-4.423,2.019
|
25 |
-
c-4.102,0-7.051-3.301-7.051-7.66s3.109-7.661,7.211-7.661c1.635,0,2.981,0.545,4.038,1.347l0.192-1.058H179.885z M175.045,44.793
|
26 |
-
c-0.032-1.795-1.186-3.077-3.109-3.077c-1.827,0-3.109,1.314-3.109,3.077c0,1.73,1.282,3.077,3.109,3.077
|
27 |
-
C173.859,47.87,175.077,46.523,175.045,44.793z"/>
|
28 |
-
<path class="st0" d="M184.317,46.427v-4.743h-2.98v-4.263h3.141v-5.064h4.903v5.064h5.16v4.263h-5.16v4.134
|
29 |
-
c0,1.538,1.058,2.051,2.276,2.051c1.09,0,1.826-0.449,2.211-0.673l1.73,3.75c-0.64,0.448-2.179,1.506-5.16,1.506
|
30 |
-
C186.562,52.452,184.317,50.305,184.317,46.427z"/>
|
31 |
-
<path class="st0" d="M210.774,46.139H200.55c0.545,1.186,1.859,2.083,3.718,2.083c2.147,0,3.173-1.058,3.685-1.442l2.019,3.621
|
32 |
-
c-0.769,0.737-2.692,2.051-6.282,2.051c-4.712,0-8.237-3.365-8.237-7.66s3.269-7.661,7.821-7.661c4.647,0,7.564,3.398,7.564,7.821
|
33 |
-
C210.838,45.498,210.774,46.139,210.774,46.139z M200.518,43.094h5.512c-0.224-1.186-1.25-2.019-2.564-2.019
|
34 |
-
C202.024,41.075,200.966,41.684,200.518,43.094z"/>
|
35 |
-
<g>
|
36 |
-
<path class="st0" d="M229.763,46.058c0,3.779-2.449,6.107-8.344,6.107h-8.827V30.913h8.434c5.653,0,7.951,2.388,7.951,5.441
|
37 |
-
c0,2.298-1.269,3.93-3.144,4.595C228.403,41.583,229.763,43.609,229.763,46.058z M220.966,35.085h-3.416v4.414h3.416
|
38 |
-
c2.237,0,3.144-0.786,3.144-2.207C224.11,35.931,223.203,35.085,220.966,35.085z M224.805,45.755c0-1.511-1.088-2.327-3.476-2.327
|
39 |
-
h-3.779v4.564h3.9C223.808,47.992,224.805,47.116,224.805,45.755z"/>
|
40 |
-
<path class="st0" d="M231.47,30.913h5.064v21.252h-5.064V30.913z"/>
|
41 |
-
<path class="st0" d="M238.108,44.793c0-4.359,3.59-7.661,8.109-7.661c4.487,0,8.077,3.302,8.077,7.661s-3.59,7.66-8.077,7.66
|
42 |
-
C241.698,52.452,238.108,49.151,238.108,44.793z M249.198,44.793c0-1.667-1.218-3.077-2.981-3.077
|
43 |
-
c-1.795,0-3.013,1.41-3.013,3.077c0,1.666,1.218,3.077,3.013,3.077C247.98,47.87,249.198,46.459,249.198,44.793z"/>
|
44 |
-
<path class="st0" d="M255.448,44.793c0-4.295,3.493-7.661,8.173-7.661c3.141,0,4.84,1.154,5.608,1.667l-1.986,3.878
|
45 |
-
c-0.545-0.385-1.507-0.962-3.013-0.962c-2.18,0-3.59,1.282-3.59,3.077s1.41,3.077,3.59,3.077c1.506,0,2.468-0.577,3.013-0.962
|
46 |
-
l1.954,3.782c-0.769,0.512-2.435,1.762-5.576,1.762C258.942,52.452,255.448,49.087,255.448,44.793z"/>
|
47 |
-
<path class="st0" d="M280.43,52.164l-4.743-5.608v5.608h-5.064V30.913h5.064V43.03l4.455-5.608h6.25l-6.154,6.986l6.667,7.757
|
48 |
-
H280.43z"/>
|
49 |
-
<path class="st0" d="M286.411,50.529l2.019-3.685c1.09,0.801,3.045,1.634,5.032,1.634c0.801,0,1.186-0.224,1.186-0.705
|
50 |
-
c0-0.545-0.705-0.737-2.275-1.09c-2.179-0.481-5.321-1.539-5.321-4.68c0-2.981,2.564-4.872,6.475-4.872
|
51 |
-
c2.596,0,5.096,0.769,6.474,1.731l-1.955,3.686c-1.218-0.801-2.981-1.443-4.551-1.443c-0.833,0-1.218,0.224-1.218,0.705
|
52 |
-
c0,0.512,0.704,0.673,2.66,1.09c1.795,0.384,4.936,1.154,4.936,4.551c0,2.917-2.275,5-7.019,5
|
53 |
-
C290.257,52.452,287.853,51.587,286.411,50.529z"/>
|
54 |
-
</g>
|
55 |
-
</g>
|
56 |
-
<g>
|
57 |
-
<path class="st0" d="M9.241,43.703v-8.78v-8.78c0-0.022,0.007-0.043,0.019-0.06s0.03-0.031,0.05-0.038l8.984-3.197l8.984-3.197
|
58 |
-
l13.383-4.762l13.383-4.762c0.021-0.007,0.038-0.021,0.05-0.038c0.012-0.017,0.019-0.038,0.019-0.06V5.068V0.104
|
59 |
-
c0-0.036-0.018-0.067-0.044-0.085c-0.026-0.019-0.061-0.025-0.095-0.013L36.007,6.399l-17.969,6.393l-8.984,3.197l-8.984,3.197
|
60 |
-
c-0.021,0.007-0.038,0.021-0.05,0.038S0,19.262,0,19.284v8.78v8.78v8.817v8.817v8.743v8.743c0,0.036,0.018,0.067,0.044,0.085
|
61 |
-
c0.026,0.019,0.061,0.025,0.095,0.013l4.516-1.607l4.516-1.607c0.021-0.007,0.038-0.021,0.05-0.038s0.019-0.038,0.019-0.06v-3.706
|
62 |
-
v-3.706V52.52V43.703z"/>
|
63 |
-
<path class="st0" d="M33.102,41.428l17.969-6.393l17.969-6.393c0.021-0.007,0.038-0.021,0.05-0.038
|
64 |
-
c0.012-0.017,0.019-0.038,0.019-0.06v-8.706v-8.706c0-0.036-0.018-0.067-0.044-0.085c-0.026-0.019-0.061-0.025-0.095-0.013
|
65 |
-
l-17.969,6.393l-17.969,6.393l-8.984,3.197l-8.984,3.197c-0.021,0.007-0.038,0.021-0.05,0.038c-0.012,0.017-0.019,0.038-0.019,0.06
|
66 |
-
v8.78v8.78v8.817v8.817v8.743v8.743c0,0.036,0.018,0.067,0.044,0.085c0.026,0.019,0.061,0.025,0.095,0.013l8.949-3.184l8.949-3.184
|
67 |
-
l9.019-3.209l9.019-3.209l8.984-3.197l8.984-3.197c0.021-0.007,0.038-0.021,0.05-0.038c0.012-0.017,0.019-0.038,0.019-0.06v-8.78
|
68 |
-
v-8.78v-4.334v-4.334c0-0.036-0.018-0.067-0.044-0.085s-0.061-0.025-0.095-0.013l-8.915,3.172l-8.915,3.172
|
69 |
-
c-0.021,0.007-0.038,0.021-0.05,0.038s-0.019,0.038-0.019,0.06v4.335v4.335c0,0.022-0.007,0.043-0.019,0.06s-0.03,0.031-0.05,0.038
|
70 |
-
l-8.915,3.172l-8.915,3.172c-0.034,0.012-0.069,0.006-0.095-0.013c-0.026-0.019-0.044-0.049-0.044-0.085v-8.706v-8.706
|
71 |
-
c0-0.022,0.007-0.043,0.019-0.06S33.081,41.435,33.102,41.428z"/>
|
72 |
-
</g>
|
73 |
-
</svg>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dist/blocks.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('wp-element', 'wp-polyfill'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-richText'), 'version' => '1488a4e3bac7119b1f9f62f7464826b0');
|
dist/blocks.css
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
.components-gblocks-units-control-header__units{display:flex;justify-content:space-between;margin-bottom:5px;align-items:center}.components-gblocks-control__units .components-gblocks-control-buttons__units button.components-button{background:#fff;box-shadow:none !important;color:#929da7;font-size:10px;padding:0 5px;position:relative;text-align:center;text-shadow:none;border:0;border-radius:0 !important;line-height:20px;padding:0 5px;height:auto}.components-gblocks-control__units .components-gblocks-control-buttons__units button.components-button.is-primary{background:#fff !important;color:#000 !important;cursor:default;z-index:1;font-weight:bold}
|
6 |
|
7 |
-
body.gutenberg-editor-page [data-type="generateblocks/container"] .editor-block-list__block,[data-type="generateblocks/container"] .wp-block-heading h1,[data-type="generateblocks/container"] .wp-block-heading h1.editor-rich-text__tinymce,[data-type="generateblocks/container"] .wp-block-heading h2,[data-type="generateblocks/container"] .wp-block-heading h2.editor-rich-text__tinymce,[data-type="generateblocks/container"] .wp-block-heading h3,[data-type="generateblocks/container"] .wp-block-heading h3.editor-rich-text__tinymce,[data-type="generateblocks/container"] .wp-block-heading h4,[data-type="generateblocks/container"] .wp-block-heading h4.editor-rich-text__tinymce,[data-type="generateblocks/container"] .wp-block-heading h5,[data-type="generateblocks/container"] .wp-block-heading h5.editor-rich-text__tinymce,[data-type="generateblocks/container"] .wp-block-heading h6,[data-type="generateblocks/container"] .wp-block-heading h6.editor-rich-text__tinymce{color:inherit}.additional-class-notice .components-notice{margin:0 0 10px}.widthButtons button{font-size:12px;flex:1;box-shadow:inset 0 0 0 1px #007cba;justify-content:center}.widthButtons{margin-bottom:10px;display:flex}.gblocks-column-width-control input[type="number"]{width:65px}body .gb-container .wp-block{max-width:none}[data-type="generateblocks/container"]>.block-editor-block-list__block-edit>[data-block]{margin:0}.block-editor-block-inspector .components-base-control.gblocks-gpress-full-width{border-top:1px solid #ddd;padding-top:15px}.block-editor-block-inspector .components-base-control.gblocks-gpress-full-width .components-base-control__label{margin-bottom:15px}.gblocks-container-text-alignment .components-base-control__label{display:block}.edit-post-visual-editor .block-editor-block-list__block[data-type="generateblocks/container"]>.block-editor-block-list__block-edit{margin:0}.block-editor-block-list__layout .block-editor-block-list__block[data-type="generateblocks/container"]{padding:0;box-sizing:border-box}.gblocks-bg-image-wrapper{display:flex}.gblocks-bg-image-wrapper .components-base-control,.gblocks-bg-image-wrapper .components-base-control__field{margin:0}.gblocks-bg-image-wrapper>.components-base-control{flex-grow:1}.gblocks-bg-image-wrapper .components-button{line-height:inherit;height:100%}.components-gblocks-control__image-sizes{margin-bottom:24px}.components-gblocks-control__image-sizes button{margin:0 5px 5px 0}.wp-block[data-type="generateblocks/container"]{margin-top:0;margin-bottom:0}.gb-container .gb-shape{position:absolute;overflow:hidden;line-height:0;pointer-events:none}.gb-container .gb-shape svg{fill:currentColor}.gblocks-add-new-shape{margin-top:10px}.gblocks-shape-controls{width:100%}.gblocks-shape-controls>.components-base-control{margin-bottom:20px}.gblocks-shape-controls .gblocks-edit-shape{display:block;width:100%;text-align:left}.gblocks-shape-controls .gblocks-shape-chooser{margin:0}.gblocks-shape-controls .gblocks-shape-chooser li{margin:5px 0}.gblocks-shape-controls .gblocks-shape-chooser li button.components-button{width:100%;height:auto;background:#efefef}.gblocks-shape-controls .gblocks-shape-chooser li button.components-button svg{width:100%}.gblocks-shape-controls .gblocks-shape-chooser li button.components-button:hover{background:#efefef}.gblocks-shape-controls .gblocks-shape-chooser li button.components-button.gblocks-shape-is-active{box-shadow:0 0 0 3px #007cba}.gblocks-shape-divider-preview{padding:10px}.gblocks-shape-divider-preview svg{fill:currentColor}.gblocks-shape-toggle-preview{margin-right:10px}.gblocks-shape-toggle-preview svg{width:30px}.gblocks-shape-container{display:flex;align-items:center;margin-bottom:10px;border:1px solid #efefef;border-radius:3px}.gblocks-shape-container .components-dropdown{margin-left:auto}.gblocks-shape-container .components-button.gblocks-shape-dropdown,.gblocks-shape-container .components-button.gblocks-remove-shape{justify-content:center}.gblocks-shape-container .components-button.gblocks-shape-dropdown>svg,.gblocks-shape-container .components-button.gblocks-remove-shape>svg{margin-right:0}.gblocks-gpress-full-width .components-base-control__label{display:block}
|
8 |
|
9 |
.gblocks-component-color-picker-wrapper>.components-base-control__field{position:relative;display:flex;align-items:center;justify-content:space-between}.gblocks-component-color-picker-wrapper>.components-base-control__field .components-color-palette__item-wrapper{margin:0}.gblocks-component-color-picker>.components-base-control:first-child{margin-bottom:0}.gblocks-component-color-picker .components-color-picker__inputs-wrapper{min-width:auto}.gblocks-component-color-picker .gblocks-component-color-picker-palette{padding:16px;margin-top:10px}.gblocks-component-color-picker .gblocks-component-color-picker-palette .components-circular-option-picker{display:flex;flex-wrap:wrap}.gblocks-component-color-picker .gblocks-component-color-picker-palette .components-circular-option-picker .components-circular-option-picker__option-wrapper{margin:0 8px 8px 0}.gblocks-component-color-picker .components-base-control__field,.gblocks-component-color-picker .components-color-palette{margin:0}.gblocks-component-color-picker .components-color-picker{padding:5px}.gblocks-component-color-picker .components-color-picker__inputs-toggle{display:none}.gblocks-component-color-picker .components-color-picker__body{padding-bottom:0}.gblocks-component-color-picker .components-popover__content{padding:10px;width:300px}.gblocks-component-color-picker .components-color-picker__inputs-fields{margin-right:0}.gblocks-component-color-picker .components-color-clear-color{margin:0 16px}.gblocks-component-color-opacity{display:flex;padding:0 16px;margin:10px 0}.gblocks-component-color-opacity .components-range-control{flex-grow:1;padding-left:5px}.gblocks-color-picker-area{width:28px;height:28px}
|
10 |
|
@@ -22,7 +22,7 @@ body.gutenberg-editor-page [data-type="generateblocks/container"] .editor-block-
|
|
22 |
|
23 |
.gblocks-component-url-input{width:100%;margin-top:10px;font-family:-apple-system, "BlinkMacSystemFont", "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;font-size:13px;line-height:1.4;background:#fff;border:1px solid #e2e4e7;color:#000}.gblocks-component-url-input .gblocks-component-url-input-flex{display:flex;align-items:center}.gblocks-component-url-input .gblocks-component-url-input-flex .editor-url-input{width:auto}.gblocks-component-url-input .gblocks-component-url-input-flex .editor-url-input input[type="text"]{width:100%}.gblocks-component-url-input .gblocks-component-url-input-flex .editor-url-input input[type="text"]::-moz-placeholder{color:#222}.gblocks-component-url-input .gblocks-component-url-input-flex .editor-url-input input[type="text"]:-ms-input-placeholder{color:#222}.gblocks-component-url-input .gblocks-component-url-input-flex .editor-url-input input[type="text"]::placeholder{color:#222}.gblocks-component-url-input .gblocks-component-url-input-flex>.dashicon{width:20px;color:#222}.gblocks-component-url-input .gblocks-component-url-input-flex .components-base-control__field{margin-bottom:0}.gblocks-component-url-input .gblocks-component-url-input-more-options{padding:10px;border-top:1px solid #e2e4e7}.gblocks-component-url-input .gblocks-component-url-input-more-options .components-base-control{margin-bottom:5px}.gblocks-component-url-input .gblocks-component-url-input-more-options .components-base-control .components-base-control__field{margin-bottom:0}.gblocks-component-url-input .gblocks-component-url-input-more-options .components-base-control:last-child{margin-bottom:0}.gblocks-component-url-input-float{position:absolute;min-width:260px;max-width:260px;box-shadow:0 3px 30px rgba(25,30,35,0.1);z-index:150}.gblocks-component-url-input-float::after,.gblocks-component-url-input-float::before{content:" ";position:absolute;bottom:100%;left:20px;width:0;height:0;pointer-events:none;border:solid transparent}.gblocks-component-url-input-float::after{border:5px solid rgba(255,255,255,0);border-bottom-color:#fff}.gblocks-component-url-input-float::before{margin-left:-1px;border:6px solid rgba(226,228,231,0);border-bottom-color:#e2e4e7}.gblocks-component-url-input-float .editor-url-input__suggestions{max-width:188px}.block-editor-block-list__block .gblocks-component-url-input-flex input[type="text"]{max-width:100%;width:100%}
|
24 |
|
25 |
-
mark.gb-highlight{background:none;color:unset}.gb-headline span.rich-text{display:block}.wp-block[data-type="generateblocks/headline"]{margin-top:0;margin-bottom:0}
|
26 |
|
27 |
.gblocks-notice{margin-bottom:20px}.gblocks-panel-label .components-panel__body-toggle.components-button{display:flex;flex-direction:row-reverse;justify-content:flex-end}.gblocks-panel-label svg.components-panel__icon{margin:0 10px 0 0}.gblocks-control-tabs .components-tab-panel__tabs{display:flex;flex-wrap:wrap;margin-bottom:15px;border-bottom:1px solid #e8eaeb}.gblocks-control-tabs .components-tab-panel__tabs button{padding:8px;height:auto;margin:0;margin-bottom:-1px;cursor:pointer;border:none;border:0;border-radius:0;outline-offset:-1px;flex:1;justify-content:center;font-size:11px;font-weight:400}.gblocks-control-tabs .components-tab-panel__tabs button.active-tab{position:relative;z-index:1;background:#222 !important;color:#fff !important;box-shadow:0 0 0 !important}.gblocks-block-control-icon svg{margin-right:0 !important;margin-left:0 !important;padding:2px}.gblocks-block-control-icon.gblocks-add-grid-item svg{padding:0}.gblocks-block-control-icon svg path{fill:inherit !important}.gblocks-option-notice.components-notice{margin:0 0 24px}.gblocks-option-notice.components-notice .components-notice__content{margin:5px}
|
28 |
|
4 |
|
5 |
.components-gblocks-units-control-header__units{display:flex;justify-content:space-between;margin-bottom:5px;align-items:center}.components-gblocks-control__units .components-gblocks-control-buttons__units button.components-button{background:#fff;box-shadow:none !important;color:#929da7;font-size:10px;padding:0 5px;position:relative;text-align:center;text-shadow:none;border:0;border-radius:0 !important;line-height:20px;padding:0 5px;height:auto}.components-gblocks-control__units .components-gblocks-control-buttons__units button.components-button.is-primary{background:#fff !important;color:#000 !important;cursor:default;z-index:1;font-weight:bold}
|
6 |
|
7 |
+
body.gutenberg-editor-page [data-type="generateblocks/container"] .editor-block-list__block,[data-type="generateblocks/container"] .wp-block-heading h1,[data-type="generateblocks/container"] .wp-block-heading h1.editor-rich-text__tinymce,[data-type="generateblocks/container"] .wp-block-heading h2,[data-type="generateblocks/container"] .wp-block-heading h2.editor-rich-text__tinymce,[data-type="generateblocks/container"] .wp-block-heading h3,[data-type="generateblocks/container"] .wp-block-heading h3.editor-rich-text__tinymce,[data-type="generateblocks/container"] .wp-block-heading h4,[data-type="generateblocks/container"] .wp-block-heading h4.editor-rich-text__tinymce,[data-type="generateblocks/container"] .wp-block-heading h5,[data-type="generateblocks/container"] .wp-block-heading h5.editor-rich-text__tinymce,[data-type="generateblocks/container"] .wp-block-heading h6,[data-type="generateblocks/container"] .wp-block-heading h6.editor-rich-text__tinymce{color:inherit}.additional-class-notice .components-notice{margin:0 0 10px}.widthButtons button{font-size:12px;flex:1;box-shadow:inset 0 0 0 1px #007cba;justify-content:center}.widthButtons{margin-bottom:10px;display:flex}.gblocks-column-width-control input[type="number"]{width:65px}body .gb-container .wp-block{max-width:none}[data-type="generateblocks/container"]>.block-editor-block-list__block-edit>[data-block]{margin:0}.block-editor-block-inspector .components-base-control.gblocks-gpress-full-width{border-top:1px solid #ddd;padding-top:15px}.block-editor-block-inspector .components-base-control.gblocks-gpress-full-width .components-base-control__label{margin-bottom:15px}.gblocks-container-text-alignment .components-base-control__label{display:block}.edit-post-visual-editor .block-editor-block-list__block[data-type="generateblocks/container"]>.block-editor-block-list__block-edit{margin:0}.block-editor-block-list__layout .block-editor-block-list__block[data-type="generateblocks/container"]{padding:0;box-sizing:border-box}.gblocks-bg-image-wrapper{display:flex}.gblocks-bg-image-wrapper .components-base-control,.gblocks-bg-image-wrapper .components-base-control__field{margin:0}.gblocks-bg-image-wrapper>.components-base-control{flex-grow:1}.gblocks-bg-image-wrapper .components-button{line-height:inherit;height:100%}.components-gblocks-control__image-sizes{margin-bottom:24px}.components-gblocks-control__image-sizes button{margin:0 5px 5px 0}.wp-block[data-type="generateblocks/container"]{margin-top:0;margin-bottom:0}.gb-container .wp-block-image{margin-top:0;margin-bottom:0}.gb-container .gb-shape{position:absolute;overflow:hidden;line-height:0;pointer-events:none}.gb-container .gb-shape svg{fill:currentColor}.gblocks-add-new-shape{margin-top:10px}.gblocks-shape-controls{width:100%}.gblocks-shape-controls>.components-base-control{margin-bottom:20px}.gblocks-shape-controls .gblocks-edit-shape{display:block;width:100%;text-align:left}.gblocks-shape-controls .gblocks-shape-chooser{margin:0}.gblocks-shape-controls .gblocks-shape-chooser li{margin:5px 0}.gblocks-shape-controls .gblocks-shape-chooser li button.components-button{width:100%;height:auto;background:#efefef}.gblocks-shape-controls .gblocks-shape-chooser li button.components-button svg{width:100%}.gblocks-shape-controls .gblocks-shape-chooser li button.components-button:hover{background:#efefef}.gblocks-shape-controls .gblocks-shape-chooser li button.components-button.gblocks-shape-is-active{box-shadow:0 0 0 3px #007cba}.gblocks-shape-divider-preview{padding:10px}.gblocks-shape-divider-preview svg{fill:currentColor}.gblocks-shape-toggle-preview{margin-right:10px}.gblocks-shape-toggle-preview svg{width:30px}.gblocks-shape-container{display:flex;align-items:center;margin-bottom:10px;border:1px solid #efefef;border-radius:3px}.gblocks-shape-container .components-dropdown{margin-left:auto}.gblocks-shape-container .components-button.gblocks-shape-dropdown,.gblocks-shape-container .components-button.gblocks-remove-shape{justify-content:center}.gblocks-shape-container .components-button.gblocks-shape-dropdown>svg,.gblocks-shape-container .components-button.gblocks-remove-shape>svg{margin-right:0}.components-popover.gblocks-shapes-dropdown .components-popover__content{min-width:260px}.gblocks-gpress-full-width .components-base-control__label{display:block}
|
8 |
|
9 |
.gblocks-component-color-picker-wrapper>.components-base-control__field{position:relative;display:flex;align-items:center;justify-content:space-between}.gblocks-component-color-picker-wrapper>.components-base-control__field .components-color-palette__item-wrapper{margin:0}.gblocks-component-color-picker>.components-base-control:first-child{margin-bottom:0}.gblocks-component-color-picker .components-color-picker__inputs-wrapper{min-width:auto}.gblocks-component-color-picker .gblocks-component-color-picker-palette{padding:16px;margin-top:10px}.gblocks-component-color-picker .gblocks-component-color-picker-palette .components-circular-option-picker{display:flex;flex-wrap:wrap}.gblocks-component-color-picker .gblocks-component-color-picker-palette .components-circular-option-picker .components-circular-option-picker__option-wrapper{margin:0 8px 8px 0}.gblocks-component-color-picker .components-base-control__field,.gblocks-component-color-picker .components-color-palette{margin:0}.gblocks-component-color-picker .components-color-picker{padding:5px}.gblocks-component-color-picker .components-color-picker__inputs-toggle{display:none}.gblocks-component-color-picker .components-color-picker__body{padding-bottom:0}.gblocks-component-color-picker .components-popover__content{padding:10px;width:300px}.gblocks-component-color-picker .components-color-picker__inputs-fields{margin-right:0}.gblocks-component-color-picker .components-color-clear-color{margin:0 16px}.gblocks-component-color-opacity{display:flex;padding:0 16px;margin:10px 0}.gblocks-component-color-opacity .components-range-control{flex-grow:1;padding-left:5px}.gblocks-color-picker-area{width:28px;height:28px}
|
10 |
|
22 |
|
23 |
.gblocks-component-url-input{width:100%;margin-top:10px;font-family:-apple-system, "BlinkMacSystemFont", "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;font-size:13px;line-height:1.4;background:#fff;border:1px solid #e2e4e7;color:#000}.gblocks-component-url-input .gblocks-component-url-input-flex{display:flex;align-items:center}.gblocks-component-url-input .gblocks-component-url-input-flex .editor-url-input{width:auto}.gblocks-component-url-input .gblocks-component-url-input-flex .editor-url-input input[type="text"]{width:100%}.gblocks-component-url-input .gblocks-component-url-input-flex .editor-url-input input[type="text"]::-moz-placeholder{color:#222}.gblocks-component-url-input .gblocks-component-url-input-flex .editor-url-input input[type="text"]:-ms-input-placeholder{color:#222}.gblocks-component-url-input .gblocks-component-url-input-flex .editor-url-input input[type="text"]::placeholder{color:#222}.gblocks-component-url-input .gblocks-component-url-input-flex>.dashicon{width:20px;color:#222}.gblocks-component-url-input .gblocks-component-url-input-flex .components-base-control__field{margin-bottom:0}.gblocks-component-url-input .gblocks-component-url-input-more-options{padding:10px;border-top:1px solid #e2e4e7}.gblocks-component-url-input .gblocks-component-url-input-more-options .components-base-control{margin-bottom:5px}.gblocks-component-url-input .gblocks-component-url-input-more-options .components-base-control .components-base-control__field{margin-bottom:0}.gblocks-component-url-input .gblocks-component-url-input-more-options .components-base-control:last-child{margin-bottom:0}.gblocks-component-url-input-float{position:absolute;min-width:260px;max-width:260px;box-shadow:0 3px 30px rgba(25,30,35,0.1);z-index:150}.gblocks-component-url-input-float::after,.gblocks-component-url-input-float::before{content:" ";position:absolute;bottom:100%;left:20px;width:0;height:0;pointer-events:none;border:solid transparent}.gblocks-component-url-input-float::after{border:5px solid rgba(255,255,255,0);border-bottom-color:#fff}.gblocks-component-url-input-float::before{margin-left:-1px;border:6px solid rgba(226,228,231,0);border-bottom-color:#e2e4e7}.gblocks-component-url-input-float .editor-url-input__suggestions{max-width:188px}.block-editor-block-list__block .gblocks-component-url-input-flex input[type="text"]{max-width:100%;width:100%}
|
24 |
|
25 |
+
mark.gb-highlight{background:none;color:unset}.gb-headline span.rich-text{display:inline-block}.wp-block[data-type="generateblocks/headline"]{margin-top:0;margin-bottom:0}
|
26 |
|
27 |
.gblocks-notice{margin-bottom:20px}.gblocks-panel-label .components-panel__body-toggle.components-button{display:flex;flex-direction:row-reverse;justify-content:flex-end}.gblocks-panel-label svg.components-panel__icon{margin:0 10px 0 0}.gblocks-control-tabs .components-tab-panel__tabs{display:flex;flex-wrap:wrap;margin-bottom:15px;border-bottom:1px solid #e8eaeb}.gblocks-control-tabs .components-tab-panel__tabs button{padding:8px;height:auto;margin:0;margin-bottom:-1px;cursor:pointer;border:none;border:0;border-radius:0;outline-offset:-1px;flex:1;justify-content:center;font-size:11px;font-weight:400}.gblocks-control-tabs .components-tab-panel__tabs button.active-tab{position:relative;z-index:1;background:#222 !important;color:#fff !important;box-shadow:0 0 0 !important}.gblocks-block-control-icon svg{margin-right:0 !important;margin-left:0 !important;padding:2px}.gblocks-block-control-icon.gblocks-add-grid-item svg{padding:0}.gblocks-block-control-icon svg path{fill:inherit !important}.gblocks-option-notice.components-notice{margin:0 0 24px}.gblocks-option-notice.components-notice .components-notice__content{margin:5px}
|
28 |
|
dist/blocks.js
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
-
!function(e){var t={};function a(l){if(t[l])return t[l].exports;var i=t[l]={i:l,l:!1,exports:{}};return e[l].call(i.exports,i,i.exports,a),i.l=!0,i.exports}a.m=e,a.c=t,a.d=function(e,t,l){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:l})},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 l=Object.create(null);if(a.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)a.d(l,i,function(t){return e[t]}.bind(null,i));return l},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=39)}([function(e,t){!function(){e.exports=this.wp.element}()},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){e.exports=function(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}},function(e,t){function a(){return e.exports=a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},a.apply(this,arguments)}e.exports=a},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 l=t[a];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(e,l.key,l)}}e.exports=function(e,t,l){return t&&a(e.prototype,t),l&&a(e,l),e}},function(e,t,a){var l=a(13);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&&l(e,t)}},function(e,t,a){var l=a(11),i=a(9);e.exports=function(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?i(e):t}},function(e,t,a){var l;!function(){"use strict";var a={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var l=arguments[t];if(l){var r=typeof l;if("string"===r||"number"===r)e.push(l);else if(Array.isArray(l)&&l.length){var n=i.apply(null,l);n&&e.push(n)}else if("object"===r)for(var o in l)a.call(l,o)&&l[o]&&e.push(o)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(l=function(){return i}.apply(t,[]))||(e.exports=l)}()},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 l=a(24),i=a(25),r=a(14),n=a(26);e.exports=function(e){return l(e)||i(e)||r(e)||n()}},function(e,t){function a(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=a=function(e){return typeof e}:e.exports=a=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(t)}e.exports=a},function(e,t,a){var l=a(20),i=a(21),r=a(14),n=a(22);e.exports=function(e,t){return l(e)||i(e,t)||r(e,t)||n()}},function(e,t){function a(t,l){return e.exports=a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(t,l)}e.exports=a},function(e,t,a){var l=a(15);e.exports=function(e,t){if(e){if("string"==typeof e)return l(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?l(e,t):void 0}}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,l=new Array(t);a<t;a++)l[a]=e[a];return l}},function(e,t,a){e.exports=function(){"use strict";var e=Object.hasOwnProperty,t=Object.setPrototypeOf,a=Object.isFrozen,l=Object.freeze,i=Object.seal,r=Object.create,n="undefined"!=typeof Reflect&&Reflect,o=n.apply,c=n.construct;o||(o=function(e,t,a){return e.apply(t,a)}),l||(l=function(e){return e}),i||(i=function(e){return e}),c||(c=function(e,t){return new(Function.prototype.bind.apply(e,[null].concat(function(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}(t))))});var s,g=w(Array.prototype.forEach),u=w(Array.prototype.pop),b=w(Array.prototype.push),d=w(String.prototype.toLowerCase),p=w(String.prototype.match),f=w(String.prototype.replace),h=w(String.prototype.indexOf),m=w(String.prototype.trim),k=w(RegExp.prototype.test),y=(s=TypeError,function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return c(s,t)});function w(e){return function(t){for(var a=arguments.length,l=Array(a>1?a-1:0),i=1;i<a;i++)l[i-1]=arguments[i];return o(e,t,l)}}function v(e,l){t&&t(e,null);for(var i=l.length;i--;){var r=l[i];if("string"==typeof r){var n=d(r);n!==r&&(a(l)||(l[i]=n),r=n)}e[r]=!0}return e}function T(t){var a=r(null),l=void 0;for(l in t)o(e,t,[l])&&(a[l]=t[l]);return a}var O=l(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),C=l(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","audio","canvas","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","video","view","vkern"]),S=l(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),B=l(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),D=l(["#text"]),E=l(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns"]),j=l(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),R=l(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),M=l(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),z=i(/\{\{[\s\S]*|[\s\S]*\}\}/gm),x=i(/<%[\s\S]*|[\s\S]*%>/gm),L=i(/^data-[\-\w.\u00B7-\uFFFF]/),P=i(/^aria-[\-\w]+$/),A=i(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),U=i(/^(?:\w+script|data):/i),H=i(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function F(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}var _=function(){return"undefined"==typeof window?null:window},I=function(e,t){if("object"!==(void 0===e?"undefined":N(e))||"function"!=typeof e.createPolicy)return null;var a=null;t.currentScript&&t.currentScript.hasAttribute("data-tt-policy-suffix")&&(a=t.currentScript.getAttribute("data-tt-policy-suffix"));var l="dompurify"+(a?"#"+a:"");try{return e.createPolicy(l,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+l+" could not be created."),null}};return function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_(),a=function(t){return e(t)};if(a.version="2.2.2",a.removed=[],!t||!t.document||9!==t.document.nodeType)return a.isSupported=!1,a;var i=t.document,r=t.document,n=t.DocumentFragment,o=t.HTMLTemplateElement,c=t.Node,s=t.NodeFilter,w=t.NamedNodeMap,G=void 0===w?t.NamedNodeMap||t.MozNamedAttrMap:w,V=t.Text,q=t.Comment,W=t.DOMParser,Z=t.trustedTypes;if("function"==typeof o){var K=r.createElement("template");K.content&&K.content.ownerDocument&&(r=K.content.ownerDocument)}var J=I(Z,i),Y=J&&Ee?J.createHTML(""):"",Q=r,X=Q.implementation,$=Q.createNodeIterator,ee=Q.getElementsByTagName,te=Q.createDocumentFragment,ae=i.importNode,le={};try{le=T(r).documentMode?r.documentMode:{}}catch(e){}var ie={};a.isSupported=X&&void 0!==X.createHTMLDocument&&9!==le;var re=z,ne=x,oe=L,ce=P,se=U,ge=H,ue=A,be=null,de=v({},[].concat(F(O),F(C),F(S),F(B),F(D))),pe=null,fe=v({},[].concat(F(E),F(j),F(R),F(M))),he=null,me=null,ke=!0,ye=!0,we=!1,ve=!1,Te=!1,Oe=!1,Ce=!1,Se=!1,Be=!1,De=!0,Ee=!1,je=!0,Re=!0,Me=!1,ze={},xe=v({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","plaintext","script","style","svg","template","thead","title","video","xmp"]),Le=null,Pe=v({},["audio","video","img","source","image","track"]),Ae=null,Ue=v({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),He=null,Ne=r.createElement("form"),Fe=function(e){He&&He===e||(e&&"object"===(void 0===e?"undefined":N(e))||(e={}),e=T(e),be="ALLOWED_TAGS"in e?v({},e.ALLOWED_TAGS):de,pe="ALLOWED_ATTR"in e?v({},e.ALLOWED_ATTR):fe,Ae="ADD_URI_SAFE_ATTR"in e?v(T(Ue),e.ADD_URI_SAFE_ATTR):Ue,Le="ADD_DATA_URI_TAGS"in e?v(T(Pe),e.ADD_DATA_URI_TAGS):Pe,he="FORBID_TAGS"in e?v({},e.FORBID_TAGS):{},me="FORBID_ATTR"in e?v({},e.FORBID_ATTR):{},ze="USE_PROFILES"in e&&e.USE_PROFILES,ke=!1!==e.ALLOW_ARIA_ATTR,ye=!1!==e.ALLOW_DATA_ATTR,we=e.ALLOW_UNKNOWN_PROTOCOLS||!1,ve=e.SAFE_FOR_TEMPLATES||!1,Te=e.WHOLE_DOCUMENT||!1,Se=e.RETURN_DOM||!1,Be=e.RETURN_DOM_FRAGMENT||!1,De=!1!==e.RETURN_DOM_IMPORT,Ee=e.RETURN_TRUSTED_TYPE||!1,Ce=e.FORCE_BODY||!1,je=!1!==e.SANITIZE_DOM,Re=!1!==e.KEEP_CONTENT,Me=e.IN_PLACE||!1,ue=e.ALLOWED_URI_REGEXP||ue,ve&&(ye=!1),Be&&(Se=!0),ze&&(be=v({},[].concat(F(D))),pe=[],!0===ze.html&&(v(be,O),v(pe,E)),!0===ze.svg&&(v(be,C),v(pe,j),v(pe,M)),!0===ze.svgFilters&&(v(be,S),v(pe,j),v(pe,M)),!0===ze.mathMl&&(v(be,B),v(pe,R),v(pe,M))),e.ADD_TAGS&&(be===de&&(be=T(be)),v(be,e.ADD_TAGS)),e.ADD_ATTR&&(pe===fe&&(pe=T(pe)),v(pe,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&v(Ae,e.ADD_URI_SAFE_ATTR),Re&&(be["#text"]=!0),Te&&v(be,["html","head","body"]),be.table&&(v(be,["tbody"]),delete he.tbody),l&&l(e),He=e)},_e=function(e){b(a.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.outerHTML=Y}},Ie=function(e,t){try{b(a.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){b(a.removed,{attribute:null,from:t})}t.removeAttribute(e)},Ge=function(e){var t=void 0,a=void 0;if(Ce)e="<remove></remove>"+e;else{var l=p(e,/^[\r\n\t ]+/);a=l&&l[0]}var i=J?J.createHTML(e):e;try{t=(new W).parseFromString(i,"text/html")}catch(e){}if(!t||!t.documentElement){var n=(t=X.createHTMLDocument("")).body;n.parentNode.removeChild(n.parentNode.firstElementChild),n.outerHTML=i}return e&&a&&t.body.insertBefore(r.createTextNode(a),t.body.childNodes[0]||null),ee.call(t,Te?"html":"body")[0]},Ve=function(e){return $.call(e.ownerDocument||e,e,s.SHOW_ELEMENT|s.SHOW_COMMENT|s.SHOW_TEXT,(function(){return s.FILTER_ACCEPT}),!1)},qe=function(e){return!(e instanceof V||e instanceof q||"string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof G&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI)},We=function(e){return"object"===(void 0===c?"undefined":N(c))?e instanceof c:e&&"object"===(void 0===e?"undefined":N(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Ze=function(e,t,l){ie[e]&&g(ie[e],(function(e){e.call(a,t,l,He)}))},Ke=function(e){var t=void 0;if(Ze("beforeSanitizeElements",e,null),qe(e))return _e(e),!0;if(p(e.nodeName,/[\u0080-\uFFFF]/))return _e(e),!0;var l=d(e.nodeName);if(Ze("uponSanitizeElement",e,{tagName:l,allowedTags:be}),("svg"===l||"math"===l)&&0!==e.querySelectorAll("p, br, form, table").length)return _e(e),!0;if(!We(e.firstElementChild)&&(!We(e.content)||!We(e.content.firstElementChild))&&k(/<[!/\w]/g,e.innerHTML)&&k(/<[!/\w]/g,e.textContent))return _e(e),!0;if(!be[l]||he[l]){if(Re&&!xe[l]&&"function"==typeof e.insertAdjacentHTML)try{var i=e.innerHTML;e.insertAdjacentHTML("AfterEnd",J?J.createHTML(i):i)}catch(e){}return _e(e),!0}return"noscript"!==l&&"noembed"!==l||!k(/<\/no(script|embed)/i,e.innerHTML)?(ve&&3===e.nodeType&&(t=e.textContent,t=f(t,re," "),t=f(t,ne," "),e.textContent!==t&&(b(a.removed,{element:e.cloneNode()}),e.textContent=t)),Ze("afterSanitizeElements",e,null),!1):(_e(e),!0)},Je=function(e,t,a){if(je&&("id"===t||"name"===t)&&(a in r||a in Ne))return!1;if(ye&&k(oe,t));else if(ke&&k(ce,t));else{if(!pe[t]||me[t])return!1;if(Ae[t]);else if(k(ue,f(a,ge,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==h(a,"data:")||!Le[e])if(we&&!k(se,f(a,ge,"")));else if(a)return!1}return!0},Ye=function(e){var t=void 0,l=void 0,i=void 0,r=void 0;Ze("beforeSanitizeAttributes",e,null);var n=e.attributes;if(n){var o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:pe};for(r=n.length;r--;){var c=t=n[r],s=c.name,g=c.namespaceURI;if(l=m(t.value),i=d(s),o.attrName=i,o.attrValue=l,o.keepAttr=!0,o.forceKeepAttr=void 0,Ze("uponSanitizeAttribute",e,o),l=o.attrValue,!o.forceKeepAttr&&(Ie(s,e),o.keepAttr))if(k(/\/>/i,l))Ie(s,e);else{ve&&(l=f(l,re," "),l=f(l,ne," "));var b=e.nodeName.toLowerCase();if(Je(b,i,l))try{g?e.setAttributeNS(g,s,l):e.setAttribute(s,l),u(a.removed)}catch(e){}}}Ze("afterSanitizeAttributes",e,null)}},Qe=function e(t){var a=void 0,l=Ve(t);for(Ze("beforeSanitizeShadowDOM",t,null);a=l.nextNode();)Ze("uponSanitizeShadowNode",a,null),Ke(a)||(a.content instanceof n&&e(a.content),Ye(a));Ze("afterSanitizeShadowDOM",t,null)};return a.sanitize=function(e,l){var r=void 0,o=void 0,s=void 0,g=void 0,u=void 0;if(e||(e="\x3c!--\x3e"),"string"!=typeof e&&!We(e)){if("function"!=typeof e.toString)throw y("toString is not a function");if("string"!=typeof(e=e.toString()))throw y("dirty is not a string, aborting")}if(!a.isSupported){if("object"===N(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if(We(e))return t.toStaticHTML(e.outerHTML)}return e}if(Oe||Fe(l),a.removed=[],"string"==typeof e&&(Me=!1),Me);else if(e instanceof c)1===(o=(r=Ge("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?r=o:r.appendChild(o);else{if(!Se&&!ve&&!Te&&-1===e.indexOf("<"))return J&&Ee?J.createHTML(e):e;if(!(r=Ge(e)))return Se?null:Y}r&&Ce&&_e(r.firstChild);for(var b=Ve(Me?e:r);s=b.nextNode();)3===s.nodeType&&s===g||Ke(s)||(s.content instanceof n&&Qe(s.content),Ye(s),g=s);if(g=null,Me)return e;if(Se){if(Be)for(u=te.call(r.ownerDocument);r.firstChild;)u.appendChild(r.firstChild);else u=r;return De&&(u=ae.call(i,u,!0)),u}var d=Te?r.outerHTML:r.innerHTML;return ve&&(d=f(d,re," "),d=f(d,ne," ")),J&&Ee?J.createHTML(d):d},a.setConfig=function(e){Fe(e),Oe=!0},a.clearConfig=function(){He=null,Oe=!1},a.isValidAttribute=function(e,t,a){He||Fe({});var l=d(e),i=d(t);return Je(l,i,a)},a.addHook=function(e,t){"function"==typeof t&&(ie[e]=ie[e]||[],b(ie[e],t))},a.removeHook=function(e){ie[e]&&u(ie[e])},a.removeHooks=function(e){ie[e]&&(ie[e]=[])},a.removeAllHooks=function(){ie={}},a}()}()},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var a=[],l=!0,i=!1,r=void 0;try{for(var n,o=e[Symbol.iterator]();!(l=(n=o.next()).done)&&(a.push(n.value),!t||a.length!==t);l=!0);}catch(e){i=!0,r=e}finally{try{l||null==o.return||o.return()}finally{if(i)throw r}}return a}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,a){},function(e,t,a){var l=a(15);e.exports=function(e){if(Array.isArray(e))return l(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},,,function(e,t,a){"use strict";a.r(t);var l=a(0),i=(a(17),a(3)),r=a.n(i),n=a(2),o=a.n(n),c=a(4),s=a.n(c),g=a(5),u=a.n(g),b=a(9),d=a.n(b),p=a(6),f=a.n(p),h=a(7),m=a.n(h),k=a(1),y=a.n(k),w=a(8),v=a.n(w),T=wp.element.createElement;function O(e){return"tabs-desktop"===e?T("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none"},T("path",{d:"M18.95 4H4.55C3.55589 4 2.75 4.76751 2.75 5.71429V14.2857C2.75 15.2325 3.55589 16 4.55 16H18.95C19.9441 16 20.75 15.2325 20.75 14.2857V5.71429C20.75 4.76751 19.9441 4 18.95 4Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),T("path",{d:"M1.75 18C1.19772 18 0.75 18.4477 0.75 19C0.75 19.5523 1.19772 20 1.75 20H21.75C22.3023 20 22.75 19.5523 22.75 19C22.75 18.4477 22.3023 18 21.75 18H1.75ZM9 18.8C8.86193 18.8 8.75 18.9119 8.75 19.05C8.75 19.1881 8.86193 19.3 9 19.3H14.5C14.6381 19.3 14.75 19.1881 14.75 19.05C14.75 18.9119 14.6381 18.8 14.5 18.8H9Z",stroke:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})):"tabs-tablet"===e?T("svg",{width:24,height:24,viewBox:"0 0 24 24"},T("path",{d:"M16.6429 4H7.35714C6.33147 4 5.5 4.71634 5.5 5.6V18.4C5.5 19.2837 6.33147 20 7.35714 20H16.6429C17.6685 20 18.5 19.2837 18.5 18.4V5.6C18.5 4.71634 17.6685 4 16.6429 4Z"}),T("path",{d:"M12 17.5H12.01"})):"tabs-mobile"===e?T("svg",{width:24,height:24,viewBox:"0 0 24 24"},T("path",{d:"M15.5714 4H8.42857C7.63959 4 7 4.71634 7 5.6V18.4C7 19.2837 7.63959 20 8.42857 20H15.5714C16.3604 20 17 19.2837 17 18.4V5.6C17 4.71634 16.3604 4 15.5714 4Z"}),T("path",{d:"M12 17.5H12.01"})):"sync"===e?T("svg",{width:24,height:24,viewBox:"0 0 24 24"},T("path",{d:"m7.34133533 6.23855964v-1.98499625c-2.17404351.03150788-4.03300825 1.38634659-4.85221305 3.27681921-.31507877.72468117-.44111028 1.51237809-.4096024 2.33158289.06301575 1.13428361.47261815 2.20555141 1.16579145 3.05626411.37809452.4411102.28357089 1.1027757-.18904726 1.4493623-.44111028.3150788-1.07126782.2205551-1.41785447-.1890473-.85071268-1.0397599-1.38634658-2.3315829-1.54388597-3.7179294-.12603151-1.00825211-.03150788-2.01650417.25206302-2.9302326.88222055-3.02475619 3.6864216-5.26181546 6.99474868-5.29332334v-1.98499624c0-.09452363.12603151-.15753939.22055514-.09452363l4.09602403 2.99324831c.0630157.06301575.0630157.15753938 0 .18904726l-4.09602403 2.99324831c-.09452363.06301575-.22055514 0-.22055514-.09452363zm.22055514 13.17029256c.09452363.0630158.22055514 0 .22055514-.0945236v-1.9849963c3.30832709-.0315078 6.11252809-2.2685671 6.99474869-5.2933233.252063-.9137284.3780945-1.8904726.252063-2.93023256-.1575394-1.38634658-.7246812-2.67816954-1.543886-3.71792948-.3465866-.44111028-.9767441-.53563391-1.4178544-.18904726-.4726182.34658665-.5671418 1.00825206-.1890473 1.44936234.6931733.85071268 1.1027757 1.89047262 1.1657915 3.05626407.0315078.81920479-.1260315 1.63840959-.4096024 2.33158289-.787697 1.8904726-2.6466617 3.2453113-4.85221309 3.2768192v-1.9849962c0-.0945237-.12603151-.1575394-.22055514-.0945237l-4.096024 2.9932483c-.06301576.0630158-.06301576.1575394 0 .1890473z",transform:"translate(4 2)"})):"headline"===e?T("svg",{width:24,height:24,viewBox:"0 0 20 20",style:{padding:"1px"}},T("path",{d:"M12.5 4v5.2h-5V4H5v13h2.5v-5.2h5V17H15V4",fill:"#1e72bd"})):"grid"===e?T("svg",{width:20,height:20,viewBox:"0 0 20 20",style:{padding:"1px"}},T("path",{d:"M20 .6c0-.3-.2-.6-.5-.6H.5C.2 0 0 .3 0 .6v4.6c0 .3.2.6.5.6h19c.3 0 .5-.3.5-.6V.6zM6.7 7.7c0-.3-.2-.6-.5-.6H.5c-.3 0-.5.3-.5.6v4.6c0 .3.2.6.5.6h5.6c.3 0 .5-.3.5-.6l.1-4.6zM19.9 7.7c0-.3-.2-.6-.6-.6H8.6c-.4 0-.6.3-.6.6v4.5c0 .3.2.6.6.6h10.8c.3 0 .6-.3.6-.6l-.1-4.5z",fill:"#1d72ba"}),T("path",{d:"M20 14.8c0-.3-.2-.6-.5-.6h-5.6c-.3 0-.5.2-.5.6v4.6c0 .3.2.6.5.6h5.6c.3 0 .5-.2.5-.6v-4.6zM12 14.8c0-.3-.2-.5-.5-.5H.5c-.3 0-.5.2-.5.5v4.6c0 .4.2.6.5.6h11c.3 0 .5-.2.5-.5v-4.7z",fill:"#1d72ba"})):"container"===e?T("svg",{width:20,height:20,viewBox:"0 0 20 20",style:{padding:"1px"}},T("path",{d:"M2.8 3.4c0-.4.3-.7.7-.7h1.2V0H3.4C1.5 0 0 1.5 0 3.4v1.2h2.8V3.4zM0 7.4h2.8v5.3H0zM17.2 7.4H20v5.3h-2.8zM17.2 16.6c0 .4-.3.7-.7.7h-1.2V20h1.2c1.9 0 3.4-1.5 3.4-3.4v-1.2h-2.8v1.2h.1zM7.4 0h5.3v2.8H7.4zM3.4 17.2c-.4 0-.7-.3-.7-.7v-1.2H0v1.2c0 2 1.5 3.5 3.4 3.5h1.2v-2.8H3.4zM7.4 17.2h5.3V20H7.4zM16.6 2.8c.4 0 .7.3.7.7v1.2H20V3.4C20 1.5 18.5 0 16.6 0h-1.2v2.8h1.2z",fill:"#1e72bd"})):"button"===e?T("svg",{width:20,height:20,viewBox:"0 0 20 20",style:{padding:"1px"}},T("path",{d:"M19.2 0H.8C.4 0 0 .4 0 .8v6.4c0 .4.4.8.8.8h18.4c.4 0 .8-.4.8-.8V.8c0-.4-.4-.8-.8-.8zM18.4 12H1.6c-.9 0-1.6.7-1.6 1.6v4.8c0 .9.7 1.6 1.6 1.6h16.8c.9 0 1.6-.7 1.6-1.6v-4.8c0-.9-.7-1.6-1.6-1.6zm.4 6.4c0 .2-.2.4-.4.4H1.6c-.2 0-.4-.2-.4-.4v-4.8c0-.2.2-.4.4-.4h16.8c.2 0 .4.2.4.4v4.8z",fill:"#1e72bd"})):"paragraph"===e?T("svg",{width:20,height:20,viewBox:"0 0 20 20"},T("path",{d:"M15 2H7.54c-.83 0-1.59.2-2.28.6-.7.41-1.25.96-1.65 1.65C3.2 4.94 3 5.7 3 6.52s.2 1.58.61 2.27c.4.69.95 1.24 1.65 1.64.69.41 1.45.61 2.28.61h.43V17c0 .27.1.51.29.71.2.19.44.29.71.29.28 0 .51-.1.71-.29.2-.2.3-.44.3-.71V5c0-.27.09-.51.29-.71.2-.19.44-.29.71-.29s.51.1.71.29c.19.2.29.44.29.71v12c0 .27.1.51.3.71.2.19.43.29.71.29.27 0 .51-.1.71-.29.19-.2.29-.44.29-.71V4H15c.27 0 .5-.1.7-.3.2-.19.3-.43.3-.7s-.1-.51-.3-.71A.984.984 0 0 0 15 2z"})):"spacing"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M106.283,6.217c8.289,8.29 8.289,91.776 0,100.066c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.29,-8.289 91.776,-8.289 100.066,0Zm-10.007,10.007c6.632,6.632 6.632,73.42 0,80.052c-6.632,6.632 -73.42,6.632 -80.052,0c-6.632,-6.632 -6.632,-73.42 0,-80.052c6.632,-6.632 73.42,-6.632 80.052,0Z"}),T("path",{d:"M40.452,77.705c7.802,1.393 23.794,1.393 31.596,0l13.635,13.635c-12.215,3.213 -46.652,3.213 -58.866,0l13.635,-13.635Zm50.888,-50.888c3.213,12.215 3.213,46.653 0,58.866l-13.635,-13.635c1.393,-7.801 1.393,-23.794 0,-31.596l13.635,-13.635Zm-70.18,0l13.635,13.635c-1.393,7.802 -1.393,23.794 0,31.596l-13.635,13.635c-3.213,-12.213 -3.213,-46.651 0,-58.866Zm5.657,-5.657c12.214,-3.213 46.652,-3.213 58.866,0l-13.635,13.635c-7.801,-1.393 -23.795,-1.393 -31.596,0l-13.635,-13.635Z"})):"advanced"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M106.283,6.217c8.289,8.29 8.289,91.776 0,100.066c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.29,-8.289 91.776,-8.289 100.066,0Zm-10.007,37.215c6.632,2.124 6.632,23.512 0,25.636c-6.632,2.124 -73.42,2.124 -80.052,0c-6.632,-2.124 -6.632,-23.512 0,-25.636c6.632,-2.124 73.42,-2.124 80.052,0Z"}),T("path",{d:"M48.61,51.916c2.243,0.718 2.243,7.95 0,8.668c-2.242,0.718 -24.823,0.718 -27.065,0c-2.243,-0.718 -2.243,-7.95 0,-8.668c2.242,-0.718 24.823,-0.718 27.065,0Z"}),T("path",{d:"M90.955,51.916c2.243,0.718 2.243,7.95 0,8.668c-2.242,0.718 -24.823,0.718 -27.065,0c-2.243,-0.718 -2.243,-7.95 0,-8.668c2.242,-0.718 24.823,-0.718 27.065,0Z"})):"backgrounds"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M1.491,87.777l37.79,-37.79l31.352,31.352c2.412,2.171 5.656,0 5.656,0l17.248,-17.247l13.186,13.186l4.796,4.797c-0.971,12.199 -2.726,21.685 -5.249,24.208c-8.29,8.289 -91.776,8.289 -100.066,0c-2.113,-2.113 -3.687,-9.113 -4.713,-18.506Z"}),T("path",{d:"M0.631,77.323c-1.742,-27.728 0.125,-65.658 5.573,-71.106c8.29,-8.289 91.776,-8.289 100.066,0c5.07,5.07 7.039,38.265 5.89,65.185l-15.795,-15.795c-2.412,-2.172 -5.657,0 -5.657,0l-17.247,17.246l-31.351,-31.351c-0.731,-0.658 -1.036,-1 -2.619,-1.166c-0.263,0 -0.477,-0.075 -1.245,0.131c-0.912,0.244 -1.793,1.035 -1.793,1.035l-35.822,35.821Zm76.434,-59.584c7.115,0 12.891,5.776 12.891,12.89c0,7.114 -5.776,12.89 -12.891,12.89c-7.114,0 -12.89,-5.776 -12.89,-12.89c0,-7.114 5.776,-12.89 12.89,-12.89Z"})):"colors"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M106.283,6.217c8.289,8.29 8.289,91.776 0,100.066c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.29,-8.289 91.776,-8.289 100.066,0Zm-50.033,12.818c-20.551,0 -37.215,16.664 -37.215,37.215c0,20.551 16.664,37.215 37.215,37.215c3.432,0 6.202,-2.77 6.202,-6.203c0,-1.612 -0.62,-3.059 -1.612,-4.176c-0.951,-1.075 -1.571,-2.522 -1.571,-4.094c0,-3.432 2.77,-6.202 6.202,-6.202l7.319,0c11.413,0 20.675,-9.262 20.675,-20.675c0,-18.277 -16.664,-33.08 -37.215,-33.08Zm-22.742,37.215c-3.433,0 -6.203,-2.77 -6.203,-6.202c0,-3.433 2.77,-6.203 6.203,-6.203c3.432,0 6.202,2.77 6.202,6.203c0,3.432 -2.77,6.202 -6.202,6.202Zm45.484,0c-3.432,0 -6.202,-2.77 -6.202,-6.202c0,-3.433 2.77,-6.203 6.202,-6.203c3.433,0 6.203,2.77 6.203,6.203c0,3.432 -2.77,6.202 -6.203,6.202Zm-33.079,-16.54c-3.433,0 -6.203,-2.77 -6.203,-6.202c0,-3.433 2.77,-6.203 6.203,-6.203c3.432,0 6.202,2.77 6.202,6.203c0,3.432 -2.77,6.202 -6.202,6.202Zm20.674,0c-3.432,0 -6.202,-2.77 -6.202,-6.202c0,-3.433 2.77,-6.203 6.202,-6.203c3.433,0 6.203,2.77 6.203,6.203c0,3.432 -2.77,6.202 -6.203,6.202Z"})):"gradients"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M112.426,48.746c0.503,25.204 -1.545,52.939 -6.143,57.537c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.289,-8.288 91.748,-8.289 100.061,-0.004c0,0 0.005,0.004 0.005,0.004c3.691,3.692 5.739,22.295 6.143,42.529Zm-16.154,-32.526c-6.656,-6.628 -73.418,-6.627 -80.048,0.004c-6.631,6.63 -6.632,73.392 -0.004,80.048l80.052,-80.052Z"})):"icons"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M106.283,6.217c8.289,8.29 8.289,91.776 0,100.066c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.29,-8.289 91.776,-8.289 100.066,0Zm-10.007,10.007c6.632,6.632 6.632,73.42 0,80.052c-6.632,6.632 -73.42,6.632 -80.052,0c-6.632,-6.632 -6.632,-73.42 0,-80.052c6.632,-6.632 73.42,-6.632 80.052,0Z"}),T("path",{d:"M89.605,22.895c5.527,5.526 5.527,61.184 0,66.71c-5.526,5.527 -61.184,5.527 -66.71,0c-5.527,-5.526 -5.527,-61.184 0,-66.71c5.526,-5.527 61.184,-5.527 66.71,0Zm-21.066,62.31l0,-2.731c-0.648,-0.074 -1.272,-0.199 -1.87,-0.374c-0.599,-0.174 -1.148,-0.374 -1.646,-0.598c-0.699,-0.299 -1.235,-0.755 -1.609,-1.366c-0.374,-0.611 -0.561,-1.353 -0.561,-2.226l0,-29.703l-0.561,-0.561l-18.331,0.972l0,2.731c0.748,0.075 1.577,0.25 2.488,0.524c0.91,0.274 1.589,0.561 2.038,0.86c0.599,0.399 1.098,0.929 1.497,1.59c0.399,0.661 0.598,1.428 0.598,2.301l0,21.773c0,0.923 -0.162,1.665 -0.486,2.226c-0.324,0.561 -0.885,0.991 -1.683,1.29c-0.449,0.175 -0.986,0.3 -1.609,0.374c-0.624,0.075 -1.26,0.138 -1.908,0.187l0,2.731l23.643,0Zm-12.978,-59.459c4.76,0 8.625,3.864 8.625,8.625c0,4.76 -3.865,8.625 -8.625,8.625c-4.76,0 -8.625,-3.865 -8.625,-8.625c0,-4.761 3.865,-8.625 8.625,-8.625Z"})):"typography"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M106.283,6.217c8.289,8.29 8.289,91.776 0,100.066c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.29,-8.289 91.776,-8.289 100.066,0Zm-8.783,78.583l0,-2.817c-0.661,-0.026 -1.481,-0.165 -2.46,-0.417c-0.979,-0.251 -1.773,-0.562 -2.381,-0.932c-0.9,-0.609 -1.601,-1.23 -2.103,-1.865c-0.503,-0.635 -0.953,-1.468 -1.349,-2.5l-18.769,-48.569l-3.175,0c-2.672,6.878 -5.714,14.721 -9.126,23.53c-3.266,8.43 -6.265,16.06 -8.998,22.891l-11.672,-28.684l-2.304,0c-1.939,4.742 -4.148,10.149 -6.625,16.222c-2.477,6.072 -4.743,11.543 -6.798,16.412c-0.403,0.949 -0.816,1.692 -1.238,2.23c-0.423,0.538 -1.018,1.053 -1.786,1.545c-0.48,0.292 -1.095,0.524 -1.844,0.698c-0.749,0.173 -1.373,0.278 -1.872,0.314l0,1.942l15.382,0l0,-1.942c-1.518,-0.073 -2.881,-0.31 -4.091,-0.711c-1.209,-0.401 -1.814,-0.966 -1.814,-1.696c0,-0.31 0.048,-0.711 0.144,-1.204c0.096,-0.492 0.268,-1.13 0.518,-1.914c0.269,-0.803 0.571,-1.678 0.907,-2.626c0.336,-0.948 0.773,-2.061 1.311,-3.338l14.316,0l3.399,8.699c0.012,0.03 0.024,0.06 0.036,0.092c-0.161,0.119 -0.329,0.237 -0.503,0.355c-0.661,0.423 -1.508,0.76 -2.539,1.012c-1.032,0.251 -1.892,0.403 -2.58,0.456l0,2.817l21.19,0l0,-2.817c-2.09,-0.106 -3.968,-0.45 -5.635,-1.032c-1.666,-0.582 -2.499,-1.402 -2.499,-2.46c0,-0.45 0.066,-1.032 0.198,-1.746c0.132,-0.714 0.37,-1.64 0.714,-2.777c0.371,-1.164 0.787,-2.434 1.25,-3.81c0.463,-1.375 1.065,-2.989 1.806,-4.841l19.721,0l4.682,12.619c0.106,0.264 0.186,0.568 0.238,0.912c0.053,0.344 0.08,0.635 0.08,0.873c0,0.582 -0.681,1.072 -2.044,1.468c-1.362,0.397 -3.075,0.662 -5.138,0.794l0,2.817l23.451,0Zm-56.864,-15.865l-6.193,-15.045l-6.078,15.045l12.271,0Zm34.167,-7.15l-8.532,-21.824l-8.373,21.824l16.905,0Z"})):"addContainer"===e?T("svg",{width:20,height:20,viewBox:"0 0 64 64",fillRule:"evenodd"},T("path",{d:"M41.454,57.126l0,6.409c-6.088,0.286 -12.82,0.286 -18.908,0l0,-6.409c5.957,0.366 12.951,0.366 18.908,0Zm-33.93,-8.899c0.458,3.226 1.086,5.568 1.883,6.366c0.798,0.797 3.14,1.425 6.366,1.883l0,6.592c-6.084,-0.578 -10.706,-1.519 -12.015,-2.826c-1.307,-1.309 -2.248,-5.931 -2.826,-12.015l6.592,0Zm55.544,0c-0.578,6.084 -1.519,10.706 -2.826,12.015c-1.309,1.307 -5.931,2.248 -12.015,2.826l0,-6.592c3.226,-0.458 5.568,-1.086 6.366,-1.883c0.797,-0.798 1.425,-3.14 1.883,-6.366l6.592,0Zm0.467,-25.681c0.286,6.088 0.286,12.82 0,18.908l-6.409,0c0.366,-5.957 0.366,-12.951 0,-18.908l6.409,0Zm-56.661,0c-0.366,5.957 -0.366,12.951 0,18.908l-6.409,0c-0.286,-6.088 -0.286,-12.82 0,-18.908l6.409,0Zm41.353,-21.614c6.084,0.578 10.706,1.519 12.015,2.826c1.307,1.309 2.248,5.931 2.826,12.015l-6.592,0c-0.458,-3.226 -1.086,-5.568 -1.883,-6.366c-0.798,-0.797 -3.14,-1.425 -6.366,-1.883l0,-6.592Zm-32.454,0l0,6.592c-3.226,0.458 -5.568,1.086 -6.366,1.883c-0.797,0.798 -1.425,3.14 -1.883,6.366l-6.592,0c0.578,-6.084 1.519,-10.706 2.826,-12.015c1.309,-1.307 5.931,-2.248 12.015,-2.826Zm6.773,-0.467c6.088,-0.286 12.82,-0.286 18.908,0l0,6.409c-5.957,-0.366 -12.951,-0.366 -18.908,0l0,-6.409Z"}),T("path",{d:"M18.03,29.037l11.007,0l0,-11.007l6.773,0l0,11.007l11.007,0l0,6.773l-11.007,0l0,11.007l-6.773,0l0,-11.007l-11.007,0l0,-6.773Z"})):"gradient"===e?T("svg",{width:24,height:24,viewBox:"0 0 24 24",fillRule:"evenodd"},T("path",{d:"M17.66 8L12 2.35L6.34 8A8.02 8.02 0 0 0 4 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0 0 11.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8zM6 14c.01-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 17.99 12 18 14H6z"})):"documentation"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M106.755 6.245c8.327 8.326 8.327 92.184 0 100.51-8.326 8.327-92.184 8.327-100.51 0-8.327-8.326-8.327-92.184 0-100.51 8.326-8.327 92.184-8.327 100.51 0zm-92.661 93.896C9.279 84 9.781 23.714 15.834 17.661c2.491-2.491 19.588-4.132 26.354-4.712 4.748-.408 10.115.671 14.243 1.23 4.128-.559 9.495-1.638 14.243-1.23 6.766.58 23.863 2.221 26.354 4.712 6.053 6.053 6.791 66.339 1.976 82.48-4.729-1.977-19.708-3.436-26.784-3.853-5.234-.308-11.129.739-15.671 1.354-4.543-.615-10.437-1.662-15.672-1.354-7.075.417-22.054 1.876-26.783 3.853z"}),T("path",{d:"M50.188 32.738c2.252.536 2.252 5.927 0 6.463-2.252.535-24.934.535-27.186 0-2.252-.536-2.252-5.927 0-6.463 2.252-.535 24.934-.535 27.186 0zM50.277 46.846c2.252.535 2.252 5.927 0 6.462-2.252.535-24.934.535-27.186 0-2.252-.535-2.252-5.927 0-6.462 2.252-.535 24.934-.535 27.186 0zM50.277 60.037c2.252.535 2.252 5.927 0 6.462-2.252.535-24.934.535-27.186 0-2.252-.535-2.252-5.927 0-6.462 2.252-.535 24.934-.535 27.186 0zM50.277 73.799c2.252.536 2.252 5.927 0 6.463-2.252.535-24.934.535-27.186 0-2.252-.536-2.252-5.927 0-6.463 2.252-.535 24.934-.535 27.186 0z"}),T("path",{d:"M89.909 32.738c2.252.536 2.252 5.927 0 6.463-2.252.535-24.934.535-27.186 0-2.252-.536-2.252-5.927 0-6.463 2.252-.535 24.934-.535 27.186 0zM89.998 46.846c2.252.535 2.252 5.927 0 6.462-2.252.535-24.934.535-27.186 0-2.252-.535-2.252-5.927 0-6.462 2.252-.535 24.934-.535 27.186 0zM89.998 60.037c2.252.535 2.252 5.927 0 6.462-2.252.535-24.934.535-27.186 0-2.252-.535-2.252-5.927 0-6.462 2.252-.535 24.934-.535 27.186 0z"})):"layout"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M106.719 6.238c8.362 8.362 8.362 92.208 0 100.57-8.362 8.287-92.208 8.287-100.495 0-8.362-8.362-8.362-92.208 0-100.57 8.287-8.286 92.133-8.286 100.495 0zm-9.417 9.417c6.78 6.78 6.78 74.957 0 81.737-6.78 6.78-74.956 6.78-81.661 0-6.78-6.78-6.78-74.957 0-81.737 6.705-6.78 74.881-6.78 81.661 0z"}),T("path",{d:"M93.988 48.877c.602 17.477-.754 37.893-3.993 41.132-3.164 3.164-22.75 4.52-40.002 4.068v-45.2h43.995zm-75.108 0h23.58v44.899c-9.718-.603-17.553-1.808-19.512-3.767-3.24-3.24-4.595-23.655-4.068-41.132zm.377-7.533c.678-9.19 1.883-16.498 3.691-18.306 5.575-5.575 61.472-5.575 67.047 0 1.808 1.808 3.013 9.115 3.691 18.306h-74.43z"})):"shapes"===e?T("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},T("path",{d:"M106.756,6.244C115.081,14.571 115.081,98.429 106.756,106.756C98.429,115.081 14.571,115.081 6.244,106.756C-2.081,98.429 -2.081,14.571 6.244,6.244C14.571,-2.081 98.429,-2.081 106.756,6.244ZM67.875,88.052C67.875,86.977 67.003,86.105 65.928,86.105L47.072,86.105C45.997,86.105 45.125,86.977 45.125,88.052L45.125,91.948C45.125,93.023 45.997,93.896 47.072,93.896L65.928,93.896C67.003,93.896 67.875,93.023 67.875,91.948L67.875,88.052ZM57.899,31.409L59.305,31.409C60.853,31.409 62.11,30.152 62.11,28.604L62.11,28.089L73.263,57.543C73.757,58.333 73.731,59.161 73.731,59.403C73.729,62.659 65.231,69.414 65.375,83.611L47.625,83.611C47.769,69.414 39.271,62.659 39.269,59.403C39.269,59.161 39.243,58.333 39.737,57.543L50.89,28.089L50.89,28.604C50.89,30.152 52.147,31.409 53.695,31.409L55.101,31.409C55.111,35.738 55.142,50.367 55.098,54.109C55.093,54.494 54.907,54.988 54.68,55.45C52.915,56.169 51.669,57.903 51.669,59.925C51.669,62.592 53.834,64.756 56.5,64.756C59.166,64.756 61.331,62.592 61.331,59.925C61.331,57.903 60.085,56.169 58.32,55.45C58.093,54.988 57.907,54.494 57.902,54.109C57.858,50.367 57.889,35.738 57.899,31.409ZM52.227,19.451L52.227,18.881C52.227,17.702 53.185,16.745 54.364,16.745L58.636,16.745C59.815,16.745 60.773,17.702 60.773,18.881L60.773,19.451L88.831,19.451C89.457,17.867 91.002,16.745 92.807,16.745C95.165,16.745 97.08,18.66 97.08,21.018C97.08,23.376 95.165,25.29 92.807,25.29C91.03,25.29 89.505,24.203 88.861,22.658L71.798,22.658C83.83,28.003 92.531,39.501 93.898,53.148L94.93,53.148C96.109,53.148 97.067,54.105 97.067,55.284L97.067,59.557C97.067,60.736 96.109,61.693 94.93,61.693L90.657,61.693C89.478,61.693 88.521,60.736 88.521,59.557L88.521,55.284C88.521,54.105 89.478,53.148 90.657,53.148L90.922,53.148C89.19,37.24 76.627,24.564 60.773,22.659L60.773,23.154C60.773,24.333 59.815,25.29 58.636,25.29L54.364,25.29C53.185,25.29 52.227,24.333 52.227,23.154L52.227,22.688C36.484,24.689 24.036,37.318 22.312,53.148L22.329,53.148C23.508,53.148 24.466,54.105 24.466,55.284L24.466,59.557C24.466,60.736 23.508,61.693 22.329,61.693L18.056,61.693C16.877,61.693 15.92,60.736 15.92,59.557L15.92,55.284C15.92,54.105 16.877,53.148 18.056,53.148L19.336,53.148C20.703,39.501 29.405,28.003 41.437,22.658L24.139,22.658C23.495,24.203 21.97,25.29 20.193,25.29C17.835,25.29 15.92,23.376 15.92,21.018C15.92,18.66 17.835,16.745 20.193,16.745C21.998,16.745 23.543,17.867 24.169,19.451L52.227,19.451Z"})):void 0}a(18);function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var S=wp.element,B=S.Component,D=S.Fragment,E=wp.i18n.__,j=wp.components,R=j.Tooltip,M=j.Button,z=wp.hooks.applyFilters,x=function(e){f()(a,e);var t=C(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=this.props,t=e.onClick,a=e.selectedDevice;return Object(l.createElement)(D,null,Object(l.createElement)("div",{className:"gb-responsive-tabs"},Object(l.createElement)(R,{text:E("Show options for all devices","generateblocks")},Object(l.createElement)(M,{isPressed:"Desktop"===a,onClick:function(){t("Desktop")}},E("Desktop","generateblocks"))),Object(l.createElement)(R,{text:E("Show options for tablet devices","generateblocks")},Object(l.createElement)(M,{isPressed:"Tablet"===a,onClick:function(){t("Tablet")}},E("Tablet","generateblocks"))),Object(l.createElement)(R,{text:E("Show options for mobile devices","generateblocks")},Object(l.createElement)(M,{isPressed:"Mobile"===a,onClick:function(){t("Mobile")}},E("Mobile","generateblocks")))),z("generateblocks.editor.controls","","afterResponsiveTabs",this.props,this.state))}}]),a}(B);a(19);function L(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var P=wp.element.Component,A=wp.i18n,U=A.__,H=A.sprintf,N=A._x,F=wp.components,_=F.ButtonGroup,I=F.Button,G=F.Tooltip,V=function(e){f()(a,e);var t=L(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=this.props,t=e.label,a=e.value,i=e.onClick,r=e.units;return Object(l.createElement)("div",{className:"components-gblocks-units-control-header__units"},Object(l.createElement)("div",{className:"components-gblocks-units-control-label__units"},t),Object(l.createElement)("div",{className:"components-gblocks-control__units"},Object(l.createElement)(_,{className:"components-gblocks-control-buttons__units","aria-label":U("Select Units","generateblocks")},r.map((function(e){var t=e;return"px"===e&&(t=N("Pixel","A size unit for CSS markup","generateblocks")),"em"===e&&(t=N("Em","A size unit for CSS markup","generateblocks")),"%"===e&&(t=N("Percentage","A size unit for CSS markup","generateblocks")),"deg"===e&&(t=N("Degree","A size unit for CSS markup","generateblocks")),Object(l.createElement)(G
|
2 |
-
/* translators: Unit type (px, em, %) */,{text:
|
3 |
-
/* translators: %s: values associated with CSS syntax, 'Pixel', 'Em', 'Percentage' */,"aria-label":H(U("%s Units","generateblocks"),t),onClick:function(){return i(e)}},e))})))))}}]),a}(P),q=a(12),W=a.n(q);function Z(e){for(var t="",a=0,l=Object.entries(e);a<l.length;a++){var i=W()(l[a],2),r=i[0],n=i[1];if(!(n.length<1)){for(var o=r+"{",c=0,s=0,g=Object.entries(n);s<g.length;s++)for(var u=W()(g[s],2),b=(u[0],u[1]),d=0,p=Object.entries(b);d<p.length;d++){var f=W()(p[d],2),h=f[0],m=f[1];(m||0===m)&&(c++,o+=h+": "+m+";")}o+="}",c>0&&(t+=o)}}return t}function K(e,t){return!(!e&&0!==e)&&e+t}function J(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Y=wp.element.Component,Q=wp.hooks.applyFilters,X=function(e){f()(a,e);var t=J(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=this.props.attributes,t=e.uniqueId,a=e.horizontalGap,i=e.verticalGap,r=e.verticalAlignment,n=e.horizontalAlignment,o=[];return o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"align-items":r,"justify-content":n,"margin-left":"-"+a/2+"px","margin-right":"-"+a/2+"px"}],o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{"padding-left":a/2+"px","padding-right":a/2+"px","margin-bottom":K(i,"px")}],o=Q("generateblocks.editor.mainCSS",o,this.props,"grid"),Object(l.createElement)("style",null,Z(o))}}]),a}(Y);function $(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ee=wp.element.Component,te=wp.hooks.applyFilters,ae=function(e){f()(a,e);var t=$(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=[];return e=te("generateblocks.editor.desktopCSS",e,this.props,"grid"),Object(l.createElement)("style",null,Z(e))}}]),a}(ee);function le(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ie=wp.element.Component,re=wp.hooks.applyFilters,ne=function(e){f()(a,e);var t=le(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=this.props.attributes,t=e.uniqueId,a=e.horizontalGapTablet,i=e.verticalGapTablet,r=e.verticalAlignmentTablet,n=e.horizontalAlignmentTablet,o=[];return o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"align-items":"inherit"!==r?r:null,"justify-content":"inherit"!==n?n:null,"margin-left":a||0===a?"-"+a/2+"px":null,"margin-right":a||0===a?"-"+a/2+"px":null}],o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{"padding-left":a||0===a?a/2+"px":null,"padding-right":a||0===a?a/2+"px":null,"margin-bottom":i||0===i?K(i,"px"):null}],o=re("generateblocks.editor.tabletCSS",o,this.props,"grid"),Object(l.createElement)("style",null,Z(o))}}]),a}(ie);function oe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ce=wp.element.Component,se=wp.hooks.applyFilters,ge=function(e){f()(a,e);var t=oe(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=[];return e=se("generateblocks.editor.tabletOnlyCSS",e,this.props,"grid"),Object(l.createElement)("style",null,Z(e))}}]),a}(ce);function ue(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var be=wp.element.Component,de=wp.hooks.applyFilters,pe=function(e){f()(a,e);var t=ue(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=this.props.attributes,t=e.uniqueId,a=e.horizontalGapMobile,i=e.verticalGapMobile,r=e.verticalAlignmentMobile,n=e.horizontalAlignmentMobile,o=[];return o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"align-items":"inherit"!==r?r:null,"justify-content":"inherit"!==n?n:null,"margin-left":a||0===a?"-"+a/2+"px":null,"margin-right":a||0===a?"-"+a/2+"px":null}],o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{"padding-left":a||0===a?a/2+"px":null,"padding-right":a||0===a?a/2+"px":null,"margin-bottom":i||0===i?K(i,"px"):null}],o=de("generateblocks.editor.mobileCSS",o,this.props,"grid"),Object(l.createElement)("style",null,Z(o))}}]),a}(be),fe=a(11),he=a.n(fe);function me(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ke=wp.hooks.applyFilters,ye=function(e){f()(a,e);var t=me(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=this.props,t=e.name,a=e.children;return ke(t,a||"",this.props)}}]),a}(wp.element.Component);function we(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ve=wp.components.PanelBody,Te=wp.element.Component,Oe=wp.hooks.applyFilters,Ce=function(e){f()(a,e);var t=we(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=this.props,t=e.title,a=void 0!==t&&t,i=e.initialOpen,r=void 0!==i&&i,n=e.icon,o=e.className,c=e.id,s=e.state,g=e.showPanel,u=void 0===g||g,b=e.children;if(!Oe("generateblocks.editor.showPanel",u,c,this.props))return null;var d=!0;return""===b&&(d=!1),"object"===he()(b)&&(d=Object.values(b).some((function(e){return null!==e&&!1!==e&&""!==e}))),d?Object(l.createElement)(ye,{name:"generateblocks.panel."+c,props:this.props,state:s},a?Object(l.createElement)(ve,{title:a,initialOpen:r,icon:n,className:o},b):Object(l.createElement)(ve,null,b)):null}}]),a}(Te);function Se(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Be=wp.i18n.__,De=wp.components,Ee=De.TextControl,je=De.SelectControl,Re=De.Placeholder,Me=De.Button,ze=De.ToolbarGroup,xe=De.ToolbarButton,Le=wp.element,Pe=Le.Fragment,Ae=Le.Component,Ue=wp.blockEditor,He=Ue.InspectorControls,Ne=Ue.InnerBlocks,Fe=Ue.BlockControls,_e=Ue.InspectorAdvancedControls,Ie=wp.blocks.createBlock,Ge=wp.hooks.applyFilters,Ve=wp.data,qe=Ve.withSelect,We=Ve.withDispatch,Ze=wp.compose.compose,Ke=/[\s#]/g,Je=[],Ye=function(e){f()(a,e);var t=Se(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).state={selectedLayout:!1,selectedDevice:"Desktop"},e.onLayoutSelect=e.onLayoutSelect.bind(d()(e)),e.getColumnsFromLayout=e.getColumnsFromLayout.bind(d()(e)),e.getLayoutsSelector=e.getLayoutsSelector.bind(d()(e)),e.getDeviceType=e.getDeviceType.bind(d()(e)),e.setDeviceType=e.setDeviceType.bind(d()(e)),e}return u()(a,[{key:"componentDidMount",value:function(){var e=this.props.clientId.substr(2,9).replace("-","");this.props.attributes.uniqueId?Je.includes(this.props.attributes.uniqueId)?(this.props.setAttributes({uniqueId:e}),Je.push(e)):Je.push(this.props.attributes.uniqueId):(this.props.setAttributes({uniqueId:e}),Je.push(e)),void 0!==this.props.attributes.isDynamic&&this.props.attributes.isDynamic||this.props.setAttributes({isDynamic:!0})}},{key:"componentDidUpdate",value:function(){var e=this.props,t=e.attributes,a=e.setAttributes,l=e.clientId;t.columns;if(this.state.selectedLayout){var i=this.getColumnsFromLayout(this.state.selectedLayout);i.forEach((function(e){wp.data.dispatch("core/block-editor").insertBlocks(Ie("generateblocks/container",e),void 0,l,!1)})),a({columns:i.length}),this.setState({selectedLayout:!1})}else{var r=wp.data.select("core/block-editor").getBlocksByClientId(l)[0];if(r)a({columns:r.innerBlocks.length})}}},{key:"getColumnsFromLayout",value:function(e){var t=this,a=[],l=e.split("-"),i=0;return l.forEach((function(){var e={isGrid:!0,gridId:t.props.attributes.uniqueId,paddingTop:generateBlocksStyling.container.gridItemPaddingTop||"0",paddingRight:generateBlocksStyling.container.gridItemPaddingRight||"0",paddingBottom:generateBlocksStyling.container.gridItemPaddingBottom||"0",paddingLeft:generateBlocksStyling.container.gridItemPaddingLeft||"0"};e.width=Number(l[i]),i++,a.push(e)})),a}},{key:"getLayoutsSelector",value:function(){var e=this;return Object(l.createElement)(Re,{label:Be("Grid","generateblocks"),instructions:Be("Select one layout to get started.","generateblocks"),className:"gb-select-layout"},Object(l.createElement)("div",{className:"gb-grid-wrapper-layout-preview"},["100","50-50","33.33-33.33-33.33","25-25-25-25","25-75","75-25","25-25-50","25-50-25","50-25-25","20-60-20","20-20-20-20-20","16.66-16.66-16.66-16.66-16.66-16.66"].map((function(t){var a=e.getColumnsFromLayout(t);return Object(l.createElement)("button",{key:"layout-".concat(t),className:"gb-grid-wrapper-layout-preview-btn",onClick:function(){return e.onLayoutSelect(t)}},a.map((function(e,a){return Object(l.createElement)("div",{key:"layout-".concat(t,"-col-").concat(a),className:v()("gb-col","gb-col-".concat(e.width))})})))}))))}},{key:"onLayoutSelect",value:function(e){this.setState({selectedLayout:e})}},{key:"getDeviceType",value:function(){var e=this.props.deviceType?this.props.deviceType:this.state.selectedDevice;return generateBlocksInfo.syncResponsivePreviews||(e=this.state.selectedDevice),e}},{key:"setDeviceType",value:function(e){generateBlocksInfo.syncResponsivePreviews&&this.props.deviceType?(this.props.setDeviceType(e),this.setState({selectedDevice:e})):this.setState({selectedDevice:e})}},{key:"render",value:function(){var e,t=this,a=this.props,i=a.attributes,n=a.setAttributes,c=a.clientId,s=i.uniqueId,g=i.className,u=i.anchor,b=i.columns,d=i.horizontalGap,p=i.verticalGap,f=i.verticalAlignment,h=i.horizontalGapTablet,m=i.verticalGapTablet,k=i.verticalAlignmentTablet,y=i.horizontalGapMobile,w=i.verticalGapMobile,T=i.verticalAlignmentMobile,C=i.horizontalAlignment,S=i.horizontalAlignmentTablet,B=i.horizontalAlignmentMobile,D=d||0===d?d:"",E=p||0===p?p:"",j=d||0===d?d:"",R=p||0===p?p:"";h&&(j=h),m&&(R=m);var M={className:v()((e={"gb-grid-wrapper":!0},o()(e,"gb-grid-wrapper-".concat(s),!0),o()(e,"".concat(g),void 0!==g),e)),id:u||null};return M=Ge("generateblocks.frontend.htmlAttributes",M,"generateblocks/grid",i),Object(l.createElement)(Pe,null,Object(l.createElement)(Fe,null,Object(l.createElement)(ze,null,Object(l.createElement)(xe,{className:"gblocks-block-control-icon gblocks-add-grid-item",icon:O("addContainer"),label:Be("Add Grid Item","generateblocks"),onClick:function(){wp.data.dispatch("core/block-editor").insertBlocks(Ie("generateblocks/container",{isGrid:!0,gridId:s,paddingTop:generateBlocksStyling.container.gridItemPaddingTop||"0",paddingRight:generateBlocksStyling.container.gridItemPaddingRight||"0",paddingBottom:generateBlocksStyling.container.gridItemPaddingBottom||"0",paddingLeft:generateBlocksStyling.container.gridItemPaddingLeft||"0"}),void 0,c)},showTooltip:!0}))),Object(l.createElement)(He,null,Object(l.createElement)(x,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),Object(l.createElement)(Ce,r()({},this.props,{id:"gridLayout",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(Pe,null,Object(l.createElement)(V,{label:Be("Horizontal Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Ee,{type:"number",value:d||0===d?d:"",min:"0",onChange:function(e){e=e.toString().replace(/-/g,""),n({horizontalGap:e})},onBlur:function(){!d&&generateBlocksDefaults.gridContainer.horizontalGap?n({horizontalGap:0}):n({horizontalGap:parseFloat(d)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Me,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({horizontalGap:generateBlocksDefaults.gridContainer.horizontalGap})}},Be("Reset","generateblocks"))),Object(l.createElement)(V,{label:Be("Vertical Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Ee,{type:"number",value:p||0===p?p:"",min:"0",onChange:function(e){e=e.toString().replace(/-/g,""),n({verticalGap:e})},onBlur:function(){!p&&generateBlocksDefaults.gridContainer.verticalGap?n({verticalGap:0}):n({verticalGap:parseFloat(p)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Me,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({verticalGap:generateBlocksDefaults.gridContainer.verticalGap})}},Be("Reset","generateblocks"))),Object(l.createElement)(je,{label:Be("Vertical Alignment","generateblocks"),value:f,help:Be("Align grid items. Removes same height columns and overrides grid item content alignment.","generateblocks"),options:[{label:Be("Default","generateblocks"),value:""},{label:Be("Top","generateblocks"),value:"flex-start"},{label:Be("Center","generateblocks"),value:"center"},{label:Be("Bottom","generateblocks"),value:"flex-end"}],onChange:function(e){n({verticalAlignment:e})}}),Object(l.createElement)(je,{label:Be("Horizontal Alignment","generateblocks"),value:C,options:[{label:Be("Default","generateblocks"),value:""},{label:Be("Left","generateblocks"),value:"flex-start"},{label:Be("Center","generateblocks"),value:"center"},{label:Be("Right","generateblocks"),value:"flex-end"}],onChange:function(e){n({horizontalAlignment:e})}})),"Tablet"===this.getDeviceType()&&Object(l.createElement)(Pe,null,Object(l.createElement)(V,{label:Be("Horizontal Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Ee,{type:"number",value:h||0===h?h:"",min:"0",placeholder:D,onChange:function(e){e=e.toString().replace(/-/g,""),n({horizontalGapTablet:e})},onBlur:function(){!h&&generateBlocksDefaults.gridContainer.horizontalGapTablet?n({horizontalGapTablet:0}):n({horizontalGapTablet:parseFloat(h)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Me,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({horizontalGapTablet:generateBlocksDefaults.gridContainer.horizontalGapTablet})}},Be("Reset","generateblocks"))),Object(l.createElement)(V,{label:Be("Vertical Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Ee,{type:"number",value:m||0===m?m:"",min:"0",placeholder:E,onChange:function(e){e=e.toString().replace(/-/g,""),n({verticalGapTablet:e})},onBlur:function(){!m&&generateBlocksDefaults.gridContainer.verticalGapTablet?n({verticalGapTablet:0}):n({verticalGapTablet:parseFloat(m)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Me,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({verticalGapTablet:generateBlocksDefaults.gridContainer.verticalGapTablet})}},Be("Reset","generateblocks"))),Object(l.createElement)(je,{label:Be("Vertical Alignment","generateblocks"),help:Be("Align grid items. Removes same height columns and overrides grid item content alignment.","generateblocks"),value:k,options:[{label:Be("Inherit","generateblocks"),value:"inherit"},{label:Be("Default","generateblocks"),value:""},{label:Be("Top","generateblocks"),value:"flex-start"},{label:Be("Center","generateblocks"),value:"center"},{label:Be("Bottom","generateblocks"),value:"flex-end"}],onChange:function(e){n({verticalAlignmentTablet:e})}}),Object(l.createElement)(je,{label:Be("Horizontal Alignment","generateblocks"),value:S,options:[{label:Be("Inherit","generateblocks"),value:"inherit"},{label:Be("Default","generateblocks"),value:""},{label:Be("Left","generateblocks"),value:"flex-start"},{label:Be("Center","generateblocks"),value:"center"},{label:Be("Right","generateblocks"),value:"flex-end"}],onChange:function(e){n({horizontalAlignmentTablet:e})}})),"Mobile"===this.getDeviceType()&&Object(l.createElement)(Pe,null,Object(l.createElement)(V,{label:Be("Horizontal Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Ee,{type:"number",value:y||0===y?y:"",min:"0",placeholder:j,onChange:function(e){e=e.toString().replace(/-/g,""),n({horizontalGapMobile:e})},onBlur:function(){!y&&generateBlocksDefaults.gridContainer.horizontalGapMobile?n({horizontalGapMobile:0}):n({horizontalGapMobile:parseFloat(y)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Me,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({horizontalGapMobile:generateBlocksDefaults.gridContainer.horizontalGapMobile})}},Be("Reset","generateblocks"))),Object(l.createElement)(V,{label:Be("Vertical Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Ee,{type:"number",value:w||0===w?w:"",min:"0",placeholder:R,onChange:function(e){e=e.toString().replace(/-/g,""),n({verticalGapMobile:e})},onBlur:function(){!w&&generateBlocksDefaults.gridContainer.verticalGapMobile?n({verticalGapMobile:0}):n({verticalGapMobile:parseFloat(w)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Me,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({verticalGapMobile:generateBlocksDefaults.gridContainer.verticalGapMobile})}},Be("Reset","generateblocks"))),Object(l.createElement)(je,{label:Be("Vertical Alignment","generateblocks"),help:Be("Align grid items. Removes same height columns and overrides grid item content alignment.","generateblocks"),value:T,options:[{label:Be("Inherit","generateblocks"),value:"inherit"},{label:Be("Default","generateblocks"),value:""},{label:Be("Top","generateblocks"),value:"flex-start"},{label:Be("Center","generateblocks"),value:"center"},{label:Be("Bottom","generateblocks"),value:"flex-end"}],onChange:function(e){n({verticalAlignmentMobile:e})}}),Object(l.createElement)(je,{label:Be("Horizontal Alignment","generateblocks"),value:B,options:[{label:Be("Inherit","generateblocks"),value:"inherit"},{label:Be("Default","generateblocks"),value:""},{label:Be("Left","generateblocks"),value:"flex-start"},{label:Be("Center","generateblocks"),value:"center"},{label:Be("Right","generateblocks"),value:"flex-end"}],onChange:function(e){n({horizontalAlignmentMobile:e})}})),Ge("generateblocks.editor.controls","","gridLayout",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:Be("Documentation","generateblocks"),icon:O("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"gridDocumentation",state:this.state}),Object(l.createElement)("p",null,Be("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/grid/",target:"_blank",rel:"noreferrer noopener"},Be("Visit our documentation","generateblocks")),Ge("generateblocks.editor.controls","","gridDocumentation",this.props,this.state))),Object(l.createElement)(_e,null,Object(l.createElement)(Ee,{label:Be("HTML Anchor"),help:Be("Anchors lets you link directly to a section on a page.","generateblocks"),value:u||"",onChange:function(e){e=e.replace(Ke,"-"),n({anchor:e})}})),Object(l.createElement)(X,this.props),this.props.deviceType&&Object(l.createElement)(Pe,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(ae,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(ne,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(ge,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(pe,this.props)),Object(l.createElement)("div",M,b>0||this.state.selectedLayout?Object(l.createElement)(Pe,null,Object(l.createElement)(Ne,{allowedBlocks:["generateblocks/container"],renderAppender:!1})):this.getLayoutsSelector()))}}]),a}(Ae),Qe=Ze([We((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),qe((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?{deviceType:t()}:{deviceType:null}}))])(Ye),Xe={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},columns:{type:"number",default:""},horizontalGap:{type:"number",default:generateBlocksDefaults.gridContainer.horizontalGap},verticalGap:{type:"number",default:generateBlocksDefaults.gridContainer.verticalGap},verticalAlignment:{type:"string",default:generateBlocksDefaults.gridContainer.verticalAlignment},horizontalGapTablet:{type:"number",default:generateBlocksDefaults.gridContainer.horizontalGapTablet},verticalGapTablet:{type:"number",default:generateBlocksDefaults.gridContainer.verticalGapTablet},verticalAlignmentTablet:{type:"string",default:generateBlocksDefaults.gridContainer.verticalAlignmentTablet},horizontalGapMobile:{type:"number",default:generateBlocksDefaults.gridContainer.horizontalGapMobile},verticalGapMobile:{type:"number",default:generateBlocksDefaults.gridContainer.verticalGapMobile},verticalAlignmentMobile:{type:"string",default:generateBlocksDefaults.gridContainer.verticalAlignmentMobile},horizontalAlignment:{type:"string",default:generateBlocksDefaults.gridContainer.horizontalAlignment},horizontalAlignmentTablet:{type:"string",default:generateBlocksDefaults.gridContainer.horizontalAlignmentTablet},horizontalAlignmentMobile:{type:"string",default:generateBlocksDefaults.gridContainer.horizontalAlignmentMobile},isDynamic:{type:"boolean"},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};function $e(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function et(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?$e(Object(a),!0).forEach((function(t){o()(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):$e(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var tt=wp.hooks.applyFilters,at=wp.blockEditor.InnerBlocks,lt=[{attributes:Xe,supports:{anchor:!1,className:!1,customClassName:!1},migrate:function(e){var t=e.cssClasses?e.cssClasses:e.className,a=e.elementId?e.elementId:e.anchor;return et(et({},e),{},{className:t,anchor:a,cssClasses:"",elementId:""})},save:function(e){var t,a=e.attributes,i=a.uniqueId,r=a.elementId,n=a.cssClasses,c={id:r||void 0,className:v()((t={"gb-grid-wrapper":!0},o()(t,"gb-grid-wrapper-".concat(i),!0),o()(t,"".concat(n),""!==n),t))};return c=tt("generateblocks.frontend.htmlAttributes",c,"generateblocks/grid",a),Object(l.createElement)("div",c,Object(l.createElement)(at.Content,null))}}],it=wp.i18n.__,rt=wp.blocks.registerBlockType,nt=wp.blockEditor.InnerBlocks;rt("generateblocks/grid",{title:it("Grid","generateblocks"),description:it("Create advanced layouts with flexible grids.","generateblocks"),icon:O("grid"),category:"generateblocks",keywords:[it("grid"),it("column"),it("generate")],attributes:Xe,supports:{className:!1},edit:Qe,save:function(){return Object(l.createElement)(nt.Content,null)},deprecated:lt});a(23);var ot=wp.i18n.__,ct=wp.hooks.addFilter,st=wp.element.Fragment,gt=wp.blockEditor,ut=gt.BlockControls,bt=gt.BlockAlignmentToolbar,dt=wp.components,pt=dt.ToolbarGroup,ft=dt.ToolbarButton,ht=wp.compose.createHigherOrderComponent,mt=wp.blocks.cloneBlock,kt=generateBlocksInfo.hasWideAlignSupport,yt=["wide","full"];ct("editor.BlockEdit","generateblocks/container-block-controls",ht((function(e){return function(t){var a=t.name,i=t.attributes,r=t.isSelected,n=t.clientId,o=t.setAttributes,c=i.isGrid,s=i.align,g=!1;return g="function"==typeof wp.data.select("core/block-editor").getBlockParentsByBlockName?wp.data.select("core/block-editor").getBlockParentsByBlockName(n,"generateblocks/grid",!0)[0]:wp.data.select("core/block-editor").getBlockRootClientId(n),Object(l.createElement)(st,null,r&&c&&g&&"generateblocks/container"===a&&Object(l.createElement)(ut,null,Object(l.createElement)(pt,null,Object(l.createElement)(ft,{className:"gblocks-block-control-icon gblocks-add-grid-item",icon:O("addContainer"),label:ot("Duplicate Grid Item","generateblocks"),onClick:function(){var e=wp.data.select("core/block-editor").getBlocksByClientId(n)[0],t=mt(e);wp.data.dispatch("core/block-editor").insertBlocks(t,void 0,g)},showTooltip:!0})),Object(l.createElement)(pt,null,Object(l.createElement)(ft,{className:"gblocks-block-control-icon",icon:O("grid"),label:ot("Select Parent Grid","generateblocks"),onClick:function(){wp.data.dispatch("core/block-editor").selectBlock(g)},showTooltip:!0}))),r&&kt&&!c&&"generateblocks/container"===a&&Object(l.createElement)(ut,null,Object(l.createElement)(bt,{value:s,onChange:function(e){o({align:e}),"full"===e&&o({outerContainer:"full"})},controls:yt})),Object(l.createElement)(e,t))}}),"withAdvancedControls"));var wt=a(10),vt=a.n(wt),Tt=wp.element.createElement;function Ot(e){var t=e.tagName,a=e.htmlAttrs,l=e.children;return Tt(t,a,l)}function Ct(e,t){return e?t||0===t?(e=e.replace("#",""),"rgba("+parseInt(3===e.length?e.slice(0,1).repeat(2):e.slice(0,2),16)+", "+parseInt(3===e.length?e.slice(1,2).repeat(2):e.slice(2,4),16)+", "+parseInt(3===e.length?e.slice(2,3).repeat(2):e.slice(4,6),16)+", "+t+")"):e:""}a(27);function St(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Bt=wp.element.Component,Dt=wp.i18n.__,Et=wp.components,jt=Et.Tooltip,Rt=Et.BaseControl,Mt=Et.ColorPicker,zt=Et.RangeControl,xt=Et.Popover,Lt=Et.Button,Pt=wp.blockEditor.ColorPalette,At=function(e){f()(a,e);var t=St(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).state={colorKey:!1},e}return u()(a,[{key:"render",value:function(){var e=this,t=this.props,a=t.value,i=t.onChange,r=t.onOpacityChange,n=t.label,o=t.alpha,c=void 0!==o&&o,s=t.valueOpacity,g=this.state.colorKey,u=function(){!0===e.state.isVisible&&e.setState({isVisible:!1})};return Object(l.createElement)(Rt,{className:"gblocks-component-color-picker-wrapper"},Object(l.createElement)("div",{className:"gblocks-color-component-label"},Object(l.createElement)("span",null,n)),Object(l.createElement)("div",{className:"gblocks-color-picker-area"},!this.state.isVisible&&Object(l.createElement)("div",{className:v()("components-color-palette__item-wrapper components-circular-option-picker__option-wrapper",a?"":"components-color-palette__custom-color")},Object(l.createElement)(jt,{text:Dt("Choose Color","generateblocks")},Object(l.createElement)("button",{type:"button","aria-expanded":this.state.isVisible,className:"components-color-palette__item components-circular-option-picker__option",onClick:function(){e.setState({isVisible:!0})},"aria-label":Dt("Custom color picker","generateblocks"),style:{color:a?Ct(a,s):"transparent"}},Object(l.createElement)("span",{className:"components-color-palette__custom-color-gradient"})))),this.state.isVisible&&Object(l.createElement)("div",{className:v()("components-color-palette__item-wrapper components-circular-option-picker__option-wrapper",a?"":"components-color-palette__custom-color")},Object(l.createElement)(jt,{text:Dt("Choose Color","generateblocks")},Object(l.createElement)("button",{type:"button","aria-expanded":this.state.isVisible,className:"components-color-palette__item components-circular-option-picker__option",onClick:u,"aria-label":Dt("Custom color picker","generateblocks"),style:{color:a?Ct(a,s):"transparent"}},Object(l.createElement)("span",{className:"components-color-palette__custom-color-gradient"})))),this.state.isVisible&&Object(l.createElement)(xt,{position:"top left",className:"gblocks-component-color-picker",onClose:u},Object(l.createElement)(Rt,{key:g},Object(l.createElement)(Mt,{key:g,color:a||"",onChangeComplete:function(e){i(e.hex)},disableAlpha:!0})),c&&Object(l.createElement)("div",{className:"gblocks-component-color-opacity"},Object(l.createElement)(jt,{text:Dt("Opacity","generateblocks")},O("gradient")),Object(l.createElement)(zt,{value:s||0,onChange:function(e){return r(e)},min:0,max:1,step:.01,initialPosition:1})),Object(l.createElement)(Lt,{isSmall:!0,isSecondary:!0,className:"components-color-clear-color",onClick:function(){i(""),r(1),e.setState({colorKey:!1})}},Dt("Clear Color","generateblocks")),Object(l.createElement)(Rt,{className:"gblocks-component-color-picker-palette"},Object(l.createElement)(Pt,{value:a,onChange:function(t){i(t),e.setState({colorKey:t})},disableCustomColors:!0,clearable:!1})))))}}]),a}(Bt);a(28);function Ut(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Ht=wp.i18n,Nt=Ht.__,Ft=Ht.sprintf,_t=wp.element,It=_t.Component,Gt=_t.Fragment,Vt=wp.components,qt=Vt.Button,Wt=Vt.Tooltip,Zt=function(e){f()(a,e);var t=Ut(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).onChangeTop=e.onChangeTop.bind(d()(e)),e.onChangeRight=e.onChangeRight.bind(d()(e)),e.onChangeBottom=e.onChangeBottom.bind(d()(e)),e.onChangeLeft=e.onChangeLeft.bind(d()(e)),e.onChangeAll=e.onChangeAll.bind(d()(e)),e.syncUnits=e.syncUnits.bind(d()(e)),e.onChangeUnits=e.onChangeUnits.bind(d()(e)),e}return u()(a,[{key:"onReset",value:function(e){this.props.setAttributes(o()({},this.props[e],""))}},{key:"onChangeTop",value:function(e){this.props.setAttributes(o()({},this.props.attrTop,e))}},{key:"onChangeRight",value:function(e){this.props.setAttributes(o()({},this.props.attrRight,e))}},{key:"onChangeBottom",value:function(e){this.props.setAttributes(o()({},this.props.attrBottom,e))}},{key:"onChangeLeft",value:function(e){this.props.setAttributes(o()({},this.props.attrLeft,e))}},{key:"onChangeAll",value:function(e){var t;this.props.setAttributes((t={},o()(t,this.props.attrTop,e),o()(t,this.props.attrRight,e),o()(t,this.props.attrBottom,e),o()(t,this.props.attrLeft,e),t))}},{key:"syncUnits",value:function(){var e,t=[this.props.attributes[this.props.attrTop],this.props.attributes[this.props.attrRight],this.props.attributes[this.props.attrBottom],this.props.attributes[this.props.attrLeft]],a=Math.max.apply(null,t);this.props.setAttributes((e={},o()(e,this.props.attrSyncUnits,!this.props.attributes[this.props.attrSyncUnits]),o()(e,this.props.attrTop,a.toString()),o()(e,this.props.attrRight,a.toString()),o()(e,this.props.attrBottom,a.toString()),o()(e,this.props.attrLeft,a.toString()),e))}},{key:"onChangeUnits",value:function(e){this.props.setAttributes(o()({},this.props.attrUnit,e))}},{key:"render",value:function(){var e=this,t=this.props,a=t.attributes,i=t.label,r=void 0===i?Nt("Margin","generateblocks"):i,n=t.type,o=void 0===n?"margin":n,c=t.attrTop,s=t.attrRight,g=t.attrBottom,u=t.attrLeft,b=t.attrSyncUnits,d=t.attrUnit,p=t.labelTop,f=void 0===p?Nt("Top","generateblocks"):p,h=t.labelRight,m=void 0===h?Nt("Right","generateblocks"):h,k=t.labelBottom,y=void 0===k?Nt("Bottom","generateblocks"):k,w=t.labelLeft,T=void 0===w?Nt("Left","generateblocks"):w,C=t.device,S=t.block,B=t.defaults,D=t.units,E=v()("components-base-control","components-gblocks-dimensions-control"),j="",R="",M="",z="";if("headline"===S&&g.includes("marginBottom")){if("px"===this.props.attributes.marginUnit){var x=document.querySelector(".gb-headline-"+this.props.attributes.uniqueId);x&&(M=parseFloat(window.getComputedStyle(x).marginBottom))}else"em"===this.props.attributes.marginUnit&&void 0!==generateBlocksStyling.headline&&void 0!==generateBlocksStyling.headline[a.element].marginBottom&&generateBlocksStyling.headline[a.element].marginUnit===a.marginUnit&&(M=generateBlocksStyling.headline[a.element].marginBottom);"div"!==this.props.attributes.element&&"span"!==this.props.attributes.element||(M="")}if("Tablet"===C){var L=c.replace("Tablet",""),P=s.replace("Tablet",""),A=g.replace("Tablet",""),U=u.replace("Tablet","");j=a[L]?a[L]:j,R=a[P]?a[P]:R,M=a[A]?a[A]:M,z=a[U]?a[U]:z}if("Mobile"===C){var H=c.replace("Mobile",""),N=s.replace("Mobile",""),F=g.replace("Mobile",""),_=u.replace("Mobile","");a[H+"Tablet"]?j=a[H+"Tablet"]:a[H]&&(j=a[H]),a[N+"Tablet"]?R=a[N+"Tablet"]:a[N]&&(R=a[N]),a[F+"Tablet"]?M=a[F+"Tablet"]:a[F]&&(M=a[F]),a[_+"Tablet"]?z=a[_+"Tablet"]:a[_]&&(z=a[_])}return Object(l.createElement)(Gt,null,Object(l.createElement)("div",{className:E},Object(l.createElement)(V,{label:r,value:void 0!==a[d]?a[d]:"px",units:D,onClick:function(t){if(void 0===a[d])return!1;e.onChangeUnits(t)}}),Object(l.createElement)("div",{className:"components-gblocks-dimensions-control__inputs"},Object(l.createElement)("input",{className:"components-gblocks-dimensions-control__number",placeholder:j,type:"number",onChange:function(t){var a=t.target.value;"padding"===o&&(a=a.toString().replace(/-/g,"")),""!==a?e.props.attributes[e.props.attrSyncUnits]?e.onChangeAll(a):e.onChangeTop(a):e.onReset("attrTop")},onBlur:function(){""===a[c]&&""!==B[c]&&(e.props.attributes[e.props.attrSyncUnits]?e.onChangeAll("0"):e.onChangeTop("0"))},onClick:function(e){e.currentTarget.focus()}
|
4 |
-
/* translators: Dimension label (padding, margin, border) */,"aria-label":
|
5 |
-
/* translators: Dimension label (padding, margin, border) */,"aria-label":
|
6 |
-
/* translators: Dimension label (padding, margin, border) */,"aria-label":
|
7 |
-
/* translators: Dimension label (padding, margin, border) */,"aria-label":Ft(Nt("%s Left","generateblocks"),r),value:a[u]?a[u]:"",min:"padding"===o?0:void 0,"data-attribute":o}),Object(l.createElement)(Wt,{text:a[b]?Nt("Unsync","generateblocks"):Nt("Sync","generateblocks")},Object(l.createElement)(qt,{className:"components-gblocks-dimensions-control_sync","aria-label":Nt("Sync Units","generateblocks"),isPrimary:!!a[b]&&a[b],"aria-pressed":!!a[b]&&a[b],onClick:function(t){return e.syncUnits(t,"")},isSmall:!0},(a[b],O("sync"))))),Object(l.createElement)("div",{className:"components-gblocks-dimensions-control__input-labels"},Object(l.createElement)("span",{className:"components-gblocks-dimensions-control__number-label"},f),Object(l.createElement)("span",{className:"components-gblocks-dimensions-control__number-label"},m),Object(l.createElement)("span",{className:"components-gblocks-dimensions-control__number-label"},y),Object(l.createElement)("span",{className:"components-gblocks-dimensions-control__number-label"},T),Object(l.createElement)("span",{className:"components-gblocks-dimensions-control__number-label"}))))}}]),a}(It),Kt=(a(29),{Roboto:{weight:["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","900","900italic"],fallback:"sans-serif"},"Open Sans":{weight:["300","300italic","regular","italic","600","600italic","700","700italic","800","800italic"],fallback:"sans-serif"},Lato:{weight:["100","100italic","300","300italic","regular","italic","700","700italic","900","900italic"],fallback:"sans-serif"},Montserrat:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Source Sans Pro":{weight:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","900","900italic"],fallback:"sans-serif"},"Roboto Condensed":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"sans-serif"},Oswald:{weight:["200","300","regular","500","600","700"],fallback:"sans-serif"},"Roboto Mono":{weight:["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic"],fallback:"monospace"},Raleway:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Poppins:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Noto Sans":{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Roboto Slab":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"serif"},Merriweather:{weight:["300","300italic","regular","italic","700","700italic","900","900italic"],fallback:"serif"},"PT Sans":{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Ubuntu:{weight:["300","300italic","regular","italic","500","500italic","700","700italic"],fallback:"sans-serif"},"Playfair Display":{weight:["regular","500","600","700","800","900","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"serif"},Muli:{weight:["200","300","regular","500","600","700","800","900","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"sans-serif"},"Open Sans Condensed":{weight:["300","300italic","700"],fallback:"sans-serif"},"PT Serif":{weight:["regular","italic","700","700italic"],fallback:"serif"},Lora:{weight:["regular","500","600","700","italic","500italic","600italic","700italic"],fallback:"serif"},"Slabo 27px":{weight:["regular"],fallback:"serif"},Nunito:{weight:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Noto Sans JP":{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},"Work Sans":{weight:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"sans-serif"},Rubik:{weight:["300","300italic","regular","italic","500","500italic","700","700italic","900","900italic"],fallback:"sans-serif"},"Noto Serif":{weight:["regular","italic","700","700italic"],fallback:"serif"},"Fira Sans":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Titillium Web":{weight:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","900"],fallback:"sans-serif"},Quicksand:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"Noto Sans KR":{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},"Nanum Gothic":{weight:["regular","700","800"],fallback:"sans-serif"},Mukta:{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},"Noto Sans TC":{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},"Nunito Sans":{weight:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Heebo:{weight:["100","300","regular","500","700","800","900"],fallback:"sans-serif"},"PT Sans Narrow":{weight:["regular","700"],fallback:"sans-serif"},Arimo:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Inconsolata:{weight:["regular","700"],fallback:"monospace"},Barlow:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Oxygen:{weight:["300","regular","700"],fallback:"sans-serif"},Dosis:{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},Bitter:{weight:["regular","italic","700"],fallback:"serif"},"Libre Baskerville":{weight:["regular","italic","700"],fallback:"serif"},"Crimson Text":{weight:["regular","italic","600","600italic","700","700italic"],fallback:"serif"},"Libre Franklin":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Karla:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Josefin Sans":{weight:["100","200","300","regular","500","600","700","100italic","200italic","300italic","italic","500italic","600italic","700italic"],fallback:"sans-serif"},Cabin:{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Anton:{weight:["regular"],fallback:"sans-serif"},"Source Code Pro":{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","900","900italic"],fallback:"monospace"},Hind:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},Abel:{weight:["regular"],fallback:"sans-serif"},Amiri:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Fjalla One":{weight:["regular"],fallback:"sans-serif"},Lobster:{weight:["regular"],fallback:"display"},Pacifico:{weight:["regular"],fallback:"handwriting"},"Indie Flower":{weight:["regular"],fallback:"handwriting"},"Exo 2":{weight:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"sans-serif"},"Dancing Script":{weight:["regular","500","600","700"],fallback:"handwriting"},"Source Serif Pro":{weight:["regular","600","700"],fallback:"serif"},Arvo:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Hind Siliguri":{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"Varela Round":{weight:["regular"],fallback:"sans-serif"},"Merriweather Sans":{weight:["300","300italic","regular","italic","700","700italic","800","800italic"],fallback:"sans-serif"},Cairo:{weight:["200","300","regular","600","700","900"],fallback:"sans-serif"},"Yanone Kaffeesatz":{weight:["200","300","regular","500","600","700"],fallback:"sans-serif"},Overpass:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Shadows Into Light":{weight:["regular"],fallback:"handwriting"},"Barlow Condensed":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"IBM Plex Sans":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Comfortaa:{weight:["300","regular","500","600","700"],fallback:"display"},Asap:{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Prompt:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Kanit:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Questrial:{weight:["regular"],fallback:"sans-serif"},Martel:{weight:["200","300","regular","600","700","800","900"],fallback:"serif"},"Archivo Narrow":{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Abril Fatface":{weight:["regular"],fallback:"display"},"Amatic SC":{weight:["regular","700"],fallback:"handwriting"},Acme:{weight:["regular"],fallback:"sans-serif"},Catamaran:{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Fira Sans Condensed":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"EB Garamond":{weight:["regular","500","600","700","800","italic","500italic","600italic","700italic","800italic"],fallback:"serif"},"Bree Serif":{weight:["regular"],fallback:"serif"},"Zilla Slab":{weight:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},"Noto Sans SC":{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},"Cormorant Garamond":{weight:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},"Hind Madurai":{weight:["300","regular","500","600","700"],fallback:"sans-serif"},Teko:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},Righteous:{weight:["regular"],fallback:"display"},Signika:{weight:["300","regular","600","700"],fallback:"sans-serif"},Play:{weight:["regular","700"],fallback:"sans-serif"},Domine:{weight:["regular","700"],fallback:"serif"},Exo:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Russo One":{weight:["regular"],fallback:"sans-serif"},Cinzel:{weight:["regular","700","900"],fallback:"serif"},"PT Sans Caption":{weight:["regular","700"],fallback:"sans-serif"},Rajdhani:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"Maven Pro":{weight:["regular","500","600","700","800","900"],fallback:"sans-serif"},"Fredoka One":{weight:["regular"],fallback:"display"},"IBM Plex Serif":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},"Ubuntu Condensed":{weight:["regular"],fallback:"sans-serif"},"Patua One":{weight:["regular"],fallback:"display"},Caveat:{weight:["regular","700"],fallback:"handwriting"},"Permanent Marker":{weight:["regular"],fallback:"handwriting"},Assistant:{weight:["200","300","regular","600","700","800"],fallback:"sans-serif"},ABeeZee:{weight:["regular","italic"],fallback:"sans-serif"},Vollkorn:{weight:["regular","italic","600","600italic","700","700italic","900","900italic"],fallback:"serif"},"Crete Round":{weight:["regular","italic"],fallback:"serif"},"Special Elite":{weight:["regular"],fallback:"display"},Rokkitt:{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"serif"},Bangers:{weight:["regular"],fallback:"display"},"Francois One":{weight:["regular"],fallback:"sans-serif"},"Barlow Semi Condensed":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Alegreya Sans":{weight:["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Satisfy:{weight:["regular"],fallback:"handwriting"},Tajawal:{weight:["200","300","regular","500","700","800","900"],fallback:"sans-serif"},"Bebas Neue":{weight:["regular"],fallback:"display"},"Patrick Hand":{weight:["regular"],fallback:"handwriting"},Cuprum:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Viga:{weight:["regular"],fallback:"sans-serif"},Courgette:{weight:["regular"],fallback:"handwriting"},"Ropa Sans":{weight:["regular","italic"],fallback:"sans-serif"},"Noto Serif JP":{weight:["200","300","regular","500","600","700","900"],fallback:"serif"},"Gochi Hand":{weight:["regular"],fallback:"handwriting"},Alegreya:{weight:["regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"],fallback:"serif"},"Luckiest Guy":{weight:["regular"],fallback:"display"},"Noticia Text":{weight:["regular","italic","700","700italic"],fallback:"serif"},Tinos:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Passion One":{weight:["regular","700","900"],fallback:"display"},"Alfa Slab One":{weight:["regular"],fallback:"display"},"Nanum Myeongjo":{weight:["regular","700","800"],fallback:"serif"},Monda:{weight:["regular","700"],fallback:"sans-serif"},"Lobster Two":{weight:["regular","italic","700","700italic"],fallback:"display"},Kalam:{weight:["300","regular","700"],fallback:"handwriting"},"Kaushan Script":{weight:["regular"],fallback:"handwriting"},"Archivo Black":{weight:["regular"],fallback:"sans-serif"},Cardo:{weight:["regular","italic","700"],fallback:"serif"},Archivo:{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Great Vibes":{weight:["regular"],fallback:"handwriting"},Volkhov:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Quattrocento Sans":{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"News Cycle":{weight:["regular","700"],fallback:"sans-serif"},"Pathway Gothic One":{weight:["regular"],fallback:"sans-serif"},Sacramento:{weight:["regular"],fallback:"handwriting"},"Frank Ruhl Libre":{weight:["300","regular","500","700","900"],fallback:"serif"},Yantramanav:{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},Cantarell:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Istok Web":{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Didact Gothic":{weight:["regular"],fallback:"sans-serif"},"Concert One":{weight:["regular"],fallback:"display"},Taviraj:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"serif"},"Old Standard TT":{weight:["regular","italic","700"],fallback:"serif"},"Montserrat Alternates":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Economica:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Changa:{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},"Fira Sans Extra Condensed":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Gloria Hallelujah":{weight:["regular"],fallback:"handwriting"},Parisienne:{weight:["regular"],fallback:"handwriting"},Orbitron:{weight:["regular","500","600","700","800","900"],fallback:"sans-serif"},"Asap Condensed":{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Playfair Display SC":{weight:["regular","italic","700","700italic","900","900italic"],fallback:"serif"},Chivo:{weight:["300","300italic","regular","italic","700","700italic","900","900italic"],fallback:"sans-serif"},Sriracha:{weight:["regular"],fallback:"handwriting"},"Hind Vadodara":{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"DM Sans":{weight:["regular","italic","500","500italic","700","700italic"],fallback:"sans-serif"},Prata:{weight:["regular"],fallback:"serif"},Quattrocento:{weight:["regular","700"],fallback:"serif"},Cookie:{weight:["regular"],fallback:"handwriting"},"Poiret One":{weight:["regular"],fallback:"display"},Handlee:{weight:["regular"],fallback:"handwriting"},Sarabun:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"sans-serif"},BenchNine:{weight:["300","regular","700"],fallback:"sans-serif"},Merienda:{weight:["regular","700"],fallback:"handwriting"},"M PLUS 1p":{weight:["100","300","regular","500","700","800","900"],fallback:"sans-serif"},"PT Mono":{weight:["regular"],fallback:"monospace"},Lalezar:{weight:["regular"],fallback:"display"},Sanchez:{weight:["regular","italic"],fallback:"serif"},Lemonada:{weight:["300","regular","500","600","700"],fallback:"display"},"Markazi Text":{weight:["regular","500","600","700"],fallback:"serif"},Neuton:{weight:["200","300","regular","italic","700","800"],fallback:"serif"},"Hind Guntur":{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"Josefin Slab":{weight:["100","100italic","300","300italic","regular","italic","600","600italic","700","700italic"],fallback:"serif"},Philosopher:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Advent Pro":{weight:["100","200","300","regular","500","600","700"],fallback:"sans-serif"},"Do Hyeon":{weight:["regular"],fallback:"sans-serif"},"Sawarabi Mincho":{weight:["regular"],fallback:"sans-serif"},Ruda:{weight:["regular","500","600","700","800","900"],fallback:"sans-serif"},Vidaloka:{weight:["regular"],fallback:"serif"},Ultra:{weight:["regular"],fallback:"serif"},Neucha:{weight:["regular"],fallback:"handwriting"},Arapey:{weight:["regular","italic"],fallback:"serif"},Gudea:{weight:["regular","italic","700"],fallback:"sans-serif"},"Paytone One":{weight:["regular"],fallback:"sans-serif"},Kreon:{weight:["300","regular","500","600","700"],fallback:"serif"},"M PLUS Rounded 1c":{weight:["100","300","regular","500","700","800","900"],fallback:"sans-serif"},"Pragati Narrow":{weight:["regular","700"],fallback:"sans-serif"},"Press Start 2P":{weight:["regular"],fallback:"display"},"Hammersmith One":{weight:["regular"],fallback:"sans-serif"},"Gentium Basic":{weight:["regular","italic","700","700italic"],fallback:"serif"},Monoton:{weight:["regular"],fallback:"display"},Alef:{weight:["regular","700"],fallback:"sans-serif"},Alice:{weight:["regular"],fallback:"serif"},Aclonica:{weight:["regular"],fallback:"sans-serif"},"Sigmar One":{weight:["regular"],fallback:"display"},Spectral:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"serif"},"Marck Script":{weight:["regular"],fallback:"handwriting"},Electrolize:{weight:["regular"],fallback:"sans-serif"},Actor:{weight:["regular"],fallback:"sans-serif"},"Architects Daughter":{weight:["regular"],fallback:"handwriting"},Adamina:{weight:["regular"],fallback:"serif"},"Pontano Sans":{weight:["regular"],fallback:"sans-serif"},Audiowide:{weight:["regular"],fallback:"display"},Inter:{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Cabin Condensed":{weight:["regular","500","600","700"],fallback:"sans-serif"},"Unica One":{weight:["regular"],fallback:"display"},Yellowtail:{weight:["regular"],fallback:"handwriting"},"El Messiri":{weight:["regular","500","600","700"],fallback:"sans-serif"},"Squada One":{weight:["regular"],fallback:"display"},Staatliches:{weight:["regular"],fallback:"display"},Amaranth:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Enriqueta:{weight:["regular","500","600","700"],fallback:"serif"},Mitr:{weight:["200","300","regular","500","600","700"],fallback:"sans-serif"},Glegoo:{weight:["regular","700"],fallback:"serif"},"Bowlby One SC":{weight:["regular"],fallback:"display"},Basic:{weight:["regular"],fallback:"sans-serif"},"Nanum Gothic Coding":{weight:["regular","700"],fallback:"monospace"},Sarala:{weight:["regular","700"],fallback:"sans-serif"},"Bad Script":{weight:["regular"],fallback:"handwriting"},"Homemade Apple":{weight:["regular"],fallback:"handwriting"},Tangerine:{weight:["regular","700"],fallback:"handwriting"},Cormorant:{weight:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},"Oleo Script":{weight:["regular","700"],fallback:"display"},Karma:{weight:["300","regular","500","600","700"],fallback:"serif"},"Julius Sans One":{weight:["regular"],fallback:"sans-serif"},"Carter One":{weight:["regular"],fallback:"display"},Khand:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"Nanum Pen Script":{weight:["regular"],fallback:"handwriting"},Cambay:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Fugaz One":{weight:["regular"],fallback:"display"},"Shadows Into Light Two":{weight:["regular"],fallback:"handwriting"},Coda:{weight:["regular","800"],fallback:"display"},"Signika Negative":{weight:["300","regular","600","700"],fallback:"sans-serif"},Pridi:{weight:["200","300","regular","500","600","700"],fallback:"serif"},Playball:{weight:["regular"],fallback:"display"},Saira:{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Rock Salt":{weight:["regular"],fallback:"handwriting"},"Gothic A1":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Gentium Book Basic":{weight:["regular","italic","700","700italic"],fallback:"serif"},Allura:{weight:["regular"],fallback:"handwriting"},"Yeseva One":{weight:["regular"],fallback:"display"},"DM Serif Text":{weight:["regular","italic"],fallback:"serif"},Lusitana:{weight:["regular","700"],fallback:"serif"},Jura:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},Average:{weight:["regular"],fallback:"serif"},Yrsa:{weight:["300","regular","500","600","700"],fallback:"serif"},"Sorts Mill Goudy":{weight:["regular","italic"],fallback:"serif"},"Cantata One":{weight:["regular"],fallback:"serif"},Armata:{weight:["regular"],fallback:"sans-serif"},Scada:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Abhaya Libre":{weight:["regular","500","600","700","800"],fallback:"serif"},Damion:{weight:["regular"],fallback:"handwriting"},Marmelad:{weight:["regular"],fallback:"sans-serif"},Varela:{weight:["regular"],fallback:"sans-serif"},Quantico:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Covered By Your Grace":{weight:["regular"],fallback:"handwriting"},"PT Serif Caption":{weight:["regular","italic"],fallback:"serif"},Ramabhadra:{weight:["regular"],fallback:"sans-serif"},Unna:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Encode Sans":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},Arsenal:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Black Han Sans":{weight:["regular"],fallback:"sans-serif"},"Sawarabi Gothic":{weight:["regular"],fallback:"sans-serif"},"Ubuntu Mono":{weight:["regular","italic","700","700italic"],fallback:"monospace"},"Pinyon Script":{weight:["regular"],fallback:"handwriting"},"Black Ops One":{weight:["regular"],fallback:"display"},Marcellus:{weight:["regular"],fallback:"serif"},"Fauna One":{weight:["regular"],fallback:"serif"},"Lilita One":{weight:["regular"],fallback:"display"},Sintony:{weight:["regular","700"],fallback:"sans-serif"},Khula:{weight:["300","regular","600","700","800"],fallback:"sans-serif"},Jaldi:{weight:["regular","700"],fallback:"sans-serif"},"Rubik Mono One":{weight:["regular"],fallback:"sans-serif"},Allan:{weight:["regular","700"],fallback:"display"},"Reenie Beanie":{weight:["regular"],fallback:"handwriting"},"Alex Brush":{weight:["regular"],fallback:"handwriting"},"Mr Dafoe":{weight:["regular"],fallback:"handwriting"},Palanquin:{weight:["100","200","300","regular","500","600","700"],fallback:"sans-serif"},"Encode Sans Condensed":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},Antic:{weight:["regular"],fallback:"sans-serif"},Knewave:{weight:["regular"],fallback:"display"},"Caveat Brush":{weight:["regular"],fallback:"handwriting"},Rambla:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Spinnaker:{weight:["regular"],fallback:"sans-serif"},"IBM Plex Mono":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"monospace"},Michroma:{weight:["regular"],fallback:"sans-serif"},"Nothing You Could Do":{weight:["regular"],fallback:"handwriting"},"Kelly Slab":{weight:["regular"],fallback:"display"},Boogaloo:{weight:["regular"],fallback:"display"},Chewy:{weight:["regular"],fallback:"display"},"ZCOOL XiaoWei":{weight:["regular"],fallback:"serif"},Rancho:{weight:["regular"],fallback:"handwriting"},"Noto Serif SC":{weight:["200","300","regular","500","600","700","900"],fallback:"serif"},Pangolin:{weight:["regular"],fallback:"handwriting"},"Fira Mono":{weight:["regular","500","700"],fallback:"monospace"},Forum:{weight:["regular"],fallback:"display"},"Antic Slab":{weight:["regular"],fallback:"serif"},"Alegreya Sans SC":{weight:["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Anonymous Pro":{weight:["regular","italic","700","700italic"],fallback:"monospace"},Lateef:{weight:["regular"],fallback:"handwriting"},"Annie Use Your Telescope":{weight:["regular"],fallback:"handwriting"},"Noto Sans HK":{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},"Martel Sans":{weight:["200","300","regular","600","700","800","900"],fallback:"sans-serif"},"Chakra Petch":{weight:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Rufina:{weight:["regular","700"],fallback:"serif"},"Bai Jamjuree":{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Scheherazade:{weight:["regular","700"],fallback:"serif"},Share:{weight:["regular","italic","700","700italic"],fallback:"display"},"Tenor Sans":{weight:["regular"],fallback:"sans-serif"},"DM Serif Display":{weight:["regular","italic"],fallback:"serif"},VT323:{weight:["regular"],fallback:"monospace"},"Share Tech Mono":{weight:["regular"],fallback:"monospace"},Mali:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"handwriting"},Cousine:{weight:["regular","italic","700","700italic"],fallback:"monospace"},"Cinzel Decorative":{weight:["regular","700","900"],fallback:"display"},Overlock:{weight:["regular","italic","700","700italic","900","900italic"],fallback:"display"},"Arbutus Slab":{weight:["regular"],fallback:"serif"},"Reem Kufi":{weight:["regular"],fallback:"sans-serif"},"Cabin Sketch":{weight:["regular","700"],fallback:"display"},"Saira Extra Condensed":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},Eczar:{weight:["regular","500","600","700","800"],fallback:"serif"},"Leckerli One":{weight:["regular"],fallback:"handwriting"},Krub:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Berkshire Swash":{weight:["regular"],fallback:"handwriting"},"Fredericka the Great":{weight:["regular"],fallback:"display"},"Saira Condensed":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Overpass Mono":{weight:["300","regular","600","700"],fallback:"monospace"},Itim:{weight:["regular"],fallback:"handwriting"},Rasa:{weight:["300","regular","500","600","700"],fallback:"serif"},Bevan:{weight:["regular"],fallback:"display"},"Arima Madurai":{weight:["100","200","300","regular","500","700","800","900"],fallback:"display"},Italianno:{weight:["regular"],fallback:"handwriting"},"Coda Caption":{weight:["800"],fallback:"sans-serif"},Shrikhand:{weight:["regular"],fallback:"display"},"Just Another Hand":{weight:["regular"],fallback:"handwriting"},"Saira Semi Condensed":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},Almarai:{weight:["300","regular","700","800"],fallback:"sans-serif"},"Mukta Malar":{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},Oranienbaum:{weight:["regular"],fallback:"serif"},Nobile:{weight:["regular","italic","500","500italic","700","700italic"],fallback:"sans-serif"},Candal:{weight:["regular"],fallback:"sans-serif"},"Six Caps":{weight:["regular"],fallback:"sans-serif"},"Space Mono":{weight:["regular","italic","700","700italic"],fallback:"monospace"},Capriola:{weight:["regular"],fallback:"sans-serif"},Biryani:{weight:["200","300","regular","600","700","800","900"],fallback:"sans-serif"},Halant:{weight:["300","regular","500","600","700"],fallback:"serif"},Allerta:{weight:["regular"],fallback:"sans-serif"},Trirong:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"serif"},Mallanna:{weight:["regular"],fallback:"sans-serif"},Aldrich:{weight:["regular"],fallback:"sans-serif"},Aleo:{weight:["300","300italic","regular","italic","700","700italic"],fallback:"serif"},"Suez One":{weight:["regular"],fallback:"serif"},Caudex:{weight:["regular","italic","700","700italic"],fallback:"serif"},Niconne:{weight:["regular"],fallback:"handwriting"},"Mrs Saint Delafield":{weight:["regular"],fallback:"handwriting"},Gruppo:{weight:["regular"],fallback:"display"},"Miriam Libre":{weight:["regular","700"],fallback:"sans-serif"},"Contrail One":{weight:["regular"],fallback:"display"},"Days One":{weight:["regular"],fallback:"sans-serif"},"Allerta Stencil":{weight:["regular"],fallback:"sans-serif"},"Average Sans":{weight:["regular"],fallback:"sans-serif"},"Coming Soon":{weight:["regular"],fallback:"handwriting"},Pattaya:{weight:["regular"],fallback:"sans-serif"},"Londrina Solid":{weight:["100","300","regular","900"],fallback:"display"},Bungee:{weight:["regular"],fallback:"display"},Coustard:{weight:["regular","900"],fallback:"serif"},"Marcellus SC":{weight:["regular"],fallback:"serif"},"Racing Sans One":{weight:["regular"],fallback:"display"},Bentham:{weight:["regular"],fallback:"serif"},"Bungee Inline":{weight:["regular"],fallback:"display"},Magra:{weight:["regular","700"],fallback:"sans-serif"},Judson:{weight:["regular","italic","700"],fallback:"serif"},Rochester:{weight:["regular"],fallback:"handwriting"},"Grand Hotel":{weight:["regular"],fallback:"handwriting"},Gelasio:{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},Yesteryear:{weight:["regular"],fallback:"handwriting"},Syncopate:{weight:["regular","700"],fallback:"sans-serif"},Hanuman:{weight:["regular","700"],fallback:"serif"},"Kosugi Maru":{weight:["regular"],fallback:"sans-serif"},Copse:{weight:["regular"],fallback:"serif"},Mada:{weight:["200","300","regular","500","600","700","900"],fallback:"sans-serif"},"Titan One":{weight:["regular"],fallback:"display"},"Noto Serif TC":{weight:["200","300","regular","500","600","700","900"],fallback:"serif"},Kameron:{weight:["regular","700"],fallback:"serif"},Telex:{weight:["regular"],fallback:"sans-serif"},Norican:{weight:["regular"],fallback:"handwriting"},Maitree:{weight:["200","300","regular","500","600","700"],fallback:"serif"},"IM Fell Double Pica":{weight:["regular","italic"],fallback:"serif"},Molengo:{weight:["regular"],fallback:"sans-serif"},Sunflower:{weight:["300","500","700"],fallback:"sans-serif"},"Alegreya SC":{weight:["regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"],fallback:"serif"},"Red Hat Display":{weight:["regular","italic","500","500italic","700","700italic","900","900italic"],fallback:"sans-serif"},Jua:{weight:["regular"],fallback:"sans-serif"},Ovo:{weight:["regular"],fallback:"serif"},"IBM Plex Sans Condensed":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Nixie One":{weight:["regular"],fallback:"display"},Aladin:{weight:["regular"],fallback:"handwriting"},Arizonia:{weight:["regular"],fallback:"handwriting"},"Bubblegum Sans":{weight:["regular"],fallback:"display"},"Changa One":{weight:["regular","italic"],fallback:"display"},"Lexend Deca":{weight:["regular"],fallback:"sans-serif"},Sofia:{weight:["regular"],fallback:"handwriting"},"Jockey One":{weight:["regular"],fallback:"sans-serif"},Suranna:{weight:["regular"],fallback:"serif"},Amethysta:{weight:["regular"],fallback:"serif"},Schoolbell:{weight:["regular"],fallback:"handwriting"},"Nanum Brush Script":{weight:["regular"],fallback:"handwriting"},"Cedarville Cursive":{weight:["regular"],fallback:"handwriting"},"Cutive Mono":{weight:["regular"],fallback:"monospace"},Delius:{weight:["regular"],fallback:"handwriting"},"Raleway Dots":{weight:["regular"],fallback:"display"},Graduate:{weight:["regular"],fallback:"display"},Lustria:{weight:["regular"],fallback:"serif"},"Mukta Vaani":{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},Kadwa:{weight:["regular","700"],fallback:"serif"},"Rozha One":{weight:["regular"],fallback:"serif"},Buenard:{weight:["regular","700"],fallback:"serif"},Cambo:{weight:["regular"],fallback:"serif"},Marvel:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Krona One":{weight:["regular"],fallback:"sans-serif"},"Carrois Gothic":{weight:["regular"],fallback:"sans-serif"},Carme:{weight:["regular"],fallback:"sans-serif"},"Slabo 13px":{weight:["regular"],fallback:"serif"},Lemon:{weight:["regular"],fallback:"display"},"Love Ya Like A Sister":{weight:["regular"],fallback:"display"},Rosario:{weight:["300","regular","500","600","700","300italic","italic","500italic","600italic","700italic"],fallback:"sans-serif"},"Merienda One":{weight:["regular"],fallback:"handwriting"},"Public Sans":{weight:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"sans-serif"},"Petit Formal Script":{weight:["regular"],fallback:"handwriting"},"Ceviche One":{weight:["regular"],fallback:"display"},Voltaire:{weight:["regular"],fallback:"sans-serif"},Fresca:{weight:["regular"],fallback:"sans-serif"},"Averia Serif Libre":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"display"},Rye:{weight:["regular"],fallback:"display"},"Noto Serif KR":{weight:["200","300","regular","500","600","700","900"],fallback:"serif"},"Chelsea Market":{weight:["regular"],fallback:"display"},Calligraffitti:{weight:["regular"],fallback:"handwriting"},"Freckle Face":{weight:["regular"],fallback:"display"},"Duru Sans":{weight:["regular"],fallback:"sans-serif"},Trocchi:{weight:["regular"],fallback:"serif"},Metrophobic:{weight:["regular"],fallback:"sans-serif"},Mate:{weight:["regular","italic"],fallback:"serif"},Harmattan:{weight:["regular"],fallback:"sans-serif"},"Gilda Display":{weight:["regular"],fallback:"serif"},"Cormorant Infant":{weight:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},Spartan:{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Oxygen Mono":{weight:["regular"],fallback:"monospace"},Chonburi:{weight:["regular"],fallback:"display"},"Goudy Bookletter 1911":{weight:["regular"],fallback:"serif"},Sansita:{weight:["regular","italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Emilys Candy":{weight:["regular"],fallback:"display"},Amiko:{weight:["regular","600","700"],fallback:"sans-serif"},Kristi:{weight:["regular"],fallback:"handwriting"},"Palanquin Dark":{weight:["regular","500","600","700"],fallback:"sans-serif"},Lekton:{weight:["regular","italic","700"],fallback:"sans-serif"},Cutive:{weight:["regular"],fallback:"serif"},"Herr Von Muellerhoff":{weight:["regular"],fallback:"handwriting"},"GFS Didot":{weight:["regular"],fallback:"serif"},Radley:{weight:["regular","italic"],fallback:"serif"},"Sue Ellen Francisco":{weight:["regular"],fallback:"handwriting"},Pompiere:{weight:["regular"],fallback:"display"},Gabriela:{weight:["regular"],fallback:"serif"},Niramit:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Seaweed Script":{weight:["regular"],fallback:"display"},"Sedgwick Ave":{weight:["regular"],fallback:"handwriting"},Federo:{weight:["regular"],fallback:"sans-serif"},McLaren:{weight:["regular"],fallback:"display"},"IM Fell DW Pica":{weight:["regular","italic"],fallback:"serif"},Sniglet:{weight:["regular","800"],fallback:"display"},"Mr De Haviland":{weight:["regular"],fallback:"handwriting"},Shojumaru:{weight:["regular"],fallback:"display"},Poly:{weight:["regular","italic"],fallback:"serif"},Belleza:{weight:["regular"],fallback:"sans-serif"},Faustina:{weight:["regular","500","600","700","italic","500italic","600italic","700italic"],fallback:"serif"},"IM Fell English":{weight:["regular","italic"],fallback:"serif"},"Rammetto One":{weight:["regular"],fallback:"display"},Amita:{weight:["regular","700"],fallback:"handwriting"},Inder:{weight:["regular"],fallback:"sans-serif"},"Antic Didone":{weight:["regular"],fallback:"serif"},"Alike Angular":{weight:["regular"],fallback:"serif"},Montez:{weight:["regular"],fallback:"handwriting"},K2D:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"sans-serif"},UnifrakturMaguntia:{weight:["regular"],fallback:"display"},Gurajada:{weight:["regular"],fallback:"serif"},"Proza Libre":{weight:["regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"sans-serif"},Athiti:{weight:["200","300","regular","500","600","700"],fallback:"sans-serif"},Andada:{weight:["regular"],fallback:"serif"},"Liu Jian Mao Cao":{weight:["regular"],fallback:"handwriting"},Megrim:{weight:["regular"],fallback:"display"},"Vast Shadow":{weight:["regular"],fallback:"display"},Wallpoet:{weight:["regular"],fallback:"display"},Unkempt:{weight:["regular","700"],fallback:"display"},"Fanwood Text":{weight:["regular","italic"],fallback:"serif"},"Doppio One":{weight:["regular"],fallback:"sans-serif"},"Comic Neue":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"handwriting"},Corben:{weight:["regular","700"],fallback:"display"},Frijole:{weight:["regular"],fallback:"display"},Balthazar:{weight:["regular"],fallback:"serif"},Mirza:{weight:["regular","500","600","700"],fallback:"display"},"IM Fell French Canon SC":{weight:["regular"],fallback:"serif"},Brawler:{weight:["regular"],fallback:"serif"},"Oleo Script Swash Caps":{weight:["regular","700"],fallback:"display"},Mandali:{weight:["regular"],fallback:"sans-serif"},Convergence:{weight:["regular"],fallback:"sans-serif"},Fondamento:{weight:["regular","italic"],fallback:"handwriting"},Alike:{weight:["regular"],fallback:"serif"},Baumans:{weight:["regular"],fallback:"display"},Esteban:{weight:["regular"],fallback:"serif"},"Gravitas One":{weight:["regular"],fallback:"display"},Anaheim:{weight:["regular"],fallback:"sans-serif"},"Wendy One":{weight:["regular"],fallback:"sans-serif"},"Stardos Stencil":{weight:["regular","700"],fallback:"display"},"Spicy Rice":{weight:["regular"],fallback:"display"},Rakkas:{weight:["regular"],fallback:"display"},"La Belle Aurore":{weight:["regular"],fallback:"handwriting"},"Secular One":{weight:["regular"],fallback:"sans-serif"},Belgrano:{weight:["regular"],fallback:"serif"},"Bungee Shade":{weight:["regular"],fallback:"display"},"Crafty Girls":{weight:["regular"],fallback:"handwriting"},Battambang:{weight:["regular","700"],fallback:"display"},Quando:{weight:["regular"],fallback:"serif"},"Mouse Memoirs":{weight:["regular"],fallback:"sans-serif"},Gugi:{weight:["regular"],fallback:"display"},"Faster One":{weight:["regular"],fallback:"display"},"B612 Mono":{weight:["regular","italic","700","700italic"],fallback:"monospace"},Limelight:{weight:["regular"],fallback:"display"},"Short Stack":{weight:["regular"],fallback:"handwriting"},"Mountains of Christmas":{weight:["regular","700"],fallback:"display"},"Share Tech":{weight:["regular"],fallback:"sans-serif"},Laila:{weight:["300","regular","500","600","700"],fallback:"serif"},Literata:{weight:["regular","500","600","700","italic","500italic","600italic","700italic"],fallback:"serif"},"Cormorant SC":{weight:["300","regular","500","600","700"],fallback:"serif"},"Fjord One":{weight:["regular"],fallback:"serif"},Podkova:{weight:["regular","500","600","700","800"],fallback:"serif"},Homenaje:{weight:["regular"],fallback:"sans-serif"},"Walter Turncoat":{weight:["regular"],fallback:"handwriting"},Sen:{weight:["regular","700","800"],fallback:"sans-serif"},"Patrick Hand SC":{weight:["regular"],fallback:"handwriting"},Voces:{weight:["regular"],fallback:"display"},Qwigley:{weight:["regular"],fallback:"handwriting"},"Happy Monkey":{weight:["regular"],fallback:"display"},"Rouge Script":{weight:["regular"],fallback:"handwriting"},"Baloo Chettan 2":{weight:["regular","500","600","700","800"],fallback:"display"},NTR:{weight:["regular"],fallback:"sans-serif"},Skranji:{weight:["regular","700"],fallback:"display"},Strait:{weight:["regular"],fallback:"sans-serif"},"Dawning of a New Day":{weight:["regular"],fallback:"handwriting"},Iceland:{weight:["regular"],fallback:"display"},"Expletus Sans":{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"display"},"Montserrat Subrayada":{weight:["regular","700"],fallback:"sans-serif"},Oregano:{weight:["regular","italic"],fallback:"display"},"Give You Glory":{weight:["regular"],fallback:"handwriting"},Alata:{weight:["regular"],fallback:"sans-serif"},Puritan:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Mako:{weight:["regular"],fallback:"sans-serif"},Andika:{weight:["regular"],fallback:"sans-serif"},"Cormorant Upright":{weight:["300","regular","500","600","700"],fallback:"serif"},Zeyada:{weight:["regular"],fallback:"handwriting"},"Bowlby One":{weight:["regular"],fallback:"display"},"Aref Ruqaa":{weight:["regular","700"],fallback:"serif"},Numans:{weight:["regular"],fallback:"sans-serif"},Kurale:{weight:["regular"],fallback:"serif"},Spirax:{weight:["regular"],fallback:"display"},"Clicker Script":{weight:["regular"],fallback:"handwriting"},"Waiting for the Sunrise":{weight:["regular"],fallback:"handwriting"},"Holtwood One SC":{weight:["regular"],fallback:"serif"},Katibeh:{weight:["regular"],fallback:"display"},"Carrois Gothic SC":{weight:["regular"],fallback:"sans-serif"},Livvic:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","900","900italic"],fallback:"sans-serif"},Eater:{weight:["regular"],fallback:"display"},"Fontdiner Swanky":{weight:["regular"],fallback:"display"},"Finger Paint":{weight:["regular"],fallback:"display"},Bellefair:{weight:["regular"],fallback:"serif"},"Wire One":{weight:["regular"],fallback:"sans-serif"},Kosugi:{weight:["regular"],fallback:"sans-serif"},Charm:{weight:["regular","700"],fallback:"handwriting"},"Delius Swash Caps":{weight:["regular"],fallback:"handwriting"},"Vesper Libre":{weight:["regular","500","700","900"],fallback:"serif"},"Red Hat Text":{weight:["regular","italic","500","500italic","700","700italic"],fallback:"sans-serif"},Gafata:{weight:["regular"],fallback:"sans-serif"},"Averia Sans Libre":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"display"},"Denk One":{weight:["regular"],fallback:"sans-serif"},Geo:{weight:["regular","italic"],fallback:"sans-serif"},Tauri:{weight:["regular"],fallback:"sans-serif"},"Cherry Swash":{weight:["regular","700"],fallback:"display"},Codystar:{weight:["300","regular"],fallback:"display"},"Cantora One":{weight:["regular"],fallback:"sans-serif"},"Encode Sans Semi Condensed":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Nova Square":{weight:["regular"],fallback:"display"},BioRhyme:{weight:["200","300","regular","700","800"],fallback:"serif"},Timmana:{weight:["regular"],fallback:"sans-serif"},Atma:{weight:["300","regular","500","600","700"],fallback:"display"},Tienne:{weight:["regular","700","900"],fallback:"serif"},Meddon:{weight:["regular"],fallback:"handwriting"},Galada:{weight:["regular"],fallback:"display"},Padauk:{weight:["regular","700"],fallback:"sans-serif"},"Loved by the King":{weight:["regular"],fallback:"handwriting"},"The Girl Next Door":{weight:["regular"],fallback:"handwriting"},"Darker Grotesque":{weight:["300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Life Savers":{weight:["regular","700","800"],fallback:"display"},Bilbo:{weight:["regular"],fallback:"handwriting"},Shanti:{weight:["regular"],fallback:"sans-serif"},"Headland One":{weight:["regular"],fallback:"serif"},"Euphoria Script":{weight:["regular"],fallback:"handwriting"},Imprima:{weight:["regular"],fallback:"sans-serif"},"Aguafina Script":{weight:["regular"],fallback:"handwriting"},"Baloo 2":{weight:["regular","500","600","700","800"],fallback:"display"},"Over the Rainbow":{weight:["regular"],fallback:"handwriting"},Sarpanch:{weight:["regular","500","600","700","800","900"],fallback:"sans-serif"},Orienta:{weight:["regular"],fallback:"sans-serif"},"Spectral SC":{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"serif"},"Port Lligat Sans":{weight:["regular"],fallback:"sans-serif"},Artifika:{weight:["regular"],fallback:"serif"},Ledger:{weight:["regular"],fallback:"serif"},Ruluko:{weight:["regular"],fallback:"sans-serif"},Sail:{weight:["regular"],fallback:"display"},Alatsi:{weight:["regular"],fallback:"sans-serif"},"Sonsie One":{weight:["regular"],fallback:"display"},"Bilbo Swash Caps":{weight:["regular"],fallback:"handwriting"},Slackey:{weight:["regular"],fallback:"display"},Salsa:{weight:["regular"],fallback:"display"},Rationale:{weight:["regular"],fallback:"sans-serif"},"Hepta Slab":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"serif"},Nosifer:{weight:["regular"],fallback:"display"},Dekko:{weight:["regular"],fallback:"handwriting"},"Encode Sans Expanded":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Lily Script One":{weight:["regular"],fallback:"display"},"Zilla Slab Highlight":{weight:["regular","700"],fallback:"display"},Dokdo:{weight:["regular"],fallback:"handwriting"},"Kotta One":{weight:["regular"],fallback:"serif"},"Macondo Swash Caps":{weight:["regular"],fallback:"display"},"Encode Sans Semi Expanded":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Prosto One":{weight:["regular"],fallback:"display"},"Trade Winds":{weight:["regular"],fallback:"display"},Farsan:{weight:["regular"],fallback:"display"},Manuale:{weight:["regular","500","600","700","italic","500italic","600italic","700italic"],fallback:"serif"},Creepster:{weight:["regular"],fallback:"display"},"Medula One":{weight:["regular"],fallback:"display"},Ranchers:{weight:["regular"],fallback:"display"},"David Libre":{weight:["regular","500","700"],fallback:"serif"},"Libre Barcode 39":{weight:["regular"],fallback:"display"},"Vampiro One":{weight:["regular"],fallback:"display"},Metamorphous:{weight:["regular"],fallback:"display"},"Bubbler One":{weight:["regular"],fallback:"sans-serif"},"Nova Mono":{weight:["regular"],fallback:"monospace"},"Princess Sofia":{weight:["regular"],fallback:"handwriting"},"Just Me Again Down Here":{weight:["regular"],fallback:"handwriting"},Notable:{weight:["regular"],fallback:"sans-serif"},"Fascinate Inline":{weight:["regular"],fallback:"display"},Vibur:{weight:["regular"],fallback:"handwriting"},"Vollkorn SC":{weight:["regular","600","700","900"],fallback:"serif"},Crushed:{weight:["regular"],fallback:"display"},Sumana:{weight:["regular","700"],fallback:"serif"},Elsie:{weight:["regular","900"],fallback:"display"},Ranga:{weight:["regular","700"],fallback:"display"},"Port Lligat Slab":{weight:["regular"],fallback:"serif"},Amarante:{weight:["regular"],fallback:"display"},"Ruslan Display":{weight:["regular"],fallback:"display"},"Germania One":{weight:["regular"],fallback:"display"},"Sirin Stencil":{weight:["regular"],fallback:"display"},Pavanam:{weight:["regular"],fallback:"sans-serif"},Peralta:{weight:["regular"],fallback:"display"},"Scope One":{weight:["regular"],fallback:"serif"},Jomolhari:{weight:["regular"],fallback:"serif"},Kranky:{weight:["regular"],fallback:"display"},"Yatra One":{weight:["regular"],fallback:"display"},"Jacques Francois Shadow":{weight:["regular"],fallback:"display"},Ribeye:{weight:["regular"],fallback:"display"},"Averia Libre":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"display"},"Saira Stencil One":{weight:["regular"],fallback:"display"},"Cherry Cream Soda":{weight:["regular"],fallback:"display"},"Mukta Mahee":{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},Srisakdi:{weight:["regular","700"],fallback:"display"},Trochut:{weight:["regular","italic","700"],fallback:"display"},Coiny:{weight:["regular"],fallback:"display"},"Ma Shan Zheng":{weight:["regular"],fallback:"handwriting"},Asul:{weight:["regular","700"],fallback:"sans-serif"},Ewert:{weight:["regular"],fallback:"display"},Arya:{weight:["regular","700"],fallback:"sans-serif"},"Hanalei Fill":{weight:["regular"],fallback:"display"},Grenze:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"serif"},"Ribeye Marrow":{weight:["regular"],fallback:"display"},"IM Fell English SC":{weight:["regular"],fallback:"serif"},"Chau Philomene One":{weight:["regular","italic"],fallback:"sans-serif"},Sarina:{weight:["regular"],fallback:"display"},Chicle:{weight:["regular"],fallback:"display"},Manjari:{weight:["100","regular","700"],fallback:"sans-serif"},Montaga:{weight:["regular"],fallback:"serif"},Italiana:{weight:["regular"],fallback:"serif"},Akronim:{weight:["regular"],fallback:"display"},Habibi:{weight:["regular"],fallback:"serif"},Englebert:{weight:["regular"],fallback:"sans-serif"},Dynalight:{weight:["regular"],fallback:"display"},"Mate SC":{weight:["regular"],fallback:"serif"},"Henny Penny":{weight:["regular"],fallback:"display"},"Sree Krushnadevaraya":{weight:["regular"],fallback:"serif"},Engagement:{weight:["regular"],fallback:"handwriting"},Girassol:{weight:["regular"],fallback:"display"},"Kite One":{weight:["regular"],fallback:"sans-serif"},"Ibarra Real Nova":{weight:["regular","italic","600","600italic","700","700italic"],fallback:"serif"},Gaegu:{weight:["300","regular","700"],fallback:"handwriting"},Fenix:{weight:["regular"],fallback:"serif"},"Pirata One":{weight:["regular"],fallback:"display"},"Tulpen One":{weight:["regular"],fallback:"display"},"IM Fell Great Primer":{weight:["regular","italic"],fallback:"serif"},Chathura:{weight:["100","300","regular","700","800"],fallback:"sans-serif"},Unlock:{weight:["regular"],fallback:"display"},"Nova Round":{weight:["regular"],fallback:"display"},Sura:{weight:["regular","700"],fallback:"serif"},"Kumar One":{weight:["regular"],fallback:"display"},Baskervville:{weight:["regular","italic"],fallback:"serif"},Quintessential:{weight:["regular"],fallback:"handwriting"},Milonga:{weight:["regular"],fallback:"display"},Bayon:{weight:["regular"],fallback:"display"},"Be Vietnam":{weight:["100","100italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"sans-serif"},"Crimson Pro":{weight:["200","300","regular","500","600","700","800","900","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"serif"},B612:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"League Script":{weight:["regular"],fallback:"handwriting"},"Inknut Antiqua":{weight:["300","regular","500","600","700","800","900"],fallback:"serif"},Mogra:{weight:["regular"],fallback:"display"},"Mystery Quest":{weight:["regular"],fallback:"display"},"Monsieur La Doulaise":{weight:["regular"],fallback:"handwriting"},Vibes:{weight:["regular"],fallback:"display"},Rosarivo:{weight:["regular","italic"],fallback:"serif"},"Uncial Antiqua":{weight:["regular"],fallback:"display"},Dorsa:{weight:["regular"],fallback:"sans-serif"},Almendra:{weight:["regular","italic","700","700italic"],fallback:"serif"},Diplomata:{weight:["regular"],fallback:"display"},Simonetta:{weight:["regular","italic","900","900italic"],fallback:"display"},"New Rocker":{weight:["regular"],fallback:"display"},Snippet:{weight:["regular"],fallback:"sans-serif"},Petrona:{weight:["regular"],fallback:"serif"},Ramaraja:{weight:["regular"],fallback:"serif"},"Averia Gruesa Libre":{weight:["regular"],fallback:"display"},"Baloo Bhaina 2":{weight:["regular","500","600","700","800"],fallback:"display"},Kodchasan:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Meera Inimai":{weight:["regular"],fallback:"sans-serif"},Flamenco:{weight:["300","regular"],fallback:"display"},Khmer:{weight:["regular"],fallback:"display"},Paprika:{weight:["regular"],fallback:"display"},Koulen:{weight:["regular"],fallback:"display"},Mansalva:{weight:["regular"],fallback:"handwriting"},"Lovers Quarrel":{weight:["regular"],fallback:"handwriting"},Condiment:{weight:["regular"],fallback:"handwriting"},"Baloo Thambi 2":{weight:["regular","500","600","700","800"],fallback:"display"},Stoke:{weight:["300","regular"],fallback:"serif"},Barrio:{weight:["regular"],fallback:"display"},Barriecito:{weight:["regular"],fallback:"display"},"Donegal One":{weight:["regular"],fallback:"serif"},Kavoon:{weight:["regular"],fallback:"display"},"Big Shoulders Display":{weight:["100","300","regular","500","600","700","800","900"],fallback:"display"},Mina:{weight:["regular","700"],fallback:"sans-serif"},"Big Shoulders Text":{weight:["100","300","regular","500","600","700","800","900"],fallback:"display"},Prociono:{weight:["regular"],fallback:"serif"},"Text Me One":{weight:["regular"],fallback:"sans-serif"},"IM Fell French Canon":{weight:["regular","italic"],fallback:"serif"},"Overlock SC":{weight:["regular"],fallback:"display"},Cagliostro:{weight:["regular"],fallback:"sans-serif"},"Marko One":{weight:["regular"],fallback:"serif"},"Swanky and Moo Moo":{weight:["regular"],fallback:"handwriting"},"Maiden Orange":{weight:["regular"],fallback:"display"},Blinker:{weight:["100","200","300","regular","600","700","800","900"],fallback:"sans-serif"},Miniver:{weight:["regular"],fallback:"display"},Angkor:{weight:["regular"],fallback:"display"},Chango:{weight:["regular"],fallback:"display"},Thasadith:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Modak:{weight:["regular"],fallback:"display"},Junge:{weight:["regular"],fallback:"serif"},"Stint Ultra Condensed":{weight:["regular"],fallback:"display"},Stalemate:{weight:["regular"],fallback:"handwriting"},Tillana:{weight:["regular","500","600","700","800"],fallback:"handwriting"},UnifrakturCook:{weight:["700"],fallback:"display"},"Rum Raisin":{weight:["regular"],fallback:"sans-serif"},Farro:{weight:["300","regular","500","700"],fallback:"sans-serif"},"Delius Unicase":{weight:["regular","700"],fallback:"handwriting"},Sancreek:{weight:["regular"],fallback:"display"},Julee:{weight:["regular"],fallback:"handwriting"},Margarine:{weight:["regular"],fallback:"display"},"Lakki Reddy":{weight:["regular"],fallback:"handwriting"},"Stint Ultra Expanded":{weight:["regular"],fallback:"display"},"Bigshot One":{weight:["regular"],fallback:"display"},Griffy:{weight:["regular"],fallback:"display"},Moul:{weight:["regular"],fallback:"display"},"Diplomata SC":{weight:["regular"],fallback:"display"},Oxanium:{weight:["200","300","regular","500","600","700","800"],fallback:"display"},Offside:{weight:["regular"],fallback:"display"},"Fira Code":{weight:["300","regular","500","600","700"],fallback:"monospace"},"Eagle Lake":{weight:["regular"],fallback:"handwriting"},Flavors:{weight:["regular"],fallback:"display"},"Londrina Outline":{weight:["regular"],fallback:"display"},Tomorrow:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Nokora:{weight:["regular","700"],fallback:"serif"},Calistoga:{weight:["regular"],fallback:"display"},Gotu:{weight:["regular"],fallback:"sans-serif"},"Della Respira":{weight:["regular"],fallback:"serif"},"Cormorant Unicase":{weight:["300","regular","500","600","700"],fallback:"serif"},"Libre Caslon Text":{weight:["regular","italic","700"],fallback:"serif"},Buda:{weight:["300"],fallback:"display"},Asar:{weight:["regular"],fallback:"serif"},"Poller One":{weight:["regular"],fallback:"display"},"Autour One":{weight:["regular"],fallback:"display"},"Nova Slim":{weight:["regular"],fallback:"display"},Underdog:{weight:["regular"],fallback:"display"},Redressed:{weight:["regular"],fallback:"handwriting"},"Yeon Sung":{weight:["regular"],fallback:"display"},Content:{weight:["regular","700"],fallback:"display"},Kantumruy:{weight:["300","regular","700"],fallback:"sans-serif"},"Baloo Paaji 2":{weight:["regular","500","600","700","800"],fallback:"display"},"Jim Nightshade":{weight:["regular"],fallback:"handwriting"},"Glass Antiqua":{weight:["regular"],fallback:"display"},"Snowburst One":{weight:["regular"],fallback:"display"},"Gamja Flower":{weight:["regular"],fallback:"handwriting"},Revalia:{weight:["regular"],fallback:"display"},"Metal Mania":{weight:["regular"],fallback:"display"},Charmonman:{weight:["regular","700"],fallback:"handwriting"},"IM Fell DW Pica SC":{weight:["regular"],fallback:"serif"},Inika:{weight:["regular","700"],fallback:"serif"},"Elsie Swash Caps":{weight:["regular","900"],fallback:"display"},Wellfleet:{weight:["regular"],fallback:"display"},"Chela One":{weight:["regular"],fallback:"display"},"Rhodium Libre":{weight:["regular"],fallback:"serif"},"Mrs Sheppards":{weight:["regular"],fallback:"handwriting"},"Sedgwick Ave Display":{weight:["regular"],fallback:"handwriting"},"Modern Antiqua":{weight:["regular"],fallback:"display"},"Ravi Prakash":{weight:["regular"],fallback:"display"},Galdeano:{weight:["regular"],fallback:"sans-serif"},Oldenburg:{weight:["regular"],fallback:"display"},Arbutus:{weight:["regular"],fallback:"display"},"Poor Story":{weight:["regular"],fallback:"display"},"Hi Melody":{weight:["regular"],fallback:"handwriting"},"Joti One":{weight:["regular"],fallback:"display"},"Nova Flat":{weight:["regular"],fallback:"display"},"ZCOOL QingKe HuangYou":{weight:["regular"],fallback:"display"},"Linden Hill":{weight:["regular","italic"],fallback:"serif"},Bokor:{weight:["regular"],fallback:"display"},"Courier Prime":{weight:["regular","italic","700","700italic"],fallback:"monospace"},Trykker:{weight:["regular"],fallback:"serif"},KoHo:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Song Myung":{weight:["regular"],fallback:"serif"},Ruthie:{weight:["regular"],fallback:"handwriting"},"Libre Barcode 39 Extended Text":{weight:["regular"],fallback:"display"},Chilanka:{weight:["regular"],fallback:"handwriting"},Fahkwang:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Felipa:{weight:["regular"],fallback:"handwriting"},Monofett:{weight:["regular"],fallback:"display"},"Odibee Sans":{weight:["regular"],fallback:"display"},Smythe:{weight:["regular"],fallback:"display"},"Major Mono Display":{weight:["regular"],fallback:"monospace"},Jomhuria:{weight:["regular"],fallback:"display"},"Croissant One":{weight:["regular"],fallback:"display"},Dangrek:{weight:["regular"],fallback:"display"},"Original Surfer":{weight:["regular"],fallback:"display"},Bahiana:{weight:["regular"],fallback:"display"},Gorditas:{weight:["regular","700"],fallback:"display"},"Odor Mean Chey":{weight:["regular"],fallback:"display"},Iceberg:{weight:["regular"],fallback:"display"},MedievalSharp:{weight:["regular"],fallback:"display"},"Caesar Dressing":{weight:["regular"],fallback:"display"},Sahitya:{weight:["regular","700"],fallback:"serif"},Stylish:{weight:["regular"],fallback:"sans-serif"},"Nova Cut":{weight:["regular"],fallback:"display"},"Purple Purse":{weight:["regular"],fallback:"display"},Devonshire:{weight:["regular"],fallback:"handwriting"},Smokum:{weight:["regular"],fallback:"display"},"Almendra Display":{weight:["regular"],fallback:"display"},Galindo:{weight:["regular"],fallback:"display"},Preahvihear:{weight:["regular"],fallback:"display"},Siemreap:{weight:["regular"],fallback:"display"},"Irish Grover":{weight:["regular"],fallback:"display"},Gupter:{weight:["regular","500","700"],fallback:"serif"},"Meie Script":{weight:["regular"],fallback:"handwriting"},"Libre Barcode 128":{weight:["regular"],fallback:"display"},"Keania One":{weight:["regular"],fallback:"display"},"GFS Neohellenic":{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Cute Font":{weight:["regular"],fallback:"display"},"Londrina Shadow":{weight:["regular"],fallback:"display"},"East Sea Dokdo":{weight:["regular"],fallback:"handwriting"},"Libre Barcode 39 Extended":{weight:["regular"],fallback:"display"},Risque:{weight:["regular"],fallback:"display"},Lancelot:{weight:["regular"],fallback:"display"},"Libre Caslon Display":{weight:["regular"],fallback:"serif"},Plaster:{weight:["regular"],fallback:"display"},"Goblin One":{weight:["regular"],fallback:"display"},Asset:{weight:["regular"],fallback:"display"},"Almendra SC":{weight:["regular"],fallback:"serif"},"Jacques Francois":{weight:["regular"],fallback:"serif"},"Jolly Lodger":{weight:["regular"],fallback:"display"},"Lexend Exa":{weight:["regular"],fallback:"sans-serif"},Molle:{weight:["italic"],fallback:"handwriting"},Kavivanar:{weight:["regular"],fallback:"handwriting"},"Kirang Haerang":{weight:["regular"],fallback:"display"},Piedra:{weight:["regular"],fallback:"display"},"Atomic Age":{weight:["regular"],fallback:"display"},"Kulim Park":{weight:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Libre Barcode 39 Text":{weight:["regular"],fallback:"display"},"IM Fell Great Primer SC":{weight:["regular"],fallback:"serif"},"Tenali Ramakrishna":{weight:["regular"],fallback:"sans-serif"},Butcherman:{weight:["regular"],fallback:"display"},"Dr Sugiyama":{weight:["regular"],fallback:"handwriting"},"Geostar Fill":{weight:["regular"],fallback:"display"},Romanesco:{weight:["regular"],fallback:"handwriting"},"Libre Barcode 128 Text":{weight:["regular"],fallback:"display"},Sunshiney:{weight:["regular"],fallback:"handwriting"},"Kumar One Outline":{weight:["regular"],fallback:"display"},Peddana:{weight:["regular"],fallback:"serif"},"Baloo Bhai 2":{weight:["regular","500","600","700","800"],fallback:"display"},"Kdam Thmor":{weight:["regular"],fallback:"display"},"Ruge Boogie":{weight:["regular"],fallback:"handwriting"},Freehand:{weight:["regular"],fallback:"display"},Bonbon:{weight:["regular"],fallback:"handwriting"},Caladea:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Single Day":{weight:["regular"],fallback:"display"},"Baloo Tamma 2":{weight:["regular","500","600","700","800"],fallback:"display"},"Inria Sans":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"sans-serif"},Hanalei:{weight:["regular"],fallback:"display"},"Emblema One":{weight:["regular"],fallback:"display"},"Seymour One":{weight:["regular"],fallback:"sans-serif"},"Miss Fajardose":{weight:["regular"],fallback:"handwriting"},Sevillana:{weight:["regular"],fallback:"display"},"Inria Serif":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"serif"},"Bungee Outline":{weight:["regular"],fallback:"display"},Metal:{weight:["regular"],fallback:"display"},"IM Fell Double Pica SC":{weight:["regular"],fallback:"serif"},"Lexend Giga":{weight:["regular"],fallback:"sans-serif"},"ZCOOL KuaiLe":{weight:["regular"],fallback:"display"},Astloch:{weight:["regular","700"],fallback:"display"},"Mr Bedfort":{weight:["regular"],fallback:"handwriting"},Macondo:{weight:["regular"],fallback:"display"},"Butterfly Kids":{weight:["regular"],fallback:"handwriting"},"Supermercado One":{weight:["regular"],fallback:"display"},Fruktur:{weight:["regular"],fallback:"display"},Taprom:{weight:["regular"],fallback:"display"},Lacquer:{weight:["regular"],fallback:"display"},"Black And White Picture":{weight:["regular"],fallback:"sans-serif"},"Bigelow Rules":{weight:["regular"],fallback:"display"},"Beth Ellen":{weight:["regular"],fallback:"handwriting"},"Sofadi One":{weight:["regular"],fallback:"display"},Combo:{weight:["regular"],fallback:"display"},Bellota:{weight:["300","300italic","regular","italic","700","700italic"],fallback:"display"},Federant:{weight:["regular"],fallback:"display"},"Miltonian Tattoo":{weight:["regular"],fallback:"display"},"Londrina Sketch":{weight:["regular"],fallback:"display"},Suwannaphum:{weight:["regular"],fallback:"display"},"Bungee Hairline":{weight:["regular"],fallback:"display"},Fascinate:{weight:["regular"],fallback:"display"},"Erica One":{weight:["regular"],fallback:"display"},"Nova Oval":{weight:["regular"],fallback:"display"},"Baloo Da 2":{weight:["regular","500","600","700","800"],fallback:"display"},"Sulphur Point":{weight:["300","regular","700"],fallback:"sans-serif"},Aubrey:{weight:["regular"],fallback:"display"},Gidugu:{weight:["regular"],fallback:"sans-serif"},"Bellota Text":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"display"},"Nova Script":{weight:["regular"],fallback:"display"},Miltonian:{weight:["regular"],fallback:"display"},Gayathri:{weight:["100","regular","700"],fallback:"sans-serif"},Geostar:{weight:["regular"],fallback:"display"},Moulpali:{weight:["regular"],fallback:"display"},"Passero One":{weight:["regular"],fallback:"display"},"Stalinist One":{weight:["regular"],fallback:"display"},"Long Cang":{weight:["regular"],fallback:"handwriting"},Solway:{weight:["300","regular","500","700","800"],fallback:"serif"},"Zhi Mang Xing":{weight:["regular"],fallback:"handwriting"},"Baloo Tammudu 2":{weight:["regular","500","600","700","800"],fallback:"display"},Chenla:{weight:["regular"],fallback:"display"},Suravaram:{weight:["regular"],fallback:"serif"},Fasthand:{weight:["regular"],fallback:"serif"},Kenia:{weight:["regular"],fallback:"display"},Dhurjati:{weight:["regular"],fallback:"sans-serif"},"Lexend Tera":{weight:["regular"],fallback:"sans-serif"},"BioRhyme Expanded":{weight:["200","300","regular","700","800"],fallback:"serif"},"Turret Road":{weight:["200","300","regular","500","700","800"],fallback:"display"},Warnes:{weight:["regular"],fallback:"display"},"Viaoda Libre":{weight:["regular"],fallback:"display"},"Lexend Mega":{weight:["regular"],fallback:"sans-serif"},Bahianita:{weight:["regular"],fallback:"display"},Manrope:{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},"Lexend Zetta":{weight:["regular"],fallback:"sans-serif"},"Lexend Peta":{weight:["regular"],fallback:"sans-serif"}});function Jt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Yt=wp.i18n.__,Qt=wp.element,Xt=Qt.Component,$t=Qt.Fragment,ea=wp.components,ta=ea.BaseControl,aa=ea.SelectControl,la=ea.ToggleControl,ia=ea.TextControl,ra=ea.Button,na=function(e){f()(a,e);var t=Jt(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=this,t=this.props,a=t.setAttributes,i=t.attributes,r=t.device,n=void 0===r?"":r,c=t.showFontSize,s=void 0!==c&&c,g=t.showFontFamily,u=void 0!==g&&g,b=t.showFontWeight,d=void 0!==b&&b,p=t.showTextTransform,f=void 0!==p&&p,h=t.showLineHeight,m=void 0!==h&&h,k=t.showLetterSpacing,y=void 0!==k&&k,w=t.disableAdvancedToggle,v=void 0!==w&&w,T=t.fontSizePlaceholder,O=void 0===T?"17":T,C=[{value:"",label:Yt("Select font","generateblocks")},{value:"Arial",label:"Arial"},{value:"Helvetica",label:"Helvetica"},{value:"Times New Roman",label:"Times New Roman"},{value:"Georgia",label:"Georgia"}];Object.keys(Kt).slice(0,20).forEach((function(e){C.push({value:e,label:e})})),C.push({value:"other",label:Yt("Other","generateblocks")});var S=[{value:"",label:Yt("Default","generateblocks")},{value:"normal",label:Yt("Normal","generateblocks")},{value:"bold",label:Yt("Bold","generateblocks")},{value:"100",label:"100"},{value:"200",label:"200"},{value:"300",label:"300"},{value:"400",label:"400"},{value:"500",label:"500"},{value:"600",label:"600"},{value:"700",label:"700"},{value:"800",label:"800"},{value:"900",label:"900"}],B=[{value:"",label:Yt("Default","generateblocks")},{value:"uppercase",label:Yt("Uppercase","generateblocks")},{value:"lowercase",label:Yt("Lowercase","generateblocks")},{value:"capitalize",label:Yt("Capitalize","generateblocks")},{value:"initial",label:Yt("Normal","generateblocks")}];void 0!==Kt[i.fontFamily]&&void 0!==Kt[i.fontFamily].weight&&(S=[{value:"",label:Yt("Default","generateblocks")},{value:"normal",label:Yt("Normal","generateblocks")},{value:"bold",label:Yt("Bold","generateblocks")}],Kt[i.fontFamily].weight.filter((function(e){var t=e.match(/[a-z]/g),a=e.match(/[0-9]/g);return!(t&&a||"italic"===e)})).forEach((function(e){S.push({value:e,label:e})})));var D=function(e){"other"===e&&(e="");i.fontWeight;a({fontFamily:e}),i.fontWeight&&Object.values(S).indexOf(i.fontWeight),void 0!==Kt[e]?a({googleFont:!0,fontFamilyFallback:Kt[e].fallback,googleFontVariants:Kt[e].weight.join(", ")}):a({googleFont:!1,fontFamilyFallback:"",googleFontVariants:""})},E=function(e){a({fontFamily:e.target.value}),D(e.target.value)},j=function(e,t){return i[e+t]},R=function(e,t){return e+t},M=i.showAdvancedTypography;v&&(M=!0);var z=O;"Tablet"===n&&i.fontSize&&(z=i.fontSize),"Mobile"===n&&(i.fontSizeTablet?z=i.fontSizeTablet:i.fontSize&&(z=i.fontSize));var x="";return"Tablet"===n&&i.lineHeight&&(x=i.lineHeight),"Mobile"===n&&(i.lineHeightTablet?x=i.lineHeightTablet:i.lineHeight&&(x=i.lineHeight)),Object(l.createElement)($t,null,Object(l.createElement)("div",{className:"components-gblocks-typography-weight-transform"},d&&Object(l.createElement)(aa,{label:Yt("Weight","generateblocks"),value:i.fontWeight,options:S,onChange:function(e){a({fontWeight:e})},className:"components-base-control"}),f&&Object(l.createElement)(aa,{label:Yt("Transform","generateblocks"),value:i.textTransform,options:B,onChange:function(e){a({textTransform:e})},className:"components-base-control"})),!v&&Object(l.createElement)(la,{label:Yt("Show Advanced Typography","generateblocks"),checked:!!i.showAdvancedTypography,onChange:function(e){a({showAdvancedTypography:e})}}),u&&M&&Object(l.createElement)(ta,{className:"gblocks-font-family-shortcuts"},Object(l.createElement)("span",{className:"components-base-control__label"},Yt("Font Family","generateblocks")),Object(l.createElement)("select",{className:"components-select-control__input components-select-control__input--gblocks-fontfamily",onChange:E,onBlur:E},C.map((function(e,t){return Object(l.createElement)("option",{key:"".concat(e.label,"-").concat(e.value,"-").concat(t),value:e.value},e.label)})))),u&&M&&Object(l.createElement)(ia,{value:i.fontFamily,placeholder:Yt("Enter font name","generateblocks"),onChange:function(e){return D(e)}}),u&&""!==i.fontFamily&&M&&Object(l.createElement)($t,null,Object(l.createElement)(la,{label:Yt("Google Font","generateblocks"),checked:!!i.googleFont,onChange:function(e){a({googleFont:e}),e&&void 0!==Kt[i.fontFamily]&&a({fontFamilyFallback:Kt[i.fontFamily].fallback,googleFontVariants:Kt[i.fontFamily].weight.join(", ")})}}),!!i.googleFont&&Object(l.createElement)(ia,{label:Yt("Variants","generateblocks"),value:i.googleFontVariants,placeholder:Yt("300, 400, 400i","generateblocks"),onChange:function(e){a({googleFontVariants:e})}})),u&&M&&Object(l.createElement)(ia,{label:Yt("Font Family Fallback","generateblocks"),value:i.fontFamilyFallback,placeholder:Yt("sans-serif","generateblocks"),onChange:function(e){a({fontFamilyFallback:e})}}),s&&M&&Object(l.createElement)(ta,null,Object(l.createElement)(V,{label:Yt("Font Size","generateblocks"),value:i.fontSizeUnit,units:["px","em","%"],onClick:function(e){a({fontSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-gblocks-typography-control__inputs"},Object(l.createElement)(ia,{type:"number",value:j("fontSize",n)||"",placeholder:z,onChange:function(e){var t=R("fontSize",n);a(o()({},t,parseFloat(e)))},min:1,autoComplete:"off"}),Object(l.createElement)(ra,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){var t=R("fontSize",n);a(o()({},t,e.props.defaultFontSize))}},Yt("Reset","generateblocks")))),m&&M&&Object(l.createElement)(ta,null,Object(l.createElement)(V,{label:Yt("Line Height","generateblocks"),value:i.lineHeightUnit,units:["px","em","%"],onClick:function(e){a({lineHeightUnit:e})}}),Object(l.createElement)("div",{className:"components-gblocks-typography-control__inputs"},Object(l.createElement)(ia,{type:"number",value:j("lineHeight",n)||0===j("lineHeight",n)?j("lineHeight",n):"",placeholder:x,onChange:function(e){var t=R("lineHeight",n);a(o()({},t,e))},onBlur:function(){var e=R("lineHeight",n);a(o()({},e,parseFloat(j("lineHeight",n))))},onClick:function(e){e.currentTarget.focus()},min:0,step:.1,autoComplete:"off"}),Object(l.createElement)(ra,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){var t=R("lineHeight",n);a(o()({},t,e.props.defaultLineHeight))}},Yt("Reset","generateblocks")))),y&&M&&Object(l.createElement)(ta,null,Object(l.createElement)(V,{label:Yt("Letter Spacing","generateblocks"),value:"em",units:["em"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-gblocks-typography-control__inputs"},Object(l.createElement)(ia,{type:"number",value:j("letterSpacing",n)||"",placeholder:"0.01",onChange:function(e){var t=R("letterSpacing",n);a(o()({},t,e))},onBlur:function(){var e=R("letterSpacing",n);a(o()({},e,parseFloat(j("letterSpacing",n))))},onClick:function(e){e.currentTarget.focus()},min:-1,step:.01,autoComplete:"off"}),Object(l.createElement)(ra,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){var t=R("letterSpacing",n);a(o()({},t,e.props.defaultLetterSpacing))}},Yt("Reset","generateblocks")))))}}]),a}(Xt);a(30);function oa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ca=wp.i18n.__,sa=wp.element,ga=sa.Component,ua=sa.Fragment,ba=wp.components,da=ba.BaseControl,pa=ba.ToggleControl,fa=ba.TextControl,ha=ba.RangeControl,ma=ba.SelectControl,ka=function(e){f()(a,e);var t=oa(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=this,t=this.props,a=t.attributes,i=t.setAttributes,r=t.attrGradient,n=t.attrGradientDirection,c=t.attrGradientColorOne,s=t.attrGradientColorOneOpacity,g=t.attrGradientColorStopOne,u=t.attrGradientColorTwo,b=t.attrGradientColorTwoOpacity,d=t.attrGradientColorStopTwo,p=t.defaultColorOne,f=t.defaultColorTwo,h=a.gradientSelector,m=ca("element"===h?"Displays behind the background image.":"Displays in front of the background image.","generateblocks");return Object(l.createElement)(ua,null,Object(l.createElement)(pa,{label:ca("Use Gradient","generateblocks"),checked:!!a[r],onChange:function(t){i(o()({},e.props.attrGradient,t))}}),!!a[r]&&Object(l.createElement)(ua,null,void 0!==h&&Object(l.createElement)(ma,{label:ca("Selector","generateblocks"),help:m,value:h,options:[{label:ca("Element","generateblocks"),value:"element"},{label:ca("Pseudo Element","generateblocks"),value:"pseudo-element"}],onChange:function(e){i({gradientSelector:e})}}),Object(l.createElement)(da,null,Object(l.createElement)("span",{className:"components-base-control__label"},ca("Direction","generateblocks")),Object(l.createElement)(ha,{value:a[n]?a[n]:1,onChange:function(e){i(o()({},n,e))},min:0,max:360,step:1,initialPosition:90})),Object(l.createElement)(da,null,Object(l.createElement)("span",{className:"components-base-control__label"},ca("Color One","generateblocks")),Object(l.createElement)("div",{className:"gblocks-component-gradient-control"},Object(l.createElement)(At,{value:a[c],alpha:!0,valueOpacity:a[s],attrOpacity:"gradientColorOneOpacity",onChange:function(e){return i(o()({},c,e))},onOpacityChange:function(e){return i(o()({},s,e))},onClear:function(){return i(o()({},c,p))}}),Object(l.createElement)(fa,{className:"gblocks-component-gradient-stop-value",type:"text",value:a[g]||0===a[g]?a[g]:"",placeholder:ca("Stop position (%)","generateblocks"),onChange:function(e){i(o()({},g,e))},onBlur:function(){i(o()({},g,parseFloat(a[g])))},onClick:function(e){e.currentTarget.focus()}}))),Object(l.createElement)(da,null,Object(l.createElement)("span",{className:"components-base-control__label"},ca("Color Two","generateblocks")),Object(l.createElement)("div",{className:"gblocks-component-gradient-control"},Object(l.createElement)(At,{value:a[u],alpha:!0,valueOpacity:a[b],attrOpacity:"gradientColorTwoOpacity",onChange:function(e){return i(o()({},u,e))},onOpacityChange:function(e){return i(o()({},b,e))},onClear:function(){return i(o()({},u,f))}}),Object(l.createElement)(fa,{className:"gblocks-component-gradient-stop-value",type:"text",value:a[d]||0===a[d]?a[d]:"",placeholder:ca("Stop position (%)","generateblocks"),onChange:function(e){i(o()({},d,e))},onBlur:function(){i(o()({},d,parseFloat(a[d])))},onClick:function(e){e.currentTarget.focus()}})))))}}]),a}(ga),ya=a(16),wa=a.n(ya);function va(e){return wa.a.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0}})}function Ta(e,t,a,l,i){if(""!==e||""!==t||""!==a||""!==l)return e=0!=parseFloat(e)&&""!==e?parseFloat(e)+i+" ":"0 ",t=0!=parseFloat(t)&&""!==t?parseFloat(t)+i+" ":"0 ",a=0!=parseFloat(a)&&""!==a?parseFloat(a)+i+" ":"0 ",t===(l=0!=parseFloat(l)&&""!==l?parseFloat(l)+i+" ":"0 ")&&(l="",e===a&&(a="",e===t&&(t=""))),(e+t+a+l).trim()}var Oa=wp.hooks.applyFilters;function Ca(e,t){var a=t.attributes,l=a.backgroundColor,i=a.backgroundColorOpacity,r=a.bgImage,n=a.gradient,o=a.bgOptions,c=a.gradientColorOne,s=a.gradientColorOneOpacity,g=a.gradientColorTwo,u=a.gradientColorTwoOpacity,b=a.gradientColorStopOne,d=a.gradientColorStopTwo,p=a.gradientDirection,f="";if(n){var h="",m="";c&&""!==b&&(h=" "+b+"%"),g&&""!==d&&(m=" "+d+"%"),f="linear-gradient("+p+"deg, "+Ct(c,s)+h+", "+Ct(g,u)+m+")"}if("gradient"===e)return f;var k=!1,y=Ct(l,i);if(r){var w=r.image.url;w=Oa("generateblocks.editor.bgImageURL",w,t),"element"===o.selector&&(y||n)&&void 0!==o.overlay&&o.overlay?n?k=f+", url("+w+")":y&&(k="linear-gradient(0deg, "+y+", "+y+"), url("+w+")"):k="url("+w+")"}return k}function Sa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Ba=wp.element.Component,Da=wp.hooks.applyFilters,Ea=function(e){f()(a,e);var t=Sa(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=this.props,t=e.attributes,a=e.clientId,i=t.uniqueId,r=t.isGrid,n=t.width,o=t.outerContainer,c=t.innerContainer,s=t.containerWidth,g=t.minHeight,u=t.minHeightUnit,b=t.paddingTop,d=t.paddingRight,p=t.paddingBottom,f=t.paddingLeft,h=t.paddingUnit,m=t.marginTop,k=t.marginRight,y=t.marginBottom,w=t.marginLeft,v=t.marginUnit,T=t.borderSizeTop,O=t.borderSizeRight,C=t.borderSizeBottom,S=t.borderSizeLeft,B=t.borderRadiusTopRight,D=t.borderRadiusBottomRight,E=t.borderRadiusBottomLeft,j=t.borderRadiusTopLeft,R=t.borderRadiusUnit,M=t.borderColor,z=t.borderColorOpacity,x=t.backgroundColor,L=t.backgroundColorOpacity,P=t.gradient,A=t.gradientSelector,U=t.textColor,H=t.linkColor,N=t.linkColorHover,F=t.bgImage,_=t.bgOptions,I=t.verticalAlignment,G=t.zindex,V=t.innerZindex,q=t.alignment,W=t.fontFamily,J=t.fontFamilyFallback,Y=t.fontWeight,Q=t.fontSize,X=t.fontSizeUnit,$=t.textTransform,ee=t.shapeDividers,te=s;te||(te=generateBlocksDefaults.container.containerWidth);var ae="";W&&J&&(ae=", "+J);var le=!!F,ie=Ca("image",this.props),re=Ca("gradient",this.props),ne=V;!ne&&le&&"pseudo-element"===_.selector&&(ne=1);var oe=[];return oe[".gb-container-"+i]=[{"background-color":Ct(x,L),color:U,"border-radius":Ta(j,B,D,E,R),margin:Ta(m,k,y,w,v),"z-index":G,"text-align":q,"font-family":W+ae,"font-weight":Y,"text-transform":$,"font-size":K(Q,X),"min-height":K(g,u)}],le&&"element"===_.selector&&ie?oe[".gb-container-"+i].push({"background-image":ie,"background-size":_.size,"background-position":_.position,"background-repeat":_.repeat,"background-attachment":_.attachment}):P&&"element"===A&&oe[".gb-container-"+i].push({"background-image":re}),(le&&"pseudo-element"===_.selector||G||P&&"pseudo-element"===A)&&oe[".gb-container-"+i].push({position:"relative"}),(le&&"pseudo-element"===_.selector||P&&"pseudo-element"===A)&&(oe[".gb-container-"+i].push({overflow:"hidden"}),oe[".gb-container-"+i+" .block-list-appender"]=[{"z-index":10}]),oe[".editor-styles-wrapper .gb-container-"+i+" h1,\n\t\t\t.editor-styles-wrapper .gb-container-"+i+" h2,\n\t\t\t.editor-styles-wrapper .gb-container-"+i+" h3,\n\t\t\t.editor-styles-wrapper .gb-container-"+i+" h4,\n\t\t\t.editor-styles-wrapper .gb-container-"+i+" h5,\n\t\t\t.editor-styles-wrapper .gb-container-"+i+" h6"]=[{color:U}],(T||O||C||S)&&oe[".gb-container-"+i].push({"border-width":Ta(T,O,C,S,"px"),"border-style":"solid","border-color":Ct(M,z)}),g&&!r&&oe[".gb-container-"+i].push({display:"flex","flex-direction":"row","align-items":I}),r&&(oe[".gb-container-"+i].push({display:"flex","flex-direction":"column",height:"100%","justify-content":I}),oe[".block-editor-block-list__layout > #block-"+a]=[{height:"100%"}]),le&&"pseudo-element"===_.selector&&(oe[".gb-container-"+i+":before"]=[{content:'""',"background-image":ie,"background-repeat":_.repeat,"background-position":_.position,"background-size":_.size,"background-attachment":_.attachment,"z-index":"0",position:"absolute",top:"0",right:"0",bottom:"0",left:"0"}],void 0!==_.opacity&&1!==_.opacity&&oe[".gb-container-"+i+":before"].push({opacity:_.opacity})),P&&"pseudo-element"===A&&(oe[".gb-container-"+i+":after"]=[{content:'""',"background-image":re,"z-index":"0",position:"absolute",top:"0",right:"0",bottom:"0",left:"0"}]),oe[".gb-container-"+i+" a, .gb-container-"+i+" a:visited"]=[{color:H}],oe[".gb-container-"+i+" a:hover"]=[{color:N}],oe[".gb-container-"+i+" > .gb-inside-container"]=[{padding:Ta(b,d,p,f,h),width:!(!g||r)&&"100%"}],(ne||0===ne)&&oe[".gb-container-"+i+" > .gb-inside-container"].push({"z-index":ne,position:"relative"}),"contained"!==c||r||oe[".gb-container-"+i+" > .gb-inside-container"].push({"max-width":K(te,"px"),"margin-left":"auto","margin-right":"auto"}),oe[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+a]=[{width:K(n,"%"),display:"flex","flex-direction":"column","margin-left":"0px","margin-right":"0px"}],oe[".block-editor-block-list__layout > #block-"+a]=[{"max-width":"contained"===o&&!r&&K(te,"px")}],oe[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+a+" > .block-editor-block-list__block-edit,\n\t\t.gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+a+' > .block-editor-block-list__block-edit > [data-block="'+a+'"]']=[{height:"100%"}],oe["#block-"+a+":not(.has-child-selected):not(.is-selected) .block-list-appender:not(:first-child),\n\t\t#block-"+a+":not(.has-child-selected):not(.is-selected) .block-editor-block-list__layout > div:not(:first-child) > .block-list-appender"]=[{display:"none"}],ee.length&&(oe[".gb-container-"+i].push({position:"relative"}),oe[".gb-container-"+i+" .block-list-appender"]=[{position:"relative","z-index":100}],ee.forEach((function(e,t){var a=[],l=t+1;"top"===ee[t].location&&a.push("scaleY(-1)"),ee[t].flipHorizontally&&(a.push("scaleX(-1)"),oe[".gblocks-shape-container > .gblocks-shape-toggle-preview-"+l+" .gblocks-shape-divider-preview"]=[{transform:"scaleX(-1)"}]),oe[".gb-container-"+i+" > .gb-shapes .gb-shape-"+l]=[{color:Ct(ee[t].color,ee[t].colorOpacity),"z-index":ee[t].zindex}],"top"!==ee[t].location&&"bottom"!==ee[t].location||oe[".gb-container-"+i+" > .gb-shapes .gb-shape-"+l].push({left:"0",right:"0"}),"bottom"===ee[t].location&&oe[".gb-container-"+i+" > .gb-shapes .gb-shape-"+l].push({bottom:"-1px"}),"top"===ee[t].location&&oe[".gb-container-"+i+" > .gb-shapes .gb-shape-"+l].push({top:"-1px"}),a.length&&oe[".gb-container-"+i+" > .gb-shapes .gb-shape-"+l].push({transform:a.join(" ")});var r=ee[t].width+"%";100===ee[t].width&&(r="calc("+r+" + 1.3px)"),oe[".gb-container-"+i+" > .gb-shapes .gb-shape-"+l+" svg"]=[{height:K(ee[t].height,"px"),width:r}],"top"!==ee[t].location&&"bottom"!==ee[t].location||oe[".gb-container-"+i+" > .gb-shapes .gb-shape-"+l+" svg"].push({position:"relative",left:"50%",transform:"translateX(-50%)","min-width":"100%"})}))),oe=Da("generateblocks.editor.mainCSS",oe,this.props,"container"),Object(l.createElement)("style",null,Z(oe))}}]),a}(Ba);function ja(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Ra=wp.element.Component,Ma=wp.hooks.applyFilters,za=function(e){f()(a,e);var t=ja(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=this.props,t=e.attributes,a=e.clientId,i=t.removeVerticalGap,r=[];return r[".block-editor-block-list__layout > #block-"+a]=[{"margin-bottom":!!i&&"0px !important"}],r=Ma("generateblocks.editor.desktopCSS",r,this.props,"container"),Object(l.createElement)("style",null,Z(r))}}]),a}(Ra);function xa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var La=wp.element.Component,Pa=wp.hooks.applyFilters,Aa=function(e){f()(a,e);var t=xa(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=this.props,t=e.attributes,a=e.clientId,i=t.uniqueId,r=t.isGrid,n=t.widthTablet,o=t.minHeightTablet,c=t.minHeightUnitTablet,s=t.paddingTopTablet,g=t.paddingRightTablet,u=t.paddingBottomTablet,b=t.paddingLeftTablet,d=t.paddingUnit,p=t.marginTopTablet,f=t.marginRightTablet,h=t.marginBottomTablet,m=t.marginLeftTablet,k=t.marginUnit,y=t.borderSizeTopTablet,w=t.borderSizeRightTablet,v=t.borderSizeBottomTablet,T=t.borderSizeLeftTablet,O=t.borderRadiusTopRightTablet,C=t.borderRadiusBottomRightTablet,S=t.borderRadiusBottomLeftTablet,B=t.borderRadiusTopLeftTablet,D=t.borderRadiusUnit,E=t.verticalAlignmentTablet,j=t.alignmentTablet,R=t.fontSizeTablet,M=t.fontSizeUnit,z=t.shapeDividers,x=[];return x[".gb-container-"+i]=[{"border-top-left-radius":K(B,D),"border-top-right-radius":K(O,D),"border-bottom-right-radius":K(C,D),"border-bottom-left-radius":K(S,D),"margin-top":K(p,k),"margin-right":K(f,k),"margin-bottom":K(h,k),"margin-left":K(m,k),"text-align":j,"font-size":K(R,M),"min-height":K(o,c)}],(y||w||v||T)&&x[".gb-container-"+i].push({"border-top-width":K(y,"px"),"border-right-width":K(w,"px"),"border-bottom-width":K(v,"px"),"border-left-width":K(T,"px"),"border-style":"solid"}),o&&!r&&x[".gb-container-"+i].push({display:"flex","flex-direction":"row","align-items":"inherit"!==E?E:null}),r&&"inherit"!==E&&x[".gb-container-"+i].push({display:"flex","flex-direction":"column",height:"100%","justify-content":E}),x[".gb-container-"+i+" > .gb-inside-container"]=[{"padding-top":K(s,d),"padding-right":K(g,d),"padding-bottom":K(u,d),"padding-left":K(b,d),width:!(!o||r)&&"100%"}],x[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+a]=[{width:K(n,"%")}],z.length&&z.forEach((function(e,t){x[".gb-container-"+i+" > .gb-shapes .gb-shape-"+(t+1)+" svg"]=[{height:K(z[t].heightTablet,"px"),width:K(z[t].widthTablet,"%")}]})),x=Pa("generateblocks.editor.tabletCSS",x,this.props,"container"),Object(l.createElement)("style",null,Z(x))}}]),a}(La);function Ua(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Ha=wp.element.Component,Na=wp.hooks.applyFilters,Fa=function(e){f()(a,e);var t=Ua(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=this.props,t=e.attributes,a=e.clientId,i=[];return t.removeVerticalGapTablet&&(i[".block-editor-block-list__layout > #block-"+a]=[{"margin-bottom":"0px !important"}]),i=Na("generateblocks.editor.tabletOnlyCSS",i,this.props,"container"),Object(l.createElement)("style",null,Z(i))}}]),a}(Ha);function _a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Ia=wp.element.Component,Ga=wp.hooks.applyFilters,Va=function(e){f()(a,e);var t=_a(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=this.props,t=e.attributes,a=e.clientId,i=t.uniqueId,r=t.isGrid,n=t.widthMobile,o=t.minHeightMobile,c=t.minHeightUnitMobile,s=t.paddingTopMobile,g=t.paddingRightMobile,u=t.paddingBottomMobile,b=t.paddingLeftMobile,d=t.paddingUnit,p=t.marginTopMobile,f=t.marginRightMobile,h=t.marginBottomMobile,m=t.marginLeftMobile,k=t.marginUnit,y=t.borderSizeTopMobile,w=t.borderSizeRightMobile,v=t.borderSizeBottomMobile,T=t.borderSizeLeftMobile,O=t.borderRadiusTopRightMobile,C=t.borderRadiusBottomRightMobile,S=t.borderRadiusBottomLeftMobile,B=t.borderRadiusTopLeftMobile,D=t.borderRadiusUnit,E=t.verticalAlignmentMobile,j=t.removeVerticalGapMobile,R=t.alignmentMobile,M=t.fontSizeMobile,z=t.fontSizeUnit,x=t.orderMobile,L=t.shapeDividers,P=t.bgImage,A=t.bgOptions,U=[];return U[".gb-container-"+i]=[{"border-top-left-radius":K(B,D),"border-top-right-radius":K(O,D),"border-bottom-right-radius":K(C,D),"border-bottom-left-radius":K(S,D),"margin-top":K(p,k),"margin-right":K(f,k),"margin-bottom":K(h,k),"margin-left":K(m,k),"text-align":R,"font-size":K(M,z),"min-height":K(o,c)}],(y||w||v||T)&&U[".gb-container-"+i].push({"border-top-width":K(y,"px"),"border-right-width":K(w,"px"),"border-bottom-width":K(v,"px"),"border-left-width":K(T,"px"),"border-style":"solid"}),"inherit"!==E&&o&&!r&&U[".gb-container-"+i].push({display:"flex","flex-direction":"row","align-items":E}),r&&"inherit"!==E&&U[".gb-container-"+i].push({display:"flex","flex-direction":"column",height:"100%","justify-content":E}),U[".gb-container-"+i+" > .gb-inside-container"]=[{"padding-top":K(s,d),"padding-right":K(g,d),"padding-bottom":K(u,d),"padding-left":K(b,d),width:!(!o||r)&&"100%"}],U[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+a]=[{width:K(n,"%"),order:x}],j&&(U[".block-editor-block-list__layout > #block-"+a]=[{"margin-bottom":"0px !important"}]),L.length&&L.forEach((function(e,t){U[".gb-container-"+i+" > .gb-shapes .gb-shape-"+(t+1)+" svg"]=[{height:K(L[t].heightMobile,"px"),width:K(L[t].widthMobile,"%")}]})),P&&"fixed"===A.attachment&&("element"===A.selector&&U[".gb-container-"+i].push({"background-attachment":"initial"}),"pseudo-element"===A.selector&&(U[".gb-container-"+i+":before"]=[{"background-attachment":"initial"}])),U=Ga("generateblocks.editor.mobileCSS",U,this.props,"container"),Object(l.createElement)("style",null,Z(U))}}]),a}(Ia);function qa(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function Wa(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?qa(Object(a),!0).forEach((function(t){o()(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):qa(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function Za(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Ka=wp.i18n,Ja=Ka.__,Ya=Ka.sprintf,Qa=wp.components,Xa=Qa.RangeControl,$a=Qa.Button,el=Qa.ButtonGroup,tl=Qa.ToggleControl,al=Qa.SelectControl,ll=Qa.TextControl,il=Qa.BaseControl,rl=Qa.Notice,nl=Qa.PanelBody,ol=Qa.PanelRow,cl=Qa.Tooltip,sl=Qa.Dropdown,gl=wp.element,ul=gl.Fragment,bl=gl.Component,dl=wp.blockEditor,pl=dl.InspectorControls,fl=dl.InnerBlocks,hl=dl.MediaUpload,ml=dl.AlignmentToolbar,kl=dl.InspectorAdvancedControls,yl=dl.BlockControls,wl=wp.hooks.applyFilters,vl=wp.data,Tl=vl.withSelect,Ol=vl.withDispatch,Cl=wp.compose.compose,Sl=/[\s#]/g,Bl=[],Dl=function(e){f()(a,e);var t=Za(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).state={selectedDevice:"Desktop"},e.getDeviceType=e.getDeviceType.bind(d()(e)),e.setDeviceType=e.setDeviceType.bind(d()(e)),e}return u()(a,[{key:"componentDidMount",value:function(){var e=this.props.clientId.substr(2,9).replace("-","");this.props.attributes.uniqueId?Bl.includes(this.props.attributes.uniqueId)?(this.props.setAttributes({uniqueId:e}),Bl.push(e)):Bl.push(this.props.attributes.uniqueId):(this.props.setAttributes({uniqueId:e}),Bl.push(e));var t=document.getElementById("block-"+this.props.clientId);t&&"full"===this.props.attributes.align&&t.setAttribute("data-align","full"),void 0!==this.props.attributes.isDynamic&&this.props.attributes.isDynamic||this.props.setAttributes({isDynamic:!0})}},{key:"componentDidUpdate",value:function(){var e=document.getElementById("block-"+this.props.clientId);if(e){var t=this.props.attributes.align,a="";e.getAttribute("data-align")&&(a=e.getAttribute("data-align")),t!==a&&(""!==t&&void 0!==t||""===a?e.setAttribute("data-align",t):e.removeAttribute("data-align"))}}},{key:"getDeviceType",value:function(){var e=this.props.deviceType?this.props.deviceType:this.state.selectedDevice;return generateBlocksInfo.syncResponsivePreviews||(e=this.state.selectedDevice),e}},{key:"setDeviceType",value:function(e){generateBlocksInfo.syncResponsivePreviews&&this.props.deviceType?(this.props.setDeviceType(e),this.setState({selectedDevice:e})):this.setState({selectedDevice:e})}},{key:"render",value:function(){var e,t=this,a=this.props,i=a.attributes,n=a.setAttributes,c=a.hasChildBlocks,s=a.clientId,g=i.uniqueId,u=i.className,b=i.anchor,d=i.tagName,p=i.isGrid,f=i.width,h=i.widthTablet,m=i.widthMobile,k=i.outerContainer,y=i.innerContainer,w=i.containerWidth,T=i.minHeight,C=i.minHeightUnit,S=i.minHeightTablet,B=i.minHeightUnitTablet,D=i.minHeightMobile,E=i.minHeightUnitMobile,j=i.borderColor,R=i.borderColorOpacity,M=i.backgroundColor,z=i.backgroundColorOpacity,L=i.textColor,P=i.linkColor,A=i.linkColorHover,U=i.bgImage,H=i.bgOptions,N=i.bgImageSize,F=i.verticalAlignment,_=i.verticalAlignmentTablet,I=i.verticalAlignmentMobile,G=i.zindex,q=i.innerZindex,W=i.removeVerticalGap,Z=i.removeVerticalGapTablet,K=i.removeVerticalGapMobile,J=i.orderTablet,Y=i.orderMobile,Q=i.alignment,X=i.alignmentTablet,$=i.alignmentMobile,ee=i.fontFamily,te=i.googleFont,ae=i.googleFontVariants,le=i.fullWidthContent,ie=i.align,re=i.shapeDividers;void 0===i.bgOptions.selector&&(i.bgOptions.selector="element"),void 0===i.bgOptions.opacity&&(i.bgOptions.opacity=1);var ne=[{label:"div",value:"div"},{label:"section",value:"section"},{label:"header",value:"header"},{label:"footer",value:"footer"},{label:"aside",value:"aside"}],oe=document.getElementById("_generate-full-width-content"),ce=new Event("change"),se=wp.data.select("core/block-editor").getBlockHierarchyRootClientId(s)===s,ge="";ae&&(ge=":"+ae);var ue=!1,be=!1,de=!1,pe="";"function"==typeof wp.data.select("core/block-editor").getBlockParents&&(ue=wp.data.select("core/block-editor").getBlockParents(s,!0)[0])&&(be=wp.data.select("core/block-editor").getBlocksByClientId(ue))&&"generateblocks/grid"===be[0].name&&(de=!0,pe=be[0].attributes.uniqueId);var fe=[];Object.keys(generateBlocksInfo.svgShapes).forEach((function(e){var t=generateBlocksInfo.svgShapes[e].svgs;Object.keys(t).forEach((function(e){fe[e]={label:t[e].label,icon:t[e].icon}}))}));var he=[];Object.keys(generateBlocksInfo.imageSizes).forEach((function(e){he.push({label:generateBlocksInfo.imageSizes[e],value:generateBlocksInfo.imageSizes[e]})}));var me={className:v()((e={"gb-container":!0},o()(e,"gb-container-".concat(g),!0),o()(e,"".concat(u),void 0!==u),e)),id:b||null};return me=wl("generateblocks.frontend.htmlAttributes",me,"generateblocks/container",i),Object(l.createElement)(ul,null,Object(l.createElement)(yl,null,"Desktop"===this.getDeviceType()&&Object(l.createElement)(ml,{value:Q,onChange:function(e){n({alignment:e})}}),"Tablet"===this.getDeviceType()&&Object(l.createElement)(ml,{value:X,onChange:function(e){n({alignmentTablet:e})}}),"Mobile"===this.getDeviceType()&&Object(l.createElement)(ml,{value:$,onChange:function(e){n({alignmentMobile:e})}})),Object(l.createElement)(pl,null,Object(l.createElement)(x,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),!p&&Object(l.createElement)(Ce,r()({},this.props,{title:Ja("Layout","generateblocks"),initialOpen:!0,icon:O("layout"),className:"gblocks-panel-label",id:"containerLayout",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(ul,null,de&&Object(l.createElement)(tl,{label:Ja("Grid Item","generateblocks"),help:Ja("This Container is inside a Grid Block but is not set as a grid item. Enable this option for optimal results.","generateblocks"),checked:!!p,onChange:function(e){n({isGrid:e,gridId:pe})}}),Object(l.createElement)(al,{label:Ja("Container","generateblocks"),value:k,options:[{label:Ja("Full width","generateblocks"),value:"full"},{label:Ja("Contained width","generateblocks"),value:"contained"}],onChange:function(e){n({outerContainer:e}),"contained"===e&&"full"===ie&&n({align:""})}}),"full"===k&&Object(l.createElement)(al,{label:Ja("Inner Container","generateblocks"),value:y,options:[{label:Ja("Full width","generateblocks"),value:"full"},{label:Ja("Contained width","generateblocks"),value:"contained"}],onChange:function(e){n({innerContainer:e})}}),("contained"===k||"contained"===y)&&Object(l.createElement)(ul,null,Object(l.createElement)(V,{label:Ja("Container Width","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)(ll,{type:"number",className:"gblocks-container-width",value:parseFloat(w)||"",placeholder:generateBlocksDefaults.container.containerWidth,onChange:function(e){n({containerWidth:""!==e?parseFloat(e):void 0})}})),Object(l.createElement)(al,{label:Ja("Element Tag","generateblocks"),value:d,options:wl("generateblocks.editor.containerTagNames",ne,this.props,this.state),onChange:function(e){n({tagName:e})}}),wl("generateblocks.editor.controls","","containerAfterElementTag",this.props,this.state),Object(l.createElement)(ul,null,generateBlocksInfo.isGeneratePress&&se&&oe&&Object(l.createElement)(il,{id:"gblocks-gp-full-width-page",label:Ja("If you want to build a full width page, use the option below to remove the page width, margin and padding.","generateblocks"),className:"gblocks-gpress-full-width"},Object(l.createElement)(tl,{label:Ja("Make page full-width","generateblocks"),checked:!!le,onChange:function(e){e?("select"===oe.tagName.toLowerCase()?(oe.value="true",oe.dispatchEvent(ce)):(oe.checked=!0,oe.setAttribute("value","true"),oe.dispatchEvent(ce)),n({fullWidthContent:"true",align:""})):("select"===oe.tagName.toLowerCase()?(oe.value="",oe.dispatchEvent(ce)):(oe.checked=!1,oe.setAttribute("value",""),document.querySelector('input[name="_generate-full-width-content"]#default-content').checked=!0,oe.dispatchEvent(ce)),n({fullWidthContent:""}))}})))),wl("generateblocks.editor.controls","","containerLayout",this.props,this.state)),p&&Object(l.createElement)(Ce,r()({},this.props,{title:Ja("Layout","generateblocks"),initialOpen:!0,icon:O("layout"),className:"gblocks-panel-label",id:"containerGridLayout",state:this.state}),!de&&Object(l.createElement)(tl,{label:Ja("Grid Item","generateblocks"),help:Ja("This container is set as a grid item but is not inside a grid block. Deactivate this option for optimal results.","generateblocks"),checked:!!p,onChange:function(e){n({isGrid:e,gridId:""})}}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(ul,null,Object(l.createElement)(V,{label:Ja("Container Width","generateblocks"),value:"%",units:["%"],onClick:function(){return!1}}),Object(l.createElement)(el,{className:"widthButtons"},Object(l.createElement)($a,{isPrimary:25===f,onClick:function(){return n({width:25})}},"25"),Object(l.createElement)($a,{isPrimary:33.33===f,onClick:function(){return n({width:33.33})}},"33"),Object(l.createElement)($a,{isPrimary:50===f,onClick:function(){return n({width:50})}},"50"),Object(l.createElement)($a,{isPrimary:66.66===f,onClick:function(){return n({width:66.66})}},"66"),Object(l.createElement)($a,{isPrimary:75===f,onClick:function(){return n({width:75})}},"75"),Object(l.createElement)($a,{isPrimary:100===f,onClick:function(){return n({width:100})}},"100")),Object(l.createElement)(Xa,{className:"gblocks-column-width-control",value:f||"",onChange:function(e){n({width:e})},min:0,max:100,step:.01,initialPosition:generateBlocksDefaults.container.width}),Object(l.createElement)(al,{label:Ja("Vertical Alignment","generateblocks"),help:Ja("Align grid item content. Does not apply if vertical alignment is set in the grid.","generateblocks"),value:F,options:[{label:Ja("Default","generateblocks"),value:""},{label:Ja("Top","generateblocks"),value:"flex-start"},{label:Ja("Center","generateblocks"),value:"center"},{label:Ja("Bottom","generateblocks"),value:"flex-end"}],onChange:function(e){n({verticalAlignment:e})}}),Object(l.createElement)(tl,{label:Ja("Remove Vertical Gap","generateblocks"),checked:!!W,onChange:function(e){n({removeVerticalGap:e})}}),Object(l.createElement)(al,{label:Ja("Element Tag","generateblocks"),value:d,options:wl("generateblocks.editor.containerTagNames",ne,this.props,this.state),onChange:function(e){n({tagName:e})}}),wl("generateblocks.editor.controls","","containerAfterElementTag",this.props,this.state)),"Tablet"===this.getDeviceType()&&Object(l.createElement)(ul,null,Object(l.createElement)(V,{label:Ja("Container Width","generateblocks"),value:"%",units:["%"],onClick:function(){return!1}}),Object(l.createElement)(el,{className:"widthButtons"},Object(l.createElement)($a,{isPrimary:25===h,onClick:function(){return n({widthTablet:25})}},"25"),Object(l.createElement)($a,{isPrimary:33.33===h,onClick:function(){return n({widthTablet:33.33})}},"33"),Object(l.createElement)($a,{isPrimary:50===h,onClick:function(){return n({widthTablet:50})}},"50"),Object(l.createElement)($a,{isPrimary:66.66===h,onClick:function(){return n({widthTablet:66.66})}},"66"),Object(l.createElement)($a,{isPrimary:75===h,onClick:function(){return n({widthTablet:75})}},"75"),Object(l.createElement)($a,{isPrimary:100===h,onClick:function(){return n({widthTablet:100})}},"100")),Object(l.createElement)(Xa,{className:"gblocks-column-width-control",value:h||"",onChange:function(e){n({widthTablet:e})},min:0,max:100,step:.01,initialPosition:generateBlocksDefaults.container.widthTablet}),Object(l.createElement)(al,{label:Ja("Vertical Alignment","generateblocks"),help:Ja("Align grid item content. Does not apply if vertical alignment is set in the grid.","generateblocks"),value:_,options:[{label:Ja("Inherit","generateblocks"),value:"inherit"},{label:Ja("Default","generateblocks"),value:""},{label:Ja("Top","generateblocks"),value:"flex-start"},{label:Ja("Center","generateblocks"),value:"center"},{label:Ja("Bottom","generateblocks"),value:"flex-end"}],onChange:function(e){n({verticalAlignmentTablet:e})}}),Object(l.createElement)(tl,{label:Ja("Remove Vertical Gap","generateblocks"),checked:!!Z,onChange:function(e){n({removeVerticalGapTablet:e})}}),Object(l.createElement)(ll,{type:"number",label:Ja("Order","generateblocks"),value:J||0===J?J:"",onChange:function(e){n({orderTablet:parseFloat(e)})}})),"Mobile"===this.getDeviceType()&&Object(l.createElement)(ul,null,Object(l.createElement)(V,{label:Ja("Container Width","generateblocks"),value:"%",units:["%"],onClick:function(){return!1}}),Object(l.createElement)(el,{className:"widthButtons"},Object(l.createElement)($a,{isPrimary:25===m,onClick:function(){return n({widthMobile:25})}},"25"),Object(l.createElement)($a,{isPrimary:33.33===m,onClick:function(){return n({widthMobile:33.33})}},"33"),Object(l.createElement)($a,{isPrimary:50===m,onClick:function(){return n({widthMobile:50})}},"50"),Object(l.createElement)($a,{isPrimary:66.66===m,onClick:function(){return n({widthMobile:66.66})}},"66"),Object(l.createElement)($a,{isPrimary:75===m,onClick:function(){return n({widthMobile:75})}},"75"),Object(l.createElement)($a,{isPrimary:100===m,onClick:function(){return n({widthMobile:100})}},"100")),Object(l.createElement)(Xa,{className:"gblocks-column-width-control",value:m||"",onChange:function(e){n({widthMobile:e})},min:0,max:100,step:.01,initialPosition:generateBlocksDefaults.container.widthMobile}),Object(l.createElement)(al,{label:Ja("Vertical Alignment","generateblocks"),help:Ja("Align grid item content. Does not apply if vertical alignment is set in the grid.","generateblocks"),value:I,options:[{label:Ja("Inherit","generateblocks"),value:"inherit"},{label:Ja("Default","generateblocks"),value:""},{label:Ja("Top","generateblocks"),value:"flex-start"},{label:Ja("Center","generateblocks"),value:"center"},{label:Ja("Bottom","generateblocks"),value:"flex-end"}],onChange:function(e){n({verticalAlignmentMobile:e})}}),Object(l.createElement)(tl,{label:Ja("Remove Vertical Gap","generateblocks"),checked:!!K,onChange:function(e){n({removeVerticalGapMobile:e})}}),Object(l.createElement)(ll,{type:"number",label:Ja("Order","generateblocks"),value:Y||0===Y?Y:"",onChange:function(e){n({orderMobile:parseFloat(e)})}})),wl("generateblocks.editor.controls","","containerGridLayout",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:Ja("Typography","generateblocks"),initialOpen:!1,icon:O("typography"),className:"gblocks-panel-label",id:"containerTypography",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(ul,null,Object(l.createElement)(na,r()({},this.props,{showFontFamily:!0,showFontWeight:!0,showTextTransform:!0,showFontSize:!0,defaultFontSize:generateBlocksDefaults.container.fontSize,defaultFontSizeUnit:generateBlocksDefaults.container.fontSizeUnit,defaultLineHeight:generateBlocksDefaults.container.lineHeight,defaultLineHeightUnit:generateBlocksDefaults.container.lineHeightUnit,defaultLetterSpacing:generateBlocksDefaults.container.letterSpacing}))),"Tablet"===this.getDeviceType()&&Object(l.createElement)(ul,null,Object(l.createElement)(na,r()({},this.props,{device:"Tablet",showFontSize:!0,defaultFontSize:generateBlocksDefaults.container.fontSizeTablet,defaultFontSizeUnit:generateBlocksDefaults.container.fontSizeUnit,defaultLineHeight:generateBlocksDefaults.container.lineHeightTablet,defaultLineHeightUnit:generateBlocksDefaults.container.lineHeightUnit,defaultLetterSpacing:generateBlocksDefaults.container.letterSpacingTablet}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)(ul,null,Object(l.createElement)(na,r()({},this.props,{device:"Mobile",showFontSize:!0,defaultFontSize:generateBlocksDefaults.container.fontSizeMobile,defaultFontSizeUnit:generateBlocksDefaults.container.fontSizeUnit,defaultLineHeight:generateBlocksDefaults.container.lineHeightMobile,defaultLineHeightUnit:generateBlocksDefaults.container.lineHeightUnit,defaultLetterSpacing:generateBlocksDefaults.container.letterSpacingMobile}))),wl("generateblocks.editor.controls","","containerTypography",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:Ja("Spacing","generateblocks"),initialOpen:!1,icon:O("spacing"),className:"gblocks-panel-label",id:"containerSpacing",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(ul,null,Object(l.createElement)(V,{label:Ja("Minimum Height","generateblocks"),value:C,units:["px","vh","vw"],onClick:function(e){n({minHeightUnit:e})}}),Object(l.createElement)(ll,{type:"number",value:T||"",onChange:function(e){n({minHeight:parseFloat(e)})}}),!!T&&!p&&Object(l.createElement)(al,{label:Ja("Vertical Alignment","generateblocks"),value:F,options:[{label:Ja("Default","generateblocks"),value:""},{label:Ja("Top","generateblocks"),value:"flex-start"},{label:Ja("Center","generateblocks"),value:"center"},{label:Ja("Bottom","generateblocks"),value:"flex-end"}],onChange:function(e){n({verticalAlignment:e})}}),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Ja("Padding","generateblocks"),attrTop:"paddingTop",attrRight:"paddingRight",attrBottom:"paddingBottom",attrLeft:"paddingLeft",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.container,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Ja("Margin","generateblocks"),attrTop:"marginTop",attrRight:"marginRight",attrBottom:"marginBottom",attrLeft:"marginLeft",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.container,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Ja("Border Size","generateblocks"),attrTop:"borderSizeTop",attrRight:"borderSizeRight",attrBottom:"borderSizeBottom",attrLeft:"borderSizeLeft",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.container,units:["px"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Ja("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeft",attrRight:"borderRadiusTopRight",attrBottom:"borderRadiusBottomRight",attrLeft:"borderRadiusBottomLeft",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Ja("T-Left","generateblocks"),labelRight:Ja("T-Right","generateblocks"),labelBottom:Ja("B-Right","generateblocks"),labelLeft:Ja("B-Left","generateblocks"),defaults:generateBlocksDefaults.container,units:["px","em","%"]})),Object(l.createElement)(ll,{label:Ja("Outer z-index","generateblocks"),type:"number",value:G||0===G?G:"",onChange:function(e){n({zindex:e})},onBlur:function(){n({zindex:parseFloat(G)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(ll,{label:Ja("Inner z-index","generateblocks"),type:"number",value:q||0===q?q:"",onChange:function(e){n({innerZindex:e})},onBlur:function(){n({innerZindex:parseFloat(q)})},onClick:function(e){e.currentTarget.focus()}})),"Tablet"===this.getDeviceType()&&Object(l.createElement)(ul,null,Object(l.createElement)(V,{label:Ja("Minimum Height","generateblocks"),value:B,units:["px","vh","vw"],onClick:function(e){n({minHeightUnitTablet:e})}}),Object(l.createElement)(ll,{type:"number",value:S||"",onChange:function(e){n({minHeightTablet:parseFloat(e)})}}),(!!T||!!S)&&!p&&Object(l.createElement)(al,{label:Ja("Vertical Alignment","generateblocks"),value:_,options:[{label:Ja("Inherit","generateblocks"),value:"inherit"},{label:Ja("Default","generateblocks"),value:""},{label:Ja("Top","generateblocks"),value:"flex-start"},{label:Ja("Center","generateblocks"),value:"center"},{label:Ja("Bottom","generateblocks"),value:"flex-end"}],onChange:function(e){n({verticalAlignmentTablet:e})}}),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Ja("Padding","generateblocks"),attrTop:"paddingTopTablet",attrRight:"paddingRightTablet",attrBottom:"paddingBottomTablet",attrLeft:"paddingLeftTablet",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.container,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Ja("Margin","generateblocks"),attrTop:"marginTopTablet",attrRight:"marginRightTablet",attrBottom:"marginBottomTablet",attrLeft:"marginLeftTablet",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.container,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Ja("Border Size","generateblocks"),attrTop:"borderSizeTopTablet",attrRight:"borderSizeRightTablet",attrBottom:"borderSizeBottomTablet",attrLeft:"borderSizeLeftTablet",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.container,units:["px"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Ja("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftTablet",attrRight:"borderRadiusTopRightTablet",attrBottom:"borderRadiusBottomRightTablet",attrLeft:"borderRadiusBottomLeftTablet",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Ja("T-Left","generateblocks"),labelRight:Ja("T-Right","generateblocks"),labelBottom:Ja("B-Right","generateblocks"),labelLeft:Ja("B-Left","generateblocks"),defaults:generateBlocksDefaults.container,units:["px","em","%"]}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)(ul,null,Object(l.createElement)(V,{label:Ja("Minimum Height","generateblocks"),value:E,units:["px","vh","vw"],onClick:function(e){n({minHeightUnitMobile:e})}}),Object(l.createElement)(ll,{type:"number",value:D||"",onChange:function(e){n({minHeightMobile:parseFloat(e)})}}),(!!T||!!S||!!D)&&!p&&Object(l.createElement)(al,{label:Ja("Vertical Alignment","generateblocks"),value:I,options:[{label:Ja("Inherit","generateblocks"),value:"inherit"},{label:Ja("Default","generateblocks"),value:""},{label:Ja("Top","generateblocks"),value:"flex-start"},{label:Ja("Center","generateblocks"),value:"center"},{label:Ja("Bottom","generateblocks"),value:"flex-end"}],onChange:function(e){n({verticalAlignmentMobile:e})}}),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Ja("Padding","generateblocks"),attrTop:"paddingTopMobile",attrRight:"paddingRightMobile",attrBottom:"paddingBottomMobile",attrLeft:"paddingLeftMobile",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.container,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Ja("Margin","generateblocks"),attrTop:"marginTopMobile",attrRight:"marginRightMobile",attrBottom:"marginBottomMobile",attrLeft:"marginLeftMobile",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.container,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Ja("Border Size","generateblocks"),attrTop:"borderSizeTopMobile",attrRight:"borderSizeRightMobile",attrBottom:"borderSizeBottomMobile",attrLeft:"borderSizeLeftMobile",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.container,units:["px"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Ja("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftMobile",attrRight:"borderRadiusTopRightMobile",attrBottom:"borderRadiusBottomRightMobile",attrLeft:"borderRadiusBottomLeftMobile",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Ja("T-Left","generateblocks"),labelRight:Ja("T-Right","generateblocks"),labelBottom:Ja("B-Right","generateblocks"),labelLeft:Ja("B-Left","generateblocks"),defaults:generateBlocksDefaults.container,units:["px","em","%"]}))),wl("generateblocks.editor.controls","","containerSpacing",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:Ja("Colors","generateblocks"),initialOpen:!1,icon:O("colors"),className:"gblocks-panel-label",id:"containerColors",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(ul,null,Object(l.createElement)(At,{label:Ja("Background Color","generateblocks"),value:M,alpha:!0,valueOpacity:z,attrOpacity:"backgroundColorOpacity",onChange:function(e){return n({backgroundColor:e})},onOpacityChange:function(e){return n({backgroundColorOpacity:e})}}),Object(l.createElement)(At,{label:Ja("Text Color","generateblocks"),value:L,alpha:!1,onChange:function(e){return n({textColor:e})}}),Object(l.createElement)(At,{label:Ja("Link Color","generateblocks"),value:P,alpha:!1,onChange:function(e){return n({linkColor:e})}}),Object(l.createElement)(At,{label:Ja("Link Color Hover","generateblocks"),value:A,alpha:!1,onChange:function(e){return n({linkColorHover:e})}}),Object(l.createElement)(At,{label:Ja("Border Color","generateblocks"),value:j,alpha:!0,valueOpacity:R,attrOpacity:"borderColorOpacity",onChange:function(e){return n({borderColor:e})},onOpacityChange:function(e){return n({borderColorOpacity:e})}})),wl("generateblocks.editor.controls","","containerColors",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:Ja("Background Gradient","generateblocks"),initialOpen:!1,icon:O("gradients"),className:"gblocks-panel-label",id:"containerBackgroundGradient",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(ka,r()({},this.props,{attrGradient:"gradient",attrGradientDirection:"gradientDirection",attrGradientColorOne:"gradientColorOne",attrGradientColorStopOne:"gradientColorStopOne",attrGradientColorTwo:"gradientColorTwo",attrGradientColorStopTwo:"gradientColorStopTwo",attrGradientColorOneOpacity:"gradientColorOneOpacity",attrGradientColorTwoOpacity:"gradientColorTwoOpacity",defaultColorOne:generateBlocksDefaults.container.gradientColorOne,defaultColorTwo:generateBlocksDefaults.container.gradientColorTwo})),wl("generateblocks.editor.controls","","containerBackgroundGradient",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:Ja("Background Image","generateblocks"),initialOpen:!1,icon:O("backgrounds"),className:"gblocks-panel-label",id:"containerBackgroundImage",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(ul,null,Object(l.createElement)(il,{id:"gblocks-background-image-upload",label:Ja("Image URL","generateblocks")},Object(l.createElement)("div",{className:"gblocks-bg-image-wrapper"},Object(l.createElement)(ll,{type:"text",value:U?U.image.url:"",onChange:function(e){n(e?{bgImage:{id:"",image:{url:e}}}:{bgImage:null})}}),Object(l.createElement)("div",{className:"gblocks-background-image-action-buttons"},Object(l.createElement)(hl,{title:Ja("Set background image","generateblocks"),onSelect:function(e){var t=generateBlocksDefaults.container.bgImageSize;void 0===e.sizes[t]&&(t="full"),n({bgImage:{id:e.id,image:e.sizes[t]}})},onClose:function(){document.querySelector(".gblocks-bg-image-wrapper input").focus()},allowedTypes:["image"],value:U?U.id:"",modalClass:"editor-gb-container-background__media-modal",render:function(e){var t=e.open;return Object(l.createElement)(cl,{text:Ja("Open the Media Library","generateblocks")},Object(l.createElement)($a,{onClick:t,className:"is-secondary is-small"},Ja("Browse","generateblocks")))}}),wl("generateblocks.editor.backgroundImageActions","",this.props,this.state)))),!!U&&Object(l.createElement)("div",{className:"section-bg-settings"},H.overlay?Object(l.createElement)(ul,null,Object(l.createElement)(tl,{label:Ja("Background Color Overlay","generateblocks"),checked:!!H.overlay,onChange:function(e){n({bgOptions:Wa(Wa({},H),{},{overlay:e})})}}),Object(l.createElement)(rl,{className:"gblocks-option-notice",status:"info",isDismissible:!1},Ja("The background color overlay option is deprecated. Toggle this option to use the new method.","generateblocks"))):Object(l.createElement)(ul,null,void 0!==U.id&&U.id&&Object(l.createElement)(al,{label:Ja("Image Size","generateblocks"),value:N,options:he,onChange:function(e){n({bgImageSize:e})}}),Object(l.createElement)(al,{label:Ja("Selector","generateblocks"),value:H.selector,options:[{label:Ja("Element","generateblocks"),value:"element"},{label:Ja("Pseudo Element","generateblocks"),value:"pseudo-element"}],onChange:function(e){n({bgOptions:Wa(Wa({},H),{},{selector:e})})}}),Object(l.createElement)(Xa,{label:Ja("Image Opacity","generateblocks"),value:H.opacity,onChange:function(e){n({bgOptions:Wa(Wa({},H),{},{opacity:e,selector:"pseudo-element"})})},min:0,max:1,step:.1,initialPosition:generateBlocksDefaults.container.bgOptions.opacity}),1!==H.opacity&&"pseudo-element"!==H.selector&&Object(l.createElement)(rl,{className:"gblocks-option-notice",status:"info",isDismissible:!1},Ja("Your selector must be set to Pseudo Element to use opacity.","generateblocks"))),Object(l.createElement)(ll,{label:Ja("Size","generateblocks"),value:H.size,onChange:function(e){n({bgOptions:Wa(Wa({},H),{},{size:e})})}}),Object(l.createElement)(ll,{label:Ja("Position","generateblocks"),value:H.position,onChange:function(e){n({bgOptions:Wa(Wa({},H),{},{position:e})})}}),Object(l.createElement)(al,{label:Ja("Repeat","generateblocks"),value:H.repeat,options:[{label:"no-repeat",value:"no-repeat"},{label:"repeat",value:"repeat"},{label:"repeat-x",value:"repeat-x"},{label:"repeat-y",value:"repeat-y"}],onChange:function(e){n({bgOptions:Wa(Wa({},H),{},{repeat:e})})}}),Object(l.createElement)(al,{label:Ja("Attachment","generateblocks"),value:H.attachment,options:[{label:"scroll",value:""},{label:"fixed",value:"fixed"},{label:"local",value:"local"}],onChange:function(e){n({bgOptions:Wa(Wa({},H),{},{attachment:e})})}}))),wl("generateblocks.editor.controls","","containerBackgroundImage",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:Ja("Shapes","generateblocks"),initialOpen:!1,icon:O("shapes"),className:"gblocks-panel-label",id:"containerShapes",state:this.state,showPanel:!("Desktop"!==this.getDeviceType()&&!i.shapeDividers.length)}),Object(l.createElement)(il,{className:"gb-icon-chooser gb-shape-chooser"},re.map((function(e,a){var i=a+1;return Object(l.createElement)(ul,{key:a},Object(l.createElement)("div",{className:"gblocks-shape-container"},Object(l.createElement)("div",{className:v()(o()({"gblocks-shape-toggle-preview":!0},"gblocks-shape-toggle-preview-".concat(i),!0)),style:{backgroundColor:M}},void 0!==fe[re[a].shape]&&Object(l.createElement)("div",{className:"gblocks-shape-divider-preview",style:{color:re[a].color},dangerouslySetInnerHTML:{__html:va(fe[re[a].shape].icon)}})),
|
8 |
/* translators: Shape number */
|
9 |
-
Ya(Ja("Shape %s","generateblocks"),i),Object(l.createElement)(ul,null,Object(l.createElement)(sl,{renderToggle:function(e){var t=e.isOpen,a=e.onToggle;return Object(l.createElement)(cl,{text:Ja("Edit Shape","generateblocks")},Object(l.createElement)($a,{className:"gblocks-shape-dropdown",isSecondary:!t||void 0,isPrimary:!!t||void 0,icon:"admin-tools",onClick:a,"aria-expanded":t}))},renderContent:function(){return Object(l.createElement)("div",{className:"gblocks-shape-controls"},"Desktop"===t.getDeviceType()&&Object(l.createElement)(ul,null,Object(l.createElement)(il,{className:"gb-icon-chooser"},Object.keys(generateBlocksInfo.svgShapes).map((function(e,t){var i=generateBlocksInfo.svgShapes[e].svgs;return Object(l.createElement)(nl,{title:generateBlocksInfo.svgShapes[e].group,initialOpen:i.hasOwnProperty(re[a].shape),key:t},Object(l.createElement)(ol,null,Object(l.createElement)(il,null,Object(l.createElement)("ul",{className:"gblocks-icon-chooser gblocks-shape-chooser"},Object.keys(i).map((function(e,t){return Object(l.createElement)("li",{key:"editor-pblock-types-list-item-".concat(t)},Object(l.createElement)(cl,{text:i[e].label},Object(l.createElement)($a,{className:v()({"editor-block-list-item-button":!0,"gblocks-shape-is-active":re[a].shape===e}),onClick:function(){var t=vt()(re);t[a]=Wa(Wa({},t[a]),{},{shape:e}),n({shapeDividers:t})}},"string"==typeof i[e].icon?Object(l.createElement)(ul,null,Object(l.createElement)("span",{className:"editor-block-types-list__item-icon",dangerouslySetInnerHTML:{__html:va(i[e].icon)}})):Object(l.createElement)(ul,null,Object(l.createElement)("span",{className:"editor-block-types-list__item-icon"},i[e].icon)))))}))))))}))),Object(l.createElement)(At,{label:Ja("Color","generateblocks"),value:re[a].color,alpha:!0,valueOpacity:re[a].colorOpacity,onChange:function(e){var t=vt()(re);t[a]=Wa(Wa({},t[a]),{},{color:e}),n({shapeDividers:t})},onOpacityChange:function(e){var t=vt()(re);t[a]=Wa(Wa({},t[a]),{},{colorOpacity:e}),n({shapeDividers:t})}}),Object(l.createElement)(al,{label:Ja("Location","generateblocks"),value:re[a].location,options:[{label:Ja("Top","generateblocks"),value:"top"},{label:Ja("Bottom","generateblocks"),value:"bottom"}],onChange:function(e){var t=vt()(re);t[a]=Wa(Wa({},t[a]),{},{location:e}),n({shapeDividers:t})}}),Object(l.createElement)(V,{label:Ja("Height","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)(ll,{type:"number",value:re[a].height?re[a].height:"",onChange:function(e){var t=vt()(re);t[a]=Wa(Wa({},t[a]),{},{height:parseFloat(e)}),n({shapeDividers:t})}}),Object(l.createElement)(V,{label:Ja("Width","generateblocks"),value:"%",units:["%"],onClick:function(){return!1}}),Object(l.createElement)(ll,{type:"number",value:re[a].width?re[a].width:"",min:"100",onChange:function(e){var t=vt()(re);t[a]=Wa(Wa({},t[a]),{},{width:parseFloat(e)}),n({shapeDividers:t})}}),Object(l.createElement)(tl,{label:Ja("Flip Horizontally","generateblocks"),checked:!!re[a].flipHorizontally,onChange:function(e){var t=vt()(re);t[a]=Wa(Wa({},t[a]),{},{flipHorizontally:e}),n({shapeDividers:t})}}),Object(l.createElement)(ll,{label:Ja("z-index","generateblocks"),type:"number",min:"0",value:re[a].zindex||0===re[a].zindex?re[a].zindex:"",onChange:function(e){var t=vt()(re);t[a]=Wa(Wa({},t[a]),{},{zindex:e}),n({shapeDividers:t})},onBlur:function(){var e=vt()(re);e[a]=Wa(Wa({},e[a]),{},{zindex:parseFloat(re[a].zindex)}),n({shapeDividers:e})},onClick:function(e){e.currentTarget.focus()}})),"Tablet"===t.getDeviceType()&&Object(l.createElement)(ul,null,Object(l.createElement)(V,{label:Ja("Height","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)(ll,{type:"number",value:re[a].heightTablet?re[a].heightTablet:"",onChange:function(e){var t=vt()(re);t[a]=Wa(Wa({},t[a]),{},{heightTablet:parseFloat(e)}),n({shapeDividers:t})}}),Object(l.createElement)(V,{label:Ja("Width","generateblocks"),value:"%",units:["%"],onClick:function(){return!1}}),Object(l.createElement)(ll,{type:"number",value:re[a].widthTablet?re[a].widthTablet:"",min:"100",onChange:function(e){var t=vt()(re);t[a]=Wa(Wa({},t[a]),{},{widthTablet:parseFloat(e)}),n({shapeDividers:t})}})),"Mobile"===t.getDeviceType()&&Object(l.createElement)(ul,null,Object(l.createElement)(V,{label:Ja("Height","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)(ll,{type:"number",value:re[a].heightMobile?re[a].heightMobile:"",onChange:function(e){var t=vt()(re);t[a]=Wa(Wa({},t[a]),{},{heightMobile:parseFloat(e)}),n({shapeDividers:t})}}),Object(l.createElement)(V,{label:Ja("Width","generateblocks"),value:"%",units:["%"],onClick:function(){return!1}}),Object(l.createElement)(ll,{type:"number",value:re[a].widthMobile?re[a].widthMobile:"",min:"100",onChange:function(e){var t=vt()(re);t[a]=Wa(Wa({},t[a]),{},{widthMobile:parseFloat(e)}),n({shapeDividers:t})}})))}})),"Desktop"===t.getDeviceType()&&Object(l.createElement)(cl,{text:Ja("Delete Shape","generateblocks")},Object(l.createElement)($a,{className:"gblocks-remove-shape",onClick:function(){window.confirm(Ja("This will permanently delete this shape.","generateblocks"))&&function(e){var t=vt()(re);t.splice(e,1),n({shapeDividers:t})}(a)},icon:"no-alt"}))))})),Object(l.createElement)("div",{className:"gblocks-add-new-shape"},Object(l.createElement)($a,{isSecondary:!0,onClick:function(){var e=vt()(re);e.push({shape:generateBlocksStyling.container.shapeDividers.shape,color:generateBlocksStyling.container.shapeDividers.color,colorOpacity:generateBlocksStyling.container.shapeDividers.colorOpacity,location:generateBlocksStyling.container.shapeDividers.location,height:generateBlocksStyling.container.shapeDividers.height,heightTablet:generateBlocksStyling.container.shapeDividers.heightTablet,heightMobile:generateBlocksStyling.container.shapeDividers.heightMobile,width:generateBlocksStyling.container.shapeDividers.width,widthTablet:generateBlocksStyling.container.shapeDividers.widthTablet,widthMobile:generateBlocksStyling.container.shapeDividers.widthMobile,flipHorizontally:generateBlocksStyling.container.shapeDividers.flipHorizontally,zindex:generateBlocksStyling.container.shapeDividers.zindex}),n({shapeDividers:e})}.bind(this)},Ja("Add Shape","generateblocks")))),wl("generateblocks.editor.controls","","containerShapeDivider",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:Ja("Documentation","generateblocks"),initialOpen:!1,icon:O("documentation"),className:"gblocks-panel-label",id:"containerDocumentation",state:this.state}),Object(l.createElement)("p",null,Ja("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/container/",target:"_blank",rel:"noreferrer noopener"},Ja("Visit our documentation","generateblocks")),wl("generateblocks.editor.controls","","containerDocumentation",this.props,this.state))),Object(l.createElement)(kl,null,Object(l.createElement)(ll,{label:Ja("HTML Anchor"),help:Ja("Anchors lets you link directly to a section on a page.","generateblocks"),value:b||"",onChange:function(e){e=e.replace(Sl,"-"),n({anchor:e})}})),Object(l.createElement)(Ea,this.props),this.props.deviceType&&Object(l.createElement)(ul,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(za,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(Aa,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(Fa,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(Va,this.props)),ee&&te&&Object(l.createElement)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family="+ee.replace(/ /g,"+")+ge}),Object(l.createElement)(Ot,{tagName:d,htmlAttrs:me},wl("generateblocks.frontend.afterContainerOpen","",i),Object(l.createElement)("div",{className:v()({"gb-inside-container":!0})},wl("generateblocks.frontend.insideContainer","",i),Object(l.createElement)(fl,{templateLock:!1,renderAppender:c?void 0:function(){return Object(l.createElement)(fl.ButtonBlockAppender,null)}})),Object(l.createElement)(ul,null,!!i.shapeDividers.length&&Object(l.createElement)("div",{className:"gb-shapes"},i.shapeDividers.map((function(e,t){var a=t+1;return Object(l.createElement)(ul,{key:t},void 0!==fe[re[t].shape]&&Object(l.createElement)("div",{className:v()(o()({"gb-shape":!0},"gb-shape-".concat(a),!0)),dangerouslySetInnerHTML:{__html:va(fe[re[t].shape].icon)}}))})))),wl("generateblocks.frontend.beforeContainerClose","",i)))}}]),a}(bl),El=Cl([Ol((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),Tl((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType,a=e("core").getMedia,l=(0,e("core/editor").getEditedPostAttribute)("featured_media");return t?{media:l?a(l):null,deviceType:t()}:{media:l?a(l):null,deviceType:null}}))])(Dl),jl={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},isGrid:{type:"boolean",default:!1},gridId:{type:"string",default:""},tagName:{type:"string",default:generateBlocksDefaults.container.tagName},width:{type:"number",default:generateBlocksDefaults.container.width},widthTablet:{type:"number",default:generateBlocksDefaults.container.widthTablet},widthMobile:{type:"number",default:generateBlocksDefaults.container.widthMobile},orderTablet:{type:"number",default:generateBlocksDefaults.container.orderTablet},orderMobile:{type:"number",default:generateBlocksDefaults.container.orderMobile},outerContainer:{type:"string",default:generateBlocksDefaults.container.outerContainer},innerContainer:{type:"string",default:generateBlocksDefaults.container.innerContainer},containerWidth:{type:"number",default:generateBlocksDefaults.container.containerWidth},minHeight:{type:"number",default:generateBlocksDefaults.container.minHeight},minHeightUnit:{type:"string",default:generateBlocksDefaults.container.minHeightUnit},minHeightTablet:{type:"number",default:generateBlocksDefaults.container.minHeightTablet},minHeightUnitTablet:{type:"string",default:generateBlocksDefaults.container.minHeightUnitTablet},minHeightMobile:{type:"number",default:generateBlocksDefaults.container.minHeightMobile},minHeightUnitMobile:{type:"string",default:generateBlocksDefaults.container.minHeightUnitMobile},paddingTop:{type:"string",default:generateBlocksDefaults.container.paddingTop},paddingRight:{type:"string",default:generateBlocksDefaults.container.paddingRight},paddingBottom:{type:"string",default:generateBlocksDefaults.container.paddingBottom},paddingLeft:{type:"string",default:generateBlocksDefaults.container.paddingLeft},paddingUnit:{type:"string",default:generateBlocksDefaults.container.paddingUnit},paddingSyncUnits:{type:"boolean",default:!1},paddingTopTablet:{type:"string",default:generateBlocksDefaults.container.paddingTopTablet},paddingRightTablet:{type:"string",default:generateBlocksDefaults.container.paddingRightTablet},paddingBottomTablet:{type:"string",default:generateBlocksDefaults.container.paddingBottomTablet},paddingLeftTablet:{type:"string",default:generateBlocksDefaults.container.paddingLeftTablet},paddingTopMobile:{type:"string",default:generateBlocksDefaults.container.paddingTopMobile},paddingRightMobile:{type:"string",default:generateBlocksDefaults.container.paddingRightMobile},paddingBottomMobile:{type:"string",default:generateBlocksDefaults.container.paddingBottomMobile},paddingLeftMobile:{type:"string",default:generateBlocksDefaults.container.paddingLeftMobile},marginTop:{type:"string",default:generateBlocksDefaults.container.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.container.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.container.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.container.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.container.marginUnit},marginSyncUnits:{type:"boolean",default:!1},marginTopTablet:{type:"string",default:generateBlocksDefaults.container.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.container.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.container.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.container.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.container.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.container.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.container.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.container.marginLeftMobile},borderSizeTop:{type:"string",default:generateBlocksDefaults.container.borderSizeTop},borderSizeRight:{type:"string",default:generateBlocksDefaults.container.borderSizeRight},borderSizeBottom:{type:"string",default:generateBlocksDefaults.container.borderSizeBottom},borderSizeLeft:{type:"string",default:generateBlocksDefaults.container.borderSizeLeft},borderSizeTopTablet:{type:"string",default:generateBlocksDefaults.container.borderSizeTopTablet},borderSizeRightTablet:{type:"string",default:generateBlocksDefaults.container.borderSizeRightTablet},borderSizeBottomTablet:{type:"string",default:generateBlocksDefaults.container.borderSizeBottomTablet},borderSizeLeftTablet:{type:"string",default:generateBlocksDefaults.container.borderSizeLeftTablet},borderSizeTopMobile:{type:"string",default:generateBlocksDefaults.container.borderSizeTopMobile},borderSizeRightMobile:{type:"string",default:generateBlocksDefaults.container.borderSizeRightMobile},borderSizeBottomMobile:{type:"string",default:generateBlocksDefaults.container.borderSizeBottomMobile},borderSizeLeftMobile:{type:"string",default:generateBlocksDefaults.container.borderSizeLeftMobile},borderRadiusTopRight:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopRight},borderRadiusBottomRight:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomRight},borderRadiusBottomLeft:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomLeft},borderRadiusTopLeft:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopLeft},borderRadiusUnit:{type:"string",default:generateBlocksDefaults.container.borderRadiusUnit},borderRadiusTopRightTablet:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopRightTablet},borderRadiusBottomRightTablet:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomRightTablet},borderRadiusBottomLeftTablet:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomLeftTablet},borderRadiusTopLeftTablet:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopLeftTablet},borderRadiusTopRightMobile:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopRightMobile},borderRadiusBottomRightMobile:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomRightMobile},borderRadiusBottomLeftMobile:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomLeftMobile},borderRadiusTopLeftMobile:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopLeftMobile},borderColor:{type:"string",default:generateBlocksDefaults.container.borderColor},borderColorOpacity:{type:"number",default:generateBlocksDefaults.container.borderColorOpacity},backgroundColor:{type:"string",default:generateBlocksDefaults.container.backgroundColor},backgroundColorOpacity:{type:"number",default:generateBlocksDefaults.container.backgroundColorOpacity},gradient:{type:"boolean",default:generateBlocksDefaults.container.gradient},gradientDirection:{type:"number",default:generateBlocksDefaults.container.gradientDirection},gradientColorOne:{type:"string",default:generateBlocksDefaults.container.gradientColorOne},gradientColorOneOpacity:{type:"number",default:generateBlocksDefaults.container.gradientColorOneOpacity},gradientColorStopOne:{type:"number",default:generateBlocksDefaults.container.gradientColorStopOne},gradientColorTwo:{type:"string",default:generateBlocksDefaults.container.gradientColorTwo},gradientColorTwoOpacity:{type:"number",default:generateBlocksDefaults.container.gradientColorTwoOpacity},gradientColorStopTwo:{type:"number",default:generateBlocksDefaults.container.gradientColorStopTwo},gradientSelector:{type:"string",default:"element"},textColor:{type:"string",default:generateBlocksDefaults.container.textColor},linkColor:{type:"string",default:generateBlocksDefaults.container.linkColor},linkColorHover:{type:"string",default:generateBlocksDefaults.container.linkColorHover},bgImage:{type:"object",default:generateBlocksDefaults.container.bgImage},bgOptions:{type:"object",default:{selector:generateBlocksDefaults.container.bgOptions.selector,opacity:generateBlocksDefaults.container.bgOptions.opacity,overlay:generateBlocksDefaults.container.bgOptions.overlay,position:generateBlocksDefaults.container.bgOptions.position,size:generateBlocksDefaults.container.bgOptions.size,repeat:generateBlocksDefaults.container.bgOptions.repeat,attachment:generateBlocksDefaults.container.bgOptions.attachment}},bgImageSize:{type:"string",default:generateBlocksDefaults.container.bgImageSize},verticalAlignment:{type:"string",default:generateBlocksDefaults.container.verticalAlignment},verticalAlignmentTablet:{type:"string",default:generateBlocksDefaults.container.verticalAlignmentTablet},verticalAlignmentMobile:{type:"string",default:generateBlocksDefaults.container.verticalAlignmentMobile},zindex:{type:"number",default:generateBlocksDefaults.container.zindex},innerZindex:{type:"number",default:generateBlocksDefaults.container.innerZindex},removeVerticalGap:{type:"boolean",default:generateBlocksDefaults.container.removeVerticalGap},removeVerticalGapTablet:{type:"boolean",default:generateBlocksDefaults.container.removeVerticalGapTablet},removeVerticalGapMobile:{type:"boolean",default:generateBlocksDefaults.container.removeVerticalGapMobile},alignment:{type:"string",default:generateBlocksDefaults.container.alignment},alignmentTablet:{type:"string",default:generateBlocksDefaults.container.alignmentTablet},alignmentMobile:{type:"string",default:generateBlocksDefaults.container.alignmentMobile},showAdvancedTypography:{type:"boolean",default:generateBlocksDefaults.headline.showAdvancedTypography},fontFamily:{type:"string",default:generateBlocksDefaults.container.fontFamily},fontFamilyFallback:{type:"string",default:generateBlocksDefaults.container.fontFamilyFallback},googleFont:{type:"boolean",default:generateBlocksDefaults.container.googleFont},googleFontVariants:{type:"string",default:generateBlocksDefaults.container.googleFontVariants},fontWeight:{type:"string",default:generateBlocksDefaults.container.fontWeight},fontSize:{type:"number",default:generateBlocksDefaults.container.fontSize},fontSizeTablet:{type:"number",default:generateBlocksDefaults.container.fontSizeTablet},fontSizeMobile:{type:"number",default:generateBlocksDefaults.container.fontSizeMobile},fontSizeUnit:{type:"string",default:generateBlocksDefaults.container.fontSizeUnit},textTransform:{type:"string",default:""},align:{type:"string",default:""},shapeDividers:{type:"array",default:[]},isDynamic:{type:"boolean"},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};generateBlocksInfo.hasCustomFields&&Object.assign(jl,{fullWidthContent:{type:"string",source:"meta",meta:"_generate-full-width-content"}});var Rl=jl;function Ml(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function zl(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?Ml(Object(a),!0).forEach((function(t){o()(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Ml(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var xl=wp.hooks.applyFilters,Ll=wp.blockEditor.InnerBlocks,Pl=[{attributes:Rl,supports:{align:!1,anchor:!1,className:!1,customClassName:!1},migrate:function(e){var t=e.cssClasses?e.cssClasses:e.className,a=e.elementId?e.elementId:e.anchor;return zl(zl({},e),{},{className:t,anchor:a,cssClasses:"",elementId:""})},save:function(e){var t,a=e.attributes,i=a.uniqueId,r=a.tagName,n=a.elementId,c=a.cssClasses,s=a.isGrid,g=a.align,u={className:v()((t={"gb-container":!0},o()(t,"gb-container-".concat(i),!0),o()(t,"".concat(c),""!==c),o()(t,"align".concat(g),!!g&&!s),t)),id:n||null};return u=xl("generateblocks.frontend.htmlAttributes",u,"generateblocks/container",a),Object(l.createElement)((function(e){var t=e.condition,a=e.wrap,l=e.children;return t?a(l):l}),{condition:s,wrap:function(e){return Object(l.createElement)("div",{className:v()(o()({"gb-grid-column":!0},"gb-grid-column-".concat(i),!0))},e)}},Object(l.createElement)(Ot,{tagName:r,htmlAttrs:u},xl("generateblocks.frontend.insideContainer","",a),Object(l.createElement)("div",{className:v()({"gb-inside-container":!0})},Object(l.createElement)(Ll.Content,null))))}}],Al=wp.i18n.__,Ul=wp.blocks.registerBlockType,Hl=wp.blockEditor.InnerBlocks;Ul("generateblocks/container",{title:Al("Container","generateblocks"),description:Al("Organize your content into rows and sections.","generateblocks"),icon:O("container"),category:"generateblocks",keywords:[Al("section"),Al("container"),Al("generate")],attributes:Rl,supports:{align:!1,className:!1},edit:El,save:function(){return Object(l.createElement)(Hl.Content,null)},deprecated:Pl});a(31);function Nl(e){return"left"===e||"top"===e?"flex-start":"right"===e||"bottom"===e?"flex-end":e}function Fl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var _l=wp.element.Component,Il=wp.hooks.applyFilters,Gl=function(e){f()(a,e);var t=Fl(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=this.props.attributes,t=e.uniqueId,a=e.alignment,i=e.marginTop,r=e.marginRight,n=e.marginBottom,o=e.marginLeft,c=e.marginUnit,s=e.stack,g=e.fillHorizontalSpace,u=[];return u[".gb-button-wrapper-"+t]=[{display:!!g&&"block",margin:Ta(i,r,n,o,c),"justify-content":Nl(a),"flex-direction":!!s&&"column","align-items":!!s&&Nl(a)}],u[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!s&&"column","align-items":!!s&&Nl(a)}],g&&(u[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],u[".gb-button-wrapper-"+t+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),s&&g&&(u[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),u=Il("generateblocks.editor.mainCSS",u,this.props,"button-container"),Object(l.createElement)("style",null,Z(u))}}]),a}(_l);function Vl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ql=wp.element.Component,Wl=wp.hooks.applyFilters,Zl=function(e){f()(a,e);var t=Vl(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=[];return e=Wl("generateblocks.editor.desktopCSS",e,this.props,"button-container"),Object(l.createElement)("style",null,Z(e))}}]),a}(ql);function Kl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Jl=wp.element.Component,Yl=wp.hooks.applyFilters,Ql=function(e){f()(a,e);var t=Kl(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=this.props.attributes,t=e.uniqueId,a=e.alignmentTablet,i=e.marginTopTablet,r=e.marginRightTablet,n=e.marginBottomTablet,o=e.marginLeftTablet,c=e.marginUnit,s=e.stackTablet,g=e.fillHorizontalSpaceTablet,u=[];return u[".gb-button-wrapper-"+t]=[{display:!!g&&"block","margin-top":K(i,c),"margin-right":K(r,c),"margin-bottom":K(n,c),"margin-left":K(o,c),"justify-content":Nl(a),"flex-direction":!!s&&"column","align-items":!!s&&Nl(a)}],u[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!s&&"column","align-items":!!s&&Nl(a)}],g&&(u[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],u[".gb-button-wrapper-"+t+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),s&&g&&(u[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),u=Yl("generateblocks.editor.tabletCSS",u,this.props,"button-container"),Object(l.createElement)("style",null,Z(u))}}]),a}(Jl);function Xl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var $l=wp.element.Component,ei=wp.hooks.applyFilters,ti=function(e){f()(a,e);var t=Xl(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=[];return e=ei("generateblocks.editor.tabletOnlyCSS",e,this.props,"button-container"),Object(l.createElement)("style",null,Z(e))}}]),a}($l);function ai(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var li=wp.element.Component,ii=wp.hooks.applyFilters,ri=function(e){f()(a,e);var t=ai(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=this.props.attributes,t=e.uniqueId,a=e.alignmentMobile,i=e.marginTopMobile,r=e.marginRightMobile,n=e.marginBottomMobile,o=e.marginLeftMobile,c=e.marginUnit,s=e.stackMobile,g=e.fillHorizontalSpaceMobile,u=[];return u[".gb-button-wrapper-"+t]=[{display:!!g&&"block","margin-top":K(i,c),"margin-right":K(r,c),"margin-bottom":K(n,c),"margin-left":K(o,c),"justify-content":Nl(a),"flex-direction":!!s&&"column","align-items":!!s&&Nl(a)}],u[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!s&&"column","align-items":!!s&&Nl(a)}],g&&(u[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],u[".gb-button-wrapper-"+t+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),s&&g&&(u[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),u=ii("generateblocks.editor.mobileCSS",u,this.props,"button-container"),Object(l.createElement)("style",null,Z(u))}}]),a}(li);function ni(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var oi=wp.i18n.__,ci=wp.components,si=ci.Tooltip,gi=ci.Button,ui=ci.ToggleControl,bi=ci.ToolbarGroup,di=ci.ToolbarButton,pi=ci.TextControl,fi=wp.element,hi=fi.Fragment,mi=fi.Component,ki=wp.blockEditor,yi=ki.InspectorControls,wi=ki.InnerBlocks,vi=ki.AlignmentToolbar,Ti=ki.BlockControls,Oi=ki.InspectorAdvancedControls,Ci=wp.blocks,Si=Ci.createBlock,Bi=Ci.cloneBlock,Di=wp.hooks.applyFilters,Ei=wp.data,ji=Ei.withSelect,Ri=Ei.withDispatch,Mi=wp.compose.compose,zi=/[\s#]/g,xi=[],Li=[{icon:"editor-alignleft",title:oi("Align Buttons Left","generateblocks"),align:"left"},{icon:"editor-aligncenter",title:oi("Align Buttons Center","generateblocks"),align:"center"},{icon:"editor-alignright",title:oi("Align Buttons Right","generateblocks"),align:"right"}],Pi=function(e){f()(a,e);var t=ni(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).state={selectedDevice:"Desktop"},e.getDeviceType=e.getDeviceType.bind(d()(e)),e.setDeviceType=e.setDeviceType.bind(d()(e)),e}return u()(a,[{key:"componentDidMount",value:function(){var e=this.props.clientId.substr(2,9).replace("-","");this.props.attributes.uniqueId?xi.includes(this.props.attributes.uniqueId)?(this.props.setAttributes({uniqueId:e}),xi.push(e)):xi.push(this.props.attributes.uniqueId):(this.props.setAttributes({uniqueId:e}),xi.push(e));var t=wp.data.select("core/block-editor").getBlocksByClientId(this.props.clientId)[0];t&&(0===t.innerBlocks.length&&wp.data.dispatch("core/block-editor").insertBlocks(Si("generateblocks/button",generateBlocksStyling.button),void 0,this.props.clientId));void 0!==this.props.attributes.isDynamic&&this.props.attributes.isDynamic||this.props.setAttributes({isDynamic:!0})}},{key:"getDeviceType",value:function(){var e=this.props.deviceType?this.props.deviceType:this.state.selectedDevice;return generateBlocksInfo.syncResponsivePreviews||(e=this.state.selectedDevice),e}},{key:"setDeviceType",value:function(e){generateBlocksInfo.syncResponsivePreviews&&this.props.deviceType?(this.props.setDeviceType(e),this.setState({selectedDevice:e})):this.setState({selectedDevice:e})}},{key:"render",value:function(){var e,t=this,a=this.props,i=a.attributes,n=a.setAttributes,c=a.clientId,s=i.uniqueId,g=i.className,u=i.anchor,b=i.alignment,d=i.alignmentTablet,p=i.alignmentMobile,f=i.stack,h=i.stackTablet,m=i.stackMobile,k=i.fillHorizontalSpace,y=i.fillHorizontalSpaceTablet,w=i.fillHorizontalSpaceMobile,T={className:v()((e={"gb-button-wrapper":!0},o()(e,"gb-button-wrapper-".concat(s),!0),o()(e,"".concat(g),void 0!==g),e)),id:u||null};return T=Di("generateblocks.frontend.htmlAttributes",T,"generateblocks/button-container",i),Object(l.createElement)(hi,null,Object(l.createElement)(Ti,null,Object(l.createElement)(bi,null,Object(l.createElement)(di,{className:"gblocks-add-new-button",icon:"insert",label:oi("Add Button","generateblocks"),onClick:function(){var e=wp.data.select("core/block-editor").getBlocksByClientId(c)[0];if(e){var t=e.innerBlocks,a=Object.keys(t),l=a[a.length-1];if(void 0!==t[l]){var i=t[l].clientId;if(i){var r=wp.data.select("core/block-editor").getBlocksByClientId(i)[0],n=Bi(r);wp.data.dispatch("core/block-editor").insertBlocks(n,void 0,c)}}else 0===t.length&&wp.data.dispatch("core/block-editor").insertBlocks(Si("generateblocks/button",generateBlocksStyling.button),void 0,c)}},showTooltip:!0})),"Desktop"===this.getDeviceType()&&Object(l.createElement)(vi,{value:b,alignmentControls:Li,onChange:function(e){n({alignment:e})}}),"Tablet"===this.getDeviceType()&&Object(l.createElement)(vi,{value:d,alignmentControls:Li,onChange:function(e){n({alignmentTablet:e})}}),"Mobile"===this.getDeviceType()&&Object(l.createElement)(vi,{value:p,alignmentControls:Li,onChange:function(e){n({alignmentMobile:e})}})),Object(l.createElement)(yi,null,Object(l.createElement)(x,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),Object(l.createElement)(Ce,r()({},this.props,{title:oi("Spacing","generateblocks"),initialOpen:!0,icon:O("spacing"),className:"gblocks-panel-label",id:"buttonContainerSpacing",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(hi,null,Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:oi("Margin","generateblocks"),attrTop:"marginTop",attrRight:"marginRight",attrBottom:"marginBottom",attrLeft:"marginLeft",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer,units:["px","em","%"]})),Object(l.createElement)(ui,{label:oi("Stack Vertically","generateblocks"),checked:!!f,onChange:function(e){n({stack:e})}}),Object(l.createElement)(ui,{label:oi("Fill Horizontal Space","generateblocks"),checked:!!k,onChange:function(e){n({fillHorizontalSpace:e})}})),"Tablet"===this.getDeviceType()&&Object(l.createElement)(hi,null,Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:oi("Margin","generateblocks"),attrTop:"marginTopTablet",attrRight:"marginRightTablet",attrBottom:"marginBottomTablet",attrLeft:"marginLeftTablet",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer,units:["px","em","%"]})),Object(l.createElement)(ui,{label:oi("Stack Vertically","generateblocks"),checked:!!h,onChange:function(e){n({stackTablet:e})}}),Object(l.createElement)(ui,{label:oi("Fill Horizontal Space","generateblocks"),checked:!!y,onChange:function(e){n({fillHorizontalSpaceTablet:e})}})),"Mobile"===this.getDeviceType()&&Object(l.createElement)(hi,null,Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:oi("Margin","generateblocks"),attrTop:"marginTopMobile",attrRight:"marginRightMobile",attrBottom:"marginBottomMobile",attrLeft:"marginLeftMobile",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer,units:["px","em","%"]})),Object(l.createElement)(ui,{label:oi("Stack Vertically","generateblocks"),checked:!!m,onChange:function(e){n({stackMobile:e})}}),Object(l.createElement)(ui,{label:oi("Fill Horizontal Space","generateblocks"),checked:!!w,onChange:function(e){n({fillHorizontalSpaceMobile:e})}})),Di("generateblocks.editor.controls","","buttonContainerSpacing",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:oi("Documentation","generateblocks"),icon:O("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"buttonContainerDocumentation",state:this.state}),Object(l.createElement)("p",null,oi("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/buttons/",target:"_blank",rel:"noreferrer noopener"},oi("Visit our documentation","generateblocks")),Di("generateblocks.editor.controls","","buttonContainerDocumentation",this.props,this.state))),Object(l.createElement)(Oi,null,Object(l.createElement)(pi,{label:oi("HTML Anchor"),help:oi("Anchors lets you link directly to a section on a page.","generateblocks"),value:u||"",onChange:function(e){e=e.replace(zi,"-"),n({anchor:e})}})),Object(l.createElement)(Gl,this.props),this.props.deviceType&&Object(l.createElement)(hi,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(Zl,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(Ql,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(ti,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(ri,this.props)),Object(l.createElement)("div",T,Object(l.createElement)(wi,{allowedBlocks:["generateblocks/button"],renderAppender:function(){return Object(l.createElement)(si,{text:oi("Add Button","generateblocks")},Object(l.createElement)(gi,{className:"gblocks-add-new-button gblocks-button-container-appender",icon:"insert",onClick:function(){wp.data.dispatch("core/block-editor").insertBlocks(Si("generateblocks/button",generateBlocksStyling.button),void 0,c)}}))}})))}}]),a}(mi),Ai=Mi([Ri((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),ji((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?{deviceType:t()}:{deviceType:null}}))])(Pi),Ui={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},alignment:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},alignmentTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},alignmentMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},marginTop:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.buttonContainer.marginUnit},marginTopTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeftMobile},stack:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stack},stackTablet:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stackTablet},stackMobile:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stackMobile},fillHorizontalSpace:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpace},fillHorizontalSpaceTablet:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpaceTablet},fillHorizontalSpaceMobile:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpaceMobile},isDynamic:{type:"boolean"},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};function Hi(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function Ni(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?Hi(Object(a),!0).forEach((function(t){o()(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Hi(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var Fi=wp.blockEditor.InnerBlocks,_i=wp.hooks.applyFilters,Ii=[{attributes:Ui,supports:{anchor:!1,className:!1,customClassName:!1},migrate:function(e){var t=e.cssClasses?e.cssClasses:e.className,a=e.elementId?e.elementId:e.anchor;return Ni(Ni({},e),{},{className:t,anchor:a,cssClasses:"",elementId:""})},save:function(e){var t,a=e.attributes,i=a.uniqueId,r=a.elementId,n=a.cssClasses,c={id:r||void 0,className:v()((t={"gb-button-wrapper":!0},o()(t,"gb-button-wrapper-".concat(i),!0),o()(t,"".concat(n),""!==n),t))};return c=_i("generateblocks.frontend.htmlAttributes",c,"generateblocks/button-container",a),Object(l.createElement)("div",c,Object(l.createElement)(Fi.Content,null))}}],Gi=wp.i18n.__,Vi=wp.blocks.registerBlockType,qi=wp.blockEditor.InnerBlocks;Vi("generateblocks/button-container",{title:Gi("Buttons","generateblocks"),description:Gi("Drive conversions with beautiful buttons.","generateblocks"),icon:O("button"),category:"generateblocks",keywords:[Gi("button"),Gi("buttons"),Gi("generate")],attributes:Ui,supports:{className:!1},edit:Ai,save:function(){return Object(l.createElement)(qi.Content,null)},deprecated:Ii});a(32),a(33);var Wi=wp.i18n._x,Zi={facebook:{label:Wi("Facebook","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 320 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z"}))},facebookCircle:{label:Wi("Facebook - Circle","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M504 256C504 119 393 8 256 8S8 119 8 256c0 123.78 90.69 226.38 209.25 245V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.28c-30.8 0-40.41 19.12-40.41 38.73V256h68.78l-11 71.69h-57.78V501C413.31 482.38 504 379.78 504 256z"}))},facebookSquare:{label:Wi("Facebook - Square","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M400 32H48A48 48 0 0 0 0 80v352a48 48 0 0 0 48 48h137.25V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.27c-30.81 0-40.42 19.12-40.42 38.73V256h68.78l-11 71.69h-57.78V480H400a48 48 0 0 0 48-48V80a48 48 0 0 0-48-48z"}))},instagram:{label:Wi("Instagram","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"}))},linkedin:{label:Wi("LinkedIn","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z"}))},linkedinSquare:{label:Wi("LinkedIn - Square","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"}))},pinterest:{label:Wi("Pinterest","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 384 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M204 6.5C101.4 6.5 0 74.9 0 185.6 0 256 39.6 296 63.6 296c9.9 0 15.6-27.6 15.6-35.4 0-9.3-23.7-29.1-23.7-67.8 0-80.4 61.2-137.4 140.4-137.4 68.1 0 118.5 38.7 118.5 109.8 0 53.1-21.3 152.7-90.3 152.7-24.9 0-46.2-18-46.2-43.8 0-37.8 26.4-74.4 26.4-113.4 0-66.2-93.9-54.2-93.9 25.8 0 16.8 2.1 35.4 9.6 50.7-13.8 59.4-42 147.9-42 209.1 0 18.9 2.7 37.5 4.5 56.4 3.4 3.8 1.7 3.4 6.9 1.5 50.4-69 48.6-82.5 71.4-172.8 12.3 23.4 44.1 36 69.3 36 106.2 0 153.9-103.5 153.9-196.8C384 71.3 298.2 6.5 204 6.5z"}))},pinterestCircle:{label:Wi("Pinterest - Circle","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 496 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M496 256c0 137-111 248-248 248-25.6 0-50.2-3.9-73.4-11.1 10.1-16.5 25.2-43.5 30.8-65 3-11.6 15.4-59 15.4-59 8.1 15.4 31.7 28.5 56.8 28.5 74.8 0 128.7-68.8 128.7-154.3 0-81.9-66.9-143.2-152.9-143.2-107 0-163.9 71.8-163.9 150.1 0 36.4 19.4 81.7 50.3 96.1 4.7 2.2 7.2 1.2 8.3-3.3.8-3.4 5-20.3 6.9-28.1.6-2.5.3-4.7-1.7-7.1-10.1-12.5-18.3-35.3-18.3-56.6 0-54.7 41.4-107.6 112-107.6 60.9 0 103.6 41.5 103.6 100.9 0 67.1-33.9 113.6-78 113.6-24.3 0-42.6-20.1-36.7-44.8 7-29.5 20.5-61.3 20.5-82.6 0-19-10.2-34.9-31.4-34.9-24.9 0-44.9 25.7-44.9 60.2 0 22 7.4 36.8 7.4 36.8s-24.5 103.8-29 123.2c-5 21.4-3 51.6-.9 71.2C65.4 450.9 0 361.1 0 256 0 119 111 8 248 8s248 111 248 248z"}))},pinterestSquare:{label:Wi("Pinterest - Square","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M448 80v352c0 26.5-21.5 48-48 48H154.4c9.8-16.4 22.4-40 27.4-59.3 3-11.5 15.3-58.4 15.3-58.4 8 15.3 31.4 28.2 56.3 28.2 74.1 0 127.4-68.1 127.4-152.7 0-81.1-66.2-141.8-151.4-141.8-106 0-162.2 71.1-162.2 148.6 0 36 19.2 80.8 49.8 95.1 4.7 2.2 7.1 1.2 8.2-3.3.8-3.4 5-20.1 6.8-27.8.6-2.5.3-4.6-1.7-7-10.1-12.3-18.3-34.9-18.3-56 0-54.2 41-106.6 110.9-106.6 60.3 0 102.6 41.1 102.6 99.9 0 66.4-33.5 112.4-77.2 112.4-24.1 0-42.1-19.9-36.4-44.4 6.9-29.2 20.3-60.7 20.3-81.8 0-53-75.5-45.7-75.5 25 0 21.7 7.3 36.5 7.3 36.5-31.4 132.8-36.1 134.5-29.6 192.6l2.2.8H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48z"}))},reddit:{label:Wi("Reddit","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M440.3 203.5c-15 0-28.2 6.2-37.9 15.9-35.7-24.7-83.8-40.6-137.1-42.3L293 52.3l88.2 19.8c0 21.6 17.6 39.2 39.2 39.2 22 0 39.7-18.1 39.7-39.7s-17.6-39.7-39.7-39.7c-15.4 0-28.7 9.3-35.3 22l-97.4-21.6c-4.9-1.3-9.7 2.2-11 7.1L246.3 177c-52.9 2.2-100.5 18.1-136.3 42.8-9.7-10.1-23.4-16.3-38.4-16.3-55.6 0-73.8 74.6-22.9 100.1-1.8 7.9-2.6 16.3-2.6 24.7 0 83.8 94.4 151.7 210.3 151.7 116.4 0 210.8-67.9 210.8-151.7 0-8.4-.9-17.2-3.1-25.1 49.9-25.6 31.5-99.7-23.8-99.7zM129.4 308.9c0-22 17.6-39.7 39.7-39.7 21.6 0 39.2 17.6 39.2 39.7 0 21.6-17.6 39.2-39.2 39.2-22 .1-39.7-17.6-39.7-39.2zm214.3 93.5c-36.4 36.4-139.1 36.4-175.5 0-4-3.5-4-9.7 0-13.7 3.5-3.5 9.7-3.5 13.2 0 27.8 28.5 120 29 149 0 3.5-3.5 9.7-3.5 13.2 0 4.1 4 4.1 10.2.1 13.7zm-.8-54.2c-21.6 0-39.2-17.6-39.2-39.2 0-22 17.6-39.7 39.2-39.7 22 0 39.7 17.6 39.7 39.7-.1 21.5-17.7 39.2-39.7 39.2z"}))},redditCircle:{label:Wi("Reddit - Circle","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M201.5 305.5c-13.8 0-24.9-11.1-24.9-24.6 0-13.8 11.1-24.9 24.9-24.9 13.6 0 24.6 11.1 24.6 24.9 0 13.6-11.1 24.6-24.6 24.6zM504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zm-132.3-41.2c-9.4 0-17.7 3.9-23.8 10-22.4-15.5-52.6-25.5-86.1-26.6l17.4-78.3 55.4 12.5c0 13.6 11.1 24.6 24.6 24.6 13.8 0 24.9-11.3 24.9-24.9s-11.1-24.9-24.9-24.9c-9.7 0-18 5.8-22.1 13.8l-61.2-13.6c-3-.8-6.1 1.4-6.9 4.4l-19.1 86.4c-33.2 1.4-63.1 11.3-85.5 26.8-6.1-6.4-14.7-10.2-24.1-10.2-34.9 0-46.3 46.9-14.4 62.8-1.1 5-1.7 10.2-1.7 15.5 0 52.6 59.2 95.2 132 95.2 73.1 0 132.3-42.6 132.3-95.2 0-5.3-.6-10.8-1.9-15.8 31.3-16 19.8-62.5-14.9-62.5zM302.8 331c-18.2 18.2-76.1 17.9-93.6 0-2.2-2.2-6.1-2.2-8.3 0-2.5 2.5-2.5 6.4 0 8.6 22.8 22.8 87.3 22.8 110.2 0 2.5-2.2 2.5-6.1 0-8.6-2.2-2.2-6.1-2.2-8.3 0zm7.7-75c-13.6 0-24.6 11.1-24.6 24.9 0 13.6 11.1 24.6 24.6 24.6 13.8 0 24.9-11.1 24.9-24.6 0-13.8-11-24.9-24.9-24.9z"}))},redditSquare:{label:Wi("Reddit - Square","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M283.2 345.5c2.7 2.7 2.7 6.8 0 9.2-24.5 24.5-93.8 24.6-118.4 0-2.7-2.4-2.7-6.5 0-9.2 2.4-2.4 6.5-2.4 8.9 0 18.7 19.2 81 19.6 100.5 0 2.4-2.3 6.6-2.3 9 0zm-91.3-53.8c0-14.9-11.9-26.8-26.5-26.8-14.9 0-26.8 11.9-26.8 26.8 0 14.6 11.9 26.5 26.8 26.5 14.6 0 26.5-11.9 26.5-26.5zm90.7-26.8c-14.6 0-26.5 11.9-26.5 26.8 0 14.6 11.9 26.5 26.5 26.5 14.9 0 26.8-11.9 26.8-26.5 0-14.9-11.9-26.8-26.8-26.8zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-99.7 140.6c-10.1 0-19 4.2-25.6 10.7-24.1-16.7-56.5-27.4-92.5-28.6l18.7-84.2 59.5 13.4c0 14.6 11.9 26.5 26.5 26.5 14.9 0 26.8-12.2 26.8-26.8 0-14.6-11.9-26.8-26.8-26.8-10.4 0-19.3 6.2-23.8 14.9l-65.7-14.6c-3.3-.9-6.5 1.5-7.4 4.8l-20.5 92.8c-35.7 1.5-67.8 12.2-91.9 28.9-6.5-6.8-15.8-11-25.9-11-37.5 0-49.8 50.4-15.5 67.5-1.2 5.4-1.8 11-1.8 16.7 0 56.5 63.7 102.3 141.9 102.3 78.5 0 142.2-45.8 142.2-102.3 0-5.7-.6-11.6-2.1-17 33.6-17.2 21.2-67.2-16.1-67.2z"}))},snapchat:{label:Wi("Snapchat","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M510.846 392.673c-5.211 12.157-27.239 21.089-67.36 27.318-2.064 2.786-3.775 14.686-6.507 23.956-1.625 5.566-5.623 8.869-12.128 8.869l-.297-.005c-9.395 0-19.203-4.323-38.852-4.323-26.521 0-35.662 6.043-56.254 20.588-21.832 15.438-42.771 28.764-74.027 27.399-31.646 2.334-58.025-16.908-72.871-27.404-20.714-14.643-29.828-20.582-56.241-20.582-18.864 0-30.736 4.72-38.852 4.72-8.073 0-11.213-4.922-12.422-9.04-2.703-9.189-4.404-21.263-6.523-24.13-20.679-3.209-67.31-11.344-68.498-32.15a10.627 10.627 0 0 1 8.877-11.069c69.583-11.455 100.924-82.901 102.227-85.934.074-.176.155-.344.237-.515 3.713-7.537 4.544-13.849 2.463-18.753-5.05-11.896-26.872-16.164-36.053-19.796-23.715-9.366-27.015-20.128-25.612-27.504 2.437-12.836 21.725-20.735 33.002-15.453 8.919 4.181 16.843 6.297 23.547 6.297 5.022 0 8.212-1.204 9.96-2.171-2.043-35.936-7.101-87.29 5.687-115.969C158.122 21.304 229.705 15.42 250.826 15.42c.944 0 9.141-.089 10.11-.089 52.148 0 102.254 26.78 126.723 81.643 12.777 28.65 7.749 79.792 5.695 116.009 1.582.872 4.357 1.942 8.599 2.139 6.397-.286 13.815-2.389 22.069-6.257 6.085-2.846 14.406-2.461 20.48.058l.029.01c9.476 3.385 15.439 10.215 15.589 17.87.184 9.747-8.522 18.165-25.878 25.018-2.118.835-4.694 1.655-7.434 2.525-9.797 3.106-24.6 7.805-28.616 17.271-2.079 4.904-1.256 11.211 2.46 18.748.087.168.166.342.239.515 1.301 3.03 32.615 74.46 102.23 85.934 6.427 1.058 11.163 7.877 7.725 15.859z"}))},soundcloud:{label:Wi("Soundcloud","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 640 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M111.4 256.3l5.8 65-5.8 68.3c-.3 2.5-2.2 4.4-4.4 4.4s-4.2-1.9-4.2-4.4l-5.6-68.3 5.6-65c0-2.2 1.9-4.2 4.2-4.2 2.2 0 4.1 2 4.4 4.2zm21.4-45.6c-2.8 0-4.7 2.2-5 5l-5 105.6 5 68.3c.3 2.8 2.2 5 5 5 2.5 0 4.7-2.2 4.7-5l5.8-68.3-5.8-105.6c0-2.8-2.2-5-4.7-5zm25.5-24.1c-3.1 0-5.3 2.2-5.6 5.3l-4.4 130 4.4 67.8c.3 3.1 2.5 5.3 5.6 5.3 2.8 0 5.3-2.2 5.3-5.3l5.3-67.8-5.3-130c0-3.1-2.5-5.3-5.3-5.3zM7.2 283.2c-1.4 0-2.2 1.1-2.5 2.5L0 321.3l4.7 35c.3 1.4 1.1 2.5 2.5 2.5s2.2-1.1 2.5-2.5l5.6-35-5.6-35.6c-.3-1.4-1.1-2.5-2.5-2.5zm23.6-21.9c-1.4 0-2.5 1.1-2.5 2.5l-6.4 57.5 6.4 56.1c0 1.7 1.1 2.8 2.5 2.8s2.5-1.1 2.8-2.5l7.2-56.4-7.2-57.5c-.3-1.4-1.4-2.5-2.8-2.5zm25.3-11.4c-1.7 0-3.1 1.4-3.3 3.3L47 321.3l5.8 65.8c.3 1.7 1.7 3.1 3.3 3.1 1.7 0 3.1-1.4 3.1-3.1l6.9-65.8-6.9-68.1c0-1.9-1.4-3.3-3.1-3.3zm25.3-2.2c-1.9 0-3.6 1.4-3.6 3.6l-5.8 70 5.8 67.8c0 2.2 1.7 3.6 3.6 3.6s3.6-1.4 3.9-3.6l6.4-67.8-6.4-70c-.3-2.2-2-3.6-3.9-3.6zm241.4-110.9c-1.1-.8-2.8-1.4-4.2-1.4-2.2 0-4.2.8-5.6 1.9-1.9 1.7-3.1 4.2-3.3 6.7v.8l-3.3 176.7 1.7 32.5 1.7 31.7c.3 4.7 4.2 8.6 8.9 8.6s8.6-3.9 8.6-8.6l3.9-64.2-3.9-177.5c-.4-3-2-5.8-4.5-7.2zm-26.7 15.3c-1.4-.8-2.8-1.4-4.4-1.4s-3.1.6-4.4 1.4c-2.2 1.4-3.6 3.9-3.6 6.7l-.3 1.7-2.8 160.8s0 .3 3.1 65.6v.3c0 1.7.6 3.3 1.7 4.7 1.7 1.9 3.9 3.1 6.4 3.1 2.2 0 4.2-1.1 5.6-2.5 1.7-1.4 2.5-3.3 2.5-5.6l.3-6.7 3.1-58.6-3.3-162.8c-.3-2.8-1.7-5.3-3.9-6.7zm-111.4 22.5c-3.1 0-5.8 2.8-5.8 6.1l-4.4 140.6 4.4 67.2c.3 3.3 2.8 5.8 5.8 5.8 3.3 0 5.8-2.5 6.1-5.8l5-67.2-5-140.6c-.2-3.3-2.7-6.1-6.1-6.1zm376.7 62.8c-10.8 0-21.1 2.2-30.6 6.1-6.4-70.8-65.8-126.4-138.3-126.4-17.8 0-35 3.3-50.3 9.4-6.1 2.2-7.8 4.4-7.8 9.2v249.7c0 5 3.9 8.6 8.6 9.2h218.3c43.3 0 78.6-35 78.6-78.3.1-43.6-35.2-78.9-78.5-78.9zm-296.7-60.3c-4.2 0-7.5 3.3-7.8 7.8l-3.3 136.7 3.3 65.6c.3 4.2 3.6 7.5 7.8 7.5 4.2 0 7.5-3.3 7.5-7.5l3.9-65.6-3.9-136.7c-.3-4.5-3.3-7.8-7.5-7.8zm-53.6-7.8c-3.3 0-6.4 3.1-6.4 6.7l-3.9 145.3 3.9 66.9c.3 3.6 3.1 6.4 6.4 6.4 3.6 0 6.4-2.8 6.7-6.4l4.4-66.9-4.4-145.3c-.3-3.6-3.1-6.7-6.7-6.7zm26.7 3.4c-3.9 0-6.9 3.1-6.9 6.9L227 321.3l3.9 66.4c.3 3.9 3.1 6.9 6.9 6.9s6.9-3.1 6.9-6.9l4.2-66.4-4.2-141.7c0-3.9-3-6.9-6.9-6.9z"}))},twitch:{label:Wi("Twitch","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M40.1 32L10 108.9v314.3h107V480h60.2l56.8-56.8h87l117-117V32H40.1zm357.8 254.1L331 353H224l-56.8 56.8V353H76.9V72.1h321v214zM331 149v116.9h-40.1V149H331zm-107 0v116.9h-40.1V149H224z"}))},twitter:{label:Wi("Twitter","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"}))},twitterSquare:{label:Wi("Twitter - Square","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-48.9 158.8c.2 2.8.2 5.7.2 8.5 0 86.7-66 186.6-186.6 186.6-37.2 0-71.7-10.8-100.7-29.4 5.3.6 10.4.8 15.8.8 30.7 0 58.9-10.4 81.4-28-28.8-.6-53-19.5-61.3-45.5 10.1 1.5 19.2 1.5 29.6-1.2-30-6.1-52.5-32.5-52.5-64.4v-.8c8.7 4.9 18.9 7.9 29.6 8.3a65.447 65.447 0 0 1-29.2-54.6c0-12.2 3.2-23.4 8.9-33.1 32.3 39.8 80.8 65.8 135.2 68.6-9.3-44.5 24-80.6 64-80.6 18.9 0 35.9 7.9 47.9 20.7 14.8-2.8 29-8.3 41.6-15.8-4.9 15.2-15.2 28-28.8 36.1 13.2-1.4 26-5.1 37.8-10.2-8.9 13.1-20.1 24.7-32.9 34z"}))},vimeo:{label:Wi("Vimeo","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M447.8 153.6c-2 43.6-32.4 103.3-91.4 179.1-60.9 79.2-112.4 118.8-154.6 118.8-26.1 0-48.2-24.1-66.3-72.3C100.3 250 85.3 174.3 56.2 174.3c-3.4 0-15.1 7.1-35.2 21.1L0 168.2c51.6-45.3 100.9-95.7 131.8-98.5 34.9-3.4 56.3 20.5 64.4 71.5 28.7 181.5 41.4 208.9 93.6 126.7 18.7-29.6 28.8-52.1 30.2-67.6 4.8-45.9-35.8-42.8-63.3-31 22-72.1 64.1-107.1 126.2-105.1 45.8 1.2 67.5 31.1 64.9 89.4z"}))},vimeoSquare:{label:Wi("Vimeo - Square","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M403.2 32H44.8C20.1 32 0 52.1 0 76.8v358.4C0 459.9 20.1 480 44.8 480h358.4c24.7 0 44.8-20.1 44.8-44.8V76.8c0-24.7-20.1-44.8-44.8-44.8zM377 180.8c-1.4 31.5-23.4 74.7-66 129.4-44 57.2-81.3 85.8-111.7 85.8-18.9 0-34.8-17.4-47.9-52.3-25.5-93.3-36.4-148-57.4-148-2.4 0-10.9 5.1-25.4 15.2l-15.2-19.6c37.3-32.8 72.9-69.2 95.2-71.2 25.2-2.4 40.7 14.8 46.5 51.7 20.7 131.2 29.9 151 67.6 91.6 13.5-21.4 20.8-37.7 21.8-48.9 3.5-33.2-25.9-30.9-45.8-22.4 15.9-52.1 46.3-77.4 91.2-76 33.3.9 49 22.5 47.1 64.7z"}))},whatsapp:{label:Wi("WhatsApp","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z"}))},whatsappSquare:{label:Wi("WhatsApp - Square","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M224 122.8c-72.7 0-131.8 59.1-131.9 131.8 0 24.9 7 49.2 20.2 70.1l3.1 5-13.3 48.6 49.9-13.1 4.8 2.9c20.2 12 43.4 18.4 67.1 18.4h.1c72.6 0 133.3-59.1 133.3-131.8 0-35.2-15.2-68.3-40.1-93.2-25-25-58-38.7-93.2-38.7zm77.5 188.4c-3.3 9.3-19.1 17.7-26.7 18.8-12.6 1.9-22.4.9-47.5-9.9-39.7-17.2-65.7-57.2-67.7-59.8-2-2.6-16.2-21.5-16.2-41s10.2-29.1 13.9-33.1c3.6-4 7.9-5 10.6-5 2.6 0 5.3 0 7.6.1 2.4.1 5.7-.9 8.9 6.8 3.3 7.9 11.2 27.4 12.2 29.4s1.7 4.3.3 6.9c-7.6 15.2-15.7 14.6-11.6 21.6 15.3 26.3 30.6 35.4 53.9 47.1 4 2 6.3 1.7 8.6-1 2.3-2.6 9.9-11.6 12.5-15.5 2.6-4 5.3-3.3 8.9-2 3.6 1.3 23.1 10.9 27.1 12.9s6.6 3 7.6 4.6c.9 1.9.9 9.9-2.4 19.1zM400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM223.9 413.2c-26.6 0-52.7-6.7-75.8-19.3L64 416l22.5-82.2c-13.9-24-21.2-51.3-21.2-79.3C65.4 167.1 136.5 96 223.9 96c42.4 0 82.2 16.5 112.2 46.5 29.9 30 47.9 69.8 47.9 112.2 0 87.4-72.7 158.5-160.1 158.5z"}))},youtube:{label:Wi("YouTube","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 576 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z"}))}},Ki=wp.i18n._x,Ji={clock:{label:Ki("Clock","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm92.49 313l-20 25a16 16 0 01-22.49 2.5l-67-49.72a40 40 0 01-15-31.23V112a16 16 0 0116-16h32a16 16 0 0116 16v144l58 42.5a16 16 0 012.49 22.5z"}))},clockAlt:{label:Ki("Clock Outline","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm61.8-104.4l-84.9-61.7c-3.1-2.3-4.9-5.9-4.9-9.7V116c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v141.7l66.8 48.6c5.4 3.9 6.5 11.4 2.6 16.8L334.6 349c-3.9 5.3-11.4 6.5-16.8 2.6z"}))},asterisk:{label:Ki("Asterisk","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M478.21 334.093L336 256l142.21-78.093c11.795-6.477 15.961-21.384 9.232-33.037l-19.48-33.741c-6.728-11.653-21.72-15.499-33.227-8.523L296 186.718l3.475-162.204C299.763 11.061 288.937 0 275.48 0h-38.96c-13.456 0-24.283 11.061-23.994 24.514L216 186.718 77.265 102.607c-11.506-6.976-26.499-3.13-33.227 8.523l-19.48 33.741c-6.728 11.653-2.562 26.56 9.233 33.037L176 256 33.79 334.093c-11.795 6.477-15.961 21.384-9.232 33.037l19.48 33.741c6.728 11.653 21.721 15.499 33.227 8.523L216 325.282l-3.475 162.204C212.237 500.939 223.064 512 236.52 512h38.961c13.456 0 24.283-11.061 23.995-24.514L296 325.282l138.735 84.111c11.506 6.976 26.499 3.13 33.227-8.523l19.48-33.741c6.728-11.653 2.563-26.559-9.232-33.036z"}))},at:{label:Ki("At","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M256 8C118.941 8 8 118.919 8 256c0 137.059 110.919 248 248 248 48.154 0 95.342-14.14 135.408-40.223 12.005-7.815 14.625-24.288 5.552-35.372l-10.177-12.433c-7.671-9.371-21.179-11.667-31.373-5.129C325.92 429.757 291.314 440 256 440c-101.458 0-184-82.542-184-184S154.542 72 256 72c100.139 0 184 57.619 184 160 0 38.786-21.093 79.742-58.17 83.693-17.349-.454-16.91-12.857-13.476-30.024l23.433-121.11C394.653 149.75 383.308 136 368.225 136h-44.981a13.518 13.518 0 0 0-13.432 11.993l-.01.092c-14.697-17.901-40.448-21.775-59.971-21.775-74.58 0-137.831 62.234-137.831 151.46 0 65.303 36.785 105.87 96 105.87 26.984 0 57.369-15.637 74.991-38.333 9.522 34.104 40.613 34.103 70.71 34.103C462.609 379.41 504 307.798 504 232 504 95.653 394.023 8 256 8zm-21.68 304.43c-22.249 0-36.07-15.623-36.07-40.771 0-44.993 30.779-72.729 58.63-72.729 22.292 0 35.601 15.241 35.601 40.77 0 45.061-33.875 72.73-58.161 72.73z"}))},award:{label:Ki("Award","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 384 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M97.12 362.63c-8.69-8.69-4.16-6.24-25.12-11.85-9.51-2.55-17.87-7.45-25.43-13.32L1.2 448.7c-4.39 10.77 3.81 22.47 15.43 22.03l52.69-2.01L105.56 507c8 8.44 22.04 5.81 26.43-4.96l52.05-127.62c-10.84 6.04-22.87 9.58-35.31 9.58-19.5 0-37.82-7.59-51.61-21.37zM382.8 448.7l-45.37-111.24c-7.56 5.88-15.92 10.77-25.43 13.32-21.07 5.64-16.45 3.18-25.12 11.85-13.79 13.78-32.12 21.37-51.62 21.37-12.44 0-24.47-3.55-35.31-9.58L252 502.04c4.39 10.77 18.44 13.4 26.43 4.96l36.25-38.28 52.69 2.01c11.62.44 19.82-11.27 15.43-22.03zM263 340c15.28-15.55 17.03-14.21 38.79-20.14 13.89-3.79 24.75-14.84 28.47-28.98 7.48-28.4 5.54-24.97 25.95-45.75 10.17-10.35 14.14-25.44 10.42-39.58-7.47-28.38-7.48-24.42 0-52.83 3.72-14.14-.25-29.23-10.42-39.58-20.41-20.78-18.47-17.36-25.95-45.75-3.72-14.14-14.58-25.19-28.47-28.98-27.88-7.61-24.52-5.62-44.95-26.41-10.17-10.35-25-14.4-38.89-10.61-27.87 7.6-23.98 7.61-51.9 0-13.89-3.79-28.72.25-38.89 10.61-20.41 20.78-17.05 18.8-44.94 26.41-13.89 3.79-24.75 14.84-28.47 28.98-7.47 28.39-5.54 24.97-25.95 45.75-10.17 10.35-14.15 25.44-10.42 39.58 7.47 28.36 7.48 24.4 0 52.82-3.72 14.14.25 29.23 10.42 39.59 20.41 20.78 18.47 17.35 25.95 45.75 3.72 14.14 14.58 25.19 28.47 28.98C104.6 325.96 106.27 325 121 340c13.23 13.47 33.84 15.88 49.74 5.82a39.676 39.676 0 0 1 42.53 0c15.89 10.06 36.5 7.65 49.73-5.82zM97.66 175.96c0-53.03 42.24-96.02 94.34-96.02s94.34 42.99 94.34 96.02-42.24 96.02-94.34 96.02-94.34-42.99-94.34-96.02z"}))},ban:{label:Ki("Ban","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M256 8C119.034 8 8 119.033 8 256s111.034 248 248 248 248-111.034 248-248S392.967 8 256 8zm130.108 117.892c65.448 65.448 70 165.481 20.677 235.637L150.47 105.216c70.204-49.356 170.226-44.735 235.638 20.676zM125.892 386.108c-65.448-65.448-70-165.481-20.677-235.637L361.53 406.784c-70.203 49.356-170.226 44.736-235.638-20.676z"}))},bars:{label:Ki("Bars","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"}))},beer:{label:Ki("Beer","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M368 96h-48V56c0-13.255-10.745-24-24-24H24C10.745 32 0 42.745 0 56v400c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24v-42.11l80.606-35.977C429.396 365.063 448 336.388 448 304.86V176c0-44.112-35.888-80-80-80zm16 208.86a16.018 16.018 0 0 1-9.479 14.611L320 343.805V160h48c8.822 0 16 7.178 16 16v128.86zM208 384c-8.836 0-16-7.164-16-16V144c0-8.836 7.164-16 16-16s16 7.164 16 16v224c0 8.836-7.164 16-16 16zm-96 0c-8.836 0-16-7.164-16-16V144c0-8.836 7.164-16 16-16s16 7.164 16 16v224c0 8.836-7.164 16-16 16z"}))},bolt:{label:Ki("Bolt","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 320 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M296 160H180.6l42.6-129.8C227.2 15 215.7 0 200 0H56C44 0 33.8 8.9 32.2 20.8l-32 240C-1.7 275.2 9.5 288 24 288h118.7L96.6 482.5c-3.6 15.2 8 29.5 23.3 29.5 8.4 0 16.4-4.4 20.8-12l176-304c9.3-15.9-2.2-36-20.7-36z"}))},book:{label:Ki("Book","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M448 360V24c0-13.3-10.7-24-24-24H96C43 0 0 43 0 96v320c0 53 43 96 96 96h328c13.3 0 24-10.7 24-24v-16c0-7.5-3.5-14.3-8.9-18.7-4.2-15.4-4.2-59.3 0-74.7 5.4-4.3 8.9-11.1 8.9-18.6zM128 134c0-3.3 2.7-6 6-6h212c3.3 0 6 2.7 6 6v20c0 3.3-2.7 6-6 6H134c-3.3 0-6-2.7-6-6v-20zm0 64c0-3.3 2.7-6 6-6h212c3.3 0 6 2.7 6 6v20c0 3.3-2.7 6-6 6H134c-3.3 0-6-2.7-6-6v-20zm253.4 250H96c-17.7 0-32-14.3-32-32 0-17.6 14.4-32 32-32h285.4c-1.9 17.1-1.9 46.9 0 64z"}))},boxOpen:{label:Ki("Box - Open","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 640 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M425.7 256c-16.9 0-32.8-9-41.4-23.4L320 126l-64.2 106.6c-8.7 14.5-24.6 23.5-41.5 23.5-4.5 0-9-.6-13.3-1.9L64 215v178c0 14.7 10 27.5 24.2 31l216.2 54.1c10.2 2.5 20.9 2.5 31 0L551.8 424c14.2-3.6 24.2-16.4 24.2-31V215l-137 39.1c-4.3 1.3-8.8 1.9-13.3 1.9zm212.6-112.2L586.8 41c-3.1-6.2-9.8-9.8-16.7-8.9L320 64l91.7 152.1c3.8 6.3 11.4 9.3 18.5 7.3l197.9-56.5c9.9-2.9 14.7-13.9 10.2-23.1zM53.2 41L1.7 143.8c-4.6 9.2.3 20.2 10.1 23l197.9 56.5c7.1 2 14.7-1 18.5-7.3L320 64 69.8 32.1c-6.9-.8-13.5 2.7-16.6 8.9z"}))},bullhorn:{label:Ki("Bullhorn","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 576 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M576 240c0-23.63-12.95-44.04-32-55.12V32.01C544 23.26 537.02 0 512 0c-7.12 0-14.19 2.38-19.98 7.02l-85.03 68.03C364.28 109.19 310.66 128 256 128H64c-35.35 0-64 28.65-64 64v96c0 35.35 28.65 64 64 64h33.7c-1.39 10.48-2.18 21.14-2.18 32 0 39.77 9.26 77.35 25.56 110.94 5.19 10.69 16.52 17.06 28.4 17.06h74.28c26.05 0 41.69-29.84 25.9-50.56-16.4-21.52-26.15-48.36-26.15-77.44 0-11.11 1.62-21.79 4.41-32H256c54.66 0 108.28 18.81 150.98 52.95l85.03 68.03a32.023 32.023 0 0 0 19.98 7.02c24.92 0 32-22.78 32-32V295.13C563.05 284.04 576 263.63 576 240zm-96 141.42l-33.05-26.44C392.95 311.78 325.12 288 256 288v-96c69.12 0 136.95-23.78 190.95-66.98L480 98.58v282.84z"}))},bullseye:{label:Ki("Bullseye","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 496 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm0 432c-101.69 0-184-82.29-184-184 0-101.69 82.29-184 184-184 101.69 0 184 82.29 184 184 0 101.69-82.29 184-184 184zm0-312c-70.69 0-128 57.31-128 128s57.31 128 128 128 128-57.31 128-128-57.31-128-128-128zm0 192c-35.29 0-64-28.71-64-64s28.71-64 64-64 64 28.71 64 64-28.71 64-64 64z"}))},burn:{label:Ki("Burn","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 384 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M192 0C79.7 101.3 0 220.9 0 300.5 0 425 79 512 192 512s192-87 192-211.5c0-79.9-80.2-199.6-192-300.5zm0 448c-56.5 0-96-39-96-94.8 0-13.5 4.6-61.5 96-161.2 91.4 99.7 96 147.7 96 161.2 0 55.8-39.5 94.8-96 94.8z"}))},calendarAlt:{label:Ki("Calender","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M148 288h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm108-12v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm96 0v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm-96 96v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm-96 0v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm192 0v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm96-260v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V112c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48zm-48 346V160H48v298c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"}))},check:{label:Ki("Check","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"}))},checkCircle:{label:Ki("Check - Circle","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"}))},checkCircleOutline:{label:Ki("Check - Circle Outline","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 48c110.532 0 200 89.451 200 200 0 110.532-89.451 200-200 200-110.532 0-200-89.451-200-200 0-110.532 89.451-200 200-200m140.204 130.267l-22.536-22.718c-4.667-4.705-12.265-4.736-16.97-.068L215.346 303.697l-59.792-60.277c-4.667-4.705-12.265-4.736-16.97-.069l-22.719 22.536c-4.705 4.667-4.736 12.265-.068 16.971l90.781 91.516c4.667 4.705 12.265 4.736 16.97.068l172.589-171.204c4.704-4.668 4.734-12.266.067-16.971z"}))},checkSquare:{label:Ki("Check - Square","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M400 480H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48zm-204.686-98.059l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.248-16.379-6.249-22.628 0L184 302.745l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.25 16.379 6.25 22.628.001z"}))},checkSquareOutline:{label:Ki("Check - Square Outline","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M400 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zm0 400H48V80h352v352zm-35.864-241.724L191.547 361.48c-4.705 4.667-12.303 4.637-16.97-.068l-90.781-91.516c-4.667-4.705-4.637-12.303.069-16.971l22.719-22.536c4.705-4.667 12.303-4.637 16.97.069l59.792 60.277 141.352-140.216c4.705-4.667 12.303-4.637 16.97.068l22.536 22.718c4.667 4.706 4.637 12.304-.068 16.971z"}))},chevronDown:{label:Ki("Chevron - Down","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"}))},chevronLeft:{label:Ki("Chevron - Left","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 256 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z"}))},chevronRight:{label:Ki("Chevron - Right","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 256 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"}))},chevronUp:{label:Ki("Chevron - Up","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z"}))},circle:{label:Ki("Circle","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8z"}))},circleOutline:{label:Ki("Circle - Outline","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200z"}))},coffee:{label:Ki("Coffee","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 640 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M192 384h192c53 0 96-43 96-96h32c70.6 0 128-57.4 128-128S582.6 32 512 32H120c-13.3 0-24 10.7-24 24v232c0 53 43 96 96 96zM512 96c35.3 0 64 28.7 64 64s-28.7 64-64 64h-32V96h32zm47.7 384H48.3c-47.6 0-61-64-36-64h583.3c25 0 11.8 64-35.9 64z"}))},dotCircle:{label:Ki("Dot - Circle","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm80 248c0 44.112-35.888 80-80 80s-80-35.888-80-80 35.888-80 80-80 80 35.888 80 80z"}))},dotCircleOutline:{label:Ki("Dot - Circle Outline","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M256 56c110.532 0 200 89.451 200 200 0 110.532-89.451 200-200 200-110.532 0-200-89.451-200-200 0-110.532 89.451-200 200-200m0-48C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 168c-44.183 0-80 35.817-80 80s35.817 80 80 80 80-35.817 80-80-35.817-80-80-80z"}))},ellipsesH:{label:Ki("Ellipses - Horizontal","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M328 256c0 39.8-32.2 72-72 72s-72-32.2-72-72 32.2-72 72-72 72 32.2 72 72zm104-72c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72zm-352 0c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72z"}))},ellipsesV:{label:Ki("Ellipses - Vertical","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 192 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M96 184c39.8 0 72 32.2 72 72s-32.2 72-72 72-72-32.2-72-72 32.2-72 72-72zM24 80c0 39.8 32.2 72 72 72s72-32.2 72-72S135.8 8 96 8 24 40.2 24 80zm0 352c0 39.8 32.2 72 72 72s72-32.2 72-72-32.2-72-72-72-72 32.2-72 72z"}))},envelope:{label:Ki("Envelope","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M464 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm0 48v40.805c-22.422 18.259-58.168 46.651-134.587 106.49-16.841 13.247-50.201 45.072-73.413 44.701-23.208.375-56.579-31.459-73.413-44.701C106.18 199.465 70.425 171.067 48 152.805V112h416zM48 400V214.398c22.914 18.251 55.409 43.862 104.938 82.646 21.857 17.205 60.134 55.186 103.062 54.955 42.717.231 80.509-37.199 103.053-54.947 49.528-38.783 82.032-64.401 104.947-82.653V400H48z"}))},fireAlt:{label:Ki("Fire","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M323.56 51.2c-20.8 19.3-39.58 39.59-56.22 59.97C240.08 73.62 206.28 35.53 168 0 69.74 91.17 0 209.96 0 281.6 0 408.85 100.29 512 224 512s224-103.15 224-230.4c0-53.27-51.98-163.14-124.44-230.4zm-19.47 340.65C282.43 407.01 255.72 416 226.86 416 154.71 416 96 368.26 96 290.75c0-38.61 24.31-72.63 72.79-130.75 6.93 7.98 98.83 125.34 98.83 125.34l58.63-66.88c4.14 6.85 7.91 13.55 11.27 19.97 27.35 52.19 15.81 118.97-33.43 153.42z"}))},heart:{label:Ki("Heart","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M462.3 62.6C407.5 15.9 326 24.3 275.7 76.2L256 96.5l-19.7-20.3C186.1 24.3 104.5 15.9 49.7 62.6c-62.8 53.6-66.1 149.8-9.9 207.9l193.5 199.8c12.5 12.9 32.8 12.9 45.3 0l193.5-199.8c56.3-58.1 53-154.3-9.8-207.9z"}))},mapMarkerAlt:{label:Ki("Map Marker","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 384 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M172.268 501.67C26.97 291.031 0 269.413 0 192 0 85.961 85.961 0 192 0s192 85.961 192 192c0 77.413-26.97 99.031-172.268 309.67-9.535 13.774-29.93 13.773-39.464 0zM192 272c44.183 0 80-35.817 80-80s-35.817-80-80-80-80 35.817-80 80 35.817 80 80 80z"}))},paperPlane:{label:Ki("Paper Plane","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M440 6.5L24 246.4c-34.4 19.9-31.1 70.8 5.7 85.9L144 379.6V464c0 46.4 59.2 65.5 86.6 28.6l43.8-59.1 111.9 46.2c5.9 2.4 12.1 3.6 18.3 3.6 8.2 0 16.3-2.1 23.6-6.2 12.8-7.2 21.6-20 23.9-34.5l59.4-387.2c6.1-40.1-36.9-68.8-71.5-48.9zM192 464v-64.6l36.6 15.1L192 464zm212.6-28.7l-153.8-63.5L391 169.5c10.7-15.5-9.5-33.5-23.7-21.2L155.8 332.6 48 288 464 48l-59.4 387.3z"}))},phone:{label:Ki("Phone","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M493.4 24.6l-104-24c-11.3-2.6-22.9 3.3-27.5 13.9l-48 112c-4.2 9.8-1.4 21.3 6.9 28l60.6 49.6c-36 76.7-98.9 140.5-177.2 177.2l-49.6-60.6c-6.8-8.3-18.2-11.1-28-6.9l-112 48C3.9 366.5-2 378.1.6 389.4l24 104C27.1 504.2 36.7 512 48 512c256.1 0 464-207.5 464-464 0-11.2-7.7-20.9-18.6-23.4z"}))},plus:{label:Ki("Plus","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"}))},plusCircle:{label:Ki("Plus - Circle","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm144 276c0 6.6-5.4 12-12 12h-92v92c0 6.6-5.4 12-12 12h-56c-6.6 0-12-5.4-12-12v-92h-92c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h92v-92c0-6.6 5.4-12 12-12h56c6.6 0 12 5.4 12 12v92h92c6.6 0 12 5.4 12 12v56z"}))},plusSquare:{label:Ki("Plus - Square","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-32 252c0 6.6-5.4 12-12 12h-92v92c0 6.6-5.4 12-12 12h-56c-6.6 0-12-5.4-12-12v-92H92c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h92v-92c0-6.6 5.4-12 12-12h56c6.6 0 12 5.4 12 12v92h92c6.6 0 12 5.4 12 12v56z"}))},plusSquareOutline:{label:Ki("Plus - Square Outline","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M352 240v32c0 6.6-5.4 12-12 12h-88v88c0 6.6-5.4 12-12 12h-32c-6.6 0-12-5.4-12-12v-88h-88c-6.6 0-12-5.4-12-12v-32c0-6.6 5.4-12 12-12h88v-88c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v88h88c6.6 0 12 5.4 12 12zm96-160v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-48 346V86c0-3.3-2.7-6-6-6H54c-3.3 0-6 2.7-6 6v340c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"}))},shield:{label:Ki("Shield","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M466.5 83.7l-192-80a48.15 48.15 0 0 0-36.9 0l-192 80C27.7 91.1 16 108.6 16 128c0 198.5 114.5 335.7 221.5 380.3 11.8 4.9 25.1 4.9 36.9 0C360.1 472.6 496 349.3 496 128c0-19.4-11.7-36.9-29.5-44.3zM256.1 446.3l-.1-381 175.9 73.3c-3.3 151.4-82.1 261.1-175.8 307.7z"}))},star:{label:Ki("Star","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 576 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"}))},tags:{label:Ki("Tags","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 640 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M497.941 225.941L286.059 14.059A48 48 0 0 0 252.118 0H48C21.49 0 0 21.49 0 48v204.118a48 48 0 0 0 14.059 33.941l211.882 211.882c18.744 18.745 49.136 18.746 67.882 0l204.118-204.118c18.745-18.745 18.745-49.137 0-67.882zM112 160c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm513.941 133.823L421.823 497.941c-18.745 18.745-49.137 18.745-67.882 0l-.36-.36L527.64 323.522c16.999-16.999 26.36-39.6 26.36-63.64s-9.362-46.641-26.36-63.64L331.397 0h48.721a48 48 0 0 1 33.941 14.059l211.882 211.882c18.745 18.745 18.745 49.137 0 67.882z"}))},userCircle:{label:Ki("User - Circle","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 496 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 96c48.6 0 88 39.4 88 88s-39.4 88-88 88-88-39.4-88-88 39.4-88 88-88zm0 344c-58.7 0-111.3-26.6-146.5-68.2 18.8-35.4 55.6-59.8 98.5-59.8 2.4 0 4.8.4 7.1 1.1 13 4.2 26.6 6.9 40.9 6.9 14.3 0 28-2.7 40.9-6.9 2.3-.7 4.7-1.1 7.1-1.1 42.9 0 79.7 24.4 98.5 59.8C359.3 421.4 306.7 448 248 448z"}))}};function Yi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Qi=wp.i18n.__,Xi=wp.element,$i=Xi.Component,er=Xi.Fragment,tr=Xi.renderToString,ar=wp.components,lr=ar.BaseControl,ir=ar.SelectControl,rr=ar.ToggleControl,nr=ar.TextControl,or=ar.Tooltip,cr=ar.Button,sr=ar.PanelBody,gr=ar.PanelRow,ur=wp.hooks.applyFilters,br=function(e){f()(a,e);var t=Yi(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).state={showIcons:!1,showGeneralIcons:!1,showSocialIcons:!1},e}return u()(a,[{key:"render",value:function(){var e=this,t=this.props,a=t.attributes,i=t.setAttributes,r=t.attrIcon,n=t.attrIconLocation,c=t.locationOptions,s=t.attrRemoveText,g={general:{group:Qi("General","generateblocks"),svgs:Ji},social:{group:Qi("Social","generateblocks"),svgs:Zi}};return g=ur("generateblocks.editor.iconSVGSets",g),Object(l.createElement)(er,null,Object(l.createElement)(lr,{className:"gb-svg-html"},Object(l.createElement)(nr,{label:Qi("Icon SVG HTML","generateblocks"),value:a[r],onChange:function(t){i(o()({},e.props.attrIcon,va(t))),i(""!==t?{hasIcon:!0}:{hasIcon:!1})}}),Object(l.createElement)("div",{className:"gb-icon-preview"},Object(l.createElement)("span",{dangerouslySetInnerHTML:{__html:va(a[r])}}),Object(l.createElement)(cr,{isSmall:!0,className:"reset-icon is-secondary",onClick:function(){var t;i((t={},o()(t,e.props.attrIcon,""),o()(t,"hasIcon",!1),t))}},Object(l.createElement)("span",{className:"editor-block-types-list__item-icon"},Qi("Clear","generateblocks"))))),Object(l.createElement)(lr,{className:"gb-icon-chooser"},Object.keys(g).map((function(t,a){var r=g[t].svgs;return Object(l.createElement)(sr,{title:g[t].group,initialOpen:!1,key:a},Object(l.createElement)(gr,null,Object(l.createElement)(lr,null,Object(l.createElement)("ul",{className:"gblocks-icon-chooser"},Object.keys(r).map((function(t,a){return Object(l.createElement)("li",{key:"editor-pblock-types-list-item-".concat(a)},Object(l.createElement)(or,{text:r[t].label},Object(l.createElement)(cr,{className:"editor-block-list-item-button",onClick:function(){var a,l=r[t].icon;"string"!=typeof l&&(l=tr(l)),i((a={},o()(a,e.props.attrIcon,l),o()(a,"hasIcon",!0),a))}},"string"==typeof r[t].icon?Object(l.createElement)(er,null,Object(l.createElement)("span",{className:"editor-block-types-list__item-icon",dangerouslySetInnerHTML:{__html:va(r[t].icon)}})):Object(l.createElement)(er,null,Object(l.createElement)("span",{className:"editor-block-types-list__item-icon"},r[t].icon)))))}))))))}))),void 0!==a[n]&&!a[s]&&!!a[r]&&Object(l.createElement)(ir,{label:Qi("Icon Location","generateblocks"),value:a[n],options:c,onChange:function(t){var l=a.iconPaddingLeft,r=a.iconPaddingRight,n=a.iconPaddingRightTablet,c=a.iconPaddingLeftTablet,s=a.iconPaddingRightMobile,g=a.iconPaddingLeftMobile;"right"===t&&(!l&&r&&i({iconPaddingLeft:r,iconPaddingRight:""}),!c&&n&&i({iconPaddingLeftTablet:n,iconPaddingRightTablet:""}),!g&&s&&i({iconPaddingLeftMobile:s,iconPaddingRightMobile:""})),"left"===t&&(!r&&l&&i({iconPaddingRight:l,iconPaddingLeft:""}),!n&&c&&i({iconPaddingRightTablet:c,iconPaddingLeftTablet:""}),!s&&g&&i({iconPaddingRightMobile:g,iconPaddingLeftMobile:""})),i(o()({},e.props.attrIconLocation,t))}}),void 0!==a[s]&&!!a[r]&&Object(l.createElement)(rr,{label:Qi("Remove Text","generateblocks"),checked:!!a[s],onChange:function(t){i(o()({},e.props.attrRemoveText,t))}}))}}]),a}($i);a(34);function dr(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function pr(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?dr(Object(a),!0).forEach((function(t){o()(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):dr(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function fr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var hr=wp.i18n.__,mr=wp.element.Component,kr=wp.components,yr=kr.Button,wr=kr.ToggleControl,vr=wp.blockEditor.URLInput,Tr=function(e){f()(a,e);var t=fr(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).state={moreOptions:!1},e.onChange=e.onChange.bind(d()(e)),e}return u()(a,[{key:"onChange",value:function(e){var t=this.props,a=t.url,l=t.target,i=t.relNoFollow,r=t.relSponsored;this.props.onChange(pr(pr({},{url:a,target:l,relNoFollow:i,relSponsored:r}),e))}},{key:"render",value:function(){var e=this,t=this.props,a=t.url,i=t.target,r=t.relNoFollow,n=t.relSponsored,o=t.className,c=t.autoFocus,s=this.onChange,g=this.state.moreOptions;return Object(l.createElement)("div",{className:v()("gblocks-component-url-input",o)},Object(l.createElement)("div",{className:"gblocks-component-url-input-flex"},Object(l.createElement)(vr,{value:a,onChange:function(e){s({url:e})},autoFocus:c}),Object(l.createElement)(yr,{icon:"ellipsis",label:hr(g?"Hide More Options":"Show More Options","generateblocks"),onClick:function(){e.setState({moreOptions:!g})}})),g&&Object(l.createElement)("div",{className:"gblocks-component-url-input-more-options"},Object(l.createElement)(wr,{label:hr("Open link in a new tab","generateblocks"),checked:i||"",onChange:function(e){s({target:e})}}),Object(l.createElement)(wr,{label:hr('Add rel="nofollow"',"generateblocks"),checked:r||"",onChange:function(e){s({relNoFollow:e})}}),Object(l.createElement)(wr,{label:hr('Add rel="sponsored"',"generateblocks"),checked:n||"",onChange:function(e){s({relSponsored:e})}})))}}]),a}(mr);function Or(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Cr=wp.element.Component,Sr=wp.hooks.applyFilters,Br=function(e){f()(a,e);var t=Or(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e,t=this.props.attributes,a=t.url,i=t.uniqueId,r=t.removeText,n=t.backgroundColor,o=t.backgroundColorOpacity,c=t.textColor,s=t.backgroundColorHover,g=t.backgroundColorHoverOpacity,u=t.textColorHover,b=t.fontFamily,d=t.fontFamilyFallback,p=t.fontWeight,f=t.textTransform,h=t.letterSpacing,m=t.fontSize,k=t.fontSizeUnit,y=t.marginTop,w=t.marginRight,v=t.marginBottom,T=t.marginLeft,O=t.marginUnit,C=t.paddingTop,S=t.paddingRight,B=t.paddingBottom,D=t.paddingLeft,E=t.paddingUnit,j=t.borderSizeTop,R=t.borderSizeRight,M=t.borderSizeBottom,z=t.borderSizeLeft,x=t.borderRadiusTopRight,L=t.borderRadiusBottomRight,P=t.borderRadiusBottomLeft,A=t.borderRadiusTopLeft,U=t.borderRadiusUnit,H=t.borderColor,N=t.borderColorOpacity,F=t.borderColorHover,_=t.borderColorHoverOpacity,I=t.gradient,G=t.gradientDirection,V=t.gradientColorOne,q=t.gradientColorOneOpacity,W=t.gradientColorStopOne,J=t.gradientColorTwo,Y=t.gradientColorTwoOpacity,Q=t.gradientColorStopTwo,X=t.iconPaddingTop,$=t.iconPaddingRight,ee=t.iconPaddingBottom,te=t.iconPaddingLeft,ae=t.iconPaddingUnit,le=t.iconSize,ie=t.iconSizeUnit,re="",ne="",oe="";I&&(V&&""!==W&&(ne=" "+W+"%"),J&&""!==Q&&(oe=" "+Q+"%")),I&&(e="linear-gradient("+G+"deg, "+Ct(V,q)+ne+", "+Ct(J,Y)+oe+");"),b&&d&&(re=", "+d);var ce="a.gb-button-"+i;a||(ce=".gb-button-"+i);var se=[];return se[".block-editor-block-list__block "+ce]=[{"background-color":Ct(n,o),"background-image":e,color:c,padding:Ta(C,S,B,D,E),"border-radius":Ta(A,x,L,P,U),"font-family":b+re,"font-weight":p,"text-transform":f,"font-size":K(m,k),"letter-spacing":K(h,"em"),margin:Ta(y,w,v,T,O)}],(j||R||M||z)&&se[".block-editor-block-list__block "+ce].push({"border-width":Ta(j,R,M,z,"px"),"border-style":"solid","border-color":Ct(H,N)}),se[".block-editor-block-list__block "+ce+":hover,\n\t\t.block-editor-block-list__block "+ce+":focus,\n\t\t.block-editor-block-list__block "+ce+":active"]=[{"background-color":Ct(s,g),color:u,"border-color":Ct(F,_)}],se[".block-editor-block-list__block "+ce+" .gb-icon"]=[{padding:!r&&Ta(X,$,ee,te,ae),"font-size":K(le,ie)}],se=Sr("generateblocks.editor.mainCSS",se,this.props,"button"),Object(l.createElement)("style",null,Z(se))}}]),a}(Cr);function Dr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Er=wp.element.Component,jr=wp.hooks.applyFilters,Rr=function(e){f()(a,e);var t=Dr(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=[];return e=jr("generateblocks.editor.desktopCSS",e,this.props,"button"),Object(l.createElement)("style",null,Z(e))}}]),a}(Er);function Mr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var zr=wp.element.Component,xr=wp.hooks.applyFilters,Lr=function(e){f()(a,e);var t=Mr(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=this.props.attributes,t=e.url,a=e.uniqueId,i=e.removeText,r=e.letterSpacingTablet,n=e.fontSizeTablet,o=e.fontSizeUnit,c=e.marginTopTablet,s=e.marginRightTablet,g=e.marginBottomTablet,u=e.marginLeftTablet,b=e.marginUnit,d=e.paddingTopTablet,p=e.paddingRightTablet,f=e.paddingBottomTablet,h=e.paddingLeftTablet,m=e.paddingUnit,k=e.borderSizeTopTablet,y=e.borderSizeRightTablet,w=e.borderSizeBottomTablet,v=e.borderSizeLeftTablet,T=e.borderRadiusTopRightTablet,O=e.borderRadiusBottomRightTablet,C=e.borderRadiusBottomLeftTablet,S=e.borderRadiusTopLeftTablet,B=e.borderRadiusUnit,D=e.iconPaddingTopTablet,E=e.iconPaddingRightTablet,j=e.iconPaddingBottomTablet,R=e.iconPaddingLeftTablet,M=e.iconPaddingUnit,z=e.iconSizeTablet,x=e.iconSizeUnit,L="a.gb-button-"+a;t||(L=".gb-button-"+a);var P=[];return P[".block-editor-block-list__block "+L]=[{"padding-top":K(d,m),"padding-right":K(p,m),"padding-bottom":K(f,m),"padding-left":K(h,m),"border-top-left-radius":K(S,B),"border-top-right-radius":K(T,B),"border-bottom-right-radius":K(O,B),"border-bottom-left-radius":K(C,B),"font-size":K(n,o),"letter-spacing":K(r,"em"),"margin-top":K(c,b),"margin-right":K(s,b),"margin-bottom":K(g,b),"margin-left":K(u,b)}],(k||y||w||v)&&P[".block-editor-block-list__block "+L].push({"border-top-width":K(k,"px"),"border-right-width":K(y,"px"),"border-bottom-width":K(w,"px"),"border-left-width":K(v,"px"),"border-style":"solid"}),P[".block-editor-block-list__block "+L+" .gb-icon"]=[{"padding-top":!i&&K(D,M),"padding-right":!i&&K(E,M),"padding-bottom":!i&&K(j,M),"padding-left":!i&&K(R,M),"font-size":K(z,x)}],P=xr("generateblocks.editor.tabletCSS",P,this.props,"button"),Object(l.createElement)("style",null,Z(P))}}]),a}(zr);function Pr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Ar=wp.element.Component,Ur=wp.hooks.applyFilters,Hr=function(e){f()(a,e);var t=Pr(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=[];return e=Ur("generateblocks.editor.tabletOnlyCSS",e,this.props,"button"),Object(l.createElement)("style",null,Z(e))}}]),a}(Ar);function Nr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Fr=wp.element.Component,_r=wp.hooks.applyFilters,Ir=function(e){f()(a,e);var t=Nr(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=this.props.attributes,t=e.url,a=e.uniqueId,i=e.removeText,r=e.letterSpacingMobile,n=e.fontSizeMobile,o=e.fontSizeUnit,c=e.marginTopMobile,s=e.marginRightMobile,g=e.marginBottomMobile,u=e.marginLeftMobile,b=e.marginUnit,d=e.paddingTopMobile,p=e.paddingRightMobile,f=e.paddingBottomMobile,h=e.paddingLeftMobile,m=e.paddingUnit,k=e.borderSizeTopMobile,y=e.borderSizeRightMobile,w=e.borderSizeBottomMobile,v=e.borderSizeLeftMobile,T=e.borderRadiusTopRightMobile,O=e.borderRadiusBottomRightMobile,C=e.borderRadiusBottomLeftMobile,S=e.borderRadiusTopLeftMobile,B=e.borderRadiusUnit,D=e.iconPaddingTopMobile,E=e.iconPaddingRightMobile,j=e.iconPaddingBottomMobile,R=e.iconPaddingLeftMobile,M=e.iconPaddingUnit,z=e.iconSizeMobile,x=e.iconSizeUnit,L="a.gb-button-"+a;t||(L=".gb-button-"+a);var P=[];return P[".block-editor-block-list__block "+L]=[{"padding-top":K(d,m),"padding-right":K(p,m),"padding-bottom":K(f,m),"padding-left":K(h,m),"border-top-left-radius":K(S,B),"border-top-right-radius":K(T,B),"border-bottom-right-radius":K(O,B),"border-bottom-left-radius":K(C,B),"font-size":K(n,o),"letter-spacing":K(r,"em"),"margin-top":K(c,b),"margin-right":K(s,b),"margin-bottom":K(g,b),"margin-left":K(u,b)}],(k||y||w||v)&&P[".block-editor-block-list__block "+L].push({"border-top-width":K(k,"px"),"border-right-width":K(y,"px"),"border-bottom-width":K(w,"px"),"border-left-width":K(v,"px"),"border-style":"solid"}),P[".block-editor-block-list__block "+L+" .gb-icon"]=[{"padding-top":!i&&K(D,M),"padding-right":!i&&K(E,M),"padding-bottom":!i&&K(j,M),"padding-left":!i&&K(R,M),"font-size":K(z,x)}],P=_r("generateblocks.editor.mobileCSS",P,this.props,"button"),Object(l.createElement)("style",null,Z(P))}}]),a}(Fr);function Gr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Vr=wp.i18n.__,qr=wp.components,Wr=qr.TabPanel,Zr=qr.TextControl,Kr=qr.ToolbarGroup,Jr=qr.ToolbarButton,Yr=qr.Button,Qr=wp.element,Xr=Qr.Fragment,$r=Qr.Component,en=wp.blockEditor,tn=en.InspectorControls,an=en.InspectorAdvancedControls,ln=en.RichText,rn=en.BlockControls,nn=wp.blocks.cloneBlock,on=wp.hooks.applyFilters,cn=wp.data,sn=cn.withSelect,gn=cn.withDispatch,un=wp.compose.compose,bn=/[\s#]/g,dn=[],pn=function(e){f()(a,e);var t=Gr(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).state={selectedDevice:"Desktop",fontSizePlaceholder:"17"},e.getFontSizePlaceholder=e.getFontSizePlaceholder.bind(d()(e)),e.getDeviceType=e.getDeviceType.bind(d()(e)),e.setDeviceType=e.setDeviceType.bind(d()(e)),e}return u()(a,[{key:"componentDidMount",value:function(){var e=this.props.clientId.substr(2,9).replace("-","");this.props.attributes.uniqueId?dn.includes(this.props.attributes.uniqueId)?(this.props.setAttributes({uniqueId:e}),dn.push(e)):dn.push(this.props.attributes.uniqueId):(this.props.setAttributes({uniqueId:e}),dn.push(e));var t=this.getFontSizePlaceholder();t!==this.state.fontSizePlaceholder&&this.setState({fontSizePlaceholder:t}),!this.props.attributes.hasIcon&&this.props.attributes.icon&&this.props.setAttributes({hasIcon:!0}),void 0===this.props.attributes.hasUrl&&(this.props.attributes.url?this.props.setAttributes({hasUrl:!0}):this.props.setAttributes({hasUrl:!1}))}},{key:"componentDidUpdate",value:function(){var e=this.getFontSizePlaceholder();e!==this.state.fontSizePlaceholder&&this.setState({fontSizePlaceholder:e})}},{key:"getFontSizePlaceholder",value:function(){var e="17",t=document.querySelector(".gb-button-"+this.props.attributes.uniqueId);return t&&(e=parseFloat(window.getComputedStyle(t).fontSize)),e}},{key:"getDeviceType",value:function(){var e=this.props.deviceType?this.props.deviceType:this.state.selectedDevice;return generateBlocksInfo.syncResponsivePreviews||(e=this.state.selectedDevice),e}},{key:"setDeviceType",value:function(e){generateBlocksInfo.syncResponsivePreviews&&this.props.deviceType?(this.props.setDeviceType(e),this.setState({selectedDevice:e})):this.setState({selectedDevice:e})}},{key:"render",value:function(){for(var e,t=this,a=this.props,i=a.attributes,n=a.setAttributes,c=a.isSelected,s=a.clientId,g=this.state.fontSizePlaceholder,u=i.uniqueId,b=i.className,d=i.anchor,p=i.text,f=i.url,h=i.target,m=i.relNoFollow,k=i.relSponsored,y=i.icon,w=i.iconLocation,T=i.removeText,C=i.ariaLabel,S=i.backgroundColor,B=i.backgroundColorOpacity,D=i.textColor,E=i.backgroundColorHover,j=i.backgroundColorHoverOpacity,R=i.textColorHover,M=i.fontFamily,z=i.googleFont,L=i.googleFontVariants,P=i.borderColor,A=i.borderColorOpacity,U=i.borderColorHover,H=i.borderColorHoverOpacity,N=i.iconSize,F=i.iconSizeTablet,_=i.iconSizeMobile,I=i.iconSizeUnit,G=document.querySelectorAll("a.gb-button"),q=function(e){G[e].addEventListener("click",(function(t){G[e].getAttribute("href")&&(G[e].removeAttribute("href"),t.preventDefault())}),!1)},W=0;W<G.length;W++)q(W);var Z=[];m&&Z.push("nofollow"),h&&Z.push("noopener","noreferrer"),k&&Z.push("sponsored");var K="";L&&(K=":"+L);var J={className:v()((e={"gb-button":!0},o()(e,"gb-button-".concat(u),!0),o()(e,"gb-button-text",!y),o()(e,"".concat(b),void 0!==b),e)),href:f||null,target:h?"_blank":null,rel:Z&&Z.length>0?Z.join(" "):null,"aria-label":C||null,id:d||null};return J=on("generateblocks.frontend.htmlAttributes",J,"generateblocks/button",i),Object(l.createElement)(Xr,null,Object(l.createElement)(rn,null,Object(l.createElement)(Kr,null,Object(l.createElement)(Jr,{className:"gblocks-add-new-button",icon:"insert",label:Vr("Add Button","generateblocks"),onClick:function(){var e=!1;e="function"==typeof wp.data.select("core/block-editor").getBlockParentsByBlockName?wp.data.select("core/block-editor").getBlockParentsByBlockName(s,"generateblocks/button-container",!0)[0]:wp.data.select("core/block-editor").getBlockRootClientId(s);var t=wp.data.select("core/block-editor").getBlocksByClientId(s)[0],a=nn(t);wp.data.dispatch("core/block-editor").insertBlocks(a,void 0,e)},showTooltip:!0}))),Object(l.createElement)(tn,null,Object(l.createElement)(x,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),Object(l.createElement)(Ce,r()({},this.props,{title:Vr("Typography","generateblocks"),initialOpen:!1,icon:O("typography"),className:"gblocks-panel-label",id:"buttonTypography",state:this.state,showPanel:!T||!1}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(Xr,null,Object(l.createElement)(na,r()({},this.props,{showFontFamily:!0,showFontWeight:!0,showTextTransform:!0,showFontSize:!0,showLetterSpacing:!0,fontSizePlaceholder:g,defaultFontSize:generateBlocksDefaults.button.fontSize,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacing}))),"Tablet"===this.getDeviceType()&&Object(l.createElement)(Xr,null,Object(l.createElement)(na,r()({},this.props,{device:"Tablet",showFontSize:!0,showLetterSpacing:!0,disableAdvancedToggle:!0,defaultFontSize:generateBlocksDefaults.button.fontSizeTablet,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacingTablet}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)(Xr,null,Object(l.createElement)(na,r()({},this.props,{device:"Mobile",showFontSize:!0,showLetterSpacing:!0,disableAdvancedToggle:!0,defaultFontSize:generateBlocksDefaults.button.fontSizeMobile,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacingMobile}))),on("generateblocks.editor.controls","","buttonTypography",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:Vr("Spacing","generateblocks"),initialOpen:!1,icon:O("spacing"),className:"gblocks-panel-label",id:"buttonSpacing",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(Xr,null,Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Vr("Padding","generateblocks"),attrTop:"paddingTop",attrRight:"paddingRight",attrBottom:"paddingBottom",attrLeft:"paddingLeft",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Vr("Margin","generateblocks"),attrTop:"marginTop",attrRight:"marginRight",attrBottom:"marginBottom",attrLeft:"marginLeft",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Vr("Border Size","generateblocks"),attrTop:"borderSizeTop",attrRight:"borderSizeRight",attrBottom:"borderSizeBottom",attrLeft:"borderSizeLeft",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.button,units:["px"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Vr("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeft",attrRight:"borderRadiusTopRight",attrBottom:"borderRadiusBottomRight",attrLeft:"borderRadiusBottomLeft",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Vr("T-Left","generateblocks"),labelRight:Vr("T-Right","generateblocks"),labelBottom:Vr("B-Right","generateblocks"),labelLeft:Vr("B-Left","generateblocks"),defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),"Tablet"===this.getDeviceType()&&Object(l.createElement)(Xr,null,Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Vr("Padding","generateblocks"),attrTop:"paddingTopTablet",attrRight:"paddingRightTablet",attrBottom:"paddingBottomTablet",attrLeft:"paddingLeftTablet",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Vr("Margin","generateblocks"),attrTop:"marginTopTablet",attrRight:"marginRightTablet",attrBottom:"marginBottomTablet",attrLeft:"marginLeftTablet",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Vr("Border Size","generateblocks"),attrTop:"borderSizeTopTablet",attrRight:"borderSizeRightTablet",attrBottom:"borderSizeBottomTablet",attrLeft:"borderSizeLeftTablet",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.button,units:["px"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Vr("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftTablet",attrRight:"borderRadiusTopRightTablet",attrBottom:"borderRadiusBottomRightTablet",attrLeft:"borderRadiusBottomLeftTablet",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Vr("T-Left","generateblocks"),labelRight:Vr("T-Right","generateblocks"),labelBottom:Vr("B-Right","generateblocks"),labelLeft:Vr("B-Left","generateblocks"),defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)(Xr,null,Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Vr("Padding","generateblocks"),attrTop:"paddingTopMobile",attrRight:"paddingRightMobile",attrBottom:"paddingBottomMobile",attrLeft:"paddingLeftMobile",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Vr("Margin","generateblocks"),attrTop:"marginTopMobile",attrRight:"marginRightMobile",attrBottom:"marginBottomMobile",attrLeft:"marginLeftMobile",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Vr("Border Size","generateblocks"),attrTop:"borderSizeTopMobile",attrRight:"borderSizeRightMobile",attrBottom:"borderSizeBottomMobile",attrLeft:"borderSizeLeftMobile",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.button,units:["px"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Vr("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftMobile",attrRight:"borderRadiusTopRightMobile",attrBottom:"borderRadiusBottomRightMobile",attrLeft:"borderRadiusBottomLeftMobile",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Vr("T-Left","generateblocks"),labelRight:Vr("T-Right","generateblocks"),labelBottom:Vr("B-Right","generateblocks"),labelLeft:Vr("B-Left","generateblocks"),defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),on("generateblocks.editor.controls","","buttonSpacing",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:Vr("Colors","generateblocks"),initialOpen:!1,icon:O("colors"),className:"gblocks-panel-label",id:"buttonColors",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(Wr,{className:"layout-tab-panel gblocks-control-tabs",activeClass:"active-tab",tabs:[{name:"button-colors",title:Vr("Normal","generateblocks"),className:"button-colors"},{name:"button-colors-hover",title:Vr("Hover","generateblocks"),className:"button-colors-hover"}]},(function(e){var a="button-colors"===e.name;return Object(l.createElement)("div",null,a?Object(l.createElement)(Xr,null,Object(l.createElement)(At,{label:Vr("Background Color","generateblocks"),value:S,alpha:!0,valueOpacity:B,attrOpacity:"backgroundColorOpacity",key:"buttonBackgroundColor",onChange:function(e){return n({backgroundColor:e})},onOpacityChange:function(e){return n({backgroundColorOpacity:e})}}),Object(l.createElement)(At,{label:Vr("Text Color","generateblocks"),value:D,alpha:!1,key:"buttonTextColor",onChange:function(e){return n({textColor:e})}}),Object(l.createElement)(At,{label:Vr("Border Color","generateblocks"),value:P,alpha:!0,valueOpacity:A,attrOpacity:"borderColorOpacity",key:"buttonBorderColor",onChange:function(e){return n({borderColor:e})},onOpacityChange:function(e){return n({borderColorOpacity:e})}}),on("generateblocks.editor.controls","","buttonColorsNormal",t.props,t.state)):Object(l.createElement)(Xr,null,Object(l.createElement)(At,{label:Vr("Background Color","generateblocks"),value:E,alpha:!0,valueOpacity:j,attrOpacity:"backgroundColorHoverOpacity",key:"buttonBackgroundColorHover",onChange:function(e){return n({backgroundColorHover:e})},onOpacityChange:function(e){return n({backgroundColorHoverOpacity:e})}}),Object(l.createElement)(At,{label:Vr("Text Color","generateblocks"),value:R,alpha:!1,key:"buttonTextColorHover",onChange:function(e){return n({textColorHover:e})}}),Object(l.createElement)(At,{label:Vr("Border Color","generateblocks"),value:U,alpha:!0,valueOpacity:H,attrOpacity:"borderColorHoverOpacity",key:"buttonBorderColorHover",onChange:function(e){return n({borderColorHover:e})},onOpacityChange:function(e){return n({borderColorHoverOpacity:e})}}),on("generateblocks.editor.controls","","buttonColorsHover",t.props,t.state)))})),on("generateblocks.editor.controls","","buttonColors",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:Vr("Background Gradient","generateblocks"),initialOpen:!1,icon:O("gradients"),className:"gblocks-panel-label",id:"buttonBackgroundGradient",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(ka,r()({},this.props,{attrGradient:"gradient",attrGradientDirection:"gradientDirection",attrGradientColorOne:"gradientColorOne",attrGradientColorOneOpacity:"gradientColorOneOpacity",attrGradientColorStopOne:"gradientColorStopOne",attrGradientColorTwo:"gradientColorTwo",attrGradientColorTwoOpacity:"gradientColorTwoOpacity",attrGradientColorStopTwo:"gradientColorStopTwo",defaultColorOne:generateBlocksDefaults.button.gradientColorOne,defaultColorTwo:generateBlocksDefaults.button.gradientColorTwo})),on("generateblocks.editor.controls","","buttonBackgroundGradient",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:Vr("Icon","generateblocks"),initialOpen:!1,icon:O("icons"),className:"gblocks-panel-label",id:"buttonIcon",state:this.state,showPanel:!("Desktop"!==this.getDeviceType()&&!y)}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(br,r()({},this.props,{attrIcon:"icon",attrIconLocation:"iconLocation",attrRemoveText:"removeText",locationOptions:[{label:Vr("Left","generateblocks"),value:"left"},{label:Vr("Right","generateblocks"),value:"right"}]})),"Desktop"===this.getDeviceType()&&!!y&&Object(l.createElement)(Xr,null,!T&&Object(l.createElement)(Xr,null,Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Vr("Padding","generateblocks"),attrTop:"iconPaddingTop",attrRight:"iconPaddingRight",attrBottom:"iconPaddingBottom",attrLeft:"iconPaddingLeft",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(l.createElement)(V,{label:Vr("Icon Size","generateblocks"),value:I,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Zr,{type:"number",value:N||"",step:"em"===I?.1:1,onChange:function(e){n({iconSize:e})},onBlur:function(){n({iconSize:parseFloat(N)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Yr,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSize:generateBlocksDefaults.button.iconSize})}},Vr("Reset","generateblocks")))),"Tablet"===this.getDeviceType()&&!!y&&Object(l.createElement)(Xr,null,!T&&Object(l.createElement)(Xr,null,Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Vr("Padding","generateblocks"),attrTop:"iconPaddingTopTablet",attrRight:"iconPaddingRightTablet",attrBottom:"iconPaddingBottomTablet",attrLeft:"iconPaddingLeftTablet",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(l.createElement)(V,{label:Vr("Icon Size","generateblocks"),value:I,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Zr,{type:"number",value:F||"",step:"em"===I?.1:1,placeholder:"1",onChange:function(e){n({iconSizeTablet:e})},onBlur:function(){n({iconSizeTablet:parseFloat(F)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Yr,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSizeTablet:generateBlocksDefaults.button.iconSizeTablet})}},Vr("Reset","generateblocks")))),"Mobile"===this.getDeviceType()&&!!y&&Object(l.createElement)(Xr,null,!T&&Object(l.createElement)(Xr,null,Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Vr("Padding","generateblocks"),attrTop:"iconPaddingTopMobile",attrRight:"iconPaddingRightMobile",attrBottom:"iconPaddingBottomMobile",attrLeft:"iconPaddingLeftMobile",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(l.createElement)(V,{label:Vr("Icon Size","generateblocks"),value:I,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(Zr,{type:"number",value:_||"",step:"em"===I?.1:1,placeholder:"1",onChange:function(e){n({iconSizeMobile:e})},onBlur:function(){n({iconSizeMobile:parseFloat(_)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(Yr,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSizeMobile:generateBlocksDefaults.button.iconSizeMobile})}},Vr("Reset","generateblocks")))),on("generateblocks.editor.controls","","buttonIcon",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:Vr("Documentation","generateblocks"),icon:O("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"buttonDocumentation",state:this.state}),Object(l.createElement)("p",null,Vr("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/buttons/",target:"_blank",rel:"noreferrer noopener"},Vr("Visit our documentation","generateblocks")),on("generateblocks.editor.controls","","buttonDocumentation",this.props,this.state))),Object(l.createElement)(an,null,Object(l.createElement)(Zr,{label:Vr("HTML Anchor"),help:Vr("Anchors lets you link directly to a section on a page.","generateblocks"),value:d||"",onChange:function(e){e=e.replace(bn,"-"),n({anchor:e})}}),Object(l.createElement)(Zr,{label:Vr("ARIA Label","generateblocks"),help:Vr("Helpful to people using screen readers.","generateblocks"),value:C,onChange:function(e){n({ariaLabel:e})}})),Object(l.createElement)(Br,this.props),this.props.deviceType&&Object(l.createElement)(Xr,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(Rr,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(Lr,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(Hr,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(Ir,this.props)),M&&z&&Object(l.createElement)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family="+M.replace(/ /g,"+")+K}),Object(l.createElement)(Ot,{tagName:f?"a":"span",htmlAttrs:J},!!y&&Object(l.createElement)(Xr,null,"left"===w&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:va(y)}}),!T&&Object(l.createElement)("span",{className:"gb-button-text"},Object(l.createElement)(ln,{placeholder:Vr("Add text…","generateblocks"),value:p,onChange:function(e){return n({text:e})},allowedFormats:["core/bold","core/italic","core/strikethrough"],isSelected:c,keepPlaceholderOnFocus:!0})),"right"===w&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:va(y)}})),!y&&!T&&Object(l.createElement)(ln,{placeholder:Vr("Add text…","generateblocks"),value:p,onChange:function(e){return n({text:e})},allowedFormats:["core/bold","core/italic","core/strikethrough"],isSelected:c,keepPlaceholderOnFocus:!0})),c&&Object(l.createElement)(Tr,{url:f,target:h,relNoFollow:m,relSponsored:k,onChange:function(e){n(e),""!==e.url?n({hasUrl:!0}):n({hasUrl:!1})},autoFocus:!1,className:"gblocks-component-url-input-float"}))}}]),a}($r),fn=un([gn((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),sn((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?{deviceType:t()}:{deviceType:null}}))])(pn),hn=wp.blockEditor.RichText,mn=wp.hooks.applyFilters,kn={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},url:{type:"string",source:"attribute",selector:".gb-button",attribute:"href"},hasUrl:{type:"boolean"},target:{type:"boolean"},relNoFollow:{type:"boolean"},relSponsored:{type:"boolean"},text:{type:"string",source:"html",selector:".gb-button-text",default:"Button"},icon:{type:"string",source:"html",selector:".gb-icon"},hasIcon:{type:"boolean",default:!1},iconLocation:{type:"string",default:generateBlocksDefaults.button.iconLocation},customIcon:{type:"boolean",default:!1},removeText:{type:"boolean",default:generateBlocksDefaults.button.removeText},ariaLabel:{type:"string",default:generateBlocksDefaults.button.ariaLabel},backgroundColor:{type:"string",default:generateBlocksDefaults.button.backgroundColor},backgroundColorOpacity:{type:"number",default:generateBlocksDefaults.button.backgroundColorOpacity},textColor:{type:"string",default:generateBlocksDefaults.button.textColor},backgroundColorHover:{type:"string",default:generateBlocksDefaults.button.backgroundColorHover},backgroundColorHoverOpacity:{type:"number",default:generateBlocksDefaults.button.backgroundColorHoverOpacity},textColorHover:{type:"string",default:generateBlocksDefaults.button.textColorHover},borderColor:{type:"string",default:generateBlocksDefaults.button.borderColor},borderColorOpacity:{type:"number",default:generateBlocksDefaults.button.borderColorOpacity},borderColorHover:{type:"string",default:generateBlocksDefaults.button.borderColorHover},borderColorHoverOpacity:{type:"number",default:generateBlocksDefaults.button.borderColorHoverOpacity},showAdvancedTypography:{type:"boolean",default:generateBlocksDefaults.button.showAdvancedTypography},fontFamily:{type:"string",default:generateBlocksDefaults.button.fontFamily},fontFamilyFallback:{type:"string",default:generateBlocksDefaults.button.fontFamilyFallback},googleFont:{type:"boolean",default:generateBlocksDefaults.button.googleFont},googleFontVariants:{type:"string",default:generateBlocksDefaults.button.googleFontVariants},fontWeight:{type:"string",default:generateBlocksDefaults.button.fontWeight},fontSize:{type:"number",default:generateBlocksDefaults.button.fontSize},fontSizeTablet:{type:"number",default:generateBlocksDefaults.button.fontSizeTablet},fontSizeMobile:{type:"number",default:generateBlocksDefaults.button.fontSizeMobile},fontSizeUnit:{type:"string",default:generateBlocksDefaults.button.fontSizeUnit},textTransform:{type:"string",default:generateBlocksDefaults.button.textTransform},letterSpacing:{type:"number",default:generateBlocksDefaults.button.letterSpacing},letterSpacingTablet:{type:"number",default:generateBlocksDefaults.button.letterSpacingTablet},letterSpacingMobile:{type:"number",default:generateBlocksDefaults.button.letterSpacingMobile},marginTop:{type:"string",default:generateBlocksDefaults.button.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.button.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.button.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.button.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.button.marginUnit},marginTopTablet:{type:"string",default:generateBlocksDefaults.button.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.button.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.button.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.button.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.button.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.button.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.button.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.button.marginLeftMobile},paddingTop:{type:"string",default:generateBlocksDefaults.button.paddingTop},paddingRight:{type:"string",default:generateBlocksDefaults.button.paddingRight},paddingBottom:{type:"string",default:generateBlocksDefaults.button.paddingBottom},paddingLeft:{type:"string",default:generateBlocksDefaults.button.paddingLeft},paddingUnit:{type:"string",default:generateBlocksDefaults.button.paddingUnit},paddingTopTablet:{type:"string",default:generateBlocksDefaults.button.paddingTopTablet},paddingRightTablet:{type:"string",default:generateBlocksDefaults.button.paddingRightTablet},paddingBottomTablet:{type:"string",default:generateBlocksDefaults.button.paddingBottomTablet},paddingLeftTablet:{type:"string",default:generateBlocksDefaults.button.paddingLeftTablet},paddingTopMobile:{type:"string",default:generateBlocksDefaults.button.paddingTopMobile},paddingRightMobile:{type:"string",default:generateBlocksDefaults.button.paddingRightMobile},paddingBottomMobile:{type:"string",default:generateBlocksDefaults.button.paddingBottomMobile},paddingLeftMobile:{type:"string",default:generateBlocksDefaults.button.paddingLeftMobile},borderSizeTop:{type:"string",default:generateBlocksDefaults.button.borderSizeTop},borderSizeRight:{type:"string",default:generateBlocksDefaults.button.borderSizeRight},borderSizeBottom:{type:"string",default:generateBlocksDefaults.button.borderSizeBottom},borderSizeLeft:{type:"string",default:generateBlocksDefaults.button.borderSizeLeft},borderSizeTopTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeTopTablet},borderSizeRightTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeRightTablet},borderSizeBottomTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeBottomTablet},borderSizeLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeLeftTablet},borderSizeTopMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeTopMobile},borderSizeRightMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeRightMobile},borderSizeBottomMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeBottomMobile},borderSizeLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeLeftMobile},borderRadiusTopRight:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRight},borderRadiusBottomRight:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRight},borderRadiusBottomLeft:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeft},borderRadiusTopLeft:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeft},borderRadiusUnit:{type:"string",default:generateBlocksDefaults.button.borderRadiusUnit},borderRadiusTopRightTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRightTablet},borderRadiusBottomRightTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRightTablet},borderRadiusBottomLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeftTablet},borderRadiusTopLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeftTablet},borderRadiusTopRightMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRightMobile},borderRadiusBottomRightMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRightMobile},borderRadiusBottomLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeftMobile},borderRadiusTopLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeftMobile},gradient:{type:"boolean",default:generateBlocksDefaults.button.gradient},gradientDirection:{type:"number",default:generateBlocksDefaults.button.gradientDirection},gradientColorOne:{type:"string",default:generateBlocksDefaults.button.gradientColorOne},gradientColorOneOpacity:{type:"number",default:generateBlocksDefaults.button.gradientColorOneOpacity},gradientColorStopOne:{type:"number",default:generateBlocksDefaults.button.gradientColorStopOne},gradientColorTwo:{type:"string",default:generateBlocksDefaults.button.gradientColorTwo},gradientColorTwoOpacity:{type:"number",default:generateBlocksDefaults.button.gradientColorTwoOpacity},gradientColorStopTwo:{type:"number",default:generateBlocksDefaults.button.gradientColorStopTwo},iconPaddingTop:{type:"string",default:generateBlocksDefaults.button.iconPaddingTop},iconPaddingRight:{type:"string",default:generateBlocksDefaults.button.iconPaddingRight},iconPaddingBottom:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottom},iconPaddingLeft:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeft},iconPaddingTopTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingTopTablet},iconPaddingRightTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingRightTablet},iconPaddingBottomTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottomTablet},iconPaddingLeftTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeftTablet},iconPaddingTopMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingTopMobile},iconPaddingRightMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingRightMobile},iconPaddingBottomMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottomMobile},iconPaddingLeftMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeftMobile},iconPaddingUnit:{type:"string",default:generateBlocksDefaults.button.iconPaddingUnit},iconPaddingSyncUnits:{type:"boolean",default:!1},iconSize:{type:"number",default:generateBlocksDefaults.button.iconSize},iconSizeTablet:{type:"number",default:generateBlocksDefaults.button.iconSizeTablet},iconSizeMobile:{type:"number",default:generateBlocksDefaults.button.iconSizeMobile},iconSizeUnit:{type:"string",default:generateBlocksDefaults.button.iconSizeUnit},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};function yn(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function wn(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?yn(Object(a),!0).forEach((function(t){o()(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):yn(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var vn=wp.hooks.applyFilters,Tn=wp.blockEditor.RichText,On=[{attributes:wn(wn({},kn),{},{text:{type:"array",source:"children",selector:".gb-button .button-text",default:"Button"}}),supports:{anchor:!1,className:!1,customClassName:!1,inserter:!1,reusable:!1},migrate:function(e){var t=e.cssClasses?e.cssClasses:e.className,a=e.elementId?e.elementId:e.anchor;return wn(wn({},e),{},{className:t,anchor:a,cssClasses:"",elementId:""})},save:function(e){var t,a=e.attributes,i=a.uniqueId,r=a.elementId,n=a.cssClasses,c=a.text,s=a.url,g=a.target,u=a.relNoFollow,b=a.relSponsored,d=a.icon,p=a.iconLocation,f=a.removeText,h=a.ariaLabel,m=[];u&&m.push("nofollow"),g&&m.push("noopener","noreferrer"),b&&m.push("sponsored");var k={id:r||void 0,className:v()((t={"gb-button":!0},o()(t,"gb-button-".concat(i),!0),o()(t,"".concat(n),""!==n),t)),href:s||void 0,target:g?"_blank":void 0,rel:m&&m.length>0?m.join(" "):void 0,"aria-label":h||void 0};return k=vn("generateblocks.frontend.htmlAttributes",k,"generateblocks/button",a),Object(l.createElement)("a",k,d&&"left"===p&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:va(d)}}),!f&&Object(l.createElement)(Tn.Content,{tagName:"span",className:"button-text",value:c,key:"button-text"}),d&&"right"===p&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:va(d)}}))}}],Cn=wp.i18n.__;(0,wp.blocks.registerBlockType)("generateblocks/button",{title:Cn("Button","generateblocks"),description:Cn("Drive conversions with beautiful buttons.","generateblocks"),parent:["generateblocks/button-container"],icon:O("button"),category:"generateblocks",keywords:[Cn("button"),Cn("buttons"),Cn("generate")],attributes:kn,supports:{className:!1,inserter:!1,reusable:!1},edit:fn,save:function(e){var t,a=e.attributes,i=a.uniqueId,r=a.className,n=a.text,c=a.url,s=a.target,g=a.relNoFollow,u=a.relSponsored,b=a.icon,d=a.iconLocation,p=a.removeText,f=a.ariaLabel,h=a.anchor,m=[];g&&m.push("nofollow"),s&&m.push("noopener","noreferrer"),u&&m.push("sponsored");var k={className:v()((t={"gb-button":!0},o()(t,"gb-button-".concat(i),!0),o()(t,"gb-button-text",!b),o()(t,"".concat(r),void 0!==r),t)),href:c||null,target:s?"_blank":null,rel:m&&m.length>0?m.join(" "):null,"aria-label":f||null,id:h||null};return k=mn("generateblocks.frontend.htmlAttributes",k,"generateblocks/button",a),Object(l.createElement)(Ot,{tagName:c?"a":"span",htmlAttrs:k},!!b&&"left"===d&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:va(b)}}),!p&&Object(l.createElement)(hn.Content,{value:n,tagName:b?"span":null,className:b?"gb-button-text":null}),!!b&&"right"===d&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:va(b)}}))},deprecated:On});a(35);function Sn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Bn=wp.element.Component,Dn=wp.hooks.applyFilters,En=function(e){f()(a,e);var t=Sn(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=this.props,t=e.attributes,a=e.clientId,i=t.uniqueId,r=t.element,n=t.alignment,o=t.backgroundColor,c=t.backgroundColorOpacity,s=t.textColor,g=t.linkColor,u=t.borderColor,b=t.borderColorOpacity,d=t.highlightTextColor,p=t.fontFamily,f=t.fontFamilyFallback,h=t.fontWeight,m=t.fontSize,k=t.fontSizeUnit,y=t.textTransform,w=t.lineHeight,v=t.lineHeightUnit,T=t.letterSpacing,O=t.marginTop,C=t.marginRight,S=t.marginBottom,B=t.marginLeft,D=t.marginUnit,E=t.paddingTop,j=t.paddingRight,R=t.paddingBottom,M=t.paddingLeft,z=t.paddingUnit,x=t.borderSizeTop,L=t.borderSizeRight,P=t.borderSizeBottom,A=t.borderSizeLeft,U=t.borderRadiusTopRight,H=t.borderRadiusBottomRight,N=t.borderRadiusBottomLeft,F=t.borderRadiusTopLeft,_=t.borderRadiusUnit,I=t.icon,G=t.iconColor,V=t.iconColorOpacity,q=t.iconLocation,W=t.iconVerticalAlignment,J=t.iconPaddingTop,Y=t.iconPaddingRight,Q=t.iconPaddingBottom,X=t.iconPaddingLeft,$=t.iconPaddingUnit,ee=t.iconSize,te=t.iconSizeUnit,ae=t.inlineWidth,le=t.removeText,ie="",re="inline-block";p&&f&&(ie=", "+f);var ne=r+".gb-headline-"+i,oe=[];return oe[".editor-styles-wrapper "+ne]=[{color:s,"font-family":p+ie,"font-weight":h,"text-transform":y,"text-align":n,"font-size":K(m,k),"line-height":K(w,v),"letter-spacing":K(T,"em"),display:!!I&&"flex","align-items":Nl("inline"===q?W:n),"justify-content":Nl(n),"flex-direction":!(!I||"above"!==q)&&"column"}],oe[".editor-styles-wrapper .gb-container "+ne]=[{color:s}],I&&(re="inline-flex"),oe[".editor-styles-wrapper "+ne].push({"background-color":Ct(o,c),color:s,display:!!ae&&re,"margin-top":K(O,D),"margin-right":K(C,D),"margin-bottom":K(S,D),"margin-left":K(B,D),padding:Ta(E,j,R,M,z),"border-radius":Ta(F,U,H,N,_)}),(x||L||P||A)&&oe[".editor-styles-wrapper "+ne].push({"border-width":Ta(x,L,P,A,"px"),"border-style":"solid","border-color":Ct(u,b)}),oe[".editor-styles-wrapper "+ne+" a"]=[{color:g}],oe[ne+" .gb-icon"]=[{padding:!le&&Ta(J,Y,Q,X,$),"align-self":!(!I||"above"!==q)&&Nl(n),color:Ct(G,V),display:!(!I||"above"!==q)&&"inline"}],oe[ne+" .gb-icon svg"]=[{width:K(ee,te),height:K(ee,te)}],oe[ne+" .gb-highlight"]=[{color:d}],oe["#block-"+a]=[{display:!!ae&&"inline-flex"}],oe=Dn("generateblocks.editor.mainCSS",oe,this.props,"headline"),Object(l.createElement)("style",null,Z(oe))}}]),a}(Bn);function jn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Rn=wp.element.Component,Mn=wp.hooks.applyFilters,zn=function(e){f()(a,e);var t=jn(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=[];return e=Mn("generateblocks.editor.desktopCSS",e,this.props,"headline"),Object(l.createElement)("style",null,Z(e))}}]),a}(Rn);function xn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Ln=wp.element.Component,Pn=wp.hooks.applyFilters,An=function(e){f()(a,e);var t=xn(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=this.props,t=e.attributes,a=e.clientId,i=t.uniqueId,r=t.element,n=t.alignmentTablet,o=t.fontSizeTablet,c=t.fontSizeUnit,s=t.lineHeightTablet,g=t.lineHeightUnit,u=t.letterSpacingTablet,b=t.marginTopTablet,d=t.marginRightTablet,p=t.marginBottomTablet,f=t.marginLeftTablet,h=t.marginUnit,m=t.paddingTopTablet,k=t.paddingRightTablet,y=t.paddingBottomTablet,w=t.paddingLeftTablet,v=t.paddingUnit,T=t.borderSizeTopTablet,O=t.borderSizeRightTablet,C=t.borderSizeBottomTablet,S=t.borderSizeLeftTablet,B=t.borderRadiusTopRightTablet,D=t.borderRadiusBottomRightTablet,E=t.borderRadiusBottomLeftTablet,j=t.borderRadiusTopLeftTablet,R=t.borderRadiusUnit,M=t.icon,z=t.iconLocationTablet,x=t.iconVerticalAlignmentTablet,L=t.iconPaddingTopTablet,P=t.iconPaddingRightTablet,A=t.iconPaddingBottomTablet,U=t.iconPaddingLeftTablet,H=t.iconPaddingUnit,N=t.iconSizeTablet,F=t.iconSizeUnit,_=t.inlineWidthTablet,I=t.removeText,G=r+".gb-headline-"+i,V="inline-block",q=[];return q[".editor-styles-wrapper "+G]=[{"text-align":n,"font-size":K(o,c),"line-height":K(s,g),"letter-spacing":K(u,"em"),display:!!M&&"flex","align-items":Nl("inline"===z?x:n),"justify-content":Nl(n),"flex-direction":!(!M||"above"!==z)&&"column","margin-top":K(b,h)+" !important","margin-right":K(d,h)+" !important","margin-bottom":K(p,h)+" !important","margin-left":K(f,h)+" !important","padding-top":K(m,v),"padding-right":K(k,v),"padding-bottom":K(y,v),"padding-left":K(w,v),"border-top-left-radius":K(j,R),"border-top-right-radius":K(B,R),"border-bottom-right-radius":K(D,R),"border-bottom-left-radius":K(E,R)}],M&&(V="inline-flex",q[".editor-styles-wrapper "+G].push({display:!!_&&V})),(T||O||C||S)&&q[".editor-styles-wrapper "+G].push({"border-top-width":K(T,"px"),"border-right-width":K(O,"px"),"border-bottom-width":K(C,"px"),"border-left-width":K(S,"px"),"border-style":"solid"}),q[G+" .gb-icon"]=[{"padding-top":!I&&K(L,H),"padding-right":!I&&K(P,H),"padding-bottom":!I&&K(A,H),"padding-left":!I&&K(U,H),"align-self":!(!M||"above"!==z)&&Nl(n),display:!(!M||"above"!==z)&&"inline"}],q[G+" .gb-icon svg"]=[{width:K(N,F),height:K(N,F)}],q["#block-"+a]=[{display:!!_&&"inline-flex"}],q=Pn("generateblocks.editor.tabletCSS",q,this.props,"text"),Object(l.createElement)("style",null,Z(q))}}]),a}(Ln);function Un(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Hn=wp.element.Component,Nn=wp.hooks.applyFilters,Fn=function(e){f()(a,e);var t=Un(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=[];return e=Nn("generateblocks.editor.tabletOnlyCSS",e,this.props,"headline"),Object(l.createElement)("style",null,Z(e))}}]),a}(Hn);function _n(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var In=wp.element.Component,Gn=wp.hooks.applyFilters,Vn=function(e){f()(a,e);var t=_n(a);function a(){return s()(this,a),t.apply(this,arguments)}return u()(a,[{key:"render",value:function(){var e=this.props,t=e.attributes,a=e.clientId,i=t.uniqueId,r=t.element,n=t.alignmentMobile,o=t.fontSizeMobile,c=t.fontSizeUnit,s=t.lineHeightMobile,g=t.lineHeightUnit,u=t.letterSpacingMobile,b=t.marginTopMobile,d=t.marginRightMobile,p=t.marginBottomMobile,f=t.marginLeftMobile,h=t.marginUnit,m=t.paddingTopMobile,k=t.paddingRightMobile,y=t.paddingBottomMobile,w=t.paddingLeftMobile,v=t.paddingUnit,T=t.borderSizeTopMobile,O=t.borderSizeRightMobile,C=t.borderSizeBottomMobile,S=t.borderSizeLeftMobile,B=t.borderRadiusTopRightMobile,D=t.borderRadiusBottomRightMobile,E=t.borderRadiusBottomLeftMobile,j=t.borderRadiusTopLeftMobile,R=t.borderRadiusUnit,M=t.icon,z=t.iconLocationMobile,x=t.iconVerticalAlignmentMobile,L=t.iconPaddingTopMobile,P=t.iconPaddingRightMobile,A=t.iconPaddingBottomMobile,U=t.iconPaddingLeftMobile,H=t.iconPaddingUnit,N=t.iconSizeMobile,F=t.iconSizeUnit,_=t.inlineWidthMobile,I=t.removeText,G=r+".gb-headline-"+i,V="inline-block",q=[];return q[".editor-styles-wrapper "+G]=[{"text-align":n,"font-size":K(o,c),"line-height":K(s,g),"letter-spacing":K(u,"em"),display:!!M&&"flex","align-items":Nl("inline"===z?x:n),"justify-content":Nl(n),"flex-direction":!(!M||"above"!==z)&&"column","margin-top":K(b,h)+" !important","margin-right":K(d,h)+" !important","margin-bottom":K(p,h)+" !important","margin-left":K(f,h)+" !important","padding-top":K(m,v),"padding-right":K(k,v),"padding-bottom":K(y,v),"padding-left":K(w,v),"border-top-left-radius":K(j,R),"border-top-right-radius":K(B,R),"border-bottom-right-radius":K(D,R),"border-bottom-left-radius":K(E,R)}],M&&(V="inline-flex",q[".editor-styles-wrapper "+G].push({display:!!_&&V})),(T||O||C||S)&&q[".editor-styles-wrapper "+G].push({"border-top-width":K(T,"px"),"border-right-width":K(O,"px"),"border-bottom-width":K(C,"px"),"border-left-width":K(S,"px"),"border-style":"solid"}),q[G+" .gb-icon"]=[{"padding-top":!I&&K(L,H),"padding-right":!I&&K(P,H),"padding-bottom":!I&&K(A,H),"padding-left":!I&&K(U,H),"align-self":!(!M||"above"!==z)&&Nl(n),display:!(!M||"above"!==z)&&"inline"}],q[G+" .gb-icon svg"]=[{width:K(N,F),height:K(N,F)}],q["#block-"+a]=[{display:!!_&&"inline-flex"}],q=Gn("generateblocks.editor.mobileCSS",q,this.props,"headline"),Object(l.createElement)("style",null,Z(q))}}]),a}(In),qn=wp.i18n.__,Wn=wp.element.Fragment,Zn=wp.richText,Kn=Zn.toggleFormat,Jn=Zn.registerFormatType,Yn=wp.blockEditor,Qn=Yn.RichTextToolbarButton,Xn=Yn.RichTextShortcut,$n=wp.data.withSelect,eo=wp.compose.ifCondition,to=wp.compose.compose,ao=Object(l.createElement)("svg",{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},Object(l.createElement)("path",{d:"M4.331,15.598l2.193,1.693c0,0 -0.813,1.215 -0.992,1.215c-1.129,0.003 -1.424,0.008 -2.603,-0.001c-0.741,-0.006 -0.04,-0.955 0.187,-1.269c0.502,-0.694 1.215,-1.638 1.215,-1.638Zm7.632,-14.107c0.364,-0.061 5.412,3.896 5.439,4.272c0.031,0.438 -4.887,8.469 -5.635,9.648c-0.251,0.397 -1.185,0.206 -2.064,0.472c-0.801,0.243 -1.89,1.336 -2.193,1.105c-1.047,-0.796 -2.217,-1.646 -3.117,-2.49c-0.367,-0.343 0.388,-1.241 0.405,-2.188c0.015,-0.811 -0.644,-2.029 -0.196,-2.575c0.836,-1.019 6.931,-8.172 7.361,-8.244Zm0.144,1.454l3.95,3.105l-4.972,8.1l-5.197,-4.053l6.219,-7.152Z"})),lo=to($n((function(e){return{selectedBlock:e("core/block-editor").getSelectedBlock()}})),eo((function(e){return e.selectedBlock&&"generateblocks/headline"===e.selectedBlock.name})))((function(e){var t=function(){return e.onChange(Kn(e.value,{type:"generateblocks/mark"}))};return Object(l.createElement)(Wn,null,Object(l.createElement)(Xn,{type:"primary",character:"m",onUse:t}),Object(l.createElement)(Qn,{icon:ao,title:qn("Highlight","generateblocks"),onClick:t,isActive:e.isActive,shortcutType:"access",shortcutCharacter:"m",className:"toolbar-button-with-text toolbar-button__".concat("generateblocks/mark")}))}));Jn("generateblocks/mark",{title:qn("Highlight","generateblocks"),tagName:"mark",className:"gb-highlight",edit:lo});var io=wp.components,ro=io.Path,no=io.SVG;function oo(e){var t=e.level,a={h1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",h2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z",h3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z",h4:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z",h5:"M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z",h6:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z",p:"M7.411 18V6.005h3.887c1.474 0 2.429.067 2.881.184.687.185 1.257.57 1.726 1.173.452.603.687 1.374.687 2.329 0 .737-.135 1.357-.403 1.86-.268.502-.603.904-1.021 1.189-.403.284-.821.469-1.257.57-.57.117-1.407.167-2.496.167H9.823V18H7.411zm2.412-9.968v3.401h1.324c.955 0 1.591-.05 1.926-.184.319-.118.57-.319.754-.587.185-.268.268-.57.268-.938 0-.435-.117-.787-.385-1.072a1.607 1.607 0 00-.972-.536c-.284-.05-.87-.084-1.742-.084H9.823z",div:"M6.969 6.005h4.423c1.005 0 1.759.084 2.295.235.703.2 1.306.57 1.809 1.105.503.52.871 1.173 1.14 1.944.267.754.385 1.708.385 2.83 0 .99-.118 1.844-.369 2.547-.302.871-.72 1.592-1.273 2.128-.419.402-.989.72-1.709.955-.536.167-1.24.251-2.144.251H6.969V6.005zm2.43 2.027v7.94h1.808c.67 0 1.156-.033 1.458-.1.402-.1.72-.268.972-.502.268-.235.485-.62.636-1.156.168-.536.251-1.273.251-2.195 0-.938-.083-1.641-.25-2.144-.152-.486-.386-.888-.688-1.156-.285-.285-.67-.469-1.122-.57-.335-.067-.989-.117-1.977-.117H9.398z"};if(!a.hasOwnProperty(t))return null;var i="0 0 20 20";return"p"!==t&&"div"!==t||(i="0 0 24 24"),Object(l.createElement)(no,{width:"24",height:"24",viewBox:i,xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)(ro,{d:a[t]}))}function co(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var so=wp.i18n,go=so.__,uo=so.sprintf,bo=wp.components,po=bo.TextControl,fo=bo.ToolbarGroup,ho=bo.SelectControl,mo=bo.ToggleControl,ko=bo.Button,yo=wp.element,wo=yo.Fragment,vo=yo.Component,To=wp.blockEditor,Oo=To.InspectorControls,Co=To.RichText,So=To.BlockControls,Bo=To.AlignmentToolbar,Do=To.InspectorAdvancedControls,Eo=wp.hooks.applyFilters,jo=wp.data,Ro=jo.withSelect,Mo=jo.withDispatch,zo=wp.compose.compose,xo=/[\s#]/g,Lo=[],Po=function(e){f()(a,e);var t=co(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).getFontSizePlaceholder=e.getFontSizePlaceholder.bind(d()(e)),e.getDeviceType=e.getDeviceType.bind(d()(e)),e.setDeviceType=e.setDeviceType.bind(d()(e)),e.state={selectedDevice:"Desktop",fontSizePlaceholder:"17"},e}return u()(a,[{key:"componentDidMount",value:function(){var e=this.props.clientId.substr(2,9).replace("-","");this.props.attributes.uniqueId?Lo.includes(this.props.attributes.uniqueId)?(this.props.setAttributes({uniqueId:e}),Lo.push(e)):Lo.push(this.props.attributes.uniqueId):(this.props.setAttributes({uniqueId:e}),Lo.push(e));var t=this.getFontSizePlaceholder();t!==this.state.fontSizePlaceholder&&this.setState({fontSizePlaceholder:t}),!this.props.attributes.hasIcon&&this.props.attributes.icon&&this.props.setAttributes({hasIcon:!0})}},{key:"componentDidUpdate",value:function(){var e=this.getFontSizePlaceholder();e!==this.state.fontSizePlaceholder&&this.setState({fontSizePlaceholder:e})}},{key:"getFontSizePlaceholder",value:function(){var e="25";if("em"===this.props.attributes.fontSizeUnit)e="1";else if("%"===this.props.attributes.fontSizeUnit)e="100";else{var t=document.querySelector(".gb-headline-"+this.props.attributes.uniqueId);t&&(e=parseFloat(window.getComputedStyle(t).fontSize))}return e}},{key:"getDeviceType",value:function(){var e=this.props.deviceType?this.props.deviceType:this.state.selectedDevice;return generateBlocksInfo.syncResponsivePreviews||(e=this.state.selectedDevice),e}},{key:"setDeviceType",value:function(e){generateBlocksInfo.syncResponsivePreviews&&this.props.deviceType?(this.props.setDeviceType(e),this.setState({selectedDevice:e})):this.setState({selectedDevice:e})}},{key:"render",value:function(){var e,t=this,a=this.props,i=a.attributes,n=a.setAttributes,c=this.state.fontSizePlaceholder,s=i.uniqueId,g=i.anchor,u=i.className,b=i.content,d=i.element,p=i.alignment,f=i.alignmentTablet,h=i.alignmentMobile,m=i.backgroundColor,k=i.backgroundColorOpacity,y=i.textColor,w=i.linkColor,T=i.linkColorHover,C=i.borderColor,S=i.borderColorOpacity,B=i.highlightTextColor,D=i.fontFamily,E=i.googleFont,j=i.googleFontVariants,R=i.marginTop,M=i.marginRight,z=i.marginBottom,L=i.marginLeft,P=i.icon,A=i.hasIcon,U=i.iconColor,H=i.iconColorOpacity,N=i.iconLocation,F=i.iconLocationTablet,_=i.iconLocationMobile,I=i.iconVerticalAlignment,G=i.iconVerticalAlignmentTablet,q=i.iconVerticalAlignmentMobile,W=i.iconSize,Z=i.iconSizeTablet,K=i.iconSizeMobile,J=i.iconSizeUnit,Y=i.inlineWidth,Q=i.inlineWidthTablet,X=i.inlineWidthMobile,$=i.removeText,ee=i.ariaLabel,te="";j&&(te=":"+j);var ae="";ae=Z||0===Z?Z:W||0===W?W:"";var le={className:v()((e={"gb-headline":!0},o()(e,"gb-headline-".concat(s),!0),o()(e,"gb-headline-text",!A),o()(e,u,void 0!==u),e)),id:g||null};return le=Eo("generateblocks.frontend.htmlAttributes",le,"generateblocks/headline",i),Object(l.createElement)(wo,null,Object(l.createElement)(So,null,Object(l.createElement)(fo,{isCollapsed:!0,icon:Object(l.createElement)(oo,{level:d}),label:go("Change Headline Element","generateblocks"),controls:[{isActive:"h1"===d,icon:Object(l.createElement)(oo,{level:"h1"}),title:uo(// translators: %s: heading level e.g: "1", "2", "3"
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
go("Heading %s","generateblocks"),"6"),onClick:function(){n({element:"h6"})}},{isActive:"p"===d,icon:Object(l.createElement)(oo,{level:"p"}),title:go("Paragraph","generateblocks"),onClick:function(){n({element:"p"})}},{isActive:"div"===d,icon:Object(l.createElement)(oo,{level:"div"}),title:go("Div","generateblocks"),onClick:function(){n({element:"div"})}}]}),"Desktop"===this.getDeviceType()&&!Y&&Object(l.createElement)(Bo,{value:p,onChange:function(e){n({alignment:e})}}),"Tablet"===this.getDeviceType()&&!Q&&Object(l.createElement)(Bo,{value:f,onChange:function(e){n({alignmentTablet:e})}}),"Mobile"===this.getDeviceType()&&!X&&Object(l.createElement)(Bo,{value:h,onChange:function(e){n({alignmentMobile:e})}})),Object(l.createElement)(Oo,null,Object(l.createElement)(x,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),Object(l.createElement)(Ce,r()({},this.props,{id:"headlineElement",state:this.state,showPanel:"Desktop"===this.getDeviceType()}),Object(l.createElement)(ho,{label:go("Element","generateblocks"),value:d,options:[{label:"h1",value:"h1"},{label:"h2",value:"h2"},{label:"h3",value:"h3"},{label:"h4",value:"h4"},{label:"h5",value:"h5"},{label:"h6",value:"h6"},{label:"paragraph",value:"p"},{label:"div",value:"div"}],onChange:function(e){n({element:e}),R||M||z||L||n("p"===e?{marginUnit:"em"}:{marginUnit:generateBlocksDefaults.headline.marginUnit})}}),Eo("generateblocks.editor.controls","","headlineElement",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:go("Typography","generateblocks"),initialOpen:!1,icon:O("typography"),className:"gblocks-panel-label",id:"headlineTypography",state:this.state,showPanel:!$||!1}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(wo,null,Object(l.createElement)(na,r()({},this.props,{showFontFamily:!0,showFontWeight:!0,showTextTransform:!0,showFontSize:!0,showLineHeight:!0,showLetterSpacing:!0,fontSizePlaceholder:c,defaultFontSize:generateBlocksDefaults.headline.fontSize,defaultFontSizeUnit:generateBlocksDefaults.headline.fontSizeUnit,defaultLineHeight:generateBlocksDefaults.headline.lineHeight,defaultLineHeightUnit:generateBlocksDefaults.headline.lineHeightUnit,defaultLetterSpacing:generateBlocksDefaults.headline.letterSpacing}))),"Tablet"===this.getDeviceType()&&Object(l.createElement)(wo,null,Object(l.createElement)(na,r()({},this.props,{device:"Tablet",showFontSize:!0,showLineHeight:!0,showLetterSpacing:!0,defaultFontSize:generateBlocksDefaults.headline.fontSizeTablet,defaultFontSizeUnit:generateBlocksDefaults.headline.fontSizeUnit,defaultLineHeight:generateBlocksDefaults.headline.lineHeightTablet,defaultLineHeightUnit:generateBlocksDefaults.headline.lineHeightUnit,defaultLetterSpacing:generateBlocksDefaults.headline.letterSpacingTablet}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)(wo,null,Object(l.createElement)(na,r()({},this.props,{device:"Mobile",showFontSize:!0,showLineHeight:!0,showLetterSpacing:!0,defaultFontSize:generateBlocksDefaults.headline.fontSizeMobile,defaultFontSizeUnit:generateBlocksDefaults.headline.fontSizeUnit,defaultLineHeight:generateBlocksDefaults.headline.lineHeightMobile,defaultLineHeightUnit:generateBlocksDefaults.headline.lineHeightUnit,defaultLetterSpacing:generateBlocksDefaults.headline.letterSpacingMobile}))),Eo("generateblocks.editor.controls","","headlineTypography",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:go("Spacing","generateblocks"),initialOpen:!1,icon:O("spacing"),className:"gblocks-panel-label",id:"headlineSpacing",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(wo,null,Object(l.createElement)(mo,{label:go("Inline Width","generateblocks"),checked:!!Y,onChange:function(e){n({inlineWidth:e})}}),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:go("Padding","generateblocks"),attrTop:"paddingTop",attrRight:"paddingRight",attrBottom:"paddingBottom",attrLeft:"paddingLeft",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"margin",block:"headline",label:go("Margin","generateblocks"),attrTop:"marginTop",attrRight:"marginRight",attrBottom:"marginBottom",attrLeft:"marginLeft",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:go("Border Size","generateblocks"),attrTop:"borderSizeTop",attrRight:"borderSizeRight",attrBottom:"borderSizeBottom",attrLeft:"borderSizeLeft",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.headline,units:["px"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:go("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeft",attrRight:"borderRadiusTopRight",attrBottom:"borderRadiusBottomRight",attrLeft:"borderRadiusBottomLeft",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:go("T-Left","generateblocks"),labelRight:go("T-Right","generateblocks"),labelBottom:go("B-Right","generateblocks"),labelLeft:go("B-Left","generateblocks"),defaults:generateBlocksDefaults.headline,units:["px","em","%"]}))),"Tablet"===this.getDeviceType()&&Object(l.createElement)(wo,null,Object(l.createElement)(mo,{label:go("Inline Width","generateblocks"),checked:!!Q,onChange:function(e){n({inlineWidthTablet:e})}}),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:go("Padding","generateblocks"),attrTop:"paddingTopTablet",attrRight:"paddingRightTablet",attrBottom:"paddingBottomTablet",attrLeft:"paddingLeftTablet",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"margin",block:"headline",label:go("Margin","generateblocks"),attrTop:"marginTopTablet",attrRight:"marginRightTablet",attrBottom:"marginBottomTablet",attrLeft:"marginLeftTablet",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:go("Border Size","generateblocks"),attrTop:"borderSizeTopTablet",attrRight:"borderSizeRightTablet",attrBottom:"borderSizeBottomTablet",attrLeft:"borderSizeLeftTablet",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.headline,units:["px"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:go("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftTablet",attrRight:"borderRadiusTopRightTablet",attrBottom:"borderRadiusBottomRightTablet",attrLeft:"borderRadiusBottomLeftTablet",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:go("T-Left","generateblocks"),labelRight:go("T-Right","generateblocks"),labelBottom:go("B-Right","generateblocks"),labelLeft:go("B-Left","generateblocks"),defaults:generateBlocksDefaults.headline,units:["px","em","%"]}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)(wo,null,Object(l.createElement)(mo,{label:go("Inline Width","generateblocks"),checked:!!X,onChange:function(e){n({inlineWidthMobile:e})}}),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:go("Padding","generateblocks"),attrTop:"paddingTopMobile",attrRight:"paddingRightMobile",attrBottom:"paddingBottomMobile",attrLeft:"paddingLeftMobile",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"margin",block:"headline",label:go("Margin","generateblocks"),attrTop:"marginTopMobile",attrRight:"marginRightMobile",attrBottom:"marginBottomMobile",attrLeft:"marginLeftMobile",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:go("Border Size","generateblocks"),attrTop:"borderSizeTopMobile",attrRight:"borderSizeRightMobile",attrBottom:"borderSizeBottomMobile",attrLeft:"borderSizeLeftMobile",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.headline,units:["px"]})),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:go("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftMobile",attrRight:"borderRadiusTopRightMobile",attrBottom:"borderRadiusBottomRightMobile",attrLeft:"borderRadiusBottomLeftMobile",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:go("T-Left","generateblocks"),labelRight:go("T-Right","generateblocks"),labelBottom:go("B-Right","generateblocks"),labelLeft:go("B-Left","generateblocks"),defaults:generateBlocksDefaults.headline,units:["px","em","%"]}))),Eo("generateblocks.editor.controls","","headlineSpacing",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:go("Colors","generateblocks"),initialOpen:!1,icon:O("colors"),className:"gblocks-panel-label",id:"headlineColors",state:this.state,showPanel:"Desktop"===this.getDeviceType()||!1}),Object(l.createElement)(At,{label:go("Background Color","generateblocks"),value:m,alpha:!0,valueOpacity:k,attrOpacity:"backgroundColorOpacity",onChange:function(e){return n({backgroundColor:e})},onOpacityChange:function(e){return n({backgroundColorOpacity:e})}}),Object(l.createElement)(At,{label:go("Text Color","generateblocks"),value:y,alpha:!1,onChange:function(e){return n({textColor:e})}}),Object(l.createElement)(At,{label:go("Link Color","generateblocks"),value:w,alpha:!1,onChange:function(e){return n({linkColor:e})}}),Object(l.createElement)(At,{label:go("Link Color Hover","generateblocks"),value:T,alpha:!1,onChange:function(e){return n({linkColorHover:e})}}),Object(l.createElement)(At,{label:go("Border Color","generateblocks"),value:C,alpha:!0,valueOpacity:S,attrOpacity:"borderColorOpacity",onChange:function(e){return n({borderColor:e})},onOpacityChange:function(e){return n({borderColorOpacity:e})}}),P&&Object(l.createElement)(At,{label:go("Icon Color","generateblocks"),value:U,alpha:!0,valueOpacity:H,attrOpacity:"iconColorOpacity",onChange:function(e){return n({iconColor:e})},onOpacityChange:function(e){return n({iconColorOpacity:e})}}),Object(l.createElement)(At,{label:go("Highlight Text","generateblocks"),value:B,alpha:!1,onChange:function(e){return n({highlightTextColor:e})}})),Object(l.createElement)(Ce,r()({},this.props,{title:go("Icon","generateblocks"),initialOpen:!1,icon:O("icons"),className:"gblocks-panel-label",id:"headlineIcon",state:this.state,showPanel:!("Desktop"!==this.getDeviceType()&&!P)}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(br,r()({},this.props,{attrIcon:"icon",attrRemoveText:"removeText",attrAriaLabel:"ariaLabel"})),"Desktop"===this.getDeviceType()&&!!P&&Object(l.createElement)(wo,null,!$&&Object(l.createElement)(wo,null,Object(l.createElement)(ho,{label:go("Icon Location","generateblocks"),value:N,options:[{label:go("Inline","generateblocks"),value:"inline"},{label:go("Above","generateblocks"),value:"above"}],onChange:function(e){n({iconLocation:e,iconPaddingRight:"inline"===e?"0.5":"",iconPaddingBottom:"above"===e?"0.5":""})}}),"inline"===N&&Object(l.createElement)(ho,{label:go("Icon Alignment","generateblocks"),value:I,options:[{label:go("Top","generateblocks"),value:"top"},{label:go("Center","generateblocks"),value:"center"},{label:go("Bottom","generateblocks"),value:"bottom"}],onChange:function(e){n({iconVerticalAlignment:e})}}),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:go("Padding","generateblocks"),attrTop:"iconPaddingTop",attrRight:"iconPaddingRight",attrBottom:"iconPaddingBottom",attrLeft:"iconPaddingLeft",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]}))),Object(l.createElement)(V,{label:go("Icon Size","generateblocks"),value:J,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(po,{type:"number",value:W||0===W?W:"",step:"em"===J?.1:1,onChange:function(e){n({iconSize:e})},onBlur:function(){n({iconSize:parseFloat(W)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(ko,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSize:generateBlocksDefaults.headline.iconSize})}},go("Reset","generateblocks")))),"Tablet"===this.getDeviceType()&&!!P&&Object(l.createElement)(wo,null,!$&&Object(l.createElement)(wo,null,Object(l.createElement)(ho,{label:go("Icon Location","generateblocks"),value:F,options:[{label:go("Inherit","generateblocks"),value:""},{label:go("Inline","generateblocks"),value:"inline"},{label:go("Above","generateblocks"),value:"above"}],onChange:function(e){n({iconLocationTablet:e,iconPaddingRightTablet:"inline"===e?"0.5":"",iconPaddingBottomTablet:"above"===e?"0.5":""})}}),"inline"===F&&Object(l.createElement)(ho,{label:go("Icon Alignment","generateblocks"),value:G,options:[{label:go("Inherit","generateblocks"),value:""},{label:go("Top","generateblocks"),value:"top"},{label:go("Center","generateblocks"),value:"center"},{label:go("Bottom","generateblocks"),value:"bottom"}],onChange:function(e){n({iconVerticalAlignmentTablet:e})}}),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:go("Padding","generateblocks"),attrTop:"iconPaddingTopTablet",attrRight:"iconPaddingRightTablet",attrBottom:"iconPaddingBottomTablet",attrLeft:"iconPaddingLeftTablet",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]}))),Object(l.createElement)(V,{label:go("Icon Size","generateblocks"),value:J,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(po,{type:"number",value:Z||0===Z?Z:"",step:"em"===J?.1:1,placeholder:W||0===W?W:"",onChange:function(e){n({iconSizeTablet:e})},onBlur:function(){n({iconSizeTablet:parseFloat(Z)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(ko,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSizeTablet:generateBlocksDefaults.headline.iconSizeTablet})}},go("Reset","generateblocks")))),"Mobile"===this.getDeviceType()&&!!P&&Object(l.createElement)(wo,null,!$&&Object(l.createElement)(wo,null,Object(l.createElement)(ho,{label:go("Icon Location","generateblocks"),value:_,options:[{label:go("Inherit","generateblocks"),value:""},{label:go("Inline","generateblocks"),value:"inline"},{label:go("Above","generateblocks"),value:"above"}],onChange:function(e){n({iconLocationMobile:e,iconPaddingRightMobile:"inline"===e?"0.5":"",iconPaddingBottomMobile:"above"===e?"0.5":""})}}),"inline"===_&&Object(l.createElement)(ho,{label:go("Icon Alignment","generateblocks"),value:q,options:[{label:go("Inherit","generateblocks"),value:""},{label:go("Top","generateblocks"),value:"top"},{label:go("Center","generateblocks"),value:"center"},{label:go("Bottom","generateblocks"),value:"bottom"}],onChange:function(e){n({iconVerticalAlignmentMobile:e})}}),Object(l.createElement)(Zt,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:go("Padding","generateblocks"),attrTop:"iconPaddingTopMobile",attrRight:"iconPaddingRightMobile",attrBottom:"iconPaddingBottomMobile",attrLeft:"iconPaddingLeftMobile",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]}))),Object(l.createElement)(V,{label:go("Icon Size","generateblocks"),value:J,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(po,{type:"number",value:K||0===K?K:"",step:"em"===J?.1:1,placeholder:ae,onChange:function(e){n({iconSizeMobile:e})},onBlur:function(){n({iconSizeMobile:parseFloat(K)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(ko,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSizeMobile:generateBlocksDefaults.headline.iconSizeMobile})}},go("Reset","generateblocks")))),Eo("generateblocks.editor.controls","","headlineIcon",this.props,this.state)),Object(l.createElement)(Ce,r()({},this.props,{title:go("Documentation","generateblocks"),icon:O("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"headlineDocumentation",state:this.state}),Object(l.createElement)("p",null,go("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/headline/",target:"_blank",rel:"noreferrer noopener"},go("Visit our documentation","generateblocks")),Eo("generateblocks.editor.controls","","headlineDocumentation",this.props,this.state))),Object(l.createElement)(Do,null,Object(l.createElement)(po,{label:go("HTML Anchor"),help:go("Anchors lets you link directly to a section on a page.","generateblocks"),value:g||"",onChange:function(e){e=e.replace(xo,"-"),n({anchor:e})}})),Object(l.createElement)(En,this.props),this.props.deviceType&&Object(l.createElement)(wo,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(zn,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(An,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(Fn,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(Vn,this.props)),D&&E&&Object(l.createElement)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family="+D.replace(/ /g,"+")+te}),Object(l.createElement)(Ot,{tagName:d,htmlAttrs:le},A&&Object(l.createElement)(wo,null,Object(l.createElement)("span",{className:"gb-icon","aria-label":$&&ee?ee:void 0,dangerouslySetInnerHTML:{__html:va(P)}}),!$&&Object(l.createElement)("span",{className:"gb-headline-text"},Object(l.createElement)(Co,{tagName:"span",value:b,onChange:function(e){return n({content:e})},keepPlaceholderOnFocus:!0}))),!A&&!$&&Object(l.createElement)(Co,{tagName:"span",value:b,onChange:function(e){return n({content:e})},keepPlaceholderOnFocus:!0})))}}]),a}(vo),Ao=zo([Mo((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),Ro((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?{deviceType:t()}:{deviceType:null}}))])(Po),Uo=wp.blockEditor.RichText,Ho=wp.hooks.applyFilters,No={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},content:{type:"string",source:"html",selector:".gb-headline-text"},element:{type:"string",default:"h2"},alignment:{type:"string",default:generateBlocksDefaults.headline.alignment},alignmentTablet:{type:"string",default:generateBlocksDefaults.headline.alignmentTablet},alignmentMobile:{type:"string",default:generateBlocksDefaults.headline.alignmentMobile},backgroundColor:{type:"string",default:generateBlocksDefaults.headline.backgroundColor},backgroundColorOpacity:{type:"number",default:generateBlocksDefaults.headline.backgroundColorOpacity},textColor:{type:"string",default:generateBlocksDefaults.headline.textColor},linkColor:{type:"string",default:generateBlocksDefaults.headline.linkColor},linkColorHover:{type:"string",default:generateBlocksDefaults.headline.linkColorHover},borderColor:{type:"string",default:generateBlocksDefaults.headline.borderColor},borderColorOpacity:{type:"number",default:generateBlocksDefaults.headline.borderColorOpacity},highlightTextColor:{type:"string",default:generateBlocksDefaults.headline.highlightTextColor},showAdvancedTypography:{type:"boolean",default:generateBlocksDefaults.headline.showAdvancedTypography},fontFamily:{type:"string",default:generateBlocksDefaults.headline.fontFamily},fontFamilyFallback:{type:"string",default:generateBlocksDefaults.headline.fontFamilyFallback},googleFont:{type:"boolean",default:generateBlocksDefaults.headline.googleFont},googleFontVariants:{type:"string",default:generateBlocksDefaults.headline.googleFontVariants},fontWeight:{type:"string",default:generateBlocksDefaults.headline.fontWeight},fontSize:{type:"number",default:generateBlocksDefaults.headline.fontSize},fontSizeTablet:{type:"number",default:generateBlocksDefaults.headline.fontSizeTablet},fontSizeMobile:{type:"number",default:generateBlocksDefaults.headline.fontSizeMobile},fontSizeUnit:{type:"string",default:generateBlocksDefaults.headline.fontSizeUnit},textTransform:{type:"string",default:""},lineHeight:{type:"number",default:generateBlocksDefaults.headline.lineHeight},lineHeightTablet:{type:"number",default:generateBlocksDefaults.headline.lineHeightTablet},lineHeightMobile:{type:"number",default:generateBlocksDefaults.headline.lineHeightMobile},lineHeightUnit:{type:"string",default:generateBlocksDefaults.headline.lineHeightUnit},letterSpacing:{type:"number",default:generateBlocksDefaults.headline.letterSpacing},letterSpacingTablet:{type:"number",default:generateBlocksDefaults.headline.letterSpacingTablet},letterSpacingMobile:{type:"number",default:generateBlocksDefaults.headline.letterSpacingMobile},marginTop:{type:"string",default:generateBlocksDefaults.headline.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.headline.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.headline.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.headline.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.headline.marginUnit},marginSyncUnits:{type:"boolean",default:!1},marginTopTablet:{type:"string",default:generateBlocksDefaults.headline.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.headline.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.headline.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.headline.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.headline.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.headline.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.headline.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.headline.marginLeftMobile},paddingTop:{type:"string",default:generateBlocksDefaults.headline.paddingTop},paddingRight:{type:"string",default:generateBlocksDefaults.headline.paddingRight},paddingBottom:{type:"string",default:generateBlocksDefaults.headline.paddingBottom},paddingLeft:{type:"string",default:generateBlocksDefaults.headline.paddingLeft},paddingTopTablet:{type:"string",default:generateBlocksDefaults.headline.paddingTopTablet},paddingRightTablet:{type:"string",default:generateBlocksDefaults.headline.paddingRightTablet},paddingBottomTablet:{type:"string",default:generateBlocksDefaults.headline.paddingBottomTablet},paddingLeftTablet:{type:"string",default:generateBlocksDefaults.headline.paddingLeftTablet},paddingTopMobile:{type:"string",default:generateBlocksDefaults.headline.paddingTopMobile},paddingRightMobile:{type:"string",default:generateBlocksDefaults.headline.paddingRightMobile},paddingBottomMobile:{type:"string",default:generateBlocksDefaults.headline.paddingBottomMobile},paddingLeftMobile:{type:"string",default:generateBlocksDefaults.headline.paddingLeftMobile},paddingUnit:{type:"string",default:generateBlocksDefaults.headline.paddingUnit},paddingSyncUnits:{type:"boolean",default:!1},borderSizeTop:{type:"string",default:generateBlocksDefaults.headline.borderSizeTop},borderSizeRight:{type:"string",default:generateBlocksDefaults.headline.borderSizeRight},borderSizeBottom:{type:"string",default:generateBlocksDefaults.headline.borderSizeBottom},borderSizeLeft:{type:"string",default:generateBlocksDefaults.headline.borderSizeLeft},borderSizeTopTablet:{type:"string",default:generateBlocksDefaults.headline.borderSizeTopTablet},borderSizeRightTablet:{type:"string",default:generateBlocksDefaults.headline.borderSizeRightTablet},borderSizeBottomTablet:{type:"string",default:generateBlocksDefaults.headline.borderSizeBottomTablet},borderSizeLeftTablet:{type:"string",default:generateBlocksDefaults.headline.borderSizeLeftTablet},borderSizeTopMobile:{type:"string",default:generateBlocksDefaults.headline.borderSizeTopMobile},borderSizeRightMobile:{type:"string",default:generateBlocksDefaults.headline.borderSizeRightMobile},borderSizeBottomMobile:{type:"string",default:generateBlocksDefaults.headline.borderSizeBottomMobile},borderSizeLeftMobile:{type:"string",default:generateBlocksDefaults.headline.borderSizeLeftMobile},borderRadiusTopRight:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopRight},borderRadiusBottomRight:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomRight},borderRadiusBottomLeft:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomLeft},borderRadiusTopLeft:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopLeft},borderRadiusUnit:{type:"string",default:generateBlocksDefaults.headline.borderRadiusUnit},borderRadiusTopRightTablet:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopRightTablet},borderRadiusBottomRightTablet:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomRightTablet},borderRadiusBottomLeftTablet:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomLeftTablet},borderRadiusTopLeftTablet:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopLeftTablet},borderRadiusTopRightMobile:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopRightMobile},borderRadiusBottomRightMobile:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomRightMobile},borderRadiusBottomLeftMobile:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomLeftMobile},borderRadiusTopLeftMobile:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopLeftMobile},icon:{type:"string",source:"html",selector:".gb-icon"},hasIcon:{type:"boolean",default:!1},iconColor:{type:"string",default:generateBlocksDefaults.headline.iconColor},iconColorOpacity:{type:"number",default:generateBlocksDefaults.headline.iconColorOpacity},customIcon:{type:"boolean",default:!1},iconLocation:{type:"string",default:generateBlocksDefaults.headline.iconLocation},iconLocationTablet:{type:"string",default:generateBlocksDefaults.headline.iconLocationTablet},iconLocationMobile:{type:"string",default:generateBlocksDefaults.headline.iconLocationMobile},iconVerticalAlignment:{type:"string",default:generateBlocksDefaults.headline.iconVerticalAlignment},iconVerticalAlignmentTablet:{type:"string",default:generateBlocksDefaults.headline.iconVerticalAlignmentTablet},iconVerticalAlignmentMobile:{type:"string",default:generateBlocksDefaults.headline.iconVerticalAlignmentMobile},iconPaddingTop:{type:"string",default:generateBlocksDefaults.headline.iconPaddingTop},iconPaddingRight:{type:"string",default:generateBlocksDefaults.headline.iconPaddingRight},iconPaddingBottom:{type:"string",default:generateBlocksDefaults.headline.iconPaddingBottom},iconPaddingLeft:{type:"string",default:generateBlocksDefaults.headline.iconPaddingLeft},iconPaddingTopTablet:{type:"string",default:generateBlocksDefaults.headline.iconPaddingTopTablet},iconPaddingRightTablet:{type:"string",default:generateBlocksDefaults.headline.iconPaddingRightTablet},iconPaddingBottomTablet:{type:"string",default:generateBlocksDefaults.headline.iconPaddingBottomTablet},iconPaddingLeftTablet:{type:"string",default:generateBlocksDefaults.headline.iconPaddingLeftTablet},iconPaddingTopMobile:{type:"string",default:generateBlocksDefaults.headline.iconPaddingTopMobile},iconPaddingRightMobile:{type:"string",default:generateBlocksDefaults.headline.iconPaddingRightMobile},iconPaddingBottomMobile:{type:"string",default:generateBlocksDefaults.headline.iconPaddingBottomMobile},iconPaddingLeftMobile:{type:"string",default:generateBlocksDefaults.headline.iconPaddingLeftMobile},iconPaddingUnit:{type:"string",default:generateBlocksDefaults.headline.iconPaddingUnit},iconPaddingSyncUnits:{type:"boolean",default:!1},iconSize:{type:"number",default:generateBlocksDefaults.headline.iconSize},iconSizeTablet:{type:"number",default:generateBlocksDefaults.headline.iconSizeTablet},iconSizeMobile:{type:"number",default:generateBlocksDefaults.headline.iconSizeMobile},iconSizeUnit:{type:"string",default:generateBlocksDefaults.headline.iconSizeUnit},inlineWidth:{type:"boolean",default:generateBlocksDefaults.headline.inlineWidth},inlineWidthTablet:{type:"boolean",default:generateBlocksDefaults.headline.inlineWidthTablet},inlineWidthMobile:{type:"boolean",default:generateBlocksDefaults.headline.inlineWidthMobile},removeText:{type:"boolean",default:generateBlocksDefaults.headline.removeText},ariaLabel:{type:"string",default:generateBlocksDefaults.headline.ariaLabel},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}},Fo=wp.blocks.createBlock,_o={from:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return Fo("generateblocks/headline",{content:t})}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.content;return Fo("generateblocks/headline",{content:t})}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return Fo("core/paragraph",{content:t})}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.content;return Fo("core/heading",{content:t})}}]};function Io(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function Go(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?Io(Object(a),!0).forEach((function(t){o()(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Io(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var Vo=wp.blockEditor.RichText,qo=wp.hooks.applyFilters,Wo=[{attributes:Go(Go({},No),{},{content:{type:"array",source:"children",selector:"p,h1,h2,h3,h4,h5,h6"}}),supports:{anchor:!1,className:!1,customClassName:!1},migrate:function(e){var t=e.cssClasses?e.cssClasses:e.className,a=e.elementId?e.elementId:e.anchor,l=e.element?e.element:generateBlocksDefaults.headline.element;return e.icon&&e.removeText&&"div"!==l&&(l="div"),Go(Go({},e),{},{className:t,anchor:a,cssClasses:"",elementId:"",element:l})},save:function(e){var t,a=e.attributes,i=a.uniqueId,n=a.elementId,c=a.cssClasses,s=a.element,g=a.content,u=a.icon,b=a.removeText,d=a.ariaLabel,p={id:n||void 0,className:v()((t={"gb-headline":!0},o()(t,"gb-headline-".concat(i),!0),o()(t,"".concat(c),""!==c),t))};return p=qo("generateblocks.frontend.htmlAttributes",p,"generateblocks/headline",a),Object(l.createElement)((function(e){var t=e.condition,a=e.wrap,l=e.children;return t?a(l):l}),{condition:u,wrap:function(e){return Object(l.createElement)("div",{className:v()(o()({"gb-headline-wrapper":!0},"gb-headline-wrapper-".concat(i),!0))},e)}},u&&Object(l.createElement)("span",{className:"gb-icon","aria-label":b&&d?d:void 0,dangerouslySetInnerHTML:{__html:va(u)}}),!b&&Object(l.createElement)(Vo.Content,r()({tagName:s,value:g},p)))}},{attributes:Go(Go({},No),{},{element:{type:"string",default:"p"},content:{type:"array",source:"children",selector:"p,h1,h2,h3,h4,h5,h6"}}),save:function(e){var t,a=e.attributes,i=a.uniqueId,n=a.elementId,c=a.cssClasses,s=a.element,g=a.content,u=a.icon,b=a.removeText,d=a.ariaLabel,p={id:n||void 0,className:v()((t={"gb-headline":!0},o()(t,"gb-headline-".concat(i),!0),o()(t,"".concat(c),""!==c),t))};return p=qo("generateblocks.frontend.htmlAttributes",p,"generateblocks/headline",a),Object(l.createElement)((function(e){var t=e.condition,a=e.wrap,l=e.children;return t?a(l):l}),{condition:u,wrap:function(e){return Object(l.createElement)("div",{className:v()(o()({"gb-headline-wrapper":!0},"gb-headline-wrapper-".concat(i),!0))},e)}},u&&Object(l.createElement)("span",{className:"gb-icon","aria-label":b&&d?d:void 0,dangerouslySetInnerHTML:{__html:va(u)}}),!b&&Object(l.createElement)(Vo.Content,r()({tagName:s,value:g},p)))}}],Zo=wp.i18n.__;(0,wp.blocks.registerBlockType)("generateblocks/headline",{title:Zo("Headline","generateblocks"),description:Zo("Craft text-rich content with advanced typography.","generateblocks"),icon:O("headline"),category:"generateblocks",keywords:[Zo("heading"),Zo("headline"),Zo("title"),Zo("generate")],attributes:No,supports:{className:!1},edit:Ao,save:function(e){var t,a=e.attributes,i=a.uniqueId,r=a.className,n=a.anchor,c=a.element,s=a.content,g=a.icon,u=a.removeText,b=a.ariaLabel,d={className:v()((t={"gb-headline":!0},o()(t,"gb-headline-".concat(i),!0),o()(t,"gb-headline-text",!g),o()(t,r,void 0!==r),t)),id:n||null};return d=Ho("generateblocks.frontend.htmlAttributes",d,"generateblocks/headline",a),Object(l.createElement)(Ot,{tagName:c,htmlAttrs:d},!!g&&Object(l.createElement)("span",{className:"gb-icon","aria-label":u&&b?b:void 0,dangerouslySetInnerHTML:{__html:va(g)}}),!u&&Object(l.createElement)(Uo.Content,{value:s,tagName:g?"span":null,className:g?"gb-headline-text":null}))},transforms:_o,deprecated:Wo});a(36)}]);
|
1 |
+
!function(e){var t={};function a(l){if(t[l])return t[l].exports;var i=t[l]={i:l,l:!1,exports:{}};return e[l].call(i.exports,i,i.exports,a),i.l=!0,i.exports}a.m=e,a.c=t,a.d=function(e,t,l){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:l})},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 l=Object.create(null);if(a.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)a.d(l,i,function(t){return e[t]}.bind(null,i));return l},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=48)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.wp.components}()},function(e,t){!function(){e.exports=this.wp.hooks}()},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){e.exports=function(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}},function(e,t){function a(){return e.exports=a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},a.apply(this,arguments)}e.exports=a},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 l=t[a];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(e,l.key,l)}}e.exports=function(e,t,l){return t&&a(e.prototype,t),l&&a(e,l),e}},function(e,t,a){var l=a(20);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&&l(e,t)}},function(e,t,a){var l=a(18),i=a(13);e.exports=function(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?i(e):t}},function(e,t){!function(){e.exports=this.wp.blockEditor}()},function(e,t,a){var l;!function(){"use strict";var a={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var l=arguments[t];if(l){var r=typeof l;if("string"===r||"number"===r)e.push(l);else if(Array.isArray(l)&&l.length){var n=i.apply(null,l);n&&e.push(n)}else if("object"===r)for(var o in l)a.call(l,o)&&l[o]&&e.push(o)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(l=function(){return i}.apply(t,[]))||(e.exports=l)}()},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){!function(){e.exports=this.wp.blocks}()},function(e,t){!function(){e.exports=this.wp.data}()},function(e,t,a){var l=a(33),i=a(34),r=a(23),n=a(35);e.exports=function(e){return l(e)||i(e)||r(e)||n()}},function(e,t){!function(){e.exports=this.wp.compose}()},function(e,t){function a(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=a=function(e){return typeof e}:e.exports=a=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(t)}e.exports=a},function(e,t,a){var l=a(29),i=a(30),r=a(23),n=a(31);e.exports=function(e,t){return l(e)||i(e,t)||r(e,t)||n()}},function(e,t){function a(t,l){return e.exports=a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(t,l)}e.exports=a},function(e,t){!function(){e.exports=this.wp.richText}()},,function(e,t,a){var l=a(24);e.exports=function(e,t){if(e){if("string"==typeof e)return l(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?l(e,t):void 0}}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,l=new Array(t);a<t;a++)l[a]=e[a];return l}},function(e,t,a){e.exports=function(){"use strict";var e=Object.hasOwnProperty,t=Object.setPrototypeOf,a=Object.isFrozen,l=Object.freeze,i=Object.seal,r=Object.create,n="undefined"!=typeof Reflect&&Reflect,o=n.apply,c=n.construct;o||(o=function(e,t,a){return e.apply(t,a)}),l||(l=function(e){return e}),i||(i=function(e){return e}),c||(c=function(e,t){return new(Function.prototype.bind.apply(e,[null].concat(function(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}(t))))});var s,g=v(Array.prototype.forEach),b=v(Array.prototype.pop),u=v(Array.prototype.push),d=v(String.prototype.toLowerCase),p=v(String.prototype.match),f=v(String.prototype.replace),h=v(String.prototype.indexOf),m=v(String.prototype.trim),k=v(RegExp.prototype.test),y=(s=TypeError,function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return c(s,t)});function v(e){return function(t){for(var a=arguments.length,l=Array(a>1?a-1:0),i=1;i<a;i++)l[i-1]=arguments[i];return o(e,t,l)}}function w(e,l){t&&t(e,null);for(var i=l.length;i--;){var r=l[i];if("string"==typeof r){var n=d(r);n!==r&&(a(l)||(l[i]=n),r=n)}e[r]=!0}return e}function O(t){var a=r(null),l=void 0;for(l in t)o(e,t,[l])&&(a[l]=t[l]);return a}var j=l(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),T=l(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","audio","canvas","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","video","view","vkern"]),C=l(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),_=l(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),S=l(["#text"]),B=l(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns"]),D=l(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),E=l(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),R=l(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),x=i(/\{\{[\s\S]*|[\s\S]*\}\}/gm),M=i(/<%[\s\S]*|[\s\S]*%>/gm),z=i(/^data-[\-\w.\u00B7-\uFFFF]/),L=i(/^aria-[\-\w]+$/),P=i(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),F=i(/^(?:\w+script|data):/i),A=i(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function H(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}var N=function(){return"undefined"==typeof window?null:window},I=function(e,t){if("object"!==(void 0===e?"undefined":U(e))||"function"!=typeof e.createPolicy)return null;var a=null;t.currentScript&&t.currentScript.hasAttribute("data-tt-policy-suffix")&&(a=t.currentScript.getAttribute("data-tt-policy-suffix"));var l="dompurify"+(a?"#"+a:"");try{return e.createPolicy(l,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+l+" could not be created."),null}};return function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:N(),a=function(t){return e(t)};if(a.version="2.2.4",a.removed=[],!t||!t.document||9!==t.document.nodeType)return a.isSupported=!1,a;var i=t.document,r=t.document,n=t.DocumentFragment,o=t.HTMLTemplateElement,c=t.Node,s=t.NodeFilter,v=t.NamedNodeMap,G=void 0===v?t.NamedNodeMap||t.MozNamedAttrMap:v,V=t.Text,q=t.Comment,W=t.DOMParser,Z=t.trustedTypes;if("function"==typeof o){var K=r.createElement("template");K.content&&K.content.ownerDocument&&(r=K.content.ownerDocument)}var J=I(Z,i),Y=J&&Be?J.createHTML(""):"",Q=r,X=Q.implementation,$=Q.createNodeIterator,ee=Q.getElementsByTagName,te=Q.createDocumentFragment,ae=i.importNode,le={};try{le=O(r).documentMode?r.documentMode:{}}catch(e){}var ie={};a.isSupported=X&&void 0!==X.createHTMLDocument&&9!==le;var re=x,ne=M,oe=z,ce=L,se=F,ge=A,be=P,ue=null,de=w({},[].concat(H(j),H(T),H(C),H(_),H(S))),pe=null,fe=w({},[].concat(H(B),H(D),H(E),H(R))),he=null,me=null,ke=!0,ye=!0,ve=!1,we=!1,Oe=!1,je=!1,Te=!1,Ce=!1,_e=!1,Se=!0,Be=!1,De=!0,Ee=!0,Re=!1,xe={},Me=w({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","plaintext","script","style","svg","template","thead","title","video","xmp"]),ze=null,Le=w({},["audio","video","img","source","image","track"]),Pe=null,Fe=w({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),Ae=null,Ue=r.createElement("form"),He=function(e){Ae&&Ae===e||(e&&"object"===(void 0===e?"undefined":U(e))||(e={}),e=O(e),ue="ALLOWED_TAGS"in e?w({},e.ALLOWED_TAGS):de,pe="ALLOWED_ATTR"in e?w({},e.ALLOWED_ATTR):fe,Pe="ADD_URI_SAFE_ATTR"in e?w(O(Fe),e.ADD_URI_SAFE_ATTR):Fe,ze="ADD_DATA_URI_TAGS"in e?w(O(Le),e.ADD_DATA_URI_TAGS):Le,he="FORBID_TAGS"in e?w({},e.FORBID_TAGS):{},me="FORBID_ATTR"in e?w({},e.FORBID_ATTR):{},xe="USE_PROFILES"in e&&e.USE_PROFILES,ke=!1!==e.ALLOW_ARIA_ATTR,ye=!1!==e.ALLOW_DATA_ATTR,ve=e.ALLOW_UNKNOWN_PROTOCOLS||!1,we=e.SAFE_FOR_TEMPLATES||!1,Oe=e.WHOLE_DOCUMENT||!1,Ce=e.RETURN_DOM||!1,_e=e.RETURN_DOM_FRAGMENT||!1,Se=!1!==e.RETURN_DOM_IMPORT,Be=e.RETURN_TRUSTED_TYPE||!1,Te=e.FORCE_BODY||!1,De=!1!==e.SANITIZE_DOM,Ee=!1!==e.KEEP_CONTENT,Re=e.IN_PLACE||!1,be=e.ALLOWED_URI_REGEXP||be,we&&(ye=!1),_e&&(Ce=!0),xe&&(ue=w({},[].concat(H(S))),pe=[],!0===xe.html&&(w(ue,j),w(pe,B)),!0===xe.svg&&(w(ue,T),w(pe,D),w(pe,R)),!0===xe.svgFilters&&(w(ue,C),w(pe,D),w(pe,R)),!0===xe.mathMl&&(w(ue,_),w(pe,E),w(pe,R))),e.ADD_TAGS&&(ue===de&&(ue=O(ue)),w(ue,e.ADD_TAGS)),e.ADD_ATTR&&(pe===fe&&(pe=O(pe)),w(pe,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&w(Pe,e.ADD_URI_SAFE_ATTR),Ee&&(ue["#text"]=!0),Oe&&w(ue,["html","head","body"]),ue.table&&(w(ue,["tbody"]),delete he.tbody),l&&l(e),Ae=e)},Ne=function(e){u(a.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=Y}catch(t){e.remove()}}},Ie=function(e,t){try{u(a.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){u(a.removed,{attribute:null,from:t})}t.removeAttribute(e)},Ge=function(e){var t=void 0,a=void 0;if(Te)e="<remove></remove>"+e;else{var l=p(e,/^[\r\n\t ]+/);a=l&&l[0]}var i=J?J.createHTML(e):e;try{t=(new W).parseFromString(i,"text/html")}catch(e){}if(!t||!t.documentElement){var n=(t=X.createHTMLDocument("")).body;n.parentNode.removeChild(n.parentNode.firstElementChild),n.outerHTML=i}return e&&a&&t.body.insertBefore(r.createTextNode(a),t.body.childNodes[0]||null),ee.call(t,Oe?"html":"body")[0]},Ve=function(e){return $.call(e.ownerDocument||e,e,s.SHOW_ELEMENT|s.SHOW_COMMENT|s.SHOW_TEXT,(function(){return s.FILTER_ACCEPT}),!1)},qe=function(e){return!(e instanceof V||e instanceof q||"string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof G&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI)},We=function(e){return"object"===(void 0===c?"undefined":U(c))?e instanceof c:e&&"object"===(void 0===e?"undefined":U(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Ze=function(e,t,l){ie[e]&&g(ie[e],(function(e){e.call(a,t,l,Ae)}))},Ke=function(e){var t=void 0;if(Ze("beforeSanitizeElements",e,null),qe(e))return Ne(e),!0;if(p(e.nodeName,/[\u0080-\uFFFF]/))return Ne(e),!0;var l=d(e.nodeName);if(Ze("uponSanitizeElement",e,{tagName:l,allowedTags:ue}),!We(e.firstElementChild)&&(!We(e.content)||!We(e.content.firstElementChild))&&k(/<[/\w]/g,e.innerHTML)&&k(/<[/\w]/g,e.textContent))return Ne(e),!0;if(!ue[l]||he[l]){if(Ee&&!Me[l]&&"function"==typeof e.insertAdjacentHTML)try{var i=e.innerHTML;e.insertAdjacentHTML("AfterEnd",J?J.createHTML(i):i)}catch(e){}return Ne(e),!0}return"noscript"!==l&&"noembed"!==l||!k(/<\/no(script|embed)/i,e.innerHTML)?"math"===l&&We(e.firstElementChild)&&e.querySelectorAll(":not("+_.join("):not(")+")").length>0||"svg"===l&&e.querySelectorAll("p, br, table, form, noscript").length>0?(Ne(e),!0):(we&&3===e.nodeType&&(t=e.textContent,t=f(t,re," "),t=f(t,ne," "),e.textContent!==t&&(u(a.removed,{element:e.cloneNode()}),e.textContent=t)),Ze("afterSanitizeElements",e,null),!1):(Ne(e),!0)},Je=function(e,t,a){if(De&&("id"===t||"name"===t)&&(a in r||a in Ue))return!1;if(ye&&k(oe,t));else if(ke&&k(ce,t));else{if(!pe[t]||me[t])return!1;if(Pe[t]);else if(k(be,f(a,ge,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==h(a,"data:")||!ze[e])if(ve&&!k(se,f(a,ge,"")));else if(a)return!1}return!0},Ye=function(e){var t=void 0,l=void 0,i=void 0,r=void 0;Ze("beforeSanitizeAttributes",e,null);var n=e.attributes;if(n){var o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:pe};for(r=n.length;r--;){var c=t=n[r],s=c.name,g=c.namespaceURI;if(l=m(t.value),i=d(s),o.attrName=i,o.attrValue=l,o.keepAttr=!0,o.forceKeepAttr=void 0,Ze("uponSanitizeAttribute",e,o),l=o.attrValue,!o.forceKeepAttr&&(Ie(s,e),o.keepAttr))if(k(/\/>/i,l))Ie(s,e);else{we&&(l=f(l,re," "),l=f(l,ne," "));var u=e.nodeName.toLowerCase();if(Je(u,i,l))try{g?e.setAttributeNS(g,s,l):e.setAttribute(s,l),b(a.removed)}catch(e){}}}Ze("afterSanitizeAttributes",e,null)}},Qe=function e(t){var a=void 0,l=Ve(t);for(Ze("beforeSanitizeShadowDOM",t,null);a=l.nextNode();)Ze("uponSanitizeShadowNode",a,null),Ke(a)||(a.content instanceof n&&e(a.content),Ye(a));Ze("afterSanitizeShadowDOM",t,null)};return a.sanitize=function(e,l){var r=void 0,o=void 0,s=void 0,g=void 0,b=void 0;if(e||(e="\x3c!--\x3e"),"string"!=typeof e&&!We(e)){if("function"!=typeof e.toString)throw y("toString is not a function");if("string"!=typeof(e=e.toString()))throw y("dirty is not a string, aborting")}if(!a.isSupported){if("object"===U(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if(We(e))return t.toStaticHTML(e.outerHTML)}return e}if(je||He(l),a.removed=[],"string"==typeof e&&(Re=!1),Re);else if(e instanceof c)1===(o=(r=Ge("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?r=o:r.appendChild(o);else{if(!Ce&&!we&&!Oe&&-1===e.indexOf("<"))return J&&Be?J.createHTML(e):e;if(!(r=Ge(e)))return Ce?null:Y}r&&Te&&Ne(r.firstChild);for(var u=Ve(Re?e:r);s=u.nextNode();)3===s.nodeType&&s===g||Ke(s)||(s.content instanceof n&&Qe(s.content),Ye(s),g=s);if(g=null,Re)return e;if(Ce){if(_e)for(b=te.call(r.ownerDocument);r.firstChild;)b.appendChild(r.firstChild);else b=r;return Se&&(b=ae.call(i,b,!0)),b}var d=Oe?r.outerHTML:r.innerHTML;return we&&(d=f(d,re," "),d=f(d,ne," ")),J&&Be?J.createHTML(d):d},a.setConfig=function(e){He(e),je=!0},a.clearConfig=function(){Ae=null,je=!1},a.isValidAttribute=function(e,t,a){Ae||He({});var l=d(e),i=d(t);return Je(l,i,a)},a.addHook=function(e,t){"function"==typeof t&&(ie[e]=ie[e]||[],u(ie[e],t))},a.removeHook=function(e){ie[e]&&b(ie[e])},a.removeHooks=function(e){ie[e]&&(ie[e]=[])},a.removeAllHooks=function(){ie={}},a}()}()},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var a=[],l=!0,i=!1,r=void 0;try{for(var n,o=e[Symbol.iterator]();!(l=(n=o.next()).done)&&(a.push(n.value),!t||a.length!==t);l=!0);}catch(e){i=!0,r=e}finally{try{l||null==o.return||o.return()}finally{if(i)throw r}}return a}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,a){},function(e,t,a){var l=a(24);e.exports=function(e){if(Array.isArray(e))return l(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},,,function(e,t,a){"use strict";a.r(t);var l=a(0),i=(a(26),a(6)),r=a.n(i),n=a(5),o=a.n(n),c=a(7),s=a.n(c),g=a(8),b=a.n(g),u=a(13),d=a.n(u),p=a(9),f=a.n(p),h=a(10),m=a.n(h),k=a(4),y=a.n(k),v=a(12),w=a.n(v),O=wp.element.createElement;function j(e){return"tabs-desktop"===e?O("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none"},O("path",{d:"M18.95 4H4.55C3.55589 4 2.75 4.76751 2.75 5.71429V14.2857C2.75 15.2325 3.55589 16 4.55 16H18.95C19.9441 16 20.75 15.2325 20.75 14.2857V5.71429C20.75 4.76751 19.9441 4 18.95 4Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),O("path",{d:"M1.75 18C1.19772 18 0.75 18.4477 0.75 19C0.75 19.5523 1.19772 20 1.75 20H21.75C22.3023 20 22.75 19.5523 22.75 19C22.75 18.4477 22.3023 18 21.75 18H1.75ZM9 18.8C8.86193 18.8 8.75 18.9119 8.75 19.05C8.75 19.1881 8.86193 19.3 9 19.3H14.5C14.6381 19.3 14.75 19.1881 14.75 19.05C14.75 18.9119 14.6381 18.8 14.5 18.8H9Z",stroke:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})):"tabs-tablet"===e?O("svg",{width:24,height:24,viewBox:"0 0 24 24"},O("path",{d:"M16.6429 4H7.35714C6.33147 4 5.5 4.71634 5.5 5.6V18.4C5.5 19.2837 6.33147 20 7.35714 20H16.6429C17.6685 20 18.5 19.2837 18.5 18.4V5.6C18.5 4.71634 17.6685 4 16.6429 4Z"}),O("path",{d:"M12 17.5H12.01"})):"tabs-mobile"===e?O("svg",{width:24,height:24,viewBox:"0 0 24 24"},O("path",{d:"M15.5714 4H8.42857C7.63959 4 7 4.71634 7 5.6V18.4C7 19.2837 7.63959 20 8.42857 20H15.5714C16.3604 20 17 19.2837 17 18.4V5.6C17 4.71634 16.3604 4 15.5714 4Z"}),O("path",{d:"M12 17.5H12.01"})):"sync"===e?O("svg",{width:24,height:24,viewBox:"0 0 24 24"},O("path",{d:"m7.34133533 6.23855964v-1.98499625c-2.17404351.03150788-4.03300825 1.38634659-4.85221305 3.27681921-.31507877.72468117-.44111028 1.51237809-.4096024 2.33158289.06301575 1.13428361.47261815 2.20555141 1.16579145 3.05626411.37809452.4411102.28357089 1.1027757-.18904726 1.4493623-.44111028.3150788-1.07126782.2205551-1.41785447-.1890473-.85071268-1.0397599-1.38634658-2.3315829-1.54388597-3.7179294-.12603151-1.00825211-.03150788-2.01650417.25206302-2.9302326.88222055-3.02475619 3.6864216-5.26181546 6.99474868-5.29332334v-1.98499624c0-.09452363.12603151-.15753939.22055514-.09452363l4.09602403 2.99324831c.0630157.06301575.0630157.15753938 0 .18904726l-4.09602403 2.99324831c-.09452363.06301575-.22055514 0-.22055514-.09452363zm.22055514 13.17029256c.09452363.0630158.22055514 0 .22055514-.0945236v-1.9849963c3.30832709-.0315078 6.11252809-2.2685671 6.99474869-5.2933233.252063-.9137284.3780945-1.8904726.252063-2.93023256-.1575394-1.38634658-.7246812-2.67816954-1.543886-3.71792948-.3465866-.44111028-.9767441-.53563391-1.4178544-.18904726-.4726182.34658665-.5671418 1.00825206-.1890473 1.44936234.6931733.85071268 1.1027757 1.89047262 1.1657915 3.05626407.0315078.81920479-.1260315 1.63840959-.4096024 2.33158289-.787697 1.8904726-2.6466617 3.2453113-4.85221309 3.2768192v-1.9849962c0-.0945237-.12603151-.1575394-.22055514-.0945237l-4.096024 2.9932483c-.06301576.0630158-.06301576.1575394 0 .1890473z",transform:"translate(4 2)"})):"headline"===e?O("svg",{width:24,height:24,viewBox:"0 0 20 20",style:{padding:"1px"}},O("path",{d:"M12.5 4v5.2h-5V4H5v13h2.5v-5.2h5V17H15V4",fill:"#1e72bd"})):"grid"===e?O("svg",{width:20,height:20,viewBox:"0 0 20 20",style:{padding:"1px"}},O("path",{d:"M20 .6c0-.3-.2-.6-.5-.6H.5C.2 0 0 .3 0 .6v4.6c0 .3.2.6.5.6h19c.3 0 .5-.3.5-.6V.6zM6.7 7.7c0-.3-.2-.6-.5-.6H.5c-.3 0-.5.3-.5.6v4.6c0 .3.2.6.5.6h5.6c.3 0 .5-.3.5-.6l.1-4.6zM19.9 7.7c0-.3-.2-.6-.6-.6H8.6c-.4 0-.6.3-.6.6v4.5c0 .3.2.6.6.6h10.8c.3 0 .6-.3.6-.6l-.1-4.5z",fill:"#1d72ba"}),O("path",{d:"M20 14.8c0-.3-.2-.6-.5-.6h-5.6c-.3 0-.5.2-.5.6v4.6c0 .3.2.6.5.6h5.6c.3 0 .5-.2.5-.6v-4.6zM12 14.8c0-.3-.2-.5-.5-.5H.5c-.3 0-.5.2-.5.5v4.6c0 .4.2.6.5.6h11c.3 0 .5-.2.5-.5v-4.7z",fill:"#1d72ba"})):"container"===e?O("svg",{width:20,height:20,viewBox:"0 0 20 20",style:{padding:"1px"}},O("path",{d:"M2.8 3.4c0-.4.3-.7.7-.7h1.2V0H3.4C1.5 0 0 1.5 0 3.4v1.2h2.8V3.4zM0 7.4h2.8v5.3H0zM17.2 7.4H20v5.3h-2.8zM17.2 16.6c0 .4-.3.7-.7.7h-1.2V20h1.2c1.9 0 3.4-1.5 3.4-3.4v-1.2h-2.8v1.2h.1zM7.4 0h5.3v2.8H7.4zM3.4 17.2c-.4 0-.7-.3-.7-.7v-1.2H0v1.2c0 2 1.5 3.5 3.4 3.5h1.2v-2.8H3.4zM7.4 17.2h5.3V20H7.4zM16.6 2.8c.4 0 .7.3.7.7v1.2H20V3.4C20 1.5 18.5 0 16.6 0h-1.2v2.8h1.2z",fill:"#1e72bd"})):"button"===e?O("svg",{width:20,height:20,viewBox:"0 0 20 20",style:{padding:"1px"}},O("path",{d:"M19.2 0H.8C.4 0 0 .4 0 .8v6.4c0 .4.4.8.8.8h18.4c.4 0 .8-.4.8-.8V.8c0-.4-.4-.8-.8-.8zM18.4 12H1.6c-.9 0-1.6.7-1.6 1.6v4.8c0 .9.7 1.6 1.6 1.6h16.8c.9 0 1.6-.7 1.6-1.6v-4.8c0-.9-.7-1.6-1.6-1.6zm.4 6.4c0 .2-.2.4-.4.4H1.6c-.2 0-.4-.2-.4-.4v-4.8c0-.2.2-.4.4-.4h16.8c.2 0 .4.2.4.4v4.8z",fill:"#1e72bd"})):"paragraph"===e?O("svg",{width:20,height:20,viewBox:"0 0 20 20"},O("path",{d:"M15 2H7.54c-.83 0-1.59.2-2.28.6-.7.41-1.25.96-1.65 1.65C3.2 4.94 3 5.7 3 6.52s.2 1.58.61 2.27c.4.69.95 1.24 1.65 1.64.69.41 1.45.61 2.28.61h.43V17c0 .27.1.51.29.71.2.19.44.29.71.29.28 0 .51-.1.71-.29.2-.2.3-.44.3-.71V5c0-.27.09-.51.29-.71.2-.19.44-.29.71-.29s.51.1.71.29c.19.2.29.44.29.71v12c0 .27.1.51.3.71.2.19.43.29.71.29.27 0 .51-.1.71-.29.19-.2.29-.44.29-.71V4H15c.27 0 .5-.1.7-.3.2-.19.3-.43.3-.7s-.1-.51-.3-.71A.984.984 0 0 0 15 2z"})):"spacing"===e?O("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},O("path",{d:"M106.283,6.217c8.289,8.29 8.289,91.776 0,100.066c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.29,-8.289 91.776,-8.289 100.066,0Zm-10.007,10.007c6.632,6.632 6.632,73.42 0,80.052c-6.632,6.632 -73.42,6.632 -80.052,0c-6.632,-6.632 -6.632,-73.42 0,-80.052c6.632,-6.632 73.42,-6.632 80.052,0Z"}),O("path",{d:"M40.452,77.705c7.802,1.393 23.794,1.393 31.596,0l13.635,13.635c-12.215,3.213 -46.652,3.213 -58.866,0l13.635,-13.635Zm50.888,-50.888c3.213,12.215 3.213,46.653 0,58.866l-13.635,-13.635c1.393,-7.801 1.393,-23.794 0,-31.596l13.635,-13.635Zm-70.18,0l13.635,13.635c-1.393,7.802 -1.393,23.794 0,31.596l-13.635,13.635c-3.213,-12.213 -3.213,-46.651 0,-58.866Zm5.657,-5.657c12.214,-3.213 46.652,-3.213 58.866,0l-13.635,13.635c-7.801,-1.393 -23.795,-1.393 -31.596,0l-13.635,-13.635Z"})):"advanced"===e?O("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},O("path",{d:"M106.283,6.217c8.289,8.29 8.289,91.776 0,100.066c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.29,-8.289 91.776,-8.289 100.066,0Zm-10.007,37.215c6.632,2.124 6.632,23.512 0,25.636c-6.632,2.124 -73.42,2.124 -80.052,0c-6.632,-2.124 -6.632,-23.512 0,-25.636c6.632,-2.124 73.42,-2.124 80.052,0Z"}),O("path",{d:"M48.61,51.916c2.243,0.718 2.243,7.95 0,8.668c-2.242,0.718 -24.823,0.718 -27.065,0c-2.243,-0.718 -2.243,-7.95 0,-8.668c2.242,-0.718 24.823,-0.718 27.065,0Z"}),O("path",{d:"M90.955,51.916c2.243,0.718 2.243,7.95 0,8.668c-2.242,0.718 -24.823,0.718 -27.065,0c-2.243,-0.718 -2.243,-7.95 0,-8.668c2.242,-0.718 24.823,-0.718 27.065,0Z"})):"backgrounds"===e?O("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},O("path",{d:"M1.491,87.777l37.79,-37.79l31.352,31.352c2.412,2.171 5.656,0 5.656,0l17.248,-17.247l13.186,13.186l4.796,4.797c-0.971,12.199 -2.726,21.685 -5.249,24.208c-8.29,8.289 -91.776,8.289 -100.066,0c-2.113,-2.113 -3.687,-9.113 -4.713,-18.506Z"}),O("path",{d:"M0.631,77.323c-1.742,-27.728 0.125,-65.658 5.573,-71.106c8.29,-8.289 91.776,-8.289 100.066,0c5.07,5.07 7.039,38.265 5.89,65.185l-15.795,-15.795c-2.412,-2.172 -5.657,0 -5.657,0l-17.247,17.246l-31.351,-31.351c-0.731,-0.658 -1.036,-1 -2.619,-1.166c-0.263,0 -0.477,-0.075 -1.245,0.131c-0.912,0.244 -1.793,1.035 -1.793,1.035l-35.822,35.821Zm76.434,-59.584c7.115,0 12.891,5.776 12.891,12.89c0,7.114 -5.776,12.89 -12.891,12.89c-7.114,0 -12.89,-5.776 -12.89,-12.89c0,-7.114 5.776,-12.89 12.89,-12.89Z"})):"colors"===e?O("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},O("path",{d:"M106.283,6.217c8.289,8.29 8.289,91.776 0,100.066c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.29,-8.289 91.776,-8.289 100.066,0Zm-50.033,12.818c-20.551,0 -37.215,16.664 -37.215,37.215c0,20.551 16.664,37.215 37.215,37.215c3.432,0 6.202,-2.77 6.202,-6.203c0,-1.612 -0.62,-3.059 -1.612,-4.176c-0.951,-1.075 -1.571,-2.522 -1.571,-4.094c0,-3.432 2.77,-6.202 6.202,-6.202l7.319,0c11.413,0 20.675,-9.262 20.675,-20.675c0,-18.277 -16.664,-33.08 -37.215,-33.08Zm-22.742,37.215c-3.433,0 -6.203,-2.77 -6.203,-6.202c0,-3.433 2.77,-6.203 6.203,-6.203c3.432,0 6.202,2.77 6.202,6.203c0,3.432 -2.77,6.202 -6.202,6.202Zm45.484,0c-3.432,0 -6.202,-2.77 -6.202,-6.202c0,-3.433 2.77,-6.203 6.202,-6.203c3.433,0 6.203,2.77 6.203,6.203c0,3.432 -2.77,6.202 -6.203,6.202Zm-33.079,-16.54c-3.433,0 -6.203,-2.77 -6.203,-6.202c0,-3.433 2.77,-6.203 6.203,-6.203c3.432,0 6.202,2.77 6.202,6.203c0,3.432 -2.77,6.202 -6.202,6.202Zm20.674,0c-3.432,0 -6.202,-2.77 -6.202,-6.202c0,-3.433 2.77,-6.203 6.202,-6.203c3.433,0 6.203,2.77 6.203,6.203c0,3.432 -2.77,6.202 -6.203,6.202Z"})):"gradients"===e?O("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},O("path",{d:"M112.426,48.746c0.503,25.204 -1.545,52.939 -6.143,57.537c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.289,-8.288 91.748,-8.289 100.061,-0.004c0,0 0.005,0.004 0.005,0.004c3.691,3.692 5.739,22.295 6.143,42.529Zm-16.154,-32.526c-6.656,-6.628 -73.418,-6.627 -80.048,0.004c-6.631,6.63 -6.632,73.392 -0.004,80.048l80.052,-80.052Z"})):"icons"===e?O("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},O("path",{d:"M106.283,6.217c8.289,8.29 8.289,91.776 0,100.066c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.29,-8.289 91.776,-8.289 100.066,0Zm-10.007,10.007c6.632,6.632 6.632,73.42 0,80.052c-6.632,6.632 -73.42,6.632 -80.052,0c-6.632,-6.632 -6.632,-73.42 0,-80.052c6.632,-6.632 73.42,-6.632 80.052,0Z"}),O("path",{d:"M89.605,22.895c5.527,5.526 5.527,61.184 0,66.71c-5.526,5.527 -61.184,5.527 -66.71,0c-5.527,-5.526 -5.527,-61.184 0,-66.71c5.526,-5.527 61.184,-5.527 66.71,0Zm-21.066,62.31l0,-2.731c-0.648,-0.074 -1.272,-0.199 -1.87,-0.374c-0.599,-0.174 -1.148,-0.374 -1.646,-0.598c-0.699,-0.299 -1.235,-0.755 -1.609,-1.366c-0.374,-0.611 -0.561,-1.353 -0.561,-2.226l0,-29.703l-0.561,-0.561l-18.331,0.972l0,2.731c0.748,0.075 1.577,0.25 2.488,0.524c0.91,0.274 1.589,0.561 2.038,0.86c0.599,0.399 1.098,0.929 1.497,1.59c0.399,0.661 0.598,1.428 0.598,2.301l0,21.773c0,0.923 -0.162,1.665 -0.486,2.226c-0.324,0.561 -0.885,0.991 -1.683,1.29c-0.449,0.175 -0.986,0.3 -1.609,0.374c-0.624,0.075 -1.26,0.138 -1.908,0.187l0,2.731l23.643,0Zm-12.978,-59.459c4.76,0 8.625,3.864 8.625,8.625c0,4.76 -3.865,8.625 -8.625,8.625c-4.76,0 -8.625,-3.865 -8.625,-8.625c0,-4.761 3.865,-8.625 8.625,-8.625Z"})):"typography"===e?O("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},O("path",{d:"M106.283,6.217c8.289,8.29 8.289,91.776 0,100.066c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.29,-8.289 91.776,-8.289 100.066,0Zm-8.783,78.583l0,-2.817c-0.661,-0.026 -1.481,-0.165 -2.46,-0.417c-0.979,-0.251 -1.773,-0.562 -2.381,-0.932c-0.9,-0.609 -1.601,-1.23 -2.103,-1.865c-0.503,-0.635 -0.953,-1.468 -1.349,-2.5l-18.769,-48.569l-3.175,0c-2.672,6.878 -5.714,14.721 -9.126,23.53c-3.266,8.43 -6.265,16.06 -8.998,22.891l-11.672,-28.684l-2.304,0c-1.939,4.742 -4.148,10.149 -6.625,16.222c-2.477,6.072 -4.743,11.543 -6.798,16.412c-0.403,0.949 -0.816,1.692 -1.238,2.23c-0.423,0.538 -1.018,1.053 -1.786,1.545c-0.48,0.292 -1.095,0.524 -1.844,0.698c-0.749,0.173 -1.373,0.278 -1.872,0.314l0,1.942l15.382,0l0,-1.942c-1.518,-0.073 -2.881,-0.31 -4.091,-0.711c-1.209,-0.401 -1.814,-0.966 -1.814,-1.696c0,-0.31 0.048,-0.711 0.144,-1.204c0.096,-0.492 0.268,-1.13 0.518,-1.914c0.269,-0.803 0.571,-1.678 0.907,-2.626c0.336,-0.948 0.773,-2.061 1.311,-3.338l14.316,0l3.399,8.699c0.012,0.03 0.024,0.06 0.036,0.092c-0.161,0.119 -0.329,0.237 -0.503,0.355c-0.661,0.423 -1.508,0.76 -2.539,1.012c-1.032,0.251 -1.892,0.403 -2.58,0.456l0,2.817l21.19,0l0,-2.817c-2.09,-0.106 -3.968,-0.45 -5.635,-1.032c-1.666,-0.582 -2.499,-1.402 -2.499,-2.46c0,-0.45 0.066,-1.032 0.198,-1.746c0.132,-0.714 0.37,-1.64 0.714,-2.777c0.371,-1.164 0.787,-2.434 1.25,-3.81c0.463,-1.375 1.065,-2.989 1.806,-4.841l19.721,0l4.682,12.619c0.106,0.264 0.186,0.568 0.238,0.912c0.053,0.344 0.08,0.635 0.08,0.873c0,0.582 -0.681,1.072 -2.044,1.468c-1.362,0.397 -3.075,0.662 -5.138,0.794l0,2.817l23.451,0Zm-56.864,-15.865l-6.193,-15.045l-6.078,15.045l12.271,0Zm34.167,-7.15l-8.532,-21.824l-8.373,21.824l16.905,0Z"})):"addContainer"===e?O("svg",{width:20,height:20,viewBox:"0 0 64 64",fillRule:"evenodd"},O("path",{d:"M41.454,57.126l0,6.409c-6.088,0.286 -12.82,0.286 -18.908,0l0,-6.409c5.957,0.366 12.951,0.366 18.908,0Zm-33.93,-8.899c0.458,3.226 1.086,5.568 1.883,6.366c0.798,0.797 3.14,1.425 6.366,1.883l0,6.592c-6.084,-0.578 -10.706,-1.519 -12.015,-2.826c-1.307,-1.309 -2.248,-5.931 -2.826,-12.015l6.592,0Zm55.544,0c-0.578,6.084 -1.519,10.706 -2.826,12.015c-1.309,1.307 -5.931,2.248 -12.015,2.826l0,-6.592c3.226,-0.458 5.568,-1.086 6.366,-1.883c0.797,-0.798 1.425,-3.14 1.883,-6.366l6.592,0Zm0.467,-25.681c0.286,6.088 0.286,12.82 0,18.908l-6.409,0c0.366,-5.957 0.366,-12.951 0,-18.908l6.409,0Zm-56.661,0c-0.366,5.957 -0.366,12.951 0,18.908l-6.409,0c-0.286,-6.088 -0.286,-12.82 0,-18.908l6.409,0Zm41.353,-21.614c6.084,0.578 10.706,1.519 12.015,2.826c1.307,1.309 2.248,5.931 2.826,12.015l-6.592,0c-0.458,-3.226 -1.086,-5.568 -1.883,-6.366c-0.798,-0.797 -3.14,-1.425 -6.366,-1.883l0,-6.592Zm-32.454,0l0,6.592c-3.226,0.458 -5.568,1.086 -6.366,1.883c-0.797,0.798 -1.425,3.14 -1.883,6.366l-6.592,0c0.578,-6.084 1.519,-10.706 2.826,-12.015c1.309,-1.307 5.931,-2.248 12.015,-2.826Zm6.773,-0.467c6.088,-0.286 12.82,-0.286 18.908,0l0,6.409c-5.957,-0.366 -12.951,-0.366 -18.908,0l0,-6.409Z"}),O("path",{d:"M18.03,29.037l11.007,0l0,-11.007l6.773,0l0,11.007l11.007,0l0,6.773l-11.007,0l0,11.007l-6.773,0l0,-11.007l-11.007,0l0,-6.773Z"})):"gradient"===e?O("svg",{width:24,height:24,viewBox:"0 0 24 24",fillRule:"evenodd"},O("path",{d:"M17.66 8L12 2.35L6.34 8A8.02 8.02 0 0 0 4 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0 0 11.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8zM6 14c.01-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 17.99 12 18 14H6z"})):"documentation"===e?O("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},O("path",{d:"M106.755 6.245c8.327 8.326 8.327 92.184 0 100.51-8.326 8.327-92.184 8.327-100.51 0-8.327-8.326-8.327-92.184 0-100.51 8.326-8.327 92.184-8.327 100.51 0zm-92.661 93.896C9.279 84 9.781 23.714 15.834 17.661c2.491-2.491 19.588-4.132 26.354-4.712 4.748-.408 10.115.671 14.243 1.23 4.128-.559 9.495-1.638 14.243-1.23 6.766.58 23.863 2.221 26.354 4.712 6.053 6.053 6.791 66.339 1.976 82.48-4.729-1.977-19.708-3.436-26.784-3.853-5.234-.308-11.129.739-15.671 1.354-4.543-.615-10.437-1.662-15.672-1.354-7.075.417-22.054 1.876-26.783 3.853z"}),O("path",{d:"M50.188 32.738c2.252.536 2.252 5.927 0 6.463-2.252.535-24.934.535-27.186 0-2.252-.536-2.252-5.927 0-6.463 2.252-.535 24.934-.535 27.186 0zM50.277 46.846c2.252.535 2.252 5.927 0 6.462-2.252.535-24.934.535-27.186 0-2.252-.535-2.252-5.927 0-6.462 2.252-.535 24.934-.535 27.186 0zM50.277 60.037c2.252.535 2.252 5.927 0 6.462-2.252.535-24.934.535-27.186 0-2.252-.535-2.252-5.927 0-6.462 2.252-.535 24.934-.535 27.186 0zM50.277 73.799c2.252.536 2.252 5.927 0 6.463-2.252.535-24.934.535-27.186 0-2.252-.536-2.252-5.927 0-6.463 2.252-.535 24.934-.535 27.186 0z"}),O("path",{d:"M89.909 32.738c2.252.536 2.252 5.927 0 6.463-2.252.535-24.934.535-27.186 0-2.252-.536-2.252-5.927 0-6.463 2.252-.535 24.934-.535 27.186 0zM89.998 46.846c2.252.535 2.252 5.927 0 6.462-2.252.535-24.934.535-27.186 0-2.252-.535-2.252-5.927 0-6.462 2.252-.535 24.934-.535 27.186 0zM89.998 60.037c2.252.535 2.252 5.927 0 6.462-2.252.535-24.934.535-27.186 0-2.252-.535-2.252-5.927 0-6.462 2.252-.535 24.934-.535 27.186 0z"})):"layout"===e?O("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},O("path",{d:"M106.719 6.238c8.362 8.362 8.362 92.208 0 100.57-8.362 8.287-92.208 8.287-100.495 0-8.362-8.362-8.362-92.208 0-100.57 8.287-8.286 92.133-8.286 100.495 0zm-9.417 9.417c6.78 6.78 6.78 74.957 0 81.737-6.78 6.78-74.956 6.78-81.661 0-6.78-6.78-6.78-74.957 0-81.737 6.705-6.78 74.881-6.78 81.661 0z"}),O("path",{d:"M93.988 48.877c.602 17.477-.754 37.893-3.993 41.132-3.164 3.164-22.75 4.52-40.002 4.068v-45.2h43.995zm-75.108 0h23.58v44.899c-9.718-.603-17.553-1.808-19.512-3.767-3.24-3.24-4.595-23.655-4.068-41.132zm.377-7.533c.678-9.19 1.883-16.498 3.691-18.306 5.575-5.575 61.472-5.575 67.047 0 1.808 1.808 3.013 9.115 3.691 18.306h-74.43z"})):"shapes"===e?O("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},O("path",{d:"M106.756,6.244C115.081,14.571 115.081,98.429 106.756,106.756C98.429,115.081 14.571,115.081 6.244,106.756C-2.081,98.429 -2.081,14.571 6.244,6.244C14.571,-2.081 98.429,-2.081 106.756,6.244ZM67.875,88.052C67.875,86.977 67.003,86.105 65.928,86.105L47.072,86.105C45.997,86.105 45.125,86.977 45.125,88.052L45.125,91.948C45.125,93.023 45.997,93.896 47.072,93.896L65.928,93.896C67.003,93.896 67.875,93.023 67.875,91.948L67.875,88.052ZM57.899,31.409L59.305,31.409C60.853,31.409 62.11,30.152 62.11,28.604L62.11,28.089L73.263,57.543C73.757,58.333 73.731,59.161 73.731,59.403C73.729,62.659 65.231,69.414 65.375,83.611L47.625,83.611C47.769,69.414 39.271,62.659 39.269,59.403C39.269,59.161 39.243,58.333 39.737,57.543L50.89,28.089L50.89,28.604C50.89,30.152 52.147,31.409 53.695,31.409L55.101,31.409C55.111,35.738 55.142,50.367 55.098,54.109C55.093,54.494 54.907,54.988 54.68,55.45C52.915,56.169 51.669,57.903 51.669,59.925C51.669,62.592 53.834,64.756 56.5,64.756C59.166,64.756 61.331,62.592 61.331,59.925C61.331,57.903 60.085,56.169 58.32,55.45C58.093,54.988 57.907,54.494 57.902,54.109C57.858,50.367 57.889,35.738 57.899,31.409ZM52.227,19.451L52.227,18.881C52.227,17.702 53.185,16.745 54.364,16.745L58.636,16.745C59.815,16.745 60.773,17.702 60.773,18.881L60.773,19.451L88.831,19.451C89.457,17.867 91.002,16.745 92.807,16.745C95.165,16.745 97.08,18.66 97.08,21.018C97.08,23.376 95.165,25.29 92.807,25.29C91.03,25.29 89.505,24.203 88.861,22.658L71.798,22.658C83.83,28.003 92.531,39.501 93.898,53.148L94.93,53.148C96.109,53.148 97.067,54.105 97.067,55.284L97.067,59.557C97.067,60.736 96.109,61.693 94.93,61.693L90.657,61.693C89.478,61.693 88.521,60.736 88.521,59.557L88.521,55.284C88.521,54.105 89.478,53.148 90.657,53.148L90.922,53.148C89.19,37.24 76.627,24.564 60.773,22.659L60.773,23.154C60.773,24.333 59.815,25.29 58.636,25.29L54.364,25.29C53.185,25.29 52.227,24.333 52.227,23.154L52.227,22.688C36.484,24.689 24.036,37.318 22.312,53.148L22.329,53.148C23.508,53.148 24.466,54.105 24.466,55.284L24.466,59.557C24.466,60.736 23.508,61.693 22.329,61.693L18.056,61.693C16.877,61.693 15.92,60.736 15.92,59.557L15.92,55.284C15.92,54.105 16.877,53.148 18.056,53.148L19.336,53.148C20.703,39.501 29.405,28.003 41.437,22.658L24.139,22.658C23.495,24.203 21.97,25.29 20.193,25.29C17.835,25.29 15.92,23.376 15.92,21.018C15.92,18.66 17.835,16.745 20.193,16.745C21.998,16.745 23.543,17.867 24.169,19.451L52.227,19.451Z"})):void 0}a(27);var T=a(1),C=a(2),_=a(3);function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var B=function(e){f()(a,e);var t=S(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=this.props,t=e.onClick,a=e.selectedDevice;return Object(l.createElement)(l.Fragment,null,Object(l.createElement)("div",{className:"gb-responsive-tabs"},Object(l.createElement)(C.Tooltip,{text:Object(T.__)("Show options for all devices","generateblocks")},Object(l.createElement)(C.Button,{isPressed:"Desktop"===a,onClick:function(){t("Desktop")}},Object(T.__)("Desktop","generateblocks"))),Object(l.createElement)(C.Tooltip,{text:Object(T.__)("Show options for tablet devices","generateblocks")},Object(l.createElement)(C.Button,{isPressed:"Tablet"===a,onClick:function(){t("Tablet")}},Object(T.__)("Tablet","generateblocks"))),Object(l.createElement)(C.Tooltip,{text:Object(T.__)("Show options for mobile devices","generateblocks")},Object(l.createElement)(C.Button,{isPressed:"Mobile"===a,onClick:function(){t("Mobile")}},Object(T.__)("Mobile","generateblocks")))),Object(_.applyFilters)("generateblocks.editor.controls","","afterResponsiveTabs",this.props,this.state))}}]),a}(l.Component);a(28);function D(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var E=function(e){f()(a,e);var t=D(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=this.props,t=e.label,a=e.value,i=e.onClick,r=e.units;return Object(l.createElement)("div",{className:"components-gblocks-units-control-header__units"},Object(l.createElement)("div",{className:"components-gblocks-units-control-label__units"},t),Object(l.createElement)("div",{className:"components-gblocks-control__units"},Object(l.createElement)(C.ButtonGroup,{className:"components-gblocks-control-buttons__units","aria-label":Object(T.__)("Select Units","generateblocks")},r.map((function(e){var t=e;return"px"===e&&(t=Object(T._x)("Pixel","A size unit for CSS markup","generateblocks")),"em"===e&&(t=Object(T._x)("Em","A size unit for CSS markup","generateblocks")),"%"===e&&(t=Object(T._x)("Percentage","A size unit for CSS markup","generateblocks")),"deg"===e&&(t=Object(T._x)("Degree","A size unit for CSS markup","generateblocks")),Object(l.createElement)(C.Tooltip
|
2 |
+
/* translators: Unit type (px, em, %) */,{text:Object(T.sprintf)(Object(T.__)("%s Units","generateblocks"),t),key:e},Object(l.createElement)(C.Button,{key:e,className:"components-gblocks-control-button__units--"+e,isSmall:!0,isPrimary:a===e,"aria-pressed":a===e
|
3 |
+
/* translators: %s: values associated with CSS syntax, 'Pixel', 'Em', 'Percentage' */,"aria-label":Object(T.sprintf)(Object(T.__)("%s Units","generateblocks"),t),onClick:function(){return i(e)}},e))})))))}}]),a}(l.Component),R=a(19),x=a.n(R);function M(e){for(var t="",a=0,l=Object.entries(e);a<l.length;a++){var i=x()(l[a],2),r=i[0],n=i[1];if(!(n.length<1)){for(var o=r+"{",c=0,s=0,g=Object.entries(n);s<g.length;s++)for(var b=x()(g[s],2),u=(b[0],b[1]),d=0,p=Object.entries(u);d<p.length;d++){var f=x()(p[d],2),h=f[0],m=f[1];(m||0===m)&&(c++,o+=h+": "+m+";")}o+="}",c>0&&(t+=o)}}return t}function z(e,t){return!(!e&&0!==e)&&e+t}function L(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var P=function(e){f()(a,e);var t=L(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.horizontalGap,i=e.verticalGap,r=e.verticalAlignment,n=e.horizontalAlignment,o=[];return o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"align-items":r,"justify-content":n,"margin-left":"-"+a/2+"px","margin-right":"-"+a/2+"px"}],o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{"padding-left":a/2+"px","padding-right":a/2+"px","margin-bottom":z(i,"px")}],o=Object(_.applyFilters)("generateblocks.editor.mainCSS",o,this.props,"grid"),Object(l.createElement)("style",null,M(o))}}]),a}(l.Component);function F(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var A=function(e){f()(a,e);var t=F(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.desktopCSS",e,this.props,"grid"),Object(l.createElement)("style",null,M(e))}}]),a}(l.Component);function U(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var H=function(e){f()(a,e);var t=U(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.horizontalGapTablet,i=e.verticalGapTablet,r=e.verticalAlignmentTablet,n=e.horizontalAlignmentTablet,o=[];return o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"align-items":"inherit"!==r?r:null,"justify-content":"inherit"!==n?n:null,"margin-left":a||0===a?"-"+a/2+"px":null,"margin-right":a||0===a?"-"+a/2+"px":null}],o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{"padding-left":a||0===a?a/2+"px":null,"padding-right":a||0===a?a/2+"px":null,"margin-bottom":i||0===i?z(i,"px"):null}],o=Object(_.applyFilters)("generateblocks.editor.tabletCSS",o,this.props,"grid"),Object(l.createElement)("style",null,M(o))}}]),a}(l.Component);function N(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var I=function(e){f()(a,e);var t=N(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.tabletOnlyCSS",e,this.props,"grid"),Object(l.createElement)("style",null,M(e))}}]),a}(l.Component);function G(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var V=function(e){f()(a,e);var t=G(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.horizontalGapMobile,i=e.verticalGapMobile,r=e.verticalAlignmentMobile,n=e.horizontalAlignmentMobile,o=[];return o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"align-items":"inherit"!==r?r:null,"justify-content":"inherit"!==n?n:null,"margin-left":a||0===a?"-"+a/2+"px":null,"margin-right":a||0===a?"-"+a/2+"px":null}],o[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{"padding-left":a||0===a?a/2+"px":null,"padding-right":a||0===a?a/2+"px":null,"margin-bottom":i||0===i?z(i,"px"):null}],o=Object(_.applyFilters)("generateblocks.editor.mobileCSS",o,this.props,"grid"),Object(l.createElement)("style",null,M(o))}}]),a}(l.Component),q=a(18),W=a.n(q);function Z(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var K=function(e){f()(a,e);var t=Z(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=this.props,t=e.name,a=e.children;return Object(_.applyFilters)(t,a||"",this.props)}}]),a}(l.Component);function J(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Y=function(e){f()(a,e);var t=J(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=this.props,t=e.title,a=void 0!==t&&t,i=e.initialOpen,r=void 0!==i&&i,n=e.icon,o=e.className,c=e.id,s=e.state,g=e.showPanel,b=void 0===g||g,u=e.children;if(!Object(_.applyFilters)("generateblocks.editor.showPanel",b,c,this.props))return null;var d=!0;return""===u&&(d=!1),"object"===W()(u)&&(d=Object.values(u).some((function(e){return null!==e&&!1!==e&&""!==e}))),d?Object(l.createElement)(K,{name:"generateblocks.panel."+c,props:this.props,state:s},a?Object(l.createElement)(C.PanelBody,{title:a,initialOpen:r,icon:n,className:o},Object(_.applyFilters)("generateblocks.editor.panelContents",u,c,this.props)):Object(l.createElement)(C.PanelBody,null,Object(_.applyFilters)("generateblocks.editor.panelContents",u,c,this.props))):null}}]),a}(l.Component),Q=a(11),X=a(14),$=a(15),ee=a(17);function te(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ae=/[\s#]/g,le=[],ie=function(e){f()(a,e);var t=te(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).state={selectedLayout:!1,selectedDevice:"Desktop"},e.onLayoutSelect=e.onLayoutSelect.bind(d()(e)),e.getColumnsFromLayout=e.getColumnsFromLayout.bind(d()(e)),e.getLayoutsSelector=e.getLayoutsSelector.bind(d()(e)),e.getDeviceType=e.getDeviceType.bind(d()(e)),e.setDeviceType=e.setDeviceType.bind(d()(e)),e}return b()(a,[{key:"componentDidMount",value:function(){var e=this.props.clientId.substr(2,9).replace("-","");this.props.attributes.uniqueId?le.includes(this.props.attributes.uniqueId)?(this.props.setAttributes({uniqueId:e}),le.push(e)):le.push(this.props.attributes.uniqueId):(this.props.setAttributes({uniqueId:e}),le.push(e)),void 0!==this.props.attributes.isDynamic&&this.props.attributes.isDynamic||this.props.setAttributes({isDynamic:!0})}},{key:"componentDidUpdate",value:function(){var e=this.props,t=e.attributes,a=e.setAttributes,l=e.clientId;t.columns;if(this.state.selectedLayout){var i=this.getColumnsFromLayout(this.state.selectedLayout);i.forEach((function(e){wp.data.dispatch("core/block-editor").insertBlocks(Object(X.createBlock)("generateblocks/container",e),void 0,l,!1)})),a({columns:i.length}),this.setState({selectedLayout:!1})}else{var r=wp.data.select("core/block-editor").getBlocksByClientId(l)[0];if(r)a({columns:r.innerBlocks.length})}}},{key:"getColumnsFromLayout",value:function(e){var t=this,a=[],l=e.split("-"),i=0;return l.forEach((function(){var e={isGrid:!0,gridId:t.props.attributes.uniqueId,paddingTop:generateBlocksStyling.container.gridItemPaddingTop||"0",paddingRight:generateBlocksStyling.container.gridItemPaddingRight||"0",paddingBottom:generateBlocksStyling.container.gridItemPaddingBottom||"0",paddingLeft:generateBlocksStyling.container.gridItemPaddingLeft||"0"};e.width=Number(l[i]),i++,a.push(e)})),a}},{key:"getLayoutsSelector",value:function(){var e=this;return Object(l.createElement)(C.Placeholder,{label:Object(T.__)("Grid","generateblocks"),instructions:Object(T.__)("Select one layout to get started.","generateblocks"),className:"gb-select-layout"},Object(l.createElement)("div",{className:"gb-grid-wrapper-layout-preview"},["100","50-50","33.33-33.33-33.33","25-25-25-25","25-75","75-25","25-25-50","25-50-25","50-25-25","20-60-20","20-20-20-20-20","16.66-16.66-16.66-16.66-16.66-16.66"].map((function(t){var a=e.getColumnsFromLayout(t);return Object(l.createElement)("button",{key:"layout-".concat(t),className:"gb-grid-wrapper-layout-preview-btn",onClick:function(){return e.onLayoutSelect(t)}},a.map((function(e,a){return Object(l.createElement)("div",{key:"layout-".concat(t,"-col-").concat(a),className:w()("gb-col","gb-col-".concat(e.width))})})))}))))}},{key:"onLayoutSelect",value:function(e){this.setState({selectedLayout:e})}},{key:"getDeviceType",value:function(){var e=this.props.deviceType?this.props.deviceType:this.state.selectedDevice;return generateBlocksInfo.syncResponsivePreviews||(e=this.state.selectedDevice),e}},{key:"setDeviceType",value:function(e){generateBlocksInfo.syncResponsivePreviews&&this.props.deviceType?(this.props.setDeviceType(e),this.setState({selectedDevice:e})):this.setState({selectedDevice:e})}},{key:"render",value:function(){var e,t=this,a=this.props,i=a.attributes,n=a.setAttributes,c=a.clientId,s=i.uniqueId,g=i.className,b=i.anchor,u=i.columns,d=i.horizontalGap,p=i.verticalGap,f=i.verticalAlignment,h=i.horizontalGapTablet,m=i.verticalGapTablet,k=i.verticalAlignmentTablet,y=i.horizontalGapMobile,v=i.verticalGapMobile,O=i.verticalAlignmentMobile,S=i.horizontalAlignment,D=i.horizontalAlignmentTablet,R=i.horizontalAlignmentMobile,x=d||0===d?d:"",M=p||0===p?p:"",z=d||0===d?d:"",L=p||0===p?p:"";h&&(z=h),m&&(L=m);var F={className:w()((e={"gb-grid-wrapper":!0},o()(e,"gb-grid-wrapper-".concat(s),!0),o()(e,"".concat(g),void 0!==g),e)),id:b||null};return F=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",F,"generateblocks/grid",i),Object(l.createElement)(l.Fragment,null,(u>0||this.state.selectedLayout)&&Object(l.createElement)(Q.BlockControls,null,Object(l.createElement)(C.ToolbarGroup,null,Object(l.createElement)(C.ToolbarButton,{className:"gblocks-block-control-icon gblocks-add-grid-item",icon:j("addContainer"),label:Object(T.__)("Add Grid Item","generateblocks"),onClick:function(){wp.data.dispatch("core/block-editor").insertBlocks(Object(X.createBlock)("generateblocks/container",{isGrid:!0,gridId:s,paddingTop:generateBlocksStyling.container.gridItemPaddingTop||"0",paddingRight:generateBlocksStyling.container.gridItemPaddingRight||"0",paddingBottom:generateBlocksStyling.container.gridItemPaddingBottom||"0",paddingLeft:generateBlocksStyling.container.gridItemPaddingLeft||"0"}),void 0,c)},showTooltip:!0}))),Object(l.createElement)(Q.InspectorControls,null,Object(l.createElement)(B,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),Object(l.createElement)(Y,r()({},this.props,{id:"gridLayout",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(E,{label:Object(T.__)("Horizontal Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:d||0===d?d:"",min:"0",onChange:function(e){e=e.toString().replace(/-/g,""),n({horizontalGap:e})},onBlur:function(){!d&&generateBlocksDefaults.gridContainer.horizontalGap?n({horizontalGap:0}):n({horizontalGap:parseFloat(d)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({horizontalGap:generateBlocksDefaults.gridContainer.horizontalGap})}},Object(T.__)("Reset","generateblocks"))),Object(l.createElement)(E,{label:Object(T.__)("Vertical Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:p||0===p?p:"",min:"0",onChange:function(e){e=e.toString().replace(/-/g,""),n({verticalGap:e})},onBlur:function(){!p&&generateBlocksDefaults.gridContainer.verticalGap?n({verticalGap:0}):n({verticalGap:parseFloat(p)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({verticalGap:generateBlocksDefaults.gridContainer.verticalGap})}},Object(T.__)("Reset","generateblocks"))),Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Vertical Alignment","generateblocks"),value:f,help:Object(T.__)("Align grid items. Removes same height columns and overrides grid item content alignment.","generateblocks"),options:[{label:Object(T.__)("Default","generateblocks"),value:""},{label:Object(T.__)("Top","generateblocks"),value:"flex-start"},{label:Object(T.__)("Center","generateblocks"),value:"center"},{label:Object(T.__)("Bottom","generateblocks"),value:"flex-end"}],onChange:function(e){n({verticalAlignment:e})}}),Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Horizontal Alignment","generateblocks"),value:S,options:[{label:Object(T.__)("Default","generateblocks"),value:""},{label:Object(T.__)("Left","generateblocks"),value:"flex-start"},{label:Object(T.__)("Center","generateblocks"),value:"center"},{label:Object(T.__)("Right","generateblocks"),value:"flex-end"}],onChange:function(e){n({horizontalAlignment:e})}})),"Tablet"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(E,{label:Object(T.__)("Horizontal Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:h||0===h?h:"",min:"0",placeholder:x,onChange:function(e){e=e.toString().replace(/-/g,""),n({horizontalGapTablet:e})},onBlur:function(){!h&&generateBlocksDefaults.gridContainer.horizontalGapTablet?n({horizontalGapTablet:0}):n({horizontalGapTablet:parseFloat(h)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({horizontalGapTablet:generateBlocksDefaults.gridContainer.horizontalGapTablet})}},Object(T.__)("Reset","generateblocks"))),Object(l.createElement)(E,{label:Object(T.__)("Vertical Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:m||0===m?m:"",min:"0",placeholder:M,onChange:function(e){e=e.toString().replace(/-/g,""),n({verticalGapTablet:e})},onBlur:function(){!m&&generateBlocksDefaults.gridContainer.verticalGapTablet?n({verticalGapTablet:0}):n({verticalGapTablet:parseFloat(m)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({verticalGapTablet:generateBlocksDefaults.gridContainer.verticalGapTablet})}},Object(T.__)("Reset","generateblocks"))),Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Vertical Alignment","generateblocks"),help:Object(T.__)("Align grid items. Removes same height columns and overrides grid item content alignment.","generateblocks"),value:k,options:[{label:Object(T.__)("Inherit","generateblocks"),value:"inherit"},{label:Object(T.__)("Default","generateblocks"),value:""},{label:Object(T.__)("Top","generateblocks"),value:"flex-start"},{label:Object(T.__)("Center","generateblocks"),value:"center"},{label:Object(T.__)("Bottom","generateblocks"),value:"flex-end"}],onChange:function(e){n({verticalAlignmentTablet:e})}}),Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Horizontal Alignment","generateblocks"),value:D,options:[{label:Object(T.__)("Inherit","generateblocks"),value:"inherit"},{label:Object(T.__)("Default","generateblocks"),value:""},{label:Object(T.__)("Left","generateblocks"),value:"flex-start"},{label:Object(T.__)("Center","generateblocks"),value:"center"},{label:Object(T.__)("Right","generateblocks"),value:"flex-end"}],onChange:function(e){n({horizontalAlignmentTablet:e})}})),"Mobile"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(E,{label:Object(T.__)("Horizontal Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:y||0===y?y:"",min:"0",placeholder:z,onChange:function(e){e=e.toString().replace(/-/g,""),n({horizontalGapMobile:e})},onBlur:function(){!y&&generateBlocksDefaults.gridContainer.horizontalGapMobile?n({horizontalGapMobile:0}):n({horizontalGapMobile:parseFloat(y)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({horizontalGapMobile:generateBlocksDefaults.gridContainer.horizontalGapMobile})}},Object(T.__)("Reset","generateblocks"))),Object(l.createElement)(E,{label:Object(T.__)("Vertical Gap","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:v||0===v?v:"",min:"0",placeholder:L,onChange:function(e){e=e.toString().replace(/-/g,""),n({verticalGapMobile:e})},onBlur:function(){!v&&generateBlocksDefaults.gridContainer.verticalGapMobile?n({verticalGapMobile:0}):n({verticalGapMobile:parseFloat(v)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({verticalGapMobile:generateBlocksDefaults.gridContainer.verticalGapMobile})}},Object(T.__)("Reset","generateblocks"))),Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Vertical Alignment","generateblocks"),help:Object(T.__)("Align grid items. Removes same height columns and overrides grid item content alignment.","generateblocks"),value:O,options:[{label:Object(T.__)("Inherit","generateblocks"),value:"inherit"},{label:Object(T.__)("Default","generateblocks"),value:""},{label:Object(T.__)("Top","generateblocks"),value:"flex-start"},{label:Object(T.__)("Center","generateblocks"),value:"center"},{label:Object(T.__)("Bottom","generateblocks"),value:"flex-end"}],onChange:function(e){n({verticalAlignmentMobile:e})}}),Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Horizontal Alignment","generateblocks"),value:R,options:[{label:Object(T.__)("Inherit","generateblocks"),value:"inherit"},{label:Object(T.__)("Default","generateblocks"),value:""},{label:Object(T.__)("Left","generateblocks"),value:"flex-start"},{label:Object(T.__)("Center","generateblocks"),value:"center"},{label:Object(T.__)("Right","generateblocks"),value:"flex-end"}],onChange:function(e){n({horizontalAlignmentMobile:e})}})),Object(_.applyFilters)("generateblocks.editor.controls","","gridLayout",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Documentation","generateblocks"),icon:j("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"gridDocumentation",state:this.state}),Object(l.createElement)("p",null,Object(T.__)("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/grid/",target:"_blank",rel:"noreferrer noopener"},Object(T.__)("Visit our documentation","generateblocks")),Object(_.applyFilters)("generateblocks.editor.controls","","gridDocumentation",this.props,this.state))),Object(l.createElement)(Q.InspectorAdvancedControls,null,Object(l.createElement)(C.TextControl,{label:Object(T.__)("HTML Anchor"),help:Object(T.__)("Anchors lets you link directly to a section on a page.","generateblocks"),value:b||"",onChange:function(e){e=e.replace(ae,"-"),n({anchor:e})}})),Object(l.createElement)(P,this.props),this.props.deviceType&&Object(l.createElement)(l.Fragment,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(A,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(H,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(I,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(V,this.props)),Object(l.createElement)("div",F,u>0||this.state.selectedLayout?Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Q.InnerBlocks,{allowedBlocks:["generateblocks/container"],renderAppender:!1})):this.getLayoutsSelector()))}}]),a}(l.Component),re=Object(ee.compose)([Object($.withDispatch)((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),Object($.withSelect)((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?{deviceType:t()}:{deviceType:null}}))])(ie),ne={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},columns:{type:"number",default:""},horizontalGap:{type:"number",default:generateBlocksDefaults.gridContainer.horizontalGap},verticalGap:{type:"number",default:generateBlocksDefaults.gridContainer.verticalGap},verticalAlignment:{type:"string",default:generateBlocksDefaults.gridContainer.verticalAlignment},horizontalGapTablet:{type:"number",default:generateBlocksDefaults.gridContainer.horizontalGapTablet},verticalGapTablet:{type:"number",default:generateBlocksDefaults.gridContainer.verticalGapTablet},verticalAlignmentTablet:{type:"string",default:generateBlocksDefaults.gridContainer.verticalAlignmentTablet},horizontalGapMobile:{type:"number",default:generateBlocksDefaults.gridContainer.horizontalGapMobile},verticalGapMobile:{type:"number",default:generateBlocksDefaults.gridContainer.verticalGapMobile},verticalAlignmentMobile:{type:"string",default:generateBlocksDefaults.gridContainer.verticalAlignmentMobile},horizontalAlignment:{type:"string",default:generateBlocksDefaults.gridContainer.horizontalAlignment},horizontalAlignmentTablet:{type:"string",default:generateBlocksDefaults.gridContainer.horizontalAlignmentTablet},horizontalAlignmentMobile:{type:"string",default:generateBlocksDefaults.gridContainer.horizontalAlignmentMobile},isDynamic:{type:"boolean"},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};function oe(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function ce(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?oe(Object(a),!0).forEach((function(t){o()(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):oe(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var se=[{attributes:ne,supports:{anchor:!1,className:!1,customClassName:!1},migrate:function(e){var t=e.cssClasses?e.cssClasses:e.className,a=e.elementId?e.elementId:e.anchor;return ce(ce({},e),{},{className:t,anchor:a,cssClasses:"",elementId:""})},save:function(e){var t,a=e.attributes,i=a.uniqueId,r=a.elementId,n=a.cssClasses,c={id:r||void 0,className:w()((t={"gb-grid-wrapper":!0},o()(t,"gb-grid-wrapper-".concat(i),!0),o()(t,"".concat(n),""!==n),t))};return c=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",c,"generateblocks/grid",a),Object(l.createElement)("div",c,Object(l.createElement)(Q.InnerBlocks.Content,null))}}];Object(X.registerBlockType)("generateblocks/grid",{title:Object(T.__)("Grid","generateblocks"),description:Object(T.__)("Create advanced layouts with flexible grids.","generateblocks"),icon:j("grid"),category:"generateblocks",keywords:[Object(T.__)("grid"),Object(T.__)("column"),Object(T.__)("generate")],attributes:ne,supports:{className:!1},edit:re,save:function(){return Object(l.createElement)(Q.InnerBlocks.Content,null)},deprecated:se});a(32);var ge=generateBlocksInfo.hasWideAlignSupport,be=["wide","full"],ue=Object(ee.createHigherOrderComponent)((function(e){return function(t){var a=t.name,i=t.attributes,r=t.isSelected,n=t.clientId,o=t.setAttributes,c=i.isGrid,s=i.align,g=!1;return g="function"==typeof wp.data.select("core/block-editor").getBlockParentsByBlockName?wp.data.select("core/block-editor").getBlockParentsByBlockName(n,"generateblocks/grid",!0)[0]:wp.data.select("core/block-editor").getBlockRootClientId(n),Object(l.createElement)(l.Fragment,null,r&&c&&g&&"generateblocks/container"===a&&Object(l.createElement)(Q.BlockControls,null,Object(l.createElement)(C.ToolbarGroup,null,Object(l.createElement)(C.ToolbarButton,{className:"gblocks-block-control-icon gblocks-add-grid-item",icon:j("addContainer"),label:Object(T.__)("Duplicate Grid Item","generateblocks"),onClick:function(){var e=wp.data.select("core/block-editor").getBlocksByClientId(n)[0],t=Object(X.cloneBlock)(e);wp.data.dispatch("core/block-editor").insertBlocks(t,void 0,g)},showTooltip:!0})),Object(l.createElement)(C.ToolbarGroup,null,Object(l.createElement)(C.ToolbarButton,{className:"gblocks-block-control-icon",icon:j("grid"),label:Object(T.__)("Select Parent Grid","generateblocks"),onClick:function(){wp.data.dispatch("core/block-editor").selectBlock(g)},showTooltip:!0}))),r&&ge&&!c&&"generateblocks/container"===a&&Object(l.createElement)(Q.BlockControls,null,Object(l.createElement)(Q.BlockAlignmentToolbar,{value:s,onChange:function(e){o({align:e}),"full"===e&&o({outerContainer:"full"})},controls:be})),Object(l.createElement)(e,t))}}),"withAdvancedControls");Object(_.addFilter)("editor.BlockEdit","generateblocks/container-block-controls",ue);var de=a(16),pe=a.n(de);function fe(e){var t=e.tagName,a=e.htmlAttrs,i=e.children;return Object(l.createElement)(t,a,i)}function he(e,t){return e?t||0===t?(e=e.replace("#",""),"rgba("+parseInt(3===e.length?e.slice(0,1).repeat(2):e.slice(0,2),16)+", "+parseInt(3===e.length?e.slice(1,2).repeat(2):e.slice(2,4),16)+", "+parseInt(3===e.length?e.slice(2,3).repeat(2):e.slice(4,6),16)+", "+t+")"):e:""}a(36);function me(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ke=function(e){f()(a,e);var t=me(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).state={colorKey:!1},e}return b()(a,[{key:"render",value:function(){var e=this,t=this.props,a=t.value,i=t.onChange,r=t.onOpacityChange,n=t.label,o=t.alpha,c=void 0!==o&&o,s=t.valueOpacity,g=this.state.colorKey,b=function(){!0===e.state.isVisible&&e.setState({isVisible:!1})};return Object(l.createElement)(C.BaseControl,{className:"gblocks-component-color-picker-wrapper"},!!n&&Object(l.createElement)("div",{className:"gblocks-color-component-label"},Object(l.createElement)("span",null,n)),Object(l.createElement)("div",{className:"gblocks-color-picker-area"},!this.state.isVisible&&Object(l.createElement)("div",{className:w()("components-color-palette__item-wrapper components-circular-option-picker__option-wrapper",a?"":"components-color-palette__custom-color")},Object(l.createElement)(C.Tooltip,{text:Object(T.__)("Choose Color","generateblocks")},Object(l.createElement)("button",{type:"button","aria-expanded":this.state.isVisible,className:"components-color-palette__item components-circular-option-picker__option",onClick:function(){e.setState({isVisible:!0})},"aria-label":Object(T.__)("Custom color picker","generateblocks"),style:{color:a?he(a,s):"transparent"}},Object(l.createElement)("span",{className:"components-color-palette__custom-color-gradient"})))),this.state.isVisible&&Object(l.createElement)("div",{className:w()("components-color-palette__item-wrapper components-circular-option-picker__option-wrapper",a?"":"components-color-palette__custom-color")},Object(l.createElement)(C.Tooltip,{text:Object(T.__)("Choose Color","generateblocks")},Object(l.createElement)("button",{type:"button","aria-expanded":this.state.isVisible,className:"components-color-palette__item components-circular-option-picker__option",onClick:b,"aria-label":Object(T.__)("Custom color picker","generateblocks"),style:{color:a?he(a,s):"transparent"}},Object(l.createElement)("span",{className:"components-color-palette__custom-color-gradient"})))),this.state.isVisible&&Object(l.createElement)(C.Popover,{position:"top left",className:"gblocks-component-color-picker",onClose:b},Object(l.createElement)(C.BaseControl,{key:g},Object(l.createElement)(C.ColorPicker,{key:g,color:a||"",onChangeComplete:function(e){i(e.hex)},disableAlpha:!0})),c&&Object(l.createElement)("div",{className:"gblocks-component-color-opacity"},Object(l.createElement)(C.Tooltip,{text:Object(T.__)("Opacity","generateblocks")},j("gradient")),Object(l.createElement)(C.RangeControl,{value:s||0,onChange:function(e){return r(e)},min:0,max:1,step:.01,initialPosition:1})),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-color-clear-color",onClick:function(){i(""),r(1),e.setState({colorKey:!1})}},Object(T.__)("Clear Color","generateblocks")),Object(l.createElement)(C.BaseControl,{className:"gblocks-component-color-picker-palette"},Object(l.createElement)(Q.ColorPalette,{value:a,onChange:function(t){i(t),e.setState({colorKey:t})},disableCustomColors:!0,clearable:!1})))))}}]),a}(l.Component);a(37);function ye(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ve=function(e){f()(a,e);var t=ye(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).onChangeTop=e.onChangeTop.bind(d()(e)),e.onChangeRight=e.onChangeRight.bind(d()(e)),e.onChangeBottom=e.onChangeBottom.bind(d()(e)),e.onChangeLeft=e.onChangeLeft.bind(d()(e)),e.onChangeAll=e.onChangeAll.bind(d()(e)),e.syncUnits=e.syncUnits.bind(d()(e)),e.onChangeUnits=e.onChangeUnits.bind(d()(e)),e}return b()(a,[{key:"onReset",value:function(e){this.props.setAttributes(o()({},this.props[e],""))}},{key:"onChangeTop",value:function(e){this.props.setAttributes(o()({},this.props.attrTop,e))}},{key:"onChangeRight",value:function(e){this.props.setAttributes(o()({},this.props.attrRight,e))}},{key:"onChangeBottom",value:function(e){this.props.setAttributes(o()({},this.props.attrBottom,e))}},{key:"onChangeLeft",value:function(e){this.props.setAttributes(o()({},this.props.attrLeft,e))}},{key:"onChangeAll",value:function(e){var t;this.props.setAttributes((t={},o()(t,this.props.attrTop,e),o()(t,this.props.attrRight,e),o()(t,this.props.attrBottom,e),o()(t,this.props.attrLeft,e),t))}},{key:"syncUnits",value:function(){var e,t=[this.props.attributes[this.props.attrTop],this.props.attributes[this.props.attrRight],this.props.attributes[this.props.attrBottom],this.props.attributes[this.props.attrLeft]],a=Math.max.apply(null,t);this.props.setAttributes((e={},o()(e,this.props.attrSyncUnits,!this.props.attributes[this.props.attrSyncUnits]),o()(e,this.props.attrTop,a.toString()),o()(e,this.props.attrRight,a.toString()),o()(e,this.props.attrBottom,a.toString()),o()(e,this.props.attrLeft,a.toString()),e))}},{key:"onChangeUnits",value:function(e){this.props.setAttributes(o()({},this.props.attrUnit,e))}},{key:"render",value:function(){var e=this,t=this.props,a=t.attributes,i=t.label,r=void 0===i?Object(T.__)("Margin","generateblocks"):i,n=t.type,o=void 0===n?"margin":n,c=t.attrTop,s=t.attrRight,g=t.attrBottom,b=t.attrLeft,u=t.attrSyncUnits,d=t.attrUnit,p=t.labelTop,f=void 0===p?Object(T.__)("Top","generateblocks"):p,h=t.labelRight,m=void 0===h?Object(T.__)("Right","generateblocks"):h,k=t.labelBottom,y=void 0===k?Object(T.__)("Bottom","generateblocks"):k,v=t.labelLeft,O=void 0===v?Object(T.__)("Left","generateblocks"):v,_=t.device,S=t.block,B=t.defaults,D=t.units,R=w()("components-base-control","components-gblocks-dimensions-control"),x="",M="",z="",L="";if("headline"===S&&g.includes("marginBottom")){if("px"===this.props.attributes.marginUnit){var P=document.querySelector(".gb-headline-"+this.props.attributes.uniqueId);P&&(z=parseFloat(window.getComputedStyle(P).marginBottom))}else"em"===this.props.attributes.marginUnit&&void 0!==generateBlocksStyling.headline&&void 0!==generateBlocksStyling.headline[a.element].marginBottom&&generateBlocksStyling.headline[a.element].marginUnit===a.marginUnit&&(z=generateBlocksStyling.headline[a.element].marginBottom);"div"!==this.props.attributes.element&&"span"!==this.props.attributes.element||(z="")}if("Tablet"===_){var F=c.replace("Tablet",""),A=s.replace("Tablet",""),U=g.replace("Tablet",""),H=b.replace("Tablet","");x=a[F]?a[F]:x,M=a[A]?a[A]:M,z=a[U]?a[U]:z,L=a[H]?a[H]:L}if("Mobile"===_){var N=c.replace("Mobile",""),I=s.replace("Mobile",""),G=g.replace("Mobile",""),V=b.replace("Mobile","");a[N+"Tablet"]?x=a[N+"Tablet"]:a[N]&&(x=a[N]),a[I+"Tablet"]?M=a[I+"Tablet"]:a[I]&&(M=a[I]),a[G+"Tablet"]?z=a[G+"Tablet"]:a[G]&&(z=a[G]),a[V+"Tablet"]?L=a[V+"Tablet"]:a[V]&&(L=a[V])}var q=void 0!==a.useGlobalStyle&&a.useGlobalStyle;return Object(l.createElement)(l.Fragment,null,Object(l.createElement)("div",{className:R},Object(l.createElement)(E,{label:r,value:void 0!==a[d]?a[d]:"px",units:D,onClick:function(t){if(void 0===a[d])return!1;e.onChangeUnits(t)}}),Object(l.createElement)("div",{className:"components-gblocks-dimensions-control__inputs"},Object(l.createElement)("input",{className:"components-gblocks-dimensions-control__number",placeholder:x,type:"number",onChange:function(t){var a=t.target.value;"padding"===o&&(a=a.toString().replace(/-/g,"")),""!==a?e.props.attributes[e.props.attrSyncUnits]?e.onChangeAll(a):e.onChangeTop(a):e.onReset("attrTop")},onBlur:function(){q||""!==a[c]||""===B[c]||(e.props.attributes[e.props.attrSyncUnits]?e.onChangeAll("0"):e.onChangeTop("0"))},onClick:function(e){e.currentTarget.focus()}
|
4 |
+
/* translators: Dimension label (padding, margin, border) */,"aria-label":Object(T.sprintf)(Object(T.__)("%s Top","generateblocks"),r),value:a[c]?a[c]:"",min:"padding"===o?0:void 0,"data-attribute":o}),Object(l.createElement)("input",{className:"components-gblocks-dimensions-control__number",placeholder:M,type:"number",onChange:function(t){var a=t.target.value;"padding"===o&&(a=a.toString().replace(/-/g,"")),""!==a?e.props.attributes[e.props.attrSyncUnits]?e.onChangeAll(a):e.onChangeRight(a):e.onReset("attrRight")},onBlur:function(){q||""!==a[s]||""===B[s]||(e.props.attributes[e.props.attrSyncUnits]?e.onChangeAll("0"):e.onChangeRight("0"))},onClick:function(e){e.currentTarget.focus()}
|
5 |
+
/* translators: Dimension label (padding, margin, border) */,"aria-label":Object(T.sprintf)(Object(T.__)("%s Right","generateblocks"),r),value:a[s]?a[s]:"",min:"padding"===o?0:void 0,"data-attribute":o}),Object(l.createElement)("input",{className:"components-gblocks-dimensions-control__number",placeholder:z,type:"number",onChange:function(t){var a=t.target.value;"padding"===o&&(a=a.toString().replace(/-/g,"")),""!==a?e.props.attributes[e.props.attrSyncUnits]?e.onChangeAll(a):e.onChangeBottom(a):e.onReset("attrBottom")},onBlur:function(){q||""!==a[g]||""===B[g]||(e.props.attributes[e.props.attrSyncUnits]?e.onChangeAll("0"):e.onChangeBottom("0"))},onClick:function(e){e.currentTarget.focus()}
|
6 |
+
/* translators: Dimension label (padding, margin, border) */,"aria-label":Object(T.sprintf)(Object(T.__)("%s Bottom","generateblocks"),r),value:a[g]?a[g]:"",min:"padding"===o?0:void 0,"data-attribute":o}),Object(l.createElement)("input",{className:"components-gblocks-dimensions-control__number",placeholder:L,type:"number",onChange:function(t){var a=t.target.value;"padding"===o&&(a=a.toString().replace(/-/g,"")),""!==a?e.props.attributes[e.props.attrSyncUnits]?e.onChangeAll(a):e.onChangeLeft(a):e.onReset("attrLeft")},onBlur:function(){q||""!==a[b]||""===B[b]||(e.props.attributes[e.props.attrSyncUnits]?e.onChangeAll("0"):e.onChangeLeft("0"))},onClick:function(e){e.currentTarget.focus()}
|
7 |
+
/* translators: Dimension label (padding, margin, border) */,"aria-label":Object(T.sprintf)(Object(T.__)("%s Left","generateblocks"),r),value:a[b]?a[b]:"",min:"padding"===o?0:void 0,"data-attribute":o}),Object(l.createElement)(C.Tooltip,{text:a[u]?Object(T.__)("Unsync","generateblocks"):Object(T.__)("Sync","generateblocks")},Object(l.createElement)(C.Button,{className:"components-gblocks-dimensions-control_sync","aria-label":Object(T.__)("Sync Units","generateblocks"),isPrimary:!!a[u]&&a[u],"aria-pressed":!!a[u]&&a[u],onClick:function(t){return e.syncUnits(t,"")},isSmall:!0},(a[u],j("sync"))))),Object(l.createElement)("div",{className:"components-gblocks-dimensions-control__input-labels"},Object(l.createElement)("span",{className:"components-gblocks-dimensions-control__number-label"},f),Object(l.createElement)("span",{className:"components-gblocks-dimensions-control__number-label"},m),Object(l.createElement)("span",{className:"components-gblocks-dimensions-control__number-label"},y),Object(l.createElement)("span",{className:"components-gblocks-dimensions-control__number-label"},O),Object(l.createElement)("span",{className:"components-gblocks-dimensions-control__number-label"}))))}}]),a}(l.Component),we=(a(38),{Roboto:{weight:["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","900","900italic"],fallback:"sans-serif"},"Open Sans":{weight:["300","300italic","regular","italic","600","600italic","700","700italic","800","800italic"],fallback:"sans-serif"},Lato:{weight:["100","100italic","300","300italic","regular","italic","700","700italic","900","900italic"],fallback:"sans-serif"},Montserrat:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Source Sans Pro":{weight:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","900","900italic"],fallback:"sans-serif"},"Roboto Condensed":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"sans-serif"},Oswald:{weight:["200","300","regular","500","600","700"],fallback:"sans-serif"},"Roboto Mono":{weight:["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic"],fallback:"monospace"},Raleway:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Poppins:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Noto Sans":{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Roboto Slab":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"serif"},Merriweather:{weight:["300","300italic","regular","italic","700","700italic","900","900italic"],fallback:"serif"},"PT Sans":{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Ubuntu:{weight:["300","300italic","regular","italic","500","500italic","700","700italic"],fallback:"sans-serif"},"Playfair Display":{weight:["regular","500","600","700","800","900","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"serif"},Muli:{weight:["200","300","regular","500","600","700","800","900","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"sans-serif"},"Open Sans Condensed":{weight:["300","300italic","700"],fallback:"sans-serif"},"PT Serif":{weight:["regular","italic","700","700italic"],fallback:"serif"},Lora:{weight:["regular","500","600","700","italic","500italic","600italic","700italic"],fallback:"serif"},"Slabo 27px":{weight:["regular"],fallback:"serif"},Nunito:{weight:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Noto Sans JP":{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},"Work Sans":{weight:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"sans-serif"},Rubik:{weight:["300","300italic","regular","italic","500","500italic","700","700italic","900","900italic"],fallback:"sans-serif"},"Noto Serif":{weight:["regular","italic","700","700italic"],fallback:"serif"},"Fira Sans":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Titillium Web":{weight:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","900"],fallback:"sans-serif"},Quicksand:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"Noto Sans KR":{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},"Nanum Gothic":{weight:["regular","700","800"],fallback:"sans-serif"},Mukta:{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},"Noto Sans TC":{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},"Nunito Sans":{weight:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Heebo:{weight:["100","300","regular","500","700","800","900"],fallback:"sans-serif"},"PT Sans Narrow":{weight:["regular","700"],fallback:"sans-serif"},Arimo:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Inconsolata:{weight:["regular","700"],fallback:"monospace"},Barlow:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Oxygen:{weight:["300","regular","700"],fallback:"sans-serif"},Dosis:{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},Bitter:{weight:["regular","italic","700"],fallback:"serif"},"Libre Baskerville":{weight:["regular","italic","700"],fallback:"serif"},"Crimson Text":{weight:["regular","italic","600","600italic","700","700italic"],fallback:"serif"},"Libre Franklin":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Karla:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Josefin Sans":{weight:["100","200","300","regular","500","600","700","100italic","200italic","300italic","italic","500italic","600italic","700italic"],fallback:"sans-serif"},Cabin:{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Anton:{weight:["regular"],fallback:"sans-serif"},"Source Code Pro":{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","900","900italic"],fallback:"monospace"},Hind:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},Abel:{weight:["regular"],fallback:"sans-serif"},Amiri:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Fjalla One":{weight:["regular"],fallback:"sans-serif"},Lobster:{weight:["regular"],fallback:"display"},Pacifico:{weight:["regular"],fallback:"handwriting"},"Indie Flower":{weight:["regular"],fallback:"handwriting"},"Exo 2":{weight:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"sans-serif"},"Dancing Script":{weight:["regular","500","600","700"],fallback:"handwriting"},"Source Serif Pro":{weight:["regular","600","700"],fallback:"serif"},Arvo:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Hind Siliguri":{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"Varela Round":{weight:["regular"],fallback:"sans-serif"},"Merriweather Sans":{weight:["300","300italic","regular","italic","700","700italic","800","800italic"],fallback:"sans-serif"},Cairo:{weight:["200","300","regular","600","700","900"],fallback:"sans-serif"},"Yanone Kaffeesatz":{weight:["200","300","regular","500","600","700"],fallback:"sans-serif"},Overpass:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Shadows Into Light":{weight:["regular"],fallback:"handwriting"},"Barlow Condensed":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"IBM Plex Sans":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Comfortaa:{weight:["300","regular","500","600","700"],fallback:"display"},Asap:{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Prompt:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Kanit:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Questrial:{weight:["regular"],fallback:"sans-serif"},Martel:{weight:["200","300","regular","600","700","800","900"],fallback:"serif"},"Archivo Narrow":{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Abril Fatface":{weight:["regular"],fallback:"display"},"Amatic SC":{weight:["regular","700"],fallback:"handwriting"},Acme:{weight:["regular"],fallback:"sans-serif"},Catamaran:{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Fira Sans Condensed":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"EB Garamond":{weight:["regular","500","600","700","800","italic","500italic","600italic","700italic","800italic"],fallback:"serif"},"Bree Serif":{weight:["regular"],fallback:"serif"},"Zilla Slab":{weight:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},"Noto Sans SC":{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},"Cormorant Garamond":{weight:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},"Hind Madurai":{weight:["300","regular","500","600","700"],fallback:"sans-serif"},Teko:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},Righteous:{weight:["regular"],fallback:"display"},Signika:{weight:["300","regular","600","700"],fallback:"sans-serif"},Play:{weight:["regular","700"],fallback:"sans-serif"},Domine:{weight:["regular","700"],fallback:"serif"},Exo:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Russo One":{weight:["regular"],fallback:"sans-serif"},Cinzel:{weight:["regular","700","900"],fallback:"serif"},"PT Sans Caption":{weight:["regular","700"],fallback:"sans-serif"},Rajdhani:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"Maven Pro":{weight:["regular","500","600","700","800","900"],fallback:"sans-serif"},"Fredoka One":{weight:["regular"],fallback:"display"},"IBM Plex Serif":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},"Ubuntu Condensed":{weight:["regular"],fallback:"sans-serif"},"Patua One":{weight:["regular"],fallback:"display"},Caveat:{weight:["regular","700"],fallback:"handwriting"},"Permanent Marker":{weight:["regular"],fallback:"handwriting"},Assistant:{weight:["200","300","regular","600","700","800"],fallback:"sans-serif"},ABeeZee:{weight:["regular","italic"],fallback:"sans-serif"},Vollkorn:{weight:["regular","italic","600","600italic","700","700italic","900","900italic"],fallback:"serif"},"Crete Round":{weight:["regular","italic"],fallback:"serif"},"Special Elite":{weight:["regular"],fallback:"display"},Rokkitt:{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"serif"},Bangers:{weight:["regular"],fallback:"display"},"Francois One":{weight:["regular"],fallback:"sans-serif"},"Barlow Semi Condensed":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Alegreya Sans":{weight:["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Satisfy:{weight:["regular"],fallback:"handwriting"},Tajawal:{weight:["200","300","regular","500","700","800","900"],fallback:"sans-serif"},"Bebas Neue":{weight:["regular"],fallback:"display"},"Patrick Hand":{weight:["regular"],fallback:"handwriting"},Cuprum:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Viga:{weight:["regular"],fallback:"sans-serif"},Courgette:{weight:["regular"],fallback:"handwriting"},"Ropa Sans":{weight:["regular","italic"],fallback:"sans-serif"},"Noto Serif JP":{weight:["200","300","regular","500","600","700","900"],fallback:"serif"},"Gochi Hand":{weight:["regular"],fallback:"handwriting"},Alegreya:{weight:["regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"],fallback:"serif"},"Luckiest Guy":{weight:["regular"],fallback:"display"},"Noticia Text":{weight:["regular","italic","700","700italic"],fallback:"serif"},Tinos:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Passion One":{weight:["regular","700","900"],fallback:"display"},"Alfa Slab One":{weight:["regular"],fallback:"display"},"Nanum Myeongjo":{weight:["regular","700","800"],fallback:"serif"},Monda:{weight:["regular","700"],fallback:"sans-serif"},"Lobster Two":{weight:["regular","italic","700","700italic"],fallback:"display"},Kalam:{weight:["300","regular","700"],fallback:"handwriting"},"Kaushan Script":{weight:["regular"],fallback:"handwriting"},"Archivo Black":{weight:["regular"],fallback:"sans-serif"},Cardo:{weight:["regular","italic","700"],fallback:"serif"},Archivo:{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Great Vibes":{weight:["regular"],fallback:"handwriting"},Volkhov:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Quattrocento Sans":{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"News Cycle":{weight:["regular","700"],fallback:"sans-serif"},"Pathway Gothic One":{weight:["regular"],fallback:"sans-serif"},Sacramento:{weight:["regular"],fallback:"handwriting"},"Frank Ruhl Libre":{weight:["300","regular","500","700","900"],fallback:"serif"},Yantramanav:{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},Cantarell:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Istok Web":{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Didact Gothic":{weight:["regular"],fallback:"sans-serif"},"Concert One":{weight:["regular"],fallback:"display"},Taviraj:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"serif"},"Old Standard TT":{weight:["regular","italic","700"],fallback:"serif"},"Montserrat Alternates":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Economica:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Changa:{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},"Fira Sans Extra Condensed":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Gloria Hallelujah":{weight:["regular"],fallback:"handwriting"},Parisienne:{weight:["regular"],fallback:"handwriting"},Orbitron:{weight:["regular","500","600","700","800","900"],fallback:"sans-serif"},"Asap Condensed":{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Playfair Display SC":{weight:["regular","italic","700","700italic","900","900italic"],fallback:"serif"},Chivo:{weight:["300","300italic","regular","italic","700","700italic","900","900italic"],fallback:"sans-serif"},Sriracha:{weight:["regular"],fallback:"handwriting"},"Hind Vadodara":{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"DM Sans":{weight:["regular","italic","500","500italic","700","700italic"],fallback:"sans-serif"},Prata:{weight:["regular"],fallback:"serif"},Quattrocento:{weight:["regular","700"],fallback:"serif"},Cookie:{weight:["regular"],fallback:"handwriting"},"Poiret One":{weight:["regular"],fallback:"display"},Handlee:{weight:["regular"],fallback:"handwriting"},Sarabun:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"sans-serif"},BenchNine:{weight:["300","regular","700"],fallback:"sans-serif"},Merienda:{weight:["regular","700"],fallback:"handwriting"},"M PLUS 1p":{weight:["100","300","regular","500","700","800","900"],fallback:"sans-serif"},"PT Mono":{weight:["regular"],fallback:"monospace"},Lalezar:{weight:["regular"],fallback:"display"},Sanchez:{weight:["regular","italic"],fallback:"serif"},Lemonada:{weight:["300","regular","500","600","700"],fallback:"display"},"Markazi Text":{weight:["regular","500","600","700"],fallback:"serif"},Neuton:{weight:["200","300","regular","italic","700","800"],fallback:"serif"},"Hind Guntur":{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"Josefin Slab":{weight:["100","100italic","300","300italic","regular","italic","600","600italic","700","700italic"],fallback:"serif"},Philosopher:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Advent Pro":{weight:["100","200","300","regular","500","600","700"],fallback:"sans-serif"},"Do Hyeon":{weight:["regular"],fallback:"sans-serif"},"Sawarabi Mincho":{weight:["regular"],fallback:"sans-serif"},Ruda:{weight:["regular","500","600","700","800","900"],fallback:"sans-serif"},Vidaloka:{weight:["regular"],fallback:"serif"},Ultra:{weight:["regular"],fallback:"serif"},Neucha:{weight:["regular"],fallback:"handwriting"},Arapey:{weight:["regular","italic"],fallback:"serif"},Gudea:{weight:["regular","italic","700"],fallback:"sans-serif"},"Paytone One":{weight:["regular"],fallback:"sans-serif"},Kreon:{weight:["300","regular","500","600","700"],fallback:"serif"},"M PLUS Rounded 1c":{weight:["100","300","regular","500","700","800","900"],fallback:"sans-serif"},"Pragati Narrow":{weight:["regular","700"],fallback:"sans-serif"},"Press Start 2P":{weight:["regular"],fallback:"display"},"Hammersmith One":{weight:["regular"],fallback:"sans-serif"},"Gentium Basic":{weight:["regular","italic","700","700italic"],fallback:"serif"},Monoton:{weight:["regular"],fallback:"display"},Alef:{weight:["regular","700"],fallback:"sans-serif"},Alice:{weight:["regular"],fallback:"serif"},Aclonica:{weight:["regular"],fallback:"sans-serif"},"Sigmar One":{weight:["regular"],fallback:"display"},Spectral:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"serif"},"Marck Script":{weight:["regular"],fallback:"handwriting"},Electrolize:{weight:["regular"],fallback:"sans-serif"},Actor:{weight:["regular"],fallback:"sans-serif"},"Architects Daughter":{weight:["regular"],fallback:"handwriting"},Adamina:{weight:["regular"],fallback:"serif"},"Pontano Sans":{weight:["regular"],fallback:"sans-serif"},Audiowide:{weight:["regular"],fallback:"display"},Inter:{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Cabin Condensed":{weight:["regular","500","600","700"],fallback:"sans-serif"},"Unica One":{weight:["regular"],fallback:"display"},Yellowtail:{weight:["regular"],fallback:"handwriting"},"El Messiri":{weight:["regular","500","600","700"],fallback:"sans-serif"},"Squada One":{weight:["regular"],fallback:"display"},Staatliches:{weight:["regular"],fallback:"display"},Amaranth:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Enriqueta:{weight:["regular","500","600","700"],fallback:"serif"},Mitr:{weight:["200","300","regular","500","600","700"],fallback:"sans-serif"},Glegoo:{weight:["regular","700"],fallback:"serif"},"Bowlby One SC":{weight:["regular"],fallback:"display"},Basic:{weight:["regular"],fallback:"sans-serif"},"Nanum Gothic Coding":{weight:["regular","700"],fallback:"monospace"},Sarala:{weight:["regular","700"],fallback:"sans-serif"},"Bad Script":{weight:["regular"],fallback:"handwriting"},"Homemade Apple":{weight:["regular"],fallback:"handwriting"},Tangerine:{weight:["regular","700"],fallback:"handwriting"},Cormorant:{weight:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},"Oleo Script":{weight:["regular","700"],fallback:"display"},Karma:{weight:["300","regular","500","600","700"],fallback:"serif"},"Julius Sans One":{weight:["regular"],fallback:"sans-serif"},"Carter One":{weight:["regular"],fallback:"display"},Khand:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},"Nanum Pen Script":{weight:["regular"],fallback:"handwriting"},Cambay:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Fugaz One":{weight:["regular"],fallback:"display"},"Shadows Into Light Two":{weight:["regular"],fallback:"handwriting"},Coda:{weight:["regular","800"],fallback:"display"},"Signika Negative":{weight:["300","regular","600","700"],fallback:"sans-serif"},Pridi:{weight:["200","300","regular","500","600","700"],fallback:"serif"},Playball:{weight:["regular"],fallback:"display"},Saira:{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Rock Salt":{weight:["regular"],fallback:"handwriting"},"Gothic A1":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Gentium Book Basic":{weight:["regular","italic","700","700italic"],fallback:"serif"},Allura:{weight:["regular"],fallback:"handwriting"},"Yeseva One":{weight:["regular"],fallback:"display"},"DM Serif Text":{weight:["regular","italic"],fallback:"serif"},Lusitana:{weight:["regular","700"],fallback:"serif"},Jura:{weight:["300","regular","500","600","700"],fallback:"sans-serif"},Average:{weight:["regular"],fallback:"serif"},Yrsa:{weight:["300","regular","500","600","700"],fallback:"serif"},"Sorts Mill Goudy":{weight:["regular","italic"],fallback:"serif"},"Cantata One":{weight:["regular"],fallback:"serif"},Armata:{weight:["regular"],fallback:"sans-serif"},Scada:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Abhaya Libre":{weight:["regular","500","600","700","800"],fallback:"serif"},Damion:{weight:["regular"],fallback:"handwriting"},Marmelad:{weight:["regular"],fallback:"sans-serif"},Varela:{weight:["regular"],fallback:"sans-serif"},Quantico:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Covered By Your Grace":{weight:["regular"],fallback:"handwriting"},"PT Serif Caption":{weight:["regular","italic"],fallback:"serif"},Ramabhadra:{weight:["regular"],fallback:"sans-serif"},Unna:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Encode Sans":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},Arsenal:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Black Han Sans":{weight:["regular"],fallback:"sans-serif"},"Sawarabi Gothic":{weight:["regular"],fallback:"sans-serif"},"Ubuntu Mono":{weight:["regular","italic","700","700italic"],fallback:"monospace"},"Pinyon Script":{weight:["regular"],fallback:"handwriting"},"Black Ops One":{weight:["regular"],fallback:"display"},Marcellus:{weight:["regular"],fallback:"serif"},"Fauna One":{weight:["regular"],fallback:"serif"},"Lilita One":{weight:["regular"],fallback:"display"},Sintony:{weight:["regular","700"],fallback:"sans-serif"},Khula:{weight:["300","regular","600","700","800"],fallback:"sans-serif"},Jaldi:{weight:["regular","700"],fallback:"sans-serif"},"Rubik Mono One":{weight:["regular"],fallback:"sans-serif"},Allan:{weight:["regular","700"],fallback:"display"},"Reenie Beanie":{weight:["regular"],fallback:"handwriting"},"Alex Brush":{weight:["regular"],fallback:"handwriting"},"Mr Dafoe":{weight:["regular"],fallback:"handwriting"},Palanquin:{weight:["100","200","300","regular","500","600","700"],fallback:"sans-serif"},"Encode Sans Condensed":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},Antic:{weight:["regular"],fallback:"sans-serif"},Knewave:{weight:["regular"],fallback:"display"},"Caveat Brush":{weight:["regular"],fallback:"handwriting"},Rambla:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Spinnaker:{weight:["regular"],fallback:"sans-serif"},"IBM Plex Mono":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"monospace"},Michroma:{weight:["regular"],fallback:"sans-serif"},"Nothing You Could Do":{weight:["regular"],fallback:"handwriting"},"Kelly Slab":{weight:["regular"],fallback:"display"},Boogaloo:{weight:["regular"],fallback:"display"},Chewy:{weight:["regular"],fallback:"display"},"ZCOOL XiaoWei":{weight:["regular"],fallback:"serif"},Rancho:{weight:["regular"],fallback:"handwriting"},"Noto Serif SC":{weight:["200","300","regular","500","600","700","900"],fallback:"serif"},Pangolin:{weight:["regular"],fallback:"handwriting"},"Fira Mono":{weight:["regular","500","700"],fallback:"monospace"},Forum:{weight:["regular"],fallback:"display"},"Antic Slab":{weight:["regular"],fallback:"serif"},"Alegreya Sans SC":{weight:["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Anonymous Pro":{weight:["regular","italic","700","700italic"],fallback:"monospace"},Lateef:{weight:["regular"],fallback:"handwriting"},"Annie Use Your Telescope":{weight:["regular"],fallback:"handwriting"},"Noto Sans HK":{weight:["100","300","regular","500","700","900"],fallback:"sans-serif"},"Martel Sans":{weight:["200","300","regular","600","700","800","900"],fallback:"sans-serif"},"Chakra Petch":{weight:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Rufina:{weight:["regular","700"],fallback:"serif"},"Bai Jamjuree":{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Scheherazade:{weight:["regular","700"],fallback:"serif"},Share:{weight:["regular","italic","700","700italic"],fallback:"display"},"Tenor Sans":{weight:["regular"],fallback:"sans-serif"},"DM Serif Display":{weight:["regular","italic"],fallback:"serif"},VT323:{weight:["regular"],fallback:"monospace"},"Share Tech Mono":{weight:["regular"],fallback:"monospace"},Mali:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"handwriting"},Cousine:{weight:["regular","italic","700","700italic"],fallback:"monospace"},"Cinzel Decorative":{weight:["regular","700","900"],fallback:"display"},Overlock:{weight:["regular","italic","700","700italic","900","900italic"],fallback:"display"},"Arbutus Slab":{weight:["regular"],fallback:"serif"},"Reem Kufi":{weight:["regular"],fallback:"sans-serif"},"Cabin Sketch":{weight:["regular","700"],fallback:"display"},"Saira Extra Condensed":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},Eczar:{weight:["regular","500","600","700","800"],fallback:"serif"},"Leckerli One":{weight:["regular"],fallback:"handwriting"},Krub:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Berkshire Swash":{weight:["regular"],fallback:"handwriting"},"Fredericka the Great":{weight:["regular"],fallback:"display"},"Saira Condensed":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Overpass Mono":{weight:["300","regular","600","700"],fallback:"monospace"},Itim:{weight:["regular"],fallback:"handwriting"},Rasa:{weight:["300","regular","500","600","700"],fallback:"serif"},Bevan:{weight:["regular"],fallback:"display"},"Arima Madurai":{weight:["100","200","300","regular","500","700","800","900"],fallback:"display"},Italianno:{weight:["regular"],fallback:"handwriting"},"Coda Caption":{weight:["800"],fallback:"sans-serif"},Shrikhand:{weight:["regular"],fallback:"display"},"Just Another Hand":{weight:["regular"],fallback:"handwriting"},"Saira Semi Condensed":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},Almarai:{weight:["300","regular","700","800"],fallback:"sans-serif"},"Mukta Malar":{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},Oranienbaum:{weight:["regular"],fallback:"serif"},Nobile:{weight:["regular","italic","500","500italic","700","700italic"],fallback:"sans-serif"},Candal:{weight:["regular"],fallback:"sans-serif"},"Six Caps":{weight:["regular"],fallback:"sans-serif"},"Space Mono":{weight:["regular","italic","700","700italic"],fallback:"monospace"},Capriola:{weight:["regular"],fallback:"sans-serif"},Biryani:{weight:["200","300","regular","600","700","800","900"],fallback:"sans-serif"},Halant:{weight:["300","regular","500","600","700"],fallback:"serif"},Allerta:{weight:["regular"],fallback:"sans-serif"},Trirong:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"serif"},Mallanna:{weight:["regular"],fallback:"sans-serif"},Aldrich:{weight:["regular"],fallback:"sans-serif"},Aleo:{weight:["300","300italic","regular","italic","700","700italic"],fallback:"serif"},"Suez One":{weight:["regular"],fallback:"serif"},Caudex:{weight:["regular","italic","700","700italic"],fallback:"serif"},Niconne:{weight:["regular"],fallback:"handwriting"},"Mrs Saint Delafield":{weight:["regular"],fallback:"handwriting"},Gruppo:{weight:["regular"],fallback:"display"},"Miriam Libre":{weight:["regular","700"],fallback:"sans-serif"},"Contrail One":{weight:["regular"],fallback:"display"},"Days One":{weight:["regular"],fallback:"sans-serif"},"Allerta Stencil":{weight:["regular"],fallback:"sans-serif"},"Average Sans":{weight:["regular"],fallback:"sans-serif"},"Coming Soon":{weight:["regular"],fallback:"handwriting"},Pattaya:{weight:["regular"],fallback:"sans-serif"},"Londrina Solid":{weight:["100","300","regular","900"],fallback:"display"},Bungee:{weight:["regular"],fallback:"display"},Coustard:{weight:["regular","900"],fallback:"serif"},"Marcellus SC":{weight:["regular"],fallback:"serif"},"Racing Sans One":{weight:["regular"],fallback:"display"},Bentham:{weight:["regular"],fallback:"serif"},"Bungee Inline":{weight:["regular"],fallback:"display"},Magra:{weight:["regular","700"],fallback:"sans-serif"},Judson:{weight:["regular","italic","700"],fallback:"serif"},Rochester:{weight:["regular"],fallback:"handwriting"},"Grand Hotel":{weight:["regular"],fallback:"handwriting"},Gelasio:{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},Yesteryear:{weight:["regular"],fallback:"handwriting"},Syncopate:{weight:["regular","700"],fallback:"sans-serif"},Hanuman:{weight:["regular","700"],fallback:"serif"},"Kosugi Maru":{weight:["regular"],fallback:"sans-serif"},Copse:{weight:["regular"],fallback:"serif"},Mada:{weight:["200","300","regular","500","600","700","900"],fallback:"sans-serif"},"Titan One":{weight:["regular"],fallback:"display"},"Noto Serif TC":{weight:["200","300","regular","500","600","700","900"],fallback:"serif"},Kameron:{weight:["regular","700"],fallback:"serif"},Telex:{weight:["regular"],fallback:"sans-serif"},Norican:{weight:["regular"],fallback:"handwriting"},Maitree:{weight:["200","300","regular","500","600","700"],fallback:"serif"},"IM Fell Double Pica":{weight:["regular","italic"],fallback:"serif"},Molengo:{weight:["regular"],fallback:"sans-serif"},Sunflower:{weight:["300","500","700"],fallback:"sans-serif"},"Alegreya SC":{weight:["regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"],fallback:"serif"},"Red Hat Display":{weight:["regular","italic","500","500italic","700","700italic","900","900italic"],fallback:"sans-serif"},Jua:{weight:["regular"],fallback:"sans-serif"},Ovo:{weight:["regular"],fallback:"serif"},"IBM Plex Sans Condensed":{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Nixie One":{weight:["regular"],fallback:"display"},Aladin:{weight:["regular"],fallback:"handwriting"},Arizonia:{weight:["regular"],fallback:"handwriting"},"Bubblegum Sans":{weight:["regular"],fallback:"display"},"Changa One":{weight:["regular","italic"],fallback:"display"},"Lexend Deca":{weight:["regular"],fallback:"sans-serif"},Sofia:{weight:["regular"],fallback:"handwriting"},"Jockey One":{weight:["regular"],fallback:"sans-serif"},Suranna:{weight:["regular"],fallback:"serif"},Amethysta:{weight:["regular"],fallback:"serif"},Schoolbell:{weight:["regular"],fallback:"handwriting"},"Nanum Brush Script":{weight:["regular"],fallback:"handwriting"},"Cedarville Cursive":{weight:["regular"],fallback:"handwriting"},"Cutive Mono":{weight:["regular"],fallback:"monospace"},Delius:{weight:["regular"],fallback:"handwriting"},"Raleway Dots":{weight:["regular"],fallback:"display"},Graduate:{weight:["regular"],fallback:"display"},Lustria:{weight:["regular"],fallback:"serif"},"Mukta Vaani":{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},Kadwa:{weight:["regular","700"],fallback:"serif"},"Rozha One":{weight:["regular"],fallback:"serif"},Buenard:{weight:["regular","700"],fallback:"serif"},Cambo:{weight:["regular"],fallback:"serif"},Marvel:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Krona One":{weight:["regular"],fallback:"sans-serif"},"Carrois Gothic":{weight:["regular"],fallback:"sans-serif"},Carme:{weight:["regular"],fallback:"sans-serif"},"Slabo 13px":{weight:["regular"],fallback:"serif"},Lemon:{weight:["regular"],fallback:"display"},"Love Ya Like A Sister":{weight:["regular"],fallback:"display"},Rosario:{weight:["300","regular","500","600","700","300italic","italic","500italic","600italic","700italic"],fallback:"sans-serif"},"Merienda One":{weight:["regular"],fallback:"handwriting"},"Public Sans":{weight:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"sans-serif"},"Petit Formal Script":{weight:["regular"],fallback:"handwriting"},"Ceviche One":{weight:["regular"],fallback:"display"},Voltaire:{weight:["regular"],fallback:"sans-serif"},Fresca:{weight:["regular"],fallback:"sans-serif"},"Averia Serif Libre":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"display"},Rye:{weight:["regular"],fallback:"display"},"Noto Serif KR":{weight:["200","300","regular","500","600","700","900"],fallback:"serif"},"Chelsea Market":{weight:["regular"],fallback:"display"},Calligraffitti:{weight:["regular"],fallback:"handwriting"},"Freckle Face":{weight:["regular"],fallback:"display"},"Duru Sans":{weight:["regular"],fallback:"sans-serif"},Trocchi:{weight:["regular"],fallback:"serif"},Metrophobic:{weight:["regular"],fallback:"sans-serif"},Mate:{weight:["regular","italic"],fallback:"serif"},Harmattan:{weight:["regular"],fallback:"sans-serif"},"Gilda Display":{weight:["regular"],fallback:"serif"},"Cormorant Infant":{weight:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"serif"},Spartan:{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Oxygen Mono":{weight:["regular"],fallback:"monospace"},Chonburi:{weight:["regular"],fallback:"display"},"Goudy Bookletter 1911":{weight:["regular"],fallback:"serif"},Sansita:{weight:["regular","italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},"Emilys Candy":{weight:["regular"],fallback:"display"},Amiko:{weight:["regular","600","700"],fallback:"sans-serif"},Kristi:{weight:["regular"],fallback:"handwriting"},"Palanquin Dark":{weight:["regular","500","600","700"],fallback:"sans-serif"},Lekton:{weight:["regular","italic","700"],fallback:"sans-serif"},Cutive:{weight:["regular"],fallback:"serif"},"Herr Von Muellerhoff":{weight:["regular"],fallback:"handwriting"},"GFS Didot":{weight:["regular"],fallback:"serif"},Radley:{weight:["regular","italic"],fallback:"serif"},"Sue Ellen Francisco":{weight:["regular"],fallback:"handwriting"},Pompiere:{weight:["regular"],fallback:"display"},Gabriela:{weight:["regular"],fallback:"serif"},Niramit:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Seaweed Script":{weight:["regular"],fallback:"display"},"Sedgwick Ave":{weight:["regular"],fallback:"handwriting"},Federo:{weight:["regular"],fallback:"sans-serif"},McLaren:{weight:["regular"],fallback:"display"},"IM Fell DW Pica":{weight:["regular","italic"],fallback:"serif"},Sniglet:{weight:["regular","800"],fallback:"display"},"Mr De Haviland":{weight:["regular"],fallback:"handwriting"},Shojumaru:{weight:["regular"],fallback:"display"},Poly:{weight:["regular","italic"],fallback:"serif"},Belleza:{weight:["regular"],fallback:"sans-serif"},Faustina:{weight:["regular","500","600","700","italic","500italic","600italic","700italic"],fallback:"serif"},"IM Fell English":{weight:["regular","italic"],fallback:"serif"},"Rammetto One":{weight:["regular"],fallback:"display"},Amita:{weight:["regular","700"],fallback:"handwriting"},Inder:{weight:["regular"],fallback:"sans-serif"},"Antic Didone":{weight:["regular"],fallback:"serif"},"Alike Angular":{weight:["regular"],fallback:"serif"},Montez:{weight:["regular"],fallback:"handwriting"},K2D:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"sans-serif"},UnifrakturMaguntia:{weight:["regular"],fallback:"display"},Gurajada:{weight:["regular"],fallback:"serif"},"Proza Libre":{weight:["regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"sans-serif"},Athiti:{weight:["200","300","regular","500","600","700"],fallback:"sans-serif"},Andada:{weight:["regular"],fallback:"serif"},"Liu Jian Mao Cao":{weight:["regular"],fallback:"handwriting"},Megrim:{weight:["regular"],fallback:"display"},"Vast Shadow":{weight:["regular"],fallback:"display"},Wallpoet:{weight:["regular"],fallback:"display"},Unkempt:{weight:["regular","700"],fallback:"display"},"Fanwood Text":{weight:["regular","italic"],fallback:"serif"},"Doppio One":{weight:["regular"],fallback:"sans-serif"},"Comic Neue":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"handwriting"},Corben:{weight:["regular","700"],fallback:"display"},Frijole:{weight:["regular"],fallback:"display"},Balthazar:{weight:["regular"],fallback:"serif"},Mirza:{weight:["regular","500","600","700"],fallback:"display"},"IM Fell French Canon SC":{weight:["regular"],fallback:"serif"},Brawler:{weight:["regular"],fallback:"serif"},"Oleo Script Swash Caps":{weight:["regular","700"],fallback:"display"},Mandali:{weight:["regular"],fallback:"sans-serif"},Convergence:{weight:["regular"],fallback:"sans-serif"},Fondamento:{weight:["regular","italic"],fallback:"handwriting"},Alike:{weight:["regular"],fallback:"serif"},Baumans:{weight:["regular"],fallback:"display"},Esteban:{weight:["regular"],fallback:"serif"},"Gravitas One":{weight:["regular"],fallback:"display"},Anaheim:{weight:["regular"],fallback:"sans-serif"},"Wendy One":{weight:["regular"],fallback:"sans-serif"},"Stardos Stencil":{weight:["regular","700"],fallback:"display"},"Spicy Rice":{weight:["regular"],fallback:"display"},Rakkas:{weight:["regular"],fallback:"display"},"La Belle Aurore":{weight:["regular"],fallback:"handwriting"},"Secular One":{weight:["regular"],fallback:"sans-serif"},Belgrano:{weight:["regular"],fallback:"serif"},"Bungee Shade":{weight:["regular"],fallback:"display"},"Crafty Girls":{weight:["regular"],fallback:"handwriting"},Battambang:{weight:["regular","700"],fallback:"display"},Quando:{weight:["regular"],fallback:"serif"},"Mouse Memoirs":{weight:["regular"],fallback:"sans-serif"},Gugi:{weight:["regular"],fallback:"display"},"Faster One":{weight:["regular"],fallback:"display"},"B612 Mono":{weight:["regular","italic","700","700italic"],fallback:"monospace"},Limelight:{weight:["regular"],fallback:"display"},"Short Stack":{weight:["regular"],fallback:"handwriting"},"Mountains of Christmas":{weight:["regular","700"],fallback:"display"},"Share Tech":{weight:["regular"],fallback:"sans-serif"},Laila:{weight:["300","regular","500","600","700"],fallback:"serif"},Literata:{weight:["regular","500","600","700","italic","500italic","600italic","700italic"],fallback:"serif"},"Cormorant SC":{weight:["300","regular","500","600","700"],fallback:"serif"},"Fjord One":{weight:["regular"],fallback:"serif"},Podkova:{weight:["regular","500","600","700","800"],fallback:"serif"},Homenaje:{weight:["regular"],fallback:"sans-serif"},"Walter Turncoat":{weight:["regular"],fallback:"handwriting"},Sen:{weight:["regular","700","800"],fallback:"sans-serif"},"Patrick Hand SC":{weight:["regular"],fallback:"handwriting"},Voces:{weight:["regular"],fallback:"display"},Qwigley:{weight:["regular"],fallback:"handwriting"},"Happy Monkey":{weight:["regular"],fallback:"display"},"Rouge Script":{weight:["regular"],fallback:"handwriting"},"Baloo Chettan 2":{weight:["regular","500","600","700","800"],fallback:"display"},NTR:{weight:["regular"],fallback:"sans-serif"},Skranji:{weight:["regular","700"],fallback:"display"},Strait:{weight:["regular"],fallback:"sans-serif"},"Dawning of a New Day":{weight:["regular"],fallback:"handwriting"},Iceland:{weight:["regular"],fallback:"display"},"Expletus Sans":{weight:["regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"display"},"Montserrat Subrayada":{weight:["regular","700"],fallback:"sans-serif"},Oregano:{weight:["regular","italic"],fallback:"display"},"Give You Glory":{weight:["regular"],fallback:"handwriting"},Alata:{weight:["regular"],fallback:"sans-serif"},Puritan:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Mako:{weight:["regular"],fallback:"sans-serif"},Andika:{weight:["regular"],fallback:"sans-serif"},"Cormorant Upright":{weight:["300","regular","500","600","700"],fallback:"serif"},Zeyada:{weight:["regular"],fallback:"handwriting"},"Bowlby One":{weight:["regular"],fallback:"display"},"Aref Ruqaa":{weight:["regular","700"],fallback:"serif"},Numans:{weight:["regular"],fallback:"sans-serif"},Kurale:{weight:["regular"],fallback:"serif"},Spirax:{weight:["regular"],fallback:"display"},"Clicker Script":{weight:["regular"],fallback:"handwriting"},"Waiting for the Sunrise":{weight:["regular"],fallback:"handwriting"},"Holtwood One SC":{weight:["regular"],fallback:"serif"},Katibeh:{weight:["regular"],fallback:"display"},"Carrois Gothic SC":{weight:["regular"],fallback:"sans-serif"},Livvic:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","900","900italic"],fallback:"sans-serif"},Eater:{weight:["regular"],fallback:"display"},"Fontdiner Swanky":{weight:["regular"],fallback:"display"},"Finger Paint":{weight:["regular"],fallback:"display"},Bellefair:{weight:["regular"],fallback:"serif"},"Wire One":{weight:["regular"],fallback:"sans-serif"},Kosugi:{weight:["regular"],fallback:"sans-serif"},Charm:{weight:["regular","700"],fallback:"handwriting"},"Delius Swash Caps":{weight:["regular"],fallback:"handwriting"},"Vesper Libre":{weight:["regular","500","700","900"],fallback:"serif"},"Red Hat Text":{weight:["regular","italic","500","500italic","700","700italic"],fallback:"sans-serif"},Gafata:{weight:["regular"],fallback:"sans-serif"},"Averia Sans Libre":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"display"},"Denk One":{weight:["regular"],fallback:"sans-serif"},Geo:{weight:["regular","italic"],fallback:"sans-serif"},Tauri:{weight:["regular"],fallback:"sans-serif"},"Cherry Swash":{weight:["regular","700"],fallback:"display"},Codystar:{weight:["300","regular"],fallback:"display"},"Cantora One":{weight:["regular"],fallback:"sans-serif"},"Encode Sans Semi Condensed":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Nova Square":{weight:["regular"],fallback:"display"},BioRhyme:{weight:["200","300","regular","700","800"],fallback:"serif"},Timmana:{weight:["regular"],fallback:"sans-serif"},Atma:{weight:["300","regular","500","600","700"],fallback:"display"},Tienne:{weight:["regular","700","900"],fallback:"serif"},Meddon:{weight:["regular"],fallback:"handwriting"},Galada:{weight:["regular"],fallback:"display"},Padauk:{weight:["regular","700"],fallback:"sans-serif"},"Loved by the King":{weight:["regular"],fallback:"handwriting"},"The Girl Next Door":{weight:["regular"],fallback:"handwriting"},"Darker Grotesque":{weight:["300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Life Savers":{weight:["regular","700","800"],fallback:"display"},Bilbo:{weight:["regular"],fallback:"handwriting"},Shanti:{weight:["regular"],fallback:"sans-serif"},"Headland One":{weight:["regular"],fallback:"serif"},"Euphoria Script":{weight:["regular"],fallback:"handwriting"},Imprima:{weight:["regular"],fallback:"sans-serif"},"Aguafina Script":{weight:["regular"],fallback:"handwriting"},"Baloo 2":{weight:["regular","500","600","700","800"],fallback:"display"},"Over the Rainbow":{weight:["regular"],fallback:"handwriting"},Sarpanch:{weight:["regular","500","600","700","800","900"],fallback:"sans-serif"},Orienta:{weight:["regular"],fallback:"sans-serif"},"Spectral SC":{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"serif"},"Port Lligat Sans":{weight:["regular"],fallback:"sans-serif"},Artifika:{weight:["regular"],fallback:"serif"},Ledger:{weight:["regular"],fallback:"serif"},Ruluko:{weight:["regular"],fallback:"sans-serif"},Sail:{weight:["regular"],fallback:"display"},Alatsi:{weight:["regular"],fallback:"sans-serif"},"Sonsie One":{weight:["regular"],fallback:"display"},"Bilbo Swash Caps":{weight:["regular"],fallback:"handwriting"},Slackey:{weight:["regular"],fallback:"display"},Salsa:{weight:["regular"],fallback:"display"},Rationale:{weight:["regular"],fallback:"sans-serif"},"Hepta Slab":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"serif"},Nosifer:{weight:["regular"],fallback:"display"},Dekko:{weight:["regular"],fallback:"handwriting"},"Encode Sans Expanded":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Lily Script One":{weight:["regular"],fallback:"display"},"Zilla Slab Highlight":{weight:["regular","700"],fallback:"display"},Dokdo:{weight:["regular"],fallback:"handwriting"},"Kotta One":{weight:["regular"],fallback:"serif"},"Macondo Swash Caps":{weight:["regular"],fallback:"display"},"Encode Sans Semi Expanded":{weight:["100","200","300","regular","500","600","700","800","900"],fallback:"sans-serif"},"Prosto One":{weight:["regular"],fallback:"display"},"Trade Winds":{weight:["regular"],fallback:"display"},Farsan:{weight:["regular"],fallback:"display"},Manuale:{weight:["regular","500","600","700","italic","500italic","600italic","700italic"],fallback:"serif"},Creepster:{weight:["regular"],fallback:"display"},"Medula One":{weight:["regular"],fallback:"display"},Ranchers:{weight:["regular"],fallback:"display"},"David Libre":{weight:["regular","500","700"],fallback:"serif"},"Libre Barcode 39":{weight:["regular"],fallback:"display"},"Vampiro One":{weight:["regular"],fallback:"display"},Metamorphous:{weight:["regular"],fallback:"display"},"Bubbler One":{weight:["regular"],fallback:"sans-serif"},"Nova Mono":{weight:["regular"],fallback:"monospace"},"Princess Sofia":{weight:["regular"],fallback:"handwriting"},"Just Me Again Down Here":{weight:["regular"],fallback:"handwriting"},Notable:{weight:["regular"],fallback:"sans-serif"},"Fascinate Inline":{weight:["regular"],fallback:"display"},Vibur:{weight:["regular"],fallback:"handwriting"},"Vollkorn SC":{weight:["regular","600","700","900"],fallback:"serif"},Crushed:{weight:["regular"],fallback:"display"},Sumana:{weight:["regular","700"],fallback:"serif"},Elsie:{weight:["regular","900"],fallback:"display"},Ranga:{weight:["regular","700"],fallback:"display"},"Port Lligat Slab":{weight:["regular"],fallback:"serif"},Amarante:{weight:["regular"],fallback:"display"},"Ruslan Display":{weight:["regular"],fallback:"display"},"Germania One":{weight:["regular"],fallback:"display"},"Sirin Stencil":{weight:["regular"],fallback:"display"},Pavanam:{weight:["regular"],fallback:"sans-serif"},Peralta:{weight:["regular"],fallback:"display"},"Scope One":{weight:["regular"],fallback:"serif"},Jomolhari:{weight:["regular"],fallback:"serif"},Kranky:{weight:["regular"],fallback:"display"},"Yatra One":{weight:["regular"],fallback:"display"},"Jacques Francois Shadow":{weight:["regular"],fallback:"display"},Ribeye:{weight:["regular"],fallback:"display"},"Averia Libre":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"display"},"Saira Stencil One":{weight:["regular"],fallback:"display"},"Cherry Cream Soda":{weight:["regular"],fallback:"display"},"Mukta Mahee":{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},Srisakdi:{weight:["regular","700"],fallback:"display"},Trochut:{weight:["regular","italic","700"],fallback:"display"},Coiny:{weight:["regular"],fallback:"display"},"Ma Shan Zheng":{weight:["regular"],fallback:"handwriting"},Asul:{weight:["regular","700"],fallback:"sans-serif"},Ewert:{weight:["regular"],fallback:"display"},Arya:{weight:["regular","700"],fallback:"sans-serif"},"Hanalei Fill":{weight:["regular"],fallback:"display"},Grenze:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"serif"},"Ribeye Marrow":{weight:["regular"],fallback:"display"},"IM Fell English SC":{weight:["regular"],fallback:"serif"},"Chau Philomene One":{weight:["regular","italic"],fallback:"sans-serif"},Sarina:{weight:["regular"],fallback:"display"},Chicle:{weight:["regular"],fallback:"display"},Manjari:{weight:["100","regular","700"],fallback:"sans-serif"},Montaga:{weight:["regular"],fallback:"serif"},Italiana:{weight:["regular"],fallback:"serif"},Akronim:{weight:["regular"],fallback:"display"},Habibi:{weight:["regular"],fallback:"serif"},Englebert:{weight:["regular"],fallback:"sans-serif"},Dynalight:{weight:["regular"],fallback:"display"},"Mate SC":{weight:["regular"],fallback:"serif"},"Henny Penny":{weight:["regular"],fallback:"display"},"Sree Krushnadevaraya":{weight:["regular"],fallback:"serif"},Engagement:{weight:["regular"],fallback:"handwriting"},Girassol:{weight:["regular"],fallback:"display"},"Kite One":{weight:["regular"],fallback:"sans-serif"},"Ibarra Real Nova":{weight:["regular","italic","600","600italic","700","700italic"],fallback:"serif"},Gaegu:{weight:["300","regular","700"],fallback:"handwriting"},Fenix:{weight:["regular"],fallback:"serif"},"Pirata One":{weight:["regular"],fallback:"display"},"Tulpen One":{weight:["regular"],fallback:"display"},"IM Fell Great Primer":{weight:["regular","italic"],fallback:"serif"},Chathura:{weight:["100","300","regular","700","800"],fallback:"sans-serif"},Unlock:{weight:["regular"],fallback:"display"},"Nova Round":{weight:["regular"],fallback:"display"},Sura:{weight:["regular","700"],fallback:"serif"},"Kumar One":{weight:["regular"],fallback:"display"},Baskervville:{weight:["regular","italic"],fallback:"serif"},Quintessential:{weight:["regular"],fallback:"handwriting"},Milonga:{weight:["regular"],fallback:"display"},Bayon:{weight:["regular"],fallback:"display"},"Be Vietnam":{weight:["100","100italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],fallback:"sans-serif"},"Crimson Pro":{weight:["200","300","regular","500","600","700","800","900","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],fallback:"serif"},B612:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"League Script":{weight:["regular"],fallback:"handwriting"},"Inknut Antiqua":{weight:["300","regular","500","600","700","800","900"],fallback:"serif"},Mogra:{weight:["regular"],fallback:"display"},"Mystery Quest":{weight:["regular"],fallback:"display"},"Monsieur La Doulaise":{weight:["regular"],fallback:"handwriting"},Vibes:{weight:["regular"],fallback:"display"},Rosarivo:{weight:["regular","italic"],fallback:"serif"},"Uncial Antiqua":{weight:["regular"],fallback:"display"},Dorsa:{weight:["regular"],fallback:"sans-serif"},Almendra:{weight:["regular","italic","700","700italic"],fallback:"serif"},Diplomata:{weight:["regular"],fallback:"display"},Simonetta:{weight:["regular","italic","900","900italic"],fallback:"display"},"New Rocker":{weight:["regular"],fallback:"display"},Snippet:{weight:["regular"],fallback:"sans-serif"},Petrona:{weight:["regular"],fallback:"serif"},Ramaraja:{weight:["regular"],fallback:"serif"},"Averia Gruesa Libre":{weight:["regular"],fallback:"display"},"Baloo Bhaina 2":{weight:["regular","500","600","700","800"],fallback:"display"},Kodchasan:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Meera Inimai":{weight:["regular"],fallback:"sans-serif"},Flamenco:{weight:["300","regular"],fallback:"display"},Khmer:{weight:["regular"],fallback:"display"},Paprika:{weight:["regular"],fallback:"display"},Koulen:{weight:["regular"],fallback:"display"},Mansalva:{weight:["regular"],fallback:"handwriting"},"Lovers Quarrel":{weight:["regular"],fallback:"handwriting"},Condiment:{weight:["regular"],fallback:"handwriting"},"Baloo Thambi 2":{weight:["regular","500","600","700","800"],fallback:"display"},Stoke:{weight:["300","regular"],fallback:"serif"},Barrio:{weight:["regular"],fallback:"display"},Barriecito:{weight:["regular"],fallback:"display"},"Donegal One":{weight:["regular"],fallback:"serif"},Kavoon:{weight:["regular"],fallback:"display"},"Big Shoulders Display":{weight:["100","300","regular","500","600","700","800","900"],fallback:"display"},Mina:{weight:["regular","700"],fallback:"sans-serif"},"Big Shoulders Text":{weight:["100","300","regular","500","600","700","800","900"],fallback:"display"},Prociono:{weight:["regular"],fallback:"serif"},"Text Me One":{weight:["regular"],fallback:"sans-serif"},"IM Fell French Canon":{weight:["regular","italic"],fallback:"serif"},"Overlock SC":{weight:["regular"],fallback:"display"},Cagliostro:{weight:["regular"],fallback:"sans-serif"},"Marko One":{weight:["regular"],fallback:"serif"},"Swanky and Moo Moo":{weight:["regular"],fallback:"handwriting"},"Maiden Orange":{weight:["regular"],fallback:"display"},Blinker:{weight:["100","200","300","regular","600","700","800","900"],fallback:"sans-serif"},Miniver:{weight:["regular"],fallback:"display"},Angkor:{weight:["regular"],fallback:"display"},Chango:{weight:["regular"],fallback:"display"},Thasadith:{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},Modak:{weight:["regular"],fallback:"display"},Junge:{weight:["regular"],fallback:"serif"},"Stint Ultra Condensed":{weight:["regular"],fallback:"display"},Stalemate:{weight:["regular"],fallback:"handwriting"},Tillana:{weight:["regular","500","600","700","800"],fallback:"handwriting"},UnifrakturCook:{weight:["700"],fallback:"display"},"Rum Raisin":{weight:["regular"],fallback:"sans-serif"},Farro:{weight:["300","regular","500","700"],fallback:"sans-serif"},"Delius Unicase":{weight:["regular","700"],fallback:"handwriting"},Sancreek:{weight:["regular"],fallback:"display"},Julee:{weight:["regular"],fallback:"handwriting"},Margarine:{weight:["regular"],fallback:"display"},"Lakki Reddy":{weight:["regular"],fallback:"handwriting"},"Stint Ultra Expanded":{weight:["regular"],fallback:"display"},"Bigshot One":{weight:["regular"],fallback:"display"},Griffy:{weight:["regular"],fallback:"display"},Moul:{weight:["regular"],fallback:"display"},"Diplomata SC":{weight:["regular"],fallback:"display"},Oxanium:{weight:["200","300","regular","500","600","700","800"],fallback:"display"},Offside:{weight:["regular"],fallback:"display"},"Fira Code":{weight:["300","regular","500","600","700"],fallback:"monospace"},"Eagle Lake":{weight:["regular"],fallback:"handwriting"},Flavors:{weight:["regular"],fallback:"display"},"Londrina Outline":{weight:["regular"],fallback:"display"},Tomorrow:{weight:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],fallback:"sans-serif"},Nokora:{weight:["regular","700"],fallback:"serif"},Calistoga:{weight:["regular"],fallback:"display"},Gotu:{weight:["regular"],fallback:"sans-serif"},"Della Respira":{weight:["regular"],fallback:"serif"},"Cormorant Unicase":{weight:["300","regular","500","600","700"],fallback:"serif"},"Libre Caslon Text":{weight:["regular","italic","700"],fallback:"serif"},Buda:{weight:["300"],fallback:"display"},Asar:{weight:["regular"],fallback:"serif"},"Poller One":{weight:["regular"],fallback:"display"},"Autour One":{weight:["regular"],fallback:"display"},"Nova Slim":{weight:["regular"],fallback:"display"},Underdog:{weight:["regular"],fallback:"display"},Redressed:{weight:["regular"],fallback:"handwriting"},"Yeon Sung":{weight:["regular"],fallback:"display"},Content:{weight:["regular","700"],fallback:"display"},Kantumruy:{weight:["300","regular","700"],fallback:"sans-serif"},"Baloo Paaji 2":{weight:["regular","500","600","700","800"],fallback:"display"},"Jim Nightshade":{weight:["regular"],fallback:"handwriting"},"Glass Antiqua":{weight:["regular"],fallback:"display"},"Snowburst One":{weight:["regular"],fallback:"display"},"Gamja Flower":{weight:["regular"],fallback:"handwriting"},Revalia:{weight:["regular"],fallback:"display"},"Metal Mania":{weight:["regular"],fallback:"display"},Charmonman:{weight:["regular","700"],fallback:"handwriting"},"IM Fell DW Pica SC":{weight:["regular"],fallback:"serif"},Inika:{weight:["regular","700"],fallback:"serif"},"Elsie Swash Caps":{weight:["regular","900"],fallback:"display"},Wellfleet:{weight:["regular"],fallback:"display"},"Chela One":{weight:["regular"],fallback:"display"},"Rhodium Libre":{weight:["regular"],fallback:"serif"},"Mrs Sheppards":{weight:["regular"],fallback:"handwriting"},"Sedgwick Ave Display":{weight:["regular"],fallback:"handwriting"},"Modern Antiqua":{weight:["regular"],fallback:"display"},"Ravi Prakash":{weight:["regular"],fallback:"display"},Galdeano:{weight:["regular"],fallback:"sans-serif"},Oldenburg:{weight:["regular"],fallback:"display"},Arbutus:{weight:["regular"],fallback:"display"},"Poor Story":{weight:["regular"],fallback:"display"},"Hi Melody":{weight:["regular"],fallback:"handwriting"},"Joti One":{weight:["regular"],fallback:"display"},"Nova Flat":{weight:["regular"],fallback:"display"},"ZCOOL QingKe HuangYou":{weight:["regular"],fallback:"display"},"Linden Hill":{weight:["regular","italic"],fallback:"serif"},Bokor:{weight:["regular"],fallback:"display"},"Courier Prime":{weight:["regular","italic","700","700italic"],fallback:"monospace"},Trykker:{weight:["regular"],fallback:"serif"},KoHo:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Song Myung":{weight:["regular"],fallback:"serif"},Ruthie:{weight:["regular"],fallback:"handwriting"},"Libre Barcode 39 Extended Text":{weight:["regular"],fallback:"display"},Chilanka:{weight:["regular"],fallback:"handwriting"},Fahkwang:{weight:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],fallback:"sans-serif"},Felipa:{weight:["regular"],fallback:"handwriting"},Monofett:{weight:["regular"],fallback:"display"},"Odibee Sans":{weight:["regular"],fallback:"display"},Smythe:{weight:["regular"],fallback:"display"},"Major Mono Display":{weight:["regular"],fallback:"monospace"},Jomhuria:{weight:["regular"],fallback:"display"},"Croissant One":{weight:["regular"],fallback:"display"},Dangrek:{weight:["regular"],fallback:"display"},"Original Surfer":{weight:["regular"],fallback:"display"},Bahiana:{weight:["regular"],fallback:"display"},Gorditas:{weight:["regular","700"],fallback:"display"},"Odor Mean Chey":{weight:["regular"],fallback:"display"},Iceberg:{weight:["regular"],fallback:"display"},MedievalSharp:{weight:["regular"],fallback:"display"},"Caesar Dressing":{weight:["regular"],fallback:"display"},Sahitya:{weight:["regular","700"],fallback:"serif"},Stylish:{weight:["regular"],fallback:"sans-serif"},"Nova Cut":{weight:["regular"],fallback:"display"},"Purple Purse":{weight:["regular"],fallback:"display"},Devonshire:{weight:["regular"],fallback:"handwriting"},Smokum:{weight:["regular"],fallback:"display"},"Almendra Display":{weight:["regular"],fallback:"display"},Galindo:{weight:["regular"],fallback:"display"},Preahvihear:{weight:["regular"],fallback:"display"},Siemreap:{weight:["regular"],fallback:"display"},"Irish Grover":{weight:["regular"],fallback:"display"},Gupter:{weight:["regular","500","700"],fallback:"serif"},"Meie Script":{weight:["regular"],fallback:"handwriting"},"Libre Barcode 128":{weight:["regular"],fallback:"display"},"Keania One":{weight:["regular"],fallback:"display"},"GFS Neohellenic":{weight:["regular","italic","700","700italic"],fallback:"sans-serif"},"Cute Font":{weight:["regular"],fallback:"display"},"Londrina Shadow":{weight:["regular"],fallback:"display"},"East Sea Dokdo":{weight:["regular"],fallback:"handwriting"},"Libre Barcode 39 Extended":{weight:["regular"],fallback:"display"},Risque:{weight:["regular"],fallback:"display"},Lancelot:{weight:["regular"],fallback:"display"},"Libre Caslon Display":{weight:["regular"],fallback:"serif"},Plaster:{weight:["regular"],fallback:"display"},"Goblin One":{weight:["regular"],fallback:"display"},Asset:{weight:["regular"],fallback:"display"},"Almendra SC":{weight:["regular"],fallback:"serif"},"Jacques Francois":{weight:["regular"],fallback:"serif"},"Jolly Lodger":{weight:["regular"],fallback:"display"},"Lexend Exa":{weight:["regular"],fallback:"sans-serif"},Molle:{weight:["italic"],fallback:"handwriting"},Kavivanar:{weight:["regular"],fallback:"handwriting"},"Kirang Haerang":{weight:["regular"],fallback:"display"},Piedra:{weight:["regular"],fallback:"display"},"Atomic Age":{weight:["regular"],fallback:"display"},"Kulim Park":{weight:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic"],fallback:"sans-serif"},"Libre Barcode 39 Text":{weight:["regular"],fallback:"display"},"IM Fell Great Primer SC":{weight:["regular"],fallback:"serif"},"Tenali Ramakrishna":{weight:["regular"],fallback:"sans-serif"},Butcherman:{weight:["regular"],fallback:"display"},"Dr Sugiyama":{weight:["regular"],fallback:"handwriting"},"Geostar Fill":{weight:["regular"],fallback:"display"},Romanesco:{weight:["regular"],fallback:"handwriting"},"Libre Barcode 128 Text":{weight:["regular"],fallback:"display"},Sunshiney:{weight:["regular"],fallback:"handwriting"},"Kumar One Outline":{weight:["regular"],fallback:"display"},Peddana:{weight:["regular"],fallback:"serif"},"Baloo Bhai 2":{weight:["regular","500","600","700","800"],fallback:"display"},"Kdam Thmor":{weight:["regular"],fallback:"display"},"Ruge Boogie":{weight:["regular"],fallback:"handwriting"},Freehand:{weight:["regular"],fallback:"display"},Bonbon:{weight:["regular"],fallback:"handwriting"},Caladea:{weight:["regular","italic","700","700italic"],fallback:"serif"},"Single Day":{weight:["regular"],fallback:"display"},"Baloo Tamma 2":{weight:["regular","500","600","700","800"],fallback:"display"},"Inria Sans":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"sans-serif"},Hanalei:{weight:["regular"],fallback:"display"},"Emblema One":{weight:["regular"],fallback:"display"},"Seymour One":{weight:["regular"],fallback:"sans-serif"},"Miss Fajardose":{weight:["regular"],fallback:"handwriting"},Sevillana:{weight:["regular"],fallback:"display"},"Inria Serif":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"serif"},"Bungee Outline":{weight:["regular"],fallback:"display"},Metal:{weight:["regular"],fallback:"display"},"IM Fell Double Pica SC":{weight:["regular"],fallback:"serif"},"Lexend Giga":{weight:["regular"],fallback:"sans-serif"},"ZCOOL KuaiLe":{weight:["regular"],fallback:"display"},Astloch:{weight:["regular","700"],fallback:"display"},"Mr Bedfort":{weight:["regular"],fallback:"handwriting"},Macondo:{weight:["regular"],fallback:"display"},"Butterfly Kids":{weight:["regular"],fallback:"handwriting"},"Supermercado One":{weight:["regular"],fallback:"display"},Fruktur:{weight:["regular"],fallback:"display"},Taprom:{weight:["regular"],fallback:"display"},Lacquer:{weight:["regular"],fallback:"display"},"Black And White Picture":{weight:["regular"],fallback:"sans-serif"},"Bigelow Rules":{weight:["regular"],fallback:"display"},"Beth Ellen":{weight:["regular"],fallback:"handwriting"},"Sofadi One":{weight:["regular"],fallback:"display"},Combo:{weight:["regular"],fallback:"display"},Bellota:{weight:["300","300italic","regular","italic","700","700italic"],fallback:"display"},Federant:{weight:["regular"],fallback:"display"},"Miltonian Tattoo":{weight:["regular"],fallback:"display"},"Londrina Sketch":{weight:["regular"],fallback:"display"},Suwannaphum:{weight:["regular"],fallback:"display"},"Bungee Hairline":{weight:["regular"],fallback:"display"},Fascinate:{weight:["regular"],fallback:"display"},"Erica One":{weight:["regular"],fallback:"display"},"Nova Oval":{weight:["regular"],fallback:"display"},"Baloo Da 2":{weight:["regular","500","600","700","800"],fallback:"display"},"Sulphur Point":{weight:["300","regular","700"],fallback:"sans-serif"},Aubrey:{weight:["regular"],fallback:"display"},Gidugu:{weight:["regular"],fallback:"sans-serif"},"Bellota Text":{weight:["300","300italic","regular","italic","700","700italic"],fallback:"display"},"Nova Script":{weight:["regular"],fallback:"display"},Miltonian:{weight:["regular"],fallback:"display"},Gayathri:{weight:["100","regular","700"],fallback:"sans-serif"},Geostar:{weight:["regular"],fallback:"display"},Moulpali:{weight:["regular"],fallback:"display"},"Passero One":{weight:["regular"],fallback:"display"},"Stalinist One":{weight:["regular"],fallback:"display"},"Long Cang":{weight:["regular"],fallback:"handwriting"},Solway:{weight:["300","regular","500","700","800"],fallback:"serif"},"Zhi Mang Xing":{weight:["regular"],fallback:"handwriting"},"Baloo Tammudu 2":{weight:["regular","500","600","700","800"],fallback:"display"},Chenla:{weight:["regular"],fallback:"display"},Suravaram:{weight:["regular"],fallback:"serif"},Fasthand:{weight:["regular"],fallback:"serif"},Kenia:{weight:["regular"],fallback:"display"},Dhurjati:{weight:["regular"],fallback:"sans-serif"},"Lexend Tera":{weight:["regular"],fallback:"sans-serif"},"BioRhyme Expanded":{weight:["200","300","regular","700","800"],fallback:"serif"},"Turret Road":{weight:["200","300","regular","500","700","800"],fallback:"display"},Warnes:{weight:["regular"],fallback:"display"},"Viaoda Libre":{weight:["regular"],fallback:"display"},"Lexend Mega":{weight:["regular"],fallback:"sans-serif"},Bahianita:{weight:["regular"],fallback:"display"},Manrope:{weight:["200","300","regular","500","600","700","800"],fallback:"sans-serif"},"Lexend Zetta":{weight:["regular"],fallback:"sans-serif"},"Lexend Peta":{weight:["regular"],fallback:"sans-serif"}});function Oe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var je=function(e){f()(a,e);var t=Oe(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=this,t=this.props,a=t.setAttributes,i=t.attributes,r=t.device,n=void 0===r?"":r,c=t.showFontSize,s=void 0!==c&&c,g=t.showFontFamily,b=void 0!==g&&g,u=t.showFontWeight,d=void 0!==u&&u,p=t.showTextTransform,f=void 0!==p&&p,h=t.showLineHeight,m=void 0!==h&&h,k=t.showLetterSpacing,y=void 0!==k&&k,v=t.disableAdvancedToggle,w=void 0!==v&&v,O=t.fontSizePlaceholder,j=void 0===O?"17":O,_=[{value:"",label:Object(T.__)("Select font","generateblocks")},{value:"Arial",label:"Arial"},{value:"Helvetica",label:"Helvetica"},{value:"Times New Roman",label:"Times New Roman"},{value:"Georgia",label:"Georgia"}];Object.keys(we).slice(0,20).forEach((function(e){_.push({value:e,label:e})})),_.push({value:"other",label:Object(T.__)("Other","generateblocks")});var S=[{value:"",label:Object(T.__)("Default","generateblocks")},{value:"normal",label:Object(T.__)("Normal","generateblocks")},{value:"bold",label:Object(T.__)("Bold","generateblocks")},{value:"100",label:"100"},{value:"200",label:"200"},{value:"300",label:"300"},{value:"400",label:"400"},{value:"500",label:"500"},{value:"600",label:"600"},{value:"700",label:"700"},{value:"800",label:"800"},{value:"900",label:"900"}],B=[{value:"",label:Object(T.__)("Default","generateblocks")},{value:"uppercase",label:Object(T.__)("Uppercase","generateblocks")},{value:"lowercase",label:Object(T.__)("Lowercase","generateblocks")},{value:"capitalize",label:Object(T.__)("Capitalize","generateblocks")},{value:"initial",label:Object(T.__)("Normal","generateblocks")}];void 0!==we[i.fontFamily]&&void 0!==we[i.fontFamily].weight&&(S=[{value:"",label:Object(T.__)("Default","generateblocks")},{value:"normal",label:Object(T.__)("Normal","generateblocks")},{value:"bold",label:Object(T.__)("Bold","generateblocks")}],we[i.fontFamily].weight.filter((function(e){var t=e.match(/[a-z]/g),a=e.match(/[0-9]/g);return!(t&&a||"italic"===e)})).forEach((function(e){S.push({value:e,label:e})})));var D=function(e){"other"===e&&(e="");i.fontWeight;a({fontFamily:e}),i.fontWeight&&Object.values(S).indexOf(i.fontWeight),void 0!==we[e]?a({googleFont:!0,fontFamilyFallback:we[e].fallback,googleFontVariants:we[e].weight.join(", ")}):a({googleFont:!1,fontFamilyFallback:"",googleFontVariants:""})},R=function(e){a({fontFamily:e.target.value}),D(e.target.value)},x=function(e,t){return i[e+t]},M=function(e,t){return e+t},z=i.showAdvancedTypography;w&&(z=!0);var L=j;"Tablet"===n&&i.fontSize&&(L=i.fontSize),"Mobile"===n&&(i.fontSizeTablet?L=i.fontSizeTablet:i.fontSize&&(L=i.fontSize));var P="";return"Tablet"===n&&i.lineHeight&&(P=i.lineHeight),"Mobile"===n&&(i.lineHeightTablet?P=i.lineHeightTablet:i.lineHeight&&(P=i.lineHeight)),Object(l.createElement)(l.Fragment,null,Object(l.createElement)("div",{className:"components-gblocks-typography-weight-transform"},d&&Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Weight","generateblocks"),value:i.fontWeight,options:S,onChange:function(e){a({fontWeight:e})},className:"components-base-control"}),f&&Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Transform","generateblocks"),value:i.textTransform,options:B,onChange:function(e){a({textTransform:e})},className:"components-base-control"})),!w&&Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Show Advanced Typography","generateblocks"),checked:!!i.showAdvancedTypography,onChange:function(e){a({showAdvancedTypography:e})}}),b&&z&&Object(l.createElement)(C.BaseControl,{className:"gblocks-font-family-shortcuts"},Object(l.createElement)("span",{className:"components-base-control__label"},Object(T.__)("Font Family","generateblocks")),Object(l.createElement)("select",{className:"components-select-control__input components-select-control__input--gblocks-fontfamily",onChange:R,onBlur:R},_.map((function(e,t){return Object(l.createElement)("option",{key:"".concat(e.label,"-").concat(e.value,"-").concat(t),value:e.value},e.label)})))),b&&z&&Object(l.createElement)(C.TextControl,{value:i.fontFamily,placeholder:Object(T.__)("Enter font name","generateblocks"),onChange:function(e){return D(e)}}),b&&""!==i.fontFamily&&z&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Google Font","generateblocks"),checked:!!i.googleFont,onChange:function(e){a({googleFont:e}),e&&void 0!==we[i.fontFamily]&&a({fontFamilyFallback:we[i.fontFamily].fallback,googleFontVariants:we[i.fontFamily].weight.join(", ")})}}),!!i.googleFont&&Object(l.createElement)(C.TextControl,{label:Object(T.__)("Variants","generateblocks"),value:i.googleFontVariants,placeholder:Object(T.__)("300, 400, 400i","generateblocks"),onChange:function(e){a({googleFontVariants:e})}})),b&&z&&Object(l.createElement)(C.TextControl,{label:Object(T.__)("Font Family Fallback","generateblocks"),value:i.fontFamilyFallback,placeholder:Object(T.__)("sans-serif","generateblocks"),onChange:function(e){a({fontFamilyFallback:e})}}),s&&z&&Object(l.createElement)(C.BaseControl,null,Object(l.createElement)(E,{label:Object(T.__)("Font Size","generateblocks"),value:i.fontSizeUnit,units:["px","em","%"],onClick:function(e){a({fontSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:x("fontSize",n)||"",placeholder:L,onChange:function(e){var t=M("fontSize",n);a(o()({},t,parseFloat(e)))},min:1,autoComplete:"off"}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){var t=M("fontSize",n);a(o()({},t,e.props.defaultFontSize))}},Object(T.__)("Reset","generateblocks")))),m&&z&&Object(l.createElement)(C.BaseControl,null,Object(l.createElement)(E,{label:Object(T.__)("Line Height","generateblocks"),value:i.lineHeightUnit,units:["px","em","%"],onClick:function(e){a({lineHeightUnit:e})}}),Object(l.createElement)("div",{className:"components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:x("lineHeight",n)||0===x("lineHeight",n)?x("lineHeight",n):"",placeholder:P,onChange:function(e){var t=M("lineHeight",n);a(o()({},t,e))},onBlur:function(){var e=M("lineHeight",n);a(o()({},e,parseFloat(x("lineHeight",n))))},onClick:function(e){e.currentTarget.focus()},min:0,step:.1,autoComplete:"off"}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){var t=M("lineHeight",n);a(o()({},t,e.props.defaultLineHeight))}},Object(T.__)("Reset","generateblocks")))),y&&z&&Object(l.createElement)(C.BaseControl,null,Object(l.createElement)(E,{label:Object(T.__)("Letter Spacing","generateblocks"),value:"em",units:["em"],onClick:function(){return!1}}),Object(l.createElement)("div",{className:"components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:x("letterSpacing",n)||"",placeholder:"0.01",onChange:function(e){var t=M("letterSpacing",n);a(o()({},t,e))},onBlur:function(){var e=M("letterSpacing",n);a(o()({},e,parseFloat(x("letterSpacing",n))))},onClick:function(e){e.currentTarget.focus()},min:-1,step:.01,autoComplete:"off"}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){var t=M("letterSpacing",n);a(o()({},t,e.props.defaultLetterSpacing))}},Object(T.__)("Reset","generateblocks")))))}}]),a}(l.Component);a(39);function Te(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Ce=function(e){f()(a,e);var t=Te(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=this,t=this.props,a=t.attributes,i=t.setAttributes,r=t.attrGradient,n=t.attrGradientDirection,c=t.attrGradientColorOne,s=t.attrGradientColorOneOpacity,g=t.attrGradientColorStopOne,b=t.attrGradientColorTwo,u=t.attrGradientColorTwoOpacity,d=t.attrGradientColorStopTwo,p=t.defaultColorOne,f=t.defaultColorTwo,h=a.gradientSelector,m="element"===h?Object(T.__)("Displays behind the background image.","generateblocks"):Object(T.__)("Displays in front of the background image.","generateblocks");return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Use Gradient","generateblocks"),checked:!!a[r],onChange:function(t){i(o()({},e.props.attrGradient,t))}}),!!a[r]&&Object(l.createElement)(l.Fragment,null,void 0!==h&&Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Selector","generateblocks"),help:m,value:h,options:[{label:Object(T.__)("Element","generateblocks"),value:"element"},{label:Object(T.__)("Pseudo Element","generateblocks"),value:"pseudo-element"}],onChange:function(e){i({gradientSelector:e})}}),Object(l.createElement)(C.BaseControl,null,Object(l.createElement)("span",{className:"components-base-control__label"},Object(T.__)("Direction","generateblocks")),Object(l.createElement)(C.RangeControl,{value:a[n]?a[n]:1,onChange:function(e){i(o()({},n,e))},min:0,max:360,step:1,initialPosition:90})),Object(l.createElement)(C.BaseControl,null,Object(l.createElement)("span",{className:"components-base-control__label"},Object(T.__)("Color One","generateblocks")),Object(l.createElement)("div",{className:"gblocks-component-gradient-control"},Object(l.createElement)(ke,{value:a[c],alpha:!0,valueOpacity:a[s],attrOpacity:"gradientColorOneOpacity",onChange:function(e){return i(o()({},c,e))},onOpacityChange:function(e){return i(o()({},s,e))},onClear:function(){return i(o()({},c,p))}}),Object(l.createElement)(C.TextControl,{className:"gblocks-component-gradient-stop-value",type:"text",value:a[g]||0===a[g]?a[g]:"",placeholder:Object(T.__)("Stop position (%)","generateblocks"),onChange:function(e){i(o()({},g,e))},onBlur:function(){(a[g]||0===a[g])&&i(o()({},g,parseFloat(a[g])))},onClick:function(e){e.currentTarget.focus()}}))),Object(l.createElement)(C.BaseControl,null,Object(l.createElement)("span",{className:"components-base-control__label"},Object(T.__)("Color Two","generateblocks")),Object(l.createElement)("div",{className:"gblocks-component-gradient-control"},Object(l.createElement)(ke,{value:a[b],alpha:!0,valueOpacity:a[u],attrOpacity:"gradientColorTwoOpacity",onChange:function(e){return i(o()({},b,e))},onOpacityChange:function(e){return i(o()({},u,e))},onClear:function(){return i(o()({},b,f))}}),Object(l.createElement)(C.TextControl,{className:"gblocks-component-gradient-stop-value",type:"text",value:a[d]||0===a[d]?a[d]:"",placeholder:Object(T.__)("Stop position (%)","generateblocks"),onChange:function(e){i(o()({},d,e))},onBlur:function(){(a[d]||0===a[d])&&i(o()({},d,parseFloat(a[d])))},onClick:function(e){e.currentTarget.focus()}})))))}}]),a}(l.Component),_e=a(25),Se=a.n(_e);function Be(e){return Se.a.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0}})}function De(e,t,a,l,i){if(""!==e||""!==t||""!==a||""!==l)return e=0!=parseFloat(e)&&""!==e?parseFloat(e)+i+" ":"0 ",t=0!=parseFloat(t)&&""!==t?parseFloat(t)+i+" ":"0 ",a=0!=parseFloat(a)&&""!==a?parseFloat(a)+i+" ":"0 ",t===(l=0!=parseFloat(l)&&""!==l?parseFloat(l)+i+" ":"0 ")&&(l="",e===a&&(a="",e===t&&(t=""))),(e+t+a+l).trim()}function Ee(e,t){var a=t.attributes,l=a.backgroundColor,i=a.backgroundColorOpacity,r=a.bgImage,n=a.gradient,o=a.bgOptions,c=a.gradientColorOne,s=a.gradientColorOneOpacity,g=a.gradientColorTwo,b=a.gradientColorTwoOpacity,u=a.gradientColorStopOne,d=a.gradientColorStopTwo,p=a.gradientDirection,f="";if(n){var h="",m="";c&&""!==u&&(h=" "+u+"%"),g&&""!==d&&(m=" "+d+"%"),f="linear-gradient("+p+"deg, "+he(c,s)+h+", "+he(g,b)+m+")"}if("gradient"===e)return f;var k=!1,y=he(l,i);if(r){var v=r.image.url;v=Object(_.applyFilters)("generateblocks.editor.bgImageURL",v,t),"element"===o.selector&&(y||n)&&void 0!==o.overlay&&o.overlay?n?k=f+", url("+v+")":y&&(k="linear-gradient(0deg, "+y+", "+y+"), url("+v+")"):k="url("+v+")"}return k}function Re(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var xe=function(e){f()(a,e);var t=Re(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.isGrid,r=e.width,n=e.outerContainer,o=e.innerContainer,c=e.containerWidth,s=e.minHeight,g=e.minHeightUnit,b=e.paddingTop,u=e.paddingRight,d=e.paddingBottom,p=e.paddingLeft,f=e.paddingUnit,h=e.marginTop,m=e.marginRight,k=e.marginBottom,y=e.marginLeft,v=e.marginUnit,w=e.borderSizeTop,O=e.borderSizeRight,j=e.borderSizeBottom,T=e.borderSizeLeft,C=e.borderRadiusTopRight,S=e.borderRadiusBottomRight,B=e.borderRadiusBottomLeft,D=e.borderRadiusTopLeft,E=e.borderRadiusUnit,R=e.borderColor,x=e.borderColorOpacity,L=e.backgroundColor,P=e.backgroundColorOpacity,F=e.gradient,A=e.gradientSelector,U=e.textColor,H=e.linkColor,N=e.linkColorHover,I=e.bgImage,G=e.bgOptions,V=e.verticalAlignment,q=e.zindex,W=e.innerZindex,Z=e.alignment,K=e.fontFamily,J=e.fontFamilyFallback,Y=e.fontWeight,Q=e.fontSize,X=e.fontSizeUnit,$=e.textTransform,ee=e.shapeDividers,te=c;te||(te=generateBlocksDefaults.container.containerWidth);var ae="";K&&J&&(ae=", "+J);var le=!!I,ie=Ee("image",this.props),re=Ee("gradient",this.props),ne=W,oe=[];return oe[".gb-container-"+a]=[{"background-color":he(L,P),color:U,"border-radius":De(D,C,S,B,E),margin:De(h,m,k,y,v),"z-index":q,"text-align":Z,"font-family":K+ae,"font-weight":Y,"text-transform":$,"font-size":z(Q,X),"min-height":z(s,g)}],le&&"element"===G.selector&&ie?oe[".gb-container-"+a].push({"background-image":ie,"background-size":G.size,"background-position":G.position,"background-repeat":G.repeat,"background-attachment":G.attachment}):F&&"element"===A&&oe[".gb-container-"+a].push({"background-image":re}),(le&&"pseudo-element"===G.selector||q||F&&"pseudo-element"===A)&&oe[".gb-container-"+a].push({position:"relative"}),(le&&"pseudo-element"===G.selector||F&&"pseudo-element"===A)&&(oe[".gb-container-"+a].push({overflow:"hidden"}),oe[".gb-container-"+a+" .block-list-appender"]=[{"z-index":10}],ne||(ne=1)),oe[".editor-styles-wrapper .gb-container-"+a+" h1,\n\t\t\t.editor-styles-wrapper .gb-container-"+a+" h2,\n\t\t\t.editor-styles-wrapper .gb-container-"+a+" h3,\n\t\t\t.editor-styles-wrapper .gb-container-"+a+" h4,\n\t\t\t.editor-styles-wrapper .gb-container-"+a+" h5,\n\t\t\t.editor-styles-wrapper .gb-container-"+a+" h6"]=[{color:U}],(w||O||j||T)&&oe[".gb-container-"+a].push({"border-width":De(w,O,j,T,"px"),"border-style":"solid","border-color":he(R,x)}),s&&!i&&oe[".gb-container-"+a].push({display:"flex","flex-direction":"row","align-items":V}),i&&(oe[".gb-container-"+a].push({display:"flex","flex-direction":"column",height:"100%","justify-content":V}),oe[".block-editor-block-list__layout > #block-"+t]=[{height:"100%"}]),le&&"pseudo-element"===G.selector&&(oe[".gb-container-"+a+":before"]=[{content:'""',"background-image":ie,"background-repeat":G.repeat,"background-position":G.position,"background-size":G.size,"background-attachment":G.attachment,"z-index":"0",position:"absolute",top:"0",right:"0",bottom:"0",left:"0","border-radius":De(D,C,S,B,E)}],void 0!==G.opacity&&1!==G.opacity&&oe[".gb-container-"+a+":before"].push({opacity:G.opacity})),F&&"pseudo-element"===A&&(oe[".gb-container-"+a+":after"]=[{content:'""',"background-image":re,"z-index":"0",position:"absolute",top:"0",right:"0",bottom:"0",left:"0"}]),oe[".gb-container-"+a+" a, .gb-container-"+a+" a:visited"]=[{color:H}],oe[".gb-container-"+a+" a:hover"]=[{color:N}],oe[".gb-container-"+a+" > .gb-inside-container"]=[{padding:De(b,u,d,p,f),width:!(!s||i)&&"100%"}],(ne||0===ne)&&oe[".gb-container-"+a+" > .gb-inside-container"].push({"z-index":ne,position:"relative"}),"contained"!==o||i||oe[".gb-container-"+a+" > .gb-inside-container"].push({"max-width":z(te,"px"),"margin-left":"auto","margin-right":"auto"}),oe[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t]=[{width:z(r,"%"),display:"flex","flex-direction":"column","margin-left":"0px","margin-right":"0px"}],oe[".block-editor-block-list__layout > #block-"+t]=[{"max-width":"contained"===n&&!i&&z(te,"px")}],oe[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t+" > .block-editor-block-list__block-edit,\n\t\t.gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t+' > .block-editor-block-list__block-edit > [data-block="'+t+'"]']=[{height:"100%"}],oe["#block-"+t+":not(.has-child-selected):not(.is-selected) .block-list-appender:not(:first-child),\n\t\t#block-"+t+":not(.has-child-selected):not(.is-selected) .block-editor-block-list__layout > div:not(:first-child) > .block-list-appender"]=[{display:"none"}],ee.length&&(oe[".gb-container-"+a].push({position:"relative"}),oe[".gb-container-"+a+" .block-list-appender"]=[{position:"relative","z-index":100}],ee.forEach((function(e,t){var l=[],i=t+1;"top"===ee[t].location&&l.push("scaleY(-1)"),ee[t].flipHorizontally&&(l.push("scaleX(-1)"),oe[".gblocks-shape-container > .gblocks-shape-toggle-preview-"+i+" .gblocks-shape-divider-preview"]=[{transform:"scaleX(-1)"}]),oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i]=[{color:he(ee[t].color,ee[t].colorOpacity),"z-index":ee[t].zindex}],"top"!==ee[t].location&&"bottom"!==ee[t].location||oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({left:"0",right:"0"}),"bottom"===ee[t].location&&oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({bottom:"-1px"}),"top"===ee[t].location&&oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({top:"-1px"}),l.length&&oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i].push({transform:l.join(" ")});var r=ee[t].width+"%";100===ee[t].width&&(r="calc("+r+" + 1.3px)"),oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i+" svg"]=[{height:z(ee[t].height,"px"),width:r}],"top"!==ee[t].location&&"bottom"!==ee[t].location||oe[".gb-container-"+a+" > .gb-shapes .gb-shape-"+i+" svg"].push({position:"relative",left:"50%",transform:"translateX(-50%)","min-width":"100%"})}))),oe=Object(_.applyFilters)("generateblocks.editor.mainCSS",oe,this.props,"container"),Object(l.createElement)("style",null,M(oe))}}]),a}(l.Component);function Me(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ze=function(e){f()(a,e);var t=Me(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.removeVerticalGap,i=[];return i[".block-editor-block-list__layout > #block-"+t]=[{"margin-bottom":!!a&&"0px !important"}],i=Object(_.applyFilters)("generateblocks.editor.desktopCSS",i,this.props,"container"),Object(l.createElement)("style",null,M(i))}}]),a}(l.Component);function Le(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Pe=function(e){f()(a,e);var t=Le(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.isGrid,r=e.widthTablet,n=e.minHeightTablet,o=e.minHeightUnitTablet,c=e.paddingTopTablet,s=e.paddingRightTablet,g=e.paddingBottomTablet,b=e.paddingLeftTablet,u=e.paddingUnit,d=e.marginTopTablet,p=e.marginRightTablet,f=e.marginBottomTablet,h=e.marginLeftTablet,m=e.marginUnit,k=e.borderSizeTopTablet,y=e.borderSizeRightTablet,v=e.borderSizeBottomTablet,w=e.borderSizeLeftTablet,O=e.borderRadiusTopRightTablet,j=e.borderRadiusBottomRightTablet,T=e.borderRadiusBottomLeftTablet,C=e.borderRadiusTopLeftTablet,S=e.borderRadiusUnit,B=e.verticalAlignmentTablet,D=e.alignmentTablet,E=e.fontSizeTablet,R=e.fontSizeUnit,x=e.shapeDividers,L=[];return L[".gb-container-"+a]=[{"border-top-left-radius":z(C,S),"border-top-right-radius":z(O,S),"border-bottom-right-radius":z(j,S),"border-bottom-left-radius":z(T,S),"margin-top":z(d,m),"margin-right":z(p,m),"margin-bottom":z(f,m),"margin-left":z(h,m),"text-align":D,"font-size":z(E,R),"min-height":z(n,o)}],(k||y||v||w)&&L[".gb-container-"+a].push({"border-top-width":z(k,"px"),"border-right-width":z(y,"px"),"border-bottom-width":z(v,"px"),"border-left-width":z(w,"px"),"border-style":"solid"}),n&&!i&&L[".gb-container-"+a].push({display:"flex","flex-direction":"row","align-items":"inherit"!==B?B:null}),i&&"inherit"!==B&&L[".gb-container-"+a].push({display:"flex","flex-direction":"column",height:"100%","justify-content":B}),L[".gb-container-"+a+" > .gb-inside-container"]=[{"padding-top":z(c,u),"padding-right":z(s,u),"padding-bottom":z(g,u),"padding-left":z(b,u),width:!(!n||i)&&"100%"}],L[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t]=[{width:z(r,"%")}],x.length&&x.forEach((function(e,t){L[".gb-container-"+a+" > .gb-shapes .gb-shape-"+(t+1)+" svg"]=[{height:z(x[t].heightTablet,"px"),width:z(x[t].widthTablet,"%")}]})),L=Object(_.applyFilters)("generateblocks.editor.tabletCSS",L,this.props,"container"),Object(l.createElement)("style",null,M(L))}}]),a}(l.Component);function Fe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Ae=function(e){f()(a,e);var t=Fe(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=[];return e.removeVerticalGapTablet&&(a[".block-editor-block-list__layout > #block-"+t]=[{"margin-bottom":"0px !important"}]),a=Object(_.applyFilters)("generateblocks.editor.tabletOnlyCSS",a,this.props,"container"),Object(l.createElement)("style",null,M(a))}}]),a}(l.Component);function Ue(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var He=function(e){f()(a,e);var t=Ue(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.isGrid,r=e.widthMobile,n=e.minHeightMobile,o=e.minHeightUnitMobile,c=e.paddingTopMobile,s=e.paddingRightMobile,g=e.paddingBottomMobile,b=e.paddingLeftMobile,u=e.paddingUnit,d=e.marginTopMobile,p=e.marginRightMobile,f=e.marginBottomMobile,h=e.marginLeftMobile,m=e.marginUnit,k=e.borderSizeTopMobile,y=e.borderSizeRightMobile,v=e.borderSizeBottomMobile,w=e.borderSizeLeftMobile,O=e.borderRadiusTopRightMobile,j=e.borderRadiusBottomRightMobile,T=e.borderRadiusBottomLeftMobile,C=e.borderRadiusTopLeftMobile,S=e.borderRadiusUnit,B=e.verticalAlignmentMobile,D=e.removeVerticalGapMobile,E=e.alignmentMobile,R=e.fontSizeMobile,x=e.fontSizeUnit,L=e.orderMobile,P=e.shapeDividers,F=e.bgImage,A=e.bgOptions,U=[];return U[".gb-container-"+a]=[{"border-top-left-radius":z(C,S),"border-top-right-radius":z(O,S),"border-bottom-right-radius":z(j,S),"border-bottom-left-radius":z(T,S),"margin-top":z(d,m),"margin-right":z(p,m),"margin-bottom":z(f,m),"margin-left":z(h,m),"text-align":E,"font-size":z(R,x),"min-height":z(n,o)}],(k||y||v||w)&&U[".gb-container-"+a].push({"border-top-width":z(k,"px"),"border-right-width":z(y,"px"),"border-bottom-width":z(v,"px"),"border-left-width":z(w,"px"),"border-style":"solid"}),"inherit"!==B&&n&&!i&&U[".gb-container-"+a].push({display:"flex","flex-direction":"row","align-items":B}),i&&"inherit"!==B&&U[".gb-container-"+a].push({display:"flex","flex-direction":"column",height:"100%","justify-content":B}),U[".gb-container-"+a+" > .gb-inside-container"]=[{"padding-top":z(c,u),"padding-right":z(s,u),"padding-bottom":z(g,u),"padding-left":z(b,u),width:!(!n||i)&&"100%"}],U[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+t]=[{width:z(r,"%"),order:L}],D&&(U[".block-editor-block-list__layout > #block-"+t]=[{"margin-bottom":"0px !important"}]),P.length&&P.forEach((function(e,t){U[".gb-container-"+a+" > .gb-shapes .gb-shape-"+(t+1)+" svg"]=[{height:z(P[t].heightMobile,"px"),width:z(P[t].widthMobile,"%")}]})),F&&"fixed"===A.attachment&&("element"===A.selector&&U[".gb-container-"+a].push({"background-attachment":"initial"}),"pseudo-element"===A.selector&&(U[".gb-container-"+a+":before"]=[{"background-attachment":"initial"}])),U=Object(_.applyFilters)("generateblocks.editor.mobileCSS",U,this.props,"container"),Object(l.createElement)("style",null,M(U))}}]),a}(l.Component);function Ne(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function Ie(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?Ne(Object(a),!0).forEach((function(t){o()(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Ne(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function Ge(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Ve=/[\s#]/g,qe=[],We=function(e){f()(a,e);var t=Ge(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).state={selectedDevice:"Desktop"},e.getDeviceType=e.getDeviceType.bind(d()(e)),e.setDeviceType=e.setDeviceType.bind(d()(e)),e}return b()(a,[{key:"componentDidMount",value:function(){var e=this.props.clientId.substr(2,9).replace("-","");this.props.attributes.uniqueId?qe.includes(this.props.attributes.uniqueId)?(this.props.setAttributes({uniqueId:e}),qe.push(e)):qe.push(this.props.attributes.uniqueId):(this.props.setAttributes({uniqueId:e}),qe.push(e));var t=document.getElementById("block-"+this.props.clientId);t&&"full"===this.props.attributes.align&&t.setAttribute("data-align","full"),void 0!==this.props.attributes.isDynamic&&this.props.attributes.isDynamic||this.props.setAttributes({isDynamic:!0})}},{key:"componentDidUpdate",value:function(){var e=document.getElementById("block-"+this.props.clientId);if(e){var t=this.props.attributes.align,a="";e.getAttribute("data-align")&&(a=e.getAttribute("data-align")),t!==a&&(""!==t&&void 0!==t||""===a?e.setAttribute("data-align",t):e.removeAttribute("data-align"))}}},{key:"getDeviceType",value:function(){var e=this.props.deviceType?this.props.deviceType:this.state.selectedDevice;return generateBlocksInfo.syncResponsivePreviews||(e=this.state.selectedDevice),e}},{key:"setDeviceType",value:function(e){generateBlocksInfo.syncResponsivePreviews&&this.props.deviceType?(this.props.setDeviceType(e),this.setState({selectedDevice:e})):this.setState({selectedDevice:e})}},{key:"render",value:function(){var e,t=this,a=this.props,i=a.attributes,n=a.setAttributes,c=a.hasChildBlocks,s=a.clientId,g=i.uniqueId,b=i.className,u=i.anchor,d=i.tagName,p=i.isGrid,f=i.width,h=i.widthTablet,m=i.widthMobile,k=i.outerContainer,y=i.innerContainer,v=i.containerWidth,O=i.minHeight,S=i.minHeightUnit,D=i.minHeightTablet,R=i.minHeightUnitTablet,x=i.minHeightMobile,M=i.minHeightUnitMobile,z=i.borderColor,L=i.borderColorOpacity,P=i.backgroundColor,F=i.backgroundColorOpacity,A=i.textColor,U=i.linkColor,H=i.linkColorHover,N=i.bgImage,I=i.bgOptions,G=i.bgImageSize,V=i.verticalAlignment,q=i.verticalAlignmentTablet,W=i.verticalAlignmentMobile,Z=i.zindex,K=i.innerZindex,J=i.removeVerticalGap,X=i.removeVerticalGapTablet,$=i.removeVerticalGapMobile,ee=i.orderTablet,te=i.orderMobile,ae=i.alignment,le=i.alignmentTablet,ie=i.alignmentMobile,re=i.fontFamily,ne=i.googleFont,oe=i.googleFontVariants,ce=i.fullWidthContent,se=i.align,ge=i.shapeDividers;void 0===i.bgOptions.selector&&(i.bgOptions.selector="element"),void 0===i.bgOptions.opacity&&(i.bgOptions.opacity=1);var be=[{label:"div",value:"div"},{label:"section",value:"section"},{label:"header",value:"header"},{label:"footer",value:"footer"},{label:"aside",value:"aside"}],ue=document.getElementById("_generate-full-width-content"),de=new Event("change"),he=wp.data.select("core/block-editor").getBlockHierarchyRootClientId(s)===s,me="";oe&&(me=":"+oe);var ye=!1,we=!1,Oe=!1,Te="";"function"==typeof wp.data.select("core/block-editor").getBlockParents&&(ye=wp.data.select("core/block-editor").getBlockParents(s,!0)[0])&&(we=wp.data.select("core/block-editor").getBlocksByClientId(ye))&&"generateblocks/grid"===we[0].name&&(Oe=!0,Te=we[0].attributes.uniqueId);var _e=[];Object.keys(generateBlocksInfo.svgShapes).forEach((function(e){var t=generateBlocksInfo.svgShapes[e].svgs;Object.keys(t).forEach((function(e){_e[e]={label:t[e].label,icon:t[e].icon}}))}));var Se=[];Object.keys(generateBlocksInfo.imageSizes).forEach((function(e){Se.push({label:generateBlocksInfo.imageSizes[e],value:generateBlocksInfo.imageSizes[e]})}));var De={className:w()((e={"gb-container":!0},o()(e,"gb-container-".concat(g),!0),o()(e,"".concat(b),void 0!==b),e)),id:u||null};return De=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",De,"generateblocks/container",i),Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Q.BlockControls,null,"Desktop"===this.getDeviceType()&&Object(l.createElement)(Q.AlignmentToolbar,{value:ae,onChange:function(e){n({alignment:e})}}),"Tablet"===this.getDeviceType()&&Object(l.createElement)(Q.AlignmentToolbar,{value:le,onChange:function(e){n({alignmentTablet:e})}}),"Mobile"===this.getDeviceType()&&Object(l.createElement)(Q.AlignmentToolbar,{value:ie,onChange:function(e){n({alignmentMobile:e})}})),Object(l.createElement)(Q.InspectorControls,null,Object(l.createElement)(B,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),!p&&Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Layout","generateblocks"),initialOpen:!0,icon:j("layout"),className:"gblocks-panel-label",id:"containerLayout",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Oe&&Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Grid Item","generateblocks"),help:Object(T.__)("This Container is inside a Grid Block but is not set as a grid item. Enable this option for optimal results.","generateblocks"),checked:!!p,onChange:function(e){n({isGrid:e,gridId:Te})}}),Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Container","generateblocks"),value:k,options:[{label:Object(T.__)("Full width","generateblocks"),value:"full"},{label:Object(T.__)("Contained width","generateblocks"),value:"contained"}],onChange:function(e){n({outerContainer:e}),"contained"===e&&"full"===se&&n({align:""})}}),"full"===k&&Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Inner Container","generateblocks"),value:y,options:[{label:Object(T.__)("Full width","generateblocks"),value:"full"},{label:Object(T.__)("Contained width","generateblocks"),value:"contained"}],onChange:function(e){n({innerContainer:e})}}),("contained"===k||"contained"===y)&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(E,{label:Object(T.__)("Container Width","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)(C.TextControl,{type:"number",className:"gblocks-container-width",value:parseFloat(v)||"",placeholder:generateBlocksDefaults.container.containerWidth,onChange:function(e){n({containerWidth:""!==e?parseFloat(e):void 0})}})),Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Tag Name","generateblocks"),value:d,options:Object(_.applyFilters)("generateblocks.editor.containerTagNames",be,this.props,this.state),onChange:function(e){n({tagName:e})}}),Object(_.applyFilters)("generateblocks.editor.controls","","containerAfterElementTag",this.props,this.state),Object(l.createElement)(l.Fragment,null,generateBlocksInfo.isGeneratePress&&he&&ue&&Object(l.createElement)(C.BaseControl,{id:"gblocks-gp-full-width-page",label:Object(T.__)("If you want to build a full width page, use the option below to remove the page width, margin and padding.","generateblocks"),className:"gblocks-gpress-full-width"},Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Make page full-width","generateblocks"),checked:!!ce,onChange:function(e){e?("select"===ue.tagName.toLowerCase()?(ue.value="true",ue.dispatchEvent(de)):(ue.checked=!0,ue.setAttribute("value","true"),ue.dispatchEvent(de)),n({fullWidthContent:"true",align:""})):("select"===ue.tagName.toLowerCase()?(ue.value="",ue.dispatchEvent(de)):(ue.checked=!1,ue.setAttribute("value",""),document.querySelector('input[name="_generate-full-width-content"]#default-content').checked=!0,ue.dispatchEvent(de)),n({fullWidthContent:""}))}})))),Object(_.applyFilters)("generateblocks.editor.controls","","containerLayout",this.props,this.state)),p&&Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Layout","generateblocks"),initialOpen:!0,icon:j("layout"),className:"gblocks-panel-label",id:"containerGridLayout",state:this.state}),!Oe&&Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Grid Item","generateblocks"),help:Object(T.__)("This container is set as a grid item but is not inside a grid block. Deactivate this option for optimal results.","generateblocks"),checked:!!p,onChange:function(e){n({isGrid:e,gridId:""})}}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(E,{label:Object(T.__)("Container Width","generateblocks"),value:"%",units:["%"],onClick:function(){return!1}}),Object(l.createElement)(C.ButtonGroup,{className:"widthButtons"},Object(l.createElement)(C.Button,{isPrimary:25===f,onClick:function(){return n({width:25})}},"25"),Object(l.createElement)(C.Button,{isPrimary:33.33===f,onClick:function(){return n({width:33.33})}},"33"),Object(l.createElement)(C.Button,{isPrimary:50===f,onClick:function(){return n({width:50})}},"50"),Object(l.createElement)(C.Button,{isPrimary:66.66===f,onClick:function(){return n({width:66.66})}},"66"),Object(l.createElement)(C.Button,{isPrimary:75===f,onClick:function(){return n({width:75})}},"75"),Object(l.createElement)(C.Button,{isPrimary:100===f,onClick:function(){return n({width:100})}},"100")),Object(l.createElement)(C.RangeControl,{className:"gblocks-column-width-control",value:f||"",onChange:function(e){n({width:e})},min:0,max:100,step:.01,initialPosition:generateBlocksDefaults.container.width}),Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Vertical Alignment","generateblocks"),help:Object(T.__)("Align grid item content. Does not apply if vertical alignment is set in the grid.","generateblocks"),value:V,options:[{label:Object(T.__)("Default","generateblocks"),value:""},{label:Object(T.__)("Top","generateblocks"),value:"flex-start"},{label:Object(T.__)("Center","generateblocks"),value:"center"},{label:Object(T.__)("Bottom","generateblocks"),value:"flex-end"}],onChange:function(e){n({verticalAlignment:e})}}),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Remove Vertical Gap","generateblocks"),checked:!!J,onChange:function(e){n({removeVerticalGap:e})}}),Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Tag Name","generateblocks"),value:d,options:Object(_.applyFilters)("generateblocks.editor.containerTagNames",be,this.props,this.state),onChange:function(e){n({tagName:e})}}),Object(_.applyFilters)("generateblocks.editor.controls","","containerAfterElementTag",this.props,this.state)),"Tablet"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(E,{label:Object(T.__)("Container Width","generateblocks"),value:"%",units:["%"],onClick:function(){return!1}}),Object(l.createElement)(C.ButtonGroup,{className:"widthButtons"},Object(l.createElement)(C.Button,{isPrimary:25===h,onClick:function(){return n({widthTablet:25})}},"25"),Object(l.createElement)(C.Button,{isPrimary:33.33===h,onClick:function(){return n({widthTablet:33.33})}},"33"),Object(l.createElement)(C.Button,{isPrimary:50===h,onClick:function(){return n({widthTablet:50})}},"50"),Object(l.createElement)(C.Button,{isPrimary:66.66===h,onClick:function(){return n({widthTablet:66.66})}},"66"),Object(l.createElement)(C.Button,{isPrimary:75===h,onClick:function(){return n({widthTablet:75})}},"75"),Object(l.createElement)(C.Button,{isPrimary:100===h,onClick:function(){return n({widthTablet:100})}},"100")),Object(l.createElement)(C.RangeControl,{className:"gblocks-column-width-control",value:h||"",onChange:function(e){n({widthTablet:e})},min:0,max:100,step:.01,initialPosition:generateBlocksDefaults.container.widthTablet}),Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Vertical Alignment","generateblocks"),help:Object(T.__)("Align grid item content. Does not apply if vertical alignment is set in the grid.","generateblocks"),value:q,options:[{label:Object(T.__)("Inherit","generateblocks"),value:"inherit"},{label:Object(T.__)("Default","generateblocks"),value:""},{label:Object(T.__)("Top","generateblocks"),value:"flex-start"},{label:Object(T.__)("Center","generateblocks"),value:"center"},{label:Object(T.__)("Bottom","generateblocks"),value:"flex-end"}],onChange:function(e){n({verticalAlignmentTablet:e})}}),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Remove Vertical Gap","generateblocks"),checked:!!X,onChange:function(e){n({removeVerticalGapTablet:e})}}),Object(l.createElement)(C.TextControl,{type:"number",label:Object(T.__)("Order","generateblocks"),value:ee||0===ee?ee:"",onChange:function(e){n({orderTablet:parseFloat(e)})}})),"Mobile"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(E,{label:Object(T.__)("Container Width","generateblocks"),value:"%",units:["%"],onClick:function(){return!1}}),Object(l.createElement)(C.ButtonGroup,{className:"widthButtons"},Object(l.createElement)(C.Button,{isPrimary:25===m,onClick:function(){return n({widthMobile:25})}},"25"),Object(l.createElement)(C.Button,{isPrimary:33.33===m,onClick:function(){return n({widthMobile:33.33})}},"33"),Object(l.createElement)(C.Button,{isPrimary:50===m,onClick:function(){return n({widthMobile:50})}},"50"),Object(l.createElement)(C.Button,{isPrimary:66.66===m,onClick:function(){return n({widthMobile:66.66})}},"66"),Object(l.createElement)(C.Button,{isPrimary:75===m,onClick:function(){return n({widthMobile:75})}},"75"),Object(l.createElement)(C.Button,{isPrimary:100===m,onClick:function(){return n({widthMobile:100})}},"100")),Object(l.createElement)(C.RangeControl,{className:"gblocks-column-width-control",value:m||"",onChange:function(e){n({widthMobile:e})},min:0,max:100,step:.01,initialPosition:generateBlocksDefaults.container.widthMobile}),Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Vertical Alignment","generateblocks"),help:Object(T.__)("Align grid item content. Does not apply if vertical alignment is set in the grid.","generateblocks"),value:W,options:[{label:Object(T.__)("Inherit","generateblocks"),value:"inherit"},{label:Object(T.__)("Default","generateblocks"),value:""},{label:Object(T.__)("Top","generateblocks"),value:"flex-start"},{label:Object(T.__)("Center","generateblocks"),value:"center"},{label:Object(T.__)("Bottom","generateblocks"),value:"flex-end"}],onChange:function(e){n({verticalAlignmentMobile:e})}}),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Remove Vertical Gap","generateblocks"),checked:!!$,onChange:function(e){n({removeVerticalGapMobile:e})}}),Object(l.createElement)(C.TextControl,{type:"number",label:Object(T.__)("Order","generateblocks"),value:te||0===te?te:"",onChange:function(e){n({orderMobile:parseFloat(e)})}})),Object(_.applyFilters)("generateblocks.editor.controls","","containerGridLayout",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Typography","generateblocks"),initialOpen:!1,icon:j("typography"),className:"gblocks-panel-label",id:"containerTypography",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(je,r()({},this.props,{showFontFamily:!0,showFontWeight:!0,showTextTransform:!0,showFontSize:!0,defaultFontSize:generateBlocksDefaults.container.fontSize,defaultFontSizeUnit:generateBlocksDefaults.container.fontSizeUnit,defaultLineHeight:generateBlocksDefaults.container.lineHeight,defaultLineHeightUnit:generateBlocksDefaults.container.lineHeightUnit,defaultLetterSpacing:generateBlocksDefaults.container.letterSpacing}))),"Tablet"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(je,r()({},this.props,{device:"Tablet",showFontSize:!0,defaultFontSize:generateBlocksDefaults.container.fontSizeTablet,defaultFontSizeUnit:generateBlocksDefaults.container.fontSizeUnit,defaultLineHeight:generateBlocksDefaults.container.lineHeightTablet,defaultLineHeightUnit:generateBlocksDefaults.container.lineHeightUnit,defaultLetterSpacing:generateBlocksDefaults.container.letterSpacingTablet}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(je,r()({},this.props,{device:"Mobile",showFontSize:!0,defaultFontSize:generateBlocksDefaults.container.fontSizeMobile,defaultFontSizeUnit:generateBlocksDefaults.container.fontSizeUnit,defaultLineHeight:generateBlocksDefaults.container.lineHeightMobile,defaultLineHeightUnit:generateBlocksDefaults.container.lineHeightUnit,defaultLetterSpacing:generateBlocksDefaults.container.letterSpacingMobile}))),Object(_.applyFilters)("generateblocks.editor.controls","","containerTypography",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Spacing","generateblocks"),initialOpen:!1,icon:j("spacing"),className:"gblocks-panel-label",id:"containerSpacing",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(E,{label:Object(T.__)("Minimum Height","generateblocks"),value:S,units:["px","vh","vw"],onClick:function(e){n({minHeightUnit:e})}}),Object(l.createElement)(C.TextControl,{type:"number",value:O||"",onChange:function(e){n({minHeight:parseFloat(e)})}}),!!O&&!p&&Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Vertical Alignment","generateblocks"),value:V,options:[{label:Object(T.__)("Default","generateblocks"),value:""},{label:Object(T.__)("Top","generateblocks"),value:"flex-start"},{label:Object(T.__)("Center","generateblocks"),value:"center"},{label:Object(T.__)("Bottom","generateblocks"),value:"flex-end"}],onChange:function(e){n({verticalAlignment:e})}}),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"paddingTop",attrRight:"paddingRight",attrBottom:"paddingBottom",attrLeft:"paddingLeft",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.container,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTop",attrRight:"marginRight",attrBottom:"marginBottom",attrLeft:"marginLeft",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.container,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Size","generateblocks"),attrTop:"borderSizeTop",attrRight:"borderSizeRight",attrBottom:"borderSizeBottom",attrLeft:"borderSizeLeft",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.container,units:["px"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeft",attrRight:"borderRadiusTopRight",attrBottom:"borderRadiusBottomRight",attrLeft:"borderRadiusBottomLeft",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Object(T.__)("T-Left","generateblocks"),labelRight:Object(T.__)("T-Right","generateblocks"),labelBottom:Object(T.__)("B-Right","generateblocks"),labelLeft:Object(T.__)("B-Left","generateblocks"),defaults:generateBlocksDefaults.container,units:["px","em","%"]})),Object(l.createElement)(C.TextControl,{label:Object(T.__)("Outer z-index","generateblocks"),type:"number",value:Z||0===Z?Z:"",onChange:function(e){n({zindex:e})},onBlur:function(){n({zindex:parseFloat(Z)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.TextControl,{label:Object(T.__)("Inner z-index","generateblocks"),type:"number",value:K||0===K?K:"",onChange:function(e){n({innerZindex:e})},onBlur:function(){n({innerZindex:parseFloat(K)})},onClick:function(e){e.currentTarget.focus()}})),"Tablet"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(E,{label:Object(T.__)("Minimum Height","generateblocks"),value:R,units:["px","vh","vw"],onClick:function(e){n({minHeightUnitTablet:e})}}),Object(l.createElement)(C.TextControl,{type:"number",value:D||"",onChange:function(e){n({minHeightTablet:parseFloat(e)})}}),(!!O||!!D)&&!p&&Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Vertical Alignment","generateblocks"),value:q,options:[{label:Object(T.__)("Inherit","generateblocks"),value:"inherit"},{label:Object(T.__)("Default","generateblocks"),value:""},{label:Object(T.__)("Top","generateblocks"),value:"flex-start"},{label:Object(T.__)("Center","generateblocks"),value:"center"},{label:Object(T.__)("Bottom","generateblocks"),value:"flex-end"}],onChange:function(e){n({verticalAlignmentTablet:e})}}),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"paddingTopTablet",attrRight:"paddingRightTablet",attrBottom:"paddingBottomTablet",attrLeft:"paddingLeftTablet",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.container,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopTablet",attrRight:"marginRightTablet",attrBottom:"marginBottomTablet",attrLeft:"marginLeftTablet",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.container,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Size","generateblocks"),attrTop:"borderSizeTopTablet",attrRight:"borderSizeRightTablet",attrBottom:"borderSizeBottomTablet",attrLeft:"borderSizeLeftTablet",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.container,units:["px"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftTablet",attrRight:"borderRadiusTopRightTablet",attrBottom:"borderRadiusBottomRightTablet",attrLeft:"borderRadiusBottomLeftTablet",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Object(T.__)("T-Left","generateblocks"),labelRight:Object(T.__)("T-Right","generateblocks"),labelBottom:Object(T.__)("B-Right","generateblocks"),labelLeft:Object(T.__)("B-Left","generateblocks"),defaults:generateBlocksDefaults.container,units:["px","em","%"]}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(E,{label:Object(T.__)("Minimum Height","generateblocks"),value:M,units:["px","vh","vw"],onClick:function(e){n({minHeightUnitMobile:e})}}),Object(l.createElement)(C.TextControl,{type:"number",value:x||"",onChange:function(e){n({minHeightMobile:parseFloat(e)})}}),(!!O||!!D||!!x)&&!p&&Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Vertical Alignment","generateblocks"),value:W,options:[{label:Object(T.__)("Inherit","generateblocks"),value:"inherit"},{label:Object(T.__)("Default","generateblocks"),value:""},{label:Object(T.__)("Top","generateblocks"),value:"flex-start"},{label:Object(T.__)("Center","generateblocks"),value:"center"},{label:Object(T.__)("Bottom","generateblocks"),value:"flex-end"}],onChange:function(e){n({verticalAlignmentMobile:e})}}),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"paddingTopMobile",attrRight:"paddingRightMobile",attrBottom:"paddingBottomMobile",attrLeft:"paddingLeftMobile",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.container,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopMobile",attrRight:"marginRightMobile",attrBottom:"marginBottomMobile",attrLeft:"marginLeftMobile",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.container,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Size","generateblocks"),attrTop:"borderSizeTopMobile",attrRight:"borderSizeRightMobile",attrBottom:"borderSizeBottomMobile",attrLeft:"borderSizeLeftMobile",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.container,units:["px"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftMobile",attrRight:"borderRadiusTopRightMobile",attrBottom:"borderRadiusBottomRightMobile",attrLeft:"borderRadiusBottomLeftMobile",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Object(T.__)("T-Left","generateblocks"),labelRight:Object(T.__)("T-Right","generateblocks"),labelBottom:Object(T.__)("B-Right","generateblocks"),labelLeft:Object(T.__)("B-Left","generateblocks"),defaults:generateBlocksDefaults.container,units:["px","em","%"]}))),Object(_.applyFilters)("generateblocks.editor.controls","","containerSpacing",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Colors","generateblocks"),initialOpen:!1,icon:j("colors"),className:"gblocks-panel-label",id:"containerColors",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ke,{label:Object(T.__)("Background Color","generateblocks"),value:P,alpha:!0,valueOpacity:F,attrOpacity:"backgroundColorOpacity",onChange:function(e){return n({backgroundColor:e})},onOpacityChange:function(e){return n({backgroundColorOpacity:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Text Color","generateblocks"),value:A,alpha:!1,onChange:function(e){return n({textColor:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Link Color","generateblocks"),value:U,alpha:!1,onChange:function(e){return n({linkColor:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Link Color Hover","generateblocks"),value:H,alpha:!1,onChange:function(e){return n({linkColorHover:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Border Color","generateblocks"),value:z,alpha:!0,valueOpacity:L,attrOpacity:"borderColorOpacity",onChange:function(e){return n({borderColor:e})},onOpacityChange:function(e){return n({borderColorOpacity:e})}})),Object(_.applyFilters)("generateblocks.editor.controls","","containerColors",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Backgrounds","generateblocks"),initialOpen:!1,icon:j("gradients"),className:"gblocks-panel-label",id:"containerBackground",state:this.state}),Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.BaseControl,{id:"gblocks-background-image-upload",label:Object(T.__)("Image URL","generateblocks")},Object(l.createElement)("div",{className:"gblocks-bg-image-wrapper"},Object(l.createElement)(C.TextControl,{type:"text",value:N?N.image.url:"",onChange:function(e){n(e?{bgImage:{id:"",image:{url:e}}}:{bgImage:null})}}),Object(l.createElement)("div",{className:"gblocks-background-image-action-buttons"},Object(l.createElement)(Q.MediaUpload,{title:Object(T.__)("Set background image","generateblocks"),onSelect:function(e){var t=generateBlocksDefaults.container.bgImageSize;void 0===e.sizes[t]&&(t="full"),n({bgImage:{id:e.id,image:e.sizes[t]}})},onClose:function(){document.querySelector(".gblocks-bg-image-wrapper input").focus()},allowedTypes:["image"],value:N?N.id:"",modalClass:"editor-gb-container-background__media-modal",render:function(e){var t=e.open;return Object(l.createElement)(C.Tooltip,{text:Object(T.__)("Open the Media Library","generateblocks")},Object(l.createElement)(C.Button,{onClick:t,className:"is-secondary is-small"},Object(T.__)("Browse","generateblocks")))}}),Object(_.applyFilters)("generateblocks.editor.backgroundImageActions","",this.props,this.state)))),!!N&&Object(l.createElement)(l.Fragment,null,I.overlay?Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Background Color Overlay","generateblocks"),checked:!!I.overlay,onChange:function(e){n({bgOptions:Ie(Ie({},I),{},{overlay:e})})}}),Object(l.createElement)(C.Notice,{className:"gblocks-option-notice",status:"info",isDismissible:!1},Object(T.__)("The background color overlay option is deprecated. Toggle this option to use the new method.","generateblocks"))):Object(l.createElement)(l.Fragment,null,void 0!==N.id&&N.id&&Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Image Size","generateblocks"),value:G,options:Se,onChange:function(e){n({bgImageSize:e})}}),Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Selector","generateblocks"),value:I.selector,options:[{label:Object(T.__)("Element","generateblocks"),value:"element"},{label:Object(T.__)("Pseudo Element","generateblocks"),value:"pseudo-element"}],onChange:function(e){n({bgOptions:Ie(Ie({},I),{},{selector:e})})}}),Object(l.createElement)(C.RangeControl,{label:Object(T.__)("Image Opacity","generateblocks"),value:I.opacity,onChange:function(e){n({bgOptions:Ie(Ie({},I),{},{opacity:e,selector:"pseudo-element"})})},min:0,max:1,step:.1,initialPosition:generateBlocksDefaults.container.bgOptions.opacity}),1!==I.opacity&&"pseudo-element"!==I.selector&&Object(l.createElement)(C.Notice,{className:"gblocks-option-notice",status:"info",isDismissible:!1},Object(T.__)("Your selector must be set to Pseudo Element to use opacity.","generateblocks"))),Object(l.createElement)(C.TextControl,{label:Object(T.__)("Size","generateblocks"),value:I.size,onChange:function(e){n({bgOptions:Ie(Ie({},I),{},{size:e})})}}),Object(l.createElement)(C.TextControl,{label:Object(T.__)("Position","generateblocks"),value:I.position,onChange:function(e){n({bgOptions:Ie(Ie({},I),{},{position:e})})}}),Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Repeat","generateblocks"),value:I.repeat,options:[{label:"no-repeat",value:"no-repeat"},{label:"repeat",value:"repeat"},{label:"repeat-x",value:"repeat-x"},{label:"repeat-y",value:"repeat-y"}],onChange:function(e){n({bgOptions:Ie(Ie({},I),{},{repeat:e})})}}),Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Attachment","generateblocks"),value:I.attachment,options:[{label:"scroll",value:""},{label:"fixed",value:"fixed"},{label:"local",value:"local"}],onChange:function(e){n({bgOptions:Ie(Ie({},I),{},{attachment:e})})}})),Object(l.createElement)(Ce,r()({},this.props,{attrGradient:"gradient",attrGradientDirection:"gradientDirection",attrGradientColorOne:"gradientColorOne",attrGradientColorStopOne:"gradientColorStopOne",attrGradientColorTwo:"gradientColorTwo",attrGradientColorStopTwo:"gradientColorStopTwo",attrGradientColorOneOpacity:"gradientColorOneOpacity",attrGradientColorTwoOpacity:"gradientColorTwoOpacity",defaultColorOne:generateBlocksDefaults.container.gradientColorOne,defaultColorTwo:generateBlocksDefaults.container.gradientColorTwo})),Object(_.applyFilters)("generateblocks.editor.controls","","containerBackground",this.props,this.state))),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Shapes","generateblocks"),initialOpen:!1,icon:j("shapes"),className:"gblocks-panel-label",id:"containerShapes",state:this.state,showPanel:!("Desktop"!==this.getDeviceType()&&!i.shapeDividers.length)}),Object(l.createElement)(C.BaseControl,{className:"gb-icon-chooser gb-shape-chooser"},ge.map((function(e,a){var i=a+1;return Object(l.createElement)(l.Fragment,{key:a},Object(l.createElement)("div",{className:"gblocks-shape-container"},Object(l.createElement)("div",{className:w()(o()({"gblocks-shape-toggle-preview":!0},"gblocks-shape-toggle-preview-".concat(i),!0)),style:{backgroundColor:P}},void 0!==_e[ge[a].shape]&&Object(l.createElement)("div",{className:"gblocks-shape-divider-preview",style:{color:ge[a].color},dangerouslySetInnerHTML:{__html:Be(_e[ge[a].shape].icon)}})),
|
8 |
/* translators: Shape number */
|
9 |
+
Object(T.sprintf)(Object(T.__)("Shape %s","generateblocks"),i),Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.Dropdown,{contentClassName:"gblocks-shapes-dropdown",renderToggle:function(e){var t=e.isOpen,a=e.onToggle;return Object(l.createElement)(C.Tooltip,{text:Object(T.__)("Edit Shape","generateblocks")},Object(l.createElement)(C.Button,{className:"gblocks-shape-dropdown",isSecondary:!t||void 0,isPrimary:!!t||void 0,icon:"admin-tools",onClick:a,"aria-expanded":t}))},renderContent:function(){return Object(l.createElement)("div",{className:"gblocks-shape-controls"},"Desktop"===t.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.BaseControl,{className:"gb-icon-chooser"},Object.keys(generateBlocksInfo.svgShapes).map((function(e,t){var i=generateBlocksInfo.svgShapes[e].svgs;return Object(l.createElement)(C.PanelBody,{title:generateBlocksInfo.svgShapes[e].group,initialOpen:i.hasOwnProperty(ge[a].shape),key:t},Object(l.createElement)(C.PanelRow,null,Object(l.createElement)(C.BaseControl,null,Object(l.createElement)("ul",{className:"gblocks-icon-chooser gblocks-shape-chooser"},Object.keys(i).map((function(e,t){return Object(l.createElement)("li",{key:"editor-pblock-types-list-item-".concat(t)},Object(l.createElement)(C.Tooltip,{text:i[e].label},Object(l.createElement)(C.Button,{className:w()({"editor-block-list-item-button":!0,"gblocks-shape-is-active":ge[a].shape===e}),onClick:function(){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{shape:e}),n({shapeDividers:t})}},"string"==typeof i[e].icon?Object(l.createElement)(l.Fragment,null,Object(l.createElement)("span",{className:"editor-block-types-list__item-icon",dangerouslySetInnerHTML:{__html:Be(i[e].icon)}})):Object(l.createElement)(l.Fragment,null,Object(l.createElement)("span",{className:"editor-block-types-list__item-icon"},i[e].icon)))))}))))))}))),Object(l.createElement)(ke,{label:Object(T.__)("Color","generateblocks"),value:ge[a].color,alpha:!0,valueOpacity:ge[a].colorOpacity,onChange:function(e){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{color:e}),n({shapeDividers:t})},onOpacityChange:function(e){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{colorOpacity:e}),n({shapeDividers:t})}}),Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Location","generateblocks"),value:ge[a].location,options:[{label:Object(T.__)("Top","generateblocks"),value:"top"},{label:Object(T.__)("Bottom","generateblocks"),value:"bottom"}],onChange:function(e){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{location:e}),n({shapeDividers:t})}}),Object(l.createElement)(E,{label:Object(T.__)("Height","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)(C.TextControl,{type:"number",value:ge[a].height?ge[a].height:"",onChange:function(e){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{height:parseFloat(e)}),n({shapeDividers:t})}}),Object(l.createElement)(E,{label:Object(T.__)("Width","generateblocks"),value:"%",units:["%"],onClick:function(){return!1}}),Object(l.createElement)(C.TextControl,{type:"number",value:ge[a].width?ge[a].width:"",min:"100",onChange:function(e){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{width:parseFloat(e)}),n({shapeDividers:t})}}),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Flip Horizontally","generateblocks"),checked:!!ge[a].flipHorizontally,onChange:function(e){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{flipHorizontally:e}),n({shapeDividers:t})}}),Object(l.createElement)(C.TextControl,{label:Object(T.__)("z-index","generateblocks"),type:"number",min:"0",value:ge[a].zindex||0===ge[a].zindex?ge[a].zindex:"",onChange:function(e){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{zindex:e}),n({shapeDividers:t})},onBlur:function(){var e=pe()(ge);e[a]=Ie(Ie({},e[a]),{},{zindex:parseFloat(ge[a].zindex)}),n({shapeDividers:e})},onClick:function(e){e.currentTarget.focus()}})),"Tablet"===t.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(E,{label:Object(T.__)("Height","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)(C.TextControl,{type:"number",value:ge[a].heightTablet?ge[a].heightTablet:"",onChange:function(e){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{heightTablet:parseFloat(e)}),n({shapeDividers:t})}}),Object(l.createElement)(E,{label:Object(T.__)("Width","generateblocks"),value:"%",units:["%"],onClick:function(){return!1}}),Object(l.createElement)(C.TextControl,{type:"number",value:ge[a].widthTablet?ge[a].widthTablet:"",min:"100",onChange:function(e){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{widthTablet:parseFloat(e)}),n({shapeDividers:t})}})),"Mobile"===t.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(E,{label:Object(T.__)("Height","generateblocks"),value:"px",units:["px"],onClick:function(){return!1}}),Object(l.createElement)(C.TextControl,{type:"number",value:ge[a].heightMobile?ge[a].heightMobile:"",onChange:function(e){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{heightMobile:parseFloat(e)}),n({shapeDividers:t})}}),Object(l.createElement)(E,{label:Object(T.__)("Width","generateblocks"),value:"%",units:["%"],onClick:function(){return!1}}),Object(l.createElement)(C.TextControl,{type:"number",value:ge[a].widthMobile?ge[a].widthMobile:"",min:"100",onChange:function(e){var t=pe()(ge);t[a]=Ie(Ie({},t[a]),{},{widthMobile:parseFloat(e)}),n({shapeDividers:t})}})))}})),"Desktop"===t.getDeviceType()&&Object(l.createElement)(C.Tooltip,{text:Object(T.__)("Delete Shape","generateblocks")},Object(l.createElement)(C.Button,{className:"gblocks-remove-shape",onClick:function(){window.confirm(Object(T.__)("This will permanently delete this shape.","generateblocks"))&&function(e){var t=pe()(ge);t.splice(e,1),n({shapeDividers:t})}(a)},icon:"no-alt"}))))})),Object(l.createElement)("div",{className:"gblocks-add-new-shape"},Object(l.createElement)(C.Button,{isSecondary:!0,onClick:function(){var e=pe()(ge);e.push({shape:generateBlocksStyling.container.shapeDividers.shape,color:generateBlocksStyling.container.shapeDividers.color,colorOpacity:generateBlocksStyling.container.shapeDividers.colorOpacity,location:generateBlocksStyling.container.shapeDividers.location,height:generateBlocksStyling.container.shapeDividers.height,heightTablet:generateBlocksStyling.container.shapeDividers.heightTablet,heightMobile:generateBlocksStyling.container.shapeDividers.heightMobile,width:generateBlocksStyling.container.shapeDividers.width,widthTablet:generateBlocksStyling.container.shapeDividers.widthTablet,widthMobile:generateBlocksStyling.container.shapeDividers.widthMobile,flipHorizontally:generateBlocksStyling.container.shapeDividers.flipHorizontally,zindex:generateBlocksStyling.container.shapeDividers.zindex}),n({shapeDividers:e})}.bind(this)},Object(T.__)("Add Shape","generateblocks")))),Object(_.applyFilters)("generateblocks.editor.controls","","containerShapeDivider",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Documentation","generateblocks"),initialOpen:!1,icon:j("documentation"),className:"gblocks-panel-label",id:"containerDocumentation",state:this.state}),Object(l.createElement)("p",null,Object(T.__)("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/container/",target:"_blank",rel:"noreferrer noopener"},Object(T.__)("Visit our documentation","generateblocks")),Object(_.applyFilters)("generateblocks.editor.controls","","containerDocumentation",this.props,this.state))),Object(l.createElement)(Q.InspectorAdvancedControls,null,Object(l.createElement)(C.TextControl,{label:Object(T.__)("HTML Anchor"),help:Object(T.__)("Anchors lets you link directly to a section on a page.","generateblocks"),value:u||"",onChange:function(e){e=e.replace(Ve,"-"),n({anchor:e})}})),Object(l.createElement)(xe,this.props),this.props.deviceType&&Object(l.createElement)(l.Fragment,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(ze,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(Pe,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(Ae,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(He,this.props)),re&&ne&&Object(l.createElement)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family="+re.replace(/ /g,"+")+me}),Object(l.createElement)(fe,{tagName:Object(_.applyFilters)("generateblocks.frontend.containerTagName",d,i),htmlAttrs:De},Object(_.applyFilters)("generateblocks.frontend.afterContainerOpen","",i),Object(l.createElement)("div",{className:w()({"gb-inside-container":!0})},Object(_.applyFilters)("generateblocks.frontend.insideContainer","",i),Object(l.createElement)(Q.InnerBlocks,{templateLock:!1,renderAppender:c?void 0:function(){return Object(l.createElement)(Q.InnerBlocks.ButtonBlockAppender,null)}})),Object(l.createElement)(l.Fragment,null,!!i.shapeDividers.length&&Object(l.createElement)("div",{className:"gb-shapes"},i.shapeDividers.map((function(e,t){var a=t+1;return Object(l.createElement)(l.Fragment,{key:t},void 0!==_e[ge[t].shape]&&Object(l.createElement)("div",{className:w()(o()({"gb-shape":!0},"gb-shape-".concat(a),!0)),dangerouslySetInnerHTML:{__html:Be(_e[ge[t].shape].icon)}}))})))),Object(_.applyFilters)("generateblocks.frontend.beforeContainerClose","",i)))}}]),a}(l.Component),Ze=Object(ee.compose)([Object($.withDispatch)((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),Object($.withSelect)((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType,a=e("core").getMedia,l=(0,e("core/editor").getEditedPostAttribute)("featured_media");return t?{media:l?a(l):null,deviceType:t()}:{media:l?a(l):null,deviceType:null}}))])(We),Ke={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},isGrid:{type:"boolean",default:!1},gridId:{type:"string",default:""},tagName:{type:"string",default:generateBlocksDefaults.container.tagName},width:{type:"number",default:generateBlocksDefaults.container.width},widthTablet:{type:"number",default:generateBlocksDefaults.container.widthTablet},widthMobile:{type:"number",default:generateBlocksDefaults.container.widthMobile},orderTablet:{type:"number",default:generateBlocksDefaults.container.orderTablet},orderMobile:{type:"number",default:generateBlocksDefaults.container.orderMobile},outerContainer:{type:"string",default:generateBlocksDefaults.container.outerContainer},innerContainer:{type:"string",default:generateBlocksDefaults.container.innerContainer},containerWidth:{type:"number",default:generateBlocksDefaults.container.containerWidth},minHeight:{type:"number",default:generateBlocksDefaults.container.minHeight},minHeightUnit:{type:"string",default:generateBlocksDefaults.container.minHeightUnit},minHeightTablet:{type:"number",default:generateBlocksDefaults.container.minHeightTablet},minHeightUnitTablet:{type:"string",default:generateBlocksDefaults.container.minHeightUnitTablet},minHeightMobile:{type:"number",default:generateBlocksDefaults.container.minHeightMobile},minHeightUnitMobile:{type:"string",default:generateBlocksDefaults.container.minHeightUnitMobile},paddingTop:{type:"string",default:generateBlocksDefaults.container.paddingTop},paddingRight:{type:"string",default:generateBlocksDefaults.container.paddingRight},paddingBottom:{type:"string",default:generateBlocksDefaults.container.paddingBottom},paddingLeft:{type:"string",default:generateBlocksDefaults.container.paddingLeft},paddingUnit:{type:"string",default:generateBlocksDefaults.container.paddingUnit},paddingSyncUnits:{type:"boolean",default:!1},paddingTopTablet:{type:"string",default:generateBlocksDefaults.container.paddingTopTablet},paddingRightTablet:{type:"string",default:generateBlocksDefaults.container.paddingRightTablet},paddingBottomTablet:{type:"string",default:generateBlocksDefaults.container.paddingBottomTablet},paddingLeftTablet:{type:"string",default:generateBlocksDefaults.container.paddingLeftTablet},paddingTopMobile:{type:"string",default:generateBlocksDefaults.container.paddingTopMobile},paddingRightMobile:{type:"string",default:generateBlocksDefaults.container.paddingRightMobile},paddingBottomMobile:{type:"string",default:generateBlocksDefaults.container.paddingBottomMobile},paddingLeftMobile:{type:"string",default:generateBlocksDefaults.container.paddingLeftMobile},marginTop:{type:"string",default:generateBlocksDefaults.container.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.container.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.container.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.container.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.container.marginUnit},marginSyncUnits:{type:"boolean",default:!1},marginTopTablet:{type:"string",default:generateBlocksDefaults.container.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.container.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.container.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.container.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.container.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.container.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.container.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.container.marginLeftMobile},borderSizeTop:{type:"string",default:generateBlocksDefaults.container.borderSizeTop},borderSizeRight:{type:"string",default:generateBlocksDefaults.container.borderSizeRight},borderSizeBottom:{type:"string",default:generateBlocksDefaults.container.borderSizeBottom},borderSizeLeft:{type:"string",default:generateBlocksDefaults.container.borderSizeLeft},borderSizeTopTablet:{type:"string",default:generateBlocksDefaults.container.borderSizeTopTablet},borderSizeRightTablet:{type:"string",default:generateBlocksDefaults.container.borderSizeRightTablet},borderSizeBottomTablet:{type:"string",default:generateBlocksDefaults.container.borderSizeBottomTablet},borderSizeLeftTablet:{type:"string",default:generateBlocksDefaults.container.borderSizeLeftTablet},borderSizeTopMobile:{type:"string",default:generateBlocksDefaults.container.borderSizeTopMobile},borderSizeRightMobile:{type:"string",default:generateBlocksDefaults.container.borderSizeRightMobile},borderSizeBottomMobile:{type:"string",default:generateBlocksDefaults.container.borderSizeBottomMobile},borderSizeLeftMobile:{type:"string",default:generateBlocksDefaults.container.borderSizeLeftMobile},borderRadiusTopRight:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopRight},borderRadiusBottomRight:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomRight},borderRadiusBottomLeft:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomLeft},borderRadiusTopLeft:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopLeft},borderRadiusUnit:{type:"string",default:generateBlocksDefaults.container.borderRadiusUnit},borderRadiusTopRightTablet:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopRightTablet},borderRadiusBottomRightTablet:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomRightTablet},borderRadiusBottomLeftTablet:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomLeftTablet},borderRadiusTopLeftTablet:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopLeftTablet},borderRadiusTopRightMobile:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopRightMobile},borderRadiusBottomRightMobile:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomRightMobile},borderRadiusBottomLeftMobile:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomLeftMobile},borderRadiusTopLeftMobile:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopLeftMobile},borderColor:{type:"string",default:generateBlocksDefaults.container.borderColor},borderColorOpacity:{type:"number",default:generateBlocksDefaults.container.borderColorOpacity},backgroundColor:{type:"string",default:generateBlocksDefaults.container.backgroundColor},backgroundColorOpacity:{type:"number",default:generateBlocksDefaults.container.backgroundColorOpacity},gradient:{type:"boolean",default:generateBlocksDefaults.container.gradient},gradientDirection:{type:"number",default:generateBlocksDefaults.container.gradientDirection},gradientColorOne:{type:"string",default:generateBlocksDefaults.container.gradientColorOne},gradientColorOneOpacity:{type:"number",default:generateBlocksDefaults.container.gradientColorOneOpacity},gradientColorStopOne:{type:"number",default:generateBlocksDefaults.container.gradientColorStopOne},gradientColorTwo:{type:"string",default:generateBlocksDefaults.container.gradientColorTwo},gradientColorTwoOpacity:{type:"number",default:generateBlocksDefaults.container.gradientColorTwoOpacity},gradientColorStopTwo:{type:"number",default:generateBlocksDefaults.container.gradientColorStopTwo},gradientSelector:{type:"string",default:"element"},textColor:{type:"string",default:generateBlocksDefaults.container.textColor},linkColor:{type:"string",default:generateBlocksDefaults.container.linkColor},linkColorHover:{type:"string",default:generateBlocksDefaults.container.linkColorHover},bgImage:{type:"object",default:generateBlocksDefaults.container.bgImage},bgOptions:{type:"object",default:{selector:generateBlocksDefaults.container.bgOptions.selector,opacity:generateBlocksDefaults.container.bgOptions.opacity,overlay:generateBlocksDefaults.container.bgOptions.overlay,position:generateBlocksDefaults.container.bgOptions.position,size:generateBlocksDefaults.container.bgOptions.size,repeat:generateBlocksDefaults.container.bgOptions.repeat,attachment:generateBlocksDefaults.container.bgOptions.attachment}},bgImageSize:{type:"string",default:generateBlocksDefaults.container.bgImageSize},verticalAlignment:{type:"string",default:generateBlocksDefaults.container.verticalAlignment},verticalAlignmentTablet:{type:"string",default:generateBlocksDefaults.container.verticalAlignmentTablet},verticalAlignmentMobile:{type:"string",default:generateBlocksDefaults.container.verticalAlignmentMobile},zindex:{type:"number",default:generateBlocksDefaults.container.zindex},innerZindex:{type:"number",default:generateBlocksDefaults.container.innerZindex},removeVerticalGap:{type:"boolean",default:generateBlocksDefaults.container.removeVerticalGap},removeVerticalGapTablet:{type:"boolean",default:generateBlocksDefaults.container.removeVerticalGapTablet},removeVerticalGapMobile:{type:"boolean",default:generateBlocksDefaults.container.removeVerticalGapMobile},alignment:{type:"string",default:generateBlocksDefaults.container.alignment},alignmentTablet:{type:"string",default:generateBlocksDefaults.container.alignmentTablet},alignmentMobile:{type:"string",default:generateBlocksDefaults.container.alignmentMobile},showAdvancedTypography:{type:"boolean",default:generateBlocksDefaults.headline.showAdvancedTypography},fontFamily:{type:"string",default:generateBlocksDefaults.container.fontFamily},fontFamilyFallback:{type:"string",default:generateBlocksDefaults.container.fontFamilyFallback},googleFont:{type:"boolean",default:generateBlocksDefaults.container.googleFont},googleFontVariants:{type:"string",default:generateBlocksDefaults.container.googleFontVariants},fontWeight:{type:"string",default:generateBlocksDefaults.container.fontWeight},fontSize:{type:"number",default:generateBlocksDefaults.container.fontSize},fontSizeTablet:{type:"number",default:generateBlocksDefaults.container.fontSizeTablet},fontSizeMobile:{type:"number",default:generateBlocksDefaults.container.fontSizeMobile},fontSizeUnit:{type:"string",default:generateBlocksDefaults.container.fontSizeUnit},textTransform:{type:"string",default:""},align:{type:"string",default:""},shapeDividers:{type:"array",default:[]},isDynamic:{type:"boolean"},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};generateBlocksInfo.hasCustomFields&&Object.assign(Ke,{fullWidthContent:{type:"string",source:"meta",meta:"_generate-full-width-content"}});var Je=Ke;function Ye(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function Qe(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?Ye(Object(a),!0).forEach((function(t){o()(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Ye(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var Xe=[{attributes:Je,supports:{align:!1,anchor:!1,className:!1,customClassName:!1},migrate:function(e){var t=e.cssClasses?e.cssClasses:e.className,a=e.elementId?e.elementId:e.anchor;return Qe(Qe({},e),{},{className:t,anchor:a,cssClasses:"",elementId:""})},save:function(e){var t,a=e.attributes,i=a.uniqueId,r=a.tagName,n=a.elementId,c=a.cssClasses,s=a.isGrid,g=a.align,b={className:w()((t={"gb-container":!0},o()(t,"gb-container-".concat(i),!0),o()(t,"".concat(c),""!==c),o()(t,"align".concat(g),!!g&&!s),t)),id:n||null};return b=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",b,"generateblocks/container",a),Object(l.createElement)((function(e){var t=e.condition,a=e.wrap,l=e.children;return t?a(l):l}),{condition:s,wrap:function(e){return Object(l.createElement)("div",{className:w()(o()({"gb-grid-column":!0},"gb-grid-column-".concat(i),!0))},e)}},Object(l.createElement)(fe,{tagName:r,htmlAttrs:b},Object(_.applyFilters)("generateblocks.frontend.insideContainer","",a),Object(l.createElement)("div",{className:w()({"gb-inside-container":!0})},Object(l.createElement)(Q.InnerBlocks.Content,null))))}}];Object(X.registerBlockType)("generateblocks/container",{title:Object(T.__)("Container","generateblocks"),description:Object(T.__)("Organize your content into rows and sections.","generateblocks"),icon:j("container"),category:"generateblocks",keywords:[Object(T.__)("section"),Object(T.__)("container"),Object(T.__)("generate")],attributes:Je,supports:{align:!1,className:!1},edit:Ze,save:function(){return Object(l.createElement)(Q.InnerBlocks.Content,null)},deprecated:Xe});a(40);function $e(e){return"left"===e||"top"===e?"flex-start":"right"===e||"bottom"===e?"flex-end":e}function et(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var tt=function(e){f()(a,e);var t=et(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.alignment,i=e.marginTop,r=e.marginRight,n=e.marginBottom,o=e.marginLeft,c=e.marginUnit,s=e.stack,g=e.fillHorizontalSpace,b=[];return b[".gb-button-wrapper-"+t]=[{display:!!g&&"block",margin:De(i,r,n,o,c),"justify-content":$e(a),"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],b[".gb-button-wrapper-"+t+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),s&&g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),b=Object(_.applyFilters)("generateblocks.editor.mainCSS",b,this.props,"button-container"),Object(l.createElement)("style",null,M(b))}}]),a}(l.Component);function at(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var lt=function(e){f()(a,e);var t=at(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.desktopCSS",e,this.props,"button-container"),Object(l.createElement)("style",null,M(e))}}]),a}(l.Component);function it(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var rt=function(e){f()(a,e);var t=it(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.alignmentTablet,i=e.marginTopTablet,r=e.marginRightTablet,n=e.marginBottomTablet,o=e.marginLeftTablet,c=e.marginUnit,s=e.stackTablet,g=e.fillHorizontalSpaceTablet,b=[];return b[".gb-button-wrapper-"+t]=[{display:!!g&&"block","margin-top":z(i,c),"margin-right":z(r,c),"margin-bottom":z(n,c),"margin-left":z(o,c),"justify-content":$e(a),"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],b[".gb-button-wrapper-"+t+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),s&&g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),b=Object(_.applyFilters)("generateblocks.editor.tabletCSS",b,this.props,"button-container"),Object(l.createElement)("style",null,M(b))}}]),a}(l.Component);function nt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ot=function(e){f()(a,e);var t=nt(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.tabletOnlyCSS",e,this.props,"button-container"),Object(l.createElement)("style",null,M(e))}}]),a}(l.Component);function ct(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var st=function(e){f()(a,e);var t=ct(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.uniqueId,a=e.alignmentMobile,i=e.marginTopMobile,r=e.marginRightMobile,n=e.marginBottomMobile,o=e.marginLeftMobile,c=e.marginUnit,s=e.stackMobile,g=e.fillHorizontalSpaceMobile,b=[];return b[".gb-button-wrapper-"+t]=[{display:!!g&&"block","margin-top":z(i,c),"margin-right":z(r,c),"margin-bottom":z(n,c),"margin-left":z(o,c),"justify-content":$e(a),"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!s&&"column","align-items":!!s&&$e(a)}],g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],b[".gb-button-wrapper-"+t+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),s&&g&&(b[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),b=Object(_.applyFilters)("generateblocks.editor.mobileCSS",b,this.props,"button-container"),Object(l.createElement)("style",null,M(b))}}]),a}(l.Component);function gt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var bt=/[\s#]/g,ut=[],dt=[{icon:"editor-alignleft",title:Object(T.__)("Align Buttons Left","generateblocks"),align:"left"},{icon:"editor-aligncenter",title:Object(T.__)("Align Buttons Center","generateblocks"),align:"center"},{icon:"editor-alignright",title:Object(T.__)("Align Buttons Right","generateblocks"),align:"right"}],pt=function(e){f()(a,e);var t=gt(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).state={selectedDevice:"Desktop"},e.getDeviceType=e.getDeviceType.bind(d()(e)),e.setDeviceType=e.setDeviceType.bind(d()(e)),e}return b()(a,[{key:"componentDidMount",value:function(){var e=this.props.clientId.substr(2,9).replace("-","");this.props.attributes.uniqueId?ut.includes(this.props.attributes.uniqueId)?(this.props.setAttributes({uniqueId:e}),ut.push(e)):ut.push(this.props.attributes.uniqueId):(this.props.setAttributes({uniqueId:e}),ut.push(e));var t=wp.data.select("core/block-editor").getBlocksByClientId(this.props.clientId)[0];t&&(0===t.innerBlocks.length&&wp.data.dispatch("core/block-editor").insertBlocks(Object(X.createBlock)("generateblocks/button",generateBlocksStyling.button),void 0,this.props.clientId));void 0!==this.props.attributes.isDynamic&&this.props.attributes.isDynamic||this.props.setAttributes({isDynamic:!0})}},{key:"getDeviceType",value:function(){var e=this.props.deviceType?this.props.deviceType:this.state.selectedDevice;return generateBlocksInfo.syncResponsivePreviews||(e=this.state.selectedDevice),e}},{key:"setDeviceType",value:function(e){generateBlocksInfo.syncResponsivePreviews&&this.props.deviceType?(this.props.setDeviceType(e),this.setState({selectedDevice:e})):this.setState({selectedDevice:e})}},{key:"render",value:function(){var e,t=this,a=this.props,i=a.attributes,n=a.setAttributes,c=a.clientId,s=i.uniqueId,g=i.className,b=i.anchor,u=i.alignment,d=i.alignmentTablet,p=i.alignmentMobile,f=i.stack,h=i.stackTablet,m=i.stackMobile,k=i.fillHorizontalSpace,y=i.fillHorizontalSpaceTablet,v=i.fillHorizontalSpaceMobile,O={className:w()((e={"gb-button-wrapper":!0},o()(e,"gb-button-wrapper-".concat(s),!0),o()(e,"".concat(g),void 0!==g),e)),id:b||null};return O=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",O,"generateblocks/button-container",i),Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Q.BlockControls,null,Object(l.createElement)(C.ToolbarGroup,null,Object(l.createElement)(C.ToolbarButton,{className:"gblocks-add-new-button",icon:"insert",label:Object(T.__)("Add Button","generateblocks"),onClick:function(){var e=wp.data.select("core/block-editor").getBlocksByClientId(c)[0];if(e){var t=e.innerBlocks,a=Object.keys(t),l=a[a.length-1];if(void 0!==t[l]){var i=t[l].clientId;if(i){var r=wp.data.select("core/block-editor").getBlocksByClientId(i)[0],n=Object(X.cloneBlock)(r);wp.data.dispatch("core/block-editor").insertBlocks(n,void 0,c)}}else 0===t.length&&wp.data.dispatch("core/block-editor").insertBlocks(Object(X.createBlock)("generateblocks/button",generateBlocksStyling.button),void 0,c)}},showTooltip:!0})),"Desktop"===this.getDeviceType()&&Object(l.createElement)(Q.AlignmentToolbar,{value:u,alignmentControls:dt,onChange:function(e){n({alignment:e})}}),"Tablet"===this.getDeviceType()&&Object(l.createElement)(Q.AlignmentToolbar,{value:d,alignmentControls:dt,onChange:function(e){n({alignmentTablet:e})}}),"Mobile"===this.getDeviceType()&&Object(l.createElement)(Q.AlignmentToolbar,{value:p,alignmentControls:dt,onChange:function(e){n({alignmentMobile:e})}})),Object(l.createElement)(Q.InspectorControls,null,Object(l.createElement)(B,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Spacing","generateblocks"),initialOpen:!0,icon:j("spacing"),className:"gblocks-panel-label",id:"buttonContainerSpacing",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTop",attrRight:"marginRight",attrBottom:"marginBottom",attrLeft:"marginLeft",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer,units:["px","em","%"]})),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Stack Vertically","generateblocks"),checked:!!f,onChange:function(e){n({stack:e})}}),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Fill Horizontal Space","generateblocks"),checked:!!k,onChange:function(e){n({fillHorizontalSpace:e})}})),"Tablet"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopTablet",attrRight:"marginRightTablet",attrBottom:"marginBottomTablet",attrLeft:"marginLeftTablet",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer,units:["px","em","%"]})),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Stack Vertically","generateblocks"),checked:!!h,onChange:function(e){n({stackTablet:e})}}),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Fill Horizontal Space","generateblocks"),checked:!!y,onChange:function(e){n({fillHorizontalSpaceTablet:e})}})),"Mobile"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopMobile",attrRight:"marginRightMobile",attrBottom:"marginBottomMobile",attrLeft:"marginLeftMobile",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer,units:["px","em","%"]})),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Stack Vertically","generateblocks"),checked:!!m,onChange:function(e){n({stackMobile:e})}}),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Fill Horizontal Space","generateblocks"),checked:!!v,onChange:function(e){n({fillHorizontalSpaceMobile:e})}})),Object(_.applyFilters)("generateblocks.editor.controls","","buttonContainerSpacing",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Documentation","generateblocks"),icon:j("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"buttonContainerDocumentation",state:this.state}),Object(l.createElement)("p",null,Object(T.__)("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/buttons/",target:"_blank",rel:"noreferrer noopener"},Object(T.__)("Visit our documentation","generateblocks")),Object(_.applyFilters)("generateblocks.editor.controls","","buttonContainerDocumentation",this.props,this.state))),Object(l.createElement)(Q.InspectorAdvancedControls,null,Object(l.createElement)(C.TextControl,{label:Object(T.__)("HTML Anchor"),help:Object(T.__)("Anchors lets you link directly to a section on a page.","generateblocks"),value:b||"",onChange:function(e){e=e.replace(bt,"-"),n({anchor:e})}})),Object(l.createElement)(tt,this.props),this.props.deviceType&&Object(l.createElement)(l.Fragment,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(lt,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(rt,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(ot,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(st,this.props)),Object(l.createElement)("div",O,Object(l.createElement)(Q.InnerBlocks,{allowedBlocks:["generateblocks/button"],renderAppender:function(){return Object(l.createElement)(C.Tooltip,{text:Object(T.__)("Add Button","generateblocks")},Object(l.createElement)(C.Button,{className:"gblocks-add-new-button gblocks-button-container-appender",icon:"insert",onClick:function(){wp.data.dispatch("core/block-editor").insertBlocks(Object(X.createBlock)("generateblocks/button",generateBlocksStyling.button),void 0,c)}}))}})))}}]),a}(l.Component),ft=Object(ee.compose)([Object($.withDispatch)((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),Object($.withSelect)((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?{deviceType:t()}:{deviceType:null}}))])(pt),ht={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},alignment:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},alignmentTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},alignmentMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},marginTop:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.buttonContainer.marginUnit},marginTopTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeftMobile},stack:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stack},stackTablet:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stackTablet},stackMobile:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stackMobile},fillHorizontalSpace:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpace},fillHorizontalSpaceTablet:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpaceTablet},fillHorizontalSpaceMobile:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpaceMobile},isDynamic:{type:"boolean"},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};function mt(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function kt(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?mt(Object(a),!0).forEach((function(t){o()(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):mt(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var yt=[{attributes:ht,supports:{anchor:!1,className:!1,customClassName:!1},migrate:function(e){var t=e.cssClasses?e.cssClasses:e.className,a=e.elementId?e.elementId:e.anchor;return kt(kt({},e),{},{className:t,anchor:a,cssClasses:"",elementId:""})},save:function(e){var t,a=e.attributes,i=a.uniqueId,r=a.elementId,n=a.cssClasses,c={id:r||void 0,className:w()((t={"gb-button-wrapper":!0},o()(t,"gb-button-wrapper-".concat(i),!0),o()(t,"".concat(n),""!==n),t))};return c=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",c,"generateblocks/button-container",a),Object(l.createElement)("div",c,Object(l.createElement)(Q.InnerBlocks.Content,null))}}];Object(X.registerBlockType)("generateblocks/button-container",{title:Object(T.__)("Buttons","generateblocks"),description:Object(T.__)("Drive conversions with beautiful buttons.","generateblocks"),icon:j("button"),category:"generateblocks",keywords:[Object(T.__)("button"),Object(T.__)("buttons"),Object(T.__)("generate")],attributes:ht,supports:{className:!1},edit:ft,save:function(){return Object(l.createElement)(Q.InnerBlocks.Content,null)},deprecated:yt});a(41),a(42);var vt={facebook:{label:Object(T._x)("Facebook","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 320 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z"}))},facebookCircle:{label:Object(T._x)("Facebook - Circle","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M504 256C504 119 393 8 256 8S8 119 8 256c0 123.78 90.69 226.38 209.25 245V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.28c-30.8 0-40.41 19.12-40.41 38.73V256h68.78l-11 71.69h-57.78V501C413.31 482.38 504 379.78 504 256z"}))},facebookSquare:{label:Object(T._x)("Facebook - Square","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M400 32H48A48 48 0 0 0 0 80v352a48 48 0 0 0 48 48h137.25V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.27c-30.81 0-40.42 19.12-40.42 38.73V256h68.78l-11 71.69h-57.78V480H400a48 48 0 0 0 48-48V80a48 48 0 0 0-48-48z"}))},instagram:{label:Object(T._x)("Instagram","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"}))},linkedin:{label:Object(T._x)("LinkedIn","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z"}))},linkedinSquare:{label:Object(T._x)("LinkedIn - Square","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"}))},pinterest:{label:Object(T._x)("Pinterest","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 384 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M204 6.5C101.4 6.5 0 74.9 0 185.6 0 256 39.6 296 63.6 296c9.9 0 15.6-27.6 15.6-35.4 0-9.3-23.7-29.1-23.7-67.8 0-80.4 61.2-137.4 140.4-137.4 68.1 0 118.5 38.7 118.5 109.8 0 53.1-21.3 152.7-90.3 152.7-24.9 0-46.2-18-46.2-43.8 0-37.8 26.4-74.4 26.4-113.4 0-66.2-93.9-54.2-93.9 25.8 0 16.8 2.1 35.4 9.6 50.7-13.8 59.4-42 147.9-42 209.1 0 18.9 2.7 37.5 4.5 56.4 3.4 3.8 1.7 3.4 6.9 1.5 50.4-69 48.6-82.5 71.4-172.8 12.3 23.4 44.1 36 69.3 36 106.2 0 153.9-103.5 153.9-196.8C384 71.3 298.2 6.5 204 6.5z"}))},pinterestCircle:{label:Object(T._x)("Pinterest - Circle","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 496 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M496 256c0 137-111 248-248 248-25.6 0-50.2-3.9-73.4-11.1 10.1-16.5 25.2-43.5 30.8-65 3-11.6 15.4-59 15.4-59 8.1 15.4 31.7 28.5 56.8 28.5 74.8 0 128.7-68.8 128.7-154.3 0-81.9-66.9-143.2-152.9-143.2-107 0-163.9 71.8-163.9 150.1 0 36.4 19.4 81.7 50.3 96.1 4.7 2.2 7.2 1.2 8.3-3.3.8-3.4 5-20.3 6.9-28.1.6-2.5.3-4.7-1.7-7.1-10.1-12.5-18.3-35.3-18.3-56.6 0-54.7 41.4-107.6 112-107.6 60.9 0 103.6 41.5 103.6 100.9 0 67.1-33.9 113.6-78 113.6-24.3 0-42.6-20.1-36.7-44.8 7-29.5 20.5-61.3 20.5-82.6 0-19-10.2-34.9-31.4-34.9-24.9 0-44.9 25.7-44.9 60.2 0 22 7.4 36.8 7.4 36.8s-24.5 103.8-29 123.2c-5 21.4-3 51.6-.9 71.2C65.4 450.9 0 361.1 0 256 0 119 111 8 248 8s248 111 248 248z"}))},pinterestSquare:{label:Object(T._x)("Pinterest - Square","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M448 80v352c0 26.5-21.5 48-48 48H154.4c9.8-16.4 22.4-40 27.4-59.3 3-11.5 15.3-58.4 15.3-58.4 8 15.3 31.4 28.2 56.3 28.2 74.1 0 127.4-68.1 127.4-152.7 0-81.1-66.2-141.8-151.4-141.8-106 0-162.2 71.1-162.2 148.6 0 36 19.2 80.8 49.8 95.1 4.7 2.2 7.1 1.2 8.2-3.3.8-3.4 5-20.1 6.8-27.8.6-2.5.3-4.6-1.7-7-10.1-12.3-18.3-34.9-18.3-56 0-54.2 41-106.6 110.9-106.6 60.3 0 102.6 41.1 102.6 99.9 0 66.4-33.5 112.4-77.2 112.4-24.1 0-42.1-19.9-36.4-44.4 6.9-29.2 20.3-60.7 20.3-81.8 0-53-75.5-45.7-75.5 25 0 21.7 7.3 36.5 7.3 36.5-31.4 132.8-36.1 134.5-29.6 192.6l2.2.8H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48z"}))},reddit:{label:Object(T._x)("Reddit","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M440.3 203.5c-15 0-28.2 6.2-37.9 15.9-35.7-24.7-83.8-40.6-137.1-42.3L293 52.3l88.2 19.8c0 21.6 17.6 39.2 39.2 39.2 22 0 39.7-18.1 39.7-39.7s-17.6-39.7-39.7-39.7c-15.4 0-28.7 9.3-35.3 22l-97.4-21.6c-4.9-1.3-9.7 2.2-11 7.1L246.3 177c-52.9 2.2-100.5 18.1-136.3 42.8-9.7-10.1-23.4-16.3-38.4-16.3-55.6 0-73.8 74.6-22.9 100.1-1.8 7.9-2.6 16.3-2.6 24.7 0 83.8 94.4 151.7 210.3 151.7 116.4 0 210.8-67.9 210.8-151.7 0-8.4-.9-17.2-3.1-25.1 49.9-25.6 31.5-99.7-23.8-99.7zM129.4 308.9c0-22 17.6-39.7 39.7-39.7 21.6 0 39.2 17.6 39.2 39.7 0 21.6-17.6 39.2-39.2 39.2-22 .1-39.7-17.6-39.7-39.2zm214.3 93.5c-36.4 36.4-139.1 36.4-175.5 0-4-3.5-4-9.7 0-13.7 3.5-3.5 9.7-3.5 13.2 0 27.8 28.5 120 29 149 0 3.5-3.5 9.7-3.5 13.2 0 4.1 4 4.1 10.2.1 13.7zm-.8-54.2c-21.6 0-39.2-17.6-39.2-39.2 0-22 17.6-39.7 39.2-39.7 22 0 39.7 17.6 39.7 39.7-.1 21.5-17.7 39.2-39.7 39.2z"}))},redditCircle:{label:Object(T._x)("Reddit - Circle","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M201.5 305.5c-13.8 0-24.9-11.1-24.9-24.6 0-13.8 11.1-24.9 24.9-24.9 13.6 0 24.6 11.1 24.6 24.9 0 13.6-11.1 24.6-24.6 24.6zM504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zm-132.3-41.2c-9.4 0-17.7 3.9-23.8 10-22.4-15.5-52.6-25.5-86.1-26.6l17.4-78.3 55.4 12.5c0 13.6 11.1 24.6 24.6 24.6 13.8 0 24.9-11.3 24.9-24.9s-11.1-24.9-24.9-24.9c-9.7 0-18 5.8-22.1 13.8l-61.2-13.6c-3-.8-6.1 1.4-6.9 4.4l-19.1 86.4c-33.2 1.4-63.1 11.3-85.5 26.8-6.1-6.4-14.7-10.2-24.1-10.2-34.9 0-46.3 46.9-14.4 62.8-1.1 5-1.7 10.2-1.7 15.5 0 52.6 59.2 95.2 132 95.2 73.1 0 132.3-42.6 132.3-95.2 0-5.3-.6-10.8-1.9-15.8 31.3-16 19.8-62.5-14.9-62.5zM302.8 331c-18.2 18.2-76.1 17.9-93.6 0-2.2-2.2-6.1-2.2-8.3 0-2.5 2.5-2.5 6.4 0 8.6 22.8 22.8 87.3 22.8 110.2 0 2.5-2.2 2.5-6.1 0-8.6-2.2-2.2-6.1-2.2-8.3 0zm7.7-75c-13.6 0-24.6 11.1-24.6 24.9 0 13.6 11.1 24.6 24.6 24.6 13.8 0 24.9-11.1 24.9-24.6 0-13.8-11-24.9-24.9-24.9z"}))},redditSquare:{label:Object(T._x)("Reddit - Square","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M283.2 345.5c2.7 2.7 2.7 6.8 0 9.2-24.5 24.5-93.8 24.6-118.4 0-2.7-2.4-2.7-6.5 0-9.2 2.4-2.4 6.5-2.4 8.9 0 18.7 19.2 81 19.6 100.5 0 2.4-2.3 6.6-2.3 9 0zm-91.3-53.8c0-14.9-11.9-26.8-26.5-26.8-14.9 0-26.8 11.9-26.8 26.8 0 14.6 11.9 26.5 26.8 26.5 14.6 0 26.5-11.9 26.5-26.5zm90.7-26.8c-14.6 0-26.5 11.9-26.5 26.8 0 14.6 11.9 26.5 26.5 26.5 14.9 0 26.8-11.9 26.8-26.5 0-14.9-11.9-26.8-26.8-26.8zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-99.7 140.6c-10.1 0-19 4.2-25.6 10.7-24.1-16.7-56.5-27.4-92.5-28.6l18.7-84.2 59.5 13.4c0 14.6 11.9 26.5 26.5 26.5 14.9 0 26.8-12.2 26.8-26.8 0-14.6-11.9-26.8-26.8-26.8-10.4 0-19.3 6.2-23.8 14.9l-65.7-14.6c-3.3-.9-6.5 1.5-7.4 4.8l-20.5 92.8c-35.7 1.5-67.8 12.2-91.9 28.9-6.5-6.8-15.8-11-25.9-11-37.5 0-49.8 50.4-15.5 67.5-1.2 5.4-1.8 11-1.8 16.7 0 56.5 63.7 102.3 141.9 102.3 78.5 0 142.2-45.8 142.2-102.3 0-5.7-.6-11.6-2.1-17 33.6-17.2 21.2-67.2-16.1-67.2z"}))},snapchat:{label:Object(T._x)("Snapchat","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M510.846 392.673c-5.211 12.157-27.239 21.089-67.36 27.318-2.064 2.786-3.775 14.686-6.507 23.956-1.625 5.566-5.623 8.869-12.128 8.869l-.297-.005c-9.395 0-19.203-4.323-38.852-4.323-26.521 0-35.662 6.043-56.254 20.588-21.832 15.438-42.771 28.764-74.027 27.399-31.646 2.334-58.025-16.908-72.871-27.404-20.714-14.643-29.828-20.582-56.241-20.582-18.864 0-30.736 4.72-38.852 4.72-8.073 0-11.213-4.922-12.422-9.04-2.703-9.189-4.404-21.263-6.523-24.13-20.679-3.209-67.31-11.344-68.498-32.15a10.627 10.627 0 0 1 8.877-11.069c69.583-11.455 100.924-82.901 102.227-85.934.074-.176.155-.344.237-.515 3.713-7.537 4.544-13.849 2.463-18.753-5.05-11.896-26.872-16.164-36.053-19.796-23.715-9.366-27.015-20.128-25.612-27.504 2.437-12.836 21.725-20.735 33.002-15.453 8.919 4.181 16.843 6.297 23.547 6.297 5.022 0 8.212-1.204 9.96-2.171-2.043-35.936-7.101-87.29 5.687-115.969C158.122 21.304 229.705 15.42 250.826 15.42c.944 0 9.141-.089 10.11-.089 52.148 0 102.254 26.78 126.723 81.643 12.777 28.65 7.749 79.792 5.695 116.009 1.582.872 4.357 1.942 8.599 2.139 6.397-.286 13.815-2.389 22.069-6.257 6.085-2.846 14.406-2.461 20.48.058l.029.01c9.476 3.385 15.439 10.215 15.589 17.87.184 9.747-8.522 18.165-25.878 25.018-2.118.835-4.694 1.655-7.434 2.525-9.797 3.106-24.6 7.805-28.616 17.271-2.079 4.904-1.256 11.211 2.46 18.748.087.168.166.342.239.515 1.301 3.03 32.615 74.46 102.23 85.934 6.427 1.058 11.163 7.877 7.725 15.859z"}))},soundcloud:{label:Object(T._x)("Soundcloud","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 640 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M111.4 256.3l5.8 65-5.8 68.3c-.3 2.5-2.2 4.4-4.4 4.4s-4.2-1.9-4.2-4.4l-5.6-68.3 5.6-65c0-2.2 1.9-4.2 4.2-4.2 2.2 0 4.1 2 4.4 4.2zm21.4-45.6c-2.8 0-4.7 2.2-5 5l-5 105.6 5 68.3c.3 2.8 2.2 5 5 5 2.5 0 4.7-2.2 4.7-5l5.8-68.3-5.8-105.6c0-2.8-2.2-5-4.7-5zm25.5-24.1c-3.1 0-5.3 2.2-5.6 5.3l-4.4 130 4.4 67.8c.3 3.1 2.5 5.3 5.6 5.3 2.8 0 5.3-2.2 5.3-5.3l5.3-67.8-5.3-130c0-3.1-2.5-5.3-5.3-5.3zM7.2 283.2c-1.4 0-2.2 1.1-2.5 2.5L0 321.3l4.7 35c.3 1.4 1.1 2.5 2.5 2.5s2.2-1.1 2.5-2.5l5.6-35-5.6-35.6c-.3-1.4-1.1-2.5-2.5-2.5zm23.6-21.9c-1.4 0-2.5 1.1-2.5 2.5l-6.4 57.5 6.4 56.1c0 1.7 1.1 2.8 2.5 2.8s2.5-1.1 2.8-2.5l7.2-56.4-7.2-57.5c-.3-1.4-1.4-2.5-2.8-2.5zm25.3-11.4c-1.7 0-3.1 1.4-3.3 3.3L47 321.3l5.8 65.8c.3 1.7 1.7 3.1 3.3 3.1 1.7 0 3.1-1.4 3.1-3.1l6.9-65.8-6.9-68.1c0-1.9-1.4-3.3-3.1-3.3zm25.3-2.2c-1.9 0-3.6 1.4-3.6 3.6l-5.8 70 5.8 67.8c0 2.2 1.7 3.6 3.6 3.6s3.6-1.4 3.9-3.6l6.4-67.8-6.4-70c-.3-2.2-2-3.6-3.9-3.6zm241.4-110.9c-1.1-.8-2.8-1.4-4.2-1.4-2.2 0-4.2.8-5.6 1.9-1.9 1.7-3.1 4.2-3.3 6.7v.8l-3.3 176.7 1.7 32.5 1.7 31.7c.3 4.7 4.2 8.6 8.9 8.6s8.6-3.9 8.6-8.6l3.9-64.2-3.9-177.5c-.4-3-2-5.8-4.5-7.2zm-26.7 15.3c-1.4-.8-2.8-1.4-4.4-1.4s-3.1.6-4.4 1.4c-2.2 1.4-3.6 3.9-3.6 6.7l-.3 1.7-2.8 160.8s0 .3 3.1 65.6v.3c0 1.7.6 3.3 1.7 4.7 1.7 1.9 3.9 3.1 6.4 3.1 2.2 0 4.2-1.1 5.6-2.5 1.7-1.4 2.5-3.3 2.5-5.6l.3-6.7 3.1-58.6-3.3-162.8c-.3-2.8-1.7-5.3-3.9-6.7zm-111.4 22.5c-3.1 0-5.8 2.8-5.8 6.1l-4.4 140.6 4.4 67.2c.3 3.3 2.8 5.8 5.8 5.8 3.3 0 5.8-2.5 6.1-5.8l5-67.2-5-140.6c-.2-3.3-2.7-6.1-6.1-6.1zm376.7 62.8c-10.8 0-21.1 2.2-30.6 6.1-6.4-70.8-65.8-126.4-138.3-126.4-17.8 0-35 3.3-50.3 9.4-6.1 2.2-7.8 4.4-7.8 9.2v249.7c0 5 3.9 8.6 8.6 9.2h218.3c43.3 0 78.6-35 78.6-78.3.1-43.6-35.2-78.9-78.5-78.9zm-296.7-60.3c-4.2 0-7.5 3.3-7.8 7.8l-3.3 136.7 3.3 65.6c.3 4.2 3.6 7.5 7.8 7.5 4.2 0 7.5-3.3 7.5-7.5l3.9-65.6-3.9-136.7c-.3-4.5-3.3-7.8-7.5-7.8zm-53.6-7.8c-3.3 0-6.4 3.1-6.4 6.7l-3.9 145.3 3.9 66.9c.3 3.6 3.1 6.4 6.4 6.4 3.6 0 6.4-2.8 6.7-6.4l4.4-66.9-4.4-145.3c-.3-3.6-3.1-6.7-6.7-6.7zm26.7 3.4c-3.9 0-6.9 3.1-6.9 6.9L227 321.3l3.9 66.4c.3 3.9 3.1 6.9 6.9 6.9s6.9-3.1 6.9-6.9l4.2-66.4-4.2-141.7c0-3.9-3-6.9-6.9-6.9z"}))},twitch:{label:Object(T._x)("Twitch","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M40.1 32L10 108.9v314.3h107V480h60.2l56.8-56.8h87l117-117V32H40.1zm357.8 254.1L331 353H224l-56.8 56.8V353H76.9V72.1h321v214zM331 149v116.9h-40.1V149H331zm-107 0v116.9h-40.1V149H224z"}))},twitter:{label:Object(T._x)("Twitter","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"}))},twitterSquare:{label:Object(T._x)("Twitter - Square","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-48.9 158.8c.2 2.8.2 5.7.2 8.5 0 86.7-66 186.6-186.6 186.6-37.2 0-71.7-10.8-100.7-29.4 5.3.6 10.4.8 15.8.8 30.7 0 58.9-10.4 81.4-28-28.8-.6-53-19.5-61.3-45.5 10.1 1.5 19.2 1.5 29.6-1.2-30-6.1-52.5-32.5-52.5-64.4v-.8c8.7 4.9 18.9 7.9 29.6 8.3a65.447 65.447 0 0 1-29.2-54.6c0-12.2 3.2-23.4 8.9-33.1 32.3 39.8 80.8 65.8 135.2 68.6-9.3-44.5 24-80.6 64-80.6 18.9 0 35.9 7.9 47.9 20.7 14.8-2.8 29-8.3 41.6-15.8-4.9 15.2-15.2 28-28.8 36.1 13.2-1.4 26-5.1 37.8-10.2-8.9 13.1-20.1 24.7-32.9 34z"}))},vimeo:{label:Object(T._x)("Vimeo","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M447.8 153.6c-2 43.6-32.4 103.3-91.4 179.1-60.9 79.2-112.4 118.8-154.6 118.8-26.1 0-48.2-24.1-66.3-72.3C100.3 250 85.3 174.3 56.2 174.3c-3.4 0-15.1 7.1-35.2 21.1L0 168.2c51.6-45.3 100.9-95.7 131.8-98.5 34.9-3.4 56.3 20.5 64.4 71.5 28.7 181.5 41.4 208.9 93.6 126.7 18.7-29.6 28.8-52.1 30.2-67.6 4.8-45.9-35.8-42.8-63.3-31 22-72.1 64.1-107.1 126.2-105.1 45.8 1.2 67.5 31.1 64.9 89.4z"}))},vimeoSquare:{label:Object(T._x)("Vimeo - Square","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M403.2 32H44.8C20.1 32 0 52.1 0 76.8v358.4C0 459.9 20.1 480 44.8 480h358.4c24.7 0 44.8-20.1 44.8-44.8V76.8c0-24.7-20.1-44.8-44.8-44.8zM377 180.8c-1.4 31.5-23.4 74.7-66 129.4-44 57.2-81.3 85.8-111.7 85.8-18.9 0-34.8-17.4-47.9-52.3-25.5-93.3-36.4-148-57.4-148-2.4 0-10.9 5.1-25.4 15.2l-15.2-19.6c37.3-32.8 72.9-69.2 95.2-71.2 25.2-2.4 40.7 14.8 46.5 51.7 20.7 131.2 29.9 151 67.6 91.6 13.5-21.4 20.8-37.7 21.8-48.9 3.5-33.2-25.9-30.9-45.8-22.4 15.9-52.1 46.3-77.4 91.2-76 33.3.9 49 22.5 47.1 64.7z"}))},whatsapp:{label:Object(T._x)("WhatsApp","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z"}))},whatsappSquare:{label:Object(T._x)("WhatsApp - Square","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M224 122.8c-72.7 0-131.8 59.1-131.9 131.8 0 24.9 7 49.2 20.2 70.1l3.1 5-13.3 48.6 49.9-13.1 4.8 2.9c20.2 12 43.4 18.4 67.1 18.4h.1c72.6 0 133.3-59.1 133.3-131.8 0-35.2-15.2-68.3-40.1-93.2-25-25-58-38.7-93.2-38.7zm77.5 188.4c-3.3 9.3-19.1 17.7-26.7 18.8-12.6 1.9-22.4.9-47.5-9.9-39.7-17.2-65.7-57.2-67.7-59.8-2-2.6-16.2-21.5-16.2-41s10.2-29.1 13.9-33.1c3.6-4 7.9-5 10.6-5 2.6 0 5.3 0 7.6.1 2.4.1 5.7-.9 8.9 6.8 3.3 7.9 11.2 27.4 12.2 29.4s1.7 4.3.3 6.9c-7.6 15.2-15.7 14.6-11.6 21.6 15.3 26.3 30.6 35.4 53.9 47.1 4 2 6.3 1.7 8.6-1 2.3-2.6 9.9-11.6 12.5-15.5 2.6-4 5.3-3.3 8.9-2 3.6 1.3 23.1 10.9 27.1 12.9s6.6 3 7.6 4.6c.9 1.9.9 9.9-2.4 19.1zM400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM223.9 413.2c-26.6 0-52.7-6.7-75.8-19.3L64 416l22.5-82.2c-13.9-24-21.2-51.3-21.2-79.3C65.4 167.1 136.5 96 223.9 96c42.4 0 82.2 16.5 112.2 46.5 29.9 30 47.9 69.8 47.9 112.2 0 87.4-72.7 158.5-160.1 158.5z"}))},youtube:{label:Object(T._x)("YouTube","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 576 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z"}))}},wt={clock:{label:Object(T._x)("Clock","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm92.49 313l-20 25a16 16 0 01-22.49 2.5l-67-49.72a40 40 0 01-15-31.23V112a16 16 0 0116-16h32a16 16 0 0116 16v144l58 42.5a16 16 0 012.49 22.5z"}))},clockAlt:{label:Object(T._x)("Clock Outline","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm61.8-104.4l-84.9-61.7c-3.1-2.3-4.9-5.9-4.9-9.7V116c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v141.7l66.8 48.6c5.4 3.9 6.5 11.4 2.6 16.8L334.6 349c-3.9 5.3-11.4 6.5-16.8 2.6z"}))},asterisk:{label:Object(T._x)("Asterisk","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M478.21 334.093L336 256l142.21-78.093c11.795-6.477 15.961-21.384 9.232-33.037l-19.48-33.741c-6.728-11.653-21.72-15.499-33.227-8.523L296 186.718l3.475-162.204C299.763 11.061 288.937 0 275.48 0h-38.96c-13.456 0-24.283 11.061-23.994 24.514L216 186.718 77.265 102.607c-11.506-6.976-26.499-3.13-33.227 8.523l-19.48 33.741c-6.728 11.653-2.562 26.56 9.233 33.037L176 256 33.79 334.093c-11.795 6.477-15.961 21.384-9.232 33.037l19.48 33.741c6.728 11.653 21.721 15.499 33.227 8.523L216 325.282l-3.475 162.204C212.237 500.939 223.064 512 236.52 512h38.961c13.456 0 24.283-11.061 23.995-24.514L296 325.282l138.735 84.111c11.506 6.976 26.499 3.13 33.227-8.523l19.48-33.741c6.728-11.653 2.563-26.559-9.232-33.036z"}))},at:{label:Object(T._x)("At","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M256 8C118.941 8 8 118.919 8 256c0 137.059 110.919 248 248 248 48.154 0 95.342-14.14 135.408-40.223 12.005-7.815 14.625-24.288 5.552-35.372l-10.177-12.433c-7.671-9.371-21.179-11.667-31.373-5.129C325.92 429.757 291.314 440 256 440c-101.458 0-184-82.542-184-184S154.542 72 256 72c100.139 0 184 57.619 184 160 0 38.786-21.093 79.742-58.17 83.693-17.349-.454-16.91-12.857-13.476-30.024l23.433-121.11C394.653 149.75 383.308 136 368.225 136h-44.981a13.518 13.518 0 0 0-13.432 11.993l-.01.092c-14.697-17.901-40.448-21.775-59.971-21.775-74.58 0-137.831 62.234-137.831 151.46 0 65.303 36.785 105.87 96 105.87 26.984 0 57.369-15.637 74.991-38.333 9.522 34.104 40.613 34.103 70.71 34.103C462.609 379.41 504 307.798 504 232 504 95.653 394.023 8 256 8zm-21.68 304.43c-22.249 0-36.07-15.623-36.07-40.771 0-44.993 30.779-72.729 58.63-72.729 22.292 0 35.601 15.241 35.601 40.77 0 45.061-33.875 72.73-58.161 72.73z"}))},award:{label:Object(T._x)("Award","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 384 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M97.12 362.63c-8.69-8.69-4.16-6.24-25.12-11.85-9.51-2.55-17.87-7.45-25.43-13.32L1.2 448.7c-4.39 10.77 3.81 22.47 15.43 22.03l52.69-2.01L105.56 507c8 8.44 22.04 5.81 26.43-4.96l52.05-127.62c-10.84 6.04-22.87 9.58-35.31 9.58-19.5 0-37.82-7.59-51.61-21.37zM382.8 448.7l-45.37-111.24c-7.56 5.88-15.92 10.77-25.43 13.32-21.07 5.64-16.45 3.18-25.12 11.85-13.79 13.78-32.12 21.37-51.62 21.37-12.44 0-24.47-3.55-35.31-9.58L252 502.04c4.39 10.77 18.44 13.4 26.43 4.96l36.25-38.28 52.69 2.01c11.62.44 19.82-11.27 15.43-22.03zM263 340c15.28-15.55 17.03-14.21 38.79-20.14 13.89-3.79 24.75-14.84 28.47-28.98 7.48-28.4 5.54-24.97 25.95-45.75 10.17-10.35 14.14-25.44 10.42-39.58-7.47-28.38-7.48-24.42 0-52.83 3.72-14.14-.25-29.23-10.42-39.58-20.41-20.78-18.47-17.36-25.95-45.75-3.72-14.14-14.58-25.19-28.47-28.98-27.88-7.61-24.52-5.62-44.95-26.41-10.17-10.35-25-14.4-38.89-10.61-27.87 7.6-23.98 7.61-51.9 0-13.89-3.79-28.72.25-38.89 10.61-20.41 20.78-17.05 18.8-44.94 26.41-13.89 3.79-24.75 14.84-28.47 28.98-7.47 28.39-5.54 24.97-25.95 45.75-10.17 10.35-14.15 25.44-10.42 39.58 7.47 28.36 7.48 24.4 0 52.82-3.72 14.14.25 29.23 10.42 39.59 20.41 20.78 18.47 17.35 25.95 45.75 3.72 14.14 14.58 25.19 28.47 28.98C104.6 325.96 106.27 325 121 340c13.23 13.47 33.84 15.88 49.74 5.82a39.676 39.676 0 0 1 42.53 0c15.89 10.06 36.5 7.65 49.73-5.82zM97.66 175.96c0-53.03 42.24-96.02 94.34-96.02s94.34 42.99 94.34 96.02-42.24 96.02-94.34 96.02-94.34-42.99-94.34-96.02z"}))},ban:{label:Object(T._x)("Ban","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M256 8C119.034 8 8 119.033 8 256s111.034 248 248 248 248-111.034 248-248S392.967 8 256 8zm130.108 117.892c65.448 65.448 70 165.481 20.677 235.637L150.47 105.216c70.204-49.356 170.226-44.735 235.638 20.676zM125.892 386.108c-65.448-65.448-70-165.481-20.677-235.637L361.53 406.784c-70.203 49.356-170.226 44.736-235.638-20.676z"}))},bars:{label:Object(T._x)("Bars","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"}))},beer:{label:Object(T._x)("Beer","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M368 96h-48V56c0-13.255-10.745-24-24-24H24C10.745 32 0 42.745 0 56v400c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24v-42.11l80.606-35.977C429.396 365.063 448 336.388 448 304.86V176c0-44.112-35.888-80-80-80zm16 208.86a16.018 16.018 0 0 1-9.479 14.611L320 343.805V160h48c8.822 0 16 7.178 16 16v128.86zM208 384c-8.836 0-16-7.164-16-16V144c0-8.836 7.164-16 16-16s16 7.164 16 16v224c0 8.836-7.164 16-16 16zm-96 0c-8.836 0-16-7.164-16-16V144c0-8.836 7.164-16 16-16s16 7.164 16 16v224c0 8.836-7.164 16-16 16z"}))},bolt:{label:Object(T._x)("Bolt","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 320 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M296 160H180.6l42.6-129.8C227.2 15 215.7 0 200 0H56C44 0 33.8 8.9 32.2 20.8l-32 240C-1.7 275.2 9.5 288 24 288h118.7L96.6 482.5c-3.6 15.2 8 29.5 23.3 29.5 8.4 0 16.4-4.4 20.8-12l176-304c9.3-15.9-2.2-36-20.7-36z"}))},book:{label:Object(T._x)("Book","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M448 360V24c0-13.3-10.7-24-24-24H96C43 0 0 43 0 96v320c0 53 43 96 96 96h328c13.3 0 24-10.7 24-24v-16c0-7.5-3.5-14.3-8.9-18.7-4.2-15.4-4.2-59.3 0-74.7 5.4-4.3 8.9-11.1 8.9-18.6zM128 134c0-3.3 2.7-6 6-6h212c3.3 0 6 2.7 6 6v20c0 3.3-2.7 6-6 6H134c-3.3 0-6-2.7-6-6v-20zm0 64c0-3.3 2.7-6 6-6h212c3.3 0 6 2.7 6 6v20c0 3.3-2.7 6-6 6H134c-3.3 0-6-2.7-6-6v-20zm253.4 250H96c-17.7 0-32-14.3-32-32 0-17.6 14.4-32 32-32h285.4c-1.9 17.1-1.9 46.9 0 64z"}))},boxOpen:{label:Object(T._x)("Box - Open","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 640 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M425.7 256c-16.9 0-32.8-9-41.4-23.4L320 126l-64.2 106.6c-8.7 14.5-24.6 23.5-41.5 23.5-4.5 0-9-.6-13.3-1.9L64 215v178c0 14.7 10 27.5 24.2 31l216.2 54.1c10.2 2.5 20.9 2.5 31 0L551.8 424c14.2-3.6 24.2-16.4 24.2-31V215l-137 39.1c-4.3 1.3-8.8 1.9-13.3 1.9zm212.6-112.2L586.8 41c-3.1-6.2-9.8-9.8-16.7-8.9L320 64l91.7 152.1c3.8 6.3 11.4 9.3 18.5 7.3l197.9-56.5c9.9-2.9 14.7-13.9 10.2-23.1zM53.2 41L1.7 143.8c-4.6 9.2.3 20.2 10.1 23l197.9 56.5c7.1 2 14.7-1 18.5-7.3L320 64 69.8 32.1c-6.9-.8-13.5 2.7-16.6 8.9z"}))},bullhorn:{label:Object(T._x)("Bullhorn","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 576 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M576 240c0-23.63-12.95-44.04-32-55.12V32.01C544 23.26 537.02 0 512 0c-7.12 0-14.19 2.38-19.98 7.02l-85.03 68.03C364.28 109.19 310.66 128 256 128H64c-35.35 0-64 28.65-64 64v96c0 35.35 28.65 64 64 64h33.7c-1.39 10.48-2.18 21.14-2.18 32 0 39.77 9.26 77.35 25.56 110.94 5.19 10.69 16.52 17.06 28.4 17.06h74.28c26.05 0 41.69-29.84 25.9-50.56-16.4-21.52-26.15-48.36-26.15-77.44 0-11.11 1.62-21.79 4.41-32H256c54.66 0 108.28 18.81 150.98 52.95l85.03 68.03a32.023 32.023 0 0 0 19.98 7.02c24.92 0 32-22.78 32-32V295.13C563.05 284.04 576 263.63 576 240zm-96 141.42l-33.05-26.44C392.95 311.78 325.12 288 256 288v-96c69.12 0 136.95-23.78 190.95-66.98L480 98.58v282.84z"}))},bullseye:{label:Object(T._x)("Bullseye","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 496 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm0 432c-101.69 0-184-82.29-184-184 0-101.69 82.29-184 184-184 101.69 0 184 82.29 184 184 0 101.69-82.29 184-184 184zm0-312c-70.69 0-128 57.31-128 128s57.31 128 128 128 128-57.31 128-128-57.31-128-128-128zm0 192c-35.29 0-64-28.71-64-64s28.71-64 64-64 64 28.71 64 64-28.71 64-64 64z"}))},burn:{label:Object(T._x)("Burn","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 384 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M192 0C79.7 101.3 0 220.9 0 300.5 0 425 79 512 192 512s192-87 192-211.5c0-79.9-80.2-199.6-192-300.5zm0 448c-56.5 0-96-39-96-94.8 0-13.5 4.6-61.5 96-161.2 91.4 99.7 96 147.7 96 161.2 0 55.8-39.5 94.8-96 94.8z"}))},calendarAlt:{label:Object(T._x)("Calender","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M148 288h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm108-12v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm96 0v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm-96 96v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm-96 0v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm192 0v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm96-260v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V112c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48zm-48 346V160H48v298c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"}))},check:{label:Object(T._x)("Check","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"}))},checkCircle:{label:Object(T._x)("Check - Circle","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"}))},checkCircleOutline:{label:Object(T._x)("Check - Circle Outline","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 48c110.532 0 200 89.451 200 200 0 110.532-89.451 200-200 200-110.532 0-200-89.451-200-200 0-110.532 89.451-200 200-200m140.204 130.267l-22.536-22.718c-4.667-4.705-12.265-4.736-16.97-.068L215.346 303.697l-59.792-60.277c-4.667-4.705-12.265-4.736-16.97-.069l-22.719 22.536c-4.705 4.667-4.736 12.265-.068 16.971l90.781 91.516c4.667 4.705 12.265 4.736 16.97.068l172.589-171.204c4.704-4.668 4.734-12.266.067-16.971z"}))},checkSquare:{label:Object(T._x)("Check - Square","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M400 480H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48zm-204.686-98.059l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.248-16.379-6.249-22.628 0L184 302.745l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.25 16.379 6.25 22.628.001z"}))},checkSquareOutline:{label:Object(T._x)("Check - Square Outline","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M400 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zm0 400H48V80h352v352zm-35.864-241.724L191.547 361.48c-4.705 4.667-12.303 4.637-16.97-.068l-90.781-91.516c-4.667-4.705-4.637-12.303.069-16.971l22.719-22.536c4.705-4.667 12.303-4.637 16.97.069l59.792 60.277 141.352-140.216c4.705-4.667 12.303-4.637 16.97.068l22.536 22.718c4.667 4.706 4.637 12.304-.068 16.971z"}))},chevronDown:{label:Object(T._x)("Chevron - Down","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"}))},chevronLeft:{label:Object(T._x)("Chevron - Left","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 256 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z"}))},chevronRight:{label:Object(T._x)("Chevron - Right","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 256 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"}))},chevronUp:{label:Object(T._x)("Chevron - Up","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z"}))},circle:{label:Object(T._x)("Circle","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8z"}))},circleOutline:{label:Object(T._x)("Circle - Outline","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200z"}))},coffee:{label:Object(T._x)("Coffee","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 640 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M192 384h192c53 0 96-43 96-96h32c70.6 0 128-57.4 128-128S582.6 32 512 32H120c-13.3 0-24 10.7-24 24v232c0 53 43 96 96 96zM512 96c35.3 0 64 28.7 64 64s-28.7 64-64 64h-32V96h32zm47.7 384H48.3c-47.6 0-61-64-36-64h583.3c25 0 11.8 64-35.9 64z"}))},dotCircle:{label:Object(T._x)("Dot - Circle","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm80 248c0 44.112-35.888 80-80 80s-80-35.888-80-80 35.888-80 80-80 80 35.888 80 80z"}))},dotCircleOutline:{label:Object(T._x)("Dot - Circle Outline","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M256 56c110.532 0 200 89.451 200 200 0 110.532-89.451 200-200 200-110.532 0-200-89.451-200-200 0-110.532 89.451-200 200-200m0-48C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 168c-44.183 0-80 35.817-80 80s35.817 80 80 80 80-35.817 80-80-35.817-80-80-80z"}))},ellipsesH:{label:Object(T._x)("Ellipses - Horizontal","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M328 256c0 39.8-32.2 72-72 72s-72-32.2-72-72 32.2-72 72-72 72 32.2 72 72zm104-72c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72zm-352 0c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72z"}))},ellipsesV:{label:Object(T._x)("Ellipses - Vertical","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 192 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M96 184c39.8 0 72 32.2 72 72s-32.2 72-72 72-72-32.2-72-72 32.2-72 72-72zM24 80c0 39.8 32.2 72 72 72s72-32.2 72-72S135.8 8 96 8 24 40.2 24 80zm0 352c0 39.8 32.2 72 72 72s72-32.2 72-72-32.2-72-72-72-72 32.2-72 72z"}))},envelope:{label:Object(T._x)("Envelope","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M464 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm0 48v40.805c-22.422 18.259-58.168 46.651-134.587 106.49-16.841 13.247-50.201 45.072-73.413 44.701-23.208.375-56.579-31.459-73.413-44.701C106.18 199.465 70.425 171.067 48 152.805V112h416zM48 400V214.398c22.914 18.251 55.409 43.862 104.938 82.646 21.857 17.205 60.134 55.186 103.062 54.955 42.717.231 80.509-37.199 103.053-54.947 49.528-38.783 82.032-64.401 104.947-82.653V400H48z"}))},fireAlt:{label:Object(T._x)("Fire","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M323.56 51.2c-20.8 19.3-39.58 39.59-56.22 59.97C240.08 73.62 206.28 35.53 168 0 69.74 91.17 0 209.96 0 281.6 0 408.85 100.29 512 224 512s224-103.15 224-230.4c0-53.27-51.98-163.14-124.44-230.4zm-19.47 340.65C282.43 407.01 255.72 416 226.86 416 154.71 416 96 368.26 96 290.75c0-38.61 24.31-72.63 72.79-130.75 6.93 7.98 98.83 125.34 98.83 125.34l58.63-66.88c4.14 6.85 7.91 13.55 11.27 19.97 27.35 52.19 15.81 118.97-33.43 153.42z"}))},heart:{label:Object(T._x)("Heart","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M462.3 62.6C407.5 15.9 326 24.3 275.7 76.2L256 96.5l-19.7-20.3C186.1 24.3 104.5 15.9 49.7 62.6c-62.8 53.6-66.1 149.8-9.9 207.9l193.5 199.8c12.5 12.9 32.8 12.9 45.3 0l193.5-199.8c56.3-58.1 53-154.3-9.8-207.9z"}))},mapMarkerAlt:{label:Object(T._x)("Map Marker","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 384 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M172.268 501.67C26.97 291.031 0 269.413 0 192 0 85.961 85.961 0 192 0s192 85.961 192 192c0 77.413-26.97 99.031-172.268 309.67-9.535 13.774-29.93 13.773-39.464 0zM192 272c44.183 0 80-35.817 80-80s-35.817-80-80-80-80 35.817-80 80 35.817 80 80 80z"}))},paperPlane:{label:Object(T._x)("Paper Plane","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M440 6.5L24 246.4c-34.4 19.9-31.1 70.8 5.7 85.9L144 379.6V464c0 46.4 59.2 65.5 86.6 28.6l43.8-59.1 111.9 46.2c5.9 2.4 12.1 3.6 18.3 3.6 8.2 0 16.3-2.1 23.6-6.2 12.8-7.2 21.6-20 23.9-34.5l59.4-387.2c6.1-40.1-36.9-68.8-71.5-48.9zM192 464v-64.6l36.6 15.1L192 464zm212.6-28.7l-153.8-63.5L391 169.5c10.7-15.5-9.5-33.5-23.7-21.2L155.8 332.6 48 288 464 48l-59.4 387.3z"}))},phone:{label:Object(T._x)("Phone","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M493.4 24.6l-104-24c-11.3-2.6-22.9 3.3-27.5 13.9l-48 112c-4.2 9.8-1.4 21.3 6.9 28l60.6 49.6c-36 76.7-98.9 140.5-177.2 177.2l-49.6-60.6c-6.8-8.3-18.2-11.1-28-6.9l-112 48C3.9 366.5-2 378.1.6 389.4l24 104C27.1 504.2 36.7 512 48 512c256.1 0 464-207.5 464-464 0-11.2-7.7-20.9-18.6-23.4z"}))},plus:{label:Object(T._x)("Plus","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"}))},plusCircle:{label:Object(T._x)("Plus - Circle","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm144 276c0 6.6-5.4 12-12 12h-92v92c0 6.6-5.4 12-12 12h-56c-6.6 0-12-5.4-12-12v-92h-92c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h92v-92c0-6.6 5.4-12 12-12h56c6.6 0 12 5.4 12 12v92h92c6.6 0 12 5.4 12 12v56z"}))},plusSquare:{label:Object(T._x)("Plus - Square","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-32 252c0 6.6-5.4 12-12 12h-92v92c0 6.6-5.4 12-12 12h-56c-6.6 0-12-5.4-12-12v-92H92c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h92v-92c0-6.6 5.4-12 12-12h56c6.6 0 12 5.4 12 12v92h92c6.6 0 12 5.4 12 12v56z"}))},plusSquareOutline:{label:Object(T._x)("Plus - Square Outline","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M352 240v32c0 6.6-5.4 12-12 12h-88v88c0 6.6-5.4 12-12 12h-32c-6.6 0-12-5.4-12-12v-88h-88c-6.6 0-12-5.4-12-12v-32c0-6.6 5.4-12 12-12h88v-88c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v88h88c6.6 0 12 5.4 12 12zm96-160v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-48 346V86c0-3.3-2.7-6-6-6H54c-3.3 0-6 2.7-6 6v340c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"}))},shield:{label:Object(T._x)("Shield","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M466.5 83.7l-192-80a48.15 48.15 0 0 0-36.9 0l-192 80C27.7 91.1 16 108.6 16 128c0 198.5 114.5 335.7 221.5 380.3 11.8 4.9 25.1 4.9 36.9 0C360.1 472.6 496 349.3 496 128c0-19.4-11.7-36.9-29.5-44.3zM256.1 446.3l-.1-381 175.9 73.3c-3.3 151.4-82.1 261.1-175.8 307.7z"}))},star:{label:Object(T._x)("Star","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 576 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"}))},tags:{label:Object(T._x)("Tags","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 640 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M497.941 225.941L286.059 14.059A48 48 0 0 0 252.118 0H48C21.49 0 0 21.49 0 48v204.118a48 48 0 0 0 14.059 33.941l211.882 211.882c18.744 18.745 49.136 18.746 67.882 0l204.118-204.118c18.745-18.745 18.745-49.137 0-67.882zM112 160c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm513.941 133.823L421.823 497.941c-18.745 18.745-49.137 18.745-67.882 0l-.36-.36L527.64 323.522c16.999-16.999 26.36-39.6 26.36-63.64s-9.362-46.641-26.36-63.64L331.397 0h48.721a48 48 0 0 1 33.941 14.059l211.882 211.882c18.745 18.745 18.745 49.137 0 67.882z"}))},userCircle:{label:Object(T._x)("User - Circle","label","generateblocks"),icon:Object(l.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 496 512",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{fill:"currentColor",d:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 96c48.6 0 88 39.4 88 88s-39.4 88-88 88-88-39.4-88-88 39.4-88 88-88zm0 344c-58.7 0-111.3-26.6-146.5-68.2 18.8-35.4 55.6-59.8 98.5-59.8 2.4 0 4.8.4 7.1 1.1 13 4.2 26.6 6.9 40.9 6.9 14.3 0 28-2.7 40.9-6.9 2.3-.7 4.7-1.1 7.1-1.1 42.9 0 79.7 24.4 98.5 59.8C359.3 421.4 306.7 448 248 448z"}))}};function Ot(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var jt=function(e){f()(a,e);var t=Ot(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).state={showIcons:!1,showGeneralIcons:!1,showSocialIcons:!1},e}return b()(a,[{key:"render",value:function(){var e=this,t=this.props,a=t.attributes,i=t.setAttributes,r=t.attrIcon,n=t.attrIconLocation,c=t.locationOptions,s=t.attrRemoveText,g={general:{group:Object(T.__)("General","generateblocks"),svgs:wt},social:{group:Object(T.__)("Social","generateblocks"),svgs:vt}};return g=Object(_.applyFilters)("generateblocks.editor.iconSVGSets",g),Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.BaseControl,{className:"gb-svg-html"},Object(l.createElement)(C.TextControl,{label:Object(T.__)("Icon SVG HTML","generateblocks"),value:a[r],onChange:function(t){i(o()({},e.props.attrIcon,Be(t))),i(""!==t?{hasIcon:!0}:{hasIcon:!1})}}),Object(l.createElement)("div",{className:"gb-icon-preview"},Object(l.createElement)("span",{dangerouslySetInnerHTML:{__html:Be(a[r])}}),Object(l.createElement)(C.Button,{isSmall:!0,className:"reset-icon is-secondary",onClick:function(){var t;i((t={},o()(t,e.props.attrIcon,""),o()(t,"hasIcon",!1),t))}},Object(l.createElement)("span",{className:"editor-block-types-list__item-icon"},Object(T.__)("Clear","generateblocks"))))),Object(l.createElement)(C.BaseControl,{className:"gb-icon-chooser"},Object.keys(g).map((function(t,a){var r=g[t].svgs;return Object(l.createElement)(C.PanelBody,{title:g[t].group,initialOpen:!1,key:a},Object(l.createElement)(C.PanelRow,null,Object(l.createElement)(C.BaseControl,null,Object(l.createElement)("ul",{className:"gblocks-icon-chooser"},Object.keys(r).map((function(t,a){return Object(l.createElement)("li",{key:"editor-pblock-types-list-item-".concat(a)},Object(l.createElement)(C.Tooltip,{text:r[t].label},Object(l.createElement)(C.Button,{className:"editor-block-list-item-button",onClick:function(){var a,n=r[t].icon;"string"!=typeof n&&(n=Object(l.renderToString)(n)),i((a={},o()(a,e.props.attrIcon,n),o()(a,"hasIcon",!0),a))}},"string"==typeof r[t].icon?Object(l.createElement)(l.Fragment,null,Object(l.createElement)("span",{className:"editor-block-types-list__item-icon",dangerouslySetInnerHTML:{__html:Be(r[t].icon)}})):Object(l.createElement)(l.Fragment,null,Object(l.createElement)("span",{className:"editor-block-types-list__item-icon"},r[t].icon)))))}))))))}))),void 0!==a[n]&&!a[s]&&!!a[r]&&Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Icon Location","generateblocks"),value:a[n],options:c,onChange:function(t){var l=a.iconPaddingLeft,r=a.iconPaddingRight,n=a.iconPaddingRightTablet,c=a.iconPaddingLeftTablet,s=a.iconPaddingRightMobile,g=a.iconPaddingLeftMobile;"right"===t&&(!l&&r&&i({iconPaddingLeft:r,iconPaddingRight:""}),!c&&n&&i({iconPaddingLeftTablet:n,iconPaddingRightTablet:""}),!g&&s&&i({iconPaddingLeftMobile:s,iconPaddingRightMobile:""})),"left"===t&&(!r&&l&&i({iconPaddingRight:l,iconPaddingLeft:""}),!n&&c&&i({iconPaddingRightTablet:c,iconPaddingLeftTablet:""}),!s&&g&&i({iconPaddingRightMobile:g,iconPaddingLeftMobile:""})),i(o()({},e.props.attrIconLocation,t))}}),void 0!==a[s]&&!!a[r]&&Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Remove Text","generateblocks"),checked:!!a[s],onChange:function(t){i(o()({},e.props.attrRemoveText,t))}}))}}]),a}(l.Component);a(43);function Tt(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function Ct(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?Tt(Object(a),!0).forEach((function(t){o()(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Tt(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function _t(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var St=function(e){f()(a,e);var t=_t(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).state={moreOptions:!1},e.onChange=e.onChange.bind(d()(e)),e}return b()(a,[{key:"onChange",value:function(e){var t=this.props,a=t.url,l=t.target,i=t.relNoFollow,r=t.relSponsored;this.props.onChange(Ct(Ct({},{url:a,target:l,relNoFollow:i,relSponsored:r}),e))}},{key:"render",value:function(){var e=this,t=this.props,a=t.url,i=t.target,r=t.relNoFollow,n=t.relSponsored,o=t.className,c=t.autoFocus,s=this.onChange,g=this.state.moreOptions;return Object(l.createElement)("div",{className:w()("gblocks-component-url-input",o)},Object(l.createElement)("div",{className:"gblocks-component-url-input-flex"},Object(l.createElement)(Q.URLInput,{value:a,onChange:function(e){s({url:e})},autoFocus:c}),Object(l.createElement)(C.Button,{icon:"ellipsis",label:g?Object(T.__)("Hide More Options","generateblocks"):Object(T.__)("Show More Options","generateblocks"),onClick:function(){e.setState({moreOptions:!g})}})),g&&Object(l.createElement)("div",{className:"gblocks-component-url-input-more-options"},Object(_.applyFilters)("generateblocks.editor.urlInputMoreOptions","",this.props,this.state),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Open link in a new tab","generateblocks"),checked:i||"",onChange:function(e){s({target:e})}}),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)('Add rel="nofollow"',"generateblocks"),checked:r||"",onChange:function(e){s({relNoFollow:e})}}),Object(l.createElement)(C.ToggleControl,{label:Object(T.__)('Add rel="sponsored"',"generateblocks"),checked:n||"",onChange:function(e){s({relSponsored:e})}})))}}]),a}(l.Component);function Bt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Dt=function(e){f()(a,e);var t=Bt(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e,t=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),a=t.url,i=t.uniqueId,r=t.removeText,n=t.backgroundColor,o=t.backgroundColorOpacity,c=t.textColor,s=t.backgroundColorHover,g=t.backgroundColorHoverOpacity,b=t.textColorHover,u=t.fontFamily,d=t.fontFamilyFallback,p=t.fontWeight,f=t.textTransform,h=t.letterSpacing,m=t.fontSize,k=t.fontSizeUnit,y=t.marginTop,v=t.marginRight,w=t.marginBottom,O=t.marginLeft,j=t.marginUnit,T=t.paddingTop,C=t.paddingRight,S=t.paddingBottom,B=t.paddingLeft,D=t.paddingUnit,E=t.borderSizeTop,R=t.borderSizeRight,x=t.borderSizeBottom,L=t.borderSizeLeft,P=t.borderRadiusTopRight,F=t.borderRadiusBottomRight,A=t.borderRadiusBottomLeft,U=t.borderRadiusTopLeft,H=t.borderRadiusUnit,N=t.borderColor,I=t.borderColorOpacity,G=t.borderColorHover,V=t.borderColorHoverOpacity,q=t.gradient,W=t.gradientDirection,Z=t.gradientColorOne,K=t.gradientColorOneOpacity,J=t.gradientColorStopOne,Y=t.gradientColorTwo,Q=t.gradientColorTwoOpacity,X=t.gradientColorStopTwo,$=t.iconPaddingTop,ee=t.iconPaddingRight,te=t.iconPaddingBottom,ae=t.iconPaddingLeft,le=t.iconPaddingUnit,ie=t.iconSize,re=t.iconSizeUnit,ne="",oe="",ce="";q&&(Z&&""!==J&&(oe=" "+J+"%"),Y&&""!==X&&(ce=" "+X+"%")),q&&(e="linear-gradient("+W+"deg, "+he(Z,K)+oe+", "+he(Y,Q)+ce+");"),u&&d&&(ne=", "+d);var se="a.gb-button-"+i;a||(se=".gb-button-"+i);var ge=[];return ge[".block-editor-block-list__block "+se]=[{"background-color":he(n,o),"background-image":e,color:c,padding:De(T,C,S,B,D),"border-radius":De(U,P,F,A,H),"font-family":u+ne,"font-weight":p,"text-transform":f,"font-size":z(m,k),"letter-spacing":z(h,"em"),margin:De(y,v,w,O,j)}],(E||R||x||L)&&ge[".block-editor-block-list__block "+se].push({"border-width":De(E,R,x,L,"px"),"border-style":"solid","border-color":he(N,I)}),ge[".block-editor-block-list__block "+se+":hover,\n\t\t.block-editor-block-list__block "+se+":focus,\n\t\t.block-editor-block-list__block "+se+":active"]=[{"background-color":he(s,g),color:b,"border-color":he(G,V)}],ge[".block-editor-block-list__block "+se+" .gb-icon"]=[{padding:!r&&De($,ee,te,ae,le),"font-size":z(ie,re)}],ge=Object(_.applyFilters)("generateblocks.editor.mainCSS",ge,this.props,"button"),Object(l.createElement)("style",null,M(ge))}}]),a}(l.Component);function Et(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Rt=function(e){f()(a,e);var t=Et(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.desktopCSS",e,this.props,"button"),Object(l.createElement)("style",null,M(e))}}]),a}(l.Component);function xt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Mt=function(e){f()(a,e);var t=xt(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.url,a=e.uniqueId,i=e.removeText,r=e.letterSpacingTablet,n=e.fontSizeTablet,o=e.fontSizeUnit,c=e.marginTopTablet,s=e.marginRightTablet,g=e.marginBottomTablet,b=e.marginLeftTablet,u=e.marginUnit,d=e.paddingTopTablet,p=e.paddingRightTablet,f=e.paddingBottomTablet,h=e.paddingLeftTablet,m=e.paddingUnit,k=e.borderSizeTopTablet,y=e.borderSizeRightTablet,v=e.borderSizeBottomTablet,w=e.borderSizeLeftTablet,O=e.borderRadiusTopRightTablet,j=e.borderRadiusBottomRightTablet,T=e.borderRadiusBottomLeftTablet,C=e.borderRadiusTopLeftTablet,S=e.borderRadiusUnit,B=e.iconPaddingTopTablet,D=e.iconPaddingRightTablet,E=e.iconPaddingBottomTablet,R=e.iconPaddingLeftTablet,x=e.iconPaddingUnit,L=e.iconSizeTablet,P=e.iconSizeUnit,F="a.gb-button-"+a;t||(F=".gb-button-"+a);var A=[];return A[".block-editor-block-list__block "+F]=[{"padding-top":z(d,m),"padding-right":z(p,m),"padding-bottom":z(f,m),"padding-left":z(h,m),"border-top-left-radius":z(C,S),"border-top-right-radius":z(O,S),"border-bottom-right-radius":z(j,S),"border-bottom-left-radius":z(T,S),"font-size":z(n,o),"letter-spacing":z(r,"em"),"margin-top":z(c,u),"margin-right":z(s,u),"margin-bottom":z(g,u),"margin-left":z(b,u)}],(k||y||v||w)&&A[".block-editor-block-list__block "+F].push({"border-top-width":z(k,"px"),"border-right-width":z(y,"px"),"border-bottom-width":z(v,"px"),"border-left-width":z(w,"px"),"border-style":"solid"}),A[".block-editor-block-list__block "+F+" .gb-icon"]=[{"padding-top":!i&&z(B,x),"padding-right":!i&&z(D,x),"padding-bottom":!i&&z(E,x),"padding-left":!i&&z(R,x),"font-size":z(L,P)}],A=Object(_.applyFilters)("generateblocks.editor.tabletCSS",A,this.props,"button"),Object(l.createElement)("style",null,M(A))}}]),a}(l.Component);function zt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Lt=function(e){f()(a,e);var t=zt(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.tabletOnlyCSS",e,this.props,"button"),Object(l.createElement)("style",null,M(e))}}]),a}(l.Component);function Pt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Ft=function(e){f()(a,e);var t=Pt(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=e.url,a=e.uniqueId,i=e.removeText,r=e.letterSpacingMobile,n=e.fontSizeMobile,o=e.fontSizeUnit,c=e.marginTopMobile,s=e.marginRightMobile,g=e.marginBottomMobile,b=e.marginLeftMobile,u=e.marginUnit,d=e.paddingTopMobile,p=e.paddingRightMobile,f=e.paddingBottomMobile,h=e.paddingLeftMobile,m=e.paddingUnit,k=e.borderSizeTopMobile,y=e.borderSizeRightMobile,v=e.borderSizeBottomMobile,w=e.borderSizeLeftMobile,O=e.borderRadiusTopRightMobile,j=e.borderRadiusBottomRightMobile,T=e.borderRadiusBottomLeftMobile,C=e.borderRadiusTopLeftMobile,S=e.borderRadiusUnit,B=e.iconPaddingTopMobile,D=e.iconPaddingRightMobile,E=e.iconPaddingBottomMobile,R=e.iconPaddingLeftMobile,x=e.iconPaddingUnit,L=e.iconSizeMobile,P=e.iconSizeUnit,F="a.gb-button-"+a;t||(F=".gb-button-"+a);var A=[];return A[".block-editor-block-list__block "+F]=[{"padding-top":z(d,m),"padding-right":z(p,m),"padding-bottom":z(f,m),"padding-left":z(h,m),"border-top-left-radius":z(C,S),"border-top-right-radius":z(O,S),"border-bottom-right-radius":z(j,S),"border-bottom-left-radius":z(T,S),"font-size":z(n,o),"letter-spacing":z(r,"em"),"margin-top":z(c,u),"margin-right":z(s,u),"margin-bottom":z(g,u),"margin-left":z(b,u)}],(k||y||v||w)&&A[".block-editor-block-list__block "+F].push({"border-top-width":z(k,"px"),"border-right-width":z(y,"px"),"border-bottom-width":z(v,"px"),"border-left-width":z(w,"px"),"border-style":"solid"}),A[".block-editor-block-list__block "+F+" .gb-icon"]=[{"padding-top":!i&&z(B,x),"padding-right":!i&&z(D,x),"padding-bottom":!i&&z(E,x),"padding-left":!i&&z(R,x),"font-size":z(L,P)}],A=Object(_.applyFilters)("generateblocks.editor.mobileCSS",A,this.props,"button"),Object(l.createElement)("style",null,M(A))}}]),a}(l.Component);function At(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Ut=/[\s#]/g,Ht=[],Nt=function(e){f()(a,e);var t=At(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).state={selectedDevice:"Desktop",fontSizePlaceholder:"17"},e.getFontSizePlaceholder=e.getFontSizePlaceholder.bind(d()(e)),e.getDeviceType=e.getDeviceType.bind(d()(e)),e.setDeviceType=e.setDeviceType.bind(d()(e)),e}return b()(a,[{key:"componentDidMount",value:function(){var e=this.props.clientId.substr(2,9).replace("-","");this.props.attributes.uniqueId?Ht.includes(this.props.attributes.uniqueId)?(this.props.setAttributes({uniqueId:e}),Ht.push(e)):Ht.push(this.props.attributes.uniqueId):(this.props.setAttributes({uniqueId:e}),Ht.push(e));var t=this.getFontSizePlaceholder();t!==this.state.fontSizePlaceholder&&this.setState({fontSizePlaceholder:t}),!this.props.attributes.hasIcon&&this.props.attributes.icon&&this.props.setAttributes({hasIcon:!0}),void 0===this.props.attributes.hasUrl&&(this.props.attributes.url?this.props.setAttributes({hasUrl:!0}):this.props.setAttributes({hasUrl:!1}))}},{key:"componentDidUpdate",value:function(){var e=this.getFontSizePlaceholder();e!==this.state.fontSizePlaceholder&&this.setState({fontSizePlaceholder:e})}},{key:"getFontSizePlaceholder",value:function(){var e="17",t=document.querySelector(".gb-button-"+this.props.attributes.uniqueId);return t&&(e=parseFloat(window.getComputedStyle(t).fontSize)),e}},{key:"getDeviceType",value:function(){var e=this.props.deviceType?this.props.deviceType:this.state.selectedDevice;return generateBlocksInfo.syncResponsivePreviews||(e=this.state.selectedDevice),e}},{key:"setDeviceType",value:function(e){generateBlocksInfo.syncResponsivePreviews&&this.props.deviceType?(this.props.setDeviceType(e),this.setState({selectedDevice:e})):this.setState({selectedDevice:e})}},{key:"render",value:function(){for(var e,t=this,a=this.props,i=a.attributes,n=a.setAttributes,c=a.isSelected,s=a.clientId,g=this.state.fontSizePlaceholder,b=i.uniqueId,u=i.className,d=i.anchor,p=i.text,f=i.url,h=i.target,m=i.relNoFollow,k=i.relSponsored,y=i.icon,v=i.iconLocation,O=i.removeText,S=i.ariaLabel,D=i.backgroundColor,R=i.backgroundColorOpacity,x=i.textColor,M=i.backgroundColorHover,z=i.backgroundColorHoverOpacity,L=i.textColorHover,P=i.fontFamily,F=i.googleFont,A=i.googleFontVariants,U=i.borderColor,H=i.borderColorOpacity,N=i.borderColorHover,I=i.borderColorHoverOpacity,G=i.iconSize,V=i.iconSizeTablet,q=i.iconSizeMobile,W=i.iconSizeUnit,Z=document.querySelectorAll("a.gb-button"),K=function(e){Z[e].addEventListener("click",(function(t){Z[e].getAttribute("href")&&(Z[e].removeAttribute("href"),t.preventDefault())}),!1)},J=0;J<Z.length;J++)K(J);var $=[];m&&$.push("nofollow"),h&&$.push("noopener","noreferrer"),k&&$.push("sponsored");var ee="";A&&(ee=":"+A);var te={className:w()((e={"gb-button":!0},o()(e,"gb-button-".concat(b),!0),o()(e,"gb-button-text",!y),o()(e,"".concat(u),void 0!==u),e)),href:f||null,target:h?"_blank":null,rel:$&&$.length>0?$.join(" "):null,"aria-label":S||null,id:d||null};return te=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",te,"generateblocks/button",i),Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Q.BlockControls,null,Object(l.createElement)(C.ToolbarGroup,null,Object(l.createElement)(C.ToolbarButton,{className:"gblocks-add-new-button",icon:"insert",label:Object(T.__)("Add Button","generateblocks"),onClick:function(){var e=!1;e="function"==typeof wp.data.select("core/block-editor").getBlockParentsByBlockName?wp.data.select("core/block-editor").getBlockParentsByBlockName(s,"generateblocks/button-container",!0)[0]:wp.data.select("core/block-editor").getBlockRootClientId(s);var t=wp.data.select("core/block-editor").getBlocksByClientId(s)[0],a=Object(X.cloneBlock)(t);wp.data.dispatch("core/block-editor").insertBlocks(a,void 0,e)},showTooltip:!0}))),Object(l.createElement)(Q.InspectorControls,null,Object(l.createElement)(B,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Typography","generateblocks"),initialOpen:!1,icon:j("typography"),className:"gblocks-panel-label",id:"buttonTypography",state:this.state,showPanel:!O||!1}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(je,r()({},this.props,{showFontFamily:!0,showFontWeight:!0,showTextTransform:!0,showFontSize:!0,showLetterSpacing:!0,fontSizePlaceholder:g,defaultFontSize:generateBlocksDefaults.button.fontSize,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacing}))),"Tablet"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(je,r()({},this.props,{device:"Tablet",showFontSize:!0,showLetterSpacing:!0,disableAdvancedToggle:!0,defaultFontSize:generateBlocksDefaults.button.fontSizeTablet,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacingTablet}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(je,r()({},this.props,{device:"Mobile",showFontSize:!0,showLetterSpacing:!0,disableAdvancedToggle:!0,defaultFontSize:generateBlocksDefaults.button.fontSizeMobile,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacingMobile}))),Object(_.applyFilters)("generateblocks.editor.controls","","buttonTypography",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Spacing","generateblocks"),initialOpen:!1,icon:j("spacing"),className:"gblocks-panel-label",id:"buttonSpacing",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"paddingTop",attrRight:"paddingRight",attrBottom:"paddingBottom",attrLeft:"paddingLeft",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTop",attrRight:"marginRight",attrBottom:"marginBottom",attrLeft:"marginLeft",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Size","generateblocks"),attrTop:"borderSizeTop",attrRight:"borderSizeRight",attrBottom:"borderSizeBottom",attrLeft:"borderSizeLeft",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.button,units:["px"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeft",attrRight:"borderRadiusTopRight",attrBottom:"borderRadiusBottomRight",attrLeft:"borderRadiusBottomLeft",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Object(T.__)("T-Left","generateblocks"),labelRight:Object(T.__)("T-Right","generateblocks"),labelBottom:Object(T.__)("B-Right","generateblocks"),labelLeft:Object(T.__)("B-Left","generateblocks"),defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),"Tablet"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"paddingTopTablet",attrRight:"paddingRightTablet",attrBottom:"paddingBottomTablet",attrLeft:"paddingLeftTablet",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopTablet",attrRight:"marginRightTablet",attrBottom:"marginBottomTablet",attrLeft:"marginLeftTablet",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Size","generateblocks"),attrTop:"borderSizeTopTablet",attrRight:"borderSizeRightTablet",attrBottom:"borderSizeBottomTablet",attrLeft:"borderSizeLeftTablet",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.button,units:["px"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftTablet",attrRight:"borderRadiusTopRightTablet",attrBottom:"borderRadiusBottomRightTablet",attrLeft:"borderRadiusBottomLeftTablet",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Object(T.__)("T-Left","generateblocks"),labelRight:Object(T.__)("T-Right","generateblocks"),labelBottom:Object(T.__)("B-Right","generateblocks"),labelLeft:Object(T.__)("B-Left","generateblocks"),defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"paddingTopMobile",attrRight:"paddingRightMobile",attrBottom:"paddingBottomMobile",attrLeft:"paddingLeftMobile",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopMobile",attrRight:"marginRightMobile",attrBottom:"marginBottomMobile",attrLeft:"marginLeftMobile",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Size","generateblocks"),attrTop:"borderSizeTopMobile",attrRight:"borderSizeRightMobile",attrBottom:"borderSizeBottomMobile",attrLeft:"borderSizeLeftMobile",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.button,units:["px"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftMobile",attrRight:"borderRadiusTopRightMobile",attrBottom:"borderRadiusBottomRightMobile",attrLeft:"borderRadiusBottomLeftMobile",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Object(T.__)("T-Left","generateblocks"),labelRight:Object(T.__)("T-Right","generateblocks"),labelBottom:Object(T.__)("B-Right","generateblocks"),labelLeft:Object(T.__)("B-Left","generateblocks"),defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(_.applyFilters)("generateblocks.editor.controls","","buttonSpacing",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Colors","generateblocks"),initialOpen:!1,icon:j("colors"),className:"gblocks-panel-label",id:"buttonColors",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(C.TabPanel,{className:"layout-tab-panel gblocks-control-tabs",activeClass:"active-tab",tabs:[{name:"button-colors",title:Object(T.__)("Normal","generateblocks"),className:"button-colors"},{name:"button-colors-hover",title:Object(T.__)("Hover","generateblocks"),className:"button-colors-hover"}]},(function(e){var a="button-colors"===e.name;return Object(l.createElement)("div",null,a?Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ke,{label:Object(T.__)("Background Color","generateblocks"),value:D,alpha:!0,valueOpacity:R,attrOpacity:"backgroundColorOpacity",key:"buttonBackgroundColor",onChange:function(e){return n({backgroundColor:e})},onOpacityChange:function(e){return n({backgroundColorOpacity:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Text Color","generateblocks"),value:x,alpha:!1,key:"buttonTextColor",onChange:function(e){return n({textColor:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Border Color","generateblocks"),value:U,alpha:!0,valueOpacity:H,attrOpacity:"borderColorOpacity",key:"buttonBorderColor",onChange:function(e){return n({borderColor:e})},onOpacityChange:function(e){return n({borderColorOpacity:e})}}),Object(_.applyFilters)("generateblocks.editor.controls","","buttonColorsNormal",t.props,t.state)):Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ke,{label:Object(T.__)("Background Color","generateblocks"),value:M,alpha:!0,valueOpacity:z,attrOpacity:"backgroundColorHoverOpacity",key:"buttonBackgroundColorHover",onChange:function(e){return n({backgroundColorHover:e})},onOpacityChange:function(e){return n({backgroundColorHoverOpacity:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Text Color","generateblocks"),value:L,alpha:!1,key:"buttonTextColorHover",onChange:function(e){return n({textColorHover:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Border Color","generateblocks"),value:N,alpha:!0,valueOpacity:I,attrOpacity:"borderColorHoverOpacity",key:"buttonBorderColorHover",onChange:function(e){return n({borderColorHover:e})},onOpacityChange:function(e){return n({borderColorHoverOpacity:e})}}),Object(_.applyFilters)("generateblocks.editor.controls","","buttonColorsHover",t.props,t.state)))})),Object(_.applyFilters)("generateblocks.editor.controls","","buttonColors",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Background Gradient","generateblocks"),initialOpen:!1,icon:j("gradients"),className:"gblocks-panel-label",id:"buttonBackgroundGradient",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(Ce,r()({},this.props,{attrGradient:"gradient",attrGradientDirection:"gradientDirection",attrGradientColorOne:"gradientColorOne",attrGradientColorOneOpacity:"gradientColorOneOpacity",attrGradientColorStopOne:"gradientColorStopOne",attrGradientColorTwo:"gradientColorTwo",attrGradientColorTwoOpacity:"gradientColorTwoOpacity",attrGradientColorStopTwo:"gradientColorStopTwo",defaultColorOne:generateBlocksDefaults.button.gradientColorOne,defaultColorTwo:generateBlocksDefaults.button.gradientColorTwo})),Object(_.applyFilters)("generateblocks.editor.controls","","buttonBackgroundGradient",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Icon","generateblocks"),initialOpen:!1,icon:j("icons"),className:"gblocks-panel-label",id:"buttonIcon",state:this.state,showPanel:!("Desktop"!==this.getDeviceType()&&!y)}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(jt,r()({},this.props,{attrIcon:"icon",attrIconLocation:"iconLocation",attrRemoveText:"removeText",locationOptions:[{label:Object(T.__)("Left","generateblocks"),value:"left"},{label:Object(T.__)("Right","generateblocks"),value:"right"}]})),"Desktop"===this.getDeviceType()&&!!y&&Object(l.createElement)(l.Fragment,null,!O&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"iconPaddingTop",attrRight:"iconPaddingRight",attrBottom:"iconPaddingBottom",attrLeft:"iconPaddingLeft",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(l.createElement)(E,{label:Object(T.__)("Icon Size","generateblocks"),value:W,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:G||"",step:"em"===W?.1:1,onChange:function(e){n({iconSize:e})},onBlur:function(){n({iconSize:parseFloat(G)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSize:generateBlocksDefaults.button.iconSize})}},Object(T.__)("Reset","generateblocks")))),"Tablet"===this.getDeviceType()&&!!y&&Object(l.createElement)(l.Fragment,null,!O&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"iconPaddingTopTablet",attrRight:"iconPaddingRightTablet",attrBottom:"iconPaddingBottomTablet",attrLeft:"iconPaddingLeftTablet",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(l.createElement)(E,{label:Object(T.__)("Icon Size","generateblocks"),value:W,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:V||"",step:"em"===W?.1:1,placeholder:"1",onChange:function(e){n({iconSizeTablet:e})},onBlur:function(){n({iconSizeTablet:parseFloat(V)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSizeTablet:generateBlocksDefaults.button.iconSizeTablet})}},Object(T.__)("Reset","generateblocks")))),"Mobile"===this.getDeviceType()&&!!y&&Object(l.createElement)(l.Fragment,null,!O&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"iconPaddingTopMobile",attrRight:"iconPaddingRightMobile",attrBottom:"iconPaddingBottomMobile",attrLeft:"iconPaddingLeftMobile",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button,units:["px","em","%"]}))),Object(l.createElement)(E,{label:Object(T.__)("Icon Size","generateblocks"),value:W,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:q||"",step:"em"===W?.1:1,placeholder:"1",onChange:function(e){n({iconSizeMobile:e})},onBlur:function(){n({iconSizeMobile:parseFloat(q)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSizeMobile:generateBlocksDefaults.button.iconSizeMobile})}},Object(T.__)("Reset","generateblocks")))),Object(_.applyFilters)("generateblocks.editor.controls","","buttonIcon",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Documentation","generateblocks"),icon:j("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"buttonDocumentation",state:this.state}),Object(l.createElement)("p",null,Object(T.__)("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/buttons/",target:"_blank",rel:"noreferrer noopener"},Object(T.__)("Visit our documentation","generateblocks")),Object(_.applyFilters)("generateblocks.editor.controls","","buttonDocumentation",this.props,this.state))),Object(l.createElement)(Q.InspectorAdvancedControls,null,Object(l.createElement)(C.TextControl,{label:Object(T.__)("HTML Anchor"),help:Object(T.__)("Anchors lets you link directly to a section on a page.","generateblocks"),value:d||"",onChange:function(e){e=e.replace(Ut,"-"),n({anchor:e})}}),Object(l.createElement)(C.TextControl,{label:Object(T.__)("ARIA Label","generateblocks"),help:Object(T.__)("Helpful to people using screen readers.","generateblocks"),value:S,onChange:function(e){n({ariaLabel:e})}})),Object(l.createElement)(Dt,this.props),this.props.deviceType&&Object(l.createElement)(l.Fragment,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(Rt,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(Mt,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(Lt,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(Ft,this.props)),P&&F&&Object(l.createElement)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family="+P.replace(/ /g,"+")+ee}),Object(l.createElement)(fe,{tagName:f?"a":"span",htmlAttrs:te},!!y&&Object(l.createElement)(l.Fragment,null,"left"===v&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(y)}}),!O&&Object(l.createElement)("span",{className:"gb-button-text"},Object(l.createElement)(Q.RichText,{placeholder:Object(T.__)("Add text…","generateblocks"),value:p,onChange:function(e){return n({text:e})},allowedFormats:["core/bold","core/italic","core/strikethrough"],isSelected:c,keepPlaceholderOnFocus:!0})),"right"===v&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(y)}})),!y&&!O&&Object(l.createElement)(Q.RichText,{placeholder:Object(T.__)("Add text…","generateblocks"),value:p,onChange:function(e){return n({text:e})},allowedFormats:["core/bold","core/italic","core/strikethrough"],isSelected:c,keepPlaceholderOnFocus:!0})),c&&Object(l.createElement)(St,{url:f,target:h,relNoFollow:m,relSponsored:k,onChange:function(e){n(e),""!==e.url?n({hasUrl:!0}):n({hasUrl:!1})},autoFocus:!1,className:"gblocks-component-url-input-float"}))}}]),a}(l.Component),It=Object(ee.compose)([Object($.withDispatch)((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),Object($.withSelect)((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?{deviceType:t()}:{deviceType:null}}))])(Nt),Gt={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},url:{type:"string",source:"attribute",selector:".gb-button",attribute:"href"},hasUrl:{type:"boolean"},target:{type:"boolean"},relNoFollow:{type:"boolean"},relSponsored:{type:"boolean"},text:{type:"string",source:"html",selector:".gb-button-text",default:"Button"},icon:{type:"string",source:"html",selector:".gb-icon"},hasIcon:{type:"boolean",default:!1},iconLocation:{type:"string",default:generateBlocksDefaults.button.iconLocation},customIcon:{type:"boolean",default:!1},removeText:{type:"boolean",default:generateBlocksDefaults.button.removeText},ariaLabel:{type:"string",default:generateBlocksDefaults.button.ariaLabel},backgroundColor:{type:"string",default:generateBlocksDefaults.button.backgroundColor},backgroundColorOpacity:{type:"number",default:generateBlocksDefaults.button.backgroundColorOpacity},textColor:{type:"string",default:generateBlocksDefaults.button.textColor},backgroundColorHover:{type:"string",default:generateBlocksDefaults.button.backgroundColorHover},backgroundColorHoverOpacity:{type:"number",default:generateBlocksDefaults.button.backgroundColorHoverOpacity},textColorHover:{type:"string",default:generateBlocksDefaults.button.textColorHover},borderColor:{type:"string",default:generateBlocksDefaults.button.borderColor},borderColorOpacity:{type:"number",default:generateBlocksDefaults.button.borderColorOpacity},borderColorHover:{type:"string",default:generateBlocksDefaults.button.borderColorHover},borderColorHoverOpacity:{type:"number",default:generateBlocksDefaults.button.borderColorHoverOpacity},showAdvancedTypography:{type:"boolean",default:generateBlocksDefaults.button.showAdvancedTypography},fontFamily:{type:"string",default:generateBlocksDefaults.button.fontFamily},fontFamilyFallback:{type:"string",default:generateBlocksDefaults.button.fontFamilyFallback},googleFont:{type:"boolean",default:generateBlocksDefaults.button.googleFont},googleFontVariants:{type:"string",default:generateBlocksDefaults.button.googleFontVariants},fontWeight:{type:"string",default:generateBlocksDefaults.button.fontWeight},fontSize:{type:"number",default:generateBlocksDefaults.button.fontSize},fontSizeTablet:{type:"number",default:generateBlocksDefaults.button.fontSizeTablet},fontSizeMobile:{type:"number",default:generateBlocksDefaults.button.fontSizeMobile},fontSizeUnit:{type:"string",default:generateBlocksDefaults.button.fontSizeUnit},textTransform:{type:"string",default:generateBlocksDefaults.button.textTransform},letterSpacing:{type:"number",default:generateBlocksDefaults.button.letterSpacing},letterSpacingTablet:{type:"number",default:generateBlocksDefaults.button.letterSpacingTablet},letterSpacingMobile:{type:"number",default:generateBlocksDefaults.button.letterSpacingMobile},marginTop:{type:"string",default:generateBlocksDefaults.button.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.button.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.button.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.button.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.button.marginUnit},marginTopTablet:{type:"string",default:generateBlocksDefaults.button.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.button.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.button.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.button.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.button.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.button.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.button.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.button.marginLeftMobile},paddingTop:{type:"string",default:generateBlocksDefaults.button.paddingTop},paddingRight:{type:"string",default:generateBlocksDefaults.button.paddingRight},paddingBottom:{type:"string",default:generateBlocksDefaults.button.paddingBottom},paddingLeft:{type:"string",default:generateBlocksDefaults.button.paddingLeft},paddingUnit:{type:"string",default:generateBlocksDefaults.button.paddingUnit},paddingTopTablet:{type:"string",default:generateBlocksDefaults.button.paddingTopTablet},paddingRightTablet:{type:"string",default:generateBlocksDefaults.button.paddingRightTablet},paddingBottomTablet:{type:"string",default:generateBlocksDefaults.button.paddingBottomTablet},paddingLeftTablet:{type:"string",default:generateBlocksDefaults.button.paddingLeftTablet},paddingTopMobile:{type:"string",default:generateBlocksDefaults.button.paddingTopMobile},paddingRightMobile:{type:"string",default:generateBlocksDefaults.button.paddingRightMobile},paddingBottomMobile:{type:"string",default:generateBlocksDefaults.button.paddingBottomMobile},paddingLeftMobile:{type:"string",default:generateBlocksDefaults.button.paddingLeftMobile},borderSizeTop:{type:"string",default:generateBlocksDefaults.button.borderSizeTop},borderSizeRight:{type:"string",default:generateBlocksDefaults.button.borderSizeRight},borderSizeBottom:{type:"string",default:generateBlocksDefaults.button.borderSizeBottom},borderSizeLeft:{type:"string",default:generateBlocksDefaults.button.borderSizeLeft},borderSizeTopTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeTopTablet},borderSizeRightTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeRightTablet},borderSizeBottomTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeBottomTablet},borderSizeLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeLeftTablet},borderSizeTopMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeTopMobile},borderSizeRightMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeRightMobile},borderSizeBottomMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeBottomMobile},borderSizeLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeLeftMobile},borderRadiusTopRight:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRight},borderRadiusBottomRight:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRight},borderRadiusBottomLeft:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeft},borderRadiusTopLeft:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeft},borderRadiusUnit:{type:"string",default:generateBlocksDefaults.button.borderRadiusUnit},borderRadiusTopRightTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRightTablet},borderRadiusBottomRightTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRightTablet},borderRadiusBottomLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeftTablet},borderRadiusTopLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeftTablet},borderRadiusTopRightMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRightMobile},borderRadiusBottomRightMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRightMobile},borderRadiusBottomLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeftMobile},borderRadiusTopLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeftMobile},gradient:{type:"boolean",default:generateBlocksDefaults.button.gradient},gradientDirection:{type:"number",default:generateBlocksDefaults.button.gradientDirection},gradientColorOne:{type:"string",default:generateBlocksDefaults.button.gradientColorOne},gradientColorOneOpacity:{type:"number",default:generateBlocksDefaults.button.gradientColorOneOpacity},gradientColorStopOne:{type:"number",default:generateBlocksDefaults.button.gradientColorStopOne},gradientColorTwo:{type:"string",default:generateBlocksDefaults.button.gradientColorTwo},gradientColorTwoOpacity:{type:"number",default:generateBlocksDefaults.button.gradientColorTwoOpacity},gradientColorStopTwo:{type:"number",default:generateBlocksDefaults.button.gradientColorStopTwo},iconPaddingTop:{type:"string",default:generateBlocksDefaults.button.iconPaddingTop},iconPaddingRight:{type:"string",default:generateBlocksDefaults.button.iconPaddingRight},iconPaddingBottom:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottom},iconPaddingLeft:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeft},iconPaddingTopTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingTopTablet},iconPaddingRightTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingRightTablet},iconPaddingBottomTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottomTablet},iconPaddingLeftTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeftTablet},iconPaddingTopMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingTopMobile},iconPaddingRightMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingRightMobile},iconPaddingBottomMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottomMobile},iconPaddingLeftMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeftMobile},iconPaddingUnit:{type:"string",default:generateBlocksDefaults.button.iconPaddingUnit},iconPaddingSyncUnits:{type:"boolean",default:!1},iconSize:{type:"number",default:generateBlocksDefaults.button.iconSize},iconSizeTablet:{type:"number",default:generateBlocksDefaults.button.iconSizeTablet},iconSizeMobile:{type:"number",default:generateBlocksDefaults.button.iconSizeMobile},iconSizeUnit:{type:"string",default:generateBlocksDefaults.button.iconSizeUnit},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};function Vt(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function qt(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?Vt(Object(a),!0).forEach((function(t){o()(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Vt(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var Wt=[{attributes:qt(qt({},Gt),{},{text:{type:"array",source:"children",selector:".gb-button .button-text",default:"Button"}}),supports:{anchor:!1,className:!1,customClassName:!1,inserter:!1,reusable:!1},migrate:function(e){var t=e.cssClasses?e.cssClasses:e.className,a=e.elementId?e.elementId:e.anchor;return qt(qt({},e),{},{className:t,anchor:a,cssClasses:"",elementId:""})},save:function(e){var t,a=e.attributes,i=a.uniqueId,r=a.elementId,n=a.cssClasses,c=a.text,s=a.url,g=a.target,b=a.relNoFollow,u=a.relSponsored,d=a.icon,p=a.iconLocation,f=a.removeText,h=a.ariaLabel,m=[];b&&m.push("nofollow"),g&&m.push("noopener","noreferrer"),u&&m.push("sponsored");var k={id:r||void 0,className:w()((t={"gb-button":!0},o()(t,"gb-button-".concat(i),!0),o()(t,"".concat(n),""!==n),t)),href:s||void 0,target:g?"_blank":void 0,rel:m&&m.length>0?m.join(" "):void 0,"aria-label":h||void 0};return k=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",k,"generateblocks/button",a),Object(l.createElement)("a",k,d&&"left"===p&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(d)}}),!f&&Object(l.createElement)(Q.RichText.Content,{tagName:"span",className:"button-text",value:c,key:"button-text"}),d&&"right"===p&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(d)}}))}}];Object(X.registerBlockType)("generateblocks/button",{title:Object(T.__)("Button","generateblocks"),description:Object(T.__)("Drive conversions with beautiful buttons.","generateblocks"),parent:["generateblocks/button-container"],icon:j("button"),category:"generateblocks",keywords:[Object(T.__)("button"),Object(T.__)("buttons"),Object(T.__)("generate")],attributes:Gt,supports:{className:!1,inserter:!1,reusable:!1},edit:It,save:function(e){var t,a=e.attributes,i=a.uniqueId,r=a.className,n=a.text,c=a.url,s=a.target,g=a.relNoFollow,b=a.relSponsored,u=a.icon,d=a.iconLocation,p=a.removeText,f=a.ariaLabel,h=a.anchor,m=[];g&&m.push("nofollow"),s&&m.push("noopener","noreferrer"),b&&m.push("sponsored");var k={className:w()((t={"gb-button":!0},o()(t,"gb-button-".concat(i),!0),o()(t,"gb-button-text",!u),o()(t,"".concat(r),void 0!==r),t)),href:c||null,target:s?"_blank":null,rel:m&&m.length>0?m.join(" "):null,"aria-label":f||null,id:h||null};return k=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",k,"generateblocks/button",a),Object(l.createElement)(fe,{tagName:c?"a":"span",htmlAttrs:k},!!u&&"left"===d&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(u)}}),!p&&Object(l.createElement)(Q.RichText.Content,{value:n,tagName:u?"span":null,className:u?"gb-button-text":null}),!!u&&"right"===d&&Object(l.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Be(u)}}))},deprecated:Wt});a(44);function Zt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Kt=function(e){f()(a,e);var t=Zt(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.element,r=e.alignment,n=e.backgroundColor,o=e.backgroundColorOpacity,c=e.textColor,s=e.linkColor,g=e.borderColor,b=e.borderColorOpacity,u=e.highlightTextColor,d=e.fontFamily,p=e.fontFamilyFallback,f=e.fontWeight,h=e.fontSize,m=e.fontSizeUnit,k=e.textTransform,y=e.lineHeight,v=e.lineHeightUnit,w=e.letterSpacing,O=e.marginTop,j=e.marginRight,T=e.marginBottom,C=e.marginLeft,S=e.marginUnit,B=e.paddingTop,D=e.paddingRight,E=e.paddingBottom,R=e.paddingLeft,x=e.paddingUnit,L=e.borderSizeTop,P=e.borderSizeRight,F=e.borderSizeBottom,A=e.borderSizeLeft,U=e.borderRadiusTopRight,H=e.borderRadiusBottomRight,N=e.borderRadiusBottomLeft,I=e.borderRadiusTopLeft,G=e.borderRadiusUnit,V=e.icon,q=e.iconColor,W=e.iconColorOpacity,Z=e.iconLocation,K=e.iconVerticalAlignment,J=e.iconPaddingTop,Y=e.iconPaddingRight,Q=e.iconPaddingBottom,X=e.iconPaddingLeft,$=e.iconPaddingUnit,ee=e.iconSize,te=e.iconSizeUnit,ae=e.inlineWidth,le=e.removeText,ie="",re="inline-block";d&&p&&(ie=", "+p);var ne=i+".gb-headline-"+a,oe=[];return oe[".editor-styles-wrapper "+ne]=[{color:c,"font-family":d+ie,"font-weight":f,"text-transform":k,"text-align":r,"font-size":z(h,m),"line-height":z(y,v),"letter-spacing":z(w,"em"),display:!!V&&"flex","align-items":$e("inline"===Z?K:r),"justify-content":$e(r),"flex-direction":!(!V||"above"!==Z)&&"column"}],oe[".editor-styles-wrapper .gb-container "+ne]=[{color:c}],V&&(re="inline-flex"),oe[".editor-styles-wrapper "+ne].push({"background-color":he(n,o),color:c,display:!!ae&&re,"margin-top":z(O,S),"margin-right":z(j,S),"margin-bottom":z(T,S),"margin-left":z(C,S),padding:De(B,D,E,R,x),"border-radius":De(I,U,H,N,G)}),(L||P||F||A)&&oe[".editor-styles-wrapper "+ne].push({"border-width":De(L,P,F,A,"px"),"border-style":"solid","border-color":he(g,b)}),oe[".editor-styles-wrapper "+ne+" a"]=[{color:s}],oe[ne+" .gb-icon"]=[{padding:!le&&De(J,Y,Q,X,$),"align-self":!(!V||"above"!==Z)&&$e(r),color:he(q,W),display:!(!V||"above"!==Z)&&"inline"}],oe[ne+" .gb-icon svg"]=[{width:z(ee,te),height:z(ee,te)}],oe[ne+" .gb-highlight"]=[{color:u}],oe["#block-"+t]=[{display:!!ae&&"inline-flex"}],oe=Object(_.applyFilters)("generateblocks.editor.mainCSS",oe,this.props,"headline"),Object(l.createElement)("style",null,M(oe))}}]),a}(l.Component);function Jt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Yt=function(e){f()(a,e);var t=Jt(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.desktopCSS",e,this.props,"headline"),Object(l.createElement)("style",null,M(e))}}]),a}(l.Component);function Qt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var Xt=function(e){f()(a,e);var t=Qt(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.element,r=e.alignmentTablet,n=e.fontSizeTablet,o=e.fontSizeUnit,c=e.lineHeightTablet,s=e.lineHeightUnit,g=e.letterSpacingTablet,b=e.marginTopTablet,u=e.marginRightTablet,d=e.marginBottomTablet,p=e.marginLeftTablet,f=e.marginUnit,h=e.paddingTopTablet,m=e.paddingRightTablet,k=e.paddingBottomTablet,y=e.paddingLeftTablet,v=e.paddingUnit,w=e.borderSizeTopTablet,O=e.borderSizeRightTablet,j=e.borderSizeBottomTablet,T=e.borderSizeLeftTablet,C=e.borderRadiusTopRightTablet,S=e.borderRadiusBottomRightTablet,B=e.borderRadiusBottomLeftTablet,D=e.borderRadiusTopLeftTablet,E=e.borderRadiusUnit,R=e.icon,x=e.iconLocationTablet,L=e.iconVerticalAlignmentTablet,P=e.iconPaddingTopTablet,F=e.iconPaddingRightTablet,A=e.iconPaddingBottomTablet,U=e.iconPaddingLeftTablet,H=e.iconPaddingUnit,N=e.iconSizeTablet,I=e.iconSizeUnit,G=e.inlineWidthTablet,V=e.removeText,q=i+".gb-headline-"+a,W="inline-block",Z=[];return Z[".editor-styles-wrapper "+q]=[{"text-align":r,"font-size":z(n,o),"line-height":z(c,s),"letter-spacing":z(g,"em"),display:!!R&&"flex","align-items":$e("inline"===x?L:r),"justify-content":$e(r),"flex-direction":!(!R||"above"!==x)&&"column","margin-top":z(b,f)+" !important","margin-right":z(u,f)+" !important","margin-bottom":z(d,f)+" !important","margin-left":z(p,f)+" !important","padding-top":z(h,v),"padding-right":z(m,v),"padding-bottom":z(k,v),"padding-left":z(y,v),"border-top-left-radius":z(D,E),"border-top-right-radius":z(C,E),"border-bottom-right-radius":z(S,E),"border-bottom-left-radius":z(B,E)}],R&&(W="inline-flex",Z[".editor-styles-wrapper "+q].push({display:!!G&&W})),(w||O||j||T)&&Z[".editor-styles-wrapper "+q].push({"border-top-width":z(w,"px"),"border-right-width":z(O,"px"),"border-bottom-width":z(j,"px"),"border-left-width":z(T,"px"),"border-style":"solid"}),Z[q+" .gb-icon"]=[{"padding-top":!V&&z(P,H),"padding-right":!V&&z(F,H),"padding-bottom":!V&&z(A,H),"padding-left":!V&&z(U,H),"align-self":!(!R||"above"!==x)&&$e(r),display:!(!R||"above"!==x)&&"inline"}],Z[q+" .gb-icon svg"]=[{width:z(N,I),height:z(N,I)}],Z["#block-"+t]=[{display:!!G&&"inline-flex"}],Z=Object(_.applyFilters)("generateblocks.editor.tabletCSS",Z,this.props,"text"),Object(l.createElement)("style",null,M(Z))}}]),a}(l.Component);function $t(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var ea=function(e){f()(a,e);var t=$t(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=[];return e=Object(_.applyFilters)("generateblocks.editor.tabletOnlyCSS",e,this.props,"headline"),Object(l.createElement)("style",null,M(e))}}]),a}(l.Component);function ta(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}var aa=function(e){f()(a,e);var t=ta(a);function a(){return s()(this,a),t.apply(this,arguments)}return b()(a,[{key:"render",value:function(){var e=Object(_.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),t=this.props.clientId,a=e.uniqueId,i=e.element,r=e.alignmentMobile,n=e.fontSizeMobile,o=e.fontSizeUnit,c=e.lineHeightMobile,s=e.lineHeightUnit,g=e.letterSpacingMobile,b=e.marginTopMobile,u=e.marginRightMobile,d=e.marginBottomMobile,p=e.marginLeftMobile,f=e.marginUnit,h=e.paddingTopMobile,m=e.paddingRightMobile,k=e.paddingBottomMobile,y=e.paddingLeftMobile,v=e.paddingUnit,w=e.borderSizeTopMobile,O=e.borderSizeRightMobile,j=e.borderSizeBottomMobile,T=e.borderSizeLeftMobile,C=e.borderRadiusTopRightMobile,S=e.borderRadiusBottomRightMobile,B=e.borderRadiusBottomLeftMobile,D=e.borderRadiusTopLeftMobile,E=e.borderRadiusUnit,R=e.icon,x=e.iconLocationMobile,L=e.iconVerticalAlignmentMobile,P=e.iconPaddingTopMobile,F=e.iconPaddingRightMobile,A=e.iconPaddingBottomMobile,U=e.iconPaddingLeftMobile,H=e.iconPaddingUnit,N=e.iconSizeMobile,I=e.iconSizeUnit,G=e.inlineWidthMobile,V=e.removeText,q=i+".gb-headline-"+a,W="inline-block",Z=[];return Z[".editor-styles-wrapper "+q]=[{"text-align":r,"font-size":z(n,o),"line-height":z(c,s),"letter-spacing":z(g,"em"),display:!!R&&"flex","align-items":$e("inline"===x?L:r),"justify-content":$e(r),"flex-direction":!(!R||"above"!==x)&&"column","margin-top":z(b,f)+" !important","margin-right":z(u,f)+" !important","margin-bottom":z(d,f)+" !important","margin-left":z(p,f)+" !important","padding-top":z(h,v),"padding-right":z(m,v),"padding-bottom":z(k,v),"padding-left":z(y,v),"border-top-left-radius":z(D,E),"border-top-right-radius":z(C,E),"border-bottom-right-radius":z(S,E),"border-bottom-left-radius":z(B,E)}],R&&(W="inline-flex",Z[".editor-styles-wrapper "+q].push({display:!!G&&W})),(w||O||j||T)&&Z[".editor-styles-wrapper "+q].push({"border-top-width":z(w,"px"),"border-right-width":z(O,"px"),"border-bottom-width":z(j,"px"),"border-left-width":z(T,"px"),"border-style":"solid"}),Z[q+" .gb-icon"]=[{"padding-top":!V&&z(P,H),"padding-right":!V&&z(F,H),"padding-bottom":!V&&z(A,H),"padding-left":!V&&z(U,H),"align-self":!(!R||"above"!==x)&&$e(r),display:!(!R||"above"!==x)&&"inline"}],Z[q+" .gb-icon svg"]=[{width:z(N,I),height:z(N,I)}],Z["#block-"+t]=[{display:!!G&&"inline-flex"}],Z=Object(_.applyFilters)("generateblocks.editor.mobileCSS",Z,this.props,"headline"),Object(l.createElement)("style",null,M(Z))}}]),a}(l.Component),la=a(21),ia=Object(l.createElement)("svg",{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},Object(l.createElement)("path",{d:"M4.331,15.598l2.193,1.693c0,0 -0.813,1.215 -0.992,1.215c-1.129,0.003 -1.424,0.008 -2.603,-0.001c-0.741,-0.006 -0.04,-0.955 0.187,-1.269c0.502,-0.694 1.215,-1.638 1.215,-1.638Zm7.632,-14.107c0.364,-0.061 5.412,3.896 5.439,4.272c0.031,0.438 -4.887,8.469 -5.635,9.648c-0.251,0.397 -1.185,0.206 -2.064,0.472c-0.801,0.243 -1.89,1.336 -2.193,1.105c-1.047,-0.796 -2.217,-1.646 -3.117,-2.49c-0.367,-0.343 0.388,-1.241 0.405,-2.188c0.015,-0.811 -0.644,-2.029 -0.196,-2.575c0.836,-1.019 6.931,-8.172 7.361,-8.244Zm0.144,1.454l3.95,3.105l-4.972,8.1l-5.197,-4.053l6.219,-7.152Z"})),ra=Object(ee.compose)(Object($.withSelect)((function(e){return{selectedBlock:e("core/block-editor").getSelectedBlock()}})),Object(ee.ifCondition)((function(e){return e.selectedBlock&&"generateblocks/headline"===e.selectedBlock.name})))((function(e){var t=function(){return e.onChange(Object(la.toggleFormat)(e.value,{type:"generateblocks/mark"}))};return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Q.RichTextShortcut,{type:"primary",character:"m",onUse:t}),Object(l.createElement)(Q.RichTextToolbarButton,{icon:ia,title:Object(T.__)("Highlight","generateblocks"),onClick:t,isActive:e.isActive,shortcutType:"access",shortcutCharacter:"m",className:"toolbar-button-with-text toolbar-button__".concat("generateblocks/mark")}))})),na={title:Object(T.__)("Highlight","generateblocks"),tagName:"mark",className:"gb-highlight",edit:ra};function oa(e){var t=e.level,a={h1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",h2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z",h3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z",h4:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z",h5:"M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z",h6:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z",p:"M7.411 18V6.005h3.887c1.474 0 2.429.067 2.881.184.687.185 1.257.57 1.726 1.173.452.603.687 1.374.687 2.329 0 .737-.135 1.357-.403 1.86-.268.502-.603.904-1.021 1.189-.403.284-.821.469-1.257.57-.57.117-1.407.167-2.496.167H9.823V18H7.411zm2.412-9.968v3.401h1.324c.955 0 1.591-.05 1.926-.184.319-.118.57-.319.754-.587.185-.268.268-.57.268-.938 0-.435-.117-.787-.385-1.072a1.607 1.607 0 00-.972-.536c-.284-.05-.87-.084-1.742-.084H9.823z",div:"M6.969 6.005h4.423c1.005 0 1.759.084 2.295.235.703.2 1.306.57 1.809 1.105.503.52.871 1.173 1.14 1.944.267.754.385 1.708.385 2.83 0 .99-.118 1.844-.369 2.547-.302.871-.72 1.592-1.273 2.128-.419.402-.989.72-1.709.955-.536.167-1.24.251-2.144.251H6.969V6.005zm2.43 2.027v7.94h1.808c.67 0 1.156-.033 1.458-.1.402-.1.72-.268.972-.502.268-.235.485-.62.636-1.156.168-.536.251-1.273.251-2.195 0-.938-.083-1.641-.25-2.144-.152-.486-.386-.888-.688-1.156-.285-.285-.67-.469-1.122-.57-.335-.067-.989-.117-1.977-.117H9.398z"};if(!a.hasOwnProperty(t))return null;var i="0 0 20 20";return"p"!==t&&"div"!==t||(i="0 0 24 24"),Object(l.createElement)(C.SVG,{width:"24",height:"24",viewBox:i,xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)(C.Path,{d:a[t]}))}function ca(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=y()(e);if(t){var i=y()(this).constructor;a=Reflect.construct(l,arguments,i)}else a=l.apply(this,arguments);return m()(this,a)}}Object(la.registerFormatType)("generateblocks/mark",na);var sa=/[\s#]/g,ga=[],ba=function(e){f()(a,e);var t=ca(a);function a(){var e;return s()(this,a),(e=t.apply(this,arguments)).getFontSizePlaceholder=e.getFontSizePlaceholder.bind(d()(e)),e.getDeviceType=e.getDeviceType.bind(d()(e)),e.setDeviceType=e.setDeviceType.bind(d()(e)),e.state={selectedDevice:"Desktop",fontSizePlaceholder:"17"},e}return b()(a,[{key:"componentDidMount",value:function(){var e=this.props.clientId.substr(2,9).replace("-","");this.props.attributes.uniqueId?ga.includes(this.props.attributes.uniqueId)?(this.props.setAttributes({uniqueId:e}),ga.push(e)):ga.push(this.props.attributes.uniqueId):(this.props.setAttributes({uniqueId:e}),ga.push(e));var t=this.getFontSizePlaceholder();t!==this.state.fontSizePlaceholder&&this.setState({fontSizePlaceholder:t}),!this.props.attributes.hasIcon&&this.props.attributes.icon&&this.props.setAttributes({hasIcon:!0})}},{key:"componentDidUpdate",value:function(){var e=this.getFontSizePlaceholder();e!==this.state.fontSizePlaceholder&&this.setState({fontSizePlaceholder:e})}},{key:"getFontSizePlaceholder",value:function(){var e="25";if("em"===this.props.attributes.fontSizeUnit)e="1";else if("%"===this.props.attributes.fontSizeUnit)e="100";else{var t=document.querySelector(".gb-headline-"+this.props.attributes.uniqueId);t&&(e=parseFloat(window.getComputedStyle(t).fontSize))}return e}},{key:"getDeviceType",value:function(){var e=this.props.deviceType?this.props.deviceType:this.state.selectedDevice;return generateBlocksInfo.syncResponsivePreviews||(e=this.state.selectedDevice),e}},{key:"setDeviceType",value:function(e){generateBlocksInfo.syncResponsivePreviews&&this.props.deviceType?(this.props.setDeviceType(e),this.setState({selectedDevice:e})):this.setState({selectedDevice:e})}},{key:"render",value:function(){var e,t=this,a=this.props,i=a.attributes,n=a.setAttributes,c=this.state.fontSizePlaceholder,s=i.uniqueId,g=i.anchor,b=i.className,u=i.content,d=i.element,p=i.alignment,f=i.alignmentTablet,h=i.alignmentMobile,m=i.backgroundColor,k=i.backgroundColorOpacity,y=i.textColor,v=i.linkColor,O=i.linkColorHover,S=i.borderColor,D=i.borderColorOpacity,R=i.highlightTextColor,x=i.fontFamily,M=i.googleFont,z=i.googleFontVariants,L=i.marginTop,P=i.marginRight,F=i.marginBottom,A=i.marginLeft,U=i.icon,H=i.hasIcon,N=i.iconColor,I=i.iconColorOpacity,G=i.iconLocation,V=i.iconLocationTablet,q=i.iconLocationMobile,W=i.iconVerticalAlignment,Z=i.iconVerticalAlignmentTablet,K=i.iconVerticalAlignmentMobile,J=i.iconSize,X=i.iconSizeTablet,$=i.iconSizeMobile,ee=i.iconSizeUnit,te=i.inlineWidth,ae=i.inlineWidthTablet,le=i.inlineWidthMobile,ie=i.removeText,re=i.ariaLabel,ne="";z&&(ne=":"+z);var oe="";oe=X||0===X?X:J||0===J?J:"";var ce={className:w()((e={"gb-headline":!0},o()(e,"gb-headline-".concat(s),!0),o()(e,"gb-headline-text",!H),o()(e,b,void 0!==b),e)),id:g||null};return ce=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",ce,"generateblocks/headline",i),Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Q.BlockControls,null,Object(l.createElement)(C.ToolbarGroup,{isCollapsed:!0,icon:Object(l.createElement)(oa,{level:d}),label:Object(T.__)("Change Headline Element","generateblocks"),controls:[{isActive:"h1"===d,icon:Object(l.createElement)(oa,{level:"h1"}),title:Object(T.sprintf)(// translators: %s: heading level e.g: "1", "2", "3"
|
10 |
+
Object(T.__)("Heading %s","generateblocks"),"1"),onClick:function(){n({element:"h1"})}},{isActive:"h2"===d,icon:Object(l.createElement)(oa,{level:"h2"}),title:Object(T.sprintf)(// translators: %s: heading level e.g: "1", "2", "3"
|
11 |
+
Object(T.__)("Heading %s","generateblocks"),"2"),onClick:function(){n({element:"h2"})}},{isActive:"h3"===d,icon:Object(l.createElement)(oa,{level:"h3"}),title:Object(T.sprintf)(// translators: %s: heading level e.g: "1", "2", "3"
|
12 |
+
Object(T.__)("Heading %s","generateblocks"),"3"),onClick:function(){n({element:"h3"})}},{isActive:"h4"===d,icon:Object(l.createElement)(oa,{level:"h4"}),title:Object(T.sprintf)(// translators: %s: heading level e.g: "1", "2", "3"
|
13 |
+
Object(T.__)("Heading %s","generateblocks"),"4"),onClick:function(){n({element:"h4"})}},{isActive:"h5"===d,icon:Object(l.createElement)(oa,{level:"h5"}),title:Object(T.sprintf)(// translators: %s: heading level e.g: "1", "2", "3"
|
14 |
+
Object(T.__)("Heading %s","generateblocks"),"5"),onClick:function(){n({element:"h5"})}},{isActive:"h6"===d,icon:Object(l.createElement)(oa,{level:"h6"}),title:Object(T.sprintf)(// translators: %s: heading level e.g: "1", "2", "3"
|
15 |
+
Object(T.__)("Heading %s","generateblocks"),"6"),onClick:function(){n({element:"h6"})}},{isActive:"p"===d,icon:Object(l.createElement)(oa,{level:"p"}),title:Object(T.__)("Paragraph","generateblocks"),onClick:function(){n({element:"p"})}},{isActive:"div"===d,icon:Object(l.createElement)(oa,{level:"div"}),title:Object(T.__)("Div","generateblocks"),onClick:function(){n({element:"div"})}}]}),"Desktop"===this.getDeviceType()&&!te&&Object(l.createElement)(Q.AlignmentToolbar,{value:p,onChange:function(e){n({alignment:e})}}),"Tablet"===this.getDeviceType()&&!ae&&Object(l.createElement)(Q.AlignmentToolbar,{value:f,onChange:function(e){n({alignmentTablet:e})}}),"Mobile"===this.getDeviceType()&&!le&&Object(l.createElement)(Q.AlignmentToolbar,{value:h,onChange:function(e){n({alignmentMobile:e})}})),Object(l.createElement)(Q.InspectorControls,null,Object(l.createElement)(B,r()({},this.props,{selectedDevice:this.getDeviceType(),onClick:function(e){t.setDeviceType(e)}})),Object(l.createElement)(Y,r()({},this.props,{id:"headlineElement",state:this.state,showPanel:"Desktop"===this.getDeviceType()}),Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Tag Name","generateblocks"),value:d,options:[{label:"h1",value:"h1"},{label:"h2",value:"h2"},{label:"h3",value:"h3"},{label:"h4",value:"h4"},{label:"h5",value:"h5"},{label:"h6",value:"h6"},{label:"paragraph",value:"p"},{label:"div",value:"div"}],onChange:function(e){n({element:e}),L||P||F||A||n("p"===e?{marginUnit:"em"}:{marginUnit:generateBlocksDefaults.headline.marginUnit})}}),Object(_.applyFilters)("generateblocks.editor.controls","","headlineElement",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Typography","generateblocks"),initialOpen:!1,icon:j("typography"),className:"gblocks-panel-label",id:"headlineTypography",state:this.state,showPanel:!ie||!1}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(je,r()({},this.props,{showFontFamily:!0,showFontWeight:!0,showTextTransform:!0,showFontSize:!0,showLineHeight:!0,showLetterSpacing:!0,fontSizePlaceholder:c,defaultFontSize:generateBlocksDefaults.headline.fontSize,defaultFontSizeUnit:generateBlocksDefaults.headline.fontSizeUnit,defaultLineHeight:generateBlocksDefaults.headline.lineHeight,defaultLineHeightUnit:generateBlocksDefaults.headline.lineHeightUnit,defaultLetterSpacing:generateBlocksDefaults.headline.letterSpacing}))),"Tablet"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(je,r()({},this.props,{device:"Tablet",showFontSize:!0,showLineHeight:!0,showLetterSpacing:!0,defaultFontSize:generateBlocksDefaults.headline.fontSizeTablet,defaultFontSizeUnit:generateBlocksDefaults.headline.fontSizeUnit,defaultLineHeight:generateBlocksDefaults.headline.lineHeightTablet,defaultLineHeightUnit:generateBlocksDefaults.headline.lineHeightUnit,defaultLetterSpacing:generateBlocksDefaults.headline.letterSpacingTablet}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(je,r()({},this.props,{device:"Mobile",showFontSize:!0,showLineHeight:!0,showLetterSpacing:!0,defaultFontSize:generateBlocksDefaults.headline.fontSizeMobile,defaultFontSizeUnit:generateBlocksDefaults.headline.fontSizeUnit,defaultLineHeight:generateBlocksDefaults.headline.lineHeightMobile,defaultLineHeightUnit:generateBlocksDefaults.headline.lineHeightUnit,defaultLetterSpacing:generateBlocksDefaults.headline.letterSpacingMobile}))),Object(_.applyFilters)("generateblocks.editor.controls","","headlineTypography",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Spacing","generateblocks"),initialOpen:!1,icon:j("spacing"),className:"gblocks-panel-label",id:"headlineSpacing",state:this.state}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Inline Width","generateblocks"),checked:!!te,onChange:function(e){n({inlineWidth:e})}}),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"paddingTop",attrRight:"paddingRight",attrBottom:"paddingBottom",attrLeft:"paddingLeft",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",block:"headline",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTop",attrRight:"marginRight",attrBottom:"marginBottom",attrLeft:"marginLeft",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Size","generateblocks"),attrTop:"borderSizeTop",attrRight:"borderSizeRight",attrBottom:"borderSizeBottom",attrLeft:"borderSizeLeft",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.headline,units:["px"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeft",attrRight:"borderRadiusTopRight",attrBottom:"borderRadiusBottomRight",attrLeft:"borderRadiusBottomLeft",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Object(T.__)("T-Left","generateblocks"),labelRight:Object(T.__)("T-Right","generateblocks"),labelBottom:Object(T.__)("B-Right","generateblocks"),labelLeft:Object(T.__)("B-Left","generateblocks"),defaults:generateBlocksDefaults.headline,units:["px","em","%"]}))),"Tablet"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Inline Width","generateblocks"),checked:!!ae,onChange:function(e){n({inlineWidthTablet:e})}}),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"paddingTopTablet",attrRight:"paddingRightTablet",attrBottom:"paddingBottomTablet",attrLeft:"paddingLeftTablet",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",block:"headline",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopTablet",attrRight:"marginRightTablet",attrBottom:"marginBottomTablet",attrLeft:"marginLeftTablet",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Size","generateblocks"),attrTop:"borderSizeTopTablet",attrRight:"borderSizeRightTablet",attrBottom:"borderSizeBottomTablet",attrLeft:"borderSizeLeftTablet",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.headline,units:["px"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftTablet",attrRight:"borderRadiusTopRightTablet",attrBottom:"borderRadiusBottomRightTablet",attrLeft:"borderRadiusBottomLeftTablet",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Object(T.__)("T-Left","generateblocks"),labelRight:Object(T.__)("T-Right","generateblocks"),labelBottom:Object(T.__)("B-Right","generateblocks"),labelLeft:Object(T.__)("B-Left","generateblocks"),defaults:generateBlocksDefaults.headline,units:["px","em","%"]}))),"Mobile"===this.getDeviceType()&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.ToggleControl,{label:Object(T.__)("Inline Width","generateblocks"),checked:!!le,onChange:function(e){n({inlineWidthMobile:e})}}),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"paddingTopMobile",attrRight:"paddingRightMobile",attrBottom:"paddingBottomMobile",attrLeft:"paddingLeftMobile",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"margin",block:"headline",label:Object(T.__)("Margin","generateblocks"),attrTop:"marginTopMobile",attrRight:"marginRightMobile",attrBottom:"marginBottomMobile",attrLeft:"marginLeftMobile",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Size","generateblocks"),attrTop:"borderSizeTopMobile",attrRight:"borderSizeRightMobile",attrBottom:"borderSizeBottomMobile",attrLeft:"borderSizeLeftMobile",attrSyncUnits:"borderSizeSyncUnits",defaults:generateBlocksDefaults.headline,units:["px"]})),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftMobile",attrRight:"borderRadiusTopRightMobile",attrBottom:"borderRadiusBottomRightMobile",attrLeft:"borderRadiusBottomLeftMobile",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:Object(T.__)("T-Left","generateblocks"),labelRight:Object(T.__)("T-Right","generateblocks"),labelBottom:Object(T.__)("B-Right","generateblocks"),labelLeft:Object(T.__)("B-Left","generateblocks"),defaults:generateBlocksDefaults.headline,units:["px","em","%"]}))),Object(_.applyFilters)("generateblocks.editor.controls","","headlineSpacing",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Colors","generateblocks"),initialOpen:!1,icon:j("colors"),className:"gblocks-panel-label",id:"headlineColors",state:this.state,showPanel:"Desktop"===this.getDeviceType()||!1}),Object(l.createElement)(ke,{label:Object(T.__)("Background Color","generateblocks"),value:m,alpha:!0,valueOpacity:k,attrOpacity:"backgroundColorOpacity",onChange:function(e){return n({backgroundColor:e})},onOpacityChange:function(e){return n({backgroundColorOpacity:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Text Color","generateblocks"),value:y,alpha:!1,onChange:function(e){return n({textColor:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Link Color","generateblocks"),value:v,alpha:!1,onChange:function(e){return n({linkColor:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Link Color Hover","generateblocks"),value:O,alpha:!1,onChange:function(e){return n({linkColorHover:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Border Color","generateblocks"),value:S,alpha:!0,valueOpacity:D,attrOpacity:"borderColorOpacity",onChange:function(e){return n({borderColor:e})},onOpacityChange:function(e){return n({borderColorOpacity:e})}}),U&&Object(l.createElement)(ke,{label:Object(T.__)("Icon Color","generateblocks"),value:N,alpha:!0,valueOpacity:I,attrOpacity:"iconColorOpacity",onChange:function(e){return n({iconColor:e})},onOpacityChange:function(e){return n({iconColorOpacity:e})}}),Object(l.createElement)(ke,{label:Object(T.__)("Highlight Text","generateblocks"),value:R,alpha:!1,onChange:function(e){return n({highlightTextColor:e})}})),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Icon","generateblocks"),initialOpen:!1,icon:j("icons"),className:"gblocks-panel-label",id:"headlineIcon",state:this.state,showPanel:!("Desktop"!==this.getDeviceType()&&!U)}),"Desktop"===this.getDeviceType()&&Object(l.createElement)(jt,r()({},this.props,{attrIcon:"icon",attrRemoveText:"removeText",attrAriaLabel:"ariaLabel"})),"Desktop"===this.getDeviceType()&&!!U&&Object(l.createElement)(l.Fragment,null,!ie&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Icon Location","generateblocks"),value:G,options:[{label:Object(T.__)("Inline","generateblocks"),value:"inline"},{label:Object(T.__)("Above","generateblocks"),value:"above"}],onChange:function(e){n({iconLocation:e,iconPaddingRight:"inline"===e?"0.5":"",iconPaddingBottom:"above"===e?"0.5":""})}}),"inline"===G&&Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Icon Alignment","generateblocks"),value:W,options:[{label:Object(T.__)("Top","generateblocks"),value:"top"},{label:Object(T.__)("Center","generateblocks"),value:"center"},{label:Object(T.__)("Bottom","generateblocks"),value:"bottom"}],onChange:function(e){n({iconVerticalAlignment:e})}}),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"iconPaddingTop",attrRight:"iconPaddingRight",attrBottom:"iconPaddingBottom",attrLeft:"iconPaddingLeft",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]}))),Object(l.createElement)(E,{label:Object(T.__)("Icon Size","generateblocks"),value:ee,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:J||0===J?J:"",step:"em"===ee?.1:1,onChange:function(e){n({iconSize:e})},onBlur:function(){n({iconSize:parseFloat(J)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSize:generateBlocksDefaults.headline.iconSize})}},Object(T.__)("Reset","generateblocks")))),"Tablet"===this.getDeviceType()&&!!U&&Object(l.createElement)(l.Fragment,null,!ie&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Icon Location","generateblocks"),value:V,options:[{label:Object(T.__)("Inherit","generateblocks"),value:""},{label:Object(T.__)("Inline","generateblocks"),value:"inline"},{label:Object(T.__)("Above","generateblocks"),value:"above"}],onChange:function(e){n({iconLocationTablet:e,iconPaddingRightTablet:"inline"===e?"0.5":"",iconPaddingBottomTablet:"above"===e?"0.5":""})}}),"inline"===V&&Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Icon Alignment","generateblocks"),value:Z,options:[{label:Object(T.__)("Inherit","generateblocks"),value:""},{label:Object(T.__)("Top","generateblocks"),value:"top"},{label:Object(T.__)("Center","generateblocks"),value:"center"},{label:Object(T.__)("Bottom","generateblocks"),value:"bottom"}],onChange:function(e){n({iconVerticalAlignmentTablet:e})}}),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"iconPaddingTopTablet",attrRight:"iconPaddingRightTablet",attrBottom:"iconPaddingBottomTablet",attrLeft:"iconPaddingLeftTablet",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]}))),Object(l.createElement)(E,{label:Object(T.__)("Icon Size","generateblocks"),value:ee,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:X||0===X?X:"",step:"em"===ee?.1:1,placeholder:J||0===J?J:"",onChange:function(e){n({iconSizeTablet:e})},onBlur:function(){n({iconSizeTablet:parseFloat(X)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSizeTablet:generateBlocksDefaults.headline.iconSizeTablet})}},Object(T.__)("Reset","generateblocks")))),"Mobile"===this.getDeviceType()&&!!U&&Object(l.createElement)(l.Fragment,null,!ie&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Icon Location","generateblocks"),value:q,options:[{label:Object(T.__)("Inherit","generateblocks"),value:""},{label:Object(T.__)("Inline","generateblocks"),value:"inline"},{label:Object(T.__)("Above","generateblocks"),value:"above"}],onChange:function(e){n({iconLocationMobile:e,iconPaddingRightMobile:"inline"===e?"0.5":"",iconPaddingBottomMobile:"above"===e?"0.5":""})}}),"inline"===q&&Object(l.createElement)(C.SelectControl,{label:Object(T.__)("Icon Alignment","generateblocks"),value:K,options:[{label:Object(T.__)("Inherit","generateblocks"),value:""},{label:Object(T.__)("Top","generateblocks"),value:"top"},{label:Object(T.__)("Center","generateblocks"),value:"center"},{label:Object(T.__)("Bottom","generateblocks"),value:"bottom"}],onChange:function(e){n({iconVerticalAlignmentMobile:e})}}),Object(l.createElement)(ve,r()({},this.props,{device:this.getDeviceType(),type:"padding",label:Object(T.__)("Padding","generateblocks"),attrTop:"iconPaddingTopMobile",attrRight:"iconPaddingRightMobile",attrBottom:"iconPaddingBottomMobile",attrLeft:"iconPaddingLeftMobile",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.headline,units:["px","em","%"]}))),Object(l.createElement)(E,{label:Object(T.__)("Icon Size","generateblocks"),value:ee,units:["px","em"],onClick:function(e){n({iconSizeUnit:e})}}),Object(l.createElement)("div",{className:"components-base-control components-gblocks-typography-control__inputs"},Object(l.createElement)(C.TextControl,{type:"number",value:$||0===$?$:"",step:"em"===ee?.1:1,placeholder:oe,onChange:function(e){n({iconSizeMobile:e})},onBlur:function(){n({iconSizeMobile:parseFloat($)})},onClick:function(e){e.currentTarget.focus()}}),Object(l.createElement)(C.Button,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){n({iconSizeMobile:generateBlocksDefaults.headline.iconSizeMobile})}},Object(T.__)("Reset","generateblocks")))),Object(_.applyFilters)("generateblocks.editor.controls","","headlineIcon",this.props,this.state)),Object(l.createElement)(Y,r()({},this.props,{title:Object(T.__)("Documentation","generateblocks"),icon:j("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"headlineDocumentation",state:this.state}),Object(l.createElement)("p",null,Object(T.__)("Need help with this block?","generateblocks")),Object(l.createElement)("a",{href:"https://docs.generateblocks.com/collection/headline/",target:"_blank",rel:"noreferrer noopener"},Object(T.__)("Visit our documentation","generateblocks")),Object(_.applyFilters)("generateblocks.editor.controls","","headlineDocumentation",this.props,this.state))),Object(l.createElement)(Q.InspectorAdvancedControls,null,Object(l.createElement)(C.TextControl,{label:Object(T.__)("HTML Anchor"),help:Object(T.__)("Anchors lets you link directly to a section on a page.","generateblocks"),value:g||"",onChange:function(e){e=e.replace(sa,"-"),n({anchor:e})}})),Object(l.createElement)(Kt,this.props),this.props.deviceType&&Object(l.createElement)(l.Fragment,null,"Desktop"===this.props.deviceType&&Object(l.createElement)(Yt,this.props),("Tablet"===this.props.deviceType||"Mobile"===this.props.deviceType)&&Object(l.createElement)(Xt,this.props),"Tablet"===this.props.deviceType&&Object(l.createElement)(ea,this.props),"Mobile"===this.props.deviceType&&Object(l.createElement)(aa,this.props)),x&&M&&Object(l.createElement)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family="+x.replace(/ /g,"+")+ne}),Object(_.applyFilters)("generateblocks.editor.beforeHeadlineElement","",this.props),Object(l.createElement)(fe,{tagName:d,htmlAttrs:ce},H&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)("span",{className:"gb-icon","aria-label":ie&&re?re:void 0,dangerouslySetInnerHTML:{__html:Be(U)}}),!ie&&Object(l.createElement)("span",{className:"gb-headline-text"},Object(l.createElement)(Q.RichText,{tagName:"span",value:u,onChange:function(e){return n({content:e})},placeholder:Object(T.__)("Headline","generateblocks"),keepPlaceholderOnFocus:!0,allowedFormats:Object(_.applyFilters)("generateblocks.editor.headlineDisableFormatting",!1,this.props)?[]:null}))),!H&&!ie&&Object(l.createElement)(Q.RichText,{tagName:"span",value:u,onChange:function(e){return n({content:e})},placeholder:Object(T.__)("Headline","generateblocks"),keepPlaceholderOnFocus:!0,allowedFormats:Object(_.applyFilters)("generateblocks.editor.headlineDisableFormatting",!1,this.props)?[]:null})))}}]),a}(l.Component),ua=Object(ee.compose)([Object($.withDispatch)((function(e){return{setDeviceType:function(t){var a=e("core/edit-post").__experimentalSetPreviewDeviceType;a&&a(t)}}})),Object($.withSelect)((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return t?{deviceType:t()}:{deviceType:null}}))])(ba),da={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},content:{type:"string",source:"html",selector:".gb-headline-text"},element:{type:"string",default:"h2"},alignment:{type:"string",default:generateBlocksDefaults.headline.alignment},alignmentTablet:{type:"string",default:generateBlocksDefaults.headline.alignmentTablet},alignmentMobile:{type:"string",default:generateBlocksDefaults.headline.alignmentMobile},backgroundColor:{type:"string",default:generateBlocksDefaults.headline.backgroundColor},backgroundColorOpacity:{type:"number",default:generateBlocksDefaults.headline.backgroundColorOpacity},textColor:{type:"string",default:generateBlocksDefaults.headline.textColor},linkColor:{type:"string",default:generateBlocksDefaults.headline.linkColor},linkColorHover:{type:"string",default:generateBlocksDefaults.headline.linkColorHover},borderColor:{type:"string",default:generateBlocksDefaults.headline.borderColor},borderColorOpacity:{type:"number",default:generateBlocksDefaults.headline.borderColorOpacity},highlightTextColor:{type:"string",default:generateBlocksDefaults.headline.highlightTextColor},showAdvancedTypography:{type:"boolean",default:generateBlocksDefaults.headline.showAdvancedTypography},fontFamily:{type:"string",default:generateBlocksDefaults.headline.fontFamily},fontFamilyFallback:{type:"string",default:generateBlocksDefaults.headline.fontFamilyFallback},googleFont:{type:"boolean",default:generateBlocksDefaults.headline.googleFont},googleFontVariants:{type:"string",default:generateBlocksDefaults.headline.googleFontVariants},fontWeight:{type:"string",default:generateBlocksDefaults.headline.fontWeight},fontSize:{type:"number",default:generateBlocksDefaults.headline.fontSize},fontSizeTablet:{type:"number",default:generateBlocksDefaults.headline.fontSizeTablet},fontSizeMobile:{type:"number",default:generateBlocksDefaults.headline.fontSizeMobile},fontSizeUnit:{type:"string",default:generateBlocksDefaults.headline.fontSizeUnit},textTransform:{type:"string",default:""},lineHeight:{type:"number",default:generateBlocksDefaults.headline.lineHeight},lineHeightTablet:{type:"number",default:generateBlocksDefaults.headline.lineHeightTablet},lineHeightMobile:{type:"number",default:generateBlocksDefaults.headline.lineHeightMobile},lineHeightUnit:{type:"string",default:generateBlocksDefaults.headline.lineHeightUnit},letterSpacing:{type:"number",default:generateBlocksDefaults.headline.letterSpacing},letterSpacingTablet:{type:"number",default:generateBlocksDefaults.headline.letterSpacingTablet},letterSpacingMobile:{type:"number",default:generateBlocksDefaults.headline.letterSpacingMobile},marginTop:{type:"string",default:generateBlocksDefaults.headline.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.headline.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.headline.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.headline.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.headline.marginUnit},marginSyncUnits:{type:"boolean",default:!1},marginTopTablet:{type:"string",default:generateBlocksDefaults.headline.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.headline.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.headline.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.headline.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.headline.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.headline.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.headline.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.headline.marginLeftMobile},paddingTop:{type:"string",default:generateBlocksDefaults.headline.paddingTop},paddingRight:{type:"string",default:generateBlocksDefaults.headline.paddingRight},paddingBottom:{type:"string",default:generateBlocksDefaults.headline.paddingBottom},paddingLeft:{type:"string",default:generateBlocksDefaults.headline.paddingLeft},paddingTopTablet:{type:"string",default:generateBlocksDefaults.headline.paddingTopTablet},paddingRightTablet:{type:"string",default:generateBlocksDefaults.headline.paddingRightTablet},paddingBottomTablet:{type:"string",default:generateBlocksDefaults.headline.paddingBottomTablet},paddingLeftTablet:{type:"string",default:generateBlocksDefaults.headline.paddingLeftTablet},paddingTopMobile:{type:"string",default:generateBlocksDefaults.headline.paddingTopMobile},paddingRightMobile:{type:"string",default:generateBlocksDefaults.headline.paddingRightMobile},paddingBottomMobile:{type:"string",default:generateBlocksDefaults.headline.paddingBottomMobile},paddingLeftMobile:{type:"string",default:generateBlocksDefaults.headline.paddingLeftMobile},paddingUnit:{type:"string",default:generateBlocksDefaults.headline.paddingUnit},paddingSyncUnits:{type:"boolean",default:!1},borderSizeTop:{type:"string",default:generateBlocksDefaults.headline.borderSizeTop},borderSizeRight:{type:"string",default:generateBlocksDefaults.headline.borderSizeRight},borderSizeBottom:{type:"string",default:generateBlocksDefaults.headline.borderSizeBottom},borderSizeLeft:{type:"string",default:generateBlocksDefaults.headline.borderSizeLeft},borderSizeTopTablet:{type:"string",default:generateBlocksDefaults.headline.borderSizeTopTablet},borderSizeRightTablet:{type:"string",default:generateBlocksDefaults.headline.borderSizeRightTablet},borderSizeBottomTablet:{type:"string",default:generateBlocksDefaults.headline.borderSizeBottomTablet},borderSizeLeftTablet:{type:"string",default:generateBlocksDefaults.headline.borderSizeLeftTablet},borderSizeTopMobile:{type:"string",default:generateBlocksDefaults.headline.borderSizeTopMobile},borderSizeRightMobile:{type:"string",default:generateBlocksDefaults.headline.borderSizeRightMobile},borderSizeBottomMobile:{type:"string",default:generateBlocksDefaults.headline.borderSizeBottomMobile},borderSizeLeftMobile:{type:"string",default:generateBlocksDefaults.headline.borderSizeLeftMobile},borderRadiusTopRight:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopRight},borderRadiusBottomRight:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomRight},borderRadiusBottomLeft:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomLeft},borderRadiusTopLeft:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopLeft},borderRadiusUnit:{type:"string",default:generateBlocksDefaults.headline.borderRadiusUnit},borderRadiusTopRightTablet:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopRightTablet},borderRadiusBottomRightTablet:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomRightTablet},borderRadiusBottomLeftTablet:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomLeftTablet},borderRadiusTopLeftTablet:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopLeftTablet},borderRadiusTopRightMobile:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopRightMobile},borderRadiusBottomRightMobile:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomRightMobile},borderRadiusBottomLeftMobile:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomLeftMobile},borderRadiusTopLeftMobile:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopLeftMobile},icon:{type:"string",source:"html",selector:".gb-icon"},hasIcon:{type:"boolean",default:!1},iconColor:{type:"string",default:generateBlocksDefaults.headline.iconColor},iconColorOpacity:{type:"number",default:generateBlocksDefaults.headline.iconColorOpacity},customIcon:{type:"boolean",default:!1},iconLocation:{type:"string",default:generateBlocksDefaults.headline.iconLocation},iconLocationTablet:{type:"string",default:generateBlocksDefaults.headline.iconLocationTablet},iconLocationMobile:{type:"string",default:generateBlocksDefaults.headline.iconLocationMobile},iconVerticalAlignment:{type:"string",default:generateBlocksDefaults.headline.iconVerticalAlignment},iconVerticalAlignmentTablet:{type:"string",default:generateBlocksDefaults.headline.iconVerticalAlignmentTablet},iconVerticalAlignmentMobile:{type:"string",default:generateBlocksDefaults.headline.iconVerticalAlignmentMobile},iconPaddingTop:{type:"string",default:generateBlocksDefaults.headline.iconPaddingTop},iconPaddingRight:{type:"string",default:generateBlocksDefaults.headline.iconPaddingRight},iconPaddingBottom:{type:"string",default:generateBlocksDefaults.headline.iconPaddingBottom},iconPaddingLeft:{type:"string",default:generateBlocksDefaults.headline.iconPaddingLeft},iconPaddingTopTablet:{type:"string",default:generateBlocksDefaults.headline.iconPaddingTopTablet},iconPaddingRightTablet:{type:"string",default:generateBlocksDefaults.headline.iconPaddingRightTablet},iconPaddingBottomTablet:{type:"string",default:generateBlocksDefaults.headline.iconPaddingBottomTablet},iconPaddingLeftTablet:{type:"string",default:generateBlocksDefaults.headline.iconPaddingLeftTablet},iconPaddingTopMobile:{type:"string",default:generateBlocksDefaults.headline.iconPaddingTopMobile},iconPaddingRightMobile:{type:"string",default:generateBlocksDefaults.headline.iconPaddingRightMobile},iconPaddingBottomMobile:{type:"string",default:generateBlocksDefaults.headline.iconPaddingBottomMobile},iconPaddingLeftMobile:{type:"string",default:generateBlocksDefaults.headline.iconPaddingLeftMobile},iconPaddingUnit:{type:"string",default:generateBlocksDefaults.headline.iconPaddingUnit},iconPaddingSyncUnits:{type:"boolean",default:!1},iconSize:{type:"number",default:generateBlocksDefaults.headline.iconSize},iconSizeTablet:{type:"number",default:generateBlocksDefaults.headline.iconSizeTablet},iconSizeMobile:{type:"number",default:generateBlocksDefaults.headline.iconSizeMobile},iconSizeUnit:{type:"string",default:generateBlocksDefaults.headline.iconSizeUnit},inlineWidth:{type:"boolean",default:generateBlocksDefaults.headline.inlineWidth},inlineWidthTablet:{type:"boolean",default:generateBlocksDefaults.headline.inlineWidthTablet},inlineWidthMobile:{type:"boolean",default:generateBlocksDefaults.headline.inlineWidthMobile},removeText:{type:"boolean",default:generateBlocksDefaults.headline.removeText},ariaLabel:{type:"string",default:generateBlocksDefaults.headline.ariaLabel},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}},pa={from:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return Object(X.createBlock)("generateblocks/headline",{content:t})}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.content;return Object(X.createBlock)("generateblocks/headline",{content:t})}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return Object(X.createBlock)("core/paragraph",{content:t})}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.content;return Object(X.createBlock)("core/heading",{content:t})}}]};function fa(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function ha(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?fa(Object(a),!0).forEach((function(t){o()(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):fa(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var ma=[{attributes:ha(ha({},da),{},{content:{type:"array",source:"children",selector:"p,h1,h2,h3,h4,h5,h6"}}),supports:{anchor:!1,className:!1,customClassName:!1},migrate:function(e){var t=e.cssClasses?e.cssClasses:e.className,a=e.elementId?e.elementId:e.anchor,l=e.element?e.element:generateBlocksDefaults.headline.element;return e.icon&&e.removeText&&"div"!==l&&(l="div"),ha(ha({},e),{},{className:t,anchor:a,cssClasses:"",elementId:"",element:l})},save:function(e){var t,a=e.attributes,i=a.uniqueId,n=a.elementId,c=a.cssClasses,s=a.element,g=a.content,b=a.icon,u=a.removeText,d=a.ariaLabel,p={id:n||void 0,className:w()((t={"gb-headline":!0},o()(t,"gb-headline-".concat(i),!0),o()(t,"".concat(c),""!==c),t))};return p=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",p,"generateblocks/headline",a),Object(l.createElement)((function(e){var t=e.condition,a=e.wrap,l=e.children;return t?a(l):l}),{condition:b,wrap:function(e){return Object(l.createElement)("div",{className:w()(o()({"gb-headline-wrapper":!0},"gb-headline-wrapper-".concat(i),!0))},e)}},b&&Object(l.createElement)("span",{className:"gb-icon","aria-label":u&&d?d:void 0,dangerouslySetInnerHTML:{__html:Be(b)}}),!u&&Object(l.createElement)(Q.RichText.Content,r()({tagName:s,value:g},p)))}},{attributes:ha(ha({},da),{},{element:{type:"string",default:"p"},content:{type:"array",source:"children",selector:"p,h1,h2,h3,h4,h5,h6"}}),save:function(e){var t,a=e.attributes,i=a.uniqueId,n=a.elementId,c=a.cssClasses,s=a.element,g=a.content,b=a.icon,u=a.removeText,d=a.ariaLabel,p={id:n||void 0,className:w()((t={"gb-headline":!0},o()(t,"gb-headline-".concat(i),!0),o()(t,"".concat(c),""!==c),t))};return p=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",p,"generateblocks/headline",a),Object(l.createElement)((function(e){var t=e.condition,a=e.wrap,l=e.children;return t?a(l):l}),{condition:b,wrap:function(e){return Object(l.createElement)("div",{className:w()(o()({"gb-headline-wrapper":!0},"gb-headline-wrapper-".concat(i),!0))},e)}},b&&Object(l.createElement)("span",{className:"gb-icon","aria-label":u&&d?d:void 0,dangerouslySetInnerHTML:{__html:Be(b)}}),!u&&Object(l.createElement)(Q.RichText.Content,r()({tagName:s,value:g},p)))}}];Object(X.registerBlockType)("generateblocks/headline",{title:Object(T.__)("Headline","generateblocks"),description:Object(T.__)("Craft text-rich content with advanced typography.","generateblocks"),icon:j("headline"),category:"generateblocks",keywords:[Object(T.__)("heading"),Object(T.__)("headline"),Object(T.__)("title"),Object(T.__)("generate")],attributes:da,supports:{className:!1},edit:ua,save:function(e){var t,a=e.attributes,i=a.uniqueId,r=a.className,n=a.anchor,c=a.element,s=a.content,g=a.icon,b=a.removeText,u=a.ariaLabel,d={className:w()((t={"gb-headline":!0},o()(t,"gb-headline-".concat(i),!0),o()(t,"gb-headline-text",!g),o()(t,r,void 0!==r),t)),id:n||null};return d=Object(_.applyFilters)("generateblocks.frontend.htmlAttributes",d,"generateblocks/headline",a),Object(l.createElement)(fe,{tagName:c,htmlAttrs:d},!!g&&Object(l.createElement)("span",{className:"gb-icon","aria-label":b&&u?u:void 0,dangerouslySetInnerHTML:{__html:Be(g)}}),!b&&Object(l.createElement)(Q.RichText.Content,{value:s,tagName:g?"span":null,className:g?"gb-headline-text":null}))},transforms:pa,deprecated:ma});a(45)}]);
|
dist/dashboard.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('wp-element', 'wp-polyfill'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('wp-api-fetch', 'wp-components', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill'), 'version' => '5587dbe20b6b89e70182cea47e72363a');
|
dist/dashboard.css
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
-
.gblocks-dashboard-wrap{margin:0;overflow:hidden}.gblocks-dashboard-header{background:#fff;border-bottom:1px solid #e2e4e7;padding:
|
2 |
|
1 |
+
.gblocks-dashboard-wrap{margin:0;overflow:hidden}.gblocks-dashboard-header{background:#fff;border-bottom:1px solid #e2e4e7;padding:0 20px;text-align:center;display:flex;justify-content:space-between;align-items:center}.gblocks-dashboard-header h1{font-size:17px;font-weight:600;padding-bottom:0;display:flex;align-items:center}.gblocks-dashboard-header h1 svg{width:1em;height:1em;padding-right:10px;fill:#006eb7}.gblocks-navigation{background:#fff;display:flex}.gblocks-navigation a{padding:1rem;display:flex;align-items:center;color:inherit;text-decoration:none}.gblocks-navigation a.active{font-weight:600;box-shadow:inset 0 -3px #007cba}.generateblocks-settings-area .components-placeholder.gblocks-settings-placeholder{margin-top:20px;margin-left:auto;margin-right:auto;max-width:750px;background:#fff;border:1px solid #e2e4e7;box-shadow:none}.generateblocks-settings-area .generateblocks-settings-main{margin-left:auto;margin-right:auto;max-width:750px}.generateblocks-settings-area .generateblocks-settings-main .gblocks-action-button{display:flex;align-items:center}.generateblocks-settings-area .generateblocks-settings-main .gblocks-action-message{padding-left:10px;opacity:0;transition:opacity 200ms ease-in-out;color:green;pointer-events:none}.generateblocks-settings-area .generateblocks-settings-main .gblocks-action-message.gblocks-action-message--show{opacity:1;transition:opacity 200ms ease-in-out}.generateblocks-settings-area .generateblocks-settings-main .gblocks-action-message.gblocks-action-message--error{color:red}.generateblocks-settings-area .generateblocks-settings-main .gblocks-css-print-method .components-base-control__label{display:block}.generateblocks-settings-area .generateblocks-settings-main .components-button .components-spinner{margin:0}.generateblocks-settings-area .generateblocks-settings-main .components-button.is-primary .components-spinner{background:#000}.generateblocks-settings-area .generateblocks-settings-main .components-panel__body{margin:25px 0;background:#fff;border:1px solid #e2e4e7}.generateblocks-settings-area .generateblocks-settings-main .components-panel__body .components-panel__body-toggle{border-bottom:1px solid #d6e2ed}.generateblocks-settings-area .generateblocks-settings-main .components-panel__body .gblocks-dashboard-panel-row-wrapper{padding-top:10px}.generateblocks-settings-area .generateblocks-settings-main .components-panel__body .gblocks-dashboard-panel-row-wrapper>*:last-child{margin-bottom:0}.generateblocks-settings-area .generateblocks-settings-main .components-panel__body .components-panel__row{padding:0;margin:0 0 25px;display:block}.generateblocks-settings-area .generateblocks-settings-main .components-panel__body .components-panel__row .components-base-control .components-base-control__help{margin-bottom:0}.generateblocks-settings-area .generateblocks-settings-main .components-panel__body .components-panel__row .components-base-control .components-base-control__field{margin-bottom:10px}.generateblocks-settings-area .generateblocks-settings-main .components-panel__body .components-notice{margin:0 0 10px}.generateblocks-dashboard-page #wpcontent{padding-left:0}.generateblocks-dashboard-page .update-nag{margin-bottom:20px;margin-left:22px}.generateblocks-dashboard-page.edit-php #wpbody-content .wrap{padding:0 20px;margin:0}
|
2 |
|
dist/dashboard.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=
|
1 |
+
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=46)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.wp.components}()},function(e,t){!function(){e.exports=this.wp.hooks}()},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){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},,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 r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t,n){var r=n(20);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&&r(e,t)}},function(e,t,n){var r=n(18),o=n(13);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?o(e):t}},,,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){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},,function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},,function(e,t){!function(){e.exports=this.wp.apiFetch}()},,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r=n(5),o=n.n(r),s=n(7),i=n.n(s),c=n(8),a=n.n(c),l=n(13),u=n.n(l),f=n(9),b=n.n(f),p=n(10),g=n.n(p),d=n(4),m=n.n(d),h=n(0),y=n(1),O=n(2),S=n(22),v=n.n(S),j=n(3);n(47);function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function P(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m()(e);if(t){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g()(this,n)}}var w=function(e){b()(n,e);var t=P(n);function n(){var e;return i()(this,n),(e=t.apply(this,arguments)).state={isAPILoaded:!1,isAPISaving:!1,isRegeneratingCSS:!1,settings:generateBlocksSettings.settings},e.getSetting=e.getSetting.bind(u()(e)),e.updateSettings=e.updateSettings.bind(u()(e)),e}return a()(n,[{key:"componentDidMount",value:function(){this.setState({isAPILoaded:!0})}},{key:"getSetting",value:function(e,t){var n=t;return void 0!==this.state.settings[e]&&(n=this.state.settings[e]),n}},{key:"updateSettings",value:function(e){var t=this;this.setState({isAPISaving:!0});var n=e.target.nextElementSibling;v()({path:"/generateblocks/v1/settings",method:"POST",data:{settings:this.state.settings}}).then((function(e){t.setState({isAPISaving:!1}),n.classList.add("gblocks-action-message--show"),n.textContent=e.response,e.success&&e.response?setTimeout((function(){n.classList.remove("gblocks-action-message--show")}),3e3):n.classList.add("gblocks-action-message--error")}))}},{key:"render",value:function(){var e=this;return this.state.isAPILoaded?Object(h.createElement)(h.Fragment,null,Object(h.createElement)("div",{className:"generateblocks-settings-main"},Object(j.applyFilters)("generateblocks.dashboard.beforeSettings","",this),Object(h.createElement)(O.PanelBody,{title:Object(y.__)("Settings","generateblocks")},Object(h.createElement)("div",{className:"gblocks-dashboard-panel-row-wrapper"},Object(h.createElement)(O.PanelRow,{className:"gblocks-css-print-method"},Object(h.createElement)(O.SelectControl,{label:Object(y.__)("CSS Print Method","generateblocks"),help:Object(y.__)("Generating your CSS in external files is better for overall performance.","generateblocks"),value:this.getSetting("css_print_method"),options:[{label:Object(y.__)("External File","generateblocks"),value:"file"},{label:Object(y.__)("Inline Embedding","generateblocks"),value:"inline"}],onChange:function(t){e.setState({settings:k(k({},e.state.settings),{},{css_print_method:t})})}})),"file"===this.getSetting("css_print_method")&&Object(h.createElement)(O.PanelRow,null,Object(h.createElement)(O.BaseControl,{id:"gblocks-regenerate-css",className:"gblocks-regenerate-css",help:Object(y.__)("Force your external CSS files to regenerate next time their page is loaded.","generateblocks")},Object(h.createElement)("div",{className:"gblocks-action-button"},Object(h.createElement)(O.Button,{isSecondary:!0,onClick:function(t){e.setState({isRegeneratingCSS:!0});var n=t.target.nextElementSibling;v()({path:"/generateblocks/v1/regenerate_css_files",method:"POST"}).then((function(t){e.setState({isRegeneratingCSS:!1}),n.classList.add("gblocks-action-message--show"),n.textContent=t.response,t.success&&t.response?setTimeout((function(){n.classList.remove("gblocks-action-message--show")}),3e3):n.classList.add("gblocks-action-message--error")}))}},this.state.isRegeneratingCSS&&Object(h.createElement)(O.Spinner,null),!this.state.isRegeneratingCSS&&Object(y.__)("Regenerate CSS Files","generateblocks")),Object(h.createElement)("span",{className:"gblocks-action-message"})))),Object(h.createElement)(O.PanelRow,null,Object(h.createElement)(O.ToggleControl,{label:Object(y.__)("Sync Responsive Previews"),help:Object(y.__)("Sync our responsive preview controls with the editor responsive previews.","generateblocks"),checked:this.getSetting("sync_responsive_previews"),onChange:function(t){e.setState({settings:k(k({},e.state.settings),{},{sync_responsive_previews:t})})}})),Object(j.applyFilters)("generateblocks.dashboard.settings","",this),Object(h.createElement)("div",{className:"gblocks-action-button"},Object(h.createElement)(O.Button,{isPrimary:!0,disabled:this.state.isAPISaving,onClick:function(t){return e.updateSettings(t)}},this.state.isAPISaving&&Object(h.createElement)(O.Spinner,null),!this.state.isAPISaving&&Object(y.__)("Save")),Object(h.createElement)("span",{className:"gblocks-action-message"})))),Object(j.applyFilters)("generateblocks.dashboard.afterSettings","",this))):Object(h.createElement)(O.Placeholder,{className:"gblocks-settings-placeholder"},Object(h.createElement)(O.Spinner,null))}}]),n}(h.Component);window.addEventListener("DOMContentLoaded",(function(){Object(h.render)(Object(h.createElement)(w,null),document.getElementById("gblocks-block-default-settings"))}))},function(e,t,n){}]);
|
includes/class-settings.php
CHANGED
@@ -71,6 +71,10 @@ class GenerateBlocks_Settings {
|
|
71 |
true
|
72 |
);
|
73 |
|
|
|
|
|
|
|
|
|
74 |
wp_localize_script(
|
75 |
'generateblocks-settings',
|
76 |
'generateBlocksSettings',
|
@@ -100,8 +104,6 @@ class GenerateBlocks_Settings {
|
|
100 |
public function settings_page() {
|
101 |
?>
|
102 |
<div class="wrap gblocks-dashboard-wrap">
|
103 |
-
<?php generateblocks_do_dashboard_header( __( 'Settings', 'generateblocks' ) ); ?>
|
104 |
-
|
105 |
<div class="generateblocks-settings-area">
|
106 |
<?php do_action( 'generateblocks_settings_area' ); ?>
|
107 |
</div>
|
71 |
true
|
72 |
);
|
73 |
|
74 |
+
if ( function_exists( 'wp_set_script_translations' ) ) {
|
75 |
+
wp_set_script_translations( 'generateblocks-settings', 'generateblocks' );
|
76 |
+
}
|
77 |
+
|
78 |
wp_localize_script(
|
79 |
'generateblocks-settings',
|
80 |
'generateBlocksSettings',
|
104 |
public function settings_page() {
|
105 |
?>
|
106 |
<div class="wrap gblocks-dashboard-wrap">
|
|
|
|
|
107 |
<div class="generateblocks-settings-area">
|
108 |
<?php do_action( 'generateblocks_settings_area' ); ?>
|
109 |
</div>
|
includes/dashboard.php
CHANGED
@@ -82,6 +82,21 @@ function generateblocks_set_admin_body_classes( $classes ) {
|
|
82 |
return $classes;
|
83 |
}
|
84 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
85 |
add_action( 'admin_enqueue_scripts', 'generateblocks_enqueue_global_dashboard_scripts' );
|
86 |
/**
|
87 |
* Add our scripts to the page.
|
@@ -155,28 +170,15 @@ function generateblocks_dashboard_navigation() {
|
|
155 |
* Build our Dashboard header.
|
156 |
*
|
157 |
* @since 1.2.0
|
158 |
-
* @param string $title The title of the page.
|
159 |
*/
|
160 |
-
function generateblocks_do_dashboard_header(
|
161 |
?>
|
162 |
<div class="gblocks-dashboard-header">
|
163 |
-
<div class="gblocks-dashboard-header-
|
164 |
-
|
165 |
-
|
166 |
-
?>
|
167 |
-
|
168 |
-
<a href="https://generateblocks.com" target="_blank" rel="noopener noreferrer">
|
169 |
-
<img width="200" height="55" src="<?php echo esc_url( GENERATEBLOCKS_DIR_URL ) . 'assets/images/gb-logo-black.svg'; ?>" alt="<?php esc_attr_e( 'GenerateBlocks', 'generateblocks' ); ?>" />
|
170 |
-
</a>
|
171 |
-
<span class="gblocks-version"><?php echo esc_html( GENERATEBLOCKS_VERSION ); ?></span>
|
172 |
-
</h1>
|
173 |
-
<?php
|
174 |
-
else :
|
175 |
-
?>
|
176 |
-
<h1><?php echo esc_html( $title ); ?></h1>
|
177 |
-
<?php
|
178 |
-
endif;
|
179 |
-
?>
|
180 |
</div>
|
181 |
|
182 |
<?php generateblocks_dashboard_navigation(); ?>
|
@@ -192,8 +194,6 @@ function generateblocks_do_dashboard_header( $title ) {
|
|
192 |
function generateblocks_do_dashboard() {
|
193 |
?>
|
194 |
<div class="wrap gblocks-dashboard-wrap">
|
195 |
-
<?php generateblocks_do_dashboard_header( 'dashboard' ); ?>
|
196 |
-
|
197 |
<div class="gblocks-dashboard-intro-content">
|
198 |
<?php esc_html_e( 'A small collection of lightweight WordPress blocks that can accomplish nearly anything.', 'generateblocks' ); ?>
|
199 |
|
@@ -212,6 +212,10 @@ function generateblocks_do_dashboard() {
|
|
212 |
|
213 |
<h3><?php esc_html_e( 'Container', 'generateblocks' ); ?></h3>
|
214 |
<p><?php esc_html_e( 'Organize your content into rows and sections.', 'generateblocks' ); ?></p>
|
|
|
|
|
|
|
|
|
215 |
</div>
|
216 |
|
217 |
<div class="gblocks-block">
|
@@ -221,6 +225,10 @@ function generateblocks_do_dashboard() {
|
|
221 |
|
222 |
<h3><?php esc_html_e( 'Grid', 'generateblocks' ); ?></h3>
|
223 |
<p><?php esc_html_e( 'Create advanced layouts with flexible grids.', 'generateblocks' ); ?></p>
|
|
|
|
|
|
|
|
|
224 |
</div>
|
225 |
|
226 |
<div class="gblocks-block">
|
@@ -230,6 +238,10 @@ function generateblocks_do_dashboard() {
|
|
230 |
|
231 |
<h3><?php esc_html_e( 'Headline', 'generateblocks' ); ?></h3>
|
232 |
<p><?php esc_html_e( 'Craft text-rich content with advanced typography.', 'generateblocks' ); ?></p>
|
|
|
|
|
|
|
|
|
233 |
</div>
|
234 |
|
235 |
<div class="gblocks-block">
|
@@ -239,12 +251,11 @@ function generateblocks_do_dashboard() {
|
|
239 |
|
240 |
<h3><?php esc_html_e( 'Buttons', 'generateblocks' ); ?></h3>
|
241 |
<p><?php esc_html_e( 'Drive conversions with beautiful buttons.', 'generateblocks' ); ?></p>
|
242 |
-
</div>
|
243 |
-
</div>
|
244 |
|
245 |
-
|
246 |
-
|
247 |
-
|
|
|
248 |
</div>
|
249 |
|
250 |
<div class="gblocks-generatepress">
|
82 |
return $classes;
|
83 |
}
|
84 |
|
85 |
+
add_action( 'in_admin_header', 'generateblocks_do_dashboard_headers' );
|
86 |
+
/**
|
87 |
+
* Add our Dashboard headers.
|
88 |
+
*
|
89 |
+
* @since 1.3.0
|
90 |
+
*/
|
91 |
+
function generateblocks_do_dashboard_headers() {
|
92 |
+
$dashboard_pages = generateblocks_get_dashboard_pages();
|
93 |
+
$current_screen = get_current_screen();
|
94 |
+
|
95 |
+
if ( in_array( $current_screen->id, $dashboard_pages ) ) {
|
96 |
+
generateblocks_do_dashboard_header();
|
97 |
+
}
|
98 |
+
}
|
99 |
+
|
100 |
add_action( 'admin_enqueue_scripts', 'generateblocks_enqueue_global_dashboard_scripts' );
|
101 |
/**
|
102 |
* Add our scripts to the page.
|
170 |
* Build our Dashboard header.
|
171 |
*
|
172 |
* @since 1.2.0
|
|
|
173 |
*/
|
174 |
+
function generateblocks_do_dashboard_header() {
|
175 |
?>
|
176 |
<div class="gblocks-dashboard-header">
|
177 |
+
<div class="gblocks-dashboard-header-title">
|
178 |
+
<h1>
|
179 |
+
<svg aria-hidden="true" role="img" xmlns="http://www.w3.org/2000/svg" x="0" y="0" viewBox="0 0 50 60.12" xml:space="preserve"><path class="st0" d="M6.686 31.622V18.918a.077.077 0 01.05-.072l6.5-2.313 6.5-2.313 9.682-3.445L39.1 7.33a.067.067 0 00.036-.028.074.074 0 00.014-.044V.076a.077.077 0 00-.032-.062.076.076 0 00-.069-.009l-13 4.625-13 4.625-6.5 2.313-6.5 2.313a.067.067 0 00-.036.028.097.097 0 00-.013.046V52.067c0 .026.013.048.032.062s.044.018.069.009l3.267-1.163 3.267-1.163c.015-.005.028-.015.036-.028s.014-.028.014-.044V37.999l.001-6.377c-.001 0 0 0 0 0z"/><path class="st0" d="M23.949 29.976l13-4.625 13-4.625c.015-.005.028-.015.036-.028s.015-.028.015-.044V8.056a.077.077 0 00-.032-.062.076.076 0 00-.069-.009l-13 4.625-13 4.625-6.5 2.313-6.5 2.313a.067.067 0 00-.036.028.074.074 0 00-.014.044V60.045c0 .026.013.048.032.062a.076.076 0 00.069.009l6.475-2.304 6.475-2.304 6.525-2.322 6.525-2.322 6.5-2.313 6.5-2.313c.015-.005.028-.015.036-.028s.014-.025.014-.041V27.193a.077.077 0 00-.032-.062.076.076 0 00-.069-.009l-6.45 2.295L37 31.711a.067.067 0 00-.036.028.074.074 0 00-.014.044v6.272a.077.077 0 01-.05.072l-6.45 2.295L24 42.715a.075.075 0 01-.101-.071V30.046c0-.016.005-.031.014-.044a.08.08 0 01.036-.026z"/></svg>
|
180 |
+
<?php echo esc_html( get_admin_page_title() ); ?>
|
181 |
+
</h1>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
182 |
</div>
|
183 |
|
184 |
<?php generateblocks_dashboard_navigation(); ?>
|
194 |
function generateblocks_do_dashboard() {
|
195 |
?>
|
196 |
<div class="wrap gblocks-dashboard-wrap">
|
|
|
|
|
197 |
<div class="gblocks-dashboard-intro-content">
|
198 |
<?php esc_html_e( 'A small collection of lightweight WordPress blocks that can accomplish nearly anything.', 'generateblocks' ); ?>
|
199 |
|
212 |
|
213 |
<h3><?php esc_html_e( 'Container', 'generateblocks' ); ?></h3>
|
214 |
<p><?php esc_html_e( 'Organize your content into rows and sections.', 'generateblocks' ); ?></p>
|
215 |
+
|
216 |
+
<div class="gblocks-block-learn-more">
|
217 |
+
<a class="button" href="https://docs.generateblocks.com/collection/container/" target="_blank" rel="noreferrer noopener"><?php esc_html_e( 'Container Documentation', 'generateblocks' ); ?></a>
|
218 |
+
</div>
|
219 |
</div>
|
220 |
|
221 |
<div class="gblocks-block">
|
225 |
|
226 |
<h3><?php esc_html_e( 'Grid', 'generateblocks' ); ?></h3>
|
227 |
<p><?php esc_html_e( 'Create advanced layouts with flexible grids.', 'generateblocks' ); ?></p>
|
228 |
+
|
229 |
+
<div class="gblocks-block-learn-more">
|
230 |
+
<a class="button" href="https://docs.generateblocks.com/collection/grid/" target="_blank" rel="noreferrer noopener"><?php esc_html_e( 'Grid Documentation', 'generateblocks' ); ?></a>
|
231 |
+
</div>
|
232 |
</div>
|
233 |
|
234 |
<div class="gblocks-block">
|
238 |
|
239 |
<h3><?php esc_html_e( 'Headline', 'generateblocks' ); ?></h3>
|
240 |
<p><?php esc_html_e( 'Craft text-rich content with advanced typography.', 'generateblocks' ); ?></p>
|
241 |
+
|
242 |
+
<div class="gblocks-block-learn-more">
|
243 |
+
<a class="button" href="https://docs.generateblocks.com/collection/headline/" target="_blank" rel="noreferrer noopener"><?php esc_html_e( 'Headline Documentation', 'generateblocks' ); ?></a>
|
244 |
+
</div>
|
245 |
</div>
|
246 |
|
247 |
<div class="gblocks-block">
|
251 |
|
252 |
<h3><?php esc_html_e( 'Buttons', 'generateblocks' ); ?></h3>
|
253 |
<p><?php esc_html_e( 'Drive conversions with beautiful buttons.', 'generateblocks' ); ?></p>
|
|
|
|
|
254 |
|
255 |
+
<div class="gblocks-block-learn-more">
|
256 |
+
<a class="button" href="https://docs.generateblocks.com/collection/buttons/" target="_blank" rel="noreferrer noopener"><?php esc_html_e( 'Buttons Documentation', 'generateblocks' ); ?></a>
|
257 |
+
</div>
|
258 |
+
</div>
|
259 |
</div>
|
260 |
|
261 |
<div class="gblocks-generatepress">
|
includes/generate-css.php
CHANGED
@@ -242,11 +242,19 @@ function generateblocks_get_dynamic_css( $content = '' ) {
|
|
242 |
$settings['bgOptions']['selector'] = 'element';
|
243 |
}
|
244 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
245 |
$backgroundImageValue = generateblocks_get_background_image_css( 'image', $settings );
|
246 |
$gradientValue = generateblocks_get_background_image_css( 'gradient', $settings );
|
247 |
$hasBgImage = $settings['bgImage'];
|
248 |
|
249 |
-
$css->set_selector( '.gb-container
|
250 |
$css->add_property( 'font-family', $fontFamily );
|
251 |
$css->add_property( 'font-size', $settings['fontSize'], $settings['fontSizeUnit'] );
|
252 |
$css->add_property( 'font-weight', $settings['fontWeight'] );
|
@@ -254,9 +262,11 @@ function generateblocks_get_dynamic_css( $content = '' ) {
|
|
254 |
$css->add_property( 'margin', generateblocks_get_shorthand_css( $settings['marginTop'], $settings['marginRight'], $settings['marginBottom'], $settings['marginLeft'], $settings['marginUnit'] ) );
|
255 |
|
256 |
if ( 'contained' === $settings['outerContainer'] && ! $settings['isGrid'] ) {
|
257 |
-
|
258 |
-
|
259 |
-
|
|
|
|
|
260 |
}
|
261 |
|
262 |
$css->add_property( 'background-color', generateblocks_hex2rgba( $settings['backgroundColor'], $settings['backgroundColorOpacity'] ) );
|
@@ -315,7 +325,9 @@ function generateblocks_get_dynamic_css( $content = '' ) {
|
|
315 |
|
316 |
$css->add_property( 'text-align', $settings['alignment'] );
|
317 |
|
318 |
-
$
|
|
|
|
|
319 |
|
320 |
if ( $hasBgImage && 'pseudo-element' === $settings['bgOptions']['selector'] ) {
|
321 |
$css->add_property( 'content', '""' );
|
@@ -331,14 +343,19 @@ function generateblocks_get_dynamic_css( $content = '' ) {
|
|
331 |
$css->add_property( 'bottom', '0' );
|
332 |
$css->add_property( 'left', '0' );
|
333 |
$css->add_property( 'transition', 'inherit' );
|
|
|
334 |
|
335 |
if ( isset( $settings['bgOptions']['opacity'] ) && 1 !== $settings['bgOptions']['opacity'] ) {
|
336 |
$css->add_property( 'opacity', $settings['bgOptions']['opacity'] );
|
337 |
}
|
|
|
|
|
|
|
|
|
338 |
}
|
339 |
|
340 |
if ( $settings['gradient'] && 'pseudo-element' === $settings['gradientSelector'] ) {
|
341 |
-
$css->set_selector( '.gb-container
|
342 |
$css->add_property( 'content', '""' );
|
343 |
$css->add_property( 'background-image', $gradientValue );
|
344 |
$css->add_property( 'z-index', '0' );
|
@@ -347,21 +364,21 @@ function generateblocks_get_dynamic_css( $content = '' ) {
|
|
347 |
$css->add_property( 'right', '0' );
|
348 |
$css->add_property( 'bottom', '0' );
|
349 |
$css->add_property( 'left', '0' );
|
350 |
-
}
|
351 |
-
|
352 |
-
$innerZIndex = $settings['innerZindex'];
|
353 |
|
354 |
-
|
355 |
-
|
|
|
356 |
}
|
357 |
|
358 |
-
$css->set_selector( '.gb-container
|
359 |
$css->add_property( 'padding', generateblocks_get_shorthand_css( $settings['paddingTop'], $settings['paddingRight'], $settings['paddingBottom'], $settings['paddingLeft'], $settings['paddingUnit'] ) );
|
360 |
|
361 |
if ( 'contained' === $settings['innerContainer'] && ! $settings['isGrid'] ) {
|
362 |
-
|
363 |
-
|
364 |
-
|
|
|
|
|
365 |
}
|
366 |
|
367 |
if ( $usingMinHeightFlex ) {
|
@@ -375,10 +392,10 @@ function generateblocks_get_dynamic_css( $content = '' ) {
|
|
375 |
$css->add_property( 'position', 'relative' );
|
376 |
}
|
377 |
|
378 |
-
$css->set_selector( '.gb-container
|
379 |
$css->add_property( 'color', $settings['linkColor'] );
|
380 |
|
381 |
-
$css->set_selector( '.gb-container
|
382 |
$css->add_property( 'color', $settings['linkColorHover'] );
|
383 |
|
384 |
if ( $settings['isGrid'] ) {
|
@@ -458,7 +475,7 @@ function generateblocks_get_dynamic_css( $content = '' ) {
|
|
458 |
}
|
459 |
}
|
460 |
|
461 |
-
$tablet_css->set_selector( '.gb-container
|
462 |
$tablet_css->add_property( 'font-size', $settings['fontSizeTablet'], $settings['fontSizeUnit'] );
|
463 |
$tablet_css->add_property( 'margin', array( $settings['marginTopTablet'], $settings['marginRightTablet'], $settings['marginBottomTablet'], $settings['marginLeftTablet'] ), $settings['marginUnit'] );
|
464 |
$tablet_css->add_property( 'border-radius', array( $settings['borderRadiusTopLeftTablet'], $settings['borderRadiusTopRightTablet'], $settings['borderRadiusBottomRightTablet'], $settings['borderRadiusBottomLeftTablet'] ), $settings['borderRadiusUnit'] );
|
@@ -485,7 +502,7 @@ function generateblocks_get_dynamic_css( $content = '' ) {
|
|
485 |
|
486 |
$tablet_css->add_property( 'text-align', $settings['alignmentTablet'] );
|
487 |
|
488 |
-
$tablet_css->set_selector( '.gb-container
|
489 |
$tablet_css->add_property( 'padding', array( $settings['paddingTopTablet'], $settings['paddingRightTablet'], $settings['paddingBottomTablet'], $settings['paddingLeftTablet'] ), $settings['paddingUnit'] );
|
490 |
|
491 |
$usingMinHeightInnerWidthBoxSizing = false;
|
@@ -540,7 +557,7 @@ function generateblocks_get_dynamic_css( $content = '' ) {
|
|
540 |
}
|
541 |
}
|
542 |
|
543 |
-
$mobile_css->set_selector( '.gb-container
|
544 |
$mobile_css->add_property( 'font-size', $settings['fontSizeMobile'], $settings['fontSizeUnit'] );
|
545 |
$mobile_css->add_property( 'margin', array( $settings['marginTopMobile'], $settings['marginRightMobile'], $settings['marginBottomMobile'], $settings['marginLeftMobile'] ), $settings['marginUnit'] );
|
546 |
$mobile_css->add_property( 'border-radius', array( $settings['borderRadiusTopLeftMobile'], $settings['borderRadiusTopRightMobile'], $settings['borderRadiusBottomRightMobile'], $settings['borderRadiusBottomLeftMobile'] ), $settings['borderRadiusUnit'] );
|
@@ -567,7 +584,7 @@ function generateblocks_get_dynamic_css( $content = '' ) {
|
|
567 |
|
568 |
$mobile_css->add_property( 'text-align', $settings['alignmentMobile'] );
|
569 |
|
570 |
-
$mobile_css->set_selector( '.gb-container
|
571 |
$mobile_css->add_property( 'padding', array( $settings['paddingTopMobile'], $settings['paddingRightMobile'], $settings['paddingBottomMobile'], $settings['paddingLeftMobile'] ), $settings['paddingUnit'] );
|
572 |
|
573 |
if ( ! $settings['isGrid'] ) {
|
@@ -621,11 +638,11 @@ function generateblocks_get_dynamic_css( $content = '' ) {
|
|
621 |
|
622 |
if ( $hasBgImage && 'fixed' === $settings['bgOptions']['attachment'] ) {
|
623 |
if ( 'element' === $settings['bgOptions']['selector'] ) {
|
624 |
-
$mobile_css->set_selector( '.gb-container
|
625 |
}
|
626 |
|
627 |
if ( 'pseudo-element' === $settings['bgOptions']['selector'] ) {
|
628 |
-
$mobile_css->set_selector( '.gb-container
|
629 |
}
|
630 |
|
631 |
$mobile_css->add_property( 'background-attachment', 'initial' );
|
@@ -1078,7 +1095,11 @@ function generateblocks_get_dynamic_css( $content = '' ) {
|
|
1078 |
|
1079 |
$id = $atts['uniqueId'];
|
1080 |
|
1081 |
-
$selector =
|
|
|
|
|
|
|
|
|
1082 |
|
1083 |
// Back-compatibility for when icon held a value.
|
1084 |
if ( $settings['icon'] ) {
|
242 |
$settings['bgOptions']['selector'] = 'element';
|
243 |
}
|
244 |
|
245 |
+
$containerWidth = $settings['containerWidth'];
|
246 |
+
|
247 |
+
if ( isset( $settings['useGlobalStyle'] ) && $settings['useGlobalStyle'] ) {
|
248 |
+
if ( (string) $containerWidth === (string) $defaults['container']['containerWidth'] ) {
|
249 |
+
$containerWidth = '';
|
250 |
+
}
|
251 |
+
}
|
252 |
+
|
253 |
$backgroundImageValue = generateblocks_get_background_image_css( 'image', $settings );
|
254 |
$gradientValue = generateblocks_get_background_image_css( 'gradient', $settings );
|
255 |
$hasBgImage = $settings['bgImage'];
|
256 |
|
257 |
+
$css->set_selector( '.gb-container-' . $id );
|
258 |
$css->add_property( 'font-family', $fontFamily );
|
259 |
$css->add_property( 'font-size', $settings['fontSize'], $settings['fontSizeUnit'] );
|
260 |
$css->add_property( 'font-weight', $settings['fontWeight'] );
|
262 |
$css->add_property( 'margin', generateblocks_get_shorthand_css( $settings['marginTop'], $settings['marginRight'], $settings['marginBottom'], $settings['marginLeft'], $settings['marginUnit'] ) );
|
263 |
|
264 |
if ( 'contained' === $settings['outerContainer'] && ! $settings['isGrid'] ) {
|
265 |
+
if ( ! empty( $containerWidth ) ) {
|
266 |
+
$css->add_property( 'max-width', absint( $containerWidth ), 'px' );
|
267 |
+
$css->add_property( 'margin-left', 'auto' );
|
268 |
+
$css->add_property( 'margin-right', 'auto' );
|
269 |
+
}
|
270 |
}
|
271 |
|
272 |
$css->add_property( 'background-color', generateblocks_hex2rgba( $settings['backgroundColor'], $settings['backgroundColorOpacity'] ) );
|
325 |
|
326 |
$css->add_property( 'text-align', $settings['alignment'] );
|
327 |
|
328 |
+
$innerZIndex = $settings['innerZindex'];
|
329 |
+
|
330 |
+
$css->set_selector( '.gb-container-' . $id . ':before' );
|
331 |
|
332 |
if ( $hasBgImage && 'pseudo-element' === $settings['bgOptions']['selector'] ) {
|
333 |
$css->add_property( 'content', '""' );
|
343 |
$css->add_property( 'bottom', '0' );
|
344 |
$css->add_property( 'left', '0' );
|
345 |
$css->add_property( 'transition', 'inherit' );
|
346 |
+
$css->add_property( 'border-radius', generateblocks_get_shorthand_css( $settings['borderRadiusTopLeft'], $settings['borderRadiusTopRight'], $settings['borderRadiusBottomRight'], $settings['borderRadiusBottomLeft'], $settings['borderRadiusUnit'] ) );
|
347 |
|
348 |
if ( isset( $settings['bgOptions']['opacity'] ) && 1 !== $settings['bgOptions']['opacity'] ) {
|
349 |
$css->add_property( 'opacity', $settings['bgOptions']['opacity'] );
|
350 |
}
|
351 |
+
|
352 |
+
if ( ! $innerZIndex ) {
|
353 |
+
$innerZIndex = 1;
|
354 |
+
}
|
355 |
}
|
356 |
|
357 |
if ( $settings['gradient'] && 'pseudo-element' === $settings['gradientSelector'] ) {
|
358 |
+
$css->set_selector( '.gb-container-' . $id . ':after' );
|
359 |
$css->add_property( 'content', '""' );
|
360 |
$css->add_property( 'background-image', $gradientValue );
|
361 |
$css->add_property( 'z-index', '0' );
|
364 |
$css->add_property( 'right', '0' );
|
365 |
$css->add_property( 'bottom', '0' );
|
366 |
$css->add_property( 'left', '0' );
|
|
|
|
|
|
|
367 |
|
368 |
+
if ( ! $innerZIndex ) {
|
369 |
+
$innerZIndex = 1;
|
370 |
+
}
|
371 |
}
|
372 |
|
373 |
+
$css->set_selector( '.gb-container-' . $id . ' > .gb-inside-container' );
|
374 |
$css->add_property( 'padding', generateblocks_get_shorthand_css( $settings['paddingTop'], $settings['paddingRight'], $settings['paddingBottom'], $settings['paddingLeft'], $settings['paddingUnit'] ) );
|
375 |
|
376 |
if ( 'contained' === $settings['innerContainer'] && ! $settings['isGrid'] ) {
|
377 |
+
if ( ! empty( $containerWidth ) ) {
|
378 |
+
$css->add_property( 'max-width', absint( $containerWidth ), 'px' );
|
379 |
+
$css->add_property( 'margin-left', 'auto' );
|
380 |
+
$css->add_property( 'margin-right', 'auto' );
|
381 |
+
}
|
382 |
}
|
383 |
|
384 |
if ( $usingMinHeightFlex ) {
|
392 |
$css->add_property( 'position', 'relative' );
|
393 |
}
|
394 |
|
395 |
+
$css->set_selector( '.gb-container-' . $id . ' a, .gb-container-' . $id . ' a:visited' );
|
396 |
$css->add_property( 'color', $settings['linkColor'] );
|
397 |
|
398 |
+
$css->set_selector( '.gb-container-' . $id . ' a:hover' );
|
399 |
$css->add_property( 'color', $settings['linkColorHover'] );
|
400 |
|
401 |
if ( $settings['isGrid'] ) {
|
475 |
}
|
476 |
}
|
477 |
|
478 |
+
$tablet_css->set_selector( '.gb-container-' . $id );
|
479 |
$tablet_css->add_property( 'font-size', $settings['fontSizeTablet'], $settings['fontSizeUnit'] );
|
480 |
$tablet_css->add_property( 'margin', array( $settings['marginTopTablet'], $settings['marginRightTablet'], $settings['marginBottomTablet'], $settings['marginLeftTablet'] ), $settings['marginUnit'] );
|
481 |
$tablet_css->add_property( 'border-radius', array( $settings['borderRadiusTopLeftTablet'], $settings['borderRadiusTopRightTablet'], $settings['borderRadiusBottomRightTablet'], $settings['borderRadiusBottomLeftTablet'] ), $settings['borderRadiusUnit'] );
|
502 |
|
503 |
$tablet_css->add_property( 'text-align', $settings['alignmentTablet'] );
|
504 |
|
505 |
+
$tablet_css->set_selector( '.gb-container-' . $id . ' > .gb-inside-container' );
|
506 |
$tablet_css->add_property( 'padding', array( $settings['paddingTopTablet'], $settings['paddingRightTablet'], $settings['paddingBottomTablet'], $settings['paddingLeftTablet'] ), $settings['paddingUnit'] );
|
507 |
|
508 |
$usingMinHeightInnerWidthBoxSizing = false;
|
557 |
}
|
558 |
}
|
559 |
|
560 |
+
$mobile_css->set_selector( '.gb-container-' . $id );
|
561 |
$mobile_css->add_property( 'font-size', $settings['fontSizeMobile'], $settings['fontSizeUnit'] );
|
562 |
$mobile_css->add_property( 'margin', array( $settings['marginTopMobile'], $settings['marginRightMobile'], $settings['marginBottomMobile'], $settings['marginLeftMobile'] ), $settings['marginUnit'] );
|
563 |
$mobile_css->add_property( 'border-radius', array( $settings['borderRadiusTopLeftMobile'], $settings['borderRadiusTopRightMobile'], $settings['borderRadiusBottomRightMobile'], $settings['borderRadiusBottomLeftMobile'] ), $settings['borderRadiusUnit'] );
|
584 |
|
585 |
$mobile_css->add_property( 'text-align', $settings['alignmentMobile'] );
|
586 |
|
587 |
+
$mobile_css->set_selector( '.gb-container-' . $id . ' > .gb-inside-container' );
|
588 |
$mobile_css->add_property( 'padding', array( $settings['paddingTopMobile'], $settings['paddingRightMobile'], $settings['paddingBottomMobile'], $settings['paddingLeftMobile'] ), $settings['paddingUnit'] );
|
589 |
|
590 |
if ( ! $settings['isGrid'] ) {
|
638 |
|
639 |
if ( $hasBgImage && 'fixed' === $settings['bgOptions']['attachment'] ) {
|
640 |
if ( 'element' === $settings['bgOptions']['selector'] ) {
|
641 |
+
$mobile_css->set_selector( '.gb-container-' . $id );
|
642 |
}
|
643 |
|
644 |
if ( 'pseudo-element' === $settings['bgOptions']['selector'] ) {
|
645 |
+
$mobile_css->set_selector( '.gb-container-' . $id . ':before' );
|
646 |
}
|
647 |
|
648 |
$mobile_css->add_property( 'background-attachment', 'initial' );
|
1095 |
|
1096 |
$id = $atts['uniqueId'];
|
1097 |
|
1098 |
+
$selector = '.gb-headline-' . $id;
|
1099 |
+
|
1100 |
+
if ( apply_filters( 'generateblocks_headline_selector_tagname', true, $atts ) ) {
|
1101 |
+
$selector = $settings['element'] . $selector;
|
1102 |
+
}
|
1103 |
|
1104 |
// Back-compatibility for when icon held a value.
|
1105 |
if ( $settings['icon'] ) {
|
plugin.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Description: A small collection of lightweight WordPress blocks that can accomplish nearly anything.
|
6 |
* Author: Tom Usborne
|
7 |
* Author URI: https://tomusborne.com
|
8 |
-
* Version: 1.
|
9 |
* Requires at least: 5.4
|
10 |
* Requires PHP: 5.6
|
11 |
* License: GPL2+
|
@@ -19,7 +19,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
19 |
exit; // Exit if accessed directly.
|
20 |
}
|
21 |
|
22 |
-
define( 'GENERATEBLOCKS_VERSION', '1.
|
23 |
define( 'GENERATEBLOCKS_DIR', plugin_dir_path( __FILE__ ) );
|
24 |
define( 'GENERATEBLOCKS_DIR_URL', plugin_dir_url( __FILE__ ) );
|
25 |
|
5 |
* Description: A small collection of lightweight WordPress blocks that can accomplish nearly anything.
|
6 |
* Author: Tom Usborne
|
7 |
* Author URI: https://tomusborne.com
|
8 |
+
* Version: 1.3.0
|
9 |
* Requires at least: 5.4
|
10 |
* Requires PHP: 5.6
|
11 |
* License: GPL2+
|
19 |
exit; // Exit if accessed directly.
|
20 |
}
|
21 |
|
22 |
+
define( 'GENERATEBLOCKS_VERSION', '1.3.0' );
|
23 |
define( 'GENERATEBLOCKS_DIR', plugin_dir_path( __FILE__ ) );
|
24 |
define( 'GENERATEBLOCKS_DIR_URL', plugin_dir_url( __FILE__ ) );
|
25 |
|
readme.txt
CHANGED
@@ -3,9 +3,9 @@ Contributors: edge22
|
|
3 |
Donate link: https://generateblocks.com
|
4 |
Tags: blocks, gutenberg, container, headline, grid, columns, page builder, wysiwyg, block editor
|
5 |
Requires at least: 5.4
|
6 |
-
Tested up to: 5.
|
7 |
Requires PHP: 5.6
|
8 |
-
Stable tag: 1.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -75,6 +75,31 @@ GenerateBlocks was built to work hand-in-hand with [GeneratePress](https://gener
|
|
75 |
|
76 |
== Changelog ==
|
77 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
78 |
= 1.2.0 =
|
79 |
* Markup change: Remove headline-wrapper element from Headlines with icons
|
80 |
* Markup change: Change button-text class to gb-button-text in Button block
|
3 |
Donate link: https://generateblocks.com
|
4 |
Tags: blocks, gutenberg, container, headline, grid, columns, page builder, wysiwyg, block editor
|
5 |
Requires at least: 5.4
|
6 |
+
Tested up to: 5.6
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 1.3.0
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
75 |
|
76 |
== Changelog ==
|
77 |
|
78 |
+
= 1.3.0 =
|
79 |
+
* New: Add generateblocks.editor.cssAttrs filter
|
80 |
+
* New: Add generateblocks_headline_selector_tagname filter
|
81 |
+
* New: Add generateblocks.editor.panelContents filter
|
82 |
+
* New: Add Add generateblocks.frontend.containerTagName filter
|
83 |
+
* New: Add generateblocks.editor.headlineDisableFormatting filter
|
84 |
+
* New: Add generateblocks.editor.beforeHeadlineElement filter
|
85 |
+
* New: Add generateblocks.editor.urlInputMoreOptions filter
|
86 |
+
* New: Admin header
|
87 |
+
* Fix: Fix gradient when no stop value is found
|
88 |
+
* Fix: Translations in the editor
|
89 |
+
* Fix: Force inner container z-index when pseudo in use
|
90 |
+
* Fix: Headline text input when has icon but no text
|
91 |
+
* Tweak: Merge bg image and gradient controls into one tab
|
92 |
+
* Tweak: Prepare for Global Styles in Pro
|
93 |
+
* Tweak: Remove duplicate .gb-container class from CSS
|
94 |
+
* Tweak: Add script translations file for settings JS
|
95 |
+
* Tweak: Hide color picker label element if no label
|
96 |
+
* Tweak: Update domPurify
|
97 |
+
* Tweak: Import WP packages instead of defining them
|
98 |
+
* Tweak: Add border-radius to pseudo background image elements
|
99 |
+
* Tweak: Change Element Tag label to Tag Name
|
100 |
+
* Tweak: Add placeholder to Headline block
|
101 |
+
* Tweak: Remove add grid item button from toolbar when selecting layout
|
102 |
+
|
103 |
= 1.2.0 =
|
104 |
* Markup change: Remove headline-wrapper element from Headlines with icons
|
105 |
* Markup change: Change button-text class to gb-button-text in Button block
|
src/blocks/button-container/block.js
CHANGED
@@ -10,12 +10,17 @@ import deprecated from './deprecated';
|
|
10 |
import blockAttributes from './attributes';
|
11 |
import getIcon from '../../utils/get-icon';
|
12 |
|
13 |
-
|
14 |
-
|
|
|
15 |
|
16 |
-
|
|
|
|
|
|
|
|
|
17 |
InnerBlocks,
|
18 |
-
}
|
19 |
|
20 |
/**
|
21 |
* Register our Button Container block.
|
10 |
import blockAttributes from './attributes';
|
11 |
import getIcon from '../../utils/get-icon';
|
12 |
|
13 |
+
import {
|
14 |
+
__,
|
15 |
+
} from '@wordpress/i18n';
|
16 |
|
17 |
+
import {
|
18 |
+
registerBlockType,
|
19 |
+
} from '@wordpress/blocks';
|
20 |
+
|
21 |
+
import {
|
22 |
InnerBlocks,
|
23 |
+
} from '@wordpress/block-editor';
|
24 |
|
25 |
/**
|
26 |
* Register our Button Container block.
|
src/blocks/button-container/css/desktop.js
CHANGED
@@ -1,7 +1,12 @@
|
|
1 |
import buildCSS from '../../../utils/build-css';
|
2 |
|
3 |
-
|
4 |
-
|
|
|
|
|
|
|
|
|
|
|
5 |
|
6 |
export default class DesktopCSS extends Component {
|
7 |
render() {
|
1 |
import buildCSS from '../../../utils/build-css';
|
2 |
|
3 |
+
import {
|
4 |
+
Component,
|
5 |
+
} from '@wordpress/element';
|
6 |
+
|
7 |
+
import {
|
8 |
+
applyFilters,
|
9 |
+
} from '@wordpress/hooks';
|
10 |
|
11 |
export default class DesktopCSS extends Component {
|
12 |
render() {
|
src/blocks/button-container/css/main.js
CHANGED
@@ -2,14 +2,17 @@ import buildCSS from '../../../utils/build-css';
|
|
2 |
import shorthandCSS from '../../../utils/shorthand-css';
|
3 |
import flexboxAlignment from '../../../utils/flexbox-alignment';
|
4 |
|
5 |
-
|
6 |
-
|
|
|
|
|
|
|
|
|
|
|
7 |
|
8 |
export default class MainCSS extends Component {
|
9 |
render() {
|
10 |
-
const
|
11 |
-
attributes,
|
12 |
-
} = this.props;
|
13 |
|
14 |
const {
|
15 |
uniqueId,
|
2 |
import shorthandCSS from '../../../utils/shorthand-css';
|
3 |
import flexboxAlignment from '../../../utils/flexbox-alignment';
|
4 |
|
5 |
+
import {
|
6 |
+
Component,
|
7 |
+
} from '@wordpress/element';
|
8 |
+
|
9 |
+
import {
|
10 |
+
applyFilters,
|
11 |
+
} from '@wordpress/hooks';
|
12 |
|
13 |
export default class MainCSS extends Component {
|
14 |
render() {
|
15 |
+
const attributes = applyFilters( 'generateblocks.editor.cssAttrs', this.props.attributes, this.props );
|
|
|
|
|
16 |
|
17 |
const {
|
18 |
uniqueId,
|
src/blocks/button-container/css/mobile.js
CHANGED
@@ -2,14 +2,17 @@ import buildCSS from '../../../utils/build-css';
|
|
2 |
import valueWithUnit from '../../../utils/value-with-unit';
|
3 |
import flexboxAlignment from '../../../utils/flexbox-alignment';
|
4 |
|
5 |
-
|
6 |
-
|
|
|
|
|
|
|
|
|
|
|
7 |
|
8 |
export default class MobileCSS extends Component {
|
9 |
render() {
|
10 |
-
const
|
11 |
-
attributes,
|
12 |
-
} = this.props;
|
13 |
|
14 |
const {
|
15 |
uniqueId,
|
2 |
import valueWithUnit from '../../../utils/value-with-unit';
|
3 |
import flexboxAlignment from '../../../utils/flexbox-alignment';
|
4 |
|
5 |
+
import {
|
6 |
+
Component,
|
7 |
+
} from '@wordpress/element';
|
8 |
+
|
9 |
+
import {
|
10 |
+
applyFilters,
|
11 |
+
} from '@wordpress/hooks';
|
12 |
|
13 |
export default class MobileCSS extends Component {
|
14 |
render() {
|
15 |
+
const attributes = applyFilters( 'generateblocks.editor.cssAttrs', this.props.attributes, this.props );
|
|
|
|
|
16 |
|
17 |
const {
|
18 |
uniqueId,
|
src/blocks/button-container/css/tablet-only.js
CHANGED
@@ -1,7 +1,12 @@
|
|
1 |
import buildCSS from '../../../utils/build-css';
|
2 |
|
3 |
-
|
4 |
-
|
|
|
|
|
|
|
|
|
|
|
5 |
|
6 |
export default class TabletOnlyCSS extends Component {
|
7 |
render() {
|
1 |
import buildCSS from '../../../utils/build-css';
|
2 |
|
3 |
+
import {
|
4 |
+
Component,
|
5 |
+
} from '@wordpress/element';
|
6 |
+
|
7 |
+
import {
|
8 |
+
applyFilters,
|
9 |
+
} from '@wordpress/hooks';
|
10 |
|
11 |
export default class TabletOnlyCSS extends Component {
|
12 |
render() {
|
src/blocks/button-container/css/tablet.js
CHANGED
@@ -2,14 +2,17 @@ import buildCSS from '../../../utils/build-css';
|
|
2 |
import valueWithUnit from '../../../utils/value-with-unit';
|
3 |
import flexboxAlignment from '../../../utils/flexbox-alignment';
|
4 |
|
5 |
-
|
6 |
-
|
|
|
|
|
|
|
|
|
|
|
7 |
|
8 |
export default class TabletCSS extends Component {
|
9 |
render() {
|
10 |
-
const
|
11 |
-
attributes,
|
12 |
-
} = this.props;
|
13 |
|
14 |
const {
|
15 |
uniqueId,
|
2 |
import valueWithUnit from '../../../utils/value-with-unit';
|
3 |
import flexboxAlignment from '../../../utils/flexbox-alignment';
|
4 |
|
5 |
+
import {
|
6 |
+
Component,
|
7 |
+
} from '@wordpress/element';
|
8 |
+
|
9 |
+
import {
|
10 |
+
applyFilters,
|
11 |
+
} from '@wordpress/hooks';
|
12 |
|
13 |
export default class TabletCSS extends Component {
|
14 |
render() {
|
15 |
+
const attributes = applyFilters( 'generateblocks.editor.cssAttrs', this.props.attributes, this.props );
|
|
|
|
|
16 |
|
17 |
const {
|
18 |
uniqueId,
|
src/blocks/button-container/deprecated.js
CHANGED
@@ -4,13 +4,13 @@
|
|
4 |
import classnames from 'classnames';
|
5 |
import blockAttributes from './attributes';
|
6 |
|
7 |
-
|
8 |
InnerBlocks,
|
9 |
-
}
|
10 |
|
11 |
-
|
12 |
applyFilters,
|
13 |
-
}
|
14 |
|
15 |
const deprecated = [
|
16 |
// v1 of container block. Deprecated the gb-grid-column wrapper in save component.
|
4 |
import classnames from 'classnames';
|
5 |
import blockAttributes from './attributes';
|
6 |
|
7 |
+
import {
|
8 |
InnerBlocks,
|
9 |
+
} from '@wordpress/block-editor';
|
10 |
|
11 |
+
import {
|
12 |
applyFilters,
|
13 |
+
} from '@wordpress/hooks';
|
14 |
|
15 |
const deprecated = [
|
16 |
// v1 of container block. Deprecated the gb-grid-column wrapper in save component.
|
src/blocks/button-container/edit.js
CHANGED
@@ -13,46 +13,49 @@ import TabletOnlyCSS from './css/tablet-only.js';
|
|
13 |
import MobileCSS from './css/mobile.js';
|
14 |
import PanelArea from '../../components/panel-area/';
|
15 |
|
16 |
-
|
17 |
-
|
|
|
|
|
|
|
18 |
Tooltip,
|
19 |
Button,
|
20 |
ToggleControl,
|
21 |
ToolbarGroup,
|
22 |
ToolbarButton,
|
23 |
TextControl,
|
24 |
-
}
|
25 |
|
26 |
-
|
27 |
Fragment,
|
28 |
Component,
|
29 |
-
}
|
30 |
|
31 |
-
|
32 |
InspectorControls,
|
33 |
InnerBlocks,
|
34 |
AlignmentToolbar,
|
35 |
BlockControls,
|
36 |
InspectorAdvancedControls,
|
37 |
-
}
|
38 |
|
39 |
-
|
40 |
createBlock,
|
41 |
cloneBlock,
|
42 |
-
}
|
43 |
|
44 |
-
|
45 |
applyFilters,
|
46 |
-
}
|
47 |
|
48 |
-
|
49 |
withSelect,
|
50 |
withDispatch,
|
51 |
-
}
|
52 |
|
53 |
-
|
54 |
compose,
|
55 |
-
}
|
56 |
|
57 |
/**
|
58 |
* Regular expression matching invalid anchor characters for replacement.
|
13 |
import MobileCSS from './css/mobile.js';
|
14 |
import PanelArea from '../../components/panel-area/';
|
15 |
|
16 |
+
import {
|
17 |
+
__,
|
18 |
+
} from '@wordpress/i18n';
|
19 |
+
|
20 |
+
import {
|
21 |
Tooltip,
|
22 |
Button,
|
23 |
ToggleControl,
|
24 |
ToolbarGroup,
|
25 |
ToolbarButton,
|
26 |
TextControl,
|
27 |
+
} from '@wordpress/components';
|
28 |
|
29 |
+
import {
|
30 |
Fragment,
|
31 |
Component,
|
32 |
+
} from '@wordpress/element';
|
33 |
|
34 |
+
import {
|
35 |
InspectorControls,
|
36 |
InnerBlocks,
|
37 |
AlignmentToolbar,
|
38 |
BlockControls,
|
39 |
InspectorAdvancedControls,
|
40 |
+
} from '@wordpress/block-editor';
|
41 |
|
42 |
+
import {
|
43 |
createBlock,
|
44 |
cloneBlock,
|
45 |
+
} from '@wordpress/blocks';
|
46 |
|
47 |
+
import {
|
48 |
applyFilters,
|
49 |
+
} from '@wordpress/hooks';
|
50 |
|
51 |
+
import {
|
52 |
withSelect,
|
53 |
withDispatch,
|
54 |
+
} from '@wordpress/data';
|
55 |
|
56 |
+
import {
|
57 |
compose,
|
58 |
+
} from '@wordpress/compose';
|
59 |
|
60 |
/**
|
61 |
* Regular expression matching invalid anchor characters for replacement.
|
src/blocks/button/block.js
CHANGED
@@ -10,8 +10,13 @@ import deprecated from './deprecated';
|
|
10 |
import blockAttributes from './attributes';
|
11 |
import getIcon from '../../utils/get-icon';
|
12 |
|
13 |
-
|
14 |
-
|
|
|
|
|
|
|
|
|
|
|
15 |
|
16 |
/**
|
17 |
* Register our Button block.
|
10 |
import blockAttributes from './attributes';
|
11 |
import getIcon from '../../utils/get-icon';
|
12 |
|
13 |
+
import {
|
14 |
+
__,
|
15 |
+
} from '@wordpress/i18n';
|
16 |
+
|
17 |
+
import {
|
18 |
+
registerBlockType,
|
19 |
+
} from '@wordpress/blocks';
|
20 |
|
21 |
/**
|
22 |
* Register our Button block.
|
src/blocks/button/css/desktop.js
CHANGED
@@ -1,8 +1,13 @@
|
|
1 |
/* eslint-disable quotes */
|
2 |
import buildCSS from '../../../utils/build-css';
|
3 |
|
4 |
-
|
5 |
-
|
|
|
|
|
|
|
|
|
|
|
6 |
|
7 |
export default class DesktopCSS extends Component {
|
8 |
render() {
|
1 |
/* eslint-disable quotes */
|
2 |
import buildCSS from '../../../utils/build-css';
|
3 |
|
4 |
+
import {
|
5 |
+
Component,
|
6 |
+
} from '@wordpress/element';
|
7 |
+
|
8 |
+
import {
|
9 |
+
applyFilters,
|
10 |
+
} from '@wordpress/hooks';
|
11 |
|
12 |
export default class DesktopCSS extends Component {
|
13 |
render() {
|
src/blocks/button/css/main.js
CHANGED
@@ -4,14 +4,17 @@ import valueWithUnit from '../../../utils/value-with-unit';
|
|
4 |
import shorthandCSS from '../../../utils/shorthand-css';
|
5 |
import hexToRGBA from '../../../utils/hex-to-rgba';
|
6 |
|
7 |
-
|
8 |
-
|
|
|
|
|
|
|
|
|
|
|
9 |
|
10 |
export default class MainCSS extends Component {
|
11 |
render() {
|
12 |
-
const
|
13 |
-
attributes,
|
14 |
-
} = this.props;
|
15 |
|
16 |
const {
|
17 |
url,
|
4 |
import shorthandCSS from '../../../utils/shorthand-css';
|
5 |
import hexToRGBA from '../../../utils/hex-to-rgba';
|
6 |
|
7 |
+
import {
|
8 |
+
Component,
|
9 |
+
} from '@wordpress/element';
|
10 |
+
|
11 |
+
import {
|
12 |
+
applyFilters,
|
13 |
+
} from '@wordpress/hooks';
|
14 |
|
15 |
export default class MainCSS extends Component {
|
16 |
render() {
|
17 |
+
const attributes = applyFilters( 'generateblocks.editor.cssAttrs', this.props.attributes, this.props );
|
|
|
|
|
18 |
|
19 |
const {
|
20 |
url,
|
src/blocks/button/css/mobile.js
CHANGED
@@ -2,14 +2,17 @@
|
|
2 |
import buildCSS from '../../../utils/build-css';
|
3 |
import valueWithUnit from '../../../utils/value-with-unit';
|
4 |
|
5 |
-
|
6 |
-
|
|
|
|
|
|
|
|
|
|
|
7 |
|
8 |
export default class MobileCSS extends Component {
|
9 |
render() {
|
10 |
-
const
|
11 |
-
attributes,
|
12 |
-
} = this.props;
|
13 |
|
14 |
const {
|
15 |
url,
|
2 |
import buildCSS from '../../../utils/build-css';
|
3 |
import valueWithUnit from '../../../utils/value-with-unit';
|
4 |
|
5 |
+
import {
|
6 |
+
Component,
|
7 |
+
} from '@wordpress/element';
|
8 |
+
|
9 |
+
import {
|
10 |
+
applyFilters,
|
11 |
+
} from '@wordpress/hooks';
|
12 |
|
13 |
export default class MobileCSS extends Component {
|
14 |
render() {
|
15 |
+
const attributes = applyFilters( 'generateblocks.editor.cssAttrs', this.props.attributes, this.props );
|
|
|
|
|
16 |
|
17 |
const {
|
18 |
url,
|
src/blocks/button/css/tablet-only.js
CHANGED
@@ -1,8 +1,13 @@
|
|
1 |
/* eslint-disable quotes */
|
2 |
import buildCSS from '../../../utils/build-css';
|
3 |
|
4 |
-
|
5 |
-
|
|
|
|
|
|
|
|
|
|
|
6 |
|
7 |
export default class TabletOnlyCSS extends Component {
|
8 |
render() {
|
1 |
/* eslint-disable quotes */
|
2 |
import buildCSS from '../../../utils/build-css';
|
3 |
|
4 |
+
import {
|
5 |
+
Component,
|
6 |
+
} from '@wordpress/element';
|
7 |
+
|
8 |
+
import {
|
9 |
+
applyFilters,
|
10 |
+
} from '@wordpress/hooks';
|
11 |
|
12 |
export default class TabletOnlyCSS extends Component {
|
13 |
render() {
|
src/blocks/button/css/tablet.js
CHANGED
@@ -2,14 +2,17 @@
|
|
2 |
import buildCSS from '../../../utils/build-css';
|
3 |
import valueWithUnit from '../../../utils/value-with-unit';
|
4 |
|
5 |
-
|
6 |
-
|
|
|
|
|
|
|
|
|
|
|
7 |
|
8 |
export default class TabletCSS extends Component {
|
9 |
render() {
|
10 |
-
const
|
11 |
-
attributes,
|
12 |
-
} = this.props;
|
13 |
|
14 |
const {
|
15 |
url,
|
2 |
import buildCSS from '../../../utils/build-css';
|
3 |
import valueWithUnit from '../../../utils/value-with-unit';
|
4 |
|
5 |
+
import {
|
6 |
+
Component,
|
7 |
+
} from '@wordpress/element';
|
8 |
+
|
9 |
+
import {
|
10 |
+
applyFilters,
|
11 |
+
} from '@wordpress/hooks';
|
12 |
|
13 |
export default class TabletCSS extends Component {
|
14 |
render() {
|
15 |
+
const attributes = applyFilters( 'generateblocks.editor.cssAttrs', this.props.attributes, this.props );
|
|
|
|
|
16 |
|
17 |
const {
|
18 |
url,
|
src/blocks/button/deprecated.js
CHANGED
@@ -5,13 +5,13 @@ import classnames from 'classnames';
|
|
5 |
import blockAttributes from './attributes';
|
6 |
import sanitizeSVG from '../../utils/sanitize-svg';
|
7 |
|
8 |
-
|
9 |
applyFilters,
|
10 |
-
}
|
11 |
|
12 |
-
|
13 |
RichText,
|
14 |
-
}
|
15 |
|
16 |
const deprecated = [
|
17 |
// v1 of button block.
|
5 |
import blockAttributes from './attributes';
|
6 |
import sanitizeSVG from '../../utils/sanitize-svg';
|
7 |
|
8 |
+
import {
|
9 |
applyFilters,
|
10 |
+
} from '@wordpress/hooks';
|
11 |
|
12 |
+
import {
|
13 |
RichText,
|
14 |
+
} from '@wordpress/block-editor';
|
15 |
|
16 |
const deprecated = [
|
17 |
// v1 of button block.
|
src/blocks/button/edit.js
CHANGED
@@ -21,46 +21,46 @@ import MobileCSS from './css/mobile.js';
|
|
21 |
import sanitizeSVG from '../../utils/sanitize-svg';
|
22 |
import Element from '../../components/element';
|
23 |
|
24 |
-
|
25 |
__,
|
26 |
-
}
|
27 |
|
28 |
-
|
29 |
TabPanel,
|
30 |
TextControl,
|
31 |
ToolbarGroup,
|
32 |
ToolbarButton,
|
33 |
Button,
|
34 |
-
}
|
35 |
|
36 |
-
|
37 |
Fragment,
|
38 |
Component,
|
39 |
-
}
|
40 |
|
41 |
-
|
42 |
InspectorControls,
|
43 |
InspectorAdvancedControls,
|
44 |
RichText,
|
45 |
BlockControls,
|
46 |
-
}
|
47 |
|
48 |
-
|
49 |
cloneBlock,
|
50 |
-
}
|
51 |
|
52 |
-
|
53 |
applyFilters,
|
54 |
-
}
|
55 |
|
56 |
-
|
57 |
withSelect,
|
58 |
withDispatch,
|
59 |
-
}
|
60 |
|
61 |
-
|
62 |
compose,
|
63 |
-
}
|
64 |
|
65 |
/**
|
66 |
* Regular expression matching invalid anchor characters for replacement.
|
21 |
import sanitizeSVG from '../../utils/sanitize-svg';
|
22 |
import Element from '../../components/element';
|
23 |
|
24 |
+
import {
|
25 |
__,
|
26 |
+
} from '@wordpress/i18n';
|
27 |
|
28 |
+
import {
|
29 |
TabPanel,
|
30 |
TextControl,
|
31 |
ToolbarGroup,
|
32 |
ToolbarButton,
|
33 |
Button,
|
34 |
+
} from '@wordpress/components';
|
35 |
|
36 |
+
import {
|
37 |
Fragment,
|
38 |
Component,
|
39 |
+
} from '@wordpress/element';
|
40 |
|
41 |
+
import {
|
42 |
InspectorControls,
|
43 |
InspectorAdvancedControls,
|
44 |
RichText,
|
45 |
BlockControls,
|
46 |
+
} from '@wordpress/block-editor';
|
47 |
|
48 |
+
import {
|
49 |
cloneBlock,
|
50 |
+
} from '@wordpress/blocks';
|
51 |
|
52 |
+
import {
|
53 |
applyFilters,
|
54 |
+
} from '@wordpress/hooks';
|
55 |
|
56 |
+
import {
|
57 |
withSelect,
|
58 |
withDispatch,
|
59 |
+
} from '@wordpress/data';
|
60 |
|
61 |
+
import {
|
62 |
compose,
|
63 |
+
} from '@wordpress/compose';
|
64 |
|
65 |
/**
|
66 |
* Regular expression matching invalid anchor characters for replacement.
|
src/blocks/button/save.js
CHANGED
@@ -6,13 +6,13 @@ import classnames from 'classnames';
|
|
6 |
import sanitizeSVG from '../../utils/sanitize-svg';
|
7 |
import Element from '../../components/element';
|
8 |
|
9 |
-
|
10 |
RichText,
|
11 |
-
}
|
12 |
|
13 |
-
|
14 |
applyFilters,
|
15 |
-
}
|
16 |
|
17 |
export default ( { attributes } ) => {
|
18 |
const {
|
6 |
import sanitizeSVG from '../../utils/sanitize-svg';
|
7 |
import Element from '../../components/element';
|
8 |
|
9 |
+
import {
|
10 |
RichText,
|
11 |
+
} from '@wordpress/block-editor';
|
12 |
|
13 |
+
import {
|
14 |
applyFilters,
|
15 |
+
} from '@wordpress/hooks';
|
16 |
|
17 |
export default ( { attributes } ) => {
|
18 |
const {
|
src/blocks/container/block-controls.js
CHANGED
@@ -3,35 +3,35 @@ import getIcon from '../../utils/get-icon';
|
|
3 |
/**
|
4 |
* WordPress Dependencies
|
5 |
*/
|
6 |
-
|
7 |
__,
|
8 |
-
}
|
9 |
|
10 |
-
|
11 |
addFilter,
|
12 |
-
}
|
13 |
|
14 |
-
|
15 |
Fragment,
|
16 |
-
}
|
17 |
|
18 |
-
|
19 |
BlockControls,
|
20 |
BlockAlignmentToolbar,
|
21 |
-
}
|
22 |
|
23 |
-
|
24 |
ToolbarGroup,
|
25 |
ToolbarButton,
|
26 |
-
}
|
27 |
|
28 |
-
|
29 |
createHigherOrderComponent,
|
30 |
-
}
|
31 |
|
32 |
-
|
33 |
cloneBlock,
|
34 |
-
}
|
35 |
|
36 |
const hasWideAlignSupport = generateBlocksInfo.hasWideAlignSupport;
|
37 |
const WIDE_ALIGNMENTS = [ 'wide', 'full' ];
|
3 |
/**
|
4 |
* WordPress Dependencies
|
5 |
*/
|
6 |
+
import {
|
7 |
__,
|
8 |
+
} from '@wordpress/i18n';
|
9 |
|
10 |
+
import {
|
11 |
addFilter,
|
12 |
+
} from '@wordpress/hooks';
|
13 |
|
14 |
+
import {
|
15 |
Fragment,
|
16 |
+
} from '@wordpress/element';
|
17 |
|
18 |
+
import {
|
19 |
BlockControls,
|
20 |
BlockAlignmentToolbar,
|
21 |
+
} from '@wordpress/block-editor';
|
22 |
|
23 |
+
import {
|
24 |
ToolbarGroup,
|
25 |
ToolbarButton,
|
26 |
+
} from '@wordpress/components';
|
27 |
|
28 |
+
import {
|
29 |
createHigherOrderComponent,
|
30 |
+
} from '@wordpress/compose';
|
31 |
|
32 |
+
import {
|
33 |
cloneBlock,
|
34 |
+
} from '@wordpress/blocks';
|
35 |
|
36 |
const hasWideAlignSupport = generateBlocksInfo.hasWideAlignSupport;
|
37 |
const WIDE_ALIGNMENTS = [ 'wide', 'full' ];
|
src/blocks/container/block.js
CHANGED
@@ -10,17 +10,17 @@ import blockAttributes from './attributes';
|
|
10 |
import deprecated from './deprecated';
|
11 |
import getIcon from '../../utils/get-icon';
|
12 |
|
13 |
-
|
14 |
__,
|
15 |
-
}
|
16 |
|
17 |
-
|
18 |
registerBlockType,
|
19 |
-
}
|
20 |
|
21 |
-
|
22 |
InnerBlocks,
|
23 |
-
}
|
24 |
|
25 |
/**
|
26 |
* Register our Container block.
|
10 |
import deprecated from './deprecated';
|
11 |
import getIcon from '../../utils/get-icon';
|
12 |
|
13 |
+
import {
|
14 |
__,
|
15 |
+
} from '@wordpress/i18n';
|
16 |
|
17 |
+
import {
|
18 |
registerBlockType,
|
19 |
+
} from '@wordpress/blocks';
|
20 |
|
21 |
+
import {
|
22 |
InnerBlocks,
|
23 |
+
} from '@wordpress/block-editor';
|
24 |
|
25 |
/**
|
26 |
* Register our Container block.
|
src/blocks/container/css/desktop.js
CHANGED
@@ -1,13 +1,19 @@
|
|
1 |
/* eslint-disable quotes */
|
2 |
import buildCSS from '../../../utils/build-css';
|
3 |
|
4 |
-
|
5 |
-
|
|
|
|
|
|
|
|
|
|
|
6 |
|
7 |
export default class DesktopCSS extends Component {
|
8 |
render() {
|
|
|
|
|
9 |
const {
|
10 |
-
attributes,
|
11 |
clientId,
|
12 |
} = this.props;
|
13 |
|
1 |
/* eslint-disable quotes */
|
2 |
import buildCSS from '../../../utils/build-css';
|
3 |
|
4 |
+
import {
|
5 |
+
Component,
|
6 |
+
} from '@wordpress/element';
|
7 |
+
|
8 |
+
import {
|
9 |
+
applyFilters,
|
10 |
+
} from '@wordpress/hooks';
|
11 |
|
12 |
export default class DesktopCSS extends Component {
|
13 |
render() {
|
14 |
+
const attributes = applyFilters( 'generateblocks.editor.cssAttrs', this.props.attributes, this.props );
|
15 |
+
|
16 |
const {
|
|
|
17 |
clientId,
|
18 |
} = this.props;
|
19 |
|
src/blocks/container/css/main.js
CHANGED
@@ -5,13 +5,19 @@ import hexToRGBA from '../../../utils/hex-to-rgba';
|
|
5 |
import valueWithUnit from '../../../utils/value-with-unit';
|
6 |
import getBackgroundImageCSS from '../../../utils/get-background-image';
|
7 |
|
8 |
-
|
9 |
-
|
|
|
|
|
|
|
|
|
|
|
10 |
|
11 |
export default class MainCSS extends Component {
|
12 |
render() {
|
|
|
|
|
13 |
const {
|
14 |
-
attributes,
|
15 |
clientId,
|
16 |
} = this.props;
|
17 |
|
@@ -85,10 +91,6 @@ export default class MainCSS extends Component {
|
|
85 |
|
86 |
let innerZIndexValue = innerZindex;
|
87 |
|
88 |
-
if ( ! innerZIndexValue && hasBgImage && 'pseudo-element' === bgOptions.selector ) {
|
89 |
-
innerZIndexValue = 1;
|
90 |
-
}
|
91 |
-
|
92 |
let cssObj = [];
|
93 |
cssObj[ '.gb-container-' + uniqueId ] = [ {
|
94 |
'background-color': hexToRGBA( backgroundColor, backgroundColorOpacity ),
|
@@ -139,6 +141,10 @@ export default class MainCSS extends Component {
|
|
139 |
cssObj[ '.gb-container-' + uniqueId + ' .block-list-appender' ] = [ {
|
140 |
'z-index': 10,
|
141 |
} ];
|
|
|
|
|
|
|
|
|
142 |
}
|
143 |
|
144 |
cssObj[ `.editor-styles-wrapper .gb-container-` + uniqueId + ` h1,
|
@@ -193,6 +199,7 @@ export default class MainCSS extends Component {
|
|
193 |
'right': '0', // eslint-disable-line quote-props
|
194 |
'bottom': '0', // eslint-disable-line quote-props
|
195 |
'left': '0', // eslint-disable-line quote-props
|
|
|
196 |
} ];
|
197 |
|
198 |
if ( typeof bgOptions.opacity !== 'undefined' && 1 !== bgOptions.opacity ) {
|
5 |
import valueWithUnit from '../../../utils/value-with-unit';
|
6 |
import getBackgroundImageCSS from '../../../utils/get-background-image';
|
7 |
|
8 |
+
import {
|
9 |
+
Component,
|
10 |
+
} from '@wordpress/element';
|
11 |
+
|
12 |
+
import {
|
13 |
+
applyFilters,
|
14 |
+
} from '@wordpress/hooks';
|
15 |
|
16 |
export default class MainCSS extends Component {
|
17 |
render() {
|
18 |
+
const attributes = applyFilters( 'generateblocks.editor.cssAttrs', this.props.attributes, this.props );
|
19 |
+
|
20 |
const {
|
|
|
21 |
clientId,
|
22 |
} = this.props;
|
23 |
|
91 |
|
92 |
let innerZIndexValue = innerZindex;
|
93 |
|
|
|
|
|
|
|
|
|
94 |
let cssObj = [];
|
95 |
cssObj[ '.gb-container-' + uniqueId ] = [ {
|
96 |
'background-color': hexToRGBA( backgroundColor, backgroundColorOpacity ),
|
141 |
cssObj[ '.gb-container-' + uniqueId + ' .block-list-appender' ] = [ {
|
142 |
'z-index': 10,
|
143 |
} ];
|
144 |
+
|
145 |
+
if ( ! innerZIndexValue ) {
|
146 |
+
innerZIndexValue = 1;
|
147 |
+
}
|
148 |
}
|
149 |
|
150 |
cssObj[ `.editor-styles-wrapper .gb-container-` + uniqueId + ` h1,
|
199 |
'right': '0', // eslint-disable-line quote-props
|
200 |
'bottom': '0', // eslint-disable-line quote-props
|
201 |
'left': '0', // eslint-disable-line quote-props
|
202 |
+
'border-radius': shorthandCSS( borderRadiusTopLeft, borderRadiusTopRight, borderRadiusBottomRight, borderRadiusBottomLeft, borderRadiusUnit ),
|
203 |
} ];
|
204 |
|
205 |
if ( typeof bgOptions.opacity !== 'undefined' && 1 !== bgOptions.opacity ) {
|
src/blocks/container/css/mobile.js
CHANGED
@@ -2,13 +2,19 @@
|
|
2 |
import buildCSS from '../../../utils/build-css';
|
3 |
import valueWithUnit from '../../../utils/value-with-unit';
|
4 |
|
5 |
-
|
6 |
-
|
|
|
|
|
|
|
|
|
|
|
7 |
|
8 |
export default class MobileCSS extends Component {
|
9 |
render() {
|
|
|
|
|
10 |
const {
|
11 |
-
attributes,
|
12 |
clientId,
|
13 |
} = this.props;
|
14 |
|
2 |
import buildCSS from '../../../utils/build-css';
|
3 |
import valueWithUnit from '../../../utils/value-with-unit';
|
4 |
|
5 |
+
import {
|
6 |
+
Component,
|
7 |
+
} from '@wordpress/element';
|
8 |
+
|
9 |
+
import {
|
10 |
+
applyFilters,
|
11 |
+
} from '@wordpress/hooks';
|
12 |
|
13 |
export default class MobileCSS extends Component {
|
14 |
render() {
|
15 |
+
const attributes = applyFilters( 'generateblocks.editor.cssAttrs', this.props.attributes, this.props );
|
16 |
+
|
17 |
const {
|
|
|
18 |
clientId,
|
19 |
} = this.props;
|
20 |
|
src/blocks/container/css/tablet-only.js
CHANGED
@@ -1,13 +1,19 @@
|
|
1 |
/* eslint-disable quotes */
|
2 |
import buildCSS from '../../../utils/build-css';
|
3 |
|
4 |
-
|
5 |
-
|
|
|
|
|
|
|
|
|
|
|
6 |
|
7 |
export default class TabletOnlyCSS extends Component {
|
8 |
render() {
|
|
|
|
|
9 |
const {
|
10 |
-
attributes,
|
11 |
clientId,
|
12 |
} = this.props;
|
13 |
|
1 |
/* eslint-disable quotes */
|
2 |
import buildCSS from '../../../utils/build-css';
|
3 |
|
4 |
+
import {
|
5 |
+
Component,
|
6 |
+
} from '@wordpress/element';
|
7 |
+
|
8 |
+
import {
|
9 |
+
applyFilters,
|
10 |
+
} from '@wordpress/hooks';
|
11 |
|
12 |
export default class TabletOnlyCSS extends Component {
|
13 |
render() {
|
14 |
+
const attributes = applyFilters( 'generateblocks.editor.cssAttrs', this.props.attributes, this.props );
|
15 |
+
|
16 |
const {
|
|
|
17 |
clientId,
|
18 |
} = this.props;
|
19 |
|
src/blocks/container/css/tablet.js
CHANGED
@@ -2,13 +2,19 @@
|
|
2 |
import buildCSS from '../../../utils/build-css';
|
3 |
import valueWithUnit from '../../../utils/value-with-unit';
|
4 |
|
5 |
-
|
6 |
-
|
|
|
|
|
|
|
|
|
|
|
7 |
|
8 |
export default class TabletCSS extends Component {
|
9 |
render() {
|
|
|
|
|
10 |
const {
|
11 |
-
attributes,
|
12 |
clientId,
|
13 |
} = this.props;
|
14 |
|
2 |
import buildCSS from '../../../utils/build-css';
|
3 |
import valueWithUnit from '../../../utils/value-with-unit';
|
4 |
|
5 |
+
import {
|
6 |
+
Component,
|
7 |
+
} from '@wordpress/element';
|
8 |
+
|
9 |
+
import {
|
10 |
+
applyFilters,
|
11 |
+
} from '@wordpress/hooks';
|
12 |
|
13 |
export default class TabletCSS extends Component {
|
14 |
render() {
|
15 |
+
const attributes = applyFilters( 'generateblocks.editor.cssAttrs', this.props.attributes, this.props );
|
16 |
+
|
17 |
const {
|
|
|
18 |
clientId,
|
19 |
} = this.props;
|
20 |
|
src/blocks/container/deprecated.js
CHANGED
@@ -5,13 +5,13 @@ import classnames from 'classnames';
|
|
5 |
import Element from '../../components/element';
|
6 |
import blockAttributes from './attributes';
|
7 |
|
8 |
-
|
9 |
applyFilters,
|
10 |
-
}
|
11 |
|
12 |
-
|
13 |
InnerBlocks,
|
14 |
-
}
|
15 |
|
16 |
const deprecated = [
|
17 |
// v1 of container block. Deprecated the gb-grid-column wrapper in save component.
|
@@ -62,7 +62,7 @@ const deprecated = [
|
|
62 |
return (
|
63 |
<ConditionalWrap
|
64 |
condition={ isGrid }
|
65 |
-
wrap={ children => <div className={ classnames( {
|
66 |
'gb-grid-column': true,
|
67 |
[ `gb-grid-column-${ uniqueId }` ]: true,
|
68 |
} ) }>{ children }</div> }
|
5 |
import Element from '../../components/element';
|
6 |
import blockAttributes from './attributes';
|
7 |
|
8 |
+
import {
|
9 |
applyFilters,
|
10 |
+
} from '@wordpress/hooks';
|
11 |
|
12 |
+
import {
|
13 |
InnerBlocks,
|
14 |
+
} from '@wordpress/block-editor';
|
15 |
|
16 |
const deprecated = [
|
17 |
// v1 of container block. Deprecated the gb-grid-column wrapper in save component.
|
62 |
return (
|
63 |
<ConditionalWrap
|
64 |
condition={ isGrid }
|
65 |
+
wrap={ ( children ) => <div className={ classnames( {
|
66 |
'gb-grid-column': true,
|
67 |
[ `gb-grid-column-${ uniqueId }` ]: true,
|
68 |
} ) }>{ children }</div> }
|
src/blocks/container/edit.js
CHANGED
@@ -19,12 +19,12 @@ import TabletCSS from './css/tablet.js';
|
|
19 |
import TabletOnlyCSS from './css/tablet-only.js';
|
20 |
import MobileCSS from './css/mobile.js';
|
21 |
|
22 |
-
|
23 |
__,
|
24 |
sprintf,
|
25 |
-
}
|
26 |
|
27 |
-
|
28 |
RangeControl,
|
29 |
Button,
|
30 |
ButtonGroup,
|
@@ -37,34 +37,34 @@ const {
|
|
37 |
PanelRow,
|
38 |
Tooltip,
|
39 |
Dropdown,
|
40 |
-
}
|
41 |
|
42 |
-
|
43 |
Fragment,
|
44 |
Component,
|
45 |
-
}
|
46 |
|
47 |
-
|
48 |
InspectorControls,
|
49 |
InnerBlocks,
|
50 |
MediaUpload,
|
51 |
AlignmentToolbar,
|
52 |
InspectorAdvancedControls,
|
53 |
BlockControls,
|
54 |
-
}
|
55 |
|
56 |
-
|
57 |
applyFilters,
|
58 |
-
}
|
59 |
|
60 |
-
|
61 |
withSelect,
|
62 |
withDispatch,
|
63 |
-
}
|
64 |
|
65 |
-
|
66 |
compose,
|
67 |
-
}
|
68 |
|
69 |
/**
|
70 |
* Regular expression matching invalid anchor characters for replacement.
|
@@ -528,7 +528,7 @@ class GenerateBlockContainer extends Component {
|
|
528 |
}
|
529 |
|
530 |
<SelectControl
|
531 |
-
label={ __( '
|
532 |
value={ tagName }
|
533 |
options={ applyFilters( 'generateblocks.editor.containerTagNames', tagNames, this.props, this.state ) }
|
534 |
onChange={ ( value ) => {
|
@@ -633,7 +633,7 @@ class GenerateBlockContainer extends Component {
|
|
633 |
/>
|
634 |
|
635 |
<SelectControl
|
636 |
-
label={ __( '
|
637 |
value={ tagName }
|
638 |
options={ applyFilters( 'generateblocks.editor.containerTagNames', tagNames, this.props, this.state ) }
|
639 |
onChange={ ( value ) => {
|
@@ -1302,262 +1302,247 @@ class GenerateBlockContainer extends Component {
|
|
1302 |
</PanelArea>
|
1303 |
|
1304 |
<PanelArea { ...this.props }
|
1305 |
-
title={ __( '
|
1306 |
initialOpen={ false }
|
1307 |
icon={ getIcon( 'gradients' ) }
|
1308 |
className={ 'gblocks-panel-label' }
|
1309 |
-
id={ '
|
1310 |
state={ this.state }
|
1311 |
>
|
1312 |
-
|
1313 |
-
<
|
1314 |
-
|
1315 |
-
|
1316 |
-
|
1317 |
-
|
1318 |
-
|
1319 |
-
|
1320 |
-
|
1321 |
-
|
1322 |
-
|
1323 |
-
|
1324 |
-
|
1325 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1326 |
|
1327 |
-
|
1328 |
-
|
|
|
|
|
|
|
1329 |
|
1330 |
-
|
1331 |
-
|
1332 |
-
initialOpen={ false }
|
1333 |
-
icon={ getIcon( 'backgrounds' ) }
|
1334 |
-
className={ 'gblocks-panel-label' }
|
1335 |
-
id={ 'containerBackgroundImage' }
|
1336 |
-
state={ this.state }
|
1337 |
-
>
|
1338 |
-
{ 'Desktop' === this.getDeviceType() &&
|
1339 |
-
<Fragment>
|
1340 |
-
<BaseControl
|
1341 |
-
id="gblocks-background-image-upload"
|
1342 |
-
label={ __( 'Image URL', 'generateblocks' ) }
|
1343 |
-
>
|
1344 |
-
<div className="gblocks-bg-image-wrapper">
|
1345 |
-
<TextControl
|
1346 |
-
type={ 'text' }
|
1347 |
-
value={ !! bgImage ? bgImage.image.url : '' }
|
1348 |
-
onChange={ ( value ) => {
|
1349 |
-
if ( ! value ) {
|
1350 |
-
setAttributes( {
|
1351 |
-
bgImage: null,
|
1352 |
-
} );
|
1353 |
-
} else {
|
1354 |
-
setAttributes( {
|
1355 |
-
bgImage: {
|
1356 |
-
id: '',
|
1357 |
-
image: {
|
1358 |
-
url: value,
|
1359 |
-
},
|
1360 |
-
},
|
1361 |
-
} );
|
1362 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1363 |
} }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1364 |
/>
|
1365 |
|
1366 |
-
|
1367 |
-
|
1368 |
-
|
1369 |
-
|
1370 |
-
let size = generateBlocksDefaults.container.bgImageSize;
|
1371 |
-
|
1372 |
-
if ( 'undefined' === typeof media.sizes[ size ] ) {
|
1373 |
-
size = 'full';
|
1374 |
-
}
|
1375 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1376 |
setAttributes( {
|
1377 |
-
|
1378 |
-
|
1379 |
-
|
1380 |
},
|
1381 |
} );
|
1382 |
} }
|
1383 |
-
onClose={ () => {
|
1384 |
-
document.querySelector( '.gblocks-bg-image-wrapper input' ).focus();
|
1385 |
-
} }
|
1386 |
-
allowedTypes={ [ 'image' ] }
|
1387 |
-
value={ !! bgImage ? bgImage.id : '' }
|
1388 |
-
modalClass="editor-gb-container-background__media-modal"
|
1389 |
-
render={ ( { open } ) => (
|
1390 |
-
<Tooltip text={ __( 'Open the Media Library', 'generateblocks' ) }>
|
1391 |
-
<Button
|
1392 |
-
onClick={ open }
|
1393 |
-
className="is-secondary is-small"
|
1394 |
-
>
|
1395 |
-
{ __( 'Browse', 'generateblocks' ) }
|
1396 |
-
</Button>
|
1397 |
-
</Tooltip>
|
1398 |
-
) }
|
1399 |
/>
|
1400 |
|
1401 |
-
|
1402 |
-
|
1403 |
-
|
1404 |
-
|
1405 |
-
|
1406 |
-
|
1407 |
-
|
1408 |
-
|
1409 |
-
|
1410 |
-
|
1411 |
-
|
1412 |
-
|
1413 |
-
|
|
|
|
|
|
|
1414 |
setAttributes( {
|
1415 |
-
|
1416 |
-
...bgOptions,
|
1417 |
-
overlay: nextOverlay,
|
1418 |
-
},
|
1419 |
} );
|
1420 |
} }
|
1421 |
/>
|
|
|
1422 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1423 |
<Notice
|
1424 |
className="gblocks-option-notice"
|
1425 |
status="info"
|
1426 |
isDismissible={ false }
|
1427 |
>
|
1428 |
-
{ __( '
|
1429 |
</Notice>
|
1430 |
-
|
1431 |
-
|
1432 |
-
|
1433 |
-
{ 'undefined' !== typeof bgImage.id && bgImage.id &&
|
1434 |
-
<SelectControl
|
1435 |
-
label={ __( 'Image Size', 'generateblocks' ) }
|
1436 |
-
value={ bgImageSize }
|
1437 |
-
options={ bgImageSizes }
|
1438 |
-
onChange={ ( value ) => {
|
1439 |
-
setAttributes( {
|
1440 |
-
bgImageSize: value,
|
1441 |
-
} );
|
1442 |
-
} }
|
1443 |
-
/>
|
1444 |
-
}
|
1445 |
-
|
1446 |
-
<SelectControl
|
1447 |
-
label={ __( 'Selector', 'generateblocks' ) }
|
1448 |
-
value={ bgOptions.selector }
|
1449 |
-
options={ [
|
1450 |
-
{ label: __( 'Element', 'generateblocks' ), value: 'element' },
|
1451 |
-
{ label: __( 'Pseudo Element', 'generateblocks' ), value: 'pseudo-element' },
|
1452 |
-
] }
|
1453 |
-
onChange={ ( value ) => {
|
1454 |
-
setAttributes( {
|
1455 |
-
bgOptions: {
|
1456 |
-
...bgOptions,
|
1457 |
-
selector: value,
|
1458 |
-
},
|
1459 |
-
} );
|
1460 |
-
} }
|
1461 |
-
/>
|
1462 |
-
|
1463 |
-
<RangeControl
|
1464 |
-
label={ __( 'Image Opacity', 'generateblocks' ) }
|
1465 |
-
value={ bgOptions.opacity }
|
1466 |
-
onChange={ ( value ) => {
|
1467 |
-
setAttributes( {
|
1468 |
-
bgOptions: {
|
1469 |
-
...bgOptions,
|
1470 |
-
opacity: value,
|
1471 |
-
selector: 'pseudo-element',
|
1472 |
-
},
|
1473 |
-
} );
|
1474 |
-
} }
|
1475 |
-
min={ 0 }
|
1476 |
-
max={ 1 }
|
1477 |
-
step={ 0.1 }
|
1478 |
-
initialPosition={ generateBlocksDefaults.container.bgOptions.opacity }
|
1479 |
-
/>
|
1480 |
|
1481 |
-
|
1482 |
-
|
1483 |
-
|
1484 |
-
|
1485 |
-
|
1486 |
-
|
1487 |
-
|
1488 |
-
|
1489 |
-
}
|
1490 |
-
|
1491 |
-
|
|
|
1492 |
|
1493 |
-
|
1494 |
-
|
1495 |
-
|
1496 |
-
|
1497 |
-
|
1498 |
-
|
1499 |
-
|
1500 |
-
|
1501 |
-
|
1502 |
-
|
1503 |
-
|
1504 |
-
|
1505 |
|
1506 |
-
|
1507 |
-
|
1508 |
-
|
1509 |
-
|
1510 |
-
|
1511 |
-
|
1512 |
-
|
1513 |
-
|
1514 |
-
|
1515 |
-
|
1516 |
-
|
1517 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
1518 |
|
1519 |
-
|
1520 |
-
|
1521 |
-
|
1522 |
-
|
1523 |
-
|
1524 |
-
|
1525 |
-
|
1526 |
-
|
1527 |
-
|
1528 |
-
|
1529 |
-
|
1530 |
-
bgOptions
|
1531 |
-
|
1532 |
-
|
1533 |
-
|
1534 |
-
|
1535 |
-
|
1536 |
-
|
|
|
1537 |
|
1538 |
-
|
1539 |
-
|
1540 |
-
|
1541 |
-
|
1542 |
-
|
1543 |
-
|
1544 |
-
|
1545 |
-
|
1546 |
-
|
1547 |
-
|
1548 |
-
|
1549 |
-
|
1550 |
-
attachment: nextAttachment,
|
1551 |
-
},
|
1552 |
-
} );
|
1553 |
-
} }
|
1554 |
-
/>
|
1555 |
-
</div>
|
1556 |
-
) }
|
1557 |
-
</Fragment>
|
1558 |
-
}
|
1559 |
|
1560 |
-
|
|
|
1561 |
</PanelArea>
|
1562 |
|
1563 |
<PanelArea { ...this.props }
|
@@ -1599,6 +1584,7 @@ class GenerateBlockContainer extends Component {
|
|
1599 |
|
1600 |
<Fragment>
|
1601 |
<Dropdown
|
|
|
1602 |
renderToggle={ ( { isOpen, onToggle } ) => (
|
1603 |
<Tooltip text={ __( 'Edit Shape', 'generateblocks' ) }>
|
1604 |
<Button
|
@@ -2048,7 +2034,7 @@ class GenerateBlockContainer extends Component {
|
|
2048 |
}
|
2049 |
|
2050 |
<Element
|
2051 |
-
tagName={ tagName }
|
2052 |
htmlAttrs={ htmlAttributes }
|
2053 |
>
|
2054 |
{ applyFilters( 'generateblocks.frontend.afterContainerOpen', '', attributes ) }
|
19 |
import TabletOnlyCSS from './css/tablet-only.js';
|
20 |
import MobileCSS from './css/mobile.js';
|
21 |
|
22 |
+
import {
|
23 |
__,
|
24 |
sprintf,
|
25 |
+
} from '@wordpress/i18n';
|
26 |
|
27 |
+
import {
|
28 |
RangeControl,
|
29 |
Button,
|
30 |
ButtonGroup,
|
37 |
PanelRow,
|
38 |
Tooltip,
|
39 |
Dropdown,
|
40 |
+
} from '@wordpress/components';
|
41 |
|
42 |
+
import {
|
43 |
Fragment,
|
44 |
Component,
|
45 |
+
} from '@wordpress/element';
|
46 |
|
47 |
+
import {
|
48 |
InspectorControls,
|
49 |
InnerBlocks,
|
50 |
MediaUpload,
|
51 |
AlignmentToolbar,
|
52 |
InspectorAdvancedControls,
|
53 |
BlockControls,
|
54 |
+
} from '@wordpress/block-editor';
|
55 |
|
56 |
+
import {
|
57 |
applyFilters,
|
58 |
+
} from '@wordpress/hooks';
|
59 |
|
60 |
+
import {
|
61 |
withSelect,
|
62 |
withDispatch,
|
63 |
+
} from '@wordpress/data';
|
64 |
|
65 |
+
import {
|
66 |
compose,
|
67 |
+
} from '@wordpress/compose';
|
68 |
|
69 |
/**
|
70 |
* Regular expression matching invalid anchor characters for replacement.
|
528 |
}
|
529 |
|
530 |
<SelectControl
|
531 |
+
label={ __( 'Tag Name', 'generateblocks' ) }
|
532 |
value={ tagName }
|
533 |
options={ applyFilters( 'generateblocks.editor.containerTagNames', tagNames, this.props, this.state ) }
|
534 |
onChange={ ( value ) => {
|
633 |
/>
|
634 |
|
635 |
<SelectControl
|
636 |
+
label={ __( 'Tag Name', 'generateblocks' ) }
|
637 |
value={ tagName }
|
638 |
options={ applyFilters( 'generateblocks.editor.containerTagNames', tagNames, this.props, this.state ) }
|
639 |
onChange={ ( value ) => {
|
1302 |
</PanelArea>
|
1303 |
|
1304 |
<PanelArea { ...this.props }
|
1305 |
+
title={ __( 'Backgrounds', 'generateblocks' ) }
|
1306 |
initialOpen={ false }
|
1307 |
icon={ getIcon( 'gradients' ) }
|
1308 |
className={ 'gblocks-panel-label' }
|
1309 |
+
id={ 'containerBackground' }
|
1310 |
state={ this.state }
|
1311 |
>
|
1312 |
+
<Fragment>
|
1313 |
+
<BaseControl
|
1314 |
+
id="gblocks-background-image-upload"
|
1315 |
+
label={ __( 'Image URL', 'generateblocks' ) }
|
1316 |
+
>
|
1317 |
+
<div className="gblocks-bg-image-wrapper">
|
1318 |
+
<TextControl
|
1319 |
+
type={ 'text' }
|
1320 |
+
value={ !! bgImage ? bgImage.image.url : '' }
|
1321 |
+
onChange={ ( value ) => {
|
1322 |
+
if ( ! value ) {
|
1323 |
+
setAttributes( {
|
1324 |
+
bgImage: null,
|
1325 |
+
} );
|
1326 |
+
} else {
|
1327 |
+
setAttributes( {
|
1328 |
+
bgImage: {
|
1329 |
+
id: '',
|
1330 |
+
image: {
|
1331 |
+
url: value,
|
1332 |
+
},
|
1333 |
+
},
|
1334 |
+
} );
|
1335 |
+
}
|
1336 |
+
} }
|
1337 |
+
/>
|
1338 |
|
1339 |
+
<div className="gblocks-background-image-action-buttons">
|
1340 |
+
<MediaUpload
|
1341 |
+
title={ __( 'Set background image', 'generateblocks' ) }
|
1342 |
+
onSelect={ ( media ) => {
|
1343 |
+
let size = generateBlocksDefaults.container.bgImageSize;
|
1344 |
|
1345 |
+
if ( 'undefined' === typeof media.sizes[ size ] ) {
|
1346 |
+
size = 'full';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1347 |
}
|
1348 |
+
|
1349 |
+
setAttributes( {
|
1350 |
+
bgImage: {
|
1351 |
+
id: media.id,
|
1352 |
+
image: media.sizes[ size ],
|
1353 |
+
},
|
1354 |
+
} );
|
1355 |
+
} }
|
1356 |
+
onClose={ () => {
|
1357 |
+
document.querySelector( '.gblocks-bg-image-wrapper input' ).focus();
|
1358 |
} }
|
1359 |
+
allowedTypes={ [ 'image' ] }
|
1360 |
+
value={ !! bgImage ? bgImage.id : '' }
|
1361 |
+
modalClass="editor-gb-container-background__media-modal"
|
1362 |
+
render={ ( { open } ) => (
|
1363 |
+
<Tooltip text={ __( 'Open the Media Library', 'generateblocks' ) }>
|
1364 |
+
<Button
|
1365 |
+
onClick={ open }
|
1366 |
+
className="is-secondary is-small"
|
1367 |
+
>
|
1368 |
+
{ __( 'Browse', 'generateblocks' ) }
|
1369 |
+
</Button>
|
1370 |
+
</Tooltip>
|
1371 |
+
) }
|
1372 |
/>
|
1373 |
|
1374 |
+
{ applyFilters( 'generateblocks.editor.backgroundImageActions', '', this.props, this.state ) }
|
1375 |
+
</div>
|
1376 |
+
</div>
|
1377 |
+
</BaseControl>
|
|
|
|
|
|
|
|
|
|
|
1378 |
|
1379 |
+
{ !! bgImage && (
|
1380 |
+
<Fragment>
|
1381 |
+
{ !! bgOptions.overlay ? ( // This option is deprecated, so only show it if it's in use.
|
1382 |
+
<Fragment>
|
1383 |
+
<ToggleControl
|
1384 |
+
label={ __( 'Background Color Overlay', 'generateblocks' ) }
|
1385 |
+
checked={ !! bgOptions.overlay }
|
1386 |
+
onChange={ ( nextOverlay ) => {
|
1387 |
setAttributes( {
|
1388 |
+
bgOptions: {
|
1389 |
+
...bgOptions,
|
1390 |
+
overlay: nextOverlay,
|
1391 |
},
|
1392 |
} );
|
1393 |
} }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1394 |
/>
|
1395 |
|
1396 |
+
<Notice
|
1397 |
+
className="gblocks-option-notice"
|
1398 |
+
status="info"
|
1399 |
+
isDismissible={ false }
|
1400 |
+
>
|
1401 |
+
{ __( 'The background color overlay option is deprecated. Toggle this option to use the new method.', 'generateblocks' ) }
|
1402 |
+
</Notice>
|
1403 |
+
</Fragment>
|
1404 |
+
) : ( // These options is only for people not using the deprecated overlay option.
|
1405 |
+
<Fragment>
|
1406 |
+
{ 'undefined' !== typeof bgImage.id && bgImage.id &&
|
1407 |
+
<SelectControl
|
1408 |
+
label={ __( 'Image Size', 'generateblocks' ) }
|
1409 |
+
value={ bgImageSize }
|
1410 |
+
options={ bgImageSizes }
|
1411 |
+
onChange={ ( value ) => {
|
1412 |
setAttributes( {
|
1413 |
+
bgImageSize: value,
|
|
|
|
|
|
|
1414 |
} );
|
1415 |
} }
|
1416 |
/>
|
1417 |
+
}
|
1418 |
|
1419 |
+
<SelectControl
|
1420 |
+
label={ __( 'Selector', 'generateblocks' ) }
|
1421 |
+
value={ bgOptions.selector }
|
1422 |
+
options={ [
|
1423 |
+
{ label: __( 'Element', 'generateblocks' ), value: 'element' },
|
1424 |
+
{ label: __( 'Pseudo Element', 'generateblocks' ), value: 'pseudo-element' },
|
1425 |
+
] }
|
1426 |
+
onChange={ ( value ) => {
|
1427 |
+
setAttributes( {
|
1428 |
+
bgOptions: {
|
1429 |
+
...bgOptions,
|
1430 |
+
selector: value,
|
1431 |
+
},
|
1432 |
+
} );
|
1433 |
+
} }
|
1434 |
+
/>
|
1435 |
+
|
1436 |
+
<RangeControl
|
1437 |
+
label={ __( 'Image Opacity', 'generateblocks' ) }
|
1438 |
+
value={ bgOptions.opacity }
|
1439 |
+
onChange={ ( value ) => {
|
1440 |
+
setAttributes( {
|
1441 |
+
bgOptions: {
|
1442 |
+
...bgOptions,
|
1443 |
+
opacity: value,
|
1444 |
+
selector: 'pseudo-element',
|
1445 |
+
},
|
1446 |
+
} );
|
1447 |
+
} }
|
1448 |
+
min={ 0 }
|
1449 |
+
max={ 1 }
|
1450 |
+
step={ 0.1 }
|
1451 |
+
initialPosition={ generateBlocksDefaults.container.bgOptions.opacity }
|
1452 |
+
/>
|
1453 |
+
|
1454 |
+
{ 1 !== bgOptions.opacity && 'pseudo-element' !== bgOptions.selector &&
|
1455 |
<Notice
|
1456 |
className="gblocks-option-notice"
|
1457 |
status="info"
|
1458 |
isDismissible={ false }
|
1459 |
>
|
1460 |
+
{ __( 'Your selector must be set to Pseudo Element to use opacity.', 'generateblocks' ) }
|
1461 |
</Notice>
|
1462 |
+
}
|
1463 |
+
</Fragment>
|
1464 |
+
) }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1465 |
|
1466 |
+
<TextControl
|
1467 |
+
label={ __( 'Size', 'generateblocks' ) }
|
1468 |
+
value={ bgOptions.size }
|
1469 |
+
onChange={ ( nextSize ) => {
|
1470 |
+
setAttributes( {
|
1471 |
+
bgOptions: {
|
1472 |
+
...bgOptions,
|
1473 |
+
size: nextSize,
|
1474 |
+
},
|
1475 |
+
} );
|
1476 |
+
} }
|
1477 |
+
/>
|
1478 |
|
1479 |
+
<TextControl
|
1480 |
+
label={ __( 'Position', 'generateblocks' ) }
|
1481 |
+
value={ bgOptions.position }
|
1482 |
+
onChange={ ( nextPosition ) => {
|
1483 |
+
setAttributes( {
|
1484 |
+
bgOptions: {
|
1485 |
+
...bgOptions,
|
1486 |
+
position: nextPosition,
|
1487 |
+
},
|
1488 |
+
} );
|
1489 |
+
} }
|
1490 |
+
/>
|
1491 |
|
1492 |
+
<SelectControl
|
1493 |
+
label={ __( 'Repeat', 'generateblocks' ) }
|
1494 |
+
value={ bgOptions.repeat }
|
1495 |
+
options={ [
|
1496 |
+
{ label: 'no-repeat', value: 'no-repeat' },
|
1497 |
+
{ label: 'repeat', value: 'repeat' },
|
1498 |
+
{ label: 'repeat-x', value: 'repeat-x' },
|
1499 |
+
{ label: 'repeat-y', value: 'repeat-y' },
|
1500 |
+
] }
|
1501 |
+
onChange={ ( nextRepeat ) => {
|
1502 |
+
setAttributes( {
|
1503 |
+
bgOptions: {
|
1504 |
+
...bgOptions,
|
1505 |
+
repeat: nextRepeat,
|
1506 |
+
},
|
1507 |
+
} );
|
1508 |
+
} }
|
1509 |
+
/>
|
1510 |
|
1511 |
+
<SelectControl
|
1512 |
+
label={ __( 'Attachment', 'generateblocks' ) }
|
1513 |
+
value={ bgOptions.attachment }
|
1514 |
+
options={ [
|
1515 |
+
{ label: 'scroll', value: '' },
|
1516 |
+
{ label: 'fixed', value: 'fixed' },
|
1517 |
+
{ label: 'local', value: 'local' },
|
1518 |
+
] }
|
1519 |
+
onChange={ ( nextAttachment ) => {
|
1520 |
+
setAttributes( {
|
1521 |
+
bgOptions: {
|
1522 |
+
...bgOptions,
|
1523 |
+
attachment: nextAttachment,
|
1524 |
+
},
|
1525 |
+
} );
|
1526 |
+
} }
|
1527 |
+
/>
|
1528 |
+
</Fragment>
|
1529 |
+
) }
|
1530 |
|
1531 |
+
<GradientControl { ...this.props }
|
1532 |
+
attrGradient={ 'gradient' }
|
1533 |
+
attrGradientDirection={ 'gradientDirection' }
|
1534 |
+
attrGradientColorOne={ 'gradientColorOne' }
|
1535 |
+
attrGradientColorStopOne={ 'gradientColorStopOne' }
|
1536 |
+
attrGradientColorTwo={ 'gradientColorTwo' }
|
1537 |
+
attrGradientColorStopTwo={ 'gradientColorStopTwo' }
|
1538 |
+
attrGradientColorOneOpacity={ 'gradientColorOneOpacity' }
|
1539 |
+
attrGradientColorTwoOpacity={ 'gradientColorTwoOpacity' }
|
1540 |
+
defaultColorOne={ generateBlocksDefaults.container.gradientColorOne }
|
1541 |
+
defaultColorTwo={ generateBlocksDefaults.container.gradientColorTwo }
|
1542 |
+
/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1543 |
|
1544 |
+
{ applyFilters( 'generateblocks.editor.controls', '', 'containerBackground', this.props, this.state ) }
|
1545 |
+
</Fragment>
|
1546 |
</PanelArea>
|
1547 |
|
1548 |
<PanelArea { ...this.props }
|
1584 |
|
1585 |
<Fragment>
|
1586 |
<Dropdown
|
1587 |
+
contentClassName="gblocks-shapes-dropdown"
|
1588 |
renderToggle={ ( { isOpen, onToggle } ) => (
|
1589 |
<Tooltip text={ __( 'Edit Shape', 'generateblocks' ) }>
|
1590 |
<Button
|
2034 |
}
|
2035 |
|
2036 |
<Element
|
2037 |
+
tagName={ applyFilters( 'generateblocks.frontend.containerTagName', tagName, attributes ) }
|
2038 |
htmlAttrs={ htmlAttributes }
|
2039 |
>
|
2040 |
{ applyFilters( 'generateblocks.frontend.afterContainerOpen', '', attributes ) }
|
src/blocks/container/editor.scss
CHANGED
@@ -105,6 +105,11 @@ body .gb-container .wp-block {
|
|
105 |
margin-bottom: 0;
|
106 |
}
|
107 |
|
|
|
|
|
|
|
|
|
|
|
108 |
/* Shape divider */
|
109 |
.gb-container .gb-shape {
|
110 |
position: absolute;
|
@@ -198,6 +203,10 @@ body .gb-container .wp-block {
|
|
198 |
}
|
199 |
}
|
200 |
|
|
|
|
|
|
|
|
|
201 |
/* GPress content width */
|
202 |
.gblocks-gpress-full-width .components-base-control__label {
|
203 |
display: block;
|
105 |
margin-bottom: 0;
|
106 |
}
|
107 |
|
108 |
+
.gb-container .wp-block-image {
|
109 |
+
margin-top: 0;
|
110 |
+
margin-bottom: 0;
|
111 |
+
}
|
112 |
+
|
113 |
/* Shape divider */
|
114 |
.gb-container .gb-shape {
|
115 |
position: absolute;
|
203 |
}
|
204 |
}
|
205 |
|
206 |
+
.components-popover.gblocks-shapes-dropdown .components-popover__content {
|
207 |
+
min-width: 260px;
|
208 |
+
}
|
209 |
+
|
210 |
/* GPress content width */
|
211 |
.gblocks-gpress-full-width .components-base-control__label {
|
212 |
display: block;
|
src/blocks/grid/block.js
CHANGED
@@ -9,12 +9,17 @@ import blockAttributes from './attributes';
|
|
9 |
import getIcon from '../../utils/get-icon';
|
10 |
import deprecated from './deprecated';
|
11 |
|
12 |
-
|
13 |
-
|
|
|
14 |
|
15 |
-
|
|
|
|
|
|
|
|
|
16 |
InnerBlocks,
|
17 |
-
}
|
18 |
|
19 |
/**
|
20 |
* Register our Grid block.
|
9 |
import getIcon from '../../utils/get-icon';
|
10 |
import deprecated from './deprecated';
|
11 |
|
12 |
+
import {
|
13 |
+
__,
|
14 |
+
} from '@wordpress/i18n';
|
15 |
|
16 |
+
import {
|
17 |
+
registerBlockType,
|
18 |
+
} from '@wordpress/blocks';
|
19 |
+
|
20 |
+
import {
|
21 |
InnerBlocks,
|
22 |
+
} from '@wordpress/block-editor';
|
23 |
|
24 |
/**
|
25 |
* Register our Grid block.
|
src/blocks/grid/css/desktop.js
CHANGED
@@ -1,7 +1,12 @@
|
|
1 |
import buildCSS from '../../../utils/build-css';
|
2 |
|
3 |
-
|
4 |
-
|
|
|
|
|
|
|
|
|
|
|
5 |
|
6 |
export default class DesktopCSS extends Component {
|
7 |
render() {
|
1 |
import buildCSS from '../../../utils/build-css';
|
2 |
|
3 |
+
import {
|
4 |
+
Component,
|
5 |
+
} from '@wordpress/element';
|
6 |
+
|
7 |
+
import {
|
8 |
+
applyFilters,
|
9 |
+
} from '@wordpress/hooks';
|
10 |
|
11 |
export default class DesktopCSS extends Component {
|
12 |
render() {
|
src/blocks/grid/css/main.js
CHANGED
@@ -1,14 +1,17 @@
|
|
1 |
import buildCSS from '../../../utils/build-css';
|
2 |
import valueWithUnit from '../../../utils/value-with-unit';
|
3 |
|
4 |
-
|
5 |
-
|
|
|
|
|
|
|
|
|
|
|
6 |
|
7 |
export default class MainCSS extends Component {
|
8 |
render() {
|
9 |
-
const
|
10 |
-
attributes,
|
11 |
-
} = this.props;
|
12 |
|
13 |
const {
|
14 |
uniqueId,
|
1 |
import buildCSS from '../../../utils/build-css';
|
2 |
import valueWithUnit from '../../../utils/value-with-unit';
|
3 |
|
4 |
+
import {
|
5 |
+
Component,
|
6 |
+
} from '@wordpress/element';
|
7 |
+
|
8 |
+
import {
|
9 |
+
applyFilters,
|
10 |
+
} from '@wordpress/hooks';
|
11 |
|
12 |
export default class MainCSS extends Component {
|
13 |
render() {
|
14 |
+
const attributes = applyFilters( 'generateblocks.editor.cssAttrs', this.props.attributes, this.props );
|
|
|
|
|
15 |
|
16 |
const {
|
17 |
uniqueId,
|
src/blocks/grid/css/mobile.js
CHANGED
@@ -1,14 +1,17 @@
|
|
1 |
import buildCSS from '../../../utils/build-css';
|
2 |
import valueWithUnit from '../../../utils/value-with-unit';
|
3 |
|
4 |
-
|
5 |
-
|
|
|
|
|
|
|
|
|
|
|
6 |
|
7 |
export default class MobileCSS extends Component {
|
8 |
render() {
|
9 |
-
const
|
10 |
-
attributes,
|
11 |
-
} = this.props;
|
12 |
|
13 |
const {
|
14 |
uniqueId,
|
1 |
import buildCSS from '../../../utils/build-css';
|
2 |
import valueWithUnit from '../../../utils/value-with-unit';
|
3 |
|
4 |
+
import {
|
5 |
+
Component,
|
6 |
+
} from '@wordpress/element';
|
7 |
+
|
8 |
+
import {
|
9 |
+
applyFilters,
|
10 |
+
} from '@wordpress/hooks';
|
11 |
|
12 |
export default class MobileCSS extends Component {
|
13 |
render() {
|
14 |
+
const attributes = applyFilters( 'generateblocks.editor.cssAttrs', this.props.attributes, this.props );
|
|
|
|
|
15 |
|
16 |
const {
|
17 |
uniqueId,
|
src/blocks/grid/css/tablet-only.js
CHANGED
@@ -1,7 +1,12 @@
|
|
1 |
import buildCSS from '../../../utils/build-css';
|
2 |
|
3 |
-
|
4 |
-
|
|
|
|
|
|
|
|
|
|
|
5 |
|
6 |
export default class TabletOnlyCSS extends Component {
|
7 |
render() {
|
1 |
import buildCSS from '../../../utils/build-css';
|
2 |
|
3 |
+
import {
|
4 |
+
Component,
|
5 |
+
} from '@wordpress/element';
|
6 |
+
|
7 |
+
import {
|
8 |
+
applyFilters,
|
9 |
+
} from '@wordpress/hooks';
|
10 |
|
11 |
export default class TabletOnlyCSS extends Component {
|
12 |
render() {
|
src/blocks/grid/css/tablet.js
CHANGED
@@ -1,14 +1,17 @@
|
|
1 |
import buildCSS from '../../../utils/build-css';
|
2 |
import valueWithUnit from '../../../utils/value-with-unit';
|
3 |
|
4 |
-
|
5 |
-
|
|
|
|
|
|
|
|
|
|
|
6 |
|
7 |
export default class TabletCSS extends Component {
|
8 |
render() {
|
9 |
-
const
|
10 |
-
attributes,
|
11 |
-
} = this.props;
|
12 |
|
13 |
const {
|
14 |
uniqueId,
|
1 |
import buildCSS from '../../../utils/build-css';
|
2 |
import valueWithUnit from '../../../utils/value-with-unit';
|
3 |
|
4 |
+
import {
|
5 |
+
Component,
|
6 |
+
} from '@wordpress/element';
|
7 |
+
|
8 |
+
import {
|
9 |
+
applyFilters,
|
10 |
+
} from '@wordpress/hooks';
|
11 |
|
12 |
export default class TabletCSS extends Component {
|
13 |
render() {
|
14 |
+
const attributes = applyFilters( 'generateblocks.editor.cssAttrs', this.props.attributes, this.props );
|
|
|
|
|
15 |
|
16 |
const {
|
17 |
uniqueId,
|
src/blocks/grid/deprecated.js
CHANGED
@@ -4,13 +4,13 @@
|
|
4 |
import classnames from 'classnames';
|
5 |
import blockAttributes from './attributes';
|
6 |
|
7 |
-
|
8 |
applyFilters,
|
9 |
-
}
|
10 |
|
11 |
-
|
12 |
InnerBlocks,
|
13 |
-
}
|
14 |
|
15 |
const deprecated = [
|
16 |
// v1 of container block. Deprecated the gb-grid-column wrapper in save component.
|
4 |
import classnames from 'classnames';
|
5 |
import blockAttributes from './attributes';
|
6 |
|
7 |
+
import {
|
8 |
applyFilters,
|
9 |
+
} from '@wordpress/hooks';
|
10 |
|
11 |
+
import {
|
12 |
InnerBlocks,
|
13 |
+
} from '@wordpress/block-editor';
|
14 |
|
15 |
const deprecated = [
|
16 |
// v1 of container block. Deprecated the gb-grid-column wrapper in save component.
|
src/blocks/grid/edit.js
CHANGED
@@ -13,47 +13,47 @@ import TabletOnlyCSS from './css/tablet-only.js';
|
|
13 |
import MobileCSS from './css/mobile.js';
|
14 |
import PanelArea from '../../components/panel-area/';
|
15 |
|
16 |
-
|
17 |
__,
|
18 |
-
}
|
19 |
|
20 |
-
|
21 |
TextControl,
|
22 |
SelectControl,
|
23 |
Placeholder,
|
24 |
Button,
|
25 |
ToolbarGroup,
|
26 |
ToolbarButton,
|
27 |
-
}
|
28 |
|
29 |
-
|
30 |
Fragment,
|
31 |
Component,
|
32 |
-
}
|
33 |
|
34 |
-
|
35 |
InspectorControls,
|
36 |
InnerBlocks,
|
37 |
BlockControls,
|
38 |
InspectorAdvancedControls,
|
39 |
-
}
|
40 |
|
41 |
-
|
42 |
createBlock,
|
43 |
-
}
|
44 |
|
45 |
-
|
46 |
applyFilters,
|
47 |
-
}
|
48 |
|
49 |
-
|
50 |
withSelect,
|
51 |
withDispatch,
|
52 |
-
}
|
53 |
|
54 |
-
|
55 |
compose,
|
56 |
-
}
|
57 |
|
58 |
/**
|
59 |
* Regular expression matching invalid anchor characters for replacement.
|
@@ -317,30 +317,32 @@ class GenerateBlockGridContainer extends Component {
|
|
317 |
|
318 |
return (
|
319 |
<Fragment>
|
320 |
-
|
321 |
-
<
|
322 |
-
<
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
|
|
|
|
344 |
|
345 |
<InspectorControls>
|
346 |
<ResponsiveTabs { ...this.props }
|
13 |
import MobileCSS from './css/mobile.js';
|
14 |
import PanelArea from '../../components/panel-area/';
|
15 |
|
16 |
+
import {
|
17 |
__,
|
18 |
+
} from '@wordpress/i18n';
|
19 |
|
20 |
+
import {
|
21 |
TextControl,
|
22 |
SelectControl,
|
23 |
Placeholder,
|
24 |
Button,
|
25 |
ToolbarGroup,
|
26 |
ToolbarButton,
|
27 |
+
} from '@wordpress/components';
|
28 |
|
29 |
+
import {
|
30 |
Fragment,
|
31 |
Component,
|
32 |
+
} from '@wordpress/element';
|
33 |
|
34 |
+
import {
|
35 |
InspectorControls,
|
36 |
InnerBlocks,
|
37 |
BlockControls,
|
38 |
InspectorAdvancedControls,
|
39 |
+
} from '@wordpress/block-editor';
|
40 |
|
41 |
+
import {
|
42 |
createBlock,
|
43 |
+
} from '@wordpress/blocks';
|
44 |
|
45 |
+
import {
|
46 |
applyFilters,
|
47 |
+
} from '@wordpress/hooks';
|
48 |
|
49 |
+
import {
|
50 |
withSelect,
|
51 |
withDispatch,
|
52 |
+
} from '@wordpress/data';
|
53 |
|
54 |
+
import {
|
55 |
compose,
|
56 |
+
} from '@wordpress/compose';
|
57 |
|
58 |
/**
|
59 |
* Regular expression matching invalid anchor characters for replacement.
|
317 |
|
318 |
return (
|
319 |
<Fragment>
|
320 |
+
{ ( columns > 0 || this.state.selectedLayout ) &&
|
321 |
+
<BlockControls>
|
322 |
+
<ToolbarGroup>
|
323 |
+
<ToolbarButton
|
324 |
+
className="gblocks-block-control-icon gblocks-add-grid-item"
|
325 |
+
icon={ getIcon( 'addContainer' ) }
|
326 |
+
label={ __( 'Add Grid Item', 'generateblocks' ) }
|
327 |
+
onClick={ () => {
|
328 |
+
wp.data.dispatch( 'core/block-editor' ).insertBlocks(
|
329 |
+
createBlock( 'generateblocks/container', {
|
330 |
+
isGrid: true,
|
331 |
+
gridId: uniqueId,
|
332 |
+
paddingTop: generateBlocksStyling.container.gridItemPaddingTop || '0',
|
333 |
+
paddingRight: generateBlocksStyling.container.gridItemPaddingRight || '0',
|
334 |
+
paddingBottom: generateBlocksStyling.container.gridItemPaddingBottom || '0',
|
335 |
+
paddingLeft: generateBlocksStyling.container.gridItemPaddingLeft || '0',
|
336 |
+
} ),
|
337 |
+
undefined,
|
338 |
+
clientId
|
339 |
+
);
|
340 |
+
} }
|
341 |
+
showTooltip
|
342 |
+
/>
|
343 |
+
</ToolbarGroup>
|
344 |
+
</BlockControls>
|
345 |
+
}
|
346 |
|
347 |
<InspectorControls>
|
348 |
<ResponsiveTabs { ...this.props }
|
src/blocks/headline/block.js
CHANGED
@@ -12,8 +12,13 @@ import transforms from './transforms';
|
|
12 |
import deprecated from './deprecated';
|
13 |
import getIcon from '../../utils/get-icon';
|
14 |
|
15 |
-
|
16 |
-
|
|
|
|
|
|
|
|
|
|
|
17 |
|
18 |
/**
|
19 |
* Register our Headline block.
|
12 |
import deprecated from './deprecated';
|
13 |
import getIcon from '../../utils/get-icon';
|
14 |
|
15 |
+
import {
|
16 |
+
__,
|
17 |
+
} from '@wordpress/i18n';
|
18 |
+
|
19 |
+
import {
|
20 |
+
registerBlockType,
|
21 |
+
} from '@wordpress/blocks';
|
22 |
|
23 |
/**
|
24 |
* Register our Headline block.
|
src/blocks/headline/css/desktop.js
CHANGED
@@ -1,7 +1,12 @@
|
|
1 |
import buildCSS from '../../../utils/build-css';
|
2 |
|
3 |
-
|
4 |
-
|
|
|
|
|
|
|
|
|
|
|
5 |
|
6 |
export default class DesktopCSS extends Component {
|
7 |
render() {
|
1 |
import buildCSS from '../../../utils/build-css';
|
2 |
|
3 |
+
import {
|
4 |
+
Component,
|
5 |
+
} from '@wordpress/element';
|
6 |
+
|
7 |
+
import {
|
8 |
+
applyFilters,
|
9 |
+
} from '@wordpress/hooks';
|
10 |
|
11 |
export default class DesktopCSS extends Component {
|
12 |
render() {
|
src/blocks/headline/css/main.js
CHANGED
@@ -4,13 +4,19 @@ import valueWithUnit from '../../../utils/value-with-unit';
|
|
4 |
import shorthandCSS from '../../../utils/shorthand-css';
|
5 |
import hexToRGBA from '../../../utils/hex-to-rgba';
|
6 |
|
7 |
-
|
8 |
-
|
|
|
|
|
|
|
|
|
|
|
9 |
|
10 |
export default class MainCSS extends Component {
|
11 |
render() {
|
|
|
|
|
12 |
const {
|
13 |
-
attributes,
|
14 |
clientId,
|
15 |
} = this.props;
|
16 |
|
4 |
import shorthandCSS from '../../../utils/shorthand-css';
|
5 |
import hexToRGBA from '../../../utils/hex-to-rgba';
|
6 |
|
7 |
+
import {
|
8 |
+
Component,
|
9 |
+
} from '@wordpress/element';
|
10 |
+
|
11 |
+
import {
|
12 |
+
applyFilters,
|
13 |
+
} from '@wordpress/hooks';
|
14 |
|
15 |
export default class MainCSS extends Component {
|
16 |
render() {
|
17 |
+
const attributes = applyFilters( 'generateblocks.editor.cssAttrs', this.props.attributes, this.props );
|
18 |
+
|
19 |
const {
|
|
|
20 |
clientId,
|
21 |
} = this.props;
|
22 |
|
src/blocks/headline/css/mobile.js
CHANGED
@@ -2,13 +2,19 @@ import buildCSS from '../../../utils/build-css';
|
|
2 |
import flexboxAlignment from '../../../utils/flexbox-alignment';
|
3 |
import valueWithUnit from '../../../utils/value-with-unit';
|
4 |
|
5 |
-
|
6 |
-
|
|
|
|
|
|
|
|
|
|
|
7 |
|
8 |
export default class MobileCSS extends Component {
|
9 |
render() {
|
|
|
|
|
10 |
const {
|
11 |
-
attributes,
|
12 |
clientId,
|
13 |
} = this.props;
|
14 |
|
2 |
import flexboxAlignment from '../../../utils/flexbox-alignment';
|
3 |
import valueWithUnit from '../../../utils/value-with-unit';
|
4 |
|
5 |
+
import {
|
6 |
+
Component,
|
7 |
+
} from '@wordpress/element';
|
8 |
+
|
9 |
+
import {
|
10 |
+
applyFilters,
|
11 |
+
} from '@wordpress/hooks';
|
12 |
|
13 |
export default class MobileCSS extends Component {
|
14 |
render() {
|
15 |
+
const attributes = applyFilters( 'generateblocks.editor.cssAttrs', this.props.attributes, this.props );
|
16 |
+
|
17 |
const {
|
|
|
18 |
clientId,
|
19 |
} = this.props;
|
20 |
|
src/blocks/headline/css/tablet-only.js
CHANGED
@@ -1,7 +1,12 @@
|
|
1 |
import buildCSS from '../../../utils/build-css';
|
2 |
|
3 |
-
|
4 |
-
|
|
|
|
|
|
|
|
|
|
|
5 |
|
6 |
export default class TabletOnlyCSS extends Component {
|
7 |
render() {
|
1 |
import buildCSS from '../../../utils/build-css';
|
2 |
|
3 |
+
import {
|
4 |
+
Component,
|
5 |
+
} from '@wordpress/element';
|
6 |
+
|
7 |
+
import {
|
8 |
+
applyFilters,
|
9 |
+
} from '@wordpress/hooks';
|
10 |
|
11 |
export default class TabletOnlyCSS extends Component {
|
12 |
render() {
|
src/blocks/headline/css/tablet.js
CHANGED
@@ -2,13 +2,19 @@ import buildCSS from '../../../utils/build-css';
|
|
2 |
import flexboxAlignment from '../../../utils/flexbox-alignment';
|
3 |
import valueWithUnit from '../../../utils/value-with-unit';
|
4 |
|
5 |
-
|
6 |
-
|
|
|
|
|
|
|
|
|
|
|
7 |
|
8 |
export default class TabletCSS extends Component {
|
9 |
render() {
|
|
|
|
|
10 |
const {
|
11 |
-
attributes,
|
12 |
clientId,
|
13 |
} = this.props;
|
14 |
|
2 |
import flexboxAlignment from '../../../utils/flexbox-alignment';
|
3 |
import valueWithUnit from '../../../utils/value-with-unit';
|
4 |
|
5 |
+
import {
|
6 |
+
Component,
|
7 |
+
} from '@wordpress/element';
|
8 |
+
|
9 |
+
import {
|
10 |
+
applyFilters,
|
11 |
+
} from '@wordpress/hooks';
|
12 |
|
13 |
export default class TabletCSS extends Component {
|
14 |
render() {
|
15 |
+
const attributes = applyFilters( 'generateblocks.editor.cssAttrs', this.props.attributes, this.props );
|
16 |
+
|
17 |
const {
|
|
|
18 |
clientId,
|
19 |
} = this.props;
|
20 |
|
src/blocks/headline/deprecated.js
CHANGED
@@ -2,13 +2,13 @@ import blockAttributes from './attributes';
|
|
2 |
import classnames from 'classnames';
|
3 |
import sanitizeSVG from '../../utils/sanitize-svg';
|
4 |
|
5 |
-
|
6 |
RichText,
|
7 |
-
}
|
8 |
|
9 |
-
|
10 |
applyFilters,
|
11 |
-
}
|
12 |
|
13 |
const deprecated = [
|
14 |
// v2 - remove wrapper.
|
2 |
import classnames from 'classnames';
|
3 |
import sanitizeSVG from '../../utils/sanitize-svg';
|
4 |
|
5 |
+
import {
|
6 |
RichText,
|
7 |
+
} from '@wordpress/block-editor';
|
8 |
|
9 |
+
import {
|
10 |
applyFilters,
|
11 |
+
} from '@wordpress/hooks';
|
12 |
|
13 |
const deprecated = [
|
14 |
// v2 - remove wrapper.
|
src/blocks/headline/edit.js
CHANGED
@@ -21,44 +21,44 @@ import Element from '../../components/element';
|
|
21 |
import './markformat';
|
22 |
import HeadingLevelIcon from './element-icons';
|
23 |
|
24 |
-
|
25 |
__,
|
26 |
sprintf,
|
27 |
-
}
|
28 |
|
29 |
-
|
30 |
TextControl,
|
31 |
ToolbarGroup,
|
32 |
SelectControl,
|
33 |
ToggleControl,
|
34 |
Button,
|
35 |
-
}
|
36 |
|
37 |
-
|
38 |
Fragment,
|
39 |
Component,
|
40 |
-
}
|
41 |
|
42 |
-
|
43 |
InspectorControls,
|
44 |
RichText,
|
45 |
BlockControls,
|
46 |
AlignmentToolbar,
|
47 |
InspectorAdvancedControls,
|
48 |
-
}
|
49 |
|
50 |
-
|
51 |
applyFilters,
|
52 |
-
}
|
53 |
|
54 |
-
|
55 |
withSelect,
|
56 |
withDispatch,
|
57 |
-
}
|
58 |
|
59 |
-
|
60 |
compose,
|
61 |
-
}
|
62 |
|
63 |
/**
|
64 |
* Regular expression matching invalid anchor characters for replacement.
|
@@ -421,7 +421,7 @@ class GenerateBlockHeadline extends Component {
|
|
421 |
showPanel={ 'Desktop' === this.getDeviceType() ? true : false }
|
422 |
>
|
423 |
<SelectControl
|
424 |
-
label={ __( '
|
425 |
value={ element }
|
426 |
options={ [
|
427 |
{ label: 'h1', value: 'h1' },
|
@@ -1244,6 +1244,8 @@ class GenerateBlockHeadline extends Component {
|
|
1244 |
/>
|
1245 |
}
|
1246 |
|
|
|
|
|
1247 |
<Element
|
1248 |
tagName={ element }
|
1249 |
htmlAttrs={ htmlAttributes }
|
@@ -1262,7 +1264,9 @@ class GenerateBlockHeadline extends Component {
|
|
1262 |
tagName="span"
|
1263 |
value={ content }
|
1264 |
onChange={ ( value ) => setAttributes( { content: value } ) }
|
|
|
1265 |
keepPlaceholderOnFocus={ true }
|
|
|
1266 |
/>
|
1267 |
</span>
|
1268 |
}
|
@@ -1274,7 +1278,9 @@ class GenerateBlockHeadline extends Component {
|
|
1274 |
tagName="span"
|
1275 |
value={ content }
|
1276 |
onChange={ ( value ) => setAttributes( { content: value } ) }
|
|
|
1277 |
keepPlaceholderOnFocus={ true }
|
|
|
1278 |
/>
|
1279 |
}
|
1280 |
</Element>
|
21 |
import './markformat';
|
22 |
import HeadingLevelIcon from './element-icons';
|
23 |
|
24 |
+
import {
|
25 |
__,
|
26 |
sprintf,
|
27 |
+
} from '@wordpress/i18n';
|
28 |
|
29 |
+
import {
|
30 |
TextControl,
|
31 |
ToolbarGroup,
|
32 |
SelectControl,
|
33 |
ToggleControl,
|
34 |
Button,
|
35 |
+
} from '@wordpress/components';
|
36 |
|
37 |
+
import {
|
38 |
Fragment,
|
39 |
Component,
|
40 |
+
} from '@wordpress/element';
|
41 |
|
42 |
+
import {
|
43 |
InspectorControls,
|
44 |
RichText,
|
45 |
BlockControls,
|
46 |
AlignmentToolbar,
|
47 |
InspectorAdvancedControls,
|
48 |
+
} from '@wordpress/block-editor';
|
49 |
|
50 |
+
import {
|
51 |
applyFilters,
|
52 |
+
} from '@wordpress/hooks';
|
53 |
|
54 |
+
import {
|
55 |
withSelect,
|
56 |
withDispatch,
|
57 |
+
} from '@wordpress/data';
|
58 |
|
59 |
+
import {
|
60 |
compose,
|
61 |
+
} from '@wordpress/compose';
|
62 |
|
63 |
/**
|
64 |
* Regular expression matching invalid anchor characters for replacement.
|
421 |
showPanel={ 'Desktop' === this.getDeviceType() ? true : false }
|
422 |
>
|
423 |
<SelectControl
|
424 |
+
label={ __( 'Tag Name', 'generateblocks' ) }
|
425 |
value={ element }
|
426 |
options={ [
|
427 |
{ label: 'h1', value: 'h1' },
|
1244 |
/>
|
1245 |
}
|
1246 |
|
1247 |
+
{ applyFilters( 'generateblocks.editor.beforeHeadlineElement', '', this.props ) }
|
1248 |
+
|
1249 |
<Element
|
1250 |
tagName={ element }
|
1251 |
htmlAttrs={ htmlAttributes }
|
1264 |
tagName="span"
|
1265 |
value={ content }
|
1266 |
onChange={ ( value ) => setAttributes( { content: value } ) }
|
1267 |
+
placeholder={ __( 'Headline', 'generateblocks' ) }
|
1268 |
keepPlaceholderOnFocus={ true }
|
1269 |
+
allowedFormats={ applyFilters( 'generateblocks.editor.headlineDisableFormatting', false, this.props ) ? [] : null }
|
1270 |
/>
|
1271 |
</span>
|
1272 |
}
|
1278 |
tagName="span"
|
1279 |
value={ content }
|
1280 |
onChange={ ( value ) => setAttributes( { content: value } ) }
|
1281 |
+
placeholder={ __( 'Headline', 'generateblocks' ) }
|
1282 |
keepPlaceholderOnFocus={ true }
|
1283 |
+
allowedFormats={ applyFilters( 'generateblocks.editor.headlineDisableFormatting', false, this.props ) ? [] : null }
|
1284 |
/>
|
1285 |
}
|
1286 |
</Element>
|
src/blocks/headline/editor.scss
CHANGED
@@ -5,7 +5,7 @@ mark.gb-highlight {
|
|
5 |
|
6 |
.gb-headline {
|
7 |
span.rich-text {
|
8 |
-
display: block;
|
9 |
}
|
10 |
}
|
11 |
|
5 |
|
6 |
.gb-headline {
|
7 |
span.rich-text {
|
8 |
+
display: inline-block;
|
9 |
}
|
10 |
}
|
11 |
|
src/blocks/headline/element-icons.js
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
/**
|
2 |
* WordPress dependencies
|
3 |
*/
|
4 |
-
|
5 |
Path,
|
6 |
SVG,
|
7 |
-
}
|
8 |
|
9 |
/**
|
10 |
* HeadingLevelIcon props.
|
1 |
/**
|
2 |
* WordPress dependencies
|
3 |
*/
|
4 |
+
import {
|
5 |
Path,
|
6 |
SVG,
|
7 |
+
} from '@wordpress/components';
|
8 |
|
9 |
/**
|
10 |
* HeadingLevelIcon props.
|
src/blocks/headline/markformat.js
CHANGED
@@ -1,32 +1,29 @@
|
|
1 |
-
|
2 |
__,
|
3 |
-
}
|
4 |
|
5 |
-
|
6 |
Fragment,
|
7 |
-
}
|
8 |
|
9 |
-
|
10 |
toggleFormat,
|
11 |
registerFormatType,
|
12 |
-
}
|
13 |
|
14 |
-
|
15 |
RichTextToolbarButton,
|
16 |
RichTextShortcut,
|
17 |
-
}
|
18 |
|
19 |
-
|
20 |
withSelect,
|
21 |
-
}
|
22 |
|
23 |
-
|
24 |
ifCondition,
|
25 |
-
} = wp.compose;
|
26 |
-
|
27 |
-
const {
|
28 |
compose,
|
29 |
-
}
|
30 |
|
31 |
const icon = <svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" fillRule="evenodd" clipRule="evenodd" strokeLinejoin="round" strokeMiterlimit="1.414"><path d="M4.331,15.598l2.193,1.693c0,0 -0.813,1.215 -0.992,1.215c-1.129,0.003 -1.424,0.008 -2.603,-0.001c-0.741,-0.006 -0.04,-0.955 0.187,-1.269c0.502,-0.694 1.215,-1.638 1.215,-1.638Zm7.632,-14.107c0.364,-0.061 5.412,3.896 5.439,4.272c0.031,0.438 -4.887,8.469 -5.635,9.648c-0.251,0.397 -1.185,0.206 -2.064,0.472c-0.801,0.243 -1.89,1.336 -2.193,1.105c-1.047,-0.796 -2.217,-1.646 -3.117,-2.49c-0.367,-0.343 0.388,-1.241 0.405,-2.188c0.015,-0.811 -0.644,-2.029 -0.196,-2.575c0.836,-1.019 6.931,-8.172 7.361,-8.244Zm0.144,1.454l3.95,3.105l-4.972,8.1l-5.197,-4.053l6.219,-7.152Z" /></svg>;
|
32 |
const name = 'generateblocks/mark';
|
1 |
+
import {
|
2 |
__,
|
3 |
+
} from '@wordpress/i18n';
|
4 |
|
5 |
+
import {
|
6 |
Fragment,
|
7 |
+
} from '@wordpress/element';
|
8 |
|
9 |
+
import {
|
10 |
toggleFormat,
|
11 |
registerFormatType,
|
12 |
+
} from '@wordpress/richText';
|
13 |
|
14 |
+
import {
|
15 |
RichTextToolbarButton,
|
16 |
RichTextShortcut,
|
17 |
+
} from '@wordpress/block-editor';
|
18 |
|
19 |
+
import {
|
20 |
withSelect,
|
21 |
+
} from '@wordpress/data';
|
22 |
|
23 |
+
import {
|
24 |
ifCondition,
|
|
|
|
|
|
|
25 |
compose,
|
26 |
+
} from '@wordpress/compose';
|
27 |
|
28 |
const icon = <svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" fillRule="evenodd" clipRule="evenodd" strokeLinejoin="round" strokeMiterlimit="1.414"><path d="M4.331,15.598l2.193,1.693c0,0 -0.813,1.215 -0.992,1.215c-1.129,0.003 -1.424,0.008 -2.603,-0.001c-0.741,-0.006 -0.04,-0.955 0.187,-1.269c0.502,-0.694 1.215,-1.638 1.215,-1.638Zm7.632,-14.107c0.364,-0.061 5.412,3.896 5.439,4.272c0.031,0.438 -4.887,8.469 -5.635,9.648c-0.251,0.397 -1.185,0.206 -2.064,0.472c-0.801,0.243 -1.89,1.336 -2.193,1.105c-1.047,-0.796 -2.217,-1.646 -3.117,-2.49c-0.367,-0.343 0.388,-1.241 0.405,-2.188c0.015,-0.811 -0.644,-2.029 -0.196,-2.575c0.836,-1.019 6.931,-8.172 7.361,-8.244Zm0.144,1.454l3.95,3.105l-4.972,8.1l-5.197,-4.053l6.219,-7.152Z" /></svg>;
|
29 |
const name = 'generateblocks/mark';
|
src/blocks/headline/save.js
CHANGED
@@ -6,13 +6,13 @@ import classnames from 'classnames';
|
|
6 |
import sanitizeSVG from '../../utils/sanitize-svg';
|
7 |
import Element from '../../components/element';
|
8 |
|
9 |
-
|
10 |
RichText,
|
11 |
-
}
|
12 |
|
13 |
-
|
14 |
applyFilters,
|
15 |
-
}
|
16 |
|
17 |
export default ( { attributes } ) => {
|
18 |
const {
|
6 |
import sanitizeSVG from '../../utils/sanitize-svg';
|
7 |
import Element from '../../components/element';
|
8 |
|
9 |
+
import {
|
10 |
RichText,
|
11 |
+
} from '@wordpress/block-editor';
|
12 |
|
13 |
+
import {
|
14 |
applyFilters,
|
15 |
+
} from '@wordpress/hooks';
|
16 |
|
17 |
export default ( { attributes } ) => {
|
18 |
const {
|
src/blocks/headline/transforms.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
/**
|
2 |
* WordPress dependencies
|
3 |
*/
|
4 |
-
|
5 |
createBlock,
|
6 |
-
}
|
7 |
|
8 |
const transforms = {
|
9 |
from: [
|
1 |
/**
|
2 |
* WordPress dependencies
|
3 |
*/
|
4 |
+
import {
|
5 |
createBlock,
|
6 |
+
} from '@wordpress/blocks';
|
7 |
|
8 |
const transforms = {
|
9 |
from: [
|
src/components/apply-filters/index.js
CHANGED
@@ -1,11 +1,13 @@
|
|
1 |
/**
|
2 |
* WordPress dependencies
|
3 |
*/
|
4 |
-
|
5 |
applyFilters,
|
6 |
-
}
|
7 |
|
8 |
-
|
|
|
|
|
9 |
|
10 |
/**
|
11 |
* Component Class
|
1 |
/**
|
2 |
* WordPress dependencies
|
3 |
*/
|
4 |
+
import {
|
5 |
applyFilters,
|
6 |
+
} from '@wordpress/hooks';
|
7 |
|
8 |
+
import {
|
9 |
+
Component,
|
10 |
+
} from '@wordpress/element';
|
11 |
|
12 |
/**
|
13 |
* Component Class
|
src/components/color-picker/index.js
CHANGED
@@ -5,22 +5,26 @@ import getIcon from '../../utils/get-icon';
|
|
5 |
// Import CSS
|
6 |
import './editor.scss';
|
7 |
|
8 |
-
|
|
|
|
|
9 |
|
10 |
-
|
|
|
|
|
11 |
|
12 |
-
|
13 |
Tooltip,
|
14 |
BaseControl,
|
15 |
ColorPicker,
|
16 |
RangeControl,
|
17 |
Popover,
|
18 |
Button,
|
19 |
-
}
|
20 |
|
21 |
-
|
22 |
ColorPalette,
|
23 |
-
}
|
24 |
|
25 |
export default class GenerateBlocksColorPicker extends Component {
|
26 |
constructor() {
|
@@ -59,9 +63,11 @@ export default class GenerateBlocksColorPicker extends Component {
|
|
59 |
<BaseControl
|
60 |
className="gblocks-component-color-picker-wrapper"
|
61 |
>
|
62 |
-
|
63 |
-
<
|
64 |
-
|
|
|
|
|
65 |
|
66 |
<div className="gblocks-color-picker-area">
|
67 |
{ ! this.state.isVisible &&
|
5 |
// Import CSS
|
6 |
import './editor.scss';
|
7 |
|
8 |
+
import {
|
9 |
+
Component,
|
10 |
+
} from '@wordpress/element';
|
11 |
|
12 |
+
import {
|
13 |
+
__,
|
14 |
+
} from '@wordpress/i18n';
|
15 |
|
16 |
+
import {
|
17 |
Tooltip,
|
18 |
BaseControl,
|
19 |
ColorPicker,
|
20 |
RangeControl,
|
21 |
Popover,
|
22 |
Button,
|
23 |
+
} from '@wordpress/components';
|
24 |
|
25 |
+
import {
|
26 |
ColorPalette,
|
27 |
+
} from '@wordpress/block-editor';
|
28 |
|
29 |
export default class GenerateBlocksColorPicker extends Component {
|
30 |
constructor() {
|
63 |
<BaseControl
|
64 |
className="gblocks-component-color-picker-wrapper"
|
65 |
>
|
66 |
+
{ !! label &&
|
67 |
+
<div className="gblocks-color-component-label">
|
68 |
+
<span>{ label }</span>
|
69 |
+
</div>
|
70 |
+
}
|
71 |
|
72 |
<div className="gblocks-color-picker-area">
|
73 |
{ ! this.state.isVisible &&
|
src/components/dimensions/index.js
CHANGED
@@ -9,20 +9,20 @@ import UnitPicker from '../unit-picker';
|
|
9 |
/**
|
10 |
* WordPress dependencies
|
11 |
*/
|
12 |
-
|
13 |
__,
|
14 |
sprintf,
|
15 |
-
}
|
16 |
|
17 |
-
|
18 |
Component,
|
19 |
Fragment,
|
20 |
-
}
|
21 |
|
22 |
-
|
23 |
Button,
|
24 |
Tooltip,
|
25 |
-
}
|
26 |
|
27 |
class DimensionsControl extends Component {
|
28 |
constructor() {
|
@@ -249,6 +249,8 @@ class DimensionsControl extends Component {
|
|
249 |
}
|
250 |
}
|
251 |
|
|
|
|
|
252 |
return (
|
253 |
<Fragment>
|
254 |
<div className={ classes }>
|
@@ -272,7 +274,7 @@ class DimensionsControl extends Component {
|
|
272 |
type="number"
|
273 |
onChange={ onChangeTopValue }
|
274 |
onBlur={ () => {
|
275 |
-
if ( '' === attributes[ attrTop ] && '' !== defaults[ attrTop ] ) {
|
276 |
// If we have no value and a default exists, set to 0 to prevent default from coming back.
|
277 |
if ( this.props.attributes[ this.props.attrSyncUnits ] ) {
|
278 |
this.onChangeAll( '0' );
|
@@ -297,7 +299,7 @@ class DimensionsControl extends Component {
|
|
297 |
type="number"
|
298 |
onChange={ onChangeRightValue }
|
299 |
onBlur={ () => {
|
300 |
-
if ( '' === attributes[ attrRight ] && '' !== defaults[ attrRight ] ) {
|
301 |
// If we have no value and a default exists, set to 0 to prevent default from coming back.
|
302 |
if ( this.props.attributes[ this.props.attrSyncUnits ] ) {
|
303 |
this.onChangeAll( '0' );
|
@@ -322,7 +324,7 @@ class DimensionsControl extends Component {
|
|
322 |
type="number"
|
323 |
onChange={ onChangeBottomValue }
|
324 |
onBlur={ () => {
|
325 |
-
if ( '' === attributes[ attrBottom ] && '' !== defaults[ attrBottom ] ) {
|
326 |
// If we have no value and a default exists, set to 0 to prevent default from coming back.
|
327 |
if ( this.props.attributes[ this.props.attrSyncUnits ] ) {
|
328 |
this.onChangeAll( '0' );
|
@@ -347,7 +349,7 @@ class DimensionsControl extends Component {
|
|
347 |
type="number"
|
348 |
onChange={ onChangeLeftValue }
|
349 |
onBlur={ () => {
|
350 |
-
if ( '' === attributes[ attrLeft ] && '' !== defaults[ attrLeft ] ) {
|
351 |
// If we have no value and a default exists, set to 0 to prevent default from coming back.
|
352 |
if ( this.props.attributes[ this.props.attrSyncUnits ] ) {
|
353 |
this.onChangeAll( '0' );
|
9 |
/**
|
10 |
* WordPress dependencies
|
11 |
*/
|
12 |
+
import {
|
13 |
__,
|
14 |
sprintf,
|
15 |
+
} from '@wordpress/i18n';
|
16 |
|
17 |
+
import {
|
18 |
Component,
|
19 |
Fragment,
|
20 |
+
} from '@wordpress/element';
|
21 |
|
22 |
+
import {
|
23 |
Button,
|
24 |
Tooltip,
|
25 |
+
} from '@wordpress/components';
|
26 |
|
27 |
class DimensionsControl extends Component {
|
28 |
constructor() {
|
249 |
}
|
250 |
}
|
251 |
|
252 |
+
const usingGlobalStyle = 'undefined' !== typeof attributes.useGlobalStyle && attributes.useGlobalStyle;
|
253 |
+
|
254 |
return (
|
255 |
<Fragment>
|
256 |
<div className={ classes }>
|
274 |
type="number"
|
275 |
onChange={ onChangeTopValue }
|
276 |
onBlur={ () => {
|
277 |
+
if ( ! usingGlobalStyle && '' === attributes[ attrTop ] && '' !== defaults[ attrTop ] ) {
|
278 |
// If we have no value and a default exists, set to 0 to prevent default from coming back.
|
279 |
if ( this.props.attributes[ this.props.attrSyncUnits ] ) {
|
280 |
this.onChangeAll( '0' );
|
299 |
type="number"
|
300 |
onChange={ onChangeRightValue }
|
301 |
onBlur={ () => {
|
302 |
+
if ( ! usingGlobalStyle && '' === attributes[ attrRight ] && '' !== defaults[ attrRight ] ) {
|
303 |
// If we have no value and a default exists, set to 0 to prevent default from coming back.
|
304 |
if ( this.props.attributes[ this.props.attrSyncUnits ] ) {
|
305 |
this.onChangeAll( '0' );
|
324 |
type="number"
|
325 |
onChange={ onChangeBottomValue }
|
326 |
onBlur={ () => {
|
327 |
+
if ( ! usingGlobalStyle && '' === attributes[ attrBottom ] && '' !== defaults[ attrBottom ] ) {
|
328 |
// If we have no value and a default exists, set to 0 to prevent default from coming back.
|
329 |
if ( this.props.attributes[ this.props.attrSyncUnits ] ) {
|
330 |
this.onChangeAll( '0' );
|
349 |
type="number"
|
350 |
onChange={ onChangeLeftValue }
|
351 |
onBlur={ () => {
|
352 |
+
if ( ! usingGlobalStyle && '' === attributes[ attrLeft ] && '' !== defaults[ attrLeft ] ) {
|
353 |
// If we have no value and a default exists, set to 0 to prevent default from coming back.
|
354 |
if ( this.props.attributes[ this.props.attrSyncUnits ] ) {
|
355 |
this.onChangeAll( '0' );
|
src/components/element/index.js
CHANGED
@@ -1,4 +1,6 @@
|
|
1 |
-
|
|
|
|
|
2 |
|
3 |
export default function Element( { tagName, htmlAttrs, children } ) {
|
4 |
return createElement(
|
1 |
+
import {
|
2 |
+
createElement,
|
3 |
+
} from '@wordpress/element';
|
4 |
|
5 |
export default function Element( { tagName, htmlAttrs, children } ) {
|
6 |
return createElement(
|
src/components/gradient/index.js
CHANGED
@@ -7,16 +7,22 @@ import ColorPicker from '../color-picker';
|
|
7 |
/**
|
8 |
* WordPress dependencies
|
9 |
*/
|
10 |
-
|
11 |
-
|
|
|
12 |
|
13 |
-
|
|
|
|
|
|
|
|
|
|
|
14 |
BaseControl,
|
15 |
ToggleControl,
|
16 |
TextControl,
|
17 |
RangeControl,
|
18 |
SelectControl,
|
19 |
-
}
|
20 |
|
21 |
/**
|
22 |
* Typography Component
|
@@ -129,9 +135,11 @@ class GradientControl extends Component {
|
|
129 |
} );
|
130 |
} }
|
131 |
onBlur={ () => {
|
132 |
-
|
133 |
-
|
134 |
-
|
|
|
|
|
135 |
} }
|
136 |
onClick={ ( e ) => {
|
137 |
// Make sure onBlur fires in Firefox.
|
@@ -177,9 +185,11 @@ class GradientControl extends Component {
|
|
177 |
} );
|
178 |
} }
|
179 |
onBlur={ () => {
|
180 |
-
|
181 |
-
|
182 |
-
|
|
|
|
|
183 |
} }
|
184 |
onClick={ ( e ) => {
|
185 |
// Make sure onBlur fires in Firefox.
|
7 |
/**
|
8 |
* WordPress dependencies
|
9 |
*/
|
10 |
+
import {
|
11 |
+
__,
|
12 |
+
} from '@wordpress/i18n';
|
13 |
|
14 |
+
import {
|
15 |
+
Component,
|
16 |
+
Fragment,
|
17 |
+
} from '@wordpress/element';
|
18 |
+
|
19 |
+
import {
|
20 |
BaseControl,
|
21 |
ToggleControl,
|
22 |
TextControl,
|
23 |
RangeControl,
|
24 |
SelectControl,
|
25 |
+
} from '@wordpress/components';
|
26 |
|
27 |
/**
|
28 |
* Typography Component
|
135 |
} );
|
136 |
} }
|
137 |
onBlur={ () => {
|
138 |
+
if ( attributes[ attrGradientColorStopOne ] || 0 === attributes[ attrGradientColorStopOne ] ) {
|
139 |
+
setAttributes( {
|
140 |
+
[ attrGradientColorStopOne ]: parseFloat( attributes[ attrGradientColorStopOne ] ),
|
141 |
+
} );
|
142 |
+
}
|
143 |
} }
|
144 |
onClick={ ( e ) => {
|
145 |
// Make sure onBlur fires in Firefox.
|
185 |
} );
|
186 |
} }
|
187 |
onBlur={ () => {
|
188 |
+
if ( attributes[ attrGradientColorStopTwo ] || 0 === attributes[ attrGradientColorStopTwo ] ) {
|
189 |
+
setAttributes( {
|
190 |
+
[ attrGradientColorStopTwo ]: parseFloat( attributes[ attrGradientColorStopTwo ] ),
|
191 |
+
} );
|
192 |
+
}
|
193 |
} }
|
194 |
onClick={ ( e ) => {
|
195 |
// Make sure onBlur fires in Firefox.
|
src/components/icon-picker/index.js
CHANGED
@@ -9,17 +9,17 @@ import sanitizeSVG from '../../utils/sanitize-svg';
|
|
9 |
/**
|
10 |
* WordPress dependencies
|
11 |
*/
|
12 |
-
|
13 |
__,
|
14 |
-
}
|
15 |
|
16 |
-
|
17 |
Component,
|
18 |
Fragment,
|
19 |
renderToString,
|
20 |
-
}
|
21 |
|
22 |
-
|
23 |
BaseControl,
|
24 |
SelectControl,
|
25 |
ToggleControl,
|
@@ -28,11 +28,11 @@ const {
|
|
28 |
Button,
|
29 |
PanelBody,
|
30 |
PanelRow,
|
31 |
-
}
|
32 |
|
33 |
-
|
34 |
applyFilters,
|
35 |
-
}
|
36 |
|
37 |
/**
|
38 |
* Typography Component
|
9 |
/**
|
10 |
* WordPress dependencies
|
11 |
*/
|
12 |
+
import {
|
13 |
__,
|
14 |
+
} from '@wordpress/i18n';
|
15 |
|
16 |
+
import {
|
17 |
Component,
|
18 |
Fragment,
|
19 |
renderToString,
|
20 |
+
} from '@wordpress/element';
|
21 |
|
22 |
+
import {
|
23 |
BaseControl,
|
24 |
SelectControl,
|
25 |
ToggleControl,
|
28 |
Button,
|
29 |
PanelBody,
|
30 |
PanelRow,
|
31 |
+
} from '@wordpress/components';
|
32 |
|
33 |
+
import {
|
34 |
applyFilters,
|
35 |
+
} from '@wordpress/hooks';
|
36 |
|
37 |
/**
|
38 |
* Typography Component
|
src/components/icon-picker/svgs-general.js
CHANGED
@@ -1,7 +1,9 @@
|
|
1 |
/**
|
2 |
* WordPress dependencies
|
3 |
*/
|
4 |
-
|
|
|
|
|
5 |
|
6 |
const svgs = {
|
7 |
clock: {
|
1 |
/**
|
2 |
* WordPress dependencies
|
3 |
*/
|
4 |
+
import {
|
5 |
+
_x,
|
6 |
+
} from '@wordpress/i18n';
|
7 |
|
8 |
const svgs = {
|
9 |
clock: {
|
src/components/icon-picker/svgs-social.js
CHANGED
@@ -1,7 +1,9 @@
|
|
1 |
/**
|
2 |
* WordPress dependencies
|
3 |
*/
|
4 |
-
|
|
|
|
|
5 |
|
6 |
const svgs = {
|
7 |
facebook: {
|
1 |
/**
|
2 |
* WordPress dependencies
|
3 |
*/
|
4 |
+
import {
|
5 |
+
_x,
|
6 |
+
} from '@wordpress/i18n';
|
7 |
|
8 |
const svgs = {
|
9 |
facebook: {
|
src/components/panel-area/index.js
CHANGED
@@ -1,16 +1,16 @@
|
|
1 |
import ApplyFilters from '../apply-filters/';
|
2 |
|
3 |
-
|
4 |
PanelBody,
|
5 |
-
}
|
6 |
|
7 |
-
|
8 |
Component,
|
9 |
-
}
|
10 |
|
11 |
-
|
12 |
applyFilters,
|
13 |
-
}
|
14 |
|
15 |
/**
|
16 |
* Component Class
|
@@ -58,11 +58,15 @@ export default class PanelArea extends Component {
|
|
58 |
icon={ icon }
|
59 |
className={ className }
|
60 |
>
|
61 |
-
{
|
|
|
|
|
62 |
</PanelBody>
|
63 |
) : (
|
64 |
<PanelBody>
|
65 |
-
{
|
|
|
|
|
66 |
</PanelBody>
|
67 |
) }
|
68 |
</ApplyFilters>
|
1 |
import ApplyFilters from '../apply-filters/';
|
2 |
|
3 |
+
import {
|
4 |
PanelBody,
|
5 |
+
} from '@wordpress/components';
|
6 |
|
7 |
+
import {
|
8 |
Component,
|
9 |
+
} from '@wordpress/element';
|
10 |
|
11 |
+
import {
|
12 |
applyFilters,
|
13 |
+
} from '@wordpress/hooks';
|
14 |
|
15 |
/**
|
16 |
* Component Class
|
58 |
icon={ icon }
|
59 |
className={ className }
|
60 |
>
|
61 |
+
{
|
62 |
+
applyFilters( 'generateblocks.editor.panelContents', children, id, this.props )
|
63 |
+
}
|
64 |
</PanelBody>
|
65 |
) : (
|
66 |
<PanelBody>
|
67 |
+
{
|
68 |
+
applyFilters( 'generateblocks.editor.panelContents', children, id, this.props )
|
69 |
+
}
|
70 |
</PanelBody>
|
71 |
) }
|
72 |
</ApplyFilters>
|
src/components/responsive-tabs/index.js
CHANGED
@@ -1,22 +1,22 @@
|
|
1 |
import './editor.scss';
|
2 |
|
3 |
-
|
4 |
Component,
|
5 |
Fragment,
|
6 |
-
}
|
7 |
|
8 |
-
|
9 |
__,
|
10 |
-
}
|
11 |
|
12 |
-
|
13 |
Tooltip,
|
14 |
Button,
|
15 |
-
}
|
16 |
|
17 |
-
|
18 |
applyFilters,
|
19 |
-
}
|
20 |
|
21 |
export default class ResponsiveTabs extends Component {
|
22 |
render() {
|
1 |
import './editor.scss';
|
2 |
|
3 |
+
import {
|
4 |
Component,
|
5 |
Fragment,
|
6 |
+
} from '@wordpress/element';
|
7 |
|
8 |
+
import {
|
9 |
__,
|
10 |
+
} from '@wordpress/i18n';
|
11 |
|
12 |
+
import {
|
13 |
Tooltip,
|
14 |
Button,
|
15 |
+
} from '@wordpress/components';
|
16 |
|
17 |
+
import {
|
18 |
applyFilters,
|
19 |
+
} from '@wordpress/hooks';
|
20 |
|
21 |
export default class ResponsiveTabs extends Component {
|
22 |
render() {
|
src/components/typography/index.js
CHANGED
@@ -8,22 +8,22 @@ import UnitPicker from '../unit-picker';
|
|
8 |
/**
|
9 |
* WordPress dependencies
|
10 |
*/
|
11 |
-
|
12 |
__,
|
13 |
-
}
|
14 |
|
15 |
-
|
16 |
Component,
|
17 |
Fragment,
|
18 |
-
}
|
19 |
|
20 |
-
|
21 |
BaseControl,
|
22 |
SelectControl,
|
23 |
ToggleControl,
|
24 |
TextControl,
|
25 |
Button,
|
26 |
-
}
|
27 |
|
28 |
/**
|
29 |
* Typography Component
|
8 |
/**
|
9 |
* WordPress dependencies
|
10 |
*/
|
11 |
+
import {
|
12 |
__,
|
13 |
+
} from '@wordpress/i18n';
|
14 |
|
15 |
+
import {
|
16 |
Component,
|
17 |
Fragment,
|
18 |
+
} from '@wordpress/element';
|
19 |
|
20 |
+
import {
|
21 |
BaseControl,
|
22 |
SelectControl,
|
23 |
ToggleControl,
|
24 |
TextControl,
|
25 |
Button,
|
26 |
+
} from '@wordpress/components';
|
27 |
|
28 |
/**
|
29 |
* Typography Component
|
src/components/unit-picker/index.js
CHANGED
@@ -1,21 +1,21 @@
|
|
1 |
// Import CSS
|
2 |
import './editor.scss';
|
3 |
|
4 |
-
|
5 |
Component,
|
6 |
-
}
|
7 |
|
8 |
-
|
9 |
__,
|
10 |
sprintf,
|
11 |
_x,
|
12 |
-
}
|
13 |
|
14 |
-
|
15 |
ButtonGroup,
|
16 |
Button,
|
17 |
Tooltip,
|
18 |
-
}
|
19 |
|
20 |
export default class UnitChooser extends Component {
|
21 |
render() {
|
1 |
// Import CSS
|
2 |
import './editor.scss';
|
3 |
|
4 |
+
import {
|
5 |
Component,
|
6 |
+
} from '@wordpress/element';
|
7 |
|
8 |
+
import {
|
9 |
__,
|
10 |
sprintf,
|
11 |
_x,
|
12 |
+
} from '@wordpress/i18n';
|
13 |
|
14 |
+
import {
|
15 |
ButtonGroup,
|
16 |
Button,
|
17 |
Tooltip,
|
18 |
+
} from '@wordpress/components';
|
19 |
|
20 |
export default class UnitChooser extends Component {
|
21 |
render() {
|
src/components/url-input/index.js
CHANGED
@@ -3,22 +3,26 @@ import classnames from 'classnames';
|
|
3 |
// Import CSS
|
4 |
import './editor.scss';
|
5 |
|
6 |
-
|
7 |
__,
|
8 |
-
}
|
9 |
|
10 |
-
|
11 |
Component,
|
12 |
-
}
|
13 |
|
14 |
-
|
15 |
Button,
|
16 |
ToggleControl,
|
17 |
-
}
|
18 |
|
19 |
-
|
20 |
URLInput,
|
21 |
-
}
|
|
|
|
|
|
|
|
|
22 |
|
23 |
export default class ButtonURLInput extends Component {
|
24 |
constructor() {
|
@@ -92,6 +96,8 @@ export default class ButtonURLInput extends Component {
|
|
92 |
</div>
|
93 |
{ moreOptions &&
|
94 |
<div className="gblocks-component-url-input-more-options">
|
|
|
|
|
95 |
<ToggleControl
|
96 |
label={ __( 'Open link in a new tab', 'generateblocks' ) }
|
97 |
checked={ target || '' }
|
3 |
// Import CSS
|
4 |
import './editor.scss';
|
5 |
|
6 |
+
import {
|
7 |
__,
|
8 |
+
} from '@wordpress/i18n';
|
9 |
|
10 |
+
import {
|
11 |
Component,
|
12 |
+
} from '@wordpress/element';
|
13 |
|
14 |
+
import {
|
15 |
Button,
|
16 |
ToggleControl,
|
17 |
+
} from '@wordpress/components';
|
18 |
|
19 |
+
import {
|
20 |
URLInput,
|
21 |
+
} from '@wordpress/block-editor';
|
22 |
+
|
23 |
+
import {
|
24 |
+
applyFilters,
|
25 |
+
} from '@wordpress/hooks';
|
26 |
|
27 |
export default class ButtonURLInput extends Component {
|
28 |
constructor() {
|
96 |
</div>
|
97 |
{ moreOptions &&
|
98 |
<div className="gblocks-component-url-input-more-options">
|
99 |
+
{ applyFilters( 'generateblocks.editor.urlInputMoreOptions', '', this.props, this.state ) }
|
100 |
+
|
101 |
<ToggleControl
|
102 |
label={ __( 'Open link in a new tab', 'generateblocks' ) }
|
103 |
checked={ target || '' }
|
src/dashboard.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
/**
|
2 |
* WordPress dependencies
|
3 |
*/
|
4 |
-
|
5 |
__,
|
6 |
-
}
|
7 |
|
8 |
-
|
9 |
BaseControl,
|
10 |
Button,
|
11 |
PanelBody,
|
@@ -14,21 +14,19 @@ const {
|
|
14 |
Spinner,
|
15 |
ToggleControl,
|
16 |
SelectControl,
|
17 |
-
}
|
18 |
|
19 |
-
|
20 |
render,
|
21 |
Component,
|
22 |
Fragment,
|
23 |
-
}
|
24 |
|
25 |
-
|
26 |
-
apiFetch,
|
27 |
-
} = wp;
|
28 |
|
29 |
-
|
30 |
applyFilters,
|
31 |
-
}
|
32 |
|
33 |
/**
|
34 |
* Internal dependencies
|
1 |
/**
|
2 |
* WordPress dependencies
|
3 |
*/
|
4 |
+
import {
|
5 |
__,
|
6 |
+
} from '@wordpress/i18n';
|
7 |
|
8 |
+
import {
|
9 |
BaseControl,
|
10 |
Button,
|
11 |
PanelBody,
|
14 |
Spinner,
|
15 |
ToggleControl,
|
16 |
SelectControl,
|
17 |
+
} from '@wordpress/components';
|
18 |
|
19 |
+
import {
|
20 |
render,
|
21 |
Component,
|
22 |
Fragment,
|
23 |
+
} from '@wordpress/element';
|
24 |
|
25 |
+
import apiFetch from '@wordpress/api-fetch';
|
|
|
|
|
26 |
|
27 |
+
import {
|
28 |
applyFilters,
|
29 |
+
} from '@wordpress/hooks';
|
30 |
|
31 |
/**
|
32 |
* Internal dependencies
|
src/dashboard.scss
CHANGED
@@ -8,30 +8,36 @@ $settings-container-width: 750px;
|
|
8 |
.gblocks-dashboard-header {
|
9 |
background: #fff;
|
10 |
border-bottom: 1px solid #e2e4e7;
|
11 |
-
padding:
|
12 |
text-align: center;
|
|
|
|
|
|
|
13 |
|
14 |
h1 {
|
15 |
-
font-size:
|
16 |
font-weight: 600;
|
17 |
padding-bottom: 0;
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
|
|
|
|
|
|
24 |
}
|
25 |
}
|
26 |
|
27 |
.gblocks-navigation {
|
28 |
background: #fff;
|
29 |
display: flex;
|
30 |
-
justify-content: center;
|
31 |
|
32 |
a {
|
33 |
-
padding:
|
34 |
-
display:
|
|
|
35 |
color: inherit;
|
36 |
text-decoration: none;
|
37 |
|
@@ -144,4 +150,9 @@ $settings-container-width: 750px;
|
|
144 |
margin-bottom: 20px;
|
145 |
margin-left: 22px;
|
146 |
}
|
|
|
|
|
|
|
|
|
|
|
147 |
}
|
8 |
.gblocks-dashboard-header {
|
9 |
background: #fff;
|
10 |
border-bottom: 1px solid #e2e4e7;
|
11 |
+
padding: 0 20px;
|
12 |
text-align: center;
|
13 |
+
display: flex;
|
14 |
+
justify-content: space-between;
|
15 |
+
align-items: center;
|
16 |
|
17 |
h1 {
|
18 |
+
font-size: 17px;
|
19 |
font-weight: 600;
|
20 |
padding-bottom: 0;
|
21 |
+
display: flex;
|
22 |
+
align-items: center;
|
23 |
+
|
24 |
+
svg {
|
25 |
+
width: 1em;
|
26 |
+
height: 1em;
|
27 |
+
padding-right: 10px;
|
28 |
+
fill: #006eb7;
|
29 |
+
}
|
30 |
}
|
31 |
}
|
32 |
|
33 |
.gblocks-navigation {
|
34 |
background: #fff;
|
35 |
display: flex;
|
|
|
36 |
|
37 |
a {
|
38 |
+
padding: 1rem;
|
39 |
+
display: flex;
|
40 |
+
align-items: center;
|
41 |
color: inherit;
|
42 |
text-decoration: none;
|
43 |
|
150 |
margin-bottom: 20px;
|
151 |
margin-left: 22px;
|
152 |
}
|
153 |
+
|
154 |
+
&.edit-php #wpbody-content .wrap {
|
155 |
+
padding: 0 20px;
|
156 |
+
margin: 0;
|
157 |
+
}
|
158 |
}
|
src/utils/get-background-image/index.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
import hexToRGBA from '../hex-to-rgba';
|
2 |
|
3 |
-
|
4 |
applyFilters,
|
5 |
-
}
|
6 |
|
7 |
export default function getBackgroundImageCSS( type, props ) {
|
8 |
const {
|
1 |
import hexToRGBA from '../hex-to-rgba';
|
2 |
|
3 |
+
import {
|
4 |
applyFilters,
|
5 |
+
} from '@wordpress/hooks';
|
6 |
|
7 |
export default function getBackgroundImageCSS( type, props ) {
|
8 |
const {
|