Version Description
- Markup change: Remove headline-wrapper element from Headlines with icons
- Markup change: Change button-text class to gb-button-text in Button block
- Markup change: Only output inner gb-button-text span if using an icon
- Markup change: Output Button block as span element if no URL exists
- Markup change: Add gb-headline-text span if using an icon in Headline block
- New: Shape dividers in the Container block
- New: Make all blocks fully responsive when using editor responsive previews
- New: Add option to apply gradient as a pseudo element
- New: Add option to choose background image size
- New: Add border radius options to Headline block
- New: frontend.insideContainer filter in editor for Container block
- New: frontend.beforeContainerClose filter in editor for Container block
- New: generateblocks_after_container_open filter in frontend for Container block
- New: generateblocks_inside_container filter in frontend for Container block
- New: generateblocks_before_container_close filter in frontend for Container block
- New: generateblocks_container_tagname filter in frontend for Container block
- New: Add div as Headline block element choice
- New: Add span as Headline block element choice
- New: Add inner z-index option to Container
- New: Aside option as Container tag name
- New: generateblocks_dynamic_css_priority filter
- New: Add support for desktop/tablet-only CSS
- Fix: Stacked button alignment in the editor
- Fix: Broken background image upload when using official AMP plugin
- Fix: Button mobile border-radius
- Fix: Check if grid data is an array before looping
- Fix: Container tablet/mobile font size values
- Fix: Button text not selectable in editor using Firefox
- Tweak: Bump required WP version to 5.4
- Tweak: Make Container block wrapper HTML dynamic
- Tweak: Make Grid block wrapper HTML dynamic
- Tweak: Make Button Container block wrapper HTML dynamic
- Tweak: Move custom classes to core CSS classes field
- Tweak: Move custom ID to core anchor field
- Tweak: Remove deprecated isLarge prop in editor
- Tweak: Better stacked button alignment on frontend
- Tweak: Remove old browser prefixes
- Tweak: Update DOMPurify
- Tweak: Don't strip protocol from dynamic stylesheet URI
- Tweak: Move controls from our Advanced panel into core Advanced panel
- Tweak: Move text alignment options in all blocks to the Block Toolbar
- Tweak: Remove block margin in the editor
- Tweak: Reverse grid gap when using RTL
- Tweak: Add default inherit option to tablet/mobile Headline icon alignment
- Tweak: Change frontend.insideContainer filter to frontend.afterContainerOpen
- Tweak: Update color picker component UI
- Tweak: Make icon sets filterable
- Tweak: Move Container element tag option to Layout panel
- Tweak: Move Container z-index options to Spacing panel
- Tweak: Disable fixed background images on mobile
- Tweak: Rebuild Headline Element toolbar component
- Tweak: Add tag name to Headline CSS selector to improve CSS conflicts
- Tweak: Changed order of generateblocks_block_css_data params
- Tweak: Use device-specific media queries for remove vertical gap option
- Tweak: Change generateblocks.editor.desktopCSS filter to generateblocks.editor.mainCSS
- Tweak: Rebuild settings area using React
- Tweak: Remove placeholder text from Headline block
- Tweak: Move GenerateBlocks admin menu item to top level
- Tweak: Regenerate static CSS files after plugin update
- Tweak: Adjust unit picker default styling
- Tweak: Rebuild background image upload UI
Download this release
Release Info
Developer | edge22 |
Plugin | GenerateBlocks |
Version | 1.2.0 |
Comparing to | |
See all releases |
Code changes from version 1.1.2 to 1.2.0
- assets/css/dashboard-global.css +18 -0
- assets/css/dashboard.css +0 -82
- assets/fonts/generateblocks.eot +0 -0
- assets/fonts/generateblocks.svg +11 -0
- assets/fonts/generateblocks.ttf +0 -0
- assets/fonts/generateblocks.woff +0 -0
- assets/js/purify.js +0 -1217
- assets/js/purify.min.js +0 -3
- assets/js/purify.min.js.map +0 -1
- assets/js/scripts.js +0 -15
- dist/blocks.asset.php +1 -0
- dist/blocks.build.js +0 -1
- dist/blocks.css +28 -0
- dist/blocks.editor.build.css +0 -13
- dist/blocks.js +15 -0
- dist/blocks.style.build.css +0 -1
- dist/dashboard.asset.php +1 -0
- dist/dashboard.css +2 -0
- dist/dashboard.js +1 -0
- includes/class-do-css.php +1 -0
- includes/class-enqueue-css.php +22 -59
- includes/class-plugin-update.php +3 -3
- includes/class-render-blocks.php +257 -0
- includes/class-rest.php +209 -0
- includes/class-settings.php +49 -141
- includes/dashboard.php +108 -38
- includes/defaults.php +32 -1
- includes/functions.php +284 -47
- includes/general.php +60 -13
- includes/generate-css.php +273 -147
assets/css/dashboard-global.css
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
@font-face {
|
2 |
+
font-family: 'generateblocks';
|
3 |
+
src: url('../fonts/generateblocks.eot');
|
4 |
+
src: url('../fonts/generateblocks.eot#iefix') format('embedded-opentype'),
|
5 |
+
url('../fonts/generateblocks.ttf') format('truetype'),
|
6 |
+
url('../fonts/generateblocks.woff') format('woff'),
|
7 |
+
url('../fonts/generateblocks.svg') format('svg');
|
8 |
+
font-weight: normal;
|
9 |
+
font-style: normal;
|
10 |
+
font-display: block;
|
11 |
+
}
|
12 |
+
|
13 |
+
#adminmenu #toplevel_page_generateblocks div.wp-menu-image:before {
|
14 |
+
content: "\e900";
|
15 |
+
font-family: generateblocks;
|
16 |
+
font-size: 18px;
|
17 |
+
margin-top: 1px;
|
18 |
+
}
|
assets/css/dashboard.css
CHANGED
@@ -1,22 +1,3 @@
|
|
1 |
-
.gblocks-dashboard-wrap {
|
2 |
-
margin: 0;
|
3 |
-
overflow: hidden;
|
4 |
-
}
|
5 |
-
|
6 |
-
.gblocks-dashboard-header {
|
7 |
-
background: #fff;
|
8 |
-
border-bottom: 1px solid #e2e4e7;
|
9 |
-
padding: 40px 0 0;
|
10 |
-
text-align: center;
|
11 |
-
}
|
12 |
-
|
13 |
-
.gblocks-dashboard-header h1 {
|
14 |
-
font-size: 25px;
|
15 |
-
font-weight: 600;
|
16 |
-
padding-bottom: 0;
|
17 |
-
margin-bottom: 20px;
|
18 |
-
}
|
19 |
-
|
20 |
h1.gblocks-logo {
|
21 |
display: flex;
|
22 |
align-items: center;
|
@@ -34,29 +15,6 @@ h1.gblocks-logo {
|
|
34 |
border-radius: 2px;
|
35 |
}
|
36 |
|
37 |
-
.gblocks-dashboard-header-content {
|
38 |
-
max-width: 700px;
|
39 |
-
margin: 0 auto;
|
40 |
-
}
|
41 |
-
|
42 |
-
.gblocks-navigation {
|
43 |
-
background: #fff;
|
44 |
-
display: flex;
|
45 |
-
justify-content: center;
|
46 |
-
}
|
47 |
-
|
48 |
-
.gblocks-navigation a {
|
49 |
-
padding: 0.5rem 1rem 1rem;
|
50 |
-
display: inline-flex;
|
51 |
-
color: inherit;
|
52 |
-
text-decoration: none;
|
53 |
-
}
|
54 |
-
|
55 |
-
.gblocks-navigation a.active {
|
56 |
-
font-weight: 600;
|
57 |
-
box-shadow: inset 0 -3px #007cba;
|
58 |
-
}
|
59 |
-
|
60 |
.gblocks-sub-navigation {
|
61 |
display: flex;
|
62 |
justify-content: center;
|
@@ -196,35 +154,6 @@ h1.gblocks-logo {
|
|
196 |
color: #000;
|
197 |
}
|
198 |
|
199 |
-
.gblocks-settings-content {
|
200 |
-
padding: 60px;
|
201 |
-
max-width: 800px;
|
202 |
-
margin-left: auto;
|
203 |
-
margin-right: auto;
|
204 |
-
}
|
205 |
-
|
206 |
-
#generateblocks-regenerate-css-files-button {
|
207 |
-
display: flex;
|
208 |
-
align-items: center;
|
209 |
-
}
|
210 |
-
|
211 |
-
.generateblocks-button-spinner:before {
|
212 |
-
font: normal 20px/.5 dashicons;
|
213 |
-
speak: none;
|
214 |
-
content: "\f463";
|
215 |
-
padding-right: 3px;
|
216 |
-
}
|
217 |
-
|
218 |
-
.generateblocks-button-spinner.loading:before {
|
219 |
-
-webkit-animation: rotation 1s infinite linear;
|
220 |
-
animation: rotation 1s infinite linear;
|
221 |
-
}
|
222 |
-
|
223 |
-
.generateblocks-button-spinner.success:before {
|
224 |
-
content: "\f147";
|
225 |
-
color: #46b450;
|
226 |
-
}
|
227 |
-
|
228 |
.gblocks-getting-started {
|
229 |
padding: 0 60px 60px;
|
230 |
text-align: center;
|
@@ -250,17 +179,6 @@ h1.gblocks-logo {
|
|
250 |
margin: 0 auto 40px;
|
251 |
}
|
252 |
|
253 |
-
.settings_page_generateblocks #wpcontent,
|
254 |
-
.settings_page_generateblocks-settings #wpcontent {
|
255 |
-
padding-left: 0;
|
256 |
-
}
|
257 |
-
|
258 |
-
.settings_page_generateblocks .update-nag,
|
259 |
-
.settings_page_generateblocks-settings .update-nag {
|
260 |
-
margin-bottom: 20px;
|
261 |
-
margin-left: 22px;
|
262 |
-
}
|
263 |
-
|
264 |
@media (max-width: 1180px){
|
265 |
.gblocks-inside-generatepress {
|
266 |
flex-wrap: wrap;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
h1.gblocks-logo {
|
2 |
display: flex;
|
3 |
align-items: center;
|
15 |
border-radius: 2px;
|
16 |
}
|
17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
.gblocks-sub-navigation {
|
19 |
display: flex;
|
20 |
justify-content: center;
|
154 |
color: #000;
|
155 |
}
|
156 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
157 |
.gblocks-getting-started {
|
158 |
padding: 0 60px 60px;
|
159 |
text-align: center;
|
179 |
margin: 0 auto 40px;
|
180 |
}
|
181 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
182 |
@media (max-width: 1180px){
|
183 |
.gblocks-inside-generatepress {
|
184 |
flex-wrap: wrap;
|
assets/fonts/generateblocks.eot
ADDED
Binary file
|
assets/fonts/generateblocks.svg
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" standalone="no"?>
|
2 |
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
|
3 |
+
<svg xmlns="http://www.w3.org/2000/svg">
|
4 |
+
<metadata>Generated by IcoMoon</metadata>
|
5 |
+
<defs>
|
6 |
+
<font id="icomoon" horiz-adv-x="1024">
|
7 |
+
<font-face units-per-em="1024" ascent="960" descent="-64" />
|
8 |
+
<missing-glyph horiz-adv-x="1024" />
|
9 |
+
<glyph unicode=" " horiz-adv-x="512" d="" />
|
10 |
+
<glyph unicode="" glyph-name="gb-icon-black" horiz-adv-x="852" d="M113.88 421.395v216.382c0 0.273 0.085 0.528 0.238 0.749 0.153 0.204 0.358 0.375 0.613 0.477l551.243 196.147c0.255 0.085 0.477 0.255 0.613 0.477 0.153 0.204 0.238 0.477 0.238 0.749v122.328c0 0.443-0.221 0.818-0.545 1.056-0.324 0.221-0.749 0.307-1.175 0.153l-664.271-236.344c-0.255-0.085-0.477-0.255-0.613-0.477-0.136-0.255-0.221-0.511-0.221-0.783v-649.147c0-0.443 0.221-0.818 0.545-1.056s0.749-0.307 1.175-0.153l111.291 39.618c0.255 0.085 0.477 0.255 0.613 0.477s0.238 0.477 0.238 0.749v199.98l0.017 108.617c-0.017 0 0 0 0 0zM407.914 449.431l442.848 157.552c0.255 0.085 0.477 0.255 0.613 0.477s0.255 0.477 0.255 0.749v214.577c0 0.443-0.221 0.818-0.545 1.056-0.324 0.221-0.749 0.307-1.175 0.153l-664.271-236.344c-0.255-0.085-0.477-0.255-0.613-0.477-0.153-0.204-0.238-0.477-0.238-0.749v-649.147c0-0.443 0.221-0.818 0.545-1.056 0.324-0.221 0.749-0.307 1.175-0.153l664.271 236.378c0.255 0.085 0.477 0.255 0.613 0.477s0.238 0.426 0.238 0.698v323.211c0 0.443-0.221 0.818-0.545 1.056-0.324 0.221-0.749 0.307-1.175 0.153l-219.704-78.163c-0.255-0.085-0.477-0.255-0.613-0.477-0.153-0.204-0.238-0.477-0.238-0.749v-106.828c0-0.273-0.085-0.528-0.238-0.749-0.153-0.204-0.358-0.375-0.613-0.477l-219.721-78.146c-0.426-0.153-0.852-0.068-1.175 0.153s-0.545 0.613-0.545 1.056v214.577c0 0.273 0.085 0.528 0.238 0.749 0.153 0.187 0.358 0.358 0.613 0.443z" />
|
11 |
+
</font></defs></svg>
|
assets/fonts/generateblocks.ttf
ADDED
Binary file
|
assets/fonts/generateblocks.woff
ADDED
Binary file
|
assets/js/purify.js
DELETED
@@ -1,1217 +0,0 @@
|
|
1 |
-
/*! @license DOMPurify | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.0.8/LICENSE */
|
2 |
-
|
3 |
-
(function (global, factory) {
|
4 |
-
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
5 |
-
typeof define === 'function' && define.amd ? define(factory) :
|
6 |
-
(global = global || self, global.DOMPurify = factory());
|
7 |
-
}(this, function () { 'use strict';
|
8 |
-
|
9 |
-
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
|
10 |
-
|
11 |
-
var hasOwnProperty = Object.hasOwnProperty,
|
12 |
-
setPrototypeOf = Object.setPrototypeOf,
|
13 |
-
isFrozen = Object.isFrozen,
|
14 |
-
objectKeys = Object.keys;
|
15 |
-
var freeze = Object.freeze,
|
16 |
-
seal = Object.seal; // eslint-disable-line import/no-mutable-exports
|
17 |
-
|
18 |
-
var _ref = typeof Reflect !== 'undefined' && Reflect,
|
19 |
-
apply = _ref.apply,
|
20 |
-
construct = _ref.construct;
|
21 |
-
|
22 |
-
if (!apply) {
|
23 |
-
apply = function apply(fun, thisValue, args) {
|
24 |
-
return fun.apply(thisValue, args);
|
25 |
-
};
|
26 |
-
}
|
27 |
-
|
28 |
-
if (!freeze) {
|
29 |
-
freeze = function freeze(x) {
|
30 |
-
return x;
|
31 |
-
};
|
32 |
-
}
|
33 |
-
|
34 |
-
if (!seal) {
|
35 |
-
seal = function seal(x) {
|
36 |
-
return x;
|
37 |
-
};
|
38 |
-
}
|
39 |
-
|
40 |
-
if (!construct) {
|
41 |
-
construct = function construct(Func, args) {
|
42 |
-
return new (Function.prototype.bind.apply(Func, [null].concat(_toConsumableArray(args))))();
|
43 |
-
};
|
44 |
-
}
|
45 |
-
|
46 |
-
var arrayForEach = unapply(Array.prototype.forEach);
|
47 |
-
var arrayIndexOf = unapply(Array.prototype.indexOf);
|
48 |
-
var arrayJoin = unapply(Array.prototype.join);
|
49 |
-
var arrayPop = unapply(Array.prototype.pop);
|
50 |
-
var arrayPush = unapply(Array.prototype.push);
|
51 |
-
var arraySlice = unapply(Array.prototype.slice);
|
52 |
-
|
53 |
-
var stringToLowerCase = unapply(String.prototype.toLowerCase);
|
54 |
-
var stringMatch = unapply(String.prototype.match);
|
55 |
-
var stringReplace = unapply(String.prototype.replace);
|
56 |
-
var stringIndexOf = unapply(String.prototype.indexOf);
|
57 |
-
var stringTrim = unapply(String.prototype.trim);
|
58 |
-
|
59 |
-
var regExpTest = unapply(RegExp.prototype.test);
|
60 |
-
var regExpCreate = unconstruct(RegExp);
|
61 |
-
|
62 |
-
var typeErrorCreate = unconstruct(TypeError);
|
63 |
-
|
64 |
-
function unapply(func) {
|
65 |
-
return function (thisArg) {
|
66 |
-
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
67 |
-
args[_key - 1] = arguments[_key];
|
68 |
-
}
|
69 |
-
|
70 |
-
return apply(func, thisArg, args);
|
71 |
-
};
|
72 |
-
}
|
73 |
-
|
74 |
-
function unconstruct(func) {
|
75 |
-
return function () {
|
76 |
-
for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
77 |
-
args[_key2] = arguments[_key2];
|
78 |
-
}
|
79 |
-
|
80 |
-
return construct(func, args);
|
81 |
-
};
|
82 |
-
}
|
83 |
-
|
84 |
-
/* Add properties to a lookup table */
|
85 |
-
function addToSet(set, array) {
|
86 |
-
if (setPrototypeOf) {
|
87 |
-
// Make 'in' and truthy checks like Boolean(set.constructor)
|
88 |
-
// independent of any properties defined on Object.prototype.
|
89 |
-
// Prevent prototype setters from intercepting set as a this value.
|
90 |
-
setPrototypeOf(set, null);
|
91 |
-
}
|
92 |
-
|
93 |
-
var l = array.length;
|
94 |
-
while (l--) {
|
95 |
-
var element = array[l];
|
96 |
-
if (typeof element === 'string') {
|
97 |
-
var lcElement = stringToLowerCase(element);
|
98 |
-
if (lcElement !== element) {
|
99 |
-
// Config presets (e.g. tags.js, attrs.js) are immutable.
|
100 |
-
if (!isFrozen(array)) {
|
101 |
-
array[l] = lcElement;
|
102 |
-
}
|
103 |
-
|
104 |
-
element = lcElement;
|
105 |
-
}
|
106 |
-
}
|
107 |
-
|
108 |
-
set[element] = true;
|
109 |
-
}
|
110 |
-
|
111 |
-
return set;
|
112 |
-
}
|
113 |
-
|
114 |
-
/* Shallow clone an object */
|
115 |
-
function clone(object) {
|
116 |
-
var newObject = {};
|
117 |
-
|
118 |
-
var property = void 0;
|
119 |
-
for (property in object) {
|
120 |
-
if (apply(hasOwnProperty, object, [property])) {
|
121 |
-
newObject[property] = object[property];
|
122 |
-
}
|
123 |
-
}
|
124 |
-
|
125 |
-
return newObject;
|
126 |
-
}
|
127 |
-
|
128 |
-
var html = freeze(['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', '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']);
|
129 |
-
|
130 |
-
// SVG
|
131 |
-
var svg = freeze(['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']);
|
132 |
-
|
133 |
-
var svgFilters = freeze(['feBlend', 'feColorMatrix', 'feComponentTransfer', 'feComposite', 'feConvolveMatrix', 'feDiffuseLighting', 'feDisplacementMap', 'feDistantLight', 'feFlood', 'feFuncA', 'feFuncB', 'feFuncG', 'feFuncR', 'feGaussianBlur', 'feMerge', 'feMergeNode', 'feMorphology', 'feOffset', 'fePointLight', 'feSpecularLighting', 'feSpotLight', 'feTile', 'feTurbulence']);
|
134 |
-
|
135 |
-
var mathMl = freeze(['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']);
|
136 |
-
|
137 |
-
var text = freeze(['#text']);
|
138 |
-
|
139 |
-
var html$1 = freeze(['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']);
|
140 |
-
|
141 |
-
var svg$1 = freeze(['accent-height', 'accumulate', 'additive', 'alignment-baseline', 'ascent', 'attributename', 'attributetype', 'azimuth', 'basefrequency', 'baseline-shift', 'begin', 'bias', 'by', 'class', 'clip', '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', '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']);
|
142 |
-
|
143 |
-
var mathMl$1 = freeze(['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']);
|
144 |
-
|
145 |
-
var xml = freeze(['xlink:href', 'xml:id', 'xlink:title', 'xml:space', 'xmlns:xlink']);
|
146 |
-
|
147 |
-
// eslint-disable-next-line unicorn/better-regex
|
148 |
-
var MUSTACHE_EXPR = seal(/\{\{[\s\S]*|[\s\S]*\}\}/gm); // Specify template detection regex for SAFE_FOR_TEMPLATES mode
|
149 |
-
var ERB_EXPR = seal(/<%[\s\S]*|[\s\S]*%>/gm);
|
150 |
-
var DATA_ATTR = seal(/^data-[\-\w.\u00B7-\uFFFF]/); // eslint-disable-line no-useless-escape
|
151 |
-
var ARIA_ATTR = seal(/^aria-[\-\w]+$/); // eslint-disable-line no-useless-escape
|
152 |
-
var IS_ALLOWED_URI = seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i // eslint-disable-line no-useless-escape
|
153 |
-
);
|
154 |
-
var IS_SCRIPT_OR_DATA = seal(/^(?:\w+script|data):/i);
|
155 |
-
var ATTR_WHITESPACE = seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g // eslint-disable-line no-control-regex
|
156 |
-
);
|
157 |
-
|
158 |
-
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
159 |
-
|
160 |
-
function _toConsumableArray$1(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
|
161 |
-
|
162 |
-
var getGlobal = function getGlobal() {
|
163 |
-
return typeof window === 'undefined' ? null : window;
|
164 |
-
};
|
165 |
-
|
166 |
-
/**
|
167 |
-
* Creates a no-op policy for internal use only.
|
168 |
-
* Don't export this function outside this module!
|
169 |
-
* @param {?TrustedTypePolicyFactory} trustedTypes The policy factory.
|
170 |
-
* @param {Document} document The document object (to determine policy name suffix)
|
171 |
-
* @return {?TrustedTypePolicy} The policy created (or null, if Trusted Types
|
172 |
-
* are not supported).
|
173 |
-
*/
|
174 |
-
var _createTrustedTypesPolicy = function _createTrustedTypesPolicy(trustedTypes, document) {
|
175 |
-
if ((typeof trustedTypes === 'undefined' ? 'undefined' : _typeof(trustedTypes)) !== 'object' || typeof trustedTypes.createPolicy !== 'function') {
|
176 |
-
return null;
|
177 |
-
}
|
178 |
-
|
179 |
-
// Allow the callers to control the unique policy name
|
180 |
-
// by adding a data-tt-policy-suffix to the script element with the DOMPurify.
|
181 |
-
// Policy creation with duplicate names throws in Trusted Types.
|
182 |
-
var suffix = null;
|
183 |
-
var ATTR_NAME = 'data-tt-policy-suffix';
|
184 |
-
if (document.currentScript && document.currentScript.hasAttribute(ATTR_NAME)) {
|
185 |
-
suffix = document.currentScript.getAttribute(ATTR_NAME);
|
186 |
-
}
|
187 |
-
|
188 |
-
var policyName = 'dompurify' + (suffix ? '#' + suffix : '');
|
189 |
-
|
190 |
-
try {
|
191 |
-
return trustedTypes.createPolicy(policyName, {
|
192 |
-
createHTML: function createHTML(html$$1) {
|
193 |
-
return html$$1;
|
194 |
-
}
|
195 |
-
});
|
196 |
-
} catch (_) {
|
197 |
-
// Policy creation failed (most likely another DOMPurify script has
|
198 |
-
// already run). Skip creating the policy, as this will only cause errors
|
199 |
-
// if TT are enforced.
|
200 |
-
console.warn('TrustedTypes policy ' + policyName + ' could not be created.');
|
201 |
-
return null;
|
202 |
-
}
|
203 |
-
};
|
204 |
-
|
205 |
-
function createDOMPurify() {
|
206 |
-
var window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();
|
207 |
-
|
208 |
-
var DOMPurify = function DOMPurify(root) {
|
209 |
-
return createDOMPurify(root);
|
210 |
-
};
|
211 |
-
|
212 |
-
/**
|
213 |
-
* Version label, exposed for easier checks
|
214 |
-
* if DOMPurify is up to date or not
|
215 |
-
*/
|
216 |
-
DOMPurify.version = '2.0.10';
|
217 |
-
|
218 |
-
/**
|
219 |
-
* Array of elements that DOMPurify removed during sanitation.
|
220 |
-
* Empty if nothing was removed.
|
221 |
-
*/
|
222 |
-
DOMPurify.removed = [];
|
223 |
-
|
224 |
-
if (!window || !window.document || window.document.nodeType !== 9) {
|
225 |
-
// Not running in a browser, provide a factory function
|
226 |
-
// so that you can pass your own Window
|
227 |
-
DOMPurify.isSupported = false;
|
228 |
-
|
229 |
-
return DOMPurify;
|
230 |
-
}
|
231 |
-
|
232 |
-
var originalDocument = window.document;
|
233 |
-
var removeTitle = false;
|
234 |
-
|
235 |
-
var document = window.document;
|
236 |
-
var DocumentFragment = window.DocumentFragment,
|
237 |
-
HTMLTemplateElement = window.HTMLTemplateElement,
|
238 |
-
Node = window.Node,
|
239 |
-
NodeFilter = window.NodeFilter,
|
240 |
-
_window$NamedNodeMap = window.NamedNodeMap,
|
241 |
-
NamedNodeMap = _window$NamedNodeMap === undefined ? window.NamedNodeMap || window.MozNamedAttrMap : _window$NamedNodeMap,
|
242 |
-
Text = window.Text,
|
243 |
-
Comment = window.Comment,
|
244 |
-
DOMParser = window.DOMParser,
|
245 |
-
trustedTypes = window.trustedTypes;
|
246 |
-
|
247 |
-
// As per issue #47, the web-components registry is inherited by a
|
248 |
-
// new document created via createHTMLDocument. As per the spec
|
249 |
-
// (http://w3c.github.io/webcomponents/spec/custom/#creating-and-passing-registries)
|
250 |
-
// a new empty registry is used when creating a template contents owner
|
251 |
-
// document, so we use that as our parent document to ensure nothing
|
252 |
-
// is inherited.
|
253 |
-
|
254 |
-
if (typeof HTMLTemplateElement === 'function') {
|
255 |
-
var template = document.createElement('template');
|
256 |
-
if (template.content && template.content.ownerDocument) {
|
257 |
-
document = template.content.ownerDocument;
|
258 |
-
}
|
259 |
-
}
|
260 |
-
|
261 |
-
var trustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, originalDocument);
|
262 |
-
var emptyHTML = trustedTypesPolicy ? trustedTypesPolicy.createHTML('') : '';
|
263 |
-
|
264 |
-
var _document = document,
|
265 |
-
implementation = _document.implementation,
|
266 |
-
createNodeIterator = _document.createNodeIterator,
|
267 |
-
getElementsByTagName = _document.getElementsByTagName,
|
268 |
-
createDocumentFragment = _document.createDocumentFragment;
|
269 |
-
var importNode = originalDocument.importNode;
|
270 |
-
|
271 |
-
|
272 |
-
var hooks = {};
|
273 |
-
|
274 |
-
/**
|
275 |
-
* Expose whether this browser supports running the full DOMPurify.
|
276 |
-
*/
|
277 |
-
DOMPurify.isSupported = implementation && typeof implementation.createHTMLDocument !== 'undefined' && document.documentMode !== 9;
|
278 |
-
|
279 |
-
var MUSTACHE_EXPR$$1 = MUSTACHE_EXPR,
|
280 |
-
ERB_EXPR$$1 = ERB_EXPR,
|
281 |
-
DATA_ATTR$$1 = DATA_ATTR,
|
282 |
-
ARIA_ATTR$$1 = ARIA_ATTR,
|
283 |
-
IS_SCRIPT_OR_DATA$$1 = IS_SCRIPT_OR_DATA,
|
284 |
-
ATTR_WHITESPACE$$1 = ATTR_WHITESPACE;
|
285 |
-
var IS_ALLOWED_URI$$1 = IS_ALLOWED_URI;
|
286 |
-
|
287 |
-
/**
|
288 |
-
* We consider the elements and attributes below to be safe. Ideally
|
289 |
-
* don't add any new ones but feel free to remove unwanted ones.
|
290 |
-
*/
|
291 |
-
|
292 |
-
/* allowed element names */
|
293 |
-
|
294 |
-
var ALLOWED_TAGS = null;
|
295 |
-
var DEFAULT_ALLOWED_TAGS = addToSet({}, [].concat(_toConsumableArray$1(html), _toConsumableArray$1(svg), _toConsumableArray$1(svgFilters), _toConsumableArray$1(mathMl), _toConsumableArray$1(text)));
|
296 |
-
|
297 |
-
/* Allowed attribute names */
|
298 |
-
var ALLOWED_ATTR = null;
|
299 |
-
var DEFAULT_ALLOWED_ATTR = addToSet({}, [].concat(_toConsumableArray$1(html$1), _toConsumableArray$1(svg$1), _toConsumableArray$1(mathMl$1), _toConsumableArray$1(xml)));
|
300 |
-
|
301 |
-
/* Explicitly forbidden tags (overrides ALLOWED_TAGS/ADD_TAGS) */
|
302 |
-
var FORBID_TAGS = null;
|
303 |
-
|
304 |
-
/* Explicitly forbidden attributes (overrides ALLOWED_ATTR/ADD_ATTR) */
|
305 |
-
var FORBID_ATTR = null;
|
306 |
-
|
307 |
-
/* Decide if ARIA attributes are okay */
|
308 |
-
var ALLOW_ARIA_ATTR = true;
|
309 |
-
|
310 |
-
/* Decide if custom data attributes are okay */
|
311 |
-
var ALLOW_DATA_ATTR = true;
|
312 |
-
|
313 |
-
/* Decide if unknown protocols are okay */
|
314 |
-
var ALLOW_UNKNOWN_PROTOCOLS = false;
|
315 |
-
|
316 |
-
/* Output should be safe for jQuery's $() factory? */
|
317 |
-
var SAFE_FOR_JQUERY = false;
|
318 |
-
|
319 |
-
/* Output should be safe for common template engines.
|
320 |
-
* This means, DOMPurify removes data attributes, mustaches and ERB
|
321 |
-
*/
|
322 |
-
var SAFE_FOR_TEMPLATES = false;
|
323 |
-
|
324 |
-
/* Decide if document with <html>... should be returned */
|
325 |
-
var WHOLE_DOCUMENT = false;
|
326 |
-
|
327 |
-
/* Track whether config is already set on this instance of DOMPurify. */
|
328 |
-
var SET_CONFIG = false;
|
329 |
-
|
330 |
-
/* Decide if all elements (e.g. style, script) must be children of
|
331 |
-
* document.body. By default, browsers might move them to document.head */
|
332 |
-
var FORCE_BODY = false;
|
333 |
-
|
334 |
-
/* Decide if a DOM `HTMLBodyElement` should be returned, instead of a html
|
335 |
-
* string (or a TrustedHTML object if Trusted Types are supported).
|
336 |
-
* If `WHOLE_DOCUMENT` is enabled a `HTMLHtmlElement` will be returned instead
|
337 |
-
*/
|
338 |
-
var RETURN_DOM = false;
|
339 |
-
|
340 |
-
/* Decide if a DOM `DocumentFragment` should be returned, instead of a html
|
341 |
-
* string (or a TrustedHTML object if Trusted Types are supported) */
|
342 |
-
var RETURN_DOM_FRAGMENT = false;
|
343 |
-
|
344 |
-
/* If `RETURN_DOM` or `RETURN_DOM_FRAGMENT` is enabled, decide if the returned DOM
|
345 |
-
* `Node` is imported into the current `Document`. If this flag is not enabled the
|
346 |
-
* `Node` will belong (its ownerDocument) to a fresh `HTMLDocument`, created by
|
347 |
-
* DOMPurify. */
|
348 |
-
var RETURN_DOM_IMPORT = false;
|
349 |
-
|
350 |
-
/* Try to return a Trusted Type object instead of a string, retrun a string in
|
351 |
-
* case Trusted Types are not supported */
|
352 |
-
var RETURN_TRUSTED_TYPE = false;
|
353 |
-
|
354 |
-
/* Output should be free from DOM clobbering attacks? */
|
355 |
-
var SANITIZE_DOM = true;
|
356 |
-
|
357 |
-
/* Keep element content when removing element? */
|
358 |
-
var KEEP_CONTENT = true;
|
359 |
-
|
360 |
-
/* If a `Node` is passed to sanitize(), then performs sanitization in-place instead
|
361 |
-
* of importing it into a new Document and returning a sanitized copy */
|
362 |
-
var IN_PLACE = false;
|
363 |
-
|
364 |
-
/* Allow usage of profiles like html, svg and mathMl */
|
365 |
-
var USE_PROFILES = {};
|
366 |
-
|
367 |
-
/* Tags to ignore content of when KEEP_CONTENT is true */
|
368 |
-
var FORBID_CONTENTS = addToSet({}, ['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']);
|
369 |
-
|
370 |
-
/* Tags that are safe for data: URIs */
|
371 |
-
var DATA_URI_TAGS = addToSet({}, ['audio', 'video', 'img', 'source', 'image', 'track']);
|
372 |
-
|
373 |
-
/* Attributes safe for values like "javascript:" */
|
374 |
-
var URI_SAFE_ATTRIBUTES = null;
|
375 |
-
var DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, ['alt', 'class', 'for', 'id', 'label', 'name', 'pattern', 'placeholder', 'summary', 'title', 'value', 'style', 'xmlns']);
|
376 |
-
|
377 |
-
/* Keep a reference to config to pass to hooks */
|
378 |
-
var CONFIG = null;
|
379 |
-
|
380 |
-
/* Ideally, do not touch anything below this line */
|
381 |
-
/* ______________________________________________ */
|
382 |
-
|
383 |
-
var formElement = document.createElement('form');
|
384 |
-
|
385 |
-
/**
|
386 |
-
* _parseConfig
|
387 |
-
*
|
388 |
-
* @param {Object} cfg optional config literal
|
389 |
-
*/
|
390 |
-
// eslint-disable-next-line complexity
|
391 |
-
var _parseConfig = function _parseConfig(cfg) {
|
392 |
-
if (CONFIG && CONFIG === cfg) {
|
393 |
-
return;
|
394 |
-
}
|
395 |
-
|
396 |
-
/* Shield configuration object from tampering */
|
397 |
-
if (!cfg || (typeof cfg === 'undefined' ? 'undefined' : _typeof(cfg)) !== 'object') {
|
398 |
-
cfg = {};
|
399 |
-
}
|
400 |
-
|
401 |
-
/* Set configuration parameters */
|
402 |
-
ALLOWED_TAGS = 'ALLOWED_TAGS' in cfg ? addToSet({}, cfg.ALLOWED_TAGS) : DEFAULT_ALLOWED_TAGS;
|
403 |
-
ALLOWED_ATTR = 'ALLOWED_ATTR' in cfg ? addToSet({}, cfg.ALLOWED_ATTR) : DEFAULT_ALLOWED_ATTR;
|
404 |
-
URI_SAFE_ATTRIBUTES = 'ADD_URI_SAFE_ATTR' in cfg ? addToSet(clone(DEFAULT_URI_SAFE_ATTRIBUTES), cfg.ADD_URI_SAFE_ATTR) : DEFAULT_URI_SAFE_ATTRIBUTES;
|
405 |
-
FORBID_TAGS = 'FORBID_TAGS' in cfg ? addToSet({}, cfg.FORBID_TAGS) : {};
|
406 |
-
FORBID_ATTR = 'FORBID_ATTR' in cfg ? addToSet({}, cfg.FORBID_ATTR) : {};
|
407 |
-
USE_PROFILES = 'USE_PROFILES' in cfg ? cfg.USE_PROFILES : false;
|
408 |
-
ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false; // Default true
|
409 |
-
ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false; // Default true
|
410 |
-
ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false; // Default false
|
411 |
-
SAFE_FOR_JQUERY = cfg.SAFE_FOR_JQUERY || false; // Default false
|
412 |
-
SAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false; // Default false
|
413 |
-
WHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false; // Default false
|
414 |
-
RETURN_DOM = cfg.RETURN_DOM || false; // Default false
|
415 |
-
RETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false; // Default false
|
416 |
-
RETURN_DOM_IMPORT = cfg.RETURN_DOM_IMPORT || false; // Default false
|
417 |
-
RETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false; // Default false
|
418 |
-
FORCE_BODY = cfg.FORCE_BODY || false; // Default false
|
419 |
-
SANITIZE_DOM = cfg.SANITIZE_DOM !== false; // Default true
|
420 |
-
KEEP_CONTENT = cfg.KEEP_CONTENT !== false; // Default true
|
421 |
-
IN_PLACE = cfg.IN_PLACE || false; // Default false
|
422 |
-
IS_ALLOWED_URI$$1 = cfg.ALLOWED_URI_REGEXP || IS_ALLOWED_URI$$1;
|
423 |
-
if (SAFE_FOR_TEMPLATES) {
|
424 |
-
ALLOW_DATA_ATTR = false;
|
425 |
-
}
|
426 |
-
|
427 |
-
if (RETURN_DOM_FRAGMENT) {
|
428 |
-
RETURN_DOM = true;
|
429 |
-
}
|
430 |
-
|
431 |
-
/* Parse profile info */
|
432 |
-
if (USE_PROFILES) {
|
433 |
-
ALLOWED_TAGS = addToSet({}, [].concat(_toConsumableArray$1(text)));
|
434 |
-
ALLOWED_ATTR = [];
|
435 |
-
if (USE_PROFILES.html === true) {
|
436 |
-
addToSet(ALLOWED_TAGS, html);
|
437 |
-
addToSet(ALLOWED_ATTR, html$1);
|
438 |
-
}
|
439 |
-
|
440 |
-
if (USE_PROFILES.svg === true) {
|
441 |
-
addToSet(ALLOWED_TAGS, svg);
|
442 |
-
addToSet(ALLOWED_ATTR, svg$1);
|
443 |
-
addToSet(ALLOWED_ATTR, xml);
|
444 |
-
}
|
445 |
-
|
446 |
-
if (USE_PROFILES.svgFilters === true) {
|
447 |
-
addToSet(ALLOWED_TAGS, svgFilters);
|
448 |
-
addToSet(ALLOWED_ATTR, svg$1);
|
449 |
-
addToSet(ALLOWED_ATTR, xml);
|
450 |
-
}
|
451 |
-
|
452 |
-
if (USE_PROFILES.mathMl === true) {
|
453 |
-
addToSet(ALLOWED_TAGS, mathMl);
|
454 |
-
addToSet(ALLOWED_ATTR, mathMl$1);
|
455 |
-
addToSet(ALLOWED_ATTR, xml);
|
456 |
-
}
|
457 |
-
}
|
458 |
-
|
459 |
-
/* Merge configuration parameters */
|
460 |
-
if (cfg.ADD_TAGS) {
|
461 |
-
if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {
|
462 |
-
ALLOWED_TAGS = clone(ALLOWED_TAGS);
|
463 |
-
}
|
464 |
-
|
465 |
-
addToSet(ALLOWED_TAGS, cfg.ADD_TAGS);
|
466 |
-
}
|
467 |
-
|
468 |
-
if (cfg.ADD_ATTR) {
|
469 |
-
if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {
|
470 |
-
ALLOWED_ATTR = clone(ALLOWED_ATTR);
|
471 |
-
}
|
472 |
-
|
473 |
-
addToSet(ALLOWED_ATTR, cfg.ADD_ATTR);
|
474 |
-
}
|
475 |
-
|
476 |
-
if (cfg.ADD_URI_SAFE_ATTR) {
|
477 |
-
addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR);
|
478 |
-
}
|
479 |
-
|
480 |
-
/* Add #text in case KEEP_CONTENT is set to true */
|
481 |
-
if (KEEP_CONTENT) {
|
482 |
-
ALLOWED_TAGS['#text'] = true;
|
483 |
-
}
|
484 |
-
|
485 |
-
/* Add html, head and body to ALLOWED_TAGS in case WHOLE_DOCUMENT is true */
|
486 |
-
if (WHOLE_DOCUMENT) {
|
487 |
-
addToSet(ALLOWED_TAGS, ['html', 'head', 'body']);
|
488 |
-
}
|
489 |
-
|
490 |
-
/* Add tbody to ALLOWED_TAGS in case tables are permitted, see #286, #365 */
|
491 |
-
if (ALLOWED_TAGS.table) {
|
492 |
-
addToSet(ALLOWED_TAGS, ['tbody']);
|
493 |
-
delete FORBID_TAGS.tbody;
|
494 |
-
}
|
495 |
-
|
496 |
-
// Prevent further manipulation of configuration.
|
497 |
-
// Not available in IE8, Safari 5, etc.
|
498 |
-
if (freeze) {
|
499 |
-
freeze(cfg);
|
500 |
-
}
|
501 |
-
|
502 |
-
CONFIG = cfg;
|
503 |
-
};
|
504 |
-
|
505 |
-
/**
|
506 |
-
* _forceRemove
|
507 |
-
*
|
508 |
-
* @param {Node} node a DOM node
|
509 |
-
*/
|
510 |
-
var _forceRemove = function _forceRemove(node) {
|
511 |
-
arrayPush(DOMPurify.removed, { element: node });
|
512 |
-
try {
|
513 |
-
// eslint-disable-next-line unicorn/prefer-node-remove
|
514 |
-
node.parentNode.removeChild(node);
|
515 |
-
} catch (_) {
|
516 |
-
node.outerHTML = emptyHTML;
|
517 |
-
}
|
518 |
-
};
|
519 |
-
|
520 |
-
/**
|
521 |
-
* _removeAttribute
|
522 |
-
*
|
523 |
-
* @param {String} name an Attribute name
|
524 |
-
* @param {Node} node a DOM node
|
525 |
-
*/
|
526 |
-
var _removeAttribute = function _removeAttribute(name, node) {
|
527 |
-
try {
|
528 |
-
arrayPush(DOMPurify.removed, {
|
529 |
-
attribute: node.getAttributeNode(name),
|
530 |
-
from: node
|
531 |
-
});
|
532 |
-
} catch (_) {
|
533 |
-
arrayPush(DOMPurify.removed, {
|
534 |
-
attribute: null,
|
535 |
-
from: node
|
536 |
-
});
|
537 |
-
}
|
538 |
-
|
539 |
-
node.removeAttribute(name);
|
540 |
-
};
|
541 |
-
|
542 |
-
/**
|
543 |
-
* _initDocument
|
544 |
-
*
|
545 |
-
* @param {String} dirty a string of dirty markup
|
546 |
-
* @return {Document} a DOM, filled with the dirty markup
|
547 |
-
*/
|
548 |
-
var _initDocument = function _initDocument(dirty) {
|
549 |
-
/* Create a HTML document */
|
550 |
-
var doc = void 0;
|
551 |
-
var leadingWhitespace = void 0;
|
552 |
-
|
553 |
-
if (FORCE_BODY) {
|
554 |
-
dirty = '<remove></remove>' + dirty;
|
555 |
-
} else {
|
556 |
-
/* If FORCE_BODY isn't used, leading whitespace needs to be preserved manually */
|
557 |
-
// eslint-disable-next-line unicorn/better-regex
|
558 |
-
var matches = stringMatch(dirty, /^[\s]+/);
|
559 |
-
leadingWhitespace = matches && matches[0];
|
560 |
-
}
|
561 |
-
|
562 |
-
var dirtyPayload = trustedTypesPolicy ? trustedTypesPolicy.createHTML(dirty) : dirty;
|
563 |
-
/* Use the DOMParser API by default, fallback later if needs be */
|
564 |
-
try {
|
565 |
-
doc = new DOMParser().parseFromString(dirtyPayload, 'text/html');
|
566 |
-
} catch (_) {}
|
567 |
-
|
568 |
-
/* Remove title to fix a mXSS bug in older MS Edge */
|
569 |
-
if (removeTitle) {
|
570 |
-
addToSet(FORBID_TAGS, ['title']);
|
571 |
-
}
|
572 |
-
|
573 |
-
/* Use createHTMLDocument in case DOMParser is not available */
|
574 |
-
if (!doc || !doc.documentElement) {
|
575 |
-
doc = implementation.createHTMLDocument('');
|
576 |
-
var _doc = doc,
|
577 |
-
body = _doc.body;
|
578 |
-
|
579 |
-
body.parentNode.removeChild(body.parentNode.firstElementChild);
|
580 |
-
body.outerHTML = dirtyPayload;
|
581 |
-
}
|
582 |
-
|
583 |
-
if (dirty && leadingWhitespace) {
|
584 |
-
doc.body.insertBefore(document.createTextNode(leadingWhitespace), doc.body.childNodes[0] || null);
|
585 |
-
}
|
586 |
-
|
587 |
-
/* Work on whole document or just its body */
|
588 |
-
return getElementsByTagName.call(doc, WHOLE_DOCUMENT ? 'html' : 'body')[0];
|
589 |
-
};
|
590 |
-
|
591 |
-
/* Here we test for a broken feature in Edge that might cause mXSS */
|
592 |
-
if (DOMPurify.isSupported) {
|
593 |
-
(function () {
|
594 |
-
try {
|
595 |
-
var doc = _initDocument('<x/><title></title><img>');
|
596 |
-
if (regExpTest(/<\/title/, doc.querySelector('title').innerHTML)) {
|
597 |
-
removeTitle = true;
|
598 |
-
}
|
599 |
-
} catch (_) {}
|
600 |
-
})();
|
601 |
-
}
|
602 |
-
|
603 |
-
/**
|
604 |
-
* _createIterator
|
605 |
-
*
|
606 |
-
* @param {Document} root document/fragment to create iterator for
|
607 |
-
* @return {Iterator} iterator instance
|
608 |
-
*/
|
609 |
-
var _createIterator = function _createIterator(root) {
|
610 |
-
return createNodeIterator.call(root.ownerDocument || root, root, NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT, function () {
|
611 |
-
return NodeFilter.FILTER_ACCEPT;
|
612 |
-
}, false);
|
613 |
-
};
|
614 |
-
|
615 |
-
/**
|
616 |
-
* _isClobbered
|
617 |
-
*
|
618 |
-
* @param {Node} elm element to check for clobbering attacks
|
619 |
-
* @return {Boolean} true if clobbered, false if safe
|
620 |
-
*/
|
621 |
-
var _isClobbered = function _isClobbered(elm) {
|
622 |
-
if (elm instanceof Text || elm instanceof Comment) {
|
623 |
-
return false;
|
624 |
-
}
|
625 |
-
|
626 |
-
if (typeof elm.nodeName !== 'string' || typeof elm.textContent !== 'string' || typeof elm.removeChild !== 'function' || !(elm.attributes instanceof NamedNodeMap) || typeof elm.removeAttribute !== 'function' || typeof elm.setAttribute !== 'function' || typeof elm.namespaceURI !== 'string') {
|
627 |
-
return true;
|
628 |
-
}
|
629 |
-
|
630 |
-
return false;
|
631 |
-
};
|
632 |
-
|
633 |
-
/**
|
634 |
-
* _isNode
|
635 |
-
*
|
636 |
-
* @param {Node} obj object to check whether it's a DOM node
|
637 |
-
* @return {Boolean} true is object is a DOM node
|
638 |
-
*/
|
639 |
-
var _isNode = function _isNode(object) {
|
640 |
-
return (typeof Node === 'undefined' ? 'undefined' : _typeof(Node)) === 'object' ? object instanceof Node : object && (typeof object === 'undefined' ? 'undefined' : _typeof(object)) === 'object' && typeof object.nodeType === 'number' && typeof object.nodeName === 'string';
|
641 |
-
};
|
642 |
-
|
643 |
-
/**
|
644 |
-
* _executeHook
|
645 |
-
* Execute user configurable hooks
|
646 |
-
*
|
647 |
-
* @param {String} entryPoint Name of the hook's entry point
|
648 |
-
* @param {Node} currentNode node to work on with the hook
|
649 |
-
* @param {Object} data additional hook parameters
|
650 |
-
*/
|
651 |
-
var _executeHook = function _executeHook(entryPoint, currentNode, data) {
|
652 |
-
if (!hooks[entryPoint]) {
|
653 |
-
return;
|
654 |
-
}
|
655 |
-
|
656 |
-
arrayForEach(hooks[entryPoint], function (hook) {
|
657 |
-
hook.call(DOMPurify, currentNode, data, CONFIG);
|
658 |
-
});
|
659 |
-
};
|
660 |
-
|
661 |
-
/**
|
662 |
-
* _sanitizeElements
|
663 |
-
*
|
664 |
-
* @protect nodeName
|
665 |
-
* @protect textContent
|
666 |
-
* @protect removeChild
|
667 |
-
*
|
668 |
-
* @param {Node} currentNode to check for permission to exist
|
669 |
-
* @return {Boolean} true if node was killed, false if left alive
|
670 |
-
*/
|
671 |
-
// eslint-disable-next-line complexity
|
672 |
-
var _sanitizeElements = function _sanitizeElements(currentNode) {
|
673 |
-
var content = void 0;
|
674 |
-
|
675 |
-
/* Execute a hook if present */
|
676 |
-
_executeHook('beforeSanitizeElements', currentNode, null);
|
677 |
-
|
678 |
-
/* Check if element is clobbered or can clobber */
|
679 |
-
if (_isClobbered(currentNode)) {
|
680 |
-
_forceRemove(currentNode);
|
681 |
-
return true;
|
682 |
-
}
|
683 |
-
|
684 |
-
/* Now let's check the element's type and name */
|
685 |
-
var tagName = stringToLowerCase(currentNode.nodeName);
|
686 |
-
|
687 |
-
/* Execute a hook if present */
|
688 |
-
_executeHook('uponSanitizeElement', currentNode, {
|
689 |
-
tagName: tagName,
|
690 |
-
allowedTags: ALLOWED_TAGS
|
691 |
-
});
|
692 |
-
|
693 |
-
/* Take care of an mXSS pattern using p, br inside svg, math */
|
694 |
-
if ((tagName === 'svg' || tagName === 'math') && currentNode.querySelectorAll('p, br').length !== 0) {
|
695 |
-
_forceRemove(currentNode);
|
696 |
-
return true;
|
697 |
-
}
|
698 |
-
|
699 |
-
/* Remove element if anything forbids its presence */
|
700 |
-
if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {
|
701 |
-
/* Keep content except for black-listed elements */
|
702 |
-
if (KEEP_CONTENT && !FORBID_CONTENTS[tagName] && typeof currentNode.insertAdjacentHTML === 'function') {
|
703 |
-
try {
|
704 |
-
var htmlToInsert = currentNode.innerHTML;
|
705 |
-
currentNode.insertAdjacentHTML('AfterEnd', trustedTypesPolicy ? trustedTypesPolicy.createHTML(htmlToInsert) : htmlToInsert);
|
706 |
-
} catch (_) {}
|
707 |
-
}
|
708 |
-
|
709 |
-
_forceRemove(currentNode);
|
710 |
-
return true;
|
711 |
-
}
|
712 |
-
|
713 |
-
/* Remove in case a noscript/noembed XSS is suspected */
|
714 |
-
if (tagName === 'noscript' && regExpTest(/<\/noscript/i, currentNode.innerHTML)) {
|
715 |
-
_forceRemove(currentNode);
|
716 |
-
return true;
|
717 |
-
}
|
718 |
-
|
719 |
-
if (tagName === 'noembed' && regExpTest(/<\/noembed/i, currentNode.innerHTML)) {
|
720 |
-
_forceRemove(currentNode);
|
721 |
-
return true;
|
722 |
-
}
|
723 |
-
|
724 |
-
/* Convert markup to cover jQuery behavior */
|
725 |
-
if (SAFE_FOR_JQUERY && !currentNode.firstElementChild && (!currentNode.content || !currentNode.content.firstElementChild) && regExpTest(/</g, currentNode.textContent)) {
|
726 |
-
arrayPush(DOMPurify.removed, { element: currentNode.cloneNode() });
|
727 |
-
if (currentNode.innerHTML) {
|
728 |
-
currentNode.innerHTML = stringReplace(currentNode.innerHTML, /</g, '<');
|
729 |
-
} else {
|
730 |
-
currentNode.innerHTML = stringReplace(currentNode.textContent, /</g, '<');
|
731 |
-
}
|
732 |
-
}
|
733 |
-
|
734 |
-
/* Sanitize element content to be template-safe */
|
735 |
-
if (SAFE_FOR_TEMPLATES && currentNode.nodeType === 3) {
|
736 |
-
/* Get the element's text content */
|
737 |
-
content = currentNode.textContent;
|
738 |
-
content = stringReplace(content, MUSTACHE_EXPR$$1, ' ');
|
739 |
-
content = stringReplace(content, ERB_EXPR$$1, ' ');
|
740 |
-
if (currentNode.textContent !== content) {
|
741 |
-
arrayPush(DOMPurify.removed, { element: currentNode.cloneNode() });
|
742 |
-
currentNode.textContent = content;
|
743 |
-
}
|
744 |
-
}
|
745 |
-
|
746 |
-
/* Execute a hook if present */
|
747 |
-
_executeHook('afterSanitizeElements', currentNode, null);
|
748 |
-
|
749 |
-
return false;
|
750 |
-
};
|
751 |
-
|
752 |
-
/**
|
753 |
-
* _isValidAttribute
|
754 |
-
*
|
755 |
-
* @param {string} lcTag Lowercase tag name of containing element.
|
756 |
-
* @param {string} lcName Lowercase attribute name.
|
757 |
-
* @param {string} value Attribute value.
|
758 |
-
* @return {Boolean} Returns true if `value` is valid, otherwise false.
|
759 |
-
*/
|
760 |
-
// eslint-disable-next-line complexity
|
761 |
-
var _isValidAttribute = function _isValidAttribute(lcTag, lcName, value) {
|
762 |
-
/* Make sure attribute cannot clobber */
|
763 |
-
if (SANITIZE_DOM && (lcName === 'id' || lcName === 'name') && (value in document || value in formElement)) {
|
764 |
-
return false;
|
765 |
-
}
|
766 |
-
|
767 |
-
/* Allow valid data-* attributes: At least one character after "-"
|
768 |
-
(https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes)
|
769 |
-
XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804)
|
770 |
-
We don't need to check the value; it's always URI safe. */
|
771 |
-
if (ALLOW_DATA_ATTR && regExpTest(DATA_ATTR$$1, lcName)) ; else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR$$1, lcName)) ; else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {
|
772 |
-
return false;
|
773 |
-
|
774 |
-
/* Check value is safe. First, is attr inert? If so, is safe */
|
775 |
-
} else if (URI_SAFE_ATTRIBUTES[lcName]) ; else if (regExpTest(IS_ALLOWED_URI$$1, stringReplace(value, ATTR_WHITESPACE$$1, ''))) ; else if ((lcName === 'src' || lcName === 'xlink:href' || lcName === 'href') && lcTag !== 'script' && stringIndexOf(value, 'data:') === 0 && DATA_URI_TAGS[lcTag]) ; else if (ALLOW_UNKNOWN_PROTOCOLS && !regExpTest(IS_SCRIPT_OR_DATA$$1, stringReplace(value, ATTR_WHITESPACE$$1, ''))) ; else if (!value) ; else {
|
776 |
-
return false;
|
777 |
-
}
|
778 |
-
|
779 |
-
return true;
|
780 |
-
};
|
781 |
-
|
782 |
-
/**
|
783 |
-
* _sanitizeAttributes
|
784 |
-
*
|
785 |
-
* @protect attributes
|
786 |
-
* @protect nodeName
|
787 |
-
* @protect removeAttribute
|
788 |
-
* @protect setAttribute
|
789 |
-
*
|
790 |
-
* @param {Node} currentNode to sanitize
|
791 |
-
*/
|
792 |
-
// eslint-disable-next-line complexity
|
793 |
-
var _sanitizeAttributes = function _sanitizeAttributes(currentNode) {
|
794 |
-
var attr = void 0;
|
795 |
-
var value = void 0;
|
796 |
-
var lcName = void 0;
|
797 |
-
var idAttr = void 0;
|
798 |
-
var l = void 0;
|
799 |
-
/* Execute a hook if present */
|
800 |
-
_executeHook('beforeSanitizeAttributes', currentNode, null);
|
801 |
-
|
802 |
-
var attributes = currentNode.attributes;
|
803 |
-
|
804 |
-
/* Check if we have attributes; if not we might have a text node */
|
805 |
-
|
806 |
-
if (!attributes) {
|
807 |
-
return;
|
808 |
-
}
|
809 |
-
|
810 |
-
var hookEvent = {
|
811 |
-
attrName: '',
|
812 |
-
attrValue: '',
|
813 |
-
keepAttr: true,
|
814 |
-
allowedAttributes: ALLOWED_ATTR
|
815 |
-
};
|
816 |
-
l = attributes.length;
|
817 |
-
|
818 |
-
/* Go backwards over all attributes; safely remove bad ones */
|
819 |
-
while (l--) {
|
820 |
-
attr = attributes[l];
|
821 |
-
var _attr = attr,
|
822 |
-
name = _attr.name,
|
823 |
-
namespaceURI = _attr.namespaceURI;
|
824 |
-
|
825 |
-
value = stringTrim(attr.value);
|
826 |
-
lcName = stringToLowerCase(name);
|
827 |
-
|
828 |
-
/* Execute a hook if present */
|
829 |
-
hookEvent.attrName = lcName;
|
830 |
-
hookEvent.attrValue = value;
|
831 |
-
hookEvent.keepAttr = true;
|
832 |
-
hookEvent.forceKeepAttr = undefined; // Allows developers to see this is a property they can set
|
833 |
-
_executeHook('uponSanitizeAttribute', currentNode, hookEvent);
|
834 |
-
value = hookEvent.attrValue;
|
835 |
-
/* Did the hooks approve of the attribute? */
|
836 |
-
if (hookEvent.forceKeepAttr) {
|
837 |
-
continue;
|
838 |
-
}
|
839 |
-
|
840 |
-
/* Remove attribute */
|
841 |
-
// Safari (iOS + Mac), last tested v8.0.5, crashes if you try to
|
842 |
-
// remove a "name" attribute from an <img> tag that has an "id"
|
843 |
-
// attribute at the time.
|
844 |
-
if (lcName === 'name' && currentNode.nodeName === 'IMG' && attributes.id) {
|
845 |
-
idAttr = attributes.id;
|
846 |
-
attributes = arraySlice(attributes, []);
|
847 |
-
_removeAttribute('id', currentNode);
|
848 |
-
_removeAttribute(name, currentNode);
|
849 |
-
if (arrayIndexOf(attributes, idAttr) > l) {
|
850 |
-
currentNode.setAttribute('id', idAttr.value);
|
851 |
-
}
|
852 |
-
} else if (
|
853 |
-
// This works around a bug in Safari, where input[type=file]
|
854 |
-
// cannot be dynamically set after type has been removed
|
855 |
-
currentNode.nodeName === 'INPUT' && lcName === 'type' && value === 'file' && hookEvent.keepAttr && (ALLOWED_ATTR[lcName] || !FORBID_ATTR[lcName])) {
|
856 |
-
continue;
|
857 |
-
} else {
|
858 |
-
// This avoids a crash in Safari v9.0 with double-ids.
|
859 |
-
// The trick is to first set the id to be empty and then to
|
860 |
-
// remove the attribute
|
861 |
-
if (name === 'id') {
|
862 |
-
currentNode.setAttribute(name, '');
|
863 |
-
}
|
864 |
-
|
865 |
-
_removeAttribute(name, currentNode);
|
866 |
-
}
|
867 |
-
|
868 |
-
/* Did the hooks approve of the attribute? */
|
869 |
-
if (!hookEvent.keepAttr) {
|
870 |
-
continue;
|
871 |
-
}
|
872 |
-
|
873 |
-
/* Work around a security issue in jQuery 3.0 */
|
874 |
-
if (SAFE_FOR_JQUERY && regExpTest(/\/>/i, value)) {
|
875 |
-
_removeAttribute(name, currentNode);
|
876 |
-
continue;
|
877 |
-
}
|
878 |
-
|
879 |
-
/* Take care of an mXSS pattern using namespace switches */
|
880 |
-
if (regExpTest(/svg|math/i, currentNode.namespaceURI) && regExpTest(regExpCreate('</(' + arrayJoin(objectKeys(FORBID_CONTENTS), '|') + ')', 'i'), value)) {
|
881 |
-
_removeAttribute(name, currentNode);
|
882 |
-
continue;
|
883 |
-
}
|
884 |
-
|
885 |
-
/* Sanitize attribute content to be template-safe */
|
886 |
-
if (SAFE_FOR_TEMPLATES) {
|
887 |
-
value = stringReplace(value, MUSTACHE_EXPR$$1, ' ');
|
888 |
-
value = stringReplace(value, ERB_EXPR$$1, ' ');
|
889 |
-
}
|
890 |
-
|
891 |
-
/* Is `value` valid for this attribute? */
|
892 |
-
var lcTag = currentNode.nodeName.toLowerCase();
|
893 |
-
if (!_isValidAttribute(lcTag, lcName, value)) {
|
894 |
-
continue;
|
895 |
-
}
|
896 |
-
|
897 |
-
/* Handle invalid data-* attribute set by try-catching it */
|
898 |
-
try {
|
899 |
-
if (namespaceURI) {
|
900 |
-
currentNode.setAttributeNS(namespaceURI, name, value);
|
901 |
-
} else {
|
902 |
-
/* Fallback to setAttribute() for browser-unrecognized namespaces e.g. "x-schema". */
|
903 |
-
currentNode.setAttribute(name, value);
|
904 |
-
}
|
905 |
-
|
906 |
-
arrayPop(DOMPurify.removed);
|
907 |
-
} catch (_) {}
|
908 |
-
}
|
909 |
-
|
910 |
-
/* Execute a hook if present */
|
911 |
-
_executeHook('afterSanitizeAttributes', currentNode, null);
|
912 |
-
};
|
913 |
-
|
914 |
-
/**
|
915 |
-
* _sanitizeShadowDOM
|
916 |
-
*
|
917 |
-
* @param {DocumentFragment} fragment to iterate over recursively
|
918 |
-
*/
|
919 |
-
var _sanitizeShadowDOM = function _sanitizeShadowDOM(fragment) {
|
920 |
-
var shadowNode = void 0;
|
921 |
-
var shadowIterator = _createIterator(fragment);
|
922 |
-
|
923 |
-
/* Execute a hook if present */
|
924 |
-
_executeHook('beforeSanitizeShadowDOM', fragment, null);
|
925 |
-
|
926 |
-
while (shadowNode = shadowIterator.nextNode()) {
|
927 |
-
/* Execute a hook if present */
|
928 |
-
_executeHook('uponSanitizeShadowNode', shadowNode, null);
|
929 |
-
|
930 |
-
/* Sanitize tags and elements */
|
931 |
-
if (_sanitizeElements(shadowNode)) {
|
932 |
-
continue;
|
933 |
-
}
|
934 |
-
|
935 |
-
/* Deep shadow DOM detected */
|
936 |
-
if (shadowNode.content instanceof DocumentFragment) {
|
937 |
-
_sanitizeShadowDOM(shadowNode.content);
|
938 |
-
}
|
939 |
-
|
940 |
-
/* Check attributes, sanitize if necessary */
|
941 |
-
_sanitizeAttributes(shadowNode);
|
942 |
-
}
|
943 |
-
|
944 |
-
/* Execute a hook if present */
|
945 |
-
_executeHook('afterSanitizeShadowDOM', fragment, null);
|
946 |
-
};
|
947 |
-
|
948 |
-
/**
|
949 |
-
* Sanitize
|
950 |
-
* Public method providing core sanitation functionality
|
951 |
-
*
|
952 |
-
* @param {String|Node} dirty string or DOM node
|
953 |
-
* @param {Object} configuration object
|
954 |
-
*/
|
955 |
-
// eslint-disable-next-line complexity
|
956 |
-
DOMPurify.sanitize = function (dirty, cfg) {
|
957 |
-
var body = void 0;
|
958 |
-
var importedNode = void 0;
|
959 |
-
var currentNode = void 0;
|
960 |
-
var oldNode = void 0;
|
961 |
-
var returnNode = void 0;
|
962 |
-
/* Make sure we have a string to sanitize.
|
963 |
-
DO NOT return early, as this will return the wrong type if
|
964 |
-
the user has requested a DOM object rather than a string */
|
965 |
-
if (!dirty) {
|
966 |
-
dirty = '<!-->';
|
967 |
-
}
|
968 |
-
|
969 |
-
/* Stringify, in case dirty is an object */
|
970 |
-
if (typeof dirty !== 'string' && !_isNode(dirty)) {
|
971 |
-
// eslint-disable-next-line no-negated-condition
|
972 |
-
if (typeof dirty.toString !== 'function') {
|
973 |
-
throw typeErrorCreate('toString is not a function');
|
974 |
-
} else {
|
975 |
-
dirty = dirty.toString();
|
976 |
-
if (typeof dirty !== 'string') {
|
977 |
-
throw typeErrorCreate('dirty is not a string, aborting');
|
978 |
-
}
|
979 |
-
}
|
980 |
-
}
|
981 |
-
|
982 |
-
/* Check we can run. Otherwise fall back or ignore */
|
983 |
-
if (!DOMPurify.isSupported) {
|
984 |
-
if (_typeof(window.toStaticHTML) === 'object' || typeof window.toStaticHTML === 'function') {
|
985 |
-
if (typeof dirty === 'string') {
|
986 |
-
return window.toStaticHTML(dirty);
|
987 |
-
}
|
988 |
-
|
989 |
-
if (_isNode(dirty)) {
|
990 |
-
return window.toStaticHTML(dirty.outerHTML);
|
991 |
-
}
|
992 |
-
}
|
993 |
-
|
994 |
-
return dirty;
|
995 |
-
}
|
996 |
-
|
997 |
-
/* Assign config vars */
|
998 |
-
if (!SET_CONFIG) {
|
999 |
-
_parseConfig(cfg);
|
1000 |
-
}
|
1001 |
-
|
1002 |
-
/* Clean up removed elements */
|
1003 |
-
DOMPurify.removed = [];
|
1004 |
-
|
1005 |
-
/* Check if dirty is correctly typed for IN_PLACE */
|
1006 |
-
if (typeof dirty === 'string') {
|
1007 |
-
IN_PLACE = false;
|
1008 |
-
}
|
1009 |
-
|
1010 |
-
if (IN_PLACE) ; else if (dirty instanceof Node) {
|
1011 |
-
/* If dirty is a DOM element, append to an empty document to avoid
|
1012 |
-
elements being stripped by the parser */
|
1013 |
-
body = _initDocument('<!-->');
|
1014 |
-
importedNode = body.ownerDocument.importNode(dirty, true);
|
1015 |
-
if (importedNode.nodeType === 1 && importedNode.nodeName === 'BODY') {
|
1016 |
-
/* Node is already a body, use as is */
|
1017 |
-
body = importedNode;
|
1018 |
-
} else if (importedNode.nodeName === 'HTML') {
|
1019 |
-
body = importedNode;
|
1020 |
-
} else {
|
1021 |
-
// eslint-disable-next-line unicorn/prefer-node-append
|
1022 |
-
body.appendChild(importedNode);
|
1023 |
-
}
|
1024 |
-
} else {
|
1025 |
-
/* Exit directly if we have nothing to do */
|
1026 |
-
if (!RETURN_DOM && !SAFE_FOR_TEMPLATES && !WHOLE_DOCUMENT && RETURN_TRUSTED_TYPE &&
|
1027 |
-
// eslint-disable-next-line unicorn/prefer-includes
|
1028 |
-
dirty.indexOf('<') === -1) {
|
1029 |
-
return trustedTypesPolicy ? trustedTypesPolicy.createHTML(dirty) : dirty;
|
1030 |
-
}
|
1031 |
-
|
1032 |
-
/* Initialize the document to work on */
|
1033 |
-
body = _initDocument(dirty);
|
1034 |
-
|
1035 |
-
/* Check we have a DOM node from the data */
|
1036 |
-
if (!body) {
|
1037 |
-
return RETURN_DOM ? null : emptyHTML;
|
1038 |
-
}
|
1039 |
-
}
|
1040 |
-
|
1041 |
-
/* Remove first element node (ours) if FORCE_BODY is set */
|
1042 |
-
if (body && FORCE_BODY) {
|
1043 |
-
_forceRemove(body.firstChild);
|
1044 |
-
}
|
1045 |
-
|
1046 |
-
/* Get node iterator */
|
1047 |
-
var nodeIterator = _createIterator(IN_PLACE ? dirty : body);
|
1048 |
-
|
1049 |
-
/* Now start iterating over the created document */
|
1050 |
-
while (currentNode = nodeIterator.nextNode()) {
|
1051 |
-
/* Fix IE's strange behavior with manipulated textNodes #89 */
|
1052 |
-
if (currentNode.nodeType === 3 && currentNode === oldNode) {
|
1053 |
-
continue;
|
1054 |
-
}
|
1055 |
-
|
1056 |
-
/* Sanitize tags and elements */
|
1057 |
-
if (_sanitizeElements(currentNode)) {
|
1058 |
-
continue;
|
1059 |
-
}
|
1060 |
-
|
1061 |
-
/* Shadow DOM detected, sanitize it */
|
1062 |
-
if (currentNode.content instanceof DocumentFragment) {
|
1063 |
-
_sanitizeShadowDOM(currentNode.content);
|
1064 |
-
}
|
1065 |
-
|
1066 |
-
/* Check attributes, sanitize if necessary */
|
1067 |
-
_sanitizeAttributes(currentNode);
|
1068 |
-
|
1069 |
-
oldNode = currentNode;
|
1070 |
-
}
|
1071 |
-
|
1072 |
-
oldNode = null;
|
1073 |
-
|
1074 |
-
/* If we sanitized `dirty` in-place, return it. */
|
1075 |
-
if (IN_PLACE) {
|
1076 |
-
return dirty;
|
1077 |
-
}
|
1078 |
-
|
1079 |
-
/* Return sanitized string or DOM */
|
1080 |
-
if (RETURN_DOM) {
|
1081 |
-
if (RETURN_DOM_FRAGMENT) {
|
1082 |
-
returnNode = createDocumentFragment.call(body.ownerDocument);
|
1083 |
-
|
1084 |
-
while (body.firstChild) {
|
1085 |
-
// eslint-disable-next-line unicorn/prefer-node-append
|
1086 |
-
returnNode.appendChild(body.firstChild);
|
1087 |
-
}
|
1088 |
-
} else {
|
1089 |
-
returnNode = body;
|
1090 |
-
}
|
1091 |
-
|
1092 |
-
if (RETURN_DOM_IMPORT) {
|
1093 |
-
/*
|
1094 |
-
AdoptNode() is not used because internal state is not reset
|
1095 |
-
(e.g. the past names map of a HTMLFormElement), this is safe
|
1096 |
-
in theory but we would rather not risk another attack vector.
|
1097 |
-
The state that is cloned by importNode() is explicitly defined
|
1098 |
-
by the specs.
|
1099 |
-
*/
|
1100 |
-
returnNode = importNode.call(originalDocument, returnNode, true);
|
1101 |
-
}
|
1102 |
-
|
1103 |
-
return returnNode;
|
1104 |
-
}
|
1105 |
-
|
1106 |
-
var serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML;
|
1107 |
-
|
1108 |
-
/* Sanitize final string template-safe */
|
1109 |
-
if (SAFE_FOR_TEMPLATES) {
|
1110 |
-
serializedHTML = stringReplace(serializedHTML, MUSTACHE_EXPR$$1, ' ');
|
1111 |
-
serializedHTML = stringReplace(serializedHTML, ERB_EXPR$$1, ' ');
|
1112 |
-
}
|
1113 |
-
|
1114 |
-
return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(serializedHTML) : serializedHTML;
|
1115 |
-
};
|
1116 |
-
|
1117 |
-
/**
|
1118 |
-
* Public method to set the configuration once
|
1119 |
-
* setConfig
|
1120 |
-
*
|
1121 |
-
* @param {Object} cfg configuration object
|
1122 |
-
*/
|
1123 |
-
DOMPurify.setConfig = function (cfg) {
|
1124 |
-
_parseConfig(cfg);
|
1125 |
-
SET_CONFIG = true;
|
1126 |
-
};
|
1127 |
-
|
1128 |
-
/**
|
1129 |
-
* Public method to remove the configuration
|
1130 |
-
* clearConfig
|
1131 |
-
*
|
1132 |
-
*/
|
1133 |
-
DOMPurify.clearConfig = function () {
|
1134 |
-
CONFIG = null;
|
1135 |
-
SET_CONFIG = false;
|
1136 |
-
};
|
1137 |
-
|
1138 |
-
/**
|
1139 |
-
* Public method to check if an attribute value is valid.
|
1140 |
-
* Uses last set config, if any. Otherwise, uses config defaults.
|
1141 |
-
* isValidAttribute
|
1142 |
-
*
|
1143 |
-
* @param {string} tag Tag name of containing element.
|
1144 |
-
* @param {string} attr Attribute name.
|
1145 |
-
* @param {string} value Attribute value.
|
1146 |
-
* @return {Boolean} Returns true if `value` is valid. Otherwise, returns false.
|
1147 |
-
*/
|
1148 |
-
DOMPurify.isValidAttribute = function (tag, attr, value) {
|
1149 |
-
/* Initialize shared config vars if necessary. */
|
1150 |
-
if (!CONFIG) {
|
1151 |
-
_parseConfig({});
|
1152 |
-
}
|
1153 |
-
|
1154 |
-
var lcTag = stringToLowerCase(tag);
|
1155 |
-
var lcName = stringToLowerCase(attr);
|
1156 |
-
return _isValidAttribute(lcTag, lcName, value);
|
1157 |
-
};
|
1158 |
-
|
1159 |
-
/**
|
1160 |
-
* AddHook
|
1161 |
-
* Public method to add DOMPurify hooks
|
1162 |
-
*
|
1163 |
-
* @param {String} entryPoint entry point for the hook to add
|
1164 |
-
* @param {Function} hookFunction function to execute
|
1165 |
-
*/
|
1166 |
-
DOMPurify.addHook = function (entryPoint, hookFunction) {
|
1167 |
-
if (typeof hookFunction !== 'function') {
|
1168 |
-
return;
|
1169 |
-
}
|
1170 |
-
|
1171 |
-
hooks[entryPoint] = hooks[entryPoint] || [];
|
1172 |
-
arrayPush(hooks[entryPoint], hookFunction);
|
1173 |
-
};
|
1174 |
-
|
1175 |
-
/**
|
1176 |
-
* RemoveHook
|
1177 |
-
* Public method to remove a DOMPurify hook at a given entryPoint
|
1178 |
-
* (pops it from the stack of hooks if more are present)
|
1179 |
-
*
|
1180 |
-
* @param {String} entryPoint entry point for the hook to remove
|
1181 |
-
*/
|
1182 |
-
DOMPurify.removeHook = function (entryPoint) {
|
1183 |
-
if (hooks[entryPoint]) {
|
1184 |
-
arrayPop(hooks[entryPoint]);
|
1185 |
-
}
|
1186 |
-
};
|
1187 |
-
|
1188 |
-
/**
|
1189 |
-
* RemoveHooks
|
1190 |
-
* Public method to remove all DOMPurify hooks at a given entryPoint
|
1191 |
-
*
|
1192 |
-
* @param {String} entryPoint entry point for the hooks to remove
|
1193 |
-
*/
|
1194 |
-
DOMPurify.removeHooks = function (entryPoint) {
|
1195 |
-
if (hooks[entryPoint]) {
|
1196 |
-
hooks[entryPoint] = [];
|
1197 |
-
}
|
1198 |
-
};
|
1199 |
-
|
1200 |
-
/**
|
1201 |
-
* RemoveAllHooks
|
1202 |
-
* Public method to remove all DOMPurify hooks
|
1203 |
-
*
|
1204 |
-
*/
|
1205 |
-
DOMPurify.removeAllHooks = function () {
|
1206 |
-
hooks = {};
|
1207 |
-
};
|
1208 |
-
|
1209 |
-
return DOMPurify;
|
1210 |
-
}
|
1211 |
-
|
1212 |
-
var purify = createDOMPurify();
|
1213 |
-
|
1214 |
-
return purify;
|
1215 |
-
|
1216 |
-
}));
|
1217 |
-
//# sourceMappingURL=purify.js.map
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assets/js/purify.min.js
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
/*! @license DOMPurify | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.0.8/LICENSE */
|
2 |
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).DOMPurify=t()}(this,(function(){"use strict";var e=Object.hasOwnProperty,t=Object.setPrototypeOf,n=Object.isFrozen,r=Object.keys,o=Object.freeze,i=Object.seal,a="undefined"!=typeof Reflect&&Reflect,l=a.apply,c=a.construct;l||(l=function(e,t,n){return e.apply(t,n)}),o||(o=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,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(t))))});var s=S(Array.prototype.forEach),u=S(Array.prototype.indexOf),d=S(Array.prototype.join),f=S(Array.prototype.pop),p=S(Array.prototype.push),m=S(Array.prototype.slice),y=S(String.prototype.toLowerCase),g=S(String.prototype.match),h=S(String.prototype.replace),v=S(String.prototype.indexOf),b=S(String.prototype.trim),T=S(RegExp.prototype.test),A=k(RegExp),x=k(TypeError);function S(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return l(e,t,r)}}function k(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return c(e,n)}}function L(e,r){t&&t(e,null);for(var o=r.length;o--;){var i=r[o];if("string"==typeof i){var a=y(i);a!==i&&(n(r)||(r[o]=a),i=a)}e[i]=!0}return e}function E(t){var n={},r=void 0;for(r in t)l(e,t,[r])&&(n[r]=t[r]);return n}var M=o(["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","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"]),_=o(["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"]),N=o(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),O=o(["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"]),w=o(["#text"]),D=o(["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"]),R=o(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","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","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"]),H=o(["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"]),C=o(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),F=i(/\{\{[\s\S]*|[\s\S]*\}\}/gm),z=i(/<%[\s\S]*|[\s\S]*%>/gm),I=i(/^data-[\-\w.\u00B7-\uFFFF]/),j=i(/^aria-[\-\w]+$/),U=i(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),P=i(/^(?:\w+script|data):/i),W=i(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g),B="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 G(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var q=function(){return"undefined"==typeof window?null:window},K=function(e,t){if("object"!==(void 0===e?"undefined":B(e))||"function"!=typeof e.createPolicy)return null;var n=null;t.currentScript&&t.currentScript.hasAttribute("data-tt-policy-suffix")&&(n=t.currentScript.getAttribute("data-tt-policy-suffix"));var r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};return function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:q(),n=function(t){return e(t)};if(n.version="2.0.10",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var i=t.document,a=!1,l=t.document,c=t.DocumentFragment,S=t.HTMLTemplateElement,k=t.Node,V=t.NodeFilter,Y=t.NamedNodeMap,X=void 0===Y?t.NamedNodeMap||t.MozNamedAttrMap:Y,$=t.Text,J=t.Comment,Q=t.DOMParser,Z=t.trustedTypes;if("function"==typeof S){var ee=l.createElement("template");ee.content&&ee.content.ownerDocument&&(l=ee.content.ownerDocument)}var te=K(Z,i),ne=te?te.createHTML(""):"",re=l,oe=re.implementation,ie=re.createNodeIterator,ae=re.getElementsByTagName,le=re.createDocumentFragment,ce=i.importNode,se={};n.isSupported=oe&&void 0!==oe.createHTMLDocument&&9!==l.documentMode;var ue=F,de=z,fe=I,pe=j,me=P,ye=W,ge=U,he=null,ve=L({},[].concat(G(M),G(_),G(N),G(O),G(w))),be=null,Te=L({},[].concat(G(D),G(R),G(H),G(C))),Ae=null,xe=null,Se=!0,ke=!0,Le=!1,Ee=!1,Me=!1,_e=!1,Ne=!1,Oe=!1,we=!1,De=!1,Re=!1,He=!1,Ce=!0,Fe=!0,ze=!1,Ie={},je=L({},["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"]),Ue=L({},["audio","video","img","source","image","track"]),Pe=null,We=L({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),Be=null,Ge=l.createElement("form"),qe=function(e){Be&&Be===e||(e&&"object"===(void 0===e?"undefined":B(e))||(e={}),he="ALLOWED_TAGS"in e?L({},e.ALLOWED_TAGS):ve,be="ALLOWED_ATTR"in e?L({},e.ALLOWED_ATTR):Te,Pe="ADD_URI_SAFE_ATTR"in e?L(E(We),e.ADD_URI_SAFE_ATTR):We,Ae="FORBID_TAGS"in e?L({},e.FORBID_TAGS):{},xe="FORBID_ATTR"in e?L({},e.FORBID_ATTR):{},Ie="USE_PROFILES"in e&&e.USE_PROFILES,Se=!1!==e.ALLOW_ARIA_ATTR,ke=!1!==e.ALLOW_DATA_ATTR,Le=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ee=e.SAFE_FOR_JQUERY||!1,Me=e.SAFE_FOR_TEMPLATES||!1,_e=e.WHOLE_DOCUMENT||!1,we=e.RETURN_DOM||!1,De=e.RETURN_DOM_FRAGMENT||!1,Re=e.RETURN_DOM_IMPORT||!1,He=e.RETURN_TRUSTED_TYPE||!1,Oe=e.FORCE_BODY||!1,Ce=!1!==e.SANITIZE_DOM,Fe=!1!==e.KEEP_CONTENT,ze=e.IN_PLACE||!1,ge=e.ALLOWED_URI_REGEXP||ge,Me&&(ke=!1),De&&(we=!0),Ie&&(he=L({},[].concat(G(w))),be=[],!0===Ie.html&&(L(he,M),L(be,D)),!0===Ie.svg&&(L(he,_),L(be,R),L(be,C)),!0===Ie.svgFilters&&(L(he,N),L(be,R),L(be,C)),!0===Ie.mathMl&&(L(he,O),L(be,H),L(be,C))),e.ADD_TAGS&&(he===ve&&(he=E(he)),L(he,e.ADD_TAGS)),e.ADD_ATTR&&(be===Te&&(be=E(be)),L(be,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&L(Pe,e.ADD_URI_SAFE_ATTR),Fe&&(he["#text"]=!0),_e&&L(he,["html","head","body"]),he.table&&(L(he,["tbody"]),delete Ae.tbody),o&&o(e),Be=e)},Ke=function(e){p(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.outerHTML=ne}},Ve=function(e,t){try{p(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){p(n.removed,{attribute:null,from:t})}t.removeAttribute(e)},Ye=function(e){var t=void 0,n=void 0;if(Oe)e="<remove></remove>"+e;else{var r=g(e,/^[\s]+/);n=r&&r[0]}var o=te?te.createHTML(e):e;try{t=(new Q).parseFromString(o,"text/html")}catch(e){}if(a&&L(Ae,["title"]),!t||!t.documentElement){var i=(t=oe.createHTMLDocument("")).body;i.parentNode.removeChild(i.parentNode.firstElementChild),i.outerHTML=o}return e&&n&&t.body.insertBefore(l.createTextNode(n),t.body.childNodes[0]||null),ae.call(t,_e?"html":"body")[0]};n.isSupported&&function(){try{var e=Ye("<x/><title></title><img>");T(/<\/title/,e.querySelector("title").innerHTML)&&(a=!0)}catch(e){}}();var Xe=function(e){return ie.call(e.ownerDocument||e,e,V.SHOW_ELEMENT|V.SHOW_COMMENT|V.SHOW_TEXT,(function(){return V.FILTER_ACCEPT}),!1)},$e=function(e){return!(e instanceof $||e instanceof J)&&!("string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof X&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI)},Je=function(e){return"object"===(void 0===k?"undefined":B(k))?e instanceof k:e&&"object"===(void 0===e?"undefined":B(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Qe=function(e,t,r){se[e]&&s(se[e],(function(e){e.call(n,t,r,Be)}))},Ze=function(e){var t=void 0;if(Qe("beforeSanitizeElements",e,null),$e(e))return Ke(e),!0;var r=y(e.nodeName);if(Qe("uponSanitizeElement",e,{tagName:r,allowedTags:he}),("svg"===r||"math"===r)&&0!==e.querySelectorAll("p, br").length)return Ke(e),!0;if(!he[r]||Ae[r]){if(Fe&&!je[r]&&"function"==typeof e.insertAdjacentHTML)try{var o=e.innerHTML;e.insertAdjacentHTML("AfterEnd",te?te.createHTML(o):o)}catch(e){}return Ke(e),!0}return"noscript"===r&&T(/<\/noscript/i,e.innerHTML)||"noembed"===r&&T(/<\/noembed/i,e.innerHTML)?(Ke(e),!0):(!Ee||e.firstElementChild||e.content&&e.content.firstElementChild||!T(/</g,e.textContent)||(p(n.removed,{element:e.cloneNode()}),e.innerHTML?e.innerHTML=h(e.innerHTML,/</g,"<"):e.innerHTML=h(e.textContent,/</g,"<")),Me&&3===e.nodeType&&(t=e.textContent,t=h(t,ue," "),t=h(t,de," "),e.textContent!==t&&(p(n.removed,{element:e.cloneNode()}),e.textContent=t)),Qe("afterSanitizeElements",e,null),!1)},et=function(e,t,n){if(Ce&&("id"===t||"name"===t)&&(n in l||n in Ge))return!1;if(ke&&T(fe,t));else if(Se&&T(pe,t));else{if(!be[t]||xe[t])return!1;if(Pe[t]);else if(T(ge,h(n,ye,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==v(n,"data:")||!Ue[e]){if(Le&&!T(me,h(n,ye,"")));else if(n)return!1}else;}return!0},tt=function(e){var t=void 0,o=void 0,i=void 0,a=void 0,l=void 0;Qe("beforeSanitizeAttributes",e,null);var c=e.attributes;if(c){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:be};for(l=c.length;l--;){var p=t=c[l],g=p.name,v=p.namespaceURI;if(o=b(t.value),i=y(g),s.attrName=i,s.attrValue=o,s.keepAttr=!0,s.forceKeepAttr=void 0,Qe("uponSanitizeAttribute",e,s),o=s.attrValue,!s.forceKeepAttr){if("name"===i&&"IMG"===e.nodeName&&c.id)a=c.id,c=m(c,[]),Ve("id",e),Ve(g,e),u(c,a)>l&&e.setAttribute("id",a.value);else{if("INPUT"===e.nodeName&&"type"===i&&"file"===o&&s.keepAttr&&(be[i]||!xe[i]))continue;"id"===g&&e.setAttribute(g,""),Ve(g,e)}if(s.keepAttr)if(Ee&&T(/\/>/i,o))Ve(g,e);else if(T(/svg|math/i,e.namespaceURI)&&T(A("</("+d(r(je),"|")+")","i"),o))Ve(g,e);else{Me&&(o=h(o,ue," "),o=h(o,de," "));var x=e.nodeName.toLowerCase();if(et(x,i,o))try{v?e.setAttributeNS(v,g,o):e.setAttribute(g,o),f(n.removed)}catch(e){}}}}Qe("afterSanitizeAttributes",e,null)}},nt=function e(t){var n=void 0,r=Xe(t);for(Qe("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)Qe("uponSanitizeShadowNode",n,null),Ze(n)||(n.content instanceof c&&e(n.content),tt(n));Qe("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e,r){var o=void 0,a=void 0,l=void 0,s=void 0,u=void 0;if(e||(e="\x3c!--\x3e"),"string"!=typeof e&&!Je(e)){if("function"!=typeof e.toString)throw x("toString is not a function");if("string"!=typeof(e=e.toString()))throw x("dirty is not a string, aborting")}if(!n.isSupported){if("object"===B(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if(Je(e))return t.toStaticHTML(e.outerHTML)}return e}if(Ne||qe(r),n.removed=[],"string"==typeof e&&(ze=!1),ze);else if(e instanceof k)1===(a=(o=Ye("\x3c!--\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?o=a:o.appendChild(a);else{if(!we&&!Me&&!_e&&He&&-1===e.indexOf("<"))return te?te.createHTML(e):e;if(!(o=Ye(e)))return we?null:ne}o&&Oe&&Ke(o.firstChild);for(var d=Xe(ze?e:o);l=d.nextNode();)3===l.nodeType&&l===s||Ze(l)||(l.content instanceof c&&nt(l.content),tt(l),s=l);if(s=null,ze)return e;if(we){if(De)for(u=le.call(o.ownerDocument);o.firstChild;)u.appendChild(o.firstChild);else u=o;return Re&&(u=ce.call(i,u,!0)),u}var f=_e?o.outerHTML:o.innerHTML;return Me&&(f=h(f,ue," "),f=h(f,de," ")),te&&He?te.createHTML(f):f},n.setConfig=function(e){qe(e),Ne=!0},n.clearConfig=function(){Be=null,Ne=!1},n.isValidAttribute=function(e,t,n){Be||qe({});var r=y(e),o=y(t);return et(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&(se[e]=se[e]||[],p(se[e],t))},n.removeHook=function(e){se[e]&&f(se[e])},n.removeHooks=function(e){se[e]&&(se[e]=[])},n.removeAllHooks=function(){se={}},n}()}));
|
3 |
-
//# sourceMappingURL=purify.min.js.map
|
|
|
|
|
|
assets/js/purify.min.js.map
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
{"version":3,"file":"purify.min.js","sources":["../src/utils.js","../src/tags.js","../src/attrs.js","../src/regexp.js","../src/purify.js"],"sourcesContent":["const { hasOwnProperty, setPrototypeOf, isFrozen, keys: objectKeys } = Object;\n\nlet { freeze, seal } = Object; // eslint-disable-line import/no-mutable-exports\nlet { apply, construct } = typeof Reflect !== 'undefined' && Reflect;\n\nif (!apply) {\n apply = function (fun, thisValue, args) {\n return fun.apply(thisValue, args);\n };\n}\n\nif (!freeze) {\n freeze = function (x) {\n return x;\n };\n}\n\nif (!seal) {\n seal = function (x) {\n return x;\n };\n}\n\nif (!construct) {\n construct = function (Func, args) {\n return new Func(...args);\n };\n}\n\nconst arrayForEach = unapply(Array.prototype.forEach);\nconst arrayIndexOf = unapply(Array.prototype.indexOf);\nconst arrayJoin = unapply(Array.prototype.join);\nconst arrayPop = unapply(Array.prototype.pop);\nconst arrayPush = unapply(Array.prototype.push);\nconst arraySlice = unapply(Array.prototype.slice);\n\nconst stringToLowerCase = unapply(String.prototype.toLowerCase);\nconst stringMatch = unapply(String.prototype.match);\nconst stringReplace = unapply(String.prototype.replace);\nconst stringIndexOf = unapply(String.prototype.indexOf);\nconst stringTrim = unapply(String.prototype.trim);\n\nconst regExpTest = unapply(RegExp.prototype.test);\nconst regExpCreate = unconstruct(RegExp);\n\nconst typeErrorCreate = unconstruct(TypeError);\n\nexport function unapply(func) {\n return (thisArg, ...args) => apply(func, thisArg, args);\n}\n\nexport function unconstruct(func) {\n return (...args) => construct(func, args);\n}\n\n/* Add properties to a lookup table */\nexport function addToSet(set, array) {\n if (setPrototypeOf) {\n // Make 'in' and truthy checks like Boolean(set.constructor)\n // independent of any properties defined on Object.prototype.\n // Prevent prototype setters from intercepting set as a this value.\n setPrototypeOf(set, null);\n }\n\n let l = array.length;\n while (l--) {\n let element = array[l];\n if (typeof element === 'string') {\n const lcElement = stringToLowerCase(element);\n if (lcElement !== element) {\n // Config presets (e.g. tags.js, attrs.js) are immutable.\n if (!isFrozen(array)) {\n array[l] = lcElement;\n }\n\n element = lcElement;\n }\n }\n\n set[element] = true;\n }\n\n return set;\n}\n\n/* Shallow clone an object */\nexport function clone(object) {\n const newObject = {};\n\n let property;\n for (property in object) {\n if (apply(hasOwnProperty, object, [property])) {\n newObject[property] = object[property];\n }\n }\n\n return newObject;\n}\n\nexport {\n // Array\n arrayForEach,\n arrayIndexOf,\n arrayJoin,\n arrayPop,\n arrayPush,\n arraySlice,\n // Object\n freeze,\n hasOwnProperty,\n isFrozen,\n objectKeys,\n setPrototypeOf,\n seal,\n // RegExp\n regExpCreate,\n regExpTest,\n // String\n stringIndexOf,\n stringMatch,\n stringReplace,\n stringToLowerCase,\n stringTrim,\n // Errors\n typeErrorCreate,\n};\n","import { freeze } from './utils';\n\nexport const html = freeze([\n 'a',\n 'abbr',\n 'acronym',\n 'address',\n 'area',\n 'article',\n 'aside',\n 'audio',\n 'b',\n 'bdi',\n 'bdo',\n 'big',\n 'blink',\n 'blockquote',\n 'body',\n 'br',\n 'button',\n 'canvas',\n 'caption',\n 'center',\n 'cite',\n 'code',\n 'col',\n 'colgroup',\n 'content',\n 'data',\n 'datalist',\n 'dd',\n 'decorator',\n 'del',\n 'details',\n 'dfn',\n 'dir',\n 'div',\n 'dl',\n 'dt',\n 'element',\n 'em',\n 'fieldset',\n 'figcaption',\n 'figure',\n 'font',\n 'footer',\n 'form',\n 'h1',\n 'h2',\n 'h3',\n 'h4',\n 'h5',\n 'h6',\n 'head',\n 'header',\n 'hgroup',\n 'hr',\n 'html',\n 'i',\n 'img',\n 'input',\n 'ins',\n 'kbd',\n 'label',\n 'legend',\n 'li',\n 'main',\n 'map',\n 'mark',\n 'marquee',\n 'menu',\n 'menuitem',\n 'meter',\n 'nav',\n 'nobr',\n 'ol',\n 'optgroup',\n 'option',\n 'output',\n 'p',\n 'picture',\n 'pre',\n 'progress',\n 'q',\n 'rp',\n 'rt',\n 'ruby',\n 's',\n 'samp',\n 'section',\n 'select',\n 'shadow',\n 'small',\n 'source',\n 'spacer',\n 'span',\n 'strike',\n 'strong',\n 'style',\n 'sub',\n 'summary',\n 'sup',\n 'table',\n 'tbody',\n 'td',\n 'template',\n 'textarea',\n 'tfoot',\n 'th',\n 'thead',\n 'time',\n 'tr',\n 'track',\n 'tt',\n 'u',\n 'ul',\n 'var',\n 'video',\n 'wbr',\n]);\n\n// SVG\nexport const svg = freeze([\n 'svg',\n 'a',\n 'altglyph',\n 'altglyphdef',\n 'altglyphitem',\n 'animatecolor',\n 'animatemotion',\n 'animatetransform',\n 'audio',\n 'canvas',\n 'circle',\n 'clippath',\n 'defs',\n 'desc',\n 'ellipse',\n 'filter',\n 'font',\n 'g',\n 'glyph',\n 'glyphref',\n 'hkern',\n 'image',\n 'line',\n 'lineargradient',\n 'marker',\n 'mask',\n 'metadata',\n 'mpath',\n 'path',\n 'pattern',\n 'polygon',\n 'polyline',\n 'radialgradient',\n 'rect',\n 'stop',\n 'style',\n 'switch',\n 'symbol',\n 'text',\n 'textpath',\n 'title',\n 'tref',\n 'tspan',\n 'video',\n 'view',\n 'vkern',\n]);\n\nexport const svgFilters = freeze([\n 'feBlend',\n 'feColorMatrix',\n 'feComponentTransfer',\n 'feComposite',\n 'feConvolveMatrix',\n 'feDiffuseLighting',\n 'feDisplacementMap',\n 'feDistantLight',\n 'feFlood',\n 'feFuncA',\n 'feFuncB',\n 'feFuncG',\n 'feFuncR',\n 'feGaussianBlur',\n 'feMerge',\n 'feMergeNode',\n 'feMorphology',\n 'feOffset',\n 'fePointLight',\n 'feSpecularLighting',\n 'feSpotLight',\n 'feTile',\n 'feTurbulence',\n]);\n\nexport const mathMl = freeze([\n 'math',\n 'menclose',\n 'merror',\n 'mfenced',\n 'mfrac',\n 'mglyph',\n 'mi',\n 'mlabeledtr',\n 'mmultiscripts',\n 'mn',\n 'mo',\n 'mover',\n 'mpadded',\n 'mphantom',\n 'mroot',\n 'mrow',\n 'ms',\n 'mspace',\n 'msqrt',\n 'mstyle',\n 'msub',\n 'msup',\n 'msubsup',\n 'mtable',\n 'mtd',\n 'mtext',\n 'mtr',\n 'munder',\n 'munderover',\n]);\n\nexport const text = freeze(['#text']);\n","import { freeze } from './utils';\n\nexport const html = freeze([\n 'accept',\n 'action',\n 'align',\n 'alt',\n 'autocapitalize',\n 'autocomplete',\n 'autopictureinpicture',\n 'autoplay',\n 'background',\n 'bgcolor',\n 'border',\n 'capture',\n 'cellpadding',\n 'cellspacing',\n 'checked',\n 'cite',\n 'class',\n 'clear',\n 'color',\n 'cols',\n 'colspan',\n 'controls',\n 'controlslist',\n 'coords',\n 'crossorigin',\n 'datetime',\n 'decoding',\n 'default',\n 'dir',\n 'disabled',\n 'disablepictureinpicture',\n 'disableremoteplayback',\n 'download',\n 'draggable',\n 'enctype',\n 'enterkeyhint',\n 'face',\n 'for',\n 'headers',\n 'height',\n 'hidden',\n 'high',\n 'href',\n 'hreflang',\n 'id',\n 'inputmode',\n 'integrity',\n 'ismap',\n 'kind',\n 'label',\n 'lang',\n 'list',\n 'loading',\n 'loop',\n 'low',\n 'max',\n 'maxlength',\n 'media',\n 'method',\n 'min',\n 'minlength',\n 'multiple',\n 'muted',\n 'name',\n 'noshade',\n 'novalidate',\n 'nowrap',\n 'open',\n 'optimum',\n 'pattern',\n 'placeholder',\n 'playsinline',\n 'poster',\n 'preload',\n 'pubdate',\n 'radiogroup',\n 'readonly',\n 'rel',\n 'required',\n 'rev',\n 'reversed',\n 'role',\n 'rows',\n 'rowspan',\n 'spellcheck',\n 'scope',\n 'selected',\n 'shape',\n 'size',\n 'sizes',\n 'span',\n 'srclang',\n 'start',\n 'src',\n 'srcset',\n 'step',\n 'style',\n 'summary',\n 'tabindex',\n 'title',\n 'translate',\n 'type',\n 'usemap',\n 'valign',\n 'value',\n 'width',\n 'xmlns',\n]);\n\nexport const svg = freeze([\n 'accent-height',\n 'accumulate',\n 'additive',\n 'alignment-baseline',\n 'ascent',\n 'attributename',\n 'attributetype',\n 'azimuth',\n 'basefrequency',\n 'baseline-shift',\n 'begin',\n 'bias',\n 'by',\n 'class',\n 'clip',\n 'clip-path',\n 'clip-rule',\n 'color',\n 'color-interpolation',\n 'color-interpolation-filters',\n 'color-profile',\n 'color-rendering',\n 'cx',\n 'cy',\n 'd',\n 'dx',\n 'dy',\n 'diffuseconstant',\n 'direction',\n 'display',\n 'divisor',\n 'dur',\n 'edgemode',\n 'elevation',\n 'end',\n 'fill',\n 'fill-opacity',\n 'fill-rule',\n 'filter',\n 'filterunits',\n 'flood-color',\n 'flood-opacity',\n 'font-family',\n 'font-size',\n 'font-size-adjust',\n 'font-stretch',\n 'font-style',\n 'font-variant',\n 'font-weight',\n 'fx',\n 'fy',\n 'g1',\n 'g2',\n 'glyph-name',\n 'glyphref',\n 'gradientunits',\n 'gradienttransform',\n 'height',\n 'href',\n 'id',\n 'image-rendering',\n 'in',\n 'in2',\n 'k',\n 'k1',\n 'k2',\n 'k3',\n 'k4',\n 'kerning',\n 'keypoints',\n 'keysplines',\n 'keytimes',\n 'lang',\n 'lengthadjust',\n 'letter-spacing',\n 'kernelmatrix',\n 'kernelunitlength',\n 'lighting-color',\n 'local',\n 'marker-end',\n 'marker-mid',\n 'marker-start',\n 'markerheight',\n 'markerunits',\n 'markerwidth',\n 'maskcontentunits',\n 'maskunits',\n 'max',\n 'mask',\n 'media',\n 'method',\n 'mode',\n 'min',\n 'name',\n 'numoctaves',\n 'offset',\n 'operator',\n 'opacity',\n 'order',\n 'orient',\n 'orientation',\n 'origin',\n 'overflow',\n 'paint-order',\n 'path',\n 'pathlength',\n 'patterncontentunits',\n 'patterntransform',\n 'patternunits',\n 'points',\n 'preservealpha',\n 'preserveaspectratio',\n 'primitiveunits',\n 'r',\n 'rx',\n 'ry',\n 'radius',\n 'refx',\n 'refy',\n 'repeatcount',\n 'repeatdur',\n 'restart',\n 'result',\n 'rotate',\n 'scale',\n 'seed',\n 'shape-rendering',\n 'specularconstant',\n 'specularexponent',\n 'spreadmethod',\n 'startoffset',\n 'stddeviation',\n 'stitchtiles',\n 'stop-color',\n 'stop-opacity',\n 'stroke-dasharray',\n 'stroke-dashoffset',\n 'stroke-linecap',\n 'stroke-linejoin',\n 'stroke-miterlimit',\n 'stroke-opacity',\n 'stroke',\n 'stroke-width',\n 'style',\n 'surfacescale',\n 'tabindex',\n 'targetx',\n 'targety',\n 'transform',\n 'text-anchor',\n 'text-decoration',\n 'text-rendering',\n 'textlength',\n 'type',\n 'u1',\n 'u2',\n 'unicode',\n 'values',\n 'viewbox',\n 'visibility',\n 'version',\n 'vert-adv-y',\n 'vert-origin-x',\n 'vert-origin-y',\n 'width',\n 'word-spacing',\n 'wrap',\n 'writing-mode',\n 'xchannelselector',\n 'ychannelselector',\n 'x',\n 'x1',\n 'x2',\n 'xmlns',\n 'y',\n 'y1',\n 'y2',\n 'z',\n 'zoomandpan',\n]);\n\nexport const mathMl = freeze([\n 'accent',\n 'accentunder',\n 'align',\n 'bevelled',\n 'close',\n 'columnsalign',\n 'columnlines',\n 'columnspan',\n 'denomalign',\n 'depth',\n 'dir',\n 'display',\n 'displaystyle',\n 'encoding',\n 'fence',\n 'frame',\n 'height',\n 'href',\n 'id',\n 'largeop',\n 'length',\n 'linethickness',\n 'lspace',\n 'lquote',\n 'mathbackground',\n 'mathcolor',\n 'mathsize',\n 'mathvariant',\n 'maxsize',\n 'minsize',\n 'movablelimits',\n 'notation',\n 'numalign',\n 'open',\n 'rowalign',\n 'rowlines',\n 'rowspacing',\n 'rowspan',\n 'rspace',\n 'rquote',\n 'scriptlevel',\n 'scriptminsize',\n 'scriptsizemultiplier',\n 'selection',\n 'separator',\n 'separators',\n 'stretchy',\n 'subscriptshift',\n 'supscriptshift',\n 'symmetric',\n 'voffset',\n 'width',\n 'xmlns',\n]);\n\nexport const xml = freeze([\n 'xlink:href',\n 'xml:id',\n 'xlink:title',\n 'xml:space',\n 'xmlns:xlink',\n]);\n","import { seal } from './utils';\n\n// eslint-disable-next-line unicorn/better-regex\nexport const MUSTACHE_EXPR = seal(/\\{\\{[\\s\\S]*|[\\s\\S]*\\}\\}/gm); // Specify template detection regex for SAFE_FOR_TEMPLATES mode\nexport const ERB_EXPR = seal(/<%[\\s\\S]*|[\\s\\S]*%>/gm);\nexport const DATA_ATTR = seal(/^data-[\\-\\w.\\u00B7-\\uFFFF]/); // eslint-disable-line no-useless-escape\nexport const ARIA_ATTR = seal(/^aria-[\\-\\w]+$/); // eslint-disable-line no-useless-escape\nexport const IS_ALLOWED_URI = seal(\n /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\\-]+(?:[^a-z+.\\-:]|$))/i // eslint-disable-line no-useless-escape\n);\nexport const IS_SCRIPT_OR_DATA = seal(/^(?:\\w+script|data):/i);\nexport const ATTR_WHITESPACE = seal(\n /[\\u0000-\\u0020\\u00A0\\u1680\\u180E\\u2000-\\u2029\\u205f\\u3000]/g // eslint-disable-line no-control-regex\n);\n","import * as TAGS from './tags';\nimport * as ATTRS from './attrs';\nimport * as EXPRESSIONS from './regexp';\nimport {\n addToSet,\n clone,\n freeze,\n objectKeys,\n arrayForEach,\n arrayIndexOf,\n arrayJoin,\n arrayPop,\n arrayPush,\n arraySlice,\n stringMatch,\n stringReplace,\n stringToLowerCase,\n stringIndexOf,\n stringTrim,\n regExpTest,\n regExpCreate,\n typeErrorCreate,\n} from './utils';\n\nconst getGlobal = () => (typeof window === 'undefined' ? null : window);\n\n/**\n * Creates a no-op policy for internal use only.\n * Don't export this function outside this module!\n * @param {?TrustedTypePolicyFactory} trustedTypes The policy factory.\n * @param {Document} document The document object (to determine policy name suffix)\n * @return {?TrustedTypePolicy} The policy created (or null, if Trusted Types\n * are not supported).\n */\nconst _createTrustedTypesPolicy = function (trustedTypes, document) {\n if (\n typeof trustedTypes !== 'object' ||\n typeof trustedTypes.createPolicy !== 'function'\n ) {\n return null;\n }\n\n // Allow the callers to control the unique policy name\n // by adding a data-tt-policy-suffix to the script element with the DOMPurify.\n // Policy creation with duplicate names throws in Trusted Types.\n let suffix = null;\n const ATTR_NAME = 'data-tt-policy-suffix';\n if (\n document.currentScript &&\n document.currentScript.hasAttribute(ATTR_NAME)\n ) {\n suffix = document.currentScript.getAttribute(ATTR_NAME);\n }\n\n const policyName = 'dompurify' + (suffix ? '#' + suffix : '');\n\n try {\n return trustedTypes.createPolicy(policyName, {\n createHTML(html) {\n return html;\n },\n });\n } catch (_) {\n // Policy creation failed (most likely another DOMPurify script has\n // already run). Skip creating the policy, as this will only cause errors\n // if TT are enforced.\n console.warn(\n 'TrustedTypes policy ' + policyName + ' could not be created.'\n );\n return null;\n }\n};\n\nfunction createDOMPurify(window = getGlobal()) {\n const DOMPurify = (root) => createDOMPurify(root);\n\n /**\n * Version label, exposed for easier checks\n * if DOMPurify is up to date or not\n */\n DOMPurify.version = VERSION;\n\n /**\n * Array of elements that DOMPurify removed during sanitation.\n * Empty if nothing was removed.\n */\n DOMPurify.removed = [];\n\n if (!window || !window.document || window.document.nodeType !== 9) {\n // Not running in a browser, provide a factory function\n // so that you can pass your own Window\n DOMPurify.isSupported = false;\n\n return DOMPurify;\n }\n\n const originalDocument = window.document;\n let removeTitle = false;\n\n let { document } = window;\n const {\n DocumentFragment,\n HTMLTemplateElement,\n Node,\n NodeFilter,\n NamedNodeMap = window.NamedNodeMap || window.MozNamedAttrMap,\n Text,\n Comment,\n DOMParser,\n trustedTypes,\n } = window;\n\n // As per issue #47, the web-components registry is inherited by a\n // new document created via createHTMLDocument. As per the spec\n // (http://w3c.github.io/webcomponents/spec/custom/#creating-and-passing-registries)\n // a new empty registry is used when creating a template contents owner\n // document, so we use that as our parent document to ensure nothing\n // is inherited.\n if (typeof HTMLTemplateElement === 'function') {\n const template = document.createElement('template');\n if (template.content && template.content.ownerDocument) {\n document = template.content.ownerDocument;\n }\n }\n\n const trustedTypesPolicy = _createTrustedTypesPolicy(\n trustedTypes,\n originalDocument\n );\n const emptyHTML = trustedTypesPolicy ? trustedTypesPolicy.createHTML('') : '';\n\n const {\n implementation,\n createNodeIterator,\n getElementsByTagName,\n createDocumentFragment,\n } = document;\n const { importNode } = originalDocument;\n\n let hooks = {};\n\n /**\n * Expose whether this browser supports running the full DOMPurify.\n */\n DOMPurify.isSupported =\n implementation &&\n typeof implementation.createHTMLDocument !== 'undefined' &&\n document.documentMode !== 9;\n\n const {\n MUSTACHE_EXPR,\n ERB_EXPR,\n DATA_ATTR,\n ARIA_ATTR,\n IS_SCRIPT_OR_DATA,\n ATTR_WHITESPACE,\n } = EXPRESSIONS;\n\n let { IS_ALLOWED_URI } = EXPRESSIONS;\n\n /**\n * We consider the elements and attributes below to be safe. Ideally\n * don't add any new ones but feel free to remove unwanted ones.\n */\n\n /* allowed element names */\n let ALLOWED_TAGS = null;\n const DEFAULT_ALLOWED_TAGS = addToSet({}, [\n ...TAGS.html,\n ...TAGS.svg,\n ...TAGS.svgFilters,\n ...TAGS.mathMl,\n ...TAGS.text,\n ]);\n\n /* Allowed attribute names */\n let ALLOWED_ATTR = null;\n const DEFAULT_ALLOWED_ATTR = addToSet({}, [\n ...ATTRS.html,\n ...ATTRS.svg,\n ...ATTRS.mathMl,\n ...ATTRS.xml,\n ]);\n\n /* Explicitly forbidden tags (overrides ALLOWED_TAGS/ADD_TAGS) */\n let FORBID_TAGS = null;\n\n /* Explicitly forbidden attributes (overrides ALLOWED_ATTR/ADD_ATTR) */\n let FORBID_ATTR = null;\n\n /* Decide if ARIA attributes are okay */\n let ALLOW_ARIA_ATTR = true;\n\n /* Decide if custom data attributes are okay */\n let ALLOW_DATA_ATTR = true;\n\n /* Decide if unknown protocols are okay */\n let ALLOW_UNKNOWN_PROTOCOLS = false;\n\n /* Output should be safe for jQuery's $() factory? */\n let SAFE_FOR_JQUERY = false;\n\n /* Output should be safe for common template engines.\n * This means, DOMPurify removes data attributes, mustaches and ERB\n */\n let SAFE_FOR_TEMPLATES = false;\n\n /* Decide if document with <html>... should be returned */\n let WHOLE_DOCUMENT = false;\n\n /* Track whether config is already set on this instance of DOMPurify. */\n let SET_CONFIG = false;\n\n /* Decide if all elements (e.g. style, script) must be children of\n * document.body. By default, browsers might move them to document.head */\n let FORCE_BODY = false;\n\n /* Decide if a DOM `HTMLBodyElement` should be returned, instead of a html\n * string (or a TrustedHTML object if Trusted Types are supported).\n * If `WHOLE_DOCUMENT` is enabled a `HTMLHtmlElement` will be returned instead\n */\n let RETURN_DOM = false;\n\n /* Decide if a DOM `DocumentFragment` should be returned, instead of a html\n * string (or a TrustedHTML object if Trusted Types are supported) */\n let RETURN_DOM_FRAGMENT = false;\n\n /* If `RETURN_DOM` or `RETURN_DOM_FRAGMENT` is enabled, decide if the returned DOM\n * `Node` is imported into the current `Document`. If this flag is not enabled the\n * `Node` will belong (its ownerDocument) to a fresh `HTMLDocument`, created by\n * DOMPurify. */\n let RETURN_DOM_IMPORT = false;\n\n /* Try to return a Trusted Type object instead of a string, retrun a string in\n * case Trusted Types are not supported */\n let RETURN_TRUSTED_TYPE = false;\n\n /* Output should be free from DOM clobbering attacks? */\n let SANITIZE_DOM = true;\n\n /* Keep element content when removing element? */\n let KEEP_CONTENT = true;\n\n /* If a `Node` is passed to sanitize(), then performs sanitization in-place instead\n * of importing it into a new Document and returning a sanitized copy */\n let IN_PLACE = false;\n\n /* Allow usage of profiles like html, svg and mathMl */\n let USE_PROFILES = {};\n\n /* Tags to ignore content of when KEEP_CONTENT is true */\n const FORBID_CONTENTS = addToSet({}, [\n 'annotation-xml',\n 'audio',\n 'colgroup',\n 'desc',\n 'foreignobject',\n 'head',\n 'iframe',\n 'math',\n 'mi',\n 'mn',\n 'mo',\n 'ms',\n 'mtext',\n 'noembed',\n 'noframes',\n 'plaintext',\n 'script',\n 'style',\n 'svg',\n 'template',\n 'thead',\n 'title',\n 'video',\n 'xmp',\n ]);\n\n /* Tags that are safe for data: URIs */\n const DATA_URI_TAGS = addToSet({}, [\n 'audio',\n 'video',\n 'img',\n 'source',\n 'image',\n 'track',\n ]);\n\n /* Attributes safe for values like \"javascript:\" */\n let URI_SAFE_ATTRIBUTES = null;\n const DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, [\n 'alt',\n 'class',\n 'for',\n 'id',\n 'label',\n 'name',\n 'pattern',\n 'placeholder',\n 'summary',\n 'title',\n 'value',\n 'style',\n 'xmlns',\n ]);\n\n /* Keep a reference to config to pass to hooks */\n let CONFIG = null;\n\n /* Ideally, do not touch anything below this line */\n /* ______________________________________________ */\n\n const formElement = document.createElement('form');\n\n /**\n * _parseConfig\n *\n * @param {Object} cfg optional config literal\n */\n // eslint-disable-next-line complexity\n const _parseConfig = function (cfg) {\n if (CONFIG && CONFIG === cfg) {\n return;\n }\n\n /* Shield configuration object from tampering */\n if (!cfg || typeof cfg !== 'object') {\n cfg = {};\n }\n\n /* Set configuration parameters */\n ALLOWED_TAGS =\n 'ALLOWED_TAGS' in cfg\n ? addToSet({}, cfg.ALLOWED_TAGS)\n : DEFAULT_ALLOWED_TAGS;\n ALLOWED_ATTR =\n 'ALLOWED_ATTR' in cfg\n ? addToSet({}, cfg.ALLOWED_ATTR)\n : DEFAULT_ALLOWED_ATTR;\n URI_SAFE_ATTRIBUTES =\n 'ADD_URI_SAFE_ATTR' in cfg\n ? addToSet(clone(DEFAULT_URI_SAFE_ATTRIBUTES), cfg.ADD_URI_SAFE_ATTR)\n : DEFAULT_URI_SAFE_ATTRIBUTES;\n FORBID_TAGS = 'FORBID_TAGS' in cfg ? addToSet({}, cfg.FORBID_TAGS) : {};\n FORBID_ATTR = 'FORBID_ATTR' in cfg ? addToSet({}, cfg.FORBID_ATTR) : {};\n USE_PROFILES = 'USE_PROFILES' in cfg ? cfg.USE_PROFILES : false;\n ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false; // Default true\n ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false; // Default true\n ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false; // Default false\n SAFE_FOR_JQUERY = cfg.SAFE_FOR_JQUERY || false; // Default false\n SAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false; // Default false\n WHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false; // Default false\n RETURN_DOM = cfg.RETURN_DOM || false; // Default false\n RETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false; // Default false\n RETURN_DOM_IMPORT = cfg.RETURN_DOM_IMPORT || false; // Default false\n RETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false; // Default false\n FORCE_BODY = cfg.FORCE_BODY || false; // Default false\n SANITIZE_DOM = cfg.SANITIZE_DOM !== false; // Default true\n KEEP_CONTENT = cfg.KEEP_CONTENT !== false; // Default true\n IN_PLACE = cfg.IN_PLACE || false; // Default false\n IS_ALLOWED_URI = cfg.ALLOWED_URI_REGEXP || IS_ALLOWED_URI;\n if (SAFE_FOR_TEMPLATES) {\n ALLOW_DATA_ATTR = false;\n }\n\n if (RETURN_DOM_FRAGMENT) {\n RETURN_DOM = true;\n }\n\n /* Parse profile info */\n if (USE_PROFILES) {\n ALLOWED_TAGS = addToSet({}, [...TAGS.text]);\n ALLOWED_ATTR = [];\n if (USE_PROFILES.html === true) {\n addToSet(ALLOWED_TAGS, TAGS.html);\n addToSet(ALLOWED_ATTR, ATTRS.html);\n }\n\n if (USE_PROFILES.svg === true) {\n addToSet(ALLOWED_TAGS, TAGS.svg);\n addToSet(ALLOWED_ATTR, ATTRS.svg);\n addToSet(ALLOWED_ATTR, ATTRS.xml);\n }\n\n if (USE_PROFILES.svgFilters === true) {\n addToSet(ALLOWED_TAGS, TAGS.svgFilters);\n addToSet(ALLOWED_ATTR, ATTRS.svg);\n addToSet(ALLOWED_ATTR, ATTRS.xml);\n }\n\n if (USE_PROFILES.mathMl === true) {\n addToSet(ALLOWED_TAGS, TAGS.mathMl);\n addToSet(ALLOWED_ATTR, ATTRS.mathMl);\n addToSet(ALLOWED_ATTR, ATTRS.xml);\n }\n }\n\n /* Merge configuration parameters */\n if (cfg.ADD_TAGS) {\n if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {\n ALLOWED_TAGS = clone(ALLOWED_TAGS);\n }\n\n addToSet(ALLOWED_TAGS, cfg.ADD_TAGS);\n }\n\n if (cfg.ADD_ATTR) {\n if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {\n ALLOWED_ATTR = clone(ALLOWED_ATTR);\n }\n\n addToSet(ALLOWED_ATTR, cfg.ADD_ATTR);\n }\n\n if (cfg.ADD_URI_SAFE_ATTR) {\n addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR);\n }\n\n /* Add #text in case KEEP_CONTENT is set to true */\n if (KEEP_CONTENT) {\n ALLOWED_TAGS['#text'] = true;\n }\n\n /* Add html, head and body to ALLOWED_TAGS in case WHOLE_DOCUMENT is true */\n if (WHOLE_DOCUMENT) {\n addToSet(ALLOWED_TAGS, ['html', 'head', 'body']);\n }\n\n /* Add tbody to ALLOWED_TAGS in case tables are permitted, see #286, #365 */\n if (ALLOWED_TAGS.table) {\n addToSet(ALLOWED_TAGS, ['tbody']);\n delete FORBID_TAGS.tbody;\n }\n\n // Prevent further manipulation of configuration.\n // Not available in IE8, Safari 5, etc.\n if (freeze) {\n freeze(cfg);\n }\n\n CONFIG = cfg;\n };\n\n /**\n * _forceRemove\n *\n * @param {Node} node a DOM node\n */\n const _forceRemove = function (node) {\n arrayPush(DOMPurify.removed, { element: node });\n try {\n // eslint-disable-next-line unicorn/prefer-node-remove\n node.parentNode.removeChild(node);\n } catch (_) {\n node.outerHTML = emptyHTML;\n }\n };\n\n /**\n * _removeAttribute\n *\n * @param {String} name an Attribute name\n * @param {Node} node a DOM node\n */\n const _removeAttribute = function (name, node) {\n try {\n arrayPush(DOMPurify.removed, {\n attribute: node.getAttributeNode(name),\n from: node,\n });\n } catch (_) {\n arrayPush(DOMPurify.removed, {\n attribute: null,\n from: node,\n });\n }\n\n node.removeAttribute(name);\n };\n\n /**\n * _initDocument\n *\n * @param {String} dirty a string of dirty markup\n * @return {Document} a DOM, filled with the dirty markup\n */\n const _initDocument = function (dirty) {\n /* Create a HTML document */\n let doc;\n let leadingWhitespace;\n\n if (FORCE_BODY) {\n dirty = '<remove></remove>' + dirty;\n } else {\n /* If FORCE_BODY isn't used, leading whitespace needs to be preserved manually */\n // eslint-disable-next-line unicorn/better-regex\n const matches = stringMatch(dirty, /^[\\s]+/);\n leadingWhitespace = matches && matches[0];\n }\n\n const dirtyPayload = trustedTypesPolicy\n ? trustedTypesPolicy.createHTML(dirty)\n : dirty;\n /* Use the DOMParser API by default, fallback later if needs be */\n try {\n doc = new DOMParser().parseFromString(dirtyPayload, 'text/html');\n } catch (_) {}\n\n /* Remove title to fix a mXSS bug in older MS Edge */\n if (removeTitle) {\n addToSet(FORBID_TAGS, ['title']);\n }\n\n /* Use createHTMLDocument in case DOMParser is not available */\n if (!doc || !doc.documentElement) {\n doc = implementation.createHTMLDocument('');\n const { body } = doc;\n body.parentNode.removeChild(body.parentNode.firstElementChild);\n body.outerHTML = dirtyPayload;\n }\n\n if (dirty && leadingWhitespace) {\n doc.body.insertBefore(\n document.createTextNode(leadingWhitespace),\n doc.body.childNodes[0] || null\n );\n }\n\n /* Work on whole document or just its body */\n return getElementsByTagName.call(doc, WHOLE_DOCUMENT ? 'html' : 'body')[0];\n };\n\n /* Here we test for a broken feature in Edge that might cause mXSS */\n if (DOMPurify.isSupported) {\n (function () {\n try {\n const doc = _initDocument('<x/><title></title><img>');\n if (regExpTest(/<\\/title/, doc.querySelector('title').innerHTML)) {\n removeTitle = true;\n }\n } catch (_) {}\n })();\n }\n\n /**\n * _createIterator\n *\n * @param {Document} root document/fragment to create iterator for\n * @return {Iterator} iterator instance\n */\n const _createIterator = function (root) {\n return createNodeIterator.call(\n root.ownerDocument || root,\n root,\n NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT,\n () => {\n return NodeFilter.FILTER_ACCEPT;\n },\n false\n );\n };\n\n /**\n * _isClobbered\n *\n * @param {Node} elm element to check for clobbering attacks\n * @return {Boolean} true if clobbered, false if safe\n */\n const _isClobbered = function (elm) {\n if (elm instanceof Text || elm instanceof Comment) {\n return false;\n }\n\n if (\n typeof elm.nodeName !== 'string' ||\n typeof elm.textContent !== 'string' ||\n typeof elm.removeChild !== 'function' ||\n !(elm.attributes instanceof NamedNodeMap) ||\n typeof elm.removeAttribute !== 'function' ||\n typeof elm.setAttribute !== 'function' ||\n typeof elm.namespaceURI !== 'string'\n ) {\n return true;\n }\n\n return false;\n };\n\n /**\n * _isNode\n *\n * @param {Node} obj object to check whether it's a DOM node\n * @return {Boolean} true is object is a DOM node\n */\n const _isNode = function (object) {\n return typeof Node === 'object'\n ? object instanceof Node\n : object &&\n typeof object === 'object' &&\n typeof object.nodeType === 'number' &&\n typeof object.nodeName === 'string';\n };\n\n /**\n * _executeHook\n * Execute user configurable hooks\n *\n * @param {String} entryPoint Name of the hook's entry point\n * @param {Node} currentNode node to work on with the hook\n * @param {Object} data additional hook parameters\n */\n const _executeHook = function (entryPoint, currentNode, data) {\n if (!hooks[entryPoint]) {\n return;\n }\n\n arrayForEach(hooks[entryPoint], (hook) => {\n hook.call(DOMPurify, currentNode, data, CONFIG);\n });\n };\n\n /**\n * _sanitizeElements\n *\n * @protect nodeName\n * @protect textContent\n * @protect removeChild\n *\n * @param {Node} currentNode to check for permission to exist\n * @return {Boolean} true if node was killed, false if left alive\n */\n // eslint-disable-next-line complexity\n const _sanitizeElements = function (currentNode) {\n let content;\n\n /* Execute a hook if present */\n _executeHook('beforeSanitizeElements', currentNode, null);\n\n /* Check if element is clobbered or can clobber */\n if (_isClobbered(currentNode)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Now let's check the element's type and name */\n const tagName = stringToLowerCase(currentNode.nodeName);\n\n /* Execute a hook if present */\n _executeHook('uponSanitizeElement', currentNode, {\n tagName,\n allowedTags: ALLOWED_TAGS,\n });\n\n /* Take care of an mXSS pattern using p, br inside svg, math */\n if (\n (tagName === 'svg' || tagName === 'math') &&\n currentNode.querySelectorAll('p, br').length !== 0\n ) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Remove element if anything forbids its presence */\n if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {\n /* Keep content except for black-listed elements */\n if (\n KEEP_CONTENT &&\n !FORBID_CONTENTS[tagName] &&\n typeof currentNode.insertAdjacentHTML === 'function'\n ) {\n try {\n const htmlToInsert = currentNode.innerHTML;\n currentNode.insertAdjacentHTML(\n 'AfterEnd',\n trustedTypesPolicy\n ? trustedTypesPolicy.createHTML(htmlToInsert)\n : htmlToInsert\n );\n } catch (_) {}\n }\n\n _forceRemove(currentNode);\n return true;\n }\n\n /* Remove in case a noscript/noembed XSS is suspected */\n if (\n tagName === 'noscript' &&\n regExpTest(/<\\/noscript/i, currentNode.innerHTML)\n ) {\n _forceRemove(currentNode);\n return true;\n }\n\n if (\n tagName === 'noembed' &&\n regExpTest(/<\\/noembed/i, currentNode.innerHTML)\n ) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Convert markup to cover jQuery behavior */\n if (\n SAFE_FOR_JQUERY &&\n !currentNode.firstElementChild &&\n (!currentNode.content || !currentNode.content.firstElementChild) &&\n regExpTest(/</g, currentNode.textContent)\n ) {\n arrayPush(DOMPurify.removed, { element: currentNode.cloneNode() });\n if (currentNode.innerHTML) {\n currentNode.innerHTML = stringReplace(\n currentNode.innerHTML,\n /</g,\n '<'\n );\n } else {\n currentNode.innerHTML = stringReplace(\n currentNode.textContent,\n /</g,\n '<'\n );\n }\n }\n\n /* Sanitize element content to be template-safe */\n if (SAFE_FOR_TEMPLATES && currentNode.nodeType === 3) {\n /* Get the element's text content */\n content = currentNode.textContent;\n content = stringReplace(content, MUSTACHE_EXPR, ' ');\n content = stringReplace(content, ERB_EXPR, ' ');\n if (currentNode.textContent !== content) {\n arrayPush(DOMPurify.removed, { element: currentNode.cloneNode() });\n currentNode.textContent = content;\n }\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeElements', currentNode, null);\n\n return false;\n };\n\n /**\n * _isValidAttribute\n *\n * @param {string} lcTag Lowercase tag name of containing element.\n * @param {string} lcName Lowercase attribute name.\n * @param {string} value Attribute value.\n * @return {Boolean} Returns true if `value` is valid, otherwise false.\n */\n // eslint-disable-next-line complexity\n const _isValidAttribute = function (lcTag, lcName, value) {\n /* Make sure attribute cannot clobber */\n if (\n SANITIZE_DOM &&\n (lcName === 'id' || lcName === 'name') &&\n (value in document || value in formElement)\n ) {\n return false;\n }\n\n /* Allow valid data-* attributes: At least one character after \"-\"\n (https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes)\n XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804)\n We don't need to check the value; it's always URI safe. */\n if (ALLOW_DATA_ATTR && regExpTest(DATA_ATTR, lcName)) {\n // This attribute is safe\n } else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR, lcName)) {\n // This attribute is safe\n /* Otherwise, check the name is permitted */\n } else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {\n return false;\n\n /* Check value is safe. First, is attr inert? If so, is safe */\n } else if (URI_SAFE_ATTRIBUTES[lcName]) {\n // This attribute is safe\n /* Check no script, data or unknown possibly unsafe URI\n unless we know URI values are safe for that attribute */\n } else if (\n regExpTest(IS_ALLOWED_URI, stringReplace(value, ATTR_WHITESPACE, ''))\n ) {\n // This attribute is safe\n /* Keep image data URIs alive if src/xlink:href is allowed */\n /* Further prevent gadget XSS for dynamically built script tags */\n } else if (\n (lcName === 'src' || lcName === 'xlink:href' || lcName === 'href') &&\n lcTag !== 'script' &&\n stringIndexOf(value, 'data:') === 0 &&\n DATA_URI_TAGS[lcTag]\n ) {\n // This attribute is safe\n /* Allow unknown protocols: This provides support for links that\n are handled by protocol handlers which may be unknown ahead of\n time, e.g. fb:, spotify: */\n } else if (\n ALLOW_UNKNOWN_PROTOCOLS &&\n !regExpTest(IS_SCRIPT_OR_DATA, stringReplace(value, ATTR_WHITESPACE, ''))\n ) {\n // This attribute is safe\n /* Check for binary attributes */\n // eslint-disable-next-line no-negated-condition\n } else if (!value) {\n // Binary attributes are safe at this point\n /* Anything else, presume unsafe, do not add it back */\n } else {\n return false;\n }\n\n return true;\n };\n\n /**\n * _sanitizeAttributes\n *\n * @protect attributes\n * @protect nodeName\n * @protect removeAttribute\n * @protect setAttribute\n *\n * @param {Node} currentNode to sanitize\n */\n // eslint-disable-next-line complexity\n const _sanitizeAttributes = function (currentNode) {\n let attr;\n let value;\n let lcName;\n let idAttr;\n let l;\n /* Execute a hook if present */\n _executeHook('beforeSanitizeAttributes', currentNode, null);\n\n let { attributes } = currentNode;\n\n /* Check if we have attributes; if not we might have a text node */\n if (!attributes) {\n return;\n }\n\n const hookEvent = {\n attrName: '',\n attrValue: '',\n keepAttr: true,\n allowedAttributes: ALLOWED_ATTR,\n };\n l = attributes.length;\n\n /* Go backwards over all attributes; safely remove bad ones */\n while (l--) {\n attr = attributes[l];\n const { name, namespaceURI } = attr;\n value = stringTrim(attr.value);\n lcName = stringToLowerCase(name);\n\n /* Execute a hook if present */\n hookEvent.attrName = lcName;\n hookEvent.attrValue = value;\n hookEvent.keepAttr = true;\n hookEvent.forceKeepAttr = undefined; // Allows developers to see this is a property they can set\n _executeHook('uponSanitizeAttribute', currentNode, hookEvent);\n value = hookEvent.attrValue;\n /* Did the hooks approve of the attribute? */\n if (hookEvent.forceKeepAttr) {\n continue;\n }\n\n /* Remove attribute */\n // Safari (iOS + Mac), last tested v8.0.5, crashes if you try to\n // remove a \"name\" attribute from an <img> tag that has an \"id\"\n // attribute at the time.\n if (\n lcName === 'name' &&\n currentNode.nodeName === 'IMG' &&\n attributes.id\n ) {\n idAttr = attributes.id;\n attributes = arraySlice(attributes, []);\n _removeAttribute('id', currentNode);\n _removeAttribute(name, currentNode);\n if (arrayIndexOf(attributes, idAttr) > l) {\n currentNode.setAttribute('id', idAttr.value);\n }\n } else if (\n // This works around a bug in Safari, where input[type=file]\n // cannot be dynamically set after type has been removed\n currentNode.nodeName === 'INPUT' &&\n lcName === 'type' &&\n value === 'file' &&\n hookEvent.keepAttr &&\n (ALLOWED_ATTR[lcName] || !FORBID_ATTR[lcName])\n ) {\n continue;\n } else {\n // This avoids a crash in Safari v9.0 with double-ids.\n // The trick is to first set the id to be empty and then to\n // remove the attribute\n if (name === 'id') {\n currentNode.setAttribute(name, '');\n }\n\n _removeAttribute(name, currentNode);\n }\n\n /* Did the hooks approve of the attribute? */\n if (!hookEvent.keepAttr) {\n continue;\n }\n\n /* Work around a security issue in jQuery 3.0 */\n if (SAFE_FOR_JQUERY && regExpTest(/\\/>/i, value)) {\n _removeAttribute(name, currentNode);\n continue;\n }\n\n /* Take care of an mXSS pattern using namespace switches */\n if (\n regExpTest(/svg|math/i, currentNode.namespaceURI) &&\n regExpTest(\n regExpCreate(\n '</(' + arrayJoin(objectKeys(FORBID_CONTENTS), '|') + ')',\n 'i'\n ),\n value\n )\n ) {\n _removeAttribute(name, currentNode);\n continue;\n }\n\n /* Sanitize attribute content to be template-safe */\n if (SAFE_FOR_TEMPLATES) {\n value = stringReplace(value, MUSTACHE_EXPR, ' ');\n value = stringReplace(value, ERB_EXPR, ' ');\n }\n\n /* Is `value` valid for this attribute? */\n const lcTag = currentNode.nodeName.toLowerCase();\n if (!_isValidAttribute(lcTag, lcName, value)) {\n continue;\n }\n\n /* Handle invalid data-* attribute set by try-catching it */\n try {\n if (namespaceURI) {\n currentNode.setAttributeNS(namespaceURI, name, value);\n } else {\n /* Fallback to setAttribute() for browser-unrecognized namespaces e.g. \"x-schema\". */\n currentNode.setAttribute(name, value);\n }\n\n arrayPop(DOMPurify.removed);\n } catch (_) {}\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeAttributes', currentNode, null);\n };\n\n /**\n * _sanitizeShadowDOM\n *\n * @param {DocumentFragment} fragment to iterate over recursively\n */\n const _sanitizeShadowDOM = function (fragment) {\n let shadowNode;\n const shadowIterator = _createIterator(fragment);\n\n /* Execute a hook if present */\n _executeHook('beforeSanitizeShadowDOM', fragment, null);\n\n while ((shadowNode = shadowIterator.nextNode())) {\n /* Execute a hook if present */\n _executeHook('uponSanitizeShadowNode', shadowNode, null);\n\n /* Sanitize tags and elements */\n if (_sanitizeElements(shadowNode)) {\n continue;\n }\n\n /* Deep shadow DOM detected */\n if (shadowNode.content instanceof DocumentFragment) {\n _sanitizeShadowDOM(shadowNode.content);\n }\n\n /* Check attributes, sanitize if necessary */\n _sanitizeAttributes(shadowNode);\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeShadowDOM', fragment, null);\n };\n\n /**\n * Sanitize\n * Public method providing core sanitation functionality\n *\n * @param {String|Node} dirty string or DOM node\n * @param {Object} configuration object\n */\n // eslint-disable-next-line complexity\n DOMPurify.sanitize = function (dirty, cfg) {\n let body;\n let importedNode;\n let currentNode;\n let oldNode;\n let returnNode;\n /* Make sure we have a string to sanitize.\n DO NOT return early, as this will return the wrong type if\n the user has requested a DOM object rather than a string */\n if (!dirty) {\n dirty = '<!-->';\n }\n\n /* Stringify, in case dirty is an object */\n if (typeof dirty !== 'string' && !_isNode(dirty)) {\n // eslint-disable-next-line no-negated-condition\n if (typeof dirty.toString !== 'function') {\n throw typeErrorCreate('toString is not a function');\n } else {\n dirty = dirty.toString();\n if (typeof dirty !== 'string') {\n throw typeErrorCreate('dirty is not a string, aborting');\n }\n }\n }\n\n /* Check we can run. Otherwise fall back or ignore */\n if (!DOMPurify.isSupported) {\n if (\n typeof window.toStaticHTML === 'object' ||\n typeof window.toStaticHTML === 'function'\n ) {\n if (typeof dirty === 'string') {\n return window.toStaticHTML(dirty);\n }\n\n if (_isNode(dirty)) {\n return window.toStaticHTML(dirty.outerHTML);\n }\n }\n\n return dirty;\n }\n\n /* Assign config vars */\n if (!SET_CONFIG) {\n _parseConfig(cfg);\n }\n\n /* Clean up removed elements */\n DOMPurify.removed = [];\n\n /* Check if dirty is correctly typed for IN_PLACE */\n if (typeof dirty === 'string') {\n IN_PLACE = false;\n }\n\n if (IN_PLACE) {\n /* No special handling necessary for in-place sanitization */\n } else if (dirty instanceof Node) {\n /* If dirty is a DOM element, append to an empty document to avoid\n elements being stripped by the parser */\n body = _initDocument('<!-->');\n importedNode = body.ownerDocument.importNode(dirty, true);\n if (importedNode.nodeType === 1 && importedNode.nodeName === 'BODY') {\n /* Node is already a body, use as is */\n body = importedNode;\n } else if (importedNode.nodeName === 'HTML') {\n body = importedNode;\n } else {\n // eslint-disable-next-line unicorn/prefer-node-append\n body.appendChild(importedNode);\n }\n } else {\n /* Exit directly if we have nothing to do */\n if (\n !RETURN_DOM &&\n !SAFE_FOR_TEMPLATES &&\n !WHOLE_DOCUMENT &&\n RETURN_TRUSTED_TYPE &&\n // eslint-disable-next-line unicorn/prefer-includes\n dirty.indexOf('<') === -1\n ) {\n return trustedTypesPolicy\n ? trustedTypesPolicy.createHTML(dirty)\n : dirty;\n }\n\n /* Initialize the document to work on */\n body = _initDocument(dirty);\n\n /* Check we have a DOM node from the data */\n if (!body) {\n return RETURN_DOM ? null : emptyHTML;\n }\n }\n\n /* Remove first element node (ours) if FORCE_BODY is set */\n if (body && FORCE_BODY) {\n _forceRemove(body.firstChild);\n }\n\n /* Get node iterator */\n const nodeIterator = _createIterator(IN_PLACE ? dirty : body);\n\n /* Now start iterating over the created document */\n while ((currentNode = nodeIterator.nextNode())) {\n /* Fix IE's strange behavior with manipulated textNodes #89 */\n if (currentNode.nodeType === 3 && currentNode === oldNode) {\n continue;\n }\n\n /* Sanitize tags and elements */\n if (_sanitizeElements(currentNode)) {\n continue;\n }\n\n /* Shadow DOM detected, sanitize it */\n if (currentNode.content instanceof DocumentFragment) {\n _sanitizeShadowDOM(currentNode.content);\n }\n\n /* Check attributes, sanitize if necessary */\n _sanitizeAttributes(currentNode);\n\n oldNode = currentNode;\n }\n\n oldNode = null;\n\n /* If we sanitized `dirty` in-place, return it. */\n if (IN_PLACE) {\n return dirty;\n }\n\n /* Return sanitized string or DOM */\n if (RETURN_DOM) {\n if (RETURN_DOM_FRAGMENT) {\n returnNode = createDocumentFragment.call(body.ownerDocument);\n\n while (body.firstChild) {\n // eslint-disable-next-line unicorn/prefer-node-append\n returnNode.appendChild(body.firstChild);\n }\n } else {\n returnNode = body;\n }\n\n if (RETURN_DOM_IMPORT) {\n /*\n AdoptNode() is not used because internal state is not reset\n (e.g. the past names map of a HTMLFormElement), this is safe\n in theory but we would rather not risk another attack vector.\n The state that is cloned by importNode() is explicitly defined\n by the specs.\n */\n returnNode = importNode.call(originalDocument, returnNode, true);\n }\n\n return returnNode;\n }\n\n let serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML;\n\n /* Sanitize final string template-safe */\n if (SAFE_FOR_TEMPLATES) {\n serializedHTML = stringReplace(serializedHTML, MUSTACHE_EXPR, ' ');\n serializedHTML = stringReplace(serializedHTML, ERB_EXPR, ' ');\n }\n\n return trustedTypesPolicy && RETURN_TRUSTED_TYPE\n ? trustedTypesPolicy.createHTML(serializedHTML)\n : serializedHTML;\n };\n\n /**\n * Public method to set the configuration once\n * setConfig\n *\n * @param {Object} cfg configuration object\n */\n DOMPurify.setConfig = function (cfg) {\n _parseConfig(cfg);\n SET_CONFIG = true;\n };\n\n /**\n * Public method to remove the configuration\n * clearConfig\n *\n */\n DOMPurify.clearConfig = function () {\n CONFIG = null;\n SET_CONFIG = false;\n };\n\n /**\n * Public method to check if an attribute value is valid.\n * Uses last set config, if any. Otherwise, uses config defaults.\n * isValidAttribute\n *\n * @param {string} tag Tag name of containing element.\n * @param {string} attr Attribute name.\n * @param {string} value Attribute value.\n * @return {Boolean} Returns true if `value` is valid. Otherwise, returns false.\n */\n DOMPurify.isValidAttribute = function (tag, attr, value) {\n /* Initialize shared config vars if necessary. */\n if (!CONFIG) {\n _parseConfig({});\n }\n\n const lcTag = stringToLowerCase(tag);\n const lcName = stringToLowerCase(attr);\n return _isValidAttribute(lcTag, lcName, value);\n };\n\n /**\n * AddHook\n * Public method to add DOMPurify hooks\n *\n * @param {String} entryPoint entry point for the hook to add\n * @param {Function} hookFunction function to execute\n */\n DOMPurify.addHook = function (entryPoint, hookFunction) {\n if (typeof hookFunction !== 'function') {\n return;\n }\n\n hooks[entryPoint] = hooks[entryPoint] || [];\n arrayPush(hooks[entryPoint], hookFunction);\n };\n\n /**\n * RemoveHook\n * Public method to remove a DOMPurify hook at a given entryPoint\n * (pops it from the stack of hooks if more are present)\n *\n * @param {String} entryPoint entry point for the hook to remove\n */\n DOMPurify.removeHook = function (entryPoint) {\n if (hooks[entryPoint]) {\n arrayPop(hooks[entryPoint]);\n }\n };\n\n /**\n * RemoveHooks\n * Public method to remove all DOMPurify hooks at a given entryPoint\n *\n * @param {String} entryPoint entry point for the hooks to remove\n */\n DOMPurify.removeHooks = function (entryPoint) {\n if (hooks[entryPoint]) {\n hooks[entryPoint] = [];\n }\n };\n\n /**\n * RemoveAllHooks\n * Public method to remove all DOMPurify hooks\n *\n */\n DOMPurify.removeAllHooks = function () {\n hooks = {};\n };\n\n return DOMPurify;\n}\n\nexport default createDOMPurify();\n"],"names":["hasOwnProperty","Object","setPrototypeOf","isFrozen","objectKeys","keys","freeze","seal","Reflect","apply","construct","fun","thisValue","args","x","Func","arrayForEach","unapply","Array","prototype","forEach","arrayIndexOf","indexOf","arrayJoin","join","arrayPop","pop","arrayPush","push","arraySlice","slice","stringToLowerCase","String","toLowerCase","stringMatch","match","stringReplace","replace","stringIndexOf","stringTrim","trim","regExpTest","RegExp","test","regExpCreate","unconstruct","typeErrorCreate","TypeError","func","thisArg","addToSet","set","array","l","length","element","lcElement","clone","object","newObject","property","html","svg","svgFilters","mathMl","text","xml","MUSTACHE_EXPR","ERB_EXPR","DATA_ATTR","ARIA_ATTR","IS_ALLOWED_URI","IS_SCRIPT_OR_DATA","ATTR_WHITESPACE","getGlobal","window","_createTrustedTypesPolicy","trustedTypes","document","createPolicy","suffix","currentScript","hasAttribute","getAttribute","policyName","_","warn","createDOMPurify","DOMPurify","root","version","VERSION","removed","nodeType","isSupported","originalDocument","removeTitle","DocumentFragment","HTMLTemplateElement","Node","NodeFilter","NamedNodeMap","MozNamedAttrMap","Text","Comment","DOMParser","template","createElement","content","ownerDocument","trustedTypesPolicy","emptyHTML","createHTML","implementation","createNodeIterator","getElementsByTagName","createDocumentFragment","importNode","hooks","createHTMLDocument","documentMode","EXPRESSIONS","ALLOWED_TAGS","DEFAULT_ALLOWED_TAGS","TAGS","ALLOWED_ATTR","DEFAULT_ALLOWED_ATTR","ATTRS","FORBID_TAGS","FORBID_ATTR","ALLOW_ARIA_ATTR","ALLOW_DATA_ATTR","ALLOW_UNKNOWN_PROTOCOLS","SAFE_FOR_JQUERY","SAFE_FOR_TEMPLATES","WHOLE_DOCUMENT","SET_CONFIG","FORCE_BODY","RETURN_DOM","RETURN_DOM_FRAGMENT","RETURN_DOM_IMPORT","RETURN_TRUSTED_TYPE","SANITIZE_DOM","KEEP_CONTENT","IN_PLACE","USE_PROFILES","FORBID_CONTENTS","DATA_URI_TAGS","URI_SAFE_ATTRIBUTES","DEFAULT_URI_SAFE_ATTRIBUTES","CONFIG","formElement","_parseConfig","cfg","ADD_URI_SAFE_ATTR","ALLOWED_URI_REGEXP","ADD_TAGS","ADD_ATTR","table","tbody","_forceRemove","node","parentNode","removeChild","outerHTML","_removeAttribute","name","getAttributeNode","removeAttribute","_initDocument","dirty","doc","leadingWhitespace","matches","dirtyPayload","parseFromString","documentElement","body","firstElementChild","insertBefore","createTextNode","childNodes","call","querySelector","innerHTML","_createIterator","SHOW_ELEMENT","SHOW_COMMENT","SHOW_TEXT","FILTER_ACCEPT","_isClobbered","elm","nodeName","textContent","attributes","setAttribute","namespaceURI","_isNode","_executeHook","entryPoint","currentNode","data","hook","_sanitizeElements","tagName","querySelectorAll","insertAdjacentHTML","htmlToInsert","cloneNode","_isValidAttribute","lcTag","lcName","value","_sanitizeAttributes","attr","idAttr","hookEvent","attrName","attrValue","keepAttr","forceKeepAttr","undefined","id","setAttributeNS","_sanitizeShadowDOM","fragment","shadowNode","shadowIterator","nextNode","sanitize","importedNode","oldNode","returnNode","toString","_typeof","toStaticHTML","appendChild","firstChild","nodeIterator","serializedHTML","setConfig","clearConfig","isValidAttribute","tag","addHook","hookFunction","removeHook","removeHooks","removeAllHooks"],"mappings":";oMAAQA,EAA+DC,OAA/DD,eAAgBE,EAA+CD,OAA/CC,eAAgBC,EAA+BF,OAA/BE,SAAgBC,EAAeH,OAArBI,KAE5CC,EAAiBL,OAAjBK,OAAQC,EAASN,OAATM,OACgC,oBAAZC,SAA2BA,QAAvDC,IAAAA,MAAOC,IAAAA,UAERD,MACK,SAAUE,EAAKC,EAAWC,UACzBF,EAAIF,MAAMG,EAAWC,KAI3BP,MACM,SAAUQ,UACVA,IAINP,MACI,SAAUO,UACRA,IAINJ,MACS,SAAUK,EAAMF,4CACfE,uIAAQF,QAIvB,IAAMG,EAAeC,EAAQC,MAAMC,UAAUC,SACvCC,EAAeJ,EAAQC,MAAMC,UAAUG,SACvCC,EAAYN,EAAQC,MAAMC,UAAUK,MACpCC,EAAWR,EAAQC,MAAMC,UAAUO,KACnCC,EAAYV,EAAQC,MAAMC,UAAUS,MACpCC,EAAaZ,EAAQC,MAAMC,UAAUW,OAErCC,EAAoBd,EAAQe,OAAOb,UAAUc,aAC7CC,EAAcjB,EAAQe,OAAOb,UAAUgB,OACvCC,EAAgBnB,EAAQe,OAAOb,UAAUkB,SACzCC,EAAgBrB,EAAQe,OAAOb,UAAUG,SACzCiB,EAAatB,EAAQe,OAAOb,UAAUqB,MAEtCC,EAAaxB,EAAQyB,OAAOvB,UAAUwB,MACtCC,EAAeC,EAAYH,QAE3BI,EAAkBD,EAAYE,WAE7B,SAAS9B,EAAQ+B,UACf,SAACC,8BAAYpC,0DAASJ,EAAMuC,EAAMC,EAASpC,IAG7C,SAASgC,EAAYG,UACnB,sCAAInC,gDAASH,EAAUsC,EAAMnC,IAI/B,SAASqC,EAASC,EAAKC,GACxBlD,KAIaiD,EAAK,cAGlBE,EAAID,EAAME,OACPD,KAAK,KACNE,EAAUH,EAAMC,MACG,iBAAZE,EAAsB,KACzBC,EAAYzB,EAAkBwB,GAChCC,IAAcD,IAEXpD,EAASiD,OACNC,GAAKG,KAGHA,KAIVD,IAAW,SAGVJ,EAIF,SAASM,EAAMC,OACdC,EAAY,GAEdC,aACCA,KAAYF,EACXjD,EAAMT,EAAgB0D,EAAQ,CAACE,QACvBA,GAAYF,EAAOE,WAI1BD,EC9FF,IAAME,EAAOvD,EAAO,CACzB,IACA,OACA,UACA,UACA,OACA,UACA,QACA,QACA,IACA,MACA,MACA,MACA,QACA,aACA,OACA,KACA,SACA,SACA,UACA,SACA,OACA,OACA,MACA,WACA,UACA,OACA,WACA,KACA,YACA,MACA,UACA,MACA,MACA,MACA,KACA,KACA,UACA,KACA,WACA,aACA,SACA,OACA,SACA,OACA,KACA,KACA,KACA,KACA,KACA,KACA,OACA,SACA,SACA,KACA,OACA,IACA,MACA,QACA,MACA,MACA,QACA,SACA,KACA,OACA,MACA,OACA,UACA,OACA,WACA,QACA,MACA,OACA,KACA,WACA,SACA,SACA,IACA,UACA,MACA,WACA,IACA,KACA,KACA,OACA,IACA,OACA,UACA,SACA,SACA,QACA,SACA,SACA,OACA,SACA,SACA,QACA,MACA,UACA,MACA,QACA,QACA,KACA,WACA,WACA,QACA,KACA,QACA,OACA,KACA,QACA,KACA,IACA,KACA,MACA,QACA,QAIWwD,EAAMxD,EAAO,CACxB,MACA,IACA,WACA,cACA,eACA,eACA,gBACA,mBACA,QACA,SACA,SACA,WACA,OACA,OACA,UACA,SACA,OACA,IACA,QACA,WACA,QACA,QACA,OACA,iBACA,SACA,OACA,WACA,QACA,OACA,UACA,UACA,WACA,iBACA,OACA,OACA,QACA,SACA,SACA,OACA,WACA,QACA,OACA,QACA,QACA,OACA,UAGWyD,EAAazD,EAAO,CAC/B,UACA,gBACA,sBACA,cACA,mBACA,oBACA,oBACA,iBACA,UACA,UACA,UACA,UACA,UACA,iBACA,UACA,cACA,eACA,WACA,eACA,qBACA,cACA,SACA,iBAGW0D,EAAS1D,EAAO,CAC3B,OACA,WACA,SACA,UACA,QACA,SACA,KACA,aACA,gBACA,KACA,KACA,QACA,UACA,WACA,QACA,OACA,KACA,SACA,QACA,SACA,OACA,OACA,UACA,SACA,MACA,QACA,MACA,SACA,eAGW2D,EAAO3D,EAAO,CAAC,UCnOfuD,EAAOvD,EAAO,CACzB,SACA,SACA,QACA,MACA,iBACA,eACA,uBACA,WACA,aACA,UACA,SACA,UACA,cACA,cACA,UACA,OACA,QACA,QACA,QACA,OACA,UACA,WACA,eACA,SACA,cACA,WACA,WACA,UACA,MACA,WACA,0BACA,wBACA,WACA,YACA,UACA,eACA,OACA,MACA,UACA,SACA,SACA,OACA,OACA,WACA,KACA,YACA,YACA,QACA,OACA,QACA,OACA,OACA,UACA,OACA,MACA,MACA,YACA,QACA,SACA,MACA,YACA,WACA,QACA,OACA,UACA,aACA,SACA,OACA,UACA,UACA,cACA,cACA,SACA,UACA,UACA,aACA,WACA,MACA,WACA,MACA,WACA,OACA,OACA,UACA,aACA,QACA,WACA,QACA,OACA,QACA,OACA,UACA,QACA,MACA,SACA,OACA,QACA,UACA,WACA,QACA,YACA,OACA,SACA,SACA,QACA,QACA,UAGWwD,EAAMxD,EAAO,CACxB,gBACA,aACA,WACA,qBACA,SACA,gBACA,gBACA,UACA,gBACA,iBACA,QACA,OACA,KACA,QACA,OACA,YACA,YACA,QACA,sBACA,8BACA,gBACA,kBACA,KACA,KACA,IACA,KACA,KACA,kBACA,YACA,UACA,UACA,MACA,WACA,YACA,MACA,OACA,eACA,YACA,SACA,cACA,cACA,gBACA,cACA,YACA,mBACA,eACA,aACA,eACA,cACA,KACA,KACA,KACA,KACA,aACA,WACA,gBACA,oBACA,SACA,OACA,KACA,kBACA,KACA,MACA,IACA,KACA,KACA,KACA,KACA,UACA,YACA,aACA,WACA,OACA,eACA,iBACA,eACA,mBACA,iBACA,QACA,aACA,aACA,eACA,eACA,cACA,cACA,mBACA,YACA,MACA,OACA,QACA,SACA,OACA,MACA,OACA,aACA,SACA,WACA,UACA,QACA,SACA,cACA,SACA,WACA,cACA,OACA,aACA,sBACA,mBACA,eACA,SACA,gBACA,sBACA,iBACA,IACA,KACA,KACA,SACA,OACA,OACA,cACA,YACA,UACA,SACA,SACA,QACA,OACA,kBACA,mBACA,mBACA,eACA,cACA,eACA,cACA,aACA,eACA,mBACA,oBACA,iBACA,kBACA,oBACA,iBACA,SACA,eACA,QACA,eACA,WACA,UACA,UACA,YACA,cACA,kBACA,iBACA,aACA,OACA,KACA,KACA,UACA,SACA,UACA,aACA,UACA,aACA,gBACA,gBACA,QACA,eACA,OACA,eACA,mBACA,mBACA,IACA,KACA,KACA,QACA,IACA,KACA,KACA,IACA,eAGW0D,EAAS1D,EAAO,CAC3B,SACA,cACA,QACA,WACA,QACA,eACA,cACA,aACA,aACA,QACA,MACA,UACA,eACA,WACA,QACA,QACA,SACA,OACA,KACA,UACA,SACA,gBACA,SACA,SACA,iBACA,YACA,WACA,cACA,UACA,UACA,gBACA,WACA,WACA,OACA,WACA,WACA,aACA,UACA,SACA,SACA,cACA,gBACA,uBACA,YACA,YACA,aACA,WACA,iBACA,iBACA,YACA,UACA,QACA,UAGW4D,EAAM5D,EAAO,CACxB,aACA,SACA,cACA,YACA,gBChWW6D,EAAgB5D,EAAK,6BACrB6D,EAAW7D,EAAK,yBAChB8D,EAAY9D,EAAK,8BACjB+D,EAAY/D,EAAK,kBACjBgE,EAAiBhE,EAC5B,yFAEWiE,EAAoBjE,EAAK,yBACzBkE,EAAkBlE,EAC7B,mYCYF,IAAMmE,EAAY,iBAAyB,oBAAXC,OAAyB,KAAOA,QAU1DC,EAA4B,SAAUC,EAAcC,MAE9B,qBAAjBD,gBAAAA,KAC8B,mBAA9BA,EAAaE,oBAEb,SAMLC,EAAS,KAGXF,EAASG,eACTH,EAASG,cAAcC,aAHP,6BAKPJ,EAASG,cAAcE,aALhB,8BAQZC,EAAa,aAAeJ,EAAS,IAAMA,EAAS,eAGjDH,EAAaE,aAAaK,EAAY,qBAChCvB,UACFA,KAGX,MAAOwB,kBAICC,KACN,uBAAyBF,EAAa,0BAEjC,cAIX,SAASG,QAAgBZ,yDAASD,IAC1Bc,EAAY,SAACC,UAASF,EAAgBE,SAMlCC,QAAUC,WAMVC,QAAU,IAEfjB,IAAWA,EAAOG,UAAyC,IAA7BH,EAAOG,SAASe,kBAGvCC,aAAc,EAEjBN,MAGHO,EAAmBpB,EAAOG,SAC5BkB,GAAc,EAEZlB,EAAaH,EAAbG,SAEJmB,EASEtB,EATFsB,iBACAC,EAQEvB,EARFuB,oBACAC,EAOExB,EAPFwB,KACAC,EAMEzB,EANFyB,aAMEzB,EALF0B,aAAAA,aAAe1B,EAAO0B,cAAgB1B,EAAO2B,kBAC7CC,EAIE5B,EAJF4B,KACAC,EAGE7B,EAHF6B,QACAC,EAEE9B,EAFF8B,UACA5B,EACEF,EADFE,gBASiC,mBAAxBqB,EAAoC,KACvCQ,GAAW5B,EAAS6B,cAAc,YACpCD,GAASE,SAAWF,GAASE,QAAQC,kBAC5BH,GAASE,QAAQC,mBAI1BC,GAAqBlC,EACzBC,EACAkB,GAEIgB,GAAYD,GAAqBA,GAAmBE,WAAW,IAAM,MAOvElC,EAJFmC,MAAAA,eACAC,MAAAA,mBACAC,MAAAA,qBACAC,MAAAA,uBAEMC,GAAetB,EAAfsB,WAEJC,GAAQ,KAKFxB,YACRmB,SAC6C,IAAtCA,GAAeM,oBACI,IAA1BzC,EAAS0C,iBAGTrD,GAMEsD,EALFrD,GAKEqD,EAJFpD,GAIEoD,EAHFnD,GAGEmD,EAFFjD,GAEEiD,EADFhD,GACEgD,EAEElD,GAAmBkD,EAQrBC,GAAe,KACbC,GAAuBzE,EAAS,eACjC0E,KACAA,KACAA,KACAA,KACAA,KAIDC,GAAe,KACbC,GAAuB5E,EAAS,eACjC6E,KACAA,KACAA,KACAA,KAIDC,GAAc,KAGdC,GAAc,KAGdC,IAAkB,EAGlBC,IAAkB,EAGlBC,IAA0B,EAG1BC,IAAkB,EAKlBC,IAAqB,EAGrBC,IAAiB,EAGjBC,IAAa,EAIbC,IAAa,EAMbC,IAAa,EAIbC,IAAsB,EAMtBC,IAAoB,EAIpBC,IAAsB,EAGtBC,IAAe,EAGfC,IAAe,EAIfC,IAAW,EAGXC,GAAe,GAGbC,GAAkBhG,EAAS,GAAI,CACnC,iBACA,QACA,WACA,OACA,gBACA,OACA,SACA,OACA,KACA,KACA,KACA,KACA,QACA,UACA,WACA,YACA,SACA,QACA,MACA,WACA,QACA,QACA,QACA,QAIIiG,GAAgBjG,EAAS,GAAI,CACjC,QACA,QACA,MACA,SACA,QACA,UAIEkG,GAAsB,KACpBC,GAA8BnG,EAAS,GAAI,CAC/C,MACA,QACA,MACA,KACA,QACA,OACA,UACA,cACA,UACA,QACA,QACA,QACA,UAIEoG,GAAS,KAKPC,GAAczE,EAAS6B,cAAc,QAQrC6C,GAAe,SAAUC,GACzBH,IAAUA,KAAWG,IAKpBA,GAAsB,qBAARA,gBAAAA,QACX,OAKN,iBAAkBA,EACdvG,EAAS,GAAIuG,EAAI/B,cACjBC,MAEJ,iBAAkB8B,EACdvG,EAAS,GAAIuG,EAAI5B,cACjBC,MAEJ,sBAAuB2B,EACnBvG,EAASO,EAAM4F,IAA8BI,EAAIC,mBACjDL,MACQ,gBAAiBI,EAAMvG,EAAS,GAAIuG,EAAIzB,aAAe,MACvD,gBAAiByB,EAAMvG,EAAS,GAAIuG,EAAIxB,aAAe,MACtD,iBAAkBwB,GAAMA,EAAIR,iBACD,IAAxBQ,EAAIvB,oBACoB,IAAxBuB,EAAItB,mBACIsB,EAAIrB,0BAA2B,KACvCqB,EAAIpB,kBAAmB,KACpBoB,EAAInB,qBAAsB,KAC9BmB,EAAIlB,iBAAkB,KAC1BkB,EAAIf,aAAc,KACTe,EAAId,sBAAuB,KAC7Bc,EAAIb,oBAAqB,KACvBa,EAAIZ,sBAAuB,KACpCY,EAAIhB,aAAc,MACK,IAArBgB,EAAIX,iBACiB,IAArBW,EAAIV,gBACRU,EAAIT,WAAY,KACVS,EAAIE,oBAAsBpF,GACvC+D,SACgB,GAGhBK,SACW,GAIXM,QACa/F,EAAS,eAAQ0E,QACjB,IACW,IAAtBqB,GAAapF,SACN6D,GAAcE,KACdC,GAAcE,KAGA,IAArBkB,GAAanF,QACN4D,GAAcE,KACdC,GAAcE,KACdF,GAAcE,KAGO,IAA5BkB,GAAalF,eACN2D,GAAcE,KACdC,GAAcE,KACdF,GAAcE,KAGG,IAAxBkB,GAAajF,WACN0D,GAAcE,KACdC,GAAcE,KACdF,GAAcE,KAKvB0B,EAAIG,WACFlC,KAAiBC,QACJlE,EAAMiE,OAGdA,GAAc+B,EAAIG,WAGzBH,EAAII,WACFhC,KAAiBC,QACJrE,EAAMoE,OAGdA,GAAc4B,EAAII,WAGzBJ,EAAIC,qBACGN,GAAqBK,EAAIC,mBAIhCX,QACW,UAAW,GAItBR,MACOb,GAAc,CAAC,OAAQ,OAAQ,SAItCA,GAAaoC,UACNpC,GAAc,CAAC,iBACjBM,GAAY+B,OAKjBzJ,KACKmJ,MAGAA,IAQLO,GAAe,SAAUC,KACnBzE,EAAUI,QAAS,CAAErC,QAAS0G,UAGjCC,WAAWC,YAAYF,GAC5B,MAAO5E,KACF+E,UAAYrD,KAUfsD,GAAmB,SAAUC,EAAML,SAE3BzE,EAAUI,QAAS,WAChBqE,EAAKM,iBAAiBD,QAC3BL,IAER,MAAO5E,KACGG,EAAUI,QAAS,WAChB,UACLqE,MAILO,gBAAgBF,IASjBG,GAAgB,SAAUC,OAE1BC,SACAC,YAEAnC,KACM,oBAAsBiC,MACzB,KAGCG,EAAU3I,EAAYwI,EAAO,YACfG,GAAWA,EAAQ,OAGnCC,EAAehE,GACjBA,GAAmBE,WAAW0D,GAC9BA,SAGI,IAAIjE,GAAYsE,gBAAgBD,EAAc,aACpD,MAAOzF,OAGLW,KACOgC,GAAa,CAAC,WAIpB2C,IAAQA,EAAIK,gBAAiB,KAExBC,KADFhE,GAAeM,mBAAmB,KAChC0D,OACHf,WAAWC,YAAYc,EAAKf,WAAWgB,qBACvCd,UAAYU,SAGfJ,GAASE,KACPK,KAAKE,aACPrG,EAASsG,eAAeR,GACxBD,EAAIM,KAAKI,WAAW,IAAM,MAKvBlE,GAAqBmE,KAAKX,EAAKpC,GAAiB,OAAS,QAAQ,IAItE/C,EAAUM,gCAGF6E,EAAMF,GAAc,wCACtBhI,EAAW,WAAYkI,EAAIY,cAAc,SAASC,gBACtC,GAEhB,MAAOnG,YAUPoG,GAAkB,SAAUhG,UACzByB,GAAmBoE,KACxB7F,EAAKoB,eAAiBpB,EACtBA,EACAW,EAAWsF,aAAetF,EAAWuF,aAAevF,EAAWwF,WAC/D,kBACSxF,EAAWyF,iBAEpB,IAUEC,GAAe,SAAUC,WACzBA,aAAexF,GAAQwF,aAAevF,MAKhB,iBAAjBuF,EAAIC,UACgB,iBAApBD,EAAIE,aACgB,mBAApBF,EAAI5B,aACT4B,EAAIG,sBAAsB7F,GACG,mBAAxB0F,EAAIvB,iBACiB,mBAArBuB,EAAII,cACiB,iBAArBJ,EAAIK,eAcTC,GAAU,SAAU3I,SACD,qBAATyC,gBAAAA,IACVzC,aAAkByC,EAClBzC,GACoB,qBAAXA,gBAAAA,KACoB,iBAApBA,EAAOmC,UACa,iBAApBnC,EAAOsI,UAWhBM,GAAe,SAAUC,EAAYC,EAAaC,GACjDnF,GAAMiF,MAIEjF,GAAMiF,IAAa,SAACG,KAC1BpB,KAAK9F,EAAWgH,EAAaC,EAAMnD,QAetCqD,GAAoB,SAAUH,OAC9B5F,eAGS,yBAA0B4F,EAAa,MAGhDV,GAAaU,aACFA,IACN,MAIHI,EAAU7K,EAAkByK,EAAYR,gBAGjC,sBAAuBQ,EAAa,uBAElC9E,MAKA,QAAZkF,GAAiC,SAAZA,IAC2B,IAAjDJ,EAAYK,iBAAiB,SAASvJ,iBAEzBkJ,IACN,MAIJ9E,GAAakF,IAAY5E,GAAY4E,GAAU,IAGhD7D,KACCG,GAAgB0D,IACyB,mBAAnCJ,EAAYM,2BAGXC,EAAeP,EAAYhB,YACrBsB,mBACV,WACAhG,GACIA,GAAmBE,WAAW+F,GAC9BA,GAEN,MAAO1H,cAGEmH,IACN,QAKK,aAAZI,GACAnK,EAAW,eAAgB+J,EAAYhB,YAO3B,YAAZoB,GACAnK,EAAW,cAAe+J,EAAYhB,eANzBgB,IACN,KAaPnE,IACCmE,EAAYtB,mBACXsB,EAAY5F,SAAY4F,EAAY5F,QAAQsE,oBAC9CzI,EAAW,KAAM+J,EAAYP,iBAEnBzG,EAAUI,QAAS,CAAErC,QAASiJ,EAAYQ,cAChDR,EAAYhB,YACFA,UAAYpJ,EACtBoK,EAAYhB,UACZ,KACA,UAGUA,UAAYpJ,EACtBoK,EAAYP,YACZ,KACA,SAMF3D,IAA+C,IAAzBkE,EAAY3G,aAE1B2G,EAAYP,cACZ7J,EAAcwE,EAASzC,GAAe,OACtC/B,EAAcwE,EAASxC,GAAU,KACvCoI,EAAYP,cAAgBrF,MACpBpB,EAAUI,QAAS,CAAErC,QAASiJ,EAAYQ,gBACxCf,YAAcrF,OAKjB,wBAAyB4F,EAAa,OAE5C,IAYHS,GAAoB,SAAUC,EAAOC,EAAQC,MAG/CtE,KACY,OAAXqE,GAA8B,SAAXA,KACnBC,KAAStI,GAAYsI,KAAS7D,WAExB,KAOLpB,IAAmB1F,EAAW4B,GAAW8I,SAEtC,GAAIjF,IAAmBzF,EAAW6B,GAAW6I,QAG7C,CAAA,IAAKtF,GAAasF,IAAWlF,GAAYkF,UACvC,EAGF,GAAI/D,GAAoB+D,SAIxB,GACL1K,EAAW8B,GAAgBnC,EAAcgL,EAAO3I,GAAiB,WAK5D,GACO,QAAX0I,GAA+B,eAAXA,GAAsC,SAAXA,GACtC,WAAVD,GACkC,IAAlC5K,EAAc8K,EAAO,WACrBjE,GAAc+D,IAMT,GACL9E,KACC3F,EAAW+B,GAAmBpC,EAAcgL,EAAO3I,GAAiB,WAKhE,GAAK2I,SAIH,eAGF,GAcHC,GAAsB,SAAUb,OAChCc,SACAF,SACAD,SACAI,SACAlK,YAES,2BAA4BmJ,EAAa,UAEhDN,EAAeM,EAAfN,cAGDA,OAICsB,EAAY,UACN,aACC,aACD,oBACS3F,UAEjBqE,EAAW5I,OAGRD,KAAK,SACH6I,EAAW7I,GACViH,IAAAA,KAAM8B,IAAAA,kBACN7J,EAAW+K,EAAKF,SACfrL,EAAkBuI,KAGjBmD,SAAWN,IACXO,UAAYN,IACZO,UAAW,IACXC,mBAAgBC,KACb,wBAAyBrB,EAAagB,KAC3CA,EAAUE,WAEdF,EAAUI,kBASD,SAAXT,GACyB,QAAzBX,EAAYR,UACZE,EAAW4B,KAEF5B,EAAW4B,KACPjM,EAAWqK,EAAY,OACnB,KAAMM,MACNlC,EAAMkC,GACnBnL,EAAa6K,EAAYqB,GAAUlK,KACzB8I,aAAa,KAAMoB,EAAOH,WAEnC,CAAA,GAGoB,YAAbpB,UACD,SAAXmB,GACU,SAAVC,GACAI,EAAUG,WACT9F,GAAasF,KAAYlF,GAAYkF,aAOzB,OAAT7C,KACU6B,aAAa7B,EAAM,OAGhBA,EAAMkC,MAIpBgB,EAAUG,YAKXtF,IAAmB5F,EAAW,OAAQ2K,MACvB9C,EAAMkC,WAMvB/J,EAAW,YAAa+J,EAAYJ,eACpC3J,EACEG,EACE,MAAQrB,EAAUnB,EAAW8I,IAAkB,KAAO,IACtD,KAEFkE,MAGe9C,EAAMkC,QAKrBlE,OACMlG,EAAcgL,EAAOjJ,GAAe,OACpC/B,EAAcgL,EAAOhJ,GAAU,UAInC8I,EAAQV,EAAYR,SAAS/J,iBAC9BgL,GAAkBC,EAAOC,EAAQC,OAMhChB,IACU2B,eAAe3B,EAAc9B,EAAM8C,KAGnCjB,aAAa7B,EAAM8C,KAGxB5H,EAAUI,SACnB,MAAOP,UAIE,0BAA2BmH,EAAa,QAQjDwB,GAAqB,SAArBA,EAA+BC,OAC/BC,SACEC,EAAiB1C,GAAgBwC,UAG1B,0BAA2BA,EAAU,MAE1CC,EAAaC,EAAeC,eAErB,yBAA0BF,EAAY,MAG/CvB,GAAkBuB,KAKlBA,EAAWtH,mBAAmBX,KACbiI,EAAWtH,YAIZsH,OAIT,yBAA0BD,EAAU,gBAWzCI,SAAW,SAAU3D,EAAOjB,OAChCwB,SACAqD,SACA9B,SACA+B,SACAC,YAIC9D,MACK,eAIW,iBAAVA,IAAuB2B,GAAQ3B,GAAQ,IAElB,mBAAnBA,EAAM+D,eACT3L,EAAgB,iCAGD,mBADb4H,EAAM+D,kBAEN3L,EAAgB,uCAMvB0C,EAAUM,YAAa,IAEO,WAA/B4I,EAAO/J,EAAOgK,eACiB,mBAAxBhK,EAAOgK,aACd,IACqB,iBAAVjE,SACF/F,EAAOgK,aAAajE,MAGzB2B,GAAQ3B,UACH/F,EAAOgK,aAAajE,EAAMN,kBAI9BM,KAIJlC,OACUiB,KAIL7D,QAAU,GAGC,iBAAV8E,QACE,GAGT1B,SAEG,GAAI0B,aAAiBvE,EAKI,UAFvBsE,GAAc,gBACD5D,cAAcQ,WAAWqD,GAAO,IACnC7E,UAA4C,SAA1ByI,EAAatC,UAGX,SAA1BsC,EAAatC,WADfsC,IAKFM,YAAYN,OAEd,KAGF5F,KACAJ,KACAC,IACDM,KAEwB,MAAlBvH,QAAQ,YAEPwF,GACHA,GAAmBE,WAAW0D,GAC9BA,SAICD,GAAcC,WAIZhC,GAAa,KAAO3B,GAK3BkE,GAAQxC,OACGwC,EAAK4D,oBAIdC,EAAerD,GAAgBzC,GAAW0B,EAAQO,GAGhDuB,EAAcsC,EAAaV,YAEJ,IAAzB5B,EAAY3G,UAAkB2G,IAAgB+B,GAK9C5B,GAAkBH,KAKlBA,EAAY5F,mBAAmBX,MACduG,EAAY5F,YAIb4F,KAEVA,QAGF,KAGNxD,UACK0B,KAILhC,GAAY,IACVC,SACWvB,GAAuBkE,KAAKL,EAAKpE,eAEvCoE,EAAK4D,cAECD,YAAY3D,EAAK4D,mBAGjB5D,SAGXrC,OAQWvB,GAAWiE,KAAKvF,EAAkByI,GAAY,IAGtDA,MAGLO,EAAiBxG,GAAiB0C,EAAKb,UAAYa,EAAKO,iBAGxDlD,OACelG,EAAc2M,EAAgB5K,GAAe,OAC7C/B,EAAc2M,EAAgB3K,GAAU,MAGpD0C,IAAsB+B,GACzB/B,GAAmBE,WAAW+H,GAC9BA,KASIC,UAAY,SAAUvF,MACjBA,OACA,KAQLwF,YAAc,cACb,SACI,KAaLC,iBAAmB,SAAUC,EAAK7B,EAAMF,GAE3C9D,OACU,QAGT4D,EAAQnL,EAAkBoN,GAC1BhC,EAASpL,EAAkBuL,UAC1BL,GAAkBC,EAAOC,EAAQC,MAUhCgC,QAAU,SAAU7C,EAAY8C,GACZ,mBAAjBA,OAIL9C,GAAcjF,GAAMiF,IAAe,KAC/BjF,GAAMiF,GAAa8C,OAUrBC,WAAa,SAAU/C,GAC3BjF,GAAMiF,MACCjF,GAAMiF,OAUTgD,YAAc,SAAUhD,GAC5BjF,GAAMiF,QACFA,GAAc,OASdiD,eAAiB,cACjB,IAGHhK,EAGMD"}
|
|
assets/js/scripts.js
DELETED
@@ -1,15 +0,0 @@
|
|
1 |
-
jQuery( document ).ready( function( $ ) {
|
2 |
-
$( '#generateblocks-regenerate-css-files-button' ).on( 'click', function( event ) {
|
3 |
-
var $thisButton = $( this ); // eslint-disable-line no-var
|
4 |
-
event.preventDefault();
|
5 |
-
|
6 |
-
$thisButton.removeClass( 'success' ).addClass( 'loading' );
|
7 |
-
|
8 |
-
$.post( ajaxurl, {
|
9 |
-
action: 'generateblocks_regenerate_css_files',
|
10 |
-
_nonce: $thisButton.data( 'nonce' ),
|
11 |
-
} ).done( function() {
|
12 |
-
$thisButton.removeClass( 'loading' ).addClass( 'success' );
|
13 |
-
} );
|
14 |
-
} );
|
15 |
-
} );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dist/blocks.asset.php
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<?php return array('dependencies' => array('wp-element', 'wp-polyfill'), 'version' => '1b23ceac6c833a59d95adc4151f9f245');
|
dist/blocks.build.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
!function(e){function t(l){if(a[l])return a[l].exports;var n=a[l]={i:l,l:!1,exports:{}};return e[l].call(n.exports,n,n.exports,t),n.l=!0,n.exports}var a={};t.m=e,t.c=a,t.d=function(e,a,l){t.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:l})},t.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(a,"a",a),a},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=19)}([function(e,t,a){var l,n;!function(){"use strict";function a(){for(var e=[],t=0;t<arguments.length;t++){var l=arguments[t];if(l){var n=typeof l;if("string"===n||"number"===n)e.push(l);else if(Array.isArray(l)&&l.length){var r=a.apply(null,l);r&&e.push(r)}else if("object"===n)for(var o in l)i.call(l,o)&&l[o]&&e.push(o)}}return e.join(" ")}var i={}.hasOwnProperty;"undefined"!==typeof e&&e.exports?(a.default=a,e.exports=a):(l=[],void 0!==(n=function(){return a}.apply(t,l))&&(e.exports=n))}()},function(e,t,a){"use strict";function l(e){return"tabs-desktop"===e?n("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none"},n("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"}),n("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?n("svg",{width:24,height:24,viewBox:"0 0 24 24"},n("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"}),n("path",{d:"M12 17.5H12.01"})):"tabs-mobile"===e?n("svg",{width:24,height:24,viewBox:"0 0 24 24"},n("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"}),n("path",{d:"M12 17.5H12.01"})):"sync"===e?n("svg",{width:24,height:24,viewBox:"0 0 24 24"},n("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?n("svg",{width:24,height:24,viewBox:"0 0 20 20",style:{padding:"1px"}},n("path",{d:"M12.5 4v5.2h-5V4H5v13h2.5v-5.2h5V17H15V4",fill:"#1e72bd"})):"grid"===e?n("svg",{width:20,height:20,viewBox:"0 0 20 20",style:{padding:"1px"}},n("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"}),n("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?n("svg",{width:20,height:20,viewBox:"0 0 20 20",style:{padding:"1px"}},n("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?n("svg",{width:20,height:20,viewBox:"0 0 20 20",style:{padding:"1px"}},n("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?n("svg",{width:20,height:20,viewBox:"0 0 20 20"},n("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?n("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},n("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"}),n("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?n("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},n("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"}),n("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"}),n("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?n("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},n("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"}),n("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?n("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},n("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?n("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},n("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?n("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},n("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"}),n("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?n("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},n("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?n("svg",{width:20,height:20,viewBox:"0 0 64 64",fillRule:"evenodd"},n("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"}),n("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?n("svg",{width:24,height:24,viewBox:"0 0 24 24",fillRule:"evenodd"},n("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?n("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},n("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"}),n("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"}),n("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?n("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},n("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"}),n("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"})):void 0}t.a=l;var n=wp.element.createElement},function(e,t,a){"use strict";function l(e){var t=window.localStorage.getItem("generateblocksSelectedDevice"),a=e;return t&&(a=t),a}t.a=l},function(e,t,a){"use strict";function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var r=a(23),o=(a.n(r),function(){function e(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)}}return function(t,a,l){return a&&e(t.prototype,a),l&&e(t,l),t}}()),c=wp.element.Component,__=wp.i18n.__,s=wp.components,g=s.Tooltip,u=s.Button,p=function(e){function t(){return l(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),o(t,[{key:"render",value:function(){var e=this.props,t=e.onClick,a=e.selectedDevice;return wp.element.createElement("div",{className:"gb-responsive-tabs"},wp.element.createElement(g,{text:__("Show options for all devices","generateblocks")},wp.element.createElement(u,{isLarge:!0,isPressed:"desktop"===a,onClick:function(){t("desktop")}},__("Desktop","generateblocks"))),wp.element.createElement(g,{text:__("Show options for tablet devices","generateblocks")},wp.element.createElement(u,{isLarge:!0,isPressed:"tablet"===a,onClick:function(){t("tablet")}},__("Tablet","generateblocks"))),wp.element.createElement(g,{text:__("Show options for mobile devices","generateblocks")},wp.element.createElement(u,{isLarge:!0,isPressed:"mobile"===a,onClick:function(){t("mobile")}},__("Mobile","generateblocks"))))}}]),t}(c);t.a=p},function(e,t,a){"use strict";function l(e){var t="",a=!0,l=!1,i=void 0;try{for(var r,o=Object.entries(e)[Symbol.iterator]();!(a=(r=o.next()).done);a=!0){var c=r.value,s=n(c,2),g=s[0],u=s[1];if(!(u.length<1)){var p=g+"{",b=0,d=!0,f=!1,m=void 0;try{for(var h,k=Object.entries(u)[Symbol.iterator]();!(d=(h=k.next()).done);d=!0){var w=h.value,y=n(w,2),v=(y[0],y[1]),C=!0,S=!1,B=void 0;try{for(var E,T=Object.entries(v)[Symbol.iterator]();!(C=(E=T.next()).done);C=!0){var O=E.value,z=n(O,2),M=z[0],D=z[1];(D||0===D)&&(b++,p+=M+": "+D+";")}}catch(e){S=!0,B=e}finally{try{!C&&T.return&&T.return()}finally{if(S)throw B}}}}catch(e){f=!0,m=e}finally{try{!d&&k.return&&k.return()}finally{if(f)throw m}}p+="}",b>0&&(t+=p)}}}catch(e){l=!0,i=e}finally{try{!a&&o.return&&o.return()}finally{if(l)throw i}}return t}t.a=l;var n=function(){function e(e,t){var a=[],_n=!0,l=!1,n=void 0;try{for(var i,r=e[Symbol.iterator]();!(_n=(i=r.next()).done)&&(a.push(i.value),!t||a.length!==t);_n=!0);}catch(e){l=!0,n=e}finally{try{!_n&&r.return&&r.return()}finally{if(l)throw n}}return a}return function(t,a){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,a);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()},function(e,t,a){"use strict";function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var r=a(25),o=function(){function e(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)}}return function(t,a,l){return a&&e(t.prototype,a),l&&e(t,l),t}}(),c=wp.components.PanelBody,s=wp.element.Component,g=wp.hooks.applyFilters,u=function(e){function t(){return l(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),o(t,[{key:"render",value:function(){var e=this.props,t=e.title,a=void 0!==t&&t,l=e.initialOpen,n=void 0!==l&&l,i=e.icon,o=e.className,s=e.id,u=e.state,p=e.showPanel,b=void 0===p||p,d=e.children;return g("generateblocks.editor.showPanel",b,s,this.props)?wp.element.createElement(r.a,{name:"generateblocks.panel."+s,props:this.props,state:u},a?wp.element.createElement(c,{title:a,initialOpen:n,icon:i,className:o},d):wp.element.createElement(c,null,d)):null}}]),t}(s);t.a=u},function(e,t,a){"use strict";function l(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:""}t.a=l},function(e,t,a){"use strict";function l(e){return DOMPurify.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0}})}t.a=l},function(e,t,a){"use strict";function l(e,t){return!(!e&&0!==e)&&e+t}t.a=l},function(e,t,a){"use strict";function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var r=a(0),o=a.n(r),c=a(6),s=a(1),g=a(33),u=(a.n(g),function(){function e(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)}}return function(t,a,l){return a&&e(t.prototype,a),l&&e(t,l),t}}()),p=wp.element.Component,__=wp.i18n.__,b=wp.components,d=b.Tooltip,f=b.BaseControl,m=b.Button,h=b.ColorPicker,k=b.RangeControl,w=wp.blockEditor.ColorPalette,y=function(e){function t(){l(this,t);var e=n(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.state={showPicker:!1,showPalette:"palette"===generateBlocksInfo.colorComponentDiplay,colorKey:!1},e}return i(t,e),u(t,[{key:"render",value:function(){var e=this,t=this.props,a=t.value,l=t.onChange,n=t.onOpacityChange,i=t.label,r=t.alpha,g=void 0!==r&&r,u=t.valueOpacity,p=this.state,b=p.showPicker,y=p.showPalette,v=p.colorKey;return wp.element.createElement(f,{className:o()({"gblocks-color-picker-container":!0,"gblocks-color-picker-is-open":b})},wp.element.createElement(f,{className:"gblocks-component-color-picker-wrapper"},wp.element.createElement("span",{className:"components-base-control__label",role:"button",tabIndex:"0",onClick:function(){e.setState({showPicker:!b})},onKeyDown:function(){e.setState({showPicker:!b})}},i),wp.element.createElement("div",{className:o()("components-color-palette__item-wrapper components-circular-option-picker__option-wrapper",a?"":"components-color-palette__custom-color")},wp.element.createElement(d,{text:__("Choose Color","generateblocks")},wp.element.createElement("button",{type:"button","aria-expanded":b,className:"components-color-palette__item components-circular-option-picker__option",onClick:function(){e.setState({showPicker:!b})},"aria-label":__("Custom color picker","generateblocks"),style:{color:a?Object(c.a)(a,u):"transparent"}},wp.element.createElement("span",{className:"components-color-palette__custom-color-gradient"}))))),b&&wp.element.createElement("div",{className:o()({"gblocks-component-color-picker":!0})},!y&&wp.element.createElement(f,{key:v},wp.element.createElement(h,{key:v,color:a||"",onChangeComplete:function(e){l(e.hex)},disableAlpha:!0}),wp.element.createElement("div",{className:"gblocks-color-controls"},wp.element.createElement(m,{isSmall:!0,isSecondary:!0,className:"components-color-clear-color",onClick:function(){l("")}},__("Clear Color","generateblocks")),wp.element.createElement(m,{isSmall:!0,isSecondary:!0,"aria-expanded":y,className:"components-color-show-palette",onClick:function(){e.setState({showPalette:!y})}},__("Show Color Palette","generateblocks")))),!y&&g&&wp.element.createElement("div",{className:"gblocks-component-color-opacity"},wp.element.createElement(d,{text:__("Opacity","generateblocks")},Object(s.a)("gradient")),wp.element.createElement(k,{value:u||0,onChange:function(e){return n(e)},min:0,max:1,step:.01,initialPosition:1})),y&&wp.element.createElement("div",null,wp.element.createElement(m,{isSmall:!0,isSecondary:!0,"aria-expanded":y,className:"components-color-show-palette",onClick:function(){e.setState({showPalette:!y})}},__("Choose Custom Color","generateblocks")),wp.element.createElement(f,{label:!1,className:"gblocks-component-color-picker-palette"},wp.element.createElement(w,{value:a,onChange:function(t){l(t),e.setState({colorKey:t})},disableCustomColors:!0})),g&&wp.element.createElement("div",{className:"gblocks-component-color-opacity"},wp.element.createElement(d,{text:__("Opacity","generateblocks")},Object(s.a)("gradient")),wp.element.createElement(k,{value:u||0,onChange:function(e){return n(e)},min:0,max:1,step:.01,initialPosition:1})))))}}]),t}(p);t.a=y},function(e,t,a){"use strict";function l(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function r(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=a(0),c=a.n(o),s=a(34),g=(a.n(s),a(1)),u=function(){function e(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)}}return function(t,a,l){return a&&e(t.prototype,a),l&&e(t,l),t}}(),p=wp.i18n,__=p.__,_x=p._x,b=p.sprintf,d=wp.element,f=d.Component,m=d.Fragment,h=wp.components,k=h.Button,w=h.Tooltip,y=h.ButtonGroup,v=function(e){function t(){n(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.onChangeTop=e.onChangeTop.bind(e),e.onChangeRight=e.onChangeRight.bind(e),e.onChangeBottom=e.onChangeBottom.bind(e),e.onChangeLeft=e.onChangeLeft.bind(e),e.onChangeAll=e.onChangeAll.bind(e),e.syncUnits=e.syncUnits.bind(e),e.onChangeUnits=e.onChangeUnits.bind(e),e}return r(t,e),u(t,[{key:"onReset",value:function(e){this.props.setAttributes(l({},this.props[e],""))}},{key:"onChangeTop",value:function(e){this.props.setAttributes(l({},this.props.attrTop,e))}},{key:"onChangeRight",value:function(e){this.props.setAttributes(l({},this.props.attrRight,e))}},{key:"onChangeBottom",value:function(e){this.props.setAttributes(l({},this.props.attrBottom,e))}},{key:"onChangeLeft",value:function(e){this.props.setAttributes(l({},this.props.attrLeft,e))}},{key:"onChangeAll",value:function(e){var t;this.props.setAttributes((t={},l(t,this.props.attrTop,e),l(t,this.props.attrRight,e),l(t,this.props.attrBottom,e),l(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={},l(e,this.props.attrSyncUnits,!this.props.attributes[this.props.attrSyncUnits]),l(e,this.props.attrTop,a.toString()),l(e,this.props.attrRight,a.toString()),l(e,this.props.attrBottom,a.toString()),l(e,this.props.attrLeft,a.toString()),e))}},{key:"onChangeUnits",value:function(e){this.props.setAttributes(l({},this.props.attrUnit,e))}},{key:"render",value:function(){var e=this,t=this.props,a=t.attributes,l=t.label,n=void 0===l?__("Margin","generateblocks"):l,i=t.type,r=void 0===i?"margin":i,o=t.attrTop,s=t.attrRight,u=t.attrBottom,p=t.attrLeft,d=t.attrSyncUnits,f=t.attrUnit,h=t.labelTop,v=void 0===h?__("Top","generateblocks"):h,C=t.labelRight,S=void 0===C?__("Right","generateblocks"):C,B=t.labelBottom,E=void 0===B?__("Bottom","generateblocks"):B,T=t.labelLeft,O=void 0===T?__("Left","generateblocks"):T,z=t.displayUnit,M=t.device,D=t.block,_=t.defaults,L=c()("components-base-control","components-gblocks-dimensions-control"),R=function(t){var a=t.target.value;if("padding"===r&&(a=a.toString().replace(/-/g,"")),""===a)return void e.onReset("attrTop");e.props.attributes[e.props.attrSyncUnits]?e.onChangeAll(a):e.onChangeTop(a)},x=function(t){var a=t.target.value;if("padding"===r&&(a=a.toString().replace(/-/g,"")),""===a)return void e.onReset("attrRight");e.props.attributes[e.props.attrSyncUnits]?e.onChangeAll(a):e.onChangeRight(a)},P=function(t){var a=t.target.value;if("padding"===r&&(a=a.toString().replace(/-/g,"")),""===a)return void e.onReset("attrBottom");e.props.attributes[e.props.attrSyncUnits]?e.onChangeAll(a):e.onChangeBottom(a)},U=function(t){var a=t.target.value;if("padding"===r&&(a=a.toString().replace(/-/g,"")),""===a)return void e.onReset("attrLeft");e.props.attributes[e.props.attrSyncUnits]?e.onChangeAll(a):e.onChangeLeft(a)},j=[{name:_x("Pixel","A size unit for CSS markup","generateblocks"),unitValue:"px"},{name:_x("Em","A size unit for CSS markup","generateblocks"),unitValue:"em"},{name:_x("Percentage","A size unit for CSS markup","generateblocks"),unitValue:"%"}],N="",A="",F="",H="";if("headline"===D&&u.includes("marginBottom")&&"undefined"!==typeof generateBlocksStyling.headline&&"undefined"!==typeof generateBlocksStyling.headline[a.element].marginBottom&&generateBlocksStyling.headline[a.element].marginUnit===a.marginUnit&&(F=generateBlocksStyling.headline[a.element].marginBottom),"tablet"===M){var I=o.replace("Tablet",""),V=s.replace("Tablet",""),G=u.replace("Tablet",""),q=p.replace("Tablet","");N=a[I]?a[I]:N,A=a[V]?a[V]:A,F=a[G]?a[G]:F,H=a[q]?a[q]:H}if("mobile"===M){var W=o.replace("Mobile",""),Z=s.replace("Mobile",""),K=u.replace("Mobile",""),J=p.replace("Mobile","");a[W+"Tablet"]?N=a[W+"Tablet"]:a[W]&&(N=a[W]),a[Z+"Tablet"]?A=a[Z+"Tablet"]:a[Z]&&(A=a[Z]),a[K+"Tablet"]?F=a[K+"Tablet"]:a[K]&&(F=a[K]),a[J+"Tablet"]?H=a[J+"Tablet"]:a[J]&&(H=a[J])}return wp.element.createElement(m,null,wp.element.createElement("div",{className:L},wp.element.createElement("div",{className:"components-gblocks-dimensions-control__header"},wp.element.createElement("div",{className:"components-gblocks-dimensions-control__label"},n),"undefined"!==typeof a[f]?wp.element.createElement("div",{className:"components-gblocks-control__units"},wp.element.createElement(y,{className:"components-gblocks-dimensions-control__units","aria-label":__("Select Units","generateblocks")},j.map(function(t){return wp.element.createElement(w,{text:b(__("%s Units","generateblocks"),t.name),key:t.unitValue},wp.element.createElement(k,{key:t.unitValue,className:"components-gblocks-dimensions-control__units--"+t.name,isSmall:!0,isPrimary:a[f]===t.unitValue,"aria-pressed":a[f]===t.unitValue,"aria-label":b(__("%s Units","generateblocks"),t.name),onClick:function(){return e.onChangeUnits(t.unitValue)}},t.unitValue))}))):null,"undefined"!==typeof z&&wp.element.createElement("div",{className:"components-gblocks-control__units"},wp.element.createElement(w,{text:__("Pixel Units","generateblocks"),key:"px-unit"},wp.element.createElement(k,{key:"px-unit",isSmall:!0,isPrimary:!0,"aria-label":__("Pixel Units","generateblocks")},z)))),wp.element.createElement("div",{className:"components-gblocks-dimensions-control__inputs"},wp.element.createElement("input",{className:"components-gblocks-dimensions-control__number",placeholder:N,type:"number",onChange:R,onBlur:function(){""===a[o]&&""!==_[o]&&(e.props.attributes[e.props.attrSyncUnits]?e.onChangeAll("0"):e.onChangeTop("0"))},onClick:function(e){e.currentTarget.focus()},"aria-label":b(__("%s Top","generateblocks"),n),value:a[o]?a[o]:"",min:"padding"===r?0:void 0,"data-attribute":r}),wp.element.createElement("input",{className:"components-gblocks-dimensions-control__number",placeholder:A,type:"number",onChange:x,onBlur:function(){""===a[s]&&""!==_[s]&&(e.props.attributes[e.props.attrSyncUnits]?e.onChangeAll("0"):e.onChangeRight("0"))},onClick:function(e){e.currentTarget.focus()},"aria-label":b(__("%s Right","generateblocks"),n),value:a[s]?a[s]:"",min:"padding"===r?0:void 0,"data-attribute":r}),wp.element.createElement("input",{className:"components-gblocks-dimensions-control__number",placeholder:F,type:"number",onChange:P,onBlur:function(){""===a[u]&&""!==_[u]&&(e.props.attributes[e.props.attrSyncUnits]?e.onChangeAll("0"):e.onChangeBottom("0"))},onClick:function(e){e.currentTarget.focus()},"aria-label":b(__("%s Bottom","generateblocks"),n),value:a[u]?a[u]:"",min:"padding"===r?0:void 0,"data-attribute":r}),wp.element.createElement("input",{className:"components-gblocks-dimensions-control__number",placeholder:H,type:"number",onChange:U,onBlur:function(){""===a[p]&&""!==_[p]&&(e.props.attributes[e.props.attrSyncUnits]?e.onChangeAll("0"):e.onChangeLeft("0"))},onClick:function(e){e.currentTarget.focus()},"aria-label":b(__("%s Left","generateblocks"),n),value:a[p]?a[p]:"",min:"padding"===r?0:void 0,"data-attribute":r}),wp.element.createElement(w,{text:a[d]?__("Unsync","generateblocks"):__("Sync","generateblocks")},wp.element.createElement(k,{className:"components-gblocks-dimensions-control_sync","aria-label":__("Sync Units","generateblocks"),isPrimary:!!a[d]&&a[d],"aria-pressed":!!a[d]&&a[d],onClick:function(t){return e.syncUnits(t,"")},isSmall:!0},(a[d],Object(g.a)("sync"))))),wp.element.createElement("div",{className:"components-gblocks-dimensions-control__input-labels"},wp.element.createElement("span",{className:"components-gblocks-dimensions-control__number-label"},v),wp.element.createElement("span",{className:"components-gblocks-dimensions-control__number-label"},S),wp.element.createElement("span",{className:"components-gblocks-dimensions-control__number-label"},E),wp.element.createElement("span",{className:"components-gblocks-dimensions-control__number-label"},O),wp.element.createElement("span",{className:"components-gblocks-dimensions-control__number-label"}))))}}]),t}(f);t.a=v},function(e,t,a){"use strict";function l(e,t,a,l,n){if(""!==e||""!==t||""!==a||""!==l){e=0!=parseFloat(e)&&""!==e?parseFloat(e)+n+" ":"0 ",t=0!=parseFloat(t)&&""!==t?parseFloat(t)+n+" ":"0 ",a=0!=parseFloat(a)&&""!==a?parseFloat(a)+n+" ":"0 ",l=0!=parseFloat(l)&&""!==l?parseFloat(l)+n+" ":"0 ",t===l&&(l="",e===a&&(a="",e===t&&(t="")));return(e+t+a+l).trim()}}t.a=l},function(e,t,a){"use strict";function l(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function r(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=a(35),c=(a.n(o),a(36)),s=function(){function e(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)}}return function(t,a,l){return a&&e(t.prototype,a),l&&e(t,l),t}}(),g=wp.i18n,__=g.__,_x=g._x,u=g.sprintf,p=wp.element,b=p.Component,d=p.Fragment,f=wp.components,m=f.BaseControl,h=f.SelectControl,k=f.ToggleControl,w=f.TextControl,y=f.ButtonGroup,v=f.Tooltip,C=f.Button,S=function(e){function t(){return n(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"render",value:function(){var e=this,t=this.props,a=t.setAttributes,n=t.attributes,i=t.device,r=void 0===i?"":i,o=t.showFontSize,s=void 0!==o&&o,g=t.showFontFamily,p=void 0!==g&&g,b=t.showFontWeight,f=void 0!==b&&b,S=t.showTextTransform,B=void 0!==S&&S,E=t.showLineHeight,T=void 0!==E&&E,O=t.showLetterSpacing,z=void 0!==O&&O,M=t.disableAdvancedToggle,D=void 0!==M&&M,_=t.fontSizePlaceholder,L=void 0===_?"17":_,R=[{value:"",label:__("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(c.a).slice(0,20).map(function(e){R.push({value:e,label:e})}),R.push({value:"other",label:__("Other","generateblocks")});var x=[{value:"",label:__("Default","generateblocks")},{value:"normal",label:__("Normal","generateblocks")},{value:"bold",label:__("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"}],P=[{value:"",label:__("Default","generateblocks")},{value:"uppercase",label:__("Uppercase","generateblocks")},{value:"lowercase",label:__("Lowercase","generateblocks")},{value:"capitalize",label:__("Capitalize","generateblocks")},{value:"initial",label:__("Normal","generateblocks")}];"undefined"!==typeof c.a[n.fontFamily]&&"undefined"!==typeof c.a[n.fontFamily].weight&&(x=[{value:"",label:__("Default","generateblocks")},{value:"normal",label:__("Normal","generateblocks")},{value:"bold",label:__("Bold","generateblocks")}],c.a[n.fontFamily].weight.filter(function(e){var t=e.match(/[a-z]/g),a=e.match(/[0-9]/g);return!(t&&a||"italic"===e)}).map(function(e){x.push({value:e,label:e})}));var U=function(e){"other"===e&&(e="");n.fontWeight;a({fontFamily:e}),n.fontWeight&&Object.values(x).indexOf(n.fontWeight),a("undefined"!==typeof c.a[e]?{googleFont:!0,fontFamilyFallback:c.a[e].fallback,googleFontVariants:c.a[e].weight.join(", ")}:{googleFont:!1,fontFamilyFallback:"",googleFontVariants:""})},j=function(e){a({fontFamily:e.target.value}),U(e.target.value)},N=[{name:_x("Pixel","A size unit for CSS markup","generateblocks"),unitValue:"px"},{name:_x("Em","A size unit for CSS markup","generateblocks"),unitValue:"em"},{name:_x("Percentage","A size unit for CSS markup","generateblocks"),unitValue:"%"}],A=function(e,t){return n[e+t]},F=function(e,t){return e+t},H=n.showAdvancedTypography;D&&(H=!0);var I=L;return"Tablet"===r&&n.fontSize&&(I=n.fontSize),"Mobile"===r&&(n.fontSizeTablet?I=n.fontSizeTablet:n.fontSize&&(I=n.fontSize)),wp.element.createElement(d,null,wp.element.createElement("div",{className:"components-gblocks-typography-weight-transform"},f&&wp.element.createElement(h,{label:__("Weight","generateblocks"),value:n.fontWeight,options:x,onChange:function(e){a({fontWeight:e})},className:"components-base-control"}),B&&wp.element.createElement(h,{label:__("Transform","generateblocks"),value:n.textTransform,options:P,onChange:function(e){a({textTransform:e})},className:"components-base-control"})),!D&&wp.element.createElement(k,{label:__("Show Advanced Typography","generateblocks"),checked:!!n.showAdvancedTypography,onChange:function(e){a({showAdvancedTypography:e})}}),p&&H&&wp.element.createElement(m,{className:"gblocks-font-family-shortcuts",label:__("Font Family","generateblocks")},wp.element.createElement("select",{className:"components-select-control__input components-select-control__input--gblocks-fontfamily",onChange:j,onBlur:j},R.map(function(e,t){return wp.element.createElement("option",{key:e.label+"-"+e.value+"-"+t,value:e.value},e.label)}))),p&&H&&wp.element.createElement(w,{value:n.fontFamily,placeholder:__("Enter font name...","generateblocks"),onChange:function(e){return U(e)}}),p&&""!==n.fontFamily&&H&&wp.element.createElement(d,null,wp.element.createElement(k,{label:__("Google Font","generateblocks"),checked:!!n.googleFont,onChange:function(e){a({googleFont:e}),e&&"undefined"!==typeof c.a[n.fontFamily]&&a({fontFamilyFallback:c.a[n.fontFamily].fallback,googleFontVariants:c.a[n.fontFamily].weight.join(", ")})}}),!!n.googleFont&&wp.element.createElement(w,{label:__("Variants","generateblocks"),value:n.googleFontVariants,placeholder:__("300, 400, 400i","generateblocks"),onChange:function(e){a({googleFontVariants:e})}})),p&&H&&wp.element.createElement(w,{label:__("Font Family Fallback","generateblocks"),value:n.fontFamilyFallback,placeholder:__("sans-serif","generateblocks"),onChange:function(e){a({fontFamilyFallback:e})}}),s&&H&&wp.element.createElement(d,null,wp.element.createElement("div",{className:"components-gblocks-typography-control__header"},wp.element.createElement("div",{className:"components-gblocks-typography-control__label components-base-control__label"},__("Font Size","generateblocks")),wp.element.createElement("div",{className:"components-gblocks-control__units"},wp.element.createElement(y,{className:"components-gblocks-typography-control__units","aria-label":__("Select Units","generateblocks")},N.map(function(e){return wp.element.createElement(v,{text:u(__("%s Units","generateblocks"),e.name),key:e.unitValue},wp.element.createElement(C,{key:e.unitValue,className:"components-gblocks-typography-control__units--"+e.name,isSmall:!0,isPrimary:n.fontSizeUnit===e.unitValue,"aria-pressed":n.fontSizeUnit===e.unitValue,"aria-label":u(__("%s Units","generateblocks"),e.name),onClick:function(){return a({fontSizeUnit:e.unitValue})}},e.unitValue))})))),wp.element.createElement("div",{className:"components-gblocks-typography-control__inputs"},wp.element.createElement(w,{type:"number",value:A("fontSize",r)||"",placeholder:I,onChange:function(e){var t=F("fontSize",r);a(l({},t,parseFloat(e)))},min:1,autoComplete:"off"}),wp.element.createElement(C,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){var t=F("fontSize",r);a(l({},t,e.props.defaultFontSize))}},__("Reset","generateblocks")))),T&&H&&wp.element.createElement(d,null,wp.element.createElement("div",{className:"components-gblocks-typography-control__header"},wp.element.createElement("div",{className:"components-gblocks-typography-control__label components-base-control__label"},__("Line Height","generateblocks")),wp.element.createElement("div",{className:"components-gblocks-control__units"},wp.element.createElement(y,{className:"components-gblocks-typography-control__units","aria-label":__("Select Units","generateblocks")},N.map(function(e){return wp.element.createElement(v,{text:u(__("%s Units","generateblocks"),e.name),key:e.unitValue},wp.element.createElement(C,{key:e.unitValue,className:"components-gblocks-typography-control__units--"+e.name,isSmall:!0,isPrimary:n.lineHeightUnit===e.unitValue,"aria-pressed":n.lineHeightUnit===e.unitValue,"aria-label":u(__("%s Units","generateblocks"),e.name),onClick:function(){return a({lineHeightUnit:e.unitValue})}},e.unitValue))})))),wp.element.createElement("div",{className:"components-gblocks-typography-control__inputs"},wp.element.createElement(w,{type:"number",value:A("lineHeight",r)||0===A("lineHeight",r)?A("lineHeight",r):"",placeholder:"1.5",onChange:function(e){var t=F("lineHeight",r);a(l({},t,e))},onBlur:function(){var e=F("lineHeight",r);a(l({},e,parseFloat(A("lineHeight",r))))},onClick:function(e){e.currentTarget.focus()},min:0,step:.1,autoComplete:"off"}),wp.element.createElement(C,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){var t=F("lineHeight",r);a(l({},t,e.props.defaultLineHeight))}},__("Reset","generateblocks")))),z&&H&&wp.element.createElement(d,null,wp.element.createElement("div",{className:"components-gblocks-typography-control__header"},wp.element.createElement("div",{className:"components-gblocks-control__label"},__("Letter Spacing","generateblocks")),wp.element.createElement("div",{className:"components-gblocks-control__units"},wp.element.createElement(v,{text:__("Em Units","generateblocks"),key:"letter-spacing-unit"},wp.element.createElement(C,{key:"letter-spacing-unit",isSmall:!0,isPrimary:!0,"aria-label":__("Em Units","generateblocks")},"em")))),wp.element.createElement("div",{className:"components-gblocks-typography-control__inputs"},wp.element.createElement(w,{type:"number",value:A("letterSpacing",r)||"",placeholder:"0.01",onChange:function(e){var t=F("letterSpacing",r);a(l({},t,e))},onBlur:function(){var e=F("letterSpacing",r);a(l({},e,parseFloat(A("letterSpacing",r))))},onClick:function(e){e.currentTarget.focus()},min:-1,step:.01,autoComplete:"off"}),wp.element.createElement(C,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){var t=F("letterSpacing",r);a(l({},t,e.props.defaultLetterSpacing))}},__("Reset","generateblocks")))))}}]),t}(b);t.a=S},function(e,t,a){"use strict";function l(e){var t=e.attributes,a=e.tagName,l=e.id,r=e.className,o=e.style,c=e.children;return l||(l=null),n(a,i("generateblocks.frontend.htmlAttributes",{id:l,className:r,style:o},"generateblocks/container",t),c)}t.a=l;var n=wp.element.createElement,i=wp.hooks.applyFilters},function(e,t,a){"use strict";function l(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function r(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=a(37),c=(a.n(o),a(9)),s=function(){function e(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)}}return function(t,a,l){return a&&e(t.prototype,a),l&&e(t,l),t}}(),__=wp.i18n.__,g=wp.element,u=g.Component,p=g.Fragment,b=wp.components,d=b.BaseControl,f=b.ToggleControl,m=b.TextControl,h=b.RangeControl,k=function(e){function t(){return n(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"render",value:function(){var e=this,t=this.props,a=t.attributes,n=t.setAttributes,i=t.attrGradient,r=t.attrGradientDirection,o=t.attrGradientColorOne,s=t.attrGradientColorOneOpacity,g=t.attrGradientColorStopOne,u=t.attrGradientColorTwo,b=t.attrGradientColorTwoOpacity,k=t.attrGradientColorStopTwo,w=t.defaultColorOne,y=t.defaultColorTwo;return wp.element.createElement(p,null,wp.element.createElement(f,{label:__("Use Gradient","generateblocks"),checked:!!a[i],onChange:function(t){n(l({},e.props.attrGradient,t))}}),!!a[i]&&wp.element.createElement(p,null,wp.element.createElement(d,{label:__("Direction","generateblocks")},wp.element.createElement(h,{value:a[r]?a[r]:1,onChange:function(e){n(l({},r,e))},min:0,max:360,step:1,initialPosition:90})),wp.element.createElement(d,{label:__("Color One","generateblocks")},wp.element.createElement("div",{className:"gblocks-component-gradient-control"},wp.element.createElement(c.a,{value:a[o],alpha:!0,valueOpacity:a[s],attrOpacity:"gradientColorOneOpacity",onChange:function(e){return n(l({},o,e))},onOpacityChange:function(e){return n(l({},s,e))},onClear:function(){return n(l({},o,w))}}),wp.element.createElement(m,{className:"gblocks-component-gradient-stop-value",type:"text",value:a[g]||0===a[g]?a[g]:"",placeholder:__("Stop position (%)","generateblocks"),onChange:function(e){n(l({},g,e))},onBlur:function(){n(l({},g,parseFloat(a[g])))},onClick:function(e){e.currentTarget.focus()}}))),wp.element.createElement(d,{label:__("Color Two","generateblocks")},wp.element.createElement("div",{className:"gblocks-component-gradient-control"},wp.element.createElement(c.a,{value:a[u],alpha:!0,valueOpacity:a[b],attrOpacity:"gradientColorTwoOpacity",onChange:function(e){return n(l({},u,e))},onOpacityChange:function(e){return n(l({},b,e))},onClear:function(){return n(l({},u,y))}}),wp.element.createElement(m,{className:"gblocks-component-gradient-stop-value",type:"text",value:a[k]||0===a[k]?a[k]:"",placeholder:__("Stop position (%)","generateblocks"),onChange:function(e){n(l({},k,e))},onBlur:function(){n(l({},k,parseFloat(a[k])))},onClick:function(e){e.currentTarget.focus()}})))))}}]),t}(u);t.a=k},function(e,t,a){"use strict";function l(e){return"left"===e||"top"===e?"flex-start":"right"===e||"bottom"===e?"flex-end":e}t.a=l},function(e,t,a){"use strict";function l(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function r(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=a(52),c=(a.n(o),a(53)),s=a(54),g=a(7),u=function(){function e(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)}}return function(t,a,l){return a&&e(t.prototype,a),l&&e(t,l),t}}(),__=wp.i18n.__,p=wp.element,b=p.Component,d=p.Fragment,f=p.renderToString,m=wp.components,h=m.BaseControl,k=m.SelectControl,w=m.ToggleControl,y=m.TextControl,v=m.Tooltip,C=m.Button,S=m.PanelBody,B=m.PanelRow,E=function(e){function t(){n(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.state={showIcons:!1,showGeneralIcons:!1,showSocialIcons:!1},e}return r(t,e),u(t,[{key:"render",value:function(){var e=this,t=this.props,a=t.attributes,n=t.setAttributes,i=t.attrIcon,r=t.attrIconLocation,o=t.locationOptions,u=t.attrRemoveText;return wp.element.createElement(d,null,wp.element.createElement(h,{className:"gb-svg-html"},wp.element.createElement(y,{label:__("Icon SVG HTML","generateblocks"),value:a[i],onChange:function(t){n(l({},e.props.attrIcon,Object(g.a)(t))),n(""!==t?{hasIcon:!0}:{hasIcon:!1})}}),wp.element.createElement("div",{className:"gb-icon-preview"},wp.element.createElement("span",{dangerouslySetInnerHTML:{__html:Object(g.a)(a[i])}}),wp.element.createElement(C,{isSmall:!0,className:"reset-icon is-secondary",onClick:function(){var t;n((t={},l(t,e.props.attrIcon,""),l(t,"hasIcon",!1),t))}},wp.element.createElement("span",{className:"editor-block-types-list__item-icon"},__("Clear","generateblocks"))))),wp.element.createElement(h,{className:"gb-icon-chooser"},wp.element.createElement(S,{title:__("General Icons","generateblocks"),initialOpen:!1},wp.element.createElement(B,null,wp.element.createElement(h,null,wp.element.createElement("ul",{className:"gblocks-icon-chooser"},Object.keys(s.a).map(function(t,a){return wp.element.createElement("li",{key:"editor-pblock-types-list-item-"+a},wp.element.createElement(v,{text:s.a[t].label},wp.element.createElement(C,{isLarge:!0,className:"editor-block-list-item-button",onClick:function(){var a;n((a={},l(a,e.props.attrIcon,f(s.a[t].icon)),l(a,"hasIcon",!0),a))}},wp.element.createElement("span",{className:"editor-block-types-list__item-icon"},s.a[t].icon))))}))))),wp.element.createElement(S,{title:__("Social Icons","generateblocks"),initialOpen:!1},wp.element.createElement(B,null,wp.element.createElement(h,null,wp.element.createElement("ul",{className:"gblocks-icon-chooser"},Object.keys(c.a).map(function(t,a){return wp.element.createElement("li",{key:"editor-pblock-types-list-item-"+a},wp.element.createElement(v,{text:c.a[t].label},wp.element.createElement(C,{isLarge:!0,className:"editor-block-list-item-button",onClick:function(){var a;n((a={},l(a,e.props.attrIcon,f(c.a[t].icon)),l(a,"hasIcon",!0),a))}},wp.element.createElement("span",{className:"editor-block-types-list__item-icon"},c.a[t].icon))))})))))),"undefined"!==typeof a[r]&&!a[u]&&!!a[i]&&wp.element.createElement(k,{label:__("Icon Location","generateblocks"),value:a[r],options:o,onChange:function(t){var i=a.iconPaddingLeft,r=a.iconPaddingRight,o=a.iconPaddingRightTablet,c=a.iconPaddingLeftTablet,s=a.iconPaddingRightMobile,g=a.iconPaddingLeftMobile;"right"===t&&(!i&&r&&n({iconPaddingLeft:r,iconPaddingRight:""}),!c&&o&&n({iconPaddingLeftTablet:o,iconPaddingRightTablet:""}),!g&&s&&n({iconPaddingLeftMobile:s,iconPaddingRightMobile:""})),"left"===t&&(!r&&i&&n({iconPaddingRight:i,iconPaddingLeft:""}),!o&&c&&n({iconPaddingRightTablet:c,iconPaddingLeftTablet:""}),!s&&g&&n({iconPaddingRightMobile:g,iconPaddingLeftMobile:""})),n(l({},e.props.attrIconLocation,t))}}),"undefined"!==typeof a[u]&&!!a[i]&&wp.element.createElement(w,{label:__("Remove Text","generateblocks"),checked:!!a[u],onChange:function(t){n(l({},e.props.attrRemoveText,t))}}))}}]),t}(b);t.a=E},function(e,t,a){"use strict";function l(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var n=a(0),i=a.n(n),r=a(7),o=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},c=wp.blockEditor.RichText,s=wp.hooks.applyFilters;t.a=function(e){var t,a=e.attributes,n=a.uniqueId,g=a.elementId,u=a.cssClasses,p=a.element,b=a.content,d=a.icon,f=a.removeText,m=a.ariaLabel,h=function(e){var t=e.condition,a=e.wrap,l=e.children;return t?a(l):l},k={id:g||void 0,className:i()((t={"gb-headline":!0},l(t,"gb-headline-"+n,!0),l(t,""+u,""!==u),t))};return k=s("generateblocks.frontend.htmlAttributes",k,"generateblocks/headline",a),wp.element.createElement(h,{condition:d,wrap:function(e){return wp.element.createElement("div",{className:i()(l({"gb-headline-wrapper":!0},"gb-headline-wrapper-"+n,!0))},e)}},d&&wp.element.createElement("span",{className:"gb-icon","aria-label":f&&m?m:void 0,dangerouslySetInnerHTML:{__html:Object(r.a)(d)}}),!f&&wp.element.createElement(c.Content,o({tagName:p,value:b},k)))}},function(e,t,a){"use strict";t.a={uniqueId:{type:"string",default:""},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""},content:{type:"array",source:"children",selector:"p,h1,h2,h3,h4,h5,h6"},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},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}}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});a(20),a(28),a(42),a(48),a(60),a(67)},function(e,t,a){"use strict";var l=a(21),n=(a.n(l),a(22)),i=a(26),r=a(27),o=a(1),__=wp.i18n.__;(0,wp.blocks.registerBlockType)("generateblocks/grid",{title:__("Grid","generateblocks"),description:__("Create advanced layouts with flexible grids.","generateblocks"),icon:Object(o.a)("grid"),category:"generateblocks",keywords:[__("grid"),__("column"),__("generate")],attributes:r.a,supports:{anchor:!1,className:!1,customClassName:!1},edit:n.a,save:i.a})},function(e,t){},function(e,t,a){"use strict";function l(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function r(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=a(0),c=a.n(o),s=a(1),g=a(2),u=a(3),p=a(24),b=a(5),d=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},f=function(){function e(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)}}return function(t,a,l){return a&&e(t.prototype,a),l&&e(t,l),t}}(),__=wp.i18n.__,m=wp.components,h=m.TextControl,k=m.SelectControl,w=m.Tooltip,y=m.Placeholder,v=m.Button,C=m.Toolbar,S=wp.element,B=S.Fragment,E=S.Component,T=wp.blockEditor,O=T.InspectorControls,z=T.InnerBlocks,M=T.BlockControls,D=wp.blocks.createBlock,_=wp.hooks.applyFilters,L=/[\s#]/g,R=[],x=function(e){function t(){n(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.state={selectedLayout:!1,selectedDevice:"desktop"},e.onLayoutSelect=e.onLayoutSelect.bind(e),e.getColumnsFromLayout=e.getColumnsFromLayout.bind(e),e.getLayoutsSelector=e.getLayoutsSelector.bind(e),e}return r(t,e),f(t,[{key:"componentDidMount",value:function(){var e=this.props.clientId.substr(2,9).replace("-","");this.props.attributes.uniqueId?R.includes(this.props.attributes.uniqueId)?(this.props.setAttributes({uniqueId:e}),R.push(e)):R.push(this.props.attributes.uniqueId):(this.props.setAttributes({uniqueId:e}),R.push(e))}},{key:"componentDidUpdate",value:function(){var e=this.props,t=e.attributes,a=e.setAttributes,l=e.clientId,n=t.columns;if(this.state.selectedLayout){var i=this.getColumnsFromLayout(this.state.selectedLayout);i.forEach(function(e){wp.data.dispatch("core/block-editor").insertBlocks(D("generateblocks/container",e),void 0,l,!1)}),n=i.length,a({columns:n}),this.setState({selectedLayout:!1})}else{var r=wp.data.select("core/block-editor").getBlocksByClientId(l)[0];if(r){n=r.innerBlocks.length,a({columns:n})}}}},{key:"getColumnsFromLayout",value:function(e){var t=this,a=[],l=e.split("-"),n=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[n]),n++,a.push(e)}),a}},{key:"getLayoutsSelector",value:function(){var e=this,t=["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"];return wp.element.createElement(y,{label:__("Grid","generateblocks"),instructions:__("Select one layout to get started.","generateblocks"),className:"gb-select-layout"},wp.element.createElement("div",{className:"gb-grid-wrapper-layout-preview"},t.map(function(t){var a=e.getColumnsFromLayout(t);return wp.element.createElement("button",{key:"layout-"+t,className:"gb-grid-wrapper-layout-preview-btn",onClick:function(){return e.onLayoutSelect(t)}},a.map(function(e,a){return wp.element.createElement("div",{key:"layout-"+t+"-col-"+a,className:c()("gb-col","gb-col-"+e.width)})}))})))}},{key:"onLayoutSelect",value:function(e){this.setState({selectedLayout:e})}},{key:"render",value:function(){var e,t=this,a=this.props,n=a.attributes,i=a.setAttributes,r=a.clientId,o=this.state.selectedDevice,f=n.uniqueId,m=n.elementId,y=n.cssClasses,S=n.columns,E=n.horizontalGap,T=n.verticalGap,R=n.verticalAlignment,x=n.horizontalGapTablet,P=n.verticalGapTablet,U=n.verticalAlignmentTablet,j=n.horizontalGapMobile,N=n.verticalGapMobile,A=n.verticalAlignmentMobile,F=n.horizontalAlignment,H=n.horizontalAlignmentTablet,I=n.horizontalAlignmentMobile,V=E||0===E?E:"",G=T||0===T?T:"",q=E||0===E?E:"",W=T||0===T?T:"";x&&(q=x),P&&(W=P);var Z={id:m||void 0,className:c()((e={"gb-grid-wrapper":!0},l(e,"gb-grid-wrapper-"+f,!0),l(e,""+y,""!==y),e))};return Z=_("generateblocks.frontend.htmlAttributes",Z,"generateblocks/grid",n),wp.element.createElement(B,null,wp.element.createElement(M,null,wp.element.createElement(C,null,wp.element.createElement(w,{text:__("Add Grid Item","generateblocks")},wp.element.createElement(v,{className:"gblocks-block-control-icon gblocks-add-grid-item",icon:Object(s.a)("addContainer"),onClick:function(){wp.data.dispatch("core/block-editor").insertBlocks(D("generateblocks/container",{isGrid:!0,gridId:f,paddingTop:generateBlocksStyling.container.gridItemPaddingTop||"0",paddingRight:generateBlocksStyling.container.gridItemPaddingRight||"0",paddingBottom:generateBlocksStyling.container.gridItemPaddingBottom||"0",paddingLeft:generateBlocksStyling.container.gridItemPaddingLeft||"0"}),void 0,r)}})))),wp.element.createElement(O,null,wp.element.createElement(u.a,d({},this.props,{selectedDevice:Object(g.a)(o),onClick:function(e){window.localStorage.setItem("generateblocksSelectedDevice",e),t.setState({selectedDevice:e})}})),wp.element.createElement(b.a,d({},this.props,{id:"gridLayout",state:this.state}),"desktop"===Object(g.a)(o)&&wp.element.createElement(B,null,wp.element.createElement("div",{className:"components-gblocks-control__header"},wp.element.createElement("div",{className:"components-gblocks-control__label"},__("Horizontal Gap","generateblocks")),wp.element.createElement("div",{className:"components-gblocks-control__units"},wp.element.createElement(w,{text:__("Pixel Units","generateblocks"),key:"h-gap-unit"},wp.element.createElement(v,{key:"h-gap-unit",isSmall:!0,isPrimary:!0,"aria-label":__("Pixel Units","generateblocks")},"px")))),wp.element.createElement("div",{className:"components-base-control components-gblocks-typography-control__inputs"},wp.element.createElement(h,{type:"number",value:E||0===E?E:"",min:"0",onChange:function(e){e=e.toString().replace(/-/g,""),i({horizontalGap:e})},onBlur:function(){i(!E&&generateBlocksDefaults.gridContainer.horizontalGap?{horizontalGap:0}:{horizontalGap:parseFloat(E)})},onClick:function(e){e.currentTarget.focus()}}),wp.element.createElement(v,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){i({horizontalGap:generateBlocksDefaults.gridContainer.horizontalGap})}},__("Reset","generateblocks"))),wp.element.createElement("div",{className:"components-gblocks-control__header"},wp.element.createElement("div",{className:"components-gblocks-control__label"},__("Vertical Gap","generateblocks")),wp.element.createElement("div",{className:"components-gblocks-control__units"},wp.element.createElement(w,{text:__("Pixel Units","generateblocks"),key:"v-gap-unit"},wp.element.createElement(v,{key:"v-gap-unit",isSmall:!0,isPrimary:!0,"aria-label":__("Pixel Units","generateblocks")},"px")))),wp.element.createElement("div",{className:"components-base-control components-gblocks-typography-control__inputs"},wp.element.createElement(h,{type:"number",value:T||0===T?T:"",min:"0",onChange:function(e){e=e.toString().replace(/-/g,""),i({verticalGap:e})},onBlur:function(){i(!T&&generateBlocksDefaults.gridContainer.verticalGap?{verticalGap:0}:{verticalGap:parseFloat(T)})},onClick:function(e){e.currentTarget.focus()}}),wp.element.createElement(v,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){i({verticalGap:generateBlocksDefaults.gridContainer.verticalGap})}},__("Reset","generateblocks"))),wp.element.createElement(k,{label:__("Vertical Alignment","generateblocks"),value:R,help:__("Align grid items. Removes same height columns and overrides grid item content alignment.","generateblocks"),options:[{label:__("Default","generateblocks"),value:""},{label:__("Top","generateblocks"),value:"flex-start"},{label:__("Center","generateblocks"),value:"center"},{label:__("Bottom","generateblocks"),value:"flex-end"}],onChange:function(e){i({verticalAlignment:e})}}),wp.element.createElement(k,{label:__("Horizontal Alignment","generateblocks"),value:F,options:[{label:__("Default","generateblocks"),value:""},{label:__("Left","generateblocks"),value:"flex-start"},{label:__("Center","generateblocks"),value:"center"},{label:__("Right","generateblocks"),value:"flex-end"}],onChange:function(e){i({horizontalAlignment:e})}})),"tablet"===Object(g.a)(o)&&wp.element.createElement(B,null,wp.element.createElement("div",{className:"components-gblocks-control__header"},wp.element.createElement("div",{className:"components-gblocks-control__label"},__("Horizontal Gap","generateblocks")),wp.element.createElement("div",{className:"components-gblocks-control__units"},wp.element.createElement(w,{text:__("Pixel Units","generateblocks"),key:"h-gap-tablet-unit"},wp.element.createElement(v,{key:"h-gap-tablet-unit",isSmall:!0,isPrimary:!0,"aria-label":__("Pixel Units","generateblocks")},"px")))),wp.element.createElement("div",{className:"components-base-control components-gblocks-typography-control__inputs"},wp.element.createElement(h,{type:"number",value:x||0===x?x:"",min:"0",placeholder:V,onChange:function(e){e=e.toString().replace(/-/g,""),i({horizontalGapTablet:e})},onBlur:function(){i(!x&&generateBlocksDefaults.gridContainer.horizontalGapTablet?{horizontalGapTablet:0}:{horizontalGapTablet:parseFloat(x)})},onClick:function(e){e.currentTarget.focus()}}),wp.element.createElement(v,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){i({horizontalGapTablet:generateBlocksDefaults.gridContainer.horizontalGapTablet})}},__("Reset","generateblocks"))),wp.element.createElement("div",{className:"components-gblocks-control__header"},wp.element.createElement("div",{className:"components-gblocks-control__label"},__("Vertical Gap","generateblocks")),wp.element.createElement("div",{className:"components-gblocks-control__units"},wp.element.createElement(w,{text:__("Pixel Units","generateblocks"),key:"v-gap-tablet-unit"},wp.element.createElement(v,{key:"v-gap-tablet-unit",isSmall:!0,isPrimary:!0,"aria-label":__("Pixel Units","generateblocks")},"px")))),wp.element.createElement("div",{className:"components-base-control components-gblocks-typography-control__inputs"},wp.element.createElement(h,{type:"number",value:P||0===P?P:"",min:"0",placeholder:G,onChange:function(e){e=e.toString().replace(/-/g,""),i({verticalGapTablet:e})},onBlur:function(){i(!P&&generateBlocksDefaults.gridContainer.verticalGapTablet?{verticalGapTablet:0}:{verticalGapTablet:parseFloat(P)})},onClick:function(e){e.currentTarget.focus()}}),wp.element.createElement(v,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){i({verticalGapTablet:generateBlocksDefaults.gridContainer.verticalGapTablet})}},__("Reset","generateblocks"))),wp.element.createElement(k,{label:__("Vertical Alignment","generateblocks"),help:__("Align grid items. Removes same height columns and overrides grid item content alignment.","generateblocks"),value:U,options:[{label:__("Inherit","generateblocks"),value:"inherit"},{label:__("Default","generateblocks"),value:""},{label:__("Top","generateblocks"),value:"flex-start"},{label:__("Center","generateblocks"),value:"center"},{label:__("Bottom","generateblocks"),value:"flex-end"}],onChange:function(e){i({verticalAlignmentTablet:e})}}),wp.element.createElement(k,{label:__("Horizontal Alignment","generateblocks"),value:H,options:[{label:__("Inherit","generateblocks"),value:"inherit"},{label:__("Default","generateblocks"),value:""},{label:__("Left","generateblocks"),value:"flex-start"},{label:__("Center","generateblocks"),value:"center"},{label:__("Right","generateblocks"),value:"flex-end"}],onChange:function(e){i({horizontalAlignmentTablet:e})}})),"mobile"===Object(g.a)(o)&&wp.element.createElement(B,null,wp.element.createElement("div",{className:"components-gblocks-control__header"},wp.element.createElement("div",{className:"components-gblocks-control__label"},__("Horizontal Gap","generateblocks")),wp.element.createElement("div",{className:"components-gblocks-control__units"},wp.element.createElement(w,{text:__("Pixel Units","generateblocks"),key:"h-gap-mobile-unit"},wp.element.createElement(v,{key:"h-gap-mobile-unit",isSmall:!0,isPrimary:!0,"aria-label":__("Pixel Units","generateblocks")},"px")))),wp.element.createElement("div",{className:"components-base-control components-gblocks-typography-control__inputs"},wp.element.createElement(h,{type:"number",value:j||0===j?j:"",min:"0",placeholder:q,onChange:function(e){e=e.toString().replace(/-/g,""),i({horizontalGapMobile:e})},onBlur:function(){i(!j&&generateBlocksDefaults.gridContainer.horizontalGapMobile?{horizontalGapMobile:0}:{horizontalGapMobile:parseFloat(j)})},onClick:function(e){e.currentTarget.focus()}}),wp.element.createElement(v,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){i({horizontalGapMobile:generateBlocksDefaults.gridContainer.horizontalGapMobile})}},__("Reset","generateblocks"))),wp.element.createElement("div",{className:"components-gblocks-control__header"},wp.element.createElement("div",{className:"components-gblocks-control__label"},__("Vertical Gap","generateblocks")),wp.element.createElement("div",{className:"components-gblocks-control__units"},wp.element.createElement(w,{text:__("Pixel Units","generateblocks"),key:"v-gap-mobile-unit"},wp.element.createElement(v,{key:"v-gap-mobile-unit",isSmall:!0,isPrimary:!0,"aria-label":__("Pixel Units","generateblocks")},"px")))),wp.element.createElement("div",{className:"components-base-control components-gblocks-typography-control__inputs"},wp.element.createElement(h,{type:"number",value:N||0===N?N:"",min:"0",placeholder:W,onChange:function(e){e=e.toString().replace(/-/g,""),i({verticalGapMobile:e})},onBlur:function(){i(!N&&generateBlocksDefaults.gridContainer.verticalGapMobile?{verticalGapMobile:0}:{verticalGapMobile:parseFloat(N)})},onClick:function(e){e.currentTarget.focus()}}),wp.element.createElement(v,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){i({verticalGapMobile:generateBlocksDefaults.gridContainer.verticalGapMobile})}},__("Reset","generateblocks"))),wp.element.createElement(k,{label:__("Vertical Alignment","generateblocks"),help:__("Align grid items. Removes same height columns and overrides grid item content alignment.","generateblocks"),value:A,options:[{label:__("Inherit","generateblocks"),value:"inherit"},{label:__("Default","generateblocks"),value:""},{label:__("Top","generateblocks"),value:"flex-start"},{label:__("Center","generateblocks"),value:"center"},{label:__("Bottom","generateblocks"),value:"flex-end"}],onChange:function(e){i({verticalAlignmentMobile:e})}}),wp.element.createElement(k,{label:__("Horizontal Alignment","generateblocks"),value:I,options:[{label:__("Inherit","generateblocks"),value:"inherit"},{label:__("Default","generateblocks"),value:""},{label:__("Left","generateblocks"),value:"flex-start"},{label:__("Center","generateblocks"),value:"center"},{label:__("Right","generateblocks"),value:"flex-end"}],onChange:function(e){i({horizontalAlignmentMobile:e})}})),_("generateblocks.editor.controls","","gridLayout",this.props,this.state)),wp.element.createElement(b.a,d({},this.props,{title:__("Advanced","generateblocks"),initialOpen:!1,icon:Object(s.a)("advanced"),className:"gblocks-panel-label",id:"gridAdvanced",state:this.state,showPanel:"desktop"===Object(g.a)(o)||!1}),wp.element.createElement(h,{label:__("Element ID","generateblocks"),value:m,onChange:function(e){var t=e.replace(L,"-");i({elementId:t})}}),wp.element.createElement(h,{label:__("CSS Classes","generateblocks"),value:y,onChange:function(e){i({cssClasses:e})}}),_("generateblocks.editor.controls","","gridAdvanced",this.props,this.state)),wp.element.createElement(b.a,d({},this.props,{title:__("Documentation","generateblocks"),icon:Object(s.a)("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"gridDocumentation",state:this.state}),wp.element.createElement("p",null,__("Need help with this block?","generateblocks")),wp.element.createElement("a",{href:"https://docs.generateblocks.com/collection/grid/",target:"_blank",rel:"noreferrer noopener"},__("Visit our documentation","generateblocks")),_("generateblocks.editor.controls","","gridDocumentation",this.props,this.state))),wp.element.createElement(p.a,this.props),wp.element.createElement("div",Z,S>0||this.state.selectedLayout?wp.element.createElement(B,null,wp.element.createElement(z,{allowedBlocks:["generateblocks/container"],renderAppender:!1})):this.getLayoutsSelector()))}}]),t}(E);t.a=x},function(e,t){},function(e,t,a){"use strict";function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var r=a(4),o=a(8),c=function(){function e(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)}}return function(t,a,l){return a&&e(t.prototype,a),l&&e(t,l),t}}(),s=wp.element.Component,g=wp.hooks.applyFilters,u=function(e){function t(){return l(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),c(t,[{key:"render",value:function(){var e=this.props.attributes,t=e.uniqueId,a=e.horizontalGap,l=e.verticalGap,n=e.verticalAlignment,i=e.horizontalAlignment,c=[];return c[".gb-grid-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"align-items":n,"justify-content":i,"margin-left":"-"+a/2+"px","margin-right":"-"+a/2+"px"}],c[".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":Object(o.a)(l,"px")}],c=g("generateblocks.editor.desktopCSS",c,this.props,"grid"),wp.element.createElement("style",null,Object(r.a)(c))}}]),t}(s);t.a=u},function(e,t,a){"use strict";function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var r=function(){function e(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)}}return function(t,a,l){return a&&e(t.prototype,a),l&&e(t,l),t}}(),o=wp.hooks.applyFilters,c=wp.element.Component,s=function(e){function t(){return l(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),r(t,[{key:"render",value:function(){var e=this.props,t=e.name,a=e.children;return o(t,a||"",this.props)}}]),t}(c);t.a=s},function(e,t,a){"use strict";function l(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var n=a(0),i=a.n(n),r=wp.blockEditor.InnerBlocks,o=wp.hooks.applyFilters;t.a=function(e){var t,a=e.attributes,n=a.uniqueId,c=a.elementId,s=a.cssClasses,g={id:c||void 0,className:i()((t={"gb-grid-wrapper":!0},l(t,"gb-grid-wrapper-"+n,!0),l(t,""+s,""!==s),t))};return g=o("generateblocks.frontend.htmlAttributes",g,"generateblocks/grid",a),wp.element.createElement("div",g,wp.element.createElement(r.Content,null))}},function(e,t,a){"use strict";t.a={uniqueId:{type:"string",default:""},elementId:{type:"string",default:""},cssClasses:{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}}},function(e,t,a){"use strict";var l=a(29),n=(a.n(l),a(30)),i=(a.n(n),a(31),a(32)),r=a(40),o=a(41),c=a(1),__=wp.i18n.__;(0,wp.blocks.registerBlockType)("generateblocks/container",{title:__("Container","generateblocks"),description:__("Organize your content into rows and sections.","generateblocks"),icon:Object(c.a)("container"),category:"generateblocks",keywords:[__("section"),__("container"),__("generate")],attributes:o.a,supports:{align:!1,anchor:!1,className:!1,customClassName:!1},edit:i.a,save:r.a})},function(e,t){},function(e,t){},function(e,t,a){"use strict";var l=a(1),__=wp.i18n.__,n=wp.hooks.addFilter,i=wp.element.Fragment,r=wp.blockEditor,o=r.BlockControls,c=r.BlockAlignmentToolbar,s=wp.components,g=s.Toolbar,u=s.Tooltip,p=s.Button,b=wp.compose.createHigherOrderComponent,d=wp.blocks.cloneBlock,f=generateBlocksInfo.hasWideAlignSupport,m=["wide","full"];n("editor.BlockEdit","generateblocks/container-block-controls",b(function(e){return function(t){var a=t.name,n=t.attributes,r=t.isSelected,s=t.clientId,b=t.setAttributes,h=n.isGrid,k=n.align,w=!1;return w="function"===typeof wp.data.select("core/block-editor").getBlockParentsByBlockName?wp.data.select("core/block-editor").getBlockParentsByBlockName(s,"generateblocks/grid",!0)[0]:wp.data.select("core/block-editor").getBlockRootClientId(s),wp.element.createElement(i,null,r&&h&&w&&"generateblocks/container"===a&&wp.element.createElement(o,null,wp.element.createElement(g,null,wp.element.createElement(u,{text:__("Duplicate Grid Item","generateblocks")},wp.element.createElement(p,{className:"gblocks-block-control-icon gblocks-add-grid-item",icon:Object(l.a)("addContainer"),onClick:function(){var e=wp.data.select("core/block-editor").getBlocksByClientId(s)[0],t=d(e);wp.data.dispatch("core/block-editor").insertBlocks(t,void 0,w)}}))),wp.element.createElement(g,null,wp.element.createElement(u,{text:__("Select Parent Grid","generateblocks")},wp.element.createElement(p,{className:"gblocks-block-control-icon",icon:Object(l.a)("grid"),onClick:function(){wp.data.dispatch("core/block-editor").selectBlock(w)}})))),r&&f&&!h&&"generateblocks/container"===a&&wp.element.createElement(o,null,wp.element.createElement(c,{value:k,onChange:function(e){b({align:e}),"full"===e&&b({outerContainer:"full"})},controls:m})),wp.element.createElement(e,t))}},"withAdvancedControls"))},function(e,t,a){"use strict";function l(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function r(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=a(13),c=a(9),s=a(1),g=a(2),u=a(0),p=a.n(u),b=a(10),d=a(5),f=a(12),m=a(14),h=a(3),k=a(38),w=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},y=function(){function e(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)}}return function(t,a,l){return a&&e(t.prototype,a),l&&e(t,l),t}}(),v=wp.i18n,__=v.__,_x=v._x,C=v.sprintf,S=wp.components,B=S.RangeControl,E=S.Button,T=S.ButtonGroup,O=S.ResponsiveWrapper,z=S.ToggleControl,M=S.SelectControl,D=S.TextControl,_=S.Tooltip,L=S.BaseControl,R=S.Notice,x=wp.element,P=x.Fragment,U=x.Component,j=wp.blockEditor,N=j.InspectorControls,A=j.InnerBlocks,F=j.MediaUpload,H=j.AlignmentToolbar,I=wp.hooks.applyFilters,V=/[\s#]/g,G=[],q=function(e){function t(){n(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.state={selectedDevice:"desktop"},e}return r(t,e),y(t,[{key:"componentDidMount",value:function(){var e=this.props.clientId.substr(2,9).replace("-","");this.props.attributes.uniqueId?G.includes(this.props.attributes.uniqueId)?(this.props.setAttributes({uniqueId:e}),G.push(e)):G.push(this.props.attributes.uniqueId):(this.props.setAttributes({uniqueId:e}),G.push(e));var t=document.getElementById("block-"+this.props.clientId);t&&"full"===this.props.attributes.align&&t.setAttribute("data-align","full")}},{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:"render",value:function(){var e,t,a=this,n=this.props,i=n.attributes,r=n.setAttributes,u=n.hasChildBlocks,y=n.clientId,v=this.state.selectedDevice,S=function(e){var t=generateBlocksStyling.container.bgImageSize;"undefined"===typeof e.sizes[t]&&(t="full"),r({bgImage:{id:e.id,image:e.sizes[t]}})},x=function(){r({bgImage:null})},U=i.uniqueId,j=i.tagName,G=i.elementId,q=i.cssClasses,W=i.isGrid,Z=i.width,K=i.widthTablet,J=i.widthMobile,Y=i.outerContainer,Q=i.innerContainer,X=i.containerWidth,$=i.minHeight,ee=i.minHeightUnit,te=i.minHeightTablet,ae=i.minHeightUnitTablet,le=i.minHeightMobile,ne=i.minHeightUnitMobile,ie=i.borderColor,re=i.borderColorOpacity,oe=i.backgroundColor,ce=i.backgroundColorOpacity,se=i.textColor,ge=i.linkColor,ue=i.linkColorHover,pe=i.bgImage,be=i.bgOptions,de=i.verticalAlignment,fe=i.verticalAlignmentTablet,me=i.verticalAlignmentMobile,he=i.zindex,ke=i.removeVerticalGap,we=i.removeVerticalGapTablet,ye=i.removeVerticalGapMobile,ve=i.orderTablet,Ce=i.orderMobile,Se=i.alignment,Be=i.alignmentTablet,Ee=i.alignmentMobile,Te=i.fontFamily,Oe=i.googleFont,ze=i.googleFontVariants,Me=i.fullWidthContent,De=i.align;"undefined"===typeof i.bgOptions.selector&&(i.bgOptions.selector="element"),"undefined"===typeof i.bgOptions.opacity&&(i.bgOptions.opacity=1);var _e=[{name:_x("Pixel","A size unit for CSS markup"),unitValue:"px"},{name:_x("VH","A size unit for CSS markup"),unitValue:"vh"},{name:_x("VW","A size unit for CSS markup"),unitValue:"vw"}],Le=[{label:"div",value:"div"},{label:"section",value:"section"},{label:"header",value:"header"},{label:"footer",value:"footer"}],Re=document.getElementById("_generate-full-width-content"),xe=new Event("change"),Pe=wp.data.select("core/block-editor").getBlockHierarchyRootClientId(y),Ue=Pe===y,je="";ze&&(je=":"+ze);var Ne=!1,Ae=!1,Fe=!1,He="";return"function"===typeof wp.data.select("core/block-editor").getBlockParents&&(Ne=wp.data.select("core/block-editor").getBlockParents(y,!0)[0])&&(Ae=wp.data.select("core/block-editor").getBlocksByClientId(Ne))&&"generateblocks/grid"===Ae[0].name&&(Fe=!0,He=Ae[0].attributes.uniqueId),wp.element.createElement(P,null,wp.element.createElement(N,null,wp.element.createElement(h.a,w({},this.props,{selectedDevice:Object(g.a)(v),onClick:function(e){window.localStorage.setItem("generateblocksSelectedDevice",e),a.setState({selectedDevice:e})}})),!W&&wp.element.createElement(d.a,w({},this.props,{title:__("Layout","generateblocks"),initialOpen:!0,icon:Object(s.a)("layout"),className:"gblocks-panel-label",id:"containerLayout",state:this.state,showPanel:"desktop"===Object(g.a)(v)||!1}),wp.element.createElement(P,null,Fe&&wp.element.createElement(z,{label:__("Grid Item","generateblocks"),help:__("This Container is inside a Grid Block but is not set as a grid item. Enable this option for optimal results.","generateblocks"),checked:!!W,onChange:function(e){r({isGrid:e,gridId:He})}}),wp.element.createElement(M,{label:__("Container","generateblocks"),value:Y,options:[{label:__("Full width","generateblocks"),value:"full"},{label:__("Contained width","generateblocks"),value:"contained"}],onChange:function(e){r({outerContainer:e}),"contained"===e&&"full"===De&&r({align:""})}}),"full"===Y&&wp.element.createElement(M,{label:__("Inner Container","generateblocks"),value:Q,options:[{label:__("Full width","generateblocks"),value:"full"},{label:__("Contained width","generateblocks"),value:"contained"}],onChange:function(e){r({innerContainer:e})}}),("contained"===Y||"contained"===Q)&&wp.element.createElement(P,null,wp.element.createElement("div",{className:"components-gblocks-control__header"},wp.element.createElement("div",{className:"components-gblocks-control__label"},__("Contained Width","generateblocks")),wp.element.createElement("div",{className:"components-gblocks-control__units"},wp.element.createElement(_,{text:__("Pixel Units","generateblocks"),key:"container-width-unit"},wp.element.createElement(E,{key:"container-width-unit",isSmall:!0,isPrimary:!0,"aria-label":__("Pixel Units","generateblocks")},"px")))),wp.element.createElement(D,{type:"number",className:"gblocks-container-width",value:parseFloat(X)||"",placeholder:generateBlocksDefaults.container.containerWidth,onChange:function(e){r({containerWidth:""!==e?parseFloat(e):void 0})}})),function(){return wp.element.createElement(P,null,generateBlocksInfo.isGeneratePress&&Ue&&Re&&wp.element.createElement(L,{label:__("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"},wp.element.createElement(z,{label:__("Make page full-width","generateblocks"),checked:!!Me,onChange:function(e){e?("select"===Re.tagName.toLowerCase()?(Re.value="true",Re.dispatchEvent(xe)):(Re.checked=!0,Re.setAttribute("value","true"),Re.dispatchEvent(xe)),r({fullWidthContent:"true",align:""})):("select"===Re.tagName.toLowerCase()?(Re.value="",Re.dispatchEvent(xe)):(Re.checked=!1,Re.setAttribute("value",""),document.querySelector('input[name="_generate-full-width-content"]#default-content').checked=!0,Re.dispatchEvent(xe)),r({fullWidthContent:""}))}})))}()),I("generateblocks.editor.controls","","containerLayout",this.props,this.state)),W&&wp.element.createElement(d.a,w({},this.props,{title:__("Layout","generateblocks"),initialOpen:!0,icon:Object(s.a)("layout"),className:"gblocks-panel-label",id:"containerGridLayout",state:this.state}),!Fe&&wp.element.createElement(z,{label:__("Grid Item","generateblocks"),help:__("This container is set as a grid item but is not inside a grid block. Deactivate this option for optimal results.","generateblocks"),checked:!!W,onChange:function(e){r({isGrid:e,gridId:""})}}),"desktop"===Object(g.a)(v)&&wp.element.createElement(P,null,wp.element.createElement("div",{className:"components-gblocks-control__header"},wp.element.createElement("div",{className:"components-gblocks-control__label"},__("Container Width","generateblocks")),wp.element.createElement("div",{className:"components-gblocks-control__units"},wp.element.createElement(_,{text:__("Percentage Units","generateblocks"),key:"percentage-unit"},wp.element.createElement(E,{key:"percentage-unit",isSmall:!0,isPrimary:!0,"aria-label":__("Percentage Units","generateblocks")},"%")))),wp.element.createElement(T,{className:"widthButtons"},wp.element.createElement(E,{isLarge:!0,isPrimary:25===Z,onClick:function(){return r({width:25})}},"25"),wp.element.createElement(E,{isLarge:!0,isPrimary:33.33===Z,onClick:function(){return r({width:33.33})}},"33"),wp.element.createElement(E,{isLarge:!0,isPrimary:50===Z,onClick:function(){return r({width:50})}},"50"),wp.element.createElement(E,{isLarge:!0,isPrimary:66.66===Z,onClick:function(){return r({width:66.66})}},"66"),wp.element.createElement(E,{isLarge:!0,isPrimary:75===Z,onClick:function(){return r({width:75})}},"75"),wp.element.createElement(E,{isLarge:!0,isPrimary:100===Z,onClick:function(){return r({width:100})}},"100")),wp.element.createElement(B,{className:"gblocks-column-width-control",value:Z||"",onChange:function(e){r({width:e})},min:0,max:100,step:.01,initialPosition:generateBlocksDefaults.container.width}),wp.element.createElement(M,{label:__("Vertical Alignment","generateblocks"),help:__("Align grid item content. Does not apply if vertical alignment is set in the grid.","generateblocks"),value:de,options:[{label:__("Default","generateblocks"),value:""},{label:__("Top","generateblocks"),value:"flex-start"},{label:__("Center","generateblocks"),value:"center"},{label:__("Bottom","generateblocks"),value:"flex-end"}],onChange:function(e){r({verticalAlignment:e})}}),wp.element.createElement(z,{label:__("Remove Vertical Gap","generateblocks"),checked:!!ke,onChange:function(e){r({removeVerticalGap:e})}})),"tablet"===Object(g.a)(v)&&wp.element.createElement(P,null,wp.element.createElement("div",{className:"components-gblocks-control__header"},wp.element.createElement("div",{className:"components-gblocks-control__label"},__("Container Width","generateblocks")),wp.element.createElement("div",{className:"components-gblocks-control__units"},wp.element.createElement(_,{text:__("Percentage Units","generateblocks"),key:"percentage-unit"},wp.element.createElement(E,{key:"percentage-unit",isSmall:!0,isPrimary:!0,"aria-label":__("Percentage Units","generateblocks")},"%")))),wp.element.createElement(T,{className:"widthButtons"},wp.element.createElement(E,{isLarge:!0,isPrimary:25===K,onClick:function(){return r({widthTablet:25})}},"25"),wp.element.createElement(E,{isLarge:!0,isPrimary:33.33===K,onClick:function(){return r({widthTablet:33.33})}},"33"),wp.element.createElement(E,{isLarge:!0,isPrimary:50===K,onClick:function(){return r({widthTablet:50})}},"50"),wp.element.createElement(E,{isLarge:!0,isPrimary:66.66===K,onClick:function(){return r({widthTablet:66.66})}},"66"),wp.element.createElement(E,{isLarge:!0,isPrimary:75===K,onClick:function(){return r({widthTablet:75})}},"75"),wp.element.createElement(E,{isLarge:!0,isPrimary:100===K,onClick:function(){return r({widthTablet:100})}},"100")),wp.element.createElement(B,{className:"gblocks-column-width-control",value:K||"",onChange:function(e){r({widthTablet:e})},min:0,max:100,step:.01,initialPosition:generateBlocksDefaults.container.widthTablet}),wp.element.createElement(M,{label:__("Vertical Alignment","generateblocks"),help:__("Align grid item content. Does not apply if vertical alignment is set in the grid.","generateblocks"),value:fe,options:[{label:__("Inherit","generateblocks"),value:"inherit"},{label:__("Default","generateblocks"),value:""},{label:__("Top","generateblocks"),value:"flex-start"},{label:__("Center","generateblocks"),value:"center"},{label:__("Bottom","generateblocks"),value:"flex-end"}],onChange:function(e){r({verticalAlignmentTablet:e})}}),wp.element.createElement(z,{label:__("Remove Vertical Gap","generateblocks"),checked:!!we,onChange:function(e){r({removeVerticalGapTablet:e})}}),wp.element.createElement(D,{type:"number",label:__("Order","generateblocks"),value:ve||0===ve?ve:"",onChange:function(e){r({orderTablet:parseFloat(e)})}})),"mobile"===Object(g.a)(v)&&wp.element.createElement(P,null,wp.element.createElement("div",{className:"components-gblocks-control__header"},wp.element.createElement("div",{className:"components-gblocks-control__label"},__("Container Width","generateblocks")),wp.element.createElement("div",{className:"components-gblocks-control__units"},wp.element.createElement(_,{text:__("Percentage Units","generateblocks"),key:"percentage-unit"},wp.element.createElement(E,{key:"percentage-unit",isSmall:!0,isPrimary:!0,"aria-label":__("Percentage Units","generateblocks")},"%")))),wp.element.createElement(T,{className:"widthButtons"},wp.element.createElement(E,{isLarge:!0,isPrimary:25===J,onClick:function(){return r({widthMobile:25})}},"25"),wp.element.createElement(E,{isLarge:!0,isPrimary:33.33===J,onClick:function(){return r({widthMobile:33.33})}},"33"),wp.element.createElement(E,{isLarge:!0,isPrimary:50===J,onClick:function(){return r({widthMobile:50})}},"50"),wp.element.createElement(E,{isLarge:!0,isPrimary:66.66===J,onClick:function(){return r({widthMobile:66.66})}},"66"),wp.element.createElement(E,{isLarge:!0,isPrimary:75===J,onClick:function(){return r({widthMobile:75})}},"75"),wp.element.createElement(E,{isLarge:!0,isPrimary:100===J,onClick:function(){return r({widthMobile:100})}},"100")),wp.element.createElement(B,{className:"gblocks-column-width-control",value:J||"",onChange:function(e){r({widthMobile:e})},min:0,max:100,step:.01,initialPosition:generateBlocksDefaults.container.widthMobile}),wp.element.createElement(M,{label:__("Vertical Alignment","generateblocks"),help:__("Align grid item content. Does not apply if vertical alignment is set in the grid.","generateblocks"),value:me,options:[{label:__("Inherit","generateblocks"),value:"inherit"},{label:__("Default","generateblocks"),value:""},{label:__("Top","generateblocks"),value:"flex-start"},{label:__("Center","generateblocks"),value:"center"},{label:__("Bottom","generateblocks"),value:"flex-end"}],onChange:function(e){r({verticalAlignmentMobile:e})}}),wp.element.createElement(z,{label:__("Remove Vertical Gap","generateblocks"),checked:!!ye,onChange:function(e){r({removeVerticalGapMobile:e})}}),wp.element.createElement(D,{type:"number",label:__("Order","generateblocks"),value:Ce||0===Ce?Ce:"",onChange:function(e){r({orderMobile:parseFloat(e)})}})),I("generateblocks.editor.controls","","containerGridLayout",this.props,this.state)),wp.element.createElement(d.a,w({},this.props,{title:__("Typography","generateblocks"),initialOpen:!1,icon:Object(s.a)("typography"),className:"gblocks-panel-label",id:"containerTypography",state:this.state}),"desktop"===Object(g.a)(v)&&wp.element.createElement(P,null,wp.element.createElement(L,{className:"gblocks-container-text-alignment",label:__("Text Alignment","generateblocks")},wp.element.createElement(H,{isCollapsed:!1,value:Se,onChange:function(e){r({alignment:e})}})),wp.element.createElement(f.a,w({},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"===Object(g.a)(v)&&wp.element.createElement(P,null,wp.element.createElement(L,{label:__("Text Alignment","generateblocks")},wp.element.createElement(H,{isCollapsed:!1,value:Be,onChange:function(e){r({alignmentTablet:e})}})),wp.element.createElement(f.a,w({},this.props,{showFontSize:!0,defaultFontSize:generateBlocksDefaults.container.fontSizeTablet,defaultFontSizeUnit:generateBlocksDefaults.container.fontSizeUnit,defaultLineHeight:generateBlocksDefaults.container.lineHeightTablet,defaultLineHeightUnit:generateBlocksDefaults.container.lineHeightUnit,defaultLetterSpacing:generateBlocksDefaults.container.letterSpacingTablet}))),"mobile"===Object(g.a)(v)&&wp.element.createElement(P,null,wp.element.createElement(L,{label:__("Text Alignment","generateblocks")},wp.element.createElement(H,{isCollapsed:!1,value:Ee,onChange:function(e){r({alignmentMobile:e})}})),wp.element.createElement(f.a,w({},this.props,{showFontSize:!0,defaultFontSize:generateBlocksDefaults.container.fontSizeMobile,defaultFontSizeUnit:generateBlocksDefaults.container.fontSizeUnit,defaultLineHeight:generateBlocksDefaults.container.lineHeightMobile,defaultLineHeightUnit:generateBlocksDefaults.container.lineHeightUnit,defaultLetterSpacing:generateBlocksDefaults.container.letterSpacingMobile}))),I("generateblocks.editor.controls","","containerTypography",this.props,this.state)),wp.element.createElement(d.a,w({},this.props,{title:__("Spacing","generateblocks"),initialOpen:!1,icon:Object(s.a)("spacing"),className:"gblocks-panel-label",id:"containerSpacing",state:this.state}),"desktop"===Object(g.a)(v)&&wp.element.createElement(P,null,wp.element.createElement("div",{className:"components-gblocks-dimensions-control__header"},wp.element.createElement("div",{className:"components-gblocks-dimensions-control__label"},__("Minimum Height","generateblocks")),wp.element.createElement("div",{className:"components-gblocks-control__units"},wp.element.createElement(T,{className:"components-gblocks-dimensions-control__units","aria-label":__("Select Units","generateblocks")},_e.map(function(e){return wp.element.createElement(_,{text:C(__("%s Units","generateblocks"),e.name),key:e.unitValue},wp.element.createElement(E,{key:e.unitValue,className:"components-gblocks-dimensions-control__units--"+e.name,isSmall:!0,isPrimary:ee===e.unitValue,"aria-pressed":ee===e.unitValue,"aria-label":C(__("%s Units","generateblocks"),e.name),onClick:function(){return r({minHeightUnit:e.unitValue})}},e.unitValue))})))),wp.element.createElement(D,{type:"number",value:$||"",onChange:function(e){r({minHeight:parseFloat(e)})}}),!!$&&!W&&wp.element.createElement(M,{label:__("Vertical Alignment","generateblocks"),value:de,options:[{label:__("Default","generateblocks"),value:""},{label:__("Top","generateblocks"),value:"flex-start"},{label:__("Center","generateblocks"),value:"center"},{label:__("Bottom","generateblocks"),value:"flex-end"}],onChange:function(e){r({verticalAlignment:e})}}),wp.element.createElement(b.a,w({},this.props,{device:Object(g.a)(v),type:"padding",label:__("Padding","generateblocks"),attrTop:"paddingTop",attrRight:"paddingRight",attrBottom:"paddingBottom",attrLeft:"paddingLeft",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.container})),wp.element.createElement(b.a,w({},this.props,{device:Object(g.a)(v),type:"margin",label:__("Margin","generateblocks"),attrTop:"marginTop",attrRight:"marginRight",attrBottom:"marginBottom",attrLeft:"marginLeft",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.container})),wp.element.createElement(b.a,w({},this.props,{device:Object(g.a)(v),type:"padding",label:__("Border Size","generateblocks"),attrTop:"borderSizeTop",attrRight:"borderSizeRight",attrBottom:"borderSizeBottom",attrLeft:"borderSizeLeft",attrSyncUnits:"borderSizeSyncUnits",displayUnit:"px",defaults:generateBlocksDefaults.container})),wp.element.createElement(b.a,w({},this.props,{device:Object(g.a)(v),type:"padding",label:__("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeft",attrRight:"borderRadiusTopRight",attrBottom:"borderRadiusBottomRight",attrLeft:"borderRadiusBottomLeft",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:__("T-Left","generateblocks"),labelRight:__("T-Right","generateblocks"),labelBottom:__("B-Right","generateblocks"),labelLeft:__("B-Left","generateblocks"),defaults:generateBlocksDefaults.container}))),"tablet"===Object(g.a)(v)&&wp.element.createElement(P,null,wp.element.createElement("div",{className:"components-gblocks-dimensions-control__header"},wp.element.createElement("div",{className:"components-gblocks-dimensions-control__label"},__("Minimum Height","generateblocks")),wp.element.createElement("div",{className:"components-gblocks-control__units"},wp.element.createElement(T,{className:"components-gblocks-dimensions-control__units","aria-label":__("Select Units","generateblocks")},_e.map(function(e){return wp.element.createElement(_,{text:C(__("%s Units","generateblocks"),e.name),key:e.unitValue},wp.element.createElement(E,{key:e.unitValue,className:"components-gblocks-dimensions-control__units--"+e.name,isSmall:!0,isPrimary:ae===e.unitValue,"aria-pressed":ae===e.unitValue,"aria-label":C(__("%s Units","generateblocks"),e.name),onClick:function(){return r({minHeightUnitTablet:e.unitValue})}},e.unitValue))})))),wp.element.createElement(D,{type:"number",value:te||"",onChange:function(e){r({minHeightTablet:parseFloat(e)})}}),(!!$||!!te)&&!W&&wp.element.createElement(M,{label:__("Vertical Alignment","generateblocks"),value:fe,options:[{label:__("Inherit","generateblocks"),value:"inherit"},{label:__("Default","generateblocks"),value:""},{label:__("Top","generateblocks"),value:"flex-start"},{label:__("Center","generateblocks"),value:"center"},{label:__("Bottom","generateblocks"),value:"flex-end"}],onChange:function(e){r({verticalAlignmentTablet:e})}}),wp.element.createElement(b.a,w({},this.props,{device:Object(g.a)(v),type:"padding",label:__("Padding","generateblocks"),attrTop:"paddingTopTablet",attrRight:"paddingRightTablet",attrBottom:"paddingBottomTablet",attrLeft:"paddingLeftTablet",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.container})),wp.element.createElement(b.a,w({},this.props,{device:Object(g.a)(v),type:"margin",label:__("Margin","generateblocks"),attrTop:"marginTopTablet",attrRight:"marginRightTablet",attrBottom:"marginBottomTablet",attrLeft:"marginLeftTablet",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.container})),wp.element.createElement(b.a,w({},this.props,{device:Object(g.a)(v),type:"padding",label:__("Border Size","generateblocks"),attrTop:"borderSizeTopTablet",attrRight:"borderSizeRightTablet",attrBottom:"borderSizeBottomTablet",attrLeft:"borderSizeLeftTablet",attrSyncUnits:"borderSizeSyncUnits",displayUnit:"px",defaults:generateBlocksDefaults.container})),wp.element.createElement(b.a,w({},this.props,{device:Object(g.a)(v),type:"padding",label:__("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftTablet",attrRight:"borderRadiusTopRightTablet",attrBottom:"borderRadiusBottomRightTablet",attrLeft:"borderRadiusBottomLeftTablet",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:__("T-Left","generateblocks"),labelRight:__("T-Right","generateblocks"),labelBottom:__("B-Right","generateblocks"),labelLeft:__("B-Left","generateblocks"),defaults:generateBlocksDefaults.container}))),"mobile"===Object(g.a)(v)&&wp.element.createElement(P,null,wp.element.createElement("div",{className:"components-gblocks-dimensions-control__header"},wp.element.createElement("div",{className:"components-gblocks-dimensions-control__label"},__("Minimum Height","generateblocks")),wp.element.createElement("div",{className:"components-gblocks-control__units"},wp.element.createElement(T,{className:"components-gblocks-dimensions-control__units","aria-label":__("Select Units","generateblocks")},_e.map(function(e){return wp.element.createElement(_,{text:C(__("%s Units","generateblocks"),e.name),key:e.unitValue},wp.element.createElement(E,{key:e.unitValue,className:"components-gblocks-dimensions-control__units--"+e.name,isSmall:!0,isPrimary:ne===e.unitValue,"aria-pressed":ne===e.unitValue,"aria-label":C(__("%s Units","generateblocks"),e.name),onClick:function(){return r({minHeightUnitMobile:e.unitValue})}},e.unitValue))})))),wp.element.createElement(D,{type:"number",value:le||"",onChange:function(e){r({minHeightMobile:parseFloat(e)})}}),(!!$||!!te||!!le)&&!W&&wp.element.createElement(M,{label:__("Vertical Alignment","generateblocks"),value:me,options:[{label:__("Inherit","generateblocks"),value:"inherit"},{label:__("Default","generateblocks"),value:""},{label:__("Top","generateblocks"),value:"flex-start"},{label:__("Center","generateblocks"),value:"center"},{label:__("Bottom","generateblocks"),value:"flex-end"}],onChange:function(e){r({verticalAlignmentMobile:e})}}),wp.element.createElement(b.a,w({},this.props,{device:Object(g.a)(v),type:"padding",label:__("Padding","generateblocks"),attrTop:"paddingTopMobile",attrRight:"paddingRightMobile",attrBottom:"paddingBottomMobile",attrLeft:"paddingLeftMobile",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.container})),wp.element.createElement(b.a,w({},this.props,{device:Object(g.a)(v),type:"margin",label:__("Margin","generateblocks"),attrTop:"marginTopMobile",attrRight:"marginRightMobile",attrBottom:"marginBottomMobile",attrLeft:"marginLeftMobile",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.container})),wp.element.createElement(b.a,w({},this.props,{device:Object(g.a)(v),type:"padding",label:__("Border Size","generateblocks"),attrTop:"borderSizeTopMobile",attrRight:"borderSizeRightMobile",attrBottom:"borderSizeBottomMobile",attrLeft:"borderSizeLeftMobile",attrSyncUnits:"borderSizeSyncUnits",displayUnit:"px",defaults:generateBlocksDefaults.container})),wp.element.createElement(b.a,w({},this.props,{device:Object(g.a)(v),type:"padding",label:__("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftMobile",attrRight:"borderRadiusTopRightMobile",attrBottom:"borderRadiusBottomRightMobile",attrLeft:"borderRadiusBottomLeftMobile",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:__("T-Left","generateblocks"),labelRight:__("T-Right","generateblocks"),labelBottom:__("B-Right","generateblocks"),labelLeft:__("B-Left","generateblocks"),defaults:generateBlocksDefaults.container}))),I("generateblocks.editor.controls","","containerSpacing",this.props,this.state)),wp.element.createElement(d.a,w({},this.props,{title:__("Colors","generateblocks"),initialOpen:!1,icon:Object(s.a)("colors"),className:"gblocks-panel-label",id:"containerColors",state:this.state,showPanel:"desktop"===Object(g.a)(v)||!1}),wp.element.createElement(P,null,wp.element.createElement(c.a,{label:__("Background Color","generateblocks"),value:oe,alpha:!0,valueOpacity:ce,attrOpacity:"backgroundColorOpacity",onChange:function(e){return r({backgroundColor:e})},onOpacityChange:function(e){return r({backgroundColorOpacity:e})}}),wp.element.createElement(c.a,{label:__("Text Color","generateblocks"),value:se,alpha:!1,onChange:function(e){return r({textColor:e})}}),wp.element.createElement(c.a,{label:__("Link Color","generateblocks"),value:ge,alpha:!1,onChange:function(e){return r({linkColor:e})}}),wp.element.createElement(c.a,{label:__("Link Color Hover","generateblocks"),value:ue,alpha:!1,onChange:function(e){return r({linkColorHover:e})}}),wp.element.createElement(c.a,{label:__("Border Color","generateblocks"),value:ie,alpha:!0,valueOpacity:re,attrOpacity:"borderColorOpacity",onChange:function(e){return r({borderColor:e})},onOpacityChange:function(e){return r({borderColorOpacity:e})}})),I("generateblocks.editor.controls","","containerColors",this.props,this.state)),wp.element.createElement(d.a,w({},this.props,{title:__("Background Gradient","generateblocks"),initialOpen:!1,icon:Object(s.a)("gradients"),className:"gblocks-panel-label",id:"containerBackgroundGradient",state:this.state,showPanel:"desktop"===Object(g.a)(v)||!1}),wp.element.createElement(m.a,w({},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})),I("generateblocks.editor.controls","","containerBackgroundGradient",this.props,this.state)),wp.element.createElement(d.a,w({},this.props,{title:__("Background Image","generateblocks"),initialOpen:!1,icon:Object(s.a)("backgrounds"),className:"gblocks-panel-label",id:"containerBackgroundImage",state:this.state,showPanel:"desktop"===Object(g.a)(v)||!1}),!pe&&wp.element.createElement("div",null,wp.element.createElement(F,{title:__("Set background image","generateblocks"),onSelect:S,allowedTypes:["image"],modalClass:"editor-post-featured-image__media-modal",render:function(e){var t=e.open;return wp.element.createElement(E,{className:"editor-post-featured-image__toggle",onClick:t},__("Set background image","generateblocks"))}})),!!pe&&wp.element.createElement(F,{title:__("Set background image","generateblocks"),onSelect:S,allowedTypes:["image"],value:pe.id,modalClass:"editor-post-featured-image__media-modal",render:function(e){var t=e.open;return wp.element.createElement("div",{className:"editor-bg-image"},wp.element.createElement(E,{className:"editor-post-featured-image__preview",onClick:t},wp.element.createElement(O,{naturalWidth:pe.image.width,naturalHeight:pe.image.height},wp.element.createElement("img",{src:pe.image.url,alt:__("Background Image","generateblocks")}))),wp.element.createElement("div",{className:"edit-bg-buttons"},wp.element.createElement(E,{onClick:t,isSecondary:!0,isLarge:!0},__("Replace image","generateblocks")),wp.element.createElement(E,{onClick:x,isLink:!0,isDestructive:!0},__("Remove background image","generateblocks"))))}}),!!pe&&wp.element.createElement("div",{className:"section-bg-settings"},be.overlay?wp.element.createElement(P,null,wp.element.createElement(z,{label:__("Background Color Overlay","generateblocks"),checked:!!be.overlay,onChange:function(e){r({bgOptions:Object.assign({},be,{overlay:e})})}}),wp.element.createElement(R,{className:"gblocks-option-notice",status:"info",isDismissible:!1},__("The background color overlay option is deprecated. Toggle this option to use the new method.","generateblocks"))):wp.element.createElement(P,null,wp.element.createElement(M,{label:__("Selector","generateblocks"),value:be.selector,options:[{label:__("Element","generateblocks"),value:"element"},{label:__("Pseudo Element","generateblocks"),value:"pseudo-element"}],onChange:function(e){r({bgOptions:Object.assign({},be,{selector:e})})}}),wp.element.createElement(B,{label:__("Image Opacity","generateblocks"),value:be.opacity,onChange:function(e){r({bgOptions:Object.assign({},be,{opacity:e,selector:"pseudo-element"})})},min:0,max:1,step:.1,initialPosition:generateBlocksDefaults.container.bgOptions.opacity}),"pseudo-element"!==be.selector&&wp.element.createElement(R,{className:"gblocks-option-notice",status:"info",isDismissible:!1},__("Your selector must be set to Pseudo Element to use opacity.","generateblocks"))),wp.element.createElement(D,{label:__("Size","generateblocks"),value:be.size,onChange:function(e){r({bgOptions:Object.assign({},be,{size:e})})}}),wp.element.createElement(D,{label:__("Position","generateblocks"),value:be.position,onChange:function(e){r({bgOptions:Object.assign({},be,{position:e})})}}),wp.element.createElement(M,{label:__("Repeat","generateblocks"),value:be.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){r({bgOptions:Object.assign({},be,{repeat:e})})}}),wp.element.createElement(M,{label:__("Attachment","generateblocks"),value:be.attachment,options:[{label:"scroll",value:""},{label:"fixed",value:"fixed"},{label:"local",value:"local"}],onChange:function(e){r({bgOptions:Object.assign({},be,{attachment:e})})}})),I("generateblocks.editor.controls","","containerBackgroundImage",this.props,this.state)),wp.element.createElement(d.a,w({},this.props,{title:__("Advanced","generateblocks"),initialOpen:!1,icon:Object(s.a)("advanced"),className:"gblocks-panel-label",id:"containerAdvanced",state:this.state,showPanel:"desktop"===Object(g.a)(v)||!1}),wp.element.createElement(M,{label:__("Element Tag","generateblocks"),value:j,options:I("generateblocks.editor.containerTagNames",Le,this.props,this.state),onChange:function(e){r({tagName:e})}}),I("generateblocks.editor.controls","","containerAfterElementTag",this.props,this.state),wp.element.createElement(D,{label:__("Element ID","generateblocks"),value:G,onChange:function(e){var t=e.replace(V,"-");r({elementId:t})}}),wp.element.createElement(D,{label:__("CSS Classes","generateblocks"),value:q,onChange:function(e){r({cssClasses:e})}}),wp.element.createElement(D,{label:__("z-index","generateblocks"),type:"number",value:he||0===he?he:"",onChange:function(e){r({zindex:e})},onBlur:function(){r({zindex:parseFloat(he)})},onClick:function(e){e.currentTarget.focus()}}),I("generateblocks.editor.controls","","containerAdvanced",this.props,this.state)),wp.element.createElement(d.a,w({},this.props,{title:__("Documentation","generateblocks"),initialOpen:!1,icon:Object(s.a)("documentation"),className:"gblocks-panel-label",id:"containerDocumentation",state:this.state}),wp.element.createElement("p",null,__("Need help with this block?","generateblocks")),wp.element.createElement("a",{href:"https://docs.generateblocks.com/collection/container/",target:"_blank",rel:"noreferrer noopener"},__("Visit our documentation","generateblocks")),I("generateblocks.editor.controls","","containerDocumentation",this.props,this.state))),wp.element.createElement(k.a,this.props),Te&&Oe&&wp.element.createElement("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family="+Te.replace(/ /g,"+")+je}),!!W&&wp.element.createElement("div",{className:p()(l({"gb-grid-column":!0},"gb-grid-column-"+U,!0))},wp.element.createElement(o.a,{attributes:i,tagName:j,id:G,className:p()((e={"gb-container":!0},l(e,"gb-container-"+U,!0),l(e,""+q,""!==q),e))},I("generateblocks.frontend.insideContainer","",i),wp.element.createElement("div",{className:p()({"gb-inside-container":!0})},wp.element.createElement(A,{templateLock:!1,renderAppender:u?void 0:function(){return wp.element.createElement(A.ButtonBlockAppender,null)}})))),!W&&wp.element.createElement(o.a,{attributes:i,tagName:j,id:G,className:p()((t={"gb-container":!0},l(t,"gb-container-"+U,!0),l(t,""+q,""!==q),l(t,"align"+De,!!De),t))},I("generateblocks.frontend.insideContainer","",i),wp.element.createElement("div",{className:p()({"gb-inside-container":!0})},wp.element.createElement(A,{templateLock:!1,renderAppender:u?void 0:function(){return wp.element.createElement(A.ButtonBlockAppender,null)}}))))}}]),t}(U);t.a=q},function(e,t){},function(e,t){},function(e,t){},function(e,t,a){"use strict";var l={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"}};t.a=l},function(e,t){},function(e,t,a){"use strict";function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var r=a(4),o=a(11),c=a(6),s=a(8),g=a(39),u=function(){function e(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)}}return function(t,a,l){return a&&e(t.prototype,a),l&&e(t,l),t}}(),p=wp.element.Component,b=wp.hooks.applyFilters,d=function(e){function t(){return l(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,a=e.clientId,l=t.uniqueId,n=t.isGrid,i=t.width,u=t.outerContainer,p=t.innerContainer,d=t.containerWidth,f=t.minHeight,m=t.minHeightUnit,h=t.paddingTop,k=t.paddingRight,w=t.paddingBottom,y=t.paddingLeft,v=t.paddingUnit,C=t.marginTop,S=t.marginRight,B=t.marginBottom,E=t.marginLeft,T=t.marginUnit,O=t.borderSizeTop,z=t.borderSizeRight,M=t.borderSizeBottom,D=t.borderSizeLeft,_=t.borderRadiusTopRight,L=t.borderRadiusBottomRight,R=t.borderRadiusBottomLeft,x=t.borderRadiusTopLeft,P=t.borderRadiusUnit,U=t.borderColor,j=t.borderColorOpacity,N=t.backgroundColor,A=t.backgroundColorOpacity,F=t.gradient,H=t.textColor,I=t.linkColor,V=t.linkColorHover,G=t.bgImage,q=t.bgOptions,W=t.verticalAlignment,Z=t.zindex,K=t.removeVerticalGap,J=t.alignment,Y=t.fontFamily,Q=t.fontFamilyFallback,X=t.fontWeight,$=t.fontSize,ee=t.fontSizeUnit,te=t.textTransform,ae=Object(g.a)(t),le=d;le||(le=generateBlocksDefaults.container.containerWidth);var ne="";Y&&Q&&(ne=", "+Q);var ie=[];return ie[".gb-container-"+l]=[{"background-color":Object(c.a)(N,A),color:H,"border-radius":Object(o.a)(x,_,L,R,P),margin:Object(o.a)(C,S,B,E,T),"z-index":Z,"text-align":J,"font-family":Y+ne,"font-weight":X,"text-transform":te,"font-size":Object(s.a)($,ee),"min-height":Object(s.a)(f,m)}],G&&"element"===q.selector&&ae?ie[".gb-container-"+l].push({"background-image":ae,"background-size":q.size,"background-position":q.position,"background-repeat":q.repeat,"background-attachment":q.attachment}):F&&ae&&ie[".gb-container-"+l].push({"background-image":ae}),(G&&"pseudo-element"===q.selector||Z)&&ie[".gb-container-"+l].push({position:"relative"}),G&&"pseudo-element"===q.selector&&ie[".gb-container-"+l].push({overflow:"hidden"}),ie[".editor-styles-wrapper .gb-container-"+l+" h1,\n\t\t\t.editor-styles-wrapper .gb-container-"+l+" h2,\n\t\t\t.editor-styles-wrapper .gb-container-"+l+" h3,\n\t\t\t.editor-styles-wrapper .gb-container-"+l+" h4,\n\t\t\t.editor-styles-wrapper .gb-container-"+l+" h5,\n\t\t\t.editor-styles-wrapper .gb-container-"+l+" h6"]=[{color:H}],(O||z||M||D)&&ie[".gb-container-"+l].push({"border-width":Object(o.a)(O,z,M,D,"px"),"border-style":"solid","border-color":Object(c.a)(U,j)}),f&&!n&&ie[".gb-container-"+l].push({display:"flex","flex-direction":"row","align-items":W}),G&&"pseudo-element"===q.selector&&(ie[".gb-container-"+l+":before"]=[{content:'""',"background-image":"url("+G.image.url+")","background-repeat":q.repeat,"background-position":q.position,"background-size":q.size,"background-attachment":q.attachment,"z-index":"0",position:"absolute",top:"0",right:"0",bottom:"0",left:"0"}],"undefined"!==typeof q.opacity&&1!==q.opacity&&ie[".gb-container-"+l+":before"].push({opacity:q.opacity})),ie[".gb-container-"+l+" a, .gb-container-"+l+" a:visited"]=[{color:I}],ie[".gb-container-"+l+" a:hover"]=[{color:V}],ie[".gb-container-"+l+" > .gb-inside-container"]=[{padding:Object(o.a)(h,k,w,y,v),width:!(!f||n)&&"100%"}],"contained"!==p||n||ie[".gb-container-"+l+" > .gb-inside-container"].push({"max-width":Object(s.a)(le,"px"),"margin-left":"auto","margin-right":"auto"}),G&&"pseudo-element"===q.selector&&ie[".gb-container-"+l+" > .gb-inside-container"].push({"z-index":"1",position:"relative"}),ie[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+a]=[{width:Object(s.a)(i,"%"),display:"flex","flex-direction":"column","margin-left":"0px","margin-right":"0px"}],ie[".gb-grid-wrapper > div > .block-editor-block-list__layout > #block-"+a+" > .gb-grid-column"]=[{height:"100%"}],ie[".block-editor-block-list__layout > #block-"+a]=[{"max-width":"contained"===u&&!n&&Object(s.a)(le,"px"),"margin-bottom":!!K&&"0px !important"}],ie[".gb-grid-column > .gb-container-"+l]=[{display:"flex","flex-direction":"column",height:"100%","justify-content":W}],ie[".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+'"],\n\t\t.gb-grid-wrapper > div > .block-editor-block-list__layout > #block-'+a+' > .block-editor-block-list__block-edit > [data-block="'+a+'"] > .gb-grid-column']=[{height:"100%"}],ie["#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"}],ie=b("generateblocks.editor.desktopCSS",ie,this.props,"container"),wp.element.createElement("style",null,Object(r.a)(ie))}}]),t}(p);t.a=d},function(e,t,a){"use strict";function l(e){var t=!1,a="",l="",i=Object(n.a)(e.backgroundColor,e.backgroundColorOpacity),r=Object(n.a)(e.gradientColorOne,e.gradientColorOneOpacity),o=Object(n.a)(e.gradientColorTwo,e.gradientColorTwoOpacity);if(e.gradient&&(r&&""!==e.gradientColorStopOne&&(a=" "+e.gradientColorStopOne+"%"),o&&""!==e.gradientColorStopTwo&&(l=" "+e.gradientColorStopTwo+"%")),e.bgImage&&"element"===e.bgOptions.selector){var c=e.bgImage.image.url;(i||e.gradient)&&"undefined"!==typeof e.bgOptions.overlay&&e.bgOptions.overlay?e.gradient?t="linear-gradient("+e.gradientDirection+"deg, "+r+a+", "+o+l+"), url("+c+")":i&&(t="linear-gradient(0deg, "+i+", "+i+"), url("+c+")"):t="url("+c+")"}else e.gradient&&(t="linear-gradient("+e.gradientDirection+"deg, "+r+a+", "+o+l+")");return t}t.a=l;var n=a(6)},function(e,t,a){"use strict";function l(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var n=a(13),i=a(0),r=a.n(i),o=wp.blockEditor.InnerBlocks,c=wp.hooks.applyFilters;t.a=function(e){var t,a=e.attributes,i=a.uniqueId,s=a.tagName,g=a.elementId,u=a.cssClasses,p=a.isGrid,b=a.align,d=function(e){var t=e.condition,a=e.wrap,l=e.children;return t?a(l):l};return wp.element.createElement(d,{condition:p,wrap:function(e){return wp.element.createElement("div",{className:r()(l({"gb-grid-column":!0},"gb-grid-column-"+i,!0))},e)}},wp.element.createElement(n.a,{attributes:a,tagName:s,id:g,className:r()((t={"gb-container":!0},l(t,"gb-container-"+i,!0),l(t,""+u,""!==u),l(t,"align"+b,!!b&&!p),t))},c("generateblocks.frontend.insideContainer","",a),wp.element.createElement("div",{className:r()({"gb-inside-container":!0})},wp.element.createElement(o.Content,null))))}},function(e,t,a){"use strict";var l={uniqueId:{type:"string",default:""},tagName:{type:"string",default:"div"},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""},isGrid:{type:"boolean",default:!1},gridId:{type:"string",default:""},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},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}},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},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:""}};generateBlocksInfo.hasCustomFields&&Object.assign(l,{fullWidthContent:{type:"string",source:"meta",meta:"_generate-full-width-content"}}),t.a=l},function(e,t,a){"use strict";var l=a(43),n=(a.n(l),a(44)),i=a(46),r=a(47),o=a(1),__=wp.i18n.__;(0,wp.blocks.registerBlockType)("generateblocks/button-container",{title:__("Buttons","generateblocks"),description:__("Drive conversions with beautiful buttons.","generateblocks"),icon:Object(o.a)("button"),category:"generateblocks",keywords:[__("button"),__("buttons"),__("generate")],attributes:r.a,supports:{anchor:!1,className:!1,customClassName:!1},edit:n.a,save:i.a})},function(e,t){},function(e,t,a){"use strict";function l(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function r(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=a(0),c=a.n(o),s=a(10),g=a(3),u=a(1),p=a(2),b=a(45),d=a(5),f=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},m=function(){function e(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)}}return function(t,a,l){return a&&e(t.prototype,a),l&&e(t,l),t}}(),__=wp.i18n.__,h=wp.components,k=h.TextControl,w=h.Tooltip,y=h.Button,v=h.ToggleControl,C=h.Toolbar,S=wp.element,B=S.Fragment,E=S.Component,T=wp.blockEditor,O=T.InspectorControls,z=T.InnerBlocks,M=T.AlignmentToolbar,D=T.BlockControls,_=wp.blocks,L=_.createBlock,R=_.cloneBlock,x=wp.hooks.applyFilters,P=/[\s#]/g,U=[],j=[{icon:"editor-alignleft",title:__("Align Buttons Left","generateblocks"),align:"left"},{icon:"editor-aligncenter",title:__("Align Buttons Center","generateblocks"),align:"center"},{icon:"editor-alignright",title:__("Align Buttons Right","generateblocks"),align:"right"}],N=function(e){function t(){n(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.state={selectedDevice:"desktop"},e}return r(t,e),m(t,[{key:"componentDidMount",value:function(){var e=this.props.clientId.substr(2,9).replace("-","");this.props.attributes.uniqueId?U.includes(this.props.attributes.uniqueId)?(this.props.setAttributes({uniqueId:e}),U.push(e)):U.push(this.props.attributes.uniqueId):(this.props.setAttributes({uniqueId:e}),U.push(e));var t=wp.data.select("core/block-editor").getBlocksByClientId(this.props.clientId)[0];if(t){0===t.innerBlocks.length&&wp.data.dispatch("core/block-editor").insertBlocks(L("generateblocks/button",generateBlocksStyling.button),void 0,this.props.clientId)}}},{key:"render",value:function(){var e,t=this,a=this.props,n=a.attributes,i=a.setAttributes,r=a.clientId,o=this.state.selectedDevice,m=n.uniqueId,h=n.elementId,S=n.cssClasses,E=n.alignment,T=n.alignmentTablet,_=n.alignmentMobile,U=n.stack,N=n.stackTablet,A=n.stackMobile,F=n.fillHorizontalSpace,H=n.fillHorizontalSpaceTablet,I=n.fillHorizontalSpaceMobile,V={id:h||void 0,className:c()((e={"gb-button-wrapper":!0},l(e,"gb-button-wrapper-"+m,!0),l(e,""+S,""!==S),e))};return V=x("generateblocks.frontend.htmlAttributes",V,"generateblocks/button-container",n),wp.element.createElement(B,null,wp.element.createElement(D,null,wp.element.createElement(C,null,wp.element.createElement(w,{text:__("Add Button","generateblocks")},wp.element.createElement(y,{className:"gblocks-add-new-button",icon:"insert",onClick:function(){var e=wp.data.select("core/block-editor").getBlocksByClientId(r)[0];if(e){var t=e.innerBlocks,a=Object.keys(t),l=a[a.length-1];if("undefined"!==typeof t[l]){var n=t[l].clientId;if(n){var i=wp.data.select("core/block-editor").getBlocksByClientId(n)[0],o=R(i);wp.data.dispatch("core/block-editor").insertBlocks(o,void 0,r)}}else 0===t.length&&wp.data.dispatch("core/block-editor").insertBlocks(L("generateblocks/button",generateBlocksStyling.button),void 0,r)}}}))),wp.element.createElement(M,{isCollapsed:!1,value:E,alignmentControls:j,onChange:function(e){i({alignment:e})}})),wp.element.createElement(O,null,wp.element.createElement(g.a,f({},this.props,{selectedDevice:Object(p.a)(o),onClick:function(e){window.localStorage.setItem("generateblocksSelectedDevice",e),t.setState({selectedDevice:e})}})),wp.element.createElement(d.a,f({},this.props,{title:__("Spacing","generateblocks"),initialOpen:!0,icon:Object(u.a)("spacing"),className:"gblocks-panel-label",id:"buttonContainerSpacing",state:this.state}),"desktop"===Object(p.a)(o)&&wp.element.createElement(B,null,wp.element.createElement(M,{isCollapsed:!1,value:E,alignmentControls:j,onChange:function(e){i({alignment:e})}}),wp.element.createElement(s.a,f({},this.props,{device:Object(p.a)(o),type:"margin",label:__("Margin","generateblocks"),attrTop:"marginTop",attrRight:"marginRight",attrBottom:"marginBottom",attrLeft:"marginLeft",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer})),wp.element.createElement(v,{label:__("Stack Vertically","generateblocks"),checked:!!U,onChange:function(e){i({stack:e})}}),wp.element.createElement(v,{label:__("Fill Horizontal Space","generateblocks"),checked:!!F,onChange:function(e){i({fillHorizontalSpace:e})}})),"tablet"===Object(p.a)(o)&&wp.element.createElement(B,null,wp.element.createElement(M,{isCollapsed:!1,value:T,alignmentControls:j,onChange:function(e){i({alignmentTablet:e})}}),wp.element.createElement(s.a,f({},this.props,{device:Object(p.a)(o),type:"margin",label:__("Margin","generateblocks"),attrTop:"marginTopTablet",attrRight:"marginRightTablet",attrBottom:"marginBottomTablet",attrLeft:"marginLeftTablet",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer})),wp.element.createElement(v,{label:__("Stack Vertically","generateblocks"),checked:!!N,onChange:function(e){i({stackTablet:e})}}),wp.element.createElement(v,{label:__("Fill Horizontal Space","generateblocks"),checked:!!H,onChange:function(e){i({fillHorizontalSpaceTablet:e})}})),"mobile"===Object(p.a)(o)&&wp.element.createElement(B,null,wp.element.createElement(M,{isCollapsed:!1,value:_,alignmentControls:j,onChange:function(e){i({alignmentMobile:e})}}),wp.element.createElement(s.a,f({},this.props,{device:Object(p.a)(o),type:"margin",label:__("Margin","generateblocks"),attrTop:"marginTopMobile",attrRight:"marginRightMobile",attrBottom:"marginBottomMobile",attrLeft:"marginLeftMobile",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.buttonContainer})),wp.element.createElement(v,{label:__("Stack Vertically","generateblocks"),checked:!!A,onChange:function(e){i({stackMobile:e})}}),wp.element.createElement(v,{label:__("Fill Horizontal Space","generateblocks"),checked:!!I,onChange:function(e){i({fillHorizontalSpaceMobile:e})}})),x("generateblocks.editor.controls","","buttonContainerSpacing",this.props,this.state)),wp.element.createElement(d.a,f({},this.props,{title:__("Advanced","generateblocks"),initialOpen:!1,icon:Object(u.a)("advanced"),className:"gblocks-panel-label",id:"buttonContainerAdvanced",state:this.state,showPanel:"desktop"===Object(p.a)(o)||!1}),wp.element.createElement(k,{label:__("Element ID","generateblocks"),value:h,onChange:function(e){var t=e.replace(P,"-");i({elementId:t})}}),wp.element.createElement(k,{label:__("CSS Classes","generateblocks"),value:S,onChange:function(e){i({cssClasses:e})}}),x("generateblocks.editor.controls","","buttonContainerAdvanced",this.props,this.state)),wp.element.createElement(d.a,f({},this.props,{title:__("Documentation","generateblocks"),icon:Object(u.a)("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"buttonContainerDocumentation",state:this.state}),wp.element.createElement("p",null,__("Need help with this block?","generateblocks")),wp.element.createElement("a",{href:"https://docs.generateblocks.com/collection/buttons/",target:"_blank",rel:"noreferrer noopener"},__("Visit our documentation","generateblocks")),x("generateblocks.editor.controls","","buttonContainerDocumentation",this.props,this.state))),wp.element.createElement(b.a,this.props),wp.element.createElement("div",V,wp.element.createElement(z,{allowedBlocks:["generateblocks/button"],renderAppender:function(){return wp.element.createElement(w,{text:__("Add Button","generateblocks")},wp.element.createElement(y,{className:"gblocks-add-new-button gblocks-button-container-appender",icon:"insert",onClick:function(){wp.data.dispatch("core/block-editor").insertBlocks(L("generateblocks/button",generateBlocksStyling.button),void 0,r)}}))}})))}}]),t}(E);t.a=N},function(e,t,a){"use strict";function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var r=a(4),o=a(11),c=a(15),s=function(){function e(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)}}return function(t,a,l){return a&&e(t.prototype,a),l&&e(t,l),t}}(),g=wp.element.Component,u=wp.hooks.applyFilters,p=function(e){function t(){return l(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),s(t,[{key:"render",value:function(){var e=this.props.attributes,t=e.uniqueId,a=e.alignment,l=e.marginTop,n=e.marginRight,i=e.marginBottom,s=e.marginLeft,g=e.marginUnit,p=e.stack,b=e.fillHorizontalSpace,d=[];return d[".gb-button-wrapper-"+t]=[{display:!!b&&"block",margin:Object(o.a)(l,n,i,s,g),"justify-content":Object(c.a)(a),"flex-direction":!!p&&"column","align-items":!!p&&Object(c.a)(a)}],d[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!p&&"column"}],b&&(d[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],d[".gb-button-wrapper-"+t+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),p&&b&&(d[".gb-button-wrapper-"+t+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),d=u("generateblocks.editor.desktopCSS",d,this.props,"button-container"),wp.element.createElement("style",null,Object(r.a)(d))}}]),t}(g);t.a=p},function(e,t,a){"use strict";function l(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var n=a(0),i=a.n(n),r=wp.blockEditor.InnerBlocks,o=wp.hooks.applyFilters;t.a=function(e){var t,a=e.attributes,n=a.uniqueId,c=a.elementId,s=a.cssClasses,g={id:c||void 0,className:i()((t={"gb-button-wrapper":!0},l(t,"gb-button-wrapper-"+n,!0),l(t,""+s,""!==s),t))};return g=o("generateblocks.frontend.htmlAttributes",g,"generateblocks/button-container",a),wp.element.createElement("div",g,wp.element.createElement(r.Content,null))}},function(e,t,a){"use strict";t.a={uniqueId:{type:"string",default:""},elementId:{type:"string",default:""},cssClasses:{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}}},function(e,t,a){"use strict";var l=a(49),n=(a.n(l),a(50)),i=(a.n(n),a(51)),r=a(58),o=a(59),c=a(1),__=wp.i18n.__;(0,wp.blocks.registerBlockType)("generateblocks/button",{title:__("Button","generateblocks"),description:__("Drive conversions with beautiful buttons.","generateblocks"),parent:["generateblocks/button-container"],icon:Object(c.a)("button"),category:"generateblocks",keywords:[__("button"),__("buttons"),__("generate")],attributes:o.a,supports:{anchor:!1,className:!1,customClassName:!1,inserter:!1,reusable:!1},edit:i.a,save:r.a})},function(e,t){},function(e,t){},function(e,t,a){"use strict";function l(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function r(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=a(0),c=a.n(o),s=a(9),g=a(16),u=a(55),p=a(10),b=a(12),d=a(14),f=a(3),m=a(5),h=a(1),k=a(2),w=a(57),y=a(7),v=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},C=function(){function e(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)}}return function(t,a,l){return a&&e(t.prototype,a),l&&e(t,l),t}}(),S=wp.i18n,__=S.__,_x=S._x,B=S.sprintf,E=wp.components,T=E.TabPanel,O=E.TextControl,z=E.Toolbar,M=E.Tooltip,D=E.Button,_=E.ButtonGroup,L=wp.element,R=L.Fragment,x=L.Component,P=wp.blockEditor,U=P.InspectorControls,j=P.RichText,N=P.BlockControls,A=wp.blocks.cloneBlock,F=wp.hooks.applyFilters,H=/[\s#]/g,I=[],V=function(e){function t(){n(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.getFontSizePlaceholder=e.getFontSizePlaceholder.bind(e),e.state={selectedDevice:"desktop",fontSizePlaceholder:"17"},e}return r(t,e),C(t,[{key:"componentDidMount",value:function(){var e=this.props.clientId.substr(2,9).replace("-","");this.props.attributes.uniqueId?I.includes(this.props.attributes.uniqueId)?(this.props.setAttributes({uniqueId:e}),I.push(e)):I.push(this.props.attributes.uniqueId):(this.props.setAttributes({uniqueId:e}),I.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="17",t=document.querySelector(".gb-button-"+this.props.attributes.uniqueId);return t&&(e=parseFloat(window.getComputedStyle(t).fontSize)),e}},{key:"render",value:function(){var e,t=this,a=this.props,n=a.attributes,i=a.setAttributes,r=a.isSelected,o=a.clientId,C=this.state,S=C.selectedDevice,E=C.fontSizePlaceholder,L=n.uniqueId,x=n.elementId,P=n.cssClasses,I=n.text,V=n.url,G=n.target,q=n.relNoFollow,W=n.relSponsored,Z=n.icon,K=n.iconLocation,J=n.removeText,Y=n.ariaLabel,Q=n.backgroundColor,X=n.backgroundColorOpacity,$=n.textColor,ee=n.backgroundColorHover,te=n.backgroundColorHoverOpacity,ae=n.textColorHover,le=n.fontFamily,ne=n.googleFont,ie=n.googleFontVariants,re=n.borderColor,oe=n.borderColorOpacity,ce=n.borderColorHover,se=n.borderColorHoverOpacity,ge=n.iconSize,ue=n.iconSizeTablet,pe=n.iconSizeMobile,be=n.iconSizeUnit;jQuery(".gb-button").on("click",function(e){e.preventDefault()});var de=[];q&&de.push("nofollow"),G&&de.push("noopener","noreferrer"),W&&de.push("sponsored");var fe="";ie&&(fe=":"+ie);var me=[{name:_x("Pixel","A size unit for CSS markup","generateblocks"),unitValue:"px"},{name:_x("Em","A size unit for CSS markup","generateblocks"),unitValue:"em"}],he={id:x||void 0,className:c()((e={"gb-button":!0},l(e,"gb-button-"+L,!0),l(e,""+P,""!==P),e)),href:V||void 0,target:G?"_blank":void 0,rel:de&&de.length>0?de.join(" "):void 0,"aria-label":Y||void 0};return he=F("generateblocks.frontend.htmlAttributes",he,"generateblocks/button",n),wp.element.createElement(R,null,wp.element.createElement(N,null,wp.element.createElement(z,null,wp.element.createElement(M,{text:__("Add Button","generateblocks")},wp.element.createElement(D,{className:"gblocks-add-new-button",icon:"insert",onClick:function(){var e=!1;e="function"===typeof wp.data.select("core/block-editor").getBlockParentsByBlockName?wp.data.select("core/block-editor").getBlockParentsByBlockName(o,"generateblocks/button-container",!0)[0]:wp.data.select("core/block-editor").getBlockRootClientId(o);var t=wp.data.select("core/block-editor").getBlocksByClientId(o)[0],a=A(t);wp.data.dispatch("core/block-editor").insertBlocks(a,void 0,e)}})))),wp.element.createElement(U,null,wp.element.createElement(f.a,v({},this.props,{selectedDevice:Object(k.a)(S),onClick:function(e){window.localStorage.setItem("generateblocksSelectedDevice",e),t.setState({selectedDevice:e})}})),wp.element.createElement(m.a,v({},this.props,{title:__("Typography","generateblocks"),initialOpen:!1,icon:Object(h.a)("typography"),className:"gblocks-panel-label",id:"buttonTypography",state:this.state,showPanel:!J||!1}),"desktop"===Object(k.a)(S)&&wp.element.createElement(R,null,wp.element.createElement(b.a,v({},this.props,{showFontFamily:!0,showFontWeight:!0,showTextTransform:!0,showFontSize:!0,showLetterSpacing:!0,fontSizePlaceholder:E,defaultFontSize:generateBlocksDefaults.button.fontSize,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacing}))),"tablet"===Object(k.a)(S)&&wp.element.createElement(R,null,wp.element.createElement(b.a,v({},this.props,{device:"Tablet",showFontSize:!0,showLetterSpacing:!0,disableAdvancedToggle:!0,defaultFontSize:generateBlocksDefaults.button.fontSizeTablet,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacingTablet}))),"mobile"===Object(k.a)(S)&&wp.element.createElement(R,null,wp.element.createElement(b.a,v({},this.props,{device:"Mobile",showFontSize:!0,showLetterSpacing:!0,disableAdvancedToggle:!0,defaultFontSize:generateBlocksDefaults.button.fontSizeMobile,defaultFontSizeUnit:generateBlocksDefaults.button.fontSizeUnit,defaultLetterSpacing:generateBlocksDefaults.button.letterSpacingMobile}))),F("generateblocks.editor.controls","","buttonTypography",this.props,this.state)),wp.element.createElement(m.a,v({},this.props,{title:__("Spacing","generateblocks"),initialOpen:!1,icon:Object(h.a)("spacing"),className:"gblocks-panel-label",id:"buttonSpacing",state:this.state}),"desktop"===Object(k.a)(S)&&wp.element.createElement(R,null,wp.element.createElement(p.a,v({},this.props,{device:Object(k.a)(S),type:"padding",label:__("Padding","generateblocks"),attrTop:"paddingTop",attrRight:"paddingRight",attrBottom:"paddingBottom",attrLeft:"paddingLeft",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button})),wp.element.createElement(p.a,v({},this.props,{device:Object(k.a)(S),type:"margin",label:__("Margin","generateblocks"),attrTop:"marginTop",attrRight:"marginRight",attrBottom:"marginBottom",attrLeft:"marginLeft",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button})),wp.element.createElement(p.a,v({},this.props,{device:Object(k.a)(S),type:"padding",label:__("Border Size","generateblocks"),attrTop:"borderSizeTop",attrRight:"borderSizeRight",attrBottom:"borderSizeBottom",attrLeft:"borderSizeLeft",attrSyncUnits:"borderSizeSyncUnits",displayUnit:"px",defaults:generateBlocksDefaults.button})),wp.element.createElement(p.a,v({},this.props,{device:Object(k.a)(S),type:"padding",label:__("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeft",attrRight:"borderRadiusTopRight",attrBottom:"borderRadiusBottomRight",attrLeft:"borderRadiusBottomLeft",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:__("T-Left","generateblocks"),labelRight:__("T-Right","generateblocks"),labelBottom:__("B-Right","generateblocks"),labelLeft:__("B-Left","generateblocks"),defaults:generateBlocksDefaults.button}))),"tablet"===Object(k.a)(S)&&wp.element.createElement(R,null,wp.element.createElement(p.a,v({},this.props,{device:Object(k.a)(S),type:"padding",label:__("Padding","generateblocks"),attrTop:"paddingTopTablet",attrRight:"paddingRightTablet",attrBottom:"paddingBottomTablet",attrLeft:"paddingLeftTablet",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button})),wp.element.createElement(p.a,v({},this.props,{device:Object(k.a)(S),type:"margin",label:__("Margin","generateblocks"),attrTop:"marginTopTablet",attrRight:"marginRightTablet",attrBottom:"marginBottomTablet",attrLeft:"marginLeftTablet",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button})),wp.element.createElement(p.a,v({},this.props,{device:Object(k.a)(S),type:"padding",label:__("Border Size","generateblocks"),attrTop:"borderSizeTopTablet",attrRight:"borderSizeRightTablet",attrBottom:"borderSizeBottomTablet",attrLeft:"borderSizeLeftTablet",attrSyncUnits:"borderSizeSyncUnits",displayUnit:"px",defaults:generateBlocksDefaults.button})),wp.element.createElement(p.a,v({},this.props,{device:Object(k.a)(S),type:"padding",label:__("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftTablet",attrRight:"borderRadiusTopRightTablet",attrBottom:"borderRadiusBottomRightTablet",attrLeft:"borderRadiusBottomLeftTablet",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:__("T-Left","generateblocks"),labelRight:__("T-Right","generateblocks"),labelBottom:__("B-Right","generateblocks"),labelLeft:__("B-Left","generateblocks"),defaults:generateBlocksDefaults.button}))),"mobile"===Object(k.a)(S)&&wp.element.createElement(R,null,wp.element.createElement(p.a,v({},this.props,{device:Object(k.a)(S),type:"padding",label:__("Padding","generateblocks"),attrTop:"paddingTopMobile",attrRight:"paddingRightMobile",attrBottom:"paddingBottomMobile",attrLeft:"paddingLeftMobile",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.button})),wp.element.createElement(p.a,v({},this.props,{device:Object(k.a)(S),type:"padding",label:__("Margin","generateblocks"),attrTop:"marginTopMobile",attrRight:"marginRightMobile",attrBottom:"marginBottomMobile",attrLeft:"marginLeftMobile",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.button})),wp.element.createElement(p.a,v({},this.props,{device:Object(k.a)(S),type:"padding",label:__("Border Size","generateblocks"),attrTop:"borderSizeTopMobile",attrRight:"borderSizeRightMobile",attrBottom:"borderSizeBottomMobile",attrLeft:"borderSizeLeftMobile",attrSyncUnits:"borderSizeSyncUnits",displayUnit:"px",defaults:generateBlocksDefaults.button})),wp.element.createElement(p.a,v({},this.props,{device:Object(k.a)(S),type:"padding",label:__("Border Radius","generateblocks"),attrTop:"borderRadiusTopLeftMobile",attrRight:"borderRadiusTopRightMobile",attrBottom:"borderRadiusBottomRightMobile",attrLeft:"borderRadiusBottomLeftMobile",attrUnit:"borderRadiusUnit",attrSyncUnits:"borderRadiusSyncUnits",labelTop:__("T-Left","generateblocks"),labelRight:__("T-Right","generateblocks"),labelBottom:__("B-Right","generateblocks"),labelLeft:__("B-Left","generateblocks"),defaults:generateBlocksDefaults.button}))),F("generateblocks.editor.controls","","buttonSpacing",this.props,this.state)),wp.element.createElement(m.a,v({},this.props,{title:__("Colors","generateblocks"),initialOpen:!1,icon:Object(h.a)("colors"),className:"gblocks-panel-label",id:"buttonColors",state:this.state,showPanel:"desktop"===Object(k.a)(S)||!1}),wp.element.createElement(T,{className:"layout-tab-panel gblocks-control-tabs",activeClass:"active-tab",tabs:[{name:"button-colors",title:__("Normal","generateblocks"),className:"button-colors"},{name:"button-colors-hover",title:__("Hover","generateblocks"),className:"button-colors-hover"}]},function(e){var a="button-colors"===e.name;return wp.element.createElement("div",null,a?wp.element.createElement(R,null,wp.element.createElement(s.a,{label:__("Background Color","generateblocks"),value:Q,alpha:!0,valueOpacity:X,attrOpacity:"backgroundColorOpacity",key:"buttonBackgroundColor",onChange:function(e){return i({backgroundColor:e})},onOpacityChange:function(e){return i({backgroundColorOpacity:e})}}),wp.element.createElement(s.a,{label:__("Text Color","generateblocks"),value:$,alpha:!1,key:"buttonTextColor",onChange:function(e){return i({textColor:e})}}),wp.element.createElement(s.a,{label:__("Border Color","generateblocks"),value:re,alpha:!0,valueOpacity:oe,attrOpacity:"borderColorOpacity",key:"buttonBorderColor",onChange:function(e){return i({borderColor:e})},onOpacityChange:function(e){return i({borderColorOpacity:e})}}),F("generateblocks.editor.controls","","buttonColorsNormal",t.props,t.state)):wp.element.createElement(R,null,wp.element.createElement(s.a,{label:__("Background Color","generateblocks"),value:ee,alpha:!0,valueOpacity:te,attrOpacity:"backgroundColorHoverOpacity",key:"buttonBackgroundColorHover",onChange:function(e){return i({backgroundColorHover:e})},onOpacityChange:function(e){return i({backgroundColorHoverOpacity:e})}}),wp.element.createElement(s.a,{label:__("Text Color","generateblocks"),value:ae,alpha:!1,key:"buttonTextColorHover",onChange:function(e){return i({textColorHover:e})}}),wp.element.createElement(s.a,{label:__("Border Color","generateblocks"),value:ce,alpha:!0,valueOpacity:se,attrOpacity:"borderColorHoverOpacity",key:"buttonBorderColorHover",onChange:function(e){return i({borderColorHover:e})},onOpacityChange:function(e){return i({borderColorHoverOpacity:e})}}),F("generateblocks.editor.controls","","buttonColorsHover",t.props,t.state)))}),F("generateblocks.editor.controls","","buttonColors",this.props,this.state)),wp.element.createElement(m.a,v({},this.props,{title:__("Background Gradient","generateblocks"),initialOpen:!1,icon:Object(h.a)("gradients"),className:"gblocks-panel-label",id:"buttonBackgroundGradient",state:this.state,showPanel:"desktop"===Object(k.a)(S)||!1}),wp.element.createElement(d.a,v({},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})),F("generateblocks.editor.controls","","buttonBackgroundGradient",this.props,this.state)),wp.element.createElement(m.a,v({},this.props,{title:__("Icon","generateblocks"),initialOpen:!1,icon:Object(h.a)("icons"),className:"gblocks-panel-label",id:"buttonIcon",state:this.state,showPanel:!("desktop"!==Object(k.a)(S)&&!Z)}),"desktop"===Object(k.a)(S)&&wp.element.createElement(g.a,v({},this.props,{attrIcon:"icon",attrIconLocation:"iconLocation",attrRemoveText:"removeText",locationOptions:[{label:__("Left","generateblocks"),value:"left"},{label:__("Right","generateblocks"),value:"right"}]})),"desktop"===Object(k.a)(S)&&!!Z&&wp.element.createElement(R,null,!J&&wp.element.createElement(R,null,wp.element.createElement(p.a,v({},this.props,{device:Object(k.a)(S),type:"padding",label:__("Padding","generateblocks"),attrTop:"iconPaddingTop",attrRight:"iconPaddingRight",attrBottom:"iconPaddingBottom",attrLeft:"iconPaddingLeft",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button}))),wp.element.createElement("div",{className:"components-gblocks-typography-control__header"},wp.element.createElement("div",{className:"components-gblocks-typography-control__label components-base-control__label"},__("Icon Size","generateblocks")),wp.element.createElement("div",{className:"components-gblocks-control__units"},wp.element.createElement(_,{className:"components-gblocks-typography-control__units","aria-label":__("Select Units","generateblocks")},me.map(function(e){return wp.element.createElement(M,{text:B(__("%s Units","generateblocks"),e.name),key:e.unitValue},wp.element.createElement(D,{key:e.unitValue,className:"components-gblocks-typography-control__units--"+e.name,isSmall:!0,isPrimary:be===e.unitValue,"aria-pressed":be===e.unitValue,"aria-label":B(__("%s Units","generateblocks"),e.name),onClick:function(){return i({iconSizeUnit:e.unitValue})}},e.unitValue))})))),wp.element.createElement("div",{className:"components-base-control components-gblocks-typography-control__inputs"},wp.element.createElement(O,{type:"number",value:ge||"",step:"em"===be?.1:1,onChange:function(e){i({iconSize:e})},onBlur:function(){i({iconSize:parseFloat(ge)})},onClick:function(e){e.currentTarget.focus()}}),wp.element.createElement(D,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){i({iconSize:generateBlocksDefaults.button.iconSize})}},__("Reset","generateblocks")))),"tablet"===Object(k.a)(S)&&!!Z&&wp.element.createElement(R,null,!J&&wp.element.createElement(R,null,wp.element.createElement(p.a,v({},this.props,{device:Object(k.a)(S),type:"padding",label:__("Padding","generateblocks"),attrTop:"iconPaddingTopTablet",attrRight:"iconPaddingRightTablet",attrBottom:"iconPaddingBottomTablet",attrLeft:"iconPaddingLeftTablet",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button}))),wp.element.createElement("div",{className:"components-gblocks-typography-control__header"},wp.element.createElement("div",{className:"components-gblocks-typography-control__label components-base-control__label"},__("Icon Size","generateblocks")),wp.element.createElement("div",{className:"components-gblocks-control__units"},wp.element.createElement(_,{className:"components-gblocks-typography-control__units","aria-label":__("Select Units","generateblocks")},me.map(function(e){return wp.element.createElement(M,{text:B(__("%s Units","generateblocks"),e.name),key:e.unitValue},wp.element.createElement(D,{key:e.unitValue,className:"components-gblocks-typography-control__units--"+e.name,isSmall:!0,isPrimary:be===e.unitValue,"aria-pressed":be===e.unitValue,"aria-label":B(__("%s Units","generateblocks"),e.name),onClick:function(){return i({iconSizeUnit:e.unitValue})}},e.unitValue))})))),wp.element.createElement("div",{className:"components-base-control components-gblocks-typography-control__inputs"},wp.element.createElement(O,{type:"number",value:ue||"",step:"em"===be?.1:1,placeholder:"1",onChange:function(e){i({iconSizeTablet:e})},onBlur:function(){i({iconSizeTablet:parseFloat(ue)})},onClick:function(e){e.currentTarget.focus()}}),wp.element.createElement(D,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){i({iconSizeTablet:generateBlocksDefaults.button.iconSizeTablet})}},__("Reset","generateblocks")))),"mobile"===Object(k.a)(S)&&!!Z&&wp.element.createElement(R,null,!J&&wp.element.createElement(R,null,wp.element.createElement(p.a,v({},this.props,{device:Object(k.a)(S),type:"padding",label:__("Padding","generateblocks"),attrTop:"iconPaddingTopMobile",attrRight:"iconPaddingRightMobile",attrBottom:"iconPaddingBottomMobile",attrLeft:"iconPaddingLeftMobile",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.button}))),wp.element.createElement("div",{className:"components-gblocks-typography-control__header"},wp.element.createElement("div",{className:"components-gblocks-typography-control__label components-base-control__label"},__("Icon Size","generateblocks")),wp.element.createElement("div",{className:"components-gblocks-control__units"},wp.element.createElement(_,{className:"components-gblocks-typography-control__units","aria-label":__("Select Units","generateblocks")},me.map(function(e){return wp.element.createElement(M,{text:B(__("%s Units","generateblocks"),e.name),key:e.unitValue},wp.element.createElement(D,{key:e.unitValue,className:"components-gblocks-typography-control__units--"+e.name,isSmall:!0,isPrimary:be===e.unitValue,"aria-pressed":be===e.unitValue,"aria-label":B(__("%s Units","generateblocks"),e.name),onClick:function(){return i({iconSizeUnit:e.unitValue})}},e.unitValue))})))),wp.element.createElement("div",{className:"components-base-control components-gblocks-typography-control__inputs"},wp.element.createElement(O,{type:"number",value:pe||"",step:"em"===be?.1:1,placeholder:"1",onChange:function(e){i({iconSizeMobile:e})},onBlur:function(){i({iconSizeMobile:parseFloat(pe)})},onClick:function(e){e.currentTarget.focus()}}),wp.element.createElement(D,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){i({iconSizeMobile:generateBlocksDefaults.button.iconSizeMobile})}},__("Reset","generateblocks")))),F("generateblocks.editor.controls","","buttonIcon",this.props,this.state)),wp.element.createElement(m.a,v({},this.props,{title:__("Advanced","generateblocks"),initialOpen:!1,icon:Object(h.a)("advanced"),className:"gblocks-panel-label",id:"buttonAdvanced",state:this.state,showPanel:"desktop"===Object(k.a)(S)||!1}),wp.element.createElement(O,{label:__("Element ID","generateblocks"),value:x,onChange:function(e){var t=e.replace(H,"-");i({elementId:t})}}),wp.element.createElement(O,{label:__("CSS Classes","generateblocks"),value:P,onChange:function(e){i({cssClasses:e})}}),wp.element.createElement(O,{label:__("ARIA Label","generateblocks"),help:__("Helpful to people using screen readers.","generateblocks"),value:Y,onChange:function(e){i({ariaLabel:e})}}),F("generateblocks.editor.controls","","buttonAdvanced",this.props,this.state)),wp.element.createElement(m.a,v({},this.props,{title:__("Documentation","generateblocks"),icon:Object(h.a)("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"buttonDocumentation",state:this.state}),wp.element.createElement("p",null,__("Need help with this block?","generateblocks")),wp.element.createElement("a",{href:"https://docs.generateblocks.com/collection/buttons/",target:"_blank",rel:"noreferrer noopener"},__("Visit our documentation","generateblocks")),F("generateblocks.editor.controls","","buttonDocumentation",this.props,this.state))),wp.element.createElement(w.a,this.props),le&&ne&&wp.element.createElement("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family="+le.replace(/ /g,"+")+fe}),wp.element.createElement("a",he,Z&&"left"===K&&wp.element.createElement("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Object(y.a)(Z)}}),!J&&wp.element.createElement("span",{className:"button-text"},wp.element.createElement(j,{placeholder:__("Add text\u2026","generateblocks"),value:I,onChange:function(e){return i({text:e})},allowedFormats:["core/bold","core/italic","core/strikethrough"],isSelected:r,keepPlaceholderOnFocus:!0})),Z&&"right"===K&&wp.element.createElement("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Object(y.a)(Z)}})),r&&wp.element.createElement(u.a,{url:V,target:G,relNoFollow:q,relSponsored:W,onChange:function(e){i(e)},autoFocus:!1,className:"gblocks-component-url-input-float"}))}}]),t}(x);t.a=V},function(e,t){},function(e,t,a){"use strict";var _x=wp.i18n._x,l={facebook:{label:_x("Facebook","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 320 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("Facebook - Circle","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("Facebook - Square","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("Instagram","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("LinkedIn","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("LinkedIn - Square","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("Pinterest","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 384 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("Pinterest - Circle","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 496 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("Pinterest - Square","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("Reddit","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("Reddit - Circle","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("Reddit - Square","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("Snapchat","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("Soundcloud","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 640 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("Twitch","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("Twitter","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("Twitter - Square","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("Vimeo","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("Vimeo - Square","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("WhatsApp","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("WhatsApp - Square","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("YouTube","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 576 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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"}))}};t.a=l},function(e,t,a){"use strict";var _x=wp.i18n._x,l={clock:{label:_x("Clock","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("Clock Outline","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("Asterisk","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("At","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("Award","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 384 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("Ban","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("Bars","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("Beer","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("Bolt","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 320 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("Book","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("Box - Open","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 640 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("Bullhorn","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 576 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("Bullseye","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 496 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("Burn","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 384 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("Calender","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("Check","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("Check - Circle","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("Check - Circle Outline","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("Check - Square","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("Check - Square Outline","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("Chevron - Down","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("Chevron - Left","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 256 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("Chevron - Right","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 256 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("Chevron - Up","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("Circle","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{fill:"currentColor",d:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8z"}))},circleOutline:{label:_x("Circle - Outline","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("Coffee","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 640 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("Dot - Circle","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("Dot - Circle Outline","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("Ellipses - Horizontal","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("Ellipses - Vertical","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 192 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("Envelope","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("Fire","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("Heart","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("Map Marker","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 384 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("Paper Plane","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("Phone","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("Plus","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("Plus - Circle","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("Plus - Square","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("Plus - Square Outline","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("Shield","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("Star","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 576 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("Tags","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 640 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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:_x("User - Circle","label","generateblocks"),icon:wp.element.createElement("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 496 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.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"}))}};t.a=l},function(e,t,a){"use strict";function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var r=a(0),o=a.n(r),c=a(56),s=(a.n(c),function(){function e(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)}}return function(t,a,l){return a&&e(t.prototype,a),l&&e(t,l),t}}()),__=wp.i18n.__,g=wp.element.Component,u=wp.components,p=u.Button,b=u.ToggleControl,d=wp.blockEditor.URLInput,f=function(e){function t(){l(this,t);var e=n(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.state={moreOptions:!1},e.onChange=e.onChange.bind(e),e}return i(t,e),s(t,[{key:"onChange",value:function(e){var t=this.props,a=t.url,l=t.target,n=t.relNoFollow,i=t.relSponsored;this.props.onChange(Object.assign({url:a,target:l,relNoFollow:n,relSponsored:i},e))}},{key:"render",value:function(){var e=this,t=this.props,a=t.url,l=t.target,n=t.relNoFollow,i=t.relSponsored,r=t.className,c=t.autoFocus,s=this.onChange,g=this.state.moreOptions;return wp.element.createElement("form",{className:o()("gblocks-component-url-input",r),onSubmit:function(e){return e.preventDefault()}},wp.element.createElement("div",{className:"gblocks-component-url-input-flex"},wp.element.createElement(d,{value:a,onChange:function(e){s({url:e})},autoFocus:c}),wp.element.createElement(p,{icon:"ellipsis",label:g?__("Hide More Options","generateblocks"):__("Show More Options","generateblocks"),onClick:function(){e.setState({moreOptions:!g})}})),g&&wp.element.createElement("div",{className:"gblocks-component-url-input-more-options"},wp.element.createElement(b,{label:__("Open link in a new tab","generateblocks"),checked:l||"",onChange:function(e){s({target:e})}}),wp.element.createElement(b,{label:__('Add rel="nofollow"',"generateblocks"),checked:n||"",onChange:function(e){s({relNoFollow:e})}}),wp.element.createElement(b,{label:__('Add rel="sponsored"',"generateblocks"),checked:i||"",onChange:function(e){s({relSponsored:e})}})))}}]),t}(g);t.a=f},function(e,t){},function(e,t,a){"use strict";function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var r=a(4),o=a(8),c=a(11),s=a(6),g=function(){function e(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)}}return function(t,a,l){return a&&e(t.prototype,a),l&&e(t,l),t}}(),u=wp.element.Component,p=wp.hooks.applyFilters,b=function(e){function t(){return l(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),g(t,[{key:"render",value:function(){var e=this.props.attributes,t=e.uniqueId,a=e.removeText,l=e.backgroundColor,n=e.backgroundColorOpacity,i=e.textColor,g=e.backgroundColorHover,u=e.backgroundColorHoverOpacity,b=e.textColorHover,d=e.fontFamily,f=e.fontFamilyFallback,m=e.fontWeight,h=e.textTransform,k=e.letterSpacing,w=e.fontSize,y=e.fontSizeUnit,v=e.marginTop,C=e.marginRight,S=e.marginBottom,B=e.marginLeft,E=e.marginUnit,T=e.paddingTop,O=e.paddingRight,z=e.paddingBottom,M=e.paddingLeft,D=e.paddingUnit,_=e.borderSizeTop,L=e.borderSizeRight,R=e.borderSizeBottom,x=e.borderSizeLeft,P=e.borderRadiusTopRight,U=e.borderRadiusBottomRight,j=e.borderRadiusBottomLeft,N=e.borderRadiusTopLeft,A=e.borderRadiusUnit,F=e.borderColor,H=e.borderColorOpacity,I=e.borderColorHover,V=e.borderColorHoverOpacity,G=e.gradient,q=e.gradientDirection,W=e.gradientColorOne,Z=e.gradientColorOneOpacity,K=e.gradientColorStopOne,J=e.gradientColorTwo,Y=e.gradientColorTwoOpacity,Q=e.gradientColorStopTwo,X=e.iconPaddingTop,$=e.iconPaddingRight,ee=e.iconPaddingBottom,te=e.iconPaddingLeft,ae=e.iconPaddingUnit,le=e.iconSize,ne=e.iconSizeUnit,ie="",re=void 0,oe="",ce="";G&&(W&&""!==K&&(oe=" "+K+"%"),J&&""!==Q&&(ce=" "+Q+"%")),G&&(re="linear-gradient("+q+"deg, "+Object(s.a)(W,Z)+oe+", "+Object(s.a)(J,Y)+ce+");"),d&&f&&(ie=", "+f);var se=[];return se[".block-editor-block-list__block a.gb-button-"+t]=[{"background-color":Object(s.a)(l,n),"background-image":re,color:i,padding:Object(c.a)(T,O,z,M,D),"border-radius":Object(c.a)(N,P,U,j,A),"font-family":d+ie,"font-weight":m,"text-transform":h,"font-size":Object(o.a)(w,y),"letter-spacing":Object(o.a)(k,"em"),margin:Object(c.a)(v,C,S,B,E)}],(_||L||R||x)&&se[".block-editor-block-list__block a.gb-button-"+t].push({"border-width":Object(c.a)(_,L,R,x,"px"),"border-style":"solid","border-color":Object(s.a)(F,H)}),se[".block-editor-block-list__block a.gb-button-"+t+":hover,\n\t\t.block-editor-block-list__block a.gb-button-"+t+":focus,\n\t\t.block-editor-block-list__block a.gb-button-"+t+":active"]=[{"background-color":Object(s.a)(g,u),color:b,"border-color":Object(s.a)(I,V)}],se[".block-editor-block-list__block a.gb-button-"+t+" .gb-icon"]=[{padding:!a&&Object(c.a)(X,$,ee,te,ae),"font-size":Object(o.a)(le,ne)}],se=p("generateblocks.editor.desktopCSS",se,this.props,"button"),wp.element.createElement("style",null,Object(r.a)(se))}}]),t}(u);t.a=b},function(e,t,a){"use strict";function l(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var n=a(0),i=a.n(n),r=a(7),o=wp.blockEditor.RichText,c=wp.hooks.applyFilters;t.a=function(e){var t,a=e.attributes,n=a.uniqueId,s=a.elementId,g=a.cssClasses,u=a.text,p=a.url,b=a.target,d=a.relNoFollow,f=a.relSponsored,m=a.icon,h=a.iconLocation,k=a.removeText,w=a.ariaLabel,y=[];d&&y.push("nofollow"),b&&y.push("noopener","noreferrer"),f&&y.push("sponsored");var v={id:s||void 0,className:i()((t={"gb-button":!0},l(t,"gb-button-"+n,!0),l(t,""+g,""!==g),t)),href:p||void 0,target:b?"_blank":void 0,rel:y&&y.length>0?y.join(" "):void 0,"aria-label":w||void 0};return v=c("generateblocks.frontend.htmlAttributes",v,"generateblocks/button",a),wp.element.createElement("a",v,m&&"left"===h&&wp.element.createElement("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Object(r.a)(m)}}),!k&&wp.element.createElement(o.Content,{tagName:"span",className:"button-text",value:u,key:"button-text"}),m&&"right"===h&&wp.element.createElement("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:Object(r.a)(m)}}))}},function(e,t,a){"use strict";t.a={uniqueId:{type:"string",default:""},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""},url:{type:"string",source:"attribute",selector:"a.gb-button",attribute:"href"},target:{type:"boolean"},relNoFollow:{type:"boolean"},relSponsored:{type:"boolean"},text:{type:"array",source:"children",selector:".gb-button .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}}},function(e,t,a){"use strict";var l=a(61),n=(a.n(l),a(62)),i=a(17),r=a(18),o=a(65),c=a(66),s=a(1),__=wp.i18n.__;(0,wp.blocks.registerBlockType)("generateblocks/headline",{title:__("Headline","generateblocks"),description:__("Craft text-rich content with advanced typography.","generateblocks"),icon:Object(s.a)("headline"),category:"generateblocks",keywords:[__("heading"),__("headline"),__("title"),__("generate")],attributes:r.a,supports:{anchor:!1,className:!1,customClassName:!1},edit:n.a,save:i.a,transforms:o.a,deprecated:c.a})},function(e,t){},function(e,t,a){"use strict";function l(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function r(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=a(0),c=a.n(o),s=a(9),g=a(16),u=a(12),p=a(10),b=a(3),d=a(1),f=a(2),m=a(7),h=a(63),k=a(5),w=a(64),y=(a.n(w),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}),v=function(){function e(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)}}return function(t,a,l){return a&&e(t.prototype,a),l&&e(t,l),t}}(),C=wp.i18n,__=C.__,_x=C._x,S=C.sprintf,B=wp.components,E=B.TextControl,T=B.Toolbar,O=B.SelectControl,z=B.DropdownMenu,M=B.ToggleControl,D=B.Tooltip,_=B.Button,L=B.ButtonGroup,R=wp.element,x=R.Fragment,P=R.Component,U=wp.blockEditor,j=U.InspectorControls,N=U.RichText,A=U.BlockControls,F=U.AlignmentToolbar,H=wp.hooks.applyFilters,I=/[\s#]/g,V=[],G=function(e){function t(){n(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.getFontSizePlaceholder=e.getFontSizePlaceholder.bind(e),e.state={selectedDevice:"desktop",fontSizePlaceholder:"17"},e}return r(t,e),v(t,[{key:"componentDidMount",value:function(){var e=this.props.clientId.substr(2,9).replace("-","");this.props.attributes.uniqueId?V.includes(this.props.attributes.uniqueId)?(this.props.setAttributes({uniqueId:e}),V.push(e)):V.push(this.props.attributes.uniqueId):(this.props.setAttributes({uniqueId:e}),V.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:"render",value:function(){var e,t=this,a=this.props,n=a.attributes,i=a.setAttributes,r=this.state,o=r.selectedDevice,w=r.fontSizePlaceholder,v=n.uniqueId,C=n.elementId,B=n.cssClasses,R=n.content,P=n.element,U=n.alignment,V=n.alignmentTablet,G=n.alignmentMobile,q=n.backgroundColor,W=n.backgroundColorOpacity,Z=n.textColor,K=n.linkColor,J=n.linkColorHover,Y=n.borderColor,Q=n.borderColorOpacity,X=n.highlightTextColor,$=n.fontFamily,ee=n.googleFont,te=n.googleFontVariants,ae=n.marginTop,le=n.marginRight,ne=n.marginBottom,ie=n.marginLeft,re=n.icon,oe=n.iconColor,ce=n.iconColorOpacity,se=n.iconLocation,ge=n.iconLocationTablet,ue=n.iconLocationMobile,pe=n.iconVerticalAlignment,be=n.iconVerticalAlignmentTablet,de=n.iconVerticalAlignmentMobile,fe=n.iconSize,me=n.iconSizeTablet,he=n.iconSizeMobile,ke=n.iconSizeUnit,we=n.inlineWidth,ye=n.inlineWidthTablet,ve=n.inlineWidthMobile,Ce=n.removeText,Se=n.ariaLabel,Be="";te&&(Be=":"+te);var Ee=[{name:_x("Pixel","A size unit for CSS markup","generateblocks"),unitValue:"px"},{name:_x("Em","A size unit for CSS markup","generateblocks"),unitValue:"em"}],Te="";Te=me||0===me?me:fe||0===fe?fe:"";var Oe={id:C||void 0,className:c()((e={"gb-headline":!0},l(e,"gb-headline-"+v,!0),l(e,""+B,""!==B),e))};return Oe=H("generateblocks.frontend.htmlAttributes",Oe,"generateblocks/headline",n),wp.element.createElement(x,null,wp.element.createElement(A,null,wp.element.createElement(T,null,wp.element.createElement(z,{icon:Object(d.a)("paragraph"),label:__("Element","generateblocks"),controls:[{title:"paragraph",onClick:function(){i({element:"p"}),ae||le||ne||ie||i({marginUnit:"em"})}},{title:"h1",onClick:function(){i({element:"h1"}),ae||le||ne||ie||i({marginUnit:generateBlocksDefaults.headline.marginUnit})}},{title:"h2",onClick:function(){i({element:"h2"}),ae||le||ne||ie||i({marginUnit:generateBlocksDefaults.headline.marginUnit})}},{title:"h3",onClick:function(){i({element:"h3"}),ae||le||ne||ie||i({marginUnit:generateBlocksDefaults.headline.marginUnit})}},{title:"h4",onClick:function(){i({element:"h4"}),ae||le||ne||ie||i({marginUnit:generateBlocksDefaults.headline.marginUnit})}}]})),!we&&wp.element.createElement(F,{isCollapsed:!1,value:U,onChange:function(e){i({alignment:e})}})),wp.element.createElement(j,null,wp.element.createElement(b.a,y({},this.props,{selectedDevice:Object(f.a)(o),onClick:function(e){window.localStorage.setItem("generateblocksSelectedDevice",e),t.setState({selectedDevice:e})}})),wp.element.createElement(k.a,y({},this.props,{id:"headlineElement",state:this.state,showPanel:"desktop"===Object(f.a)(o)&&!Ce}),wp.element.createElement(O,{label:__("Element","generateblocks"),value:P,options:[{label:"paragraph",value:"p"},{label:"h1",value:"h1"},{label:"h2",value:"h2"},{label:"h3",value:"h3"},{label:"h4",value:"h4"},{label:"h5",value:"h5"},{label:"h6",value:"h6"}],onChange:function(e){i({element:e}),ae||le||ne||ie||i("p"===P?{marginUnit:"em"}:{marginUnit:generateBlocksDefaults.headline.marginUnit})}}),H("generateblocks.editor.controls","","headlineElement",this.props,this.state)),wp.element.createElement(k.a,y({},this.props,{title:__("Typography","generateblocks"),initialOpen:!1,icon:Object(d.a)("typography"),className:"gblocks-panel-label",id:"headlineTypography",state:this.state,showPanel:!Ce||!1}),"desktop"===Object(f.a)(o)&&wp.element.createElement(x,null,!we&&wp.element.createElement(F,{isCollapsed:!1,value:U,onChange:function(e){i({alignment:e})}}),wp.element.createElement(u.a,y({},this.props,{showFontFamily:!0,showFontWeight:!0,showTextTransform:!0,showFontSize:!0,showLineHeight:!0,showLetterSpacing:!0,fontSizePlaceholder:w,defaultFontSize:generateBlocksDefaults.headline.fontSize,defaultFontSizeUnit:generateBlocksDefaults.headline.fontSizeUnit,defaultLineHeight:generateBlocksDefaults.headline.lineHeight,defaultLineHeightUnit:generateBlocksDefaults.headline.lineHeightUnit,defaultLetterSpacing:generateBlocksDefaults.headline.letterSpacing}))),"tablet"===Object(f.a)(o)&&wp.element.createElement(x,null,!ye&&wp.element.createElement(F,{isCollapsed:!1,value:V,onChange:function(e){i({alignmentTablet:e})}}),wp.element.createElement(u.a,y({},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"===Object(f.a)(o)&&wp.element.createElement(x,null,!ve&&wp.element.createElement(F,{isCollapsed:!1,value:G,onChange:function(e){i({alignmentMobile:e})}}),wp.element.createElement(u.a,y({},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}))),H("generateblocks.editor.controls","","headlineTypography",this.props,this.state)),wp.element.createElement(k.a,y({},this.props,{title:__("Spacing","generateblocks"),initialOpen:!1,icon:Object(d.a)("spacing"),className:"gblocks-panel-label",id:"headlineSpacing",state:this.state}),"desktop"===Object(f.a)(o)&&wp.element.createElement(x,null,wp.element.createElement(M,{label:__("Inline Width","generateblocks"),checked:!!we,onChange:function(e){i({inlineWidth:e})}}),wp.element.createElement(p.a,y({},this.props,{device:Object(f.a)(o),type:"padding",label:__("Padding","generateblocks"),attrTop:"paddingTop",attrRight:"paddingRight",attrBottom:"paddingBottom",attrLeft:"paddingLeft",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.headline})),wp.element.createElement(p.a,y({},this.props,{device:Object(f.a)(o),type:"margin",block:"headline",label:__("Margin","generateblocks"),attrTop:"marginTop",attrRight:"marginRight",attrBottom:"marginBottom",attrLeft:"marginLeft",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.headline})),wp.element.createElement(p.a,y({},this.props,{device:Object(f.a)(o),type:"padding",label:__("Border Size","generateblocks"),attrTop:"borderSizeTop",attrRight:"borderSizeRight",attrBottom:"borderSizeBottom",attrLeft:"borderSizeLeft",attrSyncUnits:"borderSizeSyncUnits",displayUnit:"px",defaults:generateBlocksDefaults.headline}))),"tablet"===Object(f.a)(o)&&wp.element.createElement(x,null,wp.element.createElement(M,{label:__("Inline Width","generateblocks"),checked:!!ye,onChange:function(e){i({inlineWidthTablet:e})}}),wp.element.createElement(p.a,y({},this.props,{device:Object(f.a)(o),type:"padding",label:__("Padding","generateblocks"),attrTop:"paddingTopTablet",attrRight:"paddingRightTablet",attrBottom:"paddingBottomTablet",attrLeft:"paddingLeftTablet",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.headline})),wp.element.createElement(p.a,y({},this.props,{device:Object(f.a)(o),type:"margin",block:"headline",label:__("Margin","generateblocks"),attrTop:"marginTopTablet",attrRight:"marginRightTablet",attrBottom:"marginBottomTablet",attrLeft:"marginLeftTablet",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.headline})),wp.element.createElement(p.a,y({},this.props,{device:Object(f.a)(o),type:"padding",label:__("Border Size","generateblocks"),attrTop:"borderSizeTopTablet",attrRight:"borderSizeRightTablet",attrBottom:"borderSizeBottomTablet",attrLeft:"borderSizeLeftTablet",attrSyncUnits:"borderSizeSyncUnits",displayUnit:"px",defaults:generateBlocksDefaults.headline}))),"mobile"===Object(f.a)(o)&&wp.element.createElement(x,null,wp.element.createElement(M,{label:__("Inline Width","generateblocks"),checked:!!ve,onChange:function(e){i({inlineWidthMobile:e})}}),wp.element.createElement(p.a,y({},this.props,{device:Object(f.a)(o),type:"padding",label:__("Padding","generateblocks"),attrTop:"paddingTopMobile",attrRight:"paddingRightMobile",attrBottom:"paddingBottomMobile",attrLeft:"paddingLeftMobile",attrUnit:"paddingUnit",attrSyncUnits:"paddingSyncUnits",defaults:generateBlocksDefaults.headline})),wp.element.createElement(p.a,y({},this.props,{device:Object(f.a)(o),type:"margin",block:"headline",label:__("Margin","generateblocks"),attrTop:"marginTopMobile",attrRight:"marginRightMobile",attrBottom:"marginBottomMobile",attrLeft:"marginLeftMobile",attrUnit:"marginUnit",attrSyncUnits:"marginSyncUnits",defaults:generateBlocksDefaults.headline})),wp.element.createElement(p.a,y({},this.props,{device:Object(f.a)(o),type:"padding",label:__("Border Size","generateblocks"),attrTop:"borderSizeTopMobile",attrRight:"borderSizeRightMobile",attrBottom:"borderSizeBottomMobile",attrLeft:"borderSizeLeftMobile",attrSyncUnits:"borderSizeSyncUnits",displayUnit:"px",defaults:generateBlocksDefaults.headline}))),H("generateblocks.editor.controls","","headlineSpacing",this.props,this.state)),wp.element.createElement(k.a,y({},this.props,{title:__("Colors","generateblocks"),initialOpen:!1,icon:Object(d.a)("colors"),className:"gblocks-panel-label",id:"headlineColors",state:this.state,showPanel:"desktop"===Object(f.a)(o)||!1}),wp.element.createElement(s.a,{label:__("Background Color","generateblocks"),value:q,alpha:!0,valueOpacity:W,attrOpacity:"backgroundColorOpacity",onChange:function(e){return i({backgroundColor:e})},onOpacityChange:function(e){return i({backgroundColorOpacity:e})}}),wp.element.createElement(s.a,{label:__("Text Color","generateblocks"),value:Z,alpha:!1,onChange:function(e){return i({textColor:e})}}),wp.element.createElement(s.a,{label:__("Link Color","generateblocks"),value:K,alpha:!1,onChange:function(e){return i({linkColor:e})}}),wp.element.createElement(s.a,{label:__("Link Color Hover","generateblocks"),value:J,alpha:!1,onChange:function(e){return i({linkColorHover:e})}}),wp.element.createElement(s.a,{label:__("Border Color","generateblocks"),value:Y,alpha:!0,valueOpacity:Q,attrOpacity:"borderColorOpacity",onChange:function(e){return i({borderColor:e})},onOpacityChange:function(e){return i({borderColorOpacity:e})}}),re&&wp.element.createElement(s.a,{label:__("Icon Color","generateblocks"),value:oe,alpha:!0,valueOpacity:ce,attrOpacity:"iconColorOpacity",onChange:function(e){return i({iconColor:e})},onOpacityChange:function(e){return i({iconColorOpacity:e})}}),wp.element.createElement(s.a,{label:__("Highlight Text","generateblocks"),value:X,alpha:!1,onChange:function(e){return i({highlightTextColor:e})}})),wp.element.createElement(k.a,y({},this.props,{title:__("Icon","generateblocks"),initialOpen:!1,icon:Object(d.a)("icons"),className:"gblocks-panel-label",id:"headlineIcon",state:this.state,showPanel:!("desktop"!==Object(f.a)(o)&&!re)}),"desktop"===Object(f.a)(o)&&wp.element.createElement(g.a,y({},this.props,{attrIcon:"icon",attrRemoveText:"removeText",attrAriaLabel:"ariaLabel"})),"desktop"===Object(f.a)(o)&&!!re&&wp.element.createElement(x,null,!Ce&&wp.element.createElement(x,null,wp.element.createElement(O,{label:__("Icon Location","generateblocks"),value:se,options:[{label:__("Inline","generateblocks"),value:"inline"},{label:__("Above","generateblocks"),value:"above"}],onChange:function(e){i({iconLocation:e,iconPaddingRight:"inline"===e?"0.5":"",iconPaddingBottom:"above"===e?"0.5":""})}}),"inline"===se&&wp.element.createElement(O,{label:__("Icon Alignment","generateblocks"),value:pe,options:[{label:__("Top","generateblocks"),value:"top"},{label:__("Center","generateblocks"),value:"center"},{label:__("Bottom","generateblocks"),value:"bottom"}],onChange:function(e){i({iconVerticalAlignment:e})}}),wp.element.createElement(p.a,y({},this.props,{device:Object(f.a)(o),type:"padding",label:__("Padding","generateblocks"),attrTop:"iconPaddingTop",attrRight:"iconPaddingRight",attrBottom:"iconPaddingBottom",attrLeft:"iconPaddingLeft",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.headline}))),wp.element.createElement("div",{className:"components-gblocks-typography-control__header"},wp.element.createElement("div",{className:"components-gblocks-typography-control__label components-base-control__label"},__("Icon Size","generateblocks")),wp.element.createElement("div",{className:"components-gblocks-control__units"},wp.element.createElement(L,{className:"components-gblocks-typography-control__units","aria-label":__("Select Units","generateblocks")},Ee.map(function(e){return wp.element.createElement(D,{text:S(__("%s Units","generateblocks"),e.name),key:e.unitValue},wp.element.createElement(_,{key:e.unitValue,className:"components-gblocks-typography-control__units--"+e.name,isSmall:!0,isPrimary:ke===e.unitValue,"aria-pressed":ke===e.unitValue,"aria-label":S(__("%s Units","generateblocks"),e.name),onClick:function(){return i({iconSizeUnit:e.unitValue})}},e.unitValue))})))),wp.element.createElement("div",{className:"components-base-control components-gblocks-typography-control__inputs"},wp.element.createElement(E,{type:"number",value:fe||0===fe?fe:"",step:"em"===ke?.1:1,onChange:function(e){i({iconSize:e})},onBlur:function(){i({iconSize:parseFloat(fe)})},onClick:function(e){e.currentTarget.focus()}}),wp.element.createElement(_,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){i({iconSize:generateBlocksDefaults.headline.iconSize})}},__("Reset","generateblocks")))),"tablet"===Object(f.a)(o)&&!!re&&wp.element.createElement(x,null,!Ce&&wp.element.createElement(x,null,wp.element.createElement(O,{label:__("Icon Location","generateblocks"),value:ge,options:[{label:__("Inherit","generateblocks"),value:""},{label:__("Inline","generateblocks"),value:"inline"},{label:__("Above","generateblocks"),value:"above"}],onChange:function(e){i({iconLocationTablet:e,iconPaddingRightTablet:"inline"===e?"0.5":"",iconPaddingBottomTablet:"above"===e?"0.5":""})}}),"inline"===ge&&wp.element.createElement(O,{label:__("Icon Alignment","generateblocks"),value:be,options:[{label:__("Top","generateblocks"),value:"top"},{label:__("Center","generateblocks"),value:"center"},{label:__("Bottom","generateblocks"),value:"bottom"}],onChange:function(e){i({iconVerticalAlignmentTablet:e})}}),wp.element.createElement(p.a,y({},this.props,{device:Object(f.a)(o),type:"padding",label:__("Padding","generateblocks"),attrTop:"iconPaddingTopTablet",attrRight:"iconPaddingRightTablet",attrBottom:"iconPaddingBottomTablet",attrLeft:"iconPaddingLeftTablet",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.headline}))),wp.element.createElement("div",{className:"components-gblocks-typography-control__header"},wp.element.createElement("div",{className:"components-gblocks-typography-control__label components-base-control__label"},__("Icon Size","generateblocks")),wp.element.createElement("div",{className:"components-gblocks-control__units"},wp.element.createElement(L,{className:"components-gblocks-typography-control__units","aria-label":__("Select Units","generateblocks")},Ee.map(function(e){return wp.element.createElement(D,{text:S(__("%s Units","generateblocks"),e.name),key:e.unitValue},wp.element.createElement(_,{key:e.unitValue,className:"components-gblocks-typography-control__units--"+e.name,isSmall:!0,isPrimary:ke===e.unitValue,"aria-pressed":ke===e.unitValue,"aria-label":S(__("%s Units","generateblocks"),e.name),onClick:function(){return i({iconSizeUnit:e.unitValue})}},e.unitValue))})))),wp.element.createElement("div",{className:"components-base-control components-gblocks-typography-control__inputs"},wp.element.createElement(E,{type:"number",value:me||0===me?me:"",step:"em"===ke?.1:1,placeholder:fe||0===fe?fe:"",onChange:function(e){i({iconSizeTablet:e})},onBlur:function(){i({iconSizeTablet:parseFloat(me)})},onClick:function(e){e.currentTarget.focus()}}),wp.element.createElement(_,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){i({iconSizeTablet:generateBlocksDefaults.headline.iconSizeTablet})}},__("Reset","generateblocks")))),"mobile"===Object(f.a)(o)&&!!re&&wp.element.createElement(x,null,!Ce&&wp.element.createElement(x,null,wp.element.createElement(O,{label:__("Icon Location","generateblocks"),value:ue,options:[{label:__("Inherit","generateblocks"),value:""},{label:__("Inline","generateblocks"),value:"inline"},{label:__("Above","generateblocks"),value:"above"}],onChange:function(e){i({iconLocationMobile:e,iconPaddingRightMobile:"inline"===e?"0.5":"",iconPaddingBottomMobile:"above"===e?"0.5":""})}}),"inline"===ue&&wp.element.createElement(O,{label:__("Icon Alignment","generateblocks"),value:de,options:[{label:__("Top","generateblocks"),value:"top"},{label:__("Center","generateblocks"),value:"center"},{label:__("Bottom","generateblocks"),value:"bottom"}],onChange:function(e){i({iconVerticalAlignmentMobile:e})}}),wp.element.createElement(p.a,y({},this.props,{device:Object(f.a)(o),type:"padding",label:__("Padding","generateblocks"),attrTop:"iconPaddingTopMobile",attrRight:"iconPaddingRightMobile",attrBottom:"iconPaddingBottomMobile",attrLeft:"iconPaddingLeftMobile",attrUnit:"iconPaddingUnit",attrSyncUnits:"iconPaddingSyncUnits",defaults:generateBlocksDefaults.headline}))),wp.element.createElement("div",{className:"components-gblocks-typography-control__header"},wp.element.createElement("div",{className:"components-gblocks-typography-control__label components-base-control__label"},__("Icon Size","generateblocks")),wp.element.createElement("div",{className:"components-gblocks-control__units"},wp.element.createElement(L,{className:"components-gblocks-typography-control__units","aria-label":__("Select Units","generateblocks")},Ee.map(function(e){return wp.element.createElement(D,{text:S(__("%s Units","generateblocks"),e.name),key:e.unitValue},wp.element.createElement(_,{key:e.unitValue,className:"components-gblocks-typography-control__units--"+e.name,isSmall:!0,isPrimary:ke===e.unitValue,"aria-pressed":ke===e.unitValue,"aria-label":S(__("%s Units","generateblocks"),e.name),onClick:function(){return i({iconSizeUnit:e.unitValue})}},e.unitValue))})))),wp.element.createElement("div",{className:"components-base-control components-gblocks-typography-control__inputs"},wp.element.createElement(E,{type:"number",value:he||0===he?he:"",step:"em"===ke?.1:1,placeholder:Te,onChange:function(e){i({iconSizeMobile:e})},onBlur:function(){i({iconSizeMobile:parseFloat(he)})},onClick:function(e){e.currentTarget.focus()}}),wp.element.createElement(_,{isSmall:!0,isSecondary:!0,className:"components-gblocks-default-number",onClick:function(){i({iconSizeMobile:generateBlocksDefaults.headline.iconSizeMobile})}},__("Reset","generateblocks")))),H("generateblocks.editor.controls","","headlineIcon",this.props,this.state)),wp.element.createElement(k.a,y({},this.props,{title:__("Advanced","generateblocks"),initialOpen:!1,icon:Object(d.a)("advanced"),className:"gblocks-panel-label",id:"headlineAdvanced",state:this.state,showPanel:"desktop"===Object(f.a)(o)||!1}),wp.element.createElement(E,{label:__("Element ID","generateblocks"),value:C,onChange:function(e){var t=e.replace(I,"-");i({elementId:t})}}),wp.element.createElement(E,{label:__("CSS Classes","generateblocks"),value:B,onChange:function(e){i({cssClasses:e})}}),H("generateblocks.editor.controls","","headlineAdvanced",this.props,this.state)),wp.element.createElement(k.a,y({},this.props,{title:__("Documentation","generateblocks"),icon:Object(d.a)("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:"headlineDocumentation",state:this.state}),wp.element.createElement("p",null,__("Need help with this block?","generateblocks")),wp.element.createElement("a",{href:"https://docs.generateblocks.com/collection/headline/",target:"_blank",rel:"noreferrer noopener"},__("Visit our documentation","generateblocks")),H("generateblocks.editor.controls","","headlineDocumentation",this.props,this.state))),wp.element.createElement(h.a,this.props),$&&ee&&wp.element.createElement("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family="+$.replace(/ /g,"+")+Be}),re?wp.element.createElement("div",{className:c()(l({"gb-headline-wrapper":!0},"gb-headline-wrapper-"+v,!0))},re&&wp.element.createElement("span",{className:"gb-icon","aria-label":Ce&&Se?Se:void 0,dangerouslySetInnerHTML:{__html:Object(m.a)(re)}}),!Ce&&wp.element.createElement(N,y({tagName:P,value:R,onChange:function(e){return i({content:e})},placeholder:__("Write headline\u2026","generateblocks"),keepPlaceholderOnFocus:!0},Oe))):wp.element.createElement(N,y({tagName:P,value:R,onChange:function(e){return i({content:e})},placeholder:__("Write headline\u2026","generateblocks"),keepPlaceholderOnFocus:!0},Oe)))}}]),t}(P);t.a=G},function(e,t,a){"use strict";function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var r=a(4),o=a(15),c=a(8),s=a(11),g=a(6),u=function(){function e(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)}}return function(t,a,l){return a&&e(t.prototype,a),l&&e(t,l),t}}(),p=wp.element.Component,b=wp.hooks.applyFilters,d=function(e){function t(){return l(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,a=e.clientId,l=t.uniqueId,n=t.element,i=t.alignment,u=t.backgroundColor,p=t.backgroundColorOpacity,d=t.textColor,f=t.linkColor,m=t.borderColor,h=t.borderColorOpacity,k=t.highlightTextColor,w=t.fontFamily,y=t.fontFamilyFallback,v=t.fontWeight,C=t.fontSize,S=t.fontSizeUnit,B=t.textTransform,E=t.lineHeight,T=t.lineHeightUnit,O=t.letterSpacing,z=t.marginTop,M=t.marginRight,D=t.marginBottom,_=t.marginLeft,L=t.marginUnit,R=t.paddingTop,x=t.paddingRight,P=t.paddingBottom,U=t.paddingLeft,j=t.paddingUnit,N=t.borderSizeTop,A=t.borderSizeRight,F=t.borderSizeBottom,H=t.borderSizeLeft,I=t.icon,V=t.iconColor,G=t.iconColorOpacity,q=t.iconLocation,W=t.iconVerticalAlignment,Z=t.iconPaddingTop,K=t.iconPaddingRight,J=t.iconPaddingBottom,Y=t.iconPaddingLeft,Q=t.iconPaddingUnit,X=t.iconSize,$=t.iconSizeUnit,ee=t.inlineWidth,te=t.removeText,ae="",le="",ne="",ie="inline-block";w&&y&&(ae=", "+y),D?le=D+L:"undefined"===typeof generateBlocksStyling.headline||te||"undefined"===typeof generateBlocksStyling.headline[t.element].marginBottom||isNaN(generateBlocksStyling.headline[t.element].marginBottom)||(le=generateBlocksStyling.headline[n].marginBottom+generateBlocksStyling.headline[n].marginUnit),C?ne=C+S:"undefined"===typeof generateBlocksStyling.headline||te||"undefined"!==typeof generateBlocksStyling.headline[t.element].fontSize&&generateBlocksStyling.headline[t.element].fontSize&&(ne=generateBlocksStyling.headline[n].fontSize+generateBlocksStyling.headline[n].fontSizeUnit);var re=[];re[".editor-styles-wrapper .gb-headline-"+l]=[{color:d,"font-family":w+ae,"font-weight":v,"text-transform":B,"text-align":i,"font-size":ne,"line-height":Object(c.a)(E,T),"letter-spacing":Object(c.a)(O,"em")}],re[".editor-styles-wrapper .gb-container .gb-headline-"+l]=[{color:d}],re[".gb-headline-wrapper-"+l]=[{"flex-direction":!(!I||"above"!==q)&&"column","justify-content":Object(o.a)(i),"text-align":i,"align-items":"inline"===q?Object(o.a)(W):Object(o.a)(i),"font-size":ne}];var oe=".editor-styles-wrapper .gb-headline-"+l;return I&&(oe=".gb-headline-wrapper-"+l,ie="inline-flex"),re[oe].push({"background-color":Object(g.a)(u,p),color:d,display:!!ee&&ie,margin:Object(s.a)(z,M,le,_,L)+" !important","margin-bottom":le+" !important",padding:Object(s.a)(R,x,P,U,j)}),(N||A||F||H)&&re[oe].push({"border-width":Object(s.a)(N,A,F,H,"px"),"border-style":"solid","border-color":Object(g.a)(m,h)}),re[".editor-styles-wrapper .gb-headline-"+l+" a"]=[{color:f}],re[".gb-headline-wrapper-"+l+" .gb-icon"]=[{padding:!te&&Object(s.a)(Z,K,J,Y,Q),"align-self":!(!I||"above"!==q)&&Object(o.a)(i),color:Object(g.a)(V,G),display:!(!I||"above"!==q)&&"inline"}],re[".gb-headline-wrapper-"+l+" .gb-icon svg"]=[{width:Object(c.a)(X,$),height:Object(c.a)(X,$)}],re[".gb-headline-"+l+" .gb-highlight"]=[{color:k}],re["#block-"+a]=[{display:!!ee&&"inline-flex"}],re=b("generateblocks.editor.desktopCSS",re,this.props,"headline"),wp.element.createElement("style",null,Object(r.a)(re))}}]),t}(p);t.a=d},function(e,t){var __=wp.i18n.__,a=wp.element.Fragment,l=wp.richText,n=l.toggleFormat,i=l.registerFormatType,r=wp.blockEditor,o=r.RichTextToolbarButton,c=r.RichTextShortcut,s=wp.data.withSelect,g=wp.compose.ifCondition,u=wp.compose.compose,p=wp.element.createElement("svg",{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},wp.element.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"})),b="generateblocks/mark",d=function(e){var t=function(){return e.onChange(n(e.value,{type:b}))};return wp.element.createElement(a,null,wp.element.createElement(c,{type:"primary",character:"m",onUse:t}),wp.element.createElement(o,{icon:p,title:__("Highlight","generateblocks"),onClick:t,isActive:e.isActive,shortcutType:"access",shortcutCharacter:"m",className:"toolbar-button-with-text toolbar-button__"+b}))},f=u(s(function(e){return{selectedBlock:e("core/block-editor").getSelectedBlock()}}),g(function(e){return e.selectedBlock&&"generateblocks/headline"===e.selectedBlock.name}))(d),m={title:__("Highlight","generateblocks"),tagName:"mark",className:"gb-highlight",edit:f};i(b,m)},function(e,t,a){"use strict";var l=wp.blocks.createBlock,n={from:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return l("generateblocks/headline",{content:t})}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.content;return l("generateblocks/headline",{content:t})}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return l("core/paragraph",{content:t})}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.content;return l("core/heading",{content:t})}}]};t.a=n},function(e,t,a){"use strict";var l=a(17),n=a(18),i=[{attributes:Object.assign({},n.a,{element:{type:"string",default:"p"}}),save:l.a}];t.a=i},function(e,t,a){"use strict";var l=a(68);a.n(l)},function(e,t){}]);
|
|
dist/blocks.css
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.gb-grid-wrapper{position:relative;display:block;margin-right:0;margin-left:0}.gb-grid-wrapper>.block-editor-inner-blocks>.block-editor-block-list__layout{position:relative;display:flex;flex-wrap:wrap;justify-content:flex-start;margin-right:-15px;margin-left:-15px}.gb-grid-wrapper>.block-editor-inner-blocks>.block-editor-block-list__layout .editor-block-list__block{max-width:none;margin-right:0;margin-left:0}.block-editor-block-list__block[data-align="full"][data-type="generateblocks/grid"]>.block-editor-block-list__block-edit>div>.gb-grid-wrapper>.gb-grid-wrapper-button-select{right:1px}.block-editor-block-list__block[data-align="full"][data-type="generateblocks/grid"]>.block-editor-block-list__block-edit>div>.gb-grid-wrapper>.block-editor-inner-blocks>.block-editor-block-list__layout{margin-right:1px;margin-left:1px}.gb-grid-wrapper .editor-inserter-with-shortcuts{display:none}.gb-grid-wrapper .editor-block-list__empty-block-inserter,.gb-grid-wrapper .editor-default-block-appender .editor-inserter{right:10px;left:auto}.wp-block.gb-col{margin-top:29px}.components-placeholder.components-placeholder.gb-select-layout{padding:25px;background:#fff;color:#000}.components-placeholder.components-placeholder.gb-select-layout .components-placeholder__fieldset>em{margin-bottom:25px}.components-placeholder.components-placeholder.gb-select-layout .gb-grid-wrapper-layout-preview{display:flex;flex-wrap:wrap;justify-content:center;margin-right:-7px;margin-left:-7px}.components-placeholder.components-placeholder.gb-select-layout .gb-grid-wrapper-layout-preview .gb-grid-wrapper-layout-preview-btn{display:flex;flex-wrap:wrap;width:85px;padding:0;margin-right:7px;margin-bottom:14px;margin-left:7px;overflow:hidden;cursor:pointer;background:none;border:2px solid rgba(79,89,105,0.75);border-radius:4px;transition:.15s border-color, .15s background-color}.components-placeholder.components-placeholder.gb-select-layout .gb-grid-wrapper-layout-preview .gb-grid-wrapper-layout-preview-btn .gb-col{height:40px;border-right:2px solid rgba(79,89,105,0.75);transition:.15s border-color}.components-placeholder.components-placeholder.gb-select-layout .gb-grid-wrapper-layout-preview .gb-grid-wrapper-layout-preview-btn .gb-col:last-of-type{border-right:none}.components-placeholder.components-placeholder.gb-select-layout .gb-grid-wrapper-layout-preview .gb-grid-wrapper-layout-preview-btn:hover,.components-placeholder.components-placeholder.gb-select-layout .gb-grid-wrapper-layout-preview .gb-grid-wrapper-layout-preview-btn:focus{background-color:#fff;border-color:#4f5969}.components-placeholder.components-placeholder.gb-select-layout .gb-grid-wrapper-layout-preview .gb-grid-wrapper-layout-preview-btn:hover .gb-col,.components-placeholder.components-placeholder.gb-select-layout .gb-grid-wrapper-layout-preview .gb-grid-wrapper-layout-preview-btn:focus .gb-col{border-color:#4f5969}.components-placeholder.components-placeholder.gb-select-layout .components-button.is-primary{height:35px;padding:0 15px;margin-top:10px;font-size:14px}.gb-col{display:flex;flex:1;flex-direction:column;width:0}.gb-col>.block-editor-block-list__block-edit{display:flex;flex-basis:100%;margin-top:0 !important;margin-bottom:0 !important}.gb-col>.block-editor-block-list__block-edit>[data-block]{flex:100%}.gb-col>.block-editor-block-list__block-edit>.editor-block-contextual-toolbar+[data-block]{margin-left:30px}.gb-col.gb-col-25{flex-basis:25%}.gb-col.gb-col-75{flex-basis:75%}.gb-col.gb-col-50{flex-basis:50%}.gb-col.gb-col-60{flex-basis:60%}.gb-col.gb-col-20{flex-basis:20%}.gb-col.gb-col-16.66{flex-basis:16.6%}.gb-grid-appender button{background:#fff;box-shadow:inset 0 0 0 1px #555d66, inset 0 0 0 2px #fff;padding:20px;width:100%;justify-content:center;height:auto}.gb-grid-appender button.components-button svg{margin-right:0}.gb-select-layout .components-placeholder__label,.gb-select-layout .components-placeholder__instructions{margin-left:auto;margin-right:auto}.gb-select-layout iframe{display:flex;justify-content:center;align-items:center}.gb-select-layout .gb-grid-wrapper-layout-preview{max-width:500px}.gb-select-layout .components-placeholder__fieldset{display:flex;justify-content:center}.wp-block[data-type="generateblocks/grid"]{margin-top:0;margin-bottom:0}
|
2 |
+
|
3 |
+
.gb-responsive-tabs{position:-webkit-sticky;position:sticky;top:0;background:#fff;border-top:1px solid #e2e4e7;border-bottom:1px solid #e2e4e7;z-index:10;display:flex}.gb-responsive-tabs button{flex-grow:1;justify-content:center;padding:10px;height:unset;border-radius:unset;outline:0 !important}.gb-responsive-tabs button.is-pressed:not(:disabled),.gb-responsive-tabs button:focus:not(:disabled),.gb-responsive-tabs button:active:not(:disabled),.gb-responsive-tabs button:hover:not(:disabled){box-shadow:unset !important;background:#007cba !important;color:#fff !important}.block-editor-block-inspector .gb-responsive-tabs+.components-panel__body{border-top:0}
|
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 |
+
|
11 |
+
.components-gblocks-dimensions-control__inputs,.components-gblocks-dimensions-control__input-labels{display:flex}.components-gblocks-dimensions-control input[type="number"]{border-top-right-radius:0;border-bottom-right-radius:0;height:30px;margin:0 -1px 0 0;padding:5px;width:calc(25% - 5px)}.components-gblocks-dimensions-control input[type="number"]:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.components-gblocks-dimensions-control__input-labels>span{width:calc(25% - 5px);font-size:11px}.components-gblocks-dimensions-control__input-labels>span:last-child{width:30px}.components-gblocks-dimensions-control_sync.components-button{border-top-left-radius:0;border-bottom-left-radius:0;box-shadow:none;height:auto;justify-content:center;padding:0;text-align:center;text-shadow:none;width:30px}.components-gblocks-dimensions-control_sync.components-button:not(.is-primary){background:#fff;border:1px solid #8d96a0;color:#555d66}.components-gblocks-dimensions-control_sync.components-button svg{width:18px;height:18px;fill:currentColor}.components-gblocks-dimensions-control_sync.components-button:hover,.components-gblocks-dimensions-control_sync.components-button:focus{box-shadow:none !important}
|
12 |
+
|
13 |
+
.edit-post-settings-sidebar__panel-block .components-panel__body .components-base-control.gblocks-font-family-shortcuts{margin-bottom:2px}.components-gblocks-typography-control__header{display:flex;justify-content:space-between;margin-bottom:5px;align-items:center}.components-gblocks-typography-control__inputs+.components-gblocks-typography-control__header{margin-top:25px}.components-gblocks-typography-control__inputs{display:flex;justify-content:space-between}.components-gblocks-typography-control__inputs button.components-button{line-height:unset;height:unset}.components-gblocks-typography-control__inputs .components-base-control{margin-bottom:0}.edit-post-settings-sidebar__panel-block .components-panel__body .components-gblocks-typography-control__inputs .components-base-control,.components-gblocks-typography-control__inputs .components-base-control .components-base-control__field{margin-bottom:0}.components-gblocks-typography-weight-transform{display:flex;justify-content:space-between}.components-gblocks-typography-weight-transform>div{width:48%}.components-gblocks-typography-control__units>.components-button-group .components-button.is-button:first-child:last-child{border-radius:3px}.components-gblocks-typography-control__inputs button{margin-left:10px}.components-gblocks-typography-control__inputs .components-base-control{flex-grow:1}
|
14 |
+
|
15 |
+
.gblocks-component-gradient-control{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-top:8px}.gblocks-component-gradient-control .components-base-control{margin-bottom:0 !important}.gblocks-component-gradient-control .components-base-control .components-base-control__field{margin-bottom:0}.gblocks-component-gradient-control .gblocks-component-color-picker-wrapper .components-base-control__field{margin-top:0}.gblocks-component-gradient-stop-value{flex-grow:1;padding-left:10px}
|
16 |
+
|
17 |
+
.gb-button-wrapper{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:flex-start;clear:both}.gb-button-wrapper .block-editor-block-list__layout>.block-list-appender{display:none !important}.gb-button-wrapper .block-editor-block-list__layout>.block-list-appender:first-child{display:block !important}[data-type="generateblocks/button-container"].has-child-selected .gb-button-wrapper>.components-button,[data-type="generateblocks/button-container"].is-selected .gb-button-wrapper>.components-button{display:inline-flex}.gblocks-add-new-button svg{margin-right:0 !important;margin-left:0 !important}.gblocks-button-container-appender{-ms-grid-row-align:center;align-self:center}.wp-block[data-type="generateblocks/button-container"]{margin-top:0;margin-bottom:0}
|
18 |
+
|
19 |
+
.gb-button-wrapper{position:relative;margin-top:0}.gb-button-wrapper .gb-button{display:flex;justify-content:center;align-items:center;text-align:center;padding:unset;line-height:unset;text-decoration:none !important;border:none;transition:.2s background-color ease-in-out, .2s color ease-in-out, .2s border-color ease-in-out, .2s opacity ease-in-out, .2s box-shadow ease-in-out}.gb-button-wrapper .gb-button .editor-rich-text__tinymce{line-height:1em}.gb-button-wrapper>.block-editor-inner-blocks>.block-editor-block-list__layout{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:flex-start;margin-right:0}.gb-button-wrapper>.block-editor-inner-blocks>.block-editor-block-list__layout>div{width:auto}.gb-button-wrapper.gb-button-wrapper-align-right>.block-editor-inner-blocks>.block-editor-block-list__layout{justify-content:flex-end}.gb-button-wrapper.gb-button-wrapper-align-center>.block-editor-inner-blocks>.block-editor-block-list__layout{justify-content:center}.gb-button-wrapper>.block-editor-inner-blocks>.block-editor-block-list__layout>*>.block-editor-block-list__block-edit{margin-top:0;margin-bottom:0}.gb-button-wrapper .blocks-format-toolbar__link-modal{top:calc(100% + 2px);left:50%;transform:translateX(-50%);z-index:2}.gb-button-wrapper .blocks-link-url__suggestions{right:-35px}.gb-button-wrapper .blocks-rich-text__tinymce{cursor:text}.gb-button-wrapper .components-button.gblocks-add-button{background:#fff;-ms-grid-row-align:center;align-self:center}.gb-button-wrapper .components-button.gblocks-add-button svg{margin-right:0}.gb-button .gb-icon{-ms-grid-row-align:center;align-self:center}.using-theme-colors{background-color:#e9f5f9;border-left:4px solid #409ecd;padding:10px}.using-theme-colors p:last-child{margin-bottom:0}.button.gb-button{font-size:inherit;min-height:auto;border-radius:unset}[data-type="generateblocks/button-container"] .gb-button-wrapper>.block-editor-inner-blocks>.block-editor-block-list__layout{margin-left:0;margin-right:0}[data-type="generateblocks/button-container"] .gb-button-wrapper>.block-editor-inner-blocks>.block-editor-block-list__layout>.wp-block{width:auto;padding-left:0;padding-right:0;margin-left:0;margin-right:0}[data-type="generateblocks/button-container"] .gb-button-wrapper>.block-editor-inner-blocks>.block-editor-block-list__layout>.wp-block>.block-editor-block-list__block-edit{margin-left:0;margin-right:0}[data-type="generateblocks/button-container"] .gb-button-wrapper>.block-editor-inner-blocks>.block-editor-block-list__layout>.wp-block>.block-editor-block-list__block-edit::before{border-right:none;border-top:none;border-bottom:none}[data-type="generateblocks/button-container"] .gb-button-wrapper>.block-editor-inner-blocks>.block-editor-block-list__layout>.wp-block.is-hovered:not(.is-navigate-mode)>.block-editor-block-list__block-edit::before{box-shadow:none}[data-type="generateblocks/button-container"].is-hovered .gb-button-wrapper .block-editor-block-list__block-edit::before,[data-type="generateblocks/button-container"].is-selected .gb-button-wrapper .block-editor-block-list__block-edit::before,[data-type="generateblocks/button-container"].has-child-selected .gb-button-wrapper .block-editor-block-list__block-edit::before{border-color:transparent !important}[data-type="generateblocks/button-container"] .gb-button-wrapper>.block-editor-inner-blocks>.block-editor-block-list__layout>.wp-block>.block-editor-block-list__block-edit>[data-block]{margin-top:0;margin-bottom:0}[data-type="generateblocks/button-container"] .gb-button-wrapper .block-editor-block-list__insertion-point,[data-type="generateblocks/button-container"] .gb-button-wrapper .block-editor-block-list__breadcrumb{display:none}[data-type="generateblocks/button-container"]:not(.is-selected):not(.has-child-selected) .gb-button-wrapper{min-height:36px}.wp-block[data-type="generateblocks/button"]{margin-top:0;margin-bottom:0}
|
20 |
+
|
21 |
+
.gblocks-icon-chooser{display:flex;flex-wrap:wrap;list-style:none;margin-top:0;margin-left:-3px}.gblocks-icon-chooser li{display:block;margin:0 0 3px 3px;padding:0}.gblocks-icon-chooser li button.components-button{background:#fafafa;color:#000;height:30px;width:30px;border:0;border-radius:0;box-shadow:none;padding:8px;line-height:normal;font-size:15px;justify-content:center}.gblocks-icon-chooser li button.components-button span{line-height:0}.gblocks-icon-chooser li button.components-button:hover{background:#fff;box-shadow:none}.gblocks-icon-chooser li button.components-button svg{width:1em;height:1em}.gb-icon{display:inline-flex;line-height:0}.gb-icon svg{height:1em;width:1em;fill:currentColor}button.components-icon-picker-item{width:50px;height:50px;font-size:30px;line-height:50px;background:#efefef;cursor:pointer;border:1px solid #ddd;margin-bottom:10px}button.components-icon-picker-item svg{height:1em;width:1em}.components-icon-picker-item>span{display:flex;align-items:center;justify-content:center}.components-icon-picker-item:hover,.components-icon-picker-item:focus{background:#fafafa}.gb-svg-html .components-base-control{margin-bottom:0}.gb-icon-preview{font-size:25px;display:flex;align-items:center}.gb-icon-preview svg{margin-right:10px;width:1em;height:1em}.block-editor-block-inspector .gb-icon-chooser .components-panel__body{border-color:#ddd;margin-top:0}.block-editor-block-inspector .gb-icon-chooser .components-panel__body button.components-panel__body-toggle{background:#fafafa}.block-editor-block-inspector .gb-icon-chooser .components-panel__body.is-opened{background:#fafafa}.block-editor-block-inspector .gb-icon-chooser .components-panel__body:last-child{border-bottom:1px solid #ddd}
|
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 |
+
|
dist/blocks.editor.build.css
DELETED
@@ -1,13 +0,0 @@
|
|
1 |
-
.gb-grid-wrapper{position:relative;display:block;margin-right:0;margin-left:0}.gb-grid-wrapper>.block-editor-inner-blocks>.block-editor-block-list__layout{position:relative;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:start;justify-content:flex-start;margin-right:-15px;margin-left:-15px}.gb-grid-wrapper>.block-editor-inner-blocks>.block-editor-block-list__layout .editor-block-list__block{max-width:none;margin-right:0;margin-left:0}.block-editor-block-list__block[data-align="full"][data-type="generateblocks/grid"]>.block-editor-block-list__block-edit>div>.gb-grid-wrapper>.gb-grid-wrapper-button-select{right:1px}.block-editor-block-list__block[data-align="full"][data-type="generateblocks/grid"]>.block-editor-block-list__block-edit>div>.gb-grid-wrapper>.block-editor-inner-blocks>.block-editor-block-list__layout{margin-right:1px;margin-left:1px}.gb-grid-wrapper .editor-inserter-with-shortcuts{display:none}.gb-grid-wrapper .editor-block-list__empty-block-inserter,.gb-grid-wrapper .editor-default-block-appender .editor-inserter{right:10px;left:auto}.wp-block.gb-col{margin-top:29px}.components-placeholder.components-placeholder.gb-select-layout{padding:25px;background:#fff;color:#000}.components-placeholder.components-placeholder.gb-select-layout .components-placeholder__fieldset>em{margin-bottom:25px}.components-placeholder.components-placeholder.gb-select-layout .gb-grid-wrapper-layout-preview{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:center;justify-content:center;margin-right:-7px;margin-left:-7px}.components-placeholder.components-placeholder.gb-select-layout .gb-grid-wrapper-layout-preview .gb-grid-wrapper-layout-preview-btn{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;width:85px;padding:0;margin-right:7px;margin-bottom:14px;margin-left:7px;overflow:hidden;cursor:pointer;background:none;border:2px solid rgba(79,89,105,0.75);border-radius:4px;-webkit-transition:.15s border-color, .15s background-color;-o-transition:.15s border-color, .15s background-color;transition:.15s border-color, .15s background-color}.components-placeholder.components-placeholder.gb-select-layout .gb-grid-wrapper-layout-preview .gb-grid-wrapper-layout-preview-btn .gb-col{height:40px;border-right:2px solid rgba(79,89,105,0.75);-webkit-transition:.15s border-color;-o-transition:.15s border-color;transition:.15s border-color}.components-placeholder.components-placeholder.gb-select-layout .gb-grid-wrapper-layout-preview .gb-grid-wrapper-layout-preview-btn .gb-col:last-of-type{border-right:none}.components-placeholder.components-placeholder.gb-select-layout .gb-grid-wrapper-layout-preview .gb-grid-wrapper-layout-preview-btn:hover,.components-placeholder.components-placeholder.gb-select-layout .gb-grid-wrapper-layout-preview .gb-grid-wrapper-layout-preview-btn:focus{background-color:#fff;border-color:#4f5969}.components-placeholder.components-placeholder.gb-select-layout .gb-grid-wrapper-layout-preview .gb-grid-wrapper-layout-preview-btn:hover .gb-col,.components-placeholder.components-placeholder.gb-select-layout .gb-grid-wrapper-layout-preview .gb-grid-wrapper-layout-preview-btn:focus .gb-col{border-color:#4f5969}.components-placeholder.components-placeholder.gb-select-layout .components-button.is-primary{height:35px;padding:0 15px;margin-top:10px;font-size:14px}.gb-col{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column;width:0}.gb-col>.block-editor-block-list__block-edit{display:-ms-flexbox;display:flex;-ms-flex-preferred-size:100%;flex-basis:100%;margin-top:0 !important;margin-bottom:0 !important}.gb-col>.block-editor-block-list__block-edit>[data-block]{-ms-flex:100%;flex:100%}.gb-col>.block-editor-block-list__block-edit>.editor-block-contextual-toolbar+[data-block]{margin-left:30px}.gb-col.gb-col-25{-ms-flex-preferred-size:25%;flex-basis:25%}.gb-col.gb-col-75{-ms-flex-preferred-size:75%;flex-basis:75%}.gb-col.gb-col-50{-ms-flex-preferred-size:50%;flex-basis:50%}.gb-col.gb-col-60{-ms-flex-preferred-size:60%;flex-basis:60%}.gb-col.gb-col-20{-ms-flex-preferred-size:20%;flex-basis:20%}.gb-col.gb-col-16.66{-ms-flex-preferred-size:16.6%;flex-basis:16.6%}.gb-grid-appender button{background:#fff;-webkit-box-shadow:inset 0 0 0 1px #555d66, inset 0 0 0 2px #fff;box-shadow:inset 0 0 0 1px #555d66, inset 0 0 0 2px #fff;padding:20px;width:100%;-ms-flex-pack:center;justify-content:center;height:auto}.gb-grid-appender button.components-button svg{margin-right:0}.gb-select-layout .components-placeholder__label,.gb-select-layout .components-placeholder__instructions{margin-left:auto;margin-right:auto}.gb-select-layout iframe{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.gb-select-layout .gb-grid-wrapper-layout-preview{max-width:500px}.gb-select-layout .components-placeholder__fieldset{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}
|
2 |
-
.gb-responsive-tabs{position:-webkit-sticky;position:sticky;top:0;background:#fff;border-top:1px solid #e2e4e7;border-bottom:1px solid #e2e4e7;z-index:10;display:-ms-flexbox;display:flex}.gb-responsive-tabs button{-ms-flex-positive:1;flex-grow:1;-ms-flex-pack:center;justify-content:center;padding:10px;height:unset;border-radius:unset;outline:0 !important}.gb-responsive-tabs button.is-pressed:not(:disabled),.gb-responsive-tabs button:focus:not(:disabled),.gb-responsive-tabs button:active:not(:disabled),.gb-responsive-tabs button:hover:not(:disabled){-webkit-box-shadow:unset !important;box-shadow:unset !important;background:#007cba !important;color:#fff !important}.block-editor-block-inspector .gb-responsive-tabs+.components-panel__body{border-top:0}
|
3 |
-
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}.edit-bg-buttons{margin-top:10px;margin-bottom:10px}.edit-bg-buttons button.components-button{margin-bottom:10px}.additional-class-notice .components-notice{margin:0 0 10px}.widthButtons button{font-size:12px;-ms-flex:1;flex:1;-webkit-box-shadow:inset 0 0 0 1px #007cba;box-shadow:inset 0 0 0 1px #007cba;-ms-flex-pack:center;justify-content:center}.widthButtons{margin-bottom:10px;display:-ms-flexbox;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;-webkit-box-sizing:border-box;box-sizing:border-box}.gb-container .gb-inside-container{-webkit-box-sizing:content-box;box-sizing:content-box}.gb-container *:not(.gb-inside-container){-webkit-box-sizing:border-box;box-sizing:border-box}[data-type="generateblocks/container"] .block-editor-block-list__insertion-point,[data-type="generateblocks/grid"] .block-editor-block-list__insertion-point{display:none}.editor-styles-wrapper .gb-container [data-block]:not([data-type="core/paragraph"]),.editor-styles-wrapper .gb-grid-wrapper [data-block]:not([data-type="core/paragraph"]){margin-top:0;margin-bottom:0}
|
4 |
-
.gblocks-component-color-picker-wrapper .gblocks-component-color-picker-wrapper+.gblocks-component-color-picker-wrapper{margin-top:-5px}.gblocks-component-color-picker-wrapper>.components-base-control__field{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}.gblocks-component-color-picker-wrapper>.components-base-control__field .components-color-palette__item-wrapper{margin:0}.gblocks-component-color-picker-wrapper .components-base-control__label{cursor:pointer}.gblocks-component-color-picker .gblocks-component-color-picker-palette{margin:17px}.gblocks-component-color-picker .gblocks-component-color-picker-palette .components-circular-option-picker{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;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}.components-base-control.color-picker-clear{text-align:center;padding-bottom:5px}.gblocks-component-color-opacity{display:-ms-flexbox;display:flex;padding:0 16px}.gblocks-component-color-opacity .components-range-control{-ms-flex-positive:1;flex-grow:1;padding-left:5px}.gblocks-color-picker-container{padding:5px;border:1px solid transparent;margin-bottom:0 !important}.components-base-control.gblocks-color-picker-is-open{background:#ffffff;border:1px solid #dddddd;padding:5px;margin-bottom:24px !important}.components-base-control.gblocks-component-color-picker-wrapper{margin-bottom:0 !important}.gblocks-component-color-picker>.components-base-control:first-child{margin-bottom:0}.components-button.components-color-show-palette{margin-left:12px}.gblocks-color-controls{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;margin:0 16px 16px}.gblocks-color-picker-container .components-circular-option-picker__option,.gblocks-color-picker-container .components-circular-option-picker__option-wrapper:before,.gblocks-color-picker-container .components-circular-option-picker__option:after{border-radius:0}
|
5 |
-
.components-gblocks-dimensions-control__inputs,.components-gblocks-dimensions-control__input-labels{display:-ms-flexbox;display:flex}.components-gblocks-dimensions-control input[type="number"]{border-top-right-radius:0;border-bottom-right-radius:0;height:30px;margin:0 -1px 0 0;padding:5px;width:calc(25% - 5px)}.components-gblocks-dimensions-control input[type="number"]:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.components-gblocks-dimensions-control__input-labels>span{width:calc(25% - 5px);font-size:11px}.components-gblocks-dimensions-control__input-labels>span:last-child{width:30px}.components-gblocks-dimensions-control_sync.components-button{border-top-left-radius:0;border-bottom-left-radius:0;-webkit-box-shadow:none;box-shadow:none;height:auto;-ms-flex-pack:center;justify-content:center;padding:0;text-align:center;text-shadow:none;width:30px}.components-gblocks-dimensions-control_sync.components-button:not(.is-primary){background:#fff;border:1px solid #8d96a0;color:#555d66}.components-gblocks-dimensions-control_sync.components-button svg{width:18px;height:18px;fill:currentColor}.components-gblocks-dimensions-control_sync.components-button:hover,.components-gblocks-dimensions-control_sync.components-button:focus{-webkit-box-shadow:none !important;box-shadow:none !important}.components-gblocks-dimensions-control__header{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;margin-bottom:5px;-ms-flex-align:center;align-items:center}.components-gblocks-dimensions-control__inputs+.components-gblocks-dimensions-control__header{margin-top:25px}
|
6 |
-
.edit-post-settings-sidebar__panel-block .components-panel__body .components-base-control.gblocks-font-family-shortcuts{margin-bottom:2px}.components-gblocks-typography-control__header{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;margin-bottom:5px;-ms-flex-align:center;align-items:center}.components-gblocks-typography-control__inputs+.components-gblocks-typography-control__header{margin-top:25px}.components-gblocks-typography-control__inputs{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.components-gblocks-typography-control__inputs button.components-button{line-height:unset;height:unset}.components-gblocks-typography-control__inputs .components-base-control{margin-bottom:0}.edit-post-settings-sidebar__panel-block .components-panel__body .components-gblocks-typography-control__inputs .components-base-control,.components-gblocks-typography-control__inputs .components-base-control .components-base-control__field{margin-bottom:0}.components-gblocks-typography-weight-transform{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.components-gblocks-typography-weight-transform>div{width:48%}.components-gblocks-typography-control__units>.components-button-group .components-button.is-button:first-child:last-child{border-radius:3px}.components-gblocks-typography-control__inputs button{margin-left:10px}.components-gblocks-typography-control__inputs .components-base-control{-ms-flex-positive:1;flex-grow:1}
|
7 |
-
.gblocks-component-gradient-control{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-wrap:wrap;flex-wrap:wrap}.gblocks-component-gradient-control .components-base-control{margin-bottom:0 !important}.gblocks-component-gradient-control .components-base-control .components-base-control__field{margin-bottom:0}.gblocks-component-gradient-control .gblocks-component-color-picker-wrapper .components-base-control__field{margin-top:0}.gblocks-component-gradient-stop-value{-ms-flex-positive:1;flex-grow:1;padding-left:10px}
|
8 |
-
.gb-button-wrapper{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:start;align-items:flex-start;-ms-flex-pack:start;justify-content:flex-start;clear:both}.gb-button-wrapper .block-editor-block-list__layout>.block-list-appender{display:none !important}.gb-button-wrapper .block-editor-block-list__layout>.block-list-appender:first-child{display:block !important}[data-type="generateblocks/button-container"].has-child-selected .gb-button-wrapper>.components-button,[data-type="generateblocks/button-container"].is-selected .gb-button-wrapper>.components-button{display:-ms-inline-flexbox;display:inline-flex}.gblocks-add-new-button svg{margin-right:0 !important;margin-left:0 !important}.gblocks-button-container-appender{-ms-flex-item-align:center;align-self:center}
|
9 |
-
.gb-button-wrapper{position:relative;margin-top:0}.gb-button-wrapper .gb-button{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;text-align:center;padding:unset;line-height:unset;text-decoration:none !important;border:none;-webkit-transition:.2s background-color ease-in-out, .2s color ease-in-out, .2s border-color ease-in-out, .2s opacity ease-in-out, .2s box-shadow ease-in-out;-o-transition:.2s background-color ease-in-out, .2s color ease-in-out, .2s border-color ease-in-out, .2s opacity ease-in-out, .2s box-shadow ease-in-out;transition:.2s background-color ease-in-out, .2s color ease-in-out, .2s border-color ease-in-out, .2s opacity ease-in-out, .2s box-shadow ease-in-out}.gb-button-wrapper .gb-button .editor-rich-text__tinymce{line-height:1em}.gb-button-wrapper>.block-editor-inner-blocks>.block-editor-block-list__layout{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:start;align-items:flex-start;-ms-flex-pack:start;justify-content:flex-start;margin-right:0}.gb-button-wrapper>.block-editor-inner-blocks>.block-editor-block-list__layout>div{width:auto}.gb-button-wrapper.gb-button-wrapper-align-right>.block-editor-inner-blocks>.block-editor-block-list__layout{-ms-flex-pack:end;justify-content:flex-end}.gb-button-wrapper.gb-button-wrapper-align-center>.block-editor-inner-blocks>.block-editor-block-list__layout{-ms-flex-pack:center;justify-content:center}.gb-button-wrapper>.block-editor-inner-blocks>.block-editor-block-list__layout>*>.block-editor-block-list__block-edit{margin-top:0;margin-bottom:0}.gb-button-wrapper .blocks-format-toolbar__link-modal{top:calc(100% + 2px);left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);z-index:2}.gb-button-wrapper .blocks-link-url__suggestions{right:-35px}.gb-button-wrapper .blocks-rich-text__tinymce{cursor:text}.gb-button-wrapper .components-button.gblocks-add-button{background:#fff;-ms-flex-item-align:center;align-self:center}.gb-button-wrapper .components-button.gblocks-add-button svg{margin-right:0}.gb-button .gb-icon{-ms-flex-item-align:center;align-self:center}.using-theme-colors{background-color:#e9f5f9;border-left:4px solid #409ecd;padding:10px}.using-theme-colors p:last-child{margin-bottom:0}.button.gb-button{font-size:inherit;min-height:auto;border-radius:unset}[data-type="generateblocks/button-container"] .gb-button-wrapper>.block-editor-inner-blocks>.block-editor-block-list__layout{margin-left:0;margin-right:0}[data-type="generateblocks/button-container"] .gb-button-wrapper>.block-editor-inner-blocks>.block-editor-block-list__layout>.wp-block{width:auto;padding-left:0;padding-right:0}[data-type="generateblocks/button-container"] .gb-button-wrapper>.block-editor-inner-blocks>.block-editor-block-list__layout>.wp-block>.block-editor-block-list__block-edit{margin-left:0;margin-right:0}[data-type="generateblocks/button-container"] .gb-button-wrapper>.block-editor-inner-blocks>.block-editor-block-list__layout>.wp-block>.block-editor-block-list__block-edit::before{border-right:none;border-top:none;border-bottom:none}[data-type="generateblocks/button-container"] .gb-button-wrapper>.block-editor-inner-blocks>.block-editor-block-list__layout>.wp-block.is-hovered:not(.is-navigate-mode)>.block-editor-block-list__block-edit::before{-webkit-box-shadow:none;box-shadow:none}[data-type="generateblocks/button-container"].is-hovered .gb-button-wrapper .block-editor-block-list__block-edit::before,[data-type="generateblocks/button-container"].is-selected .gb-button-wrapper .block-editor-block-list__block-edit::before,[data-type="generateblocks/button-container"].has-child-selected .gb-button-wrapper .block-editor-block-list__block-edit::before{border-color:transparent !important}[data-type="generateblocks/button-container"] .gb-button-wrapper>.block-editor-inner-blocks>.block-editor-block-list__layout>.wp-block>.block-editor-block-list__block-edit>[data-block]{margin-top:0;margin-bottom:0}[data-type="generateblocks/button-container"] .gb-button-wrapper .block-editor-block-list__insertion-point,[data-type="generateblocks/button-container"] .gb-button-wrapper .block-editor-block-list__breadcrumb{display:none}[data-type="generateblocks/button-container"]:not(.is-selected):not(.has-child-selected) .gb-button-wrapper{min-height:36px}
|
10 |
-
.gblocks-icon-chooser{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;list-style:none;margin-top:0;margin-left:-3px}.gblocks-icon-chooser li{display:block;margin:0 0 3px 3px;padding:0}.gblocks-icon-chooser li button.components-button{background:#fafafa;color:#000;height:30px;width:30px;border:0;border-radius:0;-webkit-box-shadow:none;box-shadow:none;padding:8px;line-height:normal;font-size:15px;-ms-flex-pack:center;justify-content:center}.gblocks-icon-chooser li button.components-button span{line-height:0}.gblocks-icon-chooser li button.components-button:hover{background:#fff;-webkit-box-shadow:none;box-shadow:none}.gblocks-icon-chooser li button.components-button svg{width:1em;height:1em}.gb-icon{display:-ms-inline-flexbox;display:inline-flex;line-height:0}.gb-icon svg{height:1em;width:1em;fill:currentColor}button.components-icon-picker-item{width:50px;height:50px;font-size:30px;line-height:50px;background:#efefef;cursor:pointer;border:1px solid #ddd;margin-bottom:10px}button.components-icon-picker-item svg{height:1em;width:1em}.components-icon-picker-item>span{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.components-icon-picker-item:hover,.components-icon-picker-item:focus{background:#fafafa}.gb-svg-html .components-base-control{margin-bottom:0}.gb-icon-preview{font-size:25px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.gb-icon-preview svg{margin-right:10px;width:1em;height:1em}.block-editor-block-inspector .gb-icon-chooser .components-panel__body{border-color:#ddd;margin-top:0}.block-editor-block-inspector .gb-icon-chooser .components-panel__body button{background:#fafafa}.block-editor-block-inspector .gb-icon-chooser .components-panel__body.is-opened{background:#fafafa}.block-editor-block-inspector .gb-icon-chooser .components-panel__body:last-child{border-bottom:1px solid #ddd}
|
11 |
-
.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:-ms-flexbox;display:flex;-ms-flex-align:center;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"]::-webkit-input-placeholder{color:#222}.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;-webkit-box-shadow:0 3px 30px rgba(25,30,35,0.1);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%}
|
12 |
-
.gb-headline-wrapper{display:-ms-flexbox;display:flex}.editor-styles-wrapper .gb-headline{margin-top:0;margin-bottom:0}mark.gb-highlight{background:none;color:unset}
|
13 |
-
.gblocks-notice{margin-bottom:20px}.gblocks-panel-label .components-panel__body-toggle.components-button{display:-ms-flexbox;display:flex;-ms-flex-direction:row-reverse;flex-direction:row-reverse;-ms-flex-pack:end;justify-content:flex-end}.gblocks-panel-label svg.components-panel__icon{margin:0 10px 0 0}.components-gblocks-control__header{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;margin-bottom:5px;-ms-flex-align:center;align-items:center}.components-panel__body .components-gblocks-control__units .components-button{background:#fff;border-color:#e2e4e7;-webkit-box-shadow:none !important;box-shadow:none !important;color:#6c7781;font-size:10px;padding:0 5px;position:relative;text-align:center;text-shadow:none;border:1px solid}.components-panel__body .components-gblocks-control__units .components-button.is-primary{background:#0070a7;border-color:#0070a7;color:#fff;cursor:default;z-index:1}.gblocks-control-tabs .components-tab-panel__tabs{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;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;-ms-flex:1;flex:1;-ms-flex-pack:center;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;-webkit-box-shadow:0 0 0 !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}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dist/blocks.js
ADDED
@@ -0,0 +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:H(U("%s Units","generateblocks"),t),key:e},Object(l.createElement)(I,{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":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":Ft(Nt("%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:R,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(){""===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":Ft(Nt("%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: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.onChangeBottom(a):e.onReset("attrBottom")},onBlur:function(){""===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":Ft(Nt("%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: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.onChangeLeft(a):e.onReset("attrLeft")},onBlur:function(){""===a[u]&&""!==B[u]&&(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":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 |
+
go("Heading %s","generateblocks"),"1"),onClick:function(){n({element:"h1"})}},{isActive:"h2"===d,icon:Object(l.createElement)(oo,{level:"h2"}),title:uo(// translators: %s: heading level e.g: "1", "2", "3"
|
11 |
+
go("Heading %s","generateblocks"),"2"),onClick:function(){n({element:"h2"})}},{isActive:"h3"===d,icon:Object(l.createElement)(oo,{level:"h3"}),title:uo(// translators: %s: heading level e.g: "1", "2", "3"
|
12 |
+
go("Heading %s","generateblocks"),"3"),onClick:function(){n({element:"h3"})}},{isActive:"h4"===d,icon:Object(l.createElement)(oo,{level:"h4"}),title:uo(// translators: %s: heading level e.g: "1", "2", "3"
|
13 |
+
go("Heading %s","generateblocks"),"4"),onClick:function(){n({element:"h4"})}},{isActive:"h5"===d,icon:Object(l.createElement)(oo,{level:"h5"}),title:uo(// translators: %s: heading level e.g: "1", "2", "3"
|
14 |
+
go("Heading %s","generateblocks"),"5"),onClick:function(){n({element:"h5"})}},{isActive:"h6"===d,icon:Object(l.createElement)(oo,{level:"h6"}),title:uo(// translators: %s: heading level e.g: "1", "2", "3"
|
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)}]);
|
dist/blocks.style.build.css
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
.gb-button{display:inline-block;padding:.75em 1em;line-height:1em;color:#fff;text-decoration:none !important;background-color:#32373c;border:none;-webkit-transition:.2s background-color ease-in-out, .2s color ease-in-out, .2s border-color ease-in-out, .2s opacity ease-in-out, .2s box-shadow ease-in-out;-o-transition:.2s background-color ease-in-out, .2s color ease-in-out, .2s border-color ease-in-out, .2s opacity ease-in-out, .2s box-shadow ease-in-out;transition:.2s background-color ease-in-out, .2s color ease-in-out, .2s border-color ease-in-out, .2s opacity ease-in-out, .2s box-shadow ease-in-out}.gb-button:hover,.gb-button:focus,.gb-button:active{color:#fff;background-color:#32373c}
|
|
dist/dashboard.asset.php
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<?php return array('dependencies' => array('wp-element', 'wp-polyfill'), 'version' => '21009385e1d715f417aa77ddaeee3daf');
|
dist/dashboard.css
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
1 |
+
.gblocks-dashboard-wrap{margin:0;overflow:hidden}.gblocks-dashboard-header{background:#fff;border-bottom:1px solid #e2e4e7;padding:40px 0 0;text-align:center}.gblocks-dashboard-header h1{font-size:25px;font-weight:600;padding-bottom:0;margin-bottom:20px}.gblocks-dashboard-header .gblocks-dashboard-header-content{max-width:700px;margin:0 auto}.gblocks-navigation{background:#fff;display:flex;justify-content:center}.gblocks-navigation a{padding:0.5rem 1rem 1rem;display:inline-flex;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}
|
2 |
+
|
dist/dashboard.js
ADDED
@@ -0,0 +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=37)}([function(e,t){!function(){e.exports=this.wp.element}()},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(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&&r(e,t)}},function(e,t,n){var r=n(11),o=n(9);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,n){"use strict";n.r(t);var r=n(2),o=n.n(r),s=n(4),i=n.n(s),c=n(5),a=n.n(c),l=n(9),u=n.n(l),f=n(6),p=n.n(f),g=n(7),b=n.n(g),d=n(1),m=n.n(d),h=n(0);n(38);function y(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 S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(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 b()(this,n)}}var O=wp.i18n.__,j=wp.components,k=j.BaseControl,w=j.Button,P=j.PanelBody,E=j.PanelRow,x=j.Placeholder,_=j.Spinner,C=j.ToggleControl,R=j.SelectControl,I=wp.element,L=I.render,A=I.Component,N=I.Fragment,T=wp.apiFetch,D=wp.hooks.applyFilters,M=function(e){p()(n,e);var t=v(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;T({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)(N,null,Object(h.createElement)("div",{className:"generateblocks-settings-main"},D("generateblocks.dashboard.beforeSettings","",this),Object(h.createElement)(P,{title:O("Settings","generateblocks")},Object(h.createElement)("div",{className:"gblocks-dashboard-panel-row-wrapper"},Object(h.createElement)(E,{className:"gblocks-css-print-method"},Object(h.createElement)(R,{label:O("CSS Print Method","generateblocks"),help:O("Generating your CSS in external files is better for overall performance.","generateblocks"),value:this.getSetting("css_print_method"),options:[{label:O("External File","generateblocks"),value:"file"},{label:O("Inline Embedding","generateblocks"),value:"inline"}],onChange:function(t){e.setState({settings:S(S({},e.state.settings),{},{css_print_method:t})})}})),"file"===this.getSetting("css_print_method")&&Object(h.createElement)(E,null,Object(h.createElement)(k,{id:"gblocks-regenerate-css",className:"gblocks-regenerate-css",help:O("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)(w,{isSecondary:!0,onClick:function(t){e.setState({isRegeneratingCSS:!0});var n=t.target.nextElementSibling;T({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)(_,null),!this.state.isRegeneratingCSS&&O("Regenerate CSS Files","generateblocks")),Object(h.createElement)("span",{className:"gblocks-action-message"})))),Object(h.createElement)(E,null,Object(h.createElement)(C,{label:O("Sync Responsive Previews"),help:O("Sync our responsive preview controls with the editor responsive previews.","generateblocks"),checked:this.getSetting("sync_responsive_previews"),onChange:function(t){e.setState({settings:S(S({},e.state.settings),{},{sync_responsive_previews:t})})}})),D("generateblocks.dashboard.settings","",this),Object(h.createElement)("div",{className:"gblocks-action-button"},Object(h.createElement)(w,{isPrimary:!0,disabled:this.state.isAPISaving,onClick:function(t){return e.updateSettings(t)}},this.state.isAPISaving&&Object(h.createElement)(_,null),!this.state.isAPISaving&&O("Save")),Object(h.createElement)("span",{className:"gblocks-action-message"})))),D("generateblocks.dashboard.afterSettings","",this))):Object(h.createElement)(x,{className:"gblocks-settings-placeholder"},Object(h.createElement)(_,null))}}]),n}(A);window.addEventListener("DOMContentLoaded",(function(){L(Object(h.createElement)(M,null),document.getElementById("gblocks-block-default-settings"))}))},function(e,t,n){}]);
|
includes/class-do-css.php
CHANGED
@@ -190,6 +190,7 @@ class GenerateBlocks_Dynamic_CSS {
|
|
190 |
if ( ! empty( $this->_css ) ) {
|
191 |
$this->_selector_output = $this->_selector;
|
192 |
$this->_output[ $this->_selector_output ][] = $this->_css;
|
|
|
193 |
|
194 |
// Reset the css.
|
195 |
$this->_css = '';
|
190 |
if ( ! empty( $this->_css ) ) {
|
191 |
$this->_selector_output = $this->_selector;
|
192 |
$this->_output[ $this->_selector_output ][] = $this->_css;
|
193 |
+
$this->_output[ $this->_selector_output ] = array_unique( $this->_output[ $this->_selector_output ] );
|
194 |
|
195 |
// Reset the css.
|
196 |
$this->_css = '';
|
includes/class-enqueue-css.php
CHANGED
@@ -2,8 +2,7 @@
|
|
2 |
/**
|
3 |
* Handles the CSS Output.
|
4 |
*
|
5 |
-
* @package
|
6 |
-
* @since 0.1
|
7 |
*/
|
8 |
|
9 |
if ( ! defined( 'ABSPATH' ) ) {
|
@@ -14,7 +13,6 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
14 |
* Enqueue our block CSS to the current page.
|
15 |
*/
|
16 |
class GenerateBlocks_Enqueue_CSS {
|
17 |
-
|
18 |
/**
|
19 |
* Instance.
|
20 |
*
|
@@ -42,21 +40,27 @@ class GenerateBlocks_Enqueue_CSS {
|
|
42 |
* Constructor.
|
43 |
*/
|
44 |
public function __construct() {
|
45 |
-
|
46 |
$this->add_options();
|
47 |
|
48 |
add_action( 'save_post', array( $this, 'post_update_option' ), 10, 2 );
|
49 |
add_action( 'save_post_wp_block', array( $this, 'wp_block_update' ), 10, 2 );
|
50 |
-
add_action( '
|
51 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
|
|
|
|
|
53 |
}
|
54 |
|
55 |
/**
|
56 |
* Get the current page ID.
|
57 |
*/
|
58 |
public function page_id() {
|
59 |
-
|
60 |
global $post;
|
61 |
|
62 |
$id = isset( $post ) ? $post->ID : false;
|
@@ -65,14 +69,12 @@ class GenerateBlocks_Enqueue_CSS {
|
|
65 |
$id = ( is_home() ) ? get_option( 'page_for_posts' ) : $id;
|
66 |
|
67 |
return $id;
|
68 |
-
|
69 |
}
|
70 |
|
71 |
/**
|
72 |
* Determine if we're using file mode or inline mode.
|
73 |
*/
|
74 |
public function mode() {
|
75 |
-
|
76 |
// Check if we're using file mode or inline mode.
|
77 |
// Default to file mode and falback to inline if file mode is not possible.
|
78 |
$mode = apply_filters( 'generateblocks_css_print_method', 'file' );
|
@@ -99,7 +101,6 @@ class GenerateBlocks_Enqueue_CSS {
|
|
99 |
}
|
100 |
|
101 |
return $mode;
|
102 |
-
|
103 |
}
|
104 |
|
105 |
/**
|
@@ -112,23 +113,21 @@ class GenerateBlocks_Enqueue_CSS {
|
|
112 |
return;
|
113 |
}
|
114 |
|
115 |
-
$
|
116 |
|
117 |
-
if ( empty( $
|
118 |
return;
|
119 |
}
|
120 |
|
121 |
if ( 'file' === $this->mode() ) {
|
122 |
wp_enqueue_style( 'generateblocks', esc_url( $this->file( 'uri' ) ), array(), null ); // phpcs:ignore WordPress.WP.EnqueuedResourceParameters.MissingVersion
|
123 |
}
|
124 |
-
|
125 |
}
|
126 |
|
127 |
/**
|
128 |
* Print our inline CSS.
|
129 |
*/
|
130 |
public function print_inline_css() {
|
131 |
-
|
132 |
if ( 'inline' === $this->mode() || ! wp_style_is( 'generateblocks', 'enqueued' ) ) {
|
133 |
$css = generateblocks_get_frontend_block_css();
|
134 |
|
@@ -147,17 +146,15 @@ class GenerateBlocks_Enqueue_CSS {
|
|
147 |
* Make our CSS.
|
148 |
*/
|
149 |
public function make_css() {
|
150 |
-
|
151 |
$page_id = $this->page_id();
|
152 |
|
153 |
if ( ! $page_id ) {
|
154 |
return false;
|
155 |
}
|
156 |
|
157 |
-
|
158 |
-
$css_version = get_post_meta( $page_id, '_generateblocks_dynamic_css_version', true );
|
159 |
|
160 |
-
if ( empty( $
|
161 |
return false;
|
162 |
}
|
163 |
|
@@ -184,26 +181,14 @@ class GenerateBlocks_Enqueue_CSS {
|
|
184 |
|
185 |
// Take care of domain mapping.
|
186 |
if ( defined( 'DOMAIN_MAPPING' ) && DOMAIN_MAPPING ) {
|
187 |
-
|
188 |
if ( function_exists( 'domain_mapping_siteurl' ) && function_exists( 'get_original_url' ) ) {
|
189 |
-
|
190 |
$mapped_domain = domain_mapping_siteurl( false );
|
191 |
-
$mapped_domain = str_replace( 'https://', '//', $domain_mapping );
|
192 |
-
$mapped_domain = str_replace( 'http://', '//', $mapped_domain );
|
193 |
-
|
194 |
$original_domain = get_original_url( 'siteurl' );
|
195 |
-
$original_domain = str_replace( 'https://', '//', $original_domain );
|
196 |
-
$original_domain = str_replace( 'http://', '//', $original_domain );
|
197 |
|
198 |
$content = str_replace( $original_domain, $mapped_domain, $content );
|
199 |
-
|
200 |
}
|
201 |
}
|
202 |
|
203 |
-
// Strip protocols.
|
204 |
-
$content = str_replace( 'https://', '//', $content );
|
205 |
-
$content = str_replace( 'http://', '//', $content );
|
206 |
-
|
207 |
if ( is_writable( $this->file( 'path' ) ) || ( ! file_exists( $this->file( 'path' ) ) && is_writable( dirname( $this->file( 'path' ) ) ) ) ) {
|
208 |
|
209 |
if ( ! $wp_filesystem->put_contents( $this->file( 'path' ), wp_strip_all_tags( $content ), FS_CHMOD_FILE ) ) {
|
@@ -225,19 +210,16 @@ class GenerateBlocks_Enqueue_CSS {
|
|
225 |
|
226 |
}
|
227 |
}
|
228 |
-
|
229 |
}
|
230 |
|
231 |
-
|
232 |
/**
|
233 |
* Determines if the CSS file is writable.
|
234 |
*/
|
235 |
public function can_write() {
|
236 |
-
|
237 |
global $blog_id;
|
238 |
|
239 |
// Get the upload directory for this site.
|
240 |
-
$upload_dir =
|
241 |
|
242 |
// If this is a multisite installation, append the blogid to the filename.
|
243 |
$css_blog_id = ( is_multisite() && $blog_id > 1 ) ? '_blog-' . $blog_id : null;
|
@@ -287,21 +269,18 @@ class GenerateBlocks_Enqueue_CSS {
|
|
287 |
|
288 |
// all is well!
|
289 |
return true;
|
290 |
-
|
291 |
}
|
292 |
|
293 |
-
|
294 |
/**
|
295 |
* Gets the css path or url to the stylesheet
|
296 |
*
|
297 |
* @param string $target path/url.
|
298 |
*/
|
299 |
public function file( $target = 'path' ) {
|
300 |
-
|
301 |
global $blog_id;
|
302 |
|
303 |
// Get the upload directory for this site.
|
304 |
-
$upload_dir =
|
305 |
|
306 |
// If this is a multisite installation, append the blogid to the filename.
|
307 |
$css_blog_id = ( is_multisite() && $blog_id > 1 ) ? '_blog-' . $blog_id : null;
|
@@ -327,9 +306,7 @@ class GenerateBlocks_Enqueue_CSS {
|
|
327 |
}
|
328 |
}
|
329 |
|
330 |
-
|
331 |
-
$css_uri = str_replace( 'https://', '//', $css_uri );
|
332 |
-
$css_uri = str_replace( 'http://', '//', $css_uri );
|
333 |
|
334 |
if ( 'path' === $target ) {
|
335 |
return $file_path;
|
@@ -337,7 +314,6 @@ class GenerateBlocks_Enqueue_CSS {
|
|
337 |
$timestamp = ( file_exists( $file_path ) ) ? '?ver=' . filemtime( $file_path ) : '';
|
338 |
return $css_uri . $timestamp;
|
339 |
}
|
340 |
-
|
341 |
}
|
342 |
|
343 |
/**
|
@@ -363,7 +339,6 @@ class GenerateBlocks_Enqueue_CSS {
|
|
363 |
* @param object $post The current post.
|
364 |
*/
|
365 |
public function post_update_option( $post_id, $post ) {
|
366 |
-
|
367 |
$is_autosave = wp_is_post_autosave( $post_id );
|
368 |
$is_revision = wp_is_post_revision( $post_id );
|
369 |
|
@@ -373,7 +348,7 @@ class GenerateBlocks_Enqueue_CSS {
|
|
373 |
|
374 |
if ( isset( $post->post_content ) ) {
|
375 |
if ( strpos( $post->post_content, 'wp:generateblocks' ) !== false ) {
|
376 |
-
update_post_meta( $post_id, '_generateblocks_dynamic_css_version', sanitize_text_field(
|
377 |
} else {
|
378 |
delete_post_meta( $post_id, '_generateblocks_dynamic_css_version' );
|
379 |
}
|
@@ -394,11 +369,11 @@ class GenerateBlocks_Enqueue_CSS {
|
|
394 |
}
|
395 |
}
|
396 |
|
|
|
397 |
$option = get_option( 'generateblocks_dynamic_css_posts', array() );
|
398 |
unset( $option[ $post_id ] );
|
399 |
|
400 |
update_option( 'generateblocks_dynamic_css_posts', $option );
|
401 |
-
|
402 |
}
|
403 |
|
404 |
/**
|
@@ -408,7 +383,6 @@ class GenerateBlocks_Enqueue_CSS {
|
|
408 |
* @param object $post The current post.
|
409 |
*/
|
410 |
public function wp_block_update( $post_id, $post ) {
|
411 |
-
|
412 |
$is_autosave = wp_is_post_autosave( $post_id );
|
413 |
$is_revision = wp_is_post_revision( $post_id );
|
414 |
|
@@ -431,23 +405,14 @@ class GenerateBlocks_Enqueue_CSS {
|
|
431 |
update_option( 'generateblocks_dynamic_css_posts', $option );
|
432 |
}
|
433 |
}
|
434 |
-
|
435 |
}
|
436 |
|
437 |
/**
|
438 |
* Do we need to update the CSS file?
|
439 |
*/
|
440 |
public function needs_update() {
|
441 |
-
|
442 |
-
$
|
443 |
-
$page_id = $this->page_id();
|
444 |
-
$css_version = get_post_meta( $page_id, '_generateblocks_dynamic_css_version', true );
|
445 |
-
|
446 |
-
// Force a CSS update if we've specified a new CSS version.
|
447 |
-
if ( (string) GENERATEBLOCKS_CSS_VERSION !== (string) $css_version ) {
|
448 |
-
update_post_meta( $page_id, '_generateblocks_dynamic_css_version', sanitize_text_field( GENERATEBLOCKS_CSS_VERSION ) );
|
449 |
-
return true;
|
450 |
-
}
|
451 |
|
452 |
// If the CSS file does not exist then we definitely need to regenerate the CSS.
|
453 |
if ( ! file_exists( $this->file( 'path' ) ) ) {
|
@@ -455,7 +420,6 @@ class GenerateBlocks_Enqueue_CSS {
|
|
455 |
}
|
456 |
|
457 |
return ( ! isset( $option[ $page_id ] ) || ! $option[ $page_id ] ) ? true : false;
|
458 |
-
|
459 |
}
|
460 |
|
461 |
/**
|
@@ -464,7 +428,6 @@ class GenerateBlocks_Enqueue_CSS {
|
|
464 |
public function update_saved_time() {
|
465 |
update_option( 'generateblocks_dynamic_css_time', time() );
|
466 |
}
|
467 |
-
|
468 |
}
|
469 |
|
470 |
GenerateBlocks_Enqueue_CSS::get_instance();
|
2 |
/**
|
3 |
* Handles the CSS Output.
|
4 |
*
|
5 |
+
* @package GenerateBlocks
|
|
|
6 |
*/
|
7 |
|
8 |
if ( ! defined( 'ABSPATH' ) ) {
|
13 |
* Enqueue our block CSS to the current page.
|
14 |
*/
|
15 |
class GenerateBlocks_Enqueue_CSS {
|
|
|
16 |
/**
|
17 |
* Instance.
|
18 |
*
|
40 |
* Constructor.
|
41 |
*/
|
42 |
public function __construct() {
|
|
|
43 |
$this->add_options();
|
44 |
|
45 |
add_action( 'save_post', array( $this, 'post_update_option' ), 10, 2 );
|
46 |
add_action( 'save_post_wp_block', array( $this, 'wp_block_update' ), 10, 2 );
|
47 |
+
add_action( 'init', array( $this, 'enqueue_assets' ) );
|
48 |
+
}
|
49 |
+
|
50 |
+
/**
|
51 |
+
* Enqueue our front-end assets.
|
52 |
+
*/
|
53 |
+
public function enqueue_assets() {
|
54 |
+
$dynamic_css_priority = apply_filters( 'generateblocks_dynamic_css_priority', 10 );
|
55 |
|
56 |
+
add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_dynamic_css' ), $dynamic_css_priority );
|
57 |
+
add_action( 'wp_head', array( $this, 'print_inline_css' ), $dynamic_css_priority );
|
58 |
}
|
59 |
|
60 |
/**
|
61 |
* Get the current page ID.
|
62 |
*/
|
63 |
public function page_id() {
|
|
|
64 |
global $post;
|
65 |
|
66 |
$id = isset( $post ) ? $post->ID : false;
|
69 |
$id = ( is_home() ) ? get_option( 'page_for_posts' ) : $id;
|
70 |
|
71 |
return $id;
|
|
|
72 |
}
|
73 |
|
74 |
/**
|
75 |
* Determine if we're using file mode or inline mode.
|
76 |
*/
|
77 |
public function mode() {
|
|
|
78 |
// Check if we're using file mode or inline mode.
|
79 |
// Default to file mode and falback to inline if file mode is not possible.
|
80 |
$mode = apply_filters( 'generateblocks_css_print_method', 'file' );
|
101 |
}
|
102 |
|
103 |
return $mode;
|
|
|
104 |
}
|
105 |
|
106 |
/**
|
113 |
return;
|
114 |
}
|
115 |
|
116 |
+
$has_generateblocks = get_post_meta( $page_id, '_generateblocks_dynamic_css_version', true );
|
117 |
|
118 |
+
if ( empty( $has_generateblocks ) ) {
|
119 |
return;
|
120 |
}
|
121 |
|
122 |
if ( 'file' === $this->mode() ) {
|
123 |
wp_enqueue_style( 'generateblocks', esc_url( $this->file( 'uri' ) ), array(), null ); // phpcs:ignore WordPress.WP.EnqueuedResourceParameters.MissingVersion
|
124 |
}
|
|
|
125 |
}
|
126 |
|
127 |
/**
|
128 |
* Print our inline CSS.
|
129 |
*/
|
130 |
public function print_inline_css() {
|
|
|
131 |
if ( 'inline' === $this->mode() || ! wp_style_is( 'generateblocks', 'enqueued' ) ) {
|
132 |
$css = generateblocks_get_frontend_block_css();
|
133 |
|
146 |
* Make our CSS.
|
147 |
*/
|
148 |
public function make_css() {
|
|
|
149 |
$page_id = $this->page_id();
|
150 |
|
151 |
if ( ! $page_id ) {
|
152 |
return false;
|
153 |
}
|
154 |
|
155 |
+
$has_generateblocks = get_post_meta( $page_id, '_generateblocks_dynamic_css_version', true );
|
|
|
156 |
|
157 |
+
if ( empty( $has_generateblocks ) ) {
|
158 |
return false;
|
159 |
}
|
160 |
|
181 |
|
182 |
// Take care of domain mapping.
|
183 |
if ( defined( 'DOMAIN_MAPPING' ) && DOMAIN_MAPPING ) {
|
|
|
184 |
if ( function_exists( 'domain_mapping_siteurl' ) && function_exists( 'get_original_url' ) ) {
|
|
|
185 |
$mapped_domain = domain_mapping_siteurl( false );
|
|
|
|
|
|
|
186 |
$original_domain = get_original_url( 'siteurl' );
|
|
|
|
|
187 |
|
188 |
$content = str_replace( $original_domain, $mapped_domain, $content );
|
|
|
189 |
}
|
190 |
}
|
191 |
|
|
|
|
|
|
|
|
|
192 |
if ( is_writable( $this->file( 'path' ) ) || ( ! file_exists( $this->file( 'path' ) ) && is_writable( dirname( $this->file( 'path' ) ) ) ) ) {
|
193 |
|
194 |
if ( ! $wp_filesystem->put_contents( $this->file( 'path' ), wp_strip_all_tags( $content ), FS_CHMOD_FILE ) ) {
|
210 |
|
211 |
}
|
212 |
}
|
|
|
213 |
}
|
214 |
|
|
|
215 |
/**
|
216 |
* Determines if the CSS file is writable.
|
217 |
*/
|
218 |
public function can_write() {
|
|
|
219 |
global $blog_id;
|
220 |
|
221 |
// Get the upload directory for this site.
|
222 |
+
$upload_dir = wp_get_upload_dir();
|
223 |
|
224 |
// If this is a multisite installation, append the blogid to the filename.
|
225 |
$css_blog_id = ( is_multisite() && $blog_id > 1 ) ? '_blog-' . $blog_id : null;
|
269 |
|
270 |
// all is well!
|
271 |
return true;
|
|
|
272 |
}
|
273 |
|
|
|
274 |
/**
|
275 |
* Gets the css path or url to the stylesheet
|
276 |
*
|
277 |
* @param string $target path/url.
|
278 |
*/
|
279 |
public function file( $target = 'path' ) {
|
|
|
280 |
global $blog_id;
|
281 |
|
282 |
// Get the upload directory for this site.
|
283 |
+
$upload_dir = wp_get_upload_dir();
|
284 |
|
285 |
// If this is a multisite installation, append the blogid to the filename.
|
286 |
$css_blog_id = ( is_multisite() && $blog_id > 1 ) ? '_blog-' . $blog_id : null;
|
306 |
}
|
307 |
}
|
308 |
|
309 |
+
$css_uri = set_url_scheme( $css_uri );
|
|
|
|
|
310 |
|
311 |
if ( 'path' === $target ) {
|
312 |
return $file_path;
|
314 |
$timestamp = ( file_exists( $file_path ) ) ? '?ver=' . filemtime( $file_path ) : '';
|
315 |
return $css_uri . $timestamp;
|
316 |
}
|
|
|
317 |
}
|
318 |
|
319 |
/**
|
339 |
* @param object $post The current post.
|
340 |
*/
|
341 |
public function post_update_option( $post_id, $post ) {
|
|
|
342 |
$is_autosave = wp_is_post_autosave( $post_id );
|
343 |
$is_revision = wp_is_post_revision( $post_id );
|
344 |
|
348 |
|
349 |
if ( isset( $post->post_content ) ) {
|
350 |
if ( strpos( $post->post_content, 'wp:generateblocks' ) !== false ) {
|
351 |
+
update_post_meta( $post_id, '_generateblocks_dynamic_css_version', sanitize_text_field( GENERATEBLOCKS_VERSION ) );
|
352 |
} else {
|
353 |
delete_post_meta( $post_id, '_generateblocks_dynamic_css_version' );
|
354 |
}
|
369 |
}
|
370 |
}
|
371 |
|
372 |
+
// Make a new CSS file for this post on next load.
|
373 |
$option = get_option( 'generateblocks_dynamic_css_posts', array() );
|
374 |
unset( $option[ $post_id ] );
|
375 |
|
376 |
update_option( 'generateblocks_dynamic_css_posts', $option );
|
|
|
377 |
}
|
378 |
|
379 |
/**
|
383 |
* @param object $post The current post.
|
384 |
*/
|
385 |
public function wp_block_update( $post_id, $post ) {
|
|
|
386 |
$is_autosave = wp_is_post_autosave( $post_id );
|
387 |
$is_revision = wp_is_post_revision( $post_id );
|
388 |
|
405 |
update_option( 'generateblocks_dynamic_css_posts', $option );
|
406 |
}
|
407 |
}
|
|
|
408 |
}
|
409 |
|
410 |
/**
|
411 |
* Do we need to update the CSS file?
|
412 |
*/
|
413 |
public function needs_update() {
|
414 |
+
$option = get_option( 'generateblocks_dynamic_css_posts', array() );
|
415 |
+
$page_id = $this->page_id();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
416 |
|
417 |
// If the CSS file does not exist then we definitely need to regenerate the CSS.
|
418 |
if ( ! file_exists( $this->file( 'path' ) ) ) {
|
420 |
}
|
421 |
|
422 |
return ( ! isset( $option[ $page_id ] ) || ! $option[ $page_id ] ) ? true : false;
|
|
|
423 |
}
|
424 |
|
425 |
/**
|
428 |
public function update_saved_time() {
|
429 |
update_option( 'generateblocks_dynamic_css_time', time() );
|
430 |
}
|
|
|
431 |
}
|
432 |
|
433 |
GenerateBlocks_Enqueue_CSS::get_instance();
|
includes/class-plugin-update.php
CHANGED
@@ -2,8 +2,7 @@
|
|
2 |
/**
|
3 |
* Handles option changes on plugin updates.
|
4 |
*
|
5 |
-
* @package
|
6 |
-
* @since 1.1
|
7 |
*/
|
8 |
|
9 |
if ( ! defined( 'ABSPATH' ) ) {
|
@@ -69,7 +68,8 @@ class GenerateBlocks_Plugin_Update {
|
|
69 |
return;
|
70 |
}
|
71 |
|
72 |
-
//
|
|
|
73 |
|
74 |
// Last thing to do is update our version.
|
75 |
update_option( 'generateblocks_version', sanitize_text_field( GENERATEBLOCKS_VERSION ) );
|
2 |
/**
|
3 |
* Handles option changes on plugin updates.
|
4 |
*
|
5 |
+
* @package GenerateBlocks
|
|
|
6 |
*/
|
7 |
|
8 |
if ( ! defined( 'ABSPATH' ) ) {
|
68 |
return;
|
69 |
}
|
70 |
|
71 |
+
// Force regenerate our static CSS files.
|
72 |
+
update_option( 'generateblocks_dynamic_css_posts', array() );
|
73 |
|
74 |
// Last thing to do is update our version.
|
75 |
update_option( 'generateblocks_version', sanitize_text_field( GENERATEBLOCKS_VERSION ) );
|
includes/class-render-blocks.php
ADDED
@@ -0,0 +1,257 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* This file handles the dynamic parts of our blocks.
|
4 |
+
*
|
5 |
+
* @package GenerateBlocks
|
6 |
+
*/
|
7 |
+
|
8 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
9 |
+
exit; // Exit if accessed directly.
|
10 |
+
}
|
11 |
+
|
12 |
+
/**
|
13 |
+
* Render the dynamic aspects of our blocks.
|
14 |
+
*
|
15 |
+
* @since 1.2.0
|
16 |
+
*/
|
17 |
+
class GenerateBlocks_Render_Block {
|
18 |
+
/**
|
19 |
+
* Instance.
|
20 |
+
*
|
21 |
+
* @access private
|
22 |
+
* @var object Instance
|
23 |
+
* @since 1.2.0
|
24 |
+
*/
|
25 |
+
private static $instance;
|
26 |
+
|
27 |
+
/**
|
28 |
+
* Initiator.
|
29 |
+
*
|
30 |
+
* @since 1.2.0
|
31 |
+
* @return object initialized object of class.
|
32 |
+
*/
|
33 |
+
public static function get_instance() {
|
34 |
+
if ( ! isset( self::$instance ) ) {
|
35 |
+
self::$instance = new self();
|
36 |
+
}
|
37 |
+
|
38 |
+
return self::$instance;
|
39 |
+
}
|
40 |
+
|
41 |
+
/**
|
42 |
+
* Constructor.
|
43 |
+
*/
|
44 |
+
public function __construct() {
|
45 |
+
add_action( 'init', array( $this, 'register_blocks' ) );
|
46 |
+
}
|
47 |
+
|
48 |
+
/**
|
49 |
+
* Register our dynamic blocks.
|
50 |
+
*
|
51 |
+
* @since 1.2.0
|
52 |
+
*/
|
53 |
+
public function register_blocks() {
|
54 |
+
register_block_type(
|
55 |
+
'generateblocks/container',
|
56 |
+
array(
|
57 |
+
'render_callback' => array( $this, 'do_container_block' ),
|
58 |
+
)
|
59 |
+
);
|
60 |
+
|
61 |
+
register_block_type(
|
62 |
+
'generateblocks/grid',
|
63 |
+
array(
|
64 |
+
'render_callback' => array( $this, 'do_grid_block' ),
|
65 |
+
)
|
66 |
+
);
|
67 |
+
|
68 |
+
register_block_type(
|
69 |
+
'generateblocks/button-container',
|
70 |
+
array(
|
71 |
+
'render_callback' => array( $this, 'do_button_container' ),
|
72 |
+
)
|
73 |
+
);
|
74 |
+
}
|
75 |
+
|
76 |
+
/**
|
77 |
+
* Output the dynamic aspects of our Container block.
|
78 |
+
*
|
79 |
+
* @since 1.2.0
|
80 |
+
* @param array $attributes The block attributes.
|
81 |
+
* @param string $content The inner blocks.
|
82 |
+
*/
|
83 |
+
public function do_container_block( $attributes, $content ) {
|
84 |
+
if ( ! isset( $attributes['isDynamic'] ) || ! $attributes['isDynamic'] ) {
|
85 |
+
return $content;
|
86 |
+
}
|
87 |
+
|
88 |
+
$defaults = generateblocks_get_block_defaults();
|
89 |
+
|
90 |
+
$settings = wp_parse_args(
|
91 |
+
$attributes,
|
92 |
+
$defaults['container']
|
93 |
+
);
|
94 |
+
|
95 |
+
$output = '';
|
96 |
+
|
97 |
+
if ( $settings['isGrid'] ) {
|
98 |
+
$gridItemClassNames = array(
|
99 |
+
'gb-grid-column',
|
100 |
+
'gb-grid-column-' . $settings['uniqueId'],
|
101 |
+
);
|
102 |
+
|
103 |
+
$output .= sprintf(
|
104 |
+
'<div %s>',
|
105 |
+
generateblocks_attr(
|
106 |
+
'grid-item',
|
107 |
+
array(
|
108 |
+
'class' => implode( ' ', $gridItemClassNames ),
|
109 |
+
),
|
110 |
+
$settings
|
111 |
+
)
|
112 |
+
);
|
113 |
+
}
|
114 |
+
|
115 |
+
$classNames = array(
|
116 |
+
'gb-container',
|
117 |
+
'gb-container-' . $settings['uniqueId'],
|
118 |
+
);
|
119 |
+
|
120 |
+
if ( ! empty( $settings['className'] ) ) {
|
121 |
+
$classNames[] = $settings['className'];
|
122 |
+
}
|
123 |
+
|
124 |
+
if ( ! $settings['isGrid'] && ! empty( $settings['align'] ) ) {
|
125 |
+
$classNames[] = 'align' . $settings['align'];
|
126 |
+
}
|
127 |
+
|
128 |
+
$tagName = apply_filters( 'generateblocks_container_tagname', $settings['tagName'], $attributes );
|
129 |
+
|
130 |
+
$output .= sprintf(
|
131 |
+
'<%1$s %2$s>',
|
132 |
+
$tagName,
|
133 |
+
generateblocks_attr(
|
134 |
+
'container',
|
135 |
+
array(
|
136 |
+
'id' => isset( $settings['anchor'] ) ? $settings['anchor'] : null,
|
137 |
+
'class' => implode( ' ', $classNames ),
|
138 |
+
),
|
139 |
+
$settings
|
140 |
+
)
|
141 |
+
);
|
142 |
+
|
143 |
+
$output = apply_filters( 'generateblocks_after_container_open', $output, $attributes );
|
144 |
+
$output .= '<div class="gb-inside-container">';
|
145 |
+
$output = apply_filters( 'generateblocks_inside_container', $output, $attributes );
|
146 |
+
$output .= $content;
|
147 |
+
$output .= '</div>';
|
148 |
+
$output = apply_filters( 'generateblocks_before_container_close', $output, $attributes );
|
149 |
+
|
150 |
+
$output .= sprintf(
|
151 |
+
'</%s>',
|
152 |
+
$tagName
|
153 |
+
);
|
154 |
+
|
155 |
+
if ( $settings['isGrid'] ) {
|
156 |
+
$output .= '</div>';
|
157 |
+
}
|
158 |
+
|
159 |
+
return $output;
|
160 |
+
}
|
161 |
+
|
162 |
+
/**
|
163 |
+
* Output the dynamic aspects of our Grid block.
|
164 |
+
*
|
165 |
+
* @since 1.2.0
|
166 |
+
* @param array $attributes The block attributes.
|
167 |
+
* @param string $content The inner blocks.
|
168 |
+
*/
|
169 |
+
public function do_grid_block( $attributes, $content ) {
|
170 |
+
if ( ! isset( $attributes['isDynamic'] ) || ! $attributes['isDynamic'] ) {
|
171 |
+
return $content;
|
172 |
+
}
|
173 |
+
|
174 |
+
$defaults = generateblocks_get_block_defaults();
|
175 |
+
|
176 |
+
$settings = wp_parse_args(
|
177 |
+
$attributes,
|
178 |
+
$defaults['gridContainer']
|
179 |
+
);
|
180 |
+
|
181 |
+
$classNames = array(
|
182 |
+
'gb-grid-wrapper',
|
183 |
+
'gb-grid-wrapper-' . $settings['uniqueId'],
|
184 |
+
);
|
185 |
+
|
186 |
+
if ( ! empty( $settings['className'] ) ) {
|
187 |
+
$classNames[] = $settings['className'];
|
188 |
+
}
|
189 |
+
|
190 |
+
$output = sprintf(
|
191 |
+
'<div %s>',
|
192 |
+
generateblocks_attr(
|
193 |
+
'grid-wrapper',
|
194 |
+
array(
|
195 |
+
'id' => isset( $settings['anchor'] ) ? $settings['anchor'] : null,
|
196 |
+
'class' => implode( ' ', $classNames ),
|
197 |
+
),
|
198 |
+
$settings
|
199 |
+
)
|
200 |
+
);
|
201 |
+
|
202 |
+
$output .= $content;
|
203 |
+
|
204 |
+
$output .= '</div>';
|
205 |
+
|
206 |
+
return $output;
|
207 |
+
}
|
208 |
+
|
209 |
+
/**
|
210 |
+
* Output the dynamic aspects of our Button Container block.
|
211 |
+
*
|
212 |
+
* @since 1.2.0
|
213 |
+
* @param array $attributes The block attributes.
|
214 |
+
* @param string $content The inner blocks.
|
215 |
+
*/
|
216 |
+
public function do_button_container( $attributes, $content ) {
|
217 |
+
if ( ! isset( $attributes['isDynamic'] ) || ! $attributes['isDynamic'] ) {
|
218 |
+
return $content;
|
219 |
+
}
|
220 |
+
|
221 |
+
$defaults = generateblocks_get_block_defaults();
|
222 |
+
|
223 |
+
$settings = wp_parse_args(
|
224 |
+
$attributes,
|
225 |
+
$defaults['buttonContainer']
|
226 |
+
);
|
227 |
+
|
228 |
+
$classNames = array(
|
229 |
+
'gb-button-wrapper',
|
230 |
+
'gb-button-wrapper-' . $settings['uniqueId'],
|
231 |
+
);
|
232 |
+
|
233 |
+
if ( ! empty( $settings['className'] ) ) {
|
234 |
+
$classNames[] = $settings['className'];
|
235 |
+
}
|
236 |
+
|
237 |
+
$output = sprintf(
|
238 |
+
'<div %s>',
|
239 |
+
generateblocks_attr(
|
240 |
+
'button-container',
|
241 |
+
array(
|
242 |
+
'id' => isset( $settings['anchor'] ) ? $settings['anchor'] : null,
|
243 |
+
'class' => implode( ' ', $classNames ),
|
244 |
+
),
|
245 |
+
$settings
|
246 |
+
)
|
247 |
+
);
|
248 |
+
|
249 |
+
$output .= $content;
|
250 |
+
|
251 |
+
$output .= '</div>';
|
252 |
+
|
253 |
+
return $output;
|
254 |
+
}
|
255 |
+
}
|
256 |
+
|
257 |
+
GenerateBlocks_Render_Block::get_instance();
|
includes/class-rest.php
ADDED
@@ -0,0 +1,209 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Rest API functions
|
4 |
+
*
|
5 |
+
* @package GenerateBlocks
|
6 |
+
*/
|
7 |
+
|
8 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
9 |
+
exit;
|
10 |
+
}
|
11 |
+
|
12 |
+
/**
|
13 |
+
* Class GenerateBlocks_Rest
|
14 |
+
*/
|
15 |
+
class GenerateBlocks_Rest extends WP_REST_Controller {
|
16 |
+
/**
|
17 |
+
* Instance.
|
18 |
+
*
|
19 |
+
* @access private
|
20 |
+
* @var object Instance
|
21 |
+
*/
|
22 |
+
private static $instance;
|
23 |
+
|
24 |
+
/**
|
25 |
+
* Namespace.
|
26 |
+
*
|
27 |
+
* @var string
|
28 |
+
*/
|
29 |
+
protected $namespace = 'generateblocks/v';
|
30 |
+
|
31 |
+
/**
|
32 |
+
* Version.
|
33 |
+
*
|
34 |
+
* @var string
|
35 |
+
*/
|
36 |
+
protected $version = '1';
|
37 |
+
|
38 |
+
/**
|
39 |
+
* Initiator.
|
40 |
+
*
|
41 |
+
* @return object initialized object of class.
|
42 |
+
*/
|
43 |
+
public static function get_instance() {
|
44 |
+
if ( ! isset( self::$instance ) ) {
|
45 |
+
self::$instance = new self();
|
46 |
+
}
|
47 |
+
|
48 |
+
return self::$instance;
|
49 |
+
}
|
50 |
+
|
51 |
+
/**
|
52 |
+
* GenerateBlocks_Rest constructor.
|
53 |
+
*/
|
54 |
+
public function __construct() {
|
55 |
+
add_action( 'rest_api_init', array( $this, 'register_routes' ) );
|
56 |
+
}
|
57 |
+
|
58 |
+
/**
|
59 |
+
* Register rest routes.
|
60 |
+
*/
|
61 |
+
public function register_routes() {
|
62 |
+
$namespace = $this->namespace . $this->version;
|
63 |
+
|
64 |
+
// Update Settings.
|
65 |
+
register_rest_route(
|
66 |
+
$namespace,
|
67 |
+
'/settings/',
|
68 |
+
array(
|
69 |
+
'methods' => WP_REST_Server::EDITABLE,
|
70 |
+
'callback' => array( $this, 'update_settings' ),
|
71 |
+
'permission_callback' => array( $this, 'update_settings_permission' ),
|
72 |
+
)
|
73 |
+
);
|
74 |
+
|
75 |
+
// Regenerate CSS Files.
|
76 |
+
register_rest_route(
|
77 |
+
$namespace,
|
78 |
+
'/regenerate_css_files/',
|
79 |
+
array(
|
80 |
+
'methods' => WP_REST_Server::EDITABLE,
|
81 |
+
'callback' => array( $this, 'regenerate_css_files' ),
|
82 |
+
'permission_callback' => array( $this, 'update_settings_permission' ),
|
83 |
+
)
|
84 |
+
);
|
85 |
+
}
|
86 |
+
|
87 |
+
/**
|
88 |
+
* Get edit options permissions.
|
89 |
+
*
|
90 |
+
* @return bool
|
91 |
+
*/
|
92 |
+
public function update_settings_permission() {
|
93 |
+
return current_user_can( 'manage_options' );
|
94 |
+
}
|
95 |
+
|
96 |
+
/**
|
97 |
+
* Sanitize our options.
|
98 |
+
*
|
99 |
+
* @since 1.2.0
|
100 |
+
* @param string $name The setting name.
|
101 |
+
* @param mixed $value The value to save.
|
102 |
+
*/
|
103 |
+
public function sanitize_value( $name, $value ) {
|
104 |
+
$callbacks = apply_filters(
|
105 |
+
'generateblocks_option_sanitize_callbacks',
|
106 |
+
array(
|
107 |
+
'css_print_method' => 'sanitize_text_field',
|
108 |
+
'sync_responsive_previews' => 'rest_sanitize_boolean',
|
109 |
+
)
|
110 |
+
);
|
111 |
+
|
112 |
+
$callback = $callbacks[ $name ];
|
113 |
+
|
114 |
+
if ( ! is_callable( $callback ) ) {
|
115 |
+
return sanitize_text_field( $value );
|
116 |
+
}
|
117 |
+
|
118 |
+
return $callback( $value );
|
119 |
+
}
|
120 |
+
|
121 |
+
/**
|
122 |
+
* Update Settings.
|
123 |
+
*
|
124 |
+
* @param WP_REST_Request $request request object.
|
125 |
+
*
|
126 |
+
* @return mixed
|
127 |
+
*/
|
128 |
+
public function update_settings( WP_REST_Request $request ) {
|
129 |
+
$current_settings = get_option( 'generateblocks', array() );
|
130 |
+
$new_settings = $request->get_param( 'settings' );
|
131 |
+
|
132 |
+
foreach ( $new_settings as $name => $value ) {
|
133 |
+
// Skip if the option hasn't changed.
|
134 |
+
if ( $current_settings[ $name ] === $new_settings[ $name ] ) {
|
135 |
+
unset( $new_settings[ $name ] );
|
136 |
+
continue;
|
137 |
+
}
|
138 |
+
|
139 |
+
// Only save options that we know about.
|
140 |
+
if ( ! array_key_exists( $name, generateblocks_get_option_defaults() ) ) {
|
141 |
+
unset( $new_settings[ $name ] );
|
142 |
+
continue;
|
143 |
+
}
|
144 |
+
|
145 |
+
// Sanitize our value.
|
146 |
+
$new_settings[ $name ] = $this->sanitize_value( $name, $value );
|
147 |
+
}
|
148 |
+
|
149 |
+
if ( empty( $new_settings ) ) {
|
150 |
+
return $this->success( __( 'No changes found.', 'generateblocks' ) );
|
151 |
+
}
|
152 |
+
|
153 |
+
if ( is_array( $new_settings ) ) {
|
154 |
+
update_option( 'generateblocks', array_merge( $current_settings, $new_settings ) );
|
155 |
+
}
|
156 |
+
|
157 |
+
return $this->success( __( 'Settings saved.', 'generateblocks' ) );
|
158 |
+
}
|
159 |
+
|
160 |
+
/**
|
161 |
+
* Regenerate CSS Files.
|
162 |
+
*
|
163 |
+
* @param WP_REST_Request $request request object.
|
164 |
+
*
|
165 |
+
* @return mixed
|
166 |
+
*/
|
167 |
+
public function regenerate_css_files( WP_REST_Request $request ) {
|
168 |
+
update_option( 'generateblocks_dynamic_css_posts', array() );
|
169 |
+
|
170 |
+
return $this->success( __( 'CSS files regenerated.', 'generateblocks' ) );
|
171 |
+
}
|
172 |
+
|
173 |
+
/**
|
174 |
+
* Success rest.
|
175 |
+
*
|
176 |
+
* @param mixed $response response data.
|
177 |
+
* @return mixed
|
178 |
+
*/
|
179 |
+
public function success( $response ) {
|
180 |
+
return new WP_REST_Response(
|
181 |
+
array(
|
182 |
+
'success' => true,
|
183 |
+
'response' => $response,
|
184 |
+
),
|
185 |
+
200
|
186 |
+
);
|
187 |
+
}
|
188 |
+
|
189 |
+
/**
|
190 |
+
* Error rest.
|
191 |
+
*
|
192 |
+
* @param mixed $code error code.
|
193 |
+
* @param mixed $response response data.
|
194 |
+
* @return mixed
|
195 |
+
*/
|
196 |
+
public function error( $code, $response ) {
|
197 |
+
return new WP_REST_Response(
|
198 |
+
array(
|
199 |
+
'error' => true,
|
200 |
+
'success' => false,
|
201 |
+
'error_code' => $code,
|
202 |
+
'response' => $response,
|
203 |
+
),
|
204 |
+
401
|
205 |
+
);
|
206 |
+
}
|
207 |
+
}
|
208 |
+
|
209 |
+
GenerateBlocks_Rest::get_instance();
|
includes/class-settings.php
CHANGED
@@ -13,29 +13,47 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
13 |
* Build our settings page.
|
14 |
*/
|
15 |
class GenerateBlocks_Settings {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
/**
|
17 |
* Constructor.
|
18 |
*/
|
19 |
public function __construct() {
|
20 |
add_action( 'admin_menu', array( $this, 'add_menu' ) );
|
21 |
-
add_action( '
|
22 |
-
add_action( 'generateblocks_before_settings_form', array( $this, 'admin_notices' ) );
|
23 |
-
|
24 |
-
if ( ! empty( $_POST ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing -- Just checking, false positive.
|
25 |
-
add_action( 'wp_ajax_generateblocks_regenerate_css_files', array( $this, 'regenerate_css_files' ) );
|
26 |
-
}
|
27 |
}
|
28 |
|
29 |
/**
|
30 |
* Add our Dashboard menu item.
|
31 |
*/
|
32 |
public function add_menu() {
|
33 |
-
$settings =
|
|
|
|
|
34 |
__( 'Settings', 'generateblocks' ),
|
35 |
-
__( 'GenerateBlocks', 'generateblocks' ),
|
36 |
'manage_options',
|
37 |
'generateblocks-settings',
|
38 |
-
array( $this, 'settings_page' )
|
|
|
39 |
);
|
40 |
|
41 |
add_action( "admin_print_scripts-$settings", array( $this, 'enqueue_scripts' ) );
|
@@ -47,57 +65,31 @@ class GenerateBlocks_Settings {
|
|
47 |
public function enqueue_scripts() {
|
48 |
wp_enqueue_script(
|
49 |
'generateblocks-settings',
|
50 |
-
GENERATEBLOCKS_DIR_URL . '
|
51 |
-
array( '
|
52 |
-
|
53 |
true
|
54 |
);
|
55 |
-
}
|
56 |
-
|
57 |
-
/**
|
58 |
-
* Save our settings.
|
59 |
-
*/
|
60 |
-
public function save() {
|
61 |
-
if ( isset( $_POST['generateblocks_settings'] ) ) {
|
62 |
-
if ( ! check_admin_referer( 'generateblocks_settings', 'generateblocks_settings' ) ) {
|
63 |
-
wp_die( esc_html( __( 'Security check failed.', 'generateblocks' ) ) );
|
64 |
-
}
|
65 |
-
|
66 |
-
if ( ! current_user_can( 'manage_options' ) ) {
|
67 |
-
wp_die( esc_html( __( 'Security check failed.', 'generateblocks' ) ) );
|
68 |
-
}
|
69 |
-
|
70 |
-
$settings = get_option( 'generateblocks', array() );
|
71 |
-
$values = $_POST['generateblocks'];
|
72 |
-
|
73 |
-
if ( isset( $values['css_print_method'] ) ) {
|
74 |
-
$settings['css_print_method'] = sanitize_key( $values['css_print_method'] );
|
75 |
-
}
|
76 |
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
|
|
86 |
}
|
87 |
|
88 |
/**
|
89 |
-
*
|
|
|
|
|
90 |
*/
|
91 |
-
public function
|
92 |
-
|
93 |
-
|
94 |
-
if ( ! current_user_can( 'manage_options' ) ) {
|
95 |
-
wp_send_json_error( __( 'Security check failed.', 'generateblocks' ) );
|
96 |
-
}
|
97 |
-
|
98 |
-
update_option( 'generateblocks_dynamic_css_posts', array() );
|
99 |
-
|
100 |
-
wp_send_json_success();
|
101 |
}
|
102 |
|
103 |
/**
|
@@ -108,98 +100,14 @@ class GenerateBlocks_Settings {
|
|
108 |
public function settings_page() {
|
109 |
?>
|
110 |
<div class="wrap gblocks-dashboard-wrap">
|
111 |
-
|
112 |
-
<div class="gblocks-dashboard-header-content">
|
113 |
-
<h1><?php esc_html_e( 'Settings', 'generateblocks' ); ?></h1>
|
114 |
-
</div>
|
115 |
-
<?php generateblocks_dashboard_navigation(); ?>
|
116 |
-
</div>
|
117 |
|
118 |
-
<div class="
|
119 |
-
<?php do_action( '
|
120 |
-
<form action="options.php" method="post">
|
121 |
-
<?php
|
122 |
-
wp_nonce_field( 'generateblocks_settings', 'generateblocks_settings' );
|
123 |
-
?>
|
124 |
-
<table class="form-table" role="presentation">
|
125 |
-
<tbody>
|
126 |
-
<tr>
|
127 |
-
<th scope="row">
|
128 |
-
<?php esc_html_e( 'CSS Print Method', 'generateblocks' ); ?>
|
129 |
-
</th>
|
130 |
-
<td>
|
131 |
-
<select name="generateblocks[css_print_method]">
|
132 |
-
<option value="file"<?php selected( 'file', generateblocks_get_option( 'css_print_method' ) ); ?>><?php esc_html_e( 'External File', 'generateblocks' ); ?></option>
|
133 |
-
<option value="inline"<?php selected( 'inline', generateblocks_get_option( 'css_print_method' ) ); ?>><?php esc_html_e( 'Inline Embedding', 'generateblocks' ); ?></option>
|
134 |
-
</select>
|
135 |
-
<p><?php esc_html_e( 'Generating your CSS in external files is better for overall performance.', 'generateblocks' ); ?></p>
|
136 |
-
</td>
|
137 |
-
</tr>
|
138 |
-
<tr>
|
139 |
-
<th scope="row">
|
140 |
-
<?php esc_html_e( 'Regenerate CSS', 'generateblocks' ); ?>
|
141 |
-
</th>
|
142 |
-
<td>
|
143 |
-
<?php
|
144 |
-
printf(
|
145 |
-
'<button data-nonce="%s" class="button generateblocks-button-spinner" id="generateblocks-regenerate-css-files-button">%s</button>',
|
146 |
-
esc_html( wp_create_nonce( 'generateblocks_regenerate_css_files' ) ),
|
147 |
-
esc_html__( 'Regenerate Files', 'generateblocks' )
|
148 |
-
);
|
149 |
-
?>
|
150 |
-
<p><?php esc_html_e( 'Force your external CSS files to regenerate next time their page is loaded.', 'generateblocks' ); ?></p>
|
151 |
-
</td>
|
152 |
-
</tr>
|
153 |
-
<tr>
|
154 |
-
<th scope="row">
|
155 |
-
<?php esc_html_e( 'Color Component Display', 'generateblocks' ); ?>
|
156 |
-
</th>
|
157 |
-
<td>
|
158 |
-
<select name="generateblocks[color_component_display]">
|
159 |
-
<option value="palette"<?php selected( 'palette', generateblocks_get_option( 'color_component_display' ) ); ?>><?php esc_html_e( 'Color Palette', 'generateblocks' ); ?></option>
|
160 |
-
<option value="custom-colors"<?php selected( 'custom-colors', generateblocks_get_option( 'color_component_display' ) ); ?>><?php esc_html_e( 'Custom Colors', 'generateblocks' ); ?></option>
|
161 |
-
</select>
|
162 |
-
<p><?php esc_html_e( 'Choose what the Color Component displays by default.', 'generateblocks' ); ?></p>
|
163 |
-
</td>
|
164 |
-
</tr>
|
165 |
-
<?php
|
166 |
-
/**
|
167 |
-
* Do generateblocks_settings_fields hook.
|
168 |
-
*
|
169 |
-
* @since 1.0
|
170 |
-
*/
|
171 |
-
do_action( 'generateblocks_settings_fields' );
|
172 |
-
?>
|
173 |
-
</tbody>
|
174 |
-
</table>
|
175 |
-
<?php
|
176 |
-
submit_button();
|
177 |
-
?>
|
178 |
-
</form>
|
179 |
</div>
|
180 |
</div>
|
181 |
<?php
|
182 |
}
|
183 |
-
|
184 |
-
/**
|
185 |
-
* Add a message when settings are saved.
|
186 |
-
*
|
187 |
-
* @since 1.1
|
188 |
-
*/
|
189 |
-
public function admin_notices() {
|
190 |
-
$screen = get_current_screen();
|
191 |
-
|
192 |
-
if ( 'settings_page_generateblocks-settings' !== $screen->base ) {
|
193 |
-
return;
|
194 |
-
}
|
195 |
-
|
196 |
-
if ( isset( $_GET['settings-updated'] ) && 'true' == $_GET['settings-updated'] ) { // phpcs:ignore -- Just checking, false positive.
|
197 |
-
printf(
|
198 |
-
'<div class="notice notice-success inline"><p><strong>Settings saved.</strong></p></div>',
|
199 |
-
esc_html__( 'Settings saved.', 'generateblocks' )
|
200 |
-
);
|
201 |
-
}
|
202 |
-
}
|
203 |
}
|
204 |
|
205 |
-
|
13 |
* Build our settings page.
|
14 |
*/
|
15 |
class GenerateBlocks_Settings {
|
16 |
+
/**
|
17 |
+
* Instance.
|
18 |
+
*
|
19 |
+
* @access private
|
20 |
+
* @var object Instance
|
21 |
+
*/
|
22 |
+
private static $instance;
|
23 |
+
|
24 |
+
/**
|
25 |
+
* Initiator.
|
26 |
+
*
|
27 |
+
* @return object initialized object of class.
|
28 |
+
*/
|
29 |
+
public static function get_instance() {
|
30 |
+
if ( ! isset( self::$instance ) ) {
|
31 |
+
self::$instance = new self();
|
32 |
+
}
|
33 |
+
|
34 |
+
return self::$instance;
|
35 |
+
}
|
36 |
+
|
37 |
/**
|
38 |
* Constructor.
|
39 |
*/
|
40 |
public function __construct() {
|
41 |
add_action( 'admin_menu', array( $this, 'add_menu' ) );
|
42 |
+
add_action( 'generateblocks_settings_area', array( $this, 'add_settings_container' ) );
|
|
|
|
|
|
|
|
|
|
|
43 |
}
|
44 |
|
45 |
/**
|
46 |
* Add our Dashboard menu item.
|
47 |
*/
|
48 |
public function add_menu() {
|
49 |
+
$settings = add_submenu_page(
|
50 |
+
'generateblocks',
|
51 |
+
__( 'Settings', 'generateblocks' ),
|
52 |
__( 'Settings', 'generateblocks' ),
|
|
|
53 |
'manage_options',
|
54 |
'generateblocks-settings',
|
55 |
+
array( $this, 'settings_page' ),
|
56 |
+
1
|
57 |
);
|
58 |
|
59 |
add_action( "admin_print_scripts-$settings", array( $this, 'enqueue_scripts' ) );
|
65 |
public function enqueue_scripts() {
|
66 |
wp_enqueue_script(
|
67 |
'generateblocks-settings',
|
68 |
+
GENERATEBLOCKS_DIR_URL . 'dist/dashboard.js',
|
69 |
+
array( 'wp-api', 'wp-i18n', 'wp-components', 'wp-element', 'wp-api-fetch' ),
|
70 |
+
GENERATEBLOCKS_VERSION,
|
71 |
true
|
72 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
|
74 |
+
wp_localize_script(
|
75 |
+
'generateblocks-settings',
|
76 |
+
'generateBlocksSettings',
|
77 |
+
array(
|
78 |
+
'settings' => wp_parse_args(
|
79 |
+
get_option( 'generateblocks', array() ),
|
80 |
+
generateblocks_get_option_defaults()
|
81 |
+
),
|
82 |
+
)
|
83 |
+
);
|
84 |
}
|
85 |
|
86 |
/**
|
87 |
+
* Add settings container.
|
88 |
+
*
|
89 |
+
* @since 1.2.0
|
90 |
*/
|
91 |
+
public function add_settings_container() {
|
92 |
+
echo '<div id="gblocks-block-default-settings"></div>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
93 |
}
|
94 |
|
95 |
/**
|
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>
|
108 |
</div>
|
109 |
<?php
|
110 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
111 |
}
|
112 |
|
113 |
+
GenerateBlocks_Settings::get_instance();
|
includes/dashboard.php
CHANGED
@@ -9,54 +9,102 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
9 |
exit; // Exit if accessed directly.
|
10 |
}
|
11 |
|
12 |
-
add_action( 'admin_menu', 'generateblocks_register_dashboard' );
|
13 |
/**
|
14 |
* Register our Dashboard page.
|
15 |
*
|
16 |
* @since 0.1
|
17 |
*/
|
18 |
function generateblocks_register_dashboard() {
|
19 |
-
|
20 |
__( 'GenerateBlocks', 'generateblocks' ),
|
21 |
__( 'GenerateBlocks', 'generateblocks' ),
|
22 |
'manage_options',
|
23 |
'generateblocks',
|
24 |
'generateblocks_do_dashboard'
|
25 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
}
|
27 |
|
28 |
-
add_action( 'admin_head', 'generateblocks_fix_dashboard_menu_item' );
|
29 |
/**
|
30 |
-
*
|
31 |
*
|
32 |
-
* @since 1.0
|
33 |
*/
|
34 |
-
function
|
35 |
-
|
36 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
|
38 |
-
if (
|
39 |
-
$
|
40 |
}
|
41 |
|
42 |
-
|
43 |
}
|
44 |
|
45 |
-
add_action( 'admin_enqueue_scripts', '
|
46 |
/**
|
47 |
* Add our scripts to the page.
|
48 |
*
|
49 |
* @since 0.1
|
50 |
*/
|
51 |
-
function
|
52 |
-
|
|
|
|
|
|
|
|
|
|
|
53 |
|
54 |
-
|
|
|
|
|
|
|
55 |
wp_enqueue_style(
|
56 |
-
'generateblocks-
|
57 |
-
GENERATEBLOCKS_DIR_URL . '
|
58 |
-
array(),
|
59 |
-
|
60 |
);
|
61 |
}
|
62 |
}
|
@@ -72,13 +120,13 @@ function generateblocks_dashboard_navigation() {
|
|
72 |
array(
|
73 |
'dashboard' => array(
|
74 |
'name' => __( 'Dashboard', 'generateblocks' ),
|
75 |
-
'url' => admin_url( '
|
76 |
-
'class' => '
|
77 |
),
|
78 |
'settings' => array(
|
79 |
'name' => __( 'Settings', 'generateblocks' ),
|
80 |
-
'url' => admin_url( '
|
81 |
-
'class' => '
|
82 |
),
|
83 |
)
|
84 |
);
|
@@ -103,6 +151,39 @@ function generateblocks_dashboard_navigation() {
|
|
103 |
<?php
|
104 |
}
|
105 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
106 |
/**
|
107 |
* Output our Dashboard HTML.
|
108 |
*
|
@@ -111,18 +192,7 @@ function generateblocks_dashboard_navigation() {
|
|
111 |
function generateblocks_do_dashboard() {
|
112 |
?>
|
113 |
<div class="wrap gblocks-dashboard-wrap">
|
114 |
-
|
115 |
-
<div class="gblocks-dashboard-header-content">
|
116 |
-
<h1 class="gblocks-logo">
|
117 |
-
<a href="https://generateblocks.com" target="_blank" rel="noopener noreferrer">
|
118 |
-
<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' ); ?>" />
|
119 |
-
</a>
|
120 |
-
<span class="gblocks-version"><?php echo esc_html( GENERATEBLOCKS_VERSION ); ?></span>
|
121 |
-
</h1>
|
122 |
-
</div>
|
123 |
-
|
124 |
-
<?php generateblocks_dashboard_navigation(); ?>
|
125 |
-
</div>
|
126 |
|
127 |
<div class="gblocks-dashboard-intro-content">
|
128 |
<?php esc_html_e( 'A small collection of lightweight WordPress blocks that can accomplish nearly anything.', 'generateblocks' ); ?>
|
@@ -184,7 +254,7 @@ function generateblocks_do_dashboard() {
|
|
184 |
<p><?php esc_html_e( 'Looking for a WordPress theme? GenerateBlocks and GeneratePress are built with the same principles in mind and complement each other perfectly.', 'generateblocks' ); ?></p>
|
185 |
<div class="stats">
|
186 |
<div class="downloads">
|
187 |
-
<strong>
|
188 |
</div>
|
189 |
|
190 |
<div class="stars">
|
@@ -197,7 +267,7 @@ function generateblocks_do_dashboard() {
|
|
197 |
</div>
|
198 |
|
199 |
<div class="active-websites">
|
200 |
-
<strong>
|
201 |
</div>
|
202 |
</div>
|
203 |
<a class="gblocks-button" href="https://generatepress.com" target="_blank" rel="noreferrer noopener"><?php esc_html_e( 'Learn more', 'generateblocks' ); ?></a>
|
@@ -224,7 +294,7 @@ function generateblocks_dashboard_redirect() {
|
|
224 |
|
225 |
if ( $do_redirect ) {
|
226 |
delete_option( 'generateblocks_do_activation_redirect' );
|
227 |
-
wp_safe_redirect( esc_url( admin_url( '
|
228 |
exit;
|
229 |
}
|
230 |
}
|
9 |
exit; // Exit if accessed directly.
|
10 |
}
|
11 |
|
12 |
+
add_action( 'admin_menu', 'generateblocks_register_dashboard', 9 );
|
13 |
/**
|
14 |
* Register our Dashboard page.
|
15 |
*
|
16 |
* @since 0.1
|
17 |
*/
|
18 |
function generateblocks_register_dashboard() {
|
19 |
+
$dashboard = add_menu_page(
|
20 |
__( 'GenerateBlocks', 'generateblocks' ),
|
21 |
__( 'GenerateBlocks', 'generateblocks' ),
|
22 |
'manage_options',
|
23 |
'generateblocks',
|
24 |
'generateblocks_do_dashboard'
|
25 |
);
|
26 |
+
|
27 |
+
add_submenu_page(
|
28 |
+
'generateblocks',
|
29 |
+
__( 'Dashboard', 'generateblocks' ),
|
30 |
+
__( 'Dashboard', 'generateblocks' ),
|
31 |
+
'manage_options',
|
32 |
+
'generateblocks'
|
33 |
+
);
|
34 |
+
|
35 |
+
add_action( "admin_print_styles-$dashboard", 'generateblocks_enqueue_dashboard_scripts' );
|
36 |
}
|
37 |
|
|
|
38 |
/**
|
39 |
+
* Add our Dashboard-specific scripts.
|
40 |
*
|
41 |
+
* @since 1.0.0
|
42 |
*/
|
43 |
+
function generateblocks_enqueue_dashboard_scripts() {
|
44 |
+
wp_enqueue_style(
|
45 |
+
'generateblocks-dashboard',
|
46 |
+
GENERATEBLOCKS_DIR_URL . 'assets/css/dashboard.css',
|
47 |
+
array(),
|
48 |
+
GENERATEBLOCKS_VERSION
|
49 |
+
);
|
50 |
+
}
|
51 |
+
|
52 |
+
/**
|
53 |
+
* Get a list of our Dashboard pages.
|
54 |
+
*
|
55 |
+
* @since 1.2.0
|
56 |
+
*/
|
57 |
+
function generateblocks_get_dashboard_pages() {
|
58 |
+
return apply_filters(
|
59 |
+
'generateblocks_dashboard_screens',
|
60 |
+
array(
|
61 |
+
'toplevel_page_generateblocks',
|
62 |
+
'generateblocks_page_generateblocks-settings',
|
63 |
+
)
|
64 |
+
);
|
65 |
+
}
|
66 |
+
|
67 |
+
add_filter( 'admin_body_class', 'generateblocks_set_admin_body_classes' );
|
68 |
+
/**
|
69 |
+
* Add admin body classes when needed.
|
70 |
+
*
|
71 |
+
* @since 1.2.0
|
72 |
+
* @param string $classes The existing classes.
|
73 |
+
*/
|
74 |
+
function generateblocks_set_admin_body_classes( $classes ) {
|
75 |
+
$dashboard_pages = generateblocks_get_dashboard_pages();
|
76 |
+
$current_screen = get_current_screen();
|
77 |
|
78 |
+
if ( in_array( $current_screen->id, $dashboard_pages ) ) {
|
79 |
+
$classes .= ' generateblocks-dashboard-page';
|
80 |
}
|
81 |
|
82 |
+
return $classes;
|
83 |
}
|
84 |
|
85 |
+
add_action( 'admin_enqueue_scripts', 'generateblocks_enqueue_global_dashboard_scripts' );
|
86 |
/**
|
87 |
* Add our scripts to the page.
|
88 |
*
|
89 |
* @since 0.1
|
90 |
*/
|
91 |
+
function generateblocks_enqueue_global_dashboard_scripts() {
|
92 |
+
wp_enqueue_style(
|
93 |
+
'generateblocks-dashboard-global',
|
94 |
+
GENERATEBLOCKS_DIR_URL . 'assets/css/dashboard-global.css',
|
95 |
+
array(),
|
96 |
+
GENERATEBLOCKS_VERSION
|
97 |
+
);
|
98 |
|
99 |
+
$dashboard_pages = generateblocks_get_dashboard_pages();
|
100 |
+
$current_screen = get_current_screen();
|
101 |
+
|
102 |
+
if ( in_array( $current_screen->id, $dashboard_pages ) ) {
|
103 |
wp_enqueue_style(
|
104 |
+
'generateblocks-settings-build',
|
105 |
+
GENERATEBLOCKS_DIR_URL . 'dist/dashboard.css',
|
106 |
+
array( 'wp-components' ),
|
107 |
+
GENERATEBLOCKS_VERSION
|
108 |
);
|
109 |
}
|
110 |
}
|
120 |
array(
|
121 |
'dashboard' => array(
|
122 |
'name' => __( 'Dashboard', 'generateblocks' ),
|
123 |
+
'url' => admin_url( 'admin.php?page=generateblocks' ),
|
124 |
+
'class' => 'toplevel_page_generateblocks' === $screen->id ? 'active' : '',
|
125 |
),
|
126 |
'settings' => array(
|
127 |
'name' => __( 'Settings', 'generateblocks' ),
|
128 |
+
'url' => admin_url( 'admin.php?page=generateblocks-settings' ),
|
129 |
+
'class' => 'generateblocks_page_generateblocks-settings' === $screen->id ? 'active' : '',
|
130 |
),
|
131 |
)
|
132 |
);
|
151 |
<?php
|
152 |
}
|
153 |
|
154 |
+
/**
|
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( $title ) {
|
161 |
+
?>
|
162 |
+
<div class="gblocks-dashboard-header">
|
163 |
+
<div class="gblocks-dashboard-header-content">
|
164 |
+
<?php
|
165 |
+
if ( 'dashboard' === $title ) :
|
166 |
+
?>
|
167 |
+
<h1 class="gblocks-logo">
|
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(); ?>
|
183 |
+
</div>
|
184 |
+
<?php
|
185 |
+
}
|
186 |
+
|
187 |
/**
|
188 |
* Output our Dashboard HTML.
|
189 |
*
|
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' ); ?>
|
254 |
<p><?php esc_html_e( 'Looking for a WordPress theme? GenerateBlocks and GeneratePress are built with the same principles in mind and complement each other perfectly.', 'generateblocks' ); ?></p>
|
255 |
<div class="stats">
|
256 |
<div class="downloads">
|
257 |
+
<strong>3,000,000+</strong><br> <?php esc_html_e( 'Downloads', 'generateblocks' ); ?>
|
258 |
</div>
|
259 |
|
260 |
<div class="stars">
|
267 |
</div>
|
268 |
|
269 |
<div class="active-websites">
|
270 |
+
<strong>70,000+</strong><br> <?php esc_html_e( 'Happy customers', 'generateblocks' ); ?>
|
271 |
</div>
|
272 |
</div>
|
273 |
<a class="gblocks-button" href="https://generatepress.com" target="_blank" rel="noreferrer noopener"><?php esc_html_e( 'Learn more', 'generateblocks' ); ?></a>
|
294 |
|
295 |
if ( $do_redirect ) {
|
296 |
delete_option( 'generateblocks_do_activation_redirect' );
|
297 |
+
wp_safe_redirect( esc_url( admin_url( 'admin.php?page=generateblocks' ) ) );
|
298 |
exit;
|
299 |
}
|
300 |
}
|
includes/defaults.php
CHANGED
@@ -26,6 +26,7 @@ function generateblocks_get_block_defaults() {
|
|
26 |
}
|
27 |
|
28 |
$defaults['container'] = array(
|
|
|
29 |
'isGrid' => false,
|
30 |
'containerWidth' => $container_width,
|
31 |
'outerContainer' => 'full',
|
@@ -99,6 +100,7 @@ function generateblocks_get_block_defaults() {
|
|
99 |
'gradientColorTwo' => '#000000',
|
100 |
'gradientColorTwoOpacity' => 0.3,
|
101 |
'gradientColorStopTwo' => '',
|
|
|
102 |
'textColor' => '',
|
103 |
'linkColor' => '',
|
104 |
'linkColorHover' => '',
|
@@ -112,6 +114,7 @@ function generateblocks_get_block_defaults() {
|
|
112 |
'repeat' => 'no-repeat',
|
113 |
'attachment' => '',
|
114 |
),
|
|
|
115 |
'width' => 50,
|
116 |
'widthTablet' => '',
|
117 |
'widthMobile' => 100,
|
@@ -119,6 +122,7 @@ function generateblocks_get_block_defaults() {
|
|
119 |
'verticalAlignmentTablet' => 'inherit',
|
120 |
'verticalAlignmentMobile' => 'inherit',
|
121 |
'zindex' => '',
|
|
|
122 |
'removeVerticalGap' => false,
|
123 |
'removeVerticalGapTablet' => false,
|
124 |
'removeVerticalGapMobile' => false,
|
@@ -358,6 +362,19 @@ function generateblocks_get_block_defaults() {
|
|
358 |
'borderSizeRightMobile' => '',
|
359 |
'borderSizeBottomMobile' => '',
|
360 |
'borderSizeLeftMobile' => '',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
361 |
'icon' => '',
|
362 |
'hasIcon' => false,
|
363 |
'iconColor' => false,
|
@@ -405,7 +422,7 @@ function generateblocks_get_option_defaults() {
|
|
405 |
'generateblocks_option_defaults',
|
406 |
array(
|
407 |
'css_print_method' => 'file',
|
408 |
-
'
|
409 |
)
|
410 |
);
|
411 |
}
|
@@ -435,6 +452,20 @@ function generateblocks_get_default_styles() {
|
|
435 |
'gridItemPaddingBottom' => '0',
|
436 |
'gridItemPaddingLeft' => '0',
|
437 |
'bgImageSize' => 'full',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
438 |
),
|
439 |
);
|
440 |
|
26 |
}
|
27 |
|
28 |
$defaults['container'] = array(
|
29 |
+
'tagName' => 'div',
|
30 |
'isGrid' => false,
|
31 |
'containerWidth' => $container_width,
|
32 |
'outerContainer' => 'full',
|
100 |
'gradientColorTwo' => '#000000',
|
101 |
'gradientColorTwoOpacity' => 0.3,
|
102 |
'gradientColorStopTwo' => '',
|
103 |
+
'gradientSelector' => 'element',
|
104 |
'textColor' => '',
|
105 |
'linkColor' => '',
|
106 |
'linkColorHover' => '',
|
114 |
'repeat' => 'no-repeat',
|
115 |
'attachment' => '',
|
116 |
),
|
117 |
+
'bgImageSize' => 'full',
|
118 |
'width' => 50,
|
119 |
'widthTablet' => '',
|
120 |
'widthMobile' => 100,
|
122 |
'verticalAlignmentTablet' => 'inherit',
|
123 |
'verticalAlignmentMobile' => 'inherit',
|
124 |
'zindex' => '',
|
125 |
+
'innerZindex' => '',
|
126 |
'removeVerticalGap' => false,
|
127 |
'removeVerticalGapTablet' => false,
|
128 |
'removeVerticalGapMobile' => false,
|
362 |
'borderSizeRightMobile' => '',
|
363 |
'borderSizeBottomMobile' => '',
|
364 |
'borderSizeLeftMobile' => '',
|
365 |
+
'borderRadiusTopRight' => '',
|
366 |
+
'borderRadiusBottomRight' => '',
|
367 |
+
'borderRadiusBottomLeft' => '',
|
368 |
+
'borderRadiusTopLeft' => '',
|
369 |
+
'borderRadiusTopRightTablet' => '',
|
370 |
+
'borderRadiusBottomRightTablet' => '',
|
371 |
+
'borderRadiusBottomLeftTablet' => '',
|
372 |
+
'borderRadiusTopLeftTablet' => '',
|
373 |
+
'borderRadiusTopRightMobile' => '',
|
374 |
+
'borderRadiusBottomRightMobile' => '',
|
375 |
+
'borderRadiusBottomLeftMobile' => '',
|
376 |
+
'borderRadiusTopLeftMobile' => '',
|
377 |
+
'borderRadiusUnit' => 'px',
|
378 |
'icon' => '',
|
379 |
'hasIcon' => false,
|
380 |
'iconColor' => false,
|
422 |
'generateblocks_option_defaults',
|
423 |
array(
|
424 |
'css_print_method' => 'file',
|
425 |
+
'sync_responsive_previews' => true,
|
426 |
)
|
427 |
);
|
428 |
}
|
452 |
'gridItemPaddingBottom' => '0',
|
453 |
'gridItemPaddingLeft' => '0',
|
454 |
'bgImageSize' => 'full',
|
455 |
+
'shapeDividers' => array(
|
456 |
+
'shape' => 'gb-waves-1',
|
457 |
+
'location' => 'bottom',
|
458 |
+
'height' => 200,
|
459 |
+
'heightTablet' => '',
|
460 |
+
'heightMobile' => '',
|
461 |
+
'width' => 100,
|
462 |
+
'widthTablet' => '',
|
463 |
+
'widthMobile' => '',
|
464 |
+
'flipHorizontally' => false,
|
465 |
+
'zindex' => '',
|
466 |
+
'color' => '#000000',
|
467 |
+
'colorOpacity' => 1,
|
468 |
+
),
|
469 |
),
|
470 |
);
|
471 |
|
includes/functions.php
CHANGED
@@ -41,6 +41,12 @@ function generateblocks_get_block_data( $content, $data = array(), $depth = 0 )
|
|
41 |
}
|
42 |
|
43 |
if ( 'generateblocks/headline' === $block['blockName'] ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
$data['headline'][] = $block['attrs'];
|
45 |
}
|
46 |
|
@@ -49,6 +55,12 @@ function generateblocks_get_block_data( $content, $data = array(), $depth = 0 )
|
|
49 |
}
|
50 |
|
51 |
if ( 'generateblocks/button' === $block['blockName'] ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
$data['button'][] = $block['attrs'];
|
53 |
}
|
54 |
|
@@ -158,8 +170,10 @@ function generateblocks_get_media_query( $type ) {
|
|
158 |
$queries = apply_filters(
|
159 |
'generateblocks_media_query',
|
160 |
array(
|
161 |
-
'
|
162 |
-
'tablet'
|
|
|
|
|
163 |
)
|
164 |
);
|
165 |
|
@@ -444,65 +458,288 @@ function generateblocks_has_number_value( $value ) {
|
|
444 |
}
|
445 |
|
446 |
/**
|
447 |
-
* Get the background-image value.
|
448 |
*
|
449 |
-
* @param
|
450 |
-
* @param array
|
451 |
*/
|
452 |
-
function generateblocks_get_background_image_css( $
|
453 |
-
$
|
454 |
-
'backgroundColor' => $settings['backgroundColor'],
|
455 |
-
'backgroundColorOpacity' => $settings['backgroundColorOpacity'],
|
456 |
-
'gradient' => $settings['gradient'],
|
457 |
-
'gradientDirection' => $settings['gradientDirection'],
|
458 |
-
'gradientColorOne' => $settings['gradientColorOne'],
|
459 |
-
'gradientColorOneOpacity' => $settings['gradientColorOneOpacity'],
|
460 |
-
'gradientColorStopOne' => $settings['gradientColorStopOne'],
|
461 |
-
'gradientColorTwo' => $settings['gradientColorTwo'],
|
462 |
-
'gradientColorTwoOpacity' => $settings['gradientColorTwoOpacity'],
|
463 |
-
'gradientColorStopTwo' => $settings['gradientColorStopTwo'],
|
464 |
-
'bgImage' => $settings['bgImage'],
|
465 |
-
'bgOptions' => $settings['bgOptions'],
|
466 |
-
);
|
467 |
|
468 |
-
$
|
469 |
-
$
|
470 |
-
$
|
471 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
472 |
|
473 |
-
$
|
474 |
-
|
475 |
-
$gradientColorStopTwoValue = '';
|
476 |
|
477 |
-
|
478 |
-
|
479 |
-
$args['gradientColorTwo'] = generateblocks_hex2rgba( $args['gradientColorTwo'], $args['gradientColorTwoOpacity'] );
|
480 |
|
481 |
-
|
482 |
-
|
483 |
-
|
|
|
|
|
|
|
|
|
484 |
}
|
485 |
|
486 |
-
|
487 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
488 |
}
|
489 |
}
|
490 |
|
491 |
-
|
492 |
-
|
493 |
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
500 |
} else {
|
501 |
-
$
|
502 |
}
|
503 |
-
} elseif ( $args['gradient'] ) {
|
504 |
-
$background_image = 'linear-gradient(' . $args['gradientDirection'] . 'deg, ' . $args['gradientColorOne'] . $gradientColorStopOneValue . ', ' . $args['gradientColorTwo'] . $gradientColorStopTwoValue . ')';
|
505 |
}
|
506 |
|
507 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
508 |
}
|
41 |
}
|
42 |
|
43 |
if ( 'generateblocks/headline' === $block['blockName'] ) {
|
44 |
+
if ( isset( $block['innerHTML'] ) ) {
|
45 |
+
if ( strpos( trim( $block['innerHTML'] ), '<div class="gb-headline-wrapper' ) === 0 ) {
|
46 |
+
$block['attrs']['hasWrapper'] = true;
|
47 |
+
}
|
48 |
+
}
|
49 |
+
|
50 |
$data['headline'][] = $block['attrs'];
|
51 |
}
|
52 |
|
55 |
}
|
56 |
|
57 |
if ( 'generateblocks/button' === $block['blockName'] ) {
|
58 |
+
if ( ! isset( $block['attrs']['hasUrl'] ) && isset( $block['innerHTML'] ) ) {
|
59 |
+
if ( strpos( trim( $block['innerHTML'] ), '<a' ) === 0 ) {
|
60 |
+
$block['attrs']['hasUrl'] = true;
|
61 |
+
}
|
62 |
+
}
|
63 |
+
|
64 |
$data['button'][] = $block['attrs'];
|
65 |
}
|
66 |
|
170 |
$queries = apply_filters(
|
171 |
'generateblocks_media_query',
|
172 |
array(
|
173 |
+
'desktop' => '(min-width: 1025px)',
|
174 |
+
'tablet' => '(max-width: 1024px)',
|
175 |
+
'tablet_only' => '(max-width: 1024px) and (min-width: 768px)',
|
176 |
+
'mobile' => '(max-width: 767px)',
|
177 |
)
|
178 |
);
|
179 |
|
458 |
}
|
459 |
|
460 |
/**
|
461 |
+
* Get the background-image value for our Container block.
|
462 |
*
|
463 |
+
* @param string $type Gradient or background image.
|
464 |
+
* @param array $settings Our background image settings.
|
465 |
*/
|
466 |
+
function generateblocks_get_background_image_css( $type, $settings ) {
|
467 |
+
$gradient = '';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
468 |
|
469 |
+
if ( $settings['gradient'] ) {
|
470 |
+
$gradientColorStopOneValue = '';
|
471 |
+
$gradientColorStopTwoValue = '';
|
472 |
+
$gradientColorOneValue = generateblocks_hex2rgba( $settings['gradientColorOne'], $settings['gradientColorOneOpacity'] );
|
473 |
+
$gradientColorTwoValue = generateblocks_hex2rgba( $settings['gradientColorTwo'], $settings['gradientColorTwoOpacity'] );
|
474 |
+
|
475 |
+
if ( $settings['gradientColorOne'] && '' !== $settings['gradientColorStopOne'] ) {
|
476 |
+
$gradientColorStopOneValue = ' ' . $settings['gradientColorStopOne'] . '%';
|
477 |
+
}
|
478 |
+
|
479 |
+
if ( $settings['gradientColorTwo'] && '' !== $settings['gradientColorStopTwo'] ) {
|
480 |
+
$gradientColorStopTwoValue = ' ' . $settings['gradientColorStopTwo'] . '%';
|
481 |
+
}
|
482 |
+
|
483 |
+
$gradient = 'linear-gradient(' . $settings['gradientDirection'] . 'deg, ' . $gradientColorOneValue . $gradientColorStopOneValue . ', ' . $gradientColorTwoValue . $gradientColorStopTwoValue . ')';
|
484 |
+
}
|
485 |
+
|
486 |
+
if ( 'gradient' === $type ) {
|
487 |
+
return $gradient;
|
488 |
+
}
|
489 |
+
|
490 |
+
$backgroundImage = '';
|
491 |
|
492 |
+
if ( $settings['bgImage'] ) {
|
493 |
+
$url = '';
|
|
|
494 |
|
495 |
+
if ( isset( $settings['bgImage']['id'] ) ) {
|
496 |
+
$image_src = wp_get_attachment_image_src( $settings['bgImage']['id'], $settings['bgImageSize'] );
|
|
|
497 |
|
498 |
+
if ( is_array( $image_src ) ) {
|
499 |
+
$url = $image_src[0];
|
500 |
+
} else {
|
501 |
+
$url = $settings['bgImage']['image']['url'];
|
502 |
+
}
|
503 |
+
} else {
|
504 |
+
$url = $settings['bgImage']['image']['url'];
|
505 |
}
|
506 |
|
507 |
+
$url = apply_filters( 'generateblocks_background_image_url', $url, $settings );
|
508 |
+
|
509 |
+
// Old background image overlays mixed with our gradients.
|
510 |
+
if (
|
511 |
+
'element' === $settings['bgOptions']['selector'] &&
|
512 |
+
( $settings['backgroundColor'] || $settings['gradient'] ) &&
|
513 |
+
isset( $settings['bgOptions']['overlay'] ) &&
|
514 |
+
$settings['bgOptions']['overlay']
|
515 |
+
) {
|
516 |
+
if ( $settings['gradient'] ) {
|
517 |
+
$backgroundImage = $gradient . ', url(' . esc_url( $url ) . ')';
|
518 |
+
} elseif ( $settings['backgroundColor'] ) {
|
519 |
+
$settings['backgroundColor'] = generateblocks_hex2rgba( $settings['backgroundColor'], $settings['backgroundColorOpacity'] );
|
520 |
+
$backgroundImage = 'linear-gradient(0deg, ' . $settings['backgroundColor'] . ', ' . $settings['backgroundColor'] . '), url(' . esc_url( $url ) . ')';
|
521 |
+
}
|
522 |
+
} else {
|
523 |
+
$backgroundImage = 'url(' . esc_url( $url ) . ')';
|
524 |
}
|
525 |
}
|
526 |
|
527 |
+
return $backgroundImage;
|
528 |
+
}
|
529 |
|
530 |
+
/**
|
531 |
+
* Build list of attributes into a string and apply contextual filter on string.
|
532 |
+
*
|
533 |
+
* The contextual filter is of the form `generateblocks_attr_{context}_output`.
|
534 |
+
*
|
535 |
+
* @since 1.2.0
|
536 |
+
*
|
537 |
+
* @param string $context The context, to build filter name.
|
538 |
+
* @param array $attributes Optional. Extra attributes to merge with defaults.
|
539 |
+
* @param array $settings Optional. Custom data to pass to filter.
|
540 |
+
* @return string String of HTML attributes and values.
|
541 |
+
*/
|
542 |
+
function generateblocks_attr( $context, $attributes = array(), $settings = array() ) {
|
543 |
+
$attributes = generateblocks_parse_attr( $context, $attributes, $settings );
|
544 |
+
|
545 |
+
$output = '';
|
546 |
+
|
547 |
+
// Cycle through attributes, build tag attribute string.
|
548 |
+
foreach ( $attributes as $key => $value ) {
|
549 |
+
|
550 |
+
if ( ! $value ) {
|
551 |
+
continue;
|
552 |
+
}
|
553 |
+
|
554 |
+
if ( true === $value ) {
|
555 |
+
$output .= esc_html( $key ) . ' ';
|
556 |
} else {
|
557 |
+
$output .= sprintf( '%s="%s" ', esc_html( $key ), esc_attr( $value ) );
|
558 |
}
|
|
|
|
|
559 |
}
|
560 |
|
561 |
+
$output = apply_filters( "generateblocks_attr_{$context}_output", $output, $attributes, $settings, $context );
|
562 |
+
|
563 |
+
return trim( $output );
|
564 |
+
}
|
565 |
+
|
566 |
+
/**
|
567 |
+
* Merge array of attributes with defaults, and apply contextual filter on array.
|
568 |
+
*
|
569 |
+
* The contextual filter is of the form `generateblocks_attr_{context}`.
|
570 |
+
*
|
571 |
+
* @since 1.2.0
|
572 |
+
*
|
573 |
+
* @param string $context The context, to build filter name.
|
574 |
+
* @param array $attributes Optional. Extra attributes to merge with defaults.
|
575 |
+
* @param array $settings Optional. Custom data to pass to filter.
|
576 |
+
* @return array Merged and filtered attributes.
|
577 |
+
*/
|
578 |
+
function generateblocks_parse_attr( $context, $attributes = array(), $settings = array() ) {
|
579 |
+
$defaults = array(
|
580 |
+
'class' => sanitize_html_class( $context ),
|
581 |
+
);
|
582 |
+
|
583 |
+
$attributes = wp_parse_args( $attributes, $defaults );
|
584 |
+
|
585 |
+
// Contextual filter.
|
586 |
+
return apply_filters( "generateblocks_attr_{$context}", $attributes, $settings, $context );
|
587 |
+
}
|
588 |
+
|
589 |
+
/**
|
590 |
+
* Generate our SVG shape dividers.
|
591 |
+
*
|
592 |
+
* @since 1.2.0
|
593 |
+
*/
|
594 |
+
function generateblocks_get_svg_shapes() {
|
595 |
+
return apply_filters(
|
596 |
+
'generateblocks_svg_shapes',
|
597 |
+
array(
|
598 |
+
'gb-waves' => array(
|
599 |
+
'group' => esc_attr__( 'Waves', 'generateblocks' ),
|
600 |
+
'svgs' => array(
|
601 |
+
'gb-waves-1' => array(
|
602 |
+
/* translators: Shape number */
|
603 |
+
'label' => sprintf( __( 'Wave %s', 'generateblocks' ), '1' ),
|
604 |
+
'icon' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 194.3" preserveAspectRatio="none"><path d="M1200 133.3l-50 8.9c-50 8.6-150 26.9-250 31.1-100 4.2-200-4.2-300-26.7S400 89.2 300 62.2C200 35.8 100 17.5 50 8.9L0 0v194.3h1200v-61z"/></svg>',
|
605 |
+
),
|
606 |
+
'gb-waves-2' => array(
|
607 |
+
/* translators: Shape number */
|
608 |
+
'label' => sprintf( __( 'Wave %s', 'generateblocks' ), '2' ),
|
609 |
+
'icon' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 137.6" preserveAspectRatio="none"><path d="M0 137.6h1200V21.9l-66.7 26.7c-66.7 26.7-200 80-333.3 66.7S533.3 21.9 400 4.2C266.7-13.9 133.3 31.1 66.7 53L0 75.3v62.3z"/></svg>',
|
610 |
+
),
|
611 |
+
'gb-waves-3' => array(
|
612 |
+
/* translators: Shape number */
|
613 |
+
'label' => sprintf( __( 'Wave %s', 'generateblocks' ), '3' ),
|
614 |
+
'icon' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 96.2" preserveAspectRatio="none"><path d="M0 96.2h1200V72.9l-50-8.9c-50-8.6-150-26.9-250-22.2C800 46.2 700 72.9 600 64 500 55.4 400 10.4 300 1.8 200-7.1 100 19.5 50 32.9L0 46.2v50z"/></svg>',
|
615 |
+
),
|
616 |
+
'gb-waves-4' => array(
|
617 |
+
/* translators: Shape number */
|
618 |
+
'label' => sprintf( __( 'Wave %s', 'generateblocks' ), '4' ),
|
619 |
+
'icon' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 130.3" preserveAspectRatio="none"><path d="M0 107.9l40-22.2c40-21.9 120-66.9 200-62.2 80 4.4 160 57.8 240 53.3C560 72 640 10.4 720 1.2S880 37 960 59c80 22.3 160 22.3 200 22.3h40v49H0v-22.4z"/></svg>',
|
620 |
+
),
|
621 |
+
'gb-waves-5' => array(
|
622 |
+
/* translators: Shape number */
|
623 |
+
'label' => sprintf( __( 'Wave %s', 'generateblocks' ), '5' ),
|
624 |
+
'icon' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 218" preserveAspectRatio="none"><path d="M0 218h1200v-31.3l-40 4.4c-40 4.8-120 13.1-200 0-80-13.6-160-48.6-240-66.7-80-17.8-160-17.8-240-8.8-80 8.6-160 26.9-240 8.8-80-17.7-160-71.1-200-97.7L0 0v218z"/></svg>',
|
625 |
+
),
|
626 |
+
'gb-waves-6' => array(
|
627 |
+
/* translators: Shape number */
|
628 |
+
'label' => sprintf( __( 'Wave %s', 'generateblocks' ), '6' ),
|
629 |
+
'icon' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 234" preserveAspectRatio="none"><path d="M0 0l40 40c40 40 120 120 200 115.6 80-4.8 160-93.1 240-111.2C560 26.7 640 80 720 88.9c80 8.6 160-26.4 240-13.3 80 13.6 160 75.2 200 106.7l40 31.1V234H0V0z"/></svg>',
|
630 |
+
),
|
631 |
+
'gb-waves-7' => array(
|
632 |
+
/* translators: Shape number */
|
633 |
+
'label' => sprintf( __( 'Wave %s', 'generateblocks' ), '7' ),
|
634 |
+
'icon' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 217.3" preserveAspectRatio="none"><path d="M1200 195.6l-25-22.2c-25-21.9-75-66.9-125-75.5-50-8.9-100 17.8-150 26.7-50 8.6-100 .2-150-13.3-50-13.1-100-31.4-150-26.7-50 4.4-100 31.1-150 26.7-50-4.8-100-39.8-150-66.7C250 18.1 200-.2 150 0 100-.2 50 18.1 25 26.7L0 35.6v181.7h1200v-21.7z"/></svg>',
|
635 |
+
),
|
636 |
+
'gb-waves-8' => array(
|
637 |
+
/* translators: Shape number */
|
638 |
+
'label' => sprintf( __( 'Wave %s', 'generateblocks' ), '8' ),
|
639 |
+
'icon' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 230.8" preserveAspectRatio="none"><path d="M1200 179.5l-22.2-26.7c-22.2-26.7-66.9-80-111.1-75.6-44.4 4.8-89.2 66.4-133.3 102.2-44.4 35.8-89.2 44.2-133.3 8.9-44.4-35.6-89.2-115.6-133.3-155.6-44.4-40-89.2-40-133.3-17.8C488.9 37 444.2 82 400 81.7c-44.4.2-89.2-44.8-133.3-57.8-44.4-13.6-89.2 4.8-133.3 26.7-44.5 22.2-89.2 48.9-110.9 62.2L0 126.1v104.7H1199.7l.3-51.3z"/></svg>',
|
640 |
+
),
|
641 |
+
),
|
642 |
+
),
|
643 |
+
'gb-angles' => array(
|
644 |
+
'group' => esc_attr__( 'Angles', 'generateblocks' ),
|
645 |
+
'svgs' => array(
|
646 |
+
'gb-angle-1' => array(
|
647 |
+
/* translators: Shape number */
|
648 |
+
'label' => sprintf( __( 'Angle %s', 'generateblocks' ), '1' ),
|
649 |
+
'icon' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 360" preserveAspectRatio="none"><path d="M1200 360H0V0l1200 348z"/></svg>',
|
650 |
+
),
|
651 |
+
),
|
652 |
+
),
|
653 |
+
'gb-curves' => array(
|
654 |
+
'group' => esc_attr__( 'Curves', 'generateblocks' ),
|
655 |
+
'svgs' => array(
|
656 |
+
'gb-curve-1' => array(
|
657 |
+
/* translators: Shape number */
|
658 |
+
'label' => sprintf( __( 'Curve %s', 'generateblocks' ), '1' ),
|
659 |
+
'icon' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 350" preserveAspectRatio="none"><path d="M1200 336.7V350H0V0s22.4 276.4 1200 336.7z"/></svg>',
|
660 |
+
),
|
661 |
+
'gb-curve-2' => array(
|
662 |
+
/* translators: Shape number */
|
663 |
+
'label' => sprintf( __( 'Curve %s', 'generateblocks' ), '2' ),
|
664 |
+
'icon' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 350" preserveAspectRatio="none"><path d="M1200 350V0C22.4 60.3 0 336.7 0 336.7V350h1200z"/></svg>',
|
665 |
+
),
|
666 |
+
'gb-curve-3' => array(
|
667 |
+
/* translators: Shape number */
|
668 |
+
'label' => sprintf( __( 'Curve %s', 'generateblocks' ), '3' ),
|
669 |
+
'icon' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 211.2" preserveAspectRatio="none"><path d="M600 188.4C321.1 188.4 84.3 109.5 0 0v211.2h1200V0c-84.3 109.5-321.1 188.4-600 188.4z"/></svg>',
|
670 |
+
),
|
671 |
+
'gb-curve-4' => array(
|
672 |
+
/* translators: Shape number */
|
673 |
+
'label' => sprintf( __( 'Curve %s', 'generateblocks' ), '4' ),
|
674 |
+
'icon' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 211.2" preserveAspectRatio="none"><path d="M1200 188.4v22.8H0v-22.8C84.3 78.9 321.1 0 600 0s515.7 78.9 600 188.4z"/></svg>',
|
675 |
+
),
|
676 |
+
),
|
677 |
+
),
|
678 |
+
'gb-triangles' => array(
|
679 |
+
'group' => esc_attr__( 'Triangles', 'generateblocks' ),
|
680 |
+
'svgs' => array(
|
681 |
+
'gb-triangle-1' => array(
|
682 |
+
/* translators: Shape number */
|
683 |
+
'label' => sprintf( __( 'Triangle %s', 'generateblocks' ), '1' ),
|
684 |
+
'icon' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 100" preserveAspectRatio="none"><path d="M1200 100H0V0l400 77.2L1200 0z"/></svg>',
|
685 |
+
),
|
686 |
+
'gb-triangle-2' => array(
|
687 |
+
/* translators: Shape number */
|
688 |
+
'label' => sprintf( __( 'Triangle %s', 'generateblocks' ), '2' ),
|
689 |
+
'icon' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 100" preserveAspectRatio="none"><path d="M1200 77.2L400 0 0 77.2V100h1200z"/></svg>',
|
690 |
+
),
|
691 |
+
'gb-triangle-3' => array(
|
692 |
+
/* translators: Shape number */
|
693 |
+
'label' => sprintf( __( 'Triangle %s', 'generateblocks' ), '3' ),
|
694 |
+
'icon' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 70" preserveAspectRatio="none"><path d="M1200 0v70H0V0h530l70 50 70-50z"/></svg>',
|
695 |
+
),
|
696 |
+
'gb-triangle-4' => array(
|
697 |
+
/* translators: Shape number */
|
698 |
+
'label' => sprintf( __( 'Triangle %s', 'generateblocks' ), '4' ),
|
699 |
+
'icon' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 70" preserveAspectRatio="none"><path d="M670 50L600 0l-70 50H0v20h1200V50z"/></svg>',
|
700 |
+
),
|
701 |
+
'gb-triangle-5' => array(
|
702 |
+
/* translators: Shape number */
|
703 |
+
'label' => sprintf( __( 'Triangle %s', 'generateblocks' ), '5' ),
|
704 |
+
'icon' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 50" preserveAspectRatio="none"><path d="M1200 0v50H0V0h560l40 30 40-30z"/></svg>',
|
705 |
+
),
|
706 |
+
'gb-triangle-6' => array(
|
707 |
+
/* translators: Shape number */
|
708 |
+
'label' => sprintf( __( 'Triangle %s', 'generateblocks' ), '6' ),
|
709 |
+
'icon' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 50" preserveAspectRatio="none"><path d="M640 30L600 0l-40 30H0v20h1200V30z"/></svg>',
|
710 |
+
),
|
711 |
+
'gb-triangle-7' => array(
|
712 |
+
/* translators: Shape number */
|
713 |
+
'label' => sprintf( __( 'Triangle %s', 'generateblocks' ), '7' ),
|
714 |
+
'icon' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 230" preserveAspectRatio="none"><path d="M1200 230H0V0l600 207.2L1200 0z"/></svg>',
|
715 |
+
),
|
716 |
+
'gb-triangle-8' => array(
|
717 |
+
/* translators: Shape number */
|
718 |
+
'label' => sprintf( __( 'Triangle %s', 'generateblocks' ), '8' ),
|
719 |
+
'icon' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 230" preserveAspectRatio="none"><path d="M1200 207.2L600 0 0 207.2V230h1200z"/></svg>',
|
720 |
+
),
|
721 |
+
'gb-triangle-9' => array(
|
722 |
+
/* translators: Shape number */
|
723 |
+
'label' => sprintf( __( 'Triangle %s', 'generateblocks' ), '9' ),
|
724 |
+
'icon' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 131" preserveAspectRatio="none"><path d="M1200 131H0V40l154.8 50L410 35l277 69L899 0l301 110z"/></svg>',
|
725 |
+
),
|
726 |
+
'gb-triangle-10' => array(
|
727 |
+
/* translators: Shape number */
|
728 |
+
'label' => sprintf( __( 'Triangle %s', 'generateblocks' ), '10' ),
|
729 |
+
'icon' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 131" preserveAspectRatio="none"><path d="M1200 0L899 110 687 6 410 75 154.8 20 0 70v61h1200z"/></svg>',
|
730 |
+
),
|
731 |
+
'gb-triangle-11' => array(
|
732 |
+
/* translators: Shape number */
|
733 |
+
'label' => sprintf( __( 'Triangle %s', 'generateblocks' ), '11' ),
|
734 |
+
'icon' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 176" preserveAspectRatio="none"><path d="M0 0l400 156 400-88 400 74v34H0z"/></svg>',
|
735 |
+
),
|
736 |
+
'gb-triangle-12' => array(
|
737 |
+
/* translators: Shape number */
|
738 |
+
'label' => sprintf( __( 'Triangle %s', 'generateblocks' ), '12' ),
|
739 |
+
'icon' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 176" preserveAspectRatio="none"><path d="M0 176h1200V14L800 88 400 0 0 156z"/></svg>',
|
740 |
+
),
|
741 |
+
),
|
742 |
+
),
|
743 |
+
)
|
744 |
+
);
|
745 |
}
|
includes/general.php
CHANGED
@@ -22,9 +22,9 @@ add_action( 'enqueue_block_editor_assets', 'generateblocks_do_block_editor_asset
|
|
22 |
function generateblocks_do_block_editor_assets() {
|
23 |
wp_enqueue_script(
|
24 |
'generateblocks',
|
25 |
-
GENERATEBLOCKS_DIR_URL . 'dist/blocks.
|
26 |
array( 'wp-blocks', 'wp-i18n', 'wp-element', 'wp-editor', 'wp-compose', 'wp-data' ),
|
27 |
-
filemtime( GENERATEBLOCKS_DIR . 'dist/blocks.
|
28 |
true
|
29 |
);
|
30 |
|
@@ -32,21 +32,17 @@ function generateblocks_do_block_editor_assets() {
|
|
32 |
wp_set_script_translations( 'generateblocks', 'generateblocks' );
|
33 |
}
|
34 |
|
35 |
-
wp_enqueue_script(
|
36 |
-
'generateblocks-dompurify',
|
37 |
-
GENERATEBLOCKS_DIR_URL . 'assets/js/purify.min.js',
|
38 |
-
array( 'generateblocks' ),
|
39 |
-
filemtime( GENERATEBLOCKS_DIR . 'assets/js/purify.min.js' ),
|
40 |
-
true
|
41 |
-
);
|
42 |
-
|
43 |
wp_enqueue_style(
|
44 |
'generateblocks',
|
45 |
-
GENERATEBLOCKS_DIR_URL . 'dist/blocks.
|
46 |
array( 'wp-edit-blocks' ),
|
47 |
-
filemtime( GENERATEBLOCKS_DIR . 'dist/blocks.
|
48 |
);
|
49 |
|
|
|
|
|
|
|
|
|
50 |
wp_localize_script(
|
51 |
'generateblocks',
|
52 |
'generateBlocksInfo',
|
@@ -54,7 +50,9 @@ function generateblocks_do_block_editor_assets() {
|
|
54 |
'isGeneratePress' => defined( 'GENERATE_VERSION' ),
|
55 |
'hasCustomFields' => post_type_supports( get_post_type(), 'custom-fields' ),
|
56 |
'hasWideAlignSupport' => current_theme_supports( 'align-wide' ),
|
57 |
-
'
|
|
|
|
|
58 |
)
|
59 |
);
|
60 |
|
@@ -197,3 +195,52 @@ function generateblocks_set_excerpt_allowed_blocks( $allowed ) {
|
|
197 |
|
198 |
return $allowed;
|
199 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
function generateblocks_do_block_editor_assets() {
|
23 |
wp_enqueue_script(
|
24 |
'generateblocks',
|
25 |
+
GENERATEBLOCKS_DIR_URL . 'dist/blocks.js',
|
26 |
array( 'wp-blocks', 'wp-i18n', 'wp-element', 'wp-editor', 'wp-compose', 'wp-data' ),
|
27 |
+
filemtime( GENERATEBLOCKS_DIR . 'dist/blocks.js' ),
|
28 |
true
|
29 |
);
|
30 |
|
32 |
wp_set_script_translations( 'generateblocks', 'generateblocks' );
|
33 |
}
|
34 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
wp_enqueue_style(
|
36 |
'generateblocks',
|
37 |
+
GENERATEBLOCKS_DIR_URL . 'dist/blocks.css',
|
38 |
array( 'wp-edit-blocks' ),
|
39 |
+
filemtime( GENERATEBLOCKS_DIR . 'dist/blocks.css' )
|
40 |
);
|
41 |
|
42 |
+
$image_sizes = get_intermediate_image_sizes();
|
43 |
+
$image_sizes = array_diff( $image_sizes, array( '1536x1536', '2048x2048' ) );
|
44 |
+
$image_sizes[] = 'full';
|
45 |
+
|
46 |
wp_localize_script(
|
47 |
'generateblocks',
|
48 |
'generateBlocksInfo',
|
50 |
'isGeneratePress' => defined( 'GENERATE_VERSION' ),
|
51 |
'hasCustomFields' => post_type_supports( get_post_type(), 'custom-fields' ),
|
52 |
'hasWideAlignSupport' => current_theme_supports( 'align-wide' ),
|
53 |
+
'imageSizes' => $image_sizes,
|
54 |
+
'svgShapes' => generateblocks_get_svg_shapes(),
|
55 |
+
'syncResponsivePreviews' => generateblocks_get_option( 'sync_responsive_previews' ),
|
56 |
)
|
57 |
);
|
58 |
|
195 |
|
196 |
return $allowed;
|
197 |
}
|
198 |
+
|
199 |
+
add_filter( 'generateblocks_before_container_close', 'generateblocks_do_shape_divider', 10, 2 );
|
200 |
+
/**
|
201 |
+
* Add shape divider to Container.
|
202 |
+
*
|
203 |
+
* @since 1.2.0
|
204 |
+
* @param string $output The current block output.
|
205 |
+
* @param array $attributes The current block attributes.
|
206 |
+
*/
|
207 |
+
function generateblocks_do_shape_divider( $output, $attributes ) {
|
208 |
+
$defaults = generateblocks_get_block_defaults();
|
209 |
+
|
210 |
+
$settings = wp_parse_args(
|
211 |
+
$attributes,
|
212 |
+
$defaults['container']
|
213 |
+
);
|
214 |
+
|
215 |
+
if ( ! empty( $settings['shapeDividers'] ) ) {
|
216 |
+
$shapes = generateblocks_get_svg_shapes();
|
217 |
+
$shape_values = array();
|
218 |
+
|
219 |
+
foreach ( $shapes as $group => $data ) {
|
220 |
+
if ( ! empty( $data['svgs'] ) && is_array( $data['svgs'] ) ) {
|
221 |
+
foreach ( $data['svgs'] as $key => $shape ) {
|
222 |
+
$shape_values[ $key ] = $shape['icon'];
|
223 |
+
}
|
224 |
+
}
|
225 |
+
}
|
226 |
+
|
227 |
+
$output .= '<div class="gb-shapes">';
|
228 |
+
|
229 |
+
foreach ( (array) $settings['shapeDividers'] as $index => $option ) {
|
230 |
+
if ( ! empty( $option['shape'] ) ) {
|
231 |
+
if ( isset( $shape_values[ $option['shape'] ] ) ) {
|
232 |
+
$shapeNumber = $index + 1;
|
233 |
+
|
234 |
+
$output .= sprintf(
|
235 |
+
'<div class="gb-shape gb-shape-' . $shapeNumber . '">%s</div>',
|
236 |
+
$shape_values[ $option['shape'] ]
|
237 |
+
);
|
238 |
+
}
|
239 |
+
}
|
240 |
+
}
|
241 |
+
|
242 |
+
$output .= '</div>';
|
243 |
+
}
|
244 |
+
|
245 |
+
return $output;
|
246 |
+
}
|
includes/generate-css.php
CHANGED
@@ -31,7 +31,9 @@ function generateblocks_get_dynamic_css( $content = '' ) {
|
|
31 |
$blocks_exist = false;
|
32 |
$icon_css_added = false;
|
33 |
$main_css_data = array();
|
|
|
34 |
$tablet_css_data = array();
|
|
|
35 |
$mobile_css_data = array();
|
36 |
|
37 |
foreach ( $data as $name => $blockData ) {
|
@@ -48,21 +50,17 @@ function generateblocks_get_dynamic_css( $content = '' ) {
|
|
48 |
$blocks_exist = true;
|
49 |
|
50 |
$css = new GenerateBlocks_Dynamic_CSS();
|
|
|
51 |
$tablet_css = new GenerateBlocks_Dynamic_CSS();
|
|
|
52 |
$mobile_css = new GenerateBlocks_Dynamic_CSS();
|
53 |
|
54 |
$css->set_selector( '.gb-grid-wrapper' );
|
55 |
-
$css->add_property( 'display', '-webkit-box' );
|
56 |
-
$css->add_property( 'display', '-ms-flexbox' );
|
57 |
$css->add_property( 'display', 'flex' );
|
58 |
-
$css->add_property( '-ms-flex-wrap', 'wrap' );
|
59 |
$css->add_property( 'flex-wrap', 'wrap' );
|
60 |
|
61 |
$css->set_selector( '.gb-grid-wrapper > .gb-grid-column > .gb-container' );
|
62 |
-
$css->add_property( 'display', '-webkit-box' );
|
63 |
-
$css->add_property( 'display', '-ms-flexbox' );
|
64 |
$css->add_property( 'display', 'flex' );
|
65 |
-
$css->add_property( '-ms-flex-direction', 'column' );
|
66 |
$css->add_property( 'flex-direction', 'column' );
|
67 |
$css->add_property( 'height', '100%' );
|
68 |
|
@@ -70,7 +68,7 @@ function generateblocks_get_dynamic_css( $content = '' ) {
|
|
70 |
$css->add_property( 'box-sizing', 'border-box' );
|
71 |
|
72 |
$css->set_selector( '.gb-grid-wrapper .wp-block-image' );
|
73 |
-
$css->add_property( 'margin-bottom', '
|
74 |
|
75 |
foreach ( $blockData as $atts ) {
|
76 |
if ( ! isset( $atts['uniqueId'] ) ) {
|
@@ -86,62 +84,62 @@ function generateblocks_get_dynamic_css( $content = '' ) {
|
|
86 |
|
87 |
$id = $atts['uniqueId'];
|
88 |
|
|
|
|
|
|
|
|
|
|
|
|
|
89 |
$css->set_selector( '.gb-grid-wrapper-' . $id );
|
90 |
-
$css->add_property( '-ms-flex-align', generateblocks_get_vendor_prefix( $settings['verticalAlignment'] ) );
|
91 |
$css->add_property( 'align-items', $settings['verticalAlignment'] );
|
92 |
-
$css->add_property( '-ms-flex-pack', generateblocks_get_vendor_prefix( $settings['horizontalAlignment'] ) );
|
93 |
$css->add_property( 'justify-content', $settings['horizontalAlignment'] );
|
94 |
|
95 |
if ( $settings['horizontalGap'] ) {
|
96 |
-
$css->add_property( 'margin-
|
97 |
}
|
98 |
|
99 |
$css->set_selector( '.gb-grid-wrapper-' . $id . ' > .gb-grid-column' );
|
100 |
-
$css->add_property( 'padding-
|
101 |
$css->add_property( 'padding-bottom', $settings['verticalGap'], 'px' );
|
102 |
|
103 |
$tablet_css->set_selector( '.gb-grid-wrapper-' . $id );
|
104 |
|
105 |
if ( 'inherit' !== $settings['verticalAlignmentTablet'] ) {
|
106 |
-
$tablet_css->add_property( '-ms-flex-align', generateblocks_get_vendor_prefix( $settings['verticalAlignmentTablet'] ) );
|
107 |
$tablet_css->add_property( 'align-items', $settings['verticalAlignmentTablet'] );
|
108 |
}
|
109 |
|
110 |
if ( 'inherit' !== $settings['horizontalAlignmentTablet'] ) {
|
111 |
-
$tablet_css->add_property( '-ms-flex-pack', generateblocks_get_vendor_prefix( $settings['horizontalAlignmentTablet'] ) );
|
112 |
$tablet_css->add_property( 'justify-content', $settings['horizontalAlignmentTablet'] );
|
113 |
}
|
114 |
|
115 |
if ( $settings['horizontalGapTablet'] ) {
|
116 |
-
$tablet_css->add_property( 'margin-
|
117 |
} elseif ( 0 === $settings['horizontalGapTablet'] ) {
|
118 |
-
$tablet_css->add_property( 'margin-
|
119 |
}
|
120 |
|
121 |
$tablet_css->set_selector( '.gb-grid-wrapper-' . $id . ' > .gb-grid-column' );
|
122 |
-
$tablet_css->add_property( 'padding-
|
123 |
$tablet_css->add_property( 'padding-bottom', $settings['verticalGapTablet'], 'px' );
|
124 |
|
125 |
$mobile_css->set_selector( '.gb-grid-wrapper-' . $id );
|
126 |
|
127 |
if ( 'inherit' !== $settings['verticalAlignmentMobile'] ) {
|
128 |
-
$mobile_css->add_property( '-ms-flex-align', generateblocks_get_vendor_prefix( $settings['verticalAlignmentMobile'] ) );
|
129 |
$mobile_css->add_property( 'align-items', $settings['verticalAlignmentMobile'] );
|
130 |
}
|
131 |
|
132 |
if ( 'inherit' !== $settings['horizontalAlignmentMobile'] ) {
|
133 |
-
$mobile_css->add_property( '-ms-flex-pack', generateblocks_get_vendor_prefix( $settings['horizontalAlignmentMobile'] ) );
|
134 |
$mobile_css->add_property( 'justify-content', $settings['horizontalAlignmentMobile'] );
|
135 |
}
|
136 |
|
137 |
if ( $settings['horizontalGapMobile'] ) {
|
138 |
-
$mobile_css->add_property( 'margin-
|
139 |
} elseif ( 0 === $settings['horizontalGapMobile'] ) {
|
140 |
-
$mobile_css->add_property( 'margin-
|
141 |
}
|
142 |
|
143 |
$mobile_css->set_selector( '.gb-grid-wrapper-' . $id . ' > .gb-grid-column' );
|
144 |
-
$mobile_css->add_property( 'padding-
|
145 |
$mobile_css->add_property( 'padding-bottom', $settings['verticalGapMobile'], 'px' );
|
146 |
|
147 |
/**
|
@@ -149,23 +147,42 @@ function generateblocks_get_dynamic_css( $content = '' ) {
|
|
149 |
*
|
150 |
* @since 1.0
|
151 |
*
|
|
|
|
|
152 |
* @param object $css Our desktop/main CSS data.
|
|
|
153 |
* @param object $tablet_css Our tablet CSS data.
|
|
|
154 |
* @param object $mobile_css Our mobile CSS data.
|
155 |
-
* @param string $name The name of our block.
|
156 |
-
* @param array $settings The settings for the current block.
|
157 |
*/
|
158 |
-
do_action(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
159 |
}
|
160 |
|
161 |
if ( $css->css_output() ) {
|
162 |
$main_css_data[] = $css->css_output();
|
163 |
}
|
164 |
|
|
|
|
|
|
|
|
|
165 |
if ( $tablet_css->css_output() ) {
|
166 |
$tablet_css_data[] = $tablet_css->css_output();
|
167 |
}
|
168 |
|
|
|
|
|
|
|
|
|
169 |
if ( $mobile_css->css_output() ) {
|
170 |
$mobile_css_data[] = $mobile_css->css_output();
|
171 |
}
|
@@ -184,12 +201,23 @@ function generateblocks_get_dynamic_css( $content = '' ) {
|
|
184 |
$blocks_exist = true;
|
185 |
|
186 |
$css = new GenerateBlocks_Dynamic_CSS();
|
|
|
187 |
$tablet_css = new GenerateBlocks_Dynamic_CSS();
|
|
|
188 |
$mobile_css = new GenerateBlocks_Dynamic_CSS();
|
189 |
|
190 |
$css->set_selector( '.gb-container .wp-block-image img' );
|
191 |
$css->add_property( 'vertical-align', 'middle' );
|
192 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
193 |
foreach ( $blockData as $atts ) {
|
194 |
if ( ! isset( $atts['uniqueId'] ) ) {
|
195 |
continue;
|
@@ -204,28 +232,20 @@ function generateblocks_get_dynamic_css( $content = '' ) {
|
|
204 |
|
205 |
$id = $atts['uniqueId'];
|
206 |
|
207 |
-
$grid_atts = array();
|
208 |
-
|
209 |
-
if ( isset( $atts['gridId'] ) && $atts['gridId'] ) {
|
210 |
-
foreach ( $data['grid'] as $grid ) {
|
211 |
-
if ( $atts['gridId'] === $grid['uniqueId'] ) {
|
212 |
-
$grid_atts = $grid;
|
213 |
-
break;
|
214 |
-
}
|
215 |
-
}
|
216 |
-
}
|
217 |
-
|
218 |
-
$grid_settings = wp_parse_args(
|
219 |
-
$grid_atts,
|
220 |
-
$defaults['gridContainer']
|
221 |
-
);
|
222 |
-
|
223 |
$fontFamily = $settings['fontFamily'];
|
224 |
|
225 |
if ( $fontFamily && $settings['fontFamilyFallback'] ) {
|
226 |
$fontFamily = $fontFamily . ', ' . $settings['fontFamilyFallback'];
|
227 |
}
|
228 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
229 |
$css->set_selector( '.gb-container.gb-container-' . $id );
|
230 |
$css->add_property( 'font-family', $fontFamily );
|
231 |
$css->add_property( 'font-size', $settings['fontSize'], $settings['fontSizeUnit'] );
|
@@ -242,27 +262,28 @@ function generateblocks_get_dynamic_css( $content = '' ) {
|
|
242 |
$css->add_property( 'background-color', generateblocks_hex2rgba( $settings['backgroundColor'], $settings['backgroundColorOpacity'] ) );
|
243 |
$css->add_property( 'color', $settings['textColor'] );
|
244 |
|
245 |
-
if (
|
246 |
-
$
|
247 |
-
}
|
248 |
-
|
249 |
-
$background_image = generateblocks_get_background_image_css( $settings );
|
250 |
-
|
251 |
-
if ( $settings['bgImage'] && 'element' === $settings['bgOptions']['selector'] && $background_image ) {
|
252 |
-
$css->add_property( 'background-image', $background_image );
|
253 |
$css->add_property( 'background-repeat', $settings['bgOptions']['repeat'] );
|
254 |
$css->add_property( 'background-position', $settings['bgOptions']['position'] );
|
255 |
$css->add_property( 'background-size', $settings['bgOptions']['size'] );
|
256 |
$css->add_property( 'background-attachment', $settings['bgOptions']['attachment'] );
|
257 |
-
} elseif ( $settings['gradient'] && $
|
258 |
-
$css->add_property( 'background-image', $
|
259 |
}
|
260 |
|
261 |
-
if (
|
|
|
|
|
|
|
|
|
262 |
$css->add_property( 'position', 'relative' );
|
263 |
}
|
264 |
|
265 |
-
if (
|
|
|
|
|
|
|
266 |
$css->add_property( 'overflow', 'hidden' );
|
267 |
}
|
268 |
|
@@ -285,12 +306,8 @@ function generateblocks_get_dynamic_css( $content = '' ) {
|
|
285 |
$usingMinHeightInnerWidth = false;
|
286 |
|
287 |
if ( $settings['minHeight'] && $settings['verticalAlignment'] && ! $settings['isGrid'] ) {
|
288 |
-
$css->add_property( 'display', '-webkit-box' );
|
289 |
-
$css->add_property( 'display', '-ms-flexbox' );
|
290 |
$css->add_property( 'display', 'flex' );
|
291 |
-
$css->add_property( '-ms-flex-direction', 'row' );
|
292 |
$css->add_property( 'flex-direction', 'row' );
|
293 |
-
$css->add_property( '-ms-flex-align', generateblocks_get_vendor_prefix( $settings['verticalAlignment'] ) );
|
294 |
$css->add_property( 'align-items', $settings['verticalAlignment'] );
|
295 |
|
296 |
$usingMinHeightFlex = true;
|
@@ -300,9 +317,9 @@ function generateblocks_get_dynamic_css( $content = '' ) {
|
|
300 |
|
301 |
$css->set_selector( '.gb-container.gb-container-' . $id . ':before' );
|
302 |
|
303 |
-
if ( $
|
304 |
$css->add_property( 'content', '""' );
|
305 |
-
$css->add_property( 'background-image',
|
306 |
$css->add_property( 'background-repeat', $settings['bgOptions']['repeat'] );
|
307 |
$css->add_property( 'background-position', $settings['bgOptions']['position'] );
|
308 |
$css->add_property( 'background-size', $settings['bgOptions']['size'] );
|
@@ -320,6 +337,24 @@ function generateblocks_get_dynamic_css( $content = '' ) {
|
|
320 |
}
|
321 |
}
|
322 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
323 |
$css->set_selector( '.gb-container.gb-container-' . $id . ' > .gb-inside-container' );
|
324 |
$css->add_property( 'padding', generateblocks_get_shorthand_css( $settings['paddingTop'], $settings['paddingRight'], $settings['paddingBottom'], $settings['paddingLeft'], $settings['paddingUnit'] ) );
|
325 |
|
@@ -335,8 +370,8 @@ function generateblocks_get_dynamic_css( $content = '' ) {
|
|
335 |
$usingMinHeightInnerWidth = true;
|
336 |
}
|
337 |
|
338 |
-
if ( $
|
339 |
-
$css->add_property( 'z-index',
|
340 |
$css->add_property( 'position', 'relative' );
|
341 |
}
|
342 |
|
@@ -352,14 +387,77 @@ function generateblocks_get_dynamic_css( $content = '' ) {
|
|
352 |
}
|
353 |
|
354 |
if ( $settings['removeVerticalGap'] ) {
|
355 |
-
$
|
356 |
-
$
|
357 |
}
|
358 |
|
359 |
$css->set_selector( '.gb-grid-wrapper > .gb-grid-column-' . $id . ' > .gb-container' );
|
360 |
-
$css->add_property( '-ms-flex-pack', generateblocks_get_vendor_prefix( $settings['verticalAlignment'] ) );
|
361 |
$css->add_property( 'justify-content', $settings['verticalAlignment'] );
|
362 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
363 |
$tablet_css->set_selector( '.gb-container.gb-container-' . $id );
|
364 |
$tablet_css->add_property( 'font-size', $settings['fontSizeTablet'], $settings['fontSizeUnit'] );
|
365 |
$tablet_css->add_property( 'margin', array( $settings['marginTopTablet'], $settings['marginRightTablet'], $settings['marginBottomTablet'], $settings['marginLeftTablet'] ), $settings['marginUnit'] );
|
@@ -374,17 +472,13 @@ function generateblocks_get_dynamic_css( $content = '' ) {
|
|
374 |
|
375 |
if ( ! $settings['isGrid'] ) {
|
376 |
if ( ! $usingMinHeightFlex && $settings['minHeightTablet'] && 'inherit' !== $settings['verticalAlignmentTablet'] ) {
|
377 |
-
$tablet_css->add_property( 'display', '-webkit-box' );
|
378 |
-
$tablet_css->add_property( 'display', '-ms-flexbox' );
|
379 |
$tablet_css->add_property( 'display', 'flex' );
|
380 |
-
$tablet_css->add_property( '-ms-flex-direction', 'row' );
|
381 |
$tablet_css->add_property( 'flex-direction', 'row' );
|
382 |
|
383 |
$usingMinHeightFlex = true;
|
384 |
}
|
385 |
|
386 |
if ( $usingMinHeightFlex && 'inherit' !== $settings['verticalAlignmentTablet'] ) {
|
387 |
-
$tablet_css->add_property( '-ms-flex-align', generateblocks_get_vendor_prefix( $settings['verticalAlignmentTablet'] ) );
|
388 |
$tablet_css->add_property( 'align-items', $settings['verticalAlignmentTablet'] );
|
389 |
}
|
390 |
}
|
@@ -415,41 +509,37 @@ function generateblocks_get_dynamic_css( $content = '' ) {
|
|
415 |
$tablet_css->add_property( 'width', $settings['widthTablet'], '%' );
|
416 |
|
417 |
if ( $settings['isGrid'] ) {
|
418 |
-
$tablet_css->add_property( '-ms-flex-order', $settings['orderTablet'] );
|
419 |
$tablet_css->add_property( 'order', $settings['orderTablet'] );
|
420 |
}
|
421 |
|
422 |
if ( $settings['removeVerticalGapTablet'] ) {
|
423 |
-
|
424 |
-
|
425 |
-
$tablet_css->add_property( 'padding-bottom', '0' );
|
426 |
-
}
|
427 |
-
} elseif ( $settings['removeVerticalGap'] ) {
|
428 |
-
// Removed vertical gap on desktop, so we need to add it back here.
|
429 |
-
$vertical_gap_added = false;
|
430 |
-
|
431 |
-
if ( ! empty( $grid_settings ) ) {
|
432 |
-
$tablet_css->set_selector( '.gb-grid-wrapper > div.gb-grid-column-' . $id );
|
433 |
-
|
434 |
-
if ( isset( $grid_settings['verticalGapTablet'] ) || isset( $grid_settings['verticalGap'] ) ) {
|
435 |
-
if ( ! empty( $grid_settings['verticalGapTablet'] ) ) {
|
436 |
-
$tablet_css->add_property( 'padding-bottom', $grid_settings['verticalGapTablet'], 'px' );
|
437 |
-
$vertical_gap_added = true;
|
438 |
-
} elseif ( ! empty( $grid_settings['verticalGap'] ) ) {
|
439 |
-
$tablet_css->add_property( 'padding-bottom', $grid_settings['verticalGap'], 'px' );
|
440 |
-
$vertical_gap_added = true;
|
441 |
-
}
|
442 |
-
}
|
443 |
-
}
|
444 |
}
|
445 |
|
446 |
$tablet_css->set_selector( '.gb-grid-wrapper > .gb-grid-column-' . $id . ' > .gb-container' );
|
447 |
|
448 |
if ( 'inherit' !== $settings['verticalAlignmentTablet'] ) {
|
449 |
-
$tablet_css->add_property( '-ms-flex-pack', generateblocks_get_vendor_prefix( $settings['verticalAlignmentTablet'] ) );
|
450 |
$tablet_css->add_property( 'justify-content', $settings['verticalAlignmentTablet'] );
|
451 |
}
|
452 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
453 |
$mobile_css->set_selector( '.gb-container.gb-container-' . $id );
|
454 |
$mobile_css->add_property( 'font-size', $settings['fontSizeMobile'], $settings['fontSizeUnit'] );
|
455 |
$mobile_css->add_property( 'margin', array( $settings['marginTopMobile'], $settings['marginRightMobile'], $settings['marginBottomMobile'], $settings['marginLeftMobile'] ), $settings['marginUnit'] );
|
@@ -464,17 +554,13 @@ function generateblocks_get_dynamic_css( $content = '' ) {
|
|
464 |
|
465 |
if ( ! $settings['isGrid'] ) {
|
466 |
if ( ! $usingMinHeightFlex && $settings['minHeightMobile'] && 'inherit' !== $settings['verticalAlignmentMobile'] ) {
|
467 |
-
$mobile_css->add_property( 'display', '-webkit-box' );
|
468 |
-
$mobile_css->add_property( 'display', '-ms-flexbox' );
|
469 |
$mobile_css->add_property( 'display', 'flex' );
|
470 |
-
$mobile_css->add_property( '-ms-flex-direction', 'row' );
|
471 |
$mobile_css->add_property( 'flex-direction', 'row' );
|
472 |
|
473 |
$usingMinHeightFlex = true;
|
474 |
}
|
475 |
|
476 |
if ( $usingMinHeightFlex && 'inherit' !== $settings['verticalAlignmentMobile'] ) {
|
477 |
-
$mobile_css->add_property( '-ms-flex-align', generateblocks_get_vendor_prefix( $settings['verticalAlignmentMobile'] ) );
|
478 |
$mobile_css->add_property( 'align-items', $settings['verticalAlignmentMobile'] );
|
479 |
}
|
480 |
}
|
@@ -502,63 +588,90 @@ function generateblocks_get_dynamic_css( $content = '' ) {
|
|
502 |
}
|
503 |
|
504 |
if ( $settings['isGrid'] ) {
|
505 |
-
$mobile_css->add_property( '-ms-flex-order', $settings['orderMobile'] );
|
506 |
$mobile_css->add_property( 'order', $settings['orderMobile'] );
|
507 |
}
|
508 |
|
509 |
if ( $settings['removeVerticalGapMobile'] ) {
|
510 |
-
|
511 |
-
|
512 |
-
$mobile_css->add_property( 'padding-bottom', '0' );
|
513 |
-
}
|
514 |
-
} elseif ( $settings['removeVerticalGapTablet'] || $settings['removeVerticalGap'] ) {
|
515 |
-
// Removed vertical gap on tablet or desktop, so we need to add it back here.
|
516 |
-
if ( ! empty( $grid_settings ) ) {
|
517 |
-
$mobile_css->set_selector( '.gb-grid-wrapper > div.gb-grid-column-' . $id );
|
518 |
-
|
519 |
-
if ( empty( $vertical_gap_added ) && ( isset( $grid_settings['verticalGapMobile'] ) || isset( $grid_settings['verticalGapTablet'] ) || isset( $grid_settings['verticalGap'] ) ) ) {
|
520 |
-
if ( ! empty( $grid_settings['verticalGapMobile'] ) ) {
|
521 |
-
$mobile_css->add_property( 'padding-bottom', $grid_settings['verticalGapMobile'], 'px' );
|
522 |
-
} elseif ( ! empty( $grid_settings['verticalGapTablet'] ) ) {
|
523 |
-
$mobile_css->add_property( 'padding-bottom', $grid_settings['verticalGapTablet'], 'px' );
|
524 |
-
} elseif ( ! empty( $grid_settings['verticalGap'] ) ) {
|
525 |
-
$mobile_css->add_property( 'padding-bottom', $grid_settings['verticalGap'], 'px' );
|
526 |
-
}
|
527 |
-
}
|
528 |
-
|
529 |
-
$vertical_gap_added = false;
|
530 |
-
}
|
531 |
}
|
532 |
|
533 |
$mobile_css->set_selector( '.gb-grid-wrapper > .gb-grid-column-' . $id . ' > .gb-container' );
|
534 |
|
535 |
if ( 'inherit' !== $settings['verticalAlignmentMobile'] ) {
|
536 |
-
$mobile_css->add_property( '-ms-flex-pack', generateblocks_get_vendor_prefix( $settings['verticalAlignmentMobile'] ) );
|
537 |
$mobile_css->add_property( 'justify-content', $settings['verticalAlignmentMobile'] );
|
538 |
}
|
539 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
540 |
/**
|
541 |
* Do generateblocks_block_css_data hook
|
542 |
*
|
543 |
* @since 1.0
|
544 |
*
|
|
|
|
|
545 |
* @param object $css Our desktop/main CSS data.
|
|
|
546 |
* @param object $tablet_css Our tablet CSS data.
|
|
|
547 |
* @param object $mobile_css Our mobile CSS data.
|
548 |
-
* @param string $name The name of our block.
|
549 |
-
* @param array $settings The settings for the current block.
|
550 |
*/
|
551 |
-
do_action(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
552 |
}
|
553 |
|
554 |
if ( $css->css_output() ) {
|
555 |
$main_css_data[] = $css->css_output();
|
556 |
}
|
557 |
|
|
|
|
|
|
|
|
|
558 |
if ( $tablet_css->css_output() ) {
|
559 |
$tablet_css_data[] = $tablet_css->css_output();
|
560 |
}
|
561 |
|
|
|
|
|
|
|
|
|
562 |
if ( $mobile_css->css_output() ) {
|
563 |
$mobile_css_data[] = $mobile_css->css_output();
|
564 |
}
|
@@ -577,7 +690,9 @@ function generateblocks_get_dynamic_css( $content = '' ) {
|
|
577 |
$blocks_exist = true;
|
578 |
|
579 |
$css = new GenerateBlocks_Dynamic_CSS();
|
|
|
580 |
$tablet_css = new GenerateBlocks_Dynamic_CSS();
|
|
|
581 |
$mobile_css = new GenerateBlocks_Dynamic_CSS();
|
582 |
|
583 |
$css->set_selector( '.gb-button-wrapper' );
|
@@ -606,15 +721,12 @@ function generateblocks_get_dynamic_css( $content = '' ) {
|
|
606 |
$css->add_property( 'justify-content', generateblocks_get_flexbox_alignment( $settings['alignment'] ) );
|
607 |
|
608 |
if ( $settings['stack'] ) {
|
609 |
-
$css->add_property( '-ms-flex-direction', 'column' );
|
610 |
$css->add_property( 'flex-direction', 'column' );
|
611 |
$css->add_property( 'align-items', generateblocks_get_flexbox_alignment( $settings['alignment'] ) );
|
612 |
}
|
613 |
|
614 |
if ( $settings['fillHorizontalSpace'] ) {
|
615 |
-
$css->set_selector( '.gb-button-wrapper-' . $id . ' >
|
616 |
-
$css->add_property( '-webkit-box-flex', '1' );
|
617 |
-
$css->add_property( '-ms-flex', '1' );
|
618 |
$css->add_property( 'flex', '1' );
|
619 |
}
|
620 |
|
@@ -628,15 +740,12 @@ function generateblocks_get_dynamic_css( $content = '' ) {
|
|
628 |
$tablet_css->add_property( 'justify-content', generateblocks_get_flexbox_alignment( $settings['alignmentTablet'] ) );
|
629 |
|
630 |
if ( $settings['stackTablet'] ) {
|
631 |
-
$tablet_css->add_property( '-ms-flex-direction', 'column' );
|
632 |
$tablet_css->add_property( 'flex-direction', 'column' );
|
633 |
$tablet_css->add_property( 'align-items', generateblocks_get_flexbox_alignment( $settings['alignmentTablet'] ) );
|
634 |
}
|
635 |
|
636 |
if ( $settings['fillHorizontalSpaceTablet'] ) {
|
637 |
-
$tablet_css->set_selector( '.gb-button-wrapper-' . $id . ' >
|
638 |
-
$tablet_css->add_property( '-webkit-box-flex', '1' );
|
639 |
-
$tablet_css->add_property( '-ms-flex', '1' );
|
640 |
$tablet_css->add_property( 'flex', '1' );
|
641 |
}
|
642 |
|
@@ -650,15 +759,12 @@ function generateblocks_get_dynamic_css( $content = '' ) {
|
|
650 |
$mobile_css->add_property( 'justify-content', generateblocks_get_flexbox_alignment( $settings['alignmentMobile'] ) );
|
651 |
|
652 |
if ( $settings['stackMobile'] ) {
|
653 |
-
$mobile_css->add_property( '-ms-flex-direction', 'column' );
|
654 |
$mobile_css->add_property( 'flex-direction', 'column' );
|
655 |
$mobile_css->add_property( 'align-items', generateblocks_get_flexbox_alignment( $settings['alignmentMobile'] ) );
|
656 |
}
|
657 |
|
658 |
if ( $settings['fillHorizontalSpaceMobile'] ) {
|
659 |
-
$mobile_css->set_selector( '.gb-button-wrapper-' . $id . ' >
|
660 |
-
$mobile_css->add_property( '-webkit-box-flex', '1' );
|
661 |
-
$mobile_css->add_property( '-ms-flex', '1' );
|
662 |
$mobile_css->add_property( 'flex', '1' );
|
663 |
}
|
664 |
|
@@ -672,23 +778,42 @@ function generateblocks_get_dynamic_css( $content = '' ) {
|
|
672 |
*
|
673 |
* @since 1.0
|
674 |
*
|
|
|
|
|
675 |
* @param object $css Our desktop/main CSS data.
|
|
|
676 |
* @param object $tablet_css Our tablet CSS data.
|
|
|
677 |
* @param object $mobile_css Our mobile CSS data.
|
678 |
-
* @param string $name The name of our block.
|
679 |
-
* @param array $settings The settings for the current block.
|
680 |
*/
|
681 |
-
do_action(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
682 |
}
|
683 |
|
684 |
if ( $css->css_output() ) {
|
685 |
$main_css_data[] = $css->css_output();
|
686 |
}
|
687 |
|
|
|
|
|
|
|
|
|
688 |
if ( $tablet_css->css_output() ) {
|
689 |
$tablet_css_data[] = $tablet_css->css_output();
|
690 |
}
|
691 |
|
|
|
|
|
|
|
|
|
692 |
if ( $mobile_css->css_output() ) {
|
693 |
$mobile_css_data[] = $mobile_css->css_output();
|
694 |
}
|
@@ -707,13 +832,13 @@ function generateblocks_get_dynamic_css( $content = '' ) {
|
|
707 |
$blocks_exist = true;
|
708 |
|
709 |
$css = new GenerateBlocks_Dynamic_CSS();
|
|
|
710 |
$tablet_css = new GenerateBlocks_Dynamic_CSS();
|
|
|
711 |
$mobile_css = new GenerateBlocks_Dynamic_CSS();
|
712 |
|
713 |
if ( ! $icon_css_added ) {
|
714 |
$css->set_selector( '.gb-icon' );
|
715 |
-
$css->add_property( 'display', '-webkit-inline-box' );
|
716 |
-
$css->add_property( 'display', '-ms-inline-flexbox' );
|
717 |
$css->add_property( 'display', 'inline-flex' );
|
718 |
$css->add_property( 'line-height', '0' );
|
719 |
|
@@ -725,9 +850,7 @@ function generateblocks_get_dynamic_css( $content = '' ) {
|
|
725 |
$icon_css_added = true;
|
726 |
}
|
727 |
|
728 |
-
$css->set_selector( '.gb-button-wrapper
|
729 |
-
$css->add_property( 'display', '-webkit-inline-box' );
|
730 |
-
$css->add_property( 'display', '-ms-inline-flexbox' );
|
731 |
$css->add_property( 'display', 'inline-flex' );
|
732 |
$css->add_property( 'align-items', 'center' );
|
733 |
$css->add_property( 'justify-content', 'center' );
|
@@ -752,6 +875,12 @@ function generateblocks_get_dynamic_css( $content = '' ) {
|
|
752 |
|
753 |
$id = $atts['uniqueId'];
|
754 |
|
|
|
|
|
|
|
|
|
|
|
|
|
755 |
// Back-compatibility for when icon held a value.
|
756 |
if ( $settings['icon'] ) {
|
757 |
$settings['hasIcon'] = true;
|
@@ -776,7 +905,7 @@ function generateblocks_get_dynamic_css( $content = '' ) {
|
|
776 |
}
|
777 |
}
|
778 |
|
779 |
-
$css->set_selector( '.gb-button-wrapper
|
780 |
$css->add_property( 'background-color', generateblocks_hex2rgba( $settings['backgroundColor'], $settings['backgroundColorOpacity'] ) );
|
781 |
$css->add_property( 'color', $settings['textColor'] );
|
782 |
|
@@ -802,19 +931,17 @@ function generateblocks_get_dynamic_css( $content = '' ) {
|
|
802 |
$css->add_property( 'text-transform', $settings['textTransform'] );
|
803 |
|
804 |
if ( $settings['hasIcon'] ) {
|
805 |
-
$css->add_property( 'display', '-webkit-inline-box' );
|
806 |
-
$css->add_property( 'display', '-ms-inline-flexbox' );
|
807 |
$css->add_property( 'display', 'inline-flex' );
|
808 |
$css->add_property( 'align-items', 'center' );
|
809 |
}
|
810 |
|
811 |
-
$css->set_selector( '.gb-button-wrapper
|
812 |
$css->add_property( 'background-color', generateblocks_hex2rgba( $settings['backgroundColorHover'], $settings['backgroundColorHoverOpacity'] ) );
|
813 |
$css->add_property( 'color', $settings['textColorHover'] );
|
814 |
$css->add_property( 'border-color', generateblocks_hex2rgba( $settings['borderColorHover'], $settings['borderColorHoverOpacity'] ) );
|
815 |
|
816 |
if ( $settings['hasIcon'] ) {
|
817 |
-
$css->set_selector(
|
818 |
$css->add_property( 'font-size', $settings['iconSize'], $settings['iconSizeUnit'] );
|
819 |
|
820 |
if ( ! $settings['removeText'] ) {
|
@@ -822,7 +949,7 @@ function generateblocks_get_dynamic_css( $content = '' ) {
|
|
822 |
}
|
823 |
}
|
824 |
|
825 |
-
$tablet_css->set_selector( '.gb-button-wrapper
|
826 |
$tablet_css->add_property( 'font-size', $settings['fontSizeTablet'], $settings['fontSizeUnit'] );
|
827 |
$tablet_css->add_property( 'letter-spacing', $settings['letterSpacingTablet'], 'em' );
|
828 |
$tablet_css->add_property( 'padding', array( $settings['paddingTopTablet'], $settings['paddingRightTablet'], $settings['paddingBottomTablet'], $settings['paddingLeftTablet'] ), $settings['paddingUnit'] );
|
@@ -831,7 +958,7 @@ function generateblocks_get_dynamic_css( $content = '' ) {
|
|
831 |
$tablet_css->add_property( 'border-width', array( $settings['borderSizeTopTablet'], $settings['borderSizeRightTablet'], $settings['borderSizeBottomTablet'], $settings['borderSizeLeftTablet'] ), 'px' );
|
832 |
|
833 |
if ( $settings['hasIcon'] ) {
|
834 |
-
$tablet_css->set_selector( 'a.gb-button-' . $id
|
31 |
$blocks_exist = false;
|
32 |
$icon_css_added = false;
|
33 |
$main_css_data = array();
|
34 |
+
$desktop_css_data = array();
|
35 |
$tablet_css_data = array();
|
36 |
+
$tablet_only_css_data = array();
|
37 |
$mobile_css_data = array();
|
38 |
|
39 |
foreach ( $data as $name => $blockData ) {
|
50 |
$blocks_exist = true;
|
51 |
|
52 |
$css = new GenerateBlocks_Dynamic_CSS();
|
53 |
+
$desktop_css = new GenerateBlocks_Dynamic_CSS();
|
54 |
$tablet_css = new GenerateBlocks_Dynamic_CSS();
|
55 |
+
$tablet_only_css = new GenerateBlocks_Dynamic_CSS();
|
56 |
$mobile_css = new GenerateBlocks_Dynamic_CSS();
|
57 |
|
58 |
$css->set_selector( '.gb-grid-wrapper' );
|
|
|
|
|
59 |
$css->add_property( 'display', 'flex' );
|
|
|
60 |
$css->add_property( 'flex-wrap', 'wrap' );
|
61 |
|
62 |
$css->set_selector( '.gb-grid-wrapper > .gb-grid-column > .gb-container' );
|
|
|
|
|
63 |
$css->add_property( 'display', 'flex' );
|
|
|
64 |
$css->add_property( 'flex-direction', 'column' );
|
65 |
$css->add_property( 'height', '100%' );
|
66 |
|
68 |
$css->add_property( 'box-sizing', 'border-box' );
|
69 |
|
70 |
$css->set_selector( '.gb-grid-wrapper .wp-block-image' );
|
71 |
+
$css->add_property( 'margin-bottom', '0' );
|
72 |
|
73 |
foreach ( $blockData as $atts ) {
|
74 |
if ( ! isset( $atts['uniqueId'] ) ) {
|
84 |
|
85 |
$id = $atts['uniqueId'];
|
86 |
|
87 |
+
$gap_direction = 'left';
|
88 |
+
|
89 |
+
if ( is_rtl() ) {
|
90 |
+
$gap_direction = 'right';
|
91 |
+
}
|
92 |
+
|
93 |
$css->set_selector( '.gb-grid-wrapper-' . $id );
|
|
|
94 |
$css->add_property( 'align-items', $settings['verticalAlignment'] );
|
|
|
95 |
$css->add_property( 'justify-content', $settings['horizontalAlignment'] );
|
96 |
|
97 |
if ( $settings['horizontalGap'] ) {
|
98 |
+
$css->add_property( 'margin-' . $gap_direction, '-' . $settings['horizontalGap'] . 'px' );
|
99 |
}
|
100 |
|
101 |
$css->set_selector( '.gb-grid-wrapper-' . $id . ' > .gb-grid-column' );
|
102 |
+
$css->add_property( 'padding-' . $gap_direction, $settings['horizontalGap'], 'px' );
|
103 |
$css->add_property( 'padding-bottom', $settings['verticalGap'], 'px' );
|
104 |
|
105 |
$tablet_css->set_selector( '.gb-grid-wrapper-' . $id );
|
106 |
|
107 |
if ( 'inherit' !== $settings['verticalAlignmentTablet'] ) {
|
|
|
108 |
$tablet_css->add_property( 'align-items', $settings['verticalAlignmentTablet'] );
|
109 |
}
|
110 |
|
111 |
if ( 'inherit' !== $settings['horizontalAlignmentTablet'] ) {
|
|
|
112 |
$tablet_css->add_property( 'justify-content', $settings['horizontalAlignmentTablet'] );
|
113 |
}
|
114 |
|
115 |
if ( $settings['horizontalGapTablet'] ) {
|
116 |
+
$tablet_css->add_property( 'margin-' . $gap_direction, '-' . $settings['horizontalGapTablet'] . 'px' );
|
117 |
} elseif ( 0 === $settings['horizontalGapTablet'] ) {
|
118 |
+
$tablet_css->add_property( 'margin-' . $gap_direction, $settings['horizontalGapTablet'] );
|
119 |
}
|
120 |
|
121 |
$tablet_css->set_selector( '.gb-grid-wrapper-' . $id . ' > .gb-grid-column' );
|
122 |
+
$tablet_css->add_property( 'padding-' . $gap_direction, $settings['horizontalGapTablet'], 'px' );
|
123 |
$tablet_css->add_property( 'padding-bottom', $settings['verticalGapTablet'], 'px' );
|
124 |
|
125 |
$mobile_css->set_selector( '.gb-grid-wrapper-' . $id );
|
126 |
|
127 |
if ( 'inherit' !== $settings['verticalAlignmentMobile'] ) {
|
|
|
128 |
$mobile_css->add_property( 'align-items', $settings['verticalAlignmentMobile'] );
|
129 |
}
|
130 |
|
131 |
if ( 'inherit' !== $settings['horizontalAlignmentMobile'] ) {
|
|
|
132 |
$mobile_css->add_property( 'justify-content', $settings['horizontalAlignmentMobile'] );
|
133 |
}
|
134 |
|
135 |
if ( $settings['horizontalGapMobile'] ) {
|
136 |
+
$mobile_css->add_property( 'margin-' . $gap_direction, '-' . $settings['horizontalGapMobile'] . 'px' );
|
137 |
} elseif ( 0 === $settings['horizontalGapMobile'] ) {
|
138 |
+
$mobile_css->add_property( 'margin-' . $gap_direction, $settings['horizontalGapMobile'] );
|
139 |
}
|
140 |
|
141 |
$mobile_css->set_selector( '.gb-grid-wrapper-' . $id . ' > .gb-grid-column' );
|
142 |
+
$mobile_css->add_property( 'padding-' . $gap_direction, $settings['horizontalGapMobile'], 'px' );
|
143 |
$mobile_css->add_property( 'padding-bottom', $settings['verticalGapMobile'], 'px' );
|
144 |
|
145 |
/**
|
147 |
*
|
148 |
* @since 1.0
|
149 |
*
|
150 |
+
* @param string $name The name of our block.
|
151 |
+
* @param array $settings The settings for the current block.
|
152 |
* @param object $css Our desktop/main CSS data.
|
153 |
+
* @param object $desktop_css Our desktop only CSS data.
|
154 |
* @param object $tablet_css Our tablet CSS data.
|
155 |
+
* @param object $tablet_only_css Our tablet only CSS data.
|
156 |
* @param object $mobile_css Our mobile CSS data.
|
|
|
|
|
157 |
*/
|
158 |
+
do_action(
|
159 |
+
'generateblocks_block_css_data',
|
160 |
+
$name,
|
161 |
+
$settings,
|
162 |
+
$css,
|
163 |
+
$desktop_css,
|
164 |
+
$tablet_css,
|
165 |
+
$tablet_only_css,
|
166 |
+
$mobile_css
|
167 |
+
);
|
168 |
}
|
169 |
|
170 |
if ( $css->css_output() ) {
|
171 |
$main_css_data[] = $css->css_output();
|
172 |
}
|
173 |
|
174 |
+
if ( $desktop_css->css_output() ) {
|
175 |
+
$desktop_css_data[] = $desktop_css->css_output();
|
176 |
+
}
|
177 |
+
|
178 |
if ( $tablet_css->css_output() ) {
|
179 |
$tablet_css_data[] = $tablet_css->css_output();
|
180 |
}
|
181 |
|
182 |
+
if ( $tablet_only_css->css_output() ) {
|
183 |
+
$tablet_only_css_data[] = $tablet_only_css->css_output();
|
184 |
+
}
|
185 |
+
|
186 |
if ( $mobile_css->css_output() ) {
|
187 |
$mobile_css_data[] = $mobile_css->css_output();
|
188 |
}
|
201 |
$blocks_exist = true;
|
202 |
|
203 |
$css = new GenerateBlocks_Dynamic_CSS();
|
204 |
+
$desktop_css = new GenerateBlocks_Dynamic_CSS();
|
205 |
$tablet_css = new GenerateBlocks_Dynamic_CSS();
|
206 |
+
$tablet_only_css = new GenerateBlocks_Dynamic_CSS();
|
207 |
$mobile_css = new GenerateBlocks_Dynamic_CSS();
|
208 |
|
209 |
$css->set_selector( '.gb-container .wp-block-image img' );
|
210 |
$css->add_property( 'vertical-align', 'middle' );
|
211 |
|
212 |
+
$css->set_selector( '.gb-container .gb-shape' );
|
213 |
+
$css->add_property( 'position', 'absolute' );
|
214 |
+
$css->add_property( 'overflow', 'hidden' );
|
215 |
+
$css->add_property( 'pointer-events', 'none' );
|
216 |
+
$css->add_property( 'line-height', '0' );
|
217 |
+
|
218 |
+
$css->set_selector( '.gb-container .gb-shape svg' );
|
219 |
+
$css->add_property( 'fill', 'currentColor' );
|
220 |
+
|
221 |
foreach ( $blockData as $atts ) {
|
222 |
if ( ! isset( $atts['uniqueId'] ) ) {
|
223 |
continue;
|
232 |
|
233 |
$id = $atts['uniqueId'];
|
234 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
235 |
$fontFamily = $settings['fontFamily'];
|
236 |
|
237 |
if ( $fontFamily && $settings['fontFamilyFallback'] ) {
|
238 |
$fontFamily = $fontFamily . ', ' . $settings['fontFamilyFallback'];
|
239 |
}
|
240 |
|
241 |
+
if ( ! isset( $settings['bgOptions']['selector'] ) ) {
|
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.gb-container-' . $id );
|
250 |
$css->add_property( 'font-family', $fontFamily );
|
251 |
$css->add_property( 'font-size', $settings['fontSize'], $settings['fontSizeUnit'] );
|
262 |
$css->add_property( 'background-color', generateblocks_hex2rgba( $settings['backgroundColor'], $settings['backgroundColorOpacity'] ) );
|
263 |
$css->add_property( 'color', $settings['textColor'] );
|
264 |
|
265 |
+
if ( $hasBgImage && 'element' === $settings['bgOptions']['selector'] && $backgroundImageValue ) {
|
266 |
+
$css->add_property( 'background-image', $backgroundImageValue );
|
|
|
|
|
|
|
|
|
|
|
|
|
267 |
$css->add_property( 'background-repeat', $settings['bgOptions']['repeat'] );
|
268 |
$css->add_property( 'background-position', $settings['bgOptions']['position'] );
|
269 |
$css->add_property( 'background-size', $settings['bgOptions']['size'] );
|
270 |
$css->add_property( 'background-attachment', $settings['bgOptions']['attachment'] );
|
271 |
+
} elseif ( $settings['gradient'] && 'element' === $settings['gradientSelector'] ) {
|
272 |
+
$css->add_property( 'background-image', $gradientValue );
|
273 |
}
|
274 |
|
275 |
+
if (
|
276 |
+
( $hasBgImage && 'pseudo-element' === $settings['bgOptions']['selector'] ) ||
|
277 |
+
$settings['zindex'] ||
|
278 |
+
( $settings['gradient'] && 'pseudo-element' === $settings['gradientSelector'] )
|
279 |
+
) {
|
280 |
$css->add_property( 'position', 'relative' );
|
281 |
}
|
282 |
|
283 |
+
if (
|
284 |
+
( $hasBgImage && 'pseudo-element' === $settings['bgOptions']['selector'] ) ||
|
285 |
+
( $settings['gradient'] && 'pseudo-element' === $settings['gradientSelector'] )
|
286 |
+
) {
|
287 |
$css->add_property( 'overflow', 'hidden' );
|
288 |
}
|
289 |
|
306 |
$usingMinHeightInnerWidth = false;
|
307 |
|
308 |
if ( $settings['minHeight'] && $settings['verticalAlignment'] && ! $settings['isGrid'] ) {
|
|
|
|
|
309 |
$css->add_property( 'display', 'flex' );
|
|
|
310 |
$css->add_property( 'flex-direction', 'row' );
|
|
|
311 |
$css->add_property( 'align-items', $settings['verticalAlignment'] );
|
312 |
|
313 |
$usingMinHeightFlex = true;
|
317 |
|
318 |
$css->set_selector( '.gb-container.gb-container-' . $id . ':before' );
|
319 |
|
320 |
+
if ( $hasBgImage && 'pseudo-element' === $settings['bgOptions']['selector'] ) {
|
321 |
$css->add_property( 'content', '""' );
|
322 |
+
$css->add_property( 'background-image', $backgroundImageValue );
|
323 |
$css->add_property( 'background-repeat', $settings['bgOptions']['repeat'] );
|
324 |
$css->add_property( 'background-position', $settings['bgOptions']['position'] );
|
325 |
$css->add_property( 'background-size', $settings['bgOptions']['size'] );
|
337 |
}
|
338 |
}
|
339 |
|
340 |
+
if ( $settings['gradient'] && 'pseudo-element' === $settings['gradientSelector'] ) {
|
341 |
+
$css->set_selector( '.gb-container.gb-container-' . $id . ':after' );
|
342 |
+
$css->add_property( 'content', '""' );
|
343 |
+
$css->add_property( 'background-image', $gradientValue );
|
344 |
+
$css->add_property( 'z-index', '0' );
|
345 |
+
$css->add_property( 'position', 'absolute' );
|
346 |
+
$css->add_property( 'top', '0' );
|
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 |
+
if ( ! $innerZIndex && $hasBgImage && 'pseudo-element' === $settings['bgOptions']['selector'] ) {
|
355 |
+
$innerZIndex = 1;
|
356 |
+
}
|
357 |
+
|
358 |
$css->set_selector( '.gb-container.gb-container-' . $id . ' > .gb-inside-container' );
|
359 |
$css->add_property( 'padding', generateblocks_get_shorthand_css( $settings['paddingTop'], $settings['paddingRight'], $settings['paddingBottom'], $settings['paddingLeft'], $settings['paddingUnit'] ) );
|
360 |
|
370 |
$usingMinHeightInnerWidth = true;
|
371 |
}
|
372 |
|
373 |
+
if ( $innerZIndex ) {
|
374 |
+
$css->add_property( 'z-index', $innerZIndex );
|
375 |
$css->add_property( 'position', 'relative' );
|
376 |
}
|
377 |
|
387 |
}
|
388 |
|
389 |
if ( $settings['removeVerticalGap'] ) {
|
390 |
+
$desktop_css->set_selector( '.gb-grid-wrapper > div.gb-grid-column-' . $id );
|
391 |
+
$desktop_css->add_property( 'padding-bottom', '0' );
|
392 |
}
|
393 |
|
394 |
$css->set_selector( '.gb-grid-wrapper > .gb-grid-column-' . $id . ' > .gb-container' );
|
|
|
395 |
$css->add_property( 'justify-content', $settings['verticalAlignment'] );
|
396 |
|
397 |
+
if ( ! empty( $settings['shapeDividers'] ) ) {
|
398 |
+
$css->set_selector( '.gb-container-' . $id );
|
399 |
+
$css->add_property( 'position', 'relative' );
|
400 |
+
|
401 |
+
$default_styles = generateblocks_get_default_styles();
|
402 |
+
|
403 |
+
foreach ( (array) $settings['shapeDividers'] as $index => $options ) {
|
404 |
+
$shapeNumber = $index + 1;
|
405 |
+
|
406 |
+
$shapeOptions = wp_parse_args(
|
407 |
+
$options,
|
408 |
+
$default_styles['container']['shapeDividers']
|
409 |
+
);
|
410 |
+
|
411 |
+
$shapeTransforms = array();
|
412 |
+
|
413 |
+
if ( 'top' === $shapeOptions['location'] ) {
|
414 |
+
$shapeTransforms[] = 'scaleY(-1)';
|
415 |
+
}
|
416 |
+
|
417 |
+
if ( $shapeOptions['flipHorizontally'] ) {
|
418 |
+
$shapeTransforms[] = 'scaleX(-1)';
|
419 |
+
}
|
420 |
+
|
421 |
+
$css->set_selector( '.gb-container-' . $id . ' > .gb-shapes .gb-shape-' . $shapeNumber );
|
422 |
+
$css->add_property( 'color', generateblocks_hex2rgba( $shapeOptions['color'], $shapeOptions['colorOpacity'] ) );
|
423 |
+
$css->add_property( 'z-index', $shapeOptions['zindex'] );
|
424 |
+
|
425 |
+
if ( 'top' === $shapeOptions['location'] || 'bottom' === $shapeOptions['location'] ) {
|
426 |
+
$css->add_property( 'left', '0' );
|
427 |
+
$css->add_property( 'right', '0' );
|
428 |
+
}
|
429 |
+
|
430 |
+
if ( 'bottom' === $shapeOptions['location'] ) {
|
431 |
+
$css->add_property( 'bottom', '-1px' );
|
432 |
+
}
|
433 |
+
|
434 |
+
if ( 'top' === $shapeOptions['location'] ) {
|
435 |
+
$css->add_property( 'top', '-1px' );
|
436 |
+
}
|
437 |
+
|
438 |
+
if ( ! empty( $shapeTransforms ) ) {
|
439 |
+
$css->add_property( 'transform', implode( ' ', $shapeTransforms ) );
|
440 |
+
}
|
441 |
+
|
442 |
+
$shapeWidth = $shapeOptions['width'] . '%';
|
443 |
+
|
444 |
+
if ( 100 === (int) $shapeOptions['width'] ) {
|
445 |
+
$shapeWidth = 'calc(' . $shapeWidth . ' + 1.3px)';
|
446 |
+
}
|
447 |
+
|
448 |
+
$css->set_selector( '.gb-container-' . $id . ' > .gb-shapes .gb-shape-' . $shapeNumber . ' svg' );
|
449 |
+
$css->add_property( 'height', $shapeOptions['height'], 'px' );
|
450 |
+
$css->add_property( 'width', $shapeWidth );
|
451 |
+
|
452 |
+
if ( 'top' === $shapeOptions['location'] || 'bottom' === $shapeOptions['location'] ) {
|
453 |
+
$css->add_property( 'position', 'relative' );
|
454 |
+
$css->add_property( 'left', '50%' );
|
455 |
+
$css->add_property( 'transform', 'translateX(-50%)' );
|
456 |
+
$css->add_property( 'min-width', '100%' );
|
457 |
+
}
|
458 |
+
}
|
459 |
+
}
|
460 |
+
|
461 |
$tablet_css->set_selector( '.gb-container.gb-container-' . $id );
|
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'] );
|
472 |
|
473 |
if ( ! $settings['isGrid'] ) {
|
474 |
if ( ! $usingMinHeightFlex && $settings['minHeightTablet'] && 'inherit' !== $settings['verticalAlignmentTablet'] ) {
|
|
|
|
|
475 |
$tablet_css->add_property( 'display', 'flex' );
|
|
|
476 |
$tablet_css->add_property( 'flex-direction', 'row' );
|
477 |
|
478 |
$usingMinHeightFlex = true;
|
479 |
}
|
480 |
|
481 |
if ( $usingMinHeightFlex && 'inherit' !== $settings['verticalAlignmentTablet'] ) {
|
|
|
482 |
$tablet_css->add_property( 'align-items', $settings['verticalAlignmentTablet'] );
|
483 |
}
|
484 |
}
|
509 |
$tablet_css->add_property( 'width', $settings['widthTablet'], '%' );
|
510 |
|
511 |
if ( $settings['isGrid'] ) {
|
|
|
512 |
$tablet_css->add_property( 'order', $settings['orderTablet'] );
|
513 |
}
|
514 |
|
515 |
if ( $settings['removeVerticalGapTablet'] ) {
|
516 |
+
$tablet_only_css->set_selector( '.gb-grid-wrapper > div.gb-grid-column-' . $id );
|
517 |
+
$tablet_only_css->add_property( 'padding-bottom', '0' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
518 |
}
|
519 |
|
520 |
$tablet_css->set_selector( '.gb-grid-wrapper > .gb-grid-column-' . $id . ' > .gb-container' );
|
521 |
|
522 |
if ( 'inherit' !== $settings['verticalAlignmentTablet'] ) {
|
|
|
523 |
$tablet_css->add_property( 'justify-content', $settings['verticalAlignmentTablet'] );
|
524 |
}
|
525 |
|
526 |
+
if ( ! empty( $settings['shapeDividers'] ) ) {
|
527 |
+
$default_styles = generateblocks_get_default_styles();
|
528 |
+
|
529 |
+
foreach ( (array) $settings['shapeDividers'] as $index => $options ) {
|
530 |
+
$shapeNumber = $index + 1;
|
531 |
+
|
532 |
+
$shapeOptions = wp_parse_args(
|
533 |
+
$options,
|
534 |
+
$default_styles['container']['shapeDividers']
|
535 |
+
);
|
536 |
+
|
537 |
+
$tablet_css->set_selector( '.gb-container-' . $id . ' > .gb-shapes .gb-shape-' . $shapeNumber . ' svg' );
|
538 |
+
$tablet_css->add_property( 'height', $shapeOptions['heightTablet'], 'px' );
|
539 |
+
$tablet_css->add_property( 'width', $shapeOptions['widthTablet'], '%' );
|
540 |
+
}
|
541 |
+
}
|
542 |
+
|
543 |
$mobile_css->set_selector( '.gb-container.gb-container-' . $id );
|
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'] );
|
554 |
|
555 |
if ( ! $settings['isGrid'] ) {
|
556 |
if ( ! $usingMinHeightFlex && $settings['minHeightMobile'] && 'inherit' !== $settings['verticalAlignmentMobile'] ) {
|
|
|
|
|
557 |
$mobile_css->add_property( 'display', 'flex' );
|
|
|
558 |
$mobile_css->add_property( 'flex-direction', 'row' );
|
559 |
|
560 |
$usingMinHeightFlex = true;
|
561 |
}
|
562 |
|
563 |
if ( $usingMinHeightFlex && 'inherit' !== $settings['verticalAlignmentMobile'] ) {
|
|
|
564 |
$mobile_css->add_property( 'align-items', $settings['verticalAlignmentMobile'] );
|
565 |
}
|
566 |
}
|
588 |
}
|
589 |
|
590 |
if ( $settings['isGrid'] ) {
|
|
|
591 |
$mobile_css->add_property( 'order', $settings['orderMobile'] );
|
592 |
}
|
593 |
|
594 |
if ( $settings['removeVerticalGapMobile'] ) {
|
595 |
+
$mobile_css->set_selector( '.gb-grid-wrapper > div.gb-grid-column-' . $id );
|
596 |
+
$mobile_css->add_property( 'padding-bottom', '0' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
597 |
}
|
598 |
|
599 |
$mobile_css->set_selector( '.gb-grid-wrapper > .gb-grid-column-' . $id . ' > .gb-container' );
|
600 |
|
601 |
if ( 'inherit' !== $settings['verticalAlignmentMobile'] ) {
|
|
|
602 |
$mobile_css->add_property( 'justify-content', $settings['verticalAlignmentMobile'] );
|
603 |
}
|
604 |
|
605 |
+
if ( ! empty( $settings['shapeDividers'] ) ) {
|
606 |
+
$default_styles = generateblocks_get_default_styles();
|
607 |
+
|
608 |
+
foreach ( (array) $settings['shapeDividers'] as $index => $options ) {
|
609 |
+
$shapeNumber = $index + 1;
|
610 |
+
|
611 |
+
$shapeOptions = wp_parse_args(
|
612 |
+
$options,
|
613 |
+
$default_styles['container']['shapeDividers']
|
614 |
+
);
|
615 |
+
|
616 |
+
$mobile_css->set_selector( '.gb-container-' . $id . ' > .gb-shapes .gb-shape-' . $shapeNumber . ' svg' );
|
617 |
+
$mobile_css->add_property( 'height', $shapeOptions['heightMobile'], 'px' );
|
618 |
+
$mobile_css->add_property( 'width', $shapeOptions['widthMobile'], '%' );
|
619 |
+
}
|
620 |
+
}
|
621 |
+
|
622 |
+
if ( $hasBgImage && 'fixed' === $settings['bgOptions']['attachment'] ) {
|
623 |
+
if ( 'element' === $settings['bgOptions']['selector'] ) {
|
624 |
+
$mobile_css->set_selector( '.gb-container.gb-container-' . $id );
|
625 |
+
}
|
626 |
+
|
627 |
+
if ( 'pseudo-element' === $settings['bgOptions']['selector'] ) {
|
628 |
+
$mobile_css->set_selector( '.gb-container.gb-container-' . $id . ':before' );
|
629 |
+
}
|
630 |
+
|
631 |
+
$mobile_css->add_property( 'background-attachment', 'initial' );
|
632 |
+
}
|
633 |
+
|
634 |
/**
|
635 |
* Do generateblocks_block_css_data hook
|
636 |
*
|
637 |
* @since 1.0
|
638 |
*
|
639 |
+
* @param string $name The name of our block.
|
640 |
+
* @param array $settings The settings for the current block.
|
641 |
* @param object $css Our desktop/main CSS data.
|
642 |
+
* @param object $desktop_css Our desktop only CSS data.
|
643 |
* @param object $tablet_css Our tablet CSS data.
|
644 |
+
* @param object $tablet_only_css Our tablet only CSS data.
|
645 |
* @param object $mobile_css Our mobile CSS data.
|
|
|
|
|
646 |
*/
|
647 |
+
do_action(
|
648 |
+
'generateblocks_block_css_data',
|
649 |
+
$name,
|
650 |
+
$settings,
|
651 |
+
$css,
|
652 |
+
$desktop_css,
|
653 |
+
$tablet_css,
|
654 |
+
$tablet_only_css,
|
655 |
+
$mobile_css
|
656 |
+
);
|
657 |
}
|
658 |
|
659 |
if ( $css->css_output() ) {
|
660 |
$main_css_data[] = $css->css_output();
|
661 |
}
|
662 |
|
663 |
+
if ( $desktop_css->css_output() ) {
|
664 |
+
$desktop_css_data[] = $desktop_css->css_output();
|
665 |
+
}
|
666 |
+
|
667 |
if ( $tablet_css->css_output() ) {
|
668 |
$tablet_css_data[] = $tablet_css->css_output();
|
669 |
}
|
670 |
|
671 |
+
if ( $tablet_only_css->css_output() ) {
|
672 |
+
$tablet_only_css_data[] = $tablet_only_css->css_output();
|
673 |
+
}
|
674 |
+
|
675 |
if ( $mobile_css->css_output() ) {
|
676 |
$mobile_css_data[] = $mobile_css->css_output();
|
677 |
}
|
690 |
$blocks_exist = true;
|
691 |
|
692 |
$css = new GenerateBlocks_Dynamic_CSS();
|
693 |
+
$desktop_css = new GenerateBlocks_Dynamic_CSS();
|
694 |
$tablet_css = new GenerateBlocks_Dynamic_CSS();
|
695 |
+
$tablet_only_css = new GenerateBlocks_Dynamic_CSS();
|
696 |
$mobile_css = new GenerateBlocks_Dynamic_CSS();
|
697 |
|
698 |
$css->set_selector( '.gb-button-wrapper' );
|
721 |
$css->add_property( 'justify-content', generateblocks_get_flexbox_alignment( $settings['alignment'] ) );
|
722 |
|
723 |
if ( $settings['stack'] ) {
|
|
|
724 |
$css->add_property( 'flex-direction', 'column' );
|
725 |
$css->add_property( 'align-items', generateblocks_get_flexbox_alignment( $settings['alignment'] ) );
|
726 |
}
|
727 |
|
728 |
if ( $settings['fillHorizontalSpace'] ) {
|
729 |
+
$css->set_selector( '.gb-button-wrapper-' . $id . ' > .gb-button' );
|
|
|
|
|
730 |
$css->add_property( 'flex', '1' );
|
731 |
}
|
732 |
|
740 |
$tablet_css->add_property( 'justify-content', generateblocks_get_flexbox_alignment( $settings['alignmentTablet'] ) );
|
741 |
|
742 |
if ( $settings['stackTablet'] ) {
|
|
|
743 |
$tablet_css->add_property( 'flex-direction', 'column' );
|
744 |
$tablet_css->add_property( 'align-items', generateblocks_get_flexbox_alignment( $settings['alignmentTablet'] ) );
|
745 |
}
|
746 |
|
747 |
if ( $settings['fillHorizontalSpaceTablet'] ) {
|
748 |
+
$tablet_css->set_selector( '.gb-button-wrapper-' . $id . ' > .gb-button' );
|
|
|
|
|
749 |
$tablet_css->add_property( 'flex', '1' );
|
750 |
}
|
751 |
|
759 |
$mobile_css->add_property( 'justify-content', generateblocks_get_flexbox_alignment( $settings['alignmentMobile'] ) );
|
760 |
|
761 |
if ( $settings['stackMobile'] ) {
|
|
|
762 |
$mobile_css->add_property( 'flex-direction', 'column' );
|
763 |
$mobile_css->add_property( 'align-items', generateblocks_get_flexbox_alignment( $settings['alignmentMobile'] ) );
|
764 |
}
|
765 |
|
766 |
if ( $settings['fillHorizontalSpaceMobile'] ) {
|
767 |
+
$mobile_css->set_selector( '.gb-button-wrapper-' . $id . ' > .gb-button' );
|
|
|
|
|
768 |
$mobile_css->add_property( 'flex', '1' );
|
769 |
}
|
770 |
|
778 |
*
|
779 |
* @since 1.0
|
780 |
*
|
781 |
+
* @param string $name The name of our block.
|
782 |
+
* @param array $settings The settings for the current block.
|
783 |
* @param object $css Our desktop/main CSS data.
|
784 |
+
* @param object $desktop_css Our desktop only CSS data.
|
785 |
* @param object $tablet_css Our tablet CSS data.
|
786 |
+
* @param object $tablet_only_css Our tablet only CSS data.
|
787 |
* @param object $mobile_css Our mobile CSS data.
|
|
|
|
|
788 |
*/
|
789 |
+
do_action(
|
790 |
+
'generateblocks_block_css_data',
|
791 |
+
$name,
|
792 |
+
$settings,
|
793 |
+
$css,
|
794 |
+
$desktop_css,
|
795 |
+
$tablet_css,
|
796 |
+
$tablet_only_css,
|
797 |
+
$mobile_css
|
798 |
+
);
|
799 |
}
|
800 |
|
801 |
if ( $css->css_output() ) {
|
802 |
$main_css_data[] = $css->css_output();
|
803 |
}
|
804 |
|
805 |
+
if ( $desktop_css->css_output() ) {
|
806 |
+
$desktop_css_data[] = $desktop_css->css_output();
|
807 |
+
}
|
808 |
+
|
809 |
if ( $tablet_css->css_output() ) {
|
810 |
$tablet_css_data[] = $tablet_css->css_output();
|
811 |
}
|
812 |
|
813 |
+
if ( $tablet_only_css->css_output() ) {
|
814 |
+
$tablet_only_css_data[] = $tablet_only_css->css_output();
|
815 |
+
}
|
816 |
+
|
817 |
if ( $mobile_css->css_output() ) {
|
818 |
$mobile_css_data[] = $mobile_css->css_output();
|
819 |
}
|
832 |
$blocks_exist = true;
|
833 |
|
834 |
$css = new GenerateBlocks_Dynamic_CSS();
|
835 |
+
$desktop_css = new GenerateBlocks_Dynamic_CSS();
|
836 |
$tablet_css = new GenerateBlocks_Dynamic_CSS();
|
837 |
+
$tablet_only_css = new GenerateBlocks_Dynamic_CSS();
|
838 |
$mobile_css = new GenerateBlocks_Dynamic_CSS();
|
839 |
|
840 |
if ( ! $icon_css_added ) {
|
841 |
$css->set_selector( '.gb-icon' );
|
|
|
|
|
842 |
$css->add_property( 'display', 'inline-flex' );
|
843 |
$css->add_property( 'line-height', '0' );
|
844 |
|
850 |
$icon_css_added = true;
|
851 |
}
|
852 |
|
853 |
+
$css->set_selector( '.gb-button-wrapper .gb-button' );
|
|
|
|
|
854 |
$css->add_property( 'display', 'inline-flex' );
|
855 |
$css->add_property( 'align-items', 'center' );
|
856 |
$css->add_property( 'justify-content', 'center' );
|
875 |
|
876 |
$id = $atts['uniqueId'];
|
877 |
|
878 |
+
$selector = 'a.gb-button-' . $id;
|
879 |
+
|
880 |
+
if ( isset( $atts['hasUrl'] ) && ! $atts['hasUrl'] ) {
|
881 |
+
$selector = '.gb-button-' . $id;
|
882 |
+
}
|
883 |
+
|
884 |
// Back-compatibility for when icon held a value.
|
885 |
if ( $settings['icon'] ) {
|
886 |
$settings['hasIcon'] = true;
|
905 |
}
|
906 |
}
|
907 |
|
908 |
+
$css->set_selector( '.gb-button-wrapper ' . $selector . ',.gb-button-wrapper ' . $selector . ':visited' );
|
909 |
$css->add_property( 'background-color', generateblocks_hex2rgba( $settings['backgroundColor'], $settings['backgroundColorOpacity'] ) );
|
910 |
$css->add_property( 'color', $settings['textColor'] );
|
911 |
|
931 |
$css->add_property( 'text-transform', $settings['textTransform'] );
|
932 |
|
933 |
if ( $settings['hasIcon'] ) {
|
|
|
|
|
934 |
$css->add_property( 'display', 'inline-flex' );
|
935 |
$css->add_property( 'align-items', 'center' );
|
936 |
}
|
937 |
|
938 |
+
$css->set_selector( '.gb-button-wrapper ' . $selector . ':hover,.gb-button-wrapper ' . $selector . ':active,.gb-button-wrapper ' . $selector . ':focus' );
|
939 |
$css->add_property( 'background-color', generateblocks_hex2rgba( $settings['backgroundColorHover'], $settings['backgroundColorHoverOpacity'] ) );
|
940 |
$css->add_property( 'color', $settings['textColorHover'] );
|
941 |
$css->add_property( 'border-color', generateblocks_hex2rgba( $settings['borderColorHover'], $settings['borderColorHoverOpacity'] ) );
|
942 |
|
943 |
if ( $settings['hasIcon'] ) {
|
944 |
+
$css->set_selector( $selector . ' .gb-icon' );
|
945 |
$css->add_property( 'font-size', $settings['iconSize'], $settings['iconSizeUnit'] );
|
946 |
|
947 |
if ( ! $settings['removeText'] ) {
|
949 |
}
|
950 |
}
|
951 |
|
952 |
+
$tablet_css->set_selector( '.gb-button-wrapper ' . $selector );
|
953 |
$tablet_css->add_property( 'font-size', $settings['fontSizeTablet'], $settings['fontSizeUnit'] );
|
954 |
$tablet_css->add_property( 'letter-spacing', $settings['letterSpacingTablet'], 'em' );
|
955 |
$tablet_css->add_property( 'padding', array( $settings['paddingTopTablet'], $settings['paddingRightTablet'], $settings['paddingBottomTablet'], $settings['paddingLeftTablet'] ), $settings['paddingUnit'] );
|
958 |
$tablet_css->add_property( 'border-width', array( $settings['borderSizeTopTablet'], $settings['borderSizeRightTablet'], $settings['borderSizeBottomTablet'], $settings['borderSizeLeftTablet'] ), 'px' );
|
959 |
|
960 |
if ( $settings['hasIcon'] ) {
|
|