Gutenberg Blocks and Template Library by Otter - Version 1.5.1

Version Description

Download this release

Release Info

Developer themeisle
Plugin Icon wp plugin Gutenberg Blocks and Template Library by Otter
Version 1.5.1
Comparing to
See all releases

Code changes from version 1.5.0 to 1.5.1

CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
#### [Version 1.5.0](https://github.com/Codeinwp/otter-blocks/compare/v1.4.1...v1.5.0) (2020-03-20)
2
3
- Adds compatibility with WordPress 5.4
1
+ ##### [Version 1.5.1](https://github.com/Codeinwp/otter-blocks/compare/v1.5.0...v1.5.1) (2020-03-20)
2
+
3
+ - Adds compatibility with WordPress 5.4
4
+ - Fixed release issue with 1.5.0
5
+
6
#### [Version 1.5.0](https://github.com/Codeinwp/otter-blocks/compare/v1.4.1...v1.5.0) (2020-03-20)
7
8
- Adds compatibility with WordPress 5.4
otter-blocks.php CHANGED
@@ -7,7 +7,7 @@
7
* Plugin Name: Gutenberg Blocks and Template Library by Otter
8
* Plugin URI: https://themeisle.com/plugins/otter-blocks
9
* Description: Create beautiful and attracting posts, pages, and landing pages with Gutenberg Blocks and Template Library by Otter. Otter comes with dozens of Gutenberg blocks that are all you need to build beautiful pages.
10
- * Version: 1.5.0
11
* Author: ThemeIsle
12
* Author URI: https://themeisle.com
13
* License: GPL-2.0+
@@ -26,7 +26,7 @@ if ( ! defined( 'WPINC' ) ) {
26
define( 'OTTER_BLOCKS_BASEFILE', __FILE__ );
27
define( 'OTTER_BLOCKS_URL', plugins_url( '/', __FILE__ ) );
28
define( 'OTTER_BLOCKS_PATH', dirname( __FILE__ ) );
29
- define( 'OTTER_BLOCKS_VERSION', '1.5.0' );
30
define( 'OTTER_BLOCKS_DEV', false );
31
32
$vendor_file = OTTER_BLOCKS_PATH . '/vendor/autoload.php';
7
* Plugin Name: Gutenberg Blocks and Template Library by Otter
8
* Plugin URI: https://themeisle.com/plugins/otter-blocks
9
* Description: Create beautiful and attracting posts, pages, and landing pages with Gutenberg Blocks and Template Library by Otter. Otter comes with dozens of Gutenberg blocks that are all you need to build beautiful pages.
10
+ * Version: 1.5.1
11
* Author: ThemeIsle
12
* Author URI: https://themeisle.com
13
* License: GPL-2.0+
26
define( 'OTTER_BLOCKS_BASEFILE', __FILE__ );
27
define( 'OTTER_BLOCKS_URL', plugins_url( '/', __FILE__ ) );
28
define( 'OTTER_BLOCKS_PATH', dirname( __FILE__ ) );
29
+ define( 'OTTER_BLOCKS_VERSION', '1.5.1' );
30
define( 'OTTER_BLOCKS_DEV', false );
31
32
$vendor_file = OTTER_BLOCKS_PATH . '/vendor/autoload.php';
readme.md CHANGED
@@ -46,6 +46,14 @@ It has:
46
47
## Changelog ##
48
49
#### [Version 1.5.0](https://github.com/Codeinwp/otter-blocks/compare/v1.4.1...v1.5.0) (2020-03-20)
50
51
- Adds compatibility with WordPress 5.4
46
47
## Changelog ##
48
49
+ ##### [Version 1.5.1](https://github.com/Codeinwp/otter-blocks/compare/v1.5.0...v1.5.1) (2020-03-20)
50
+
51
+ - Adds compatibility with WordPress 5.4
52
+ - Fixed release issue with 1.5.0
53
+
54
+
55
+
56
+
57
#### [Version 1.5.0](https://github.com/Codeinwp/otter-blocks/compare/v1.4.1...v1.5.0) (2020-03-20)
58
59
- Adds compatibility with WordPress 5.4
readme.txt CHANGED
@@ -46,6 +46,14 @@ It has:
46
47
== Changelog ==
48
49
#### [Version 1.5.0](https://github.com/Codeinwp/otter-blocks/compare/v1.4.1...v1.5.0) (2020-03-20)
50
51
- Adds compatibility with WordPress 5.4
46
47
== Changelog ==
48
49
+ ##### [Version 1.5.1](https://github.com/Codeinwp/otter-blocks/compare/v1.5.0...v1.5.1) (2020-03-20)
50
+
51
+ - Adds compatibility with WordPress 5.4
52
+ - Fixed release issue with 1.5.0
53
+
54
+
55
+
56
+
57
#### [Version 1.5.0](https://github.com/Codeinwp/otter-blocks/compare/v1.4.1...v1.5.0) (2020-03-20)
58
59
- Adds compatibility with WordPress 5.4
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
5
require_once __DIR__ . '/composer/autoload_real.php';
6
7
- return ComposerAutoloaderInite4069214b60b0efef4a17b4633ac2190::getLoader();
4
5
require_once __DIR__ . '/composer/autoload_real.php';
6
7
+ return ComposerAutoloaderInit700e9e74a35ce6bfa82d23ed7bbdcad6::getLoader();
vendor/codeinwp/gutenberg-blocks/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
##### [Version 1.4.1](https://github.com/Codeinwp/gutenberg-blocks/compare/v1.4.0...v1.4.1) (2020-02-29)
2
3
- Fix issue with Button Group & Global Defaults
1
+ ##### [Version 1.4.2](https://github.com/Codeinwp/gutenberg-blocks/compare/v1.4.1...v1.4.2) (2020-03-20)
2
+
3
+ - Adds compatibility with WordPress 5.4
4
+
5
##### [Version 1.4.1](https://github.com/Codeinwp/gutenberg-blocks/compare/v1.4.0...v1.4.1) (2020-02-29)
6
7
- Fix issue with Button Group & Global Defaults
vendor/codeinwp/gutenberg-blocks/assets/static/deprecated.css ADDED
@@ -0,0 +1,297 @@
1
+ @media (min-width: 960px) {
2
+ .wp-block-themeisle-blocks-advanced-columns {
3
+ display: flex;
4
+ flex-direction: column;
5
+ position: relative;
6
+ }
7
+ .wp-block-themeisle-blocks-advanced-columns > .innerblocks-wrap {
8
+ flex-basis: 100%;
9
+ width: 100%;
10
+ word-break: keep-all;
11
+ }
12
+ .wp-block-themeisle-blocks-advanced-columns > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout {
13
+ display: flex;
14
+ flex-basis: 100%;
15
+ }
16
+ .wp-block-themeisle-blocks-advanced-columns > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout .editor-block-list__block {
17
+ max-width: unset;
18
+ }
19
+ .wp-block-themeisle-blocks-advanced-columns > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout >[data-type="themeisle-blocks/advanced-column"] {
20
+ display: flex;
21
+ flex-direction: column;
22
+ margin: auto;
23
+ width: 0;
24
+ }
25
+ .wp-block-themeisle-blocks-advanced-columns > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout >[data-type="themeisle-blocks/advanced-column"] .editor-block-list__block-edit {
26
+ margin-top: 12px;
27
+ flex-basis: 100%;
28
+ }
29
+ .wp-block-themeisle-blocks-advanced-columns.has-1-columns.has-desktop-equal-layout > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout >[data-type="themeisle-blocks/advanced-column"] {
30
+ flex-basis: 100%;
31
+ }
32
+ .wp-block-themeisle-blocks-advanced-columns.has-2-columns.has-desktop-equal-layout > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout >[data-type="themeisle-blocks/advanced-column"] {
33
+ flex-basis: 50%;
34
+ }
35
+ .wp-block-themeisle-blocks-advanced-columns.has-2-columns.has-desktop-oneTwo-layout > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout >[data-type="themeisle-blocks/advanced-column"]:first-child {
36
+ flex-basis: 33.34%;
37
+ }
38
+ .wp-block-themeisle-blocks-advanced-columns.has-2-columns.has-desktop-oneTwo-layout > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout >[data-type="themeisle-blocks/advanced-column"]:last-child {
39
+ flex-basis: 66.66%;
40
+ }
41
+ .wp-block-themeisle-blocks-advanced-columns.has-2-columns.has-desktop-twoOne-layout > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout >[data-type="themeisle-blocks/advanced-column"]:first-child {
42
+ flex-basis: 66.66%;
43
+ }
44
+ .wp-block-themeisle-blocks-advanced-columns.has-2-columns.has-desktop-twoOne-layout > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout >[data-type="themeisle-blocks/advanced-column"]:last-child {
45
+ flex-basis: 33.34%;
46
+ }
47
+ .wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-desktop-equal-layout > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout >[data-type="themeisle-blocks/advanced-column"] {
48
+ flex-basis: 33.33%;
49
+ }
50
+ .wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-desktop-oneOneTwo-layout > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout >[data-type="themeisle-blocks/advanced-column"] {
51
+ flex-basis: 25%;
52
+ }
53
+ .wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-desktop-oneOneTwo-layout > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout >[data-type="themeisle-blocks/advanced-column"]:last-child {
54
+ flex-basis: 50%;
55
+ }
56
+ .wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-desktop-twoOneOne-layout > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout >[data-type="themeisle-blocks/advanced-column"] {
57
+ flex-basis: 25%;
58
+ }
59
+ .wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-desktop-twoOneOne-layout > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout >[data-type="themeisle-blocks/advanced-column"]:first-child {
60
+ flex-basis: 50%;
61
+ }
62
+ .wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-desktop-oneTwoOne-layout > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout >[data-type="themeisle-blocks/advanced-column"] {
63
+ flex-basis: 50%;
64
+ }
65
+ .wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-desktop-oneTwoOne-layout > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout >[data-type="themeisle-blocks/advanced-column"]:first-child {
66
+ flex-basis: 25%;
67
+ }
68
+ .wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-desktop-oneTwoOne-layout > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout >[data-type="themeisle-blocks/advanced-column"]:last-child {
69
+ flex-basis: 25%;
70
+ }
71
+ .wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-desktop-oneThreeOne-layout > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout >[data-type="themeisle-blocks/advanced-column"] {
72
+ flex-basis: 60%;
73
+ }
74
+ .wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-desktop-oneThreeOne-layout > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout >[data-type="themeisle-blocks/advanced-column"]:first-child {
75
+ flex-basis: 20%;
76
+ }
77
+ .wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-desktop-oneThreeOne-layout > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout >[data-type="themeisle-blocks/advanced-column"]:last-child {
78
+ flex-basis: 20%;
79
+ }
80
+ .wp-block-themeisle-blocks-advanced-columns.has-4-columns.has-desktop-equal-layout > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout >[data-type="themeisle-blocks/advanced-column"] {
81
+ flex-basis: 25%;
82
+ }
83
+ .wp-block-themeisle-blocks-advanced-columns.has-5-columns.has-desktop-equal-layout > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout >[data-type="themeisle-blocks/advanced-column"] {
84
+ flex-basis: 20%;
85
+ }
86
+ .wp-block-themeisle-blocks-advanced-columns.has-6-columns.has-desktop-equal-layout > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout >[data-type="themeisle-blocks/advanced-column"] {
87
+ flex-basis: 16.66%;
88
+ }
89
+ }
90
+ @media (min-width: 600px) and (max-width: 960px) {
91
+ .wp-block-themeisle-blocks-advanced-columns {
92
+ display: flex;
93
+ flex-direction: column;
94
+ }
95
+ .wp-block-themeisle-blocks-advanced-columns > .innerblocks-wrap {
96
+ flex-basis: 100%;
97
+ width: 100%;
98
+ word-break: keep-all;
99
+ }
100
+ .wp-block-themeisle-blocks-advanced-columns > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout {
101
+ display: flex;
102
+ }
103
+ .wp-block-themeisle-blocks-advanced-columns > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout .editor-block-list__block {
104
+ max-width: unset;
105
+ }
106
+ .wp-block-themeisle-blocks-advanced-columns > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout >[data-type="themeisle-blocks/advanced-column"] {
107
+ display: flex;
108
+ flex-direction: column;
109
+ flex: 1;
110
+ width: auto;
111
+ }
112
+ .wp-block-themeisle-blocks-advanced-columns > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout >[data-type="themeisle-blocks/advanced-column"] .editor-block-list__block-edit {
113
+ margin-top: 12px;
114
+ flex-basis: 100%;
115
+ }
116
+ .wp-block-themeisle-blocks-advanced-columns.has-2-columns.has-tablet-oneTwo-layout > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout >[data-type="themeisle-blocks/advanced-column"]:last-child {
117
+ flex: 2;
118
+ }
119
+ .wp-block-themeisle-blocks-advanced-columns.has-2-columns.has-tablet-twoOne-layout > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout >[data-type="themeisle-blocks/advanced-column"]:first-child {
120
+ flex: 2;
121
+ }
122
+ .wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-tablet-oneOneTwo-layout > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout >[data-type="themeisle-blocks/advanced-column"]:last-child {
123
+ flex: 2;
124
+ }
125
+ .wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-tablet-twoOneOne-layout > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout >[data-type="themeisle-blocks/advanced-column"]:first-child {
126
+ flex: 2;
127
+ }
128
+ .wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-tablet-oneTwoOne-layout > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout >[data-type="themeisle-blocks/advanced-column"] {
129
+ flex: 2;
130
+ }
131
+ .wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-tablet-oneTwoOne-layout > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout >[data-type="themeisle-blocks/advanced-column"]:first-child {
132
+ flex: 1;
133
+ }
134
+ .wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-tablet-oneTwoOne-layout > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout >[data-type="themeisle-blocks/advanced-column"]:last-child {
135
+ flex: 1;
136
+ }
137
+ .wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-tablet-oneThreeOne-layout > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout >[data-type="themeisle-blocks/advanced-column"] {
138
+ flex: 3;
139
+ }
140
+ .wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-tablet-oneThreeOne-layout > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout >[data-type="themeisle-blocks/advanced-column"]:first-child {
141
+ flex: 1;
142
+ }
143
+ .wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-tablet-oneThreeOne-layout > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout >[data-type="themeisle-blocks/advanced-column"]:last-child {
144
+ flex: 1;
145
+ }
146
+ .wp-block-themeisle-blocks-advanced-columns.has-tablet-collapsedRows-layout > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout {
147
+ flex-direction: column;
148
+ }
149
+ .wp-block-themeisle-blocks-advanced-columns.has-tablet-collapsedRows-layout.has-reverse-columns-tablet > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout {
150
+ flex-direction: column-reverse;
151
+ }
152
+ .wp-block-themeisle-blocks-advanced-columns.has-tablet-twoColumnGrid-layout > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout {
153
+ display: flex;
154
+ flex-wrap: wrap;
155
+ }
156
+ .wp-block-themeisle-blocks-advanced-columns.has-tablet-twoColumnGrid-layout > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout >[data-type="themeisle-blocks/advanced-column"] {
157
+ flex: 1 1 50%;
158
+ }
159
+ .wp-block-themeisle-blocks-advanced-columns.has-tablet-threeColumnGrid-layout > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout {
160
+ display: flex;
161
+ flex-wrap: wrap;
162
+ }
163
+ .wp-block-themeisle-blocks-advanced-columns.has-tablet-threeColumnGrid-layout > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout >[data-type="themeisle-blocks/advanced-column"] {
164
+ flex: 1 1 33%;
165
+ }
166
+ }
167
+ @media (max-width: 600px) {
168
+ .wp-block-themeisle-blocks-advanced-columns {
169
+ display: flex;
170
+ flex-direction: column;
171
+ }
172
+ .wp-block-themeisle-blocks-advanced-columns > .innerblocks-wrap {
173
+ flex-basis: 100%;
174
+ width: 100%;
175
+ word-break: keep-all;
176
+ }
177
+ .wp-block-themeisle-blocks-advanced-columns > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout {
178
+ display: flex;
179
+ }
180
+ .wp-block-themeisle-blocks-advanced-columns > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout .editor-block-list__block {
181
+ max-width: unset;
182
+ }
183
+ .wp-block-themeisle-blocks-advanced-columns > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout >[data-type="themeisle-blocks/advanced-column"] {
184
+ display: flex;
185
+ flex-direction: column;
186
+ flex: 1;
187
+ width: auto;
188
+ }
189
+ .wp-block-themeisle-blocks-advanced-columns > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout >[data-type="themeisle-blocks/advanced-column"] .editor-block-list__block-edit {
190
+ margin-top: 12px;
191
+ flex-basis: 100%;
192
+ }
193
+ .wp-block-themeisle-blocks-advanced-columns.has-2-columns.has-mobile-oneTwo-layout > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout >[data-type="themeisle-blocks/advanced-column"]:last-child {
194
+ flex: 2;
195
+ }
196
+ .wp-block-themeisle-blocks-advanced-columns.has-2-columns.has-mobile-twoOne-layout > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout >[data-type="themeisle-blocks/advanced-column"]:first-child {
197
+ flex: 2;
198
+ }
199
+ .wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-mobile-oneOneTwo-layout > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout >[data-type="themeisle-blocks/advanced-column"]:last-child {
200
+ flex: 2;
201
+ }
202
+ .wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-mobile-twoOneOne-layout > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout >[data-type="themeisle-blocks/advanced-column"]:first-child {
203
+ flex: 2;
204
+ }
205
+ .wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-mobile-oneTwoOne-layout > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout >[data-type="themeisle-blocks/advanced-column"] {
206
+ flex: 2;
207
+ }
208
+ .wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-mobile-oneTwoOne-layout > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout >[data-type="themeisle-blocks/advanced-column"]:first-child {
209
+ flex: 1;
210
+ }
211
+ .wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-mobile-oneTwoOne-layout > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout >[data-type="themeisle-blocks/advanced-column"]:last-child {
212
+ flex: 1;
213
+ }
214
+ .wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-mobile-oneThreeOne-layout > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout >[data-type="themeisle-blocks/advanced-column"] {
215
+ flex: 3;
216
+ }
217
+ .wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-mobile-oneThreeOne-layout > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout >[data-type="themeisle-blocks/advanced-column"]:first-child {
218
+ flex: 1;
219
+ }
220
+ .wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-mobile-oneThreeOne-layout > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout >[data-type="themeisle-blocks/advanced-column"]:last-child {
221
+ flex: 1;
222
+ }
223
+ .wp-block-themeisle-blocks-advanced-columns.has-mobile-collapsedRows-layout > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout {
224
+ flex-direction: column;
225
+ }
226
+ .wp-block-themeisle-blocks-advanced-columns.has-mobile-collapsedRows-layout.has-reverse-columns-mobile > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout {
227
+ flex-direction: column-reverse;
228
+ }
229
+ .wp-block-themeisle-blocks-advanced-columns.has-mobile-twoColumnGrid-layout > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout {
230
+ display: flex;
231
+ flex-wrap: wrap;
232
+ }
233
+ .wp-block-themeisle-blocks-advanced-columns.has-mobile-twoColumnGrid-layout > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout >[data-type="themeisle-blocks/advanced-column"] {
234
+ flex: 1 1 50%;
235
+ }
236
+ .wp-block-themeisle-blocks-advanced-columns.has-mobile-threeColumnGrid-layout > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout {
237
+ display: flex;
238
+ flex-wrap: wrap;
239
+ }
240
+ .wp-block-themeisle-blocks-advanced-columns.has-mobile-threeColumnGrid-layout > .innerblocks-wrap > .editor-inner-blocks > .editor-block-list__layout >[data-type="themeisle-blocks/advanced-column"] {
241
+ flex: 1 1 33%;
242
+ }
243
+ }
244
+ .wp-block-themeisle-blocks-advanced-columns.has-vertical-flex-start .wp-themeisle-block-advanced-column-resize-container {
245
+ align-items: flex-start;
246
+ }
247
+ .wp-block-themeisle-blocks-advanced-columns.has-vertical-center .wp-themeisle-block-advanced-column-resize-container {
248
+ align-items: center;
249
+ }
250
+ .wp-block-themeisle-blocks-advanced-columns.has-vertical-flex-end .wp-themeisle-block-advanced-column-resize-container {
251
+ align-items: flex-end;
252
+ }
253
+ .wp-block-themeisle-onboarding-component .wp-block-themeisle-layout-picker {
254
+ justify-content: center;
255
+ }
256
+ .wp-block-themeisle-onboarding-component .components-placeholder__fieldset.is-column-layout .wp-block-themeisle-template-library {
257
+ align-self: center;
258
+ }
259
+ .block-editor-block-list__block[data-type="themeisle-blocks/advanced-columns"]:not(.is-selected)::before {
260
+ outline: none;
261
+ }
262
+ .editor-block-list__block[data-type="themeisle-blocks/advanced-columns"]:not(.is-selected) > .editor-block-list__block-edit:before {
263
+ outline: 2px dashed #d5dadf;
264
+ }
265
+ [data-type="themeisle-blocks/advanced-column"] .wp-themeisle-block-advanced-column-resize-container .wp-themeisle-block-advanced-column-resize-container-handle .components-resizable-box__handle-right {
266
+ right: -15.5px;
267
+ }
268
+ .block-editor__container .components-popover.components-color-palette__picker {
269
+ z-index: 9999999 !important;
270
+ }
271
+ .edit-post-settings-sidebar__panel-block .components-panel__body .components-color-palette {
272
+ display: inline-block;
273
+ }
274
+ .branch-5-2 .wp-block-themeisle-blocks-sizing-control .wp-block-themeisle-blocks-sizing-control-item.toggle-linking {
275
+ margin-top: 1px;
276
+ }
277
+ .branch-5-2 .wp-block-themeisle-layout-skipper {
278
+ width: 100%;
279
+ }
280
+ .wp-block-themeisle-toolbar {
281
+ display: flex;
282
+ align-items: center;
283
+ padding: 0 3px;
284
+ }
285
+ .wp-block-themeisle-toolbar .wp-block-themeisle-toolbar-icon {
286
+ width: 30px;
287
+ height: 30px;
288
+ padding: 5px 0;
289
+ color: #555d66;
290
+ border-radius: 4px;
291
+ }
292
+ .wp-block-themeisle-toolbar .wp-block-themeisle-toolbar-icon:hover {
293
+ box-shadow: inset 0 0 0 1px #555d66;
294
+ }
295
+ .wp-block-themeisle-blocks-options-global-defaults .wp-block-themeisle-blocks-options-global-defaults-list .wp-block-themeisle-blocks-options-global-defaults-list-item:hover {
296
+ background: #f3f4f5;
297
+ }
vendor/codeinwp/gutenberg-blocks/build/blocks.js CHANGED
@@ -1 +1 @@
1
- !function(e){function t(t){for(var a,r,i=t[0],c=t[1],d=t[2],m=0,s=[];m<i.length;m++)r=i[m],Object.prototype.hasOwnProperty.call(l,r)&&l[r]&&s.push(l[r][0]),l[r]=0;for(a in c)Object.prototype.hasOwnProperty.call(c,a)&&(e[a]=c[a]);for(p&&p(t);s.length;)s.shift()();return o.push.apply(o,d||[]),n()}function n(){for(var e,t=0;t<o.length;t++){for(var n=o[t],a=!0,i=1;i<n.length;i++){var c=n[i];0!==l[c]&&(a=!1)}a&&(o.splice(t--,1),e=r(r.s=n[0]))}return e}var a={},l={2:0},o=[];function r(t){if(a[t])return a[t].exports;var n=a[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.e=function(e){var t=[],n=l[e];if(0!==n)if(n)t.push(n[2]);else{var a=new Promise((function(t,a){n=l[e]=[t,a]}));t.push(n[2]=a);var o,i=document.createElement("script");i.charset="utf-8",i.timeout=120,r.nc&&i.setAttribute("nonce",r.nc),i.src=function(e){return r.p+"chunk-"+({}[e]||e)+".js"}(e);var c=new Error;o=function(t){i.onerror=i.onload=null,clearTimeout(d);var n=l[e];if(0!==n){if(n){var a=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;c.message="Loading chunk "+e+" failed.\n("+a+": "+o+")",c.name="ChunkLoadError",c.type=a,c.request=o,n[1](c)}l[e]=void 0}};var d=setTimeout((function(){o({type:"timeout",target:i})}),12e4);i.onerror=i.onload=o,document.head.appendChild(i)}return Promise.all(t)},r.m=e,r.c=a,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r.oe=function(e){throw console.error(e),e};var i=window.tiOtterWebpackJsonp=window.tiOtterWebpackJsonp||[],c=i.push.bind(i);i.push=t,i=i.slice();for(var d=0;d<i.length;d++)t(i[d]);var p=c;o.push([38,0]),n()}([,,function(e,t,n){"use strict";n.d(t,"l",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"d",(function(){return c})),n.d(t,"f",(function(){return d})),n.d(t,"e",(function(){return p})),n.d(t,"h",(function(){return m})),n.d(t,"g",(function(){return s})),n.d(t,"q",(function(){return u})),n.d(t,"i",(function(){return b})),n.d(t,"n",(function(){return g})),n.d(t,"m",(function(){return h})),n.d(t,"p",(function(){return f})),n.d(t,"o",(function(){return y})),n.d(t,"r",(function(){return w})),n.d(t,"b",(function(){return v})),n.d(t,"s",(function(){return k})),n.d(t,"j",(function(){return T})),n.d(t,"c",(function(){return E})),n.d(t,"k",(function(){return x}));var a=wp.components,l=a.Path,o=a.SVG,r=function(){return wp.element.createElement(o,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 29 32",width:"20",height:"20",className:"otter-icon"},wp.element.createElement(l,{d:"M19.831 7.877c0.001-0.003 0.001-0.005 0.001-0.009s-0-0.006-0.001-0.009l0 0c-0.047-0.081-0.092-0.164-0.132-0.247l-0.057-0.115c-0.277-0.498-0.381-0.99-1.033-1.064h-0.045c-0.001 0-0.002 0-0.003 0-0.486 0-0.883 0.382-0.908 0.862l-0 0.002c0.674 0.126 1.252 0.278 1.813 0.468l-0.092-0.027 0.283 0.096 0.147 0.053s0.028 0 0.028-0.011z"}),wp.element.createElement(l,{d:"M23.982 13.574c-0.008-2.41-0.14-4.778-0.39-7.112l0.026 0.299 0.070-0.019c0.459-0.139 0.787-0.558 0.787-1.053 0-0.479-0.307-0.887-0.735-1.037l-0.008-0.002h-0.026c-0.479-0.164-0.874-0.468-1.149-0.861l-0.005-0.007c-2.7-3.96-8.252-3.781-8.252-3.781s-5.55-0.179-8.25 3.781c-0.28 0.401-0.676 0.704-1.14 0.862l-0.016 0.005c-0.441 0.148-0.754 0.557-0.754 1.040 0 0.009 0 0.017 0 0.026l-0-0.001c-0 0.010-0.001 0.022-0.001 0.034 0 0.493 0.335 0.907 0.789 1.029l0.007 0.002 0.045 0.011c-0.224 2.034-0.356 4.403-0.364 6.801l-0 0.012s-9.493 13.012-1.277 17.515c4.733 2.431 6.881-0.769 6.881-0.769s1.397-1.661-1.784-3.355v-4.609c0.006-0.344 0.282-0.621 0.625-0.628h1.212v-0.59c0-0.275 0.223-0.498 0.498-0.498v0h1.665c0.274 0.001 0.496 0.224 0.496 0.498 0 0 0 0 0 0v0 0.59h2.721v-0.59c0-0.275 0.223-0.498 0.498-0.498v0h1.665c0.271 0.005 0.49 0.226 0.49 0.498 0 0 0 0 0 0v0 0.59h1.209c0 0 0 0 0 0 0.349 0 0.633 0.28 0.639 0.627v4.584c-3.193 1.703-1.784 3.355-1.784 3.355s2.148 3.193 6.879 0.769c8.222-4.503-1.269-17.515-1.269-17.515zM22.586 10.261c-0.097 1.461-0.67 2.772-1.563 3.797l0.007-0.008c-1.703 2.010-4.407 3.249-6.721 4.432v0c-2.325-1.177-5.026-2.416-6.736-4.432-0.883-1.019-1.455-2.329-1.555-3.769l-0.001-0.020c-0.126-2.22 0.583-5.929 3.044-6.74 2.416-0.788 3.947 1.288 4.494 2.227 0.152 0.258 0.429 0.428 0.745 0.428s0.593-0.17 0.743-0.424l0.002-0.004c0.551-0.932 2.080-3.008 4.494-2.22 2.474 0.805 3.174 4.513 3.046 6.734z"}),wp.element.createElement(l,{d:"M19.463 10.087h-0.028c-0.192 0.026-0.121 0.251-0.047 0.356 0.254 0.349 0.407 0.787 0.407 1.26 0 0.006-0 0.012-0 0.018v-0.001c-0.001 0.469-0.255 0.878-0.633 1.1l-0.006 0.003c-0.739 0.426-1.377-0.145-2.054-0.398-0.72-0.269-1.552-0.434-2.42-0.455l-0.009-0v-1.033c1.020-0.233 1.894-0.76 2.551-1.486l0.004-0.004c0.151-0.163 0.244-0.383 0.244-0.623 0-0.316-0.159-0.595-0.402-0.76l-0.003-0.002c-0.768-0.551-1.728-0.881-2.764-0.881-1.054 0-2.029 0.341-2.819 0.92l0.013-0.009c-0.224 0.166-0.367 0.429-0.367 0.726 0 0.226 0.083 0.433 0.221 0.591l-0.001-0.001c0.665 0.751 1.55 1.295 2.553 1.53l0.033 0.007v1.050c-0.742 0.021-1.448 0.14-2.118 0.343l0.057-0.015c-0.341 0.103-0.631 0.219-0.908 0.358l0.033-0.015c-0.519 0.26-1.037 0.436-1.58 0.121-0.371-0.213-0.617-0.607-0.617-1.058 0-0.002 0-0.004 0-0.007v0c0-0.002 0-0.004 0-0.007 0-0.47 0.153-0.905 0.411-1.257l-0.004 0.006c0.047-0.068 0.089-0.17 0.026-0.241s-0.189 0-0.27 0.030c-0.189 0.099-0.348 0.227-0.479 0.381l-0.002 0.002c-0.245 0.296-0.394 0.679-0.394 1.097 0 0.004 0 0.007 0 0.011v-0.001c0.008 0.706 0.393 1.321 0.964 1.651l0.009 0.005c0.296 0.178 0.654 0.283 1.036 0.283 0.364 0 0.706-0.095 1.001-0.263l-0.010 0.005c0.877-0.461 1.917-0.731 3.019-0.731 0.069 0 0.137 0.001 0.206 0.003l-0.010-0h0.030c1.277 0 2.382 0.266 3.266 0.775 0.27 0.159 0.594 0.253 0.94 0.253 0.001 0 0.002 0 0.003 0h-0c0.355-0.002 0.688-0.098 0.974-0.265l-0.009 0.005c0.606-0.357 1.007-1.007 1.007-1.75 0-0.001 0-0.003 0-0.004v0c0.001-0.026 0.002-0.056 0.002-0.086 0-0.625-0.34-1.171-0.846-1.462l-0.008-0.004c-0.056-0.040-0.125-0.065-0.199-0.070l-0.001-0zM13.101 8.831c-0.238 0.213-0.468 0.581-0.832 0.345-0.061-0.041-0.114-0.086-0.161-0.136l-0-0c-0.063-0.063-0.101-0.15-0.101-0.247 0-0.133 0.074-0.248 0.182-0.308l0.002-0.001c0.594-0.309 1.203-0.543 1.884-0.49-0.324 0.281-0.649 0.56-0.973 0.837z"}),wp.element.createElement(l,{d:"M15.89 13.578c-0.367 0.483-0.941 0.792-1.588 0.792s-1.221-0.309-1.585-0.787l-0.004-0.005c-0.064-0.103-0.177-0.171-0.306-0.171-0.199 0-0.36 0.161-0.36 0.36 0 0.091 0.034 0.174 0.090 0.238l-0-0c0.499 0.659 1.283 1.080 2.164 1.080s1.665-0.421 2.159-1.073l0.005-0.007c0.043-0.059 0.068-0.132 0.068-0.212 0-0.116-0.055-0.22-0.14-0.286l-0.001-0.001c-0.059-0.045-0.134-0.072-0.215-0.072-0.117 0-0.221 0.056-0.286 0.143l-0.001 0.001z"}),wp.element.createElement(l,{d:"M18.507 11.707c0 0.194-0.157 0.351-0.351 0.351s-0.351-0.157-0.351-0.351c0-0.194 0.157-0.351 0.351-0.351s0.351 0.157 0.351 0.351z"}),wp.element.createElement(l,{d:"M17.389 11.049c0 0.194-0.157 0.351-0.351 0.351s-0.351-0.157-0.351-0.351c0-0.194 0.157-0.351 0.351-0.351s0.351 0.157 0.351 0.351z"}),wp.element.createElement(l,{d:"M10.798 11.707c0 0.194-0.157 0.351-0.351 0.351s-0.351-0.157-0.351-0.351c0-0.194 0.157-0.351 0.351-0.351s0.351 0.157 0.351 0.351z"}),wp.element.createElement(l,{d:"M11.918 11.049c0 0.194-0.157 0.351-0.351 0.351s-0.351-0.157-0.351-0.351c0-0.194 0.157-0.351 0.351-0.351s0.351 0.157 0.351 0.351z"}),wp.element.createElement(l,{d:"M8.773 7.877c-0.001-0.003-0.002-0.005-0.002-0.009s0.001-0.006 0.002-0.009l-0 0c0.047-0.081 0.089-0.164 0.132-0.247 0.019-0.038 0.036-0.079 0.057-0.115 0.275-0.498 0.379-0.99 1.033-1.064h0.045c0 0 0.001 0 0.001 0 0.487 0 0.884 0.382 0.91 0.862l0 0.002c-0.678 0.124-1.261 0.277-1.827 0.468l0.092-0.027-0.275 0.096-0.1 0.036-0.045 0.017s-0.023 0-0.023-0.011z"}))},i=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M17.348 20.657v-0.135c1.029-0.471 1.758-1.446 1.916-2.563 0.434-0.157 0.739-0.576 0.739-1.051 0-0.408-0.221-0.774-0.562-0.969 0.036-0.111 0.065-0.223 0.087-0.335 0.182-0.901-0.025-1.822-0.583-2.592-0.548-0.758-1.373-1.281-2.321-1.473-0.255-0.051-0.515-0.077-0.773-0.077-0.813 0-1.607 0.262-2.234 0.739-0.646 0.49-1.088 1.187-1.244 1.962-0.118 0.587-0.070 1.193 0.139 1.762-0.355 0.191-0.59 0.566-0.59 0.985 0 0.481 0.31 0.901 0.751 1.055 0.163 1.144 0.916 2.128 1.978 2.587v0.106c-2.207 0.5-3.729 2.151-3.729 4.079v0.515h10.153v-0.515c0-1.929-1.522-3.58-3.729-4.080zM15.853 12.492c0.189 0 0.381 0.019 0.569 0.057 0.693 0.14 1.293 0.519 1.689 1.066 0.369 0.511 0.518 1.111 0.423 1.701-0.507-0.237-1.173-0.487-1.874-0.583-1.318-0.18-1.339-0.241-1.417-0.469l-0.252-0.728-0.579 0.512c-0.062 0.054-0.528 0.464-1.066 0.91-0.015-0.198-0.002-0.396 0.037-0.593 0.219-1.086 1.257-1.873 2.469-1.873zM13.67 16.025c0.361-0.292 0.718-0.594 0.977-0.816 0.358 0.323 0.916 0.414 1.874 0.545 0.65 0.089 1.287 0.349 1.748 0.578v1.161c0 1.268-1.031 2.299-2.299 2.299s-2.299-1.031-2.299-2.299v-1.468zM15.682 20.81c0.213 0.019 0.425 0.017 0.635-0.006v0.318l-0.318 0.177-0.317-0.176v-0.313zM12.006 24.22c0.237-1.154 1.25-2.113 2.646-2.501v0.010l1.346 0.748 1.35-0.748v-0.010c1.396 0.388 2.409 1.348 2.646 2.502l-7.987-0zM21.076 27.499h-10.153c-0.307 0-0.556-0.249-0.556-0.556s0.249-0.556 0.556-0.556h10.153c0.307 0 0.556 0.249 0.556 0.556s-0.249 0.556-0.556 0.556zM28.112 3.393h-9.422v-1.689c0-0.832-0.677-1.509-1.509-1.509h-2.363c-0.832 0-1.509 0.677-1.509 1.509v1.689h-9.422c-0.832 0-1.509 0.677-1.509 1.509v25.395c0 0.832 0.677 1.509 1.509 1.509h24.225c0.832 0 1.509-0.677 1.509-1.509v-25.395c-0-0.832-0.677-1.509-1.509-1.509zM14.421 1.703c0-0.219 0.178-0.397 0.397-0.397h2.363c0.219 0 0.397 0.178 0.397 0.397v5.083c0 0.219-0.178 0.397-0.397 0.397h-2.363c-0.219 0-0.397-0.178-0.397-0.397v-5.083zM28.509 30.297c0 0.219-0.178 0.397-0.397 0.397h-24.225c-0.219 0-0.397-0.178-0.397-0.397v-25.395c0-0.219 0.178-0.397 0.397-0.397h9.422v2.282c0 0.832 0.677 1.509 1.509 1.509h2.363c0.832 0 1.509-0.677 1.509-1.509v-2.282h9.422c0.219 0 0.397 0.178 0.397 0.397v25.395z"}))},c=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M30.457 11.777h-28.914c-0.829 0-1.503 0.674-1.503 1.503v5.606c0 0.829 0.674 1.503 1.503 1.503h28.914c0.829 0 1.503-0.674 1.503-1.503v-5.606c-0-0.829-0.674-1.503-1.503-1.503zM30.84 18.886c0 0.211-0.172 0.383-0.383 0.383h-28.914c-0.211 0-0.383-0.172-0.383-0.383v-5.606c0-0.211 0.172-0.383 0.383-0.383h28.914c0.211 0 0.383 0.172 0.383 0.383v5.606zM4.67 15.133c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95 0.95-0.425 0.95-0.95c0-0.525-0.425-0.95-0.95-0.95zM7.947 15.133c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95c0.525 0 0.95-0.425 0.95-0.95s-0.425-0.95-0.95-0.95zM11.224 15.133c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95c0.525 0 0.95-0.425 0.95-0.95s-0.425-0.95-0.95-0.95zM27.871 15.523h-11.386c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h11.386c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56zM30.457 23.388h-28.914c-0.829 0-1.503 0.674-1.503 1.503v5.606c0 0.829 0.674 1.503 1.503 1.503h28.914c0.829 0 1.503-0.674 1.503-1.503v-5.606c-0-0.829-0.674-1.503-1.503-1.503zM30.84 30.497c0 0.211-0.172 0.383-0.383 0.383h-28.914c-0.211 0-0.383-0.172-0.383-0.383v-5.606c0-0.211 0.172-0.383 0.383-0.383h28.914c0.211 0 0.383 0.172 0.383 0.383v5.606zM4.67 26.744c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95 0.95-0.425 0.95-0.95c0-0.525-0.425-0.95-0.95-0.95zM7.947 26.744c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95c0.525 0 0.95-0.425 0.95-0.95s-0.425-0.95-0.95-0.95zM11.224 26.744c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95c0.525 0 0.95-0.425 0.95-0.95s-0.425-0.95-0.95-0.95zM27.871 27.134h-11.386c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h11.386c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56zM30.457 0h-28.914c-0.829 0-1.503 0.674-1.503 1.503v5.606c0 0.829 0.674 1.503 1.503 1.503h28.914c0.829 0 1.503-0.674 1.503-1.503v-5.606c0-0.829-0.674-1.503-1.503-1.503zM30.84 7.109c0 0.211-0.172 0.383-0.383 0.383h-28.914c-0.211 0-0.383-0.172-0.383-0.383v-5.606c0-0.211 0.172-0.383 0.383-0.383h28.914c0.211 0 0.383 0.172 0.383 0.383v5.606zM5.62 4.306c0 0.525-0.425 0.95-0.95 0.95s-0.95-0.425-0.95-0.95c0-0.525 0.425-0.95 0.95-0.95s0.95 0.425 0.95 0.95zM7.947 3.356c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95c0.525 0 0.95-0.425 0.95-0.95s-0.425-0.95-0.95-0.95zM11.224 3.356c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95c0.525 0 0.95-0.425 0.95-0.95s-0.425-0.95-0.95-0.95zM27.871 3.746h-11.386c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h11.386c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56z"}))},d=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M30.584 0.099h-29.068c-0.781 0-1.417 0.635-1.417 1.416v29.068c0 0.781 0.635 1.416 1.417 1.416h29.068c0.781 0 1.416-0.635 1.416-1.416v-29.068c0-0.781-0.635-1.416-1.416-1.416zM1.515 1.219h29.068c0.163 0 0.296 0.133 0.296 0.296v3.476h-29.661v-3.476c0-0.163 0.133-0.296 0.296-0.296zM30.584 30.88h-29.068c-0.163 0-0.296-0.133-0.296-0.296v-24.472h29.661v24.472c0 0.163-0.133 0.296-0.296 0.296zM26.999 20.461h-21.062c-0.838 0-1.52 0.682-1.52 1.52v5.601c0 0.838 0.682 1.52 1.52 1.52h21.062c0.838 0 1.52-0.682 1.52-1.52v-5.601c0-0.838-0.682-1.52-1.52-1.52zM27.399 27.582c0 0.221-0.18 0.4-0.4 0.4h-21.062c-0.221 0-0.4-0.18-0.4-0.4v-5.601c0-0.221 0.179-0.4 0.4-0.4h21.062c0.221 0 0.4 0.179 0.4 0.4v5.601zM5.937 16.247h5.432c0.838 0 1.52-0.682 1.52-1.52v-5.432c0-0.838-0.682-1.52-1.52-1.52h-5.432c-0.838 0-1.52 0.682-1.52 1.52v5.432c0 0.838 0.682 1.52 1.52 1.52zM5.537 9.294c0-0.221 0.179-0.4 0.4-0.4h5.432c0.221 0 0.4 0.179 0.4 0.4v5.432c0 0.221-0.18 0.4-0.4 0.4h-5.432c-0.221 0-0.4-0.18-0.4-0.4v-5.432zM27.959 17.714h-22.982c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h22.982c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56zM27.959 14.793h-12.696c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h12.696c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56zM27.959 11.433h-12.696c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h12.696c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56zM27.959 8.072h-12.696c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h12.696c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56zM4.543 3.051c0 0.497-0.403 0.9-0.9 0.9s-0.9-0.403-0.9-0.9c0-0.497 0.403-0.9 0.9-0.9s0.9 0.403 0.9 0.9zM7.384 3.051c0 0.497-0.403 0.9-0.9 0.9s-0.9-0.403-0.9-0.9c0-0.497 0.403-0.9 0.9-0.9s0.9 0.403 0.9 0.9zM10.224 3.051c0 0.497-0.403 0.9-0.9 0.9s-0.9-0.403-0.9-0.9c0-0.497 0.403-0.9 0.9-0.9s0.9 0.403 0.9 0.9z"}))},p=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M31.276 3.351h-14.587l-3.23-3.028c-0.103-0.097-0.239-0.15-0.38-0.15h-12.354c-0.307 0-0.556 0.249-0.556 0.556v30.697c0 0.307 0.249 0.556 0.556 0.556h30.551c0.307 0 0.556-0.249 0.556-0.556v-27.518c0-0.307-0.249-0.556-0.556-0.556zM1.281 1.286h11.578l3.23 3.028c0.103 0.097 0.239 0.15 0.38 0.15h14.25v3.013h-29.439v-6.191zM30.719 30.87h-29.439v-22.281h29.439v22.281z"}))},m=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M30.958 13.988h-0.64c-0.572-5.298-4.029-9.744-8.764-11.73h5.439v0.555c0 0.309 0.25 0.559 0.559 0.559h2.23c0.309 0 0.559-0.25 0.559-0.559v-2.229c0-0.309-0.25-0.559-0.559-0.559h-2.23c-0.309 0-0.559 0.25-0.559 0.559v0.555h-9.319v-0.555c0-0.309-0.25-0.559-0.559-0.559h-2.23c-0.309 0-0.559 0.25-0.559 0.559v0.555h-9.319v-0.555c0-0.309-0.25-0.559-0.559-0.559h-2.229c-0.309 0-0.559 0.25-0.559 0.559v2.229c0 0.309 0.25 0.559 0.559 0.559h2.229c0.309 0 0.559-0.25 0.559-0.559v-0.555h5.439c-4.735 1.987-8.191 6.432-8.764 11.73h-0.64c-0.309 0-0.559 0.25-0.559 0.559v2.229c0 0.309 0.25 0.559 0.559 0.559h2.23c0.309 0 0.559-0.25 0.559-0.559v-2.229c0-0.309-0.25-0.559-0.559-0.559h-0.464c0.709-6.044 5.49-10.86 11.518-11.621v0.446c0 0.309 0.25 0.559 0.559 0.559h2.23c0.309 0 0.559-0.25 0.559-0.559v-0.446c6.028 0.761 10.809 5.578 11.518 11.621h-0.464c-0.309 0-0.559 0.25-0.559 0.559v2.23c0 0.309 0.25 0.559 0.559 0.559h2.23c0.309 0 0.559-0.25 0.559-0.559v-2.229c0-0.309-0.25-0.559-0.559-0.559zM29.223 2.253h-1.111v-1.111h1.111v1.111zM2.777 1.142h1.111v1.111h-1.111v-1.111zM2.712 15.608v0.609h-1.111v-0.973c0.001-0.046 0.002-0.092 0.003-0.138h1.108v0.501zM16 1.142c0.186 0 0.371 0.005 0.555 0.012v1.099h-1.111v-1.099c0.184-0.007 0.37-0.012 0.556-0.012zM30.399 15.25v0.967h-1.111v-1.111h1.107c0.002 0.048 0.003 0.096 0.004 0.144zM16.512 4.461c-0.089-0.204-0.29-0.336-0.513-0.336s-0.424 0.132-0.513 0.336l-7.287 16.694c-0.058 0.134-0.062 0.285-0.011 0.421l0.009 0.023c0.059 0.157 0.186 0.279 0.345 0.333 1.743 0.585 2.914 2.213 2.914 4.052 0 0.766-0.206 1.518-0.595 2.175-0.012 0.020-0.022 0.041-0.032 0.063-0.063 0.091-0.101 0.201-0.101 0.32v2.832c0 0.307 0.248 0.557 0.555 0.559l9.42 0.068c0.001 0 0.003 0 0.004 0 0.307 0 0.557-0.248 0.559-0.555 0.002-0.309-0.246-0.561-0.555-0.563l-8.865-0.064v-1.405h8.654c0.234 0 0.443-0.145 0.524-0.364l0.153-0.41c0.059-0.158 0.043-0.335-0.043-0.48-0.389-0.657-0.595-1.409-0.595-2.174 0-1.838 1.171-3.467 2.914-4.052 0.16-0.054 0.287-0.176 0.346-0.334l0.009-0.023c0.051-0.136 0.047-0.287-0.011-0.42l-7.287-16.694zM16 20.028c0.619 0 1.122 0.503 1.122 1.122s-0.504 1.122-1.122 1.122c-0.619 0-1.122-0.503-1.122-1.122s0.503-1.122 1.122-1.122zM19.424 25.983c0 0.802 0.179 1.591 0.52 2.31h-7.887c0.341-0.719 0.52-1.509 0.52-2.31 0-2.121-1.235-4.020-3.127-4.894l5.991-13.726v11.616c-0.966 0.249-1.682 1.128-1.682 2.17 0 1.236 1.005 2.241 2.241 2.241s2.241-1.005 2.241-2.241c0-1.043-0.716-1.921-1.682-2.17v-11.616l5.991 13.726c-1.892 0.874-3.127 2.773-3.127 4.894z"}))},s=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M30.424 0.171h-28.847c-0.775 0-1.406 0.631-1.406 1.406v28.848c0 0.775 0.631 1.406 1.406 1.406h28.847c0.775 0 1.406-0.631 1.406-1.406v-28.848c0-0.775-0.631-1.406-1.406-1.406zM1.576 1.282h28.847c0.162 0 0.294 0.132 0.294 0.294v3.45h-29.435v-3.45c0-0.162 0.132-0.294 0.294-0.294zM30.424 30.718h-28.847c-0.162 0-0.294-0.132-0.294-0.294v-24.286h29.435v24.286c0 0.162-0.132 0.294-0.294 0.294zM3.688 3.994c0.493 0 0.893-0.4 0.893-0.893s-0.4-0.893-0.893-0.893-0.893 0.4-0.893 0.893c0 0.493 0.4 0.893 0.893 0.893zM6.507 3.994c0.493 0 0.893-0.4 0.893-0.893s-0.4-0.893-0.893-0.893-0.893 0.4-0.893 0.893c0 0.493 0.4 0.893 0.893 0.893zM9.326 3.994c0.493 0 0.893-0.4 0.893-0.893s-0.4-0.893-0.893-0.893-0.893 0.4-0.893 0.893c0 0.493 0.4 0.893 0.893 0.893zM20.662 19.394l3.855-3.758c0.152-0.148 0.206-0.369 0.141-0.57s-0.239-0.348-0.449-0.378l-5.328-0.774-2.383-4.828c-0.094-0.19-0.287-0.31-0.498-0.31s-0.405 0.12-0.498 0.31l-2.383 4.828-5.328 0.774c-0.209 0.030-0.383 0.177-0.449 0.378s-0.011 0.422 0.141 0.57l3.855 3.758-0.91 5.307c-0.036 0.209 0.050 0.419 0.221 0.544s0.398 0.141 0.585 0.042l4.766-2.506 4.766 2.506c0.081 0.043 0.17 0.064 0.259 0.064 0.115 0 0.23-0.036 0.327-0.106 0.171-0.124 0.257-0.335 0.221-0.544l-0.91-5.307zM16.259 21.661c-0.162-0.085-0.355-0.085-0.517 0l-4.027 2.117 0.769-4.485c0.031-0.18-0.029-0.364-0.16-0.492l-3.258-3.176 4.503-0.654c0.181-0.026 0.338-0.14 0.418-0.304l2.014-4.080 2.014 4.080c0.081 0.164 0.238 0.278 0.419 0.304l4.503 0.654-3.258 3.176c-0.131 0.128-0.191 0.312-0.16 0.492l0.769 4.485-4.027-2.117zM16 25.179c-0.307 0-0.556 0.249-0.556 0.556v1.887c0 0.307 0.249 0.556 0.556 0.556s0.556-0.249 0.556-0.556v-1.887c0-0.307-0.249-0.556-0.556-0.556zM25.319 20.446l-1.794-0.583c-0.293-0.095-0.606 0.065-0.7 0.357s0.065 0.606 0.357 0.7l1.794 0.583c0.057 0.019 0.115 0.027 0.172 0.027 0.234 0 0.452-0.149 0.529-0.384 0.095-0.292-0.065-0.606-0.357-0.7zM20.218 12.197c0.099 0.072 0.213 0.106 0.326 0.106 0.172 0 0.341-0.079 0.45-0.229l1.109-1.526c0.18-0.248 0.125-0.596-0.123-0.776s-0.596-0.125-0.776 0.123l-1.109 1.526c-0.18 0.248-0.125 0.596 0.123 0.776zM11.006 12.075c0.109 0.15 0.278 0.229 0.45 0.229 0.113 0 0.228-0.034 0.326-0.106 0.248-0.18 0.303-0.528 0.123-0.776l-1.109-1.526c-0.18-0.248-0.528-0.303-0.776-0.123s-0.303 0.528-0.123 0.776l1.109 1.526zM8.475 19.863l-1.794 0.583c-0.292 0.095-0.452 0.408-0.357 0.7 0.076 0.235 0.294 0.384 0.529 0.384 0.057 0 0.115-0.009 0.172-0.027l1.794-0.583c0.292-0.095 0.452-0.408 0.357-0.7s-0.408-0.452-0.7-0.357z"}))},u=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M6.348 13.197c-0.308 0-0.557 0.249-0.557 0.557s0.249 0.557 0.557 0.557c0.495 0 1.655 0.598 1.655 1.759 0 0.308 0.249 0.557 0.557 0.557s0.557-0.249 0.557-0.557c0-1.886-1.803-2.873-2.769-2.873zM25.842 3.161c0.495 0 1.655 0.598 1.655 1.759 0 0.308 0.249 0.557 0.557 0.557s0.557-0.249 0.557-0.557c0-1.886-1.802-2.873-2.769-2.873-0.308 0-0.557 0.249-0.557 0.557s0.249 0.557 0.557 0.557zM25.742 22.433c-0.826 0-1.641 0.22-2.359 0.636-0.567 0.328-1.040 0.758-1.41 1.252l-11.344-6.569c0.069-0.174 0.13-0.353 0.179-0.537 0.276-1.036 0.194-2.11-0.226-3.079l11.319-6.555c0.878 1.235 2.316 1.986 3.848 1.986 0.825 0 1.641-0.22 2.359-0.636 1.090-0.631 1.869-1.649 2.194-2.866s0.155-2.488-0.476-3.578c-0.841-1.452-2.406-2.353-4.085-2.353-0.826 0-1.641 0.22-2.359 0.636-2.051 1.188-2.872 3.694-2.015 5.833l-11.344 6.569c-0.884-1.176-2.285-1.888-3.776-1.888-0.825 0-1.641 0.22-2.359 0.636-2.25 1.303-3.021 4.194-1.718 6.444 0.841 1.452 2.406 2.353 4.085 2.353 0.826 0 1.641-0.22 2.359-0.636 0.595-0.345 1.097-0.805 1.483-1.35l11.319 6.554c-0.567 1.323-0.526 2.888 0.249 4.227 0.841 1.452 2.406 2.353 4.085 2.353 0.825 0 1.641-0.22 2.359-0.636 1.090-0.631 1.869-1.649 2.194-2.866s0.155-2.488-0.476-3.578c-0.841-1.452-2.406-2.353-4.085-2.353zM23.941 1.734c0.549-0.318 1.171-0.486 1.801-0.486 1.283 0 2.479 0.689 3.121 1.798 0.482 0.833 0.611 1.803 0.363 2.733s-0.843 1.707-1.675 2.189c-0.549 0.318-1.171 0.486-1.801 0.486-1.283 0-2.479-0.689-3.121-1.798-0.995-1.719-0.407-3.927 1.312-4.922zM8.056 19.117c-0.549 0.318-1.171 0.486-1.801 0.486-1.283 0-2.479-0.689-3.121-1.797-0.995-1.719-0.407-3.927 1.312-4.922 0.549-0.318 1.171-0.486 1.801-0.486 1.283 0 2.479 0.689 3.121 1.798 0.482 0.833 0.611 1.803 0.363 2.733s-0.843 1.707-1.675 2.189zM29.226 28.077c-0.248 0.93-0.843 1.707-1.675 2.189-0.549 0.318-1.171 0.486-1.801 0.486-1.283 0-2.479-0.689-3.121-1.797-0.995-1.719-0.407-3.927 1.312-4.922 0.549-0.318 1.171-0.486 1.801-0.486 1.283 0 2.479 0.689 3.121 1.798 0.482 0.832 0.611 1.803 0.363 2.733zM25.842 24.346c-0.308 0-0.557 0.249-0.557 0.557s0.249 0.557 0.557 0.557c0.495 0 1.655 0.598 1.655 1.759 0 0.308 0.249 0.557 0.557 0.557s0.557-0.249 0.557-0.557c0-1.886-1.802-2.873-2.769-2.873z"}))},b=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M16 27.667l7.849-7.849c0.146-0.139 0.464-0.469 0.478-0.483l0.006-0.007c1.972-2.116 3.059-4.874 3.059-7.766 0-6.282-5.11-11.392-11.392-11.392s-11.392 5.11-11.392 11.392c0 2.893 1.086 5.651 3.058 7.766l8.334 8.339zM16 1.265c5.677 0 10.297 4.619 10.297 10.297 0 2.613-0.981 5.104-2.761 7.016-0.092 0.096-0.343 0.353-0.446 0.451l-7.089 7.089-7.539-7.543c-1.779-1.911-2.758-4.401-2.758-7.012 0-5.678 4.619-10.297 10.297-10.297zM17.755 4.005c1.966 0 5.792 2.149 5.792 6.090 0 0.303 0.245 0.548 0.548 0.548s0.548-0.245 0.548-0.548c0-2.051-0.906-3.953-2.552-5.354-1.306-1.112-3.008-1.831-4.335-1.831-0.302 0-0.548 0.245-0.548 0.548s0.245 0.548 0.548 0.548zM22.875 24.197c-0.427-0.174-0.886-0.33-1.371-0.467l-0.897 0.897c2.645 0.631 4.275 1.756 4.275 2.802 0 1.564-3.648 3.306-8.882 3.306s-8.882-1.742-8.882-3.306c0-1.045 1.631-2.171 4.275-2.802l-0.897-0.897c-0.485 0.137-0.944 0.293-1.371 0.467-2.001 0.818-3.102 1.966-3.102 3.232s1.102 2.415 3.102 3.232c1.845 0.754 4.287 1.169 6.875 1.169s5.030-0.415 6.875-1.169c2.001-0.818 3.102-1.966 3.102-3.232s-1.102-2.415-3.102-3.232zM16.032 16.804c-3.043 0-5.519-2.476-5.519-5.519s2.476-5.519 5.519-5.519c3.043 0 5.519 2.476 5.519 5.519s-2.476 5.519-5.519 5.519zM16.032 6.862c-2.439 0-4.423 1.984-4.423 4.423s1.984 4.423 4.423 4.423c2.439 0 4.423-1.984 4.423-4.423s-1.984-4.423-4.423-4.423z"}))},g=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M4.285 5.775c0.004 0 0.009 0.001 0.013 0.001h8.279c0.307 0 0.556-0.249 0.556-0.556s-0.249-0.556-0.556-0.556h-8.279c-0.307 0-0.556 0.249-0.556 0.556 0 0.302 0.242 0.548 0.542 0.555zM3.743 8.005c0 0.307 0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556s-0.249-0.556-0.556-0.556h-13.679c-0.307 0-0.556 0.249-0.556 0.556zM17.977 10.236h-13.679c-0.145 0-0.276 0.056-0.375 0.147-0.11 0.102-0.18 0.247-0.18 0.409 0 0.307 0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556 0-0.162-0.070-0.307-0.18-0.409-0.099-0.091-0.23-0.147-0.375-0.147zM17.977 13.022h-13.679c-0.307 0-0.556 0.249-0.556 0.556s0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556s-0.249-0.556-0.556-0.556zM17.977 15.807h-13.679c-0.145 0-0.276 0.056-0.375 0.147-0.11 0.102-0.18 0.247-0.18 0.409 0 0.307 0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556 0-0.162-0.070-0.307-0.18-0.409-0.099-0.091-0.23-0.147-0.375-0.147zM17.977 18.593h-13.679c-0.307 0-0.556 0.249-0.556 0.555s0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556s-0.249-0.555-0.556-0.555zM17.977 21.379h-13.679c-0.307 0-0.556 0.249-0.556 0.556s0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556s-0.249-0.556-0.556-0.556zM17.977 24.165h-13.679c-0.145 0-0.276 0.056-0.375 0.147-0.11 0.102-0.18 0.247-0.18 0.409 0 0.307 0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556 0-0.162-0.070-0.307-0.18-0.409-0.099-0.091-0.23-0.147-0.375-0.147zM21.93 4.466l-4.277-3.87c-0.094-0.085-0.212-0.132-0.334-0.139h-15.831c-0.812 0-1.473 0.664-1.473 1.481v28.153c0 0.817 0.661 1.481 1.473 1.481h19.174c0.812 0 1.473-0.664 1.473-1.481v-25.222c-0.008-0.163-0.086-0.308-0.205-0.403zM17.833 2.238l2.331 2.109h-2.331v-2.109zM21.043 30.091c0 0.215-0.171 0.39-0.381 0.39h-19.174c-0.21 0-0.382-0.175-0.382-0.39v-28.153c0-0.215 0.171-0.39 0.382-0.39h15.251v3.348c0 0.303 0.245 0.549 0.547 0.549h3.758v24.647zM31.975 3.213c-0.125-1.57-1.442-2.809-3.044-2.809-0 0-0 0-0 0-0.816 0-1.583 0.318-2.16 0.895-0.519 0.519-0.827 1.191-0.884 1.915h-0.010v0.242c0 0.001-0 0.002-0 0.003s0 0.001 0 0.001l-0 24.342h0.003c0.010 0.096 0.045 0.191 0.108 0.273l2.509 3.305c0.103 0.136 0.264 0.216 0.435 0.216s0.331-0.080 0.435-0.216l2.508-3.305c0.063-0.083 0.098-0.177 0.108-0.274h0.003v-24.589h-0.011zM27.543 2.070c0.371-0.371 0.864-0.575 1.388-0.575h0c0.893 0 1.649 0.6 1.886 1.417h-3.772c0.091-0.315 0.26-0.604 0.498-0.842zM28.362 26.711l-1.394 0 0-22.406h3.926v22.406h-1.442l0-18.071-1.090 0 0 18.071zM28.931 30.148l-1.781-2.346 3.562-0-1.781 2.346z"}))},h=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M31.908 1.543c0-0.815-0.677-1.478-1.51-1.478h-28.731c-0.815 0-1.478 0.677-1.478 1.51v14.441c0 0.022 0.002 0.044 0.004 0.065-0.003 0.021-0.004 0.043-0.004 0.065v14.357c0 0.815 0.677 1.478 1.51 1.478h28.731c0.815 0 1.478-0.677 1.478-1.51v-14.441c0-0.022-0.002-0.044-0.004-0.065 0.003-0.021 0.004-0.043 0.004-0.065v-14.357zM30.792 1.543v13.799h-4.324c0.587-0.66 0.932-1.525 0.932-2.453 0-0.737-0.218-1.423-0.592-2-0.648-1.066-1.82-1.78-3.156-1.78-2.034 0-3.689 1.655-3.689 3.689 0 0.745 0.223 1.449 0.615 2.039 0.111 0.178 0.236 0.347 0.376 0.504h-4.372v-6.025c0-0.184-0.090-0.347-0.228-0.449-0.101-0.103-0.242-0.167-0.398-0.167h-0.173c-0.24 0-0.453 0.153-0.529 0.38-0.352 1.049-1.332 1.754-2.439 1.754-0.419 0-0.815-0.101-1.166-0.28-0.776-0.444-1.301-1.279-1.301-2.235 0-1.419 1.154-2.574 2.574-2.574 0.408 0 0.799 0.096 1.147 0.27 0.546 0.305 0.976 0.804 1.185 1.426 0.052 0.155 0.169 0.275 0.314 0.335 0.092 0.065 0.204 0.103 0.322 0.103h0.133c0.308 0 0.558-0.25 0.558-0.558v-6.142h13.816c0.217 0 0.394 0.162 0.394 0.362zM1.305 1.575c0-0.217 0.162-0.394 0.362-0.394h13.732v4.404c-0.239-0.216-0.505-0.401-0.793-0.549-0.536-0.297-1.148-0.464-1.791-0.464-2.034 0-3.689 1.655-3.689 3.689 0 1.423 0.81 2.659 1.992 3.274 0.534 0.301 1.149 0.473 1.804 0.473 0.939 0 1.813-0.354 2.476-0.955v4.404h-6.016c-0.308 0-0.558 0.25-0.558 0.558v0.173c0 0.127 0.043 0.245 0.117 0.34 0.065 0.129 0.178 0.231 0.321 0.279 0.562 0.189 1.023 0.558 1.332 1.030 0.232 0.39 0.364 0.842 0.364 1.318 0 1.419-1.154 2.574-2.574 2.574-0.894 0-1.682-0.458-2.144-1.151-0.236-0.389-0.372-0.844-0.372-1.331-0-1.107 0.705-2.087 1.754-2.44 0.227-0.076 0.38-0.289 0.38-0.529v-0.133c0-0.106-0.030-0.204-0.081-0.288-0.068-0.231-0.282-0.4-0.535-0.4h-6.084v-13.883zM1.305 30.505v-13.799h4.324c-0.587 0.66-0.932 1.525-0.932 2.453 0 0.737 0.218 1.424 0.592 2 0.647 1.066 1.82 1.78 3.156 1.78 2.034 0 3.689-1.655 3.689-3.689-0-0.745-0.223-1.449-0.615-2.040-0.111-0.178-0.236-0.347-0.376-0.504h4.372v6.025c0 0.184 0.090 0.347 0.228 0.449 0.101 0.103 0.242 0.167 0.398 0.167h0.173c0.24 0 0.453-0.153 0.529-0.38 0.352-1.049 1.332-1.754 2.439-1.754 0.419 0 0.815 0.101 1.165 0.28 0.776 0.444 1.301 1.279 1.301 2.236 0 1.419-1.154 2.574-2.574 2.574-0.408 0-0.799-0.096-1.147-0.27-0.546-0.305-0.976-0.804-1.185-1.426-0.052-0.155-0.169-0.275-0.314-0.336-0.092-0.065-0.204-0.103-0.322-0.103h-0.133c-0.308 0-0.558 0.25-0.558 0.558v6.142h-13.816c-0.217-0-0.394-0.163-0.394-0.362zM30.792 30.472c0 0.217-0.162 0.394-0.362 0.394h-13.732v-4.404c0.239 0.216 0.505 0.401 0.792 0.548 0.536 0.297 1.148 0.464 1.791 0.464 2.034 0 3.689-1.655 3.689-3.689 0-1.423-0.81-2.659-1.993-3.274-0.534-0.301-1.149-0.473-1.804-0.473-0.939 0-1.813 0.354-2.476 0.955v-4.404h6.016c0.308 0 0.558-0.25 0.558-0.558v-0.173c0-0.126-0.044-0.245-0.117-0.34-0.064-0.129-0.178-0.231-0.321-0.279-0.562-0.189-1.023-0.558-1.332-1.030-0.232-0.389-0.363-0.842-0.363-1.318 0-1.419 1.154-2.574 2.574-2.574 0.894 0 1.682 0.458 2.144 1.151 0.236 0.389 0.372 0.844 0.372 1.331 0 1.107-0.705 2.087-1.754 2.439-0.227 0.076-0.38 0.289-0.38 0.529v0.133c0 0.106 0.030 0.204 0.081 0.289 0.068 0.231 0.282 0.4 0.535 0.4h6.084v13.883z"}))},f=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M15.517 23.581c-0.036 0.002-0.069-0.003-0.102-0.009-0.108-0.019-0.211-0.070-0.294-0.153l-9.153-9.153c-0.104-0.104-0.162-0.245-0.162-0.392s0.058-0.288 0.163-0.392l2.13-2.129c0.217-0.217 0.568-0.217 0.784 0l6.633 6.633 12.94-12.94c0.217-0.217 0.568-0.217 0.785 0l2.13 2.13c0.104 0.104 0.163 0.245 0.163 0.392s-0.058 0.288-0.162 0.392l-15.46 15.46c-0.104 0.104-0.245 0.163-0.392 0.163zM7.145 13.873l8.37 8.37 14.678-14.678-1.345-1.345-12.94 12.94c-0.217 0.217-0.568 0.217-0.785 0l-6.633-6.633-1.345 1.345zM30.087 11.781c0.401 1.337 0.618 2.753 0.618 4.219 0 8.108-6.596 14.704-14.705 14.704s-14.704-6.596-14.704-14.704c0-8.108 6.596-14.705 14.704-14.705 3.79 0 7.25 1.442 9.86 3.805l0.785-0.785c-2.812-2.564-6.549-4.129-10.645-4.129-8.72 0-15.814 7.094-15.814 15.814s7.094 15.814 15.814 15.814c8.72 0 15.814-7.094 15.814-15.814 0-1.784-0.297-3.501-0.845-5.102l-0.883 0.883z"}))},y=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M17.425 25.368h-3.22v-2.107c-1.234-0.109-2.518-0.463-3.389-0.944l-0.373-0.206 0.93-3.628 0.622 0.341c0.602 0.33 1.835 0.883 3.323 0.883 0.769 0 1.545-0.244 1.545-0.789 0-0.365-0.235-0.783-1.938-1.358-1.985-0.668-4.264-1.78-4.264-4.477 0-2.098 1.387-3.709 3.652-4.289v-2.162h3.22v1.931c1.366 0.11 2.263 0.465 2.838 0.736l0.416 0.196-0.937 3.53-0.621-0.298c-0.539-0.259-1.442-0.692-2.853-0.692-0.488 0-1.307 0.088-1.307 0.681 0 0.448 1.192 0.94 2.231 1.319 2.781 0.973 3.971 2.344 3.971 4.58 0 1.114-0.391 2.124-1.13 2.922-0.668 0.721-1.601 1.236-2.716 1.503v2.328zM15.307 24.266h1.016v-2.139l0.457-0.079c2.090-0.36 3.389-1.676 3.389-3.433 0-1.446-0.551-2.601-3.24-3.542-1.624-0.592-2.962-1.176-2.962-2.357 0-0.862 0.633-1.783 2.409-1.783 1.213 0 2.119 0.278 2.746 0.536l0.36-1.354c-0.565-0.222-1.372-0.445-2.517-0.479l-0.535-0.016v-1.886h-1.016v1.959l-0.45 0.084c-2.005 0.375-3.202 1.61-3.202 3.305 0 1.577 1.051 2.604 3.514 3.432 1.396 0.472 2.688 1.089 2.688 2.402 0 1.149-1.039 1.891-2.647 1.891-1.312 0-2.447-0.366-3.222-0.708l-0.369 1.437c0.709 0.309 1.808 0.617 3.045 0.654l0.535 0.016v2.058zM15.901 30.607c-8.054 0-14.607-6.552-14.607-14.606s6.552-14.607 14.607-14.607c8.054 0 14.607 6.552 14.607 14.607 0 2.567-0.667 4.981-1.834 7.079l1.095 0.293c1.174-2.2 1.841-4.71 1.841-7.373 0-8.662-7.047-15.709-15.709-15.709s-15.709 7.047-15.709 15.709 7.047 15.709 15.709 15.709c2.752 0 5.34-0.712 7.592-1.96l-0.294-1.099c-2.148 1.244-4.641 1.957-7.297 1.957zM29.539 31.709c-0.141 0-0.282-0.054-0.39-0.161l-2.673-2.673-0.86 1.786c-0.1 0.208-0.32 0.331-0.548 0.31s-0.421-0.184-0.481-0.406l-1.977-7.377c-0.051-0.19 0.004-0.393 0.143-0.532s0.342-0.194 0.532-0.143l7.377 1.977c0.222 0.060 0.385 0.252 0.406 0.481s-0.102 0.448-0.31 0.548l-1.787 0.86 2.673 2.672c0.103 0.103 0.161 0.244 0.161 0.39s-0.058 0.286-0.161 0.39l-1.717 1.717c-0.108 0.107-0.249 0.161-0.39 0.161zM26.318 27.385c0.145 0 0.285 0.057 0.39 0.161l2.832 2.832 0.938-0.938-2.832-2.832c-0.126-0.126-0.184-0.306-0.154-0.482s0.143-0.327 0.304-0.404l1.148-0.552-5.020-1.345 1.345 5.020 0.552-1.148c0.077-0.161 0.228-0.274 0.404-0.304 0.031-0.005 0.062-0.008 0.092-0.008zM20.272 5.201c1.977 0 5.826 2.162 5.826 6.126 0 0.304 0.247 0.551 0.551 0.551s0.551-0.247 0.551-0.551c0-2.063-0.912-3.976-2.568-5.387-1.314-1.119-3.025-1.842-4.361-1.842-0.304 0-0.551 0.247-0.551 0.551s0.247 0.551 0.551 0.551z"}))},w=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M31.438 1.423h-30.877c-0.31 0-0.562 0.251-0.562 0.562v22.175c0 0.31 0.251 0.562 0.562 0.562h3.103v5.294c0 0.201 0.107 0.386 0.281 0.486 0.087 0.050 0.184 0.075 0.281 0.075s0.194-0.025 0.281-0.075l10.012-5.78h16.919c0.31 0 0.562-0.251 0.562-0.562v-22.175c0-0.31-0.251-0.562-0.562-0.562zM30.877 23.598h-16.508c-0.099 0-0.195 0.026-0.281 0.075l-9.3 5.369v-4.883c0-0.31-0.251-0.562-0.562-0.562h-3.103v-21.052h29.753v21.052zM4.386 7.532h22.894c0.31 0 0.562-0.251 0.562-0.562s-0.251-0.562-0.562-0.562h-22.894c-0.31 0-0.562 0.251-0.562 0.562s0.251 0.562 0.562 0.562zM4.386 11.865h22.894c0.31 0 0.562-0.251 0.562-0.562s-0.251-0.562-0.562-0.562h-22.894c-0.31 0-0.562 0.251-0.562 0.562s0.251 0.562 0.562 0.562zM4.386 16.198h22.894c0.31 0 0.562-0.251 0.562-0.562s-0.251-0.562-0.562-0.562h-22.894c-0.31 0-0.562 0.251-0.562 0.562s0.251 0.562 0.562 0.562zM4.386 20.53h22.894c0.31 0 0.562-0.251 0.562-0.562s-0.251-0.562-0.562-0.562h-22.894c-0.31 0-0.562 0.252-0.562 0.562s0.251 0.562 0.562 0.562z"}))},v=function(){return wp.element.createElement(o,{viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M0 448V64h18v384H0zm26.857-.273V64H36v383.727h-9.143zm27.143 0V64h8.857v383.727H54zm44.857 0V64h8.857v383.727h-8.857zm36 0V64h17.714v383.727h-17.714zm44.857 0V64h8.857v383.727h-8.857zm18 0V64h8.857v383.727h-8.857zm18 0V64h8.857v383.727h-8.857zm35.715 0V64h18v383.727h-18zm44.857 0V64h18v383.727h-18zm35.999 0V64h18.001v383.727h-18.001zm36.001 0V64h18.001v383.727h-18.001zm26.857 0V64h18v383.727h-18zm45.143 0V64h26.857v383.727h-26.857zm35.714 0V64h9.143v383.727H476zm18 .273V64h18v384h-18z"}))},k=function(){return wp.element.createElement(o,{className:"custom-icon",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M17.294,17.287l-14.588,0l0,-14.574l14.588,0c0,4.858 0,9.716 0,14.574Zm-13.738,-0.85l12.888,0l0,-12.874l-12.888,0c0,4.291 0,8.583 0,12.874Z"}),wp.element.createElement("rect",{x:"4.489",y:"4.744",width:"11.022",height:"2.512"}))},T=function(){return wp.element.createElement(o,{className:"custom-icon",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M17.294,17.287l-14.588,0l0,-14.574l14.588,0c0,4.858 0,9.716 0,14.574Zm-13.738,-0.85l12.888,0l0,-12.874l-12.888,0c0,4.291 0,8.583 0,12.874Z"}),wp.element.createElement("rect",{y:"8.744",width:"11.022",x:"4.489",height:"2.512"}))},E=function(){return wp.element.createElement(o,{className:"custom-icon",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M17.294,17.287l-14.588,0l0,-14.574l14.588,0c0,4.858 0,9.716 0,14.574Zm-13.738,-0.85l12.888,0l0,-12.874l-12.888,0c0,4.291 0,8.583 0,12.874Z"}),wp.element.createElement("rect",{x:"4.489",y:"12.802",width:"11.022",height:"2.512"}))},x=wp.element.createElement(o,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"20",height:"20"},wp.element.createElement(l,{d:"M5 5H3v2h2V5zm3 8h11v-2H8v2zm9-8H6v2h11V5zM7 11H5v2h2v-2zm0 8h2v-2H7v2zm3-2v2h11v-2H10z"}))},function(e,t,n){"use strict";var a=n(0),l=n.n(a);n(44);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var r=wp.components,i=r.Popover,c=r.RangeControl,d=wp.element,p=d.Fragment,m=d.useRef,s=d.useState,u=function(e){var t=e.id,n=e.index,a=e.option,l=e.min,r=e.max,d=e.onChange,u=o(s(!1),2),b=u[0],g=u[1],h=m(null);return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-sizing-control-item"},n.disabled?wp.element.createElement("input",{type:"number",disabled:n.disabled,className:"wp-block-themeisle-blocks-sizing-control-item-input",id:"wp-block-themeisle-blocks-sizing-control-item-input-".concat(a)}):wp.element.createElement(p,null,wp.element.createElement("input",{type:"number",className:"wp-block-themeisle-blocks-sizing-control-item-input",id:"wp-block-themeisle-blocks-sizing-control-item-input-".concat(a,"-").concat(t),value:n.value||"",min:l,max:r,ref:h,onFocus:function(){return g(!b)},onChange:function(e){return d(n.type,parseInt(e.target.value))}}),b&&wp.element.createElement(i,{onFocusOutside:function(){h.current.contains(document.activeElement)||g(!1)}},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-sizing-control-overlay"},wp.element.createElement(c,{value:n.value,initialPosition:n.value,beforeIcon:"minus",afterIcon:"plus",min:l,max:r,onChange:function(e){return d(n.type,e)}})))),n.label&&wp.element.createElement("label",{className:"wp-block-themeisle-blocks-sizing-control-item-label",htmlFor:"wp-block-themeisle-blocks-sizing-control-item-input-".concat(a,"-").concat(t)},n.label))},b=wp.i18n.__,g=wp.components.IconButton,h=wp.compose.withInstanceId;t.a=h((function(e){var t=e.instanceId,n=e.label,a=e.type,o=e.min,r=e.max,i=e.changeType,c=e.options,d=e.onChange,p="inspector-sizing-control-".concat(t);return c&&1>c.length?b("Please specify more options."):wp.element.createElement("div",{id:p,className:"wp-block-themeisle-blocks-sizing-control"},wp.element.createElement("div",{className:"components-base-control__field"},n&&wp.element.createElement("label",{className:"components-base-control__label",htmlFor:p},n),wp.element.createElement("div",{className:l()("wp-block-themeisle-blocks-sizing-control-wrapper",{linking:a})},c.map((function(e,n){return wp.element.createElement(u,{id:t,index:e,option:n,min:o,max:r,onChange:d})})),a&&wp.element.createElement("div",{className:l()("wp-block-themeisle-blocks-sizing-control-item","toggle-linking",{"is-linked":"linked"===a})},wp.element.createElement(g,{icon:"linked"===a?"admin-links":"editor-unlink",tooltip:b("linked"===a?"Unlink Values":"Link Values"),className:"wp-block-themeisle-blocks-sizing-control-item-input",onClick:function(){return i("linked"===a?"unlinked":"linked")}})))))}))},function(e,t,n){"use strict";var a=n(0),l=n.n(a),o=(n(43),wp.i18n.__),r=wp.components,i=r.Button,c=r.Dashicon,d=r.Dropdown,p=r.IconButton,m=wp.compose.withInstanceId;t.a=m((function(e){var t=e.instanceId,n=e.label,a=e.changeViewType,r=e.view,m=e.children,s="inspector-responsive-control-".concat(t);return wp.element.createElement("div",{id:s,className:"wp-block-themeisle-blocks-responsive-control"},wp.element.createElement("div",{className:"components-base-control__field"},wp.element.createElement("div",{className:"components-base-control__title"},wp.element.createElement("label",{className:"components-base-control__label"},n),wp.element.createElement("div",{className:"floating-controls"},wp.element.createElement(d,{position:"top left",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return wp.element.createElement(p,{icon:"mobile"===r?"smartphone":r,label:o("Responsiveness Settings"),className:"is-button",onClick:n,"aria-expanded":t})},renderContent:function(e){var t=e.onToggle;return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-responsive-control-settings"},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-responsive-control-settings-title"},o("Responsiveness Settings")),wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-responsive-control-settings-item",{"is-selected":"desktop"===r}),onClick:function(){t(),a("desktop")}},wp.element.createElement(c,{icon:"desktop"}),wp.element.createElement("span",{className:"popover-title"},o("Desktop"))),wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-responsive-control-settings-item",{"is-selected":"tablet"===r}),onClick:function(){t(),a("tablet")}},wp.element.createElement(c,{icon:"tablet"}),wp.element.createElement("span",{className:"popover-title"},o("Tablet Devices"))),wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-responsive-control-settings-item",{"is-selected":"mobile"===r}),onClick:function(){t(),a("mobile")}},wp.element.createElement(c,{icon:"smartphone"}),wp.element.createElement("span",{className:"popover-title"},o("Smartphones"))))}}))),m))}))},function(e,t,n){"use strict";t.a={"themeisle-blocks/advanced-heading":{tag:"h2",headingColor:"#000000",fontStyle:"normal",textTransform:"none",paddingType:"linked",paddingTypeTablet:"linked",paddingTypeMobile:"linked",padding:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,marginType:"unlinked",marginTypeTablet:"unlinked",marginTypeMobile:"unlinked",margin:0,marginTop:0,marginBottom:25},"themeisle-blocks/button-group":{spacing:20,collapse:"collapse-none",fontSize:18,fontStyle:"normal",data:{color:"#ffffff",background:"#32373c",paddingTopBottom:12,paddingLeftRight:24}},"themeisle-blocks/font-awesome-icons":{fontSize:16,padding:5,margin:5},"themeisle-blocks/advanced-columns":{columnsGap:"default",paddingType:"linked",paddingTypeTablet:"linked",paddingTypeMobile:"linked",padding:20,paddingTop:20,paddingRight:20,paddingBottom:20,paddingLeft:20,marginType:"unlinked",marginTypeTablet:"unlinked",marginTypeMobile:"unlinked",margin:20,marginTop:20,marginBottom:20,columnsHTMLTag:"div",horizontalAlign:"unset",columnsHeight:"auto",verticalAlign:"unset",hide:!1,hideTablet:!1,hideMobile:!1},"themeisle-blocks/advanced-column":{paddingType:"linked",paddingTypeTablet:"linked",paddingTypeMobile:"linked",padding:20,paddingTop:20,paddingRight:20,paddingBottom:20,paddingLeft:20,marginType:"unlinked",marginTypeTablet:"unlinked",marginTypeMobile:"unlinked",margin:20,marginTop:20,marginRight:0,marginBottom:20,marginLeft:0,columnsHTMLTag:"div"}}},,function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return o}));var a=wp.i18n.__,l=function(e){var t=document.createElement("div");return t.innerHTML=e,void 0!==t.innerText?t.innerText:t.textContent},o=function(e){var t=[a("January"),a("February"),a("March"),a("April"),a("May"),a("June"),a("July"),a("August"),a("September"),a("October"),a("November"),a("December")],n=(e=new Date(e)).getDate(),l=e.getMonth(),o=e.getFullYear();return n+" "+t[l]+", "+o}},function(e,t,n){"use strict";n(53);var a=wp.components,l=a.Dropdown,o=a.IconButton,r=wp.compose.withInstanceId;t.a=r((function(e){var t=e.label,n=e.instanceId,a=e.children,r="inspector-control-panel-control-".concat(n);return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-control-panel-control"},wp.element.createElement("div",{className:"components-base-control__field"},wp.element.createElement("div",{className:"components-base-control__title"},wp.element.createElement("label",{className:"components-base-control__label",for:r},t),wp.element.createElement("div",{className:"floating-controls"},wp.element.createElement(l,{position:"top left",headerTitle:t,expandOnMobile:!0,renderToggle:function(e){var n=e.isOpen,a=e.onToggle;return wp.element.createElement(o,{id:r,icon:"admin-settings",label:t,className:"is-button",onClick:a,"aria-expanded":n})},renderContent:function(){return wp.element.createElement("div",{className:"wp-block-themeisle-popover-settings"},a)}})))))}))},function(e,t,n){"use strict";var a=n(0),l=n.n(a);n(42);function o(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var i=lodash,c=i.startCase,d=i.toLower,p=wp.i18n.__,m=wp.compose.withInstanceId,s=wp.components,u=s.Button,b=s.BaseControl,g=s.Dropdown,h=s.MenuGroup,f=s.MenuItem,y=s.SelectControl,w=s.TextControl,v=wp.element,k=v.useEffect,T=v.useState;t.a=m((function(e){var t=e.instanceId,n=e.label,a=e.value,i=e.valueVariant,m=e.valueStyle,s=e.valueTransform,v=e.isSelect,E=void 0!==v&&v,x=e.onChangeFontFamily,C=e.onChangeFontVariant,S=e.onChangeFontStyle,B=e.onChangeTextTransform;k((function(){fetch("https://www.googleapis.com/webfonts/v1/webfonts?key=AIzaSyClGdkPJ1BvgLOol5JAkQY4Mv2lkLYu00k").then((function(e){return e.json()})).then((function(e){R(e.items),a&&e.items.find((function(e){if(a===e.family){var t=e.variants.filter((function(e){return!1===e.includes("italic")})).map((function(e){return{label:c(d(e)),value:e}}));return z(t)}}))}))}),[]);var M=r(T(null),2),O=M[0],R=M[1],N=r(T(null),2),L=N[0],z=N[1],H=r(T(""),2),A=H[0],_=H[1],P="inspector-google-fonts-control-".concat(t);return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-google-fonts-control"},wp.element.createElement(b,{label:n,id:P},null!==O?E?wp.element.createElement(y,{value:a||"",id:P,options:[{label:p("Default"),value:""}].concat(o(O.map((function(e){return{label:e.family,value:e.family}})))),onChange:function(e){var t=[];if(""===e)return t=[{label:p("Regular"),value:"regular"},{label:p("Italic"),value:"italic"}],x(void 0),void z(t);x(e),t=O.find((function(t){return e===t.family})).variants.filter((function(e){return!1===e.includes("italic")})).map((function(e){return{label:c(d(e)),value:e}})),z(t)}}):wp.element.createElement(g,{contentClassName:"wp-block-themeisle-blocks-google-fonts-popover",position:"bottom center",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return wp.element.createElement(u,{isLarge:!0,className:"wp-block-themeisle-blocks-google-fonts-button",id:P,onClick:n,"aria-expanded":t},a||p("Select Font Family"))},renderContent:function(e){var t=e.onToggle;return wp.element.createElement(h,{label:p("Google Fonts")},wp.element.createElement(w,{value:A,onChange:function(e){return _(e)}}),wp.element.createElement("div",{className:"components-popover__items"},wp.element.createElement(f,{onClick:function(){t(),x(void 0),z([]),_("")}},p("Default")),O.map((function(e){if(!A||e.family.toLowerCase().includes(A.toLowerCase()))return wp.element.createElement(f,{className:l()({"is-selected":e.family===a}),onClick:function(){t(),x(e.family);var n=e.variants.filter((function(e){return!1===e.includes("italic")})).map((function(e){return{label:c(d(e)),value:e}}));z(n),_("")}},e.family)}))))}}):p("Loading…")),L&&wp.element.createElement(y,{label:p("Font Width"),value:i||"regular",options:L,onChange:C}),wp.element.createElement(y,{label:p("Font Style"),value:m,options:[{label:p("Regular"),value:"normal"},{label:p("Italic"),value:"italic"}],onChange:S}),wp.element.createElement(y,{label:p("Font Transform"),value:s,options:[{label:p("Default"),value:"none"},{label:p("Uppercase"),value:"uppercase"},{label:p("Lowercase"),value:"lowercase"},{label:p("Capitalize"),value:"capitalize"}],onChange:B}))}))},function(e,t){e.exports=React},function(e,t,n){"use strict";n.d(t,"b",(function(){return b})),n.d(t,"a",(function(){return g}));var a=n(0),l=n.n(a),o=(n(64),wp.components),r=o.BaseControl,i=o.Button,c=o.Dropdown,d=o.IconButton,p=o.Toolbar,m=wp.compose.withInstanceId,s=wp.blockEditor.BlockControls,u=wp.element.Fragment,b=m((function(e){var t=e.instanceId,n=e.label,a=e.value,o=e.options,c=e.onChange,d="inspector-style-switcher-control-".concat(t);return wp.element.createElement(r,{id:d,label:n},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-style-switcher"},o.map((function(e){return wp.element.createElement(i,{className:l()("blocks-style-switcher-item",{"is-active":e.value===a}),tabIndex:"0",onClick:function(){return function(e){return c(e)}(e.value)}},wp.element.createElement("div",{className:"blocks-style-switcher-item-preview"},wp.element.createElement("img",{src:e.image})),wp.element.createElement("div",{className:"blocks-style-switcher-item-label"},e.label))}))))})),g=function(e){var t=e.label,n=e.value,a=e.options,o=e.onChange;return wp.element.createElement(s,null,wp.element.createElement(p,{className:"wp-themesiel-blocks-block-styles-components-toolbar"},wp.element.createElement(c,{contentClassName:"wp-themesiel-blocks-block-styles-popover-content",position:"bottom center",renderToggle:function(e){var n=e.isOpen,a=e.onToggle;return wp.element.createElement(d,{className:"components-dropdown-menu__toggle",icon:"admin-appearance",onClick:a,"aria-haspopup":"true","aria-expanded":n,label:t,tooltip:t},wp.element.createElement("span",{className:"components-dropdown-menu__indicator"}))},renderContent:function(){return wp.element.createElement(u,null,wp.element.createElement("div",{className:"wp-block-themeisle-blocks-style-switcher"},a.map((function(e){return wp.element.createElement(i,{className:l()("blocks-style-switcher-item",{"is-active":e.value===n}),tabIndex:"0",onClick:function(){return function(e){return o(e)}(e.value)}},wp.element.createElement("div",{className:"blocks-style-switcher-item-preview"},wp.element.createElement("img",{src:e.image})),wp.element.createElement("div",{className:"blocks-style-switcher-item-label"},e.label))}))))}})))}},,function(e,t,n){"use strict";n.r(t);var a=n(0),l=n.n(a),o=(n(72),n(73),wp.components),r=o.SVG,i=o.Path;t.default=function(e){var t=e.type,n=e.front,a=e.style,o=e.fill,c=e.invert,d=e.width,p=e.height;return"none"!==a&&wp.element.createElement("div",{className:l()("wp-block-themeisle-blocks-advanced-columns-separators",t),style:!n&&d?{transform:"".concat(d?"scaleX( ".concat(d/100," )"):"")}:{}},"bigTriangle"===a&&!1===c&&wp.element.createElement(r,{id:"bigTriangle",fill:o,viewBox:"0 0 100 100",width:"100%",height:p?"".concat(p,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"bottom"===t})},wp.element.createElement(i,{d:"M0 0 L50 100 L100 0 Z"})),"bigTriangle"===a&&!0===c&&wp.element.createElement(r,{id:"bigTriangle",fill:o,viewBox:"0 0 100 100",width:"100%",height:p?"".concat(p,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"top"===t})},wp.element.createElement(i,{d:"M100, 0l-50, 100l-50, -100l0, 100l100, 0l0, -100Z"})),"rightCurve"===a&&!1===c&&wp.element.createElement(r,{id:"rightCurve",fill:o,viewBox:"0 0 100 100",width:"100%",height:p?"".concat(p,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"top"===t})},wp.element.createElement(i,{d:"M0 100 C 20 0 50 0 100 100 Z"})),"rightCurve"===a&&!0===c&&wp.element.createElement(r,{id:"rightCurve",fill:o,viewBox:"0 0 100 100",width:"100%",height:p?"".concat(p,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"top"===t})},wp.element.createElement(i,{d:"M0 100 C 50 0 70 0 100 100 Z"})),"curve"===a&&wp.element.createElement(r,{id:"curve",fill:o,viewBox:"0 0 100 100",width:"100%",height:p?"".concat(p,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"top"===t})},wp.element.createElement(i,{d:"M0 100 C40 0 60 0 100 100 Z"})),"slant"===a&&!1===c&&wp.element.createElement(r,{id:"slant",fill:o,viewBox:"0 0 100 100",width:"100%",height:p?"".concat(p,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"bottom"===t})},wp.element.createElement(i,{d:"M0 0 L100 100 L100 0 Z"})),"slant"===a&&!0===c&&wp.element.createElement(r,{id:"slant",fill:o,viewBox:"0 0 100 100",width:"100%",height:p?"".concat(p,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"bottom"===t})},wp.element.createElement(i,{d:"M0 0 L0 100 L100 0 Z"})),"cloud"===a&&wp.element.createElement(r,{id:"cloud",fill:o,viewBox:"0 0 100 100",width:"100%",height:p?"".concat(p,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"top"===t})},wp.element.createElement(i,{d:"M-5 100 Q 10 -100 15 100 Z M10 100 Q 20 -20 30 100 M25 100 Q 35 -70 45 100 M40 100 Q 50 -100 60 100 M55 100 Q 65 -20 75 100 M70 100 Q 75 -45 90 100 M85 100 Q 90 -50 95 100 M90 100 Q 95 -25 105 100 Z"})))}},function(e,t,n){"use strict";n.r(t);var a=n(0),l=n.n(a),o=(n(69),n(2)),r=wp.i18n.__,i=wp.components,c=i.Button,d=i.ButtonGroup,p=i.Icon,m=i.IconButton,s=i.Tooltip,u=wp.compose.withInstanceId;t.default=u((function(e){var t=e.label,n=e.instanceId,a=e.backgroundType,i=e.changeBackgroundType,u="inspector-background-control-".concat(n);return wp.element.createElement("div",{id:u,className:"components-base-control wp-block-themeisle-blocks-advanced-columns-background-control"},wp.element.createElement("div",{className:"components-base-control__field"},wp.element.createElement("div",{className:"components-base-control__title"},wp.element.createElement("label",{className:"components-base-control__label"},t),wp.element.createElement(d,{className:"linking-controls"},wp.element.createElement(m,{icon:"admin-customizer",label:r("Color"),className:l()("is-button",{"is-primary":"color"===a}),onClick:function(){i("color")}}),wp.element.createElement(m,{icon:"format-image",label:r("Image"),className:l()("is-button",{"is-primary":"image"===a}),onClick:function(){i("image")}}),wp.element.createElement(s,{text:r("Gradient")},wp.element.createElement(c,{label:r("Gradient"),className:l()("is-button",{"is-primary":"gradient"===a}),onClick:function(){i("gradient")}},wp.element.createElement(p,{icon:o.b})))))))}))},,function(e,t){e.exports=ReactDOM},function(e,t,n){"use strict";t.a={1:{equal:["100"]},2:{equal:["50","50"],oneTwo:["33.34","66.66"],twoOne:["66.66","33.34"]},3:{equal:["33.33","33.33","33.33"],oneOneTwo:["25","25","50"],twoOneOne:["50","25","25"],oneTwoOne:["25","50","25"],oneThreeOne:["20","60","20"]},4:{equal:["25","25","25","25"]},5:{equal:["20","20","20","20","20"]},6:{equal:["16.66","16.66","16.66","16.66","16.66","16.66"]}}},function(e,t,n){"use strict";n(70);var a=n(0),l=n.n(a),o=wp.components,r=o.Dashicon,i=o.Tooltip,c=function(e){var t=e.title,n=e.firstColor,a=e.secondColor,o=e.isSelected,c=e.onChange,d=wp.element.createElement("button",{type:"button","aria-pressed":o,className:l()("wp-block-themeisle-blocks-gradient-picker-control-option",{"is-active":o}),style:{background:"linear-gradient(90deg, ".concat(n," 0%, ").concat(a," 100%)")},onClick:function(){return c(n,0,a,100,"linear",90,"center center")}});return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-gradient-picker-control-option-wrapper"},t?wp.element.createElement(i,{text:t},d):d,o&&wp.element.createElement(r,{icon:"saved"}))},d=wp.i18n.__,p=[{title:d("Reef"),firstColor:"#36d1dc",secondColor:"#5b86e5"},{title:d("Mild"),firstColor:"#67B26F",secondColor:"#4ca2cd"},{title:d("Mojito"),firstColor:"#1D976C",secondColor:"#93F9B9"},{title:d("Nelson"),firstColor:"#f2709c",secondColor:"#ff9472"},{title:d("Orange Fun"),firstColor:"#fc4a1a",secondColor:"#f7b733"},{title:d("Evening Night"),firstColor:"#005AA7",secondColor:"#FFFDE4"},{title:d("Calm Darya"),firstColor:"#5f2c82",secondColor:"#49a09d"},{title:d("Opa"),firstColor:"#3D7EAA",secondColor:"#FFE47A"},{title:d("Bora Bora"),firstColor:"#2BC0E4",secondColor:"#EAECC6"},{title:d("Electric Violet"),firstColor:"#4776E6",secondColor:"#8E54E9"},{title:d("Pinky"),firstColor:"#DD5E89",secondColor:"#F7BB97"},{title:d("Purple Paradise"),firstColor:"#1D2B64",secondColor:"#F8CDDA"}],m=wp.i18n.__,s=wp.components,u=s.Button,b=s.ColorIndicator,g=s.Dropdown,h=s.RangeControl,f=s.SelectControl,y=wp.compose.withInstanceId,w=wp.blockEditor.ColorPalette,v=wp.element.Fragment;t.a=y((function(e){var t,n=e.label,a=e.instanceId,l=e.value,o=e.customGradient,r=void 0===o||o,i=e.onChange,d="inspector-gradient-picker-control-".concat(a),s=function(e){var t=e.firstColor,n=void 0===t?l.firstColor:t,a=e.firstLocation,o=void 0===a?l.firstLocation:a,r=e.secondColor,c=void 0===r?l.secondColor:r,d=e.secondLocation,p=void 0===d?l.secondLocation:d,m=e.type,s=void 0===m?l.type:m,u=e.angle,b=void 0===u?l.angle:u,g=e.position,h=void 0===g?l.position:g;i(n,o,c,p,s,b,h)};t="linear"===l.type?"".concat(l.angle,"deg"):"at ".concat(l.position);var y="".concat(l.type,"-gradient( ").concat(t,", ").concat(l.firstColor||"rgba( 0, 0, 0, 0 )"," ").concat(l.firstLocation,"%, ").concat(l.secondColor||"rgba( 0, 0, 0, 0 )"," ").concat(l.secondLocation,"% )"),k=p.some((function(e){return e.firstColor===l.firstColor&&e.secondColor===l.secondColor}));return wp.element.createElement("div",{id:d,className:"wp-block-themeisle-blocks-gradient-picker-control"},wp.element.createElement("div",{className:"components-base-control__field"},n&&wp.element.createElement("div",{className:"components-base-control__title"},wp.element.createElement("label",{className:"components-base-control__label"},n,!k&&wp.element.createElement(b,{colorValue:y}))),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-gradient-picker-control-presets"},p.map((function(e){return wp.element.createElement(c,{title:e.title,firstColor:e.firstColor,secondColor:e.secondColor,isSelected:e.firstColor===l.firstColor&&e.secondColor===l.secondColor,onChange:i})})),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-gradient-picker-control-custom-wrapper"},r&&wp.element.createElement(g,{className:"wp-block-themeisle-blocks-gradient-picker-control-dropdown-link-action",contentClassName:"wp-block-themeisle-blocks-gradient-picker-control-dropdown-content",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return wp.element.createElement(u,{"aria-expanded":t,onClick:n,isLink:!0},m("Custom Gradient"))},renderContent:function(){return wp.element.createElement(v,null,wp.element.createElement("p",null,m("First Color")),wp.element.createElement(w,{label:m("Color"),clearable:!1,value:l.firstColor,onChange:function(e){return s({firstColor:e})}}),wp.element.createElement(h,{label:m("Location"),value:l.firstLocation,min:0,max:100,onChange:function(e){return s({firstLocation:e})}}),wp.element.createElement("p",null,m("Second Color")),wp.element.createElement(w,{label:m("Color"),clearable:!1,value:l.secondColor,onChange:function(e){return s({secondColor:e})}}),wp.element.createElement(h,{label:m("Location"),value:l.secondLocation,min:0,max:100,onChange:function(e){return s({secondLocation:e})}}),wp.element.createElement(f,{label:m("Type"),value:l.type,options:[{label:"Linear",value:"linear"},{label:"Radial",value:"radial"}],onChange:function(e){return s({type:e})}}),"linear"===l.type?wp.element.createElement(h,{label:m("Angle"),value:l.angle,min:0,max:360,onChange:function(e){return s({angle:e})}}):wp.element.createElement(f,{label:m("Position"),value:l.position,options:[{label:"Top Left",value:"top left"},{label:"Top Center",value:"top center"},{label:"Top Right",value:"top right"},{label:"Center Left",value:"center left"},{label:"Center Center",value:"center center"},{label:"Center Right",value:"center right"},{label:"Bottom Left",value:"bottom left"},{label:"Bottom Center",value:"bottom center"},{label:"Bottom Right",value:"bottom right"}],onChange:function(e){return s({position:e})}}))}}),wp.element.createElement(u,{className:"wp-block-themeisle-blocks-gradient-picker-control-clear",type:"button",isSmall:!0,isDefault:!0,onClick:function(){return i("#ffffff",0,"#ffffff",100,"linear",90,"center center")}},m("Clear"))))))}))},,function(e,t,n){"use strict";var a=n(0),l=n.n(a);n(54);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var r=wp.i18n.__,i=wp.blockEditor.InspectorAdvancedControls,c=wp.compose.withInstanceId,d=wp.components,p=d.BaseControl,m=d.IconButton,s=d.Notice,u=wp.element.useState;t.a=c((function(e){var t=e.instanceId,n=e.value,a=e.onChange,c=o(u(!1),2),d=c[0],b=c[1],g=o(u(n),2),h=g[0],f=g[1],y=void 0!==window.themeisleGutenberg.blockIDs&&n!==h&&window.themeisleGutenberg.blockIDs.includes(h);return wp.element.createElement(i,null,wp.element.createElement(p,{label:r("HTML Anchor"),help:r("Anchors lets you link directly to a section on a page."),id:"wp-block-themeisle-blocks-html-anchor-control-".concat(t)},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-html-anchor-control"},wp.element.createElement("input",{type:"text",className:"wp-block-themeisle-blocks-html-anchor-control-input",readonly:!d&&"readonly",value:d?h:n,onChange:function(e){return f(e.target.value)},onClick:function(e){return e.target.select()}}),wp.element.createElement(m,{icon:d?"yes":"edit",tooltip:r(d?"Save":"Edit"),disabled:!!y,className:l()("wp-block-themeisle-blocks-html-anchor-control-button",{"is-saved":!d}),onClick:function(){if(d&&n!==h){var e=window.themeisleGutenberg.blockIDs.findIndex((function(e){return e===n}));window.themeisleGutenberg.blockIDs[e]=h,a(h)}b(!d)}}))),y&&wp.element.createElement(s,{status:"warning",isDismissible:!1,className:"wp-block-themeisle-blocks-anchor-control-notice"},r("This ID has already been used in this page. Please consider using a different ID to avoid conflict.")))}))},function(e,t,n){"use strict";var a=n(0),l=n.n(a),o=n(22);n(57);function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var i=wp.i18n.__,c=wp.apiFetch,d=wp.components,p=d.BaseControl,m=d.IconButton,s=d.Popover,u=wp.compose,b=u.compose,g=u.withInstanceId,h=wp.data.withSelect,f=wp.element,y=f.useEffect,w=f.useRef,v=f.useState,k=wp.keycodes,T=k.DOWN,E=k.ENTER,x=k.TAB,C=k.UP,S=wp.url.addQueryArgs;t.a=b(g,h((function(e){if(e("core/block-editor"))return{fetchLinkSuggestions:(0,e("core/block-editor").getSettings)().__experimentalFetchLinkSuggestions}})))((function(e){var t=e.instanceId,n=e.label,a=e.help,d=e.placeholder,u=e.value,b=e.className,g=e.onChange,h=e.children,f=e.fetchLinkSuggestions;y((function(){H&&null!==P&&void 0!==M[P]&&!B&&null!==k.current&&(B=!0,Object(o.a)(M[P],k.current,{onlyScrollIfNeeded:!0}),setTimeout((function(){B=!1}),100))}));var k=w(null),B=!1,M=[],O=[],R=r(v(!1),2),N=R[0],L=R[1],z=r(v(!1),2),H=z[0],A=z[1],_=r(v(null),2),P=_[0],I=_[1],j=r(v([]),2),F=j[0],G=j[1],V=function(e){return function(t){M[e]=t}},D=function(e){g(e),A(!1)},W="inspector-link-control-".concat(t);return wp.element.createElement(p,{label:n,id:W,help:a,className:b},wp.element.createElement("div",{className:l()("wp-block-themeisle-blocks-link-control-wrapper",{"is-open":N})},wp.element.createElement("input",{type:"url",placeholder:d,value:u,onChange:function(e){g(e.target.value),function(e){var t;1>=e.length||/^https?:/.test(e)?A(!1):(A(!0),(t=f?f(e):c({path:S("/wp/v2/search",{search:e,per_page:20,type:"post"})})).then((function(e){O===t&&(G(e),I(null))})),O=t)}(e.target.value)},onKeyDown:function(e){if(H&&1<=F.length){var t=F[P];switch(e.keyCode){case C:e.stopPropagation(),e.preventDefault();var n=P?P-1:F.length-1;I(n);break;case T:e.stopPropagation(),e.preventDefault();var a=null===P||P===F.length-1?0:P+1;I(a);break;case x:case E:null!==P&&(e.stopPropagation(),D(t.url))}}},className:l()("components-text-control__input",{"is-full":void 0===h})}),H&&0<F.length&&wp.element.createElement(s,{position:"bottom",noArrow:!0,focusOnMount:!1,className:"wp-block-themeisle-blocks-link-control-popover"},wp.element.createElement("div",{ref:k,className:"wp-block-themeisle-blocks-link-control-popover-container"},F.map((function(e,t){return wp.element.createElement("button",{key:e.id,role:"option",tabIndex:"-1",ref:V(t),className:l()("block-editor-url-input__suggestion","editor-url-input__suggestion",{"is-selected":t===P}),onClick:function(){return D(e.url)}},e.title||i("Untitled Post"))})))),void 0!==h&&wp.element.createElement(m,{icon:"admin-generic",tooltip:i("Link Options"),onClick:function(){return L(!N)}})),N&&h)}))},,,,function(e,t,n){"use strict";n.r(t);var a=n(0),l=n.n(a),o=(n(71),wp.i18n.__),r=wp.components,i=r.Button,c=r.Dashicon,d=r.Dropdown,p=r.IconButton,m=r.Path,s=r.Rect,u=r.SVG,b=r.Tooltip,g=wp.compose.withInstanceId,h=wp.element.Fragment;t.default=g((function(e){var t,n=e.label,a=e.instanceId,r=e.onClick,g=e.layout,f=e.layoutTablet,y=e.layoutMobile,w=e.columns,v=e.changeViewType,k=e.view,T="inspector-layout-control-".concat(a);return"desktop"===k?t=g:"tablet"===k?t=f:"mobile"===k&&(t=y),wp.element.createElement("div",{id:T,className:"wp-block-themeisle-blocks-advanced-columns-layout-control"},wp.element.createElement("div",{className:"components-base-control__field"},wp.element.createElement("div",{className:"components-base-control__title"},wp.element.createElement("label",{className:"components-base-control__label"},n),wp.element.createElement("div",{className:"linking-controls"},wp.element.createElement(d,{position:"top left",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return wp.element.createElement(p,{icon:"mobile"===k?"smartphone":k,label:o("Responsiveness Settings"),className:"is-button",onClick:n,"aria-expanded":t})},renderContent:function(e){var t=e.onToggle;return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-responsive-control-settings"},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-responsive-control-settings-title"},o("Responsiveness Settings")),wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-responsive-control-settings-item",{"is-selected":"desktop"===k}),onClick:function(){t(),v("desktop")}},wp.element.createElement(c,{icon:"desktop"}),wp.element.createElement("span",{className:"popover-title"},o("Desktop"))),wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-responsive-control-settings-item",{"is-selected":"tablet"===k}),onClick:function(){t(),v("tablet")}},wp.element.createElement(c,{icon:"tablet"}),wp.element.createElement("span",{className:"popover-title"},o("Tablet Devices"))),wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-responsive-control-settings-item",{"is-selected":"mobile"===k}),onClick:function(){t(),v("mobile")}},wp.element.createElement(c,{icon:"smartphone"}),wp.element.createElement("span",{className:"popover-title"},o("Smartphones"))))}}))),1===w&&wp.element.createElement(b,{text:o("Single Row")},wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===t}),onClick:function(){return r("equal")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(m,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}))))||2===w&&wp.element.createElement(h,null,wp.element.createElement(b,{text:o("Equal")},wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===t}),onClick:function(){return r("equal")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(m,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(s,{x:"22.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(b,{text:o("1:2")},wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneTwo"===t}),onClick:function(){return r("oneTwo")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(m,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(s,{x:"16.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(b,{text:o("2:1")},wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoOne"===t}),onClick:function(){return r("twoOne")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(m,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(s,{x:"28.9",y:"13",width:"2.2",height:"22"})))),("mobile"==k||"tablet"==k)&&wp.element.createElement(b,{text:o("Collapsed Rows")},wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===t}),onClick:function(){return r("collapsedRows")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(m,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(s,{x:"6",y:"22.9",width:"36",height:"2.2"})))))||3===w&&wp.element.createElement(h,null,wp.element.createElement(b,{text:o("Equal")},wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===t}),onClick:function(){return r("equal")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(m,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(s,{x:"28.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(s,{x:"16.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(b,{text:o("1:1:2")},wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneOneTwo"===t}),onClick:function(){return r("oneOneTwo")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(m,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(s,{x:"22.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(s,{x:"12.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(b,{text:o("2:1:1")},wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoOneOne"===t}),onClick:function(){return r("twoOneOne")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(m,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(s,{x:"22.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(s,{x:"32.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(b,{text:o("1:2:1")},wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneTwoOne"===t}),onClick:function(){return r("oneTwoOne")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(m,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(s,{x:"13.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(s,{x:"31.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(b,{text:o("1:3:1")},wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneThreeOne"===t}),onClick:function(){return r("oneThreeOne")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(m,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(s,{x:"11.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(s,{x:"33.9",y:"13",width:"2.2",height:"22"})))),("mobile"==k||"tablet"==k)&&wp.element.createElement(b,{text:o("Collapsed Rows")},wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===t}),onClick:function(){return r("collapsedRows")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(m,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(s,{x:"6",y:"22.9",width:"36",height:"2.2"})))))||4===w&&wp.element.createElement(h,null,wp.element.createElement(b,{text:o("Equal")},wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===t}),onClick:function(){return r("equal")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(m,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(s,{x:"13.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(s,{x:"32.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(s,{x:"22.9",y:"13",width:"2.2",height:"22"})))),("mobile"==k||"tablet"==k)&&wp.element.createElement(h,null,wp.element.createElement(b,{text:o("Two Column Grid")},wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoColumnGrid"===t}),onClick:function(){return r("twoColumnGrid")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(m,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(s,{x:"4",y:"22.9",width:"40",height:"2.2"}),wp.element.createElement(s,{x:"22.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(b,{text:o("Collapsed Rows")},wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===t}),onClick:function(){return r("collapsedRows")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(m,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(s,{x:"6",y:"22.9",width:"36",height:"2.2"}))))))||5===w&&wp.element.createElement(h,null,wp.element.createElement(b,{text:o("Equal")},wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===t}),onClick:function(){return r("equal")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(m,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(s,{x:"10.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(s,{x:"34.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(s,{x:"26.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(s,{x:"18.9",y:"13",width:"2.2",height:"22"})))),("mobile"==k||"tablet"==k)&&wp.element.createElement(b,{text:o("Collapsed Rows")},wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===t}),onClick:function(){return r("collapsedRows")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(m,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(s,{x:"6",y:"22.9",width:"36",height:"2.2"})))))||6===w&&wp.element.createElement(h,null,wp.element.createElement(b,{text:o("Equal")},wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===t}),onClick:function(){return r("equal")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(m,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(s,{x:"10.4",y:"13",width:"2.2",height:"22"}),wp.element.createElement(s,{x:"35.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(s,{x:"29.4",y:"13",width:"2.2",height:"22"}),wp.element.createElement(s,{x:"16.4",y:"13",width:"2.2",height:"22"}),wp.element.createElement(s,{x:"22.9",y:"13",width:"2.2",height:"22"})))),("mobile"==k||"tablet"==k)&&wp.element.createElement(h,null,wp.element.createElement(b,{text:o("Two Column Grid")},wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoColumnGrid"===t}),onClick:function(){return r("twoColumnGrid")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(m,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(s,{x:"4",y:"18.9",width:"40",height:"2.2"}),wp.element.createElement(s,{x:"22.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(s,{x:"4",y:"26.9",width:"40",height:"2.2"})))),wp.element.createElement(b,{text:o("Three Column Grid")},wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"threeColumnGrid"===t}),onClick:function(){return r("threeColumnGrid")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(m,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(s,{x:"4",y:"22.9",width:"40",height:"2.2"}),wp.element.createElement(s,{x:"28.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(s,{x:"16.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(b,{text:o("Collapsed Rows")},wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===t}),onClick:function(){return r("collapsedRows")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(m,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(s,{x:"6",y:"22.9",width:"36",height:"2.2"}))))))))}))},function(e,t,n){"use strict";n.r(t);n(74);var a=n(2),l=n(0),o=n.n(l),r=n(15),i=n.n(r);n(75);function c(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var d=lodash,p=d.startCase,m=d.toLower,s=wp.i18n.__,u=wp.components,b=u.Button,g=u.Dashicon,h=u.Icon,f=u.TextControl,y=u.Tooltip,w=u.SelectControl,v=function(e){var t,n=e.preview,l=e.tab,r=e.blocksCategories,i=e.templateCategories,d=e.selectedCategory,u=e.selectedTemplate,v=e.search,k=e.togglePreview,T=e.changeTab,E=e.close,x=e.importTemplate,C=e.selectCategory,S=e.changeSearch,B=(t=("block"===l?r:i).map((function(e){return{label:p(m(e)),value:e}})),[{label:s("All Categories"),value:"all"}].concat(c(t)));return wp.element.createElement("div",{className:"library-modal-control-panel"},wp.element.createElement("div",{className:"library-modal-header"},wp.element.createElement("div",{className:"library-modal-header-logo"},n?wp.element.createElement(b,{className:"library-modal-header-tabs-button back-to-library","aria-label":s("Back to Library"),onClick:k},wp.element.createElement(g,{icon:"arrow-left-alt"})," ",s("Back to Library")):wp.element.createElement("div",{className:"library-modal-header-tabs-button"},wp.element.createElement(h,{icon:a.l}))),!n&&wp.element.createElement("div",{className:"library-modal-header-tabs"},wp.element.createElement(b,{className:o()("library-modal-header-tabs-button",{"is-selected":"block"===l}),onClick:function(){return T("block")}},wp.element.createElement(g,{icon:"screenoptions"}),s("Blocks")),wp.element.createElement(b,{className:o()("library-modal-header-tabs-button",{"is-selected":"template"===l}),onClick:function(){return T("template")}},wp.element.createElement(g,{icon:"editor-table"}),s("Templates"))),wp.element.createElement("div",{className:"library-modal-header-actions"},n&&wp.element.createElement(b,{className:"library-modal-header-tabs-button insert-button",onClick:function(){return x(u.template_url)},tabindex:"0"},wp.element.createElement(g,{icon:"arrow-down-alt",size:16}),s("Insert")),wp.element.createElement(y,{text:s("Close")},wp.element.createElement(b,{className:"library-modal-header-tabs-button","aria-label":s("Close settings"),onClick:E},wp.element.createElement(g,{icon:"no-alt"}))))),!n&&wp.element.createElement("div",{className:"library-modal-actions"},wp.element.createElement(w,{className:"library-modal-category-control",value:"all"===d?"all":d,onChange:C,options:B}),wp.element.createElement(f,{type:"text",value:v||"",placeholder:s("Search"),className:"library-modal-search-control",onChange:S})))},k=wp.i18n.__,T=wp.components.Notice,E=wp.element.Fragment,x=function(e){var t=e.isError,n=e.removeError,a=e.isMissing,l=e.removeMissing,o=e.missingBlocks;return wp.element.createElement(E,null,!Boolean(themeisleGutenberg.isCompatible)&&wp.element.createElement("div",{className:"library-modal-error"},wp.element.createElement(T,{status:"warning",isDismissible:!1,className:"version-warning",actions:[{label:k("Update Now"),url:themeisleGutenberg.updatePath}]},k("You are using an older version of Otter. Use the latest version of Otter to have maximum compatibility with Template Library."))),t&&wp.element.createElement("div",{className:"library-modal-error"},wp.element.createElement(T,{status:"error",onRemove:n},k("There seems to be an error. Please try again."))),a&&wp.element.createElement("div",{className:"library-modal-error"},wp.element.createElement(T,{status:"warning",className:"library-modal-missing",onRemove:l},k("You seem to be missing some blocks that are required by your selected template."),wp.element.createElement("details",null,wp.element.createElement("summary",null,k("View Missing Blocks")),wp.element.createElement("ul",null,o.map((function(e){return wp.element.createElement("li",null,e)})))))))},C=n(23),S=n.n(C),B=wp.i18n.__,M=wp.components.Button,O=function(e){var t=e.template,n=e.togglePreview,a=e.importTemplate;return wp.element.createElement("div",{"aria-label":t.title||B("Untitled Gutenberg Template"),className:"library-modal-content__item",tabindex:"0"},wp.element.createElement("div",{className:"library-modal-content__preview"},wp.element.createElement(S.a,null,wp.element.createElement("img",{src:t.screenshot_url||"https://raw.githubusercontent.com/Codeinwp/gutenberg-templates/master/assets/images/default.jpg"}))),wp.element.createElement("div",{className:"library-modal-content__footer"},wp.element.createElement("div",{className:"library-modal-content__footer_meta"},t.title&&"template"===t.type&&wp.element.createElement("h4",{className:"library-modal-content__footer_meta_title"},t.title,t.author&&B(" by ")+t.author," "),t.author&&"block"===t.type&&wp.element.createElement("h4",{className:"library-modal-content__footer_meta_author"},B("Author:")," ",t.author)),wp.element.createElement("div",{className:"library-modal-content__footer_actions"},t.demo_url&&wp.element.createElement(M,{isDefault:!0,isLarge:!0,className:"library-modal-overlay__actions",onClick:function(){return n(t)},tabindex:"0"},B("Preview")),wp.element.createElement(M,{isPrimary:!0,isLarge:!0,className:"library-modal-overlay__actions",onClick:function(){return a(t.template_url)},tabindex:"0"},B("Insert")))))},R=wp.i18n.__,N=wp.components.Spinner,L=function(e){var t=e.preview,n=e.isLoaded,a=e.data,l=e.tab,o=e.selectedTemplate,r=e.selectedCategory,i=e.search,c=e.togglePreview,d=e.importTemplate;return t?wp.element.createElement("div",{className:"library-modal-preview"},wp.element.createElement("iframe",{src:o.demo_url})):n?wp.element.createElement("div",{className:"library-modal-content"},a.map((function(e){if(e.template_url&&("all"===r||e.categories&&e.categories.includes(r))&&(!i||e.keywords&&e.keywords.some((function(e){return e.toLowerCase().includes(i.toLowerCase())})))&&l===e.type)return wp.element.createElement(O,{template:e,togglePreview:c,importTemplate:d})})),wp.element.createElement("div",{"aria-label":R("Coming Soon"),className:"library-modal-content__item"},wp.element.createElement("div",{className:"library-modal-content__preview"},wp.element.createElement(S.a,null,wp.element.createElement("img",{src:"https://raw.githubusercontent.com/Codeinwp/gutenberg-templates/master/assets/images/coming-soon.jpg"}))))):wp.element.createElement("div",{className:"library-modal-loader"},wp.element.createElement(N,null))};function z(e){return(z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function H(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function A(e,t,n,a,l,o,r){try{var i=e[o](r),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(a,l)}function _(e){return function(){var t=this,n=arguments;return new Promise((function(a,l){var o=e.apply(t,n);function r(e){A(o,a,l,r,i,"next",e)}function i(e){A(o,a,l,r,i,"throw",e)}r(void 0)}))}}var P=wp.apiFetch,I=wp.components.Modal,j=wp.compose.compose,F=wp.data,G=F.withSelect,V=F.withDispatch,D=wp.element,W=D.useEffect,q=D.useState,Z=j(G((function(e,t){var n=t.clientId,a=e("core/block-editor").getBlock,l=e("core/blocks").getBlockTypes;return{block:a(n),availableBlocks:l()}})),V((function(e,t){var n=t.block,a=e("core/block-editor").replaceBlocks;return{importBlocks:function(e){return a(n.clientId,e)}}})))((function(e){var t=e.close,n=e.availableBlocks,a=e.importBlocks;W((function(){(function(){var e=_(regeneratorRuntime.mark((function e(){var t,n,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,P({path:"themeisle-gutenberg-blocks/v1/fetch_templates"});case 2:t=e.sent,n=[],a=[],t.map((function(e){e.categories&&e.template_url&&("block"===e.type&&e.categories.map((function(e){n.push(e)})),"template"===e.type&&e.categories.map((function(e){a.push(e)})))})),n=n.filter((function(e,t,n){return n.indexOf(e)===t})).sort(),a=a.filter((function(e,t,n){return n.indexOf(e)===t})).sort(),M(n),N(a),F(t),m(!0);case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}})()()}),[]);var l=H(q("block"),2),r=l[0],c=l[1],d=H(q(!1),2),p=d[0],m=d[1],s=H(q(!1),2),u=s[0],b=s[1],g=H(q(!1),2),h=g[0],f=g[1],y=H(q("all"),2),w=y[0],k=y[1],T=H(q(""),2),E=T[0],C=T[1],S=H(q([]),2),B=S[0],M=S[1],O=H(q([]),2),R=O[0],N=O[1],A=H(q([]),2),j=A[0],F=A[1],G=H(q(!1),2),V=G[0],D=G[1],Z=H(q(null),2),U=Z[0],Q=Z[1],K=H(q([]),2),J=K[0],Y=K[1],X=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;D(!V),Q(e)},$=function e(t){return Array.isArray(t)?t.map((function(t){return e(t)})):"object"===z(t)&&Object.keys(t).map((function(n){"clientId"===n&&(t[n]=i()()),"innerBlocks"===n&&t[n].map((function(t){e(t)}))})),t},ee=function e(t){var a=!1,l=[];return Array.isArray(t)?t.map((function(t){return e(t)})):"object"===z(t)&&Object.keys(t).some((function(o){"name"===o&&(void 0===n.find((function(e){return e.name===t.name}))&&(l.push(t.name),a=!0));"innerBlocks"===o&&t[o].map((function(t){return e(t)}))})),l=l.concat(l).filter((function(e,t,n){return n.indexOf(e)===t})),Y(l),a},te=function(){var e=_(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return D(!1),m(!1),Y([]),e.next=5,P({path:"themeisle-gutenberg-blocks/v1/import_template?url=".concat(t)});case 5:n=e.sent,null!==(n=$(n))?(m(!0),ee(n)?f(!0):a(n)):(m(!0),b(!0));case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return wp.element.createElement(I,{className:o()("wp-block-themeisle-library-modal",{"is-preview":V}),onRequestClose:t,isDismissable:!1,shouldCloseOnClickOutside:!1},wp.element.createElement(v,{preview:V,tab:r,changeTab:function(e){c(e),k("all"),C("")},blocksCategories:B,templateCategories:R,selectedTemplate:U,selectedCategory:w,search:E,togglePreview:X,close:t,importTemplate:te,selectCategory:function(e){return k(e)},changeSearch:function(e){return C(e)}}),wp.element.createElement(x,{isError:u,isMissing:h,missingBlocks:J,removeError:function(){return b(!1)},removeMissing:function(){return f(!1)}}),wp.element.createElement(L,{preview:V,isLoaded:p,data:j,tab:r,selectedTemplate:U,selectedCategory:w,search:E,togglePreview:X,importTemplate:te}))}));function U(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Q=wp.i18n.__,K=wp.components,J=K.Button,Y=K.Dashicon,X=K.Icon,$=K.Path,ee=K.Placeholder,te=K.Rect,ne=K.SVG,ae=K.Tooltip,le=wp.element.useState;t.default=function(e){var t=e.clientId,n=e.setupColumns,l=U(le(!1),2),o=l[0],r=l[1];return wp.element.createElement(ee,{label:Q("Select Layout"),instructions:Q("Select a layout to start with, or make one yourself."),icon:wp.element.createElement(X,{icon:a.f}),isColumnLayout:!0,className:"wp-block-themeisle-onboarding-component"},wp.element.createElement("div",{className:"wp-block-themeisle-layout-picker"},wp.element.createElement(ae,{text:Q("Equal")},wp.element.createElement(J,{isLarge:!0,className:"wp-block-themeisle-blocks-advanced-column-layout",onClick:function(){return n(2,"equal")}},wp.element.createElement(ne,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement($,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(te,{x:"22.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(ae,{text:Q("1:2")},wp.element.createElement(J,{isLarge:!0,className:"wp-block-themeisle-blocks-advanced-column-layout",onClick:function(){return n(2,"oneTwo")}},wp.element.createElement(ne,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement($,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(te,{x:"16.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(ae,{text:Q("2:1")},wp.element.createElement(J,{isLarge:!0,className:"wp-block-themeisle-blocks-advanced-column-layout",onClick:function(){return n(2,"twoOne")}},wp.element.createElement(ne,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement($,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(te,{x:"28.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(ae,{text:Q("Equal")},wp.element.createElement(J,{isLarge:!0,className:"wp-block-themeisle-blocks-advanced-column-layout",onClick:function(){return n(3,"equal")}},wp.element.createElement(ne,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement($,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(te,{x:"28.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(te,{x:"16.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(ae,{text:Q("1:1:2")},wp.element.createElement(J,{isLarge:!0,className:"wp-block-themeisle-blocks-advanced-column-layout",onClick:function(){return n(3,"oneOneTwo")}},wp.element.createElement(ne,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement($,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(te,{x:"22.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(te,{x:"12.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(ae,{text:Q("2:1:1")},wp.element.createElement(J,{isLarge:!0,className:"wp-block-themeisle-blocks-advanced-column-layout",onClick:function(){return n(3,"twoOneOne")}},wp.element.createElement(ne,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement($,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(te,{x:"22.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(te,{x:"32.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(ae,{text:Q("1:2:1")},wp.element.createElement(J,{isLarge:!0,className:"wp-block-themeisle-blocks-advanced-column-layout",onClick:function(){return n(3,"oneTwoOne")}},wp.element.createElement(ne,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement($,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(te,{x:"13.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(te,{x:"31.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(ae,{text:Q("1:3:1")},wp.element.createElement(J,{isLarge:!0,className:"wp-block-themeisle-blocks-advanced-column-layout",onClick:function(){return n(3,"oneThreeOne")}},wp.element.createElement(ne,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement($,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(te,{x:"11.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(te,{x:"33.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(ae,{text:Q("Equal")},wp.element.createElement(J,{isLarge:!0,className:"wp-block-themeisle-blocks-advanced-column-layout",onClick:function(){return n(4,"equal")}},wp.element.createElement(ne,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement($,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(te,{x:"13.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(te,{x:"32.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(te,{x:"22.9",y:"13",width:"2.2",height:"22"}))))),wp.element.createElement(ae,{text:Q("Open Template Library")},wp.element.createElement(J,{isPrimary:!0,isLarge:!0,className:"wp-block-themeisle-template-library",onClick:function(){return r(!0)}},wp.element.createElement(Y,{icon:"category"}),Q("Template Library")),o&&wp.element.createElement(Z,{clientId:t,close:function(){return r(!1)}})),wp.element.createElement("div",{className:"wp-block-themeisle-layout-skipper"},wp.element.createElement(J,{isLink:!0,onClick:function(){return n(1,"equal")}},Q("Skip"))))}},function(e,t,n){"use strict";n.r(t);var a=n(0),l=n.n(a),o=n(7),r=wp.components,i=r.Placeholder,c=r.Spinner,d=(0,wp.data.withSelect)((function(e,t){var n=t.id,a=t.alt,l=t.size,o=n?e("core").getMedia(n):void 0,r=o?0<Object.keys(o.media_details.sizes).length&&o.media_details.sizes[l]?o.media_details.sizes[l].source_url:o.source_url:null;return o?{thumbnail:r,alt:o.alt_text||a}:{alt:a}}))((function(e){var t=e.alt,n=e.id,a=e.thumbnail,l=e.link,o=wp.element.createElement(i,null,wp.element.createElement(c,null));return a&&(o=wp.element.createElement("img",{src:a,alt:t,"data-id":n})),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-post-image"},wp.element.createElement("a",{href:l},o))})),p=wp.i18n,m=p.__,s=p.sprintf,u=function(e){var t=e.className,n=e.attributes,a=e.posts,r=e.categoriesList,i=e.authors,c=n.titleTag||"h5";return wp.element.createElement("div",{className:l()(t,"is-grid","wp-block-themeisle-blocks-posts-grid-columns-".concat(n.columns),{"has-shadow":n.imageBoxShadow})},a.map((function(e){var t,a;return r&&(t=r.find((function(t){return t.id===e.categories[0]}))),i&&(a=i.find((function(t){return t.id===e.author}))),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-post-blog wp-block-themeisle-blocks-posts-grid-post-plain"},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-post"},0!==e.featured_media&&n.displayFeaturedImage&&wp.element.createElement(d,{id:e.featured_media,link:e.link,alt:e.title.rendered,size:n.imageSize}),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-post-body"},n.template.map((function(l){return"category"===l&&void 0!==t&&n.displayCategory&&r?wp.element.createElement("span",{class:"wp-block-themeisle-blocks-posts-grid-post-category"},t.name):"title"===l&&n.displayTitle?wp.element.createElement(c,{className:"wp-block-themeisle-blocks-posts-grid-post-title"},wp.element.createElement("a",{href:e.link},Object(o.b)(e.title.rendered))):"meta"===l&&n.displayMeta&&(n.displayDate||n.displayAuthor)?wp.element.createElement("p",{className:"wp-block-themeisle-blocks-posts-grid-post-meta"},n.displayDate&&s(m("on %s"),Object(o.a)(e.date)),n.displayAuthor&&void 0!==a&&i&&s(m(" by %s"),a.name)):"description"===l&&0<n.excerptLength&&n.displayDescription?wp.element.createElement("p",{className:"wp-block-themeisle-blocks-posts-grid-post-description"},Object(o.b)(e.excerpt.rendered).substring(0,n.excerptLength)+"…"):void 0})))))})))},b=wp.i18n,g=b.__,h=b.sprintf,f=function(e){var t=e.className,n=e.attributes,a=e.posts,r=e.categoriesList,i=e.authors,c=n.titleTag||"h5";return wp.element.createElement("div",{className:l()(t,"is-list",{"has-shadow":n.imageBoxShadow})},a.map((function(e){var t,a;return r&&(t=r.find((function(t){return t.id===e.categories[0]}))),i&&(a=i.find((function(t){return t.id===e.author}))),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-post-blog wp-block-themeisle-blocks-posts-grid-post-plain"},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-post"},0!==e.featured_media&&n.displayFeaturedImage&&wp.element.createElement(d,{id:e.featured_media,link:e.link,alt:e.title.rendered,size:n.imageSize}),wp.element.createElement("div",{className:l()("wp-block-themeisle-blocks-posts-grid-post-body",{"is-full":!n.displayFeaturedImage})},n.template.map((function(l){return"category"===l&&void 0!==t&&n.displayCategory&&r?wp.element.createElement("span",{class:"wp-block-themeisle-blocks-posts-grid-post-category"},t.name):"title"===l&&n.displayTitle?wp.element.createElement(c,{className:"wp-block-themeisle-blocks-posts-grid-post-title"},wp.element.createElement("a",{href:e.link},Object(o.b)(e.title.rendered))):"meta"===l&&n.displayMeta&&(n.displayDate||n.displayAuthor)?wp.element.createElement("p",{className:"wp-block-themeisle-blocks-posts-grid-post-meta"},n.displayDate&&h(g("on %s"),Object(o.a)(e.date)),n.displayAuthor&&void 0!==a&&i&&h(g(" by %s"),a.name)):"description"===l&&0<n.excerptLength&&n.displayDescription?wp.element.createElement("p",{className:"wp-block-themeisle-blocks-posts-grid-post-description"},Object(o.b)(e.excerpt.rendered).substring(0,n.excerptLength)+"…"):void 0})))))})))};t.default=function(e){var t=e.className,n=e.attributes,a=e.posts,l=e.categoriesList,o=e.authors;return"grid"===n.style?wp.element.createElement(u,{className:t,attributes:n,posts:a,categoriesList:l,authors:o}):"list"===n.style?wp.element.createElement(f,{className:t,attributes:n,posts:a,categoriesList:l,authors:o}):void 0}},,,,,function(e,t,n){"use strict";n.r(t);var a,l=n(2);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var r=(o(a={id:{type:"string"},columns:{type:"number"},layout:{type:"string"},layoutTablet:{type:"string",default:"equal"},layoutMobile:{type:"string",default:"equal"},columnsGap:{type:"string",default:"default"},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:20},paddingTablet:{type:"number"},paddingMobile:{type:"number"},paddingTop:{type:"number",default:20},paddingTopTablet:{type:"number"},paddingTopMobile:{type:"number"},paddingRight:{type:"number",default:20},paddingRightTablet:{type:"number"},paddingRightMobile:{type:"number"},paddingBottom:{type:"number",default:20},paddingBottomTablet:{type:"number"},paddingBottomMobile:{type:"number"},paddingLeft:{type:"number",default:20},paddingLeftTablet:{type:"number"},paddingLeftMobile:{type:"number"},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:20},marginTablet:{type:"number"},marginMobile:{type:"number"},marginTop:{type:"number",default:20},marginTopTablet:{type:"number"},marginTopMobile:{type:"number"},marginBottom:{type:"number",default:20},marginBottomTablet:{type:"number"},marginBottomMobile:{type:"number"},columnsWidth:{type:"number"},horizontalAlign:{type:"string",default:"unset"},columnsHeight:{type:"string",default:"auto"},columnsHeightCustom:{type:"number"},columnsHeightCustomTablet:{type:"number"},columnsHeightCustomMobile:{type:"number"},verticalAlign:{type:"string",default:"unset"},backgroundType:{type:"string",default:"color"},backgroundColor:{type:"string"},backgroundImageID:{type:"number"},backgroundImageURL:{type:"string"},backgroundAttachment:{type:"string",default:"scroll"},backgroundPosition:{type:"string",default:"top left"},backgroundRepeat:{type:"string",default:"repeat"},backgroundSize:{type:"string",default:"auto"},backgroundGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundGradientFirstLocation:{type:"number",default:0},backgroundGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundGradientSecondLocation:{type:"number",default:100},backgroundGradientType:{type:"string",default:"linear"},backgroundGradientAngle:{type:"number",default:90},backgroundGradientPosition:{type:"string",default:"center center"},backgroundOverlayOpacity:{type:"number",default:50},backgroundOverlayType:{type:"string",default:"color"},backgroundOverlayColor:{type:"string"},backgroundOverlayImageID:{type:"number"},backgroundOverlayImageURL:{type:"string"},backgroundOverlayAttachment:{type:"string",default:"scroll"},backgroundOverlayPosition:{type:"string",default:"top left"},backgroundOverlayRepeat:{type:"string",default:"repeat"},backgroundOverlaySize:{type:"string",default:"auto"},backgroundOverlayGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundOverlayGradientFirstLocation:{type:"number",default:0},backgroundOverlayGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundOverlayGradientSecondLocation:{type:"number",default:100},backgroundOverlayGradientType:{type:"string",default:"linear"},backgroundOverlayGradientAngle:{type:"number",default:90},backgroundOverlayGradientPosition:{type:"string",default:"center center"},backgroundOverlayFilterBlur:{type:"number",default:0},backgroundOverlayFilterBrightness:{type:"number",default:10},backgroundOverlayFilterContrast:{type:"number",default:10},backgroundOverlayFilterGrayscale:{type:"number",default:0},backgroundOverlayFilterHue:{type:"number",default:0},backgroundOverlayFilterSaturate:{type:"number",default:10},backgroundOverlayBlend:{type:"string",default:"normal"},borderType:{type:"string",default:"linked"},border:{type:"number",default:0},borderTop:{type:"number",default:0},borderRight:{type:"number",default:0},borderBottom:{type:"number",default:0},borderLeft:{type:"number",default:0},borderColor:{type:"string",default:"#000000"},borderRadiusType:{type:"string",default:"linked"},borderRadius:{type:"number",default:0},borderRadiusTop:{type:"number",default:0},borderRadiusRight:{type:"number",default:0},borderRadiusBottom:{type:"number",default:0},borderRadiusLeft:{type:"number",default:0},boxShadow:{type:"boolean",default:!1},boxShadowColor:{type:"string",default:"#000000"},boxShadowColorOpacity:{type:"number",default:50},boxShadowBlur:{type:"number",default:5},boxShadowSpread:{type:"number",default:0},boxShadowHorizontal:{type:"number",default:0},boxShadowVertical:{type:"number",default:0},dividerTopType:{type:"string",default:"none"},dividerTopColor:{type:"string",default:"#000000"},dividerTopWidth:{type:"number",default:100},dividerTopWidthTablet:{type:"number",default:100},dividerTopWidthMobile:{type:"number",default:100},dividerTopHeight:{type:"number",default:100},dividerTopHeightTablet:{type:"number",default:100},dividerTopHeightMobile:{type:"number",default:100},dividerTopInvert:{type:"boolean",default:!1},dividerBottomType:{type:"string",default:"none"},dividerBottomColor:{type:"string",default:"#000000"},dividerBottomWidth:{type:"number",default:100},dividerBottomWidthTablet:{type:"number",default:100},dividerBottomWidthMobile:{type:"number",default:100},dividerBottomHeight:{type:"number",default:100},dividerBottomHeightTablet:{type:"number",default:100},dividerBottomHeightMobile:{type:"number",default:100},dividerBottomInvert:{type:"boolean",default:!1},hide:{type:"boolean",default:!1},hideTablet:{type:"boolean",default:!1},hideMobile:{type:"boolean",default:!1},reverseColumnsTablet:{type:"boolean",default:!1}},"reverseColumnsTablet",{type:"boolean",default:!1}),o(a,"columnsHTMLTag",{type:"string",default:"div"}),a),i=n(0),c=n.n(i),d=n(6),p=n.n(d);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=wp.blockEditor.InnerBlocks,g=wp.components,h=g.SVG,f=g.Path,y=function(e){var t=e.type,n=e.front,a=e.style,l=e.fill,o=e.invert,r=e.width,i=e.height;return"none"!==a&&wp.element.createElement("div",{className:c()("wp-block-themeisle-blocks-advanced-columns-separators",t),style:!n&&r?{transform:"".concat(r?"scaleX( ".concat(r/100," )"):"")}:{}},"bigTriangle"===a&&!1===o&&wp.element.createElement(h,{id:"bigTriangle",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"bottom"===t?{transform:"".concat("bottom"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(f,{d:"M0 0 L50 100 L100 0 Z"})),"bigTriangle"===a&&!0===o&&wp.element.createElement(h,{id:"bigTriangle",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"".concat("top"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(f,{d:"M100, 0l-50, 100l-50, -100l0, 100l100, 0l0, -100Z"})),"rightCurve"===a&&!1===o&&wp.element.createElement(h,{id:"rightCurve",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"".concat("top"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(f,{d:"M0 100 C 20 0 50 0 100 100 Z"})),"rightCurve"===a&&!0===o&&wp.element.createElement(h,{id:"rightCurve",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"".concat("top"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(f,{d:"M0 100 C 50 0 70 0 100 100 Z"})),"curve"===a&&wp.element.createElement(h,{id:"curve",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"".concat("top"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(f,{d:"M0 100 C40 0 60 0 100 100 Z"})),"slant"===a&&!1===o&&wp.element.createElement(h,{id:"slant",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"bottom"===t?{transform:"".concat("bottom"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(f,{d:"M0 0 L100 100 L100 0 Z"})),"slant"===a&&!0===o&&wp.element.createElement(h,{id:"slant",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"bottom"===t?{transform:"".concat("bottom"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(f,{d:"M0 0 L0 100 L100 0 Z"})),"cloud"===a&&wp.element.createElement(h,{id:"cloud",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"".concat("top"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(f,{d:"M-5 100 Q 10 -100 15 100 Z M10 100 Q 20 -20 30 100 M25 100 Q 35 -70 45 100 M40 100 Q 50 -100 60 100 M55 100 Q 65 -20 75 100 M70 100 Q 75 -45 90 100 M85 100 Q 90 -50 95 100 M90 100 Q 95 -25 105 100 Z"})))},w=[{attributes:{align:{type:"string"},id:{type:"string"},columns:{type:"number"},layout:{type:"string"},layoutTablet:{type:"string",default:"equal"},layoutMobile:{type:"string",default:"equal"},columnsGap:{type:"string",default:"default"},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:20},paddingTablet:{type:"number",default:20},paddingMobile:{type:"number",default:20},paddingTop:{type:"number",default:20},paddingTopTablet:{type:"number",default:20},paddingTopMobile:{type:"number",default:20},paddingRight:{type:"number",default:20},paddingRightTablet:{type:"number",default:20},paddingRightMobile:{type:"number",default:20},paddingBottom:{type:"number",default:20},paddingBottomTablet:{type:"number",default:20},paddingBottomMobile:{type:"number",default:20},paddingLeft:{type:"number",default:20},paddingLeftTablet:{type:"number",default:20},paddingLeftMobile:{type:"number",default:20},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:20},marginTablet:{type:"number",default:20},marginMobile:{type:"number",default:20},marginTop:{type:"number",default:20},marginTopTablet:{type:"number",default:20},marginTopMobile:{type:"number",default:20},marginBottom:{type:"number",default:20},marginBottomTablet:{type:"number",default:20},marginBottomMobile:{type:"number",default:20},columnsWidth:{type:"number"},columnsHeight:{type:"string",default:"auto"},columnsHeightCustom:{type:"number"},columnsHeightCustomTablet:{type:"number"},columnsHeightCustomMobile:{type:"number"},horizontalAlign:{type:"string",default:"unset"},verticalAlign:{type:"string",default:"unset"},backgroundType:{type:"string",default:"color"},backgroundColor:{type:"string"},backgroundImageID:{type:"number"},backgroundImageURL:{type:"string"},backgroundAttachment:{type:"string",default:"scroll"},backgroundPosition:{type:"string",default:"top left"},backgroundRepeat:{type:"string",default:"repeat"},backgroundSize:{type:"string",default:"auto"},backgroundGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundGradientFirstLocation:{type:"number",default:0},backgroundGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundGradientSecondLocation:{type:"number",default:100},backgroundGradientType:{type:"string",default:"linear"},backgroundGradientAngle:{type:"number",default:90},backgroundGradientPosition:{type:"string",default:"center center"},backgroundOverlayOpacity:{type:"number",default:50},backgroundOverlayType:{type:"string",default:"color"},backgroundOverlayColor:{type:"string"},backgroundOverlayImageID:{type:"number"},backgroundOverlayImageURL:{type:"string"},backgroundOverlayAttachment:{type:"string",default:"scroll"},backgroundOverlayPosition:{type:"string",default:"top left"},backgroundOverlayRepeat:{type:"string",default:"repeat"},backgroundOverlaySize:{type:"string",default:"auto"},backgroundOverlayGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundOverlayGradientFirstLocation:{type:"number",default:0},backgroundOverlayGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundOverlayGradientSecondLocation:{type:"number",default:100},backgroundOverlayGradientType:{type:"string",default:"linear"},backgroundOverlayGradientAngle:{type:"number",default:90},backgroundOverlayGradientPosition:{type:"string",default:"center center"},backgroundOverlayFilterBlur:{type:"number",default:0},backgroundOverlayFilterBrightness:{type:"number",default:10},backgroundOverlayFilterContrast:{type:"number",default:10},backgroundOverlayFilterGrayscale:{type:"number",default:0},backgroundOverlayFilterHue:{type:"number",default:0},backgroundOverlayFilterSaturate:{type:"number",default:10},backgroundOverlayBlend:{type:"string",default:"normal"},borderType:{type:"string",default:"linked"},border:{type:"number",default:0},borderTop:{type:"number",default:0},borderRight:{type:"number",default:0},borderBottom:{type:"number",default:0},borderLeft:{type:"number",default:0},borderColor:{type:"string",default:"#000000"},borderRadiusType:{type:"string",default:"linked"},borderRadius:{type:"number",default:0},borderRadiusTop:{type:"number",default:0},borderRadiusRight:{type:"number",default:0},borderRadiusBottom:{type:"number",default:0},borderRadiusLeft:{type:"number",default:0},boxShadow:{type:"boolean",default:!1},boxShadowColor:{type:"string",default:"#000000"},boxShadowColorOpacity:{type:"number",default:50},boxShadowBlur:{type:"number",default:5},boxShadowSpread:{type:"number",default:0},boxShadowHorizontal:{type:"number",default:0},boxShadowVertical:{type:"number",default:0},dividerTopType:{type:"string",default:"none"},dividerTopColor:{type:"string",default:"#000000"},dividerTopWidth:{type:"number",default:100},dividerTopWidthTablet:{type:"number",default:100},dividerTopWidthMobile:{type:"number",default:100},dividerTopHeight:{type:"number",default:100},dividerTopHeightTablet:{type:"number",default:100},dividerTopHeightMobile:{type:"number",default:100},dividerTopInvert:{type:"boolean",default:!1},dividerBottomType:{type:"string",default:"none"},dividerBottomColor:{type:"string",default:"#000000"},dividerBottomWidth:{type:"number",default:100},dividerBottomWidthTablet:{type:"number",default:100},dividerBottomWidthMobile:{type:"number",default:100},dividerBottomHeight:{type:"number",default:100},dividerBottomHeightTablet:{type:"number",default:100},dividerBottomHeightMobile:{type:"number",default:100},dividerBottomInvert:{type:"boolean",default:!1},hide:{type:"boolean",default:!1},hideTablet:{type:"boolean",default:!1},hideMobile:{type:"boolean",default:!1},columnsHTMLTag:{type:"string",default:"div"}},supports:{align:["wide","full"],html:!1},save:function(e){var t,n,a,l,o,r,i=e.attributes,d=i.id,m=i.columns,u=i.layout,g=i.layoutTablet,h=i.layoutMobile,f=i.columnsGap,w=i.columnsWidth,v=i.horizontalAlign,k=i.verticalAlign,T=i.backgroundType,E=i.backgroundColor,x=i.backgroundImageURL,C=i.backgroundAttachment,S=i.backgroundPosition,B=i.backgroundRepeat,M=i.backgroundSize,O=i.backgroundGradientFirstColor,R=i.backgroundGradientFirstLocation,N=i.backgroundGradientSecondColor,L=i.backgroundGradientSecondLocation,z=i.backgroundGradientType,H=i.backgroundGradientAngle,A=i.backgroundGradientPosition,_=i.backgroundOverlayOpacity,P=i.backgroundOverlayType,I=i.backgroundOverlayColor,j=i.backgroundOverlayImageURL,F=i.backgroundOverlayAttachment,G=i.backgroundOverlayPosition,V=i.backgroundOverlayRepeat,D=i.backgroundOverlaySize,W=i.backgroundOverlayGradientFirstColor,q=i.backgroundOverlayGradientFirstLocation,Z=i.backgroundOverlayGradientSecondColor,U=i.backgroundOverlayGradientSecondLocation,Q=i.backgroundOverlayGradientType,K=i.backgroundOverlayGradientAngle,J=i.backgroundOverlayGradientPosition,Y=i.backgroundOverlayFilterBlur,X=i.backgroundOverlayFilterBrightness,$=i.backgroundOverlayFilterContrast,ee=i.backgroundOverlayFilterGrayscale,te=i.backgroundOverlayFilterHue,ne=i.backgroundOverlayFilterSaturate,ae=i.backgroundOverlayBlend,le=i.borderType,oe=i.border,re=i.borderTop,ie=i.borderRight,ce=i.borderBottom,de=i.borderLeft,pe=i.borderColor,me=i.borderRadiusType,se=i.borderRadius,ue=i.borderRadiusTop,be=i.borderRadiusRight,ge=i.borderRadiusBottom,he=i.borderRadiusLeft,fe=i.boxShadow,ye=i.boxShadowColor,we=i.boxShadowColorOpacity,ve=i.boxShadowBlur,ke=i.boxShadowSpread,Te=i.boxShadowHorizontal,Ee=i.boxShadowVertical,xe=i.dividerTopType,Ce=i.dividerTopColor,Se=i.dividerTopInvert,Be=i.dividerBottomType,Me=i.dividerBottomColor,Oe=i.dividerBottomInvert,Re=i.hide,Ne=i.hideTablet,Le=i.hideMobile,ze=i.columnsHTMLTag;("color"===T&&(t={background:E}),"image"===T&&(t={backgroundImage:"url( '".concat(x,"' )"),backgroundAttachment:C,backgroundPosition:S,backgroundRepeat:B,backgroundSize:M}),"gradient"===T)&&(r="linear"===z?"".concat(H,"deg"):"at ".concat(A),t={background:"".concat(z,"-gradient( ").concat(r,", ").concat(O||"rgba( 0, 0, 0, 0 )"," ").concat(R,"%, ").concat(N||"rgba( 0, 0, 0, 0 )"," ").concat(L,"% )")});"linked"===le&&(a={borderWidth:"".concat(oe,"px"),borderStyle:"solid",borderColor:pe}),"unlinked"===le&&(a={borderTopWidth:"".concat(re,"px"),borderRightWidth:"".concat(ie,"px"),borderBottomWidth:"".concat(ce,"px"),borderLeftWidth:"".concat(de,"px"),borderStyle:"solid",borderColor:pe}),"linked"===me&&(l={borderRadius:"".concat(se,"px")}),"unlinked"===me&&(l={borderTopLeftRadius:"".concat(ue,"px"),borderTopRightRadius:"".concat(be,"px"),borderBottomRightRadius:"".concat(ge,"px"),borderBottomLeftRadius:"".concat(he,"px")}),!0===fe&&(o={boxShadow:"".concat(Te,"px ").concat(Ee,"px ").concat(ve,"px ").concat(ke,"px ").concat(p()(ye||"#000000",we))});var He,Ae=s({},t,{},a,{},l,{},o,{justifyContent:v});("color"===P&&(n={background:I,opacity:_/100}),"image"===P&&(n={backgroundImage:"url( '".concat(j,"' )"),backgroundAttachment:F,backgroundPosition:G,backgroundRepeat:V,backgroundSize:D,opacity:_/100}),"gradient"===P)&&(He="linear"===Q?"".concat(K,"deg"):"at ".concat(J),n={background:"".concat(Q,"-gradient( ").concat(He,", ").concat(W||"rgba( 0, 0, 0, 0 )"," ").concat(q,"%, ").concat(Z||"rgba( 0, 0, 0, 0 )"," ").concat(U,"% )"),opacity:_/100});var _e=s({},n,{mixBlendMode:ae,filter:"blur( ".concat(Y/10,"px ) brightness( ").concat(X/10," ) contrast( ").concat(#x2F;10," ) grayscale( ").concat(ee/100," ) hue-rotate( ").concat(te,"deg ) saturate( ").concat(ne/10," )")}),Pe={};w&&(Pe={maxWidth:w+"px"});var Ie=Re?"":"has-desktop-".concat(u,"-layout"),je=Ne?"":"has-tablet-".concat(g,"-layout"),Fe=Le?"":"has-mobile-".concat(h,"-layout"),Ge=c()(e.className,"has-".concat(m,"-columns"),Ie,je,Fe,{"hide-in-desktop":Re},{"hide-in-tablet":Ne},{"hide-in-mobile":Le},"has-".concat(f,"-gap"),"has-vertical-".concat(k));return wp.element.createElement(ze,{className:Ge,id:d,style:Ae},wp.element.createElement("div",{className:"wp-themeisle-block-overlay",style:_e}),wp.element.createElement(y,{type:"top",front:!0,style:xe,fill:Ce,invert:Se}),wp.element.createElement("div",{className:"innerblocks-wrap",style:Pe},wp.element.createElement(b.Content,null)),wp.element.createElement(y,{type:"bottom",front:!0,style:Be,fill:Me,invert:Oe}))}},{attributes:{id:{type:"string"},columns:{type:"number"},layout:{type:"string"},layoutTablet:{type:"string",default:"equal"},layoutMobile:{type:"string",default:"equal"},columnsGap:{type:"string",default:"default"},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:20},paddingTablet:{type:"number",default:20},paddingMobile:{type:"number",default:20},paddingTop:{type:"number",default:20},paddingTopTablet:{type:"number",default:20},paddingTopMobile:{type:"number",default:20},paddingRight:{type:"number",default:20},paddingRightTablet:{type:"number",default:20},paddingRightMobile:{type:"number",default:20},paddingBottom:{type:"number",default:20},paddingBottomTablet:{type:"number",default:20},paddingBottomMobile:{type:"number",default:20},paddingLeft:{type:"number",default:20},paddingLeftTablet:{type:"number",default:20},paddingLeftMobile:{type:"number",default:20},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:20},marginTablet:{type:"number",default:20},marginMobile:{type:"number",default:20},marginTop:{type:"number",default:20},marginTopTablet:{type:"number",default:20},marginTopMobile:{type:"number",default:20},marginBottom:{type:"number",default:20},marginBottomTablet:{type:"number",default:20},marginBottomMobile:{type:"number",default:20},columnsWidth:{type:"number"},horizontalAlign:{type:"string",default:"unset"},columnsHeight:{type:"string",default:"auto"},columnsHeightCustom:{type:"number"},columnsHeightCustomTablet:{type:"number"},columnsHeightCustomMobile:{type:"number"},verticalAlign:{type:"string",default:"unset"},backgroundType:{type:"string",default:"color"},backgroundColor:{type:"string"},backgroundImageID:{type:"number"},backgroundImageURL:{type:"string"},backgroundAttachment:{type:"string",default:"scroll"},backgroundPosition:{type:"string",default:"top left"},backgroundRepeat:{type:"string",default:"repeat"},backgroundSize:{type:"string",default:"auto"},backgroundGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundGradientFirstLocation:{type:"number",default:0},backgroundGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundGradientSecondLocation:{type:"number",default:100},backgroundGradientType:{type:"string",default:"linear"},backgroundGradientAngle:{type:"number",default:90},backgroundGradientPosition:{type:"string",default:"center center"},backgroundOverlayOpacity:{type:"number",default:50},backgroundOverlayType:{type:"string",default:"color"},backgroundOverlayColor:{type:"string"},backgroundOverlayImageID:{type:"number"},backgroundOverlayImageURL:{type:"string"},backgroundOverlayAttachment:{type:"string",default:"scroll"},backgroundOverlayPosition:{type:"string",default:"top left"},backgroundOverlayRepeat:{type:"string",default:"repeat"},backgroundOverlaySize:{type:"string",default:"auto"},backgroundOverlayGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundOverlayGradientFirstLocation:{type:"number",default:0},backgroundOverlayGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundOverlayGradientSecondLocation:{type:"number",default:100},backgroundOverlayGradientType:{type:"string",default:"linear"},backgroundOverlayGradientAngle:{type:"number",default:90},backgroundOverlayGradientPosition:{type:"string",default:"center center"},backgroundOverlayFilterBlur:{type:"number",default:0},backgroundOverlayFilterBrightness:{type:"number",default:10},backgroundOverlayFilterContrast:{type:"number",default:10},backgroundOverlayFilterGrayscale:{type:"number",default:0},backgroundOverlayFilterHue:{type:"number",default:0},backgroundOverlayFilterSaturate:{type:"number",default:10},backgroundOverlayBlend:{type:"string",default:"normal"},borderType:{type:"string",default:"linked"},border:{type:"number",default:0},borderTop:{type:"number",default:0},borderRight:{type:"number",default:0},borderBottom:{type:"number",default:0},borderLeft:{type:"number",default:0},borderColor:{type:"string",default:"#000000"},borderRadiusType:{type:"string",default:"linked"},borderRadius:{type:"number",default:0},borderRadiusTop:{type:"number",default:0},borderRadiusRight:{type:"number",default:0},borderRadiusBottom:{type:"number",default:0},borderRadiusLeft:{type:"number",default:0},boxShadow:{type:"boolean",default:!1},boxShadowColor:{type:"string",default:"#000000"},boxShadowColorOpacity:{type:"number",default:50},boxShadowBlur:{type:"number",default:5},boxShadowSpread:{type:"number",default:0},boxShadowHorizontal:{type:"number",default:0},boxShadowVertical:{type:"number",default:0},dividerTopType:{type:"string",default:"none"},dividerTopColor:{type:"string",default:"#000000"},dividerTopWidth:{type:"number",default:100},dividerTopWidthTablet:{type:"number",default:100},dividerTopWidthMobile:{type:"number",default:100},dividerTopHeight:{type:"number",default:100},dividerTopHeightTablet:{type:"number",default:100},dividerTopHeightMobile:{type:"number",default:100},dividerTopInvert:{type:"boolean",default:!1},dividerBottomType:{type:"string",default:"none"},dividerBottomColor:{type:"string",default:"#000000"},dividerBottomWidth:{type:"number",default:100},dividerBottomWidthTablet:{type:"number",default:100},dividerBottomWidthMobile:{type:"number",default:100},dividerBottomHeight:{type:"number",default:100},dividerBottomHeightTablet:{type:"number",default:100},dividerBottomHeightMobile:{type:"number",default:100},dividerBottomInvert:{type:"boolean",default:!1},hide:{type:"boolean",default:!1},hideTablet:{type:"boolean",default:!1},hideMobile:{type:"boolean",default:!1},columnsHTMLTag:{type:"string",default:"div"}},supports:{align:["wide","full"],html:!1},save:function(e){var t,n,a,l,o,r,i=e.attributes,d=e.className,m=i.columnsHTMLTag;("color"===i.backgroundType&&(t={background:i.backgroundColor}),"image"===i.backgroundType&&(t={backgroundImage:"url( '".concat(i.backgroundImageURL,"' )"),backgroundAttachment:i.backgroundAttachment,backgroundPosition:i.backgroundPosition,backgroundRepeat:i.backgroundRepeat,backgroundSize:i.backgroundSize}),"gradient"===i.backgroundType)&&(r="linear"===i.backgroundGradientType?"".concat(i.backgroundGradientAngle,"deg"):"at ".concat(i.backgroundGradientPosition),t={background:"".concat(i.backgroundGradientType,"-gradient( ").concat(r,", ").concat(i.backgroundGradientFirstColor||"rgba( 0, 0, 0, 0 )"," ").concat(i.backgroundGradientFirstLocation,"%, ").concat(i.backgroundGradientSecondColor||"rgba( 0, 0, 0, 0 )"," ").concat(i.backgroundGradientSecondLocation,"% )")});"linked"===i.borderType&&(a={borderWidth:"".concat(i.border,"px"),borderStyle:"solid",borderColor:i.borderColor}),"unlinked"===i.borderType&&(a={borderTopWidth:"".concat(i.borderTop,"px"),borderRightWidth:"".concat(i.borderRight,"px"),borderBottomWidth:"".concat(i.borderBottom,"px"),borderLeftWidth:"".concat(i.borderLeft,"px"),borderStyle:"solid",borderColor:i.borderColor}),"linked"===i.borderRadiusType&&(l={borderRadius:"".concat(i.borderRadius,"px")}),"unlinked"===i.borderRadiusType&&(l={borderTopLeftRadius:"".concat(i.borderRadiusTop,"px"),borderTopRightRadius:"".concat(i.borderRadiusRight,"px"),borderBottomRightRadius:"".concat(i.borderRadiusBottom,"px"),borderBottomLeftRadius:"".concat(i.borderRadiusLeft,"px")}),!0===i.boxShadow&&(o={boxShadow:"".concat(i.boxShadowHorizontal,"px ").concat(i.boxShadowVertical,"px ").concat(i.boxShadowBlur,"px ").concat(i.boxShadowSpread,"px ").concat(p()(i.boxShadowColor?i.boxShadowColor:"#000000",i.boxShadowColorOpacity))});var u,g=s({},t,{},a,{},l,{},o,{justifyContent:i.horizontalAlign});("color"===i.backgroundOverlayType&&(n={background:i.backgroundOverlayColor,opacity:i.backgroundOverlayOpacity/100}),"image"===i.backgroundOverlayType&&(n={backgroundImage:"url( '".concat(i.backgroundOverlayImageURL,"' )"),backgroundAttachment:i.backgroundOverlayAttachment,backgroundPosition:i.backgroundOverlayPosition,backgroundRepeat:i.backgroundOverlayRepeat,backgroundSize:i.backgroundOverlaySize,opacity:i.backgroundOverlayOpacity/100}),"gradient"===i.backgroundOverlayType)&&(u="linear"===i.backgroundOverlayGradientType?"".concat(i.backgroundOverlayGradientAngle,"deg"):"at ".concat(i.backgroundOverlayGradientPosition),n={background:"".concat(i.backgroundOverlayGradientType,"-gradient( ").concat(u,", ").concat(i.backgroundOverlayGradientFirstColor||"rgba( 0, 0, 0, 0 )"," ").concat(i.backgroundOverlayGradientFirstLocation,"%, ").concat(i.backgroundOverlayGradientSecondColor||"rgba( 0, 0, 0, 0 )"," ").concat(i.backgroundOverlayGradientSecondLocation,"% )"),opacity:i.backgroundOverlayOpacity/100});var h=s({},n,{mixBlendMode:i.backgroundOverlayBlend}),f={};i.columnsWidth&&(f={maxWidth:i.columnsWidth+"px"});var w=i.hide?"":"has-desktop-".concat(i.layout,"-layout"),v=i.hideTablet?"":"has-tablet-".concat(i.layoutTablet,"-layout"),k=i.hideMobile?"":"has-mobile-".concat(i.layoutMobile,"-layout"),T=c()(d,"has-".concat(i.columns,"-columns"),w,v,k,{"hide-in-desktop":i.hide},{"hide-in-tablet":i.hideTablet},{"hide-in-mobile":i.hideMobile},"has-".concat(i.columnsGap,"-gap"),"has-vertical-".concat(i.verticalAlign));return wp.element.createElement(m,{className:T,id:i.id,style:g},wp.element.createElement("div",{className:"wp-themeisle-block-overlay",style:h}),wp.element.createElement(y,{type:"top",front:!0,style:i.dividerTopType,fill:i.dividerTopColor,invert:i.dividerTopInvert}),wp.element.createElement("div",{className:"innerblocks-wrap",style:f},wp.element.createElement(b.Content,null)),wp.element.createElement(y,{type:"bottom",front:!0,style:i.dividerBottomType,fill:i.dividerBottomColor,invert:i.dividerBottomInvert}))}}],v=n(5),k=n(17),T=n(25),E=n(3),x=n(4),C=n(14),S=n(18),B=n(8),M=n(20);function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var N=wp.i18n.__,L=wp.components,z=L.BaseControl,H=L.Button,A=L.ButtonGroup,_=L.Dashicon,P=L.Icon,I=L.IconButton,j=L.PanelBody,F=L.Tooltip,G=L.ToggleControl,V=L.RangeControl,D=L.SelectControl,W=wp.blockEditor,q=W.ColorPalette,Z=W.InspectorControls,U=W.MediaPlaceholder,Q=wp.element,K=Q.Fragment,J=Q.useState,Y=function(e){var t=e.attributes,n=e.setAttributes,a=e.updateColumnsWidth,o=e.dividerViewType,r=e.setDividerViewType,i=R(J("layout"),2),d=i[0],p=i[1],m=R(J("desktop"),2),s=m[0],u=m[1],b=R(J("desktop"),2),g=b[0],h=b[1],f=R(J("desktop"),2),y=f[0],w=f[1],v=R(J("desktop"),2),k=v[0],L=v[1],W=R(J("desktop"),2),Q=W[0],Y=W[1],X=R(J("desktop"),2),$=X[0],ee=X[1],te=function(){var e;return"desktop"===g&&(e=t.paddingType),"tablet"===g&&(e=t.paddingTypeTablet),"mobile"===g&&(e=t.paddingTypeMobile),e};te=te();var ne={top:"paddingTop",right:"paddingRight",bottom:"paddingBottom",left:"paddingLeft"},ae={top:"paddingTopTablet",right:"paddingRightTablet",bottom:"paddingBottomTablet",left:"paddingLeftTablet"},le={top:"paddingTopMobile",right:"paddingRightMobile",bottom:"paddingBottomMobile",left:"paddingLeftMobile"},oe=function(e){var n;return"top"==e&&("desktop"===g&&(n="linked"===t.paddingType?t.padding:t.paddingTop),"tablet"===g&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingTopTablet),"mobile"===g&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingTopMobile)),"right"==e&&("desktop"===g&&(n="linked"===t.paddingType?t.padding:t.paddingRight),"tablet"===g&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingRightTablet),"mobile"===g&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingRightMobile)),"bottom"==e&&("desktop"===g&&(n="linked"===t.paddingType?t.padding:t.paddingBottom),"tablet"===g&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingBottomTablet),"mobile"===g&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingBottomMobile)),"left"==e&&("desktop"===g&&(n="linked"===t.paddingType?t.padding:t.paddingLeft),"tablet"===g&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingLeftTablet),"mobile"===g&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingLeftMobile)),n},re=function(){var e;return"desktop"===y&&(e=t.marginType),"tablet"===y&&(e=t.marginTypeTablet),"mobile"===y&&(e=t.marginTypeMobile),e};re=re();var ie={top:"marginTop",bottom:"marginBottom"},ce={top:"marginTopTablet",bottom:"marginBottomTablet"},de={top:"marginTopMobile",bottom:"marginBottomMobile"},pe=function(e){var n;return"top"==e&&("desktop"===y&&(n="linked"===t.marginType?t.margin:t.marginTop),"tablet"===y&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginTopTablet),"mobile"===y&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginTopMobile)),"bottom"==e&&("desktop"===y&&(n="linked"===t.marginType?t.margin:t.marginBottom),"tablet"===y&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginBottomTablet),"mobile"===y&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginBottomMobile)),n},me=function(e){if(t.horizontalAlign===e)return n({horizontalAlign:"unset"});n({horizontalAlign:e})},se=function(){var e;return"desktop"===k&&(e=t.columnsHeightCustom),"tablet"===k&&(e=t.columnsHeightCustomTablet),"mobile"===k&&(e=t.columnsHeightCustomMobile),e};se=se();var ue=function(e){if(t.verticalAlign===e)return n({verticalAlign:"unset"});n({verticalAlign:e})},be=function(){n({backgroundImageID:"",backgroundImageURL:""})},ge=function(){n({backgroundOverlayImageID:"",backgroundOverlayImageURL:""})},he={top:"borderTop",right:"borderRight",bottom:"borderBottom",left:"borderLeft"},fe=function(e){var n;return"top"==e&&(n="linked"===t.borderType?t.border:t.borderTop),"right"==e&&(n="linked"===t.borderType?t.border:t.borderRight),"bottom"==e&&(n="linked"===t.borderType?t.border:t.borderBottom),"left"==e&&(n="linked"===t.borderType?t.border:t.borderLeft),n},ye={top:"borderRadiusTop",right:"borderRadiusRight",bottom:"borderRadiusBottom",left:"borderRadiusLeft"},we=function(e){var n;return"top"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusTop),"right"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusRight),"bottom"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusBottom),"left"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusLeft),n},ve=function(){var e;return"top"==o&&(e=t.dividerTopType),"bottom"==o&&(e=t.dividerBottomType),e};ve=ve();var ke=function(){var e;return"top"==o&&(e=t.dividerTopColor),"bottom"==o&&(e=t.dividerBottomColor),e};ke=ke();var Te=function(){var e;return"top"==o&&("desktop"==Q&&(e=t.dividerTopWidth),"tablet"==Q&&(e=t.dividerTopWidthTablet),"mobile"==Q&&(e=t.dividerTopWidthMobile)),"bottom"==o&&("desktop"==Q&&(e=t.dividerBottomWidth),"tablet"==Q&&(e=t.dividerBottomWidthTablet),"mobile"==Q&&(e=t.dividerBottomWidthMobile)),e};Te=Te();var Ee=function(){var e;return"top"==o&&("desktop"==amp;&(e=t.dividerTopHeight),"tablet"==amp;&(e=t.dividerTopHeightTablet),"mobile"==amp;&(e=t.dividerTopHeightMobile)),"bottom"==o&&("desktop"==amp;&(e=t.dividerBottomHeight),"tablet"==amp;&(e=t.dividerBottomHeightTablet),"mobile"==amp;&(e=t.dividerBottomHeightMobile)),e};Ee=Ee();var xe=function(){var e;return"top"==o&&(e=t.dividerTopInvert),"bottom"==o&&(e=t.dividerBottomInvert),e};xe=xe();var Ce=function(e,t){"desktop"===t&&n({hide:e}),"tablet"===t&&n({hideTablet:e}),"mobile"===t&&n({hideMobile:e})},Se=function(e,t){"tablet"===t&&n({reverseColumnsTablet:e}),"mobile"===t&&n({reverseColumnsMobile:e})};return wp.element.createElement(K,null,wp.element.createElement(Z,null,wp.element.createElement(j,{className:"wp-block-themeisle-blocks-advanced-columns-header-panel"},wp.element.createElement(H,{className:c()("header-tab",{"is-selected":"layout"===d}),onClick:function(){return p("layout")}},wp.element.createElement("span",null,wp.element.createElement(_,{icon:"editor-table"}),N("Layout"))),wp.element.createElement(H,{className:c()("header-tab",{"is-selected":"style"===d}),onClick:function(){return p("style")}},wp.element.createElement("span",null,wp.element.createElement(_,{icon:"admin-customizer"}),N("Style"))),wp.element.createElement(H,{className:c()("header-tab",{"is-selected":"advanced"===d}),onClick:function(){return p("advanced")}},wp.element.createElement("span",null,wp.element.createElement(_,{icon:"admin-generic"}),N("Advanced")))),"layout"===d&&wp.element.createElement(K,null,wp.element.createElement(j,{title:N("Columns & Layout")},wp.element.createElement(V,{label:N("Columns"),value:t.columns,onChange:function(e){6>=e&&(n({columns:e,layout:"equal",layoutTablet:"equal",layoutMobile:"collapsedRows"}),a(e,"equal")),6<e&&(n({columns:6,layout:"equal",layoutTablet:"equal",layoutMobile:"collapsedRows"}),a(6,"equal")),1>=e&&(n({columns:1,layout:"equal",layoutTablet:"equal",layoutMobile:"equal"}),a(1,"equal"))},min:1,max:6}),wp.element.createElement(T.default,{label:N("Layout"),columns:t.columns,layout:t.layout,layoutTablet:t.layoutTablet,layoutMobile:t.layoutMobile,view:s,changeViewType:u,onClick:function(e){"desktop"===s&&(n({layout:e}),a(t.columns,e)),"tablet"===s&&n({layoutTablet:e}),"mobile"===s&&n({layoutMobile:e})}}),wp.element.createElement(D,{label:N("Columns Gap"),value:t.columnsGap,options:[{label:"Default (10px)",value:"default"},{label:"No Gap",value:"nogap"},{label:"Narrow (5px)",value:"narrow"},{label:"Extended (15px)",value:"extended"},{label:"Wide (20px)",value:"wide"},{label:"Wider (30px)",value:"wider"}],onChange:function(e){n({columnsGap:e})}})),wp.element.createElement(j,{title:N("Spacing"),initialOpen:!1},wp.element.createElement(x.a,{label:"Padding",view:g,changeViewType:h},wp.element.createElement(E.a,{type:te,min:0,max:500,changeType:function(e){"desktop"===g&&n({paddingType:e}),"tablet"===g&&n({paddingTypeTablet:e}),"mobile"===g&&n({paddingTypeMobile:e})},onChange:function(e,a){"desktop"===g&&("linked"===t.paddingType?n({padding:a}):n(O({},ne[e],a))),"tablet"===g&&("linked"===t.paddingTypeTablet?n({paddingTablet:a}):n(O({},ae[e],a))),"mobile"===g&&("linked"===t.paddingTypeMobile?n({paddingMobile:a}):n(O({},le[e],a)))},options:[{label:N("Top"),type:"top",value:oe("top")},{label:N("Right"),type:"right",value:oe("right")},{label:N("Bottom"),type:"bottom",value:oe("bottom")},{label:N("Left"),type:"left",value:oe("left")}]})),wp.element.createElement(x.a,{label:"Margin",view:y,changeViewType:w},wp.element.createElement(E.a,{type:re,min:-500,max:500,changeType:function(e){"desktop"===y&&n({marginType:e}),"tablet"===y&&n({marginTypeTablet:e}),"mobile"===y&&n({marginTypeMobile:e})},onChange:function(e,a){"desktop"===y&&("linked"===t.marginType?n({margin:a}):n(O({},ie[e],a))),"tablet"===y&&("linked"===t.marginTypeTablet?n({marginTablet:a}):n(O({},ce[e],a))),"mobile"===y&&("linked"===t.marginTypeMobile?n({marginMobile:a}):n(O({},de[e],a)))},options:[{label:N("Top"),type:"top",value:pe("top")},{label:N("Right"),disabled:!0},{label:N("Bottom"),type:"bottom",value:pe("bottom")},{label:N("Left"),disabled:!0}]}))),wp.element.createElement(j,{title:N("Section Structure"),initialOpen:!1},wp.element.createElement(V,{label:N("Maximum Content Width"),value:t.columnsWidth||"",onChange:function(e){(0<=e&&1200>=e||void 0===e)&&n({columnsWidth:e})},min:0,max:1200}),t.columnsWidth&&wp.element.createElement(z,{label:"Horizontal Align"},wp.element.createElement(A,{className:"icon-buttom-group"},wp.element.createElement(F,{text:N("Left")},wp.element.createElement(I,{icon:"editor-alignleft",className:"is-button is-large",isPrimary:"flex-start"===t.horizontalAlign,onClick:function(){return me("flex-start")}})),wp.element.createElement(F,{text:N("Center")},wp.element.createElement(I,{icon:"editor-aligncenter",className:"is-button is-large",isPrimary:"center"===t.horizontalAlign,onClick:function(){return me("center")}})),wp.element.createElement(F,{text:N("Right")},wp.element.createElement(I,{icon:"editor-alignright",className:"is-button is-large",isPrimary:"flex-end"===t.horizontalAlign,onClick:function(){return me("flex-end")}})))),wp.element.createElement(D,{label:N("Minimum Height"),value:t.columnsHeight,options:[{label:"Default",value:"auto"},{label:"Fit to Screen",value:"100vh"},{label:"Custom",value:"custom"}],onChange:function(e){n({columnsHeight:e})}}),"custom"===t.columnsHeight&&wp.element.createElement(x.a,{label:"Custom Height",view:k,changeViewType:L},wp.element.createElement(V,{value:se||"",onChange:function(e){"desktop"===k&&n({columnsHeightCustom:e}),"tablet"===k&&n({columnsHeightCustomTablet:e}),"mobile"===k&&n({columnsHeightCustomMobile:e})},min:0,max:1e3})),wp.element.createElement(z,{label:"Vertical Align"},wp.element.createElement(A,{className:"icon-buttom-group"},wp.element.createElement(F,{text:N("Top")},wp.element.createElement(H,{className:"components-icon-button is-button is-large",isPrimary:"flex-start"===t.verticalAlign,onClick:function(){return ue("flex-start")}},wp.element.createElement(P,{icon:l.s,size:20}))),wp.element.createElement(F,{text:N("Middle")},wp.element.createElement(H,{className:"components-icon-button is-button is-large",isPrimary:"center"===t.verticalAlign,onClick:function(){return ue("center")}},wp.element.createElement(P,{icon:l.j,size:20}))),wp.element.createElement(F,{text:N("Bottom")},wp.element.createElement(H,{className:"components-icon-button is-button is-large",isPrimary:"flex-end"===t.verticalAlign,onClick:function(){return ue("flex-end")}},wp.element.createElement(P,{icon:l.c,size:20})))))))||"style"===d&&wp.element.createElement(K,null,wp.element.createElement(j,{title:N("Background Settings"),className:"wp-block-themeisle-image-container"},wp.element.createElement(C.default,{label:N("Background Type"),backgroundType:t.backgroundType,changeBackgroundType:function(e){n({backgroundType:e})}}),"color"===t.backgroundType&&wp.element.createElement(K,null,wp.element.createElement("p",null,N("Background Color")),wp.element.createElement(q,{label:"Background Color",value:t.backgroundColor,onChange:function(e){n({backgroundColor:e})}}))||"image"===t.backgroundType&&(t.backgroundImageURL?wp.element.createElement(K,null,wp.element.createElement("div",{className:"image-body"},wp.element.createElement("div",{className:"image-container"},wp.element.createElement("div",{className:"image-holder",style:{backgroundImage:"url('".concat(t.backgroundImageURL,"')")}}),wp.element.createElement("div",{className:"image-delete",onClick:be},wp.element.createElement(_,{icon:"trash"}),wp.element.createElement("span",null,N("Remove Image"))))),wp.element.createElement(H,{isDefault:!0,className:"image-delete-button",onClick:be},N("Change or Remove Image")),wp.element.createElement(B.a,{label:"Background Settings"},wp.element.createElement(D,{label:N("Background Attachment"),value:t.backgroundAttachment,options:[{label:"Scroll",value:"scroll"},{label:"Fixed",value:"fixed"},{label:"Local",value:"local"}],onChange:function(e){n({backgroundAttachment:e})}}),wp.element.createElement(D,{label:N("Background Position"),value:t.backgroundPosition,options:[{label:"Default",value:"top left"},{label:"Top Left",value:"top left"},{label:"Top Center",value:"top center"},{label:"Top Right",value:"top right"},{label:"Center Left",value:"center left"},{label:"Center Center",value:"center center"},{label:"Center Right",value:"center right"},{label:"Bottom Left",value:"bottom left"},{label:"Bottom Center",value:"bottom center"},{label:"Bottom Right",value:"bottom right"}],onChange:function(e){n({backgroundPosition:e})}}),wp.element.createElement(D,{label:N("Background Repeat"),value:t.backgroundRepeat,options:[{label:"Repeat",value:"repeat"},{label:"No-repeat",value:"no-repeat"}],onChange:function(e){n({backgroundRepeat:e})}}),wp.element.createElement(D,{label:N("Background Size"),value:t.backgroundSize,options:[{label:"Auto",value:"auto"},{label:"Cover",value:"cover"},{label:"Contain",value:"contain"}],onChange:function(e){n({backgroundSize:e})}}))):wp.element.createElement(U,{icon:"format-image",labels:{title:N("Background Image"),name:N("an image")},value:t.backgroundImageID,onSelect:function(e){n({backgroundImageID:e.id,backgroundImageURL:e.url})},accept:"image/*",allowedTypes:["image"]}))||"gradient"===t.backgroundType&&wp.element.createElement(S.a,{label:"Background Gradient",value:{firstColor:t.backgroundGradientFirstColor,firstLocation:t.backgroundGradientFirstLocation,secondColor:t.backgroundGradientSecondColor,secondLocation:t.backgroundGradientSecondLocation,type:t.backgroundGradientType,angle:t.backgroundGradientAngle,position:t.backgroundGradientPosition},onChange:function(e,t,a,l,o,r,i){n({backgroundGradientFirstColor:e,backgroundGradientFirstLocation:t,backgroundGradientSecondColor:a,backgroundGradientSecondLocation:l,backgroundGradientType:o,backgroundGradientAngle:r,backgroundGradientPosition:i})}})),wp.element.createElement(j,{title:N("Background Overlay"),className:"wp-block-themeisle-image-container",initialOpen:!1},wp.element.createElement(C.default,{label:N("Overlay Type"),backgroundType:t.backgroundOverlayType,changeBackgroundType:function(e){n({backgroundOverlayType:e})}}),wp.element.createElement(V,{label:N("Overlay Opacity"),value:t.backgroundOverlayOpacity,onChange:function(e){n({backgroundOverlayOpacity:e})},min:0,max:100}),"color"===t.backgroundOverlayType&&wp.element.createElement(K,null,wp.element.createElement("p",null,N("Overlay Color")),wp.element.createElement(q,{label:"Overlay Color",value:t.backgroundOverlayColor,onChange:function(e){n({backgroundOverlayColor:e})}}))||"image"===t.backgroundOverlayType&&(t.backgroundOverlayImageURL?wp.element.createElement(K,null,wp.element.createElement("div",{className:"image-body"},wp.element.createElement("div",{className:"image-container"},wp.element.createElement("div",{className:"image-holder",style:{backgroundImage:"url('".concat(t.backgroundOverlayImageURL,"')")}}),wp.element.createElement("div",{className:"image-delete",onClick:ge},wp.element.createElement(_,{icon:"trash"}),wp.element.createElement("span",null,N("Remove Image"))))),wp.element.createElement(H,{isDefault:!0,className:"image-delete-button",onClick:ge},N("Change or Remove Image")),wp.element.createElement(B.a,{label:"Background Settings"},wp.element.createElement(D,{label:N("Background Attachment"),value:t.backgroundOverlayAttachment,options:[{label:"Scroll",value:"scroll"},{label:"Fixed",value:"fixed"},{label:"Local",value:"local"}],onChange:function(e){n({backgroundOverlayAttachment:e})}}),wp.element.createElement(D,{label:N("Background Position"),value:t.backgroundOverlayPosition,options:[{label:"Default",value:"top left"},{label:"Top Left",value:"top left"},{label:"Top Center",value:"top center"},{label:"Top Right",value:"top right"},{label:"Center Left",value:"center left"},{label:"Center Center",value:"center center"},{label:"Center Right",value:"center right"},{label:"Bottom Left",value:"bottom left"},{label:"Bottom Center",value:"bottom center"},{label:"Bottom Right",value:"bottom right"}],onChange:function(e){n({backgroundOverlayPosition:e})}}),wp.element.createElement(D,{label:N("Background Repeat"),value:t.backgroundOverlayRepeat,options:[{label:"Repeat",value:"repeat"},{label:"No-repeat",value:"no-repeat"}],onChange:function(e){n({backgroundOverlayRepeat:e})}}),wp.element.createElement(D,{label:N("Background Size"),value:t.backgroundOverlaySize,options:[{label:"Auto",value:"auto"},{label:"Cover",value:"cover"},{label:"Contain",value:"contain"}],onChange:function(e){n({backgroundOverlaySize:e})}}))):wp.element.createElement(U,{icon:"format-image",labels:{title:N("Background Image"),name:N("an image")},value:t.backgroundOverlayImageID,onSelect:function(e){n({backgroundOverlayImageID:e.id,backgroundOverlayImageURL:e.url})},accept:"image/*",allowedTypes:["image"]}))||"gradient"===t.backgroundOverlayType&&wp.element.createElement(S.a,{label:"Background Gradient",value:{firstColor:t.backgroundOverlayGradientFirstColor,firstLocation:t.backgroundOverlayGradientFirstLocation,secondColor:t.backgroundOverlayGradientSecondColor,secondLocation:t.backgroundOverlayGradientSecondLocation,type:t.backgroundOverlayGradientType,angle:t.backgroundOverlayGradientAngle,position:t.backgroundOverlayGradientPosition},onChange:function(e,t,a,l,o,r,i){n({backgroundOverlayGradientFirstColor:e,backgroundOverlayGradientFirstLocation:t,backgroundOverlayGradientSecondColor:a,backgroundOverlayGradientSecondLocation:l,backgroundOverlayGradientType:o,backgroundOverlayGradientAngle:r,backgroundOverlayGradientPosition:i})}}),wp.element.createElement(B.a,{label:"CSS Filters"},wp.element.createElement(V,{label:N("Blur"),value:t.backgroundOverlayFilterBlur,onChange:function(e){n({backgroundOverlayFilterBlur:e})},min:0,max:100}),wp.element.createElement(V,{label:N("Brightness"),value:t.backgroundOverlayFilterBrightness,onChange:function(e){n({backgroundOverlayFilterBrightness:e})},min:0,max:100}),wp.element.createElement(V,{label:N("Contrast"),value:t.backgroundOverlayFilterContrast,onChange:function(e){n({backgroundOverlayFilterContrast:e})},min:0,max:100}),wp.element.createElement(V,{label:N("Grayscale"),value:t.backgroundOverlayFilterGrayscale,onChange:function(e){n({backgroundOverlayFilterGrayscale:e})},min:0,max:100}),wp.element.createElement(V,{label:N("Hue"),value:t.backgroundOverlayFilterHue,onChange:function(e){n({backgroundOverlayFilterHue:e})},min:0,max:360}),wp.element.createElement(V,{label:N("Saturation"),value:t.backgroundOverlayFilterSaturate,onChange:function(e){n({backgroundOverlayFilterSaturate:e})},min:0,max:100})),wp.element.createElement(D,{label:N("Blend Mode"),value:t.backgroundOverlayBlend,options:[{label:"Normal",value:"normal"},{label:"Multiply",value:"multiply"},{label:"Screen",value:"screen"},{label:"Overlay",value:"overlay"},{label:"Darken",value:"darken"},{label:"Lighten",value:"lighten"},{label:"Color Dodge",value:"color-dodge"},{label:"Color Burn",value:"color-burn"},{label:"Hard Light",value:"hard-light"},{label:"Soft Light",value:"soft-light"},{label:"Difference",value:"difference"},{label:"Exclusion",value:"exclusion"},{label:"Hue",value:"hue"},{label:"Saturation",value:"saturation"},{label:"Color",value:"color"},{label:"Luminosity",value:"luminosity"}],onChange:function(e){n({backgroundOverlayBlend:e})}})),wp.element.createElement(j,{title:N("Border"),className:"wp-block-themeisle-border-container",initialOpen:!1},wp.element.createElement(E.a,{label:N("Border Width"),type:t.borderType,min:0,max:500,changeType:function(e){n({borderType:e})},onChange:function(e,a){"linked"===t.borderType?n({border:a}):n(O({},he[e],a))},options:[{label:N("Top"),type:"top",value:fe("top")},{label:N("Right"),type:"right",value:fe("right")},{label:N("Bottom"),type:"bottom",value:fe("bottom")},{label:N("Left"),type:"left",value:fe("left")}]}),wp.element.createElement(K,null,wp.element.createElement("p",null,N("Border Color")),wp.element.createElement(q,{label:"Border Color",value:t.borderColor,onChange:function(e){n({borderColor:e})}})),wp.element.createElement(E.a,{label:N("Border Radius"),type:t.borderRadiusType,min:0,max:500,changeType:function(e){n({borderRadiusType:e})},onChange:function(e,a){"linked"===t.borderRadiusType?n({borderRadius:a}):n(O({},ye[e],a))},options:[{label:N("Top"),type:"top",value:we("top")},{label:N("Right"),type:"right",value:we("right")},{label:N("Bottom"),type:"bottom",value:we("bottom")},{label:N("Left"),type:"left",value:we("left")}]}),wp.element.createElement(G,{label:"Box Shadow",checked:t.boxShadow,onChange:function(){n({boxShadow:!t.boxShadow})}}),t.boxShadow&&wp.element.createElement(K,null,wp.element.createElement(K,null,wp.element.createElement("p",null,N("Shadow Color")),wp.element.createElement(q,{label:"Shadow Color",value:t.boxShadowColor,onChange:function(e){n({boxShadowColor:e})}})),wp.element.createElement(B.a,{label:"Border Shadow"},wp.element.createElement(V,{label:N("Opacity"),value:t.boxShadowColorOpacity,onChange:function(e){n({boxShadowColorOpacity:e})},min:0,max:100}),wp.element.createElement(V,{label:N("Blur"),value:t.boxShadowBlur,onChange:function(e){n({boxShadowBlur:e})},min:0,max:100}),wp.element.createElement(V,{label:N("Spread"),value:t.boxShadowSpread,onChange:function(e){n({boxShadowSpread:e})},min:-100,max:100}),wp.element.createElement(V,{label:N("Horizontal"),value:t.boxShadowHorizontal,onChange:function(e){n({boxShadowHorizontal:e})},min:-100,max:100}),wp.element.createElement(V,{label:N("Vertical"),value:t.boxShadowVertical,onChange:function(e){n({boxShadowVertical:e})},min:-100,max:100})))),wp.element.createElement(j,{title:N("Shape Divider"),initialOpen:!1,className:"wp-block-themeisle-shape-divider"},wp.element.createElement(A,null,wp.element.createElement(H,{className:"is-button",isPrimary:"top"===o,onClick:function(){return r("top")}},N("Top")),wp.element.createElement(H,{className:"is-button",isPrimary:"bottom"===o,onClick:function(){return r("bottom")}},N("Bottom"))),wp.element.createElement(D,{label:N("Type"),value:ve,options:[{label:"None",value:"none"},{label:"Triangle",value:"bigTriangle"},{label:"Right Curve",value:"rightCurve"},{label:"Curve",value:"curve"},{label:"Slant",value:"slant"},{label:"Cloud",value:"cloud"}],onChange:function(e){"top"==o&&n({dividerTopType:e}),"bottom"==o&&n({dividerBottomType:e})}}),"none"!==ve&&wp.element.createElement(K,null,wp.element.createElement(K,null,wp.element.createElement("p",null,N("Color")),wp.element.createElement(q,{label:N("Color"),value:ke,onChange:function(e){"top"==o&&n({dividerTopColor:e}),"bottom"==o&&n({dividerBottomColor:e})}})),wp.element.createElement(x.a,{label:"Width",view:Q,changeViewType:Y},wp.element.createElement(V,{value:Te,onChange:function(e){"top"==o&&("desktop"==Q&&n({dividerTopWidth:e}),"tablet"==Q&&n({dividerTopWidthTablet:e}),"mobile"==Q&&n({dividerTopWidthMobile:e})),"bottom"==o&&("desktop"==Q&&n({dividerBottomWidth:e}),"tablet"==Q&&n({dividerBottomWidthTablet:e}),"mobile"==Q&&n({dividerBottomWidthMobile:e}))},min:0,max:500})),wp.element.createElement(x.a,{label:"Height",view:$,changeViewType:ee},wp.element.createElement(V,{value:Ee,onChange:function(e){"top"==o&&("desktop"==amp;&n({dividerTopHeight:e}),"tablet"==amp;&n({dividerTopHeightTablet:e}),"mobile"==amp;&n({dividerTopHeightMobile:e})),"bottom"==o&&("desktop"==amp;&n({dividerBottomHeight:e}),"tablet"==amp;&n({dividerBottomHeightTablet:e}),"mobile"==amp;&n({dividerBottomHeightMobile:e}))},min:0,max:500})),"curve"!==ve&&"cloud"!==ve&&wp.element.createElement(G,{label:"Invert Shape Divider",checked:xe,onChange:function(){"top"==o&&n({dividerTopInvert:!t.dividerTopInvert}),"bottom"==o&&n({dividerBottomInvert:!t.dividerBottomInvert})}}))))||"advanced"===d&&wp.element.createElement(K,null,wp.element.createElement(j,{title:N("Responsive")},wp.element.createElement(G,{label:"Hide this section in Desktop devices?",checked:t.hide,onChange:function(e){return Ce(e,"desktop")}}),wp.element.createElement(G,{label:"Hide this section in Tablet devices?",checked:t.hideTablet,onChange:function(e){return Ce(e,"tablet")}}),wp.element.createElement(G,{label:"Hide this section in Mobile devices?",checked:t.hideMobile,onChange:function(e){return Ce(e,"mobile")}}),wp.element.createElement("hr",null),!t.hideTablet&&"collapsedRows"===t.layoutTablet&&wp.element.createElement(G,{label:"Reverse Columns in Tablet devices?",checked:t.reverseColumnsTablet,onChange:function(e){return Se(e,"tablet")}}),!t.hideMobile&&"collapsedRows"===t.layoutMobile&&wp.element.createElement(G,{label:"Reverse Columns in Mobile devices?",checked:t.reverseColumnsMobile,onChange:function(e){return Se(e,"mobile")}})),wp.element.createElement(j,{title:N("Section Settings"),initialOpen:!1},wp.element.createElement(D,{label:N("HTML Tag"),value:t.columnsHTMLTag,options:[{label:"Default (div)",value:"div"},{label:"section",value:"section"},{label:"header",value:"header"},{label:"footer",value:"footer"},{label:"article",value:"article"},{label:"main",value:"main"}],onChange:function(e){n({columnsHTMLTag:e})}})))),wp.element.createElement(M.a,{value:t.id,onChange:function(e){n({id:e})}}))};function X(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var $=wp.i18n.__,ee=wp.blockEditor,te=ee.__experimentalBlockNavigationList,ne=ee.BlockControls,ae=wp.components,le=ae.IconButton,oe=ae.Modal,re=ae.Toolbar,ie=wp.compose.compose,ce=wp.data,de=ce.withSelect,pe=ce.withDispatch,me=wp.element,se=me.Fragment,ue=me.useState,be=ie(de((function(e,t){var n=t.clientId,a=e("core/block-editor"),l=a.getSelectedBlockClientId;return{block:(0,a.getBlock)(n),selectedBlockClientId:l()}})),pe((function(e){return{selectBlock:e("core/block-editor").selectBlock}})))((function(e){var t=e.block,n=e.selectedBlockClientId,a=e.selectBlock,o=X(ue(!1),2),r=o[0],i=o[1];return wp.element.createElement(se,null,wp.element.createElement(ne,null,wp.element.createElement(re,{className:"wp-themesiel-blocks-block-navigator-components-toolbar"},wp.element.createElement(le,{className:"components-toolbar__control",label:$("Open block navigator"),onClick:function(){return i(!0)},icon:l.k}))),r&&wp.element.createElement(oe,{title:$("Block Navigator"),closeLabel:$("Close"),onRequestClose:function(){return i(!1)}},wp.element.createElement(te,{blocks:[t],selectedBlockClientId:n,selectBlock:a,showNestedBlocks:!0})))})),ge=n(13),he=n(26);function fe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function ye(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function we(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?we(Object(n),!0).forEach((function(t){ke(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):we(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ke(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Te=lodash,Ee=Te.isEqual,xe=Te.times,Ce=wp.compose.compose,Se=wp.data,Be=Se.withDispatch,Me=Se.withSelect,Oe=wp.blockEditor,Re=Oe.__experimentalBlockNavigationList,Ne=Oe.InnerBlocks,Le=wp.element,ze=Le.Fragment,He=Le.useEffect,Ae=Le.useState,_e=wp.viewport.withViewportMatch,Pe=[],Ie=Ce(Be((function(e){return{updateBlockAttributes:e("core/block-editor").updateBlockAttributes}})),Me((function(e,t){var n=t.clientId;return{sectionBlock:(0,e("core/block-editor").getBlock)(n)}})),_e({isLarger:">= large",isLarge:"<= large",isSmall:">= small",isSmaller:"<= small"}))((function(e){var t=e.attributes,n=e.setAttributes,a=e.className,l=e.clientId,o=e.name,i=e.updateBlockAttributes,d=e.sectionBlock,m=e.isLarger,s=e.isLarge,u=e.isSmall,b=e.isSmaller;He((function(){x()}),[]);var g,h,f,y,w,T,E,x=function(){var e=window.themeisleGutenberg.blockIDs?window.themeisleGutenberg.blockIDs:[];if(void 0===t.id){var a,i="wp-block-themeisle-blocks-advanced-columns-".concat(l.substr(0,8));void 0!==(window.themeisleGutenberg.globalDefaults?window.themeisleGutenberg.globalDefaults:void 0)&&(Ee(v.a[o],window.themeisleGutenberg.globalDefaults[o])||(a=ve({},window.themeisleGutenberg.globalDefaults[o]),Object.keys(a).map((function(e){if(t[e]!==a[e]&&void 0!==r[e].default&&t[e]!==r[e].default)return delete a[e]})))),n(ve({},a,{id:i})),Pe.push(i),e.push(i)}else if(Pe.includes(t.id)){var c="wp-block-themeisle-blocks-advanced-columns-".concat(l.substr(0,8));n({id:c}),Pe.push(c)}else Pe.push(t.id),e.push(t.id);window.themeisleGutenberg.blockIDs=ye(e)},C=fe(Ae("top"),2),S=C[0],B=C[1],M=m&&!s&&u&&!b,O=!m&&!s&&u&&!b,R=!(m||s||u||b),N=t.columnsHTMLTag;(M&&(g={paddingRight:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingRight,"px"),paddingLeft:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingLeft,"px"),marginTop:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginTop,"px"),marginBottom:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginBottom,"px"),minHeight:"custom"===t.columnsHeight?"".concat(t.columnsHeightCustom,"px"):t.columnsHeight}),O&&(g={paddingRight:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingRightTablet,"px"),paddingLeft:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingLeftTablet,"px"),marginTop:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginTopTablet,"px"),marginBottom:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginBottomTablet,"px"),minHeight:"custom"===t.columnsHeight?"".concat(t.columnsHeightCustomTablet,"px"):t.columnsHeight}),R&&(g={paddingRight:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingRightMobile,"px"),paddingLeft:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingLeftMobile,"px"),marginTop:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginTopMobile,"px"),marginBottom:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginBottomMobile,"px"),minHeight:"custom"===t.columnsHeight?"".concat(t.columnsHeightCustomMobile,"px"):t.columnsHeight}),"color"===t.backgroundType&&(h={background:t.backgroundColor}),"image"===t.backgroundType&&(h={backgroundImage:"url( '".concat(t.backgroundImageURL,"' )"),backgroundAttachment:t.backgroundAttachment,backgroundPosition:t.backgroundPosition,backgroundRepeat:t.backgroundRepeat,backgroundSize:t.backgroundSize}),"gradient"===t.backgroundType)&&(E="linear"===t.backgroundGradientType?"".concat(t.backgroundGradientAngle,"deg"):"at ".concat(t.backgroundGradientPosition),(t.backgroundGradientFirstColor||t.backgroundGradientSecondColor)&&(h={background:"".concat(t.backgroundGradientType,"-gradient( ").concat(E,", ").concat(t.backgroundGradientFirstColor||"rgba( 0, 0, 0, 0 )"," ").concat(t.backgroundGradientFirstLocation,"%, ").concat(t.backgroundGradientSecondColor||"rgba( 0, 0, 0, 0 )"," ").concat(t.backgroundGradientSecondLocation,"% )")}));"linked"===t.borderType&&(y={borderWidth:"".concat(t.border,"px"),borderStyle:"solid",borderColor:t.borderColor}),"unlinked"===t.borderType&&(y={borderTopWidth:"".concat(t.borderTop,"px"),borderRightWidth:"".concat(t.borderRight,"px"),borderBottomWidth:"".concat(t.borderBottom,"px"),borderLeftWidth:"".concat(t.borderLeft,"px"),borderStyle:"solid",borderColor:t.borderColor}),"linked"===t.borderRadiusType&&(w={borderRadius:"".concat(t.borderRadius,"px")}),"unlinked"===t.borderRadiusType&&(w={borderTopLeftRadius:"".concat(t.borderRadiusTop,"px"),borderTopRightRadius:"".concat(t.borderRadiusRight,"px"),borderBottomRightRadius:"".concat(t.borderRadiusBottom,"px"),borderBottomLeftRadius:"".concat(t.borderRadiusLeft,"px")}),!0===t.boxShadow&&(T={boxShadow:"".concat(t.boxShadowHorizontal,"px ").concat(t.boxShadowVertical,"px ").concat(t.boxShadowBlur,"px ").concat(t.boxShadowSpread,"px ").concat(p()(t.boxShadowColor?t.boxShadowColor:"#000000",t.boxShadowColorOpacity))});var L,z=ve({},g,{},h,{},y,{},w,{},T,{alignItems:t.horizontalAlign});("color"===t.backgroundOverlayType&&(f={background:t.backgroundOverlayColor,opacity:t.backgroundOverlayOpacity/100}),"image"===t.backgroundOverlayType&&(f={backgroundImage:"url( '".concat(t.backgroundOverlayImageURL,"' )"),backgroundAttachment:t.backgroundOverlayAttachment,backgroundPosition:t.backgroundOverlayPosition,backgroundRepeat:t.backgroundOverlayRepeat,backgroundSize:t.backgroundOverlaySize,opacity:t.backgroundOverlayOpacity/100}),"gradient"===t.backgroundOverlayType)&&(L="linear"===t.backgroundOverlayGradientType?"".concat(t.backgroundOverlayGradientAngle,"deg"):"at ".concat(t.backgroundOverlayGradientPosition),f={background:"".concat(t.backgroundOverlayGradientType,"-gradient( ").concat(L,", ").concat(t.backgroundOverlayGradientFirstColor||"rgba( 0, 0, 0, 0 )"," ").concat(t.backgroundOverlayGradientFirstLocation,"%, ").concat(t.backgroundOverlayGradientSecondColor||"rgba( 0, 0, 0, 0 )"," ").concat(t.backgroundOverlayGradientSecondLocation,"% )"),opacity:t.backgroundOverlayOpacity/100});var H=ve({},f,{mixBlendMode:t.backgroundOverlayBlend,filter:"blur( ".concat(t.backgroundOverlayFilterBlur/10,"px ) brightness( ").concat(t.backgroundOverlayFilterBrightness/10," ) contrast( ").concat(t.backgroundOverlayFilterContrast/10," ) grayscale( ").concat(t.backgroundOverlayFilterGrayscale/100," ) hue-rotate( ").concat(t.backgroundOverlayFilterHue,"deg ) saturate( ").concat(t.backgroundOverlayFilterSaturate/10," )")}),A={};t.columnsWidth&&(A={maxWidth:t.columnsWidth+"px"});var _=c()(a,"has-".concat(t.columns,"-columns"),"has-desktop-".concat(t.layout,"-layout"),"has-tablet-".concat(t.layoutTablet,"-layout"),"has-mobile-".concat(t.layoutMobile,"-layout"),"has-".concat(t.columnsGap,"-gap"),"has-vertical-".concat(t.verticalAlign),{"has-reverse-columns-tablet":t.reverseColumnsTablet&&!t.hideTablet&&"collapsedRows"===t.layoutTablet},{"has-reverse-columns-mobile":t.reverseColumnsMobile&&!t.hideMobile&&"collapsedRows"===t.layoutMobile}),P=function(e){var n;return"top"==e&&(M&&(n="linked"===t.paddingType?t.padding:t.paddingTop),O&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingTopTablet),R&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingTopMobile)),"bottom"==e&&(M&&(n="linked"===t.paddingType?t.padding:t.paddingBottom),O&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingBottomTablet),R&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingBottomMobile)),n},I=function(){var e;return M&&(e=t.dividerTopWidth),O&&(e=t.dividerTopWidthTablet),R&&(e=t.dividerTopWidthMobile),e};I=I();var j=function(){var e;return M&&(e=t.dividerBottomWidth),O&&(e=t.dividerBottomWidthTablet),R&&(e=t.dividerBottomWidthMobile),e};j=j();var F=function(){var e;return M&&(e=t.dividerTopHeight),O&&(e=t.dividerTopHeightTablet),R&&(e=t.dividerTopHeightMobile),e};F=F();var G=function(){var e;return M&&(e=t.dividerBottomHeight),O&&(e=t.dividerBottomHeightTablet),R&&(e=t.dividerBottomHeightMobile),e};G=G();var V;return t.columns?wp.element.createElement(ze,null,Re&&wp.element.createElement(be,{clientId:l}),wp.element.createElement(Y,{attributes:t,setAttributes:n,updateColumnsWidth:function(e,t){d.innerBlocks.map((function(n,a){i(n.clientId,{columnWidth:k.a[e][t][a]})}))},dividerViewType:S,setDividerViewType:B}),wp.element.createElement(N,{className:_,id:t.id,style:z},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay",style:H}),wp.element.createElement("div",{className:"wp-themeisle-block-advanced-columns-padding-container",style:{height:"".concat(P("top"),"px")}},wp.element.createElement("div",{className:"block-space-size"},wp.element.createElement("span",{id:"paddingTop"},"".concat(P("top"),"px")))),wp.element.createElement(ge.default,{type:"top",style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert,width:I,height:F}),wp.element.createElement("div",{className:"innerblocks-wrap",style:A},wp.element.createElement(Ne,{allowedBlocks:["themeisle-blocks/advanced-columns"],template:(V=t.columns,xe(V,(function(e){return["themeisle-blocks/advanced-column",{columnWidth:k.a[V][t.layout][e]}]}))),templateLock:"all"})),wp.element.createElement(ge.default,{type:"bottom",style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert,width:j,height:G}),wp.element.createElement("div",{className:"wp-themeisle-block-advanced-columns-padding-container",style:{height:"".concat(P("bottom"),"px")}},wp.element.createElement("div",{className:"block-space-size"},wp.element.createElement("span",{id:"paddingBottom"},"".concat(P("bottom"),"px")))))):wp.element.createElement(he.default,{clientId:l,setupColumns:function(e,t){n(1>=e?{columns:e,layout:t,layoutTablet:"equal",layoutMobile:"equal"}:{columns:e,layout:t,layoutTablet:"equal",layoutMobile:"collapsedRows"})}})})),je=wp.blockEditor.InnerBlocks,Fe=function(e){var t=e.attributes,n=e.className,a=t.columnsHTMLTag,l=t.hide?"":"has-desktop-".concat(t.layout,"-layout"),o=t.hideTablet?"":"has-tablet-".concat(t.layoutTablet,"-layout"),r=t.hideMobile?"":"has-mobile-".concat(t.layoutMobile,"-layout"),i=c()(n,"has-".concat(t.columns,"-columns"),l,o,r,{"hide-in-desktop":t.hide},{"hide-in-tablet":t.hideTablet},{"hide-in-mobile":t.hideMobile},{"has-reverse-columns-tablet":t.reverseColumnsTablet&&!t.hideTablet&&"collapsedRows"===t.layoutTablet},{"has-reverse-columns-mobile":t.reverseColumnsMobile&&!t.hideMobile&&"collapsedRows"===t.layoutMobile},"has-".concat(t.columnsGap,"-gap"),"has-vertical-".concat(t.verticalAlign));return wp.element.createElement(a,{className:i,id:t.id},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay"}),wp.element.createElement(ge.default,{type:"top",front:!0,style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert}),wp.element.createElement("div",{className:"innerblocks-wrap"},wp.element.createElement(je.Content,null)),wp.element.createElement(ge.default,{type:"bottom",front:!0,style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert}))},Ge=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/advanced-columns",{title:Ge("Section"),description:Ge("Add a Section block that displays content in multiple columns, then add whatever content blocks you’d like."),icon:l.f,category:"themeisle-blocks",keywords:["advanced columns","layout","grid"],attributes:r,supports:{align:["wide","full"],html:!1},deprecated:w,edit:Ie,save:Fe})},function(e,t,n){"use strict";n.r(t);var a=n(2),l={id:{type:"string"},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:20},paddingTablet:{type:"number"},paddingMobile:{type:"number"},paddingTop:{type:"number",default:20},paddingTopTablet:{type:"number"},paddingTopMobile:{type:"number"},paddingRight:{type:"number",default:20},paddingRightTablet:{type:"number"},paddingRightMobile:{type:"number"},paddingBottom:{type:"number",default:20},paddingBottomTablet:{type:"number"},paddingBottomMobile:{type:"number"},paddingLeft:{type:"number",default:20},paddingLeftTablet:{type:"number"},paddingLeftMobile:{type:"number"},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:20},marginTablet:{type:"number"},marginMobile:{type:"number"},marginTop:{type:"number",default:20},marginTopTablet:{type:"number"},marginTopMobile:{type:"number"},marginRight:{type:"number",default:0},marginRightTablet:{type:"number"},marginRightMobile:{type:"number"},marginBottom:{type:"number",default:20},marginBottomTablet:{type:"number"},marginBottomMobile:{type:"number"},marginLeft:{type:"number",default:0},marginLeftTablet:{type:"number"},marginLeftMobile:{type:"number"},backgroundType:{type:"string",default:"color"},backgroundColor:{type:"string"},backgroundImageID:{type:"number"},backgroundImageURL:{type:"string"},backgroundAttachment:{type:"string",default:"scroll"},backgroundPosition:{type:"string",default:"top left"},backgroundRepeat:{type:"string",default:"repeat"},backgroundSize:{type:"string",default:"auto"},backgroundGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundGradientFirstLocation:{type:"number",default:0},backgroundGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundGradientSecondLocation:{type:"number",default:100},backgroundGradientType:{type:"string",default:"linear"},backgroundGradientAngle:{type:"number",default:90},backgroundGradientPosition:{type:"string",default:"center center"},borderType:{type:"string",default:"linked"},border:{type:"number",default:0},borderTop:{type:"number",default:0},borderRight:{type:"number",default:0},borderBottom:{type:"number",default:0},borderLeft:{type:"number",default:0},borderColor:{type:"string",default:"#000000"},borderRadiusType:{type:"string",default:"linked"},borderRadius:{type:"number",default:0},borderRadiusTop:{type:"number",default:0},borderRadiusRight:{type:"number",default:0},borderRadiusBottom:{type:"number",default:0},borderRadiusLeft:{type:"number",default:0},boxShadow:{type:"boolean",default:!1},boxShadowColor:{type:"string",default:"#000000"},boxShadowColorOpacity:{type:"number",default:50},boxShadowBlur:{type:"number",default:5},boxShadowSpread:{type:"number",default:0},boxShadowHorizontal:{type:"number",default:0},boxShadowVertical:{type:"number",default:0},columnsHTMLTag:{type:"string",default:"div"},columnWidth:{type:"string"}},o=n(6),r=n.n(o);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=wp.blockEditor.InnerBlocks,p=[{attributes:{id:{type:"string"},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:20},paddingTablet:{type:"number",default:20},paddingMobile:{type:"number",default:20},paddingTop:{type:"number",default:20},paddingTopTablet:{type:"number",default:20},paddingTopMobile:{type:"number",default:20},paddingRight:{type:"number",default:20},paddingRightTablet:{type:"number",default:20},paddingRightMobile:{type:"number",default:20},paddingBottom:{type:"number",default:20},paddingBottomTablet:{type:"number",default:20},paddingBottomMobile:{type:"number",default:20},paddingLeft:{type:"number",default:20},paddingLeftTablet:{type:"number",default:20},paddingLeftMobile:{type:"number",default:20},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:20},marginTablet:{type:"number",default:20},marginMobile:{type:"number",default:20},marginTop:{type:"number",default:20},marginTopTablet:{type:"number",default:20},marginTopMobile:{type:"number",default:20},marginRight:{type:"number",default:0},marginRightTablet:{type:"number",default:0},marginRightMobile:{type:"number",default:0},marginBottom:{type:"number",default:20},marginBottomTablet:{type:"number",default:20},marginBottomMobile:{type:"number",default:20},marginLeft:{type:"number",default:0},marginLeftTablet:{type:"number",default:0},marginLeftMobile:{type:"number",default:0},backgroundType:{type:"string",default:"color"},backgroundColor:{type:"string"},backgroundImageID:{type:"number"},backgroundImageURL:{type:"string"},backgroundAttachment:{type:"string",default:"scroll"},backgroundPosition:{type:"string",default:"top left"},backgroundRepeat:{type:"string",default:"repeat"},backgroundSize:{type:"string",default:"auto"},backgroundGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundGradientFirstLocation:{type:"number",default:0},backgroundGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundGradientSecondLocation:{type:"number",default:100},backgroundGradientType:{type:"string",default:"linear"},backgroundGradientAngle:{type:"number",default:90},backgroundGradientPosition:{type:"string",default:"center center"},borderType:{type:"string",default:"linked"},border:{type:"number",default:0},borderTop:{type:"number",default:0},borderRight:{type:"number",default:0},borderBottom:{type:"number",default:0},borderLeft:{type:"number",default:0},borderColor:{type:"string",default:"#000000"},borderRadiusType:{type:"string",default:"linked"},borderRadius:{type:"number",default:0},borderRadiusTop:{type:"number",default:0},borderRadiusRight:{type:"number",default:0},borderRadiusBottom:{type:"number",default:0},borderRadiusLeft:{type:"number",default:0},boxShadow:{type:"boolean",default:!1},boxShadowColor:{type:"string",default:"#000000"},boxShadowColorOpacity:{type:"number",default:50},boxShadowBlur:{type:"number",default:5},boxShadowSpread:{type:"number",default:0},boxShadowHorizontal:{type:"number",default:0},boxShadowVertical:{type:"number",default:0},columnsHTMLTag:{type:"string",default:"div"},columnWidth:{type:"string"}},supports:{inserter:!1,reusable:!1,html:!1},save:function(e){var t,n,a,l,o,p=e.attributes,m=e.className,s=p.columnsHTMLTag;("color"===p.backgroundType&&(t={background:p.backgroundColor}),"image"===p.backgroundType&&(t={backgroundImage:"url( '".concat(p.backgroundImageURL,"' )"),backgroundAttachment:p.backgroundAttachment,backgroundPosition:p.backgroundPosition,backgroundRepeat:p.backgroundRepeat,backgroundSize:p.backgroundSize}),"gradient"===p.backgroundType)&&(o="linear"===p.backgroundGradientType?"".concat(p.backgroundGradientAngle,"deg"):"at ".concat(p.backgroundGradientPosition),t={background:"".concat(p.backgroundGradientType,"-gradient( ").concat(o,", ").concat(p.backgroundGradientFirstColor||"rgba( 0, 0, 0, 0 )"," ").concat(p.backgroundGradientFirstLocation,"%, ").concat(p.backgroundGradientSecondColor||"rgba( 0, 0, 0, 0 )"," ").concat(p.backgroundGradientSecondLocation,"% )")});"linked"===p.borderType&&(n={borderWidth:"".concat(p.border,"px"),borderStyle:"solid",borderColor:p.borderColor}),"unlinked"===p.borderType&&(n={borderTopWidth:"".concat(p.borderTop,"px"),borderRightWidth:"".concat(p.borderRight,"px"),borderBottomWidth:"".concat(p.borderBottom,"px"),borderLeftWidth:"".concat(p.borderLeft,"px"),borderStyle:"solid",borderColor:p.borderColor}),"linked"===p.borderRadiusType&&(a={borderRadius:"".concat(p.borderRadius,"px")}),"unlinked"===p.borderRadiusType&&(a={borderTopLeftRadius:"".concat(p.borderRadiusTop,"px"),borderTopRightRadius:"".concat(p.borderRadiusRight,"px"),borderBottomRightRadius:"".concat(p.borderRadiusBottom,"px"),borderBottomLeftRadius:"".concat(p.borderRadiusLeft,"px")}),!0===p.boxShadow&&(l={boxShadow:"".concat(p.boxShadowHorizontal,"px ").concat(p.boxShadowVertical,"px ").concat(p.boxShadowBlur,"px ").concat(p.boxShadowSpread,"px ").concat(r()(p.boxShadowColor?p.boxShadowColor:"#000000",p.boxShadowColorOpacity))});var u=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,{},n,{},a,{},l);return wp.element.createElement(s,{className:m,id:p.id,style:u},wp.element.createElement(d.Content,null))}}],m=n(5),s=n(17),u=n(0),b=n.n(u),g=n(3),h=n(4),f=n(14),y=n(18),w=n(8);function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var T=wp.i18n.__,E=wp.blockEditor,x=E.ColorPalette,C=E.InspectorControls,S=E.MediaPlaceholder,B=wp.components,M=B.Button,O=B.Dashicon,R=B.PanelBody,N=B.ToggleControl,L=B.RangeControl,z=B.SelectControl,H=wp.element,A=H.Fragment,_=H.useEffect,P=H.useRef,I=H.useState,j=function(e){var t=e.attributes,n=e.setAttributes,a=e.isSelected,l=e.clientId,o=e.adjacentBlock,r=e.parentBlock,i=e.updateBlockAttributes,c=e.adjacentBlockClientId;_((function(){if(1<r.innerBlocks.length&&!c){var e=r.innerBlocks.findIndex((function(e){return e.clientId===l})),t=r.innerBlocks[e-1];G.current=t.clientId,V.current=t.attributes.columnWidth}}),[]),_((function(){if(1<r.innerBlocks.length)if(c)V.current=o.attributes.columnWidth,G.current=c,F.current=t.columnWidth;else{var e=r.innerBlocks.findIndex((function(e){return e.clientId===l})),n=r.innerBlocks[e-1];V.current=n.attributes.columnWidth,G.current=n.clientId,F.current=t.columnWidth}}),[a,t.columnWidth,r.innerBlocks.length]);var d=k(I("layout"),2),p=d[0],m=d[1],s=k(I("desktop"),2),u=s[0],E=s[1],B=k(I("desktop"),2),H=B[0],j=B[1],F=P(t.columnWidth),G=P(c&&c),V=P(o&&o.attributes.columnWidth),D=function(){var e;return"desktop"===u&&(e=t.paddingType),"tablet"===u&&(e=t.paddingTypeTablet),"mobile"===u&&(e=t.paddingTypeMobile),e};D=D();var W={top:"paddingTop",right:"paddingRight",bottom:"paddingBottom",left:"paddingLeft"},q={top:"paddingTopTablet",right:"paddingRightTablet",bottom:"paddingBottomTablet",left:"paddingLeftTablet"},Z={top:"paddingTopMobile",right:"paddingRightMobile",bottom:"paddingBottomMobile",left:"paddingLeftMobile"},U=function(e){var n;return"top"==e&&("desktop"===u&&(n="linked"===t.paddingType?t.padding:t.paddingTop),"tablet"===u&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingTopTablet),"mobile"===u&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingTopMobile)),"right"==e&&("desktop"===u&&(n="linked"===t.paddingType?t.padding:t.paddingRight),"tablet"===u&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingRightTablet),"mobile"===u&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingRightMobile)),"bottom"==e&&("desktop"===u&&(n="linked"===t.paddingType?t.padding:t.paddingBottom),"tablet"===u&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingBottomTablet),"mobile"===u&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingBottomMobile)),"left"==e&&("desktop"===u&&(n="linked"===t.paddingType?t.padding:t.paddingLeft),"tablet"===u&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingLeftTablet),"mobile"===u&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingLeftMobile)),n},Q=function(){var e;return"desktop"===H&&(e=t.marginType),"tablet"===H&&(e=t.marginTypeTablet),"mobile"===H&&(e=t.marginTypeMobile),e};Q=Q();var K={top:"marginTop",right:"marginRight",bottom:"marginBottom",left:"marginLeft"},J={top:"marginTopTablet",right:"marginRightTablet",bottom:"marginBottomTablet",left:"marginLeftTablet"},Y={top:"marginTopMobile",right:"marginRightMobile",bottom:"marginBottomMobile",left:"marginLeftMobile"},X=function(e){var n;return"top"==e&&("desktop"===H&&(n="linked"===t.marginType?t.margin:t.marginTop),"tablet"===H&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginTopTablet),"mobile"===H&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginTopMobile)),"right"==e&&("desktop"===H&&(n="linked"===t.marginType?t.margin:t.marginRight),"tablet"===H&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginRightTablet),"mobile"===H&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginRightMobile)),"bottom"==e&&("desktop"===H&&(n="linked"===t.marginType?t.margin:t.marginBottom),"tablet"===H&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginBottomTablet),"mobile"===H&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginBottomMobile)),"left"==e&&("desktop"===H&&(n="linked"===t.marginType?t.margin:t.marginLeft),"tablet"===H&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginLeftTablet),"mobile"===H&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginLeftMobile)),n},$=function(){n({backgroundImageID:"",backgroundImageURL:""})},ee={top:"borderTop",right:"borderRight",bottom:"borderBottom",left:"borderLeft"},te=function(e){var n;return"top"==e&&(n="linked"===t.borderType?t.border:t.borderTop),"right"==e&&(n="linked"===t.borderType?t.border:t.borderRight),"bottom"==e&&(n="linked"===t.borderType?t.border:t.borderBottom),"left"==e&&(n="linked"===t.borderType?t.border:t.borderLeft),n},ne={top:"borderRadiusTop",right:"borderRadiusRight",bottom:"borderRadiusBottom",left:"borderRadiusLeft"},ae=function(e){var n;return"top"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusTop),"right"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusRight),"bottom"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusBottom),"left"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusLeft),n};return wp.element.createElement(C,null,wp.element.createElement(R,{className:"wp-block-themeisle-blocks-advanced-columns-header-panel"},wp.element.createElement(M,{className:b()("header-tab",{"is-selected":"layout"===p}),onClick:function(){return m("layout")}},wp.element.createElement("span",null,wp.element.createElement(O,{icon:"editor-table"}),T("Layout"))),wp.element.createElement(M,{className:b()("header-tab",{"is-selected":"style"===p}),onClick:function(){return m("style")}},wp.element.createElement("span",null,wp.element.createElement(O,{icon:"admin-customizer"}),T("Style"))),wp.element.createElement(M,{className:b()("header-tab",{"is-selected":"advanced"===p}),onClick:function(){return m("advanced")}},wp.element.createElement("span",null,wp.element.createElement(O,{icon:"admin-generic"}),T("Advanced")))),"layout"===p&&wp.element.createElement(A,null,wp.element.createElement(R,{title:T("Spacing")},1<r.innerBlocks.length&&wp.element.createElement(L,{label:T("Column Width"),value:Number(t.columnWidth),onChange:function(e){var t=e||10,a=Number(F.current)-t+Number(V.current);F.current=t,V.current=a,n({columnWidth:t.toFixed(2)}),i(G.current,{columnWidth:a.toFixed(2)})},min:10,max:Number(t.columnWidth)+Number(V.current)-10}),wp.element.createElement(h.a,{label:"Padding",view:u,changeViewType:E},wp.element.createElement(g.a,{type:D,min:0,max:500,changeType:function(e){"desktop"===u&&n({paddingType:e}),"tablet"===u&&n({paddingTypeTablet:e}),"mobile"===u&&n({paddingTypeMobile:e})},onChange:function(e,a){"desktop"===u&&("linked"===t.paddingType?n({padding:a}):n(v({},W[e],a))),"tablet"===u&&("linked"===t.paddingTypeTablet?n({paddingTablet:a}):n(v({},q[e],a))),"mobile"===u&&("linked"===t.paddingTypeMobile?n({paddingMobile:a}):n(v({},Z[e],a)))},options:[{label:T("Top"),type:"top",value:U("top")},{label:T("Right"),type:"right",value:U("right")},{label:T("Bottom"),type:"bottom",value:U("bottom")},{label:T("Left"),type:"left",value:U("left")}]})),wp.element.createElement(h.a,{label:"Margin",view:H,changeViewType:j},wp.element.createElement(g.a,{type:Q,min:-500,max:500,changeType:function(e){"desktop"===H&&n({marginType:e}),"tablet"===H&&n({marginTypeTablet:e}),"mobile"===H&&n({marginTypeMobile:e})},onChange:function(e,a){"desktop"===H&&("linked"===t.marginType?n({margin:a}):n(v({},K[e],a))),"tablet"===H&&("linked"===t.marginTypeTablet?n({marginTablet:a}):n(v({},J[e],a))),"mobile"===H&&("linked"===t.marginTypeMobile?n({marginMobile:a}):n(v({},Y[e],a)))},options:[{label:T("Top"),type:"top",value:X("top")},{label:T("Right"),type:"right",value:X("right")},{label:T("Bottom"),type:"bottom",value:X("bottom")},{label:T("Left"),type:"left",value:X("left")}]}))))||"style"===p&&wp.element.createElement(A,null,wp.element.createElement(R,{title:T("Background Settings"),className:"wp-block-themeisle-image-container"},wp.element.createElement(f.default,{label:T("Background Type"),backgroundType:t.backgroundType,changeBackgroundType:function(e){n({backgroundType:e})}}),"color"===t.backgroundType&&wp.element.createElement(A,null,wp.element.createElement("p",null,T("Background Color")),wp.element.createElement(x,{label:"Background Color",value:t.backgroundColor,onChange:function(e){n({backgroundColor:e})}}))||"image"===t.backgroundType&&(t.backgroundImageURL?wp.element.createElement(A,null,wp.element.createElement("div",{className:"image-body"},wp.element.createElement("div",{className:"image-container"},wp.element.createElement("div",{className:"image-holder",style:{backgroundImage:"url('".concat(t.backgroundImageURL,"')")}}),wp.element.createElement("div",{className:"image-delete",onClick:$},wp.element.createElement(O,{icon:"trash"}),wp.element.createElement("span",null,T("Remove Image"))))),wp.element.createElement(M,{isDefault:!0,className:"image-delete-button",onClick:$},T("Change or Remove Image")),wp.element.createElement(w.a,{label:"Background Settings"},wp.element.createElement(z,{label:T("Background Attachment"),value:t.backgroundAttachment,options:[{label:"Scroll",value:"scroll"},{label:"Fixed",value:"fixed"},{label:"Local",value:"local"}],onChange:function(e){n({backgroundAttachment:e})}}),wp.element.createElement(z,{label:T("Background Position"),value:t.backgroundPosition,options:[{label:"Default",value:"top left"},{label:"Top Left",value:"top left"},{label:"Top Center",value:"top center"},{label:"Top Right",value:"top right"},{label:"Center Left",value:"center left"},{label:"Center Center",value:"center center"},{label:"Center Right",value:"center right"},{label:"Bottom Left",value:"bottom left"},{label:"Bottom Center",value:"bottom center"},{label:"Bottom Right",value:"bottom right"}],onChange:function(e){n({backgroundPosition:e})}}),wp.element.createElement(z,{label:T("Background Repeat"),value:t.backgroundRepeat,options:[{label:"Repeat",value:"repeat"},{label:"No-repeat",value:"no-repeat"}],onChange:function(e){n({backgroundRepeat:e})}}),wp.element.createElement(z,{label:T("Background Size"),value:t.backgroundSize,options:[{label:"Auto",value:"auto"},{label:"Cover",value:"cover"},{label:"Contain",value:"contain"}],onChange:function(e){n({backgroundSize:e})}}))):wp.element.createElement(S,{icon:"format-image",labels:{title:T("Background Image"),name:T("an image")},value:t.backgroundImageID,onSelect:function(e){n({backgroundImageID:e.id,backgroundImageURL:e.url})},accept:"image/*",allowedTypes:["image"]}))||"gradient"===t.backgroundType&&wp.element.createElement(y.a,{label:"Background Gradient",value:{firstColor:t.backgroundGradientFirstColor,firstLocation:t.backgroundGradientFirstLocation,secondColor:t.backgroundGradientSecondColor,secondLocation:t.backgroundGradientSecondLocation,type:t.backgroundGradientType,angle:t.backgroundGradientAngle,position:t.backgroundGradientPosition},onChange:function(e,t,a,l,o,r,i){n({backgroundGradientFirstColor:e,backgroundGradientFirstLocation:t,backgroundGradientSecondColor:a,backgroundGradientSecondLocation:l,backgroundGradientType:o,backgroundGradientAngle:r,backgroundGradientPosition:i})}})),wp.element.createElement(R,{title:T("Border"),className:"wp-block-themeisle-border-container",initialOpen:!1},wp.element.createElement(g.a,{label:T("Border Width"),type:t.borderType,min:0,max:500,changeType:function(e){n({borderType:e})},onChange:function(e,a){"linked"===t.borderType?n({border:a}):n(v({},ee[e],a))},options:[{label:T("Top"),type:"top",value:te("top")},{label:T("Right"),type:"right",value:te("right")},{label:T("Bottom"),type:"bottom",value:te("bottom")},{label:T("Left"),type:"left",value:te("left")}]}),wp.element.createElement(A,null,wp.element.createElement("p",null,T("Border Color")),wp.element.createElement(x,{label:"Border Color",value:t.borderColor,onChange:function(e){n({borderColor:e})}})),wp.element.createElement(g.a,{label:T("Border Radius"),type:t.borderRadiusType,min:0,max:500,changeType:function(e){n({borderRadiusType:e})},onChange:function(e,a){"linked"===t.borderRadiusType?n({borderRadius:a}):n(v({},ne[e],a))},options:[{label:T("Top"),type:"top",value:ae("top")},{label:T("Right"),type:"right",value:ae("right")},{label:T("Bottom"),type:"bottom",value:ae("bottom")},{label:T("Left"),type:"left",value:ae("left")}]}),wp.element.createElement(N,{label:"Box Shadow",checked:t.boxShadow,onChange:function(){n({boxShadow:!t.boxShadow})}}),t.boxShadow&&wp.element.createElement(A,null,wp.element.createElement(A,null,wp.element.createElement("p",null,T("Shadow Color")),wp.element.createElement(x,{label:"Shadow Color",value:t.boxShadowColor,onChange:function(e){n({boxShadowColor:e})}})),wp.element.createElement(w.a,{label:"Shadow Properties"},wp.element.createElement(L,{label:T("Opacity"),value:t.boxShadowColorOpacity,onChange:function(e){n({boxShadowColorOpacity:e})},min:0,max:100}),wp.element.createElement(L,{label:T("Blur"),value:t.boxShadowBlur,onChange:function(e){n({boxShadowBlur:e})},min:0,max:100}),wp.element.createElement(L,{label:T("Spread"),value:t.boxShadowSpread,onChange:function(e){n({boxShadowSpread:e})},min:-100,max:100}),wp.element.createElement(L,{label:T("Horizontal"),value:t.boxShadowHorizontal,onChange:function(e){n({boxShadowHorizontal:e})},min:-100,max:100}),wp.element.createElement(L,{label:T("Vertical"),value:t.boxShadowVertical,onChange:function(e){n({boxShadowVertical:e})},min:-100,max:100})))))||"advanced"===p&&wp.element.createElement(R,{title:T("Section Settings")},wp.element.createElement(z,{label:T("HTML Tag"),value:t.columnsHTMLTag,options:[{label:"Default (div)",value:"div"},{label:"section",value:"section"},{label:"header",value:"header"},{label:"footer",value:"footer"},{label:"article",value:"article"},{label:"main",value:"main"}],onChange:function(e){n({columnsHTMLTag:e})}})))};function F(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function G(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function V(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?V(Object(n),!0).forEach((function(t){W(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function W(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var q=lodash.isEqual,Z=wp.components.ResizableBox,U=wp.compose.compose,Q=wp.data,K=Q.withDispatch,J=Q.withSelect,Y=wp.blockEditor.InnerBlocks,X=wp.element,$=X.Fragment,ee=X.useEffect,te=X.useState,ne=wp.viewport.withViewportMatch,ae=[],le=U(K((function(e){return{updateBlockAttributes:e("core/block-editor").updateBlockAttributes}})),J((function(e,t){var n=t.clientId,a=e("core/block-editor"),l=a.getAdjacentBlockClientId,o=a.getBlock,r=a.getBlockRootClientId,i=o(n),c=l(n),d=o(c),p=r(n);return{adjacentBlockClientId:c,adjacentBlock:d,parentClientId:p,parentBlock:o(p),hasInnerBlocks:!(!i||!i.innerBlocks.length)}})),ne({isLarger:">= large",isLarge:"<= large",isSmall:">= small",isSmaller:"<= small"}))((function(e){var t=e.attributes,n=e.setAttributes,a=e.className,o=e.isSelected,i=e.clientId,c=e.name,d=e.toggleSelection,p=e.updateBlockAttributes,u=e.adjacentBlockClientId,b=e.adjacentBlock,g=e.parentClientId,h=e.parentBlock,f=e.hasInnerBlocks,y=e.isLarger,w=e.isLarge,v=e.isSmall,k=e.isSmaller;ee((function(){T()}),[]);var T=function(){var e=window.themeisleGutenberg.blockIDs?window.themeisleGutenberg.blockIDs:[];if(void 0===t.id){var a,o="wp-block-themeisle-blocks-advanced-column-".concat(i.substr(0,8));void 0!==(window.themeisleGutenberg.globalDefaults?window.themeisleGutenberg.globalDefaults:void 0)&&(q(m.a[c],window.themeisleGutenberg.globalDefaults[c])||(a=D({},window.themeisleGutenberg.globalDefaults[c]),Object.keys(a).map((function(e){if(t[e]!==a[e]&&void 0!==l[e].default&&t[e]!==l[e].default)return delete a[e]})))),n(D({},a,{id:o})),ae.push(o),e.push(o)}else if(ae.includes(t.id)){var r="wp-block-themeisle-blocks-advanced-column-".concat(i.substr(0,8));n({id:r}),ae.push(r)}else ae.push(t.id),e.push(t.id);window.themeisleGutenberg.blockIDs=G(e)},E=F(te(0),2),x=E[0],C=E[1],S=F(te(0),2),B=S[0],M=S[1],O=y&&!w&&v&&!k,R=!y&&!w&&v&&!k,N=!(y||w||v||k);void 0===t.columnWidth&&h.innerBlocks.map((function(e,t){if(i===e.clientId){var n=h.attributes.columns,a=h.attributes.layout;p(i,{columnWidth:s.a[n][a][t]})}}));var L=document.getElementById("block-".concat(i));null!==L&&(L.style.flexBasis=O?"".concat(t.columnWidth,"%"):"");var z,H,A,_,P,I,V=t.columnsHTMLTag;(O&&(z={paddingTop:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingTop,"px"),paddingRight:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingRight,"px"),paddingBottom:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingBottom,"px"),paddingLeft:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingLeft,"px"),marginTop:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginTop,"px"),marginRight:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginRight,"px"),marginBottom:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginBottom,"px"),marginLeft:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginLeft,"px")}),R&&(z={paddingTop:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingTopTablet,"px"),paddingRight:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingRightTablet,"px"),paddingBottom:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingBottomTablet,"px"),paddingLeft:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingLeftTablet,"px"),marginTop:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginTopTablet,"px"),marginRight:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginRightTablet,"px"),marginBottom:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginBottomTablet,"px"),marginLeft:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginLeftTablet,"px")}),N&&(z={paddingTop:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingTopMobile,"px"),paddingRight:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingRightMobile,"px"),paddingBottom:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingBottomMobile,"px"),paddingLeft:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingLeftMobile,"px"),marginTop:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginTopMobile,"px"),marginRight:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginRightMobile,"px"),marginBottom:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginBottomMobile,"px"),marginLeft:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginLeftMobile,"px")}),"color"===t.backgroundType&&(H={background:t.backgroundColor}),"image"===t.backgroundType&&(H={backgroundImage:"url( '".concat(t.backgroundImageURL,"' )"),backgroundAttachment:t.backgroundAttachment,backgroundPosition:t.backgroundPosition,backgroundRepeat:t.backgroundRepeat,backgroundSize:t.backgroundSize}),"gradient"===t.backgroundType)&&(I="linear"===t.backgroundGradientType?"".concat(t.backgroundGradientAngle,"deg"):"at ".concat(t.backgroundGradientPosition),(t.backgroundGradientFirstColor||t.backgroundGradientSecondColor)&&(H={background:"".concat(t.backgroundGradientType,"-gradient( ").concat(I,", ").concat(t.backgroundGradientFirstColor||"rgba( 0, 0, 0, 0 )"," ").concat(t.backgroundGradientFirstLocation,"%, ").concat(t.backgroundGradientSecondColor||"rgba( 0, 0, 0, 0 )"," ").concat(t.backgroundGradientSecondLocation,"% )")}));"linked"===t.borderType&&(A={borderWidth:"".concat(t.border,"px"),borderStyle:"solid",borderColor:t.borderColor}),"unlinked"===t.borderType&&(A={borderTopWidth:"".concat(t.borderTop,"px"),borderRightWidth:"".concat(t.borderRight,"px"),borderBottomWidth:"".concat(t.borderBottom,"px"),borderLeftWidth:"".concat(t.borderLeft,"px"),borderStyle:"solid",borderColor:t.borderColor}),"linked"===t.borderRadiusType&&(_={borderRadius:"".concat(t.borderRadius,"px")}),"unlinked"===t.borderRadiusType&&(_={borderTopLeftRadius:"".concat(t.borderRadiusTop,"px"),borderTopRightRadius:"".concat(t.borderRadiusRight,"px"),borderBottomRightRadius:"".concat(t.borderRadiusBottom,"px"),borderBottomLeftRadius:"".concat(t.borderRadiusLeft,"px")}),!0===t.boxShadow&&(P={boxShadow:"".concat(t.boxShadowHorizontal,"px ").concat(t.boxShadowVertical,"px ").concat(t.boxShadowBlur,"px ").concat(t.boxShadowSpread,"px ").concat(r()(t.boxShadowColor?t.boxShadowColor:"#000000",t.boxShadowColorOpacity))});var W=D({},z,{},H,{},A,{},_,{},P);return wp.element.createElement($,null,wp.element.createElement(j,{attributes:t,setAttributes:n,isSelected:o,clientId:i,adjacentBlock:b,parentBlock:h,updateBlockAttributes:p,adjacentBlockClientId:u}),wp.element.createElement(Z,{className:"block-library-spacer__resize-container wp-themeisle-block-advanced-column-resize-container",enable:{right:!!u},handleWrapperClass:"wp-themeisle-block-advanced-column-resize-container-handle",onResizeStart:function(){var e=document.querySelector("#block-".concat(i," .wp-themeisle-block-advanced-column-resize-container-handle .components-resizable-box__handle")),n=document.createElement("div"),a=document.createElement("div");n.setAttribute("class","resizable-tooltip resizable-tooltip-left"),n.innerHTML="".concat(parseFloat(t.columnWidth).toFixed(0),"%"),e.appendChild(n),a.setAttribute("class","resizable-tooltip resizable-tooltip-right"),a.innerHTML="".concat(parseFloat(b.attributes.columnWidth).toFixed(0),"%"),e.appendChild(a),C(t.columnWidth),M(b.attributes.columnWidth),d(!1)},onResize:function(e,t,a,l){var o=document.getElementById("block-".concat(g)).getBoundingClientRect().width,r=l.width/o*100,i=parseFloat(x)+r,c=B-r,d=document.querySelector(".resizable-tooltip-left"),m=document.querySelector(".resizable-tooltip-right");10<=i&&10<=c&&(d.innerHTML="".concat(i.toFixed(0),"%"),m.innerHTML="".concat(c.toFixed(0),"%"),n({columnWidth:i.toFixed(2)}),p(u,{columnWidth:c.toFixed(2)}))},onResizeStop:function(){var e=document.querySelector(".resizable-tooltip-left"),t=document.querySelector(".resizable-tooltip-right");e.parentNode.removeChild(e),t.parentNode.removeChild(t),d(!0)}},wp.element.createElement(V,{className:a,id:t.id,style:W},wp.element.createElement(Y,{templateLock:!1,renderAppender:!f&&Y.ButtonBlockAppender}))))})),oe=wp.blockEditor.InnerBlocks,re=function(e){var t=e.attributes,n=e.className,a=t.columnsHTMLTag;return wp.element.createElement(a,{className:n,id:t.id},wp.element.createElement(oe.Content,null))},ie=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/advanced-column",{title:ie("Section Column"),description:ie("A single column within a Section block."),parent:["themeisle-blocks/advanced-columns"],icon:a.e,category:"themeisle-blocks",attributes:l,deprecated:p,supports:{inserter:!1,reusable:!1,html:!1},edit:le,save:re})},function(e,t,n){"use strict";n.r(t);var a=n(2),l=wp.i18n.__,o=wp.blockEditor.InnerBlocks,r=[["core/image",{align:"center"}],["themeisle-blocks/advanced-heading",{content:l("John Doe"),align:"center",fontSize:24,tag:"h3",marginTop:25,marginBottom:10,marginTopTablet:25,marginTopMobile:25}],["themeisle-blocks/advanced-heading",{content:l("Jedi Master"),align:"center",fontSize:14,tag:"h4",marginTop:10,marginBottom:10}],["themeisle-blocks/advanced-heading",{content:l('"What is the point of being alive if you don’t at least try to do something remarkable?"'),align:"center",color:"#999999",tag:"p",fontSize:14,marginTop:10,marginBottom:20}]],i=function(e){var t=e.className;return wp.element.createElement("div",{className:t},wp.element.createElement(o,{template:r}))},c=wp.blockEditor.InnerBlocks,d=function(e){var t=e.className;return wp.element.createElement("div",{className:t},wp.element.createElement(c.Content,null))},p=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/testimonials",{title:p("Testimonials"),description:p("Display kudos from customers and clients and display them on your website."),icon:a.r,category:"themeisle-blocks",keywords:["testimonials","quotes","business"],edit:i,save:d})},function(e,t,n){"use strict";n.r(t);var a=n(2),l=wp.i18n.__,o=wp.blockEditor.InnerBlocks,r=[["themeisle-blocks/advanced-heading",{content:l("Basic"),align:"center",tag:"h3",fontSize:24}],["themeisle-blocks/advanced-heading",{content:l("$9.99"),align:"center",tag:"h4",fontSize:36,fontFamily:"Roboto Slab",fontVariant:"normal"}],["themeisle-blocks/advanced-heading",{content:l("Per Month"),align:"center",tag:"p",fontSize:12,marginBottom:0}],["core/separator",{}],["themeisle-blocks/advanced-heading",{content:l("First Feature"),align:"center",tag:"p",fontSize:12,marginBottom:0}],["core/separator",{}],["themeisle-blocks/advanced-heading",{content:l("Second Feature"),align:"center",tag:"p",fontSize:12,marginBottom:0}],["core/separator",{}],["themeisle-blocks/advanced-heading",{content:l("Last Feature"),align:"center",tag:"p",fontSize:12,marginBottom:0}],["core/separator",{}],["themeisle-blocks/button-group",{align:"center",buttons:1,data:[{text:l("Buy Now"),newTab:!1,color:"#ffffff",background:"#32373c",hoverColor:"#ffffff",hoverBackground:"#444a50",borderSize:0,borderRadius:3,boxShadow:!1,boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",paddingTopBottom:12,paddingLeftRight:24}]}]],i=function(e){var t=e.className;return wp.element.createElement("div",{className:t},wp.element.createElement(o,{template:r}))},c=wp.blockEditor.InnerBlocks,d=function(e){var t=e.className;return wp.element.createElement("div",{className:t},wp.element.createElement(c.Content,null))},p=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/pricing",{title:p("Pricing"),description:p("Pricing tables are a critical part in showcasing your services, prices and overall offerings."),icon:a.o,category:"themeisle-blocks",keywords:["pricing","table","money"],edit:i,save:d})},function(e,t,n){"use strict";n.r(t);var a=n(2),l=wp.i18n.__,o=wp.blockEditor.InnerBlocks,r=[["themeisle-blocks/font-awesome-icons",{fontSize:62,prefix:"fab",icon:"angellist"}],["themeisle-blocks/advanced-heading",{content:l("Basic"),align:"center",tag:"h4",marginBottom:20}],["themeisle-blocks/advanced-heading",{content:l("Lorem ipsum dolor sit amet elit do, consectetur adipiscing, sed eiusmod tempor incididunt ut labore et dolore magna aliqua."),align:"center",color:"#999999",tag:"p",fontSize:14,marginBottom:20}],["themeisle-blocks/button-group",{align:"center",buttons:1,data:[{text:l("Know More"),newTab:!1,color:"#ffffff",background:"#32373c",hoverColor:"#ffffff",hoverBackground:"#444a50",borderSize:0,borderRadius:3,boxShadow:!1,boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",paddingTopBottom:12,paddingLeftRight:24}]}]],i=function(e){var t=e.className;return wp.element.createElement("div",{className:t},wp.element.createElement(o,{template:r}))},c=wp.blockEditor.InnerBlocks,d=function(e){var t=e.className;return wp.element.createElement("div",{className:t},wp.element.createElement(c.Content,null))},p=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/service",{title:p("Service"),description:p("Use this Service block to showcase services your website offers."),icon:a.p,category:"themeisle-blocks",keywords:["services","icon","features"],edit:i,save:d})},,function(e,t,n){n(39),n(95),n(102),n(97),n(96),n(98),n(94),n(101),n(27),n(99),n(33),n(32),n(14),n(25),n(26),n(13),n(82),n(100),n(93),n(89),n(35),n(36),e.exports=n(34)},function(e,t,n){n.p=window.themeisleGutenberg.packagePath},,,,,,function(e,t){function n(e,t,n,a,l,o,r){try{var i=e[o](r),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(a,l)}function a(e){return function(){var t=this,a=arguments;return new Promise((function(l,o){var r=e.apply(t,a);function i(e){n(r,l,o,i,c,"next",e)}function c(e){n(r,l,o,i,c,"throw",e)}i(void 0)}))}}var l=lodash.debounce,o=wp.apiFetch,r=wp.data,i=r.select,c=r.subscribe,d=l(a(regeneratorRuntime.mark((function e(){var t,n,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i("core/editor"),n=t.getCurrentPostId,a=n(),e.next=4,o({path:"themeisle-gutenberg-blocks/v1/save_post_meta/".concat(a),method:"POST"});case 4:case"end":return e.stop()}}),e)}))),1e3),p={};c((function(){var e=i("core/editor"),t=e.isCurrentPostPublished,n=e.isSavingPost,a=e.isPublishingPost,l=e.isAutosavingPost,r=e.__experimentalGetReusableBlocks,c=e.__experimentalIsSavingReusableBlock,m=l(),s=a(),u=n(),b=r(),g=t();b.map((function(e){if(e){var t=(n=e.id,c(n));t&&!e.isTemporary&&(p[e.id]={id:e.id,isSaving:!0}),t||e.isTemporary||!p[e.id]||e.id===p[e.id].id&&!t&&p[e.id].isSaving&&(p[e.id].isSaving=!1,o({path:"themeisle-gutenberg-blocks/v1/save_block_meta/".concat(e.id),method:"POST"}))}var n})),!(s||g&&u)||m||status||d()}))},,function(e,t,n){},,function(e,t,n){},function(e,t){var n=wp.i18n.__,a=wp.richText,l=a.registerFormatType,o=a.toggleFormat,r=wp.blockEditor,i=r.RichTextShortcut,c=r.RichTextToolbarButton,d=wp.element.Fragment,p="themeisle-blocks/mark";l(p,{name:p,title:n("Highlight"),tagName:"mark",className:null,edit:function(e){var t=e.isActive,a=e.value,l=e.onChange,r=function(){return l(o(a,{type:p}))};return wp.element.createElement(d,null,wp.element.createElement(i,{type:"primary",character:"m",onUse:r}),wp.element.createElement(c,{icon:"admin-customizer",title:n("Highlight"),onClick:r,isActive:t,shortcutType:"access",shortcutCharacter:"m"}))}})},,,,,,function(e,t,n){},,function(e,t,n){},,function(e,t,n){},,,,,,function(e,t,n){},function(e,t,n){},,,,,function(e,t,n){},,,,,,,,,,function(e,t,n){"use strict";n.r(t);n(83),n(84),n(32),n(33)},function(e,t,n){},,function(e,t,n){},,function(e,t,n){},,function(e,t,n){"use strict";n.r(t);n(35),n(36),n(34)},,,,function(e,t,n){"use strict";n.r(t);n(87),n(88);var a={id:{type:"string"},images:{type:"array",default:[],source:"query",selector:".wp-block-themeisle-blocks-slider-item-wrapper",query:{id:{type:"number",source:"attribute",selector:"img",attribute:"data-id"},url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption",default:""}}},perView:{type:"number",default:1},gap:{type:"number",default:0},peek:{type:"number",default:0},autoplay:{type:"boolean",default:!0},delay:{type:"number",default:2},hideArrows:{type:"boolean",default:!1},hideBullets:{type:"boolean",default:!1},height:{type:"number",default:400}},l=n(0),o=n.n(l),r=wp.components,i=r.Path,c=r.SVG,d=wp.element.Fragment,p=function(e){var t=e.attributes;return wp.element.createElement(d,null,!t.hideArrows&&wp.element.createElement("div",{className:"glide__arrows","data-glide-el":"controls"},wp.element.createElement("button",{className:"glide__arrow glide__arrow--left","data-glide-dir":"<"},wp.element.createElement(c,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 100 100"},wp.element.createElement(i,{d:"M 10,50 L 60,100 L 70,90 L 30,50 L 70,10 L 60,0 Z"}))),wp.element.createElement("button",{className:"glide__arrow glide__arrow--right","data-glide-dir":">"},wp.element.createElement(c,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 100 100"},wp.element.createElement(i,{d:"M 10,50 L 60,100 L 70,90 L 30,50 L 70,10 L 60,0 Z"})))),!t.hideBullets&&wp.element.createElement("div",{className:"glide__bullets","data-glide-el":"controls[nav]"},t.images.map((function(e,t){return wp.element.createElement("button",{className:"glide__bullet","data-glide-dir":"=".concat(t)})}))))},m=wp.blockEditor.RichText,s=[{attributes:{id:{type:"string"},align:{type:"string"},images:{type:"array",default:[],source:"query",selector:".wp-block-themeisle-blocks-slider-item-wrapper",query:{id:{type:"number",source:"attribute",selector:"img",attribute:"data-id"},url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption",default:""}}},perView:{type:"number",default:1},gap:{type:"number",default:0},peek:{type:"number",default:0},autoplay:{type:"boolean",default:!0},height:{type:"number",default:400}},supports:{align:["wide","full"]},save:function(e){var t=e.attributes,n=e.className;return wp.element.createElement("div",{id:t.id,className:o()("wp-block-themeisle-blocks-slider","glide",n),"data-per-view":t.perView,"data-gap":t.gap,"data-peek":t.peek,"data-autoplay":t.autoplay},wp.element.createElement("div",{className:"glide__track","data-glide-el":"track"},wp.element.createElement("div",{className:"glide__slides",style:{height:"".concat(t.height,"px")}},t.images.map((function(e){return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-slider-item-wrapper glide__slide",tabIndex:"0"},wp.element.createElement("figure",null,wp.element.createElement("img",{key:e.id,className:"wp-block-themeisle-blocks-slider-item",src:e.url,alt:e.alt,title:e.alt,"data-id":e.id}),!m.isEmpty(e.caption)&&wp.element.createElement(m.Content,{tagName:"figcaption",value:e.caption})))}))),wp.element.createElement(p,{attributes:t})))}}],u=lodash,b=u.filter,g=u.every,h=wp.blocks.createBlock,f={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:function(e){var t=e[0].align;t=g(e,["align",t])?t:void 0;var n=b(e,(function(e){return e.url}));return h("themeisle-blocks/slider",{images:n.map((function(e){return{id:e.id,url:e.url,alt:e.alt,caption:e.caption}})),align:t})}},{type:"block",blocks:["core/gallery"],transform:function(e){var t=e.images,n=e.align;return h("themeisle-blocks/slider",{images:t.map((function(e){return{id:e.id,url:e.url,alt:e.alt,caption:e.caption}})),align:n})}}],to:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.images,n=e.align;return 0<t.length?t.map((function(e){var t=e.id,a=e.url,l=e.alt,o=e.caption;return h("core/image",{id:t,url:a,alt:l,caption:o,align:n})})):h("core/image",{align:n})}},{type:"block",blocks:["core/gallery"],transform:function(e){var t=e.images,n=e.align;return h("core/gallery",{images:t.map((function(e){return{id:e.id,url:e.url,alt:e.alt,caption:e.caption}})),align:n})}}]},y=lodash.debounce,w=wp.blockEditor.MediaPlaceholder,v=function(e){var t=e.labels,n=e.icon,a=e.isAppender,l=void 0!==a&&a,o=e.value,r=void 0===o?{}:o,i=e.onSelectImages,c=y(i,250);return wp.element.createElement(w,{labels:t,icon:n,accept:"image/*",allowedTypes:["image"],isAppender:l,className:"wp-block-themeisle-blocks-slider-uploader",value:r,onSelect:c,multiple:!0})},k=wp.i18n.__,T=lodash.max,E=wp.blockEditor.InspectorControls,x=wp.components,C=x.PanelBody,S=x.RangeControl,B=x.ToggleControl,M=wp.element.Fragment,O=function(e){var t=e.attributes,n=e.setAttributes,a=e.slider,l=e.changePerView;return wp.element.createElement(E,null,wp.element.createElement(C,{title:k("Settings")},t.images.length&&wp.element.createElement(M,null,wp.element.createElement(S,{label:k("Slides Per Page"),help:k("A number of visible slides."),value:t.perView,onChange:l,min:1,max:T([Math.round(t.images.length/2),1])}),1<t.perView&&wp.element.createElement(M,null,wp.element.createElement(S,{label:k("Gap"),help:k("A size of the space between slides."),value:t.gap,onChange:function(e){n({gap:Number(e)}),a.update({gap:Number(e)})},min:0,max:100}),wp.element.createElement(S,{label:k("Peek"),help:k("The value of the future slides which have to be visible in the current slide."),value:t.peek,onChange:function(e){n({peek:Number(e)}),a.update({peek:Number(e)})},min:0,max:100})),wp.element.createElement(S,{label:k("Height"),help:k("Slider height in pixels."),value:t.height,onChange:function(e){n({height:Number(e)})},min:100,max:1400}),wp.element.createElement(B,{label:k("Autoplay"),help:k("Autoplay slider in the front."),checked:t.autoplay,onChange:function(e){n({autoplay:e})}}),t.autoplay&&wp.element.createElement(S,{label:k("Delay"),help:k("Delay in slide change (in seconds)."),value:t.delay,onChange:function(e){n({delay:e})},min:1,max:10}),wp.element.createElement(B,{label:k("Hide Arrows"),help:k("Hide navigation arrows."),checked:t.hideArrows,onChange:function(e){n({hideArrows:e})}}),wp.element.createElement(B,{label:k("Hide Bullets"),help:k("Hide navigation bullets."),checked:t.hideBullets,onChange:function(e){n({hideBullets:e})}}))))};function R(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var N=wp.i18n.__,L=lodash.filter,z=wp.blockEditor.RichText,H=wp.components.IconButton,A=wp.element.Fragment,_=function(e){var t=e.images,n=e.image,a=e.index,l=e.isFirstItem,r=e.isLastItem,i=e.isSelected,c=e.setAttributes,d=e.setSelectedImage,p=function(e,n){var a=R(t);a.splice(n,1,t[e]),a.splice(e,1,t[n]),d(n),c({images:a})};return wp.element.createElement("div",{className:o()("wp-block-themeisle-blocks-slider-item-wrapper glide__slide",{"is-selected":i}),tabIndex:"0",onClick:function(){return d(n.id)},onFocus:function(){return d(n.id)}},wp.element.createElement("figure",null,wp.element.createElement("img",{key:n.id,className:"wp-block-themeisle-blocks-slider-item",src:n.url,alt:n.alt,title:n.alt,"data-id":n.id}),i&&wp.element.createElement(A,null,wp.element.createElement("div",{className:"wp-block-themeisle-blocks-slider-item-move-menu"},wp.element.createElement(H,{icon:"arrow-left-alt2",onClick:l?void 0:function(){0!==a&&p(a,a-1)},className:"wp-block-themeisle-blocks-slider-item-move-backward",label:N("Move image backward"),"aria-disabled":l,disabled:!i}),wp.element.createElement(H,{icon:"arrow-right-alt2",onClick:r?void 0:function(){a!==t.length-1&&p(a,a+1)},className:"wp-block-themeisle-blocks-slider-item-move-forward",label:N("Move image forward"),"aria-disabled":r,disabled:!i})),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-slider-item-delete-menu"},wp.element.createElement(H,{icon:"no-alt",onClick:function(){var e=L(t,(function(e,t){return a!==t}));d(null),c({images:e})},className:"wp-block-themeisle-blocks-slider-item-delete",label:N("Remove image")}))),(i||!z.isEmpty(n.caption))&&wp.element.createElement(z,{tagName:"figcaption",placeholder:i?N("Write caption…"):null,value:n.caption,onChange:function(e){var n=R(t);n[a].caption=e,c({images:n})},multiline:!1})))};function P(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function I(e,t,n,a,l,o,r){try{var i=e[o](r),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(a,l)}function j(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var F=wp.i18n.__,G=lodash.max,V=wp.components.ResizableBox,D=wp.element,W=D.Fragment,q=D.useEffect,Z=D.useRef,U=D.useState,Q=[],K=function(e){var t=e.attributes,n=e.setAttributes,a=e.className,l=e.clientId,r=e.isSelected,i=e.toggleSelection;q((function(){return b(),function(){t.images.length&&c.current.destroy()}}),[]),q((function(){t.images.length&&(u(null),null!==c.current&&(c.current.destroy(),g()))}),[r,t.align]),q((function(){t.images.length&&t.perView>t.images.length&&f(G([Math.round(t.images.length/2),1]))}),[t.images]);var c=Z(null),d=Z(null),m=j(U(null),2),s=m[0],u=m[1],b=function(){var e,a=(e=regeneratorRuntime.mark((function e(){var a,o,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=window.themeisleGutenberg.blockIDs?window.themeisleGutenberg.blockIDs:[],void 0!==t.id){e.next=10;break}return o="wp-block-themeisle-blocks-slider-".concat(l.substr(0,8)),e.next=5,n({id:o});case 5:Q.push(o),d.current=o,a.push(o),e.next=21;break;case 10:if(!Q.includes(t.id)){e.next=18;break}return r="wp-block-themeisle-blocks-slider-".concat(l.substr(0,8)),e.next=14,n({id:r});case 14:Q.push(r),d.current=r,e.next=21;break;case 18:Q.push(t.id),d.current=t.id,a.push(t.id);case 21:window.themeisleGutenberg.blockIDs=P(a),t.images.length&&g();case 23:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(a,l){var o=e.apply(t,n);function r(e){I(o,a,l,r,i,"next",e)}function i(e){I(o,a,l,r,i,"throw",e)}r(void 0)}))});return function(){return a.apply(this,arguments)}}(),g=function(){c.current=new Glide("#".concat(t.id||d.current),{type:"carousel",keyboard:!1,perView:t.perView,gap:t.gap,peek:t.peek,autoplay:!1,breakpoints:{800:{perView:1,peek:0,gap:0}}}).mount()},h=function(e){n({images:e.map((function(e){return{id:e.id,url:e.url,alt:e.alt,caption:e.caption}}))}),null!==c.current&&c.current.destroy(),g()},f=function(e){n({perView:Number(e)}),c.current.update({perView:Number(e)}),1===e&&(n({gap:0,peek:0}),c.current.update({gap:0,peek:0}))};return Array.isArray(t.images)&&!t.images.length?wp.element.createElement(v,{labels:{title:F("Slider"),instructions:F("Drag images, upload new ones or select files from your library.")},icon:"images-alt2",onSelectImages:h}):wp.element.createElement(W,null,wp.element.createElement(O,{attributes:t,setAttributes:n,slider:c.current,changePerView:f}),wp.element.createElement(V,{size:{height:t.height},enable:{top:!1,right:!1,bottom:!0,left:!1},minHeight:100,maxHeight:1400,onResizeStart:function(){i(!1)},onResizeStop:function(e,a,l,o){n({height:parseInt(t.height+o.height,10)}),i(!0)},className:o()("wp-block-themeisle-blocks-slider-resizer",{"is-focused":r})},wp.element.createElement("div",{id:t.id,className:o()("wp-block-themeisle-blocks-slider","glide",a)},wp.element.createElement("div",{className:"glide__track","data-glide-el":"track"},wp.element.createElement("div",{className:"glide__slides",style:{height:"".concat(t.height,"px")}},t.images.map((function(e,a){return wp.element.createElement(_,{images:t.images,image:e,index:a,isFirstItem:0===a,isLastItem:a+1===t.images.length,isSelected:r&&e.id===s,setAttributes:n,setSelectedImage:u})}))),wp.element.createElement(p,{attributes:t})))),r&&wp.element.createElement(v,{labels:{title:"",instructions:""},icon:null,onSelectImages:h,isAppender:!0,value:t.images}))},J=wp.blockEditor.RichText,Y=function(e){var t=e.attributes,n=e.className,a=t.autoplay&&2!==t.delay?1e3*t.delay:t.autoplay;return wp.element.createElement("div",{id:t.id,className:o()("wp-block-themeisle-blocks-slider","glide",n),"data-per-view":t.perView,"data-gap":t.gap,"data-peek":t.peek,"data-autoplay":a,"data-height":"".concat(t.height,"px")},wp.element.createElement("div",{className:"glide__track","data-glide-el":"track"},wp.element.createElement("div",{className:"glide__slides"},t.images.map((function(e){return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-slider-item-wrapper glide__slide",tabIndex:"0"},wp.element.createElement("figure",null,wp.element.createElement("img",{key:e.id,className:"wp-block-themeisle-blocks-slider-item",src:e.url,alt:e.alt,title:e.alt,"data-id":e.id}),!J.isEmpty(e.caption)&&wp.element.createElement(J.Content,{tagName:"figcaption",value:e.caption})))}))),wp.element.createElement(p,{attributes:t})))},X=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/slider",{title:X("Slider"),description:X("Minimal image slider to showcase beautiful images."),icon:"images-alt2",category:"themeisle-blocks",keywords:["slider","gallery","carousel"],attributes:a,deprecated:s,transforms:f,supports:{align:["wide","full"]},edit:K,save:Y})},function(e,t,n){"use strict";n.r(t);n(60),n(61);var a=n(2),l={id:{type:"string"},style:{type:"string",default:"standard"},location:{type:"string",default:"La Sagrada Familia, Barcelona, Spain"},latitude:{type:"string"},longitude:{type:"string"},type:{type:"string",default:"roadmap"},zoom:{type:"number",default:15},height:{type:"number",default:400},draggable:{type:"boolean",default:!0},mapTypeControl:{type:"boolean",default:!0},zoomControl:{type:"boolean",default:!0},fullscreenControl:{type:"boolean",default:!0},streetViewControl:{type:"boolean",default:!0},markers:{type:"array",default:[]}},o=n(0),r=n.n(o),i=n(15),c=n.n(i),d=wp.i18n.__,p=wp.components,m=p.Button,s=p.ExternalLink,u=p.Placeholder,b=p.Spinner,g=p.TextControl,h=function(e){var t=e.className,n=e.api,a=e.isAPILoaded,l=e.isAPISaved,o=e.isSaving,r=e.changeAPI,i=e.saveAPIKey;return a?l?void 0:wp.element.createElement(u,{icon:"admin-site",label:d("Google Maps"),instructions:d("A Google Maps API key is required, please enter one below."),className:t},wp.element.createElement(g,{type:"text",placeholder:d("Google Maps API Key"),value:n,className:"components-placeholder__input",onChange:r}),wp.element.createElement(m,{isLarge:!0,type:"submit",onClick:i,isBusy:o,disabled:""===n},d("Save API Key")),wp.element.createElement("div",{className:"components-placeholder__instructions"},wp.element.createElement("p",{className:"components-placeholder__text"},d("Need an API key? Get one "),wp.element.createElement(s,{href:"https://developers.google.com/maps/documentation/javascript/get-api-key"},d("here."))),wp.element.createElement("p",{className:"components-placeholder__text"},d("You need to activate Maps and Places API.")))):wp.element.createElement(u,null,wp.element.createElement(b,null),d("Loading…"))},f=n(11),y=wp.i18n.__,w=wp.components,v=w.BaseControl,k=w.Button,T=w.ExternalLink,E=w.IconButton,x=w.SelectControl,C=w.TextControl,S=w.TextareaControl,B=wp.element.useRef,M=function(e){var t=e.marker,n=e.isOpen,a=e.isPlaceAPIAvailable,l=e.openMarker,o=e.removeMarker,i=e.changeMarkerProp,c=B(null);return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-google-map-marker"},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-google-map-marker-title-area"},wp.element.createElement(k,{className:"wp-block-themeisle-blocks-google-map-marker-title",onClick:function(){return l(t.id)}},t.title||y("Custom Marker")),wp.element.createElement(E,{icon:"no-alt",label:y("Remove Marker"),className:"wp-block-themeisle-blocks-google-map-marker-remove",onClick:function(){return o(t.id)}})),wp.element.createElement("div",{className:r()("wp-block-themeisle-blocks-google-map-marker-control-area",{opened:t.id===n})},wp.element.createElement(v,{label:y("Location"),id:"themeisle-location-search-".concat(t.id)},wp.element.createElement("input",{type:"text",id:"themeisle-location-search-".concat(t.id),placeholder:y("Enter a location…"),value:t.location,className:"wp-block-themeisle-blocks-google-map-search",ref:c,onFocus:function(){var e=document.getElementsByClassName("pac-container");Object.keys(e).forEach((function(t){return e[t].remove()}));var n=new google.maps.places.SearchBox(c.current);n.addListener("places_changed",(function(){var e=n.getPlaces();e&&0<e.length&&e.forEach((function(e){var n=e.formatted_address||e.name,a=e.geometry.location.lat(),l=e.geometry.location.lng();i(t.id,"location",n),i(t.id,"latitude",a),i(t.id,"longitude",l)}))}))},onChange:function(e){return i(t.id,"location",e.target.value)},disabled:!a}),!a&&wp.element.createElement("p",null,y("To enable locations earch, please ensure Places API is activated in the Google Developers Console.")+" ",wp.element.createElement(T,{href:"https://developers.google.com/places/web-service/intro"},y("More info.")))),wp.element.createElement(C,{label:y("Latitude"),type:"text",value:t.latitude,onChange:function(e){return i(t.id,"latitude",e)}}),wp.element.createElement(C,{label:y("Longitude"),type:"text",value:t.longitude,onChange:function(e){return i(t.id,"longitude",e)}}),wp.element.createElement(x,{label:y("Map Icon"),value:t.icon||"https://maps.google.com/mapfiles/ms/icons/red-dot.png",options:[{label:y("Red"),value:"https://maps.google.com/mapfiles/ms/icons/red-dot.png"},{label:y("Blue"),value:"https://maps.google.com/mapfiles/ms/icons/blue-dot.png"},{label:y("Yellow"),value:"https://maps.google.com/mapfiles/ms/icons/yellow-dot.png"},{label:y("Green"),value:"https://maps.google.com/mapfiles/ms/icons/green-dot.png"},{label:y("Orange"),value:"https://maps.google.com/mapfiles/ms/icons/orange-dot.png"}],onChange:function(e){return i(t.id,"icon",e)}}),wp.element.createElement(C,{label:y("Title"),type:"text",value:t.title,onChange:function(e){return i(t.id,"title",e)}}),wp.element.createElement(S,{label:y("Description"),type:"text",value:t.description,onChange:function(e){return i(t.id,"description",e)}})))};function O(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var R=wp.i18n.__,N=wp.components.Button,L=wp.element,z=L.Fragment,H=L.useEffect,A=L.useState,_=function(e){var t=e.initialOpen,n=e.markers,a=e.isPlaceAPIAvailable,l=e.addMarker,o=e.removeMarker,r=e.changeMarkerProp;H((function(){!1!==t&&d(t)}),[t]);var i=O(A(null),2),c=i[0],d=i[1],p=function(e){c===e&&(e=null),d(e)};return wp.element.createElement(z,null,wp.element.createElement("div",{className:"wp-block-themeisle-blocks-google-map-marker-group"},n.map((function(e){return wp.element.createElement(M,{marker:e,isOpen:c,isPlaceAPIAvailable:a,openMarker:p,removeMarker:o,changeMarkerProp:r})}))),wp.element.createElement(N,{isDefault:!0,isLarge:!0,className:"wp-block-themeisle-blocks-google-map-marker-add",onClick:l},R("Add Marker")))},P=wp.i18n.__,I=wp.components,j=I.BaseControl,F=I.Button,G=I.ExternalLink,V=I.PanelBody,D=I.RangeControl,W=I.SelectControl,q=I.TextControl,Z=I.ToggleControl,U=wp.blockEditor.InspectorControls,Q=wp.element.useRef,K=function(e){var t=e.attributes,n=e.setAttributes,a=e.map,l=e.changeStyle,o=e.isPlaceAPIAvailable,r=e.isMarkerOpen,i=e.setMarkerOpen,c=e.removeMarker,d=e.changeMarkerProp,p=e.addMarkerManual,m=e.api,s=e.isSaving,u=e.changeAPI,b=e.saveAPIKey,g=Q(null);return wp.element.createElement(U,null,wp.element.createElement(V,{title:P("Styles"),initialOpen:!1},wp.element.createElement(f.b,{value:t.style,options:[{label:P("Standard"),value:"standard",image:themeisleGutenberg.assetsPath+"/icons/map-standard.png"},{label:P("Silver"),value:"silver",image:themeisleGutenberg.assetsPath+"/icons/map-silver.png"},{label:P("Retro"),value:"retro",image:themeisleGutenberg.assetsPath+"/icons/map-retro.png"},{label:P("Dark"),value:"dark",image:themeisleGutenberg.assetsPath+"/icons/map-dark.png"},{label:P("Night"),value:"night",image:themeisleGutenberg.assetsPath+"/icons/map-night.png"},{label:P("Aubergine"),value:"aubergine",image:themeisleGutenberg.assetsPath+"/icons/map-aubergine.png"}],onChange:l})),wp.element.createElement(V,{title:P("Location")},wp.element.createElement(j,{label:P("Location"),id:"wp-block-themeisle-blocks-google-map-search"},wp.element.createElement("input",{type:"text",id:"wp-block-themeisle-blocks-google-map-search",placeholder:P("Enter a location…"),value:t.location,className:"wp-block-themeisle-blocks-google-map-search",ref:g,onFocus:function(){var e=document.getElementsByClassName("pac-container");Object.keys(e).forEach((function(t){return e[t].remove()}));var t=new google.maps.places.SearchBox(g.current);t.addListener("places_changed",(function(){var e=t.getPlaces();e&&0<e.length&&e.forEach((function(e){var t=e.geometry.location.lat(),l=e.geometry.location.lng(),o=new google.maps.LatLng(t,l);a.setCenter(o),n({location:e.formatted_address||e.name,latitude:t.toString(),longitude:l.toString()})}))}))},onChange:function(e){n({location:e.target.value})},disabled:!o}),!o&&wp.element.createElement("p",null,P("To enable locations earch, please ensure Places API is activated in the Google Developers Console.")+" ",wp.element.createElement(G,{href:"https://developers.google.com/places/web-service/intro"},P("More info.")))),wp.element.createElement(q,{label:P("Latitude"),type:"text",placeholder:P("Enter latitude…"),value:t.latitude,onChange:function(e){n({latitude:e.toString()});var l=Number(e),o=t.longitude,r=new google.maps.LatLng(l,o);a.setCenter(r)}}),wp.element.createElement(q,{label:P("Longitude"),type:"text",placeholder:P("Enter longitude"),value:t.longitude,onChange:function(e){n({longitude:e.toString()});var l=t.latitude,o=Number(e),r=new google.maps.LatLng(l,o);a.setCenter(r)}})),wp.element.createElement(V,{title:P("Positioning & Zooming"),initialOpen:!1},wp.element.createElement(W,{label:P("Map Type"),value:t.type,options:[{label:P("Road Map"),value:"roadmap"},{label:P("Satellite View"),value:"satellite"},{label:P("Hybrid"),value:"hybrid"},{label:P("Terrain"),value:"terrain"}],onChange:function(e){n({type:e}),a.setMapTypeId(google.maps.MapTypeId[e.toUpperCase()])}}),wp.element.createElement(D,{label:P("Map Zoom Level"),value:t.zoom,onChange:function(e){n({zoom:e}),a.setZoom(e)},min:0,max:20}),wp.element.createElement(D,{label:P("Map Height"),value:t.height,onChange:function(e){n({height:e})},min:100,max:1400})),wp.element.createElement(V,{title:P("Controls"),initialOpen:!1},wp.element.createElement(j,null,P("The following changes will not affect block preview during the editing process. You can click outside the block to see the changes take effect.")),wp.element.createElement(Z,{label:"Draggable Map",checked:t.draggable,onChange:function(){n({draggable:!t.draggable})}}),wp.element.createElement(Z,{label:"Map Type Control",checked:t.mapTypeControl,onChange:function(){n({mapTypeControl:!t.mapTypeControl})}}),wp.element.createElement(Z,{label:"Zoom Control",checked:t.zoomControl,onChange:function(){n({zoomControl:!t.zoomControl})}}),wp.element.createElement(Z,{label:"Full Screen Control",checked:t.fullscreenControl,onChange:function(){n({fullscreenControl:!t.fullscreenControl})}}),wp.element.createElement(Z,{label:"Streen View Control",checked:t.streetViewControl,onChange:function(){n({streetViewControl:!t.streetViewControl})}})),wp.element.createElement(V,{title:P("Markers"),initialOpen:!1,opened:!1!==r||void 0,onToggle:function(){!1!==r&&i(!0)}},wp.element.createElement(_,{markers:t.markers,removeMarker:c,changeMarkerProp:d,addMarker:p,isPlaceAPIAvailable:o,initialOpen:r})),wp.element.createElement(V,{title:P("Global Settings"),initialOpen:!1},wp.element.createElement(q,{label:P("Google Maps API Key"),type:"text",placeholder:P("Google Maps API Key"),value:m,className:"components-placeholder__input",onChange:u,help:P("Changing the API key effects all Google Map Embed blocks. You will have to refresh the page after changing your API keys.")}),wp.element.createElement(F,{isLarge:!0,type:"submit",onClick:b,isBusy:s},P("Save API Key"))))};function J(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Y=wp.i18n.__,X=wp.components,$=X.BaseControl,ee=X.Button,te=X.ButtonGroup,ne=X.Modal,ae=X.SelectControl,le=X.TextControl,oe=X.TextareaControl,re=wp.element,ie=re.useEffect,ce=re.useRef,de=re.useState,pe=re.Fragment,me=function(e){var t=e.marker,n=e.isAdvanced,a=e.isPlaceAPIAvailable,l=e.addMarker,o=e.close;ie((function(){d(t.id),s(t.location),g(t.title),y(t.icon),k(t.description),x(t.latitude),B(t.longitude)}),[t]);var r=ce(null),i=J(de(t.id),2),c=i[0],d=i[1],p=J(de(t.location),2),m=p[0],s=p[1],u=J(de(t.title),2),b=u[0],g=u[1],h=J(de(t.icon),2),f=h[0],y=h[1],w=J(de(t.description),2),v=w[0],k=w[1],T=J(de(t.latitude),2),E=T[0],x=T[1],C=J(de(t.longitude),2),S=C[0],B=C[1];return wp.element.createElement(ne,{title:Y("Add Marker"),onRequestClose:o,shouldCloseOnClickOutside:!1},n&&wp.element.createElement(pe,null,wp.element.createElement($,{label:Y("Location"),id:"themeisle-location-search-".concat(t.id)},wp.element.createElement("input",{type:"text",id:"themeisle-location-search-".concat(c),placeholder:Y("Enter a location…"),value:m,className:"wp-block-themeisle-blocks-google-map-search",ref:r,onFocus:function(){var e=document.getElementsByClassName("pac-container");Object.keys(e).forEach((function(t){return e[t].remove()}));var t=new google.maps.places.SearchBox(r.current);t.addListener("places_changed",(function(){var e=t.getPlaces();e&&0<e.length&&e.forEach((function(e){var t=e.formatted_address||e.name,n=e.geometry.location.lat(),a=e.geometry.location.lng();s(t),x(n),B(a)}))}))},onChange:function(e){return s(e.target.value)},disabled:!a})),wp.element.createElement(le,{label:Y("Latitude"),type:"text",value:E,onChange:x}),wp.element.createElement(le,{label:Y("Longitude"),type:"text",value:S,onChange:B})),wp.element.createElement(le,{label:Y("Title"),type:"text",value:b,onChange:g}),wp.element.createElement(oe,{label:Y("Description"),type:"text",value:v,onChange:k}),wp.element.createElement(ae,{label:Y("Map Icon"),value:f||"https://maps.google.com/mapfiles/ms/icons/red-dot.png",options:[{label:Y("Red"),value:"https://maps.google.com/mapfiles/ms/icons/red-dot.png"},{label:Y("Blue"),value:"https://maps.google.com/mapfiles/ms/icons/blue-dot.png"},{label:Y("Yellow"),value:"https://maps.google.com/mapfiles/ms/icons/yellow-dot.png"},{label:Y("Green"),value:"https://maps.google.com/mapfiles/ms/icons/green-dot.png"},{label:Y("Orange"),value:"https://maps.google.com/mapfiles/ms/icons/orange-dot.png"}],onChange:y}),wp.element.createElement(te,null,wp.element.createElement(ee,{isLarge:!0,isPrimary:!0,onClick:function(){return l(m,b,f,v,E,S)}},Y("Add")),wp.element.createElement(ee,{isLarge:!0,isDefault:!0,onClick:o},Y("Cancel"))))},se=wp.i18n.__,ue=wp.components.Button,be=wp.element,ge=be.Fragment,he=be.useEffect,fe=function(e){var t=e.attributes,n=e.className,a=e.initMap,l=e.displayMap,o=e.isMapLoaded,i=e.selectMarker,c=e.isSelectingMarker;return he((function(){l&&a()}),[l]),wp.element.createElement(ge,null,wp.element.createElement("div",{id:t.id,className:r()(n,{"is-selecting-marker":c}),style:{height:t.height+"px"}}),o&&wp.element.createElement(ue,{className:"wp-block-themeisle-blocks-google-map-marker-button",title:se("Add Button"),onClick:i},wp.element.createElement("span",{className:"dashicons dashicons-sticky"})))},ye={standard:[],silver:[{elementType:"geometry",stylers:[{color:"#f5f5f5"}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{elementType:"labels.text.stroke",stylers:[{color:"#f5f5f5"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#bdbdbd"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#eeeeee"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#e5e5e5"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#ffffff"}]},{featureType:"road.arterial",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#dadada"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"transit.line",elementType:"geometry",stylers:[{color:"#e5e5e5"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#eeeeee"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#c9c9c9"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]}],retro:[{elementType:"geometry",stylers:[{color:"#ebe3cd"}]},{elementType:"labels.text.fill",stylers:[{color:"#523735"}]},{elementType:"labels.text.stroke",stylers:[{color:"#f5f1e6"}]},{featureType:"administrative",elementType:"geometry.stroke",stylers:[{color:"#c9b2a6"}]},{featureType:"administrative.land_parcel",elementType:"geometry.stroke",stylers:[{color:"#dcd2be"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#ae9e90"}]},{featureType:"landscape.natural",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#93817c"}]},{featureType:"poi.park",elementType:"geometry.fill",stylers:[{color:"#a5b076"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#447530"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#f5f1e6"}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#fdfcf8"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#f8c967"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#e9bc62"}]},{featureType:"road.highway.controlled_access",elementType:"geometry",stylers:[{color:"#e98d58"}]},{featureType:"road.highway.controlled_access",elementType:"geometry.stroke",stylers:[{color:"#db8555"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#806b63"}]},{featureType:"transit.line",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"transit.line",elementType:"labels.text.fill",stylers:[{color:"#8f7d77"}]},{featureType:"transit.line",elementType:"labels.text.stroke",stylers:[{color:"#ebe3cd"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"water",elementType:"geometry.fill",stylers:[{color:"#b9d3c2"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#92998d"}]}],dark:[{elementType:"geometry",stylers:[{color:"#212121"}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{elementType:"labels.text.stroke",stylers:[{color:"#212121"}]},{featureType:"administrative",elementType:"geometry",stylers:[{color:"#757575"}]},{featureType:"administrative.country",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"administrative.land_parcel",stylers:[{visibility:"off"}]},{featureType:"administrative.locality",elementType:"labels.text.fill",stylers:[{color:"#bdbdbd"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#181818"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"poi.park",elementType:"labels.text.stroke",stylers:[{color:"#1b1b1b"}]},{featureType:"road",elementType:"geometry.fill",stylers:[{color:"#2c2c2c"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#8a8a8a"}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#373737"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#3c3c3c"}]},{featureType:"road.highway.controlled_access",elementType:"geometry",stylers:[{color:"#4e4e4e"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"transit",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#000000"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#3d3d3d"}]}],night:[{elementType:"geometry",stylers:[{color:"#242f3e"}]},{elementType:"labels.text.fill",stylers:[{color:"#746855"}]},{elementType:"labels.text.stroke",stylers:[{color:"#242f3e"}]},{featureType:"administrative.locality",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#263c3f"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#6b9a76"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#38414e"}]},{featureType:"road",elementType:"geometry.stroke",stylers:[{color:"#212a37"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#9ca5b3"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#746855"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#1f2835"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#f3d19c"}]},{featureType:"transit",elementType:"geometry",stylers:[{color:"#2f3948"}]},{featureType:"transit.station",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#17263c"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#515c6d"}]},{featureType:"water",elementType:"labels.text.stroke",stylers:[{color:"#17263c"}]}],aubergine:[{elementType:"geometry",stylers:[{color:"#1d2c4d"}]},{elementType:"labels.text.fill",stylers:[{color:"#8ec3b9"}]},{elementType:"labels.text.stroke",stylers:[{color:"#1a3646"}]},{featureType:"administrative.country",elementType:"geometry.stroke",stylers:[{color:"#4b6878"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#64779e"}]},{featureType:"administrative.province",elementType:"geometry.stroke",stylers:[{color:"#4b6878"}]},{featureType:"landscape.man_made",elementType:"geometry.stroke",stylers:[{color:"#334e87"}]},{featureType:"landscape.natural",elementType:"geometry",stylers:[{color:"#023e58"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#283d6a"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#6f9ba5"}]},{featureType:"poi",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"poi.park",elementType:"geometry.fill",stylers:[{color:"#023e58"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#3C7680"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#304a7d"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#98a5be"}]},{featureType:"road",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#2c6675"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#255763"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#b0d5ce"}]},{featureType:"road.highway",elementType:"labels.text.stroke",stylers:[{color:"#023e58"}]},{featureType:"transit",elementType:"labels.text.fill",stylers:[{color:"#98a5be"}]},{featureType:"transit",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"transit.line",elementType:"geometry.fill",stylers:[{color:"#283d6a"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#3a4762"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#0e1626"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#4e6d70"}]}]};function we(e,t,n,a,l,o,r){try{var i=e[o](r),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(a,l)}function ve(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function ke(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var Te=wp.i18n.__,Ee=wp.components.ResizableBox,xe=wp.element,Ce=xe.Fragment,Se=xe.useEffect,Be=xe.useRef,Me=xe.useState,Oe=[],Re=function(e){var t=e.attributes,n=e.setAttributes,a=e.className,l=e.clientId,o=e.isSelected,i=e.toggleSelection;Se((function(){ee(),window.isMapLoaded=window.isMapLoaded||!1,window["removeMarker_".concat(l.substr(0,8))]=oe,m.current=document.createElement("script"),m.current.type="text/javascript",m.current.async=!0,m.current.defer=!0,m.current.id="themeisle-google-map-api-loading"}),[]),Se((function(){!1!==x&&void 0!==window.google&&s.current.setOptions({mapTypeControl:!!o||t.mapTypeControl,zoomControl:!!o||t.zoomControl,fullscreenControl:!!o||t.fullscreenControl,streetViewControl:!!o||t.streetViewControl})}),[o]),Se((function(){b.current=ke(t.markers)}),[t.markers]);var d=Be([]),p=Be(null),m=Be(null),s=Be(null),u=Be(null),b=Be(ke(t.markers)),g=ve(Me(""),2),y=g[0],w=g[1],v=ve(Me(!1),2),k=v[0],T=v[1],E=ve(Me(!1),2),x=E[0],C=E[1],S=ve(Me(!1),2),B=S[0],M=S[1],O=ve(Me(!1),2),R=O[0],N=O[1],L=ve(Me(!0),2),z=L[0],H=L[1],A=ve(Me(!1),2),_=A[0],P=A[1],I=ve(Me(!1),2),j=I[0],F=I[1],G=ve(Me(!1),2),V=G[0],D=G[1],W=ve(Me(!1),2),q=W[0],Z=W[1],U=ve(Me(!1),2),Q=U[0],J=U[1],Y=ve(Me({}),2),X=Y[0],$=Y[1],ee=function(){var e,a=(e=regeneratorRuntime.mark((function e(){var a,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==t.id){e.next=7;break}return a="wp-block-themeisle-blocks-google-map-".concat(l.substr(0,8)),e.next=4,n({id:a});case 4:Oe.push(a),e.next=15;break;case 7:if(!Oe.includes(t.id)){e.next=14;break}return o="wp-block-themeisle-blocks-google-map-".concat(l.substr(0,8)),e.next=11,n({id:o});case 11:Oe.push(o),e.next=15;break;case 14:Oe.push(t.id);case 15:return e.next=17,wp.api.loadPromise.then((function(){p.current=new wp.api.models.Settings}));case 17:!1===Boolean(themeisleGutenberg.mapsAPI)?k||p.current.fetch().then((function(e){w(e.themeisle_google_map_block_api_key),T(!0),""!==e.themeisle_google_map_block_api_key&&(C(!0),te(e.themeisle_google_map_block_api_key))})):k||(w(themeisleGutenberg.mapsAPI),T(!0),C(!0),te(themeisleGutenberg.mapsAPI));case 18:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(a,l){var o=e.apply(t,n);function r(e){we(o,a,l,r,i,"next",e)}function i(e){we(o,a,l,r,i,"throw",e)}r(void 0)}))});return function(){return a.apply(this,arguments)}}(),te=function(e){window.isMapLoaded||(window.isMapLoaded=!0,m.current.onload=function(){document.getElementById("themeisle-google-map-api-loading").id="themeisle-google-map-api",P(!0)},m.current.src="https://maps.googleapis.com/maps/api/js?key=".concat(e,"&libraries=places&cache=").concat(Math.random()),document.head.appendChild(m.current)),document.getElementById("themeisle-google-map-api")&&P(!0)},ne=function(e,t,n,a){var o='<div class="wp-block-themeisle-blocks-map-overview"><h6 class="wp-block-themeisle-blocks-map-overview-title">'.concat(n,'</h6><div class="wp-block-themeisle-blocks-map-overview-content">').concat(a?"<p>".concat(a,"</p>"):"",'<a class="wp-block-themeisle-blocks-map-overview-delete" onclick="removeMarker_').concat(l.substr(0,8),"( '").concat(t,"' )\">").concat(Te("Delete Marker"),"</a></div></div>"),r=new google.maps.InfoWindow({content:o});e.addListener("click",(function(){u.current=r,r.open(s.current,e)})),google.maps.event.addListener(r,"domready",(function(){F(t)})),google.maps.event.addListener(r,"closeclick",(function(){F(!1)}))},ae=function(e){e.forEach((function(e){var t=e.latitude,n=e.longitude,a=new google.maps.LatLng(t,n),l=new google.maps.Marker({position:a,map:s.current,title:e.title,draggable:!0,icon:e.icon||"https://maps.google.com/mapfiles/ms/icons/red-dot.png"});google.maps.event.addListener(l,"dragend",(function(t){var n=t.latLng.lat(),a=t.latLng.lng();le(e.id,"latitude",n),le(e.id,"longitude",a)})),d.current.push(l),google.maps.event.addListener(l,"click",(function(){u.current&&u.current.close()})),ne(l,e.id,e.title,e.description)}))},le=function(e,t,a){var l=ke(b.current);l.map((function(n){if(n.id===e)return n[t]=a.toString()})),re(),ae(l),n({markers:l})},oe=function(e){var t=ke(b.current);t=t.filter((function(t){return t.id!==e})),n({markers:t}),re(),F(!1),0<t.length&&ae(t)},re=function(){for(var e=0;e<d.current.length;e++)d.current[e].setMap(null);d.current=[]},ie=function(){!1===Boolean(themeisleGutenberg.mapsAPI)&&(N(!0),new wp.api.models.Settings({themeisle_google_map_block_api_key:y}).save().then((function(e){var t=!1;""!==e.themeisle_google_map_block_api_key&&(t=!0),N(!1),C(t),""!==e.themeisle_google_map_block_api_key&&(window.isMapLoaded=!1,te(e.themeisle_google_map_block_api_key))})))},ce=function(e){n({style:e}),s.current.setOptions({styles:ye[e]})};return k&&x?wp.element.createElement(Ce,null,wp.element.createElement(f.a,{label:Te("Block Styles"),value:t.style,options:[{label:Te("Standard"),value:"standard",image:themeisleGutenberg.assetsPath+"/icons/map-standard.png"},{label:Te("Silver"),value:"silver",image:themeisleGutenberg.assetsPath+"/icons/map-silver.png"},{label:Te("Retro"),value:"retro",image:themeisleGutenberg.assetsPath+"/icons/map-retro.png"},{label:Te("Dark"),value:"dark",image:themeisleGutenberg.assetsPath+"/icons/map-dark.png"},{label:Te("Night"),value:"night",image:themeisleGutenberg.assetsPath+"/icons/map-night.png"},{label:Te("Aubergine"),value:"aubergine",image:themeisleGutenberg.assetsPath+"/icons/map-aubergine.png"}],onChange:ce}),wp.element.createElement(K,{attributes:t,setAttributes:n,map:s.current,changeStyle:ce,isPlaceAPIAvailable:z,isMarkerOpen:j,setMarkerOpen:F,removeMarker:oe,changeMarkerProp:le,addMarkerManual:function(){var e=c()(),t=Te("Custom Marker"),n=s.current.getCenter(),a=n.lat(),l=n.lng();Z(!0),J(!0),$({id:e,location:"",title:t,icon:"https://maps.google.com/mapfiles/ms/icons/red-dot.png",description:"",latitude:a,longitude:l})},api:y,isSaving:R,changeAPI:w,saveAPIKey:ie}),q&&wp.element.createElement(me,{marker:X,isAdvanced:Q,isPlaceAPIAvailable:z,close:function(){return Z(!1)},addMarker:function(e,a,l,o,r,i){var p=new google.maps.LatLng(r,i),m=c()(),b=new google.maps.Marker({position:p,map:s.current,title:a,draggable:!0,icon:l});google.maps.event.addListener(b,"dragend",(function(e){var t=e.latLng.lat(),n=e.latLng.lng();le(m,"latitude",t),le(m,"longitude",n)})),d.current.push(b);var g=ke(t.markers),h={id:m,location:e,title:a,icon:l,description:o,latitude:r,longitude:i};g.push(h),n({markers:g}),google.maps.event.addListener(b,"click",(function(){u.current&&u.current.close()})),ne(b,h.id,a,o),Z(!1),D(!1)}}),wp.element.createElement(Ee,{size:{height:t.height},enable:{top:!1,right:!1,bottom:!0,left:!1},minHeight:100,maxHeight:1400,onResizeStart:function(){i(!1)},onResizeStop:function(e,a,l,o){n({height:parseInt(t.height+o.height,10)}),i(!0)},className:r()("wp-block-themeisle-blocks-google-map-resizer",{"is-focused":o})},wp.element.createElement(fe,{attributes:t,className:a,initMap:function(){if(s.current=new google.maps.Map(document.getElementById(t.id),{center:{lat:Number(t.latitude)||41.4036299,lng:Number(t.longitude)||2.1743558000000576},gestureHandling:"cooperative",zoom:t.zoom,mapTypeId:t.type,styles:ye[t.style]}),t.location&&void 0===t.latitude&&void 0===t.longitude){var e={query:t.location,fields:["name","geometry"]};new google.maps.places.PlacesService(s.current).findPlaceFromQuery(e,(function(e,t){t===google.maps.places.PlacesServiceStatus.OK&&0<e.length&&s.current.setCenter(e[0].geometry.location)}))}google.maps.event.addListenerOnce(s.current,"idle",(function(){M(!0)})),s.current.addListener("zoom_changed",(function(){var e=s.current.getZoom();n({zoom:e})})),s.current.addListener("maptypeid_changed",(function(){var e=s.current.getMapTypeId();n({type:e})})),s.current.addListener("bounds_changed",(function(){var e=s.current.getCenter(),t=e.lat(),a=e.lng();n({latitude:t.toString(),longitude:a.toString()})})),0<t.markers.length&&ae(t.markers);var a={query:t.location,fields:["name","geometry"]};new google.maps.places.PlacesService(s.current).findPlaceFromQuery(a,(function(e,t){"REQUEST_DENIED"===t&&H(!1)}))},displayMap:_,isMapLoaded:B,selectMarker:function(){D(!V),V?google.maps.event.clearListeners(s.current,"click"):s.current.addListener("click",(function(e){google.maps.event.clearListeners(s.current,"click");var t=c()(),n=Te("Custom Marker"),a=e.latLng.lat(),l=e.latLng.lng();Z(!0),J(!1),$({id:t,location:"",title:n,icon:"https://maps.google.com/mapfiles/ms/icons/red-dot.png",description:"",latitude:a,longitude:l})}))},isSelectingMarker:V}))):wp.element.createElement(h,{className:a,api:y,isAPILoaded:k,isAPISaved:x,changeAPI:w,saveAPIKey:ie})},Ne=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/google-map",{title:Ne("Google Map"),description:Ne("Display a Google Map on your website with Google Map block."),icon:a.i,category:"themeisle-blocks",keywords:["map","google","orbitfox"],attributes:l,supports:{align:["wide","full"],html:!1},edit:Re,save:function(){return null}})},function(e,t,n){"use strict";n.r(t);n(40);var a=n(2);n(41);function l(e,t,n,a,l,o,r){try{var i=e[o](r),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(a,l)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(a,o){var r=e.apply(t,n);function i(e){l(r,a,o,i,c,"next",e)}function c(e){l(r,a,o,i,c,"throw",e)}i(void 0)}))}}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var i=wp.i18n.__,c=wp.blocks.getBlockType,d=wp.components,p=d.Button,m=d.Icon,s=d.Modal,u=wp.element,b=u.Fragment,g=u.useState,h=function(e){var t=e.blockName,n=e.saveConfig,a=e.resetConfig,l=e.children,d=c(t),u=r(g(!1),2),h=u[0],f=u[1],y=r(g(!1),2),w=y[0],v=y[1];return d?wp.element.createElement(b,null,wp.element.createElement(p,{className:"wp-block-themeisle-blocks-options-global-defaults-list-item",onClick:function(){return f(!0)}},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-options-global-defaults-list-item-icon"},wp.element.createElement(m,{icon:d.icon.src})),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-options-global-defaults-list-item-title"},d.title)),h&&wp.element.createElement(s,{title:d.title,onRequestClose:function(){return f(!1)},shouldCloseOnClickOutside:!1,overlayClassName:"wp-block-themeisle-blocks-options-global-defaults-modal"},l,wp.element.createElement("div",{className:"wp-block-themeisle-blocks-options-global-defaults-actions"},wp.element.createElement(p,{isLink:!0,isDestructive:!0,onClick:function(){return a(t)}},i("Reset")),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-options-global-defaults-actions-primary"},wp.element.createElement(p,{isDefault:!0,isLarge:!0,onClick:function(){return f(!1)}},i("Close")),wp.element.createElement(p,{isPrimary:!0,isLarge:!0,isBusy:w,onClick:o(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return v(!0),e.next=3,n();case 3:v(!1);case 4:case"end":return e.stop()}}),e)})))},i("Save")))))):null},f=n(9),y=n(4),w=n(3);function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var T=wp.i18n.__,E=wp.blockEditor.ColorPalette,x=wp.components,C=x.BaseControl,S=x.PanelBody,B=x.RangeControl,M=x.SelectControl,O=wp.element,R=O.Fragment,N=O.useState,L=function(e){var t=e.blockName,n=e.defaults,a=e.changeConfig,l=k(N("desktop"),2),o=l[0],r=l[1],i=k(N("desktop"),2),c=i[0],d=i[1],p=k(N("desktop"),2),m=p[0],s=p[1],u=function(){var e;return"desktop"===o&&(e=n.fontSize),"tablet"===o&&(e=n.fontSizeTablet),"mobile"===o&&(e=n.fontSizeMobile),e};u=u();var b=function(){var e;return"desktop"===c&&(e=n.paddingType),"tablet"===c&&(e=n.paddingTypeTablet),"mobile"===c&&(e=n.paddingTypeMobile),e};b=b();var g={top:"paddingTop",right:"paddingRight",bottom:"paddingBottom",left:"paddingLeft"},h={top:"paddingTopTablet",right:"paddingRightTablet",bottom:"paddingBottomTablet",left:"paddingLeftTablet"},x={top:"paddingTopMobile",right:"paddingRightMobile",bottom:"paddingBottomMobile",left:"paddingLeftMobile"},O=function(e){var t;return"top"==e&&("desktop"===c&&(t="linked"===n.paddingType?n.padding:n.paddingTop),"tablet"===c&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingTopTablet),"mobile"===c&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingTopMobile)),"right"==e&&("desktop"===c&&(t="linked"===n.paddingType?n.padding:n.paddingRight),"tablet"===c&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingRightTablet),"mobile"===c&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingRightMobile)),"bottom"==e&&("desktop"===c&&(t="linked"===n.paddingType?n.padding:n.paddingBottom),"tablet"===c&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingBottomTablet),"mobile"===c&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingBottomMobile)),"left"==e&&("desktop"===c&&(t="linked"===n.paddingType?n.padding:n.paddingLeft),"tablet"===c&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingLeftTablet),"mobile"===c&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingLeftMobile)),t},L=function(){var e;return"desktop"===m&&(e=n.marginType),"tablet"===m&&(e=n.marginTypeTablet),"mobile"===m&&(e=n.marginTypeMobile),e};L=L();var z={top:"marginTop",bottom:"marginBottom"},H={top:"marginTopTablet",bottom:"marginBottomTablet"},A={top:"marginTopMobile",bottom:"marginBottomMobile"},_=function(e){var t;return"top"==e&&("desktop"===m&&(t="linked"===n.marginType?n.margin:n.marginTop),"tablet"===m&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginTopTablet),"mobile"===m&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginTopMobile)),"bottom"==e&&("desktop"===m&&(t="linked"===n.marginType?n.margin:n.marginBottom),"tablet"===m&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginBottomTablet),"mobile"===m&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginBottomMobile)),t};return wp.element.createElement(R,null,wp.element.createElement(S,{title:T("General Settings")},wp.element.createElement(M,{label:T("HTML Tag"),value:n.tag,options:[{label:T("Heading 1"),value:"h1"},{label:T("Heading 2"),value:"h2"},{label:T("Heading 3"),value:"h3"},{label:T("Heading 4"),value:"h4"},{label:T("Heading 5"),value:"h5"},{label:T("Heading 6"),value:"h6"},{label:T("Division"),value:"div"},{label:T("Paragraph"),value:"p"},{label:T("Span"),value:"span"}],onChange:function(e){return a(t,{tag:e})}}),wp.element.createElement(C,{label:"Heading Color"},wp.element.createElement(E,{value:n.headingColor,onChange:function(e){return a(t,{headingColor:e})}})),wp.element.createElement("hr",null),wp.element.createElement(y.a,{label:"Font Size",view:o,changeViewType:r},wp.element.createElement(B,{value:u||"",onChange:function(e){"desktop"===o&&a(t,{fontSize:e}),"tablet"===o&&a(t,{fontSizeTablet:e}),"mobile"===o&&a(t,{fontSizeMobile:e})},min:1,max:500}))),wp.element.createElement(S,{title:T("Typography Settings"),initialOpen:!1},wp.element.createElement(f.a,{label:T("Font Family"),value:n.fontFamily,onChangeFontFamily:function(e){a(t,e?{fontFamily:e,fontVariant:"normal",fontStyle:"normal"}:{fontFamily:e,fontVariant:e})},valueVariant:n.fontVariant,onChangeFontVariant:function(e){return a(t,{fontVariant:e})},valueStyle:n.fontStyle,onChangeFontStyle:function(e){return a(t,{fontStyle:e})},valueTransform:n.textTransform,onChangeTextTransform:function(e){return a(t,{textTransform:e})}}),wp.element.createElement("hr",null),wp.element.createElement(B,{label:T("Line Height"),value:n.lineHeight||"",onChange:function(e){return a(t,{lineHeight:e})},min:0,max:200}),wp.element.createElement("hr",null),wp.element.createElement(B,{label:T("Letter Spacing"),value:n.letterSpacing||"",onChange:function(e){return a(t,{letterSpacing:e})},min:-50,max:100})),wp.element.createElement(S,{title:T("Spacing"),initialOpen:!1},wp.element.createElement(y.a,{label:"Padding",view:c,changeViewType:d},wp.element.createElement(w.a,{type:b,min:0,max:500,changeType:function(e){"desktop"===c&&a(t,{paddingType:e}),"tablet"===c&&a(t,{paddingTypeTablet:e}),"mobile"===c&&a(t,{paddingTypeMobile:e})},onChange:function(e,l){"desktop"===c&&("linked"===n.paddingType?a(t,{padding:l}):a(t,v({},g[e],l))),"tablet"===c&&("linked"===n.paddingTypeTablet?a(t,{paddingTablet:l}):a(t,v({},h[e],l))),"mobile"===c&&("linked"===n.paddingTypeMobile?a(t,{paddingMobile:l}):a(t,v({},x[e],l)))},options:[{label:T("Top"),type:"top",value:O("top")},{label:T("Right"),type:"right",value:O("right")},{label:T("Bottom"),type:"bottom",value:O("bottom")},{label:T("Left"),type:"left",value:O("left")}]})),wp.element.createElement("hr",null),wp.element.createElement(y.a,{label:"Margin",view:m,changeViewType:s},wp.element.createElement(w.a,{type:L,min:-500,max:500,changeType:function(e){"desktop"===m&&a(t,{marginType:e}),"tablet"===m&&a(t,{marginTypeTablet:e}),"mobile"===m&&a(t,{marginTypeMobile:e})},onChange:function(e,l){"desktop"===m&&("linked"===n.marginType?a(t,{margin:l}):a(t,v({},z[e],l))),"tablet"===m&&("linked"===n.marginTypeTablet?a(t,{marginTablet:l}):a(t,v({},H[e],l))),"mobile"===m&&("linked"===n.marginTypeMobile?a(t,{marginMobile:l}):a(t,v({},A[e],l)))},options:[{label:T("Top"),type:"top",value:_("top")},{label:T("Right"),disabled:!0},{label:T("Bottom"),type:"bottom",value:_("bottom")},{label:T("Left"),disabled:!0}]}))))};function z(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var H=wp.i18n.__,A=lodash.cloneDeep,_=wp.components,P=_.BaseControl,I=_.Button,j=_.ButtonGroup,F=_.PanelBody,G=_.RangeControl,V=_.SelectControl,D=wp.blockEditor.ColorPalette,W=wp.element,q=W.Fragment,Z=W.useState,U=function(e){var t=e.blockName,n=e.defaults,a=e.changeConfig,l=z(Z(!1),2),o=l[0],r=l[1],i=function(e,l){var o=A(n.data);o[e]=l,a(t,{data:o})};return wp.element.createElement(q,null,wp.element.createElement(F,{title:H("Color")},wp.element.createElement(j,{className:"wp-block-themeisle-blocks-button-group-hover-control"},wp.element.createElement(I,{isDefault:!0,isLarge:!0,isPrimary:!o,onClick:function(){return r(!1)}},H("Normal")),wp.element.createElement(I,{isDefault:!0,isLarge:!0,isPrimary:o,onClick:function(){return r(!0)}},H("Hover"))),o?wp.element.createElement(q,null,wp.element.createElement(P,{label:"Hover Color"},wp.element.createElement(D,{label:"Hover Color",value:n.data.hoverColor,onChange:function(e){return i("hoverColor",e)}})),wp.element.createElement("hr",null),wp.element.createElement(P,{label:"Hover Background"},wp.element.createElement(D,{label:"Hover Background",value:n.data.hoverBackground,onChange:function(e){return i("hoverBackground",e)}}))):wp.element.createElement(q,null,wp.element.createElement(P,{label:"Color"},wp.element.createElement(D,{label:"Color",value:n.data.color,onChange:function(e){return i("color",e)}})),wp.element.createElement("hr",null),wp.element.createElement(P,{label:"Background"},wp.element.createElement(D,{label:"Background",value:n.data.background,onChange:function(e){return i("background",e)}})))),wp.element.createElement(F,{title:H("Spacing"),initialOpen:!1},wp.element.createElement(w.a,{label:H("Button Padding"),min:0,max:100,onChange:i,options:[{label:H("Top"),type:"paddingTopBottom",value:n.data.paddingTopBottom},{label:H("Right"),type:"paddingLeftRight",value:n.data.paddingLeftRight},{label:H("Bottom"),type:"paddingTopBottom",value:n.data.paddingTopBottom},{label:H("Left"),type:"paddingLeftRight",value:n.data.paddingLeftRight}]}),wp.element.createElement("hr",null),wp.element.createElement(G,{label:H("Group Spacing"),value:n.spacing,onChange:function(e){return a(t,{spacing:e})},min:0,max:50}),wp.element.createElement("hr",null),wp.element.createElement(V,{label:H("Collapse On"),value:n.collapse,options:[{label:"None",value:"collapse-none"},{label:"Desktop",value:"collapse-desktop"},{label:"Tablet",value:"collapse-tablet"},{label:"Mobile",value:"collapse-mobile"}],onChange:function(e){return a(t,{collapse:e})}})),wp.element.createElement(F,{title:H("Typography Settings"),initialOpen:!1},wp.element.createElement(G,{label:H("Font Size"),value:n.fontSize||"",onChange:function(e){return a(t,{fontSize:e})},min:0,max:50}),wp.element.createElement("hr",null),wp.element.createElement(f.a,{label:H("Font Family"),value:n.fontFamily,onChangeFontFamily:function(e){a(t,e?{fontFamily:e,fontVariant:"normal",fontStyle:"normal"}:{fontFamily:e,fontVariant:e})},valueVariant:n.fontVariant,onChangeFontVariant:function(e){return a(t,{fontVariant:e})},valueStyle:n.fontStyle,onChangeFontStyle:function(e){return a(t,{fontStyle:e})},valueTransform:n.textTransform,onChangeTextTransform:function(e){return a(t,{textTransform:e})}}),wp.element.createElement("hr",null),wp.element.createElement(G,{label:H("Line Height"),value:n.lineHeight||"",onChange:function(e){return a(t,{lineHeight:e})},min:0,max:200})))};function Q(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var K=wp.i18n.__,J=wp.components,Y=J.BaseControl,X=J.Button,$=J.ButtonGroup,ee=J.PanelBody,te=J.RangeControl,ne=wp.blockEditor,ae=ne.ColorPalette,le=ne.ContrastChecker,oe=wp.element,re=oe.Fragment,ie=oe.useState,ce=function(e){var t=e.blockName,n=e.defaults,a=e.changeConfig,l=Q(ie(!1),2),o=l[0],r=l[1];return wp.element.createElement(re,null,wp.element.createElement(ee,{title:K("Sizing")},wp.element.createElement(te,{label:K("Icon Size"),value:n.fontSize||"",initialPosition:16,onChange:function(e){return a(t,{fontSize:e})},min:12,max:140,beforeIcon:"minus",afterIcon:"plus"}),wp.element.createElement("hr",null),wp.element.createElement(te,{label:K("Padding"),value:n.padding||"",initialPosition:5,onChange:function(e){return a(t,{padding:e})},min:0,max:100,beforeIcon:"minus",afterIcon:"plus"}),wp.element.createElement("hr",null),wp.element.createElement(te,{label:K("Margin"),value:n.margin||"",initialPosition:5,onChange:function(e){return a(t,{margin:e})},min:0,max:100,beforeIcon:"minus",afterIcon:"plus"})),wp.element.createElement(ee,{title:K("Color"),initialOpen:!1},wp.element.createElement($,{className:"wp-block-themeisle-blocks-font-awesome-icons-hover-control"},wp.element.createElement(X,{isDefault:!0,isLarge:!0,isPrimary:!o,onClick:function(){return r(!1)}},K("Normal")),wp.element.createElement(X,{isDefault:!0,isLarge:!0,isPrimary:o,onClick:function(){return r(!0)}},K("Hover"))),o?wp.element.createElement(re,null,wp.element.createElement(Y,{label:"Hover Background"},wp.element.createElement(ae,{label:"Hover Background",value:n.backgroundColorHover,onChange:function(e){return a(t,{backgroundColorHover:e})}})),wp.element.createElement(Y,{label:"Hover Icon"},wp.element.createElement(ae,{label:"Hover Icon",value:n.textColorHover,onChange:function(e){return a(t,{textColorHover:e})}})),wp.element.createElement(le,{textColor:n.textColorHover,backgroundColor:n.backgroundColorHover})):wp.element.createElement(re,null,wp.element.createElement(Y,{label:"Background"},wp.element.createElement(ae,{label:"Background",value:n.backgroundColor,onChange:function(e){return a(t,{backgroundColor:e})}})),wp.element.createElement(Y,{label:"Icon"},wp.element.createElement(ae,{label:"Icon",value:n.textColor,onChange:function(e){return a(t,{textColor:e})}})),wp.element.createElement(le,{textColor:n.textColor,backgroundColor:n.backgroundColor}))))};function de(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var me=wp.i18n.__,se=wp.components,ue=se.BaseControl,be=se.Button,ge=se.ButtonGroup,he=se.Icon,fe=se.IconButton,ye=se.PanelBody,we=se.RangeControl,ve=se.SelectControl,ke=se.ToggleControl,Te=se.Tooltip,Ee=wp.element,xe=Ee.Fragment,Ce=Ee.useState,Se=function(e){var t=e.blockName,n=e.defaults,l=e.changeConfig,o=pe(Ce("desktop"),2),r=o[0],i=o[1],c=pe(Ce("desktop"),2),d=c[0],p=c[1],m=pe(Ce("desktop"),2),s=m[0],u=m[1],b=function(){var e;return"desktop"===r&&(e=n.paddingType),"tablet"===r&&(e=n.paddingTypeTablet),"mobile"===r&&(e=n.paddingTypeMobile),e};b=b();var g={top:"paddingTop",right:"paddingRight",bottom:"paddingBottom",left:"paddingLeft"},h={top:"paddingTopTablet",right:"paddingRightTablet",bottom:"paddingBottomTablet",left:"paddingLeftTablet"},f={top:"paddingTopMobile",right:"paddingRightMobile",bottom:"paddingBottomMobile",left:"paddingLeftMobile"},v=function(e){var t;return"top"==e&&("desktop"===r&&(t="linked"===n.paddingType?n.padding:n.paddingTop),"tablet"===r&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingTopTablet),"mobile"===r&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingTopMobile)),"right"==e&&("desktop"===r&&(t="linked"===n.paddingType?n.padding:n.paddingRight),"tablet"===r&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingRightTablet),"mobile"===r&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingRightMobile)),"bottom"==e&&("desktop"===r&&(t="linked"===n.paddingType?n.padding:n.paddingBottom),"tablet"===r&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingBottomTablet),"mobile"===r&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingBottomMobile)),"left"==e&&("desktop"===r&&(t="linked"===n.paddingType?n.padding:n.paddingLeft),"tablet"===r&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingLeftTablet),"mobile"===r&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingLeftMobile)),t},k=function(){var e;return"desktop"===d&&(e=n.marginType),"tablet"===d&&(e=n.marginTypeTablet),"mobile"===d&&(e=n.marginTypeMobile),e};k=k();var T={top:"marginTop",bottom:"marginBottom"},E={top:"marginTopTablet",bottom:"marginBottomTablet"},x={top:"marginTopMobile",bottom:"marginBottomMobile"},C=function(e){var t;return"top"==e&&("desktop"===d&&(t="linked"===n.marginType?n.margin:n.marginTop),"tablet"===d&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginTopTablet),"mobile"===d&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginTopMobile)),"bottom"==e&&("desktop"===d&&(t="linked"===n.marginType?n.margin:n.marginBottom),"tablet"===d&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginBottomTablet),"mobile"===d&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginBottomMobile)),t},S=function(e){if(n.horizontalAlign===e)return l(t,{horizontalAlign:"unset"});l(t,{horizontalAlign:e})},B=function(){var e;return"desktop"===s&&(e=n.columnsHeightCustom),"tablet"===s&&(e=n.columnsHeightCustomTablet),"mobile"===s&&(e=n.columnsHeightCustomMobile),e};B=B();var M=function(e){if(n.verticalAlign===e)return l(t,{verticalAlign:"unset"});l(t,{verticalAlign:e})};return wp.element.createElement(xe,null,wp.element.createElement(ye,{title:me("Sizing")},wp.element.createElement(ve,{label:me("Columns Gap"),value:n.columnsGap,options:[{label:"Default (10px)",value:"default"},{label:"No Gap",value:"nogap"},{label:"Narrow (5px)",value:"narrow"},{label:"Extended (15px)",value:"extended"},{label:"Wide (20px)",value:"wide"},{label:"Wider (30px)",value:"wider"}],onChange:function(e){return l(t,{columnsGap:e})}}),wp.element.createElement(y.a,{label:"Padding",view:r,changeViewType:i},wp.element.createElement(w.a,{type:b,min:0,max:500,changeType:function(e){"desktop"===r&&l(t,{paddingType:e}),"tablet"===r&&l(t,{paddingTypeTablet:e}),"mobile"===r&&l(t,{paddingTypeMobile:e})},onChange:function(e,a){"desktop"===r&&("linked"===n.paddingType?l(t,{padding:a}):l(t,de({},g[e],a))),"tablet"===r&&("linked"===n.paddingTypeTablet?l(t,{paddingTablet:a}):l(t,de({},h[e],a))),"mobile"===r&&("linked"===n.paddingTypeMobile?l(t,{paddingMobile:a}):l(t,de({},f[e],a)))},options:[{label:me("Top"),type:"top",value:v("top")},{label:me("Right"),type:"right",value:v("right")},{label:me("Bottom"),type:"bottom",value:v("bottom")},{label:me("Left"),type:"left",value:v("left")}]})),wp.element.createElement("hr",null),wp.element.createElement(y.a,{label:"Margin",view:d,changeViewType:p},wp.element.createElement(w.a,{type:k,min:-500,max:500,changeType:function(e){"desktop"===d&&l(t,{marginType:e}),"tablet"===d&&l(t,{marginTypeTablet:e}),"mobile"===d&&l(t,{marginTypeMobile:e})},onChange:function(e,a){"desktop"===d&&("linked"===n.marginType?l(t,{margin:a}):l(t,de({},T[e],a))),"tablet"===d&&("linked"===n.marginTypeTablet?l(t,{marginTablet:a}):l(t,de({},E[e],a))),"mobile"===d&&("linked"===n.marginTypeMobile?l(t,{marginMobile:a}):l(t,de({},x[e],a)))},options:[{label:me("Top"),type:"top",value:C("top")},{label:me("Right"),disabled:!0},{label:me("Bottom"),type:"bottom",value:C("bottom")},{label:me("Left"),disabled:!0}]}))),wp.element.createElement(ye,{title:me("Section Structure"),initialOpen:!1},wp.element.createElement(ve,{label:me("HTML Tag"),value:n.columnsHTMLTag,options:[{label:"Default (div)",value:"div"},{label:"section",value:"section"},{label:"header",value:"header"},{label:"footer",value:"footer"},{label:"article",value:"article"},{label:"main",value:"main"}],onChange:function(e){return l(t,{columnsHTMLTag:e})}}),wp.element.createElement("hr",null),wp.element.createElement(we,{label:me("Maximum Content Width"),value:n.columnsWidth||"",onChange:function(e){(0<=e&&1200>=e||void 0===e)&&l(t,{columnsWidth:e})},min:0,max:1200}),wp.element.createElement("hr",null),n.columnsWidth&&wp.element.createElement(xe,null,wp.element.createElement(ue,{label:"Horizontal Align"},wp.element.createElement(ge,{className:"icon-buttom-group"},wp.element.createElement(Te,{text:me("Left")},wp.element.createElement(fe,{icon:"editor-alignleft",className:"is-button is-large",isPrimary:"flex-start"===n.horizontalAlign,onClick:function(){return S("flex-start")}})),wp.element.createElement(Te,{text:me("Center")},wp.element.createElement(fe,{icon:"editor-aligncenter",className:"is-button is-large",isPrimary:"center"===n.horizontalAlign,onClick:function(){return S("center")}})),wp.element.createElement(Te,{text:me("Right")},wp.element.createElement(fe,{icon:"editor-alignright",className:"is-button is-large",isPrimary:"flex-end"===n.horizontalAlign,onClick:function(){return S("flex-end")}})))),wp.element.createElement("hr",null)),wp.element.createElement(ve,{label:me("Minimum Height"),value:n.columnsHeight,options:[{label:"Default",value:"auto"},{label:"Fit to Screen",value:"100vh"},{label:"Custom",value:"custom"}],onChange:function(e){return l(t,{columnsHeight:e})}}),wp.element.createElement("hr",null),"custom"===n.columnsHeight&&wp.element.createElement(xe,null,wp.element.createElement(y.a,{label:"Custom Height",view:s,changeViewType:u},wp.element.createElement(we,{value:B||"",onChange:function(e){"desktop"===s&&l(t,{columnsHeightCustom:e}),"tablet"===s&&l(t,{columnsHeightCustomTablet:e}),"mobile"===s&&l(t,{columnsHeightCustomMobile:e})},min:0,max:1e3})),wp.element.createElement("hr",null)),wp.element.createElement(ue,{label:"Vertical Align"},wp.element.createElement(ge,{className:"icon-buttom-group"},wp.element.createElement(Te,{text:me("Top")},wp.element.createElement(be,{className:"components-icon-button is-button is-large",isPrimary:"flex-start"===n.verticalAlign,onClick:function(){return M("flex-start")}},wp.element.createElement(he,{icon:a.s,size:20}))),wp.element.createElement(Te,{text:me("Middle")},wp.element.createElement(be,{className:"components-icon-button is-button is-large",isPrimary:"center"===n.verticalAlign,onClick:function(){return M("center")}},wp.element.createElement(he,{icon:a.j,size:20}))),wp.element.createElement(Te,{text:me("Bottom")},wp.element.createElement(be,{className:"components-icon-button is-button is-large",isPrimary:"flex-end"===n.verticalAlign,onClick:function(){return M("flex-end")}},wp.element.createElement(he,{icon:a.c,size:20})))))),wp.element.createElement(ye,{title:me("Responsive"),initialOpen:!1},wp.element.createElement(ke,{label:"Hide this section in Desktop devices?",checked:n.hide,onChange:function(e){return l(t,{hide:e})}}),wp.element.createElement(ke,{label:"Hide this section in Tablet devices?",checked:n.hideTablet,onChange:function(e){return l(t,{hideTablet:e})}}),wp.element.createElement(ke,{label:"Hide this section in Mobile devices?",checked:n.hideMobile,onChange:function(e){return l(t,{hideMobile:e})}})))};function Be(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Me(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Oe=wp.i18n.__,Re=wp.components,Ne=Re.PanelBody,Le=Re.SelectControl,ze=wp.element,He=ze.Fragment,Ae=ze.useState,_e=function(e){var t=e.blockName,n=e.defaults,a=e.changeConfig,l=Me(Ae("desktop"),2),o=l[0],r=l[1],i=Me(Ae("desktop"),2),c=i[0],d=i[1],p=function(){var e;return"desktop"===o&&(e=n.paddingType),"tablet"===o&&(e=n.paddingTypeTablet),"mobile"===o&&(e=n.paddingTypeMobile),e};p=p();var m={top:"paddingTop",right:"paddingRight",bottom:"paddingBottom",left:"paddingLeft"},s={top:"paddingTopTablet",right:"paddingRightTablet",bottom:"paddingBottomTablet",left:"paddingLeftTablet"},u={top:"paddingTopMobile",right:"paddingRightMobile",bottom:"paddingBottomMobile",left:"paddingLeftMobile"},b=function(e){var t;return"top"==e&&("desktop"===o&&(t="linked"===n.paddingType?n.padding:n.paddingTop),"tablet"===o&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingTopTablet),"mobile"===o&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingTopMobile)),"right"==e&&("desktop"===o&&(t="linked"===n.paddingType?n.padding:n.paddingRight),"tablet"===o&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingRightTablet),"mobile"===o&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingRightMobile)),"bottom"==e&&("desktop"===o&&(t="linked"===n.paddingType?n.padding:n.paddingBottom),"tablet"===o&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingBottomTablet),"mobile"===o&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingBottomMobile)),"left"==e&&("desktop"===o&&(t="linked"===n.paddingType?n.padding:n.paddingLeft),"tablet"===o&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingLeftTablet),"mobile"===o&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingLeftMobile)),t},g=function(){var e;return"desktop"===c&&(e=n.marginType),"tablet"===c&&(e=n.marginTypeTablet),"mobile"===c&&(e=n.marginTypeMobile),e};g=g();var h={top:"marginTop",right:"marginRight",bottom:"marginBottom",left:"marginLeft"},f={top:"marginTopTablet",right:"marginRightTablet",bottom:"marginBottomTablet",left:"marginLeftTablet"},v={top:"marginTopMobile",right:"marginRightMobile",bottom:"marginBottomMobile",left:"marginLeftMobile"},k=function(e){var t;return"top"==e&&("desktop"===c&&(t="linked"===n.marginType?n.margin:n.marginTop),"tablet"===c&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginTopTablet),"mobile"===c&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginTopMobile)),"right"==e&&("desktop"===c&&(t="linked"===n.marginType?n.margin:n.marginRight),"tablet"===c&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginRightTablet),"mobile"===c&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginRightMobile)),"bottom"==e&&("desktop"===c&&(t="linked"===n.marginType?n.margin:n.marginBottom),"tablet"===c&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginBottomTablet),"mobile"===c&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginBottomMobile)),"left"==e&&("desktop"===c&&(t="linked"===n.marginType?n.margin:n.marginLeft),"tablet"===c&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginLeftTablet),"mobile"===c&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginLeftMobile)),t};return wp.element.createElement(He,null,wp.element.createElement(Ne,{title:Oe("Sizing")},wp.element.createElement(y.a,{label:"Padding",view:o,changeViewType:r},wp.element.createElement(w.a,{type:p,min:0,max:500,changeType:function(e){"desktop"===o&&a(t,{paddingType:e}),"tablet"===o&&a(t,{paddingTypeTablet:e}),"mobile"===o&&a(t,{paddingTypeMobile:e})},onChange:function(e,l){"desktop"===o&&("linked"===n.paddingType?a(t,{padding:l}):a(t,Be({},m[e],l))),"tablet"===o&&("linked"===n.paddingTypeTablet?a(t,{paddingTablet:l}):a(t,Be({},s[e],l))),"mobile"===o&&("linked"===n.paddingTypeMobile?a(t,{paddingMobile:l}):a(t,Be({},u[e],l)))},options:[{label:Oe("Top"),type:"top",value:b("top")},{label:Oe("Right"),type:"right",value:b("right")},{label:Oe("Bottom"),type:"bottom",value:b("bottom")},{label:Oe("Left"),type:"left",value:b("left")}]})),wp.element.createElement("hr",null),wp.element.createElement(y.a,{label:"Margin",view:c,changeViewType:d},wp.element.createElement(w.a,{type:g,min:-500,max:500,changeType:function(e){"desktop"===c&&a(t,{marginType:e}),"tablet"===c&&a(t,{marginTypeTablet:e}),"mobile"===c&&a(t,{marginTypeMobile:e})},onChange:function(e,l){"desktop"===c&&("linked"===n.marginType?a(t,{margin:l}):a(t,Be({},h[e],l))),"tablet"===c&&("linked"===n.marginTypeTablet?a(t,{marginTablet:l}):a(t,Be({},f[e],l))),"mobile"===c&&("linked"===n.marginTypeMobile?a(t,{marginMobile:l}):a(t,Be({},v[e],l)))},options:[{label:Oe("Top"),type:"top",value:k("top")},{label:Oe("Right"),type:"right",value:k("right")},{label:Oe("Bottom"),type:"bottom",value:k("bottom")},{label:Oe("Left"),type:"left",value:k("left")}]}))),wp.element.createElement(Ne,{title:Oe("Section Settings"),initialOpen:!1},wp.element.createElement(Le,{label:Oe("HTML Tag"),value:n.columnsHTMLTag,options:[{label:"Default (div)",value:"div"},{label:"section",value:"section"},{label:"header",value:"header"},{label:"footer",value:"footer"},{label:"article",value:"article"},{label:"main",value:"main"}],onChange:function(e){return a(t,{columnsHTMLTag:e})}})))},Pe=wp.i18n.__,Ie=wp.components.PanelBody,je=function(e){var t=e.blockDefaults,n=e.changeConfig,a=e.resetConfig,l=e.saveConfig,o=[{name:"themeisle-blocks/advanced-heading",control:L},{name:"themeisle-blocks/button-group",control:U},{name:"themeisle-blocks/font-awesome-icons",control:ce},{name:"themeisle-blocks/advanced-columns",control:Se},{name:"themeisle-blocks/advanced-column",control:_e}];return wp.element.createElement(Ie,{title:"Global Defaults",className:"wp-block-themeisle-blocks-options-global-defaults"},Pe("With Global Defaults, you can set site-wide block defaults for Otter."),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-options-global-defaults-list"},o.map((function(e){var o=e.control;return wp.element.createElement(h,{blockName:e.name,saveConfig:l,resetConfig:a},wp.element.createElement(o,{blockName:e.name,defaults:t[e.name],changeConfig:n}))}))))},Fe=n(5);function Ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Ve(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function De(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function We(e){return(We="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function qe(e,t,n,a,l,o,r){try{var i=e[o](r),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(a,l)}function Ze(e){return function(){var t=this,n=arguments;return new Promise((function(a,l){var o=e.apply(t,n);function r(e){qe(o,a,l,r,i,"next",e)}function i(e){qe(o,a,l,r,i,"throw",e)}r(void 0)}))}}var Ue=wp.i18n.__,Qe=lodash,Ke=Qe.cloneDeep,Je=Qe.isEqual,Ye=Qe.merge,Xe=wp.apiFetch,$e=wp.components,et=$e.PanelBody,tt=$e.Snackbar,nt=$e.ToggleControl,at=wp.data.withDispatch,lt=wp.element,ot=lt.Fragment,rt=lt.useEffect,it=lt.useRef,ct=lt.useState,dt=wp.editPost,pt=dt.PluginSidebar,mt=dt.PluginSidebarMoreMenuItem,st=at((function(e){return{createNotice:e("core/notices").createNotice}}))((function(e){var t=e.createNotice;rt(Ze(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Xe({path:"wp/v2/users/me?context=edit"});case 2:if(!e.sent.capabilities.manage_options){e.next=8;break}return l(!0),e.next=7,wp.api.loadPromise.then((function(){b.current=new wp.api.models.Settings}));case 7:!1===r&&b.current.fetch().then((function(e){if(u(Boolean(e.themeisle_blocks_settings_default_block)),""!==e.themeisle_blocks_settings_global_defaults){var t=Ke(Fe.a);"object"===We(window.themeisleGutenberg.themeDefaults)&&(t=Ye(t,window.themeisleGutenberg.themeDefaults)),t=Ye(t,JSON.parse(e.themeisle_blocks_settings_global_defaults)),window.themeisleGutenberg.globalDefaults=JSON.parse(e.themeisle_blocks_settings_global_defaults),p(t)}else{var n=Ke(Fe.a);"object"===We(window.themeisleGutenberg.themeDefaults)&&(n=Ye(n,window.themeisleGutenberg.themeDefaults)),window.themeisleGutenberg.globalDefaults={},p(n)}i(!1)}));case 8:case"end":return e.stop()}}),e)}))),[]);var n=De(ct(!1),2),a=n[0],l=n[1],o=De(ct(!1),2),r=o[0],i=o[1],c=De(ct({}),2),d=c[0],p=c[1],m=De(ct(!1),2),s=m[0],u=m[1],b=it(null),g=function(e){tt&&t("info",e,{isDismissible:!0,type:"snackbar"})},h=function(){var e=Ze(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Ke(d),Object.keys(t).forEach((function(e){Object.keys(t[e]).forEach((function(n){void 0!==Fe.a[e][n]&&t[e][n]===Fe.a[e][n]?delete t[e][n]:"object"===We(t[e][n])&&Je(t[e][n],Fe.a[e][n])&&delete t[e][n]}))})),n=new wp.api.models.Settings({themeisle_blocks_settings_global_defaults:JSON.stringify(t)}),e.next=5,n.save().then((function(){window.themeisleGutenberg.globalDefaults=t,g(Ue("Option updated."))}));case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return wp.element.createElement(ot,null,a&&wp.element.createElement(mt,{target:"wp-block-themeisle-blocks-options"},Ue("Otter Options")),wp.element.createElement(pt,{title:Ue("Otter Options"),name:"wp-block-themeisle-blocks-options"},wp.element.createElement(et,{className:"wp-block-themeisle-blocks-options-general"},wp.element.createElement(nt,{label:Ue("Make Section block your default block for Pages?"),checked:s,onChange:function(){new wp.api.models.Settings({themeisle_blocks_settings_default_block:!Boolean(s)}).save().then((function(e){u(Boolean(e.themeisle_blocks_settings_default_block)),g(Ue("Option updated."))}))}})),wp.element.createElement(je,{blockDefaults:d,changeConfig:function(e,t){var n=Ke(d);for(var a in t)n[e][a]=t[a];p(n)},resetConfig:function(e){var t=Ke(d),n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ge(Object(n),!0).forEach((function(t){Ve(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ge(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},Fe.a[e]);t[e]=n,p(t)},saveConfig:h})))})),ut=(n(45),wp.components.Icon),bt=wp.element.Fragment;(0,wp.plugins.registerPlugin)("themeisle-blocks",{icon:wp.element.createElement(ut,{icon:a.l}),render:function(){return wp.element.createElement(bt,null,wp.element.createElement(st,null))}})},function(e,t,n){"use strict";n.r(t);n(55),n(56);var a=n(2),l={id:{type:"string"},buttons:{type:"number",default:2},align:{type:"string"},spacing:{type:"number",default:20},collapse:{type:"string",default:"collapse-none"},fontSize:{type:"number"},fontFamily:{type:"string"},fontVariant:{type:"string"},textTransform:{type:"string"},fontStyle:{type:"string"},lineHeight:{type:"number"},data:{type:"array",default:[{text:"",link:"",newTab:!1,color:"",background:"",border:"",hoverColor:"",hoverBackground:"",hoverBorder:"",borderSize:"",borderRadius:"",boxShadow:!1,boxShadowColor:"",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:"",hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",prefix:"",icon:"",paddingTopBottom:"",paddingLeftRight:""},{text:"",link:"",newTab:!1,color:"",background:"",border:"",hoverColor:"",hoverBackground:"",hoverBorder:"",borderSize:"",borderRadius:"",boxShadow:!1,boxShadowColor:"",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:"",hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",prefix:"",icon:"",paddingTopBottom:"",paddingLeftRight:""}]}},o=n(0),r=n.n(o);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=lodash.times,m=wp.editor.RichText,s=wp.element.Fragment,u=[{attributes:{id:{type:"string"},buttons:{type:"number",default:2},align:{type:"string"},spacing:{type:"number",default:20},collapse:{type:"string",default:"collapse-none"},fontSize:{type:"number",default:18},fontFamily:{type:"string"},fontVariant:{type:"string"},textTransform:{type:"string"},fontStyle:{type:"string",default:"normal"},lineHeight:{type:"number"},data:{type:"array",default:[{text:"",link:"",newTab:!1,color:"#ffffff",background:"#32373c",border:"",hoverColor:"",hoverBackground:"",hoverBorder:"",borderSize:0,borderRadius:0,boxShadow:!1,boxShadowColor:"",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:"",hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",prefix:"",icon:"",paddingTopBottom:12,paddingLeftRight:24},{text:"",link:"",newTab:!1,color:"#ffffff",background:"#32373c",border:"",hoverColor:"",hoverBackground:"",hoverBorder:"",borderSize:0,borderRadius:0,boxShadow:!1,boxShadowColor:"",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:"",hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",prefix:"",icon:"",paddingTopBottom:12,paddingLeftRight:24}]}},save:function(e){var t=e.attributes,n=t.id,a=t.buttons,l=t.align,o=t.collapse,i=t.fontSize,d=t.fontFamily,u=t.fontStyle,b=t.fontVariant,g=t.textTransform,h=t.lineHeight,f=t.data,y={fontSize:"".concat(i,"px"),fontFamily:d,fontWeight:b,fontStyle:u,textTransform:g,lineHeight:h&&"".concat(h,"px")},w="collapse-none"!==o?o:"";return wp.element.createElement("div",{id:n,className:r()(e.className,w),style:{justifyContent:l,alignItems:l||"flex-start"}},p(a,(function(e){return function(e){var t=c({},y,{borderWidth:"".concat(f[e].borderSize,"px"),borderRadius:"".concat(f[e].borderRadius,"px"),padding:"".concat(f[e].paddingTopBottom,"px ").concat(f[e].paddingLeftRight,"px")});return wp.element.createElement(s,null,wp.element.createElement("a",{href:f[e].link,target:f[e].newTab?"_blank":"_self",className:r()("wp-block-themeisle-blocks-button","wp-block-themeisle-blocks-button-".concat(e)),style:t},("left"===f[e].iconType||"only"===f[e].iconType)&&wp.element.createElement("i",{className:r()(f[e].prefix,"fa-fw","fa-".concat(f[e].icon),{"margin-right":"left"===f[e].iconType})}),"only"!==f[e].iconType&&wp.element.createElement(m.Content,{tagName:"span",value:f[e].text}),"right"===f[e].iconType&&wp.element.createElement("i",{className:"".concat(f[e].prefix," fa-fw fa-").concat(f[e].icon," margin-left")})))}(e)})))}},{attributes:{id:{type:"string"},buttons:{type:"number",default:2},align:{type:"string"},spacing:{type:"number",default:20},collapse:{type:"string",default:"collapse-none"},fontSize:{type:"number",default:18},fontFamily:{type:"string"},fontVariant:{type:"string"},textTransform:{type:"string"},fontStyle:{type:"string",default:"normal"},lineHeight:{type:"number"},data:{type:"array",default:[{text:"",link:"",newTab:!1,color:"#ffffff",background:"#32373c",border:"",hoverColor:"",hoverBackground:"",hoverBorder:"",borderSize:0,borderRadius:0,boxShadow:!1,boxShadowColor:"",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:"",hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",prefix:"",icon:"",paddingTopBottom:12,paddingLeftRight:24},{text:"",link:"",newTab:!1,color:"#ffffff",background:"#32373c",border:"",hoverColor:"",hoverBackground:"",hoverBorder:"",borderSize:0,borderRadius:0,boxShadow:!1,boxShadowColor:"",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:"",hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",prefix:"",icon:"",paddingTopBottom:12,paddingLeftRight:24}]}},save:function(e){var t=e.attributes,n=e.className,a="collapse-none"!==t.collapse?t.collapse:"",l={fontSize:"".concat(t.fontSize,"px"),fontFamily:t.fontFamily,fontWeight:t.fontVariant,fontStyle:t.fontStyle,textTransform:t.textTransform,lineHeight:t.lineHeight&&"".concat(t.lineHeight,"px")};return wp.element.createElement("div",{id:t.id,className:r()(n,a),style:{justifyContent:t.align,alignItems:t.align?t.align:"flex-start"}},p(t.buttons,(function(e){return function(e){var n=c({},l,{borderWidth:"".concat(t.data[e].borderSize,"px"),borderRadius:"".concat(t.data[e].borderRadius,"px"),padding:"".concat(t.data[e].paddingTopBottom,"px ").concat(t.data[e].paddingLeftRight,"px")});return wp.element.createElement(s,null,wp.element.createElement("a",{href:t.data[e].link,target:t.data[e].newTab?"_blank":"_self",className:r()("wp-block-themeisle-blocks-button","wp-block-themeisle-blocks-button-".concat(e)),style:n,rel:"noopener noreferrer"},("left"===t.data[e].iconType||"only"===t.data[e].iconType)&&wp.element.createElement("i",{className:r()(t.data[e].prefix,"fa-fw","fa-".concat(t.data[e].icon),{"margin-right":"left"===t.data[e].iconType})}),"only"!==t.data[e].iconType&&wp.element.createElement(m.Content,{tagName:"span",value:t.data[e].text}),"right"===t.data[e].iconType&&wp.element.createElement("i",{className:"".concat(t.data[e].prefix," fa-fw fa-").concat(t.data[e].icon," margin-left")})))}(e)})))}}],b=n(19),g=n.n(b),h=n(5),f=n(9),y=wp.i18n.__,w=wp.components,v=w.Dropdown,k=w.IconButton,T=w.RangeControl,E=w.Toolbar,x=wp.blockEditor,C=x.AlignmentToolbar,S=x.BlockControls,B=wp.element.Fragment,M=function(e){var t=e.attributes,n=e.setAttributes,a=e.changeFontSize,l=e.changeFontFamily,o=e.changeFontVariant,r=e.changeFontStyle,i=e.changeTextTransform,c=e.changeLineHeight;return wp.element.createElement(S,null,wp.element.createElement(C,{value:t.align,onChange:function(e){n({align:e})},alignmentControls:[{icon:"editor-alignleft",title:y("Align left"),align:"flex-start"},{icon:"editor-aligncenter",title:y("Align center"),align:"center"},{icon:"editor-alignright",title:y("Align right"),align:"flex-end"}]}),wp.element.createElement(E,{className:"wp-themesiel-blocks-button-group-components-toolbar"},wp.element.createElement(v,{contentClassName:"wp-themesiel-blocks-button-group-popover-content",position:"bottom center",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return wp.element.createElement(k,{className:"components-dropdown-menu__toggle",icon:"editor-textcolor",onClick:n,"aria-haspopup":"true","aria-expanded":t,label:y("Typography Settings"),tooltip:y("Typography Settings")},wp.element.createElement("span",{className:"components-dropdown-menu__indicator"}))},renderContent:function(){return wp.element.createElement(B,null,wp.element.createElement(T,{label:y("Font Size"),value:t.fontSize,onChange:a,min:0,max:50}),wp.element.createElement(f.a,{label:y("Font Family"),value:t.fontFamily,onChangeFontFamily:l,isSelect:!0,valueVariant:t.fontVariant,onChangeFontVariant:o,valueStyle:t.fontStyle,onChangeFontStyle:r,valueTransform:t.textTransform,onChangeTextTransform:i}),wp.element.createElement(T,{label:y("Line Height"),value:t.lineHeight,onChange:c,min:0,max:200}))}})))},O=n(7),R=n(8),N=n(21),L=n(3);function z(e){return(z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function H(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var A=wp.i18n.__,_=lodash.times,P=wp.components,I=P.BaseControl,j=P.Button,F=P.ButtonGroup,G=P.Dashicon,V=P.Dropdown,D=P.MenuGroup,W=P.MenuItem,q=P.Icon,Z=P.PanelBody,U=P.Placeholder,Q=P.RangeControl,K=P.SelectControl,J=P.Spinner,Y=P.ToggleControl,X=wp.blockEditor,$=X.ColorPalette,ee=X.InspectorControls,te=wp.element,ne=te.Fragment,ae=te.useState,le=React.lazy((function(){return Promise.all([n.e(0),n.e(1)]).then(n.bind(null,106))})),oe=function(e){var t=e.attributes,n=e.setAttributes,l=e.selectedButton,o=e.wait,i=e.changeButtons,c=e.changeButton,d=e.updateButton,p=e.changeFontSize,m=e.changeFontFamily,s=e.changeFontVariant,u=e.changeFontStyle,b=e.changeTextTransform,g=e.changeLineHeight,h=H(ae("buttons"),2),y=h[0],w=h[1],v=H(ae(!1),2),k=v[0],T=v[1];return wp.element.createElement(ee,null,wp.element.createElement(Z,{className:"wp-block-themeisle-blocks-button-group-header-panel"},wp.element.createElement(j,{className:r()("header-tab",{"is-selected":"buttons"===y}),onClick:function(){return w("buttons")}},wp.element.createElement("span",null,wp.element.createElement(q,{icon:a.d}),A("Buttons"))),wp.element.createElement(j,{className:r()("header-tab",{"is-selected":"group"===y}),onClick:function(){return w("group")}},wp.element.createElement("span",null,wp.element.createElement(G,{icon:"admin-generic"}),A("Group Settings")))),"buttons"===y&&wp.element.createElement(ne,null,wp.element.createElement(Z,{opened:!0},wp.element.createElement(Q,{label:A("Number of Buttons"),value:t.buttons,onChange:i,min:1,max:5}),wp.element.createElement(I,{label:A("Edit Button")},wp.element.createElement(V,{contentClassName:"wp-block-themeisle-blocks-select-button-popover",position:"bottom center",renderToggle:function(e){var n=e.isOpen,a=e.onToggle;return wp.element.createElement(j,{isLarge:!0,className:"wp-block-themeisle-blocks-select-button-button",onClick:a,"aria-expanded":n},A("Button")+" "+(l+1)+": "+Object(O.b)(t.data[l].text))},renderContent:function(e){var n=e.onToggle;return wp.element.createElement(D,null,_(t.buttons,(function(e){return wp.element.createElement(W,{onClick:function(){c(e),n()}},A("Button")+" "+(e+1)+": "+Object(O.b)(t.data[e].text))})))}}))),o?wp.element.createElement(U,null,wp.element.createElement(J,null)):wp.element.createElement(ne,null,wp.element.createElement(Z,{title:A("Link")},wp.element.createElement(N.a,{label:"Link",placeholder:A("https://…"),value:t.data[l].link,onChange:function(e){return d({link:e},l)}},wp.element.createElement(Y,{label:"Open in New Tab?",checked:t.data[l].newTab,onChange:function(){return d({newTab:!t.data[l].newTab},l)}}))),wp.element.createElement(Z,{title:A("Color & Border"),initialOpen:!1},wp.element.createElement(F,{className:"wp-block-themeisle-blocks-button-group-hover-control"},wp.element.createElement(j,{isDefault:!0,isLarge:!0,isPrimary:!k,onClick:function(){return T(!1)}},A("Normal")),wp.element.createElement(j,{isDefault:!0,isLarge:!0,isPrimary:k,onClick:function(){return T(!0)}},A("Hover"))),k?wp.element.createElement(ne,null,wp.element.createElement(I,{label:"Hover Color"},wp.element.createElement($,{label:"Hover Color",value:t.data[l].hoverColor,onChange:function(e){return d({hoverColor:e},l)}})),wp.element.createElement(I,{label:"Hover Background"},wp.element.createElement($,{label:"Hover Background",value:t.data[l].hoverBackground,onChange:function(e){return d({hoverBackground:e},l)}})),wp.element.createElement(I,{label:"Hover Border"},wp.element.createElement($,{label:"Hover Border",value:t.data[l].hoverBorder,onChange:function(e){return d({hoverBorder:e},l)}}))):wp.element.createElement(ne,null,wp.element.createElement(I,{label:"Color"},wp.element.createElement($,{label:"Color",value:t.data[l].color,onChange:function(e){return d({color:e},l)}})),wp.element.createElement(I,{label:"Background"},wp.element.createElement($,{label:"Background",value:t.data[l].background,onChange:function(e){return d({background:e},l)}})),wp.element.createElement(I,{label:"Border"},wp.element.createElement($,{label:"Border",value:t.data[l].border,onChange:function(e){return d({border:e},l)}}))),wp.element.createElement(Q,{label:A("Border Width"),className:"border-width",beforeIcon:"move",value:t.data[l].borderSize,onChange:function(e){return d({borderSize:e},l)},min:0,max:10}),wp.element.createElement(Q,{label:A("Border Radius"),beforeIcon:"move",value:t.data[l].borderRadius,onChange:function(e){return d({borderRadius:e},l)},min:0,max:100})),wp.element.createElement(Z,{title:A("Box Shadow"),initialOpen:!1},wp.element.createElement(Y,{label:"Box Shadow",checked:t.data[l].boxShadow,onChange:function(){return d({boxShadow:!t.data[l].boxShadow},l)}}),t.data[l].boxShadow&&wp.element.createElement(ne,null,wp.element.createElement(F,{className:"wp-block-themeisle-blocks-button-group-hover-control"},wp.element.createElement(j,{isDefault:!0,isLarge:!0,isPrimary:!k,onClick:function(){return T(!1)}},A("Normal")),wp.element.createElement(j,{isDefault:!0,isLarge:!0,isPrimary:k,onClick:function(){return T(!0)}},A("Hover"))),!k&&wp.element.createElement(ne,null,wp.element.createElement(I,{label:"Shadow Color"},wp.element.createElement($,{label:"Shadow Color",value:t.data[l].boxShadowColor,onChange:function(e){return d({boxShadowColor:e},l)}})),wp.element.createElement(R.a,{label:"Shadow Properties"},wp.element.createElement(Q,{label:A("Opacity"),value:t.data[l].boxShadowColorOpacity,onChange:function(e){return d({boxShadowColorOpacity:e},l)},min:0,max:100}),wp.element.createElement(Q,{label:A("Blur"),value:t.data[l].boxShadowBlur,onChange:function(e){return d({boxShadowBlur:e},l)},min:0,max:100}),wp.element.createElement(Q,{label:A("Spread"),value:t.data[l].boxShadowSpread,onChange:function(e){return d({boxShadowSpread:e},l)},min:-100,max:100}),wp.element.createElement(Q,{label:A("Horizontal"),value:t.data[l].boxShadowHorizontal,onChange:function(e){return d({boxShadowHorizontal:e},l)},min:-100,max:100}),wp.element.createElement(Q,{label:A("Vertical"),value:t.data[l].boxShadowVertical,onChange:function(e){return d({boxShadowVertical:e},l)},min:-100,max:100})))||k&&wp.element.createElement(ne,null,wp.element.createElement(I,{label:"Hover Shadow Color"},wp.element.createElement($,{label:"Hover Shadow Color",value:t.data[l].hoverBoxShadowColor,onChange:function(e){return d({hoverBoxShadowColor:e},l)}})),wp.element.createElement(R.a,{label:"Hover Shadow Properties"},wp.element.createElement(Q,{label:A("Opacity"),value:t.data[l].hoverBoxShadowColorOpacity,onChange:function(e){return d({hoverBoxShadowColorOpacity:e},l)},min:0,max:100}),wp.element.createElement(Q,{label:A("Blur"),value:t.data[l].hoverBoxShadowBlur,onChange:function(e){return d({hoverBoxShadowBlur:e},l)},min:0,max:100}),wp.element.createElement(Q,{label:A("Spread"),value:t.data[l].hoverBoxShadowSpread,onChange:function(e){return d({hoverBoxShadowSpread:e},l)},min:-100,max:100}),wp.element.createElement(Q,{label:A("Horizontal"),value:t.data[l].hoverBoxShadowHorizontal,onChange:function(e){return d({hoverBoxShadowHorizontal:e},l)},min:-100,max:100}),wp.element.createElement(Q,{label:A("Vertical"),value:t.data[l].hoverBoxShadowVertical,onChange:function(e){return d({hoverBoxShadowVertical:e},l)},min:-100,max:100}))))),wp.element.createElement(Z,{title:A("Icon Settings"),initialOpen:!1},wp.element.createElement(K,{label:A("Icon Position"),value:t.data[l].iconType,options:[{label:"No Icon",value:"none"},{label:"Left",value:"left"},{label:"Right",value:"right"},{label:"Icon Only",value:"only"}],onChange:function(e){return d({iconType:e},l)}}),"none"!==t.data[l].iconType&&wp.element.createElement(ne,null,wp.element.createElement(React.Suspense,{fallback:wp.element.createElement(U,null,wp.element.createElement(J,null))},wp.element.createElement(le,{label:A("Icon Picker"),prefix:t.data[l].prefix,icon:t.data[l].icon,onChange:function(e){"object"===z(e)?d({icon:e.name,prefix:e.prefix},l):d({icon:e},l)}})))),wp.element.createElement(Z,{title:A("Spacing"),initialOpen:!1},wp.element.createElement(L.a,{label:A("Padding"),min:0,max:100,onChange:function(e,t){return function(e,t,n){"top"!==e&&"bottom"!==e||d({paddingTopBottom:t},n),"left"!==e&&"right"!==e||d({paddingLeftRight:t},n)}(e,t,l)},options:[{label:A("Top"),type:"top",value:t.data[l].paddingTopBottom},{label:A("Right"),type:"right",value:t.data[l].paddingLeftRight},{label:A("Bottom"),type:"bottom",value:t.data[l].paddingTopBottom},{label:A("Left"),type:"left",value:t.data[l].paddingLeftRight}]}))))||"group"===y&&wp.element.createElement(ne,null,wp.element.createElement(Z,{title:A("Spacing")},wp.element.createElement(Q,{label:A("Spacing"),value:t.spacing,onChange:function(e){n({spacing:e})},min:0,max:50}),wp.element.createElement(K,{label:A("Collapse On"),value:t.collapse,options:[{label:"None",value:"collapse-none"},{label:"Desktop",value:"collapse-desktop"},{label:"Tablet",value:"collapse-tablet"},{label:"Mobile",value:"collapse-mobile"}],onChange:function(e){n({collapse:e})}})),wp.element.createElement(Z,{title:A("Typography Settings"),initialOpen:!1},wp.element.createElement(Q,{label:A("Font Size"),value:t.fontSize,onChange:p,min:0,max:50}),wp.element.createElement(f.a,{label:A("Font Family"),value:t.fontFamily,onChangeFontFamily:m,valueVariant:t.fontVariant,onChangeFontVariant:s,valueStyle:t.fontStyle,onChangeFontStyle:u,valueTransform:t.textTransform,onChangeTextTransform:b}),wp.element.createElement(Q,{label:A("Line Height"),value:t.lineHeight,onChange:g,min:0,max:200}))))},re=n(6),ie=n.n(re);function ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function de(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var me=wp.i18n.__,se=wp.blockEditor.RichText,ue=wp.element,be=ue.Fragment,ge=ue.useState,he=function(e){var t=e.index,n=e.attributes,a=e.changeButton,l=e.updateButton,o=pe(ge((function(){return 0===t})),2),i=o[0],c=o[1],d={};n.data[t].boxShadow&&(d={boxShadow:"".concat(n.data[t].boxShadowHorizontal,"px ").concat(n.data[t].boxShadowVertical,"px ").concat(n.data[t].boxShadowBlur,"px ").concat(n.data[t].boxShadowSpread,"px ").concat(ie()(n.data[t].boxShadowColor?n.data[t].boxShadowColor:"#000000",n.data[t].boxShadowColorOpacity))});var p=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ce(Object(n),!0).forEach((function(t){de(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ce(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({fontSize:"".concat(n.fontSize,"px"),fontFamily:n.fontFamily,fontWeight:n.fontVariant,fontStyle:n.fontStyle,textTransform:n.textTransform,lineHeight:n.lineHeight&&"".concat(n.lineHeight,"px"),color:n.data[t].color,background:n.data[t].background,border:"".concat(n.data[t].borderSize,"px solid ").concat(n.data[t].border),borderRadius:"".concat(n.data[t].borderRadius,"px")},d,{padding:"".concat(n.data[t].paddingTopBottom,"px ").concat(n.data[t].paddingLeftRight,"px"),marginLeft:0===t?"0px":"".concat(n.spacing/2,"px"),marginRight:n.buttons===t+1?"0px":"".concat(n.spacing/2,"px")});return wp.element.createElement(be,null,wp.element.createElement("style",null,"#".concat(n.id," .wp-block-themeisle-blocks-button-").concat(t,":hover {\n\t\t\t\t\tcolor: ").concat(n.data[t].hoverColor?n.data[t].hoverColor:n.data[t].color," !important;\n\t\t\t\t\tbackground: ").concat(n.data[t].hoverBackground?n.data[t].hoverBackground:n.data[t].background," !important;\n\t\t\t\t\tborder: ").concat(n.data[t].borderSize,"px solid ").concat(n.data[t].hoverBorder?n.data[t].hoverBorder:n.data[t].border," !important;\n\t\t\t\t\t").concat(n.data[t].boxShadow?"box-shadow: ".concat(n.data[t].hoverBoxShadowHorizontal,"px ").concat(n.data[t].hoverBoxShadowVertical,"px ").concat(n.data[t].hoverBoxShadowBlur,"px ").concat(n.data[t].hoverBoxShadowSpread,"px ").concat(ie()(n.data[t].hoverBoxShadowColor?n.data[t].hoverBoxShadowColor:"#000000",n.data[t].hoverBoxShadowColorOpacity)," !important;"):"","\n\t\t\t\t}")),wp.element.createElement("div",{style:p,className:r()("wp-block-themeisle-blocks-button","wp-block-themeisle-blocks-button-".concat(t),"wp-block-button__link"),onClick:function(){c(!0),a(t)},onBlur:function(){return c(!1)}},("left"===n.data[t].iconType||"only"===n.data[t].iconType)&&wp.element.createElement("i",{className:r()(n.data[t].prefix,"fa-fw","fa-".concat(n.data[t].icon),{"margin-right":"left"===n.data[t].iconType})}),"only"!==n.data[t].iconType&&wp.element.createElement(se,{placeholder:me("Add text…"),value:n.data[t].text,onChange:function(e){return l({text:e},t)},tagName:"div",keepPlaceholderOnFocus:i,withoutInteractiveFormatting:!0}),"right"===n.data[t].iconType&&wp.element.createElement("i",{className:"".concat(n.data[t].prefix," fa-fw fa-").concat(n.data[t].icon," margin-left")})))};function fe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function ye(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function we(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?we(Object(n),!0).forEach((function(t){ke(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):we(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ke(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Te=wp.i18n.__,Ee=lodash,xe=Ee.isEqual,Ce=Ee.omit,Se=Ee.pick,Be=Ee.times,Me=wp.components.IconButton,Oe=wp.element,Re=Oe.Fragment,Ne=Oe.useEffect,Le=Oe.useState,ze=[],He=function(e){var t=e.attributes,n=e.setAttributes,a=e.className,o=e.name,i=e.isSelected,c=e.clientId;Ne((function(){d()}),[]);var d=function(){var e=window.themeisleGutenberg.blockIDs?window.themeisleGutenberg.blockIDs:[];if(void 0===t.id){var a,r="wp-block-themeisle-blocks-button-group-".concat(c.substr(0,8));if(void 0!==(window.themeisleGutenberg.globalDefaults?window.themeisleGutenberg.globalDefaults:void 0)&&!xe(h.a[o],window.themeisleGutenberg.globalDefaults[o])){a=Ce(ve({},window.themeisleGutenberg.globalDefaults[o]),"data"),Object.keys(a).map((function(e){if(t[e]!==a[e]&&(void 0!==l[e].default||void 0!==l[e].default&&t[e]!==l[e].default))return delete a[e]}));var i=Se(ve({},window.themeisleGutenberg.globalDefaults[o]),"data"),d=[];t.data.forEach((function(e,t){var n=ve({},i.data);Object.keys(n).map((function(a){if(e[a]!==n[a]&&(void 0===l.data.default[t][a]||void 0!==l.data.default[t][a]&&e[a]!==l.data.default[t][a]))return delete n[a]})),d.push(ve({},e,{},n))})),xe(d,t.data)||(a.data=d)}n(ve({},a,{id:r})),ze.push(r),e.push(r)}else if(ze.includes(t.id)){var p="wp-block-themeisle-blocks-button-group-".concat(c.substr(0,8));n({id:p}),ze.push(p)}else ze.push(t.id),e.push(t.id);window.themeisleGutenberg.blockIDs=ye(e)},p=fe(Le(0),2),m=p[0],s=p[1],u=fe(Le(!1),2),b=u[0],f=u[1],y=function(e){s(e),f(!0),setTimeout((function(){f(!1)}),500)},w=function(e){if(1<=e&&5>=e){if(t.data.length<e){var a=ye(t.data);Be(e-t.data.length,(function(){a.push({text:t.data[0].text,link:t.data[0].link,newTab:t.data[0].newTab,color:t.data[0].color,border:t.data[0].border,background:t.data[0].background,hoverColor:t.data[0].hoverColor,hoverBackground:t.data[0].hoverBackground,hoverBorder:t.data[0].hoverBorder,borderSize:t.data[0].borderSize,borderRadius:t.data[0].borderRadius,boxShadow:t.data[0].boxShadow,boxShadowColor:t.data[0].boxShadowColor,boxShadowColorOpacity:t.data[0].boxShadowColorOpacity,boxShadowBlur:t.data[0].boxShadowBlur,boxShadowSpread:t.data[0].boxShadowSpread,boxShadowHorizontal:t.data[0].boxShadowHorizontal,boxShadowVertical:t.data[0].boxShadowVertical,hoverBoxShadowColor:t.data[0].hoverBoxShadowColor,hoverBoxShadowColorOpacity:t.data[0].hoverBoxShadowColorOpacity,hoverBoxShadowBlur:t.data[0].hoverBoxShadowBlur,hoverBoxShadowSpread:t.data[0].hoverBoxShadowSpread,hoverBoxShadowHorizontal:t.data[0].hoverBoxShadowHorizontal,hoverBoxShadowVertical:t.data[0].hoverBoxShadowVertical,iconType:t.data[0].iconType,prefix:t.data[0].prefix,icon:t.data[0].icon,paddingTopBottom:t.data[0].paddingTopBottom,paddingLeftRight:t.data[0].paddingLeftRight})})),n({data:a})}n({buttons:e}),s(0)}},v=function(e){n({fontSize:e})},k=function(e){n(e?{fontFamily:e,fontVariant:"normal",fontStyle:"normal"}:{fontFamily:e,fontVariant:e})},T=function(e){n({fontVariant:e})},E=function(e){n({fontStyle:e})},x=function(e){n({textTransform:e})},C=function(e){n({lineHeight:e})},S=function(e,a){var l=t.data.map((function(t,n){return a===n&&(t=ve({},t,{},e)),t}));n({data:l})},B="collapse-none"!==t.collapse?t.collapse:"";return wp.element.createElement(Re,null,t.fontFamily&&wp.element.createElement(g.a,{fonts:[{font:t.fontFamily,weights:t.fontVariant&&["".concat(t.fontVariant+("italic"===t.fontStyle?":i":""))]}]}),wp.element.createElement(M,{attributes:t,setAttributes:n,changeFontSize:v,changeFontFamily:k,changeFontVariant:T,changeFontStyle:E,changeTextTransform:x,changeLineHeight:C}),wp.element.createElement(oe,{attributes:t,setAttributes:n,selectedButton:m,wait:b,changeButtons:w,changeButton:y,updateButton:S,changeFontSize:v,changeFontFamily:k,changeFontVariant:T,changeFontStyle:E,changeTextTransform:x,changeLineHeight:C}),wp.element.createElement("div",{id:t.id,className:r()(a,B,"wp-block-button"),style:{justifyContent:t.align,alignItems:t.align?t.align:"flex-start"}},Be(t.buttons,(function(e){return wp.element.createElement(he,{index:e,attributes:t,isSelected:i,changeButton:y,updateButton:S})})),i&&4>=t.buttons&&wp.element.createElement(Me,{className:"wp-block-themeisle-blocks-button-inserter",icon:"plus-alt",onClick:function(){return w(t.buttons+1)},label:Te("Add Button")})))},Ae=wp.blockEditor.RichText,_e=wp.element.Fragment,Pe=function(e){var t=e.index,n=e.attributes;return wp.element.createElement(_e,null,wp.element.createElement("a",{href:n.data[t].link,target:n.data[t].newTab?"_blank":"_self",className:r()("wp-block-themeisle-blocks-button","wp-block-themeisle-blocks-button-".concat(t),"wp-block-button__link"),rel:"noopener noreferrer"},("left"===n.data[t].iconType||"only"===n.data[t].iconType)&&wp.element.createElement("i",{className:r()(n.data[t].prefix,"fa-fw","fa-".concat(n.data[t].icon),{"margin-right":"left"===n.data[t].iconType})}),"only"!==n.data[t].iconType&&wp.element.createElement(Ae.Content,{tagName:"span",value:n.data[t].text}),"right"===n.data[t].iconType&&wp.element.createElement("i",{className:"".concat(n.data[t].prefix," fa-fw fa-").concat(n.data[t].icon," margin-left")})))},Ie=lodash.times,je=function(e){var t=e.attributes,n=e.className,a="collapse-none"!==t.collapse&&t.collapse;return wp.element.createElement("div",{id:t.id,className:r()(n,a,"wp-block-button")},Ie(t.buttons,(function(e){return wp.element.createElement(Pe,{index:e,attributes:t})})))},Fe=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/button-group",{title:Fe("Button Group"),description:Fe("Prompt visitors to take action with a button group."),icon:a.d,category:"themeisle-blocks",keywords:[Fe("buttons"),Fe("button group"),Fe("advanced buttons")],attributes:l,deprecated:u,edit:He,save:je})},function(e,t,n){"use strict";n.r(t);n(48),n(49),n(50);var a=n(2),l={id:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6,div,p,span",default:""},tag:{default:"h2",type:"string"},align:{type:"string"},alignTablet:{type:"string"},alignMobile:{type:"string"},headingColor:{type:"string",default:"#000000"},highlightColor:{type:"string"},highlightBackground:{type:"string"},fontSize:{type:"number"},fontSizeTablet:{type:"number"},fontSizeMobile:{type:"number"},fontFamily:{type:"string"},fontVariant:{type:"string"},fontStyle:{type:"string",default:"normal"},textTransform:{type:"string",default:"none"},lineHeight:{type:"number"},letterSpacing:{type:"number"},textShadow:{type:"boolean",default:!1},textShadowColor:{type:"string",default:"#000000"},textShadowColorOpacity:{type:"number",default:50},textShadowBlur:{type:"number",default:5},textShadowHorizontal:{type:"number",default:0},textShadowVertical:{type:"number",default:0},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:0},paddingTablet:{type:"number"},paddingMobile:{type:"number"},paddingTop:{type:"number",default:0},paddingTopTablet:{type:"number"},paddingTopMobile:{type:"number"},paddingRight:{type:"number",default:0},paddingRightTablet:{type:"number"},paddingRightMobile:{type:"number"},paddingBottom:{type:"number",default:0},paddingBottomTablet:{type:"number"},paddingBottomMobile:{type:"number"},paddingLeft:{type:"number",default:0},paddingLeftTablet:{type:"number"},paddingLeftMobile:{type:"number"},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:0},marginTablet:{type:"number"},marginMobile:{type:"number"},marginTop:{type:"number",default:0},marginTopTablet:{type:"number"},marginTopMobile:{type:"number"},marginBottom:{type:"number",default:25},marginBottomTablet:{type:"number"},marginBottomMobile:{type:"number"}},o=n(0),r=n.n(o),i=n(6),c=n.n(i);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=wp.blockEditor.RichText,s=[{attributes:{id:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6,div,p,span",default:""},tag:{default:"h2",type:"string"},align:{type:"string"},alignTablet:{type:"string"},alignMobile:{type:"string"},headingColor:{type:"string",default:"#000000"},highlightColor:{type:"string"},highlightBackground:{type:"string"},fontSize:{type:"number"},fontSizeTablet:{type:"number"},fontSizeMobile:{type:"number"},fontFamily:{type:"string"},fontVariant:{type:"string"},fontStyle:{type:"string",default:"normal"},textTransform:{type:"string",default:"none"},lineHeight:{type:"number"},letterSpacing:{type:"number"},textShadow:{type:"boolean",default:!1},textShadowColor:{type:"string",default:"#000000"},textShadowColorOpacity:{type:"number",default:50},textShadowBlur:{type:"number",default:5},textShadowHorizontal:{type:"number",default:0},textShadowVertical:{type:"number",default:0},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:0},paddingTablet:{type:"number",default:0},paddingMobile:{type:"number",default:0},paddingTop:{type:"number",default:0},paddingTopTablet:{type:"number",default:0},paddingTopMobile:{type:"number",default:0},paddingRight:{type:"number",default:0},paddingRightTablet:{type:"number",default:0},paddingRightMobile:{type:"number",default:0},paddingBottom:{type:"number",default:0},paddingBottomTablet:{type:"number",default:0},paddingBottomMobile:{type:"number",default:0},paddingLeft:{type:"number",default:0},paddingLeftTablet:{type:"number",default:0},paddingLeftMobile:{type:"number",default:0},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:0},marginTablet:{type:"number",default:0},marginMobile:{type:"number",default:0},marginTop:{type:"number",default:0},marginTopTablet:{type:"number",default:0},marginTopMobile:{type:"number",default:0},marginBottom:{type:"number",default:25},marginBottomTablet:{type:"number",default:25},marginBottomMobile:{type:"number",default:20}},save:function(e){var t,n=e.attributes,a=e.className;n.textShadow&&(t={textShadow:"".concat(n.textShadowHorizontal,"px ").concat(n.textShadowVertical,"px ").concat(n.textShadowBlur,"px ").concat(c()(n.textShadowColor?n.textShadowColor:"#000000",n.textShadowColorOpacity))});var l=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({color:n.headingColor,fontFamily:n.fontFamily,fontWeight:"regular"===n.fontVariant?"normal":n.fontVariant,fontStyle:n.fontStyle,textTransform:n.textTransform,lineHeight:n.lineHeight&&"".concat(n.lineHeight,"px"),letterSpacing:n.letterSpacing&&"".concat(n.letterSpacing,"px")},t);return wp.element.createElement(m.Content,{tagName:n.tag,value:n.content,id:n.id,className:r()(n.id,a),style:l})}}],u=wp.blocks.createBlock,b={from:[{type:"block",blocks:["core/heading"],transform:function(e){var t=e.content;return u("themeisle-blocks/advanced-heading",{content:t})}},{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return u("themeisle-blocks/advanced-heading",{content:t})}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return u("core/paragraph",{content:t})}}]},g=n(19),h=n.n(g),f=n(5),y=n(9),w=wp.i18n.__,v=wp.components,k=v.Dropdown,T=v.DropdownMenu,E=v.IconButton,x=v.RangeControl,C=v.SVG,S=v.Toolbar,B=wp.blockEditor.BlockControls,M=wp.element.Fragment,O=function(e){var t=e.attributes,n=e.setAttributes,a=e.changeFontFamily,l=e.changeFontVariant,o=e.changeFontStyle,r=e.changeTextTransform,i=e.changeLineHeight,c=e.changeLetterSpacing,d=function(e){return"h1"===e?wp.element.createElement(C,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H1")):"h2"===e?wp.element.createElement(C,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H2")):"h3"===e?wp.element.createElement(C,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H3")):"h4"===e?wp.element.createElement(C,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H4")):"h5"===e?wp.element.createElement(C,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H5")):"h6"===e?wp.element.createElement(C,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H6")):"div"===e?wp.element.createElement(C,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"DIV")):"p"===e?wp.element.createElement(C,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{x:"0",y:"15"},"P")):"span"===e?wp.element.createElement(C,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"SPAN")):void 0},p=function(e){n({tag:e})};return wp.element.createElement(B,null,wp.element.createElement(T,{icon:d(t.tag),label:w("Select tag"),className:"components-toolbar",controls:[{title:w("Heading 1"),icon:d("h1"),onClick:function(){return p("h1")}},{title:w("Heading 2"),icon:d("h2"),onClick:function(){return p("h2")}},{title:w("Heading 3"),icon:d("h3"),onClick:function(){return p("h3")}},{title:w("Heading 4"),icon:d("h4"),onClick:function(){return p("h4")}},{title:w("Heading 5"),icon:d("h5"),onClick:function(){return p("h5")}},{title:w("Heading 6"),icon:d("h6"),onClick:function(){return p("h6")}},{title:w("Division"),icon:d("div"),onClick:function(){return p("div")}},{title:w("Paragraph"),icon:d("p"),onClick:function(){return p("p")}},{title:w("Span Tag"),icon:d("span"),onClick:function(){return p("span")}}]}),wp.element.createElement(S,{className:"wp-themesiel-blocks-advanced-heading-components-toolbar"},wp.element.createElement(k,{contentClassName:"wp-themesiel-blocks-advanced-heading-popover-content",position:"bottom center",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return wp.element.createElement(E,{className:"components-dropdown-menu__toggle",icon:"editor-textcolor",onClick:n,"aria-haspopup":"true","aria-expanded":t,label:w("Typography Settings"),tooltip:w("Typography Settings")},wp.element.createElement("span",{className:"components-dropdown-menu__indicator"}))},renderContent:function(){return wp.element.createElement(M,null,wp.element.createElement(y.a,{label:w("Font Family"),value:t.fontFamily,onChangeFontFamily:a,isSelect:!0,valueVariant:t.fontVariant,onChangeFontVariant:l,valueStyle:t.fontStyle,onChangeFontStyle:o,valueTransform:t.textTransform,onChangeTextTransform:r}),wp.element.createElement(x,{label:w("Line Height"),value:t.lineHeight,onChange:i,min:0,max:200}),wp.element.createElement(x,{label:w("Letter Spacing"),value:t.letterSpacing,onChange:c,min:-50,max:100}))}})))},R=n(8),N=n(4),L=n(3),z=n(20);function H(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var _=wp.i18n.__,P=wp.components,I=P.Button,j=P.Dashicon,F=P.PanelBody,G=P.RangeControl,V=P.ToggleControl,D=wp.blockEditor,W=D.AlignmentToolbar,q=D.ColorPalette,Z=D.InspectorControls,U=wp.element,Q=U.Fragment,K=U.useState,J=function(e){var t=e.attributes,n=e.setAttributes,a=e.changeFontFamily,l=e.changeFontVariant,o=e.changeFontStyle,i=e.changeTextTransform,c=e.changeLineHeight,d=e.changeLetterSpacing,p=A(K("style"),2),m=p[0],s=p[1],u=A(K("desktop"),2),b=u[0],g=u[1],h=A(K("desktop"),2),f=h[0],w=h[1],v=A(K("desktop"),2),k=v[0],T=v[1],E=A(K("desktop"),2),x=E[0],C=E[1],S=function(){var e;return"desktop"===b&&(e=t.fontSize),"tablet"===b&&(e=t.fontSizeTablet),"mobile"===b&&(e=t.fontSizeMobile),e};S=S();var B=function(){var e;return"desktop"===f&&(e=t.align),"tablet"===f&&(e=t.alignTablet),"mobile"===f&&(e=t.alignMobile),e};B=B();var M=function(){var e;return"desktop"===k&&(e=t.paddingType),"tablet"===k&&(e=t.paddingTypeTablet),"mobile"===k&&(e=t.paddingTypeMobile),e};M=M();var O={top:"paddingTop",right:"paddingRight",bottom:"paddingBottom",left:"paddingLeft"},P={top:"paddingTopTablet",right:"paddingRightTablet",bottom:"paddingBottomTablet",left:"paddingLeftTablet"},D={top:"paddingTopMobile",right:"paddingRightMobile",bottom:"paddingBottomMobile",left:"paddingLeftMobile"},U=function(e){var n;return"top"==e&&("desktop"===k&&(n="linked"===t.paddingType?t.padding:t.paddingTop),"tablet"===k&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingTopTablet),"mobile"===k&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingTopMobile)),"right"==e&&("desktop"===k&&(n="linked"===t.paddingType?t.padding:t.paddingRight),"tablet"===k&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingRightTablet),"mobile"===k&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingRightMobile)),"bottom"==e&&("desktop"===k&&(n="linked"===t.paddingType?t.padding:t.paddingBottom),"tablet"===k&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingBottomTablet),"mobile"===k&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingBottomMobile)),"left"==e&&("desktop"===k&&(n="linked"===t.paddingType?t.padding:t.paddingLeft),"tablet"===k&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingLeftTablet),"mobile"===k&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingLeftMobile)),n},J=function(){var e;return"desktop"===x&&(e=t.marginType),"tablet"===x&&(e=t.marginTypeTablet),"mobile"===x&&(e=t.marginTypeMobile),e};J=J();var Y={top:"marginTop",bottom:"marginBottom"},X={top:"marginTopTablet",bottom:"marginBottomTablet"},$={top:"marginTopMobile",bottom:"marginBottomMobile"},ee=function(e){var n;return"top"==e&&("desktop"===x&&(n="linked"===t.marginType?t.margin:t.marginTop),"tablet"===x&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginTopTablet),"mobile"===x&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginTopMobile)),"bottom"==e&&("desktop"===x&&(n="linked"===t.marginType?t.margin:t.marginBottom),"tablet"===x&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginBottomTablet),"mobile"===x&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginBottomMobile)),n};return wp.element.createElement(Q,null,wp.element.createElement(Z,null,wp.element.createElement(F,{className:"wp-block-themeisle-blocks-advanced-heading-header-panel"},wp.element.createElement(I,{className:r()("header-tab",{"is-selected":"style"===m}),onClick:function(){return s("style")}},wp.element.createElement("span",null,wp.element.createElement(j,{icon:"admin-customizer"}),_("Style"))),wp.element.createElement(I,{className:r()("header-tab",{"is-selected":"advanced"===m}),onClick:function(){return s("advanced")}},wp.element.createElement("span",null,wp.element.createElement(j,{icon:"admin-generic"}),_("Advanced")))),"style"===m&&wp.element.createElement(Q,null,wp.element.createElement(F,{title:_("General Settings")},wp.element.createElement(Q,null,wp.element.createElement("p",null,_("Heading Color")),wp.element.createElement(q,{label:"Heading Color",value:t.headingColor,onChange:function(e){n({headingColor:e})}})),wp.element.createElement(N.a,{label:"Font Size",view:b,changeViewType:g},wp.element.createElement(G,{value:S||"",onChange:function(e){"desktop"===b&&n({fontSize:e}),"tablet"===b&&n({fontSizeTablet:e}),"mobile"===b&&n({fontSizeMobile:e})},min:1,max:500})),wp.element.createElement(N.a,{label:"Alignment",view:f,changeViewType:w},wp.element.createElement(W,{value:B,onChange:function(e){"desktop"===f&&n({align:e}),"tablet"===f&&n({alignTablet:e}),"mobile"===f&&n({alignMobile:e})},isCollapsed:!1}))),wp.element.createElement(F,{title:_("Typography Settings"),initialOpen:!1},wp.element.createElement(y.a,{label:_("Font Family"),value:t.fontFamily,onChangeFontFamily:a,valueVariant:t.fontVariant,onChangeFontVariant:l,valueStyle:t.fontStyle,onChangeFontStyle:o,valueTransform:t.textTransform,onChangeTextTransform:i}),wp.element.createElement(G,{label:_("Line Height"),value:t.lineHeight,onChange:c,min:0,max:200}),wp.element.createElement(G,{label:_("Letter Spacing"),value:t.letterSpacing,onChange:d,min:-50,max:100}),wp.element.createElement(V,{label:"Shadow Properties",checked:t.textShadow,onChange:function(e){n({textShadow:e})}}),t.textShadow&&wp.element.createElement(Q,null,wp.element.createElement(Q,null,wp.element.createElement("p",null,_("Color")),wp.element.createElement(q,{label:_("Color"),value:t.textShadowColor,onChange:function(e){n({textShadowColor:e})}})),wp.element.createElement(R.a,{label:"Shadow Properties"},wp.element.createElement(G,{label:_("Opacity"),value:t.textShadowColorOpacity,onChange:function(e){n({textShadowColorOpacity:e})},min:0,max:100}),wp.element.createElement(G,{label:_("Blur"),value:t.textShadowBlur,onChange:function(e){n({textShadowBlur:e})},min:0,max:100}),wp.element.createElement(G,{label:_("Horizontal"),value:t.textShadowHorizontal,onChange:function(e){n({textShadowHorizontal:e})},min:-100,max:100}),wp.element.createElement(G,{label:_("Vertical"),value:t.textShadowVertical,onChange:function(e){n({textShadowVertical:e})},min:-100,max:100})))))||"advanced"===m&&wp.element.createElement(Q,null,wp.element.createElement(F,{title:_("Highlight Color")},wp.element.createElement(Q,null,wp.element.createElement("p",null,_("Highlight Color")),wp.element.createElement(q,{label:"Highlight Color",value:t.highlightColor,onChange:function(e){n({highlightColor:e})}})),wp.element.createElement(Q,null,wp.element.createElement("p",null,_("Highlight Background")),wp.element.createElement(q,{label:"Highlight Background",value:t.highlightBackground,onChange:function(e){n({highlightBackground:e})}}))),wp.element.createElement(F,{title:_("Spacing"),initialOpen:!1},wp.element.createElement(N.a,{label:"Padding",view:k,changeViewType:T},wp.element.createElement(L.a,{type:M,min:0,max:500,changeType:function(e){"desktop"===k&&n({paddingType:e}),"tablet"===k&&n({paddingTypeTablet:e}),"mobile"===k&&n({paddingTypeMobile:e})},onChange:function(e,a){"desktop"===k&&("linked"===t.paddingType?n({padding:a}):n(H({},O[e],a))),"tablet"===k&&("linked"===t.paddingTypeTablet?n({paddingTablet:a}):n(H({},P[e],a))),"mobile"===k&&("linked"===t.paddingTypeMobile?n({paddingMobile:a}):n(H({},D[e],a)))},options:[{label:_("Top"),type:"top",value:U("top")},{label:_("Right"),type:"right",value:U("right")},{label:_("Bottom"),type:"bottom",value:U("bottom")},{label:_("Left"),type:"left",value:U("left")}]})),wp.element.createElement(N.a,{label:"Margin",view:x,changeViewType:C},wp.element.createElement(L.a,{type:J,min:-500,max:500,changeType:function(e){"desktop"===x&&n({marginType:e}),"tablet"===x&&n({marginTypeTablet:e}),"mobile"===x&&n({marginTypeMobile:e})},onChange:function(e,a){"desktop"===x&&("linked"===t.marginType?n({margin:a}):n(H({},Y[e],a))),"tablet"===x&&("linked"===t.marginTypeTablet?n({marginTablet:a}):n(H({},X[e],a))),"mobile"===x&&("linked"===t.marginTypeMobile?n({marginMobile:a}):n(H({},$[e],a)))},options:[{label:_("Top"),type:"top",value:ee("top")},{label:_("Right"),disabled:!0},{label:_("Bottom"),type:"bottom",value:ee("bottom")},{label:_("Left"),disabled:!0}]}))))),wp.element.createElement(z.a,{value:t.id,onChange:function(e){n({id:e})}}))};function Y(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function X(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function $(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?X(Object(n),!0).forEach((function(t){ee(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var te=wp.i18n.__,ne=lodash.isEqual,ae=wp.blocks.createBlock,le=wp.blockEditor.RichText,oe=wp.element,re=oe.Fragment,ie=oe.useEffect,ce=wp.viewport.withViewportMatch,de=[],pe=ce({isLarger:">= large",isLarge:"<= large",isSmall:">= small",isSmaller:"<= small"})((function(e){var t=e.attributes,n=e.setAttributes,a=e.className,o=e.clientId,i=e.mergeBlocks,d=e.name,p=e.insertBlocksAfter,m=e.onReplace,s=e.isLarger,u=e.isLarge,b=e.isSmall,g=e.isSmaller;ie((function(){k()}),[]);var y,w,v,k=function(){var e=window.themeisleGutenberg.blockIDs?window.themeisleGutenberg.blockIDs:[];if(void 0===t.id){var a,r="wp-block-themeisle-blocks-advanced-heading-".concat(o.substr(0,8));void 0!==(window.themeisleGutenberg.globalDefaults?window.themeisleGutenberg.globalDefaults:void 0)&&(ne(f.a[d],window.themeisleGutenberg.globalDefaults[d])||(a=$({},window.themeisleGutenberg.globalDefaults[d]),Object.keys(a).map((function(e){if(t[e]!==a[e]&&void 0!==l[e].default&&t[e]!==l[e].default)return delete a[e]})))),n($({},a,{id:r})),de.push(r),e.push(r)}else if(de.includes(t.id)){var i="wp-block-themeisle-blocks-advanced-heading-".concat(o.substr(0,8));n({id:i}),de.push(i)}else de.push(t.id),e.push(t.id);window.themeisleGutenberg.blockIDs=Y(e)},T=!s&&!u&&b&&!g,E=!(s||u||b||g),x=function(e){n(e?{fontFamily:e,fontVariant:"normal",fontStyle:"normal"}:{fontFamily:e,fontVariant:e})},C=function(e){n({fontVariant:e})},S=function(e){n({fontStyle:e})},B=function(e){n({textTransform:e})},M=function(e){n({lineHeight:e})},R=function(e){n({letterSpacing:e})};s&&!u&&b&&!g&&(y={fontSize:"".concat(t.fontSize,"px")},w={textAlign:t.align,paddingTop:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingTop,"px"),paddingRight:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingRight,"px"),paddingBottom:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingBottom,"px"),paddingLeft:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingLeft,"px"),marginTop:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginTop,"px"),marginBottom:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginBottom,"px")}),T&&(y={fontSize:"".concat(t.fontSizeTablet,"px")},w={textAlign:t.alignTablet,paddingTop:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingTopTablet,"px"),paddingRight:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingRightTablet,"px"),paddingBottom:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingBottomTablet,"px"),paddingLeft:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingLeftTablet,"px"),marginTop:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginTopTablet,"px"),marginBottom:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginBottomTablet,"px")}),E&&(y={fontSize:"".concat(t.fontSizeMobile,"px")},w={textAlign:t.alignMobile,paddingTop:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingTopMobile,"px"),paddingRight:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingRightMobile,"px"),paddingBottom:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingBottomMobile,"px"),paddingLeft:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingLeftMobile,"px"),marginTop:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginTopMobile,"px"),marginBottom:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginBottomMobile,"px")}),t.textShadow&&(v={textShadow:"".concat(t.textShadowHorizontal,"px ").concat(t.textShadowVertical,"px ").concat(t.textShadowBlur,"px ").concat(c()(t.textShadowColor?t.textShadowColor:"#000000",t.textShadowColorOpacity))});var N=$({color:t.headingColor},y,{fontFamily:t.fontFamily?t.fontFamily:"inherit",fontWeight:"regular"===t.fontVariant?"normal":t.fontVariant,fontStyle:t.fontStyle,textTransform:t.textTransform,lineHeight:t.lineHeight&&"".concat(t.lineHeight,"px"),letterSpacing:t.letterSpacing&&"".concat(t.letterSpacing,"px")},w,{},v);return wp.element.createElement(re,null,wp.element.createElement("style",null,".".concat(t.id," mark {\n\t\t\t\t\t\tcolor: ").concat(t.highlightColor,";\n\t\t\t\t\t\tbackground: ").concat(t.highlightBackground,";\n\t\t\t\t\t}")),t.fontFamily&&wp.element.createElement(h.a,{fonts:[{font:t.fontFamily,weights:t.fontVariant&&["".concat(t.fontVariant+("italic"===t.fontStyle?":i":""))]}]}),wp.element.createElement(O,{attributes:t,setAttributes:n,changeFontFamily:x,changeFontVariant:C,changeFontStyle:S,changeTextTransform:B,changeLineHeight:M,changeLetterSpacing:R}),wp.element.createElement(J,{attributes:t,setAttributes:n,changeFontFamily:x,changeFontVariant:C,changeFontStyle:S,changeTextTransform:B,changeLineHeight:M,changeLetterSpacing:R}),wp.element.createElement(le,{identifier:"content",className:r()(t.id,a),value:t.content,placeholder:te("Write heading…"),tagName:t.tag,formattingControls:["bold","italic","link","strikethrough","mark"],allowedFormats:["core/bold","core/italic","core/link","core/strikethrough","themeisle-blocks/mark"],onMerge:i,unstableOnSplit:p?function(e,t){n({content:e});for(var a=arguments.length,l=new Array(a>2?a-2:0),o=2;o<a;o++)l[o-2]=arguments[o];p([].concat(l,[ae("core/paragraph",{content:t})]))}:void 0,onRemove:function(){return m([])},style:N,onChange:function(e){n({content:e})}}))})),me=wp.blockEditor.RichText,se=function(e){var t=e.attributes,n=e.className;return wp.element.createElement(me.Content,{tagName:t.tag,value:t.content,id:t.id,className:r()(t.id,n)})},ue=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/advanced-heading",{title:ue("Advanced Heading"),description:ue("Advanced Heading gives a spin to editor's Heading block with much needed customization options."),icon:a.h,category:"themeisle-blocks",keywords:[ue("heading"),ue("title"),ue("advanced heading")],attributes:l,deprecated:s,transforms:b,edit:pe,save:se})},function(e,t,n){"use strict";n.r(t);n(58),n(59);var a=n(2),l={id:{type:"string"},align:{type:"string"},prefix:{type:"string",default:"fab"},icon:{type:"string",default:"themeisle"},link:{type:"string"},newTab:{type:"boolean",default:!1},fontSize:{type:"number",default:16},padding:{type:"number",default:5},margin:{type:"number",default:5},backgroundColor:{type:"string"},textColor:{type:"string"},borderColor:{type:"string"},backgroundColorHover:{type:"string"},textColorHover:{type:"string"},borderColorHover:{type:"string"},borderSize:{type:"number",default:0},borderRadius:{type:"number",default:0}};function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=[{attributes:{prefix:{type:"string",default:"fab"},icon:{type:"string",default:"themeisle"},fontSize:{type:"number",default:16},padding:{type:"number",default:5},margin:{type:"number",default:5},backgroundColor:{type:"string"},textColor:{type:"string"},borderColor:{type:"string"},borderSize:{type:"number",default:0},borderRadius:{type:"number",default:0}},supports:{align:["left","center","right"]},migrate:function(e){var t="center";return e.className.includes("alignleft")&&(t="left"),e.className.includes("aligncenter")&&(t="center"),e.className.includes("alignright")&&(t="right"),function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{align:t,className:""})},save:function(e){var t={borderRadius:e.attributes.borderRadius+"%",fontSize:e.attributes.fontSize+"px",padding:e.attributes.padding+"px"},n={color:e.attributes.textColor,backgroundColor:e.attributes.backgroundColor,borderColor:e.attributes.borderColor,borderRadius:e.attributes.borderRadius+"%",borderStyle:"solid",borderWidth:e.attributes.borderSize+"px",display:"inline-block",margin:e.attributes.margin+"px"};return wp.element.createElement("p",{className:e.className,style:{textAlign:e.attributes.align}},wp.element.createElement("span",{className:"".concat(e.className,"-container"),style:n},wp.element.createElement("i",{className:"".concat(e.attributes.prefix," fa-").concat(e.attributes.icon),style:t})))}},{attributes:{align:{type:"string"},prefix:{type:"string",default:"fab"},icon:{type:"string",default:"themeisle"},fontSize:{type:"number",default:16},padding:{type:"number",default:5},margin:{type:"number",default:5},backgroundColor:{type:"string"},textColor:{type:"string"},borderColor:{type:"string"},borderSize:{type:"number",default:0},borderRadius:{type:"number",default:0}},save:function(e){var t={borderRadius:e.attributes.borderRadius+"%",fontSize:e.attributes.fontSize+"px",padding:e.attributes.padding+"px"},n={color:e.attributes.textColor,backgroundColor:e.attributes.backgroundColor,borderColor:e.attributes.borderColor,borderRadius:e.attributes.borderRadius+"%",borderStyle:"solid",borderWidth:e.attributes.borderSize+"px",display:"inline-block",margin:e.attributes.margin+"px"};return wp.element.createElement("p",{className:e.className,style:{textAlign:e.attributes.align}},wp.element.createElement("span",{className:"undefined-container",style:n},wp.element.createElement("i",{className:"".concat(e.attributes.prefix," fa-").concat(e.attributes.icon),style:t})))}},{attributes:{id:{type:"string"},align:{type:"string"},prefix:{type:"string",default:"fab"},icon:{type:"string",default:"themeisle"},link:{type:"string"},newTab:{type:"boolean",default:!1},fontSize:{type:"number",default:16},padding:{type:"number",default:5},margin:{type:"number",default:5},backgroundColor:{type:"string"},textColor:{type:"string"},borderColor:{type:"string"},backgroundColorHover:{type:"string"},textColorHover:{type:"string"},borderColorHover:{type:"string"},borderSize:{type:"number",default:0},borderRadius:{type:"number",default:0}},save:function(e){var t=e.attributes,n=e.className,a={borderRadius:t.borderRadius+"%",borderStyle:"solid",borderWidth:t.borderSize+"px",display:"inline-block",margin:t.margin+"px"},l={borderRadius:t.borderRadius+"%",fontSize:t.fontSize+"px",padding:t.padding+"px"},o=function(){return wp.element.createElement("i",{className:"".concat(t.prefix," fa-").concat(t.icon),style:l})};return wp.element.createElement("p",{className:n,id:t.id,style:{textAlign:t.align}},wp.element.createElement("span",{className:"wp-block-themeisle-blocks-font-awesome-icons-container",style:a},t.link?wp.element.createElement("a",{href:t.link,target:t.newTab?"_blank":"_self",style:{color:t.textColor},rel:"noopener noreferrer"},wp.element.createElement(o,null)):wp.element.createElement(o,null)))}}],c=n(5),d=wp.i18n.__,p=wp.blockEditor,m=p.AlignmentToolbar,s=p.BlockControls,u=function(e){var t=e.attributes,n=e.setAttributes;return wp.element.createElement(s,null,wp.element.createElement(m,{value:t.align,onChange:function(e){n({align:e})},alignmentControls:[{icon:"editor-alignleft",title:d("Align left"),align:"left"},{icon:"editor-aligncenter",title:d("Align center"),align:"center"},{icon:"editor-alignright",title:d("Align right"),align:"right"}]}))},b=n(21);function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var f=wp.i18n.__,y=wp.components,w=y.BaseControl,v=y.Button,k=y.ButtonGroup,T=y.PanelBody,E=y.Placeholder,x=y.RangeControl,C=y.Spinner,S=y.ToggleControl,B=wp.blockEditor,M=B.ColorPalette,O=B.ContrastChecker,R=B.InspectorControls,N=wp.element,L=N.Fragment,z=N.useState,H=React.lazy((function(){return Promise.all([n.e(0),n.e(1)]).then(n.bind(null,106))})),A=function(e){var t=e.attributes,n=e.setAttributes,a=h(z(!1),2),l=a[0],o=a[1];return wp.element.createElement(R,null,wp.element.createElement(T,{title:f("Icon Settings")},wp.element.createElement(React.Suspense,{fallback:wp.element.createElement(E,null,wp.element.createElement(C,null))},wp.element.createElement(H,{label:f("Icon Picker"),prefix:t.prefix,icon:t.icon,onChange:function(e){"object"===g(e)?n({icon:e.name,prefix:e.prefix}):n({icon:e})}})),wp.element.createElement(b.a,{label:f("Link"),placeholder:"https://…",value:t.link,onChange:function(e){n({link:e})}},wp.element.createElement(S,{label:"Open in New Tab?",checked:t.newTab,onChange:function(){n({newTab:!t.newTab})}}))),wp.element.createElement(T,{title:f("Icon Sizes"),initialOpen:!1},wp.element.createElement(x,{label:f("Icon Size"),value:t.fontSize||"",initialPosition:16,onChange:function(e){n({fontSize:e})},min:12,max:140,beforeIcon:"minus",afterIcon:"plus"}),wp.element.createElement(x,{label:f("Padding"),value:t.padding||"",initialPosition:5,onChange:function(e){n({padding:e})},min:0,max:100,beforeIcon:"minus",afterIcon:"plus"}),wp.element.createElement(x,{label:f("Margin"),value:t.margin||"",initialPosition:5,onChange:function(e){n({margin:e})},min:0,max:100,beforeIcon:"minus",afterIcon:"plus"})),wp.element.createElement(T,{title:f("Color"),initialOpen:!1},wp.element.createElement(k,{className:"wp-block-themeisle-blocks-font-awesome-icons-hover-control"},wp.element.createElement(v,{isDefault:!0,isLarge:!0,isPrimary:!l,onClick:function(){return o(!1)}},f("Normal")),wp.element.createElement(v,{isDefault:!0,isLarge:!0,isPrimary:l,onClick:function(){return o(!0)}},f("Hover"))),l?wp.element.createElement(L,null,wp.element.createElement(w,{label:"Hover Background"},wp.element.createElement(M,{label:"Hover Background",value:t.backgroundColorHover,onChange:function(e){n({backgroundColorHover:e})}})),wp.element.createElement(w,{label:"Hover Icon"},wp.element.createElement(M,{label:"Hover Icon",value:t.textColorHover,onChange:function(e){n({textColorHover:e})}})),wp.element.createElement(w,{label:"Hover Border"},wp.element.createElement(M,{label:"Hover Border",value:t.borderColorHover,onChange:function(e){n({borderColorHover:e})}})),wp.element.createElement(O,{textColor:t.textColorHover,backgroundColor:t.backgroundColorHover})):wp.element.createElement(L,null,wp.element.createElement(w,{label:"Background"},wp.element.createElement(M,{label:"Background",value:t.backgroundColor,onChange:function(e){n({backgroundColor:e})}})),wp.element.createElement(w,{label:"Icon"},wp.element.createElement(M,{label:"Icon",value:t.textColor,onChange:function(e){n({textColor:e})}})),wp.element.createElement(w,{label:"Border"},wp.element.createElement(M,{label:"Border",value:t.borderColor,onChange:function(e){n({borderColor:e})}})),wp.element.createElement(O,{textColor:t.textColor,backgroundColor:t.backgroundColor}))),wp.element.createElement(T,{title:f("Border Settings"),initialOpen:!1},wp.element.createElement(x,{label:f("Border Size"),value:t.borderSize,onChange:function(e){n({borderSize:e})},min:0,max:120,beforeIcon:"minus",afterIcon:"plus"}),wp.element.createElement(x,{label:f("Border Radius"),value:t.borderRadius,onChange:function(e){n({borderRadius:e})},min:0,max:100,beforeIcon:"grid-view",afterIcon:"marker"})))};function _(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach((function(t){j(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function j(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var F=lodash.isEqual,G=wp.element,V=G.Fragment,D=G.useEffect,W=[],q=function(e){var t=e.attributes,n=e.setAttributes,a=e.className,o=e.clientId,r=e.name;D((function(){i()}),[]);var i=function(){var e=window.themeisleGutenberg.blockIDs?window.themeisleGutenberg.blockIDs:[];if(void 0===t.id){var a,i="wp-block-themeisle-blocks-font-awesome-icons-".concat(o.substr(0,8));void 0!==(window.themeisleGutenberg.globalDefaults?window.themeisleGutenberg.globalDefaults:void 0)&&(F(c.a[r],window.themeisleGutenberg.globalDefaults[r])||(a=I({},window.themeisleGutenberg.globalDefaults[r]),Object.keys(a).map((function(e){if(t[e]!==a[e]&&void 0!==l[e].default&&t[e]!==l[e].default)return delete a[e]})))),n(I({},a,{id:i})),W.push(i),e.push(i)}else if(W.includes(t.id)){var d="wp-block-themeisle-blocks-font-awesome-icons-".concat(o.substr(0,8));n({id:d}),W.push(d)}else W.push(t.id),e.push(t.id);window.themeisleGutenberg.blockIDs=_(e)},d={borderRadius:t.borderRadius+"%",fontSize:t.fontSize+"px",padding:t.padding+"px"},p={color:t.textColor,backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderRadius:t.borderRadius+"%",borderStyle:"solid",borderWidth:t.borderSize+"px",display:"inline-block",margin:t.margin+"px"};return wp.element.createElement(V,null,wp.element.createElement(u,{attributes:t,setAttributes:n}),wp.element.createElement(A,{attributes:t,setAttributes:n}),wp.element.createElement("style",null,"#".concat(t.id," .").concat(a,"-container:hover {\n\t\t\t\t\t\tcolor: ").concat(t.textColorHover?t.textColorHover:t.textColor," !important;\n\t\t\t\t\t\tbackground: ").concat(t.backgroundColorHover?t.backgroundColorHover:t.backgroundColor," !important;\n\t\t\t\t\t\tborder-color: ").concat(t.borderColorHover?t.borderColorHover:t.borderColor," !important;\n\t\t\t\t\t}")),wp.element.createElement("p",{className:a,id:t.id,style:{textAlign:t.align}},wp.element.createElement("span",{className:"wp-block-themeisle-blocks-font-awesome-icons-container",style:p},wp.element.createElement("i",{className:"".concat(t.prefix," fa-").concat(t.icon),style:d}))))},Z=function(e){var t=e.attributes,n=e.className;return wp.element.createElement("p",{className:n,id:t.id},wp.element.createElement("span",{className:"wp-block-themeisle-blocks-font-awesome-icons-container"},t.link?wp.element.createElement("a",{href:t.link,target:t.newTab?"_blank":"_self",rel:"noopener noreferrer"},wp.element.createElement("i",{className:"".concat(t.prefix," fa-").concat(t.icon)})):wp.element.createElement("i",{className:"".concat(t.prefix," fa-").concat(t.icon)})))},U=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/font-awesome-icons",{title:U("Font Awesome Icons"),description:U("Share buttons for your website visitors to share content on any social sharing service."),icon:a.g,category:"themeisle-blocks",keywords:["font awesome","dashicons","icons"],attributes:l,deprecated:i,edit:q,save:Z})},function(e,t,n){"use strict";n.r(t);n(67),n(68);var a=n(2),l={style:{type:"string",default:"grid"},columns:{type:"number",default:3},template:{type:"array",default:["category","title","meta","description"]},categories:{type:"string"},postsToShow:{type:"number",default:5},order:{type:"string",default:"desc"},orderBy:{type:"string",default:"date"},offset:{type:"number",default:0},imageSize:{type:"string",default:"full"},imageBoxShadow:{type:"boolean",default:!0},displayFeaturedImage:{type:"boolean",default:!0},displayCategory:{type:"boolean",default:!0},displayTitle:{type:"boolean",default:!0},titleTag:{type:"string",default:"h5"},displayMeta:{type:"boolean",default:!0},displayDescription:{type:"boolean",default:!0},excerptLength:{type:"number",default:100},displayDate:{type:"boolean",default:!0},displayAuthor:{type:"boolean",default:!0}},o=n(11),r=n(37),i=n.n(r),c=n(0),d=n.n(c),p=n(24);function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var s=lodash,u=s.startCase,b=s.toLower,g=wp.i18n.__,h=wp.components,f=h.IconButton,y=h.TextControl,w=h.SelectControl,v=h.ToggleControl,k=wp.element,T=k.Fragment,E=k.useState,x=Object(p.c)((function(){return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-builder-handle"},wp.element.createElement("span",null))})),C=function(e){var t,n=e.value,a=e.disabled,l=e.getFields,o=e.toggleFields,r=e.imageSize,i=e.titleTag,c=e.excerptLimit,p=m(E(!1),2),s=p[0],h=p[1],k=u(b(n)),C="hidden",S=g("Display ".concat(k));switch(l(n)&&(C="visibility",S=g("Hide ".concat(k))),n){case"image":case"title":case"meta":case"description":t=!0;break;default:t=!1}return wp.element.createElement("div",{className:d()("wp-block-themeisle-blocks-posts-grid-builder-item-area","wp-block-themeisle-blocks-posts-grid-builder-item-area-".concat(n))},wp.element.createElement("div",{className:d()("wp-block-themeisle-blocks-posts-grid-builder-item",{disabled:a,hidden:!l(n),editable:t})},!a&&wp.element.createElement(x,null),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-builder-label"},k),t&&wp.element.createElement(f,{icon:s?"arrow-up-alt2":"arrow-down-alt2",label:g(s?"Close Settings":"Open Settings"),className:"wp-block-themeisle-blocks-posts-grid-builder-button",onClick:function(){return h(!s)}}),wp.element.createElement(f,{icon:C,label:S,className:"wp-block-themeisle-blocks-posts-grid-builder-button",onClick:function(){o(n),h(!1)}})),t&&wp.element.createElement("div",{className:d()("wp-block-themeisle-blocks-posts-grid-builder-control-area",{opened:s&&l(n)})},"image"===n&&wp.element.createElement(T,null,wp.element.createElement(w,{label:g("Image Size"),value:r.value,options:[{label:g("Thumbnail"),value:"thumbnail"},{label:g("Medium"),value:"medium"},{label:g("Medium Large"),value:"medium_large"},{label:g("Large"),value:"large"},{label:g("Full"),value:"full"}],onChange:r.onChange}),wp.element.createElement(v,{label:"Display Box Shadow?",checked:l("imageBoxShadow"),onChange:function(){return o("imageBoxShadow")}})),"title"===n&&wp.element.createElement(w,{label:g("Title Tag"),value:i.value||"h5",options:[{label:g("H1"),value:"h1"},{label:g("H2"),value:"h2"},{label:g("H3"),value:"h3"},{label:g("H4"),value:"h4"},{label:g("H5"),value:"h5"},{label:g("H6"),value:"h6"}],onChange:i.onChange}),"description"===n&&wp.element.createElement(y,{label:g("Excerpt Limit"),type:"number",value:c.value,onChange:c.onChange}),"meta"===n&&wp.element.createElement(T,null,wp.element.createElement(v,{label:"Display Date?",checked:l("date"),onChange:function(){return o("date")}}),wp.element.createElement(v,{label:"Display Author?",checked:l("author"),onChange:function(){return o("author")}}))))},S=Object(p.b)((function(e){var t=e.value,n=e.disabled,a=e.getFields,l=e.toggleFields,o=e.titleTag,r=e.excerptLimit;return wp.element.createElement(C,{value:t,disabled:n,getFields:a,toggleFields:l,titleTag:o,excerptLimit:r})})),B=Object(p.a)((function(e){var t=e.template,n=e.getFields,a=e.toggleFields,l=e.titleTag,o=e.excerptLimit;return wp.element.createElement("div",null,t.map((function(e,t){return wp.element.createElement(S,{key:"item-".concat(t),index:t,value:e,getFields:n,toggleFields:a,titleTag:l,excerptLimit:o})})))})),M=wp.i18n.__,O=wp.element.Fragment,R=function(e){var t=e.attributes,n=e.setAttributes,a=e.getFields,l=e.toggleFields,o=e.imageSize,r=e.titleTag,c=e.excerptLimit;return wp.element.createElement(O,null,wp.element.createElement("div",{className:d()("wp-block-themeisle-blocks-posts-grid-builder",t.style)},wp.element.createElement(C,{value:M("image"),disabled:!0,getFields:a,toggleFields:l,imageSize:o}),wp.element.createElement(B,{template:t.template,onSortEnd:function(e){var a=e.oldIndex,l=e.newIndex,o=i()(t.template,a,l);n({template:o})},getFields:a,toggleFields:l,titleTag:r,excerptLimit:c,useDragHandle:!0})))},N=wp.i18n.__,L=wp.components,z=L.PanelBody,H=L.QueryControls,A=L.RangeControl,_=L.TextControl,P=wp.blockEditor.InspectorControls,I=function(e){var t=e.attributes,n=e.setAttributes,a=e.changeStyle,l=e.categoriesList;return wp.element.createElement(P,null,wp.element.createElement(z,{title:N("Styles"),initialOpen:!1},wp.element.createElement(o.b,{value:t.style,options:[{label:N("Grid"),value:"grid",image:themeisleGutenberg.assetsPath+"/icons/posts-grid.jpg"},{label:N("List"),value:"list",image:themeisleGutenberg.assetsPath+"/icons/posts-list.jpg"}],onChange:a})),wp.element.createElement(z,{title:N("Settings")},"grid"===t.style&&wp.element.createElement(A,{label:N("Columns"),value:t.columns,onChange:function(e){n({columns:e})},min:1,max:5}),wp.element.createElement(H,{order:t.order,orderBy:t.orderBy,numberOfItems:t.postsToShow,categoriesList:l,selectedCategoryId:t.categories,onOrderChange:function(e){return n({order:e})},onOrderByChange:function(e){return n({orderBy:e})},onCategoryChange:function(e){return n({categories:""!==e?e:void 0})},onNumberOfItemsChange:function(e){return n({postsToShow:e})}}),wp.element.createElement(_,{label:N("Offset"),help:N("Number of post to displace or pass over."),type:"number",value:t.offset,min:0,onChange:function(e){return n({offset:e})}})),wp.element.createElement(z,{title:N("Design & Layout"),initialOpen:!1},wp.element.createElement(R,{attributes:t,getFields:function(e){return"image"===e?t.displayFeaturedImage:"imageBoxShadow"===e?t.imageBoxShadow:"category"===e?t.displayCategory:"title"===e?t.displayTitle:"meta"===e?t.displayMeta:"description"===e?t.displayDescription:"date"===e?t.displayDate:"author"===e?t.displayAuthor:void 0},toggleFields:function(e){"image"===e&&n({displayFeaturedImage:!t.displayFeaturedImage}),"imageBoxShadow"===e&&n({imageBoxShadow:!t.imageBoxShadow}),"category"===e&&n({displayCategory:!t.displayCategory}),"title"===e&&n({displayTitle:!t.displayTitle}),"meta"===e&&n({displayMeta:!t.displayMeta}),"description"===e&&n({displayDescription:!t.displayDescription}),"date"===e&&n({displayDate:!t.displayDate}),"author"===e&&n({displayAuthor:!t.displayAuthor})},setAttributes:n,imageSize:{value:t.imageSize,onChange:function(e){n({imageSize:e})}},titleTag:{value:t.titleTag,onChange:function(e){n({titleTag:e})}},excerptLimit:{value:t.excerptLength,onChange:function(e){n({excerptLength:e})}}})))},j=n(27),F=lodash,G=F.isUndefined,V=F.pickBy,D=wp.i18n.__,W=wp.components,q=W.Disabled,Z=W.Placeholder,U=W.Spinner,Q=wp.data.withSelect,K=wp.element.Fragment,J=Q((function(e,t){var n=t.attributes,a=n.categories,l=n.order,o=n.orderBy,r=n.postsToShow,i=n.offset,c=V({categories:a,order:l,orderby:o,per_page:r,offset:i},(function(e){return!G(e)}));return{posts:e("core").getEntityRecords("postType","post",c),categoriesList:e("core").getEntityRecords("taxonomy","category",{per_page:100}),authors:e("core").getAuthors()}}))((function(e){var t=e.attributes,n=e.setAttributes,a=e.className,l=e.posts,r=e.categoriesList,i=e.authors,c=function(e){n({style:e})};return l&&r&&i?0===l.length?wp.element.createElement(K,null,wp.element.createElement(Z,null,D("No Posts")),r&&t.offset&&wp.element.createElement(I,{attributes:t,setAttributes:n,changeStyle:c,categoriesList:r})):wp.element.createElement(K,null,wp.element.createElement(o.a,{label:D("Block Styles"),value:t.style,options:[{label:D("Grid"),value:"grid",image:themeisleGutenberg.assetsPath+"/icons/posts-grid.jpg"},{label:D("List"),value:"list",image:themeisleGutenberg.assetsPath+"/icons/posts-list.jpg"}],onChange:c}),wp.element.createElement(I,{attributes:t,setAttributes:n,changeStyle:c,categoriesList:r}),wp.element.createElement(q,null,wp.element.createElement(j.default,{className:a,attributes:t,posts:l,categoriesList:r,authors:i}))):wp.element.createElement(K,null,wp.element.createElement(Z,null,wp.element.createElement(U,null),D("Loading Posts")),r&&t.offset&&wp.element.createElement(I,{attributes:t,setAttributes:n,changeStyle:c,categoriesList:r}))})),Y=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/posts-grid",{title:Y("Posts"),description:Y("Display a list of your most recent posts in a beautiful layout."),icon:a.n,category:"themeisle-blocks",keywords:["posts","grid","news"],attributes:l,supports:{align:["wide","full"],html:!1},edit:J,save:function(){return null}})},function(e,t,n){"use strict";n.r(t);n(85),n(86);var a=n(2),l={facebook:{type:"boolean",default:!0},twitter:{type:"boolean",default:!0},linkedin:{type:"boolean",default:!0},pinterest:{type:"boolean",default:!1},tumblr:{type:"boolean",default:!1},reddit:{type:"boolean",default:!1}},o=n(0),r=n.n(o),i=wp.i18n.__,c={facebook:{label:i("Facebook"),icon:"facebook-f"},twitter:{label:i("Twitter"),icon:"twitter"},linkedin:{label:i("Linkedin"),icon:"linkedin-in"},pinterest:{label:i("Pinterest"),icon:"pinterest-p"},tumblr:{label:i("Tumblr"),icon:"tumblr"},reddit:{label:i("Reddit"),icon:"reddit-alien"}},d=wp.components,p=d.Path,m=d.SVG,s=function(e){var t=e.icon;return"facebook"===t?wp.element.createElement(m,{className:"wp-block-themeisle-toolbar",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 264 512"},wp.element.createElement(p,{fill:"currentColor",d:"M76.7 512V283H0v-91h76.7v-71.7C76.7 42.4 124.3 0 193.8 0c33.3 0 61.9 2.5 70.2 3.6V85h-48.2c-37.8 0-45.1 18-45.1 44.3V192H256l-11.7 91h-73.6v229"})):"twitter"===t?wp.element.createElement(m,{className:"wp-block-themeisle-toolbar",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},wp.element.createElement(p,{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"})):"linkedin"===t?wp.element.createElement(m,{className:"wp-block-themeisle-toolbar",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"},wp.element.createElement(p,{fill:"currentColor",d:"M100.3 480H7.4V180.9h92.9V480zM53.8 140.1C24.1 140.1 0 115.5 0 85.8 0 56.1 24.1 32 53.8 32c29.7 0 53.8 24.1 53.8 53.8 0 29.7-24.1 54.3-53.8 54.3zM448 480h-92.7V334.4c0-34.7-.7-79.2-48.3-79.2-48.3 0-55.7 37.7-55.7 76.7V480h-92.8V180.9h89.1v40.8h1.3c12.4-23.5 42.7-48.3 87.9-48.3 94 0 111.3 61.9 111.3 142.3V480z"})):"pinterest"===t?wp.element.createElement(m,{className:"wp-block-themeisle-toolbar",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512"},wp.element.createElement(p,{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"})):"tumblr"===t?wp.element.createElement(m,{className:"wp-block-themeisle-toolbar",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"},wp.element.createElement(p,{fill:"currentColor",d:"M309.8 480.3c-13.6 14.5-50 31.7-97.4 31.7-120.8 0-147-88.8-147-140.6v-144H17.9c-5.5 0-10-4.5-10-10v-68c0-7.2 4.5-13.6 11.3-16 62-21.8 81.5-76 84.3-117.1.8-11 6.5-16.3 16.1-16.3h70.9c5.5 0 10 4.5 10 10v115.2h83c5.5 0 10 4.4 10 9.9v81.7c0 5.5-4.5 10-10 10h-83.4V360c0 34.2 23.7 53.6 68 35.8 4.8-1.9 9-3.2 12.7-2.2 3.5.9 5.8 3.4 7.4 7.9l22 64.3c1.8 5 3.3 10.6-.4 14.5z"})):"reddit"===t?wp.element.createElement(m,{className:"wp-block-themeisle-toolbar",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},wp.element.createElement(p,{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"})):wp.element.createElement(m,{className:"wp-block-themeisle-toolbar",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},wp.element.createElement(p,{fill:"currentColor",d:"M208 88.286c0-10 6.286-21.714 17.715-21.714 11.142 0 17.714 11.714 17.714 21.714 0 10.285-6.572 21.714-17.714 21.714C214.286 110 208 98.571 208 88.286zm304 160c0 36.001-11.429 102.286-36.286 129.714-22.858 24.858-87.428 61.143-120.857 70.572l-1.143.286v32.571c0 16.286-12.572 30.571-29.143 30.571-10 0-19.429-5.714-24.572-14.286-5.427 8.572-14.856 14.286-24.856 14.286-10 0-19.429-5.714-24.858-14.286-5.142 8.572-14.571 14.286-24.57 14.286-10.286 0-19.429-5.714-24.858-14.286-5.143 8.572-14.571 14.286-24.571 14.286-18.857 0-29.429-15.714-29.429-32.857-16.286 12.285-35.715 19.428-56.571 19.428-22 0-43.429-8.285-60.286-22.857 10.285-.286 20.571-2.286 30.285-5.714-20.857-5.714-39.428-18.857-52-36.286 21.37 4.645 46.209 1.673 67.143-11.143-22-22-56.571-58.857-68.572-87.428C1.143 321.714 0 303.714 0 289.429c0-49.714 20.286-160 86.286-160 10.571 0 18.857 4.858 23.143 14.857a158.792 158.792 0 0 1 12-15.428c2-2.572 5.714-5.429 7.143-8.286 7.999-12.571 11.714-21.142 21.714-34C182.571 45.428 232 17.143 285.143 17.143c6 0 12 .285 17.714 1.143C313.714 6.571 328.857 0 344.572 0c14.571 0 29.714 6 40 16.286.857.858 1.428 2.286 1.428 3.428 0 3.714-10.285 13.429-12.857 16.286 4.286 1.429 15.714 6.858 15.714 12 0 2.857-2.857 5.143-4.571 7.143 31.429 27.714 49.429 67.143 56.286 108 4.286-5.143 10.285-8.572 17.143-8.572 10.571 0 20.857 7.144 28.571 14.001C507.143 187.143 512 221.714 512 248.286zM188 89.428c0 18.286 12.571 37.143 32.286 37.143 19.714 0 32.285-18.857 32.285-37.143 0-18-12.571-36.857-32.285-36.857-19.715 0-32.286 18.858-32.286 36.857zM237.714 194c0-19.714 3.714-39.143 8.571-58.286-52.039 79.534-13.531 184.571 68.858 184.571 21.428 0 42.571-7.714 60-20 2-7.429 3.714-14.857 3.714-22.572 0-14.286-6.286-21.428-20.572-21.428-4.571 0-9.143.857-13.429 1.714-63.343 12.668-107.142 3.669-107.142-63.999zm-41.142 254.858c0-11.143-8.858-20.857-20.286-20.857-11.429 0-20 9.715-20 20.857v32.571c0 11.143 8.571 21.142 20 21.142 11.428 0 20.286-9.715 20.286-21.142v-32.571zm49.143 0c0-11.143-8.572-20.857-20-20.857-11.429 0-20.286 9.715-20.286 20.857v32.571c0 11.143 8.857 21.142 20.286 21.142 11.428 0 20-10 20-21.142v-32.571zm49.713 0c0-11.143-8.857-20.857-20.285-20.857-11.429 0-20.286 9.715-20.286 20.857v32.571c0 11.143 8.857 21.142 20.286 21.142 11.428 0 20.285-9.715 20.285-21.142v-32.571zm49.715 0c0-11.143-8.857-20.857-20.286-20.857-11.428 0-20.286 9.715-20.286 20.857v32.571c0 11.143 8.858 21.142 20.286 21.142 11.429 0 20.286-10 20.286-21.142v-32.571zM421.714 286c-30.857 59.142-90.285 102.572-158.571 102.572-96.571 0-160.571-84.572-160.571-176.572 0-16.857 2-33.429 6-49.714-20 33.715-29.714 72.572-29.714 111.429 0 60.286 24.857 121.715 71.429 160.857 5.143-9.714 14.857-16.286 26-16.286 10 0 19.428 5.714 24.571 14.286 5.429-8.571 14.571-14.286 24.858-14.286 10 0 19.428 5.714 24.571 14.286 5.429-8.571 14.857-14.286 24.858-14.286 10 0 19.428 5.714 24.857 14.286 5.143-8.571 14.571-14.286 24.572-14.286 10.857 0 20.857 6.572 25.714 16 43.427-36.286 68.569-92 71.426-148.286zm10.572-99.714c0-53.714-34.571-105.714-92.572-105.714-30.285 0-58.571 15.143-78.857 36.857C240.862 183.812 233.41 254 302.286 254c28.805 0 97.357-28.538 84.286 36.857 28.857-26 45.714-65.714 45.714-104.571z"}))};var u=wp.i18n.__,b=wp.blockEditor.BlockControls,g=wp.components,h=g.Toolbar,f=g.Button,y=g.Tooltip,w=function(e){var t=e.attributes,n=e.setAttributes,a=function(e){var a,l,o;n((a={},l=e,o=!t[e],l in a?Object.defineProperty(a,l,{value:o,enumerable:!0,configurable:!0,writable:!0}):a[l]=o,a))};return wp.element.createElement(b,null,wp.element.createElement(h,null,Object.keys(c).map((function(e){var n=t[e];return wp.element.createElement(y,{text:u("Display ".concat(c[e].label))},wp.element.createElement(f,{className:r()("components-icon-button","components-toolbar__control",{"is-active":n}),onClick:function(){return a(e)}},wp.element.createElement(s,{icon:e})))}))))},v=wp.element.Fragment,k=function(e){var t=e.attributes,n=e.setAttributes,a=e.className;return wp.element.createElement(v,null,wp.element.createElement(w,{attributes:t,setAttributes:n}),wp.element.createElement("div",{className:r()(a,{"has-label":!t.className||!t.className.includes("is-style-icons")})},Object.keys(c).map((function(e,n){if(!0===t[e])return wp.element.createElement("a",{className:"social-icon is-".concat(e)},wp.element.createElement("i",{className:"fab fa-".concat(c[e].icon)}),(!t.className||!t.className.includes("is-style-icons"))&&c[e].label)}))))},T=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/sharing-icons",{title:T("Sharing Icons"),description:T("Share buttons for your website visitors to share content on any social sharing service."),icon:a.q,category:"themeisle-blocks",keywords:["social media","sharing","icons"],attributes:l,supports:{html:!0,align:["left","center","right"]},styles:[{name:"default",label:T("Regular"),isDefault:!0},{name:"icons",label:T("Icons Only")}],edit:k,save:function(){return null}})},function(e,t,n){"use strict";n.r(t);n(65),n(66);var a=n(2),l={slug:{type:"string"}},o=n(22);function r(e,t,n,a,l,o,r){try{var i=e[o](r),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(a,l)}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var c=wp.i18n.__,d=wp.apiFetch,p=wp.components,m=p.Button,s=p.Placeholder,u=p.Dashicon,b=p.TextControl,g=p.Spinner,h=wp.element,f=h.useEffect,y=h.useRef,w=h.useState,v=wp.keycodes,k=v.DOWN,T=v.ENTER,E=v.TAB,x=v.UP,C=function(e){var t=e.attributes,n=e.setAttributes,a=e.isFetching,l=e.hasError,p=e.setError,h=e.fetchPlugin,v=e.saveData,C=e.className,S=y(null),B=!1,M=[],O=i(w(!1),2),R=O[0],N=O[1],L=i(w(""),2),z=L[0],H=L[1],A=i(w({}),2),P=A[0],I=A[1],j=i(w(null),2),F=j[0],G=j[1];f((function(){null===F||B||(B=!0,Object(o.a)(M[F],S.current,{onlyScrollIfNeeded:!0}),M[F].focus(),setTimeout((function(){B=!1}),100))}),[F]);var V=function(){var e,t=(e=regeneratorRuntime.mark((function e(t){var a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n({slug:""}),N(!0),p(!1),e.next=5,d({path:"themeisle-gutenberg-blocks/v1/get_plugins?search=".concat(encodeURIComponent(t))});case 5:if(!(a=e.sent).data.errors){e.next=12;break}return p(!0),N(!1),G(null),I({}),e.abrupt("return");case 12:N(!1),G(null),I(a.data.plugins);case 15:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(a,l){var o=e.apply(t,n);function i(e){r(o,a,l,i,c,"next",e)}function c(e){r(o,a,l,i,c,"throw",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}(),D=function(e){if(Object.keys(P).length){e.stopPropagation(),e.preventDefault();var t=F?F-1:Object.keys(P).length-1;G(t)}},W=function(e){if(Object.keys(P).length){e.stopPropagation(),e.preventDefault();var t=null===F||F===Object.keys(P).length-1?0:F+1;G(t)}},q=function(e){n({slug:e.slug}),v(e),I({})};return a?wp.element.createElement(s,null,wp.element.createElement(g,null)):t.slug&&l?wp.element.createElement(s,{className:C},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-plugin-cards-error"},c("There seems to be an error. Make sure your internet is working properly."),wp.element.createElement(m,{isDefault:!0,isLarge:!0,onClick:h},c("Try again")))):wp.element.createElement(s,{icon:"admin-plugins",label:c("Plugin Card"),instructions:c("Search for the plugin you want to display."),className:C},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-plugin-cards-search-field"},wp.element.createElement(u,{icon:"search"}),R&&wp.element.createElement(g,null),wp.element.createElement(b,{type:"text",placeholder:c("Search for plugin…"),value:z,onChange:H,onKeyDown:function(e){switch(e.keyCode){case x:D(e);break;case k:W(e);break;case E:Object.keys(P).length&&!e.shiftKey&&G(0);break;case T:V(e.target.value)}},onFocus:function(){return G(null)}}),P&&wp.element.createElement("div",{tabIndex:"-1",className:"wp-block-themeisle-blocks-plugin-cards-search-results",ref:S},Object.keys(P).map((function(e){var t,n,a=P[e];return a.icons.svg&&(t=a.icons.svg),a.icons["2x"]&&(t=a.icons["2x"]),a.icons["1x"]&&(t=a.icons["1x"]),a.icons.default&&(t=a.icons.default),wp.element.createElement("button",{className:"wp-block-themeisle-blocks-plugin-cards-list-item",key:e,ref:(n=e,function(e){M[n]=e}),onClick:function(e){e.preventDefault(),q(a)},onKeyDown:function(e){return function(e,t){switch(e.keyCode){case x:D(e);break;case k:W(e);break;case E:if(e.shiftKey){0!==F&&D(e);break}if(F===Object.keys(P).length-1)break;W(e);break;case T:q(t)}}(e,a)}},wp.element.createElement("img",{src:t}),wp.element.createElement("span",{dangerouslySetInnerHTML:{__html:_.unescape(a.name)}}))})))),l&&wp.element.createElement("div",{className:"wp-block-themeisle-blocks-plugin-cards-error"},c("There seems to be an error. Make sure your internet is working properly."),wp.element.createElement(m,{isDefault:!0,isLarge:!0,onClick:function(){return V(z)}},c("Try again"))))},S=wp.i18n.__,B=wp.components,M=B.Dashicon,O=B.Button,R=B.Toolbar,N=B.Tooltip,L=wp.blockEditor.BlockControls,z=function(e){var t=e.setLoaded;return wp.element.createElement(L,null,wp.element.createElement(R,null,wp.element.createElement(N,{text:S("Edit")},wp.element.createElement(O,{className:"components-icon-button components-toolbar__control wp-block-themeisle-blocks-plugin-cards-edit-plugin-card",onClick:function(){return t(!1)}},wp.element.createElement(M,{icon:"edit"})))))},H=n(7);function A(e,t,n,a,l,o,r){try{var i=e[o](r),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(a,l)}function P(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var I=wp.i18n.__,j=wp.apiFetch,F=wp.element,G=F.Fragment,V=F.useEffect,D=F.useState,W=function(e){var t=e.attributes,n=e.setAttributes,a=e.className;V((function(){t.slug&&k()}),[]);var l,o,r,i,c,d=P(D(!1),2),p=d[0],m=d[1],s=P(D(!1),2),u=s[0],b=s[1],g=P(D(!1),2),h=g[0],f=g[1],y=P(D({}),2),w=y[0],v=y[1],k=function(){var e,n=(e=regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return m(!0),f(!1),b(!0),e.next=5,j({path:"themeisle-gutenberg-blocks/v1/get_plugin?slug=".concat(encodeURIComponent(t.slug))});case 5:if(!(n=e.sent).data.errors){e.next=11;break}return f(!0),m(!1),b(!1),e.abrupt("return");case 11:T(n.data),b(!1);case 13:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(a,l){var o=e.apply(t,n);function r(e){A(o,a,l,r,i,"next",e)}function i(e){A(o,a,l,r,i,"throw",e)}r(void 0)}))});return function(){return n.apply(this,arguments)}}(),T=function(e){var t;e.icons.svg&&(t=e.icons.svg),e.icons["2x"]&&(t=e.icons["2x"]),e.icons["1x"]&&(t=e.icons["1x"]),e.icons.default&&(t=e.icons.default),v({slug:e.slug,pluginIcon:t,pluginName:e.name,pluginAuthor:e.author,pluginRating:e.rating,pluginDescription:e.short_description,pluginInstalls:e.active_installs,pluginVersion:e.version,pluginTested:e.tested,pluginLink:e.download_link}),m(!0)};return!p||u?wp.element.createElement(C,{attributes:t,setAttributes:n,isFetching:u,hasError:h,setError:f,fetchPlugin:k,saveData:T,className:a}):wp.element.createElement(G,null,wp.element.createElement(z,{setLoaded:m}),wp.element.createElement("div",{className:a},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-plugin-cards-wrapper"},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-plugin-cards-header"},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-plugin-cards-main"},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-plugin-cards-logo"},wp.element.createElement("img",{src:w.pluginIcon,alt:Object(H.b)(w.pluginName),title:Object(H.b)(w.pluginName)})),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-plugin-cards-info"},wp.element.createElement("h4",null,Object(H.b)(w.pluginName)),wp.element.createElement("h5",{dangerouslySetInnerHTML:{__html:_.unescape(w.pluginAuthor)}})),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-plugin-cards-ratings",dangerouslySetInnerHTML:{__html:_.unescape((l=w.pluginRating,o=Math.floor(l/10)/2,r=Math.floor(o),i=Math.ceil(o-r),c=5-r-i,'<span className="star-full"></span>'.repeat(r)+'<span className="star-half"></span>'.repeat(i)+'<span className="star-empty"></span>'.repeat(c)))}}))),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-plugin-cards-details"},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-plugin-cards-description"},Object(H.b)(w.pluginDescription)),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-plugin-cards-stats"},wp.element.createElement("h5",null,I("Plugin Stats")),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-plugin-cards-stats-list"},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-plugin-cards-stat"},wp.element.createElement("span",{className:"wp-block-themeisle-blocks-plugin-cards-text-large"},w.pluginInstalls.toLocaleString(),"+"),I("active installs")),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-plugin-cards-stat"},wp.element.createElement("span",{className:"wp-block-themeisle-blocks-plugin-cards-text-large"},w.pluginVersion),I("version")),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-plugin-cards-stat"},wp.element.createElement("span",{className:"wp-block-themeisle-blocks-plugin-cards-text-large"},w.pluginTested),I("tested up to"))))),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-plugin-cards-download"},wp.element.createElement("a",{href:w.pluginLink},I("Download"))))))},q=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/plugin-cards",{title:q("Plugin Card"),description:q("Plugin Card block lets you display plugins data in your blog posts."),icon:a.m,category:"themeisle-blocks",keywords:["plugin","card","orbitfox"],attributes:l,supports:{html:!1},edit:W,save:function(){return null}})},function(e,t,n){"use strict";n.r(t);n(46),n(47);var a=n(2),l={id:{type:"number"}};function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var r=wp.i18n.__,i=wp.components.Spinner,c=wp.data.withSelect,d=wp.element,p=d.useEffect,m=d.useState,s=c((function(e){return{postAuthor:e("core/editor").getEditedPostAttribute("author"),authors:e("core").getAuthors()}}))((function(e){var t=e.attributes,n=e.setAttributes,a=e.className,l=e.postAuthor,c=e.authors;p((function(){!s&&l&&c&&c.find((function(e){if(e.id===l)return l!==t.id&&n({id:e.id}),u(!0),h(e),e.id===l}))}),[l,c]);var d=o(m(!1),2),s=d[0],u=d[1],b=o(m({}),2),g=b[0],h=b[1];return s?wp.element.createElement("section",{className:a},wp.element.createElement("div",{className:"wp-block-themeisle-author-image"},wp.element.createElement("img",{className:"author-image",src:g.avatar_urls[96],alt:g.name})),wp.element.createElement("div",{className:"wp-block-themeisle-author-data"},wp.element.createElement("h4",null,g.name),wp.element.createElement("p",null,g.description))):wp.element.createElement("div",{className:"wp-block-themeisle-author-loading"},wp.element.createElement(i,null),wp.element.createElement("p",{className:"wp-block-themeisle-author-loading-text"},r("Loading…")))})),u=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/about-author",{title:u("About Author"),description:u("About Author block is the easiest way to add a author bio below your posts."),icon:a.a,category:"themeisle-blocks",keywords:["about","author","profile"],attributes:l,supports:{html:!1},edit:s,save:function(){return null}})}]);
1
+ !function(e){function t(t){for(var a,r,i=t[0],c=t[1],d=t[2],m=0,s=[];m<i.length;m++)r=i[m],Object.prototype.hasOwnProperty.call(l,r)&&l[r]&&s.push(l[r][0]),l[r]=0;for(a in c)Object.prototype.hasOwnProperty.call(c,a)&&(e[a]=c[a]);for(p&&p(t);s.length;)s.shift()();return o.push.apply(o,d||[]),n()}function n(){for(var e,t=0;t<o.length;t++){for(var n=o[t],a=!0,i=1;i<n.length;i++){var c=n[i];0!==l[c]&&(a=!1)}a&&(o.splice(t--,1),e=r(r.s=n[0]))}return e}var a={},l={2:0},o=[];function r(t){if(a[t])return a[t].exports;var n=a[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.e=function(e){var t=[],n=l[e];if(0!==n)if(n)t.push(n[2]);else{var a=new Promise((function(t,a){n=l[e]=[t,a]}));t.push(n[2]=a);var o,i=document.createElement("script");i.charset="utf-8",i.timeout=120,r.nc&&i.setAttribute("nonce",r.nc),i.src=function(e){return r.p+"chunk-"+({}[e]||e)+".js"}(e);var c=new Error;o=function(t){i.onerror=i.onload=null,clearTimeout(d);var n=l[e];if(0!==n){if(n){var a=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;c.message="Loading chunk "+e+" failed.\n("+a+": "+o+")",c.name="ChunkLoadError",c.type=a,c.request=o,n[1](c)}l[e]=void 0}};var d=setTimeout((function(){o({type:"timeout",target:i})}),12e4);i.onerror=i.onload=o,document.head.appendChild(i)}return Promise.all(t)},r.m=e,r.c=a,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r.oe=function(e){throw console.error(e),e};var i=window.tiOtterWebpackJsonp=window.tiOtterWebpackJsonp||[],c=i.push.bind(i);i.push=t,i=i.slice();for(var d=0;d<i.length;d++)t(i[d]);var p=c;o.push([36,0]),n()}([,,function(e,t,n){"use strict";n.d(t,"l",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"d",(function(){return c})),n.d(t,"f",(function(){return d})),n.d(t,"e",(function(){return p})),n.d(t,"h",(function(){return m})),n.d(t,"g",(function(){return s})),n.d(t,"q",(function(){return u})),n.d(t,"i",(function(){return b})),n.d(t,"n",(function(){return g})),n.d(t,"m",(function(){return h})),n.d(t,"p",(function(){return f})),n.d(t,"o",(function(){return y})),n.d(t,"r",(function(){return w})),n.d(t,"b",(function(){return v})),n.d(t,"s",(function(){return k})),n.d(t,"j",(function(){return T})),n.d(t,"c",(function(){return E})),n.d(t,"k",(function(){return x}));var a=wp.components,l=a.Path,o=a.SVG,r=function(){return wp.element.createElement(o,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 29 32",width:"20",height:"20",className:"otter-icon"},wp.element.createElement(l,{d:"M19.831 7.877c0.001-0.003 0.001-0.005 0.001-0.009s-0-0.006-0.001-0.009l0 0c-0.047-0.081-0.092-0.164-0.132-0.247l-0.057-0.115c-0.277-0.498-0.381-0.99-1.033-1.064h-0.045c-0.001 0-0.002 0-0.003 0-0.486 0-0.883 0.382-0.908 0.862l-0 0.002c0.674 0.126 1.252 0.278 1.813 0.468l-0.092-0.027 0.283 0.096 0.147 0.053s0.028 0 0.028-0.011z"}),wp.element.createElement(l,{d:"M23.982 13.574c-0.008-2.41-0.14-4.778-0.39-7.112l0.026 0.299 0.070-0.019c0.459-0.139 0.787-0.558 0.787-1.053 0-0.479-0.307-0.887-0.735-1.037l-0.008-0.002h-0.026c-0.479-0.164-0.874-0.468-1.149-0.861l-0.005-0.007c-2.7-3.96-8.252-3.781-8.252-3.781s-5.55-0.179-8.25 3.781c-0.28 0.401-0.676 0.704-1.14 0.862l-0.016 0.005c-0.441 0.148-0.754 0.557-0.754 1.040 0 0.009 0 0.017 0 0.026l-0-0.001c-0 0.010-0.001 0.022-0.001 0.034 0 0.493 0.335 0.907 0.789 1.029l0.007 0.002 0.045 0.011c-0.224 2.034-0.356 4.403-0.364 6.801l-0 0.012s-9.493 13.012-1.277 17.515c4.733 2.431 6.881-0.769 6.881-0.769s1.397-1.661-1.784-3.355v-4.609c0.006-0.344 0.282-0.621 0.625-0.628h1.212v-0.59c0-0.275 0.223-0.498 0.498-0.498v0h1.665c0.274 0.001 0.496 0.224 0.496 0.498 0 0 0 0 0 0v0 0.59h2.721v-0.59c0-0.275 0.223-0.498 0.498-0.498v0h1.665c0.271 0.005 0.49 0.226 0.49 0.498 0 0 0 0 0 0v0 0.59h1.209c0 0 0 0 0 0 0.349 0 0.633 0.28 0.639 0.627v4.584c-3.193 1.703-1.784 3.355-1.784 3.355s2.148 3.193 6.879 0.769c8.222-4.503-1.269-17.515-1.269-17.515zM22.586 10.261c-0.097 1.461-0.67 2.772-1.563 3.797l0.007-0.008c-1.703 2.010-4.407 3.249-6.721 4.432v0c-2.325-1.177-5.026-2.416-6.736-4.432-0.883-1.019-1.455-2.329-1.555-3.769l-0.001-0.020c-0.126-2.22 0.583-5.929 3.044-6.74 2.416-0.788 3.947 1.288 4.494 2.227 0.152 0.258 0.429 0.428 0.745 0.428s0.593-0.17 0.743-0.424l0.002-0.004c0.551-0.932 2.080-3.008 4.494-2.22 2.474 0.805 3.174 4.513 3.046 6.734z"}),wp.element.createElement(l,{d:"M19.463 10.087h-0.028c-0.192 0.026-0.121 0.251-0.047 0.356 0.254 0.349 0.407 0.787 0.407 1.26 0 0.006-0 0.012-0 0.018v-0.001c-0.001 0.469-0.255 0.878-0.633 1.1l-0.006 0.003c-0.739 0.426-1.377-0.145-2.054-0.398-0.72-0.269-1.552-0.434-2.42-0.455l-0.009-0v-1.033c1.020-0.233 1.894-0.76 2.551-1.486l0.004-0.004c0.151-0.163 0.244-0.383 0.244-0.623 0-0.316-0.159-0.595-0.402-0.76l-0.003-0.002c-0.768-0.551-1.728-0.881-2.764-0.881-1.054 0-2.029 0.341-2.819 0.92l0.013-0.009c-0.224 0.166-0.367 0.429-0.367 0.726 0 0.226 0.083 0.433 0.221 0.591l-0.001-0.001c0.665 0.751 1.55 1.295 2.553 1.53l0.033 0.007v1.050c-0.742 0.021-1.448 0.14-2.118 0.343l0.057-0.015c-0.341 0.103-0.631 0.219-0.908 0.358l0.033-0.015c-0.519 0.26-1.037 0.436-1.58 0.121-0.371-0.213-0.617-0.607-0.617-1.058 0-0.002 0-0.004 0-0.007v0c0-0.002 0-0.004 0-0.007 0-0.47 0.153-0.905 0.411-1.257l-0.004 0.006c0.047-0.068 0.089-0.17 0.026-0.241s-0.189 0-0.27 0.030c-0.189 0.099-0.348 0.227-0.479 0.381l-0.002 0.002c-0.245 0.296-0.394 0.679-0.394 1.097 0 0.004 0 0.007 0 0.011v-0.001c0.008 0.706 0.393 1.321 0.964 1.651l0.009 0.005c0.296 0.178 0.654 0.283 1.036 0.283 0.364 0 0.706-0.095 1.001-0.263l-0.010 0.005c0.877-0.461 1.917-0.731 3.019-0.731 0.069 0 0.137 0.001 0.206 0.003l-0.010-0h0.030c1.277 0 2.382 0.266 3.266 0.775 0.27 0.159 0.594 0.253 0.94 0.253 0.001 0 0.002 0 0.003 0h-0c0.355-0.002 0.688-0.098 0.974-0.265l-0.009 0.005c0.606-0.357 1.007-1.007 1.007-1.75 0-0.001 0-0.003 0-0.004v0c0.001-0.026 0.002-0.056 0.002-0.086 0-0.625-0.34-1.171-0.846-1.462l-0.008-0.004c-0.056-0.040-0.125-0.065-0.199-0.070l-0.001-0zM13.101 8.831c-0.238 0.213-0.468 0.581-0.832 0.345-0.061-0.041-0.114-0.086-0.161-0.136l-0-0c-0.063-0.063-0.101-0.15-0.101-0.247 0-0.133 0.074-0.248 0.182-0.308l0.002-0.001c0.594-0.309 1.203-0.543 1.884-0.49-0.324 0.281-0.649 0.56-0.973 0.837z"}),wp.element.createElement(l,{d:"M15.89 13.578c-0.367 0.483-0.941 0.792-1.588 0.792s-1.221-0.309-1.585-0.787l-0.004-0.005c-0.064-0.103-0.177-0.171-0.306-0.171-0.199 0-0.36 0.161-0.36 0.36 0 0.091 0.034 0.174 0.090 0.238l-0-0c0.499 0.659 1.283 1.080 2.164 1.080s1.665-0.421 2.159-1.073l0.005-0.007c0.043-0.059 0.068-0.132 0.068-0.212 0-0.116-0.055-0.22-0.14-0.286l-0.001-0.001c-0.059-0.045-0.134-0.072-0.215-0.072-0.117 0-0.221 0.056-0.286 0.143l-0.001 0.001z"}),wp.element.createElement(l,{d:"M18.507 11.707c0 0.194-0.157 0.351-0.351 0.351s-0.351-0.157-0.351-0.351c0-0.194 0.157-0.351 0.351-0.351s0.351 0.157 0.351 0.351z"}),wp.element.createElement(l,{d:"M17.389 11.049c0 0.194-0.157 0.351-0.351 0.351s-0.351-0.157-0.351-0.351c0-0.194 0.157-0.351 0.351-0.351s0.351 0.157 0.351 0.351z"}),wp.element.createElement(l,{d:"M10.798 11.707c0 0.194-0.157 0.351-0.351 0.351s-0.351-0.157-0.351-0.351c0-0.194 0.157-0.351 0.351-0.351s0.351 0.157 0.351 0.351z"}),wp.element.createElement(l,{d:"M11.918 11.049c0 0.194-0.157 0.351-0.351 0.351s-0.351-0.157-0.351-0.351c0-0.194 0.157-0.351 0.351-0.351s0.351 0.157 0.351 0.351z"}),wp.element.createElement(l,{d:"M8.773 7.877c-0.001-0.003-0.002-0.005-0.002-0.009s0.001-0.006 0.002-0.009l-0 0c0.047-0.081 0.089-0.164 0.132-0.247 0.019-0.038 0.036-0.079 0.057-0.115 0.275-0.498 0.379-0.99 1.033-1.064h0.045c0 0 0.001 0 0.001 0 0.487 0 0.884 0.382 0.91 0.862l0 0.002c-0.678 0.124-1.261 0.277-1.827 0.468l0.092-0.027-0.275 0.096-0.1 0.036-0.045 0.017s-0.023 0-0.023-0.011z"}))},i=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M17.348 20.657v-0.135c1.029-0.471 1.758-1.446 1.916-2.563 0.434-0.157 0.739-0.576 0.739-1.051 0-0.408-0.221-0.774-0.562-0.969 0.036-0.111 0.065-0.223 0.087-0.335 0.182-0.901-0.025-1.822-0.583-2.592-0.548-0.758-1.373-1.281-2.321-1.473-0.255-0.051-0.515-0.077-0.773-0.077-0.813 0-1.607 0.262-2.234 0.739-0.646 0.49-1.088 1.187-1.244 1.962-0.118 0.587-0.070 1.193 0.139 1.762-0.355 0.191-0.59 0.566-0.59 0.985 0 0.481 0.31 0.901 0.751 1.055 0.163 1.144 0.916 2.128 1.978 2.587v0.106c-2.207 0.5-3.729 2.151-3.729 4.079v0.515h10.153v-0.515c0-1.929-1.522-3.58-3.729-4.080zM15.853 12.492c0.189 0 0.381 0.019 0.569 0.057 0.693 0.14 1.293 0.519 1.689 1.066 0.369 0.511 0.518 1.111 0.423 1.701-0.507-0.237-1.173-0.487-1.874-0.583-1.318-0.18-1.339-0.241-1.417-0.469l-0.252-0.728-0.579 0.512c-0.062 0.054-0.528 0.464-1.066 0.91-0.015-0.198-0.002-0.396 0.037-0.593 0.219-1.086 1.257-1.873 2.469-1.873zM13.67 16.025c0.361-0.292 0.718-0.594 0.977-0.816 0.358 0.323 0.916 0.414 1.874 0.545 0.65 0.089 1.287 0.349 1.748 0.578v1.161c0 1.268-1.031 2.299-2.299 2.299s-2.299-1.031-2.299-2.299v-1.468zM15.682 20.81c0.213 0.019 0.425 0.017 0.635-0.006v0.318l-0.318 0.177-0.317-0.176v-0.313zM12.006 24.22c0.237-1.154 1.25-2.113 2.646-2.501v0.010l1.346 0.748 1.35-0.748v-0.010c1.396 0.388 2.409 1.348 2.646 2.502l-7.987-0zM21.076 27.499h-10.153c-0.307 0-0.556-0.249-0.556-0.556s0.249-0.556 0.556-0.556h10.153c0.307 0 0.556 0.249 0.556 0.556s-0.249 0.556-0.556 0.556zM28.112 3.393h-9.422v-1.689c0-0.832-0.677-1.509-1.509-1.509h-2.363c-0.832 0-1.509 0.677-1.509 1.509v1.689h-9.422c-0.832 0-1.509 0.677-1.509 1.509v25.395c0 0.832 0.677 1.509 1.509 1.509h24.225c0.832 0 1.509-0.677 1.509-1.509v-25.395c-0-0.832-0.677-1.509-1.509-1.509zM14.421 1.703c0-0.219 0.178-0.397 0.397-0.397h2.363c0.219 0 0.397 0.178 0.397 0.397v5.083c0 0.219-0.178 0.397-0.397 0.397h-2.363c-0.219 0-0.397-0.178-0.397-0.397v-5.083zM28.509 30.297c0 0.219-0.178 0.397-0.397 0.397h-24.225c-0.219 0-0.397-0.178-0.397-0.397v-25.395c0-0.219 0.178-0.397 0.397-0.397h9.422v2.282c0 0.832 0.677 1.509 1.509 1.509h2.363c0.832 0 1.509-0.677 1.509-1.509v-2.282h9.422c0.219 0 0.397 0.178 0.397 0.397v25.395z"}))},c=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M30.457 11.777h-28.914c-0.829 0-1.503 0.674-1.503 1.503v5.606c0 0.829 0.674 1.503 1.503 1.503h28.914c0.829 0 1.503-0.674 1.503-1.503v-5.606c-0-0.829-0.674-1.503-1.503-1.503zM30.84 18.886c0 0.211-0.172 0.383-0.383 0.383h-28.914c-0.211 0-0.383-0.172-0.383-0.383v-5.606c0-0.211 0.172-0.383 0.383-0.383h28.914c0.211 0 0.383 0.172 0.383 0.383v5.606zM4.67 15.133c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95 0.95-0.425 0.95-0.95c0-0.525-0.425-0.95-0.95-0.95zM7.947 15.133c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95c0.525 0 0.95-0.425 0.95-0.95s-0.425-0.95-0.95-0.95zM11.224 15.133c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95c0.525 0 0.95-0.425 0.95-0.95s-0.425-0.95-0.95-0.95zM27.871 15.523h-11.386c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h11.386c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56zM30.457 23.388h-28.914c-0.829 0-1.503 0.674-1.503 1.503v5.606c0 0.829 0.674 1.503 1.503 1.503h28.914c0.829 0 1.503-0.674 1.503-1.503v-5.606c-0-0.829-0.674-1.503-1.503-1.503zM30.84 30.497c0 0.211-0.172 0.383-0.383 0.383h-28.914c-0.211 0-0.383-0.172-0.383-0.383v-5.606c0-0.211 0.172-0.383 0.383-0.383h28.914c0.211 0 0.383 0.172 0.383 0.383v5.606zM4.67 26.744c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95 0.95-0.425 0.95-0.95c0-0.525-0.425-0.95-0.95-0.95zM7.947 26.744c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95c0.525 0 0.95-0.425 0.95-0.95s-0.425-0.95-0.95-0.95zM11.224 26.744c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95c0.525 0 0.95-0.425 0.95-0.95s-0.425-0.95-0.95-0.95zM27.871 27.134h-11.386c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h11.386c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56zM30.457 0h-28.914c-0.829 0-1.503 0.674-1.503 1.503v5.606c0 0.829 0.674 1.503 1.503 1.503h28.914c0.829 0 1.503-0.674 1.503-1.503v-5.606c0-0.829-0.674-1.503-1.503-1.503zM30.84 7.109c0 0.211-0.172 0.383-0.383 0.383h-28.914c-0.211 0-0.383-0.172-0.383-0.383v-5.606c0-0.211 0.172-0.383 0.383-0.383h28.914c0.211 0 0.383 0.172 0.383 0.383v5.606zM5.62 4.306c0 0.525-0.425 0.95-0.95 0.95s-0.95-0.425-0.95-0.95c0-0.525 0.425-0.95 0.95-0.95s0.95 0.425 0.95 0.95zM7.947 3.356c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95c0.525 0 0.95-0.425 0.95-0.95s-0.425-0.95-0.95-0.95zM11.224 3.356c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95c0.525 0 0.95-0.425 0.95-0.95s-0.425-0.95-0.95-0.95zM27.871 3.746h-11.386c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h11.386c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56z"}))},d=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M30.584 0.099h-29.068c-0.781 0-1.417 0.635-1.417 1.416v29.068c0 0.781 0.635 1.416 1.417 1.416h29.068c0.781 0 1.416-0.635 1.416-1.416v-29.068c0-0.781-0.635-1.416-1.416-1.416zM1.515 1.219h29.068c0.163 0 0.296 0.133 0.296 0.296v3.476h-29.661v-3.476c0-0.163 0.133-0.296 0.296-0.296zM30.584 30.88h-29.068c-0.163 0-0.296-0.133-0.296-0.296v-24.472h29.661v24.472c0 0.163-0.133 0.296-0.296 0.296zM26.999 20.461h-21.062c-0.838 0-1.52 0.682-1.52 1.52v5.601c0 0.838 0.682 1.52 1.52 1.52h21.062c0.838 0 1.52-0.682 1.52-1.52v-5.601c0-0.838-0.682-1.52-1.52-1.52zM27.399 27.582c0 0.221-0.18 0.4-0.4 0.4h-21.062c-0.221 0-0.4-0.18-0.4-0.4v-5.601c0-0.221 0.179-0.4 0.4-0.4h21.062c0.221 0 0.4 0.179 0.4 0.4v5.601zM5.937 16.247h5.432c0.838 0 1.52-0.682 1.52-1.52v-5.432c0-0.838-0.682-1.52-1.52-1.52h-5.432c-0.838 0-1.52 0.682-1.52 1.52v5.432c0 0.838 0.682 1.52 1.52 1.52zM5.537 9.294c0-0.221 0.179-0.4 0.4-0.4h5.432c0.221 0 0.4 0.179 0.4 0.4v5.432c0 0.221-0.18 0.4-0.4 0.4h-5.432c-0.221 0-0.4-0.18-0.4-0.4v-5.432zM27.959 17.714h-22.982c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h22.982c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56zM27.959 14.793h-12.696c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h12.696c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56zM27.959 11.433h-12.696c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h12.696c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56zM27.959 8.072h-12.696c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h12.696c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56zM4.543 3.051c0 0.497-0.403 0.9-0.9 0.9s-0.9-0.403-0.9-0.9c0-0.497 0.403-0.9 0.9-0.9s0.9 0.403 0.9 0.9zM7.384 3.051c0 0.497-0.403 0.9-0.9 0.9s-0.9-0.403-0.9-0.9c0-0.497 0.403-0.9 0.9-0.9s0.9 0.403 0.9 0.9zM10.224 3.051c0 0.497-0.403 0.9-0.9 0.9s-0.9-0.403-0.9-0.9c0-0.497 0.403-0.9 0.9-0.9s0.9 0.403 0.9 0.9z"}))},p=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M31.276 3.351h-14.587l-3.23-3.028c-0.103-0.097-0.239-0.15-0.38-0.15h-12.354c-0.307 0-0.556 0.249-0.556 0.556v30.697c0 0.307 0.249 0.556 0.556 0.556h30.551c0.307 0 0.556-0.249 0.556-0.556v-27.518c0-0.307-0.249-0.556-0.556-0.556zM1.281 1.286h11.578l3.23 3.028c0.103 0.097 0.239 0.15 0.38 0.15h14.25v3.013h-29.439v-6.191zM30.719 30.87h-29.439v-22.281h29.439v22.281z"}))},m=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M30.958 13.988h-0.64c-0.572-5.298-4.029-9.744-8.764-11.73h5.439v0.555c0 0.309 0.25 0.559 0.559 0.559h2.23c0.309 0 0.559-0.25 0.559-0.559v-2.229c0-0.309-0.25-0.559-0.559-0.559h-2.23c-0.309 0-0.559 0.25-0.559 0.559v0.555h-9.319v-0.555c0-0.309-0.25-0.559-0.559-0.559h-2.23c-0.309 0-0.559 0.25-0.559 0.559v0.555h-9.319v-0.555c0-0.309-0.25-0.559-0.559-0.559h-2.229c-0.309 0-0.559 0.25-0.559 0.559v2.229c0 0.309 0.25 0.559 0.559 0.559h2.229c0.309 0 0.559-0.25 0.559-0.559v-0.555h5.439c-4.735 1.987-8.191 6.432-8.764 11.73h-0.64c-0.309 0-0.559 0.25-0.559 0.559v2.229c0 0.309 0.25 0.559 0.559 0.559h2.23c0.309 0 0.559-0.25 0.559-0.559v-2.229c0-0.309-0.25-0.559-0.559-0.559h-0.464c0.709-6.044 5.49-10.86 11.518-11.621v0.446c0 0.309 0.25 0.559 0.559 0.559h2.23c0.309 0 0.559-0.25 0.559-0.559v-0.446c6.028 0.761 10.809 5.578 11.518 11.621h-0.464c-0.309 0-0.559 0.25-0.559 0.559v2.23c0 0.309 0.25 0.559 0.559 0.559h2.23c0.309 0 0.559-0.25 0.559-0.559v-2.229c0-0.309-0.25-0.559-0.559-0.559zM29.223 2.253h-1.111v-1.111h1.111v1.111zM2.777 1.142h1.111v1.111h-1.111v-1.111zM2.712 15.608v0.609h-1.111v-0.973c0.001-0.046 0.002-0.092 0.003-0.138h1.108v0.501zM16 1.142c0.186 0 0.371 0.005 0.555 0.012v1.099h-1.111v-1.099c0.184-0.007 0.37-0.012 0.556-0.012zM30.399 15.25v0.967h-1.111v-1.111h1.107c0.002 0.048 0.003 0.096 0.004 0.144zM16.512 4.461c-0.089-0.204-0.29-0.336-0.513-0.336s-0.424 0.132-0.513 0.336l-7.287 16.694c-0.058 0.134-0.062 0.285-0.011 0.421l0.009 0.023c0.059 0.157 0.186 0.279 0.345 0.333 1.743 0.585 2.914 2.213 2.914 4.052 0 0.766-0.206 1.518-0.595 2.175-0.012 0.020-0.022 0.041-0.032 0.063-0.063 0.091-0.101 0.201-0.101 0.32v2.832c0 0.307 0.248 0.557 0.555 0.559l9.42 0.068c0.001 0 0.003 0 0.004 0 0.307 0 0.557-0.248 0.559-0.555 0.002-0.309-0.246-0.561-0.555-0.563l-8.865-0.064v-1.405h8.654c0.234 0 0.443-0.145 0.524-0.364l0.153-0.41c0.059-0.158 0.043-0.335-0.043-0.48-0.389-0.657-0.595-1.409-0.595-2.174 0-1.838 1.171-3.467 2.914-4.052 0.16-0.054 0.287-0.176 0.346-0.334l0.009-0.023c0.051-0.136 0.047-0.287-0.011-0.42l-7.287-16.694zM16 20.028c0.619 0 1.122 0.503 1.122 1.122s-0.504 1.122-1.122 1.122c-0.619 0-1.122-0.503-1.122-1.122s0.503-1.122 1.122-1.122zM19.424 25.983c0 0.802 0.179 1.591 0.52 2.31h-7.887c0.341-0.719 0.52-1.509 0.52-2.31 0-2.121-1.235-4.020-3.127-4.894l5.991-13.726v11.616c-0.966 0.249-1.682 1.128-1.682 2.17 0 1.236 1.005 2.241 2.241 2.241s2.241-1.005 2.241-2.241c0-1.043-0.716-1.921-1.682-2.17v-11.616l5.991 13.726c-1.892 0.874-3.127 2.773-3.127 4.894z"}))},s=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M30.424 0.171h-28.847c-0.775 0-1.406 0.631-1.406 1.406v28.848c0 0.775 0.631 1.406 1.406 1.406h28.847c0.775 0 1.406-0.631 1.406-1.406v-28.848c0-0.775-0.631-1.406-1.406-1.406zM1.576 1.282h28.847c0.162 0 0.294 0.132 0.294 0.294v3.45h-29.435v-3.45c0-0.162 0.132-0.294 0.294-0.294zM30.424 30.718h-28.847c-0.162 0-0.294-0.132-0.294-0.294v-24.286h29.435v24.286c0 0.162-0.132 0.294-0.294 0.294zM3.688 3.994c0.493 0 0.893-0.4 0.893-0.893s-0.4-0.893-0.893-0.893-0.893 0.4-0.893 0.893c0 0.493 0.4 0.893 0.893 0.893zM6.507 3.994c0.493 0 0.893-0.4 0.893-0.893s-0.4-0.893-0.893-0.893-0.893 0.4-0.893 0.893c0 0.493 0.4 0.893 0.893 0.893zM9.326 3.994c0.493 0 0.893-0.4 0.893-0.893s-0.4-0.893-0.893-0.893-0.893 0.4-0.893 0.893c0 0.493 0.4 0.893 0.893 0.893zM20.662 19.394l3.855-3.758c0.152-0.148 0.206-0.369 0.141-0.57s-0.239-0.348-0.449-0.378l-5.328-0.774-2.383-4.828c-0.094-0.19-0.287-0.31-0.498-0.31s-0.405 0.12-0.498 0.31l-2.383 4.828-5.328 0.774c-0.209 0.030-0.383 0.177-0.449 0.378s-0.011 0.422 0.141 0.57l3.855 3.758-0.91 5.307c-0.036 0.209 0.050 0.419 0.221 0.544s0.398 0.141 0.585 0.042l4.766-2.506 4.766 2.506c0.081 0.043 0.17 0.064 0.259 0.064 0.115 0 0.23-0.036 0.327-0.106 0.171-0.124 0.257-0.335 0.221-0.544l-0.91-5.307zM16.259 21.661c-0.162-0.085-0.355-0.085-0.517 0l-4.027 2.117 0.769-4.485c0.031-0.18-0.029-0.364-0.16-0.492l-3.258-3.176 4.503-0.654c0.181-0.026 0.338-0.14 0.418-0.304l2.014-4.080 2.014 4.080c0.081 0.164 0.238 0.278 0.419 0.304l4.503 0.654-3.258 3.176c-0.131 0.128-0.191 0.312-0.16 0.492l0.769 4.485-4.027-2.117zM16 25.179c-0.307 0-0.556 0.249-0.556 0.556v1.887c0 0.307 0.249 0.556 0.556 0.556s0.556-0.249 0.556-0.556v-1.887c0-0.307-0.249-0.556-0.556-0.556zM25.319 20.446l-1.794-0.583c-0.293-0.095-0.606 0.065-0.7 0.357s0.065 0.606 0.357 0.7l1.794 0.583c0.057 0.019 0.115 0.027 0.172 0.027 0.234 0 0.452-0.149 0.529-0.384 0.095-0.292-0.065-0.606-0.357-0.7zM20.218 12.197c0.099 0.072 0.213 0.106 0.326 0.106 0.172 0 0.341-0.079 0.45-0.229l1.109-1.526c0.18-0.248 0.125-0.596-0.123-0.776s-0.596-0.125-0.776 0.123l-1.109 1.526c-0.18 0.248-0.125 0.596 0.123 0.776zM11.006 12.075c0.109 0.15 0.278 0.229 0.45 0.229 0.113 0 0.228-0.034 0.326-0.106 0.248-0.18 0.303-0.528 0.123-0.776l-1.109-1.526c-0.18-0.248-0.528-0.303-0.776-0.123s-0.303 0.528-0.123 0.776l1.109 1.526zM8.475 19.863l-1.794 0.583c-0.292 0.095-0.452 0.408-0.357 0.7 0.076 0.235 0.294 0.384 0.529 0.384 0.057 0 0.115-0.009 0.172-0.027l1.794-0.583c0.292-0.095 0.452-0.408 0.357-0.7s-0.408-0.452-0.7-0.357z"}))},u=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M6.348 13.197c-0.308 0-0.557 0.249-0.557 0.557s0.249 0.557 0.557 0.557c0.495 0 1.655 0.598 1.655 1.759 0 0.308 0.249 0.557 0.557 0.557s0.557-0.249 0.557-0.557c0-1.886-1.803-2.873-2.769-2.873zM25.842 3.161c0.495 0 1.655 0.598 1.655 1.759 0 0.308 0.249 0.557 0.557 0.557s0.557-0.249 0.557-0.557c0-1.886-1.802-2.873-2.769-2.873-0.308 0-0.557 0.249-0.557 0.557s0.249 0.557 0.557 0.557zM25.742 22.433c-0.826 0-1.641 0.22-2.359 0.636-0.567 0.328-1.040 0.758-1.41 1.252l-11.344-6.569c0.069-0.174 0.13-0.353 0.179-0.537 0.276-1.036 0.194-2.11-0.226-3.079l11.319-6.555c0.878 1.235 2.316 1.986 3.848 1.986 0.825 0 1.641-0.22 2.359-0.636 1.090-0.631 1.869-1.649 2.194-2.866s0.155-2.488-0.476-3.578c-0.841-1.452-2.406-2.353-4.085-2.353-0.826 0-1.641 0.22-2.359 0.636-2.051 1.188-2.872 3.694-2.015 5.833l-11.344 6.569c-0.884-1.176-2.285-1.888-3.776-1.888-0.825 0-1.641 0.22-2.359 0.636-2.25 1.303-3.021 4.194-1.718 6.444 0.841 1.452 2.406 2.353 4.085 2.353 0.826 0 1.641-0.22 2.359-0.636 0.595-0.345 1.097-0.805 1.483-1.35l11.319 6.554c-0.567 1.323-0.526 2.888 0.249 4.227 0.841 1.452 2.406 2.353 4.085 2.353 0.825 0 1.641-0.22 2.359-0.636 1.090-0.631 1.869-1.649 2.194-2.866s0.155-2.488-0.476-3.578c-0.841-1.452-2.406-2.353-4.085-2.353zM23.941 1.734c0.549-0.318 1.171-0.486 1.801-0.486 1.283 0 2.479 0.689 3.121 1.798 0.482 0.833 0.611 1.803 0.363 2.733s-0.843 1.707-1.675 2.189c-0.549 0.318-1.171 0.486-1.801 0.486-1.283 0-2.479-0.689-3.121-1.798-0.995-1.719-0.407-3.927 1.312-4.922zM8.056 19.117c-0.549 0.318-1.171 0.486-1.801 0.486-1.283 0-2.479-0.689-3.121-1.797-0.995-1.719-0.407-3.927 1.312-4.922 0.549-0.318 1.171-0.486 1.801-0.486 1.283 0 2.479 0.689 3.121 1.798 0.482 0.833 0.611 1.803 0.363 2.733s-0.843 1.707-1.675 2.189zM29.226 28.077c-0.248 0.93-0.843 1.707-1.675 2.189-0.549 0.318-1.171 0.486-1.801 0.486-1.283 0-2.479-0.689-3.121-1.797-0.995-1.719-0.407-3.927 1.312-4.922 0.549-0.318 1.171-0.486 1.801-0.486 1.283 0 2.479 0.689 3.121 1.798 0.482 0.832 0.611 1.803 0.363 2.733zM25.842 24.346c-0.308 0-0.557 0.249-0.557 0.557s0.249 0.557 0.557 0.557c0.495 0 1.655 0.598 1.655 1.759 0 0.308 0.249 0.557 0.557 0.557s0.557-0.249 0.557-0.557c0-1.886-1.802-2.873-2.769-2.873z"}))},b=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M16 27.667l7.849-7.849c0.146-0.139 0.464-0.469 0.478-0.483l0.006-0.007c1.972-2.116 3.059-4.874 3.059-7.766 0-6.282-5.11-11.392-11.392-11.392s-11.392 5.11-11.392 11.392c0 2.893 1.086 5.651 3.058 7.766l8.334 8.339zM16 1.265c5.677 0 10.297 4.619 10.297 10.297 0 2.613-0.981 5.104-2.761 7.016-0.092 0.096-0.343 0.353-0.446 0.451l-7.089 7.089-7.539-7.543c-1.779-1.911-2.758-4.401-2.758-7.012 0-5.678 4.619-10.297 10.297-10.297zM17.755 4.005c1.966 0 5.792 2.149 5.792 6.090 0 0.303 0.245 0.548 0.548 0.548s0.548-0.245 0.548-0.548c0-2.051-0.906-3.953-2.552-5.354-1.306-1.112-3.008-1.831-4.335-1.831-0.302 0-0.548 0.245-0.548 0.548s0.245 0.548 0.548 0.548zM22.875 24.197c-0.427-0.174-0.886-0.33-1.371-0.467l-0.897 0.897c2.645 0.631 4.275 1.756 4.275 2.802 0 1.564-3.648 3.306-8.882 3.306s-8.882-1.742-8.882-3.306c0-1.045 1.631-2.171 4.275-2.802l-0.897-0.897c-0.485 0.137-0.944 0.293-1.371 0.467-2.001 0.818-3.102 1.966-3.102 3.232s1.102 2.415 3.102 3.232c1.845 0.754 4.287 1.169 6.875 1.169s5.030-0.415 6.875-1.169c2.001-0.818 3.102-1.966 3.102-3.232s-1.102-2.415-3.102-3.232zM16.032 16.804c-3.043 0-5.519-2.476-5.519-5.519s2.476-5.519 5.519-5.519c3.043 0 5.519 2.476 5.519 5.519s-2.476 5.519-5.519 5.519zM16.032 6.862c-2.439 0-4.423 1.984-4.423 4.423s1.984 4.423 4.423 4.423c2.439 0 4.423-1.984 4.423-4.423s-1.984-4.423-4.423-4.423z"}))},g=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M4.285 5.775c0.004 0 0.009 0.001 0.013 0.001h8.279c0.307 0 0.556-0.249 0.556-0.556s-0.249-0.556-0.556-0.556h-8.279c-0.307 0-0.556 0.249-0.556 0.556 0 0.302 0.242 0.548 0.542 0.555zM3.743 8.005c0 0.307 0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556s-0.249-0.556-0.556-0.556h-13.679c-0.307 0-0.556 0.249-0.556 0.556zM17.977 10.236h-13.679c-0.145 0-0.276 0.056-0.375 0.147-0.11 0.102-0.18 0.247-0.18 0.409 0 0.307 0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556 0-0.162-0.070-0.307-0.18-0.409-0.099-0.091-0.23-0.147-0.375-0.147zM17.977 13.022h-13.679c-0.307 0-0.556 0.249-0.556 0.556s0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556s-0.249-0.556-0.556-0.556zM17.977 15.807h-13.679c-0.145 0-0.276 0.056-0.375 0.147-0.11 0.102-0.18 0.247-0.18 0.409 0 0.307 0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556 0-0.162-0.070-0.307-0.18-0.409-0.099-0.091-0.23-0.147-0.375-0.147zM17.977 18.593h-13.679c-0.307 0-0.556 0.249-0.556 0.555s0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556s-0.249-0.555-0.556-0.555zM17.977 21.379h-13.679c-0.307 0-0.556 0.249-0.556 0.556s0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556s-0.249-0.556-0.556-0.556zM17.977 24.165h-13.679c-0.145 0-0.276 0.056-0.375 0.147-0.11 0.102-0.18 0.247-0.18 0.409 0 0.307 0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556 0-0.162-0.070-0.307-0.18-0.409-0.099-0.091-0.23-0.147-0.375-0.147zM21.93 4.466l-4.277-3.87c-0.094-0.085-0.212-0.132-0.334-0.139h-15.831c-0.812 0-1.473 0.664-1.473 1.481v28.153c0 0.817 0.661 1.481 1.473 1.481h19.174c0.812 0 1.473-0.664 1.473-1.481v-25.222c-0.008-0.163-0.086-0.308-0.205-0.403zM17.833 2.238l2.331 2.109h-2.331v-2.109zM21.043 30.091c0 0.215-0.171 0.39-0.381 0.39h-19.174c-0.21 0-0.382-0.175-0.382-0.39v-28.153c0-0.215 0.171-0.39 0.382-0.39h15.251v3.348c0 0.303 0.245 0.549 0.547 0.549h3.758v24.647zM31.975 3.213c-0.125-1.57-1.442-2.809-3.044-2.809-0 0-0 0-0 0-0.816 0-1.583 0.318-2.16 0.895-0.519 0.519-0.827 1.191-0.884 1.915h-0.010v0.242c0 0.001-0 0.002-0 0.003s0 0.001 0 0.001l-0 24.342h0.003c0.010 0.096 0.045 0.191 0.108 0.273l2.509 3.305c0.103 0.136 0.264 0.216 0.435 0.216s0.331-0.080 0.435-0.216l2.508-3.305c0.063-0.083 0.098-0.177 0.108-0.274h0.003v-24.589h-0.011zM27.543 2.070c0.371-0.371 0.864-0.575 1.388-0.575h0c0.893 0 1.649 0.6 1.886 1.417h-3.772c0.091-0.315 0.26-0.604 0.498-0.842zM28.362 26.711l-1.394 0 0-22.406h3.926v22.406h-1.442l0-18.071-1.090 0 0 18.071zM28.931 30.148l-1.781-2.346 3.562-0-1.781 2.346z"}))},h=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M31.908 1.543c0-0.815-0.677-1.478-1.51-1.478h-28.731c-0.815 0-1.478 0.677-1.478 1.51v14.441c0 0.022 0.002 0.044 0.004 0.065-0.003 0.021-0.004 0.043-0.004 0.065v14.357c0 0.815 0.677 1.478 1.51 1.478h28.731c0.815 0 1.478-0.677 1.478-1.51v-14.441c0-0.022-0.002-0.044-0.004-0.065 0.003-0.021 0.004-0.043 0.004-0.065v-14.357zM30.792 1.543v13.799h-4.324c0.587-0.66 0.932-1.525 0.932-2.453 0-0.737-0.218-1.423-0.592-2-0.648-1.066-1.82-1.78-3.156-1.78-2.034 0-3.689 1.655-3.689 3.689 0 0.745 0.223 1.449 0.615 2.039 0.111 0.178 0.236 0.347 0.376 0.504h-4.372v-6.025c0-0.184-0.090-0.347-0.228-0.449-0.101-0.103-0.242-0.167-0.398-0.167h-0.173c-0.24 0-0.453 0.153-0.529 0.38-0.352 1.049-1.332 1.754-2.439 1.754-0.419 0-0.815-0.101-1.166-0.28-0.776-0.444-1.301-1.279-1.301-2.235 0-1.419 1.154-2.574 2.574-2.574 0.408 0 0.799 0.096 1.147 0.27 0.546 0.305 0.976 0.804 1.185 1.426 0.052 0.155 0.169 0.275 0.314 0.335 0.092 0.065 0.204 0.103 0.322 0.103h0.133c0.308 0 0.558-0.25 0.558-0.558v-6.142h13.816c0.217 0 0.394 0.162 0.394 0.362zM1.305 1.575c0-0.217 0.162-0.394 0.362-0.394h13.732v4.404c-0.239-0.216-0.505-0.401-0.793-0.549-0.536-0.297-1.148-0.464-1.791-0.464-2.034 0-3.689 1.655-3.689 3.689 0 1.423 0.81 2.659 1.992 3.274 0.534 0.301 1.149 0.473 1.804 0.473 0.939 0 1.813-0.354 2.476-0.955v4.404h-6.016c-0.308 0-0.558 0.25-0.558 0.558v0.173c0 0.127 0.043 0.245 0.117 0.34 0.065 0.129 0.178 0.231 0.321 0.279 0.562 0.189 1.023 0.558 1.332 1.030 0.232 0.39 0.364 0.842 0.364 1.318 0 1.419-1.154 2.574-2.574 2.574-0.894 0-1.682-0.458-2.144-1.151-0.236-0.389-0.372-0.844-0.372-1.331-0-1.107 0.705-2.087 1.754-2.44 0.227-0.076 0.38-0.289 0.38-0.529v-0.133c0-0.106-0.030-0.204-0.081-0.288-0.068-0.231-0.282-0.4-0.535-0.4h-6.084v-13.883zM1.305 30.505v-13.799h4.324c-0.587 0.66-0.932 1.525-0.932 2.453 0 0.737 0.218 1.424 0.592 2 0.647 1.066 1.82 1.78 3.156 1.78 2.034 0 3.689-1.655 3.689-3.689-0-0.745-0.223-1.449-0.615-2.040-0.111-0.178-0.236-0.347-0.376-0.504h4.372v6.025c0 0.184 0.090 0.347 0.228 0.449 0.101 0.103 0.242 0.167 0.398 0.167h0.173c0.24 0 0.453-0.153 0.529-0.38 0.352-1.049 1.332-1.754 2.439-1.754 0.419 0 0.815 0.101 1.165 0.28 0.776 0.444 1.301 1.279 1.301 2.236 0 1.419-1.154 2.574-2.574 2.574-0.408 0-0.799-0.096-1.147-0.27-0.546-0.305-0.976-0.804-1.185-1.426-0.052-0.155-0.169-0.275-0.314-0.336-0.092-0.065-0.204-0.103-0.322-0.103h-0.133c-0.308 0-0.558 0.25-0.558 0.558v6.142h-13.816c-0.217-0-0.394-0.163-0.394-0.362zM30.792 30.472c0 0.217-0.162 0.394-0.362 0.394h-13.732v-4.404c0.239 0.216 0.505 0.401 0.792 0.548 0.536 0.297 1.148 0.464 1.791 0.464 2.034 0 3.689-1.655 3.689-3.689 0-1.423-0.81-2.659-1.993-3.274-0.534-0.301-1.149-0.473-1.804-0.473-0.939 0-1.813 0.354-2.476 0.955v-4.404h6.016c0.308 0 0.558-0.25 0.558-0.558v-0.173c0-0.126-0.044-0.245-0.117-0.34-0.064-0.129-0.178-0.231-0.321-0.279-0.562-0.189-1.023-0.558-1.332-1.030-0.232-0.389-0.363-0.842-0.363-1.318 0-1.419 1.154-2.574 2.574-2.574 0.894 0 1.682 0.458 2.144 1.151 0.236 0.389 0.372 0.844 0.372 1.331 0 1.107-0.705 2.087-1.754 2.439-0.227 0.076-0.38 0.289-0.38 0.529v0.133c0 0.106 0.030 0.204 0.081 0.289 0.068 0.231 0.282 0.4 0.535 0.4h6.084v13.883z"}))},f=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M15.517 23.581c-0.036 0.002-0.069-0.003-0.102-0.009-0.108-0.019-0.211-0.070-0.294-0.153l-9.153-9.153c-0.104-0.104-0.162-0.245-0.162-0.392s0.058-0.288 0.163-0.392l2.13-2.129c0.217-0.217 0.568-0.217 0.784 0l6.633 6.633 12.94-12.94c0.217-0.217 0.568-0.217 0.785 0l2.13 2.13c0.104 0.104 0.163 0.245 0.163 0.392s-0.058 0.288-0.162 0.392l-15.46 15.46c-0.104 0.104-0.245 0.163-0.392 0.163zM7.145 13.873l8.37 8.37 14.678-14.678-1.345-1.345-12.94 12.94c-0.217 0.217-0.568 0.217-0.785 0l-6.633-6.633-1.345 1.345zM30.087 11.781c0.401 1.337 0.618 2.753 0.618 4.219 0 8.108-6.596 14.704-14.705 14.704s-14.704-6.596-14.704-14.704c0-8.108 6.596-14.705 14.704-14.705 3.79 0 7.25 1.442 9.86 3.805l0.785-0.785c-2.812-2.564-6.549-4.129-10.645-4.129-8.72 0-15.814 7.094-15.814 15.814s7.094 15.814 15.814 15.814c8.72 0 15.814-7.094 15.814-15.814 0-1.784-0.297-3.501-0.845-5.102l-0.883 0.883z"}))},y=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M17.425 25.368h-3.22v-2.107c-1.234-0.109-2.518-0.463-3.389-0.944l-0.373-0.206 0.93-3.628 0.622 0.341c0.602 0.33 1.835 0.883 3.323 0.883 0.769 0 1.545-0.244 1.545-0.789 0-0.365-0.235-0.783-1.938-1.358-1.985-0.668-4.264-1.78-4.264-4.477 0-2.098 1.387-3.709 3.652-4.289v-2.162h3.22v1.931c1.366 0.11 2.263 0.465 2.838 0.736l0.416 0.196-0.937 3.53-0.621-0.298c-0.539-0.259-1.442-0.692-2.853-0.692-0.488 0-1.307 0.088-1.307 0.681 0 0.448 1.192 0.94 2.231 1.319 2.781 0.973 3.971 2.344 3.971 4.58 0 1.114-0.391 2.124-1.13 2.922-0.668 0.721-1.601 1.236-2.716 1.503v2.328zM15.307 24.266h1.016v-2.139l0.457-0.079c2.090-0.36 3.389-1.676 3.389-3.433 0-1.446-0.551-2.601-3.24-3.542-1.624-0.592-2.962-1.176-2.962-2.357 0-0.862 0.633-1.783 2.409-1.783 1.213 0 2.119 0.278 2.746 0.536l0.36-1.354c-0.565-0.222-1.372-0.445-2.517-0.479l-0.535-0.016v-1.886h-1.016v1.959l-0.45 0.084c-2.005 0.375-3.202 1.61-3.202 3.305 0 1.577 1.051 2.604 3.514 3.432 1.396 0.472 2.688 1.089 2.688 2.402 0 1.149-1.039 1.891-2.647 1.891-1.312 0-2.447-0.366-3.222-0.708l-0.369 1.437c0.709 0.309 1.808 0.617 3.045 0.654l0.535 0.016v2.058zM15.901 30.607c-8.054 0-14.607-6.552-14.607-14.606s6.552-14.607 14.607-14.607c8.054 0 14.607 6.552 14.607 14.607 0 2.567-0.667 4.981-1.834 7.079l1.095 0.293c1.174-2.2 1.841-4.71 1.841-7.373 0-8.662-7.047-15.709-15.709-15.709s-15.709 7.047-15.709 15.709 7.047 15.709 15.709 15.709c2.752 0 5.34-0.712 7.592-1.96l-0.294-1.099c-2.148 1.244-4.641 1.957-7.297 1.957zM29.539 31.709c-0.141 0-0.282-0.054-0.39-0.161l-2.673-2.673-0.86 1.786c-0.1 0.208-0.32 0.331-0.548 0.31s-0.421-0.184-0.481-0.406l-1.977-7.377c-0.051-0.19 0.004-0.393 0.143-0.532s0.342-0.194 0.532-0.143l7.377 1.977c0.222 0.060 0.385 0.252 0.406 0.481s-0.102 0.448-0.31 0.548l-1.787 0.86 2.673 2.672c0.103 0.103 0.161 0.244 0.161 0.39s-0.058 0.286-0.161 0.39l-1.717 1.717c-0.108 0.107-0.249 0.161-0.39 0.161zM26.318 27.385c0.145 0 0.285 0.057 0.39 0.161l2.832 2.832 0.938-0.938-2.832-2.832c-0.126-0.126-0.184-0.306-0.154-0.482s0.143-0.327 0.304-0.404l1.148-0.552-5.020-1.345 1.345 5.020 0.552-1.148c0.077-0.161 0.228-0.274 0.404-0.304 0.031-0.005 0.062-0.008 0.092-0.008zM20.272 5.201c1.977 0 5.826 2.162 5.826 6.126 0 0.304 0.247 0.551 0.551 0.551s0.551-0.247 0.551-0.551c0-2.063-0.912-3.976-2.568-5.387-1.314-1.119-3.025-1.842-4.361-1.842-0.304 0-0.551 0.247-0.551 0.551s0.247 0.551 0.551 0.551z"}))},w=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M31.438 1.423h-30.877c-0.31 0-0.562 0.251-0.562 0.562v22.175c0 0.31 0.251 0.562 0.562 0.562h3.103v5.294c0 0.201 0.107 0.386 0.281 0.486 0.087 0.050 0.184 0.075 0.281 0.075s0.194-0.025 0.281-0.075l10.012-5.78h16.919c0.31 0 0.562-0.251 0.562-0.562v-22.175c0-0.31-0.251-0.562-0.562-0.562zM30.877 23.598h-16.508c-0.099 0-0.195 0.026-0.281 0.075l-9.3 5.369v-4.883c0-0.31-0.251-0.562-0.562-0.562h-3.103v-21.052h29.753v21.052zM4.386 7.532h22.894c0.31 0 0.562-0.251 0.562-0.562s-0.251-0.562-0.562-0.562h-22.894c-0.31 0-0.562 0.251-0.562 0.562s0.251 0.562 0.562 0.562zM4.386 11.865h22.894c0.31 0 0.562-0.251 0.562-0.562s-0.251-0.562-0.562-0.562h-22.894c-0.31 0-0.562 0.251-0.562 0.562s0.251 0.562 0.562 0.562zM4.386 16.198h22.894c0.31 0 0.562-0.251 0.562-0.562s-0.251-0.562-0.562-0.562h-22.894c-0.31 0-0.562 0.251-0.562 0.562s0.251 0.562 0.562 0.562zM4.386 20.53h22.894c0.31 0 0.562-0.251 0.562-0.562s-0.251-0.562-0.562-0.562h-22.894c-0.31 0-0.562 0.252-0.562 0.562s0.251 0.562 0.562 0.562z"}))},v=function(){return wp.element.createElement(o,{viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M0 448V64h18v384H0zm26.857-.273V64H36v383.727h-9.143zm27.143 0V64h8.857v383.727H54zm44.857 0V64h8.857v383.727h-8.857zm36 0V64h17.714v383.727h-17.714zm44.857 0V64h8.857v383.727h-8.857zm18 0V64h8.857v383.727h-8.857zm18 0V64h8.857v383.727h-8.857zm35.715 0V64h18v383.727h-18zm44.857 0V64h18v383.727h-18zm35.999 0V64h18.001v383.727h-18.001zm36.001 0V64h18.001v383.727h-18.001zm26.857 0V64h18v383.727h-18zm45.143 0V64h26.857v383.727h-26.857zm35.714 0V64h9.143v383.727H476zm18 .273V64h18v384h-18z"}))},k=function(){return wp.element.createElement(o,{className:"wp-block-themeisle-icon-buttom-group-custom-icon",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M17.294,17.287l-14.588,0l0,-14.574l14.588,0c0,4.858 0,9.716 0,14.574Zm-13.738,-0.85l12.888,0l0,-12.874l-12.888,0c0,4.291 0,8.583 0,12.874Z"}),wp.element.createElement("rect",{x:"4.489",y:"4.744",width:"11.022",height:"2.512"}))},T=function(){return wp.element.createElement(o,{className:"wp-block-themeisle-icon-buttom-group-custom-icon",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M17.294,17.287l-14.588,0l0,-14.574l14.588,0c0,4.858 0,9.716 0,14.574Zm-13.738,-0.85l12.888,0l0,-12.874l-12.888,0c0,4.291 0,8.583 0,12.874Z"}),wp.element.createElement("rect",{y:"8.744",width:"11.022",x:"4.489",height:"2.512"}))},E=function(){return wp.element.createElement(o,{className:"wp-block-themeisle-icon-buttom-group-custom-icon",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M17.294,17.287l-14.588,0l0,-14.574l14.588,0c0,4.858 0,9.716 0,14.574Zm-13.738,-0.85l12.888,0l0,-12.874l-12.888,0c0,4.291 0,8.583 0,12.874Z"}),wp.element.createElement("rect",{x:"4.489",y:"12.802",width:"11.022",height:"2.512"}))},x=wp.element.createElement(o,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"20",height:"20"},wp.element.createElement(l,{d:"M5 5H3v2h2V5zm3 8h11v-2H8v2zm9-8H6v2h11V5zM7 11H5v2h2v-2zm0 8h2v-2H7v2zm3-2v2h11v-2H10z"}))},function(e,t,n){"use strict";var a=n(0),l=n.n(a);n(43);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var r=wp.components,i=r.Popover,c=r.RangeControl,d=wp.element,p=d.Fragment,m=d.useRef,s=d.useState,u=function(e){var t=e.id,n=e.index,a=e.option,l=e.min,r=e.max,d=e.onChange,u=o(s(!1),2),b=u[0],g=u[1],h=m(null);return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-sizing-control-item"},n.disabled?wp.element.createElement("input",{type:"number",disabled:n.disabled,className:"wp-block-themeisle-blocks-sizing-control-item-input",id:"wp-block-themeisle-blocks-sizing-control-item-input-".concat(a)}):wp.element.createElement(p,null,wp.element.createElement("input",{type:"number",className:"wp-block-themeisle-blocks-sizing-control-item-input",id:"wp-block-themeisle-blocks-sizing-control-item-input-".concat(a,"-").concat(t),value:n.value||"",min:l,max:r,ref:h,onFocus:function(){return g(!b)},onChange:function(e){return d(n.type,parseInt(e.target.value))}}),b&&wp.element.createElement(i,{onFocusOutside:function(){h.current.contains(document.activeElement)||g(!1)}},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-sizing-control-overlay"},wp.element.createElement(c,{value:n.value,initialPosition:n.value,beforeIcon:"minus",afterIcon:"plus",min:l,max:r,onChange:function(e){return d(n.type,e)}})))),n.label&&wp.element.createElement("label",{className:"wp-block-themeisle-blocks-sizing-control-item-label",htmlFor:"wp-block-themeisle-blocks-sizing-control-item-input-".concat(a,"-").concat(t)},n.label))},b=wp.i18n.__,g=wp.components.IconButton,h=wp.compose.withInstanceId;t.a=h((function(e){var t=e.instanceId,n=e.label,a=e.type,o=e.min,r=e.max,i=e.changeType,c=e.options,d=e.onChange,p="inspector-sizing-control-".concat(t);return c&&1>c.length?b("Please specify more options."):wp.element.createElement("div",{id:p,className:"wp-block-themeisle-blocks-sizing-control"},wp.element.createElement("div",{className:"components-base-control__field"},n&&wp.element.createElement("label",{className:"components-base-control__label",htmlFor:p},n),wp.element.createElement("div",{className:l()("wp-block-themeisle-blocks-sizing-control-wrapper",{linking:a})},c.map((function(e,n){return wp.element.createElement(u,{id:t,index:e,option:n,min:o,max:r,onChange:d})})),a&&wp.element.createElement("div",{className:l()("wp-block-themeisle-blocks-sizing-control-item","toggle-linking",{"is-linked":"linked"===a})},wp.element.createElement(g,{icon:"linked"===a?"admin-links":"editor-unlink",tooltip:b("linked"===a?"Unlink Values":"Link Values"),className:"wp-block-themeisle-blocks-sizing-control-item-input",onClick:function(){return i("linked"===a?"unlinked":"linked")}})))))}))},function(e,t,n){"use strict";var a=n(0),l=n.n(a),o=(n(42),wp.i18n.__),r=wp.components,i=r.Button,c=r.Dashicon,d=r.Dropdown,p=r.IconButton,m=wp.compose.withInstanceId;t.a=m((function(e){var t=e.instanceId,n=e.label,a=e.changeViewType,r=e.view,m=e.children,s="inspector-responsive-control-".concat(t);return wp.element.createElement("div",{id:s,className:"wp-block-themeisle-blocks-responsive-control"},wp.element.createElement("div",{className:"components-base-control__field"},wp.element.createElement("div",{className:"components-base-control__title"},wp.element.createElement("label",{className:"components-base-control__label"},n),wp.element.createElement("div",{className:"floating-controls"},wp.element.createElement(d,{position:"top left",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return wp.element.createElement(p,{icon:"mobile"===r?"smartphone":r,label:o("Responsiveness Settings"),className:"is-button",onClick:n,"aria-expanded":t})},renderContent:function(e){var t=e.onToggle;return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-responsive-control-settings"},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-responsive-control-settings-title"},o("Responsiveness Settings")),wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-responsive-control-settings-item",{"is-selected":"desktop"===r}),onClick:function(){t(),a("desktop")}},wp.element.createElement(c,{icon:"desktop"}),wp.element.createElement("span",{className:"popover-title"},o("Desktop"))),wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-responsive-control-settings-item",{"is-selected":"tablet"===r}),onClick:function(){t(),a("tablet")}},wp.element.createElement(c,{icon:"tablet"}),wp.element.createElement("span",{className:"popover-title"},o("Tablet Devices"))),wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-responsive-control-settings-item",{"is-selected":"mobile"===r}),onClick:function(){t(),a("mobile")}},wp.element.createElement(c,{icon:"smartphone"}),wp.element.createElement("span",{className:"popover-title"},o("Smartphones"))))}}))),m))}))},function(e,t,n){"use strict";t.a={"themeisle-blocks/advanced-heading":{tag:"h2",headingColor:"#000000",fontStyle:"normal",textTransform:"none",paddingType:"linked",paddingTypeTablet:"linked",paddingTypeMobile:"linked",padding:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,marginType:"unlinked",marginTypeTablet:"unlinked",marginTypeMobile:"unlinked",margin:0,marginTop:0,marginBottom:25},"themeisle-blocks/button-group":{spacing:20,collapse:"collapse-none",fontSize:18,fontStyle:"normal",data:{color:"#ffffff",background:"#32373c",paddingTopBottom:12,paddingLeftRight:24}},"themeisle-blocks/font-awesome-icons":{fontSize:16,padding:5,margin:5},"themeisle-blocks/advanced-columns":{columnsGap:"default",paddingType:"linked",paddingTypeTablet:"linked",paddingTypeMobile:"linked",padding:20,paddingTop:20,paddingRight:20,paddingBottom:20,paddingLeft:20,marginType:"unlinked",marginTypeTablet:"unlinked",marginTypeMobile:"unlinked",margin:20,marginTop:20,marginBottom:20,columnsHTMLTag:"div",horizontalAlign:"unset",columnsHeight:"auto",verticalAlign:"unset",hide:!1,hideTablet:!1,hideMobile:!1},"themeisle-blocks/advanced-column":{paddingType:"linked",paddingTypeTablet:"linked",paddingTypeMobile:"linked",padding:20,paddingTop:20,paddingRight:20,paddingBottom:20,paddingLeft:20,marginType:"unlinked",marginTypeTablet:"unlinked",marginTypeMobile:"unlinked",margin:20,marginTop:20,marginRight:0,marginBottom:20,marginLeft:0,columnsHTMLTag:"div"}}},,function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return o}));var a=wp.i18n.__,l=function(e){var t=document.createElement("div");return t.innerHTML=e,void 0!==t.innerText?t.innerText:t.textContent},o=function(e){var t=[a("January"),a("February"),a("March"),a("April"),a("May"),a("June"),a("July"),a("August"),a("September"),a("October"),a("November"),a("December")],n=(e=new Date(e)).getDate(),l=e.getMonth(),o=e.getFullYear();return n+" "+t[l]+", "+o}},function(e,t,n){"use strict";n(52);var a=wp.components,l=a.Dropdown,o=a.IconButton,r=wp.compose.withInstanceId;t.a=r((function(e){var t=e.label,n=e.instanceId,a=e.children,r="inspector-control-panel-control-".concat(n);return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-control-panel-control"},wp.element.createElement("div",{className:"components-base-control__field"},wp.element.createElement("div",{className:"components-base-control__title"},wp.element.createElement("label",{className:"components-base-control__label",for:r},t),wp.element.createElement("div",{className:"floating-controls"},wp.element.createElement(l,{position:"top left",headerTitle:t,expandOnMobile:!0,renderToggle:function(e){var n=e.isOpen,a=e.onToggle;return wp.element.createElement(o,{id:r,icon:"admin-settings",label:t,className:"is-button",onClick:a,"aria-expanded":n})},renderContent:function(){return wp.element.createElement("div",{className:"wp-block-themeisle-popover-settings"},a)}})))))}))},function(e,t,n){"use strict";var a=n(0),l=n.n(a);n(41);function o(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var i=lodash,c=i.startCase,d=i.toLower,p=wp.i18n.__,m=wp.compose.withInstanceId,s=wp.components,u=s.Button,b=s.BaseControl,g=s.Dropdown,h=s.MenuGroup,f=s.MenuItem,y=s.SelectControl,w=s.TextControl,v=wp.element,k=v.useEffect,T=v.useState;t.a=m((function(e){var t=e.instanceId,n=e.label,a=e.value,i=e.valueVariant,m=e.valueStyle,s=e.valueTransform,v=e.isSelect,E=void 0!==v&&v,x=e.onChangeFontFamily,C=e.onChangeFontVariant,S=e.onChangeFontStyle,B=e.onChangeTextTransform;k((function(){fetch("https://www.googleapis.com/webfonts/v1/webfonts?key=AIzaSyClGdkPJ1BvgLOol5JAkQY4Mv2lkLYu00k").then((function(e){return e.json()})).then((function(e){R(e.items),a&&e.items.find((function(e){if(a===e.family){var t=e.variants.filter((function(e){return!1===e.includes("italic")})).map((function(e){return{label:c(d(e)),value:e}}));return z(t)}}))}))}),[]);var M=r(T(null),2),O=M[0],R=M[1],N=r(T(null),2),L=N[0],z=N[1],A=r(T(""),2),H=A[0],P=A[1],_="inspector-google-fonts-control-".concat(t);return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-google-fonts-control"},wp.element.createElement(b,{label:n,id:_},null!==O?E?wp.element.createElement(y,{value:a||"",id:_,options:[{label:p("Default"),value:""}].concat(o(O.map((function(e){return{label:e.family,value:e.family}})))),onChange:function(e){var t=[];if(""===e)return t=[{label:p("Regular"),value:"regular"},{label:p("Italic"),value:"italic"}],x(void 0),void z(t);x(e),t=O.find((function(t){return e===t.family})).variants.filter((function(e){return!1===e.includes("italic")})).map((function(e){return{label:c(d(e)),value:e}})),z(t)}}):wp.element.createElement(g,{contentClassName:"wp-block-themeisle-blocks-google-fonts-popover",position:"bottom center",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return wp.element.createElement(u,{isLarge:!0,className:"wp-block-themeisle-blocks-google-fonts-button",id:_,onClick:n,"aria-expanded":t},a||p("Select Font Family"))},renderContent:function(e){var t=e.onToggle;return wp.element.createElement(h,{label:p("Google Fonts")},wp.element.createElement(w,{value:H,onChange:function(e){return P(e)}}),wp.element.createElement("div",{className:"components-popover__items"},wp.element.createElement(f,{onClick:function(){t(),x(void 0),z([]),P("")}},p("Default")),O.map((function(e){if(!H||e.family.toLowerCase().includes(H.toLowerCase()))return wp.element.createElement(f,{className:l()({"is-selected":e.family===a}),onClick:function(){t(),x(e.family);var n=e.variants.filter((function(e){return!1===e.includes("italic")})).map((function(e){return{label:c(d(e)),value:e}}));z(n),P("")}},e.family)}))))}}):p("Loading…")),L&&wp.element.createElement(y,{label:p("Font Width"),value:i||"regular",options:L,onChange:C}),wp.element.createElement(y,{label:p("Font Style"),value:m,options:[{label:p("Regular"),value:"normal"},{label:p("Italic"),value:"italic"}],onChange:S}),wp.element.createElement(y,{label:p("Font Transform"),value:s,options:[{label:p("Default"),value:"none"},{label:p("Uppercase"),value:"uppercase"},{label:p("Lowercase"),value:"lowercase"},{label:p("Capitalize"),value:"capitalize"}],onChange:B}))}))},function(e,t){e.exports=React},function(e,t,n){"use strict";n.d(t,"b",(function(){return b})),n.d(t,"a",(function(){return g}));var a=n(0),l=n.n(a),o=(n(61),wp.components),r=o.BaseControl,i=o.Button,c=o.Dropdown,d=o.IconButton,p=o.Toolbar,m=wp.compose.withInstanceId,s=wp.blockEditor.BlockControls,u=wp.element.Fragment,b=m((function(e){var t=e.instanceId,n=e.label,a=e.value,o=e.options,c=e.onChange,d="inspector-style-switcher-control-".concat(t);return wp.element.createElement(r,{id:d,label:n},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-style-switcher"},o.map((function(e){return wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-style-switcher-item",{"is-active":e.value===a}),tabIndex:"0",onClick:function(){return function(e){return c(e)}(e.value)}},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-style-switcher-item-preview"},wp.element.createElement("img",{src:e.image})),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-style-switcher-item-label"},e.label))}))))})),g=function(e){var t=e.label,n=e.value,a=e.options,o=e.onChange;return wp.element.createElement(s,null,wp.element.createElement(p,{className:"wp-themesiel-blocks-block-styles-components-toolbar"},wp.element.createElement(c,{contentClassName:"wp-themesiel-blocks-block-styles-popover-content",position:"bottom center",renderToggle:function(e){var n=e.isOpen,a=e.onToggle;return wp.element.createElement(d,{className:"components-dropdown-menu__toggle",icon:"admin-appearance",onClick:a,"aria-haspopup":"true","aria-expanded":n,label:t,tooltip:t},wp.element.createElement("span",{className:"components-dropdown-menu__indicator"}))},renderContent:function(){return wp.element.createElement(u,null,wp.element.createElement("div",{className:"wp-block-themeisle-blocks-style-switcher"},a.map((function(e){return wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-style-switcher-item",{"is-active":e.value===n}),tabIndex:"0",onClick:function(){return function(e){return o(e)}(e.value)}},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-style-switcher-item-preview"},wp.element.createElement("img",{src:e.image})),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-style-switcher-item-label"},e.label))}))))}})))}},,function(e,t,n){"use strict";n.r(t);var a=n(0),l=n.n(a),o=(n(69),n(70),wp.components),r=o.SVG,i=o.Path;t.default=function(e){var t=e.type,n=e.front,a=e.style,o=e.fill,c=e.invert,d=e.width,p=e.height;return"none"!==a&&wp.element.createElement("div",{className:l()("wp-block-themeisle-blocks-advanced-columns-separators",t),style:!n&&d?{transform:"".concat(d?"scaleX( ".concat(d/100," )"):"")}:{}},"bigTriangle"===a&&!1===c&&wp.element.createElement(r,{id:"bigTriangle",fill:o,viewBox:"0 0 100 100",width:"100%",height:p?"".concat(p,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"bottom"===t})},wp.element.createElement(i,{d:"M0 0 L50 100 L100 0 Z"})),"bigTriangle"===a&&!0===c&&wp.element.createElement(r,{id:"bigTriangle",fill:o,viewBox:"0 0 100 100",width:"100%",height:p?"".concat(p,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"top"===t})},wp.element.createElement(i,{d:"M100, 0l-50, 100l-50, -100l0, 100l100, 0l0, -100Z"})),"rightCurve"===a&&!1===c&&wp.element.createElement(r,{id:"rightCurve",fill:o,viewBox:"0 0 100 100",width:"100%",height:p?"".concat(p,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"top"===t})},wp.element.createElement(i,{d:"M0 100 C 20 0 50 0 100 100 Z"})),"rightCurve"===a&&!0===c&&wp.element.createElement(r,{id:"rightCurve",fill:o,viewBox:"0 0 100 100",width:"100%",height:p?"".concat(p,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"top"===t})},wp.element.createElement(i,{d:"M0 100 C 50 0 70 0 100 100 Z"})),"curve"===a&&wp.element.createElement(r,{id:"curve",fill:o,viewBox:"0 0 100 100",width:"100%",height:p?"".concat(p,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"top"===t})},wp.element.createElement(i,{d:"M0 100 C40 0 60 0 100 100 Z"})),"slant"===a&&!1===c&&wp.element.createElement(r,{id:"slant",fill:o,viewBox:"0 0 100 100",width:"100%",height:p?"".concat(p,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"bottom"===t})},wp.element.createElement(i,{d:"M0 0 L100 100 L100 0 Z"})),"slant"===a&&!0===c&&wp.element.createElement(r,{id:"slant",fill:o,viewBox:"0 0 100 100",width:"100%",height:p?"".concat(p,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"bottom"===t})},wp.element.createElement(i,{d:"M0 0 L0 100 L100 0 Z"})),"cloud"===a&&wp.element.createElement(r,{id:"cloud",fill:o,viewBox:"0 0 100 100",width:"100%",height:p?"".concat(p,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"top"===t})},wp.element.createElement(i,{d:"M-5 100 Q 10 -100 15 100 Z M10 100 Q 20 -20 30 100 M25 100 Q 35 -70 45 100 M40 100 Q 50 -100 60 100 M55 100 Q 65 -20 75 100 M70 100 Q 75 -45 90 100 M85 100 Q 90 -50 95 100 M90 100 Q 95 -25 105 100 Z"})))}},function(e,t,n){"use strict";n.r(t);var a=n(0),l=n.n(a),o=(n(66),n(2)),r=wp.i18n.__,i=wp.components,c=i.Button,d=i.ButtonGroup,p=i.Icon,m=i.IconButton,s=i.Tooltip,u=wp.compose.withInstanceId;t.default=u((function(e){var t=e.label,n=e.instanceId,a=e.backgroundType,i=e.changeBackgroundType,u="inspector-background-control-".concat(n);return wp.element.createElement("div",{id:u,className:"components-base-control wp-block-themeisle-blocks-advanced-columns-background-control"},wp.element.createElement("div",{className:"components-base-control__field"},wp.element.createElement("div",{className:"components-base-control__title"},wp.element.createElement("label",{className:"components-base-control__label"},t),wp.element.createElement(d,{className:"linking-controls"},wp.element.createElement(m,{icon:"admin-customizer",label:r("Color"),className:l()("is-button",{"is-primary":"color"===a}),onClick:function(){i("color")}}),wp.element.createElement(m,{icon:"format-image",label:r("Image"),className:l()("is-button",{"is-primary":"image"===a}),onClick:function(){i("image")}}),wp.element.createElement(s,{text:r("Gradient")},wp.element.createElement(c,{label:r("Gradient"),className:l()("is-button",{"is-primary":"gradient"===a}),onClick:function(){i("gradient")}},wp.element.createElement(p,{icon:o.b})))))))}))},function(e,t){e.exports=ReactDOM},function(e,t,n){"use strict";t.a={1:{equal:["100"]},2:{equal:["50","50"],oneTwo:["33.34","66.66"],twoOne:["66.66","33.34"]},3:{equal:["33.33","33.33","33.33"],oneOneTwo:["25","25","50"],twoOneOne:["50","25","25"],oneTwoOne:["25","50","25"],oneThreeOne:["20","60","20"]},4:{equal:["25","25","25","25"]},5:{equal:["20","20","20","20","20"]},6:{equal:["16.66","16.66","16.66","16.66","16.66","16.66"]}}},function(e,t,n){"use strict";n(67);var a=n(0),l=n.n(a),o=wp.components,r=o.Dashicon,i=o.Tooltip,c=function(e){var t=e.title,n=e.firstColor,a=e.secondColor,o=e.isSelected,c=e.onChange,d=wp.element.createElement("button",{type:"button","aria-pressed":o,className:l()("wp-block-themeisle-blocks-gradient-picker-control-option",{"is-active":o}),style:{background:"linear-gradient(90deg, ".concat(n," 0%, ").concat(a," 100%)")},onClick:function(){return c(n,0,a,100,"linear",90,"center center")}});return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-gradient-picker-control-option-wrapper"},t?wp.element.createElement(i,{text:t},d):d,o&&wp.element.createElement(r,{icon:"saved"}))},d=wp.i18n.__,p=[{title:d("Reef"),firstColor:"#36d1dc",secondColor:"#5b86e5"},{title:d("Mild"),firstColor:"#67B26F",secondColor:"#4ca2cd"},{title:d("Mojito"),firstColor:"#1D976C",secondColor:"#93F9B9"},{title:d("Nelson"),firstColor:"#f2709c",secondColor:"#ff9472"},{title:d("Orange Fun"),firstColor:"#fc4a1a",secondColor:"#f7b733"},{title:d("Evening Night"),firstColor:"#005AA7",secondColor:"#FFFDE4"},{title:d("Calm Darya"),firstColor:"#5f2c82",secondColor:"#49a09d"},{title:d("Opa"),firstColor:"#3D7EAA",secondColor:"#FFE47A"},{title:d("Bora Bora"),firstColor:"#2BC0E4",secondColor:"#EAECC6"},{title:d("Electric Violet"),firstColor:"#4776E6",secondColor:"#8E54E9"},{title:d("Pinky"),firstColor:"#DD5E89",secondColor:"#F7BB97"},{title:d("Purple Paradise"),firstColor:"#1D2B64",secondColor:"#F8CDDA"}],m=wp.i18n.__,s=wp.components,u=s.Button,b=s.ColorIndicator,g=s.Dropdown,h=s.RangeControl,f=s.SelectControl,y=wp.compose.withInstanceId,w=wp.blockEditor.ColorPalette,v=wp.element.Fragment;t.a=y((function(e){var t,n=e.label,a=e.instanceId,l=e.value,o=e.customGradient,r=void 0===o||o,i=e.onChange,d="inspector-gradient-picker-control-".concat(a),s=function(e){var t=e.firstColor,n=void 0===t?l.firstColor:t,a=e.firstLocation,o=void 0===a?l.firstLocation:a,r=e.secondColor,c=void 0===r?l.secondColor:r,d=e.secondLocation,p=void 0===d?l.secondLocation:d,m=e.type,s=void 0===m?l.type:m,u=e.angle,b=void 0===u?l.angle:u,g=e.position,h=void 0===g?l.position:g;i(n,o,c,p,s,b,h)};t="linear"===l.type?"".concat(l.angle,"deg"):"at ".concat(l.position);var y="".concat(l.type,"-gradient( ").concat(t,", ").concat(l.firstColor||"rgba( 0, 0, 0, 0 )"," ").concat(l.firstLocation,"%, ").concat(l.secondColor||"rgba( 0, 0, 0, 0 )"," ").concat(l.secondLocation,"% )"),k=p.some((function(e){return e.firstColor===l.firstColor&&e.secondColor===l.secondColor}));return wp.element.createElement("div",{id:d,className:"wp-block-themeisle-blocks-gradient-picker-control"},wp.element.createElement("div",{className:"components-base-control__field"},n&&wp.element.createElement("div",{className:"components-base-control__title"},wp.element.createElement("label",{className:"components-base-control__label"},n,!k&&wp.element.createElement(b,{colorValue:y}))),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-gradient-picker-control-presets"},p.map((function(e){return wp.element.createElement(c,{title:e.title,firstColor:e.firstColor,secondColor:e.secondColor,isSelected:e.firstColor===l.firstColor&&e.secondColor===l.secondColor,onChange:i})})),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-gradient-picker-control-custom-wrapper"},r&&wp.element.createElement(g,{className:"wp-block-themeisle-blocks-gradient-picker-control-dropdown-link-action",contentClassName:"wp-block-themeisle-blocks-gradient-picker-control-dropdown-content",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return wp.element.createElement(u,{"aria-expanded":t,onClick:n,isLink:!0},m("Custom Gradient"))},renderContent:function(){return wp.element.createElement(v,null,wp.element.createElement("p",null,m("First Color")),wp.element.createElement(w,{label:m("Color"),clearable:!1,value:l.firstColor,onChange:function(e){return s({firstColor:e})}}),wp.element.createElement(h,{label:m("Location"),value:l.firstLocation,min:0,max:100,onChange:function(e){return s({firstLocation:e})}}),wp.element.createElement("p",null,m("Second Color")),wp.element.createElement(w,{label:m("Color"),clearable:!1,value:l.secondColor,onChange:function(e){return s({secondColor:e})}}),wp.element.createElement(h,{label:m("Location"),value:l.secondLocation,min:0,max:100,onChange:function(e){return s({secondLocation:e})}}),wp.element.createElement(f,{label:m("Type"),value:l.type,options:[{label:"Linear",value:"linear"},{label:"Radial",value:"radial"}],onChange:function(e){return s({type:e})}}),"linear"===l.type?wp.element.createElement(h,{label:m("Angle"),value:l.angle,min:0,max:360,onChange:function(e){return s({angle:e})}}):wp.element.createElement(f,{label:m("Position"),value:l.position,options:[{label:"Top Left",value:"top left"},{label:"Top Center",value:"top center"},{label:"Top Right",value:"top right"},{label:"Center Left",value:"center left"},{label:"Center Center",value:"center center"},{label:"Center Right",value:"center right"},{label:"Bottom Left",value:"bottom left"},{label:"Bottom Center",value:"bottom center"},{label:"Bottom Right",value:"bottom right"}],onChange:function(e){return s({position:e})}}))}}),wp.element.createElement(u,{className:"wp-block-themeisle-blocks-gradient-picker-control-clear",type:"button",isSmall:!0,isDefault:!0,onClick:function(){return i("#ffffff",0,"#ffffff",100,"linear",90,"center center")}},m("Clear"))))))}))},,function(e,t,n){"use strict";var a=n(0),l=n.n(a);n(53);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var r=wp.i18n.__,i=wp.blockEditor.InspectorAdvancedControls,c=wp.compose.withInstanceId,d=wp.components,p=d.BaseControl,m=d.IconButton,s=d.Notice,u=wp.element.useState;t.a=c((function(e){var t=e.instanceId,n=e.value,a=e.onChange,c=o(u(!1),2),d=c[0],b=c[1],g=o(u(n),2),h=g[0],f=g[1],y=void 0!==window.themeisleGutenberg.blockIDs&&n!==h&&window.themeisleGutenberg.blockIDs.includes(h);return wp.element.createElement(i,null,wp.element.createElement(p,{label:r("HTML Anchor"),help:r("Anchors lets you link directly to a section on a page."),id:"wp-block-themeisle-blocks-html-anchor-control-".concat(t)},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-html-anchor-control"},wp.element.createElement("input",{type:"text",className:"wp-block-themeisle-blocks-html-anchor-control-input",readonly:!d&&"readonly",value:d?h:n,onChange:function(e){return f(e.target.value)},onClick:function(e){return e.target.select()}}),wp.element.createElement(m,{icon:d?"yes":"edit",tooltip:r(d?"Save":"Edit"),disabled:!!y,className:l()("wp-block-themeisle-blocks-html-anchor-control-button",{"is-saved":!d}),onClick:function(){if(d&&n!==h){var e=window.themeisleGutenberg.blockIDs.findIndex((function(e){return e===n}));window.themeisleGutenberg.blockIDs[e]=h,a(h)}b(!d)}}))),y&&wp.element.createElement(s,{status:"warning",isDismissible:!1,className:"wp-block-themeisle-blocks-anchor-control-notice"},r("This ID has already been used in this page. Please consider using a different ID to avoid conflict.")))}))},function(e,t,n){"use strict";var a=n(0),l=n.n(a),o=n(21);n(56);function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var i=wp.i18n.__,c=wp.apiFetch,d=wp.components,p=d.BaseControl,m=d.IconButton,s=d.Popover,u=wp.compose,b=u.compose,g=u.withInstanceId,h=wp.data.withSelect,f=wp.element,y=f.useEffect,w=f.useRef,v=f.useState,k=wp.keycodes,T=k.DOWN,E=k.ENTER,x=k.TAB,C=k.UP,S=wp.url.addQueryArgs;t.a=b(g,h((function(e){if(e("core/block-editor"))return{fetchLinkSuggestions:(0,e("core/block-editor").getSettings)().__experimentalFetchLinkSuggestions}})))((function(e){var t=e.instanceId,n=e.label,a=e.help,d=e.placeholder,u=e.value,b=e.className,g=e.onChange,h=e.children,f=e.fetchLinkSuggestions;y((function(){A&&null!==_&&void 0!==M[_]&&!B&&null!==k.current&&(B=!0,Object(o.a)(M[_],k.current,{onlyScrollIfNeeded:!0}),setTimeout((function(){B=!1}),100))}));var k=w(null),B=!1,M=[],O=[],R=r(v(!1),2),N=R[0],L=R[1],z=r(v(!1),2),A=z[0],H=z[1],P=r(v(null),2),_=P[0],I=P[1],j=r(v([]),2),F=j[0],G=j[1],V=function(e){return function(t){M[e]=t}},D=function(e){g(e),H(!1)},W="inspector-link-control-".concat(t);return wp.element.createElement(p,{label:n,id:W,help:a,className:b},wp.element.createElement("div",{className:l()("wp-block-themeisle-blocks-link-control-wrapper",{"is-open":N})},wp.element.createElement("input",{type:"url",placeholder:d,value:u,onChange:function(e){g(e.target.value),function(e){var t;1>=e.length||/^https?:/.test(e)?H(!1):(H(!0),(t=f?f(e):c({path:S("/wp/v2/search",{search:e,per_page:20,type:"post"})})).then((function(e){O===t&&(G(e),I(null))})),O=t)}(e.target.value)},onKeyDown:function(e){if(A&&1<=F.length){var t=F[_];switch(e.keyCode){case C:e.stopPropagation(),e.preventDefault();var n=_?_-1:F.length-1;I(n);break;case T:e.stopPropagation(),e.preventDefault();var a=null===_||_===F.length-1?0:_+1;I(a);break;case x:case E:null!==_&&(e.stopPropagation(),D(t.url))}}},className:l()("components-text-control__input",{"is-full":void 0===h})}),A&&0<F.length&&wp.element.createElement(s,{position:"bottom",noArrow:!0,focusOnMount:!1,className:"wp-block-themeisle-blocks-link-control-popover"},wp.element.createElement("div",{ref:k,className:"wp-block-themeisle-blocks-link-control-popover-container"},F.map((function(e,t){return wp.element.createElement("button",{key:e.id,role:"option",tabIndex:"-1",ref:V(t),className:l()("block-editor-url-input__suggestion","editor-url-input__suggestion",{"is-selected":t===_}),onClick:function(){return D(e.url)}},e.title||i("Untitled Post"))})))),void 0!==h&&wp.element.createElement(m,{icon:"admin-generic",tooltip:i("Link Options"),onClick:function(){return L(!N)}})),N&&h)}))},,,,function(e,t,n){"use strict";n.r(t);var a=n(0),l=n.n(a),o=(n(68),wp.i18n.__),r=wp.components,i=r.Button,c=r.Dashicon,d=r.Dropdown,p=r.IconButton,m=r.Path,s=r.Rect,u=r.SVG,b=r.Tooltip,g=wp.compose.withInstanceId,h=wp.element.Fragment;t.default=g((function(e){var t,n=e.label,a=e.instanceId,r=e.onClick,g=e.layout,f=e.layoutTablet,y=e.layoutMobile,w=e.columns,v=e.changeViewType,k=e.view,T="inspector-layout-control-".concat(a);return"desktop"===k?t=g:"tablet"===k?t=f:"mobile"===k&&(t=y),wp.element.createElement("div",{id:T,className:"wp-block-themeisle-blocks-advanced-columns-layout-control"},wp.element.createElement("div",{className:"components-base-control__field"},wp.element.createElement("div",{className:"components-base-control__title"},wp.element.createElement("label",{className:"components-base-control__label"},n),wp.element.createElement("div",{className:"linking-controls"},wp.element.createElement(d,{position:"top left",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return wp.element.createElement(p,{icon:"mobile"===k?"smartphone":k,label:o("Responsiveness Settings"),className:"is-button",onClick:n,"aria-expanded":t})},renderContent:function(e){var t=e.onToggle;return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-responsive-control-settings"},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-responsive-control-settings-title"},o("Responsiveness Settings")),wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-responsive-control-settings-item",{"is-selected":"desktop"===k}),onClick:function(){t(),v("desktop")}},wp.element.createElement(c,{icon:"desktop"}),wp.element.createElement("span",{className:"popover-title"},o("Desktop"))),wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-responsive-control-settings-item",{"is-selected":"tablet"===k}),onClick:function(){t(),v("tablet")}},wp.element.createElement(c,{icon:"tablet"}),wp.element.createElement("span",{className:"popover-title"},o("Tablet Devices"))),wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-responsive-control-settings-item",{"is-selected":"mobile"===k}),onClick:function(){t(),v("mobile")}},wp.element.createElement(c,{icon:"smartphone"}),wp.element.createElement("span",{className:"popover-title"},o("Smartphones"))))}}))),1===w&&wp.element.createElement(b,{text:o("Single Row")},wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===t}),onClick:function(){return r("equal")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(m,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}))))||2===w&&wp.element.createElement(h,null,wp.element.createElement(b,{text:o("Equal")},wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===t}),onClick:function(){return r("equal")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(m,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(s,{x:"22.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(b,{text:o("1:2")},wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneTwo"===t}),onClick:function(){return r("oneTwo")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(m,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(s,{x:"16.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(b,{text:o("2:1")},wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoOne"===t}),onClick:function(){return r("twoOne")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(m,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(s,{x:"28.9",y:"13",width:"2.2",height:"22"})))),("mobile"==k||"tablet"==k)&&wp.element.createElement(b,{text:o("Collapsed Rows")},wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===t}),onClick:function(){return r("collapsedRows")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(m,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(s,{x:"6",y:"22.9",width:"36",height:"2.2"})))))||3===w&&wp.element.createElement(h,null,wp.element.createElement(b,{text:o("Equal")},wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===t}),onClick:function(){return r("equal")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(m,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(s,{x:"28.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(s,{x:"16.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(b,{text:o("1:1:2")},wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneOneTwo"===t}),onClick:function(){return r("oneOneTwo")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(m,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(s,{x:"22.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(s,{x:"12.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(b,{text:o("2:1:1")},wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoOneOne"===t}),onClick:function(){return r("twoOneOne")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(m,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(s,{x:"22.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(s,{x:"32.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(b,{text:o("1:2:1")},wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneTwoOne"===t}),onClick:function(){return r("oneTwoOne")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(m,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(s,{x:"13.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(s,{x:"31.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(b,{text:o("1:3:1")},wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneThreeOne"===t}),onClick:function(){return r("oneThreeOne")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(m,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(s,{x:"11.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(s,{x:"33.9",y:"13",width:"2.2",height:"22"})))),("mobile"==k||"tablet"==k)&&wp.element.createElement(b,{text:o("Collapsed Rows")},wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===t}),onClick:function(){return r("collapsedRows")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(m,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(s,{x:"6",y:"22.9",width:"36",height:"2.2"})))))||4===w&&wp.element.createElement(h,null,wp.element.createElement(b,{text:o("Equal")},wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===t}),onClick:function(){return r("equal")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(m,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(s,{x:"13.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(s,{x:"32.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(s,{x:"22.9",y:"13",width:"2.2",height:"22"})))),("mobile"==k||"tablet"==k)&&wp.element.createElement(h,null,wp.element.createElement(b,{text:o("Two Column Grid")},wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoColumnGrid"===t}),onClick:function(){return r("twoColumnGrid")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(m,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(s,{x:"4",y:"22.9",width:"40",height:"2.2"}),wp.element.createElement(s,{x:"22.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(b,{text:o("Collapsed Rows")},wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===t}),onClick:function(){return r("collapsedRows")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(m,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(s,{x:"6",y:"22.9",width:"36",height:"2.2"}))))))||5===w&&wp.element.createElement(h,null,wp.element.createElement(b,{text:o("Equal")},wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===t}),onClick:function(){return r("equal")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(m,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(s,{x:"10.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(s,{x:"34.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(s,{x:"26.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(s,{x:"18.9",y:"13",width:"2.2",height:"22"})))),("mobile"==k||"tablet"==k)&&wp.element.createElement(b,{text:o("Collapsed Rows")},wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===t}),onClick:function(){return r("collapsedRows")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(m,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(s,{x:"6",y:"22.9",width:"36",height:"2.2"})))))||6===w&&wp.element.createElement(h,null,wp.element.createElement(b,{text:o("Equal")},wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===t}),onClick:function(){return r("equal")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(m,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(s,{x:"10.4",y:"13",width:"2.2",height:"22"}),wp.element.createElement(s,{x:"35.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(s,{x:"29.4",y:"13",width:"2.2",height:"22"}),wp.element.createElement(s,{x:"16.4",y:"13",width:"2.2",height:"22"}),wp.element.createElement(s,{x:"22.9",y:"13",width:"2.2",height:"22"})))),("mobile"==k||"tablet"==k)&&wp.element.createElement(h,null,wp.element.createElement(b,{text:o("Two Column Grid")},wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoColumnGrid"===t}),onClick:function(){return r("twoColumnGrid")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(m,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(s,{x:"4",y:"18.9",width:"40",height:"2.2"}),wp.element.createElement(s,{x:"22.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(s,{x:"4",y:"26.9",width:"40",height:"2.2"})))),wp.element.createElement(b,{text:o("Three Column Grid")},wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"threeColumnGrid"===t}),onClick:function(){return r("threeColumnGrid")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(m,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(s,{x:"4",y:"22.9",width:"40",height:"2.2"}),wp.element.createElement(s,{x:"28.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(s,{x:"16.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(b,{text:o("Collapsed Rows")},wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===t}),onClick:function(){return r("collapsedRows")}},wp.element.createElement(u,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(m,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(s,{x:"6",y:"22.9",width:"36",height:"2.2"}))))))))}))},function(e,t,n){"use strict";n.r(t);n(71);var a=n(2),l=n(0),o=n.n(l),r=n(103);n(72);function i(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var c=lodash,d=c.startCase,p=c.toLower,m=wp.i18n.__,s=wp.components,u=s.Button,b=s.Dashicon,g=s.Icon,h=s.TextControl,f=s.Tooltip,y=s.SelectControl,w=function(e){var t,n=e.preview,l=e.tab,r=e.blocksCategories,c=e.templateCategories,s=e.selectedCategory,w=e.selectedTemplate,v=e.search,k=e.togglePreview,T=e.changeTab,E=e.close,x=e.importTemplate,C=e.selectCategory,S=e.changeSearch,B=(t=("block"===l?r:c).map((function(e){return{label:d(p(e)),value:e}})),[{label:m("All Categories"),value:"all"}].concat(i(t)));return wp.element.createElement("div",{className:"library-modal-control-panel"},wp.element.createElement("div",{className:"library-modal-header"},wp.element.createElement("div",{className:"library-modal-header-logo"},n?wp.element.createElement(u,{className:"library-modal-header-tabs-button back-to-library","aria-label":m("Back to Library"),onClick:k},wp.element.createElement(b,{icon:"arrow-left-alt"})," ",m("Back to Library")):wp.element.createElement("div",{className:"library-modal-header-tabs-button"},wp.element.createElement(g,{icon:a.l}))),!n&&wp.element.createElement("div",{className:"library-modal-header-tabs"},wp.element.createElement(u,{className:o()("library-modal-header-tabs-button",{"is-selected":"block"===l}),onClick:function(){return T("block")}},wp.element.createElement(b,{icon:"screenoptions"}),m("Blocks")),wp.element.createElement(u,{className:o()("library-modal-header-tabs-button",{"is-selected":"template"===l}),onClick:function(){return T("template")}},wp.element.createElement(b,{icon:"editor-table"}),m("Templates"))),wp.element.createElement("div",{className:"library-modal-header-actions"},n&&wp.element.createElement(u,{className:"library-modal-header-tabs-button insert-button",onClick:function(){return x(w.template_url)},tabindex:"0"},wp.element.createElement(b,{icon:"arrow-down-alt",size:16}),m("Insert")),wp.element.createElement(f,{text:m("Close")},wp.element.createElement(u,{className:"library-modal-header-tabs-button","aria-label":m("Close settings"),onClick:E},wp.element.createElement(b,{icon:"no-alt"}))))),!n&&wp.element.createElement("div",{className:"library-modal-actions"},wp.element.createElement(y,{className:"library-modal-category-control",value:"all"===s?"all":s,onChange:C,options:B}),wp.element.createElement(h,{type:"text",value:v||"",placeholder:m("Search"),className:"library-modal-search-control",onChange:S})))},v=wp.i18n.__,k=wp.components.Notice,T=wp.element.Fragment,E=function(e){var t=e.isError,n=e.removeError,a=e.isMissing,l=e.removeMissing,o=e.missingBlocks;return wp.element.createElement(T,null,!Boolean(themeisleGutenberg.isCompatible)&&wp.element.createElement("div",{className:"library-modal-error"},wp.element.createElement(k,{status:"warning",isDismissible:!1,className:"version-warning",actions:[{label:v("Update Now"),url:themeisleGutenberg.updatePath}]},v("You are using an older version of Otter. Use the latest version of Otter to have maximum compatibility with Template Library."))),t&&wp.element.createElement("div",{className:"library-modal-error"},wp.element.createElement(k,{status:"error",onRemove:n},v("There seems to be an error. Please try again."))),a&&wp.element.createElement("div",{className:"library-modal-error"},wp.element.createElement(k,{status:"warning",className:"library-modal-missing",onRemove:l},v("You seem to be missing some blocks that are required by your selected template."),wp.element.createElement("details",null,wp.element.createElement("summary",null,v("View Missing Blocks")),wp.element.createElement("ul",null,o.map((function(e){return wp.element.createElement("li",null,e)})))))))},x=n(22),C=n.n(x),S=wp.i18n.__,B=wp.components.Button,M=function(e){var t=e.template,n=e.togglePreview,a=e.importTemplate;return wp.element.createElement("div",{"aria-label":t.title||S("Untitled Gutenberg Template"),className:"library-modal-content__item",tabindex:"0"},wp.element.createElement("div",{className:"library-modal-content__preview"},wp.element.createElement(C.a,null,wp.element.createElement("img",{src:t.screenshot_url||"https://raw.githubusercontent.com/Codeinwp/gutenberg-templates/master/assets/images/default.jpg"}))),wp.element.createElement("div",{className:"library-modal-content__footer"},wp.element.createElement("div",{className:"library-modal-content__footer_meta"},t.title&&"template"===t.type&&wp.element.createElement("h4",{className:"library-modal-content__footer_meta_title"},t.title,t.author&&S(" by ")+t.author," "),t.author&&"block"===t.type&&wp.element.createElement("h4",{className:"library-modal-content__footer_meta_author"},S("Author:")," ",t.author)),wp.element.createElement("div",{className:"library-modal-content__footer_actions"},t.demo_url&&wp.element.createElement(B,{isDefault:!0,isLarge:!0,className:"library-modal-overlay__actions",onClick:function(){return n(t)},tabindex:"0"},S("Preview")),wp.element.createElement(B,{isPrimary:!0,isLarge:!0,className:"library-modal-overlay__actions",onClick:function(){return a(t.template_url)},tabindex:"0"},S("Insert")))))},O=wp.i18n.__,R=wp.components.Spinner,N=function(e){var t=e.preview,n=e.isLoaded,a=e.data,l=e.tab,o=e.selectedTemplate,r=e.selectedCategory,i=e.search,c=e.togglePreview,d=e.importTemplate;return t?wp.element.createElement("div",{className:"library-modal-preview"},wp.element.createElement("iframe",{src:o.demo_url})):n?wp.element.createElement("div",{className:"library-modal-content"},a.map((function(e){if(e.template_url&&("all"===r||e.categories&&e.categories.includes(r))&&(!i||e.keywords&&e.keywords.some((function(e){return e.toLowerCase().includes(i.toLowerCase())})))&&l===e.type)return wp.element.createElement(M,{template:e,togglePreview:c,importTemplate:d})})),wp.element.createElement("div",{"aria-label":O("Coming Soon"),className:"library-modal-content__item"},wp.element.createElement("div",{className:"library-modal-content__preview"},wp.element.createElement(C.a,null,wp.element.createElement("img",{src:"https://raw.githubusercontent.com/Codeinwp/gutenberg-templates/master/assets/images/coming-soon.jpg"}))))):wp.element.createElement("div",{className:"library-modal-loader"},wp.element.createElement(R,null))};function L(e){return(L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function z(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function A(e,t,n,a,l,o,r){try{var i=e[o](r),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(a,l)}function H(e){return function(){var t=this,n=arguments;return new Promise((function(a,l){var o=e.apply(t,n);function r(e){A(o,a,l,r,i,"next",e)}function i(e){A(o,a,l,r,i,"throw",e)}r(void 0)}))}}var P=wp.apiFetch,_=wp.components.Modal,I=wp.compose.compose,j=wp.data,F=j.withSelect,G=j.withDispatch,V=wp.element,D=V.useEffect,W=V.useState,q=I(F((function(e,t){var n=t.clientId,a=e("core/block-editor").getBlock,l=e("core/blocks").getBlockTypes;return{block:a(n),availableBlocks:l()}})),G((function(e,t){var n=t.block,a=e("core/block-editor").replaceBlocks;return{importBlocks:function(e){return a(n.clientId,e)}}})))((function(e){var t=e.close,n=e.availableBlocks,a=e.importBlocks;D((function(){(function(){var e=H(regeneratorRuntime.mark((function e(){var t,n,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,P({path:"themeisle-gutenberg-blocks/v1/fetch_templates"});case 2:t=e.sent,n=[],a=[],t.map((function(e){e.categories&&e.template_url&&("block"===e.type&&e.categories.map((function(e){n.push(e)})),"template"===e.type&&e.categories.map((function(e){a.push(e)})))})),n=n.filter((function(e,t,n){return n.indexOf(e)===t})).sort(),a=a.filter((function(e,t,n){return n.indexOf(e)===t})).sort(),M(n),A(a),F(t),m(!0);case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}})()()}),[]);var l=z(W("block"),2),i=l[0],c=l[1],d=z(W(!1),2),p=d[0],m=d[1],s=z(W(!1),2),u=s[0],b=s[1],g=z(W(!1),2),h=g[0],f=g[1],y=z(W("all"),2),v=y[0],k=y[1],T=z(W(""),2),x=T[0],C=T[1],S=z(W([]),2),B=S[0],M=S[1],O=z(W([]),2),R=O[0],A=O[1],I=z(W([]),2),j=I[0],F=I[1],G=z(W(!1),2),V=G[0],q=G[1],Z=z(W(null),2),U=Z[0],Q=Z[1],K=z(W([]),2),J=K[0],Y=K[1],X=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;q(!V),Q(e)},$=function e(t){return Array.isArray(t)?t.map((function(t){return e(t)})):"object"===L(t)&&Object.keys(t).map((function(n){"clientId"===n&&(t[n]=Object(r.a)()),"innerBlocks"===n&&t[n].map((function(t){e(t)}))})),t},ee=function e(t){var a=!1,l=[];return Array.isArray(t)?t.map((function(t){return e(t)})):"object"===L(t)&&Object.keys(t).some((function(o){"name"===o&&(void 0===n.find((function(e){return e.name===t.name}))&&(l.push(t.name),a=!0));"innerBlocks"===o&&t[o].map((function(t){return e(t)}))})),l=l.concat(l).filter((function(e,t,n){return n.indexOf(e)===t})),Y(l),a},te=function(){var e=H(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return q(!1),m(!1),Y([]),e.next=5,P({path:"themeisle-gutenberg-blocks/v1/import_template?url=".concat(t)});case 5:n=e.sent,null!==(n=$(n))?(m(!0),ee(n)?f(!0):a(n)):(m(!0),b(!0));case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return wp.element.createElement(_,{className:o()("wp-block-themeisle-library-modal",{"is-preview":V}),onRequestClose:t,isDismissable:!1,shouldCloseOnClickOutside:!1},wp.element.createElement(w,{preview:V,tab:i,changeTab:function(e){c(e),k("all"),C("")},blocksCategories:B,templateCategories:R,selectedTemplate:U,selectedCategory:v,search:x,togglePreview:X,close:t,importTemplate:te,selectCategory:function(e){return k(e)},changeSearch:function(e){return C(e)}}),wp.element.createElement(E,{isError:u,isMissing:h,missingBlocks:J,removeError:function(){return b(!1)},removeMissing:function(){return f(!1)}}),wp.element.createElement(N,{preview:V,isLoaded:p,data:j,tab:i,selectedTemplate:U,selectedCategory:v,search:x,togglePreview:X,importTemplate:te}))}));function Z(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var U=wp.i18n.__,Q=wp.components,K=Q.Button,J=Q.Dashicon,Y=Q.Icon,X=Q.Path,$=Q.Placeholder,ee=Q.Rect,te=Q.SVG,ne=Q.Tooltip,ae=wp.element.useState;t.default=function(e){var t=e.clientId,n=e.setupColumns,l=Z(ae(!1),2),o=l[0],r=l[1];return wp.element.createElement($,{label:U("Select Layout"),instructions:U("Select a layout to start with, or make one yourself."),icon:wp.element.createElement(Y,{icon:a.f}),isColumnLayout:!0,className:"wp-block-themeisle-onboarding-component"},wp.element.createElement("div",{className:"wp-block-themeisle-layout-picker"},wp.element.createElement(ne,{text:U("Equal")},wp.element.createElement(K,{isLarge:!0,className:"wp-block-themeisle-blocks-advanced-column-layout",onClick:function(){return n(2,"equal")}},wp.element.createElement(te,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(X,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(ee,{x:"22.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(ne,{text:U("1:2")},wp.element.createElement(K,{isLarge:!0,className:"wp-block-themeisle-blocks-advanced-column-layout",onClick:function(){return n(2,"oneTwo")}},wp.element.createElement(te,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(X,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(ee,{x:"16.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(ne,{text:U("2:1")},wp.element.createElement(K,{isLarge:!0,className:"wp-block-themeisle-blocks-advanced-column-layout",onClick:function(){return n(2,"twoOne")}},wp.element.createElement(te,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(X,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(ee,{x:"28.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(ne,{text:U("Equal")},wp.element.createElement(K,{isLarge:!0,className:"wp-block-themeisle-blocks-advanced-column-layout",onClick:function(){return n(3,"equal")}},wp.element.createElement(te,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(X,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(ee,{x:"28.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(ee,{x:"16.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(ne,{text:U("1:1:2")},wp.element.createElement(K,{isLarge:!0,className:"wp-block-themeisle-blocks-advanced-column-layout",onClick:function(){return n(3,"oneOneTwo")}},wp.element.createElement(te,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(X,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(ee,{x:"22.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(ee,{x:"12.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(ne,{text:U("2:1:1")},wp.element.createElement(K,{isLarge:!0,className:"wp-block-themeisle-blocks-advanced-column-layout",onClick:function(){return n(3,"twoOneOne")}},wp.element.createElement(te,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(X,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(ee,{x:"22.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(ee,{x:"32.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(ne,{text:U("Equal")},wp.element.createElement(K,{isLarge:!0,className:"wp-block-themeisle-blocks-advanced-column-layout",onClick:function(){return n(4,"equal")}},wp.element.createElement(te,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(X,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(ee,{x:"13.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(ee,{x:"32.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(ee,{x:"22.9",y:"13",width:"2.2",height:"22"}))))),wp.element.createElement(ne,{text:U("Open Template Library")},wp.element.createElement(K,{isPrimary:!0,isLarge:!0,className:"wp-block-themeisle-template-library",onClick:function(){return r(!0)}},wp.element.createElement(J,{icon:"category"}),U("Template Library")),o&&wp.element.createElement(q,{clientId:t,close:function(){return r(!1)}})),wp.element.createElement("div",{className:"wp-block-themeisle-layout-skipper"},wp.element.createElement(K,{isLink:!0,onClick:function(){return n(1,"equal")}},U("Skip"))))}},function(e,t,n){"use strict";n.r(t);var a=n(0),l=n.n(a),o=n(7),r=wp.components,i=r.Placeholder,c=r.Spinner,d=(0,wp.data.withSelect)((function(e,t){var n=t.id,a=t.alt,l=t.size,o=n?e("core").getMedia(n):void 0,r=o?0<Object.keys(o.media_details.sizes).length&&o.media_details.sizes[l]?o.media_details.sizes[l].source_url:o.source_url:null;return o?{thumbnail:r,alt:o.alt_text||a}:{alt:a}}))((function(e){var t=e.alt,n=e.id,a=e.thumbnail,l=e.link,o=wp.element.createElement(i,{className:"wp-themeisle-block-spinner"},wp.element.createElement(c,null));return a&&(o=wp.element.createElement("img",{src:a,alt:t,"data-id":n})),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-post-image"},wp.element.createElement("a",{href:l},o))})),p=wp.i18n,m=p.__,s=p.sprintf,u=function(e){var t=e.className,n=e.attributes,a=e.posts,r=e.categoriesList,i=e.authors,c=n.titleTag||"h5";return wp.element.createElement("div",{className:l()(t,"is-grid","wp-block-themeisle-blocks-posts-grid-columns-".concat(n.columns),{"has-shadow":n.imageBoxShadow})},a.map((function(e){var t,a;return r&&(t=r.find((function(t){return t.id===e.categories[0]}))),i&&(a=i.find((function(t){return t.id===e.author}))),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-post-blog wp-block-themeisle-blocks-posts-grid-post-plain"},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-post"},0!==e.featured_media&&n.displayFeaturedImage&&wp.element.createElement(d,{id:e.featured_media,link:e.link,alt:e.title.rendered,size:n.imageSize}),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-post-body"},n.template.map((function(l){return"category"===l&&void 0!==t&&n.displayCategory&&r?wp.element.createElement("span",{class:"wp-block-themeisle-blocks-posts-grid-post-category"},t.name):"title"===l&&n.displayTitle?wp.element.createElement(c,{className:"wp-block-themeisle-blocks-posts-grid-post-title"},wp.element.createElement("a",{href:e.link},Object(o.b)(e.title.rendered))):"meta"===l&&n.displayMeta&&(n.displayDate||n.displayAuthor)?wp.element.createElement("p",{className:"wp-block-themeisle-blocks-posts-grid-post-meta"},n.displayDate&&s(m("on %s"),Object(o.a)(e.date)),n.displayAuthor&&void 0!==a&&i&&s(m(" by %s"),a.name)):"description"===l&&0<n.excerptLength&&n.displayDescription?wp.element.createElement("p",{className:"wp-block-themeisle-blocks-posts-grid-post-description"},Object(o.b)(e.excerpt.rendered).substring(0,n.excerptLength)+"…"):void 0})))))})))},b=wp.i18n,g=b.__,h=b.sprintf,f=function(e){var t=e.className,n=e.attributes,a=e.posts,r=e.categoriesList,i=e.authors,c=n.titleTag||"h5";return wp.element.createElement("div",{className:l()(t,"is-list",{"has-shadow":n.imageBoxShadow})},a.map((function(e){var t,a;return r&&(t=r.find((function(t){return t.id===e.categories[0]}))),i&&(a=i.find((function(t){return t.id===e.author}))),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-post-blog wp-block-themeisle-blocks-posts-grid-post-plain"},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-post"},0!==e.featured_media&&n.displayFeaturedImage&&wp.element.createElement(d,{id:e.featured_media,link:e.link,alt:e.title.rendered,size:n.imageSize}),wp.element.createElement("div",{className:l()("wp-block-themeisle-blocks-posts-grid-post-body",{"is-full":!n.displayFeaturedImage})},n.template.map((function(l){return"category"===l&&void 0!==t&&n.displayCategory&&r?wp.element.createElement("span",{class:"wp-block-themeisle-blocks-posts-grid-post-category"},t.name):"title"===l&&n.displayTitle?wp.element.createElement(c,{className:"wp-block-themeisle-blocks-posts-grid-post-title"},wp.element.createElement("a",{href:e.link},Object(o.b)(e.title.rendered))):"meta"===l&&n.displayMeta&&(n.displayDate||n.displayAuthor)?wp.element.createElement("p",{className:"wp-block-themeisle-blocks-posts-grid-post-meta"},n.displayDate&&h(g("on %s"),Object(o.a)(e.date)),n.displayAuthor&&void 0!==a&&i&&h(g(" by %s"),a.name)):"description"===l&&0<n.excerptLength&&n.displayDescription?wp.element.createElement("p",{className:"wp-block-themeisle-blocks-posts-grid-post-description"},Object(o.b)(e.excerpt.rendered).substring(0,n.excerptLength)+"…"):void 0})))))})))};t.default=function(e){var t=e.className,n=e.attributes,a=e.posts,l=e.categoriesList,o=e.authors;return"grid"===n.style?wp.element.createElement(u,{className:t,attributes:n,posts:a,categoriesList:l,authors:o}):"list"===n.style?wp.element.createElement(f,{className:t,attributes:n,posts:a,categoriesList:l,authors:o}):void 0}},,,function(e,t,n){"use strict";n.r(t);var a,l=n(2);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var r=(o(a={id:{type:"string"},columns:{type:"number"},layout:{type:"string"},layoutTablet:{type:"string",default:"equal"},layoutMobile:{type:"string",default:"equal"},columnsGap:{type:"string",default:"default"},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:20},paddingTablet:{type:"number"},paddingMobile:{type:"number"},paddingTop:{type:"number",default:20},paddingTopTablet:{type:"number"},paddingTopMobile:{type:"number"},paddingRight:{type:"number",default:20},paddingRightTablet:{type:"number"},paddingRightMobile:{type:"number"},paddingBottom:{type:"number",default:20},paddingBottomTablet:{type:"number"},paddingBottomMobile:{type:"number"},paddingLeft:{type:"number",default:20},paddingLeftTablet:{type:"number"},paddingLeftMobile:{type:"number"},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:20},marginTablet:{type:"number"},marginMobile:{type:"number"},marginTop:{type:"number",default:20},marginTopTablet:{type:"number"},marginTopMobile:{type:"number"},marginBottom:{type:"number",default:20},marginBottomTablet:{type:"number"},marginBottomMobile:{type:"number"},columnsWidth:{type:"number"},horizontalAlign:{type:"string",default:"unset"},columnsHeight:{type:"string",default:"auto"},columnsHeightCustom:{type:"number"},columnsHeightCustomTablet:{type:"number"},columnsHeightCustomMobile:{type:"number"},verticalAlign:{type:"string",default:"unset"},backgroundType:{type:"string",default:"color"},backgroundColor:{type:"string"},backgroundImageID:{type:"number"},backgroundImageURL:{type:"string"},backgroundAttachment:{type:"string",default:"scroll"},backgroundPosition:{type:"string",default:"top left"},backgroundRepeat:{type:"string",default:"repeat"},backgroundSize:{type:"string",default:"auto"},backgroundGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundGradientFirstLocation:{type:"number",default:0},backgroundGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundGradientSecondLocation:{type:"number",default:100},backgroundGradientType:{type:"string",default:"linear"},backgroundGradientAngle:{type:"number",default:90},backgroundGradientPosition:{type:"string",default:"center center"},backgroundOverlayOpacity:{type:"number",default:50},backgroundOverlayType:{type:"string",default:"color"},backgroundOverlayColor:{type:"string"},backgroundOverlayImageID:{type:"number"},backgroundOverlayImageURL:{type:"string"},backgroundOverlayAttachment:{type:"string",default:"scroll"},backgroundOverlayPosition:{type:"string",default:"top left"},backgroundOverlayRepeat:{type:"string",default:"repeat"},backgroundOverlaySize:{type:"string",default:"auto"},backgroundOverlayGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundOverlayGradientFirstLocation:{type:"number",default:0},backgroundOverlayGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundOverlayGradientSecondLocation:{type:"number",default:100},backgroundOverlayGradientType:{type:"string",default:"linear"},backgroundOverlayGradientAngle:{type:"number",default:90},backgroundOverlayGradientPosition:{type:"string",default:"center center"},backgroundOverlayFilterBlur:{type:"number",default:0},backgroundOverlayFilterBrightness:{type:"number",default:10},backgroundOverlayFilterContrast:{type:"number",default:10},backgroundOverlayFilterGrayscale:{type:"number",default:0},backgroundOverlayFilterHue:{type:"number",default:0},backgroundOverlayFilterSaturate:{type:"number",default:10},backgroundOverlayBlend:{type:"string",default:"normal"},borderType:{type:"string",default:"linked"},border:{type:"number",default:0},borderTop:{type:"number",default:0},borderRight:{type:"number",default:0},borderBottom:{type:"number",default:0},borderLeft:{type:"number",default:0},borderColor:{type:"string",default:"#000000"},borderRadiusType:{type:"string",default:"linked"},borderRadius:{type:"number",default:0},borderRadiusTop:{type:"number",default:0},borderRadiusRight:{type:"number",default:0},borderRadiusBottom:{type:"number",default:0},borderRadiusLeft:{type:"number",default:0},boxShadow:{type:"boolean",default:!1},boxShadowColor:{type:"string",default:"#000000"},boxShadowColorOpacity:{type:"number",default:50},boxShadowBlur:{type:"number",default:5},boxShadowSpread:{type:"number",default:0},boxShadowHorizontal:{type:"number",default:0},boxShadowVertical:{type:"number",default:0},dividerTopType:{type:"string",default:"none"},dividerTopColor:{type:"string",default:"#000000"},dividerTopWidth:{type:"number",default:100},dividerTopWidthTablet:{type:"number",default:100},dividerTopWidthMobile:{type:"number",default:100},dividerTopHeight:{type:"number",default:100},dividerTopHeightTablet:{type:"number",default:100},dividerTopHeightMobile:{type:"number",default:100},dividerTopInvert:{type:"boolean",default:!1},dividerBottomType:{type:"string",default:"none"},dividerBottomColor:{type:"string",default:"#000000"},dividerBottomWidth:{type:"number",default:100},dividerBottomWidthTablet:{type:"number",default:100},dividerBottomWidthMobile:{type:"number",default:100},dividerBottomHeight:{type:"number",default:100},dividerBottomHeightTablet:{type:"number",default:100},dividerBottomHeightMobile:{type:"number",default:100},dividerBottomInvert:{type:"boolean",default:!1},hide:{type:"boolean",default:!1},hideTablet:{type:"boolean",default:!1},hideMobile:{type:"boolean",default:!1},reverseColumnsTablet:{type:"boolean",default:!1}},"reverseColumnsTablet",{type:"boolean",default:!1}),o(a,"columnsHTMLTag",{type:"string",default:"div"}),a),i=n(0),c=n.n(i),d=n(6),p=n.n(d);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=wp.blockEditor.InnerBlocks,g=wp.components,h=g.SVG,f=g.Path,y=function(e){var t=e.type,n=e.front,a=e.style,l=e.fill,o=e.invert,r=e.width,i=e.height;return"none"!==a&&wp.element.createElement("div",{className:c()("wp-block-themeisle-blocks-advanced-columns-separators",t),style:!n&&r?{transform:"".concat(r?"scaleX( ".concat(r/100," )"):"")}:{}},"bigTriangle"===a&&!1===o&&wp.element.createElement(h,{id:"bigTriangle",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"bottom"===t?{transform:"".concat("bottom"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(f,{d:"M0 0 L50 100 L100 0 Z"})),"bigTriangle"===a&&!0===o&&wp.element.createElement(h,{id:"bigTriangle",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"".concat("top"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(f,{d:"M100, 0l-50, 100l-50, -100l0, 100l100, 0l0, -100Z"})),"rightCurve"===a&&!1===o&&wp.element.createElement(h,{id:"rightCurve",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"".concat("top"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(f,{d:"M0 100 C 20 0 50 0 100 100 Z"})),"rightCurve"===a&&!0===o&&wp.element.createElement(h,{id:"rightCurve",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"".concat("top"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(f,{d:"M0 100 C 50 0 70 0 100 100 Z"})),"curve"===a&&wp.element.createElement(h,{id:"curve",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"".concat("top"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(f,{d:"M0 100 C40 0 60 0 100 100 Z"})),"slant"===a&&!1===o&&wp.element.createElement(h,{id:"slant",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"bottom"===t?{transform:"".concat("bottom"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(f,{d:"M0 0 L100 100 L100 0 Z"})),"slant"===a&&!0===o&&wp.element.createElement(h,{id:"slant",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"bottom"===t?{transform:"".concat("bottom"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(f,{d:"M0 0 L0 100 L100 0 Z"})),"cloud"===a&&wp.element.createElement(h,{id:"cloud",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"".concat("top"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(f,{d:"M-5 100 Q 10 -100 15 100 Z M10 100 Q 20 -20 30 100 M25 100 Q 35 -70 45 100 M40 100 Q 50 -100 60 100 M55 100 Q 65 -20 75 100 M70 100 Q 75 -45 90 100 M85 100 Q 90 -50 95 100 M90 100 Q 95 -25 105 100 Z"})))},w=[{attributes:{align:{type:"string"},id:{type:"string"},columns:{type:"number"},layout:{type:"string"},layoutTablet:{type:"string",default:"equal"},layoutMobile:{type:"string",default:"equal"},columnsGap:{type:"string",default:"default"},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:20},paddingTablet:{type:"number",default:20},paddingMobile:{type:"number",default:20},paddingTop:{type:"number",default:20},paddingTopTablet:{type:"number",default:20},paddingTopMobile:{type:"number",default:20},paddingRight:{type:"number",default:20},paddingRightTablet:{type:"number",default:20},paddingRightMobile:{type:"number",default:20},paddingBottom:{type:"number",default:20},paddingBottomTablet:{type:"number",default:20},paddingBottomMobile:{type:"number",default:20},paddingLeft:{type:"number",default:20},paddingLeftTablet:{type:"number",default:20},paddingLeftMobile:{type:"number",default:20},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:20},marginTablet:{type:"number",default:20},marginMobile:{type:"number",default:20},marginTop:{type:"number",default:20},marginTopTablet:{type:"number",default:20},marginTopMobile:{type:"number",default:20},marginBottom:{type:"number",default:20},marginBottomTablet:{type:"number",default:20},marginBottomMobile:{type:"number",default:20},columnsWidth:{type:"number"},columnsHeight:{type:"string",default:"auto"},columnsHeightCustom:{type:"number"},columnsHeightCustomTablet:{type:"number"},columnsHeightCustomMobile:{type:"number"},horizontalAlign:{type:"string",default:"unset"},verticalAlign:{type:"string",default:"unset"},backgroundType:{type:"string",default:"color"},backgroundColor:{type:"string"},backgroundImageID:{type:"number"},backgroundImageURL:{type:"string"},backgroundAttachment:{type:"string",default:"scroll"},backgroundPosition:{type:"string",default:"top left"},backgroundRepeat:{type:"string",default:"repeat"},backgroundSize:{type:"string",default:"auto"},backgroundGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundGradientFirstLocation:{type:"number",default:0},backgroundGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundGradientSecondLocation:{type:"number",default:100},backgroundGradientType:{type:"string",default:"linear"},backgroundGradientAngle:{type:"number",default:90},backgroundGradientPosition:{type:"string",default:"center center"},backgroundOverlayOpacity:{type:"number",default:50},backgroundOverlayType:{type:"string",default:"color"},backgroundOverlayColor:{type:"string"},backgroundOverlayImageID:{type:"number"},backgroundOverlayImageURL:{type:"string"},backgroundOverlayAttachment:{type:"string",default:"scroll"},backgroundOverlayPosition:{type:"string",default:"top left"},backgroundOverlayRepeat:{type:"string",default:"repeat"},backgroundOverlaySize:{type:"string",default:"auto"},backgroundOverlayGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundOverlayGradientFirstLocation:{type:"number",default:0},backgroundOverlayGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundOverlayGradientSecondLocation:{type:"number",default:100},backgroundOverlayGradientType:{type:"string",default:"linear"},backgroundOverlayGradientAngle:{type:"number",default:90},backgroundOverlayGradientPosition:{type:"string",default:"center center"},backgroundOverlayFilterBlur:{type:"number",default:0},backgroundOverlayFilterBrightness:{type:"number",default:10},backgroundOverlayFilterContrast:{type:"number",default:10},backgroundOverlayFilterGrayscale:{type:"number",default:0},backgroundOverlayFilterHue:{type:"number",default:0},backgroundOverlayFilterSaturate:{type:"number",default:10},backgroundOverlayBlend:{type:"string",default:"normal"},borderType:{type:"string",default:"linked"},border:{type:"number",default:0},borderTop:{type:"number",default:0},borderRight:{type:"number",default:0},borderBottom:{type:"number",default:0},borderLeft:{type:"number",default:0},borderColor:{type:"string",default:"#000000"},borderRadiusType:{type:"string",default:"linked"},borderRadius:{type:"number",default:0},borderRadiusTop:{type:"number",default:0},borderRadiusRight:{type:"number",default:0},borderRadiusBottom:{type:"number",default:0},borderRadiusLeft:{type:"number",default:0},boxShadow:{type:"boolean",default:!1},boxShadowColor:{type:"string",default:"#000000"},boxShadowColorOpacity:{type:"number",default:50},boxShadowBlur:{type:"number",default:5},boxShadowSpread:{type:"number",default:0},boxShadowHorizontal:{type:"number",default:0},boxShadowVertical:{type:"number",default:0},dividerTopType:{type:"string",default:"none"},dividerTopColor:{type:"string",default:"#000000"},dividerTopWidth:{type:"number",default:100},dividerTopWidthTablet:{type:"number",default:100},dividerTopWidthMobile:{type:"number",default:100},dividerTopHeight:{type:"number",default:100},dividerTopHeightTablet:{type:"number",default:100},dividerTopHeightMobile:{type:"number",default:100},dividerTopInvert:{type:"boolean",default:!1},dividerBottomType:{type:"string",default:"none"},dividerBottomColor:{type:"string",default:"#000000"},dividerBottomWidth:{type:"number",default:100},dividerBottomWidthTablet:{type:"number",default:100},dividerBottomWidthMobile:{type:"number",default:100},dividerBottomHeight:{type:"number",default:100},dividerBottomHeightTablet:{type:"number",default:100},dividerBottomHeightMobile:{type:"number",default:100},dividerBottomInvert:{type:"boolean",default:!1},hide:{type:"boolean",default:!1},hideTablet:{type:"boolean",default:!1},hideMobile:{type:"boolean",default:!1},columnsHTMLTag:{type:"string",default:"div"}},supports:{align:["wide","full"],html:!1},save:function(e){var t,n,a,l,o,r,i=e.attributes,d=i.id,m=i.columns,u=i.layout,g=i.layoutTablet,h=i.layoutMobile,f=i.columnsGap,w=i.columnsWidth,v=i.horizontalAlign,k=i.verticalAlign,T=i.backgroundType,E=i.backgroundColor,x=i.backgroundImageURL,C=i.backgroundAttachment,S=i.backgroundPosition,B=i.backgroundRepeat,M=i.backgroundSize,O=i.backgroundGradientFirstColor,R=i.backgroundGradientFirstLocation,N=i.backgroundGradientSecondColor,L=i.backgroundGradientSecondLocation,z=i.backgroundGradientType,A=i.backgroundGradientAngle,H=i.backgroundGradientPosition,P=i.backgroundOverlayOpacity,_=i.backgroundOverlayType,I=i.backgroundOverlayColor,j=i.backgroundOverlayImageURL,F=i.backgroundOverlayAttachment,G=i.backgroundOverlayPosition,V=i.backgroundOverlayRepeat,D=i.backgroundOverlaySize,W=i.backgroundOverlayGradientFirstColor,q=i.backgroundOverlayGradientFirstLocation,Z=i.backgroundOverlayGradientSecondColor,U=i.backgroundOverlayGradientSecondLocation,Q=i.backgroundOverlayGradientType,K=i.backgroundOverlayGradientAngle,J=i.backgroundOverlayGradientPosition,Y=i.backgroundOverlayFilterBlur,X=i.backgroundOverlayFilterBrightness,$=i.backgroundOverlayFilterContrast,ee=i.backgroundOverlayFilterGrayscale,te=i.backgroundOverlayFilterHue,ne=i.backgroundOverlayFilterSaturate,ae=i.backgroundOverlayBlend,le=i.borderType,oe=i.border,re=i.borderTop,ie=i.borderRight,ce=i.borderBottom,de=i.borderLeft,pe=i.borderColor,me=i.borderRadiusType,se=i.borderRadius,ue=i.borderRadiusTop,be=i.borderRadiusRight,ge=i.borderRadiusBottom,he=i.borderRadiusLeft,fe=i.boxShadow,ye=i.boxShadowColor,we=i.boxShadowColorOpacity,ve=i.boxShadowBlur,ke=i.boxShadowSpread,Te=i.boxShadowHorizontal,Ee=i.boxShadowVertical,xe=i.dividerTopType,Ce=i.dividerTopColor,Se=i.dividerTopInvert,Be=i.dividerBottomType,Me=i.dividerBottomColor,Oe=i.dividerBottomInvert,Re=i.hide,Ne=i.hideTablet,Le=i.hideMobile,ze=i.columnsHTMLTag;("color"===T&&(t={background:E}),"image"===T&&(t={backgroundImage:"url( '".concat(x,"' )"),backgroundAttachment:C,backgroundPosition:S,backgroundRepeat:B,backgroundSize:M}),"gradient"===T)&&(r="linear"===z?"".concat(A,"deg"):"at ".concat(H),t={background:"".concat(z,"-gradient( ").concat(r,", ").concat(O||"rgba( 0, 0, 0, 0 )"," ").concat(R,"%, ").concat(N||"rgba( 0, 0, 0, 0 )"," ").concat(L,"% )")});"linked"===le&&(a={borderWidth:"".concat(oe,"px"),borderStyle:"solid",borderColor:pe}),"unlinked"===le&&(a={borderTopWidth:"".concat(re,"px"),borderRightWidth:"".concat(ie,"px"),borderBottomWidth:"".concat(ce,"px"),borderLeftWidth:"".concat(de,"px"),borderStyle:"solid",borderColor:pe}),"linked"===me&&(l={borderRadius:"".concat(se,"px")}),"unlinked"===me&&(l={borderTopLeftRadius:"".concat(ue,"px"),borderTopRightRadius:"".concat(be,"px"),borderBottomRightRadius:"".concat(ge,"px"),borderBottomLeftRadius:"".concat(he,"px")}),!0===fe&&(o={boxShadow:"".concat(Te,"px ").concat(Ee,"px ").concat(ve,"px ").concat(ke,"px ").concat(p()(ye||"#000000",we))});var Ae,He=s({},t,{},a,{},l,{},o,{justifyContent:v});("color"===_&&(n={background:I,opacity:P/100}),"image"===_&&(n={backgroundImage:"url( '".concat(j,"' )"),backgroundAttachment:F,backgroundPosition:G,backgroundRepeat:V,backgroundSize:D,opacity:P/100}),"gradient"===_)&&(Ae="linear"===Q?"".concat(K,"deg"):"at ".concat(J),n={background:"".concat(Q,"-gradient( ").concat(Ae,", ").concat(W||"rgba( 0, 0, 0, 0 )"," ").concat(q,"%, ").concat(Z||"rgba( 0, 0, 0, 0 )"," ").concat(U,"% )"),opacity:P/100});var Pe=s({},n,{mixBlendMode:ae,filter:"blur( ".concat(Y/10,"px ) brightness( ").concat(X/10," ) contrast( ").concat(#x2F;10," ) grayscale( ").concat(ee/100," ) hue-rotate( ").concat(te,"deg ) saturate( ").concat(ne/10," )")}),_e={};w&&(_e={maxWidth:w+"px"});var Ie=Re?"":"has-desktop-".concat(u,"-layout"),je=Ne?"":"has-tablet-".concat(g,"-layout"),Fe=Le?"":"has-mobile-".concat(h,"-layout"),Ge=c()(e.className,"has-".concat(m,"-columns"),Ie,je,Fe,{"hide-in-desktop":Re},{"hide-in-tablet":Ne},{"hide-in-mobile":Le},"has-".concat(f,"-gap"),"has-vertical-".concat(k));return wp.element.createElement(ze,{className:Ge,id:d,style:He},wp.element.createElement("div",{className:"wp-themeisle-block-overlay",style:Pe}),wp.element.createElement(y,{type:"top",front:!0,style:xe,fill:Ce,invert:Se}),wp.element.createElement("div",{className:"innerblocks-wrap",style:_e},wp.element.createElement(b.Content,null)),wp.element.createElement(y,{type:"bottom",front:!0,style:Be,fill:Me,invert:Oe}))}},{attributes:{id:{type:"string"},columns:{type:"number"},layout:{type:"string"},layoutTablet:{type:"string",default:"equal"},layoutMobile:{type:"string",default:"equal"},columnsGap:{type:"string",default:"default"},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:20},paddingTablet:{type:"number",default:20},paddingMobile:{type:"number",default:20},paddingTop:{type:"number",default:20},paddingTopTablet:{type:"number",default:20},paddingTopMobile:{type:"number",default:20},paddingRight:{type:"number",default:20},paddingRightTablet:{type:"number",default:20},paddingRightMobile:{type:"number",default:20},paddingBottom:{type:"number",default:20},paddingBottomTablet:{type:"number",default:20},paddingBottomMobile:{type:"number",default:20},paddingLeft:{type:"number",default:20},paddingLeftTablet:{type:"number",default:20},paddingLeftMobile:{type:"number",default:20},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:20},marginTablet:{type:"number",default:20},marginMobile:{type:"number",default:20},marginTop:{type:"number",default:20},marginTopTablet:{type:"number",default:20},marginTopMobile:{type:"number",default:20},marginBottom:{type:"number",default:20},marginBottomTablet:{type:"number",default:20},marginBottomMobile:{type:"number",default:20},columnsWidth:{type:"number"},horizontalAlign:{type:"string",default:"unset"},columnsHeight:{type:"string",default:"auto"},columnsHeightCustom:{type:"number"},columnsHeightCustomTablet:{type:"number"},columnsHeightCustomMobile:{type:"number"},verticalAlign:{type:"string",default:"unset"},backgroundType:{type:"string",default:"color"},backgroundColor:{type:"string"},backgroundImageID:{type:"number"},backgroundImageURL:{type:"string"},backgroundAttachment:{type:"string",default:"scroll"},backgroundPosition:{type:"string",default:"top left"},backgroundRepeat:{type:"string",default:"repeat"},backgroundSize:{type:"string",default:"auto"},backgroundGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundGradientFirstLocation:{type:"number",default:0},backgroundGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundGradientSecondLocation:{type:"number",default:100},backgroundGradientType:{type:"string",default:"linear"},backgroundGradientAngle:{type:"number",default:90},backgroundGradientPosition:{type:"string",default:"center center"},backgroundOverlayOpacity:{type:"number",default:50},backgroundOverlayType:{type:"string",default:"color"},backgroundOverlayColor:{type:"string"},backgroundOverlayImageID:{type:"number"},backgroundOverlayImageURL:{type:"string"},backgroundOverlayAttachment:{type:"string",default:"scroll"},backgroundOverlayPosition:{type:"string",default:"top left"},backgroundOverlayRepeat:{type:"string",default:"repeat"},backgroundOverlaySize:{type:"string",default:"auto"},backgroundOverlayGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundOverlayGradientFirstLocation:{type:"number",default:0},backgroundOverlayGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundOverlayGradientSecondLocation:{type:"number",default:100},backgroundOverlayGradientType:{type:"string",default:"linear"},backgroundOverlayGradientAngle:{type:"number",default:90},backgroundOverlayGradientPosition:{type:"string",default:"center center"},backgroundOverlayFilterBlur:{type:"number",default:0},backgroundOverlayFilterBrightness:{type:"number",default:10},backgroundOverlayFilterContrast:{type:"number",default:10},backgroundOverlayFilterGrayscale:{type:"number",default:0},backgroundOverlayFilterHue:{type:"number",default:0},backgroundOverlayFilterSaturate:{type:"number",default:10},backgroundOverlayBlend:{type:"string",default:"normal"},borderType:{type:"string",default:"linked"},border:{type:"number",default:0},borderTop:{type:"number",default:0},borderRight:{type:"number",default:0},borderBottom:{type:"number",default:0},borderLeft:{type:"number",default:0},borderColor:{type:"string",default:"#000000"},borderRadiusType:{type:"string",default:"linked"},borderRadius:{type:"number",default:0},borderRadiusTop:{type:"number",default:0},borderRadiusRight:{type:"number",default:0},borderRadiusBottom:{type:"number",default:0},borderRadiusLeft:{type:"number",default:0},boxShadow:{type:"boolean",default:!1},boxShadowColor:{type:"string",default:"#000000"},boxShadowColorOpacity:{type:"number",default:50},boxShadowBlur:{type:"number",default:5},boxShadowSpread:{type:"number",default:0},boxShadowHorizontal:{type:"number",default:0},boxShadowVertical:{type:"number",default:0},dividerTopType:{type:"string",default:"none"},dividerTopColor:{type:"string",default:"#000000"},dividerTopWidth:{type:"number",default:100},dividerTopWidthTablet:{type:"number",default:100},dividerTopWidthMobile:{type:"number",default:100},dividerTopHeight:{type:"number",default:100},dividerTopHeightTablet:{type:"number",default:100},dividerTopHeightMobile:{type:"number",default:100},dividerTopInvert:{type:"boolean",default:!1},dividerBottomType:{type:"string",default:"none"},dividerBottomColor:{type:"string",default:"#000000"},dividerBottomWidth:{type:"number",default:100},dividerBottomWidthTablet:{type:"number",default:100},dividerBottomWidthMobile:{type:"number",default:100},dividerBottomHeight:{type:"number",default:100},dividerBottomHeightTablet:{type:"number",default:100},dividerBottomHeightMobile:{type:"number",default:100},dividerBottomInvert:{type:"boolean",default:!1},hide:{type:"boolean",default:!1},hideTablet:{type:"boolean",default:!1},hideMobile:{type:"boolean",default:!1},columnsHTMLTag:{type:"string",default:"div"}},supports:{align:["wide","full"],html:!1},save:function(e){var t,n,a,l,o,r,i=e.attributes,d=e.className,m=i.columnsHTMLTag;("color"===i.backgroundType&&(t={background:i.backgroundColor}),"image"===i.backgroundType&&(t={backgroundImage:"url( '".concat(i.backgroundImageURL,"' )"),backgroundAttachment:i.backgroundAttachment,backgroundPosition:i.backgroundPosition,backgroundRepeat:i.backgroundRepeat,backgroundSize:i.backgroundSize}),"gradient"===i.backgroundType)&&(r="linear"===i.backgroundGradientType?"".concat(i.backgroundGradientAngle,"deg"):"at ".concat(i.backgroundGradientPosition),t={background:"".concat(i.backgroundGradientType,"-gradient( ").concat(r,", ").concat(i.backgroundGradientFirstColor||"rgba( 0, 0, 0, 0 )"," ").concat(i.backgroundGradientFirstLocation,"%, ").concat(i.backgroundGradientSecondColor||"rgba( 0, 0, 0, 0 )"," ").concat(i.backgroundGradientSecondLocation,"% )")});"linked"===i.borderType&&(a={borderWidth:"".concat(i.border,"px"),borderStyle:"solid",borderColor:i.borderColor}),"unlinked"===i.borderType&&(a={borderTopWidth:"".concat(i.borderTop,"px"),borderRightWidth:"".concat(i.borderRight,"px"),borderBottomWidth:"".concat(i.borderBottom,"px"),borderLeftWidth:"".concat(i.borderLeft,"px"),borderStyle:"solid",borderColor:i.borderColor}),"linked"===i.borderRadiusType&&(l={borderRadius:"".concat(i.borderRadius,"px")}),"unlinked"===i.borderRadiusType&&(l={borderTopLeftRadius:"".concat(i.borderRadiusTop,"px"),borderTopRightRadius:"".concat(i.borderRadiusRight,"px"),borderBottomRightRadius:"".concat(i.borderRadiusBottom,"px"),borderBottomLeftRadius:"".concat(i.borderRadiusLeft,"px")}),!0===i.boxShadow&&(o={boxShadow:"".concat(i.boxShadowHorizontal,"px ").concat(i.boxShadowVertical,"px ").concat(i.boxShadowBlur,"px ").concat(i.boxShadowSpread,"px ").concat(p()(i.boxShadowColor?i.boxShadowColor:"#000000",i.boxShadowColorOpacity))});var u,g=s({},t,{},a,{},l,{},o,{justifyContent:i.horizontalAlign});("color"===i.backgroundOverlayType&&(n={background:i.backgroundOverlayColor,opacity:i.backgroundOverlayOpacity/100}),"image"===i.backgroundOverlayType&&(n={backgroundImage:"url( '".concat(i.backgroundOverlayImageURL,"' )"),backgroundAttachment:i.backgroundOverlayAttachment,backgroundPosition:i.backgroundOverlayPosition,backgroundRepeat:i.backgroundOverlayRepeat,backgroundSize:i.backgroundOverlaySize,opacity:i.backgroundOverlayOpacity/100}),"gradient"===i.backgroundOverlayType)&&(u="linear"===i.backgroundOverlayGradientType?"".concat(i.backgroundOverlayGradientAngle,"deg"):"at ".concat(i.backgroundOverlayGradientPosition),n={background:"".concat(i.backgroundOverlayGradientType,"-gradient( ").concat(u,", ").concat(i.backgroundOverlayGradientFirstColor||"rgba( 0, 0, 0, 0 )"," ").concat(i.backgroundOverlayGradientFirstLocation,"%, ").concat(i.backgroundOverlayGradientSecondColor||"rgba( 0, 0, 0, 0 )"," ").concat(i.backgroundOverlayGradientSecondLocation,"% )"),opacity:i.backgroundOverlayOpacity/100});var h=s({},n,{mixBlendMode:i.backgroundOverlayBlend}),f={};i.columnsWidth&&(f={maxWidth:i.columnsWidth+"px"});var w=i.hide?"":"has-desktop-".concat(i.layout,"-layout"),v=i.hideTablet?"":"has-tablet-".concat(i.layoutTablet,"-layout"),k=i.hideMobile?"":"has-mobile-".concat(i.layoutMobile,"-layout"),T=c()(d,"has-".concat(i.columns,"-columns"),w,v,k,{"hide-in-desktop":i.hide},{"hide-in-tablet":i.hideTablet},{"hide-in-mobile":i.hideMobile},"has-".concat(i.columnsGap,"-gap"),"has-vertical-".concat(i.verticalAlign));return wp.element.createElement(m,{className:T,id:i.id,style:g},wp.element.createElement("div",{className:"wp-themeisle-block-overlay",style:h}),wp.element.createElement(y,{type:"top",front:!0,style:i.dividerTopType,fill:i.dividerTopColor,invert:i.dividerTopInvert}),wp.element.createElement("div",{className:"innerblocks-wrap",style:f},wp.element.createElement(b.Content,null)),wp.element.createElement(y,{type:"bottom",front:!0,style:i.dividerBottomType,fill:i.dividerBottomColor,invert:i.dividerBottomInvert}))}}],v=n(5),k=n(16),T=n(24),E=n(3),x=n(4),C=n(14),S=n(17),B=n(8),M=n(19);function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var N=wp.i18n.__,L=wp.components,z=L.BaseControl,A=L.Button,H=L.ButtonGroup,P=L.Dashicon,_=L.Icon,I=L.IconButton,j=L.PanelBody,F=L.Tooltip,G=L.ToggleControl,V=L.RangeControl,D=L.SelectControl,W=wp.blockEditor,q=W.ColorPalette,Z=W.InspectorControls,U=W.MediaPlaceholder,Q=wp.element,K=Q.Fragment,J=Q.useState,Y=function(e){var t=e.attributes,n=e.setAttributes,a=e.updateColumnsWidth,o=e.dividerViewType,r=e.setDividerViewType,i=R(J("layout"),2),d=i[0],p=i[1],m=R(J("desktop"),2),s=m[0],u=m[1],b=R(J("desktop"),2),g=b[0],h=b[1],f=R(J("desktop"),2),y=f[0],w=f[1],v=R(J("desktop"),2),k=v[0],L=v[1],W=R(J("desktop"),2),Q=W[0],Y=W[1],X=R(J("desktop"),2),$=X[0],ee=X[1],te=function(){var e;return"desktop"===g&&(e=t.paddingType),"tablet"===g&&(e=t.paddingTypeTablet),"mobile"===g&&(e=t.paddingTypeMobile),e};te=te();var ne={top:"paddingTop",right:"paddingRight",bottom:"paddingBottom",left:"paddingLeft"},ae={top:"paddingTopTablet",right:"paddingRightTablet",bottom:"paddingBottomTablet",left:"paddingLeftTablet"},le={top:"paddingTopMobile",right:"paddingRightMobile",bottom:"paddingBottomMobile",left:"paddingLeftMobile"},oe=function(e){var n;return"top"==e&&("desktop"===g&&(n="linked"===t.paddingType?t.padding:t.paddingTop),"tablet"===g&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingTopTablet),"mobile"===g&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingTopMobile)),"right"==e&&("desktop"===g&&(n="linked"===t.paddingType?t.padding:t.paddingRight),"tablet"===g&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingRightTablet),"mobile"===g&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingRightMobile)),"bottom"==e&&("desktop"===g&&(n="linked"===t.paddingType?t.padding:t.paddingBottom),"tablet"===g&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingBottomTablet),"mobile"===g&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingBottomMobile)),"left"==e&&("desktop"===g&&(n="linked"===t.paddingType?t.padding:t.paddingLeft),"tablet"===g&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingLeftTablet),"mobile"===g&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingLeftMobile)),n},re=function(){var e;return"desktop"===y&&(e=t.marginType),"tablet"===y&&(e=t.marginTypeTablet),"mobile"===y&&(e=t.marginTypeMobile),e};re=re();var ie={top:"marginTop",bottom:"marginBottom"},ce={top:"marginTopTablet",bottom:"marginBottomTablet"},de={top:"marginTopMobile",bottom:"marginBottomMobile"},pe=function(e){var n;return"top"==e&&("desktop"===y&&(n="linked"===t.marginType?t.margin:t.marginTop),"tablet"===y&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginTopTablet),"mobile"===y&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginTopMobile)),"bottom"==e&&("desktop"===y&&(n="linked"===t.marginType?t.margin:t.marginBottom),"tablet"===y&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginBottomTablet),"mobile"===y&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginBottomMobile)),n},me=function(e){if(t.horizontalAlign===e)return n({horizontalAlign:"unset"});n({horizontalAlign:e})},se=function(){var e;return"desktop"===k&&(e=t.columnsHeightCustom),"tablet"===k&&(e=t.columnsHeightCustomTablet),"mobile"===k&&(e=t.columnsHeightCustomMobile),e};se=se();var ue=function(e){if(t.verticalAlign===e)return n({verticalAlign:"unset"});n({verticalAlign:e})},be=function(){n({backgroundImageID:"",backgroundImageURL:""})},ge=function(){n({backgroundOverlayImageID:"",backgroundOverlayImageURL:""})},he={top:"borderTop",right:"borderRight",bottom:"borderBottom",left:"borderLeft"},fe=function(e){var n;return"top"==e&&(n="linked"===t.borderType?t.border:t.borderTop),"right"==e&&(n="linked"===t.borderType?t.border:t.borderRight),"bottom"==e&&(n="linked"===t.borderType?t.border:t.borderBottom),"left"==e&&(n="linked"===t.borderType?t.border:t.borderLeft),n},ye={top:"borderRadiusTop",right:"borderRadiusRight",bottom:"borderRadiusBottom",left:"borderRadiusLeft"},we=function(e){var n;return"top"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusTop),"right"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusRight),"bottom"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusBottom),"left"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusLeft),n},ve=function(){var e;return"top"==o&&(e=t.dividerTopType),"bottom"==o&&(e=t.dividerBottomType),e};ve=ve();var ke=function(){var e;return"top"==o&&(e=t.dividerTopColor),"bottom"==o&&(e=t.dividerBottomColor),e};ke=ke();var Te=function(){var e;return"top"==o&&("desktop"==Q&&(e=t.dividerTopWidth),"tablet"==Q&&(e=t.dividerTopWidthTablet),"mobile"==Q&&(e=t.dividerTopWidthMobile)),"bottom"==o&&("desktop"==Q&&(e=t.dividerBottomWidth),"tablet"==Q&&(e=t.dividerBottomWidthTablet),"mobile"==Q&&(e=t.dividerBottomWidthMobile)),e};Te=Te();var Ee=function(){var e;return"top"==o&&("desktop"==amp;&(e=t.dividerTopHeight),"tablet"==amp;&(e=t.dividerTopHeightTablet),"mobile"==amp;&(e=t.dividerTopHeightMobile)),"bottom"==o&&("desktop"==amp;&(e=t.dividerBottomHeight),"tablet"==amp;&(e=t.dividerBottomHeightTablet),"mobile"==amp;&(e=t.dividerBottomHeightMobile)),e};Ee=Ee();var xe=function(){var e;return"top"==o&&(e=t.dividerTopInvert),"bottom"==o&&(e=t.dividerBottomInvert),e};xe=xe();var Ce=function(e,t){"desktop"===t&&n({hide:e}),"tablet"===t&&n({hideTablet:e}),"mobile"===t&&n({hideMobile:e})},Se=function(e,t){"tablet"===t&&n({reverseColumnsTablet:e}),"mobile"===t&&n({reverseColumnsMobile:e})};return wp.element.createElement(K,null,wp.element.createElement(Z,null,wp.element.createElement(j,{className:"wp-block-themeisle-blocks-advanced-columns-header-panel"},wp.element.createElement(A,{className:c()("header-tab",{"is-selected":"layout"===d}),onClick:function(){return p("layout")}},wp.element.createElement("span",null,wp.element.createElement(P,{icon:"editor-table"}),N("Layout"))),wp.element.createElement(A,{className:c()("header-tab",{"is-selected":"style"===d}),onClick:function(){return p("style")}},wp.element.createElement("span",null,wp.element.createElement(P,{icon:"admin-customizer"}),N("Style"))),wp.element.createElement(A,{className:c()("header-tab",{"is-selected":"advanced"===d}),onClick:function(){return p("advanced")}},wp.element.createElement("span",null,wp.element.createElement(P,{icon:"admin-generic"}),N("Advanced")))),"layout"===d&&wp.element.createElement(K,null,wp.element.createElement(j,{title:N("Columns & Layout")},wp.element.createElement(V,{label:N("Columns"),value:t.columns,onChange:function(e){6>=e&&(n({columns:e,layout:"equal",layoutTablet:"equal",layoutMobile:"collapsedRows"}),a(e,"equal")),6<e&&(n({columns:6,layout:"equal",layoutTablet:"equal",layoutMobile:"collapsedRows"}),a(6,"equal")),1>=e&&(n({columns:1,layout:"equal",layoutTablet:"equal",layoutMobile:"equal"}),a(1,"equal"))},min:1,max:6}),wp.element.createElement(T.default,{label:N("Layout"),columns:t.columns,layout:t.layout,layoutTablet:t.layoutTablet,layoutMobile:t.layoutMobile,view:s,changeViewType:u,onClick:function(e){"desktop"===s&&(n({layout:e}),a(t.columns,e)),"tablet"===s&&n({layoutTablet:e}),"mobile"===s&&n({layoutMobile:e})}}),wp.element.createElement(D,{label:N("Columns Gap"),value:t.columnsGap,options:[{label:"Default (10px)",value:"default"},{label:"No Gap",value:"nogap"},{label:"Narrow (5px)",value:"narrow"},{label:"Extended (15px)",value:"extended"},{label:"Wide (20px)",value:"wide"},{label:"Wider (30px)",value:"wider"}],onChange:function(e){n({columnsGap:e})}})),wp.element.createElement(j,{title:N("Spacing"),initialOpen:!1},wp.element.createElement(x.a,{label:"Padding",view:g,changeViewType:h},wp.element.createElement(E.a,{type:te,min:0,max:500,changeType:function(e){"desktop"===g&&n({paddingType:e}),"tablet"===g&&n({paddingTypeTablet:e}),"mobile"===g&&n({paddingTypeMobile:e})},onChange:function(e,a){"desktop"===g&&("linked"===t.paddingType?n({padding:a}):n(O({},ne[e],a))),"tablet"===g&&("linked"===t.paddingTypeTablet?n({paddingTablet:a}):n(O({},ae[e],a))),"mobile"===g&&("linked"===t.paddingTypeMobile?n({paddingMobile:a}):n(O({},le[e],a)))},options:[{label:N("Top"),type:"top",value:oe("top")},{label:N("Right"),type:"right",value:oe("right")},{label:N("Bottom"),type:"bottom",value:oe("bottom")},{label:N("Left"),type:"left",value:oe("left")}]})),wp.element.createElement(x.a,{label:"Margin",view:y,changeViewType:w},wp.element.createElement(E.a,{type:re,min:-500,max:500,changeType:function(e){"desktop"===y&&n({marginType:e}),"tablet"===y&&n({marginTypeTablet:e}),"mobile"===y&&n({marginTypeMobile:e})},onChange:function(e,a){"desktop"===y&&("linked"===t.marginType?n({margin:a}):n(O({},ie[e],a))),"tablet"===y&&("linked"===t.marginTypeTablet?n({marginTablet:a}):n(O({},ce[e],a))),"mobile"===y&&("linked"===t.marginTypeMobile?n({marginMobile:a}):n(O({},de[e],a)))},options:[{label:N("Top"),type:"top",value:pe("top")},{label:N("Right"),disabled:!0},{label:N("Bottom"),type:"bottom",value:pe("bottom")},{label:N("Left"),disabled:!0}]}))),wp.element.createElement(j,{title:N("Section Structure"),initialOpen:!1},wp.element.createElement(V,{label:N("Maximum Content Width"),value:t.columnsWidth||"",onChange:function(e){(0<=e&&1200>=e||void 0===e)&&n({columnsWidth:e})},min:0,max:1200}),t.columnsWidth&&wp.element.createElement(z,{label:"Horizontal Align"},wp.element.createElement(H,{className:"wp-block-themeisle-icon-buttom-group"},wp.element.createElement(F,{text:N("Left")},wp.element.createElement(I,{icon:"editor-alignleft",className:"is-button is-large",isPrimary:"flex-start"===t.horizontalAlign,onClick:function(){return me("flex-start")}})),wp.element.createElement(F,{text:N("Center")},wp.element.createElement(I,{icon:"editor-aligncenter",className:"is-button is-large",isPrimary:"center"===t.horizontalAlign,onClick:function(){return me("center")}})),wp.element.createElement(F,{text:N("Right")},wp.element.createElement(I,{icon:"editor-alignright",className:"is-button is-large",isPrimary:"flex-end"===t.horizontalAlign,onClick:function(){return me("flex-end")}})))),wp.element.createElement(D,{label:N("Minimum Height"),value:t.columnsHeight,options:[{label:"Default",value:"auto"},{label:"Fit to Screen",value:"100vh"},{label:"Custom",value:"custom"}],onChange:function(e){n({columnsHeight:e})}}),"custom"===t.columnsHeight&&wp.element.createElement(x.a,{label:"Custom Height",view:k,changeViewType:L},wp.element.createElement(V,{value:se||"",onChange:function(e){"desktop"===k&&n({columnsHeightCustom:e}),"tablet"===k&&n({columnsHeightCustomTablet:e}),"mobile"===k&&n({columnsHeightCustomMobile:e})},min:0,max:1e3})),wp.element.createElement(z,{label:"Vertical Align"},wp.element.createElement(H,{className:"wp-block-themeisle-icon-buttom-group"},wp.element.createElement(F,{text:N("Top")},wp.element.createElement(A,{className:"components-icon-button is-button is-large",isPrimary:"flex-start"===t.verticalAlign,onClick:function(){return ue("flex-start")}},wp.element.createElement(_,{icon:l.s,size:20}))),wp.element.createElement(F,{text:N("Middle")},wp.element.createElement(A,{className:"components-icon-button is-button is-large",isPrimary:"center"===t.verticalAlign,onClick:function(){return ue("center")}},wp.element.createElement(_,{icon:l.j,size:20}))),wp.element.createElement(F,{text:N("Bottom")},wp.element.createElement(A,{className:"components-icon-button is-button is-large",isPrimary:"flex-end"===t.verticalAlign,onClick:function(){return ue("flex-end")}},wp.element.createElement(_,{icon:l.c,size:20})))))))||"style"===d&&wp.element.createElement(K,null,wp.element.createElement(j,{title:N("Background Settings"),className:"wp-block-themeisle-image-container"},wp.element.createElement(C.default,{label:N("Background Type"),backgroundType:t.backgroundType,changeBackgroundType:function(e){n({backgroundType:e})}}),"color"===t.backgroundType&&wp.element.createElement(K,null,wp.element.createElement("p",null,N("Background Color")),wp.element.createElement(q,{label:"Background Color",value:t.backgroundColor,onChange:function(e){n({backgroundColor:e})}}))||"image"===t.backgroundType&&(t.backgroundImageURL?wp.element.createElement(K,null,wp.element.createElement("div",{className:"wp-block-themeisle-image-container-body"},wp.element.createElement("div",{className:"wp-block-themeisle-image-container-area"},wp.element.createElement("div",{className:"wp-block-themeisle-image-container-holder",style:{backgroundImage:"url('".concat(t.backgroundImageURL,"')")}}),wp.element.createElement("div",{className:"wp-block-themeisle-image-container-delete",onClick:be},wp.element.createElement(P,{icon:"trash"}),wp.element.createElement("span",null,N("Remove Image"))))),wp.element.createElement(A,{isDefault:!0,className:"wp-block-themeisle-image-container-delete-button",onClick:be},N("Change or Remove Image")),wp.element.createElement(B.a,{label:"Background Settings"},wp.element.createElement(D,{label:N("Background Attachment"),value:t.backgroundAttachment,options:[{label:"Scroll",value:"scroll"},{label:"Fixed",value:"fixed"},{label:"Local",value:"local"}],onChange:function(e){n({backgroundAttachment:e})}}),wp.element.createElement(D,{label:N("Background Position"),value:t.backgroundPosition,options:[{label:"Default",value:"top left"},{label:"Top Left",value:"top left"},{label:"Top Center",value:"top center"},{label:"Top Right",value:"top right"},{label:"Center Left",value:"center left"},{label:"Center Center",value:"center center"},{label:"Center Right",value:"center right"},{label:"Bottom Left",value:"bottom left"},{label:"Bottom Center",value:"bottom center"},{label:"Bottom Right",value:"bottom right"}],onChange:function(e){n({backgroundPosition:e})}}),wp.element.createElement(D,{label:N("Background Repeat"),value:t.backgroundRepeat,options:[{label:"Repeat",value:"repeat"},{label:"No-repeat",value:"no-repeat"}],onChange:function(e){n({backgroundRepeat:e})}}),wp.element.createElement(D,{label:N("Background Size"),value:t.backgroundSize,options:[{label:"Auto",value:"auto"},{label:"Cover",value:"cover"},{label:"Contain",value:"contain"}],onChange:function(e){n({backgroundSize:e})}}))):wp.element.createElement(U,{icon:"format-image",labels:{title:N("Background Image"),name:N("an image")},value:t.backgroundImageID,onSelect:function(e){n({backgroundImageID:e.id,backgroundImageURL:e.url})},accept:"image/*",allowedTypes:["image"]}))||"gradient"===t.backgroundType&&wp.element.createElement(S.a,{label:"Background Gradient",value:{firstColor:t.backgroundGradientFirstColor,firstLocation:t.backgroundGradientFirstLocation,secondColor:t.backgroundGradientSecondColor,secondLocation:t.backgroundGradientSecondLocation,type:t.backgroundGradientType,angle:t.backgroundGradientAngle,position:t.backgroundGradientPosition},onChange:function(e,t,a,l,o,r,i){n({backgroundGradientFirstColor:e,backgroundGradientFirstLocation:t,backgroundGradientSecondColor:a,backgroundGradientSecondLocation:l,backgroundGradientType:o,backgroundGradientAngle:r,backgroundGradientPosition:i})}})),wp.element.createElement(j,{title:N("Background Overlay"),className:"wp-block-themeisle-image-container",initialOpen:!1},wp.element.createElement(C.default,{label:N("Overlay Type"),backgroundType:t.backgroundOverlayType,changeBackgroundType:function(e){n({backgroundOverlayType:e})}}),wp.element.createElement(V,{label:N("Overlay Opacity"),value:t.backgroundOverlayOpacity,onChange:function(e){n({backgroundOverlayOpacity:e})},min:0,max:100}),"color"===t.backgroundOverlayType&&wp.element.createElement(K,null,wp.element.createElement("p",null,N("Overlay Color")),wp.element.createElement(q,{label:"Overlay Color",value:t.backgroundOverlayColor,onChange:function(e){n({backgroundOverlayColor:e})}}))||"image"===t.backgroundOverlayType&&(t.backgroundOverlayImageURL?wp.element.createElement(K,null,wp.element.createElement("div",{className:"wp-block-themeisle-image-container-body"},wp.element.createElement("div",{className:"wp-block-themeisle-image-container-area"},wp.element.createElement("div",{className:"wp-block-themeisle-image-container-holder",style:{backgroundImage:"url('".concat(t.backgroundOverlayImageURL,"')")}}),wp.element.createElement("div",{className:"wp-block-themeisle-image-container-delete",onClick:ge},wp.element.createElement(P,{icon:"trash"}),wp.element.createElement("span",null,N("Remove Image"))))),wp.element.createElement(A,{isDefault:!0,className:"wp-block-themeisle-image-container-delete-button",onClick:ge},N("Change or Remove Image")),wp.element.createElement(B.a,{label:"Background Settings"},wp.element.createElement(D,{label:N("Background Attachment"),value:t.backgroundOverlayAttachment,options:[{label:"Scroll",value:"scroll"},{label:"Fixed",value:"fixed"},{label:"Local",value:"local"}],onChange:function(e){n({backgroundOverlayAttachment:e})}}),wp.element.createElement(D,{label:N("Background Position"),value:t.backgroundOverlayPosition,options:[{label:"Default",value:"top left"},{label:"Top Left",value:"top left"},{label:"Top Center",value:"top center"},{label:"Top Right",value:"top right"},{label:"Center Left",value:"center left"},{label:"Center Center",value:"center center"},{label:"Center Right",value:"center right"},{label:"Bottom Left",value:"bottom left"},{label:"Bottom Center",value:"bottom center"},{label:"Bottom Right",value:"bottom right"}],onChange:function(e){n({backgroundOverlayPosition:e})}}),wp.element.createElement(D,{label:N("Background Repeat"),value:t.backgroundOverlayRepeat,options:[{label:"Repeat",value:"repeat"},{label:"No-repeat",value:"no-repeat"}],onChange:function(e){n({backgroundOverlayRepeat:e})}}),wp.element.createElement(D,{label:N("Background Size"),value:t.backgroundOverlaySize,options:[{label:"Auto",value:"auto"},{label:"Cover",value:"cover"},{label:"Contain",value:"contain"}],onChange:function(e){n({backgroundOverlaySize:e})}}))):wp.element.createElement(U,{icon:"format-image",labels:{title:N("Background Image"),name:N("an image")},value:t.backgroundOverlayImageID,onSelect:function(e){n({backgroundOverlayImageID:e.id,backgroundOverlayImageURL:e.url})},accept:"image/*",allowedTypes:["image"]}))||"gradient"===t.backgroundOverlayType&&wp.element.createElement(S.a,{label:"Background Gradient",value:{firstColor:t.backgroundOverlayGradientFirstColor,firstLocation:t.backgroundOverlayGradientFirstLocation,secondColor:t.backgroundOverlayGradientSecondColor,secondLocation:t.backgroundOverlayGradientSecondLocation,type:t.backgroundOverlayGradientType,angle:t.backgroundOverlayGradientAngle,position:t.backgroundOverlayGradientPosition},onChange:function(e,t,a,l,o,r,i){n({backgroundOverlayGradientFirstColor:e,backgroundOverlayGradientFirstLocation:t,backgroundOverlayGradientSecondColor:a,backgroundOverlayGradientSecondLocation:l,backgroundOverlayGradientType:o,backgroundOverlayGradientAngle:r,backgroundOverlayGradientPosition:i})}}),wp.element.createElement(B.a,{label:"CSS Filters"},wp.element.createElement(V,{label:N("Blur"),value:t.backgroundOverlayFilterBlur,onChange:function(e){n({backgroundOverlayFilterBlur:e})},min:0,max:100}),wp.element.createElement(V,{label:N("Brightness"),value:t.backgroundOverlayFilterBrightness,onChange:function(e){n({backgroundOverlayFilterBrightness:e})},min:0,max:100}),wp.element.createElement(V,{label:N("Contrast"),value:t.backgroundOverlayFilterContrast,onChange:function(e){n({backgroundOverlayFilterContrast:e})},min:0,max:100}),wp.element.createElement(V,{label:N("Grayscale"),value:t.backgroundOverlayFilterGrayscale,onChange:function(e){n({backgroundOverlayFilterGrayscale:e})},min:0,max:100}),wp.element.createElement(V,{label:N("Hue"),value:t.backgroundOverlayFilterHue,onChange:function(e){n({backgroundOverlayFilterHue:e})},min:0,max:360}),wp.element.createElement(V,{label:N("Saturation"),value:t.backgroundOverlayFilterSaturate,onChange:function(e){n({backgroundOverlayFilterSaturate:e})},min:0,max:100})),wp.element.createElement(D,{label:N("Blend Mode"),value:t.backgroundOverlayBlend,options:[{label:"Normal",value:"normal"},{label:"Multiply",value:"multiply"},{label:"Screen",value:"screen"},{label:"Overlay",value:"overlay"},{label:"Darken",value:"darken"},{label:"Lighten",value:"lighten"},{label:"Color Dodge",value:"color-dodge"},{label:"Color Burn",value:"color-burn"},{label:"Hard Light",value:"hard-light"},{label:"Soft Light",value:"soft-light"},{label:"Difference",value:"difference"},{label:"Exclusion",value:"exclusion"},{label:"Hue",value:"hue"},{label:"Saturation",value:"saturation"},{label:"Color",value:"color"},{label:"Luminosity",value:"luminosity"}],onChange:function(e){n({backgroundOverlayBlend:e})}})),wp.element.createElement(j,{title:N("Border"),className:"wp-block-themeisle-border-container",initialOpen:!1},wp.element.createElement(E.a,{label:N("Border Width"),type:t.borderType,min:0,max:500,changeType:function(e){n({borderType:e})},onChange:function(e,a){"linked"===t.borderType?n({border:a}):n(O({},he[e],a))},options:[{label:N("Top"),type:"top",value:fe("top")},{label:N("Right"),type:"right",value:fe("right")},{label:N("Bottom"),type:"bottom",value:fe("bottom")},{label:N("Left"),type:"left",value:fe("left")}]}),wp.element.createElement(K,null,wp.element.createElement("p",null,N("Border Color")),wp.element.createElement(q,{label:"Border Color",value:t.borderColor,onChange:function(e){n({borderColor:e})}})),wp.element.createElement(E.a,{label:N("Border Radius"),type:t.borderRadiusType,min:0,max:500,changeType:function(e){n({borderRadiusType:e})},onChange:function(e,a){"linked"===t.borderRadiusType?n({borderRadius:a}):n(O({},ye[e],a))},options:[{label:N("Top"),type:"top",value:we("top")},{label:N("Right"),type:"right",value:we("right")},{label:N("Bottom"),type:"bottom",value:we("bottom")},{label:N("Left"),type:"left",value:we("left")}]}),wp.element.createElement(G,{label:"Box Shadow",checked:t.boxShadow,onChange:function(){n({boxShadow:!t.boxShadow})}}),t.boxShadow&&wp.element.createElement(K,null,wp.element.createElement(K,null,wp.element.createElement("p",null,N("Shadow Color")),wp.element.createElement(q,{label:"Shadow Color",value:t.boxShadowColor,onChange:function(e){n({boxShadowColor:e})}})),wp.element.createElement(B.a,{label:"Border Shadow"},wp.element.createElement(V,{label:N("Opacity"),value:t.boxShadowColorOpacity,onChange:function(e){n({boxShadowColorOpacity:e})},min:0,max:100}),wp.element.createElement(V,{label:N("Blur"),value:t.boxShadowBlur,onChange:function(e){n({boxShadowBlur:e})},min:0,max:100}),wp.element.createElement(V,{label:N("Spread"),value:t.boxShadowSpread,onChange:function(e){n({boxShadowSpread:e})},min:-100,max:100}),wp.element.createElement(V,{label:N("Horizontal"),value:t.boxShadowHorizontal,onChange:function(e){n({boxShadowHorizontal:e})},min:-100,max:100}),wp.element.createElement(V,{label:N("Vertical"),value:t.boxShadowVertical,onChange:function(e){n({boxShadowVertical:e})},min:-100,max:100})))),wp.element.createElement(j,{title:N("Shape Divider"),initialOpen:!1,className:"wp-block-themeisle-shape-divider"},wp.element.createElement(H,null,wp.element.createElement(A,{className:"is-button",isPrimary:"top"===o,onClick:function(){return r("top")}},N("Top")),wp.element.createElement(A,{className:"is-button",isPrimary:"bottom"===o,onClick:function(){return r("bottom")}},N("Bottom"))),wp.element.createElement(D,{label:N("Type"),value:ve,options:[{label:"None",value:"none"},{label:"Triangle",value:"bigTriangle"},{label:"Right Curve",value:"rightCurve"},{label:"Curve",value:"curve"},{label:"Slant",value:"slant"},{label:"Cloud",value:"cloud"}],onChange:function(e){"top"==o&&n({dividerTopType:e}),"bottom"==o&&n({dividerBottomType:e})}}),"none"!==ve&&wp.element.createElement(K,null,wp.element.createElement(K,null,wp.element.createElement("p",null,N("Color")),wp.element.createElement(q,{label:N("Color"),value:ke,onChange:function(e){"top"==o&&n({dividerTopColor:e}),"bottom"==o&&n({dividerBottomColor:e})}})),wp.element.createElement(x.a,{label:"Width",view:Q,changeViewType:Y},wp.element.createElement(V,{value:Te,onChange:function(e){"top"==o&&("desktop"==Q&&n({dividerTopWidth:e}),"tablet"==Q&&n({dividerTopWidthTablet:e}),"mobile"==Q&&n({dividerTopWidthMobile:e})),"bottom"==o&&("desktop"==Q&&n({dividerBottomWidth:e}),"tablet"==Q&&n({dividerBottomWidthTablet:e}),"mobile"==Q&&n({dividerBottomWidthMobile:e}))},min:0,max:500})),wp.element.createElement(x.a,{label:"Height",view:$,changeViewType:ee},wp.element.createElement(V,{value:Ee,onChange:function(e){"top"==o&&("desktop"==amp;&n({dividerTopHeight:e}),"tablet"==amp;&n({dividerTopHeightTablet:e}),"mobile"==amp;&n({dividerTopHeightMobile:e})),"bottom"==o&&("desktop"==amp;&n({dividerBottomHeight:e}),"tablet"==amp;&n({dividerBottomHeightTablet:e}),"mobile"==amp;&n({dividerBottomHeightMobile:e}))},min:0,max:500})),"curve"!==ve&&"cloud"!==ve&&wp.element.createElement(G,{label:"Invert Shape Divider",checked:xe,onChange:function(){"top"==o&&n({dividerTopInvert:!t.dividerTopInvert}),"bottom"==o&&n({dividerBottomInvert:!t.dividerBottomInvert})}}))))||"advanced"===d&&wp.element.createElement(K,null,wp.element.createElement(j,{title:N("Responsive")},wp.element.createElement(G,{label:"Hide this section in Desktop devices?",checked:t.hide,onChange:function(e){return Ce(e,"desktop")}}),wp.element.createElement(G,{label:"Hide this section in Tablet devices?",checked:t.hideTablet,onChange:function(e){return Ce(e,"tablet")}}),wp.element.createElement(G,{label:"Hide this section in Mobile devices?",checked:t.hideMobile,onChange:function(e){return Ce(e,"mobile")}}),wp.element.createElement("hr",null),!t.hideTablet&&"collapsedRows"===t.layoutTablet&&wp.element.createElement(G,{label:"Reverse Columns in Tablet devices?",checked:t.reverseColumnsTablet,onChange:function(e){return Se(e,"tablet")}}),!t.hideMobile&&"collapsedRows"===t.layoutMobile&&wp.element.createElement(G,{label:"Reverse Columns in Mobile devices?",checked:t.reverseColumnsMobile,onChange:function(e){return Se(e,"mobile")}})),wp.element.createElement(j,{title:N("Section Settings"),initialOpen:!1},wp.element.createElement(D,{label:N("HTML Tag"),value:t.columnsHTMLTag,options:[{label:"Default (div)",value:"div"},{label:"section",value:"section"},{label:"header",value:"header"},{label:"footer",value:"footer"},{label:"article",value:"article"},{label:"main",value:"main"}],onChange:function(e){n({columnsHTMLTag:e})}})))),wp.element.createElement(M.a,{value:t.id,onChange:function(e){n({id:e})}}))};function X(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var $=wp.i18n.__,ee=wp.blockEditor,te=ee.__experimentalBlockNavigationList,ne=ee.BlockControls,ae=wp.components,le=ae.IconButton,oe=ae.Modal,re=ae.Toolbar,ie=wp.compose.compose,ce=wp.data,de=ce.withSelect,pe=ce.withDispatch,me=wp.element,se=me.Fragment,ue=me.useState,be=ie(de((function(e,t){var n=t.clientId,a=e("core/block-editor"),l=a.getSelectedBlockClientId;return{block:(0,a.getBlock)(n),selectedBlockClientId:l()}})),pe((function(e){return{selectBlock:e("core/block-editor").selectBlock}})))((function(e){var t=e.block,n=e.selectedBlockClientId,a=e.selectBlock,o=X(ue(!1),2),r=o[0],i=o[1];return wp.element.createElement(se,null,wp.element.createElement(ne,null,wp.element.createElement(re,{className:"wp-themesiel-blocks-block-navigator-components-toolbar"},wp.element.createElement(le,{className:"components-toolbar__control",label:$("Open block navigator"),onClick:function(){return i(!0)},icon:l.k}))),r&&wp.element.createElement(oe,{title:$("Block Navigator"),closeLabel:$("Close"),onRequestClose:function(){return i(!1)}},wp.element.createElement(te,{blocks:[t],selectedBlockClientId:n,selectBlock:a,showNestedBlocks:!0})))})),ge=n(13),he=n(25);function fe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function ye(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function we(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?we(Object(n),!0).forEach((function(t){ke(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):we(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ke(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Te=lodash,Ee=Te.isEqual,xe=Te.times,Ce=wp.compose.compose,Se=wp.data,Be=Se.withDispatch,Me=Se.withSelect,Oe=wp.blockEditor,Re=Oe.__experimentalBlockNavigationList,Ne=Oe.InnerBlocks,Le=wp.element,ze=Le.Fragment,Ae=Le.useEffect,He=Le.useState,Pe=wp.viewport.withViewportMatch,_e=[],Ie=Ce(Be((function(e){return{updateBlockAttributes:e("core/block-editor").updateBlockAttributes}})),Me((function(e,t){var n=t.clientId;return{sectionBlock:(0,e("core/block-editor").getBlock)(n)}})),Pe({isLarger:">= large",isLarge:"<= large",isSmall:">= small",isSmaller:"<= small"}))((function(e){var t=e.attributes,n=e.setAttributes,a=e.className,l=e.clientId,o=e.name,i=e.updateBlockAttributes,d=e.sectionBlock,m=e.isLarger,s=e.isLarge,u=e.isSmall,b=e.isSmaller;Ae((function(){x()}),[]);var g,h,f,y,w,T,E,x=function(){var e=window.themeisleGutenberg.blockIDs?window.themeisleGutenberg.blockIDs:[];if(void 0===t.id){var a,i="wp-block-themeisle-blocks-advanced-columns-".concat(l.substr(0,8));void 0!==(window.themeisleGutenberg.globalDefaults?window.themeisleGutenberg.globalDefaults:void 0)&&(Ee(v.a[o],window.themeisleGutenberg.globalDefaults[o])||(a=ve({},window.themeisleGutenberg.globalDefaults[o]),Object.keys(a).map((function(e){if(t[e]!==a[e]&&void 0!==r[e].default&&t[e]!==r[e].default)return delete a[e]})))),n(ve({},a,{id:i})),_e.push(i),e.push(i)}else if(_e.includes(t.id)){var c="wp-block-themeisle-blocks-advanced-columns-".concat(l.substr(0,8));n({id:c}),_e.push(c)}else _e.push(t.id),e.push(t.id);window.themeisleGutenberg.blockIDs=ye(e)},C=fe(He("top"),2),S=C[0],B=C[1],M=m&&!s&&u&&!b,O=!m&&!s&&u&&!b,R=!(m||s||u||b),N=t.columnsHTMLTag;(M&&(g={paddingTop:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingTop,"px"),paddingRight:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingRight,"px"),paddingBottom:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingBottom,"px"),paddingLeft:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingLeft,"px"),marginTop:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginTop,"px"),marginBottom:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginBottom,"px"),minHeight:"custom"===t.columnsHeight?"".concat(t.columnsHeightCustom,"px"):t.columnsHeight}),O&&(g={paddingTop:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingTopTablet,"px"),paddingRight:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingRightTablet,"px"),paddingBottom:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingBottomTablet,"px"),paddingLeft:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingLeftTablet,"px"),marginTop:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginTopTablet,"px"),marginBottom:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginBottomTablet,"px"),minHeight:"custom"===t.columnsHeight?"".concat(t.columnsHeightCustomTablet,"px"):t.columnsHeight}),R&&(g={paddingTop:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingTopMobile,"px"),paddingRight:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingRightMobile,"px"),paddingBottom:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingBottomMobile,"px"),paddingLeft:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingLeftMobile,"px"),marginTop:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginTopMobile,"px"),marginBottom:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginBottomMobile,"px"),minHeight:"custom"===t.columnsHeight?"".concat(t.columnsHeightCustomMobile,"px"):t.columnsHeight}),"color"===t.backgroundType&&(h={background:t.backgroundColor}),"image"===t.backgroundType&&(h={backgroundImage:"url( '".concat(t.backgroundImageURL,"' )"),backgroundAttachment:t.backgroundAttachment,backgroundPosition:t.backgroundPosition,backgroundRepeat:t.backgroundRepeat,backgroundSize:t.backgroundSize}),"gradient"===t.backgroundType)&&(E="linear"===t.backgroundGradientType?"".concat(t.backgroundGradientAngle,"deg"):"at ".concat(t.backgroundGradientPosition),(t.backgroundGradientFirstColor||t.backgroundGradientSecondColor)&&(h={background:"".concat(t.backgroundGradientType,"-gradient( ").concat(E,", ").concat(t.backgroundGradientFirstColor||"rgba( 0, 0, 0, 0 )"," ").concat(t.backgroundGradientFirstLocation,"%, ").concat(t.backgroundGradientSecondColor||"rgba( 0, 0, 0, 0 )"," ").concat(t.backgroundGradientSecondLocation,"% )")}));"linked"===t.borderType&&(y={borderWidth:"".concat(t.border,"px"),borderStyle:"solid",borderColor:t.borderColor}),"unlinked"===t.borderType&&(y={borderTopWidth:"".concat(t.borderTop,"px"),borderRightWidth:"".concat(t.borderRight,"px"),borderBottomWidth:"".concat(t.borderBottom,"px"),borderLeftWidth:"".concat(t.borderLeft,"px"),borderStyle:"solid",borderColor:t.borderColor}),"linked"===t.borderRadiusType&&(w={borderRadius:"".concat(t.borderRadius,"px")}),"unlinked"===t.borderRadiusType&&(w={borderTopLeftRadius:"".concat(t.borderRadiusTop,"px"),borderTopRightRadius:"".concat(t.borderRadiusRight,"px"),borderBottomRightRadius:"".concat(t.borderRadiusBottom,"px"),borderBottomLeftRadius:"".concat(t.borderRadiusLeft,"px")}),!0===t.boxShadow&&(T={boxShadow:"".concat(t.boxShadowHorizontal,"px ").concat(t.boxShadowVertical,"px ").concat(t.boxShadowBlur,"px ").concat(t.boxShadowSpread,"px ").concat(p()(t.boxShadowColor?t.boxShadowColor:"#000000",t.boxShadowColorOpacity))});var L,z=ve({},g,{},h,{},y,{},w,{},T,{alignItems:t.horizontalAlign});("color"===t.backgroundOverlayType&&(f={background:t.backgroundOverlayColor,opacity:t.backgroundOverlayOpacity/100}),"image"===t.backgroundOverlayType&&(f={backgroundImage:"url( '".concat(t.backgroundOverlayImageURL,"' )"),backgroundAttachment:t.backgroundOverlayAttachment,backgroundPosition:t.backgroundOverlayPosition,backgroundRepeat:t.backgroundOverlayRepeat,backgroundSize:t.backgroundOverlaySize,opacity:t.backgroundOverlayOpacity/100}),"gradient"===t.backgroundOverlayType)&&(L="linear"===t.backgroundOverlayGradientType?"".concat(t.backgroundOverlayGradientAngle,"deg"):"at ".concat(t.backgroundOverlayGradientPosition),f={background:"".concat(t.backgroundOverlayGradientType,"-gradient( ").concat(L,", ").concat(t.backgroundOverlayGradientFirstColor||"rgba( 0, 0, 0, 0 )"," ").concat(t.backgroundOverlayGradientFirstLocation,"%, ").concat(t.backgroundOverlayGradientSecondColor||"rgba( 0, 0, 0, 0 )"," ").concat(t.backgroundOverlayGradientSecondLocation,"% )"),opacity:t.backgroundOverlayOpacity/100});var A=ve({},f,{mixBlendMode:t.backgroundOverlayBlend,filter:"blur( ".concat(t.backgroundOverlayFilterBlur/10,"px ) brightness( ").concat(t.backgroundOverlayFilterBrightness/10," ) contrast( ").concat(t.backgroundOverlayFilterContrast/10," ) grayscale( ").concat(t.backgroundOverlayFilterGrayscale/100," ) hue-rotate( ").concat(t.backgroundOverlayFilterHue,"deg ) saturate( ").concat(t.backgroundOverlayFilterSaturate/10," )")}),H={};t.columnsWidth&&(H={maxWidth:t.columnsWidth+"px"});var P=c()(a,"has-".concat(t.columns,"-columns"),"has-desktop-".concat(t.layout,"-layout"),"has-tablet-".concat(t.layoutTablet,"-layout"),"has-mobile-".concat(t.layoutMobile,"-layout"),"has-".concat(t.columnsGap,"-gap"),"has-vertical-".concat(t.verticalAlign),{"has-reverse-columns-tablet":t.reverseColumnsTablet&&!t.hideTablet&&"collapsedRows"===t.layoutTablet},{"has-reverse-columns-mobile":t.reverseColumnsMobile&&!t.hideMobile&&"collapsedRows"===t.layoutMobile}),_=function(){var e;return M&&(e=t.dividerTopWidth),O&&(e=t.dividerTopWidthTablet),R&&(e=t.dividerTopWidthMobile),e};_=_();var I=function(){var e;return M&&(e=t.dividerBottomWidth),O&&(e=t.dividerBottomWidthTablet),R&&(e=t.dividerBottomWidthMobile),e};I=I();var j=function(){var e;return M&&(e=t.dividerTopHeight),O&&(e=t.dividerTopHeightTablet),R&&(e=t.dividerTopHeightMobile),e};j=j();var F=function(){var e;return M&&(e=t.dividerBottomHeight),O&&(e=t.dividerBottomHeightTablet),R&&(e=t.dividerBottomHeightMobile),e};F=F();var G;return t.columns?wp.element.createElement(ze,null,Re&&wp.element.createElement(be,{clientId:l}),wp.element.createElement(Y,{attributes:t,setAttributes:n,updateColumnsWidth:function(e,t){d.innerBlocks.map((function(n,a){i(n.clientId,{columnWidth:k.a[e][t][a]})}))},dividerViewType:S,setDividerViewType:B}),wp.element.createElement(N,{className:P,id:t.id,style:z},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay",style:A}),wp.element.createElement(ge.default,{type:"top",style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert,width:_,height:j}),wp.element.createElement("div",{className:"innerblocks-wrap",style:H},wp.element.createElement(Ne,{allowedBlocks:["themeisle-blocks/advanced-columns"],template:(G=t.columns,xe(G,(function(e){return["themeisle-blocks/advanced-column",{columnWidth:k.a[G][t.layout][e]}]}))),templateLock:"all"})),wp.element.createElement(ge.default,{type:"bottom",style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert,width:I,height:F}))):wp.element.createElement(he.default,{clientId:l,setupColumns:function(e,t){n(1>=e?{columns:e,layout:t,layoutTablet:"equal",layoutMobile:"equal"}:{columns:e,layout:t,layoutTablet:"equal",layoutMobile:"collapsedRows"})}})})),je=wp.blockEditor.InnerBlocks,Fe=function(e){var t=e.attributes,n=e.className,a=t.columnsHTMLTag,l=t.hide?"":"has-desktop-".concat(t.layout,"-layout"),o=t.hideTablet?"":"has-tablet-".concat(t.layoutTablet,"-layout"),r=t.hideMobile?"":"has-mobile-".concat(t.layoutMobile,"-layout"),i=c()(n,"has-".concat(t.columns,"-columns"),l,o,r,{"hide-in-desktop":t.hide},{"hide-in-tablet":t.hideTablet},{"hide-in-mobile":t.hideMobile},{"has-reverse-columns-tablet":t.reverseColumnsTablet&&!t.hideTablet&&"collapsedRows"===t.layoutTablet},{"has-reverse-columns-mobile":t.reverseColumnsMobile&&!t.hideMobile&&"collapsedRows"===t.layoutMobile},"has-".concat(t.columnsGap,"-gap"),"has-vertical-".concat(t.verticalAlign));return wp.element.createElement(a,{className:i,id:t.id},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay"}),wp.element.createElement(ge.default,{type:"top",front:!0,style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert}),wp.element.createElement("div",{className:"innerblocks-wrap"},wp.element.createElement(je.Content,null)),wp.element.createElement(ge.default,{type:"bottom",front:!0,style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert}))},Ge=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/advanced-columns",{title:Ge("Section"),description:Ge("Add a Section block that displays content in multiple columns, then add whatever content blocks you’d like."),icon:l.f,category:"themeisle-blocks",keywords:["advanced columns","layout","grid"],attributes:r,supports:{align:["wide","full"],html:!1},deprecated:w,edit:Ie,save:Fe})},function(e,t,n){"use strict";n.r(t);var a=n(2),l={id:{type:"string"},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:20},paddingTablet:{type:"number"},paddingMobile:{type:"number"},paddingTop:{type:"number",default:20},paddingTopTablet:{type:"number"},paddingTopMobile:{type:"number"},paddingRight:{type:"number",default:20},paddingRightTablet:{type:"number"},paddingRightMobile:{type:"number"},paddingBottom:{type:"number",default:20},paddingBottomTablet:{type:"number"},paddingBottomMobile:{type:"number"},paddingLeft:{type:"number",default:20},paddingLeftTablet:{type:"number"},paddingLeftMobile:{type:"number"},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:20},marginTablet:{type:"number"},marginMobile:{type:"number"},marginTop:{type:"number",default:20},marginTopTablet:{type:"number"},marginTopMobile:{type:"number"},marginRight:{type:"number",default:0},marginRightTablet:{type:"number"},marginRightMobile:{type:"number"},marginBottom:{type:"number",default:20},marginBottomTablet:{type:"number"},marginBottomMobile:{type:"number"},marginLeft:{type:"number",default:0},marginLeftTablet:{type:"number"},marginLeftMobile:{type:"number"},backgroundType:{type:"string",default:"color"},backgroundColor:{type:"string"},backgroundImageID:{type:"number"},backgroundImageURL:{type:"string"},backgroundAttachment:{type:"string",default:"scroll"},backgroundPosition:{type:"string",default:"top left"},backgroundRepeat:{type:"string",default:"repeat"},backgroundSize:{type:"string",default:"auto"},backgroundGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundGradientFirstLocation:{type:"number",default:0},backgroundGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundGradientSecondLocation:{type:"number",default:100},backgroundGradientType:{type:"string",default:"linear"},backgroundGradientAngle:{type:"number",default:90},backgroundGradientPosition:{type:"string",default:"center center"},borderType:{type:"string",default:"linked"},border:{type:"number",default:0},borderTop:{type:"number",default:0},borderRight:{type:"number",default:0},borderBottom:{type:"number",default:0},borderLeft:{type:"number",default:0},borderColor:{type:"string",default:"#000000"},borderRadiusType:{type:"string",default:"linked"},borderRadius:{type:"number",default:0},borderRadiusTop:{type:"number",default:0},borderRadiusRight:{type:"number",default:0},borderRadiusBottom:{type:"number",default:0},borderRadiusLeft:{type:"number",default:0},boxShadow:{type:"boolean",default:!1},boxShadowColor:{type:"string",default:"#000000"},boxShadowColorOpacity:{type:"number",default:50},boxShadowBlur:{type:"number",default:5},boxShadowSpread:{type:"number",default:0},boxShadowHorizontal:{type:"number",default:0},boxShadowVertical:{type:"number",default:0},columnsHTMLTag:{type:"string",default:"div"},columnWidth:{type:"string"}},o=n(6),r=n.n(o);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=wp.blockEditor.InnerBlocks,p=[{attributes:{id:{type:"string"},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:20},paddingTablet:{type:"number",default:20},paddingMobile:{type:"number",default:20},paddingTop:{type:"number",default:20},paddingTopTablet:{type:"number",default:20},paddingTopMobile:{type:"number",default:20},paddingRight:{type:"number",default:20},paddingRightTablet:{type:"number",default:20},paddingRightMobile:{type:"number",default:20},paddingBottom:{type:"number",default:20},paddingBottomTablet:{type:"number",default:20},paddingBottomMobile:{type:"number",default:20},paddingLeft:{type:"number",default:20},paddingLeftTablet:{type:"number",default:20},paddingLeftMobile:{type:"number",default:20},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:20},marginTablet:{type:"number",default:20},marginMobile:{type:"number",default:20},marginTop:{type:"number",default:20},marginTopTablet:{type:"number",default:20},marginTopMobile:{type:"number",default:20},marginRight:{type:"number",default:0},marginRightTablet:{type:"number",default:0},marginRightMobile:{type:"number",default:0},marginBottom:{type:"number",default:20},marginBottomTablet:{type:"number",default:20},marginBottomMobile:{type:"number",default:20},marginLeft:{type:"number",default:0},marginLeftTablet:{type:"number",default:0},marginLeftMobile:{type:"number",default:0},backgroundType:{type:"string",default:"color"},backgroundColor:{type:"string"},backgroundImageID:{type:"number"},backgroundImageURL:{type:"string"},backgroundAttachment:{type:"string",default:"scroll"},backgroundPosition:{type:"string",default:"top left"},backgroundRepeat:{type:"string",default:"repeat"},backgroundSize:{type:"string",default:"auto"},backgroundGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundGradientFirstLocation:{type:"number",default:0},backgroundGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundGradientSecondLocation:{type:"number",default:100},backgroundGradientType:{type:"string",default:"linear"},backgroundGradientAngle:{type:"number",default:90},backgroundGradientPosition:{type:"string",default:"center center"},borderType:{type:"string",default:"linked"},border:{type:"number",default:0},borderTop:{type:"number",default:0},borderRight:{type:"number",default:0},borderBottom:{type:"number",default:0},borderLeft:{type:"number",default:0},borderColor:{type:"string",default:"#000000"},borderRadiusType:{type:"string",default:"linked"},borderRadius:{type:"number",default:0},borderRadiusTop:{type:"number",default:0},borderRadiusRight:{type:"number",default:0},borderRadiusBottom:{type:"number",default:0},borderRadiusLeft:{type:"number",default:0},boxShadow:{type:"boolean",default:!1},boxShadowColor:{type:"string",default:"#000000"},boxShadowColorOpacity:{type:"number",default:50},boxShadowBlur:{type:"number",default:5},boxShadowSpread:{type:"number",default:0},boxShadowHorizontal:{type:"number",default:0},boxShadowVertical:{type:"number",default:0},columnsHTMLTag:{type:"string",default:"div"},columnWidth:{type:"string"}},supports:{inserter:!1,reusable:!1,html:!1},save:function(e){var t,n,a,l,o,p=e.attributes,m=e.className,s=p.columnsHTMLTag;("color"===p.backgroundType&&(t={background:p.backgroundColor}),"image"===p.backgroundType&&(t={backgroundImage:"url( '".concat(p.backgroundImageURL,"' )"),backgroundAttachment:p.backgroundAttachment,backgroundPosition:p.backgroundPosition,backgroundRepeat:p.backgroundRepeat,backgroundSize:p.backgroundSize}),"gradient"===p.backgroundType)&&(o="linear"===p.backgroundGradientType?"".concat(p.backgroundGradientAngle,"deg"):"at ".concat(p.backgroundGradientPosition),t={background:"".concat(p.backgroundGradientType,"-gradient( ").concat(o,", ").concat(p.backgroundGradientFirstColor||"rgba( 0, 0, 0, 0 )"," ").concat(p.backgroundGradientFirstLocation,"%, ").concat(p.backgroundGradientSecondColor||"rgba( 0, 0, 0, 0 )"," ").concat(p.backgroundGradientSecondLocation,"% )")});"linked"===p.borderType&&(n={borderWidth:"".concat(p.border,"px"),borderStyle:"solid",borderColor:p.borderColor}),"unlinked"===p.borderType&&(n={borderTopWidth:"".concat(p.borderTop,"px"),borderRightWidth:"".concat(p.borderRight,"px"),borderBottomWidth:"".concat(p.borderBottom,"px"),borderLeftWidth:"".concat(p.borderLeft,"px"),borderStyle:"solid",borderColor:p.borderColor}),"linked"===p.borderRadiusType&&(a={borderRadius:"".concat(p.borderRadius,"px")}),"unlinked"===p.borderRadiusType&&(a={borderTopLeftRadius:"".concat(p.borderRadiusTop,"px"),borderTopRightRadius:"".concat(p.borderRadiusRight,"px"),borderBottomRightRadius:"".concat(p.borderRadiusBottom,"px"),borderBottomLeftRadius:"".concat(p.borderRadiusLeft,"px")}),!0===p.boxShadow&&(l={boxShadow:"".concat(p.boxShadowHorizontal,"px ").concat(p.boxShadowVertical,"px ").concat(p.boxShadowBlur,"px ").concat(p.boxShadowSpread,"px ").concat(r()(p.boxShadowColor?p.boxShadowColor:"#000000",p.boxShadowColorOpacity))});var u=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,{},n,{},a,{},l);return wp.element.createElement(s,{className:m,id:p.id,style:u},wp.element.createElement(d.Content,null))}}],m=n(5),s=n(16),u=n(0),b=n.n(u),g=n(3),h=n(4),f=n(14),y=n(17),w=n(8);function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var T=wp.i18n.__,E=wp.blockEditor,x=E.ColorPalette,C=E.InspectorControls,S=E.MediaPlaceholder,B=wp.components,M=B.Button,O=B.Dashicon,R=B.PanelBody,N=B.ToggleControl,L=B.RangeControl,z=B.SelectControl,A=wp.element,H=A.Fragment,P=A.useEffect,_=A.useRef,I=A.useState,j=function(e){var t=e.attributes,n=e.setAttributes,a=e.isSelected,l=e.clientId,o=e.adjacentBlock,r=e.parentBlock,i=e.updateBlockAttributes,c=e.adjacentBlockClientId;P((function(){if(1<r.innerBlocks.length&&!c){var e=r.innerBlocks.findIndex((function(e){return e.clientId===l})),t=r.innerBlocks[e-1];G.current=t.clientId,V.current=t.attributes.columnWidth}}),[]),P((function(){if(1<r.innerBlocks.length)if(c)V.current=o.attributes.columnWidth,G.current=c,F.current=t.columnWidth;else{var e=r.innerBlocks.findIndex((function(e){return e.clientId===l})),n=r.innerBlocks[e-1];V.current=n.attributes.columnWidth,G.current=n.clientId,F.current=t.columnWidth}}),[a,t.columnWidth,r.innerBlocks.length]);var d=k(I("layout"),2),p=d[0],m=d[1],s=k(I("desktop"),2),u=s[0],E=s[1],B=k(I("desktop"),2),A=B[0],j=B[1],F=_(t.columnWidth),G=_(c&&c),V=_(o&&o.attributes.columnWidth),D=function(){var e;return"desktop"===u&&(e=t.paddingType),"tablet"===u&&(e=t.paddingTypeTablet),"mobile"===u&&(e=t.paddingTypeMobile),e};D=D();var W={top:"paddingTop",right:"paddingRight",bottom:"paddingBottom",left:"paddingLeft"},q={top:"paddingTopTablet",right:"paddingRightTablet",bottom:"paddingBottomTablet",left:"paddingLeftTablet"},Z={top:"paddingTopMobile",right:"paddingRightMobile",bottom:"paddingBottomMobile",left:"paddingLeftMobile"},U=function(e){var n;return"top"==e&&("desktop"===u&&(n="linked"===t.paddingType?t.padding:t.paddingTop),"tablet"===u&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingTopTablet),"mobile"===u&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingTopMobile)),"right"==e&&("desktop"===u&&(n="linked"===t.paddingType?t.padding:t.paddingRight),"tablet"===u&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingRightTablet),"mobile"===u&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingRightMobile)),"bottom"==e&&("desktop"===u&&(n="linked"===t.paddingType?t.padding:t.paddingBottom),"tablet"===u&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingBottomTablet),"mobile"===u&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingBottomMobile)),"left"==e&&("desktop"===u&&(n="linked"===t.paddingType?t.padding:t.paddingLeft),"tablet"===u&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingLeftTablet),"mobile"===u&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingLeftMobile)),n},Q=function(){var e;return"desktop"===A&&(e=t.marginType),"tablet"===A&&(e=t.marginTypeTablet),"mobile"===A&&(e=t.marginTypeMobile),e};Q=Q();var K={top:"marginTop",right:"marginRight",bottom:"marginBottom",left:"marginLeft"},J={top:"marginTopTablet",right:"marginRightTablet",bottom:"marginBottomTablet",left:"marginLeftTablet"},Y={top:"marginTopMobile",right:"marginRightMobile",bottom:"marginBottomMobile",left:"marginLeftMobile"},X=function(e){var n;return"top"==e&&("desktop"===A&&(n="linked"===t.marginType?t.margin:t.marginTop),"tablet"===A&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginTopTablet),"mobile"===A&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginTopMobile)),"right"==e&&("desktop"===A&&(n="linked"===t.marginType?t.margin:t.marginRight),"tablet"===A&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginRightTablet),"mobile"===A&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginRightMobile)),"bottom"==e&&("desktop"===A&&(n="linked"===t.marginType?t.margin:t.marginBottom),"tablet"===A&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginBottomTablet),"mobile"===A&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginBottomMobile)),"left"==e&&("desktop"===A&&(n="linked"===t.marginType?t.margin:t.marginLeft),"tablet"===A&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginLeftTablet),"mobile"===A&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginLeftMobile)),n},$=function(){n({backgroundImageID:"",backgroundImageURL:""})},ee={top:"borderTop",right:"borderRight",bottom:"borderBottom",left:"borderLeft"},te=function(e){var n;return"top"==e&&(n="linked"===t.borderType?t.border:t.borderTop),"right"==e&&(n="linked"===t.borderType?t.border:t.borderRight),"bottom"==e&&(n="linked"===t.borderType?t.border:t.borderBottom),"left"==e&&(n="linked"===t.borderType?t.border:t.borderLeft),n},ne={top:"borderRadiusTop",right:"borderRadiusRight",bottom:"borderRadiusBottom",left:"borderRadiusLeft"},ae=function(e){var n;return"top"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusTop),"right"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusRight),"bottom"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusBottom),"left"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusLeft),n};return wp.element.createElement(C,null,wp.element.createElement(R,{className:"wp-block-themeisle-blocks-advanced-columns-header-panel"},wp.element.createElement(M,{className:b()("header-tab",{"is-selected":"layout"===p}),onClick:function(){return m("layout")}},wp.element.createElement("span",null,wp.element.createElement(O,{icon:"editor-table"}),T("Layout"))),wp.element.createElement(M,{className:b()("header-tab",{"is-selected":"style"===p}),onClick:function(){return m("style")}},wp.element.createElement("span",null,wp.element.createElement(O,{icon:"admin-customizer"}),T("Style"))),wp.element.createElement(M,{className:b()("header-tab",{"is-selected":"advanced"===p}),onClick:function(){return m("advanced")}},wp.element.createElement("span",null,wp.element.createElement(O,{icon:"admin-generic"}),T("Advanced")))),"layout"===p&&wp.element.createElement(H,null,wp.element.createElement(R,{title:T("Spacing")},1<r.innerBlocks.length&&wp.element.createElement(L,{label:T("Column Width"),value:Number(t.columnWidth),onChange:function(e){var t=e||10,a=Number(F.current)-t+Number(V.current);F.current=t,V.current=a,n({columnWidth:t.toFixed(2)}),i(G.current,{columnWidth:a.toFixed(2)})},min:10,max:Number(t.columnWidth)+Number(V.current)-10}),wp.element.createElement(h.a,{label:"Padding",view:u,changeViewType:E},wp.element.createElement(g.a,{type:D,min:0,max:500,changeType:function(e){"desktop"===u&&n({paddingType:e}),"tablet"===u&&n({paddingTypeTablet:e}),"mobile"===u&&n({paddingTypeMobile:e})},onChange:function(e,a){"desktop"===u&&("linked"===t.paddingType?n({padding:a}):n(v({},W[e],a))),"tablet"===u&&("linked"===t.paddingTypeTablet?n({paddingTablet:a}):n(v({},q[e],a))),"mobile"===u&&("linked"===t.paddingTypeMobile?n({paddingMobile:a}):n(v({},Z[e],a)))},options:[{label:T("Top"),type:"top",value:U("top")},{label:T("Right"),type:"right",value:U("right")},{label:T("Bottom"),type:"bottom",value:U("bottom")},{label:T("Left"),type:"left",value:U("left")}]})),wp.element.createElement(h.a,{label:"Margin",view:A,changeViewType:j},wp.element.createElement(g.a,{type:Q,min:-500,max:500,changeType:function(e){"desktop"===A&&n({marginType:e}),"tablet"===A&&n({marginTypeTablet:e}),"mobile"===A&&n({marginTypeMobile:e})},onChange:function(e,a){"desktop"===A&&("linked"===t.marginType?n({margin:a}):n(v({},K[e],a))),"tablet"===A&&("linked"===t.marginTypeTablet?n({marginTablet:a}):n(v({},J[e],a))),"mobile"===A&&("linked"===t.marginTypeMobile?n({marginMobile:a}):n(v({},Y[e],a)))},options:[{label:T("Top"),type:"top",value:X("top")},{label:T("Right"),type:"right",value:X("right")},{label:T("Bottom"),type:"bottom",value:X("bottom")},{label:T("Left"),type:"left",value:X("left")}]}))))||"style"===p&&wp.element.createElement(H,null,wp.element.createElement(R,{title:T("Background Settings"),className:"wp-block-themeisle-image-container"},wp.element.createElement(f.default,{label:T("Background Type"),backgroundType:t.backgroundType,changeBackgroundType:function(e){n({backgroundType:e})}}),"color"===t.backgroundType&&wp.element.createElement(H,null,wp.element.createElement("p",null,T("Background Color")),wp.element.createElement(x,{label:"Background Color",value:t.backgroundColor,onChange:function(e){n({backgroundColor:e})}}))||"image"===t.backgroundType&&(t.backgroundImageURL?wp.element.createElement(H,null,wp.element.createElement("div",{className:"wp-block-themeisle-image-container-body"},wp.element.createElement("div",{className:"wp-block-themeisle-image-container-area"},wp.element.createElement("div",{className:"wp-block-themeisle-image-container-holder",style:{backgroundImage:"url('".concat(t.backgroundImageURL,"')")}}),wp.element.createElement("div",{className:"wp-block-themeisle-image-container-delete",onClick:$},wp.element.createElement(O,{icon:"trash"}),wp.element.createElement("span",null,T("Remove Image"))))),wp.element.createElement(M,{isDefault:!0,className:"wp-block-themeisle-image-container-delete-button",onClick:$},T("Change or Remove Image")),wp.element.createElement(w.a,{label:"Background Settings"},wp.element.createElement(z,{label:T("Background Attachment"),value:t.backgroundAttachment,options:[{label:"Scroll",value:"scroll"},{label:"Fixed",value:"fixed"},{label:"Local",value:"local"}],onChange:function(e){n({backgroundAttachment:e})}}),wp.element.createElement(z,{label:T("Background Position"),value:t.backgroundPosition,options:[{label:"Default",value:"top left"},{label:"Top Left",value:"top left"},{label:"Top Center",value:"top center"},{label:"Top Right",value:"top right"},{label:"Center Left",value:"center left"},{label:"Center Center",value:"center center"},{label:"Center Right",value:"center right"},{label:"Bottom Left",value:"bottom left"},{label:"Bottom Center",value:"bottom center"},{label:"Bottom Right",value:"bottom right"}],onChange:function(e){n({backgroundPosition:e})}}),wp.element.createElement(z,{label:T("Background Repeat"),value:t.backgroundRepeat,options:[{label:"Repeat",value:"repeat"},{label:"No-repeat",value:"no-repeat"}],onChange:function(e){n({backgroundRepeat:e})}}),wp.element.createElement(z,{label:T("Background Size"),value:t.backgroundSize,options:[{label:"Auto",value:"auto"},{label:"Cover",value:"cover"},{label:"Contain",value:"contain"}],onChange:function(e){n({backgroundSize:e})}}))):wp.element.createElement(S,{icon:"format-image",labels:{title:T("Background Image"),name:T("an image")},value:t.backgroundImageID,onSelect:function(e){n({backgroundImageID:e.id,backgroundImageURL:e.url})},accept:"image/*",allowedTypes:["image"]}))||"gradient"===t.backgroundType&&wp.element.createElement(y.a,{label:"Background Gradient",value:{firstColor:t.backgroundGradientFirstColor,firstLocation:t.backgroundGradientFirstLocation,secondColor:t.backgroundGradientSecondColor,secondLocation:t.backgroundGradientSecondLocation,type:t.backgroundGradientType,angle:t.backgroundGradientAngle,position:t.backgroundGradientPosition},onChange:function(e,t,a,l,o,r,i){n({backgroundGradientFirstColor:e,backgroundGradientFirstLocation:t,backgroundGradientSecondColor:a,backgroundGradientSecondLocation:l,backgroundGradientType:o,backgroundGradientAngle:r,backgroundGradientPosition:i})}})),wp.element.createElement(R,{title:T("Border"),className:"wp-block-themeisle-border-container",initialOpen:!1},wp.element.createElement(g.a,{label:T("Border Width"),type:t.borderType,min:0,max:500,changeType:function(e){n({borderType:e})},onChange:function(e,a){"linked"===t.borderType?n({border:a}):n(v({},ee[e],a))},options:[{label:T("Top"),type:"top",value:te("top")},{label:T("Right"),type:"right",value:te("right")},{label:T("Bottom"),type:"bottom",value:te("bottom")},{label:T("Left"),type:"left",value:te("left")}]}),wp.element.createElement(H,null,wp.element.createElement("p",null,T("Border Color")),wp.element.createElement(x,{label:"Border Color",value:t.borderColor,onChange:function(e){n({borderColor:e})}})),wp.element.createElement(g.a,{label:T("Border Radius"),type:t.borderRadiusType,min:0,max:500,changeType:function(e){n({borderRadiusType:e})},onChange:function(e,a){"linked"===t.borderRadiusType?n({borderRadius:a}):n(v({},ne[e],a))},options:[{label:T("Top"),type:"top",value:ae("top")},{label:T("Right"),type:"right",value:ae("right")},{label:T("Bottom"),type:"bottom",value:ae("bottom")},{label:T("Left"),type:"left",value:ae("left")}]}),wp.element.createElement(N,{label:"Box Shadow",checked:t.boxShadow,onChange:function(){n({boxShadow:!t.boxShadow})}}),t.boxShadow&&wp.element.createElement(H,null,wp.element.createElement(H,null,wp.element.createElement("p",null,T("Shadow Color")),wp.element.createElement(x,{label:"Shadow Color",value:t.boxShadowColor,onChange:function(e){n({boxShadowColor:e})}})),wp.element.createElement(w.a,{label:"Shadow Properties"},wp.element.createElement(L,{label:T("Opacity"),value:t.boxShadowColorOpacity,onChange:function(e){n({boxShadowColorOpacity:e})},min:0,max:100}),wp.element.createElement(L,{label:T("Blur"),value:t.boxShadowBlur,onChange:function(e){n({boxShadowBlur:e})},min:0,max:100}),wp.element.createElement(L,{label:T("Spread"),value:t.boxShadowSpread,onChange:function(e){n({boxShadowSpread:e})},min:-100,max:100}),wp.element.createElement(L,{label:T("Horizontal"),value:t.boxShadowHorizontal,onChange:function(e){n({boxShadowHorizontal:e})},min:-100,max:100}),wp.element.createElement(L,{label:T("Vertical"),value:t.boxShadowVertical,onChange:function(e){n({boxShadowVertical:e})},min:-100,max:100})))))||"advanced"===p&&wp.element.createElement(R,{title:T("Section Settings")},wp.element.createElement(z,{label:T("HTML Tag"),value:t.columnsHTMLTag,options:[{label:"Default (div)",value:"div"},{label:"section",value:"section"},{label:"header",value:"header"},{label:"footer",value:"footer"},{label:"article",value:"article"},{label:"main",value:"main"}],onChange:function(e){n({columnsHTMLTag:e})}})))};function F(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function G(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function V(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?V(Object(n),!0).forEach((function(t){W(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function W(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var q=lodash.isEqual,Z=wp.components.ResizableBox,U=wp.compose.compose,Q=wp.data,K=Q.withDispatch,J=Q.withSelect,Y=wp.blockEditor.InnerBlocks,X=wp.element,$=X.Fragment,ee=X.useEffect,te=X.useState,ne=wp.viewport.withViewportMatch,ae=[],le=U(K((function(e){return{updateBlockAttributes:e("core/block-editor").updateBlockAttributes}})),J((function(e,t){var n=t.clientId,a=e("core/block-editor"),l=a.getAdjacentBlockClientId,o=a.getBlock,r=a.getBlockRootClientId,i=o(n),c=l(n),d=o(c),p=r(n);return{adjacentBlockClientId:c,adjacentBlock:d,parentClientId:p,parentBlock:o(p),hasInnerBlocks:!(!i||!i.innerBlocks.length)}})),ne({isLarger:">= large",isLarge:"<= large",isSmall:">= small",isSmaller:"<= small"}))((function(e){var t=e.attributes,n=e.setAttributes,a=e.className,o=e.isSelected,i=e.clientId,c=e.name,d=e.toggleSelection,p=e.updateBlockAttributes,u=e.adjacentBlockClientId,b=e.adjacentBlock,g=e.parentClientId,h=e.parentBlock,f=e.hasInnerBlocks,y=e.isLarger,w=e.isLarge,v=e.isSmall,k=e.isSmaller;ee((function(){T()}),[]);var T=function(){var e=window.themeisleGutenberg.blockIDs?window.themeisleGutenberg.blockIDs:[];if(void 0===t.id){var a,o="wp-block-themeisle-blocks-advanced-column-".concat(i.substr(0,8));void 0!==(window.themeisleGutenberg.globalDefaults?window.themeisleGutenberg.globalDefaults:void 0)&&(q(m.a[c],window.themeisleGutenberg.globalDefaults[c])||(a=D({},window.themeisleGutenberg.globalDefaults[c]),Object.keys(a).map((function(e){if(t[e]!==a[e]&&void 0!==l[e].default&&t[e]!==l[e].default)return delete a[e]})))),n(D({},a,{id:o})),ae.push(o),e.push(o)}else if(ae.includes(t.id)){var r="wp-block-themeisle-blocks-advanced-column-".concat(i.substr(0,8));n({id:r}),ae.push(r)}else ae.push(t.id),e.push(t.id);window.themeisleGutenberg.blockIDs=G(e)},E=F(te(0),2),x=E[0],C=E[1],S=F(te(0),2),B=S[0],M=S[1],O=y&&!w&&v&&!k,R=!y&&!w&&v&&!k,N=!(y||w||v||k);void 0===t.columnWidth&&h.innerBlocks.map((function(e,t){if(i===e.clientId){var n=h.attributes.columns,a=h.attributes.layout;p(i,{columnWidth:s.a[n][a][t]})}}));var L=document.getElementById("block-".concat(i));null!==L&&(L.style.flexBasis=O?"".concat(t.columnWidth,"%"):"");var z,A,H,P,_,I,V=t.columnsHTMLTag;(O&&(z={paddingTop:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingTop,"px"),paddingRight:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingRight,"px"),paddingBottom:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingBottom,"px"),paddingLeft:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingLeft,"px"),marginTop:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginTop,"px"),marginRight:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginRight,"px"),marginBottom:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginBottom,"px"),marginLeft:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginLeft,"px")}),R&&(z={paddingTop:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingTopTablet,"px"),paddingRight:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingRightTablet,"px"),paddingBottom:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingBottomTablet,"px"),paddingLeft:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingLeftTablet,"px"),marginTop:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginTopTablet,"px"),marginRight:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginRightTablet,"px"),marginBottom:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginBottomTablet,"px"),marginLeft:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginLeftTablet,"px")}),N&&(z={paddingTop:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingTopMobile,"px"),paddingRight:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingRightMobile,"px"),paddingBottom:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingBottomMobile,"px"),paddingLeft:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingLeftMobile,"px"),marginTop:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginTopMobile,"px"),marginRight:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginRightMobile,"px"),marginBottom:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginBottomMobile,"px"),marginLeft:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginLeftMobile,"px")}),"color"===t.backgroundType&&(A={background:t.backgroundColor}),"image"===t.backgroundType&&(A={backgroundImage:"url( '".concat(t.backgroundImageURL,"' )"),backgroundAttachment:t.backgroundAttachment,backgroundPosition:t.backgroundPosition,backgroundRepeat:t.backgroundRepeat,backgroundSize:t.backgroundSize}),"gradient"===t.backgroundType)&&(I="linear"===t.backgroundGradientType?"".concat(t.backgroundGradientAngle,"deg"):"at ".concat(t.backgroundGradientPosition),(t.backgroundGradientFirstColor||t.backgroundGradientSecondColor)&&(A={background:"".concat(t.backgroundGradientType,"-gradient( ").concat(I,", ").concat(t.backgroundGradientFirstColor||"rgba( 0, 0, 0, 0 )"," ").concat(t.backgroundGradientFirstLocation,"%, ").concat(t.backgroundGradientSecondColor||"rgba( 0, 0, 0, 0 )"," ").concat(t.backgroundGradientSecondLocation,"% )")}));"linked"===t.borderType&&(H={borderWidth:"".concat(t.border,"px"),borderStyle:"solid",borderColor:t.borderColor}),"unlinked"===t.borderType&&(H={borderTopWidth:"".concat(t.borderTop,"px"),borderRightWidth:"".concat(t.borderRight,"px"),borderBottomWidth:"".concat(t.borderBottom,"px"),borderLeftWidth:"".concat(t.borderLeft,"px"),borderStyle:"solid",borderColor:t.borderColor}),"linked"===t.borderRadiusType&&(P={borderRadius:"".concat(t.borderRadius,"px")}),"unlinked"===t.borderRadiusType&&(P={borderTopLeftRadius:"".concat(t.borderRadiusTop,"px"),borderTopRightRadius:"".concat(t.borderRadiusRight,"px"),borderBottomRightRadius:"".concat(t.borderRadiusBottom,"px"),borderBottomLeftRadius:"".concat(t.borderRadiusLeft,"px")}),!0===t.boxShadow&&(_={boxShadow:"".concat(t.boxShadowHorizontal,"px ").concat(t.boxShadowVertical,"px ").concat(t.boxShadowBlur,"px ").concat(t.boxShadowSpread,"px ").concat(r()(t.boxShadowColor?t.boxShadowColor:"#000000",t.boxShadowColorOpacity))});var W=D({},z,{},A,{},H,{},P,{},_);return wp.element.createElement($,null,wp.element.createElement(j,{attributes:t,setAttributes:n,isSelected:o,clientId:i,adjacentBlock:b,parentBlock:h,updateBlockAttributes:p,adjacentBlockClientId:u}),wp.element.createElement(Z,{className:"block-library-spacer__resize-container wp-themeisle-block-advanced-column-resize-container",enable:{right:!!u},handleWrapperClass:"wp-themeisle-block-advanced-column-resize-container-handle",onResizeStart:function(){var e=document.querySelector("#block-".concat(i," .wp-themeisle-block-advanced-column-resize-container-handle .components-resizable-box__handle")),n=document.createElement("div"),a=document.createElement("div");n.setAttribute("class","resizable-tooltip resizable-tooltip-left"),n.innerHTML="".concat(parseFloat(t.columnWidth).toFixed(0),"%"),e.appendChild(n),a.setAttribute("class","resizable-tooltip resizable-tooltip-right"),a.innerHTML="".concat(parseFloat(b.attributes.columnWidth).toFixed(0),"%"),e.appendChild(a),C(t.columnWidth),M(b.attributes.columnWidth),d(!1)},onResize:function(e,t,a,l){var o=document.getElementById("block-".concat(g)).getBoundingClientRect().width,r=l.width/o*100,i=parseFloat(x)+r,c=B-r,d=document.querySelector(".resizable-tooltip-left"),m=document.querySelector(".resizable-tooltip-right");10<=i&&10<=c&&(d.innerHTML="".concat(i.toFixed(0),"%"),m.innerHTML="".concat(c.toFixed(0),"%"),n({columnWidth:i.toFixed(2)}),p(u,{columnWidth:c.toFixed(2)}))},onResizeStop:function(){var e=document.querySelector(".resizable-tooltip-left"),t=document.querySelector(".resizable-tooltip-right");e.parentNode.removeChild(e),t.parentNode.removeChild(t),d(!0)}},wp.element.createElement(V,{className:a,id:t.id,style:W},wp.element.createElement(Y,{templateLock:!1,renderAppender:!f&&Y.ButtonBlockAppender}))))})),oe=wp.blockEditor.InnerBlocks,re=function(e){var t=e.attributes,n=e.className,a=t.columnsHTMLTag;return wp.element.createElement(a,{className:n,id:t.id},wp.element.createElement(oe.Content,null))},ie=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/advanced-column",{title:ie("Section Column"),description:ie("A single column within a Section block."),parent:["themeisle-blocks/advanced-columns"],icon:a.e,category:"themeisle-blocks",attributes:l,deprecated:p,supports:{inserter:!1,reusable:!1,html:!1},edit:le,save:re})},function(e,t,n){"use strict";n.r(t);var a=n(2),l=wp.i18n.__,o=wp.blockEditor.InnerBlocks,r=[["themeisle-blocks/advanced-heading",{content:l("Basic"),align:"center",tag:"h3",fontSize:24}],["themeisle-blocks/advanced-heading",{content:l("$9.99"),align:"center",tag:"h4",fontSize:36,fontFamily:"Roboto Slab",fontVariant:"normal"}],["themeisle-blocks/advanced-heading",{content:l("Per Month"),align:"center",tag:"p",fontSize:12,marginBottom:0}],["core/separator",{}],["themeisle-blocks/advanced-heading",{content:l("First Feature"),align:"center",tag:"p",fontSize:12,marginBottom:0}],["core/separator",{}],["themeisle-blocks/advanced-heading",{content:l("Second Feature"),align:"center",tag:"p",fontSize:12,marginBottom:0}],["core/separator",{}],["themeisle-blocks/advanced-heading",{content:l("Last Feature"),align:"center",tag:"p",fontSize:12,marginBottom:0}],["core/separator",{}],["themeisle-blocks/button-group",{align:"center",buttons:1,data:[{text:l("Buy Now"),newTab:!1,color:"#ffffff",background:"#32373c",hoverColor:"#ffffff",hoverBackground:"#444a50",borderSize:0,borderRadius:3,boxShadow:!1,boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",paddingTopBottom:12,paddingLeftRight:24}]}]],i=function(e){var t=e.className;return wp.element.createElement("div",{className:t},wp.element.createElement(o,{template:r}))},c=wp.blockEditor.InnerBlocks,d=function(e){var t=e.className;return wp.element.createElement("div",{className:t},wp.element.createElement(c.Content,null))},p=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/pricing",{title:p("Pricing"),description:p("Pricing tables are a critical part in showcasing your services, prices and overall offerings."),icon:a.o,category:"themeisle-blocks",keywords:["pricing","table","money"],edit:i,save:d})},function(e,t,n){"use strict";n.r(t);var a=n(2),l=wp.i18n.__,o=wp.blockEditor.InnerBlocks,r=[["themeisle-blocks/font-awesome-icons",{fontSize:62,prefix:"fab",icon:"angellist"}],["themeisle-blocks/advanced-heading",{content:l("Basic"),align:"center",tag:"h4",marginBottom:20}],["themeisle-blocks/advanced-heading",{content:l("Lorem ipsum dolor sit amet elit do, consectetur adipiscing, sed eiusmod tempor incididunt ut labore et dolore magna aliqua."),align:"center",color:"#999999",tag:"p",fontSize:14,marginBottom:20}],["themeisle-blocks/button-group",{align:"center",buttons:1,data:[{text:l("Know More"),newTab:!1,color:"#ffffff",background:"#32373c",hoverColor:"#ffffff",hoverBackground:"#444a50",borderSize:0,borderRadius:3,boxShadow:!1,boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",paddingTopBottom:12,paddingLeftRight:24}]}]],i=function(e){var t=e.className;return wp.element.createElement("div",{className:t},wp.element.createElement(o,{template:r}))},c=wp.blockEditor.InnerBlocks,d=function(e){var t=e.className;return wp.element.createElement("div",{className:t},wp.element.createElement(c.Content,null))},p=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/service",{title:p("Service"),description:p("Use this Service block to showcase services your website offers."),icon:a.p,category:"themeisle-blocks",keywords:["services","icon","features"],edit:i,save:d})},function(e,t,n){"use strict";n.r(t);var a=n(2),l=wp.i18n.__,o=wp.blockEditor.InnerBlocks,r=[["core/image",{align:"center"}],["themeisle-blocks/advanced-heading",{content:l("John Doe"),align:"center",fontSize:24,tag:"h3",marginTop:25,marginBottom:10,marginTopTablet:25,marginTopMobile:25}],["themeisle-blocks/advanced-heading",{content:l("Jedi Master"),align:"center",fontSize:14,tag:"h4",marginTop:10,marginBottom:10}],["themeisle-blocks/advanced-heading",{content:l('"What is the point of being alive if you don’t at least try to do something remarkable?"'),align:"center",color:"#999999",tag:"p",fontSize:14,marginTop:10,marginBottom:20}]],i=function(e){var t=e.className;return wp.element.createElement("div",{className:t},wp.element.createElement(o,{template:r}))},c=wp.blockEditor.InnerBlocks,d=function(e){var t=e.className;return wp.element.createElement("div",{className:t},wp.element.createElement(c.Content,null))},p=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/testimonials",{title:p("Testimonials"),description:p("Display kudos from customers and clients and display them on your website."),icon:a.r,category:"themeisle-blocks",keywords:["testimonials","quotes","business"],edit:i,save:d})},,,function(e,t,n){n(37),n(94),n(100),n(95),n(93),n(96),n(91),n(99),n(26),n(98),n(30),n(29),n(14),n(24),n(25),n(13),n(79),n(97),n(92),n(87),n(31),n(32),e.exports=n(33)},function(e,t,n){"use strict";n.r(t);n(38);n.p=window.themeisleGutenberg.packagePath},,,,,,,function(e,t){function n(e,t,n,a,l,o,r){try{var i=e[o](r),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(a,l)}function a(e){return function(){var t=this,a=arguments;return new Promise((function(l,o){var r=e.apply(t,a);function i(e){n(r,l,o,i,c,"next",e)}function c(e){n(r,l,o,i,c,"throw",e)}i(void 0)}))}}var l=lodash.debounce,o=wp.apiFetch,r=wp.data,i=r.select,c=r.subscribe,d=l(a(regeneratorRuntime.mark((function e(){var t,n,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i("core/editor"),n=t.getCurrentPostId,a=n(),e.next=4,o({path:"themeisle-gutenberg-blocks/v1/save_post_meta/".concat(a),method:"POST"});case 4:case"end":return e.stop()}}),e)}))),1e3),p={};c((function(){var e=i("core/editor"),t=e.isCurrentPostPublished,n=e.isSavingPost,a=e.isPublishingPost,l=e.isAutosavingPost,r=e.__experimentalGetReusableBlocks,c=e.__experimentalIsSavingReusableBlock,m=l(),s=a(),u=n(),b=r(),g=t();b.map((function(e){if(e){var t=(n=e.id,c(n));t&&!e.isTemporary&&(p[e.id]={id:e.id,isSaving:!0}),t||e.isTemporary||!p[e.id]||e.id===p[e.id].id&&!t&&p[e.id].isSaving&&(p[e.id].isSaving=!1,o({path:"themeisle-gutenberg-blocks/v1/save_block_meta/".concat(e.id),method:"POST"}))}var n})),!(s||g&&u)||m||status||d()}))},,function(e,t,n){},,function(e,t,n){},function(e,t){var n=wp.i18n.__,a=wp.richText,l=a.registerFormatType,o=a.toggleFormat,r=wp.blockEditor,i=r.RichTextShortcut,c=r.RichTextToolbarButton,d=wp.element.Fragment,p="themeisle-blocks/mark";l(p,{name:p,title:n("Highlight"),tagName:"mark",className:null,edit:function(e){var t=e.isActive,a=e.value,l=e.onChange,r=function(){return l(o(a,{type:p}))};return wp.element.createElement(d,null,wp.element.createElement(i,{type:"primary",character:"m",onUse:r}),wp.element.createElement(c,{icon:"admin-customizer",title:n("Highlight"),onClick:r,isActive:t,shortcutType:"access",shortcutCharacter:"m"}))}})},,,,,,function(e,t,n){},,function(e,t,n){},,function(e,t,n){},,,,function(e,t,n){},function(e,t,n){},,,,,function(e,t,n){},,,,,,,,,,function(e,t,n){"use strict";n.r(t);n(80),n(81),n(29),n(30)},function(e,t,n){},,function(e,t,n){},,function(e,t,n){},function(e,t,n){},,function(e,t,n){"use strict";n.r(t);n(31),n(32),n(33)},,,,function(e,t,n){"use strict";n.r(t);n(59),n(60);var a=n(2),l={id:{type:"string"},style:{type:"string",default:"standard"},location:{type:"string",default:"La Sagrada Familia, Barcelona, Spain"},latitude:{type:"string"},longitude:{type:"string"},type:{type:"string",default:"roadmap"},zoom:{type:"number",default:15},height:{type:"number",default:400},draggable:{type:"boolean",default:!0},mapTypeControl:{type:"boolean",default:!0},zoomControl:{type:"boolean",default:!0},fullscreenControl:{type:"boolean",default:!0},streetViewControl:{type:"boolean",default:!0},markers:{type:"array",default:[]}},o=n(0),r=n.n(o),i=n(103),c=wp.i18n.__,d=wp.components,p=d.Button,m=d.ExternalLink,s=d.Placeholder,u=d.Spinner,b=d.TextControl,g=function(e){var t=e.className,n=e.api,a=e.isAPILoaded,l=e.isAPISaved,o=e.isSaving,r=e.changeAPI,i=e.saveAPIKey;return a?l?void 0:wp.element.createElement(s,{icon:"admin-site",label:c("Google Maps"),instructions:c("A Google Maps API key is required, please enter one below."),className:t},wp.element.createElement("div",{className:"components-placeholder__actions"},wp.element.createElement(b,{type:"text",placeholder:c("Google Maps API Key"),value:n,className:"components-placeholder__input",onChange:r}),wp.element.createElement(p,{isLarge:!0,isDefault:!0,type:"submit",onClick:i,isBusy:o,disabled:""===n},c("Save"))),wp.element.createElement("div",{className:"components-placeholder__learn-more"},c("You need to activate Maps and Places API.")," ",wp.element.createElement(m,{href:"https://developers.google.com/maps/documentation/javascript/get-api-key"},c("Need an API key? Get one here.")))):wp.element.createElement(s,{className:"wp-themeisle-block-spinner"},wp.element.createElement(u,null),c("Loading…"))},h=n(11),f=wp.i18n.__,y=wp.components,w=y.BaseControl,v=y.Button,k=y.ExternalLink,T=y.IconButton,E=y.SelectControl,x=y.TextControl,C=y.TextareaControl,S=wp.element.useRef,B=function(e){var t=e.marker,n=e.isOpen,a=e.isPlaceAPIAvailable,l=e.openMarker,o=e.removeMarker,i=e.changeMarkerProp,c=S(null);return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-google-map-marker"},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-google-map-marker-title-area"},wp.element.createElement(v,{className:"wp-block-themeisle-blocks-google-map-marker-title",onClick:function(){return l(t.id)}},t.title||f("Custom Marker")),wp.element.createElement(T,{icon:"no-alt",label:f("Remove Marker"),className:"wp-block-themeisle-blocks-google-map-marker-remove",onClick:function(){return o(t.id)}})),wp.element.createElement("div",{className:r()("wp-block-themeisle-blocks-google-map-marker-control-area",{opened:t.id===n})},wp.element.createElement(w,{label:f("Location"),id:"themeisle-location-search-".concat(t.id)},wp.element.createElement("input",{type:"text",id:"themeisle-location-search-".concat(t.id),placeholder:f("Enter a location…"),value:t.location,className:"wp-block-themeisle-blocks-google-map-search",ref:c,onFocus:function(){var e=document.getElementsByClassName("pac-container");Object.keys(e).forEach((function(t){return e[t].remove()}));var n=new google.maps.places.SearchBox(c.current);n.addListener("places_changed",(function(){var e=n.getPlaces();e&&0<e.length&&e.forEach((function(e){var n=e.formatted_address||e.name,a=e.geometry.location.lat(),l=e.geometry.location.lng();i(t.id,"location",n),i(t.id,"latitude",a),i(t.id,"longitude",l)}))}))},onChange:function(e){return i(t.id,"location",e.target.value)},disabled:!a}),!a&&wp.element.createElement("p",null,f("To enable locations earch, please ensure Places API is activated in the Google Developers Console.")+" ",wp.element.createElement(k,{href:"https://developers.google.com/places/web-service/intro"},f("More info.")))),wp.element.createElement(x,{label:f("Latitude"),type:"text",value:t.latitude,onChange:function(e){return i(t.id,"latitude",e)}}),wp.element.createElement(x,{label:f("Longitude"),type:"text",value:t.longitude,onChange:function(e){return i(t.id,"longitude",e)}}),wp.element.createElement(E,{label:f("Map Icon"),value:t.icon||"https://maps.google.com/mapfiles/ms/icons/red-dot.png",options:[{label:f("Red"),value:"https://maps.google.com/mapfiles/ms/icons/red-dot.png"},{label:f("Blue"),value:"https://maps.google.com/mapfiles/ms/icons/blue-dot.png"},{label:f("Yellow"),value:"https://maps.google.com/mapfiles/ms/icons/yellow-dot.png"},{label:f("Green"),value:"https://maps.google.com/mapfiles/ms/icons/green-dot.png"},{label:f("Orange"),value:"https://maps.google.com/mapfiles/ms/icons/orange-dot.png"}],onChange:function(e){return i(t.id,"icon",e)}}),wp.element.createElement(x,{label:f("Title"),type:"text",value:t.title,onChange:function(e){return i(t.id,"title",e)}}),wp.element.createElement(C,{label:f("Description"),type:"text",value:t.description,onChange:function(e){return i(t.id,"description",e)}})))};function M(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var O=wp.i18n.__,R=wp.components.Button,N=wp.element,L=N.Fragment,z=N.useEffect,A=N.useState,H=function(e){var t=e.initialOpen,n=e.markers,a=e.isPlaceAPIAvailable,l=e.addMarker,o=e.removeMarker,r=e.changeMarkerProp;z((function(){!1!==t&&d(t)}),[t]);var i=M(A(null),2),c=i[0],d=i[1],p=function(e){c===e&&(e=null),d(e)};return wp.element.createElement(L,null,wp.element.createElement("div",{className:"wp-block-themeisle-blocks-google-map-marker-group"},n.map((function(e){return wp.element.createElement(B,{marker:e,isOpen:c,isPlaceAPIAvailable:a,openMarker:p,removeMarker:o,changeMarkerProp:r})}))),wp.element.createElement(R,{isDefault:!0,isLarge:!0,className:"wp-block-themeisle-blocks-google-map-marker-add",onClick:l},O("Add Marker")))},P=wp.i18n.__,_=wp.components,I=_.BaseControl,j=_.Button,F=_.ExternalLink,G=_.PanelBody,V=_.RangeControl,D=_.SelectControl,W=_.TextControl,q=_.ToggleControl,Z=wp.blockEditor.InspectorControls,U=wp.element.useRef,Q=function(e){var t=e.attributes,n=e.setAttributes,a=e.map,l=e.changeStyle,o=e.isPlaceAPIAvailable,r=e.isMarkerOpen,i=e.setMarkerOpen,c=e.removeMarker,d=e.changeMarkerProp,p=e.addMarkerManual,m=e.api,s=e.isSaving,u=e.changeAPI,b=e.saveAPIKey,g=U(null);return wp.element.createElement(Z,null,wp.element.createElement(G,{title:P("Styles"),initialOpen:!1},wp.element.createElement(h.b,{value:t.style,options:[{label:P("Standard"),value:"standard",image:themeisleGutenberg.assetsPath+"/icons/map-standard.png"},{label:P("Silver"),value:"silver",image:themeisleGutenberg.assetsPath+"/icons/map-silver.png"},{label:P("Retro"),value:"retro",image:themeisleGutenberg.assetsPath+"/icons/map-retro.png"},{label:P("Dark"),value:"dark",image:themeisleGutenberg.assetsPath+"/icons/map-dark.png"},{label:P("Night"),value:"night",image:themeisleGutenberg.assetsPath+"/icons/map-night.png"},{label:P("Aubergine"),value:"aubergine",image:themeisleGutenberg.assetsPath+"/icons/map-aubergine.png"}],onChange:l})),wp.element.createElement(G,{title:P("Location")},wp.element.createElement(I,{label:P("Location"),id:"wp-block-themeisle-blocks-google-map-search"},wp.element.createElement("input",{type:"text",id:"wp-block-themeisle-blocks-google-map-search",placeholder:P("Enter a location…"),value:t.location,className:"wp-block-themeisle-blocks-google-map-search",ref:g,onFocus:function(){var e=document.getElementsByClassName("pac-container");Object.keys(e).forEach((function(t){return e[t].remove()}));var t=new google.maps.places.SearchBox(g.current);t.addListener("places_changed",(function(){var e=t.getPlaces();e&&0<e.length&&e.forEach((function(e){var t=e.geometry.location.lat(),l=e.geometry.location.lng(),o=new google.maps.LatLng(t,l);a.setCenter(o),n({location:e.formatted_address||e.name,latitude:t.toString(),longitude:l.toString()})}))}))},onChange:function(e){n({location:e.target.value})},disabled:!o}),!o&&wp.element.createElement("p",null,P("To enable locations earch, please ensure Places API is activated in the Google Developers Console.")+" ",wp.element.createElement(F,{href:"https://developers.google.com/places/web-service/intro"},P("More info.")))),wp.element.createElement(W,{label:P("Latitude"),type:"text",placeholder:P("Enter latitude…"),value:t.latitude,onChange:function(e){n({latitude:e.toString()});var l=Number(e),o=t.longitude,r=new google.maps.LatLng(l,o);a.setCenter(r)}}),wp.element.createElement(W,{label:P("Longitude"),type:"text",placeholder:P("Enter longitude"),value:t.longitude,onChange:function(e){n({longitude:e.toString()});var l=t.latitude,o=Number(e),r=new google.maps.LatLng(l,o);a.setCenter(r)}})),wp.element.createElement(G,{title:P("Positioning & Zooming"),initialOpen:!1},wp.element.createElement(D,{label:P("Map Type"),value:t.type,options:[{label:P("Road Map"),value:"roadmap"},{label:P("Satellite View"),value:"satellite"},{label:P("Hybrid"),value:"hybrid"},{label:P("Terrain"),value:"terrain"}],onChange:function(e){n({type:e}),a.setMapTypeId(google.maps.MapTypeId[e.toUpperCase()])}}),wp.element.createElement(V,{label:P("Map Zoom Level"),value:t.zoom,onChange:function(e){n({zoom:e}),a.setZoom(e)},min:0,max:20}),wp.element.createElement(V,{label:P("Map Height"),value:t.height,onChange:function(e){n({height:e})},min:100,max:1400})),wp.element.createElement(G,{title:P("Controls"),initialOpen:!1},wp.element.createElement(I,null,P("The following changes will not affect block preview during the editing process. You can click outside the block to see the changes take effect.")),wp.element.createElement(q,{label:"Draggable Map",checked:t.draggable,onChange:function(){n({draggable:!t.draggable})}}),wp.element.createElement(q,{label:"Map Type Control",checked:t.mapTypeControl,onChange:function(){n({mapTypeControl:!t.mapTypeControl})}}),wp.element.createElement(q,{label:"Zoom Control",checked:t.zoomControl,onChange:function(){n({zoomControl:!t.zoomControl})}}),wp.element.createElement(q,{label:"Full Screen Control",checked:t.fullscreenControl,onChange:function(){n({fullscreenControl:!t.fullscreenControl})}}),wp.element.createElement(q,{label:"Streen View Control",checked:t.streetViewControl,onChange:function(){n({streetViewControl:!t.streetViewControl})}})),wp.element.createElement(G,{title:P("Markers"),initialOpen:!1,opened:!1!==r||void 0,onToggle:function(){!1!==r&&i(!0)}},wp.element.createElement(H,{markers:t.markers,removeMarker:c,changeMarkerProp:d,addMarker:p,isPlaceAPIAvailable:o,initialOpen:r})),wp.element.createElement(G,{title:P("Global Settings"),initialOpen:!1},wp.element.createElement(W,{label:P("Google Maps API Key"),type:"text",placeholder:P("Google Maps API Key"),value:m,className:"components-placeholder__input",onChange:u,help:P("Changing the API key effects all Google Map Embed blocks. You will have to refresh the page after changing your API keys.")}),wp.element.createElement(j,{isLarge:!0,isDefault:!0,type:"submit",onClick:b,isBusy:s},P("Save API Key"))))};function K(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var J=wp.i18n.__,Y=wp.components,X=Y.BaseControl,$=Y.Button,ee=Y.ButtonGroup,te=Y.Modal,ne=Y.SelectControl,ae=Y.TextControl,le=Y.TextareaControl,oe=wp.element,re=oe.useEffect,ie=oe.useRef,ce=oe.useState,de=oe.Fragment,pe=function(e){var t=e.marker,n=e.isAdvanced,a=e.isPlaceAPIAvailable,l=e.addMarker,o=e.close;re((function(){d(t.id),s(t.location),g(t.title),y(t.icon),k(t.description),x(t.latitude),B(t.longitude)}),[t]);var r=ie(null),i=K(ce(t.id),2),c=i[0],d=i[1],p=K(ce(t.location),2),m=p[0],s=p[1],u=K(ce(t.title),2),b=u[0],g=u[1],h=K(ce(t.icon),2),f=h[0],y=h[1],w=K(ce(t.description),2),v=w[0],k=w[1],T=K(ce(t.latitude),2),E=T[0],x=T[1],C=K(ce(t.longitude),2),S=C[0],B=C[1];return wp.element.createElement(te,{title:J("Add Marker"),onRequestClose:o,shouldCloseOnClickOutside:!1},n&&wp.element.createElement(de,null,wp.element.createElement(X,{label:J("Location"),id:"themeisle-location-search-".concat(t.id)},wp.element.createElement("input",{type:"text",id:"themeisle-location-search-".concat(c),placeholder:J("Enter a location…"),value:m,className:"wp-block-themeisle-blocks-google-map-search",ref:r,onFocus:function(){var e=document.getElementsByClassName("pac-container");Object.keys(e).forEach((function(t){return e[t].remove()}));var t=new google.maps.places.SearchBox(r.current);t.addListener("places_changed",(function(){var e=t.getPlaces();e&&0<e.length&&e.forEach((function(e){var t=e.formatted_address||e.name,n=e.geometry.location.lat(),a=e.geometry.location.lng();s(t),x(n),B(a)}))}))},onChange:function(e){return s(e.target.value)},disabled:!a})),wp.element.createElement(ae,{label:J("Latitude"),type:"text",value:E,onChange:x}),wp.element.createElement(ae,{label:J("Longitude"),type:"text",value:S,onChange:B})),wp.element.createElement(ae,{label:J("Title"),type:"text",value:b,onChange:g}),wp.element.createElement(le,{label:J("Description"),type:"text",value:v,onChange:k}),wp.element.createElement(ne,{label:J("Map Icon"),value:f||"https://maps.google.com/mapfiles/ms/icons/red-dot.png",options:[{label:J("Red"),value:"https://maps.google.com/mapfiles/ms/icons/red-dot.png"},{label:J("Blue"),value:"https://maps.google.com/mapfiles/ms/icons/blue-dot.png"},{label:J("Yellow"),value:"https://maps.google.com/mapfiles/ms/icons/yellow-dot.png"},{label:J("Green"),value:"https://maps.google.com/mapfiles/ms/icons/green-dot.png"},{label:J("Orange"),value:"https://maps.google.com/mapfiles/ms/icons/orange-dot.png"}],onChange:y}),wp.element.createElement(ee,null,wp.element.createElement($,{isLarge:!0,isPrimary:!0,onClick:function(){return l(m,b,f,v,E,S)}},J("Add")),wp.element.createElement($,{isLarge:!0,isDefault:!0,onClick:o},J("Cancel"))))},me=wp.i18n.__,se=wp.components.Button,ue=wp.element,be=ue.Fragment,ge=ue.useEffect,he=function(e){var t=e.attributes,n=e.className,a=e.initMap,l=e.displayMap,o=e.isMapLoaded,i=e.selectMarker,c=e.isSelectingMarker;return ge((function(){l&&a()}),[l]),wp.element.createElement(be,null,wp.element.createElement("div",{id:t.id,className:r()(n,{"is-selecting-marker":c}),style:{height:t.height+"px"}}),o&&wp.element.createElement(se,{className:"wp-block-themeisle-blocks-google-map-marker-button",title:me("Add Button"),onClick:i},wp.element.createElement("span",{className:"dashicons dashicons-sticky"})))},fe={standard:[],silver:[{elementType:"geometry",stylers:[{color:"#f5f5f5"}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{elementType:"labels.text.stroke",stylers:[{color:"#f5f5f5"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#bdbdbd"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#eeeeee"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#e5e5e5"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#ffffff"}]},{featureType:"road.arterial",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#dadada"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"transit.line",elementType:"geometry",stylers:[{color:"#e5e5e5"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#eeeeee"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#c9c9c9"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]}],retro:[{elementType:"geometry",stylers:[{color:"#ebe3cd"}]},{elementType:"labels.text.fill",stylers:[{color:"#523735"}]},{elementType:"labels.text.stroke",stylers:[{color:"#f5f1e6"}]},{featureType:"administrative",elementType:"geometry.stroke",stylers:[{color:"#c9b2a6"}]},{featureType:"administrative.land_parcel",elementType:"geometry.stroke",stylers:[{color:"#dcd2be"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#ae9e90"}]},{featureType:"landscape.natural",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#93817c"}]},{featureType:"poi.park",elementType:"geometry.fill",stylers:[{color:"#a5b076"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#447530"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#f5f1e6"}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#fdfcf8"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#f8c967"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#e9bc62"}]},{featureType:"road.highway.controlled_access",elementType:"geometry",stylers:[{color:"#e98d58"}]},{featureType:"road.highway.controlled_access",elementType:"geometry.stroke",stylers:[{color:"#db8555"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#806b63"}]},{featureType:"transit.line",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"transit.line",elementType:"labels.text.fill",stylers:[{color:"#8f7d77"}]},{featureType:"transit.line",elementType:"labels.text.stroke",stylers:[{color:"#ebe3cd"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"water",elementType:"geometry.fill",stylers:[{color:"#b9d3c2"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#92998d"}]}],dark:[{elementType:"geometry",stylers:[{color:"#212121"}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{elementType:"labels.text.stroke",stylers:[{color:"#212121"}]},{featureType:"administrative",elementType:"geometry",stylers:[{color:"#757575"}]},{featureType:"administrative.country",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"administrative.land_parcel",stylers:[{visibility:"off"}]},{featureType:"administrative.locality",elementType:"labels.text.fill",stylers:[{color:"#bdbdbd"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#181818"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"poi.park",elementType:"labels.text.stroke",stylers:[{color:"#1b1b1b"}]},{featureType:"road",elementType:"geometry.fill",stylers:[{color:"#2c2c2c"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#8a8a8a"}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#373737"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#3c3c3c"}]},{featureType:"road.highway.controlled_access",elementType:"geometry",stylers:[{color:"#4e4e4e"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"transit",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#000000"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#3d3d3d"}]}],night:[{elementType:"geometry",stylers:[{color:"#242f3e"}]},{elementType:"labels.text.fill",stylers:[{color:"#746855"}]},{elementType:"labels.text.stroke",stylers:[{color:"#242f3e"}]},{featureType:"administrative.locality",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#263c3f"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#6b9a76"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#38414e"}]},{featureType:"road",elementType:"geometry.stroke",stylers:[{color:"#212a37"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#9ca5b3"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#746855"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#1f2835"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#f3d19c"}]},{featureType:"transit",elementType:"geometry",stylers:[{color:"#2f3948"}]},{featureType:"transit.station",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#17263c"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#515c6d"}]},{featureType:"water",elementType:"labels.text.stroke",stylers:[{color:"#17263c"}]}],aubergine:[{elementType:"geometry",stylers:[{color:"#1d2c4d"}]},{elementType:"labels.text.fill",stylers:[{color:"#8ec3b9"}]},{elementType:"labels.text.stroke",stylers:[{color:"#1a3646"}]},{featureType:"administrative.country",elementType:"geometry.stroke",stylers:[{color:"#4b6878"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#64779e"}]},{featureType:"administrative.province",elementType:"geometry.stroke",stylers:[{color:"#4b6878"}]},{featureType:"landscape.man_made",elementType:"geometry.stroke",stylers:[{color:"#334e87"}]},{featureType:"landscape.natural",elementType:"geometry",stylers:[{color:"#023e58"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#283d6a"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#6f9ba5"}]},{featureType:"poi",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"poi.park",elementType:"geometry.fill",stylers:[{color:"#023e58"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#3C7680"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#304a7d"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#98a5be"}]},{featureType:"road",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#2c6675"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#255763"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#b0d5ce"}]},{featureType:"road.highway",elementType:"labels.text.stroke",stylers:[{color:"#023e58"}]},{featureType:"transit",elementType:"labels.text.fill",stylers:[{color:"#98a5be"}]},{featureType:"transit",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"transit.line",elementType:"geometry.fill",stylers:[{color:"#283d6a"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#3a4762"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#0e1626"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#4e6d70"}]}]};function ye(e,t,n,a,l,o,r){try{var i=e[o](r),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(a,l)}function we(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function ve(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var ke=wp.i18n.__,Te=wp.components.ResizableBox,Ee=wp.element,xe=Ee.Fragment,Ce=Ee.useEffect,Se=Ee.useRef,Be=Ee.useState,Me=[],Oe=function(e){var t=e.attributes,n=e.setAttributes,a=e.className,l=e.clientId,o=e.isSelected,c=e.toggleSelection;Ce((function(){ee(),window.isMapLoaded=window.isMapLoaded||!1,window["removeMarker_".concat(l.substr(0,8))]=oe,m.current=document.createElement("script"),m.current.type="text/javascript",m.current.async=!0,m.current.defer=!0,m.current.id="themeisle-google-map-api-loading"}),[]),Ce((function(){!1!==x&&void 0!==window.google&&s.current.setOptions({mapTypeControl:!!o||t.mapTypeControl,zoomControl:!!o||t.zoomControl,fullscreenControl:!!o||t.fullscreenControl,streetViewControl:!!o||t.streetViewControl})}),[o]),Ce((function(){b.current=ve(t.markers)}),[t.markers]);var d=Se([]),p=Se(null),m=Se(null),s=Se(null),u=Se(null),b=Se(ve(t.markers)),f=we(Be(""),2),y=f[0],w=f[1],v=we(Be(!1),2),k=v[0],T=v[1],E=we(Be(!1),2),x=E[0],C=E[1],S=we(Be(!1),2),B=S[0],M=S[1],O=we(Be(!1),2),R=O[0],N=O[1],L=we(Be(!0),2),z=L[0],A=L[1],H=we(Be(!1),2),P=H[0],_=H[1],I=we(Be(!1),2),j=I[0],F=I[1],G=we(Be(!1),2),V=G[0],D=G[1],W=we(Be(!1),2),q=W[0],Z=W[1],U=we(Be(!1),2),K=U[0],J=U[1],Y=we(Be({}),2),X=Y[0],$=Y[1],ee=function(){var e,a=(e=regeneratorRuntime.mark((function e(){var a,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==t.id){e.next=7;break}return a="wp-block-themeisle-blocks-google-map-".concat(l.substr(0,8)),e.next=4,n({id:a});case 4:Me.push(a),e.next=15;break;case 7:if(!Me.includes(t.id)){e.next=14;break}return o="wp-block-themeisle-blocks-google-map-".concat(l.substr(0,8)),e.next=11,n({id:o});case 11:Me.push(o),e.next=15;break;case 14:Me.push(t.id);case 15:return e.next=17,wp.api.loadPromise.then((function(){p.current=new wp.api.models.Settings}));case 17:!1===Boolean(themeisleGutenberg.mapsAPI)?k||p.current.fetch().then((function(e){w(e.themeisle_google_map_block_api_key),T(!0),""!==e.themeisle_google_map_block_api_key&&(C(!0),te(e.themeisle_google_map_block_api_key))})):k||(w(themeisleGutenberg.mapsAPI),T(!0),C(!0),te(themeisleGutenberg.mapsAPI));case 18:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(a,l){var o=e.apply(t,n);function r(e){ye(o,a,l,r,i,"next",e)}function i(e){ye(o,a,l,r,i,"throw",e)}r(void 0)}))});return function(){return a.apply(this,arguments)}}(),te=function(e){window.isMapLoaded||(window.isMapLoaded=!0,m.current.onload=function(){document.getElementById("themeisle-google-map-api-loading").id="themeisle-google-map-api",_(!0)},m.current.src="https://maps.googleapis.com/maps/api/js?key=".concat(e,"&libraries=places&cache=").concat(Math.random()),document.head.appendChild(m.current)),document.getElementById("themeisle-google-map-api")&&_(!0)},ne=function(e,t,n,a){var o='<div class="wp-block-themeisle-blocks-map-overview"><h6 class="wp-block-themeisle-blocks-map-overview-title">'.concat(n,'</h6><div class="wp-block-themeisle-blocks-map-overview-content">').concat(a?"<p>".concat(a,"</p>"):"",'<a class="wp-block-themeisle-blocks-map-overview-delete" onclick="removeMarker_').concat(l.substr(0,8),"( '").concat(t,"' )\">").concat(ke("Delete Marker"),"</a></div></div>"),r=new google.maps.InfoWindow({content:o});e.addListener("click",(function(){u.current=r,r.open(s.current,e)})),google.maps.event.addListener(r,"domready",(function(){F(t)})),google.maps.event.addListener(r,"closeclick",(function(){F(!1)}))},ae=function(e){e.forEach((function(e){var t=e.latitude,n=e.longitude,a=new google.maps.LatLng(t,n),l=new google.maps.Marker({position:a,map:s.current,title:e.title,draggable:!0,icon:e.icon||"https://maps.google.com/mapfiles/ms/icons/red-dot.png"});google.maps.event.addListener(l,"dragend",(function(t){var n=t.latLng.lat(),a=t.latLng.lng();le(e.id,"latitude",n),le(e.id,"longitude",a)})),d.current.push(l),google.maps.event.addListener(l,"click",(function(){u.current&&u.current.close()})),ne(l,e.id,e.title,e.description)}))},le=function(e,t,a){var l=ve(b.current);l.map((function(n){if(n.id===e)return n[t]=a.toString()})),re(),ae(l),n({markers:l})},oe=function(e){var t=ve(b.current);t=t.filter((function(t){return t.id!==e})),n({markers:t}),re(),F(!1),0<t.length&&ae(t)},re=function(){for(var e=0;e<d.current.length;e++)d.current[e].setMap(null);d.current=[]},ie=function(){!1===Boolean(themeisleGutenberg.mapsAPI)&&(N(!0),new wp.api.models.Settings({themeisle_google_map_block_api_key:y}).save().then((function(e){var t=!1;""!==e.themeisle_google_map_block_api_key&&(t=!0),N(!1),C(t),""!==e.themeisle_google_map_block_api_key&&(window.isMapLoaded=!1,te(e.themeisle_google_map_block_api_key))})))},ce=function(e){n({style:e}),s.current.setOptions({styles:fe[e]})};return k&&x?wp.element.createElement(xe,null,wp.element.createElement(h.a,{label:ke("Block Styles"),value:t.style,options:[{label:ke("Standard"),value:"standard",image:themeisleGutenberg.assetsPath+"/icons/map-standard.png"},{label:ke("Silver"),value:"silver",image:themeisleGutenberg.assetsPath+"/icons/map-silver.png"},{label:ke("Retro"),value:"retro",image:themeisleGutenberg.assetsPath+"/icons/map-retro.png"},{label:ke("Dark"),value:"dark",image:themeisleGutenberg.assetsPath+"/icons/map-dark.png"},{label:ke("Night"),value:"night",image:themeisleGutenberg.assetsPath+"/icons/map-night.png"},{label:ke("Aubergine"),value:"aubergine",image:themeisleGutenberg.assetsPath+"/icons/map-aubergine.png"}],onChange:ce}),wp.element.createElement(Q,{attributes:t,setAttributes:n,map:s.current,changeStyle:ce,isPlaceAPIAvailable:z,isMarkerOpen:j,setMarkerOpen:F,removeMarker:oe,changeMarkerProp:le,addMarkerManual:function(){var e=Object(i.a)(),t=ke("Custom Marker"),n=s.current.getCenter(),a=n.lat(),l=n.lng();Z(!0),J(!0),$({id:e,location:"",title:t,icon:"https://maps.google.com/mapfiles/ms/icons/red-dot.png",description:"",latitude:a,longitude:l})},api:y,isSaving:R,changeAPI:w,saveAPIKey:ie}),q&&wp.element.createElement(pe,{marker:X,isAdvanced:K,isPlaceAPIAvailable:z,close:function(){return Z(!1)},addMarker:function(e,a,l,o,r,c){var p=new google.maps.LatLng(r,c),m=Object(i.a)(),b=new google.maps.Marker({position:p,map:s.current,title:a,draggable:!0,icon:l});google.maps.event.addListener(b,"dragend",(function(e){var t=e.latLng.lat(),n=e.latLng.lng();le(m,"latitude",t),le(m,"longitude",n)})),d.current.push(b);var g=ve(t.markers),h={id:m,location:e,title:a,icon:l,description:o,latitude:r,longitude:c};g.push(h),n({markers:g}),google.maps.event.addListener(b,"click",(function(){u.current&&u.current.close()})),ne(b,h.id,a,o),Z(!1),D(!1)}}),wp.element.createElement(Te,{size:{height:t.height},enable:{top:!1,right:!1,bottom:!0,left:!1},minHeight:100,maxHeight:1400,onResizeStart:function(){c(!1)},onResizeStop:function(e,a,l,o){n({height:parseInt(t.height+o.height,10)}),c(!0)},className:r()("wp-block-themeisle-blocks-google-map-resizer",{"is-focused":o})},wp.element.createElement(he,{attributes:t,className:a,initMap:function(){if(s.current=new google.maps.Map(document.getElementById(t.id),{center:{lat:Number(t.latitude)||41.4036299,lng:Number(t.longitude)||2.1743558000000576},gestureHandling:"cooperative",zoom:t.zoom,mapTypeId:t.type,styles:fe[t.style]}),t.location&&void 0===t.latitude&&void 0===t.longitude){var e={query:t.location,fields:["name","geometry"]};new google.maps.places.PlacesService(s.current).findPlaceFromQuery(e,(function(e,t){t===google.maps.places.PlacesServiceStatus.OK&&0<e.length&&s.current.setCenter(e[0].geometry.location)}))}google.maps.event.addListenerOnce(s.current,"idle",(function(){M(!0)})),s.current.addListener("zoom_changed",(function(){var e=s.current.getZoom();n({zoom:e})})),s.current.addListener("maptypeid_changed",(function(){var e=s.current.getMapTypeId();n({type:e})})),s.current.addListener("bounds_changed",(function(){var e=s.current.getCenter(),t=e.lat(),a=e.lng();n({latitude:t.toString(),longitude:a.toString()})})),0<t.markers.length&&ae(t.markers);var a={query:t.location,fields:["name","geometry"]};new google.maps.places.PlacesService(s.current).findPlaceFromQuery(a,(function(e,t){"REQUEST_DENIED"===t&&A(!1)}))},displayMap:P,isMapLoaded:B,selectMarker:function(){D(!V),V?google.maps.event.clearListeners(s.current,"click"):s.current.addListener("click",(function(e){google.maps.event.clearListeners(s.current,"click");var t=Object(i.a)(),n=ke("Custom Marker"),a=e.latLng.lat(),l=e.latLng.lng();Z(!0),J(!1),$({id:t,location:"",title:n,icon:"https://maps.google.com/mapfiles/ms/icons/red-dot.png",description:"",latitude:a,longitude:l})}))},isSelectingMarker:V}))):wp.element.createElement(g,{className:a,api:y,isAPILoaded:k,isAPISaved:x,changeAPI:w,saveAPIKey:ie})},Re=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/google-map",{title:Re("Google Map"),description:Re("Display a Google Map on your website with Google Map block."),icon:a.i,category:"themeisle-blocks",keywords:["map","google","orbitfox"],attributes:l,supports:{align:["wide","full"],html:!1},edit:Oe,save:function(){return null}})},function(e,t,n){"use strict";n.r(t);n(85),n(86);var a={id:{type:"string"},images:{type:"array",default:[],source:"query",selector:".wp-block-themeisle-blocks-slider-item-wrapper",query:{id:{type:"number",source:"attribute",selector:"img",attribute:"data-id"},url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption",default:""}}},perView:{type:"number",default:1},gap:{type:"number",default:0},peek:{type:"number",default:0},autoplay:{type:"boolean",default:!0},delay:{type:"number",default:2},hideArrows:{type:"boolean",default:!1},hideBullets:{type:"boolean",default:!1},height:{type:"number",default:400}},l=n(0),o=n.n(l),r=wp.components,i=r.Path,c=r.SVG,d=wp.element.Fragment,p=function(e){var t=e.attributes;return wp.element.createElement(d,null,!t.hideArrows&&wp.element.createElement("div",{className:"glide__arrows","data-glide-el":"controls"},wp.element.createElement("button",{className:"glide__arrow glide__arrow--left","data-glide-dir":"<"},wp.element.createElement(c,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 100 100"},wp.element.createElement(i,{d:"M 10,50 L 60,100 L 70,90 L 30,50 L 70,10 L 60,0 Z"}))),wp.element.createElement("button",{className:"glide__arrow glide__arrow--right","data-glide-dir":">"},wp.element.createElement(c,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 100 100"},wp.element.createElement(i,{d:"M 10,50 L 60,100 L 70,90 L 30,50 L 70,10 L 60,0 Z"})))),!t.hideBullets&&wp.element.createElement("div",{className:"glide__bullets","data-glide-el":"controls[nav]"},t.images.map((function(e,t){return wp.element.createElement("button",{className:"glide__bullet","data-glide-dir":"=".concat(t)})}))))},m=wp.blockEditor.RichText,s=[{attributes:{id:{type:"string"},align:{type:"string"},images:{type:"array",default:[],source:"query",selector:".wp-block-themeisle-blocks-slider-item-wrapper",query:{id:{type:"number",source:"attribute",selector:"img",attribute:"data-id"},url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption",default:""}}},perView:{type:"number",default:1},gap:{type:"number",default:0},peek:{type:"number",default:0},autoplay:{type:"boolean",default:!0},height:{type:"number",default:400}},supports:{align:["wide","full"]},save:function(e){var t=e.attributes,n=e.className;return wp.element.createElement("div",{id:t.id,className:o()("wp-block-themeisle-blocks-slider","glide",n),"data-per-view":t.perView,"data-gap":t.gap,"data-peek":t.peek,"data-autoplay":t.autoplay},wp.element.createElement("div",{className:"glide__track","data-glide-el":"track"},wp.element.createElement("div",{className:"glide__slides",style:{height:"".concat(t.height,"px")}},t.images.map((function(e){return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-slider-item-wrapper glide__slide",tabIndex:"0"},wp.element.createElement("figure",null,wp.element.createElement("img",{key:e.id,className:"wp-block-themeisle-blocks-slider-item",src:e.url,alt:e.alt,title:e.alt,"data-id":e.id}),!m.isEmpty(e.caption)&&wp.element.createElement(m.Content,{tagName:"figcaption",value:e.caption})))}))),wp.element.createElement(p,{attributes:t})))}}],u=lodash,b=u.filter,g=u.every,h=wp.blocks.createBlock,f={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:function(e){var t=e[0].align;t=g(e,["align",t])?t:void 0;var n=b(e,(function(e){return e.url}));return h("themeisle-blocks/slider",{images:n.map((function(e){return{id:e.id,url:e.url,alt:e.alt,caption:e.caption}})),align:t})}},{type:"block",blocks:["core/gallery"],transform:function(e){var t=e.images,n=e.align;return h("themeisle-blocks/slider",{images:t.map((function(e){return{id:e.id,url:e.url,alt:e.alt,caption:e.caption}})),align:n})}}],to:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.images,n=e.align;return 0<t.length?t.map((function(e){var t=e.id,a=e.url,l=e.alt,o=e.caption;return h("core/image",{id:t,url:a,alt:l,caption:o,align:n})})):h("core/image",{align:n})}},{type:"block",blocks:["core/gallery"],transform:function(e){var t=e.images,n=e.align;return h("core/gallery",{images:t.map((function(e){return{id:e.id,url:e.url,alt:e.alt,caption:e.caption}})),align:n})}}]},y=lodash.debounce,w=wp.blockEditor.MediaPlaceholder,v=function(e){var t=e.labels,n=e.icon,a=e.isAppender,l=void 0!==a&&a,o=e.value,r=void 0===o?{}:o,i=e.onSelectImages,c=y(i,250);return wp.element.createElement(w,{labels:t,icon:n,accept:"image/*",allowedTypes:["image"],isAppender:l,className:"wp-block-themeisle-blocks-slider-uploader",value:r,onSelect:c,multiple:!0})},k=wp.i18n.__,T=lodash.max,E=wp.blockEditor.InspectorControls,x=wp.components,C=x.PanelBody,S=x.RangeControl,B=x.ToggleControl,M=wp.element.Fragment,O=function(e){var t=e.attributes,n=e.setAttributes,a=e.slider,l=e.changePerView;return wp.element.createElement(E,null,wp.element.createElement(C,{title:k("Settings")},t.images.length&&wp.element.createElement(M,null,wp.element.createElement(S,{label:k("Slides Per Page"),help:k("A number of visible slides."),value:t.perView,onChange:l,min:1,max:T([Math.round(t.images.length/2),1])}),1<t.perView&&wp.element.createElement(M,null,wp.element.createElement(S,{label:k("Gap"),help:k("A size of the space between slides."),value:t.gap,onChange:function(e){n({gap:Number(e)}),a.update({gap:Number(e)})},min:0,max:100}),wp.element.createElement(S,{label:k("Peek"),help:k("The value of the future slides which have to be visible in the current slide."),value:t.peek,onChange:function(e){n({peek:Number(e)}),a.update({peek:Number(e)})},min:0,max:100})),wp.element.createElement(S,{label:k("Height"),help:k("Slider height in pixels."),value:t.height,onChange:function(e){n({height:Number(e)})},min:100,max:1400}),wp.element.createElement(B,{label:k("Autoplay"),help:k("Autoplay slider in the front."),checked:t.autoplay,onChange:function(e){n({autoplay:e})}}),t.autoplay&&wp.element.createElement(S,{label:k("Delay"),help:k("Delay in slide change (in seconds)."),value:t.delay,onChange:function(e){n({delay:e})},min:1,max:10}),wp.element.createElement(B,{label:k("Hide Arrows"),help:k("Hide navigation arrows."),checked:t.hideArrows,onChange:function(e){n({hideArrows:e})}}),wp.element.createElement(B,{label:k("Hide Bullets"),help:k("Hide navigation bullets."),checked:t.hideBullets,onChange:function(e){n({hideBullets:e})}}))))};function R(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var N=wp.i18n.__,L=lodash.filter,z=wp.blockEditor.RichText,A=wp.components.IconButton,H=wp.element.Fragment,P=function(e){var t=e.images,n=e.image,a=e.index,l=e.isFirstItem,r=e.isLastItem,i=e.isSelected,c=e.setAttributes,d=e.setSelectedImage,p=function(e,n){var a=R(t);a.splice(n,1,t[e]),a.splice(e,1,t[n]),d(n),c({images:a})};return wp.element.createElement("div",{className:o()("wp-block-themeisle-blocks-slider-item-wrapper glide__slide",{"is-selected":i}),tabIndex:"0",onClick:function(){return d(n.id)},onFocus:function(){return d(n.id)}},wp.element.createElement("figure",null,wp.element.createElement("img",{key:n.id,className:"wp-block-themeisle-blocks-slider-item",src:n.url,alt:n.alt,title:n.alt,"data-id":n.id}),i&&wp.element.createElement(H,null,wp.element.createElement("div",{className:"wp-block-themeisle-blocks-slider-item-move-menu"},wp.element.createElement(A,{icon:"arrow-left-alt2",onClick:l?void 0:function(){0!==a&&p(a,a-1)},className:"wp-block-themeisle-blocks-slider-item-move-backward",label:N("Move image backward"),"aria-disabled":l,disabled:!i}),wp.element.createElement(A,{icon:"arrow-right-alt2",onClick:r?void 0:function(){a!==t.length-1&&p(a,a+1)},className:"wp-block-themeisle-blocks-slider-item-move-forward",label:N("Move image forward"),"aria-disabled":r,disabled:!i})),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-slider-item-delete-menu"},wp.element.createElement(A,{icon:"no-alt",onClick:function(){var e=L(t,(function(e,t){return a!==t}));d(null),c({images:e})},className:"wp-block-themeisle-blocks-slider-item-delete",label:N("Remove image")}))),(i||!z.isEmpty(n.caption))&&wp.element.createElement(z,{tagName:"figcaption",placeholder:i?N("Write caption…"):null,value:n.caption,onChange:function(e){var n=R(t);n[a].caption=e,c({images:n})},multiline:!1})))};function _(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function I(e,t,n,a,l,o,r){try{var i=e[o](r),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(a,l)}function j(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var F=wp.i18n.__,G=lodash.max,V=wp.components.ResizableBox,D=wp.element,W=D.Fragment,q=D.useEffect,Z=D.useRef,U=D.useState,Q=[],K=function(e){var t=e.attributes,n=e.setAttributes,a=e.className,l=e.clientId,r=e.isSelected,i=e.toggleSelection;q((function(){return b(),function(){t.images.length&&c.current.destroy()}}),[]),q((function(){t.images.length&&(u(null),null!==c.current&&(c.current.destroy(),g()))}),[r,t.align]),q((function(){t.images.length&&t.perView>t.images.length&&f(G([Math.round(t.images.length/2),1]))}),[t.images]);var c=Z(null),d=Z(null),m=j(U(null),2),s=m[0],u=m[1],b=function(){var e,a=(e=regeneratorRuntime.mark((function e(){var a,o,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=window.themeisleGutenberg.blockIDs?window.themeisleGutenberg.blockIDs:[],void 0!==t.id){e.next=10;break}return o="wp-block-themeisle-blocks-slider-".concat(l.substr(0,8)),e.next=5,n({id:o});case 5:Q.push(o),d.current=o,a.push(o),e.next=21;break;case 10:if(!Q.includes(t.id)){e.next=18;break}return r="wp-block-themeisle-blocks-slider-".concat(l.substr(0,8)),e.next=14,n({id:r});case 14:Q.push(r),d.current=r,e.next=21;break;case 18:Q.push(t.id),d.current=t.id,a.push(t.id);case 21:window.themeisleGutenberg.blockIDs=_(a),t.images.length&&g();case 23:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(a,l){var o=e.apply(t,n);function r(e){I(o,a,l,r,i,"next",e)}function i(e){I(o,a,l,r,i,"throw",e)}r(void 0)}))});return function(){return a.apply(this,arguments)}}(),g=function(){c.current=new Glide("#".concat(t.id||d.current),{type:"carousel",keyboard:!1,perView:t.perView,gap:t.gap,peek:t.peek,autoplay:!1,breakpoints:{800:{perView:1,peek:0,gap:0}}}).mount()},h=function(e){n({images:e.map((function(e){return{id:e.id,url:e.url,alt:e.alt,caption:e.caption}}))}),null!==c.current&&c.current.destroy(),g()},f=function(e){n({perView:Number(e)}),c.current.update({perView:Number(e)}),1===e&&(n({gap:0,peek:0}),c.current.update({gap:0,peek:0}))};return Array.isArray(t.images)&&!t.images.length?wp.element.createElement(v,{labels:{title:F("Slider"),instructions:F("Drag images, upload new ones or select files from your library.")},icon:"images-alt2",onSelectImages:h}):wp.element.createElement(W,null,wp.element.createElement(O,{attributes:t,setAttributes:n,slider:c.current,changePerView:f}),wp.element.createElement(V,{size:{height:t.height},enable:{top:!1,right:!1,bottom:!0,left:!1},minHeight:100,maxHeight:1400,onResizeStart:function(){i(!1)},onResizeStop:function(e,a,l,o){n({height:parseInt(t.height+o.height,10)}),i(!0)},className:o()("wp-block-themeisle-blocks-slider-resizer",{"is-focused":r})},wp.element.createElement("div",{id:t.id,className:o()("wp-block-themeisle-blocks-slider","glide",a)},wp.element.createElement("div",{className:"glide__track","data-glide-el":"track"},wp.element.createElement("div",{className:"glide__slides",style:{height:"".concat(t.height,"px")}},t.images.map((function(e,a){return wp.element.createElement(P,{images:t.images,image:e,index:a,isFirstItem:0===a,isLastItem:a+1===t.images.length,isSelected:r&&e.id===s,setAttributes:n,setSelectedImage:u})}))),wp.element.createElement(p,{attributes:t})))),r&&wp.element.createElement(v,{labels:{title:"",instructions:""},icon:null,onSelectImages:h,isAppender:!0,value:t.images}))},J=wp.blockEditor.RichText,Y=function(e){var t=e.attributes,n=e.className,a=t.autoplay&&2!==t.delay?1e3*t.delay:t.autoplay;return wp.element.createElement("div",{id:t.id,className:o()("wp-block-themeisle-blocks-slider","glide",n),"data-per-view":t.perView,"data-gap":t.gap,"data-peek":t.peek,"data-autoplay":a,"data-height":"".concat(t.height,"px")},wp.element.createElement("div",{className:"glide__track","data-glide-el":"track"},wp.element.createElement("div",{className:"glide__slides"},t.images.map((function(e){return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-slider-item-wrapper glide__slide",tabIndex:"0"},wp.element.createElement("figure",null,wp.element.createElement("img",{key:e.id,className:"wp-block-themeisle-blocks-slider-item",src:e.url,alt:e.alt,title:e.alt,"data-id":e.id}),!J.isEmpty(e.caption)&&wp.element.createElement(J.Content,{tagName:"figcaption",value:e.caption})))}))),wp.element.createElement(p,{attributes:t})))},X=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/slider",{title:X("Slider"),description:X("Minimal image slider to showcase beautiful images."),icon:"images-alt2",category:"themeisle-blocks",keywords:["slider","gallery","carousel"],attributes:a,deprecated:s,transforms:f,supports:{align:["wide","full"]},edit:K,save:Y})},function(e,t,n){"use strict";n.r(t);n(54),n(55);var a=n(2),l={id:{type:"string"},buttons:{type:"number",default:2},align:{type:"string"},spacing:{type:"number",default:20},collapse:{type:"string",default:"collapse-none"},fontSize:{type:"number"},fontFamily:{type:"string"},fontVariant:{type:"string"},textTransform:{type:"string"},fontStyle:{type:"string"},lineHeight:{type:"number"},data:{type:"array",default:[{text:"",link:"",newTab:!1,color:"",background:"",border:"",hoverColor:"",hoverBackground:"",hoverBorder:"",borderSize:"",borderRadius:"",boxShadow:!1,boxShadowColor:"",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:"",hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",prefix:"",icon:"",paddingTopBottom:"",paddingLeftRight:""},{text:"",link:"",newTab:!1,color:"",background:"",border:"",hoverColor:"",hoverBackground:"",hoverBorder:"",borderSize:"",borderRadius:"",boxShadow:!1,boxShadowColor:"",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:"",hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",prefix:"",icon:"",paddingTopBottom:"",paddingLeftRight:""}]}},o=n(0),r=n.n(o);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=lodash.times,m=wp.editor.RichText,s=wp.element.Fragment,u=[{attributes:{id:{type:"string"},buttons:{type:"number",default:2},align:{type:"string"},spacing:{type:"number",default:20},collapse:{type:"string",default:"collapse-none"},fontSize:{type:"number",default:18},fontFamily:{type:"string"},fontVariant:{type:"string"},textTransform:{type:"string"},fontStyle:{type:"string",default:"normal"},lineHeight:{type:"number"},data:{type:"array",default:[{text:"",link:"",newTab:!1,color:"#ffffff",background:"#32373c",border:"",hoverColor:"",hoverBackground:"",hoverBorder:"",borderSize:0,borderRadius:0,boxShadow:!1,boxShadowColor:"",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:"",hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",prefix:"",icon:"",paddingTopBottom:12,paddingLeftRight:24},{text:"",link:"",newTab:!1,color:"#ffffff",background:"#32373c",border:"",hoverColor:"",hoverBackground:"",hoverBorder:"",borderSize:0,borderRadius:0,boxShadow:!1,boxShadowColor:"",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:"",hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",prefix:"",icon:"",paddingTopBottom:12,paddingLeftRight:24}]}},save:function(e){var t=e.attributes,n=t.id,a=t.buttons,l=t.align,o=t.collapse,i=t.fontSize,d=t.fontFamily,u=t.fontStyle,b=t.fontVariant,g=t.textTransform,h=t.lineHeight,f=t.data,y={fontSize:"".concat(i,"px"),fontFamily:d,fontWeight:b,fontStyle:u,textTransform:g,lineHeight:h&&"".concat(h,"px")},w="collapse-none"!==o?o:"";return wp.element.createElement("div",{id:n,className:r()(e.className,w),style:{justifyContent:l,alignItems:l||"flex-start"}},p(a,(function(e){return function(e){var t=c({},y,{borderWidth:"".concat(f[e].borderSize,"px"),borderRadius:"".concat(f[e].borderRadius,"px"),padding:"".concat(f[e].paddingTopBottom,"px ").concat(f[e].paddingLeftRight,"px")});return wp.element.createElement(s,null,wp.element.createElement("a",{href:f[e].link,target:f[e].newTab?"_blank":"_self",className:r()("wp-block-themeisle-blocks-button","wp-block-themeisle-blocks-button-".concat(e)),style:t},("left"===f[e].iconType||"only"===f[e].iconType)&&wp.element.createElement("i",{className:r()(f[e].prefix,"fa-fw","fa-".concat(f[e].icon),{"margin-right":"left"===f[e].iconType})}),"only"!==f[e].iconType&&wp.element.createElement(m.Content,{tagName:"span",value:f[e].text}),"right"===f[e].iconType&&wp.element.createElement("i",{className:"".concat(f[e].prefix," fa-fw fa-").concat(f[e].icon," margin-left")})))}(e)})))}},{attributes:{id:{type:"string"},buttons:{type:"number",default:2},align:{type:"string"},spacing:{type:"number",default:20},collapse:{type:"string",default:"collapse-none"},fontSize:{type:"number",default:18},fontFamily:{type:"string"},fontVariant:{type:"string"},textTransform:{type:"string"},fontStyle:{type:"string",default:"normal"},lineHeight:{type:"number"},data:{type:"array",default:[{text:"",link:"",newTab:!1,color:"#ffffff",background:"#32373c",border:"",hoverColor:"",hoverBackground:"",hoverBorder:"",borderSize:0,borderRadius:0,boxShadow:!1,boxShadowColor:"",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:"",hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",prefix:"",icon:"",paddingTopBottom:12,paddingLeftRight:24},{text:"",link:"",newTab:!1,color:"#ffffff",background:"#32373c",border:"",hoverColor:"",hoverBackground:"",hoverBorder:"",borderSize:0,borderRadius:0,boxShadow:!1,boxShadowColor:"",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:"",hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",prefix:"",icon:"",paddingTopBottom:12,paddingLeftRight:24}]}},save:function(e){var t=e.attributes,n=e.className,a="collapse-none"!==t.collapse?t.collapse:"",l={fontSize:"".concat(t.fontSize,"px"),fontFamily:t.fontFamily,fontWeight:t.fontVariant,fontStyle:t.fontStyle,textTransform:t.textTransform,lineHeight:t.lineHeight&&"".concat(t.lineHeight,"px")};return wp.element.createElement("div",{id:t.id,className:r()(n,a),style:{justifyContent:t.align,alignItems:t.align?t.align:"flex-start"}},p(t.buttons,(function(e){return function(e){var n=c({},l,{borderWidth:"".concat(t.data[e].borderSize,"px"),borderRadius:"".concat(t.data[e].borderRadius,"px"),padding:"".concat(t.data[e].paddingTopBottom,"px ").concat(t.data[e].paddingLeftRight,"px")});return wp.element.createElement(s,null,wp.element.createElement("a",{href:t.data[e].link,target:t.data[e].newTab?"_blank":"_self",className:r()("wp-block-themeisle-blocks-button","wp-block-themeisle-blocks-button-".concat(e)),style:n,rel:"noopener noreferrer"},("left"===t.data[e].iconType||"only"===t.data[e].iconType)&&wp.element.createElement("i",{className:r()(t.data[e].prefix,"fa-fw","fa-".concat(t.data[e].icon),{"margin-right":"left"===t.data[e].iconType})}),"only"!==t.data[e].iconType&&wp.element.createElement(m.Content,{tagName:"span",value:t.data[e].text}),"right"===t.data[e].iconType&&wp.element.createElement("i",{className:"".concat(t.data[e].prefix," fa-fw fa-").concat(t.data[e].icon," margin-left")})))}(e)})))}}],b=n(18),g=n.n(b),h=n(5),f=n(9),y=wp.i18n.__,w=wp.components,v=w.Dropdown,k=w.IconButton,T=w.RangeControl,E=w.Toolbar,x=wp.blockEditor,C=x.AlignmentToolbar,S=x.BlockControls,B=wp.element.Fragment,M=function(e){var t=e.attributes,n=e.setAttributes,a=e.changeFontSize,l=e.changeFontFamily,o=e.changeFontVariant,r=e.changeFontStyle,i=e.changeTextTransform,c=e.changeLineHeight;return wp.element.createElement(S,null,wp.element.createElement(C,{value:t.align,onChange:function(e){n({align:e})},alignmentControls:[{icon:"editor-alignleft",title:y("Align left"),align:"flex-start"},{icon:"editor-aligncenter",title:y("Align center"),align:"center"},{icon:"editor-alignright",title:y("Align right"),align:"flex-end"}]}),wp.element.createElement(E,{className:"wp-themesiel-blocks-button-group-components-toolbar"},wp.element.createElement(v,{contentClassName:"wp-themesiel-blocks-button-group-popover-content",position:"bottom center",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return wp.element.createElement(k,{className:"components-dropdown-menu__toggle",icon:"editor-textcolor",onClick:n,"aria-haspopup":"true","aria-expanded":t,label:y("Typography Settings"),tooltip:y("Typography Settings")},wp.element.createElement("span",{className:"components-dropdown-menu__indicator"}))},renderContent:function(){return wp.element.createElement(B,null,wp.element.createElement(T,{label:y("Font Size"),value:t.fontSize,onChange:a,min:0,max:50}),wp.element.createElement(f.a,{label:y("Font Family"),value:t.fontFamily,onChangeFontFamily:l,isSelect:!0,valueVariant:t.fontVariant,onChangeFontVariant:o,valueStyle:t.fontStyle,onChangeFontStyle:r,valueTransform:t.textTransform,onChangeTextTransform:i}),wp.element.createElement(T,{label:y("Line Height"),value:t.lineHeight,onChange:c,min:0,max:200}))}})))},O=n(7),R=n(8),N=n(20),L=n(3);function z(e){return(z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function A(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var H=wp.i18n.__,P=lodash.times,_=wp.components,I=_.BaseControl,j=_.Button,F=_.ButtonGroup,G=_.Dashicon,V=_.Dropdown,D=_.MenuGroup,W=_.MenuItem,q=_.Icon,Z=_.PanelBody,U=_.Placeholder,Q=_.RangeControl,K=_.SelectControl,J=_.Spinner,Y=_.ToggleControl,X=wp.blockEditor,$=X.ColorPalette,ee=X.InspectorControls,te=wp.element,ne=te.Fragment,ae=te.useState,le=React.lazy((function(){return Promise.all([n.e(0),n.e(1)]).then(n.bind(null,105))})),oe=function(e){var t=e.attributes,n=e.setAttributes,l=e.selectedButton,o=e.wait,i=e.changeButtons,c=e.changeButton,d=e.updateButton,p=e.changeFontSize,m=e.changeFontFamily,s=e.changeFontVariant,u=e.changeFontStyle,b=e.changeTextTransform,g=e.changeLineHeight,h=A(ae("buttons"),2),y=h[0],w=h[1],v=A(ae(!1),2),k=v[0],T=v[1];return wp.element.createElement(ee,null,wp.element.createElement(Z,{className:"wp-block-themeisle-blocks-button-group-header-panel"},wp.element.createElement(j,{className:r()("header-tab",{"is-selected":"buttons"===y}),onClick:function(){return w("buttons")}},wp.element.createElement("span",null,wp.element.createElement(q,{icon:a.d}),H("Buttons"))),wp.element.createElement(j,{className:r()("header-tab",{"is-selected":"group"===y}),onClick:function(){return w("group")}},wp.element.createElement("span",null,wp.element.createElement(G,{icon:"admin-generic"}),H("Group Settings")))),"buttons"===y&&wp.element.createElement(ne,null,wp.element.createElement(Z,{opened:!0},wp.element.createElement(Q,{label:H("Number of Buttons"),value:t.buttons,onChange:i,min:1,max:5}),wp.element.createElement(I,{label:H("Edit Button"),className:"wp-block-themeisle-blocks-select-button-container"},wp.element.createElement(V,{contentClassName:"wp-block-themeisle-blocks-select-button-popover",position:"bottom center",renderToggle:function(e){var n=e.isOpen,a=e.onToggle;return wp.element.createElement(j,{isLarge:!0,className:"wp-block-themeisle-blocks-select-button-button",onClick:a,"aria-expanded":n},H("Button")+" "+(l+1)+": "+Object(O.b)(t.data[l].text))},renderContent:function(e){var n=e.onToggle;return wp.element.createElement(D,null,P(t.buttons,(function(e){return wp.element.createElement(W,{onClick:function(){c(e),n()}},H("Button")+" "+(e+1)+": "+Object(O.b)(t.data[e].text))})))}}))),o?wp.element.createElement(U,{className:"wp-themeisle-block-spinner"},wp.element.createElement(J,null)):wp.element.createElement(ne,null,wp.element.createElement(Z,{title:H("Link")},wp.element.createElement(N.a,{label:"Link",placeholder:H("https://…"),value:t.data[l].link,onChange:function(e){return d({link:e},l)}},wp.element.createElement(Y,{label:"Open in New Tab?",checked:t.data[l].newTab,onChange:function(){return d({newTab:!t.data[l].newTab},l)}}))),wp.element.createElement(Z,{title:H("Color & Border"),initialOpen:!1},wp.element.createElement(F,{className:"wp-block-themeisle-blocks-button-group-hover-control"},wp.element.createElement(j,{isDefault:!0,isLarge:!0,isPrimary:!k,onClick:function(){return T(!1)}},H("Normal")),wp.element.createElement(j,{isDefault:!0,isLarge:!0,isPrimary:k,onClick:function(){return T(!0)}},H("Hover"))),k?wp.element.createElement(ne,null,wp.element.createElement(I,{label:"Hover Color"},wp.element.createElement($,{label:"Hover Color",value:t.data[l].hoverColor,onChange:function(e){return d({hoverColor:e},l)}})),wp.element.createElement(I,{label:"Hover Background"},wp.element.createElement($,{label:"Hover Background",value:t.data[l].hoverBackground,onChange:function(e){return d({hoverBackground:e},l)}})),wp.element.createElement(I,{label:"Hover Border"},wp.element.createElement($,{label:"Hover Border",value:t.data[l].hoverBorder,onChange:function(e){return d({hoverBorder:e},l)}}))):wp.element.createElement(ne,null,wp.element.createElement(I,{label:"Color"},wp.element.createElement($,{label:"Color",value:t.data[l].color,onChange:function(e){return d({color:e},l)}})),wp.element.createElement(I,{label:"Background"},wp.element.createElement($,{label:"Background",value:t.data[l].background,onChange:function(e){return d({background:e},l)}})),wp.element.createElement(I,{label:"Border"},wp.element.createElement($,{label:"Border",value:t.data[l].border,onChange:function(e){return d({border:e},l)}}))),wp.element.createElement(Q,{label:H("Border Width"),className:"border-width",beforeIcon:"move",value:t.data[l].borderSize,onChange:function(e){return d({borderSize:e},l)},min:0,max:10}),wp.element.createElement(Q,{label:H("Border Radius"),beforeIcon:"move",value:t.data[l].borderRadius,onChange:function(e){return d({borderRadius:e},l)},min:0,max:100})),wp.element.createElement(Z,{title:H("Box Shadow"),initialOpen:!1},wp.element.createElement(Y,{label:"Box Shadow",checked:t.data[l].boxShadow,onChange:function(){return d({boxShadow:!t.data[l].boxShadow},l)}}),t.data[l].boxShadow&&wp.element.createElement(ne,null,wp.element.createElement(F,{className:"wp-block-themeisle-blocks-button-group-hover-control"},wp.element.createElement(j,{isDefault:!0,isLarge:!0,isPrimary:!k,onClick:function(){return T(!1)}},H("Normal")),wp.element.createElement(j,{isDefault:!0,isLarge:!0,isPrimary:k,onClick:function(){return T(!0)}},H("Hover"))),!k&&wp.element.createElement(ne,null,wp.element.createElement(I,{label:"Shadow Color"},wp.element.createElement($,{label:"Shadow Color",value:t.data[l].boxShadowColor,onChange:function(e){return d({boxShadowColor:e},l)}})),wp.element.createElement(R.a,{label:"Shadow Properties"},wp.element.createElement(Q,{label:H("Opacity"),value:t.data[l].boxShadowColorOpacity,onChange:function(e){return d({boxShadowColorOpacity:e},l)},min:0,max:100}),wp.element.createElement(Q,{label:H("Blur"),value:t.data[l].boxShadowBlur,onChange:function(e){return d({boxShadowBlur:e},l)},min:0,max:100}),wp.element.createElement(Q,{label:H("Spread"),value:t.data[l].boxShadowSpread,onChange:function(e){return d({boxShadowSpread:e},l)},min:-100,max:100}),wp.element.createElement(Q,{label:H("Horizontal"),value:t.data[l].boxShadowHorizontal,onChange:function(e){return d({boxShadowHorizontal:e},l)},min:-100,max:100}),wp.element.createElement(Q,{label:H("Vertical"),value:t.data[l].boxShadowVertical,onChange:function(e){return d({boxShadowVertical:e},l)},min:-100,max:100})))||k&&wp.element.createElement(ne,null,wp.element.createElement(I,{label:"Hover Shadow Color"},wp.element.createElement($,{label:"Hover Shadow Color",value:t.data[l].hoverBoxShadowColor,onChange:function(e){return d({hoverBoxShadowColor:e},l)}})),wp.element.createElement(R.a,{label:"Hover Shadow Properties"},wp.element.createElement(Q,{label:H("Opacity"),value:t.data[l].hoverBoxShadowColorOpacity,onChange:function(e){return d({hoverBoxShadowColorOpacity:e},l)},min:0,max:100}),wp.element.createElement(Q,{label:H("Blur"),value:t.data[l].hoverBoxShadowBlur,onChange:function(e){return d({hoverBoxShadowBlur:e},l)},min:0,max:100}),wp.element.createElement(Q,{label:H("Spread"),value:t.data[l].hoverBoxShadowSpread,onChange:function(e){return d({hoverBoxShadowSpread:e},l)},min:-100,max:100}),wp.element.createElement(Q,{label:H("Horizontal"),value:t.data[l].hoverBoxShadowHorizontal,onChange:function(e){return d({hoverBoxShadowHorizontal:e},l)},min:-100,max:100}),wp.element.createElement(Q,{label:H("Vertical"),value:t.data[l].hoverBoxShadowVertical,onChange:function(e){return d({hoverBoxShadowVertical:e},l)},min:-100,max:100}))))),wp.element.createElement(Z,{title:H("Icon Settings"),initialOpen:!1},wp.element.createElement(K,{label:H("Icon Position"),value:t.data[l].iconType,options:[{label:"No Icon",value:"none"},{label:"Left",value:"left"},{label:"Right",value:"right"},{label:"Icon Only",value:"only"}],onChange:function(e){return d({iconType:e},l)}}),"none"!==t.data[l].iconType&&wp.element.createElement(ne,null,wp.element.createElement(React.Suspense,{fallback:wp.element.createElement(U,{className:"wp-themeisle-block-spinner"},wp.element.createElement(J,null))},wp.element.createElement(le,{label:H("Icon Picker"),prefix:t.data[l].prefix,icon:t.data[l].icon,onChange:function(e){"object"===z(e)?d({icon:e.name,prefix:e.prefix},l):d({icon:e},l)}})))),wp.element.createElement(Z,{title:H("Spacing"),initialOpen:!1},wp.element.createElement(L.a,{label:H("Padding"),min:0,max:100,onChange:function(e,t){return function(e,t,n){"top"!==e&&"bottom"!==e||d({paddingTopBottom:t},n),"left"!==e&&"right"!==e||d({paddingLeftRight:t},n)}(e,t,l)},options:[{label:H("Top"),type:"top",value:t.data[l].paddingTopBottom},{label:H("Right"),type:"right",value:t.data[l].paddingLeftRight},{label:H("Bottom"),type:"bottom",value:t.data[l].paddingTopBottom},{label:H("Left"),type:"left",value:t.data[l].paddingLeftRight}]}))))||"group"===y&&wp.element.createElement(ne,null,wp.element.createElement(Z,{title:H("Spacing")},wp.element.createElement(Q,{label:H("Spacing"),value:t.spacing,onChange:function(e){n({spacing:e})},min:0,max:50}),wp.element.createElement(K,{label:H("Collapse On"),value:t.collapse,options:[{label:"None",value:"collapse-none"},{label:"Desktop",value:"collapse-desktop"},{label:"Tablet",value:"collapse-tablet"},{label:"Mobile",value:"collapse-mobile"}],onChange:function(e){n({collapse:e})}})),wp.element.createElement(Z,{title:H("Typography Settings"),initialOpen:!1},wp.element.createElement(Q,{label:H("Font Size"),value:t.fontSize,onChange:p,min:0,max:50}),wp.element.createElement(f.a,{label:H("Font Family"),value:t.fontFamily,onChangeFontFamily:m,valueVariant:t.fontVariant,onChangeFontVariant:s,valueStyle:t.fontStyle,onChangeFontStyle:u,valueTransform:t.textTransform,onChangeTextTransform:b}),wp.element.createElement(Q,{label:H("Line Height"),value:t.lineHeight,onChange:g,min:0,max:200}))))},re=n(6),ie=n.n(re);function ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function de(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var me=wp.i18n.__,se=wp.blockEditor.RichText,ue=wp.element,be=ue.Fragment,ge=ue.useState,he=function(e){var t=e.index,n=e.attributes,a=e.changeButton,l=e.updateButton,o=pe(ge((function(){return 0===t})),2),i=o[0],c=o[1],d={};n.data[t].boxShadow&&(d={boxShadow:"".concat(n.data[t].boxShadowHorizontal,"px ").concat(n.data[t].boxShadowVertical,"px ").concat(n.data[t].boxShadowBlur,"px ").concat(n.data[t].boxShadowSpread,"px ").concat(ie()(n.data[t].boxShadowColor?n.data[t].boxShadowColor:"#000000",n.data[t].boxShadowColorOpacity))});var p=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ce(Object(n),!0).forEach((function(t){de(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ce(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({fontSize:"".concat(n.fontSize,"px"),fontFamily:n.fontFamily,fontWeight:n.fontVariant,fontStyle:n.fontStyle,textTransform:n.textTransform,lineHeight:n.lineHeight&&"".concat(n.lineHeight,"px"),color:n.data[t].color,background:n.data[t].background,border:"".concat(n.data[t].borderSize,"px solid ").concat(n.data[t].border),borderRadius:"".concat(n.data[t].borderRadius,"px"),paddingTop:"".concat(n.data[t].paddingTopBottom,"px"),paddingBottom:"".concat(n.data[t].paddingTopBottom,"px"),paddingLeft:"".concat(n.data[t].paddingLeftRight,"px"),paddingRight:"".concat(n.data[t].paddingLeftRight,"px"),marginLeft:0===t?"0px":"".concat(n.spacing/2,"px"),marginRight:n.buttons===t+1?"0px":"".concat(n.spacing/2,"px")},d);return wp.element.createElement(be,null,wp.element.createElement("style",null,"#".concat(n.id," .wp-block-themeisle-blocks-button-").concat(t,":hover {\n\t\t\t\t\tcolor: ").concat(n.data[t].hoverColor?n.data[t].hoverColor:n.data[t].color," !important;\n\t\t\t\t\tbackground: ").concat(n.data[t].hoverBackground?n.data[t].hoverBackground:n.data[t].background," !important;\n\t\t\t\t\tborder: ").concat(n.data[t].borderSize,"px solid ").concat(n.data[t].hoverBorder?n.data[t].hoverBorder:n.data[t].border," !important;\n\t\t\t\t\t").concat(n.data[t].boxShadow?"box-shadow: ".concat(n.data[t].hoverBoxShadowHorizontal,"px ").concat(n.data[t].hoverBoxShadowVertical,"px ").concat(n.data[t].hoverBoxShadowBlur,"px ").concat(n.data[t].hoverBoxShadowSpread,"px ").concat(ie()(n.data[t].hoverBoxShadowColor?n.data[t].hoverBoxShadowColor:"#000000",n.data[t].hoverBoxShadowColorOpacity)," !important;"):"","\n\t\t\t\t}")),wp.element.createElement("div",{style:p,className:r()("wp-block-themeisle-blocks-button","wp-block-themeisle-blocks-button-".concat(t),"wp-block-button__link"),onClick:function(){c(!0),a(t)},onBlur:function(){return c(!1)}},("left"===n.data[t].iconType||"only"===n.data[t].iconType)&&wp.element.createElement("i",{className:r()(n.data[t].prefix,"fa-fw","fa-".concat(n.data[t].icon),{"margin-right":"left"===n.data[t].iconType})}),"only"!==n.data[t].iconType&&wp.element.createElement(se,{placeholder:me("Add text…"),value:n.data[t].text,onChange:function(e){return l({text:e},t)},tagName:"div",keepPlaceholderOnFocus:i,withoutInteractiveFormatting:!0}),"right"===n.data[t].iconType&&wp.element.createElement("i",{className:"".concat(n.data[t].prefix," fa-fw fa-").concat(n.data[t].icon," margin-left")})))};function fe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function ye(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function we(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?we(Object(n),!0).forEach((function(t){ke(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):we(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ke(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Te=wp.i18n.__,Ee=lodash,xe=Ee.isEqual,Ce=Ee.omit,Se=Ee.pick,Be=Ee.times,Me=wp.components.IconButton,Oe=wp.element,Re=Oe.Fragment,Ne=Oe.useEffect,Le=Oe.useState,ze=[],Ae=function(e){var t=e.attributes,n=e.setAttributes,a=e.className,o=e.name,i=e.isSelected,c=e.clientId;Ne((function(){d()}),[]);var d=function(){var e=window.themeisleGutenberg.blockIDs?window.themeisleGutenberg.blockIDs:[];if(void 0===t.id){var a,r="wp-block-themeisle-blocks-button-group-".concat(c.substr(0,8));if(void 0!==(window.themeisleGutenberg.globalDefaults?window.themeisleGutenberg.globalDefaults:void 0)&&!xe(h.a[o],window.themeisleGutenberg.globalDefaults[o])){a=Ce(ve({},window.themeisleGutenberg.globalDefaults[o]),"data"),Object.keys(a).map((function(e){if(t[e]!==a[e]&&(void 0!==l[e].default||void 0!==l[e].default&&t[e]!==l[e].default))return delete a[e]}));var i=Se(ve({},window.themeisleGutenberg.globalDefaults[o]),"data"),d=[];t.data.forEach((function(e,t){var n=ve({},i.data);Object.keys(n).map((function(a){if(e[a]!==n[a]&&(void 0===l.data.default[t][a]||void 0!==l.data.default[t][a]&&e[a]!==l.data.default[t][a]))return delete n[a]})),d.push(ve({},e,{},n))})),xe(d,t.data)||(a.data=d)}n(ve({},a,{id:r})),ze.push(r),e.push(r)}else if(ze.includes(t.id)){var p="wp-block-themeisle-blocks-button-group-".concat(c.substr(0,8));n({id:p}),ze.push(p)}else ze.push(t.id),e.push(t.id);window.themeisleGutenberg.blockIDs=ye(e)},p=fe(Le(0),2),m=p[0],s=p[1],u=fe(Le(!1),2),b=u[0],f=u[1],y=function(e){s(e),f(!0),setTimeout((function(){f(!1)}),500)},w=function(e){if(1<=e&&5>=e){if(t.data.length<e){var a=ye(t.data);Be(e-t.data.length,(function(){a.push({text:t.data[0].text,link:t.data[0].link,newTab:t.data[0].newTab,color:t.data[0].color,border:t.data[0].border,background:t.data[0].background,hoverColor:t.data[0].hoverColor,hoverBackground:t.data[0].hoverBackground,hoverBorder:t.data[0].hoverBorder,borderSize:t.data[0].borderSize,borderRadius:t.data[0].borderRadius,boxShadow:t.data[0].boxShadow,boxShadowColor:t.data[0].boxShadowColor,boxShadowColorOpacity:t.data[0].boxShadowColorOpacity,boxShadowBlur:t.data[0].boxShadowBlur,boxShadowSpread:t.data[0].boxShadowSpread,boxShadowHorizontal:t.data[0].boxShadowHorizontal,boxShadowVertical:t.data[0].boxShadowVertical,hoverBoxShadowColor:t.data[0].hoverBoxShadowColor,hoverBoxShadowColorOpacity:t.data[0].hoverBoxShadowColorOpacity,hoverBoxShadowBlur:t.data[0].hoverBoxShadowBlur,hoverBoxShadowSpread:t.data[0].hoverBoxShadowSpread,hoverBoxShadowHorizontal:t.data[0].hoverBoxShadowHorizontal,hoverBoxShadowVertical:t.data[0].hoverBoxShadowVertical,iconType:t.data[0].iconType,prefix:t.data[0].prefix,icon:t.data[0].icon,paddingTopBottom:t.data[0].paddingTopBottom,paddingLeftRight:t.data[0].paddingLeftRight})})),n({data:a})}n({buttons:e}),s(0)}},v=function(e){n({fontSize:e})},k=function(e){n(e?{fontFamily:e,fontVariant:"normal",fontStyle:"normal"}:{fontFamily:e,fontVariant:e})},T=function(e){n({fontVariant:e})},E=function(e){n({fontStyle:e})},x=function(e){n({textTransform:e})},C=function(e){n({lineHeight:e})},S=function(e,a){var l=t.data.map((function(t,n){return a===n&&(t=ve({},t,{},e)),t}));n({data:l})},B="collapse-none"!==t.collapse?t.collapse:"";return wp.element.createElement(Re,null,t.fontFamily&&wp.element.createElement(g.a,{fonts:[{font:t.fontFamily,weights:t.fontVariant&&["".concat(t.fontVariant+("italic"===t.fontStyle?":i":""))]}]}),wp.element.createElement(M,{attributes:t,setAttributes:n,changeFontSize:v,changeFontFamily:k,changeFontVariant:T,changeFontStyle:E,changeTextTransform:x,changeLineHeight:C}),wp.element.createElement(oe,{attributes:t,setAttributes:n,selectedButton:m,wait:b,changeButtons:w,changeButton:y,updateButton:S,changeFontSize:v,changeFontFamily:k,changeFontVariant:T,changeFontStyle:E,changeTextTransform:x,changeLineHeight:C}),wp.element.createElement("div",{id:t.id,className:r()(a,B,"wp-block-button"),style:{justifyContent:t.align,alignItems:t.align?t.align:"flex-start"}},Be(t.buttons,(function(e){return wp.element.createElement(he,{index:e,attributes:t,isSelected:i,changeButton:y,updateButton:S})})),i&&4>=t.buttons&&wp.element.createElement(Me,{className:"wp-block-themeisle-blocks-button-inserter",icon:"plus-alt",onClick:function(){return w(t.buttons+1)},label:Te("Add Button")})))},He=wp.blockEditor.RichText,Pe=wp.element.Fragment,_e=function(e){var t=e.index,n=e.attributes;return wp.element.createElement(Pe,null,wp.element.createElement("a",{href:n.data[t].link,target:n.data[t].newTab?"_blank":"_self",className:r()("wp-block-themeisle-blocks-button","wp-block-themeisle-blocks-button-".concat(t),"wp-block-button__link"),rel:"noopener noreferrer"},("left"===n.data[t].iconType||"only"===n.data[t].iconType)&&wp.element.createElement("i",{className:r()(n.data[t].prefix,"fa-fw","fa-".concat(n.data[t].icon),{"margin-right":"left"===n.data[t].iconType})}),"only"!==n.data[t].iconType&&wp.element.createElement(He.Content,{tagName:"span",value:n.data[t].text}),"right"===n.data[t].iconType&&wp.element.createElement("i",{className:"".concat(n.data[t].prefix," fa-fw fa-").concat(n.data[t].icon," margin-left")})))},Ie=lodash.times,je=function(e){var t=e.attributes,n=e.className,a="collapse-none"!==t.collapse&&t.collapse;return wp.element.createElement("div",{id:t.id,className:r()(n,a,"wp-block-button")},Ie(t.buttons,(function(e){return wp.element.createElement(_e,{index:e,attributes:t})})))},Fe=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/button-group",{title:Fe("Button Group"),description:Fe("Prompt visitors to take action with a button group."),icon:a.d,category:"themeisle-blocks",keywords:[Fe("buttons"),Fe("button group"),Fe("advanced buttons")],attributes:l,deprecated:u,edit:Ae,save:je})},function(e,t,n){"use strict";n.r(t);n(39);var a=n(2);n(40);function l(e,t,n,a,l,o,r){try{var i=e[o](r),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(a,l)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(a,o){var r=e.apply(t,n);function i(e){l(r,a,o,i,c,"next",e)}function c(e){l(r,a,o,i,c,"throw",e)}i(void 0)}))}}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var i=wp.i18n.__,c=wp.blocks.getBlockType,d=wp.components,p=d.Button,m=d.Icon,s=d.Modal,u=wp.element,b=u.Fragment,g=u.useState,h=function(e){var t=e.blockName,n=e.saveConfig,a=e.resetConfig,l=e.children,d=c(t),u=r(g(!1),2),h=u[0],f=u[1],y=r(g(!1),2),w=y[0],v=y[1];return d?wp.element.createElement(b,null,wp.element.createElement(p,{className:"wp-block-themeisle-blocks-options-global-defaults-list-item",onClick:function(){return f(!0)}},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-options-global-defaults-list-item-icon"},wp.element.createElement(m,{icon:d.icon.src})),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-options-global-defaults-list-item-title"},d.title)),h&&wp.element.createElement(s,{title:d.title,onRequestClose:function(){return f(!1)},shouldCloseOnClickOutside:!1,overlayClassName:"wp-block-themeisle-blocks-options-global-defaults-modal"},l,wp.element.createElement("div",{className:"wp-block-themeisle-blocks-options-global-defaults-actions"},wp.element.createElement(p,{isLink:!0,isDestructive:!0,onClick:function(){return a(t)}},i("Reset")),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-options-global-defaults-actions-primary"},wp.element.createElement(p,{isDefault:!0,isLarge:!0,onClick:function(){return f(!1)}},i("Close")),wp.element.createElement(p,{isPrimary:!0,isLarge:!0,isBusy:w,onClick:o(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return v(!0),e.next=3,n();case 3:v(!1);case 4:case"end":return e.stop()}}),e)})))},i("Save")))))):null},f=n(9),y=n(4),w=n(3);function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var T=wp.i18n.__,E=wp.blockEditor.ColorPalette,x=wp.components,C=x.BaseControl,S=x.PanelBody,B=x.RangeControl,M=x.SelectControl,O=wp.element,R=O.Fragment,N=O.useState,L=function(e){var t=e.blockName,n=e.defaults,a=e.changeConfig,l=k(N("desktop"),2),o=l[0],r=l[1],i=k(N("desktop"),2),c=i[0],d=i[1],p=k(N("desktop"),2),m=p[0],s=p[1],u=function(){var e;return"desktop"===o&&(e=n.fontSize),"tablet"===o&&(e=n.fontSizeTablet),"mobile"===o&&(e=n.fontSizeMobile),e};u=u();var b=function(){var e;return"desktop"===c&&(e=n.paddingType),"tablet"===c&&(e=n.paddingTypeTablet),"mobile"===c&&(e=n.paddingTypeMobile),e};b=b();var g={top:"paddingTop",right:"paddingRight",bottom:"paddingBottom",left:"paddingLeft"},h={top:"paddingTopTablet",right:"paddingRightTablet",bottom:"paddingBottomTablet",left:"paddingLeftTablet"},x={top:"paddingTopMobile",right:"paddingRightMobile",bottom:"paddingBottomMobile",left:"paddingLeftMobile"},O=function(e){var t;return"top"==e&&("desktop"===c&&(t="linked"===n.paddingType?n.padding:n.paddingTop),"tablet"===c&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingTopTablet),"mobile"===c&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingTopMobile)),"right"==e&&("desktop"===c&&(t="linked"===n.paddingType?n.padding:n.paddingRight),"tablet"===c&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingRightTablet),"mobile"===c&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingRightMobile)),"bottom"==e&&("desktop"===c&&(t="linked"===n.paddingType?n.padding:n.paddingBottom),"tablet"===c&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingBottomTablet),"mobile"===c&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingBottomMobile)),"left"==e&&("desktop"===c&&(t="linked"===n.paddingType?n.padding:n.paddingLeft),"tablet"===c&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingLeftTablet),"mobile"===c&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingLeftMobile)),t},L=function(){var e;return"desktop"===m&&(e=n.marginType),"tablet"===m&&(e=n.marginTypeTablet),"mobile"===m&&(e=n.marginTypeMobile),e};L=L();var z={top:"marginTop",bottom:"marginBottom"},A={top:"marginTopTablet",bottom:"marginBottomTablet"},H={top:"marginTopMobile",bottom:"marginBottomMobile"},P=function(e){var t;return"top"==e&&("desktop"===m&&(t="linked"===n.marginType?n.margin:n.marginTop),"tablet"===m&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginTopTablet),"mobile"===m&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginTopMobile)),"bottom"==e&&("desktop"===m&&(t="linked"===n.marginType?n.margin:n.marginBottom),"tablet"===m&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginBottomTablet),"mobile"===m&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginBottomMobile)),t};return wp.element.createElement(R,null,wp.element.createElement(S,{title:T("General Settings")},wp.element.createElement(M,{label:T("HTML Tag"),value:n.tag,options:[{label:T("Heading 1"),value:"h1"},{label:T("Heading 2"),value:"h2"},{label:T("Heading 3"),value:"h3"},{label:T("Heading 4"),value:"h4"},{label:T("Heading 5"),value:"h5"},{label:T("Heading 6"),value:"h6"},{label:T("Division"),value:"div"},{label:T("Paragraph"),value:"p"},{label:T("Span"),value:"span"}],onChange:function(e){return a(t,{tag:e})}}),wp.element.createElement(C,{label:"Heading Color"},wp.element.createElement(E,{value:n.headingColor,onChange:function(e){return a(t,{headingColor:e})}})),wp.element.createElement("hr",null),wp.element.createElement(y.a,{label:"Font Size",view:o,changeViewType:r},wp.element.createElement(B,{value:u||"",onChange:function(e){"desktop"===o&&a(t,{fontSize:e}),"tablet"===o&&a(t,{fontSizeTablet:e}),"mobile"===o&&a(t,{fontSizeMobile:e})},min:1,max:500}))),wp.element.createElement(S,{title:T("Typography Settings"),initialOpen:!1},wp.element.createElement(f.a,{label:T("Font Family"),value:n.fontFamily,onChangeFontFamily:function(e){a(t,e?{fontFamily:e,fontVariant:"normal",fontStyle:"normal"}:{fontFamily:e,fontVariant:e})},valueVariant:n.fontVariant,onChangeFontVariant:function(e){return a(t,{fontVariant:e})},valueStyle:n.fontStyle,onChangeFontStyle:function(e){return a(t,{fontStyle:e})},valueTransform:n.textTransform,onChangeTextTransform:function(e){return a(t,{textTransform:e})}}),wp.element.createElement("hr",null),wp.element.createElement(B,{label:T("Line Height"),value:n.lineHeight||"",onChange:function(e){return a(t,{lineHeight:e})},min:0,max:200}),wp.element.createElement("hr",null),wp.element.createElement(B,{label:T("Letter Spacing"),value:n.letterSpacing||"",onChange:function(e){return a(t,{letterSpacing:e})},min:-50,max:100})),wp.element.createElement(S,{title:T("Spacing"),initialOpen:!1},wp.element.createElement(y.a,{label:"Padding",view:c,changeViewType:d},wp.element.createElement(w.a,{type:b,min:0,max:500,changeType:function(e){"desktop"===c&&a(t,{paddingType:e}),"tablet"===c&&a(t,{paddingTypeTablet:e}),"mobile"===c&&a(t,{paddingTypeMobile:e})},onChange:function(e,l){"desktop"===c&&("linked"===n.paddingType?a(t,{padding:l}):a(t,v({},g[e],l))),"tablet"===c&&("linked"===n.paddingTypeTablet?a(t,{paddingTablet:l}):a(t,v({},h[e],l))),"mobile"===c&&("linked"===n.paddingTypeMobile?a(t,{paddingMobile:l}):a(t,v({},x[e],l)))},options:[{label:T("Top"),type:"top",value:O("top")},{label:T("Right"),type:"right",value:O("right")},{label:T("Bottom"),type:"bottom",value:O("bottom")},{label:T("Left"),type:"left",value:O("left")}]})),wp.element.createElement("hr",null),wp.element.createElement(y.a,{label:"Margin",view:m,changeViewType:s},wp.element.createElement(w.a,{type:L,min:-500,max:500,changeType:function(e){"desktop"===m&&a(t,{marginType:e}),"tablet"===m&&a(t,{marginTypeTablet:e}),"mobile"===m&&a(t,{marginTypeMobile:e})},onChange:function(e,l){"desktop"===m&&("linked"===n.marginType?a(t,{margin:l}):a(t,v({},z[e],l))),"tablet"===m&&("linked"===n.marginTypeTablet?a(t,{marginTablet:l}):a(t,v({},A[e],l))),"mobile"===m&&("linked"===n.marginTypeMobile?a(t,{marginMobile:l}):a(t,v({},H[e],l)))},options:[{label:T("Top"),type:"top",value:P("top")},{label:T("Right"),disabled:!0},{label:T("Bottom"),type:"bottom",value:P("bottom")},{label:T("Left"),disabled:!0}]}))))};function z(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var A=wp.i18n.__,H=lodash.cloneDeep,P=wp.components,_=P.BaseControl,I=P.Button,j=P.ButtonGroup,F=P.PanelBody,G=P.RangeControl,V=P.SelectControl,D=wp.blockEditor.ColorPalette,W=wp.element,q=W.Fragment,Z=W.useState,U=function(e){var t=e.blockName,n=e.defaults,a=e.changeConfig,l=z(Z(!1),2),o=l[0],r=l[1],i=function(e,l){var o=H(n.data);o[e]=l,a(t,{data:o})};return wp.element.createElement(q,null,wp.element.createElement(F,{title:A("Color")},wp.element.createElement(j,{className:"wp-block-themeisle-blocks-button-group-hover-control"},wp.element.createElement(I,{isDefault:!0,isLarge:!0,isPrimary:!o,onClick:function(){return r(!1)}},A("Normal")),wp.element.createElement(I,{isDefault:!0,isLarge:!0,isPrimary:o,onClick:function(){return r(!0)}},A("Hover"))),o?wp.element.createElement(q,null,wp.element.createElement(_,{label:"Hover Color"},wp.element.createElement(D,{label:"Hover Color",value:n.data.hoverColor,onChange:function(e){return i("hoverColor",e)}})),wp.element.createElement("hr",null),wp.element.createElement(_,{label:"Hover Background"},wp.element.createElement(D,{label:"Hover Background",value:n.data.hoverBackground,onChange:function(e){return i("hoverBackground",e)}}))):wp.element.createElement(q,null,wp.element.createElement(_,{label:"Color"},wp.element.createElement(D,{label:"Color",value:n.data.color,onChange:function(e){return i("color",e)}})),wp.element.createElement("hr",null),wp.element.createElement(_,{label:"Background"},wp.element.createElement(D,{label:"Background",value:n.data.background,onChange:function(e){return i("background",e)}})))),wp.element.createElement(F,{title:A("Spacing"),initialOpen:!1},wp.element.createElement(w.a,{label:A("Button Padding"),min:0,max:100,onChange:i,options:[{label:A("Top"),type:"paddingTopBottom",value:n.data.paddingTopBottom},{label:A("Right"),type:"paddingLeftRight",value:n.data.paddingLeftRight},{label:A("Bottom"),type:"paddingTopBottom",value:n.data.paddingTopBottom},{label:A("Left"),type:"paddingLeftRight",value:n.data.paddingLeftRight}]}),wp.element.createElement("hr",null),wp.element.createElement(G,{label:A("Group Spacing"),value:n.spacing,onChange:function(e){return a(t,{spacing:e})},min:0,max:50}),wp.element.createElement("hr",null),wp.element.createElement(V,{label:A("Collapse On"),value:n.collapse,options:[{label:"None",value:"collapse-none"},{label:"Desktop",value:"collapse-desktop"},{label:"Tablet",value:"collapse-tablet"},{label:"Mobile",value:"collapse-mobile"}],onChange:function(e){return a(t,{collapse:e})}})),wp.element.createElement(F,{title:A("Typography Settings"),initialOpen:!1},wp.element.createElement(G,{label:A("Font Size"),value:n.fontSize||"",onChange:function(e){return a(t,{fontSize:e})},min:0,max:50}),wp.element.createElement("hr",null),wp.element.createElement(f.a,{label:A("Font Family"),value:n.fontFamily,onChangeFontFamily:function(e){a(t,e?{fontFamily:e,fontVariant:"normal",fontStyle:"normal"}:{fontFamily:e,fontVariant:e})},valueVariant:n.fontVariant,onChangeFontVariant:function(e){return a(t,{fontVariant:e})},valueStyle:n.fontStyle,onChangeFontStyle:function(e){return a(t,{fontStyle:e})},valueTransform:n.textTransform,onChangeTextTransform:function(e){return a(t,{textTransform:e})}}),wp.element.createElement("hr",null),wp.element.createElement(G,{label:A("Line Height"),value:n.lineHeight||"",onChange:function(e){return a(t,{lineHeight:e})},min:0,max:200})))};function Q(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var K=wp.i18n.__,J=wp.components,Y=J.BaseControl,X=J.Button,$=J.ButtonGroup,ee=J.PanelBody,te=J.RangeControl,ne=wp.blockEditor,ae=ne.ColorPalette,le=ne.ContrastChecker,oe=wp.element,re=oe.Fragment,ie=oe.useState,ce=function(e){var t=e.blockName,n=e.defaults,a=e.changeConfig,l=Q(ie(!1),2),o=l[0],r=l[1];return wp.element.createElement(re,null,wp.element.createElement(ee,{title:K("Sizing")},wp.element.createElement(te,{label:K("Icon Size"),value:n.fontSize||"",initialPosition:16,onChange:function(e){return a(t,{fontSize:e})},min:12,max:140,beforeIcon:"minus",afterIcon:"plus"}),wp.element.createElement("hr",null),wp.element.createElement(te,{label:K("Padding"),value:n.padding||"",initialPosition:5,onChange:function(e){return a(t,{padding:e})},min:0,max:100,beforeIcon:"minus",afterIcon:"plus"}),wp.element.createElement("hr",null),wp.element.createElement(te,{label:K("Margin"),value:n.margin||"",initialPosition:5,onChange:function(e){return a(t,{margin:e})},min:0,max:100,beforeIcon:"minus",afterIcon:"plus"})),wp.element.createElement(ee,{title:K("Color"),initialOpen:!1},wp.element.createElement($,{className:"wp-block-themeisle-blocks-font-awesome-icons-hover-control"},wp.element.createElement(X,{isDefault:!0,isLarge:!0,isPrimary:!o,onClick:function(){return r(!1)}},K("Normal")),wp.element.createElement(X,{isDefault:!0,isLarge:!0,isPrimary:o,onClick:function(){return r(!0)}},K("Hover"))),o?wp.element.createElement(re,null,wp.element.createElement(Y,{label:"Hover Background"},wp.element.createElement(ae,{label:"Hover Background",value:n.backgroundColorHover,onChange:function(e){return a(t,{backgroundColorHover:e})}})),wp.element.createElement(Y,{label:"Hover Icon"},wp.element.createElement(ae,{label:"Hover Icon",value:n.textColorHover,onChange:function(e){return a(t,{textColorHover:e})}})),wp.element.createElement(le,{textColor:n.textColorHover,backgroundColor:n.backgroundColorHover})):wp.element.createElement(re,null,wp.element.createElement(Y,{label:"Background"},wp.element.createElement(ae,{label:"Background",value:n.backgroundColor,onChange:function(e){return a(t,{backgroundColor:e})}})),wp.element.createElement(Y,{label:"Icon"},wp.element.createElement(ae,{label:"Icon",value:n.textColor,onChange:function(e){return a(t,{textColor:e})}})),wp.element.createElement(le,{textColor:n.textColor,backgroundColor:n.backgroundColor}))))};function de(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var me=wp.i18n.__,se=wp.components,ue=se.BaseControl,be=se.Button,ge=se.ButtonGroup,he=se.Icon,fe=se.IconButton,ye=se.PanelBody,we=se.RangeControl,ve=se.SelectControl,ke=se.ToggleControl,Te=se.Tooltip,Ee=wp.element,xe=Ee.Fragment,Ce=Ee.useState,Se=function(e){var t=e.blockName,n=e.defaults,l=e.changeConfig,o=pe(Ce("desktop"),2),r=o[0],i=o[1],c=pe(Ce("desktop"),2),d=c[0],p=c[1],m=pe(Ce("desktop"),2),s=m[0],u=m[1],b=function(){var e;return"desktop"===r&&(e=n.paddingType),"tablet"===r&&(e=n.paddingTypeTablet),"mobile"===r&&(e=n.paddingTypeMobile),e};b=b();var g={top:"paddingTop",right:"paddingRight",bottom:"paddingBottom",left:"paddingLeft"},h={top:"paddingTopTablet",right:"paddingRightTablet",bottom:"paddingBottomTablet",left:"paddingLeftTablet"},f={top:"paddingTopMobile",right:"paddingRightMobile",bottom:"paddingBottomMobile",left:"paddingLeftMobile"},v=function(e){var t;return"top"==e&&("desktop"===r&&(t="linked"===n.paddingType?n.padding:n.paddingTop),"tablet"===r&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingTopTablet),"mobile"===r&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingTopMobile)),"right"==e&&("desktop"===r&&(t="linked"===n.paddingType?n.padding:n.paddingRight),"tablet"===r&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingRightTablet),"mobile"===r&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingRightMobile)),"bottom"==e&&("desktop"===r&&(t="linked"===n.paddingType?n.padding:n.paddingBottom),"tablet"===r&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingBottomTablet),"mobile"===r&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingBottomMobile)),"left"==e&&("desktop"===r&&(t="linked"===n.paddingType?n.padding:n.paddingLeft),"tablet"===r&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingLeftTablet),"mobile"===r&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingLeftMobile)),t},k=function(){var e;return"desktop"===d&&(e=n.marginType),"tablet"===d&&(e=n.marginTypeTablet),"mobile"===d&&(e=n.marginTypeMobile),e};k=k();var T={top:"marginTop",bottom:"marginBottom"},E={top:"marginTopTablet",bottom:"marginBottomTablet"},x={top:"marginTopMobile",bottom:"marginBottomMobile"},C=function(e){var t;return"top"==e&&("desktop"===d&&(t="linked"===n.marginType?n.margin:n.marginTop),"tablet"===d&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginTopTablet),"mobile"===d&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginTopMobile)),"bottom"==e&&("desktop"===d&&(t="linked"===n.marginType?n.margin:n.marginBottom),"tablet"===d&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginBottomTablet),"mobile"===d&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginBottomMobile)),t},S=function(e){if(n.horizontalAlign===e)return l(t,{horizontalAlign:"unset"});l(t,{horizontalAlign:e})},B=function(){var e;return"desktop"===s&&(e=n.columnsHeightCustom),"tablet"===s&&(e=n.columnsHeightCustomTablet),"mobile"===s&&(e=n.columnsHeightCustomMobile),e};B=B();var M=function(e){if(n.verticalAlign===e)return l(t,{verticalAlign:"unset"});l(t,{verticalAlign:e})};return wp.element.createElement(xe,null,wp.element.createElement(ye,{title:me("Sizing")},wp.element.createElement(ve,{label:me("Columns Gap"),value:n.columnsGap,options:[{label:"Default (10px)",value:"default"},{label:"No Gap",value:"nogap"},{label:"Narrow (5px)",value:"narrow"},{label:"Extended (15px)",value:"extended"},{label:"Wide (20px)",value:"wide"},{label:"Wider (30px)",value:"wider"}],onChange:function(e){return l(t,{columnsGap:e})}}),wp.element.createElement(y.a,{label:"Padding",view:r,changeViewType:i},wp.element.createElement(w.a,{type:b,min:0,max:500,changeType:function(e){"desktop"===r&&l(t,{paddingType:e}),"tablet"===r&&l(t,{paddingTypeTablet:e}),"mobile"===r&&l(t,{paddingTypeMobile:e})},onChange:function(e,a){"desktop"===r&&("linked"===n.paddingType?l(t,{padding:a}):l(t,de({},g[e],a))),"tablet"===r&&("linked"===n.paddingTypeTablet?l(t,{paddingTablet:a}):l(t,de({},h[e],a))),"mobile"===r&&("linked"===n.paddingTypeMobile?l(t,{paddingMobile:a}):l(t,de({},f[e],a)))},options:[{label:me("Top"),type:"top",value:v("top")},{label:me("Right"),type:"right",value:v("right")},{label:me("Bottom"),type:"bottom",value:v("bottom")},{label:me("Left"),type:"left",value:v("left")}]})),wp.element.createElement("hr",null),wp.element.createElement(y.a,{label:"Margin",view:d,changeViewType:p},wp.element.createElement(w.a,{type:k,min:-500,max:500,changeType:function(e){"desktop"===d&&l(t,{marginType:e}),"tablet"===d&&l(t,{marginTypeTablet:e}),"mobile"===d&&l(t,{marginTypeMobile:e})},onChange:function(e,a){"desktop"===d&&("linked"===n.marginType?l(t,{margin:a}):l(t,de({},T[e],a))),"tablet"===d&&("linked"===n.marginTypeTablet?l(t,{marginTablet:a}):l(t,de({},E[e],a))),"mobile"===d&&("linked"===n.marginTypeMobile?l(t,{marginMobile:a}):l(t,de({},x[e],a)))},options:[{label:me("Top"),type:"top",value:C("top")},{label:me("Right"),disabled:!0},{label:me("Bottom"),type:"bottom",value:C("bottom")},{label:me("Left"),disabled:!0}]}))),wp.element.createElement(ye,{title:me("Section Structure"),initialOpen:!1},wp.element.createElement(ve,{label:me("HTML Tag"),value:n.columnsHTMLTag,options:[{label:"Default (div)",value:"div"},{label:"section",value:"section"},{label:"header",value:"header"},{label:"footer",value:"footer"},{label:"article",value:"article"},{label:"main",value:"main"}],onChange:function(e){return l(t,{columnsHTMLTag:e})}}),wp.element.createElement("hr",null),wp.element.createElement(we,{label:me("Maximum Content Width"),value:n.columnsWidth||"",onChange:function(e){(0<=e&&1200>=e||void 0===e)&&l(t,{columnsWidth:e})},min:0,max:1200}),wp.element.createElement("hr",null),n.columnsWidth&&wp.element.createElement(xe,null,wp.element.createElement(ue,{label:"Horizontal Align"},wp.element.createElement(ge,{className:"wp-block-themeisle-icon-buttom-group"},wp.element.createElement(Te,{text:me("Left")},wp.element.createElement(fe,{icon:"editor-alignleft",className:"is-button is-large",isPrimary:"flex-start"===n.horizontalAlign,onClick:function(){return S("flex-start")}})),wp.element.createElement(Te,{text:me("Center")},wp.element.createElement(fe,{icon:"editor-aligncenter",className:"is-button is-large",isPrimary:"center"===n.horizontalAlign,onClick:function(){return S("center")}})),wp.element.createElement(Te,{text:me("Right")},wp.element.createElement(fe,{icon:"editor-alignright",className:"is-button is-large",isPrimary:"flex-end"===n.horizontalAlign,onClick:function(){return S("flex-end")}})))),wp.element.createElement("hr",null)),wp.element.createElement(ve,{label:me("Minimum Height"),value:n.columnsHeight,options:[{label:"Default",value:"auto"},{label:"Fit to Screen",value:"100vh"},{label:"Custom",value:"custom"}],onChange:function(e){return l(t,{columnsHeight:e})}}),wp.element.createElement("hr",null),"custom"===n.columnsHeight&&wp.element.createElement(xe,null,wp.element.createElement(y.a,{label:"Custom Height",view:s,changeViewType:u},wp.element.createElement(we,{value:B||"",onChange:function(e){"desktop"===s&&l(t,{columnsHeightCustom:e}),"tablet"===s&&l(t,{columnsHeightCustomTablet:e}),"mobile"===s&&l(t,{columnsHeightCustomMobile:e})},min:0,max:1e3})),wp.element.createElement("hr",null)),wp.element.createElement(ue,{label:"Vertical Align"},wp.element.createElement(ge,{className:"wp-block-themeisle-icon-buttom-group"},wp.element.createElement(Te,{text:me("Top")},wp.element.createElement(be,{className:"components-icon-button is-button is-large",isPrimary:"flex-start"===n.verticalAlign,onClick:function(){return M("flex-start")}},wp.element.createElement(he,{icon:a.s,size:20}))),wp.element.createElement(Te,{text:me("Middle")},wp.element.createElement(be,{className:"components-icon-button is-button is-large",isPrimary:"center"===n.verticalAlign,onClick:function(){return M("center")}},wp.element.createElement(he,{icon:a.j,size:20}))),wp.element.createElement(Te,{text:me("Bottom")},wp.element.createElement(be,{className:"components-icon-button is-button is-large",isPrimary:"flex-end"===n.verticalAlign,onClick:function(){return M("flex-end")}},wp.element.createElement(he,{icon:a.c,size:20})))))),wp.element.createElement(ye,{title:me("Responsive"),initialOpen:!1},wp.element.createElement(ke,{label:"Hide this section in Desktop devices?",checked:n.hide,onChange:function(e){return l(t,{hide:e})}}),wp.element.createElement(ke,{label:"Hide this section in Tablet devices?",checked:n.hideTablet,onChange:function(e){return l(t,{hideTablet:e})}}),wp.element.createElement(ke,{label:"Hide this section in Mobile devices?",checked:n.hideMobile,onChange:function(e){return l(t,{hideMobile:e})}})))};function Be(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Me(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Oe=wp.i18n.__,Re=wp.components,Ne=Re.PanelBody,Le=Re.SelectControl,ze=wp.element,Ae=ze.Fragment,He=ze.useState,Pe=function(e){var t=e.blockName,n=e.defaults,a=e.changeConfig,l=Me(He("desktop"),2),o=l[0],r=l[1],i=Me(He("desktop"),2),c=i[0],d=i[1],p=function(){var e;return"desktop"===o&&(e=n.paddingType),"tablet"===o&&(e=n.paddingTypeTablet),"mobile"===o&&(e=n.paddingTypeMobile),e};p=p();var m={top:"paddingTop",right:"paddingRight",bottom:"paddingBottom",left:"paddingLeft"},s={top:"paddingTopTablet",right:"paddingRightTablet",bottom:"paddingBottomTablet",left:"paddingLeftTablet"},u={top:"paddingTopMobile",right:"paddingRightMobile",bottom:"paddingBottomMobile",left:"paddingLeftMobile"},b=function(e){var t;return"top"==e&&("desktop"===o&&(t="linked"===n.paddingType?n.padding:n.paddingTop),"tablet"===o&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingTopTablet),"mobile"===o&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingTopMobile)),"right"==e&&("desktop"===o&&(t="linked"===n.paddingType?n.padding:n.paddingRight),"tablet"===o&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingRightTablet),"mobile"===o&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingRightMobile)),"bottom"==e&&("desktop"===o&&(t="linked"===n.paddingType?n.padding:n.paddingBottom),"tablet"===o&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingBottomTablet),"mobile"===o&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingBottomMobile)),"left"==e&&("desktop"===o&&(t="linked"===n.paddingType?n.padding:n.paddingLeft),"tablet"===o&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingLeftTablet),"mobile"===o&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingLeftMobile)),t},g=function(){var e;return"desktop"===c&&(e=n.marginType),"tablet"===c&&(e=n.marginTypeTablet),"mobile"===c&&(e=n.marginTypeMobile),e};g=g();var h={top:"marginTop",right:"marginRight",bottom:"marginBottom",left:"marginLeft"},f={top:"marginTopTablet",right:"marginRightTablet",bottom:"marginBottomTablet",left:"marginLeftTablet"},v={top:"marginTopMobile",right:"marginRightMobile",bottom:"marginBottomMobile",left:"marginLeftMobile"},k=function(e){var t;return"top"==e&&("desktop"===c&&(t="linked"===n.marginType?n.margin:n.marginTop),"tablet"===c&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginTopTablet),"mobile"===c&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginTopMobile)),"right"==e&&("desktop"===c&&(t="linked"===n.marginType?n.margin:n.marginRight),"tablet"===c&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginRightTablet),"mobile"===c&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginRightMobile)),"bottom"==e&&("desktop"===c&&(t="linked"===n.marginType?n.margin:n.marginBottom),"tablet"===c&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginBottomTablet),"mobile"===c&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginBottomMobile)),"left"==e&&("desktop"===c&&(t="linked"===n.marginType?n.margin:n.marginLeft),"tablet"===c&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginLeftTablet),"mobile"===c&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginLeftMobile)),t};return wp.element.createElement(Ae,null,wp.element.createElement(Ne,{title:Oe("Sizing")},wp.element.createElement(y.a,{label:"Padding",view:o,changeViewType:r},wp.element.createElement(w.a,{type:p,min:0,max:500,changeType:function(e){"desktop"===o&&a(t,{paddingType:e}),"tablet"===o&&a(t,{paddingTypeTablet:e}),"mobile"===o&&a(t,{paddingTypeMobile:e})},onChange:function(e,l){"desktop"===o&&("linked"===n.paddingType?a(t,{padding:l}):a(t,Be({},m[e],l))),"tablet"===o&&("linked"===n.paddingTypeTablet?a(t,{paddingTablet:l}):a(t,Be({},s[e],l))),"mobile"===o&&("linked"===n.paddingTypeMobile?a(t,{paddingMobile:l}):a(t,Be({},u[e],l)))},options:[{label:Oe("Top"),type:"top",value:b("top")},{label:Oe("Right"),type:"right",value:b("right")},{label:Oe("Bottom"),type:"bottom",value:b("bottom")},{label:Oe("Left"),type:"left",value:b("left")}]})),wp.element.createElement("hr",null),wp.element.createElement(y.a,{label:"Margin",view:c,changeViewType:d},wp.element.createElement(w.a,{type:g,min:-500,max:500,changeType:function(e){"desktop"===c&&a(t,{marginType:e}),"tablet"===c&&a(t,{marginTypeTablet:e}),"mobile"===c&&a(t,{marginTypeMobile:e})},onChange:function(e,l){"desktop"===c&&("linked"===n.marginType?a(t,{margin:l}):a(t,Be({},h[e],l))),"tablet"===c&&("linked"===n.marginTypeTablet?a(t,{marginTablet:l}):a(t,Be({},f[e],l))),"mobile"===c&&("linked"===n.marginTypeMobile?a(t,{marginMobile:l}):a(t,Be({},v[e],l)))},options:[{label:Oe("Top"),type:"top",value:k("top")},{label:Oe("Right"),type:"right",value:k("right")},{label:Oe("Bottom"),type:"bottom",value:k("bottom")},{label:Oe("Left"),type:"left",value:k("left")}]}))),wp.element.createElement(Ne,{title:Oe("Section Settings"),initialOpen:!1},wp.element.createElement(Le,{label:Oe("HTML Tag"),value:n.columnsHTMLTag,options:[{label:"Default (div)",value:"div"},{label:"section",value:"section"},{label:"header",value:"header"},{label:"footer",value:"footer"},{label:"article",value:"article"},{label:"main",value:"main"}],onChange:function(e){return a(t,{columnsHTMLTag:e})}})))},_e=wp.i18n.__,Ie=wp.components.PanelBody,je=function(e){var t=e.blockDefaults,n=e.changeConfig,a=e.resetConfig,l=e.saveConfig,o=[{name:"themeisle-blocks/advanced-heading",control:L},{name:"themeisle-blocks/button-group",control:U},{name:"themeisle-blocks/font-awesome-icons",control:ce},{name:"themeisle-blocks/advanced-columns",control:Se},{name:"themeisle-blocks/advanced-column",control:Pe}];return wp.element.createElement(Ie,{title:"Global Defaults",className:"wp-block-themeisle-blocks-options-global-defaults"},_e("With Global Defaults, you can set site-wide block defaults for Otter."),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-options-global-defaults-list"},o.map((function(e){var o=e.control;return wp.element.createElement(h,{blockName:e.name,saveConfig:l,resetConfig:a},wp.element.createElement(o,{blockName:e.name,defaults:t[e.name],changeConfig:n}))}))))},Fe=n(5);function Ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Ve(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function De(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function We(e){return(We="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function qe(e,t,n,a,l,o,r){try{var i=e[o](r),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(a,l)}function Ze(e){return function(){var t=this,n=arguments;return new Promise((function(a,l){var o=e.apply(t,n);function r(e){qe(o,a,l,r,i,"next",e)}function i(e){qe(o,a,l,r,i,"throw",e)}r(void 0)}))}}var Ue=wp.i18n.__,Qe=lodash,Ke=Qe.cloneDeep,Je=Qe.isEqual,Ye=Qe.merge,Xe=wp.apiFetch,$e=wp.components,et=$e.PanelBody,tt=$e.Snackbar,nt=$e.ToggleControl,at=wp.data.withDispatch,lt=wp.element,ot=lt.Fragment,rt=lt.useEffect,it=lt.useRef,ct=lt.useState,dt=wp.editPost,pt=dt.PluginSidebar,mt=dt.PluginSidebarMoreMenuItem,st=at((function(e){return{createNotice:e("core/notices").createNotice}}))((function(e){var t=e.createNotice;rt(Ze(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Xe({path:"wp/v2/users/me?context=edit"});case 2:if(!e.sent.capabilities.manage_options){e.next=8;break}return l(!0),e.next=7,wp.api.loadPromise.then((function(){b.current=new wp.api.models.Settings}));case 7:!1===r&&b.current.fetch().then((function(e){if(u(Boolean(e.themeisle_blocks_settings_default_block)),""!==e.themeisle_blocks_settings_global_defaults){var t=Ke(Fe.a);"object"===We(window.themeisleGutenberg.themeDefaults)&&(t=Ye(t,window.themeisleGutenberg.themeDefaults)),t=Ye(t,JSON.parse(e.themeisle_blocks_settings_global_defaults)),window.themeisleGutenberg.globalDefaults=JSON.parse(e.themeisle_blocks_settings_global_defaults),p(t)}else{var n=Ke(Fe.a);"object"===We(window.themeisleGutenberg.themeDefaults)&&(n=Ye(n,window.themeisleGutenberg.themeDefaults)),window.themeisleGutenberg.globalDefaults={},p(n)}i(!1)}));case 8:case"end":return e.stop()}}),e)}))),[]);var n=De(ct(!1),2),a=n[0],l=n[1],o=De(ct(!1),2),r=o[0],i=o[1],c=De(ct({}),2),d=c[0],p=c[1],m=De(ct(!1),2),s=m[0],u=m[1],b=it(null),g=function(e){tt&&t("info",e,{isDismissible:!0,type:"snackbar"})},h=function(){var e=Ze(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Ke(d),Object.keys(t).forEach((function(e){Object.keys(t[e]).forEach((function(n){(void 0!==Fe.a[e][n]&&t[e][n]===Fe.a[e][n]||"object"===We(t[e][n])&&Je(t[e][n],Fe.a[e][n]))&&delete t[e][n]}))})),n=new wp.api.models.Settings({themeisle_blocks_settings_global_defaults:JSON.stringify(t)}),e.next=5,n.save().then((function(){window.themeisleGutenberg.globalDefaults=t,g(Ue("Option updated."))}));case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return wp.element.createElement(ot,null,a&&wp.element.createElement(mt,{target:"wp-block-themeisle-blocks-options"},Ue("Otter Options")),wp.element.createElement(pt,{title:Ue("Otter Options"),name:"wp-block-themeisle-blocks-options"},wp.element.createElement(et,{className:"wp-block-themeisle-blocks-options-general"},wp.element.createElement(nt,{label:Ue("Make Section block your default block for Pages?"),checked:s,onChange:function(){new wp.api.models.Settings({themeisle_blocks_settings_default_block:!Boolean(s)}).save().then((function(e){u(Boolean(e.themeisle_blocks_settings_default_block)),g(Ue("Option updated."))}))}})),wp.element.createElement(je,{blockDefaults:d,changeConfig:function(e,t){var n=Ke(d);for(var a in t)n[e][a]=t[a];p(n)},resetConfig:function(e){var t=Ke(d),n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ge(Object(n),!0).forEach((function(t){Ve(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ge(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},Fe.a[e]);t[e]=n,p(t)},saveConfig:h})))})),ut=(n(44),wp.components.Icon),bt=wp.element.Fragment;(0,wp.plugins.registerPlugin)("themeisle-blocks",{icon:wp.element.createElement(ut,{icon:a.l}),render:function(){return wp.element.createElement(bt,null,wp.element.createElement(st,null))}})},function(e,t,n){"use strict";n.r(t);n(47),n(48),n(49);var a=n(2),l={id:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6,div,p,span",default:""},tag:{default:"h2",type:"string"},align:{type:"string"},alignTablet:{type:"string"},alignMobile:{type:"string"},headingColor:{type:"string",default:"#000000"},highlightColor:{type:"string"},highlightBackground:{type:"string"},fontSize:{type:"number"},fontSizeTablet:{type:"number"},fontSizeMobile:{type:"number"},fontFamily:{type:"string"},fontVariant:{type:"string"},fontStyle:{type:"string",default:"normal"},textTransform:{type:"string",default:"none"},lineHeight:{type:"number"},letterSpacing:{type:"number"},textShadow:{type:"boolean",default:!1},textShadowColor:{type:"string",default:"#000000"},textShadowColorOpacity:{type:"number",default:50},textShadowBlur:{type:"number",default:5},textShadowHorizontal:{type:"number",default:0},textShadowVertical:{type:"number",default:0},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:0},paddingTablet:{type:"number"},paddingMobile:{type:"number"},paddingTop:{type:"number",default:0},paddingTopTablet:{type:"number"},paddingTopMobile:{type:"number"},paddingRight:{type:"number",default:0},paddingRightTablet:{type:"number"},paddingRightMobile:{type:"number"},paddingBottom:{type:"number",default:0},paddingBottomTablet:{type:"number"},paddingBottomMobile:{type:"number"},paddingLeft:{type:"number",default:0},paddingLeftTablet:{type:"number"},paddingLeftMobile:{type:"number"},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:0},marginTablet:{type:"number"},marginMobile:{type:"number"},marginTop:{type:"number",default:0},marginTopTablet:{type:"number"},marginTopMobile:{type:"number"},marginBottom:{type:"number",default:25},marginBottomTablet:{type:"number"},marginBottomMobile:{type:"number"}},o=n(0),r=n.n(o),i=n(6),c=n.n(i);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=wp.blockEditor.RichText,s=[{attributes:{id:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6,div,p,span",default:""},tag:{default:"h2",type:"string"},align:{type:"string"},alignTablet:{type:"string"},alignMobile:{type:"string"},headingColor:{type:"string",default:"#000000"},highlightColor:{type:"string"},highlightBackground:{type:"string"},fontSize:{type:"number"},fontSizeTablet:{type:"number"},fontSizeMobile:{type:"number"},fontFamily:{type:"string"},fontVariant:{type:"string"},fontStyle:{type:"string",default:"normal"},textTransform:{type:"string",default:"none"},lineHeight:{type:"number"},letterSpacing:{type:"number"},textShadow:{type:"boolean",default:!1},textShadowColor:{type:"string",default:"#000000"},textShadowColorOpacity:{type:"number",default:50},textShadowBlur:{type:"number",default:5},textShadowHorizontal:{type:"number",default:0},textShadowVertical:{type:"number",default:0},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:0},paddingTablet:{type:"number",default:0},paddingMobile:{type:"number",default:0},paddingTop:{type:"number",default:0},paddingTopTablet:{type:"number",default:0},paddingTopMobile:{type:"number",default:0},paddingRight:{type:"number",default:0},paddingRightTablet:{type:"number",default:0},paddingRightMobile:{type:"number",default:0},paddingBottom:{type:"number",default:0},paddingBottomTablet:{type:"number",default:0},paddingBottomMobile:{type:"number",default:0},paddingLeft:{type:"number",default:0},paddingLeftTablet:{type:"number",default:0},paddingLeftMobile:{type:"number",default:0},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:0},marginTablet:{type:"number",default:0},marginMobile:{type:"number",default:0},marginTop:{type:"number",default:0},marginTopTablet:{type:"number",default:0},marginTopMobile:{type:"number",default:0},marginBottom:{type:"number",default:25},marginBottomTablet:{type:"number",default:25},marginBottomMobile:{type:"number",default:20}},save:function(e){var t,n=e.attributes,a=e.className;n.textShadow&&(t={textShadow:"".concat(n.textShadowHorizontal,"px ").concat(n.textShadowVertical,"px ").concat(n.textShadowBlur,"px ").concat(c()(n.textShadowColor?n.textShadowColor:"#000000",n.textShadowColorOpacity))});var l=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({color:n.headingColor,fontFamily:n.fontFamily,fontWeight:"regular"===n.fontVariant?"normal":n.fontVariant,fontStyle:n.fontStyle,textTransform:n.textTransform,lineHeight:n.lineHeight&&"".concat(n.lineHeight,"px"),letterSpacing:n.letterSpacing&&"".concat(n.letterSpacing,"px")},t);return wp.element.createElement(m.Content,{tagName:n.tag,value:n.content,id:n.id,className:r()(n.id,a),style:l})}}],u=wp.blocks.createBlock,b={from:[{type:"block",blocks:["core/heading"],transform:function(e){var t=e.content;return u("themeisle-blocks/advanced-heading",{content:t})}},{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return u("themeisle-blocks/advanced-heading",{content:t})}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return u("core/paragraph",{content:t})}}]},g=n(18),h=n.n(g),f=n(5),y=n(9),w=wp.i18n.__,v=wp.components,k=v.Dropdown,T=v.DropdownMenu,E=v.IconButton,x=v.RangeControl,C=v.SVG,S=v.Toolbar,B=wp.blockEditor.BlockControls,M=wp.element.Fragment,O=function(e){var t=e.attributes,n=e.setAttributes,a=e.changeFontFamily,l=e.changeFontVariant,o=e.changeFontStyle,r=e.changeTextTransform,i=e.changeLineHeight,c=e.changeLetterSpacing,d=function(e){return"h1"===e?wp.element.createElement(C,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H1")):"h2"===e?wp.element.createElement(C,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H2")):"h3"===e?wp.element.createElement(C,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H3")):"h4"===e?wp.element.createElement(C,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H4")):"h5"===e?wp.element.createElement(C,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H5")):"h6"===e?wp.element.createElement(C,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H6")):"div"===e?wp.element.createElement(C,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"DIV")):"p"===e?wp.element.createElement(C,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{x:"0",y:"15"},"P")):"span"===e?wp.element.createElement(C,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"SPAN")):void 0},p=function(e){n({tag:e})};return wp.element.createElement(B,null,wp.element.createElement(T,{icon:d(t.tag),label:w("Select tag"),className:"components-toolbar",controls:[{title:w("Heading 1"),icon:d("h1"),onClick:function(){return p("h1")}},{title:w("Heading 2"),icon:d("h2"),onClick:function(){return p("h2")}},{title:w("Heading 3"),icon:d("h3"),onClick:function(){return p("h3")}},{title:w("Heading 4"),icon:d("h4"),onClick:function(){return p("h4")}},{title:w("Heading 5"),icon:d("h5"),onClick:function(){return p("h5")}},{title:w("Heading 6"),icon:d("h6"),onClick:function(){return p("h6")}},{title:w("Division"),icon:d("div"),onClick:function(){return p("div")}},{title:w("Paragraph"),icon:d("p"),onClick:function(){return p("p")}},{title:w("Span Tag"),icon:d("span"),onClick:function(){return p("span")}}]}),wp.element.createElement(S,{className:"wp-themesiel-blocks-advanced-heading-components-toolbar"},wp.element.createElement(k,{contentClassName:"wp-themesiel-blocks-advanced-heading-popover-content",position:"bottom center",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return wp.element.createElement(E,{className:"components-dropdown-menu__toggle",icon:"editor-textcolor",onClick:n,"aria-haspopup":"true","aria-expanded":t,label:w("Typography Settings"),tooltip:w("Typography Settings")},wp.element.createElement("span",{className:"components-dropdown-menu__indicator"}))},renderContent:function(){return wp.element.createElement(M,null,wp.element.createElement(y.a,{label:w("Font Family"),value:t.fontFamily,onChangeFontFamily:a,isSelect:!0,valueVariant:t.fontVariant,onChangeFontVariant:l,valueStyle:t.fontStyle,onChangeFontStyle:o,valueTransform:t.textTransform,onChangeTextTransform:r}),wp.element.createElement(x,{label:w("Line Height"),value:t.lineHeight,onChange:i,min:0,max:200}),wp.element.createElement(x,{label:w("Letter Spacing"),value:t.letterSpacing,onChange:c,min:-50,max:100}))}})))},R=n(8),N=n(4),L=n(3),z=n(19);function A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function H(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var P=wp.i18n.__,_=wp.components,I=_.Button,j=_.Dashicon,F=_.PanelBody,G=_.RangeControl,V=_.ToggleControl,D=wp.blockEditor,W=D.AlignmentToolbar,q=D.ColorPalette,Z=D.InspectorControls,U=wp.element,Q=U.Fragment,K=U.useState,J=function(e){var t=e.attributes,n=e.setAttributes,a=e.changeFontFamily,l=e.changeFontVariant,o=e.changeFontStyle,i=e.changeTextTransform,c=e.changeLineHeight,d=e.changeLetterSpacing,p=H(K("style"),2),m=p[0],s=p[1],u=H(K("desktop"),2),b=u[0],g=u[1],h=H(K("desktop"),2),f=h[0],w=h[1],v=H(K("desktop"),2),k=v[0],T=v[1],E=H(K("desktop"),2),x=E[0],C=E[1],S=function(){var e;return"desktop"===b&&(e=t.fontSize),"tablet"===b&&(e=t.fontSizeTablet),"mobile"===b&&(e=t.fontSizeMobile),e};S=S();var B=function(){var e;return"desktop"===f&&(e=t.align),"tablet"===f&&(e=t.alignTablet),"mobile"===f&&(e=t.alignMobile),e};B=B();var M=function(){var e;return"desktop"===k&&(e=t.paddingType),"tablet"===k&&(e=t.paddingTypeTablet),"mobile"===k&&(e=t.paddingTypeMobile),e};M=M();var O={top:"paddingTop",right:"paddingRight",bottom:"paddingBottom",left:"paddingLeft"},_={top:"paddingTopTablet",right:"paddingRightTablet",bottom:"paddingBottomTablet",left:"paddingLeftTablet"},D={top:"paddingTopMobile",right:"paddingRightMobile",bottom:"paddingBottomMobile",left:"paddingLeftMobile"},U=function(e){var n;return"top"==e&&("desktop"===k&&(n="linked"===t.paddingType?t.padding:t.paddingTop),"tablet"===k&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingTopTablet),"mobile"===k&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingTopMobile)),"right"==e&&("desktop"===k&&(n="linked"===t.paddingType?t.padding:t.paddingRight),"tablet"===k&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingRightTablet),"mobile"===k&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingRightMobile)),"bottom"==e&&("desktop"===k&&(n="linked"===t.paddingType?t.padding:t.paddingBottom),"tablet"===k&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingBottomTablet),"mobile"===k&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingBottomMobile)),"left"==e&&("desktop"===k&&(n="linked"===t.paddingType?t.padding:t.paddingLeft),"tablet"===k&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingLeftTablet),"mobile"===k&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingLeftMobile)),n},J=function(){var e;return"desktop"===x&&(e=t.marginType),"tablet"===x&&(e=t.marginTypeTablet),"mobile"===x&&(e=t.marginTypeMobile),e};J=J();var Y={top:"marginTop",bottom:"marginBottom"},X={top:"marginTopTablet",bottom:"marginBottomTablet"},$={top:"marginTopMobile",bottom:"marginBottomMobile"},ee=function(e){var n;return"top"==e&&("desktop"===x&&(n="linked"===t.marginType?t.margin:t.marginTop),"tablet"===x&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginTopTablet),"mobile"===x&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginTopMobile)),"bottom"==e&&("desktop"===x&&(n="linked"===t.marginType?t.margin:t.marginBottom),"tablet"===x&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginBottomTablet),"mobile"===x&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginBottomMobile)),n};return wp.element.createElement(Q,null,wp.element.createElement(Z,null,wp.element.createElement(F,{className:"wp-block-themeisle-blocks-advanced-heading-header-panel"},wp.element.createElement(I,{className:r()("header-tab",{"is-selected":"style"===m}),onClick:function(){return s("style")}},wp.element.createElement("span",null,wp.element.createElement(j,{icon:"admin-customizer"}),P("Style"))),wp.element.createElement(I,{className:r()("header-tab",{"is-selected":"advanced"===m}),onClick:function(){return s("advanced")}},wp.element.createElement("span",null,wp.element.createElement(j,{icon:"admin-generic"}),P("Advanced")))),"style"===m&&wp.element.createElement(Q,null,wp.element.createElement(F,{title:P("General Settings")},wp.element.createElement(Q,null,wp.element.createElement("p",null,P("Heading Color")),wp.element.createElement(q,{label:"Heading Color",value:t.headingColor,onChange:function(e){n({headingColor:e})}})),wp.element.createElement(N.a,{label:"Font Size",view:b,changeViewType:g},wp.element.createElement(G,{value:S||"",onChange:function(e){"desktop"===b&&n({fontSize:e}),"tablet"===b&&n({fontSizeTablet:e}),"mobile"===b&&n({fontSizeMobile:e})},min:1,max:500})),wp.element.createElement(N.a,{label:"Alignment",view:f,changeViewType:w},wp.element.createElement(W,{value:B,onChange:function(e){"desktop"===f&&n({align:e}),"tablet"===f&&n({alignTablet:e}),"mobile"===f&&n({alignMobile:e})},isCollapsed:!1}))),wp.element.createElement(F,{title:P("Typography Settings"),initialOpen:!1},wp.element.createElement(y.a,{label:P("Font Family"),value:t.fontFamily,onChangeFontFamily:a,valueVariant:t.fontVariant,onChangeFontVariant:l,valueStyle:t.fontStyle,onChangeFontStyle:o,valueTransform:t.textTransform,onChangeTextTransform:i}),wp.element.createElement(G,{label:P("Line Height"),value:t.lineHeight,onChange:c,min:0,max:200}),wp.element.createElement(G,{label:P("Letter Spacing"),value:t.letterSpacing,onChange:d,min:-50,max:100}),wp.element.createElement(V,{label:"Shadow Properties",checked:t.textShadow,onChange:function(e){n({textShadow:e})}}),t.textShadow&&wp.element.createElement(Q,null,wp.element.createElement(Q,null,wp.element.createElement("p",null,P("Color")),wp.element.createElement(q,{label:P("Color"),value:t.textShadowColor,onChange:function(e){n({textShadowColor:e})}})),wp.element.createElement(R.a,{label:"Shadow Properties"},wp.element.createElement(G,{label:P("Opacity"),value:t.textShadowColorOpacity,onChange:function(e){n({textShadowColorOpacity:e})},min:0,max:100}),wp.element.createElement(G,{label:P("Blur"),value:t.textShadowBlur,onChange:function(e){n({textShadowBlur:e})},min:0,max:100}),wp.element.createElement(G,{label:P("Horizontal"),value:t.textShadowHorizontal,onChange:function(e){n({textShadowHorizontal:e})},min:-100,max:100}),wp.element.createElement(G,{label:P("Vertical"),value:t.textShadowVertical,onChange:function(e){n({textShadowVertical:e})},min:-100,max:100})))))||"advanced"===m&&wp.element.createElement(Q,null,wp.element.createElement(F,{title:P("Highlight Color")},wp.element.createElement(Q,null,wp.element.createElement("p",null,P("Highlight Color")),wp.element.createElement(q,{label:"Highlight Color",value:t.highlightColor,onChange:function(e){n({highlightColor:e})}})),wp.element.createElement(Q,null,wp.element.createElement("p",null,P("Highlight Background")),wp.element.createElement(q,{label:"Highlight Background",value:t.highlightBackground,onChange:function(e){n({highlightBackground:e})}}))),wp.element.createElement(F,{title:P("Spacing"),initialOpen:!1},wp.element.createElement(N.a,{label:"Padding",view:k,changeViewType:T},wp.element.createElement(L.a,{type:M,min:0,max:500,changeType:function(e){"desktop"===k&&n({paddingType:e}),"tablet"===k&&n({paddingTypeTablet:e}),"mobile"===k&&n({paddingTypeMobile:e})},onChange:function(e,a){"desktop"===k&&("linked"===t.paddingType?n({padding:a}):n(A({},O[e],a))),"tablet"===k&&("linked"===t.paddingTypeTablet?n({paddingTablet:a}):n(A({},_[e],a))),"mobile"===k&&("linked"===t.paddingTypeMobile?n({paddingMobile:a}):n(A({},D[e],a)))},options:[{label:P("Top"),type:"top",value:U("top")},{label:P("Right"),type:"right",value:U("right")},{label:P("Bottom"),type:"bottom",value:U("bottom")},{label:P("Left"),type:"left",value:U("left")}]})),wp.element.createElement(N.a,{label:"Margin",view:x,changeViewType:C},wp.element.createElement(L.a,{type:J,min:-500,max:500,changeType:function(e){"desktop"===x&&n({marginType:e}),"tablet"===x&&n({marginTypeTablet:e}),"mobile"===x&&n({marginTypeMobile:e})},onChange:function(e,a){"desktop"===x&&("linked"===t.marginType?n({margin:a}):n(A({},Y[e],a))),"tablet"===x&&("linked"===t.marginTypeTablet?n({marginTablet:a}):n(A({},X[e],a))),"mobile"===x&&("linked"===t.marginTypeMobile?n({marginMobile:a}):n(A({},$[e],a)))},options:[{label:P("Top"),type:"top",value:ee("top")},{label:P("Right"),disabled:!0},{label:P("Bottom"),type:"bottom",value:ee("bottom")},{label:P("Left"),disabled:!0}]}))))),wp.element.createElement(z.a,{value:t.id,onChange:function(e){n({id:e})}}))};function Y(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function X(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function $(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?X(Object(n),!0).forEach((function(t){ee(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var te=wp.i18n.__,ne=lodash.isEqual,ae=wp.blocks.createBlock,le=wp.blockEditor.RichText,oe=wp.element,re=oe.Fragment,ie=oe.useEffect,ce=wp.viewport.withViewportMatch,de=[],pe=ce({isLarger:">= large",isLarge:"<= large",isSmall:">= small",isSmaller:"<= small"})((function(e){var t=e.attributes,n=e.setAttributes,a=e.className,o=e.clientId,i=e.mergeBlocks,d=e.name,p=e.insertBlocksAfter,m=e.onReplace,s=e.isLarger,u=e.isLarge,b=e.isSmall,g=e.isSmaller;ie((function(){k()}),[]);var y,w,v,k=function(){var e=window.themeisleGutenberg.blockIDs?window.themeisleGutenberg.blockIDs:[];if(void 0===t.id){var a,r="wp-block-themeisle-blocks-advanced-heading-".concat(o.substr(0,8));void 0!==(window.themeisleGutenberg.globalDefaults?window.themeisleGutenberg.globalDefaults:void 0)&&(ne(f.a[d],window.themeisleGutenberg.globalDefaults[d])||(a=$({},window.themeisleGutenberg.globalDefaults[d]),Object.keys(a).map((function(e){if(t[e]!==a[e]&&void 0!==l[e].default&&t[e]!==l[e].default)return delete a[e]})))),n($({},a,{id:r})),de.push(r),e.push(r)}else if(de.includes(t.id)){var i="wp-block-themeisle-blocks-advanced-heading-".concat(o.substr(0,8));n({id:i}),de.push(i)}else de.push(t.id),e.push(t.id);window.themeisleGutenberg.blockIDs=Y(e)},T=!s&&!u&&b&&!g,E=!(s||u||b||g),x=function(e){n(e?{fontFamily:e,fontVariant:"normal",fontStyle:"normal"}:{fontFamily:e,fontVariant:e})},C=function(e){n({fontVariant:e})},S=function(e){n({fontStyle:e})},B=function(e){n({textTransform:e})},M=function(e){n({lineHeight:e})},R=function(e){n({letterSpacing:e})};s&&!u&&b&&!g&&(y={fontSize:"".concat(t.fontSize,"px")},w={textAlign:t.align,paddingTop:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingTop,"px"),paddingRight:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingRight,"px"),paddingBottom:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingBottom,"px"),paddingLeft:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingLeft,"px"),marginTop:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginTop,"px"),marginBottom:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginBottom,"px")}),T&&(y={fontSize:"".concat(t.fontSizeTablet,"px")},w={textAlign:t.alignTablet,paddingTop:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingTopTablet,"px"),paddingRight:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingRightTablet,"px"),paddingBottom:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingBottomTablet,"px"),paddingLeft:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingLeftTablet,"px"),marginTop:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginTopTablet,"px"),marginBottom:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginBottomTablet,"px")}),E&&(y={fontSize:"".concat(t.fontSizeMobile,"px")},w={textAlign:t.alignMobile,paddingTop:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingTopMobile,"px"),paddingRight:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingRightMobile,"px"),paddingBottom:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingBottomMobile,"px"),paddingLeft:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingLeftMobile,"px"),marginTop:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginTopMobile,"px"),marginBottom:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginBottomMobile,"px")}),t.textShadow&&(v={textShadow:"".concat(t.textShadowHorizontal,"px ").concat(t.textShadowVertical,"px ").concat(t.textShadowBlur,"px ").concat(c()(t.textShadowColor?t.textShadowColor:"#000000",t.textShadowColorOpacity))});var N=$({color:t.headingColor},y,{fontFamily:t.fontFamily?t.fontFamily:"inherit",fontWeight:"regular"===t.fontVariant?"normal":t.fontVariant,fontStyle:t.fontStyle,textTransform:t.textTransform,lineHeight:t.lineHeight&&"".concat(t.lineHeight,"px"),letterSpacing:t.letterSpacing&&"".concat(t.letterSpacing,"px")},w,{},v);return wp.element.createElement(re,null,wp.element.createElement("style",null,".".concat(t.id," mark {\n\t\t\t\t\t\tcolor: ").concat(t.highlightColor,";\n\t\t\t\t\t\tbackground: ").concat(t.highlightBackground,";\n\t\t\t\t\t}")),t.fontFamily&&wp.element.createElement(h.a,{fonts:[{font:t.fontFamily,weights:t.fontVariant&&["".concat(t.fontVariant+("italic"===t.fontStyle?":i":""))]}]}),wp.element.createElement(O,{attributes:t,setAttributes:n,changeFontFamily:x,changeFontVariant:C,changeFontStyle:S,changeTextTransform:B,changeLineHeight:M,changeLetterSpacing:R}),wp.element.createElement(J,{attributes:t,setAttributes:n,changeFontFamily:x,changeFontVariant:C,changeFontStyle:S,changeTextTransform:B,changeLineHeight:M,changeLetterSpacing:R}),wp.element.createElement(le,{identifier:"content",className:r()(t.id,a),value:t.content,placeholder:te("Write heading…"),tagName:t.tag,formattingControls:["bold","italic","link","strikethrough","mark"],allowedFormats:["core/bold","core/italic","core/link","core/strikethrough","themeisle-blocks/mark"],onMerge:i,unstableOnSplit:p?function(e,t){n({content:e});for(var a=arguments.length,l=new Array(a>2?a-2:0),o=2;o<a;o++)l[o-2]=arguments[o];p([].concat(l,[ae("core/paragraph",{content:t})]))}:void 0,onRemove:function(){return m([])},style:N,onChange:function(e){n({content:e})}}))})),me=wp.blockEditor.RichText,se=function(e){var t=e.attributes,n=e.className;return wp.element.createElement(me.Content,{tagName:t.tag,value:t.content,id:t.id,className:r()(t.id,n)})},ue=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/advanced-heading",{title:ue("Advanced Heading"),description:ue("Advanced Heading gives a spin to editor's Heading block with much needed customization options."),icon:a.h,category:"themeisle-blocks",keywords:[ue("heading"),ue("title"),ue("advanced heading")],attributes:l,deprecated:s,transforms:b,edit:pe,save:se})},function(e,t,n){"use strict";n.r(t);n(57),n(58);var a=n(2),l={id:{type:"string"},align:{type:"string"},prefix:{type:"string",default:"fab"},icon:{type:"string",default:"themeisle"},link:{type:"string"},newTab:{type:"boolean",default:!1},fontSize:{type:"number",default:16},padding:{type:"number",default:5},margin:{type:"number",default:5},backgroundColor:{type:"string"},textColor:{type:"string"},borderColor:{type:"string"},backgroundColorHover:{type:"string"},textColorHover:{type:"string"},borderColorHover:{type:"string"},borderSize:{type:"number",default:0},borderRadius:{type:"number",default:0}};function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=[{attributes:{prefix:{type:"string",default:"fab"},icon:{type:"string",default:"themeisle"},fontSize:{type:"number",default:16},padding:{type:"number",default:5},margin:{type:"number",default:5},backgroundColor:{type:"string"},textColor:{type:"string"},borderColor:{type:"string"},borderSize:{type:"number",default:0},borderRadius:{type:"number",default:0}},supports:{align:["left","center","right"]},migrate:function(e){var t="center";return e.className.includes("alignleft")&&(t="left"),e.className.includes("aligncenter")&&(t="center"),e.className.includes("alignright")&&(t="right"),function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{align:t,className:""})},save:function(e){var t={borderRadius:e.attributes.borderRadius+"%",fontSize:e.attributes.fontSize+"px",padding:e.attributes.padding+"px"},n={color:e.attributes.textColor,backgroundColor:e.attributes.backgroundColor,borderColor:e.attributes.borderColor,borderRadius:e.attributes.borderRadius+"%",borderStyle:"solid",borderWidth:e.attributes.borderSize+"px",display:"inline-block",margin:e.attributes.margin+"px"};return wp.element.createElement("p",{className:e.className,style:{textAlign:e.attributes.align}},wp.element.createElement("span",{className:"".concat(e.className,"-container"),style:n},wp.element.createElement("i",{className:"".concat(e.attributes.prefix," fa-").concat(e.attributes.icon),style:t})))}},{attributes:{align:{type:"string"},prefix:{type:"string",default:"fab"},icon:{type:"string",default:"themeisle"},fontSize:{type:"number",default:16},padding:{type:"number",default:5},margin:{type:"number",default:5},backgroundColor:{type:"string"},textColor:{type:"string"},borderColor:{type:"string"},borderSize:{type:"number",default:0},borderRadius:{type:"number",default:0}},save:function(e){var t={borderRadius:e.attributes.borderRadius+"%",fontSize:e.attributes.fontSize+"px",padding:e.attributes.padding+"px"},n={color:e.attributes.textColor,backgroundColor:e.attributes.backgroundColor,borderColor:e.attributes.borderColor,borderRadius:e.attributes.borderRadius+"%",borderStyle:"solid",borderWidth:e.attributes.borderSize+"px",display:"inline-block",margin:e.attributes.margin+"px"};return wp.element.createElement("p",{className:e.className,style:{textAlign:e.attributes.align}},wp.element.createElement("span",{className:"undefined-container",style:n},wp.element.createElement("i",{className:"".concat(e.attributes.prefix," fa-").concat(e.attributes.icon),style:t})))}},{attributes:{id:{type:"string"},align:{type:"string"},prefix:{type:"string",default:"fab"},icon:{type:"string",default:"themeisle"},link:{type:"string"},newTab:{type:"boolean",default:!1},fontSize:{type:"number",default:16},padding:{type:"number",default:5},margin:{type:"number",default:5},backgroundColor:{type:"string"},textColor:{type:"string"},borderColor:{type:"string"},backgroundColorHover:{type:"string"},textColorHover:{type:"string"},borderColorHover:{type:"string"},borderSize:{type:"number",default:0},borderRadius:{type:"number",default:0}},save:function(e){var t=e.attributes,n=e.className,a={borderRadius:t.borderRadius+"%",borderStyle:"solid",borderWidth:t.borderSize+"px",display:"inline-block",margin:t.margin+"px"},l={borderRadius:t.borderRadius+"%",fontSize:t.fontSize+"px",padding:t.padding+"px"},o=function(){return wp.element.createElement("i",{className:"".concat(t.prefix," fa-").concat(t.icon),style:l})};return wp.element.createElement("p",{className:n,id:t.id,style:{textAlign:t.align}},wp.element.createElement("span",{className:"wp-block-themeisle-blocks-font-awesome-icons-container",style:a},t.link?wp.element.createElement("a",{href:t.link,target:t.newTab?"_blank":"_self",style:{color:t.textColor},rel:"noopener noreferrer"},wp.element.createElement(o,null)):wp.element.createElement(o,null)))}}],c=n(5),d=wp.i18n.__,p=wp.blockEditor,m=p.AlignmentToolbar,s=p.BlockControls,u=function(e){var t=e.attributes,n=e.setAttributes;return wp.element.createElement(s,null,wp.element.createElement(m,{value:t.align,onChange:function(e){n({align:e})},alignmentControls:[{icon:"editor-alignleft",title:d("Align left"),align:"left"},{icon:"editor-aligncenter",title:d("Align center"),align:"center"},{icon:"editor-alignright",title:d("Align right"),align:"right"}]}))},b=n(20);function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var f=wp.i18n.__,y=wp.components,w=y.BaseControl,v=y.Button,k=y.ButtonGroup,T=y.PanelBody,E=y.Placeholder,x=y.RangeControl,C=y.Spinner,S=y.ToggleControl,B=wp.blockEditor,M=B.ColorPalette,O=B.ContrastChecker,R=B.InspectorControls,N=wp.element,L=N.Fragment,z=N.useState,A=React.lazy((function(){return Promise.all([n.e(0),n.e(1)]).then(n.bind(null,105))})),H=function(e){var t=e.attributes,n=e.setAttributes,a=h(z(!1),2),l=a[0],o=a[1];return wp.element.createElement(R,null,wp.element.createElement(T,{title:f("Icon Settings")},wp.element.createElement(React.Suspense,{fallback:wp.element.createElement(E,{className:"wp-themeisle-block-spinner"},wp.element.createElement(C,null))},wp.element.createElement(A,{label:f("Icon Picker"),prefix:t.prefix,icon:t.icon,onChange:function(e){"object"===g(e)?n({icon:e.name,prefix:e.prefix}):n({icon:e})}})),wp.element.createElement(b.a,{label:f("Link"),placeholder:"https://…",value:t.link,onChange:function(e){n({link:e})}},wp.element.createElement(S,{label:"Open in New Tab?",checked:t.newTab,onChange:function(){n({newTab:!t.newTab})}}))),wp.element.createElement(T,{title:f("Icon Sizes"),initialOpen:!1},wp.element.createElement(x,{label:f("Icon Size"),value:t.fontSize||"",initialPosition:16,onChange:function(e){n({fontSize:e})},min:12,max:140,beforeIcon:"minus",afterIcon:"plus"}),wp.element.createElement(x,{label:f("Padding"),value:t.padding||"",initialPosition:5,onChange:function(e){n({padding:e})},min:0,max:100,beforeIcon:"minus",afterIcon:"plus"}),wp.element.createElement(x,{label:f("Margin"),value:t.margin||"",initialPosition:5,onChange:function(e){n({margin:e})},min:0,max:100,beforeIcon:"minus",afterIcon:"plus"})),wp.element.createElement(T,{title:f("Color"),initialOpen:!1},wp.element.createElement(k,{className:"wp-block-themeisle-blocks-font-awesome-icons-hover-control"},wp.element.createElement(v,{isDefault:!0,isLarge:!0,isPrimary:!l,onClick:function(){return o(!1)}},f("Normal")),wp.element.createElement(v,{isDefault:!0,isLarge:!0,isPrimary:l,onClick:function(){return o(!0)}},f("Hover"))),l?wp.element.createElement(L,null,wp.element.createElement(w,{label:"Hover Background"},wp.element.createElement(M,{label:"Hover Background",value:t.backgroundColorHover,onChange:function(e){n({backgroundColorHover:e})}})),wp.element.createElement(w,{label:"Hover Icon"},wp.element.createElement(M,{label:"Hover Icon",value:t.textColorHover,onChange:function(e){n({textColorHover:e})}})),wp.element.createElement(w,{label:"Hover Border"},wp.element.createElement(M,{label:"Hover Border",value:t.borderColorHover,onChange:function(e){n({borderColorHover:e})}})),wp.element.createElement(O,{textColor:t.textColorHover,backgroundColor:t.backgroundColorHover})):wp.element.createElement(L,null,wp.element.createElement(w,{label:"Background"},wp.element.createElement(M,{label:"Background",value:t.backgroundColor,onChange:function(e){n({backgroundColor:e})}})),wp.element.createElement(w,{label:"Icon"},wp.element.createElement(M,{label:"Icon",value:t.textColor,onChange:function(e){n({textColor:e})}})),wp.element.createElement(w,{label:"Border"},wp.element.createElement(M,{label:"Border",value:t.borderColor,onChange:function(e){n({borderColor:e})}})),wp.element.createElement(O,{textColor:t.textColor,backgroundColor:t.backgroundColor}))),wp.element.createElement(T,{title:f("Border Settings"),initialOpen:!1},wp.element.createElement(x,{label:f("Border Size"),value:t.borderSize,onChange:function(e){n({borderSize:e})},min:0,max:120,beforeIcon:"minus",afterIcon:"plus"}),wp.element.createElement(x,{label:f("Border Radius"),value:t.borderRadius,onChange:function(e){n({borderRadius:e})},min:0,max:100,beforeIcon:"grid-view",afterIcon:"marker"})))};function P(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){j(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function j(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var F=lodash.isEqual,G=wp.element,V=G.Fragment,D=G.useEffect,W=[],q=function(e){var t=e.attributes,n=e.setAttributes,a=e.className,o=e.clientId,r=e.name;D((function(){i()}),[]);var i=function(){var e=window.themeisleGutenberg.blockIDs?window.themeisleGutenberg.blockIDs:[];if(void 0===t.id){var a,i="wp-block-themeisle-blocks-font-awesome-icons-".concat(o.substr(0,8));void 0!==(window.themeisleGutenberg.globalDefaults?window.themeisleGutenberg.globalDefaults:void 0)&&(F(c.a[r],window.themeisleGutenberg.globalDefaults[r])||(a=I({},window.themeisleGutenberg.globalDefaults[r]),Object.keys(a).map((function(e){if(t[e]!==a[e]&&void 0!==l[e].default&&t[e]!==l[e].default)return delete a[e]})))),n(I({},a,{id:i})),W.push(i),e.push(i)}else if(W.includes(t.id)){var d="wp-block-themeisle-blocks-font-awesome-icons-".concat(o.substr(0,8));n({id:d}),W.push(d)}else W.push(t.id),e.push(t.id);window.themeisleGutenberg.blockIDs=P(e)},d={borderRadius:t.borderRadius+"%",fontSize:t.fontSize+"px",padding:t.padding+"px"},p={color:t.textColor,backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderRadius:t.borderRadius+"%",borderStyle:"solid",borderWidth:t.borderSize+"px",display:"inline-block",margin:t.margin+"px"};return wp.element.createElement(V,null,wp.element.createElement(u,{attributes:t,setAttributes:n}),wp.element.createElement(H,{attributes:t,setAttributes:n}),wp.element.createElement("style",null,"#".concat(t.id," .").concat(a,"-container:hover {\n\t\t\t\t\t\tcolor: ").concat(t.textColorHover?t.textColorHover:t.textColor," !important;\n\t\t\t\t\t\tbackground: ").concat(t.backgroundColorHover?t.backgroundColorHover:t.backgroundColor," !important;\n\t\t\t\t\t\tborder-color: ").concat(t.borderColorHover?t.borderColorHover:t.borderColor," !important;\n\t\t\t\t\t}")),wp.element.createElement("p",{className:a,id:t.id,style:{textAlign:t.align}},wp.element.createElement("span",{className:"wp-block-themeisle-blocks-font-awesome-icons-container",style:p},wp.element.createElement("i",{className:"".concat(t.prefix," fa-").concat(t.icon),style:d}))))},Z=function(e){var t=e.attributes,n=e.className;return wp.element.createElement("p",{className:n,id:t.id},wp.element.createElement("span",{className:"wp-block-themeisle-blocks-font-awesome-icons-container"},t.link?wp.element.createElement("a",{href:t.link,target:t.newTab?"_blank":"_self",rel:"noopener noreferrer"},wp.element.createElement("i",{className:"".concat(t.prefix," fa-").concat(t.icon)})):wp.element.createElement("i",{className:"".concat(t.prefix," fa-").concat(t.icon)})))},U=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/font-awesome-icons",{title:U("Font Awesome Icons"),description:U("Share buttons for your website visitors to share content on any social sharing service."),icon:a.g,category:"themeisle-blocks",keywords:["font awesome","dashicons","icons"],attributes:l,deprecated:i,edit:q,save:Z})},function(e,t,n){"use strict";n.r(t);n(82),n(83),n(84);var a=n(2),l={facebook:{type:"boolean",default:!0},twitter:{type:"boolean",default:!0},linkedin:{type:"boolean",default:!0},pinterest:{type:"boolean",default:!1},tumblr:{type:"boolean",default:!1},reddit:{type:"boolean",default:!1}},o=n(0),r=n.n(o),i=wp.i18n.__,c={facebook:{label:i("Facebook"),icon:"facebook-f"},twitter:{label:i("Twitter"),icon:"twitter"},linkedin:{label:i("Linkedin"),icon:"linkedin-in"},pinterest:{label:i("Pinterest"),icon:"pinterest-p"},tumblr:{label:i("Tumblr"),icon:"tumblr"},reddit:{label:i("Reddit"),icon:"reddit-alien"}},d=wp.components,p=d.Path,m=d.SVG,s=function(e){var t=e.icon;return"facebook"===t?wp.element.createElement(m,{className:"wp-block-themeisle-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 264 512"},wp.element.createElement(p,{fill:"currentColor",d:"M76.7 512V283H0v-91h76.7v-71.7C76.7 42.4 124.3 0 193.8 0c33.3 0 61.9 2.5 70.2 3.6V85h-48.2c-37.8 0-45.1 18-45.1 44.3V192H256l-11.7 91h-73.6v229"})):"twitter"===t?wp.element.createElement(m,{className:"wp-block-themeisle-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},wp.element.createElement(p,{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"})):"linkedin"===t?wp.element.createElement(m,{className:"wp-block-themeisle-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"},wp.element.createElement(p,{fill:"currentColor",d:"M100.3 480H7.4V180.9h92.9V480zM53.8 140.1C24.1 140.1 0 115.5 0 85.8 0 56.1 24.1 32 53.8 32c29.7 0 53.8 24.1 53.8 53.8 0 29.7-24.1 54.3-53.8 54.3zM448 480h-92.7V334.4c0-34.7-.7-79.2-48.3-79.2-48.3 0-55.7 37.7-55.7 76.7V480h-92.8V180.9h89.1v40.8h1.3c12.4-23.5 42.7-48.3 87.9-48.3 94 0 111.3 61.9 111.3 142.3V480z"})):"pinterest"===t?wp.element.createElement(m,{className:"wp-block-themeisle-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512"},wp.element.createElement(p,{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"})):"tumblr"===t?wp.element.createElement(m,{className:"wp-block-themeisle-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"},wp.element.createElement(p,{fill:"currentColor",d:"M309.8 480.3c-13.6 14.5-50 31.7-97.4 31.7-120.8 0-147-88.8-147-140.6v-144H17.9c-5.5 0-10-4.5-10-10v-68c0-7.2 4.5-13.6 11.3-16 62-21.8 81.5-76 84.3-117.1.8-11 6.5-16.3 16.1-16.3h70.9c5.5 0 10 4.5 10 10v115.2h83c5.5 0 10 4.4 10 9.9v81.7c0 5.5-4.5 10-10 10h-83.4V360c0 34.2 23.7 53.6 68 35.8 4.8-1.9 9-3.2 12.7-2.2 3.5.9 5.8 3.4 7.4 7.9l22 64.3c1.8 5 3.3 10.6-.4 14.5z"})):"reddit"===t?wp.element.createElement(m,{className:"wp-block-themeisle-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},wp.element.createElement(p,{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"})):wp.element.createElement(m,{className:"wp-block-themeisle-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},wp.element.createElement(p,{fill:"currentColor",d:"M208 88.286c0-10 6.286-21.714 17.715-21.714 11.142 0 17.714 11.714 17.714 21.714 0 10.285-6.572 21.714-17.714 21.714C214.286 110 208 98.571 208 88.286zm304 160c0 36.001-11.429 102.286-36.286 129.714-22.858 24.858-87.428 61.143-120.857 70.572l-1.143.286v32.571c0 16.286-12.572 30.571-29.143 30.571-10 0-19.429-5.714-24.572-14.286-5.427 8.572-14.856 14.286-24.856 14.286-10 0-19.429-5.714-24.858-14.286-5.142 8.572-14.571 14.286-24.57 14.286-10.286 0-19.429-5.714-24.858-14.286-5.143 8.572-14.571 14.286-24.571 14.286-18.857 0-29.429-15.714-29.429-32.857-16.286 12.285-35.715 19.428-56.571 19.428-22 0-43.429-8.285-60.286-22.857 10.285-.286 20.571-2.286 30.285-5.714-20.857-5.714-39.428-18.857-52-36.286 21.37 4.645 46.209 1.673 67.143-11.143-22-22-56.571-58.857-68.572-87.428C1.143 321.714 0 303.714 0 289.429c0-49.714 20.286-160 86.286-160 10.571 0 18.857 4.858 23.143 14.857a158.792 158.792 0 0 1 12-15.428c2-2.572 5.714-5.429 7.143-8.286 7.999-12.571 11.714-21.142 21.714-34C182.571 45.428 232 17.143 285.143 17.143c6 0 12 .285 17.714 1.143C313.714 6.571 328.857 0 344.572 0c14.571 0 29.714 6 40 16.286.857.858 1.428 2.286 1.428 3.428 0 3.714-10.285 13.429-12.857 16.286 4.286 1.429 15.714 6.858 15.714 12 0 2.857-2.857 5.143-4.571 7.143 31.429 27.714 49.429 67.143 56.286 108 4.286-5.143 10.285-8.572 17.143-8.572 10.571 0 20.857 7.144 28.571 14.001C507.143 187.143 512 221.714 512 248.286zM188 89.428c0 18.286 12.571 37.143 32.286 37.143 19.714 0 32.285-18.857 32.285-37.143 0-18-12.571-36.857-32.285-36.857-19.715 0-32.286 18.858-32.286 36.857zM237.714 194c0-19.714 3.714-39.143 8.571-58.286-52.039 79.534-13.531 184.571 68.858 184.571 21.428 0 42.571-7.714 60-20 2-7.429 3.714-14.857 3.714-22.572 0-14.286-6.286-21.428-20.572-21.428-4.571 0-9.143.857-13.429 1.714-63.343 12.668-107.142 3.669-107.142-63.999zm-41.142 254.858c0-11.143-8.858-20.857-20.286-20.857-11.429 0-20 9.715-20 20.857v32.571c0 11.143 8.571 21.142 20 21.142 11.428 0 20.286-9.715 20.286-21.142v-32.571zm49.143 0c0-11.143-8.572-20.857-20-20.857-11.429 0-20.286 9.715-20.286 20.857v32.571c0 11.143 8.857 21.142 20.286 21.142 11.428 0 20-10 20-21.142v-32.571zm49.713 0c0-11.143-8.857-20.857-20.285-20.857-11.429 0-20.286 9.715-20.286 20.857v32.571c0 11.143 8.857 21.142 20.286 21.142 11.428 0 20.285-9.715 20.285-21.142v-32.571zm49.715 0c0-11.143-8.857-20.857-20.286-20.857-11.428 0-20.286 9.715-20.286 20.857v32.571c0 11.143 8.858 21.142 20.286 21.142 11.429 0 20.286-10 20.286-21.142v-32.571zM421.714 286c-30.857 59.142-90.285 102.572-158.571 102.572-96.571 0-160.571-84.572-160.571-176.572 0-16.857 2-33.429 6-49.714-20 33.715-29.714 72.572-29.714 111.429 0 60.286 24.857 121.715 71.429 160.857 5.143-9.714 14.857-16.286 26-16.286 10 0 19.428 5.714 24.571 14.286 5.429-8.571 14.571-14.286 24.858-14.286 10 0 19.428 5.714 24.571 14.286 5.429-8.571 14.857-14.286 24.858-14.286 10 0 19.428 5.714 24.857 14.286 5.143-8.571 14.571-14.286 24.572-14.286 10.857 0 20.857 6.572 25.714 16 43.427-36.286 68.569-92 71.426-148.286zm10.572-99.714c0-53.714-34.571-105.714-92.572-105.714-30.285 0-58.571 15.143-78.857 36.857C240.862 183.812 233.41 254 302.286 254c28.805 0 97.357-28.538 84.286 36.857 28.857-26 45.714-65.714 45.714-104.571z"}))};var u=wp.i18n.__,b=wp.blockEditor.BlockControls,g=wp.components,h=g.Toolbar,f=g.Button,y=g.Tooltip,w=function(e){var t=e.attributes,n=e.setAttributes,a=function(e){var a,l,o;n((a={},l=e,o=!t[e],l in a?Object.defineProperty(a,l,{value:o,enumerable:!0,configurable:!0,writable:!0}):a[l]=o,a))};return wp.element.createElement(b,null,wp.element.createElement(h,null,Object.keys(c).map((function(e){var n=t[e];return wp.element.createElement(y,{text:u("Display ".concat(c[e].label))},wp.element.createElement(f,{className:r()("components-button","wp-block-themeisle-toolbar",{"is-active":n}),onClick:function(){return a(e)}},wp.element.createElement(s,{icon:e})))}))))},v=wp.element.Fragment,k=function(e){var t=e.attributes,n=e.setAttributes,a=e.className;return wp.element.createElement(v,null,wp.element.createElement(w,{attributes:t,setAttributes:n}),wp.element.createElement("div",{className:r()(a,{"has-label":!t.className||!t.className.includes("is-style-icons")})},Object.keys(c).map((function(e,n){if(!0===t[e])return wp.element.createElement("a",{className:"social-icon is-".concat(e)},wp.element.createElement("i",{className:"fab fa-".concat(c[e].icon)}),(!t.className||!t.className.includes("is-style-icons"))&&c[e].label)}))))},T=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/sharing-icons",{title:T("Sharing Icons"),description:T("Share buttons for your website visitors to share content on any social sharing service."),icon:a.q,category:"themeisle-blocks",keywords:["social media","sharing","icons"],attributes:l,supports:{html:!0,align:["left","center","right"]},styles:[{name:"default",label:T("Regular"),isDefault:!0},{name:"icons",label:T("Icons Only")}],edit:k,save:function(){return null}})},function(e,t,n){"use strict";n.r(t);n(64),n(65);var a=n(2),l={style:{type:"string",default:"grid"},columns:{type:"number",default:3},template:{type:"array",default:["category","title","meta","description"]},categories:{type:"string"},postsToShow:{type:"number",default:5},order:{type:"string",default:"desc"},orderBy:{type:"string",default:"date"},offset:{type:"number",default:0},imageSize:{type:"string",default:"full"},imageBoxShadow:{type:"boolean",default:!0},displayFeaturedImage:{type:"boolean",default:!0},displayCategory:{type:"boolean",default:!0},displayTitle:{type:"boolean",default:!0},titleTag:{type:"string",default:"h5"},displayMeta:{type:"boolean",default:!0},displayDescription:{type:"boolean",default:!0},excerptLength:{type:"number",default:100},displayDate:{type:"boolean",default:!0},displayAuthor:{type:"boolean",default:!0}},o=n(11),r=n(34),i=n.n(r),c=n(0),d=n.n(c),p=n(23);function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var s=lodash,u=s.startCase,b=s.toLower,g=wp.i18n.__,h=wp.components,f=h.IconButton,y=h.TextControl,w=h.SelectControl,v=h.ToggleControl,k=wp.element,T=k.Fragment,E=k.useState,x=Object(p.c)((function(){return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-builder-handle"},wp.element.createElement("span",null))})),C=function(e){var t,n=e.value,a=e.disabled,l=e.getFields,o=e.toggleFields,r=e.imageSize,i=e.titleTag,c=e.excerptLimit,p=m(E(!1),2),s=p[0],h=p[1],k=u(b(n)),C="hidden",S=g("Display ".concat(k));switch(l(n)&&(C="visibility",S=g("Hide ".concat(k))),n){case"image":case"title":case"meta":case"description":t=!0;break;default:t=!1}return wp.element.createElement("div",{className:d()("wp-block-